iobroker.vis-2-widgets-collection 2.0.3 → 2.0.4

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.
Files changed (40) hide show
  1. package/README.md +4 -0
  2. package/io-package.json +14 -14
  3. package/package.json +1 -1
  4. package/widgets/vis-2-widgets-collection/assets/Button-BK3gDuCC.js +677 -0
  5. package/widgets/vis-2-widgets-collection/assets/ButtonGroupCollectionWidget-Bjl7COzs.js +687 -0
  6. package/widgets/vis-2-widgets-collection/assets/CheckboxCollectionWidget-8WjweMs2.js +440 -0
  7. package/widgets/vis-2-widgets-collection/assets/Close-APpa6HX8.js +18 -0
  8. package/widgets/vis-2-widgets-collection/assets/DialogCollectionWidget-o_rzKqrW.js +485 -0
  9. package/widgets/vis-2-widgets-collection/assets/FormControlLabel-CHae4jKA.js +207 -0
  10. package/widgets/vis-2-widgets-collection/assets/GaugeCollectionWidget-C7OFMKbW.js +2860 -0
  11. package/widgets/vis-2-widgets-collection/assets/Light2CollectionWidget-C_bjOKZG.js +2733 -0
  12. package/widgets/vis-2-widgets-collection/assets/RadioGroupCollectionWidget-dntcZhrq.js +538 -0
  13. package/widgets/vis-2-widgets-collection/assets/SafeImg-DHsE-xU3.js +29 -0
  14. package/widgets/vis-2-widgets-collection/assets/SelectCollectionWidget-Dh93X-tG.js +2545 -0
  15. package/widgets/vis-2-widgets-collection/assets/Stack-Dzb7Q6ZE.js +132 -0
  16. package/widgets/vis-2-widgets-collection/assets/StateCollectionWidget-Cp6J4wqx.js +1610 -0
  17. package/widgets/vis-2-widgets-collection/assets/SwitchBase-C4gssu33.js +204 -0
  18. package/widgets/vis-2-widgets-collection/assets/SwitchCollectionWidget-2KPRtnA9.js +572 -0
  19. package/widgets/vis-2-widgets-collection/assets/_commonjsHelpers-Cpj98o6Y.js +8 -0
  20. package/widgets/vis-2-widgets-collection/assets/commonFields-Dc3dYGx-.js +20628 -0
  21. package/widgets/vis-2-widgets-collection/assets/formControlState-Dq1zat_P.js +6 -0
  22. package/widgets/vis-2-widgets-collection/assets/hostInit-D6momM_S.js +9 -0
  23. package/widgets/vis-2-widgets-collection/assets/index-B5Qt9EMX.js +18 -0
  24. package/widgets/vis-2-widgets-collection/assets/index-BEpFHtMA.js +249 -0
  25. package/widgets/vis-2-widgets-collection/assets/index-DMBzzD-N.js +6098 -0
  26. package/widgets/vis-2-widgets-collection/assets/listItemTextClasses-DQeLHf2R.js +120 -0
  27. package/widgets/vis-2-widgets-collection/assets/preload-helper-PPVm8Dsz.js +36 -0
  28. package/widgets/vis-2-widgets-collection/assets/translations-DXoq3Ras.js +9 -0
  29. package/widgets/vis-2-widgets-collection/assets/useFormControl--TM4wVzV.js +20 -0
  30. package/widgets/vis-2-widgets-collection/assets/useHtmlValue-Dcwl_hqT.js +27 -0
  31. package/widgets/vis-2-widgets-collection/assets/useOidValue-DGq_wsMY.js +35 -0
  32. package/widgets/vis-2-widgets-collection/assets/virtualExposes-B50cAOvG.js +118 -0
  33. package/widgets/vis-2-widgets-collection/assets/vis2CollectionWidget__loadShare__react__loadShare__-L1bZe9z4.js +45 -0
  34. package/widgets/vis-2-widgets-collection/assets/vis2CollectionWidget__mf_v__runtimeInit__mf_v__-Cugi9Gwb.js +12 -0
  35. package/widgets/vis-2-widgets-collection/img/prev-collection-checkbox.png +0 -0
  36. package/widgets/vis-2-widgets-collection/img/prev-collection-dialog.png +0 -0
  37. package/widgets/vis-2-widgets-collection/img/prev-collection-gauge.png +0 -0
  38. package/widgets/vis-2-widgets-collection/img/prev-collection-light.png +0 -0
  39. package/widgets/vis-2-widgets-collection/img/prev-collection-radio-group.png +0 -0
  40. package/widgets/vis-2-widgets-collection/img/prev-collection-select.png +0 -0
@@ -0,0 +1,2545 @@
1
+ import { l as we, V as Ge, W as Bt, k as Ne, X as Nt, j as m, a as Y, g as se, s as O, u as fe, Y as Tt, d as re, p as nt, m as q, i as ae, e as Z, Z as St, c as Et, _ as Xe, r as J, O as Ye, $ as jt, a0 as xt, a1 as At, a2 as zt, b as qe, a3 as Wt, a4 as Dt, n as Ut, o as G, a5 as rt, a6 as at, h as Ht, a7 as Vt, a8 as Kt, a9 as _t, C as st, aa as Gt, q as qt, x as Xt, y as Yt, v as it, A as Zt, E as Jt, w as lt, z as Qt, T as eo, G as to, H as dt, J as oo, K as no, L as ro, __tla as __tla_0 } from "./commonFields-Dc3dYGx-.js";
2
+ import { v as l, __tla as __tla_1 } from "./vis2CollectionWidget__loadShare__react__loadShare__-L1bZe9z4.js";
3
+ import { S as ao, __tla as __tla_2 } from "./SafeImg-DHsE-xU3.js";
4
+ import { a as so, L as ct, l as ut, __tla as __tla_3 } from "./listItemTextClasses-DQeLHf2R.js";
5
+ import { f as Ze } from "./formControlState-Dq1zat_P.js";
6
+ import { u as Je, F as io, __tla as __tla_4 } from "./useFormControl--TM4wVzV.js";
7
+ import { S as lo, __tla as __tla_5 } from "./Stack-Dzb7Q6ZE.js";
8
+ import "./_commonjsHelpers-Cpj98o6Y.js";
9
+ import "./vis2CollectionWidget__mf_v__runtimeInit__mf_v__-Cugi9Gwb.js";
10
+ let Lt;
11
+ let __tla = Promise.all([
12
+ (() => {
13
+ try {
14
+ return __tla_0;
15
+ } catch {
16
+ }
17
+ })(),
18
+ (() => {
19
+ try {
20
+ return __tla_1;
21
+ } catch {
22
+ }
23
+ })(),
24
+ (() => {
25
+ try {
26
+ return __tla_2;
27
+ } catch {
28
+ }
29
+ })(),
30
+ (() => {
31
+ try {
32
+ return __tla_3;
33
+ } catch {
34
+ }
35
+ })(),
36
+ (() => {
37
+ try {
38
+ return __tla_4;
39
+ } catch {
40
+ }
41
+ })(),
42
+ (() => {
43
+ try {
44
+ return __tla_5;
45
+ } catch {
46
+ }
47
+ })()
48
+ ]).then(async () => {
49
+ function Ee(e) {
50
+ return parseInt(e, 10) || 0;
51
+ }
52
+ const co = {
53
+ shadow: {
54
+ visibility: "hidden",
55
+ position: "absolute",
56
+ overflow: "hidden",
57
+ height: 0,
58
+ top: 0,
59
+ left: 0,
60
+ transform: "translateZ(0)"
61
+ }
62
+ };
63
+ function uo(e) {
64
+ for (const t in e) return false;
65
+ return true;
66
+ }
67
+ function pt(e) {
68
+ return uo(e) || e.outerHeightStyle === 0 && !e.overflowing;
69
+ }
70
+ const po = l.forwardRef(function(t, n) {
71
+ const { onChange: o, maxRows: i, minRows: u = 1, style: a, value: p, ...h } = t, { current: d } = l.useRef(p != null), v = l.useRef(null), S = we(n, v), I = l.useRef(null), x = l.useRef(null), R = l.useCallback(() => {
72
+ const r = v.current, s = x.current;
73
+ if (!r || !s) return;
74
+ const w = Ge(r).getComputedStyle(r);
75
+ if (w.width === "0px") return {
76
+ outerHeightStyle: 0,
77
+ overflowing: false
78
+ };
79
+ s.style.width = w.width, s.value = r.value || t.placeholder || "x", s.value.slice(-1) === `
80
+ ` && (s.value += " ");
81
+ const j = w.boxSizing, $ = Ee(w.paddingBottom) + Ee(w.paddingTop), z = Ee(w.borderBottomWidth) + Ee(w.borderTopWidth), B = s.scrollHeight;
82
+ s.value = "x";
83
+ const N = s.scrollHeight;
84
+ let F = B;
85
+ u && (F = Math.max(Number(u) * N, F)), i && (F = Math.min(Number(i) * N, F)), F = Math.max(F, N);
86
+ const E = F + (j === "border-box" ? $ + z : 0), W = Math.abs(F - B) <= 1;
87
+ return {
88
+ outerHeightStyle: E,
89
+ overflowing: W
90
+ };
91
+ }, [
92
+ i,
93
+ u,
94
+ t.placeholder
95
+ ]), M = Bt(() => {
96
+ const r = v.current, s = R();
97
+ if (!r || !s || pt(s)) return false;
98
+ const b = s.outerHeightStyle;
99
+ return I.current != null && I.current !== b;
100
+ }), c = l.useCallback(() => {
101
+ const r = v.current, s = R();
102
+ if (!r || !s || pt(s)) return;
103
+ const b = s.outerHeightStyle;
104
+ I.current !== b && (I.current = b, r.style.height = `${b}px`), r.style.overflow = s.overflowing ? "hidden" : "";
105
+ }, [
106
+ R
107
+ ]), g = l.useRef(-1);
108
+ Ne(() => {
109
+ const r = Nt(c), s = v == null ? void 0 : v.current;
110
+ if (!s) return;
111
+ const b = Ge(s);
112
+ b.addEventListener("resize", r);
113
+ let w;
114
+ return typeof ResizeObserver < "u" && (w = new ResizeObserver(() => {
115
+ M() && (w.unobserve(s), cancelAnimationFrame(g.current), c(), g.current = requestAnimationFrame(() => {
116
+ w.observe(s);
117
+ }));
118
+ }), w.observe(s)), () => {
119
+ r.clear(), cancelAnimationFrame(g.current), b.removeEventListener("resize", r), w && w.disconnect();
120
+ };
121
+ }, [
122
+ R,
123
+ c,
124
+ M
125
+ ]), Ne(() => {
126
+ c();
127
+ });
128
+ const y = (r) => {
129
+ d || c(), o && o(r);
130
+ };
131
+ return m.jsxs(l.Fragment, {
132
+ children: [
133
+ m.jsx("textarea", {
134
+ value: p,
135
+ onChange: y,
136
+ ref: S,
137
+ rows: u,
138
+ style: a,
139
+ ...h
140
+ }),
141
+ m.jsx("textarea", {
142
+ "aria-hidden": true,
143
+ className: t.className,
144
+ readOnly: true,
145
+ ref: x,
146
+ tabIndex: -1,
147
+ style: {
148
+ ...co.shadow,
149
+ ...a,
150
+ paddingTop: 0,
151
+ paddingBottom: 0
152
+ }
153
+ })
154
+ ]
155
+ });
156
+ });
157
+ function ft(e) {
158
+ return e != null && !(Array.isArray(e) && e.length === 0);
159
+ }
160
+ function wt(e, t = false) {
161
+ return e && (ft(e.value) && e.value !== "" || t && ft(e.defaultValue) && e.defaultValue !== "");
162
+ }
163
+ function fo(e) {
164
+ return se("MuiInputBase", e);
165
+ }
166
+ const xe = Y("MuiInputBase", [
167
+ "root",
168
+ "formControl",
169
+ "focused",
170
+ "disabled",
171
+ "adornedStart",
172
+ "adornedEnd",
173
+ "error",
174
+ "sizeSmall",
175
+ "multiline",
176
+ "colorSecondary",
177
+ "fullWidth",
178
+ "hiddenLabel",
179
+ "readOnly",
180
+ "input",
181
+ "inputSizeSmall",
182
+ "inputMultiline",
183
+ "inputTypeSearch",
184
+ "inputAdornedStart",
185
+ "inputAdornedEnd",
186
+ "inputHiddenLabel"
187
+ ]);
188
+ var mt;
189
+ const je = (e, t) => {
190
+ const { ownerState: n } = e;
191
+ return [
192
+ t.root,
193
+ n.formControl && t.formControl,
194
+ n.startAdornment && t.adornedStart,
195
+ n.endAdornment && t.adornedEnd,
196
+ n.error && t.error,
197
+ n.size === "small" && t.sizeSmall,
198
+ n.multiline && t.multiline,
199
+ n.color && t[`color${ae(n.color)}`],
200
+ n.fullWidth && t.fullWidth,
201
+ n.hiddenLabel && t.hiddenLabel
202
+ ];
203
+ }, Ae = (e, t) => {
204
+ const { ownerState: n } = e;
205
+ return [
206
+ t.input,
207
+ n.size === "small" && t.inputSizeSmall,
208
+ n.multiline && t.inputMultiline,
209
+ n.type === "search" && t.inputTypeSearch,
210
+ n.startAdornment && t.inputAdornedStart,
211
+ n.endAdornment && t.inputAdornedEnd,
212
+ n.hiddenLabel && t.inputHiddenLabel
213
+ ];
214
+ }, mo = (e) => {
215
+ const { classes: t, color: n, disabled: o, error: i, endAdornment: u, focused: a, formControl: p, fullWidth: h, hiddenLabel: d, multiline: v, readOnly: S, size: I, startAdornment: x, type: R } = e, M = {
216
+ root: [
217
+ "root",
218
+ `color${ae(n)}`,
219
+ o && "disabled",
220
+ i && "error",
221
+ h && "fullWidth",
222
+ a && "focused",
223
+ p && "formControl",
224
+ I && I !== "medium" && `size${ae(I)}`,
225
+ v && "multiline",
226
+ x && "adornedStart",
227
+ u && "adornedEnd",
228
+ d && "hiddenLabel",
229
+ S && "readOnly"
230
+ ],
231
+ input: [
232
+ "input",
233
+ o && "disabled",
234
+ R === "search" && "inputTypeSearch",
235
+ v && "inputMultiline",
236
+ I === "small" && "inputSizeSmall",
237
+ d && "inputHiddenLabel",
238
+ x && "inputAdornedStart",
239
+ u && "inputAdornedEnd",
240
+ S && "readOnly"
241
+ ]
242
+ };
243
+ return Z(M, fo, t);
244
+ }, ze = O("div", {
245
+ name: "MuiInputBase",
246
+ slot: "Root",
247
+ overridesResolver: je
248
+ })(q(({ theme: e }) => ({
249
+ ...e.typography.body1,
250
+ color: (e.vars || e).palette.text.primary,
251
+ lineHeight: "1.4375em",
252
+ boxSizing: "border-box",
253
+ position: "relative",
254
+ cursor: "text",
255
+ display: "inline-flex",
256
+ alignItems: "center",
257
+ [`&.${xe.disabled}`]: {
258
+ color: (e.vars || e).palette.text.disabled,
259
+ cursor: "default"
260
+ },
261
+ variants: [
262
+ {
263
+ props: ({ ownerState: t }) => t.multiline,
264
+ style: {
265
+ padding: "4px 0 5px"
266
+ }
267
+ },
268
+ {
269
+ props: ({ ownerState: t, size: n }) => t.multiline && n === "small",
270
+ style: {
271
+ paddingTop: 1
272
+ }
273
+ },
274
+ {
275
+ props: ({ ownerState: t }) => t.fullWidth,
276
+ style: {
277
+ width: "100%"
278
+ }
279
+ }
280
+ ]
281
+ }))), We = O("input", {
282
+ name: "MuiInputBase",
283
+ slot: "Input",
284
+ overridesResolver: Ae
285
+ })(q(({ theme: e }) => {
286
+ const t = e.palette.mode === "light", n = {
287
+ color: "currentColor",
288
+ ...e.vars ? {
289
+ opacity: e.vars.opacity.inputPlaceholder
290
+ } : {
291
+ opacity: t ? 0.42 : 0.5
292
+ },
293
+ transition: e.transitions.create("opacity", {
294
+ duration: e.transitions.duration.shorter
295
+ })
296
+ }, o = {
297
+ opacity: "0 !important"
298
+ }, i = e.vars ? {
299
+ opacity: e.vars.opacity.inputPlaceholder
300
+ } : {
301
+ opacity: t ? 0.42 : 0.5
302
+ };
303
+ return {
304
+ font: "inherit",
305
+ letterSpacing: "inherit",
306
+ color: "currentColor",
307
+ padding: "4px 0 5px",
308
+ border: 0,
309
+ boxSizing: "content-box",
310
+ background: "none",
311
+ height: "1.4375em",
312
+ margin: 0,
313
+ WebkitTapHighlightColor: "transparent",
314
+ display: "block",
315
+ minWidth: 0,
316
+ width: "100%",
317
+ "&::-webkit-input-placeholder": n,
318
+ "&::-moz-placeholder": n,
319
+ "&::-ms-input-placeholder": n,
320
+ "&:focus": {
321
+ outline: 0
322
+ },
323
+ "&:invalid": {
324
+ boxShadow: "none"
325
+ },
326
+ "&::-webkit-search-decoration": {
327
+ WebkitAppearance: "none"
328
+ },
329
+ [`label[data-shrink=false] + .${xe.formControl} &`]: {
330
+ "&::-webkit-input-placeholder": o,
331
+ "&::-moz-placeholder": o,
332
+ "&::-ms-input-placeholder": o,
333
+ "&:focus::-webkit-input-placeholder": i,
334
+ "&:focus::-moz-placeholder": i,
335
+ "&:focus::-ms-input-placeholder": i
336
+ },
337
+ [`&.${xe.disabled}`]: {
338
+ opacity: 1,
339
+ WebkitTextFillColor: (e.vars || e).palette.text.disabled
340
+ },
341
+ variants: [
342
+ {
343
+ props: ({ ownerState: u }) => !u.disableInjectingGlobalStyles,
344
+ style: {
345
+ animationName: "mui-auto-fill-cancel",
346
+ animationDuration: "10ms",
347
+ "&:-webkit-autofill": {
348
+ animationDuration: "5000s",
349
+ animationName: "mui-auto-fill"
350
+ }
351
+ }
352
+ },
353
+ {
354
+ props: {
355
+ size: "small"
356
+ },
357
+ style: {
358
+ paddingTop: 1
359
+ }
360
+ },
361
+ {
362
+ props: ({ ownerState: u }) => u.multiline,
363
+ style: {
364
+ height: "auto",
365
+ resize: "none",
366
+ padding: 0,
367
+ paddingTop: 0
368
+ }
369
+ },
370
+ {
371
+ props: {
372
+ type: "search"
373
+ },
374
+ style: {
375
+ MozAppearance: "textfield"
376
+ }
377
+ }
378
+ ]
379
+ };
380
+ })), gt = Tt({
381
+ "@keyframes mui-auto-fill": {
382
+ from: {
383
+ display: "block"
384
+ }
385
+ },
386
+ "@keyframes mui-auto-fill-cancel": {
387
+ from: {
388
+ display: "block"
389
+ }
390
+ }
391
+ }), Qe = l.forwardRef(function(t, n) {
392
+ const o = fe({
393
+ props: t,
394
+ name: "MuiInputBase"
395
+ }), { "aria-describedby": i, autoComplete: u, autoFocus: a, className: p, color: h, components: d = {}, componentsProps: v = {}, defaultValue: S, disabled: I, disableInjectingGlobalStyles: x, endAdornment: R, error: M, fullWidth: c = false, id: g, inputComponent: y = "input", inputProps: r = {}, inputRef: s, margin: b, maxRows: w, minRows: j, multiline: $ = false, name: z, onBlur: B, onChange: N, onClick: F, onFocus: E, onKeyDown: W, onKeyUp: ie, placeholder: me, readOnly: V, renderSuffix: U, rows: C, size: H, slotProps: Ie = {}, slots: Te = {}, startAdornment: Q, type: K = "text", value: le, ...De } = o, ee = r.value != null ? r.value : le, { current: Re } = l.useRef(ee != null), X = l.useRef(), Ue = l.useCallback((P) => {
396
+ }, []), He = we(X, s, r.ref, Ue), [te, oe] = l.useState(false), L = Je(), D = Ze({
397
+ props: o,
398
+ muiFormControl: L,
399
+ states: [
400
+ "color",
401
+ "disabled",
402
+ "error",
403
+ "hiddenLabel",
404
+ "size",
405
+ "required",
406
+ "filled"
407
+ ]
408
+ });
409
+ D.focused = L ? L.focused : te, l.useEffect(() => {
410
+ !L && I && te && (oe(false), B && B());
411
+ }, [
412
+ L,
413
+ I,
414
+ te,
415
+ B
416
+ ]);
417
+ const ge = L && L.onFilled, $e = L && L.onEmpty, de = l.useCallback((P) => {
418
+ wt(P) ? ge && ge() : $e && $e();
419
+ }, [
420
+ ge,
421
+ $e
422
+ ]);
423
+ Ne(() => {
424
+ Re && de({
425
+ value: ee
426
+ });
427
+ }, [
428
+ ee,
429
+ de,
430
+ Re
431
+ ]);
432
+ const Ve = (P) => {
433
+ E && E(P), r.onFocus && r.onFocus(P), L && L.onFocus ? L.onFocus(P) : oe(true);
434
+ }, ce = (P) => {
435
+ B && B(P), r.onBlur && r.onBlur(P), L && L.onBlur ? L.onBlur(P) : oe(false);
436
+ }, Ke = (P, ...Ce) => {
437
+ if (!Re) {
438
+ const Oe = P.target || X.current;
439
+ if (Oe == null) throw new Error(St(1));
440
+ de({
441
+ value: Oe.value
442
+ });
443
+ }
444
+ r.onChange && r.onChange(P, ...Ce), N && N(P, ...Ce);
445
+ };
446
+ l.useEffect(() => {
447
+ de(X.current);
448
+ }, []);
449
+ const ne = (P) => {
450
+ X.current && P.currentTarget === P.target && X.current.focus(), F && F(P);
451
+ };
452
+ let be = y, A = r;
453
+ $ && be === "input" && (C ? A = {
454
+ type: void 0,
455
+ minRows: C,
456
+ maxRows: C,
457
+ ...A
458
+ } : A = {
459
+ type: void 0,
460
+ maxRows: w,
461
+ minRows: j,
462
+ ...A
463
+ }, be = po);
464
+ const ve = (P) => {
465
+ de(P.animationName === "mui-auto-fill-cancel" ? X.current : {
466
+ value: "x"
467
+ });
468
+ };
469
+ l.useEffect(() => {
470
+ L && L.setAdornedStart(!!Q);
471
+ }, [
472
+ L,
473
+ Q
474
+ ]);
475
+ const Me = {
476
+ ...o,
477
+ color: D.color || "primary",
478
+ disabled: D.disabled,
479
+ endAdornment: R,
480
+ error: D.error,
481
+ focused: D.focused,
482
+ formControl: L,
483
+ fullWidth: c,
484
+ hiddenLabel: D.hiddenLabel,
485
+ multiline: $,
486
+ size: D.size,
487
+ startAdornment: Q,
488
+ type: K
489
+ }, ke = mo(Me), he = Te.root || d.Root || ze, ye = Ie.root || v.root || {}, ue = Te.input || d.Input || We;
490
+ return A = {
491
+ ...A,
492
+ ...Ie.input ?? v.input
493
+ }, m.jsxs(l.Fragment, {
494
+ children: [
495
+ !x && typeof gt == "function" && (mt || (mt = m.jsx(gt, {}))),
496
+ m.jsxs(he, {
497
+ ...ye,
498
+ ref: n,
499
+ onClick: ne,
500
+ ...De,
501
+ ...!nt(he) && {
502
+ ownerState: {
503
+ ...Me,
504
+ ...ye.ownerState
505
+ }
506
+ },
507
+ className: re(ke.root, ye.className, p, V && "MuiInputBase-readOnly"),
508
+ children: [
509
+ Q,
510
+ m.jsx(io.Provider, {
511
+ value: null,
512
+ children: m.jsx(ue, {
513
+ "aria-invalid": D.error,
514
+ "aria-describedby": i,
515
+ autoComplete: u,
516
+ autoFocus: a,
517
+ defaultValue: S,
518
+ disabled: D.disabled,
519
+ id: g,
520
+ onAnimationStart: ve,
521
+ name: z,
522
+ placeholder: me,
523
+ readOnly: V,
524
+ required: D.required,
525
+ rows: C,
526
+ value: ee,
527
+ onKeyDown: W,
528
+ onKeyUp: ie,
529
+ type: K,
530
+ ...A,
531
+ ...!nt(ue) && {
532
+ as: be,
533
+ ownerState: {
534
+ ...Me,
535
+ ...A.ownerState
536
+ }
537
+ },
538
+ ref: He,
539
+ className: re(ke.input, A.className, V && "MuiInputBase-readOnly"),
540
+ onBlur: ce,
541
+ onChange: Ke,
542
+ onFocus: Ve
543
+ })
544
+ }),
545
+ R,
546
+ U ? U({
547
+ ...D,
548
+ startAdornment: Q
549
+ }) : null
550
+ ]
551
+ })
552
+ ]
553
+ });
554
+ });
555
+ function go(e) {
556
+ return se("MuiInput", e);
557
+ }
558
+ const Pe = {
559
+ ...xe,
560
+ ...Y("MuiInput", [
561
+ "root",
562
+ "underline",
563
+ "input"
564
+ ])
565
+ };
566
+ function bo(e) {
567
+ return se("MuiOutlinedInput", e);
568
+ }
569
+ const _ = {
570
+ ...xe,
571
+ ...Y("MuiOutlinedInput", [
572
+ "root",
573
+ "notchedOutline",
574
+ "input"
575
+ ])
576
+ };
577
+ function vo(e) {
578
+ return se("MuiFilledInput", e);
579
+ }
580
+ const pe = {
581
+ ...xe,
582
+ ...Y("MuiFilledInput", [
583
+ "root",
584
+ "underline",
585
+ "input",
586
+ "adornedStart",
587
+ "adornedEnd",
588
+ "sizeSmall",
589
+ "multiline",
590
+ "hiddenLabel"
591
+ ])
592
+ }, ho = Et(m.jsx("path", {
593
+ d: "M7 10l5 5 5-5z"
594
+ }), "ArrowDropDown"), yo = (e) => {
595
+ const { classes: t, disableUnderline: n, startAdornment: o, endAdornment: i, size: u, hiddenLabel: a, multiline: p } = e, h = {
596
+ root: [
597
+ "root",
598
+ !n && "underline",
599
+ o && "adornedStart",
600
+ i && "adornedEnd",
601
+ u === "small" && `size${ae(u)}`,
602
+ a && "hiddenLabel",
603
+ p && "multiline"
604
+ ],
605
+ input: [
606
+ "input"
607
+ ]
608
+ }, d = Z(h, vo, t);
609
+ return {
610
+ ...t,
611
+ ...d
612
+ };
613
+ }, Co = O(ze, {
614
+ shouldForwardProp: (e) => J(e) || e === "classes",
615
+ name: "MuiFilledInput",
616
+ slot: "Root",
617
+ overridesResolver: (e, t) => {
618
+ const { ownerState: n } = e;
619
+ return [
620
+ ...je(e, t),
621
+ !n.disableUnderline && t.underline
622
+ ];
623
+ }
624
+ })(q(({ theme: e }) => {
625
+ const t = e.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", o = 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)";
626
+ return {
627
+ position: "relative",
628
+ backgroundColor: e.vars ? e.vars.palette.FilledInput.bg : o,
629
+ borderTopLeftRadius: (e.vars || e).shape.borderRadius,
630
+ borderTopRightRadius: (e.vars || e).shape.borderRadius,
631
+ transition: e.transitions.create("background-color", {
632
+ duration: e.transitions.duration.shorter,
633
+ easing: e.transitions.easing.easeOut
634
+ }),
635
+ "&:hover": {
636
+ backgroundColor: e.vars ? e.vars.palette.FilledInput.hoverBg : i,
637
+ "@media (hover: none)": {
638
+ backgroundColor: e.vars ? e.vars.palette.FilledInput.bg : o
639
+ }
640
+ },
641
+ [`&.${pe.focused}`]: {
642
+ backgroundColor: e.vars ? e.vars.palette.FilledInput.bg : o
643
+ },
644
+ [`&.${pe.disabled}`]: {
645
+ backgroundColor: e.vars ? e.vars.palette.FilledInput.disabledBg : u
646
+ },
647
+ variants: [
648
+ {
649
+ props: ({ ownerState: a }) => !a.disableUnderline,
650
+ style: {
651
+ "&::after": {
652
+ left: 0,
653
+ bottom: 0,
654
+ content: '""',
655
+ position: "absolute",
656
+ right: 0,
657
+ transform: "scaleX(0)",
658
+ transition: e.transitions.create("transform", {
659
+ duration: e.transitions.duration.shorter,
660
+ easing: e.transitions.easing.easeOut
661
+ }),
662
+ pointerEvents: "none"
663
+ },
664
+ [`&.${pe.focused}:after`]: {
665
+ transform: "scaleX(1) translateX(0)"
666
+ },
667
+ [`&.${pe.error}`]: {
668
+ "&::before, &::after": {
669
+ borderBottomColor: (e.vars || e).palette.error.main
670
+ }
671
+ },
672
+ "&::before": {
673
+ borderBottom: `1px solid ${e.vars ? `rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})` : n}`,
674
+ left: 0,
675
+ bottom: 0,
676
+ content: '"\\00a0"',
677
+ position: "absolute",
678
+ right: 0,
679
+ transition: e.transitions.create("border-bottom-color", {
680
+ duration: e.transitions.duration.shorter
681
+ }),
682
+ pointerEvents: "none"
683
+ },
684
+ [`&:hover:not(.${pe.disabled}, .${pe.error}):before`]: {
685
+ borderBottom: `1px solid ${(e.vars || e).palette.text.primary}`
686
+ },
687
+ [`&.${pe.disabled}:before`]: {
688
+ borderBottomStyle: "dotted"
689
+ }
690
+ }
691
+ },
692
+ ...Object.entries(e.palette).filter(Ye()).map(([a]) => {
693
+ var _a;
694
+ return {
695
+ props: {
696
+ disableUnderline: false,
697
+ color: a
698
+ },
699
+ style: {
700
+ "&::after": {
701
+ borderBottom: `2px solid ${(_a = (e.vars || e).palette[a]) == null ? void 0 : _a.main}`
702
+ }
703
+ }
704
+ };
705
+ }),
706
+ {
707
+ props: ({ ownerState: a }) => a.startAdornment,
708
+ style: {
709
+ paddingLeft: 12
710
+ }
711
+ },
712
+ {
713
+ props: ({ ownerState: a }) => a.endAdornment,
714
+ style: {
715
+ paddingRight: 12
716
+ }
717
+ },
718
+ {
719
+ props: ({ ownerState: a }) => a.multiline,
720
+ style: {
721
+ padding: "25px 12px 8px"
722
+ }
723
+ },
724
+ {
725
+ props: ({ ownerState: a, size: p }) => a.multiline && p === "small",
726
+ style: {
727
+ paddingTop: 21,
728
+ paddingBottom: 4
729
+ }
730
+ },
731
+ {
732
+ props: ({ ownerState: a }) => a.multiline && a.hiddenLabel,
733
+ style: {
734
+ paddingTop: 16,
735
+ paddingBottom: 17
736
+ }
737
+ },
738
+ {
739
+ props: ({ ownerState: a }) => a.multiline && a.hiddenLabel && a.size === "small",
740
+ style: {
741
+ paddingTop: 8,
742
+ paddingBottom: 9
743
+ }
744
+ }
745
+ ]
746
+ };
747
+ })), So = O(We, {
748
+ name: "MuiFilledInput",
749
+ slot: "Input",
750
+ overridesResolver: Ae
751
+ })(q(({ theme: e }) => ({
752
+ paddingTop: 25,
753
+ paddingRight: 12,
754
+ paddingBottom: 8,
755
+ paddingLeft: 12,
756
+ ...!e.vars && {
757
+ "&:-webkit-autofill": {
758
+ WebkitBoxShadow: e.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
759
+ WebkitTextFillColor: e.palette.mode === "light" ? null : "#fff",
760
+ caretColor: e.palette.mode === "light" ? null : "#fff",
761
+ borderTopLeftRadius: "inherit",
762
+ borderTopRightRadius: "inherit"
763
+ }
764
+ },
765
+ ...e.vars && {
766
+ "&:-webkit-autofill": {
767
+ borderTopLeftRadius: "inherit",
768
+ borderTopRightRadius: "inherit"
769
+ },
770
+ [e.getColorSchemeSelector("dark")]: {
771
+ "&:-webkit-autofill": {
772
+ WebkitBoxShadow: "0 0 0 100px #266798 inset",
773
+ WebkitTextFillColor: "#fff",
774
+ caretColor: "#fff"
775
+ }
776
+ }
777
+ },
778
+ variants: [
779
+ {
780
+ props: {
781
+ size: "small"
782
+ },
783
+ style: {
784
+ paddingTop: 21,
785
+ paddingBottom: 4
786
+ }
787
+ },
788
+ {
789
+ props: ({ ownerState: t }) => t.hiddenLabel,
790
+ style: {
791
+ paddingTop: 16,
792
+ paddingBottom: 17
793
+ }
794
+ },
795
+ {
796
+ props: ({ ownerState: t }) => t.startAdornment,
797
+ style: {
798
+ paddingLeft: 0
799
+ }
800
+ },
801
+ {
802
+ props: ({ ownerState: t }) => t.endAdornment,
803
+ style: {
804
+ paddingRight: 0
805
+ }
806
+ },
807
+ {
808
+ props: ({ ownerState: t }) => t.hiddenLabel && t.size === "small",
809
+ style: {
810
+ paddingTop: 8,
811
+ paddingBottom: 9
812
+ }
813
+ },
814
+ {
815
+ props: ({ ownerState: t }) => t.multiline,
816
+ style: {
817
+ paddingTop: 0,
818
+ paddingBottom: 0,
819
+ paddingLeft: 0,
820
+ paddingRight: 0
821
+ }
822
+ }
823
+ ]
824
+ }))), It = l.forwardRef(function(t, n) {
825
+ const o = fe({
826
+ props: t,
827
+ name: "MuiFilledInput"
828
+ }), { disableUnderline: i = false, components: u = {}, componentsProps: a, fullWidth: p = false, hiddenLabel: h, inputComponent: d = "input", multiline: v = false, slotProps: S, slots: I = {}, type: x = "text", ...R } = o, M = {
829
+ ...o,
830
+ disableUnderline: i,
831
+ fullWidth: p,
832
+ inputComponent: d,
833
+ multiline: v,
834
+ type: x
835
+ }, c = yo(o), g = {
836
+ root: {
837
+ ownerState: M
838
+ },
839
+ input: {
840
+ ownerState: M
841
+ }
842
+ }, y = S ?? a ? Xe(g, S ?? a) : g, r = I.root ?? u.Root ?? Co, s = I.input ?? u.Input ?? So;
843
+ return m.jsx(Qe, {
844
+ slots: {
845
+ root: r,
846
+ input: s
847
+ },
848
+ slotProps: y,
849
+ fullWidth: p,
850
+ inputComponent: d,
851
+ multiline: v,
852
+ ref: n,
853
+ type: x,
854
+ ...R,
855
+ classes: c
856
+ });
857
+ });
858
+ It.muiName = "Input";
859
+ const xo = (e) => {
860
+ const { classes: t, disableUnderline: n } = e, i = Z({
861
+ root: [
862
+ "root",
863
+ !n && "underline"
864
+ ],
865
+ input: [
866
+ "input"
867
+ ]
868
+ }, go, t);
869
+ return {
870
+ ...t,
871
+ ...i
872
+ };
873
+ }, wo = O(ze, {
874
+ shouldForwardProp: (e) => J(e) || e === "classes",
875
+ name: "MuiInput",
876
+ slot: "Root",
877
+ overridesResolver: (e, t) => {
878
+ const { ownerState: n } = e;
879
+ return [
880
+ ...je(e, t),
881
+ !n.disableUnderline && t.underline
882
+ ];
883
+ }
884
+ })(q(({ theme: e }) => {
885
+ let n = e.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
886
+ return e.vars && (n = `rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`), {
887
+ position: "relative",
888
+ variants: [
889
+ {
890
+ props: ({ ownerState: o }) => o.formControl,
891
+ style: {
892
+ "label + &": {
893
+ marginTop: 16
894
+ }
895
+ }
896
+ },
897
+ {
898
+ props: ({ ownerState: o }) => !o.disableUnderline,
899
+ style: {
900
+ "&::after": {
901
+ left: 0,
902
+ bottom: 0,
903
+ content: '""',
904
+ position: "absolute",
905
+ right: 0,
906
+ transform: "scaleX(0)",
907
+ transition: e.transitions.create("transform", {
908
+ duration: e.transitions.duration.shorter,
909
+ easing: e.transitions.easing.easeOut
910
+ }),
911
+ pointerEvents: "none"
912
+ },
913
+ [`&.${Pe.focused}:after`]: {
914
+ transform: "scaleX(1) translateX(0)"
915
+ },
916
+ [`&.${Pe.error}`]: {
917
+ "&::before, &::after": {
918
+ borderBottomColor: (e.vars || e).palette.error.main
919
+ }
920
+ },
921
+ "&::before": {
922
+ borderBottom: `1px solid ${n}`,
923
+ left: 0,
924
+ bottom: 0,
925
+ content: '"\\00a0"',
926
+ position: "absolute",
927
+ right: 0,
928
+ transition: e.transitions.create("border-bottom-color", {
929
+ duration: e.transitions.duration.shorter
930
+ }),
931
+ pointerEvents: "none"
932
+ },
933
+ [`&:hover:not(.${Pe.disabled}, .${Pe.error}):before`]: {
934
+ borderBottom: `2px solid ${(e.vars || e).palette.text.primary}`,
935
+ "@media (hover: none)": {
936
+ borderBottom: `1px solid ${n}`
937
+ }
938
+ },
939
+ [`&.${Pe.disabled}:before`]: {
940
+ borderBottomStyle: "dotted"
941
+ }
942
+ }
943
+ },
944
+ ...Object.entries(e.palette).filter(Ye()).map(([o]) => ({
945
+ props: {
946
+ color: o,
947
+ disableUnderline: false
948
+ },
949
+ style: {
950
+ "&::after": {
951
+ borderBottom: `2px solid ${(e.vars || e).palette[o].main}`
952
+ }
953
+ }
954
+ }))
955
+ ]
956
+ };
957
+ })), Io = O(We, {
958
+ name: "MuiInput",
959
+ slot: "Input",
960
+ overridesResolver: Ae
961
+ })({}), Rt = l.forwardRef(function(t, n) {
962
+ const o = fe({
963
+ props: t,
964
+ name: "MuiInput"
965
+ }), { disableUnderline: i = false, components: u = {}, componentsProps: a, fullWidth: p = false, inputComponent: h = "input", multiline: d = false, slotProps: v, slots: S = {}, type: I = "text", ...x } = o, R = xo(o), c = {
966
+ root: {
967
+ ownerState: {
968
+ disableUnderline: i
969
+ }
970
+ }
971
+ }, g = v ?? a ? Xe(v ?? a, c) : c, y = S.root ?? u.Root ?? wo, r = S.input ?? u.Input ?? Io;
972
+ return m.jsx(Qe, {
973
+ slots: {
974
+ root: y,
975
+ input: r
976
+ },
977
+ slotProps: g,
978
+ fullWidth: p,
979
+ inputComponent: h,
980
+ multiline: d,
981
+ ref: n,
982
+ type: I,
983
+ ...x,
984
+ classes: R
985
+ });
986
+ });
987
+ Rt.muiName = "Input";
988
+ const bt = Y("MuiListItemIcon", [
989
+ "root",
990
+ "alignItemsFlexStart"
991
+ ]);
992
+ function _e(e, t, n) {
993
+ return e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : n ? null : e.firstChild;
994
+ }
995
+ function vt(e, t, n) {
996
+ return e === t ? n ? e.firstChild : e.lastChild : t && t.previousElementSibling ? t.previousElementSibling : n ? null : e.lastChild;
997
+ }
998
+ function $t(e, t) {
999
+ if (t === void 0) return true;
1000
+ let n = e.innerText;
1001
+ return n === void 0 && (n = e.textContent), n = n.trim().toLowerCase(), n.length === 0 ? false : t.repeating ? n[0] === t.keys[0] : n.startsWith(t.keys.join(""));
1002
+ }
1003
+ function Fe(e, t, n, o, i, u) {
1004
+ let a = false, p = i(e, t, t ? n : false);
1005
+ for (; p; ) {
1006
+ if (p === e.firstChild) {
1007
+ if (a) return false;
1008
+ a = true;
1009
+ }
1010
+ const h = o ? false : p.disabled || p.getAttribute("aria-disabled") === "true";
1011
+ if (!p.hasAttribute("tabindex") || !$t(p, u) || h) p = i(e, p, n);
1012
+ else return p.focus(), true;
1013
+ }
1014
+ return false;
1015
+ }
1016
+ const Ro = l.forwardRef(function(t, n) {
1017
+ const { actions: o, autoFocus: i = false, autoFocusItem: u = false, children: a, className: p, disabledItemsFocusable: h = false, disableListWrap: d = false, onKeyDown: v, variant: S = "selectedMenu", ...I } = t, x = l.useRef(null), R = l.useRef({
1018
+ keys: [],
1019
+ repeating: true,
1020
+ previousKeyMatched: true,
1021
+ lastTime: null
1022
+ });
1023
+ Ne(() => {
1024
+ i && x.current.focus();
1025
+ }, [
1026
+ i
1027
+ ]), l.useImperativeHandle(o, () => ({
1028
+ adjustStyleForScrollbar: (r, { direction: s }) => {
1029
+ const b = !x.current.style.width;
1030
+ if (r.clientHeight < x.current.clientHeight && b) {
1031
+ const w = `${jt(Ge(r))}px`;
1032
+ x.current.style[s === "rtl" ? "paddingLeft" : "paddingRight"] = w, x.current.style.width = `calc(100% + ${w})`;
1033
+ }
1034
+ return x.current;
1035
+ }
1036
+ }), []);
1037
+ const M = (r) => {
1038
+ const s = x.current, b = r.key;
1039
+ if (r.ctrlKey || r.metaKey || r.altKey) {
1040
+ v && v(r);
1041
+ return;
1042
+ }
1043
+ const j = xt(s).activeElement;
1044
+ if (b === "ArrowDown") r.preventDefault(), Fe(s, j, d, h, _e);
1045
+ else if (b === "ArrowUp") r.preventDefault(), Fe(s, j, d, h, vt);
1046
+ else if (b === "Home") r.preventDefault(), Fe(s, null, d, h, _e);
1047
+ else if (b === "End") r.preventDefault(), Fe(s, null, d, h, vt);
1048
+ else if (b.length === 1) {
1049
+ const $ = R.current, z = b.toLowerCase(), B = performance.now();
1050
+ $.keys.length > 0 && (B - $.lastTime > 500 ? ($.keys = [], $.repeating = true, $.previousKeyMatched = true) : $.repeating && z !== $.keys[0] && ($.repeating = false)), $.lastTime = B, $.keys.push(z);
1051
+ const N = j && !$.repeating && $t(j, $);
1052
+ $.previousKeyMatched && (N || Fe(s, j, false, h, _e, $)) ? r.preventDefault() : $.previousKeyMatched = false;
1053
+ }
1054
+ v && v(r);
1055
+ }, c = we(x, n);
1056
+ let g = -1;
1057
+ l.Children.forEach(a, (r, s) => {
1058
+ if (!l.isValidElement(r)) {
1059
+ g === s && (g += 1, g >= a.length && (g = -1));
1060
+ return;
1061
+ }
1062
+ r.props.disabled || (S === "selectedMenu" && r.props.selected || g === -1) && (g = s), g === s && (r.props.disabled || r.props.muiSkipListHighlight || r.type.muiSkipListHighlight) && (g += 1, g >= a.length && (g = -1));
1063
+ });
1064
+ const y = l.Children.map(a, (r, s) => {
1065
+ if (s === g) {
1066
+ const b = {};
1067
+ return u && (b.autoFocus = true), r.props.tabIndex === void 0 && S === "selectedMenu" && (b.tabIndex = 0), l.cloneElement(r, b);
1068
+ }
1069
+ return r;
1070
+ });
1071
+ return m.jsx(so, {
1072
+ role: "menu",
1073
+ ref: c,
1074
+ className: p,
1075
+ onKeyDown: M,
1076
+ tabIndex: i ? 0 : -1,
1077
+ ...I,
1078
+ children: y
1079
+ });
1080
+ });
1081
+ function $o(e) {
1082
+ return se("MuiMenu", e);
1083
+ }
1084
+ Y("MuiMenu", [
1085
+ "root",
1086
+ "paper",
1087
+ "list"
1088
+ ]);
1089
+ const Mo = {
1090
+ vertical: "top",
1091
+ horizontal: "right"
1092
+ }, ko = {
1093
+ vertical: "top",
1094
+ horizontal: "left"
1095
+ }, Oo = (e) => {
1096
+ const { classes: t } = e;
1097
+ return Z({
1098
+ root: [
1099
+ "root"
1100
+ ],
1101
+ paper: [
1102
+ "paper"
1103
+ ],
1104
+ list: [
1105
+ "list"
1106
+ ]
1107
+ }, $o, t);
1108
+ }, Po = O(Dt, {
1109
+ shouldForwardProp: (e) => J(e) || e === "classes",
1110
+ name: "MuiMenu",
1111
+ slot: "Root",
1112
+ overridesResolver: (e, t) => t.root
1113
+ })({}), Fo = O(Wt, {
1114
+ name: "MuiMenu",
1115
+ slot: "Paper",
1116
+ overridesResolver: (e, t) => t.paper
1117
+ })({
1118
+ maxHeight: "calc(100% - 96px)",
1119
+ WebkitOverflowScrolling: "touch"
1120
+ }), Lo = O(Ro, {
1121
+ name: "MuiMenu",
1122
+ slot: "List",
1123
+ overridesResolver: (e, t) => t.list
1124
+ })({
1125
+ outline: 0
1126
+ }), Bo = l.forwardRef(function(t, n) {
1127
+ const o = fe({
1128
+ props: t,
1129
+ name: "MuiMenu"
1130
+ }), { autoFocus: i = true, children: u, className: a, disableAutoFocusItem: p = false, MenuListProps: h = {}, onClose: d, open: v, PaperProps: S = {}, PopoverClasses: I, transitionDuration: x = "auto", TransitionProps: { onEntering: R, ...M } = {}, variant: c = "selectedMenu", slots: g = {}, slotProps: y = {}, ...r } = o, s = At(), b = {
1131
+ ...o,
1132
+ autoFocus: i,
1133
+ disableAutoFocusItem: p,
1134
+ MenuListProps: h,
1135
+ onEntering: R,
1136
+ PaperProps: S,
1137
+ transitionDuration: x,
1138
+ TransitionProps: M,
1139
+ variant: c
1140
+ }, w = Oo(b), j = i && !p && v, $ = l.useRef(null), z = (C, H) => {
1141
+ $.current && $.current.adjustStyleForScrollbar(C, {
1142
+ direction: s ? "rtl" : "ltr"
1143
+ }), R && R(C, H);
1144
+ }, B = (C) => {
1145
+ C.key === "Tab" && (C.preventDefault(), d && d(C, "tabKeyDown"));
1146
+ };
1147
+ let N = -1;
1148
+ l.Children.map(u, (C, H) => {
1149
+ l.isValidElement(C) && (C.props.disabled || (c === "selectedMenu" && C.props.selected || N === -1) && (N = H));
1150
+ });
1151
+ const F = {
1152
+ slots: g,
1153
+ slotProps: {
1154
+ list: h,
1155
+ transition: M,
1156
+ paper: S,
1157
+ ...y
1158
+ }
1159
+ }, E = zt({
1160
+ elementType: g.root,
1161
+ externalSlotProps: y.root,
1162
+ ownerState: b,
1163
+ className: [
1164
+ w.root,
1165
+ a
1166
+ ]
1167
+ }), [W, ie] = qe("paper", {
1168
+ className: w.paper,
1169
+ elementType: Fo,
1170
+ externalForwardedProps: F,
1171
+ shouldForwardComponentProp: true,
1172
+ ownerState: b
1173
+ }), [me, V] = qe("list", {
1174
+ className: re(w.list, h.className),
1175
+ elementType: Lo,
1176
+ shouldForwardComponentProp: true,
1177
+ externalForwardedProps: F,
1178
+ getSlotProps: (C) => ({
1179
+ ...C,
1180
+ onKeyDown: (H) => {
1181
+ var _a;
1182
+ B(H), (_a = C.onKeyDown) == null ? void 0 : _a.call(C, H);
1183
+ }
1184
+ }),
1185
+ ownerState: b
1186
+ }), U = typeof F.slotProps.transition == "function" ? F.slotProps.transition(b) : F.slotProps.transition;
1187
+ return m.jsx(Po, {
1188
+ onClose: d,
1189
+ anchorOrigin: {
1190
+ vertical: "bottom",
1191
+ horizontal: s ? "right" : "left"
1192
+ },
1193
+ transformOrigin: s ? Mo : ko,
1194
+ slots: {
1195
+ root: g.root,
1196
+ paper: W,
1197
+ backdrop: g.backdrop,
1198
+ ...g.transition && {
1199
+ transition: g.transition
1200
+ }
1201
+ },
1202
+ slotProps: {
1203
+ root: E,
1204
+ paper: ie,
1205
+ backdrop: typeof y.backdrop == "function" ? y.backdrop(b) : y.backdrop,
1206
+ transition: {
1207
+ ...U,
1208
+ onEntering: (...C) => {
1209
+ var _a;
1210
+ z(...C), (_a = U == null ? void 0 : U.onEntering) == null ? void 0 : _a.call(U, ...C);
1211
+ }
1212
+ }
1213
+ },
1214
+ open: v,
1215
+ ref: n,
1216
+ transitionDuration: x,
1217
+ ownerState: b,
1218
+ ...r,
1219
+ classes: I,
1220
+ children: m.jsx(me, {
1221
+ actions: $,
1222
+ autoFocus: i && (N === -1 || p),
1223
+ autoFocusItem: j,
1224
+ variant: c,
1225
+ ...V,
1226
+ children: u
1227
+ })
1228
+ });
1229
+ });
1230
+ function No(e) {
1231
+ return se("MuiMenuItem", e);
1232
+ }
1233
+ const Le = Y("MuiMenuItem", [
1234
+ "root",
1235
+ "focusVisible",
1236
+ "dense",
1237
+ "disabled",
1238
+ "divider",
1239
+ "gutters",
1240
+ "selected"
1241
+ ]), To = (e, t) => {
1242
+ const { ownerState: n } = e;
1243
+ return [
1244
+ t.root,
1245
+ n.dense && t.dense,
1246
+ n.divider && t.divider,
1247
+ !n.disableGutters && t.gutters
1248
+ ];
1249
+ }, Eo = (e) => {
1250
+ const { disabled: t, dense: n, divider: o, disableGutters: i, selected: u, classes: a } = e, h = Z({
1251
+ root: [
1252
+ "root",
1253
+ n && "dense",
1254
+ t && "disabled",
1255
+ !i && "gutters",
1256
+ o && "divider",
1257
+ u && "selected"
1258
+ ]
1259
+ }, No, a);
1260
+ return {
1261
+ ...a,
1262
+ ...h
1263
+ };
1264
+ }, jo = O(Ut, {
1265
+ shouldForwardProp: (e) => J(e) || e === "classes",
1266
+ name: "MuiMenuItem",
1267
+ slot: "Root",
1268
+ overridesResolver: To
1269
+ })(q(({ theme: e }) => ({
1270
+ ...e.typography.body1,
1271
+ display: "flex",
1272
+ justifyContent: "flex-start",
1273
+ alignItems: "center",
1274
+ position: "relative",
1275
+ textDecoration: "none",
1276
+ minHeight: 48,
1277
+ paddingTop: 6,
1278
+ paddingBottom: 6,
1279
+ boxSizing: "border-box",
1280
+ whiteSpace: "nowrap",
1281
+ "&:hover": {
1282
+ textDecoration: "none",
1283
+ backgroundColor: (e.vars || e).palette.action.hover,
1284
+ "@media (hover: none)": {
1285
+ backgroundColor: "transparent"
1286
+ }
1287
+ },
1288
+ [`&.${Le.selected}`]: {
1289
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : G(e.palette.primary.main, e.palette.action.selectedOpacity),
1290
+ [`&.${Le.focusVisible}`]: {
1291
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : G(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
1292
+ }
1293
+ },
1294
+ [`&.${Le.selected}:hover`]: {
1295
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : G(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1296
+ "@media (hover: none)": {
1297
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : G(e.palette.primary.main, e.palette.action.selectedOpacity)
1298
+ }
1299
+ },
1300
+ [`&.${Le.focusVisible}`]: {
1301
+ backgroundColor: (e.vars || e).palette.action.focus
1302
+ },
1303
+ [`&.${Le.disabled}`]: {
1304
+ opacity: (e.vars || e).palette.action.disabledOpacity
1305
+ },
1306
+ [`& + .${rt.root}`]: {
1307
+ marginTop: e.spacing(1),
1308
+ marginBottom: e.spacing(1)
1309
+ },
1310
+ [`& + .${rt.inset}`]: {
1311
+ marginLeft: 52
1312
+ },
1313
+ [`& .${ut.root}`]: {
1314
+ marginTop: 0,
1315
+ marginBottom: 0
1316
+ },
1317
+ [`& .${ut.inset}`]: {
1318
+ paddingLeft: 36
1319
+ },
1320
+ [`& .${bt.root}`]: {
1321
+ minWidth: 36
1322
+ },
1323
+ variants: [
1324
+ {
1325
+ props: ({ ownerState: t }) => !t.disableGutters,
1326
+ style: {
1327
+ paddingLeft: 16,
1328
+ paddingRight: 16
1329
+ }
1330
+ },
1331
+ {
1332
+ props: ({ ownerState: t }) => t.divider,
1333
+ style: {
1334
+ borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
1335
+ backgroundClip: "padding-box"
1336
+ }
1337
+ },
1338
+ {
1339
+ props: ({ ownerState: t }) => !t.dense,
1340
+ style: {
1341
+ [e.breakpoints.up("sm")]: {
1342
+ minHeight: "auto"
1343
+ }
1344
+ }
1345
+ },
1346
+ {
1347
+ props: ({ ownerState: t }) => t.dense,
1348
+ style: {
1349
+ minHeight: 32,
1350
+ paddingTop: 4,
1351
+ paddingBottom: 4,
1352
+ ...e.typography.body2,
1353
+ [`& .${bt.root} svg`]: {
1354
+ fontSize: "1.25rem"
1355
+ }
1356
+ }
1357
+ }
1358
+ ]
1359
+ }))), Ao = l.forwardRef(function(t, n) {
1360
+ const o = fe({
1361
+ props: t,
1362
+ name: "MuiMenuItem"
1363
+ }), { autoFocus: i = false, component: u = "li", dense: a = false, divider: p = false, disableGutters: h = false, focusVisibleClassName: d, role: v = "menuitem", tabIndex: S, className: I, ...x } = o, R = l.useContext(ct), M = l.useMemo(() => ({
1364
+ dense: a || R.dense || false,
1365
+ disableGutters: h
1366
+ }), [
1367
+ R.dense,
1368
+ a,
1369
+ h
1370
+ ]), c = l.useRef(null);
1371
+ Ne(() => {
1372
+ i && c.current && c.current.focus();
1373
+ }, [
1374
+ i
1375
+ ]);
1376
+ const g = {
1377
+ ...o,
1378
+ dense: M.dense,
1379
+ divider: p,
1380
+ disableGutters: h
1381
+ }, y = Eo(o), r = we(c, n);
1382
+ let s;
1383
+ return o.disabled || (s = S !== void 0 ? S : -1), m.jsx(ct.Provider, {
1384
+ value: M,
1385
+ children: m.jsx(jo, {
1386
+ ref: r,
1387
+ role: v,
1388
+ tabIndex: s,
1389
+ component: u,
1390
+ focusVisibleClassName: re(y.focusVisible, d),
1391
+ className: re(y.root, I),
1392
+ ...x,
1393
+ ownerState: g,
1394
+ classes: y
1395
+ })
1396
+ });
1397
+ });
1398
+ function zo(e) {
1399
+ return se("MuiNativeSelect", e);
1400
+ }
1401
+ const et = Y("MuiNativeSelect", [
1402
+ "root",
1403
+ "select",
1404
+ "multiple",
1405
+ "filled",
1406
+ "outlined",
1407
+ "standard",
1408
+ "disabled",
1409
+ "icon",
1410
+ "iconOpen",
1411
+ "iconFilled",
1412
+ "iconOutlined",
1413
+ "iconStandard",
1414
+ "nativeInput",
1415
+ "error"
1416
+ ]), Wo = (e) => {
1417
+ const { classes: t, variant: n, disabled: o, multiple: i, open: u, error: a } = e, p = {
1418
+ select: [
1419
+ "select",
1420
+ n,
1421
+ o && "disabled",
1422
+ i && "multiple",
1423
+ a && "error"
1424
+ ],
1425
+ icon: [
1426
+ "icon",
1427
+ `icon${ae(n)}`,
1428
+ u && "iconOpen",
1429
+ o && "disabled"
1430
+ ]
1431
+ };
1432
+ return Z(p, zo, t);
1433
+ }, Mt = O("select", {
1434
+ name: "MuiNativeSelect"
1435
+ })(({ theme: e }) => ({
1436
+ MozAppearance: "none",
1437
+ WebkitAppearance: "none",
1438
+ userSelect: "none",
1439
+ borderRadius: 0,
1440
+ cursor: "pointer",
1441
+ "&:focus": {
1442
+ borderRadius: 0
1443
+ },
1444
+ [`&.${et.disabled}`]: {
1445
+ cursor: "default"
1446
+ },
1447
+ "&[multiple]": {
1448
+ height: "auto"
1449
+ },
1450
+ "&:not([multiple]) option, &:not([multiple]) optgroup": {
1451
+ backgroundColor: (e.vars || e).palette.background.paper
1452
+ },
1453
+ variants: [
1454
+ {
1455
+ props: ({ ownerState: t }) => t.variant !== "filled" && t.variant !== "outlined",
1456
+ style: {
1457
+ "&&&": {
1458
+ paddingRight: 24,
1459
+ minWidth: 16
1460
+ }
1461
+ }
1462
+ },
1463
+ {
1464
+ props: {
1465
+ variant: "filled"
1466
+ },
1467
+ style: {
1468
+ "&&&": {
1469
+ paddingRight: 32
1470
+ }
1471
+ }
1472
+ },
1473
+ {
1474
+ props: {
1475
+ variant: "outlined"
1476
+ },
1477
+ style: {
1478
+ borderRadius: (e.vars || e).shape.borderRadius,
1479
+ "&:focus": {
1480
+ borderRadius: (e.vars || e).shape.borderRadius
1481
+ },
1482
+ "&&&": {
1483
+ paddingRight: 32
1484
+ }
1485
+ }
1486
+ }
1487
+ ]
1488
+ })), Do = O(Mt, {
1489
+ name: "MuiNativeSelect",
1490
+ slot: "Select",
1491
+ shouldForwardProp: J,
1492
+ overridesResolver: (e, t) => {
1493
+ const { ownerState: n } = e;
1494
+ return [
1495
+ t.select,
1496
+ t[n.variant],
1497
+ n.error && t.error,
1498
+ {
1499
+ [`&.${et.multiple}`]: t.multiple
1500
+ }
1501
+ ];
1502
+ }
1503
+ })({}), kt = O("svg", {
1504
+ name: "MuiNativeSelect"
1505
+ })(({ theme: e }) => ({
1506
+ position: "absolute",
1507
+ right: 0,
1508
+ top: "calc(50% - .5em)",
1509
+ pointerEvents: "none",
1510
+ color: (e.vars || e).palette.action.active,
1511
+ [`&.${et.disabled}`]: {
1512
+ color: (e.vars || e).palette.action.disabled
1513
+ },
1514
+ variants: [
1515
+ {
1516
+ props: ({ ownerState: t }) => t.open,
1517
+ style: {
1518
+ transform: "rotate(180deg)"
1519
+ }
1520
+ },
1521
+ {
1522
+ props: {
1523
+ variant: "filled"
1524
+ },
1525
+ style: {
1526
+ right: 7
1527
+ }
1528
+ },
1529
+ {
1530
+ props: {
1531
+ variant: "outlined"
1532
+ },
1533
+ style: {
1534
+ right: 7
1535
+ }
1536
+ }
1537
+ ]
1538
+ })), Uo = O(kt, {
1539
+ name: "MuiNativeSelect",
1540
+ slot: "Icon",
1541
+ overridesResolver: (e, t) => {
1542
+ const { ownerState: n } = e;
1543
+ return [
1544
+ t.icon,
1545
+ n.variant && t[`icon${ae(n.variant)}`],
1546
+ n.open && t.iconOpen
1547
+ ];
1548
+ }
1549
+ })({}), Ho = l.forwardRef(function(t, n) {
1550
+ const { className: o, disabled: i, error: u, IconComponent: a, inputRef: p, variant: h = "standard", ...d } = t, v = {
1551
+ ...t,
1552
+ disabled: i,
1553
+ variant: h,
1554
+ error: u
1555
+ }, S = Wo(v);
1556
+ return m.jsxs(l.Fragment, {
1557
+ children: [
1558
+ m.jsx(Do, {
1559
+ ownerState: v,
1560
+ className: re(S.select, o),
1561
+ disabled: i,
1562
+ ref: p || n,
1563
+ ...d
1564
+ }),
1565
+ t.multiple ? null : m.jsx(Uo, {
1566
+ as: a,
1567
+ ownerState: v,
1568
+ className: S.icon
1569
+ })
1570
+ ]
1571
+ });
1572
+ });
1573
+ var ht;
1574
+ const Vo = O("fieldset", {
1575
+ name: "MuiNotchedOutlined",
1576
+ shouldForwardProp: J
1577
+ })({
1578
+ textAlign: "left",
1579
+ position: "absolute",
1580
+ bottom: 0,
1581
+ right: 0,
1582
+ top: -5,
1583
+ left: 0,
1584
+ margin: 0,
1585
+ padding: "0 8px",
1586
+ pointerEvents: "none",
1587
+ borderRadius: "inherit",
1588
+ borderStyle: "solid",
1589
+ borderWidth: 1,
1590
+ overflow: "hidden",
1591
+ minWidth: "0%"
1592
+ }), Ko = O("legend", {
1593
+ name: "MuiNotchedOutlined",
1594
+ shouldForwardProp: J
1595
+ })(q(({ theme: e }) => ({
1596
+ float: "unset",
1597
+ width: "auto",
1598
+ overflow: "hidden",
1599
+ variants: [
1600
+ {
1601
+ props: ({ ownerState: t }) => !t.withLabel,
1602
+ style: {
1603
+ padding: 0,
1604
+ lineHeight: "11px",
1605
+ transition: e.transitions.create("width", {
1606
+ duration: 150,
1607
+ easing: e.transitions.easing.easeOut
1608
+ })
1609
+ }
1610
+ },
1611
+ {
1612
+ props: ({ ownerState: t }) => t.withLabel,
1613
+ style: {
1614
+ display: "block",
1615
+ padding: 0,
1616
+ height: 11,
1617
+ fontSize: "0.75em",
1618
+ visibility: "hidden",
1619
+ maxWidth: 0.01,
1620
+ transition: e.transitions.create("max-width", {
1621
+ duration: 50,
1622
+ easing: e.transitions.easing.easeOut
1623
+ }),
1624
+ whiteSpace: "nowrap",
1625
+ "& > span": {
1626
+ paddingLeft: 5,
1627
+ paddingRight: 5,
1628
+ display: "inline-block",
1629
+ opacity: 0,
1630
+ visibility: "visible"
1631
+ }
1632
+ }
1633
+ },
1634
+ {
1635
+ props: ({ ownerState: t }) => t.withLabel && t.notched,
1636
+ style: {
1637
+ maxWidth: "100%",
1638
+ transition: e.transitions.create("max-width", {
1639
+ duration: 100,
1640
+ easing: e.transitions.easing.easeOut,
1641
+ delay: 50
1642
+ })
1643
+ }
1644
+ }
1645
+ ]
1646
+ })));
1647
+ function _o(e) {
1648
+ const { children: t, classes: n, className: o, label: i, notched: u, ...a } = e, p = i != null && i !== "", h = {
1649
+ ...e,
1650
+ notched: u,
1651
+ withLabel: p
1652
+ };
1653
+ return m.jsx(Vo, {
1654
+ "aria-hidden": true,
1655
+ className: o,
1656
+ ownerState: h,
1657
+ ...a,
1658
+ children: m.jsx(Ko, {
1659
+ ownerState: h,
1660
+ children: p ? m.jsx("span", {
1661
+ children: i
1662
+ }) : ht || (ht = m.jsx("span", {
1663
+ className: "notranslate",
1664
+ "aria-hidden": true,
1665
+ children: "\u200B"
1666
+ }))
1667
+ })
1668
+ });
1669
+ }
1670
+ const Go = (e) => {
1671
+ const { classes: t } = e, o = Z({
1672
+ root: [
1673
+ "root"
1674
+ ],
1675
+ notchedOutline: [
1676
+ "notchedOutline"
1677
+ ],
1678
+ input: [
1679
+ "input"
1680
+ ]
1681
+ }, bo, t);
1682
+ return {
1683
+ ...t,
1684
+ ...o
1685
+ };
1686
+ }, qo = O(ze, {
1687
+ shouldForwardProp: (e) => J(e) || e === "classes",
1688
+ name: "MuiOutlinedInput",
1689
+ slot: "Root",
1690
+ overridesResolver: je
1691
+ })(q(({ theme: e }) => {
1692
+ const t = e.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
1693
+ return {
1694
+ position: "relative",
1695
+ borderRadius: (e.vars || e).shape.borderRadius,
1696
+ [`&:hover .${_.notchedOutline}`]: {
1697
+ borderColor: (e.vars || e).palette.text.primary
1698
+ },
1699
+ "@media (hover: none)": {
1700
+ [`&:hover .${_.notchedOutline}`]: {
1701
+ borderColor: e.vars ? `rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)` : t
1702
+ }
1703
+ },
1704
+ [`&.${_.focused} .${_.notchedOutline}`]: {
1705
+ borderWidth: 2
1706
+ },
1707
+ variants: [
1708
+ ...Object.entries(e.palette).filter(Ye()).map(([n]) => ({
1709
+ props: {
1710
+ color: n
1711
+ },
1712
+ style: {
1713
+ [`&.${_.focused} .${_.notchedOutline}`]: {
1714
+ borderColor: (e.vars || e).palette[n].main
1715
+ }
1716
+ }
1717
+ })),
1718
+ {
1719
+ props: {},
1720
+ style: {
1721
+ [`&.${_.error} .${_.notchedOutline}`]: {
1722
+ borderColor: (e.vars || e).palette.error.main
1723
+ },
1724
+ [`&.${_.disabled} .${_.notchedOutline}`]: {
1725
+ borderColor: (e.vars || e).palette.action.disabled
1726
+ }
1727
+ }
1728
+ },
1729
+ {
1730
+ props: ({ ownerState: n }) => n.startAdornment,
1731
+ style: {
1732
+ paddingLeft: 14
1733
+ }
1734
+ },
1735
+ {
1736
+ props: ({ ownerState: n }) => n.endAdornment,
1737
+ style: {
1738
+ paddingRight: 14
1739
+ }
1740
+ },
1741
+ {
1742
+ props: ({ ownerState: n }) => n.multiline,
1743
+ style: {
1744
+ padding: "16.5px 14px"
1745
+ }
1746
+ },
1747
+ {
1748
+ props: ({ ownerState: n, size: o }) => n.multiline && o === "small",
1749
+ style: {
1750
+ padding: "8.5px 14px"
1751
+ }
1752
+ }
1753
+ ]
1754
+ };
1755
+ })), Xo = O(_o, {
1756
+ name: "MuiOutlinedInput",
1757
+ slot: "NotchedOutline",
1758
+ overridesResolver: (e, t) => t.notchedOutline
1759
+ })(q(({ theme: e }) => {
1760
+ const t = e.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
1761
+ return {
1762
+ borderColor: e.vars ? `rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)` : t
1763
+ };
1764
+ })), Yo = O(We, {
1765
+ name: "MuiOutlinedInput",
1766
+ slot: "Input",
1767
+ overridesResolver: Ae
1768
+ })(q(({ theme: e }) => ({
1769
+ padding: "16.5px 14px",
1770
+ ...!e.vars && {
1771
+ "&:-webkit-autofill": {
1772
+ WebkitBoxShadow: e.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
1773
+ WebkitTextFillColor: e.palette.mode === "light" ? null : "#fff",
1774
+ caretColor: e.palette.mode === "light" ? null : "#fff",
1775
+ borderRadius: "inherit"
1776
+ }
1777
+ },
1778
+ ...e.vars && {
1779
+ "&:-webkit-autofill": {
1780
+ borderRadius: "inherit"
1781
+ },
1782
+ [e.getColorSchemeSelector("dark")]: {
1783
+ "&:-webkit-autofill": {
1784
+ WebkitBoxShadow: "0 0 0 100px #266798 inset",
1785
+ WebkitTextFillColor: "#fff",
1786
+ caretColor: "#fff"
1787
+ }
1788
+ }
1789
+ },
1790
+ variants: [
1791
+ {
1792
+ props: {
1793
+ size: "small"
1794
+ },
1795
+ style: {
1796
+ padding: "8.5px 14px"
1797
+ }
1798
+ },
1799
+ {
1800
+ props: ({ ownerState: t }) => t.multiline,
1801
+ style: {
1802
+ padding: 0
1803
+ }
1804
+ },
1805
+ {
1806
+ props: ({ ownerState: t }) => t.startAdornment,
1807
+ style: {
1808
+ paddingLeft: 0
1809
+ }
1810
+ },
1811
+ {
1812
+ props: ({ ownerState: t }) => t.endAdornment,
1813
+ style: {
1814
+ paddingRight: 0
1815
+ }
1816
+ }
1817
+ ]
1818
+ }))), Ot = l.forwardRef(function(t, n) {
1819
+ const o = fe({
1820
+ props: t,
1821
+ name: "MuiOutlinedInput"
1822
+ }), { components: i = {}, fullWidth: u = false, inputComponent: a = "input", label: p, multiline: h = false, notched: d, slots: v = {}, slotProps: S = {}, type: I = "text", ...x } = o, R = Go(o), M = Je(), c = Ze({
1823
+ props: o,
1824
+ muiFormControl: M,
1825
+ states: [
1826
+ "color",
1827
+ "disabled",
1828
+ "error",
1829
+ "focused",
1830
+ "hiddenLabel",
1831
+ "size",
1832
+ "required"
1833
+ ]
1834
+ }), g = {
1835
+ ...o,
1836
+ color: c.color || "primary",
1837
+ disabled: c.disabled,
1838
+ error: c.error,
1839
+ focused: c.focused,
1840
+ formControl: M,
1841
+ fullWidth: u,
1842
+ hiddenLabel: c.hiddenLabel,
1843
+ multiline: h,
1844
+ size: c.size,
1845
+ type: I
1846
+ }, y = v.root ?? i.Root ?? qo, r = v.input ?? i.Input ?? Yo, [s, b] = qe("notchedOutline", {
1847
+ elementType: Xo,
1848
+ className: R.notchedOutline,
1849
+ shouldForwardComponentProp: true,
1850
+ ownerState: g,
1851
+ externalForwardedProps: {
1852
+ slots: v,
1853
+ slotProps: S
1854
+ },
1855
+ additionalProps: {
1856
+ label: p != null && p !== "" && c.required ? m.jsxs(l.Fragment, {
1857
+ children: [
1858
+ p,
1859
+ "\u2009",
1860
+ "*"
1861
+ ]
1862
+ }) : p
1863
+ }
1864
+ });
1865
+ return m.jsx(Qe, {
1866
+ slots: {
1867
+ root: y,
1868
+ input: r
1869
+ },
1870
+ slotProps: S,
1871
+ renderSuffix: (w) => m.jsx(s, {
1872
+ ...b,
1873
+ notched: typeof d < "u" ? d : !!(w.startAdornment || w.filled || w.focused)
1874
+ }),
1875
+ fullWidth: u,
1876
+ inputComponent: a,
1877
+ multiline: h,
1878
+ ref: n,
1879
+ type: I,
1880
+ ...x,
1881
+ classes: {
1882
+ ...R,
1883
+ notchedOutline: null
1884
+ }
1885
+ });
1886
+ });
1887
+ Ot.muiName = "Input";
1888
+ function Pt(e) {
1889
+ return se("MuiSelect", e);
1890
+ }
1891
+ const Be = Y("MuiSelect", [
1892
+ "root",
1893
+ "select",
1894
+ "multiple",
1895
+ "filled",
1896
+ "outlined",
1897
+ "standard",
1898
+ "disabled",
1899
+ "focused",
1900
+ "icon",
1901
+ "iconOpen",
1902
+ "iconFilled",
1903
+ "iconOutlined",
1904
+ "iconStandard",
1905
+ "nativeInput",
1906
+ "error"
1907
+ ]);
1908
+ var yt;
1909
+ const Zo = O(Mt, {
1910
+ name: "MuiSelect",
1911
+ slot: "Select",
1912
+ overridesResolver: (e, t) => {
1913
+ const { ownerState: n } = e;
1914
+ return [
1915
+ {
1916
+ [`&.${Be.select}`]: t.select
1917
+ },
1918
+ {
1919
+ [`&.${Be.select}`]: t[n.variant]
1920
+ },
1921
+ {
1922
+ [`&.${Be.error}`]: t.error
1923
+ },
1924
+ {
1925
+ [`&.${Be.multiple}`]: t.multiple
1926
+ }
1927
+ ];
1928
+ }
1929
+ })({
1930
+ [`&.${Be.select}`]: {
1931
+ height: "auto",
1932
+ minHeight: "1.4375em",
1933
+ textOverflow: "ellipsis",
1934
+ whiteSpace: "nowrap",
1935
+ overflow: "hidden"
1936
+ }
1937
+ }), Jo = O(kt, {
1938
+ name: "MuiSelect",
1939
+ slot: "Icon",
1940
+ overridesResolver: (e, t) => {
1941
+ const { ownerState: n } = e;
1942
+ return [
1943
+ t.icon,
1944
+ n.variant && t[`icon${ae(n.variant)}`],
1945
+ n.open && t.iconOpen
1946
+ ];
1947
+ }
1948
+ })({}), Qo = O("input", {
1949
+ shouldForwardProp: (e) => Vt(e) && e !== "classes",
1950
+ name: "MuiSelect",
1951
+ slot: "NativeInput",
1952
+ overridesResolver: (e, t) => t.nativeInput
1953
+ })({
1954
+ bottom: 0,
1955
+ left: 0,
1956
+ position: "absolute",
1957
+ opacity: 0,
1958
+ pointerEvents: "none",
1959
+ width: "100%",
1960
+ boxSizing: "border-box"
1961
+ });
1962
+ function Ct(e, t) {
1963
+ return typeof t == "object" && t !== null ? e === t : String(e) === String(t);
1964
+ }
1965
+ function en(e) {
1966
+ return e == null || typeof e == "string" && !e.trim();
1967
+ }
1968
+ const tn = (e) => {
1969
+ const { classes: t, variant: n, disabled: o, multiple: i, open: u, error: a } = e, p = {
1970
+ select: [
1971
+ "select",
1972
+ n,
1973
+ o && "disabled",
1974
+ i && "multiple",
1975
+ a && "error"
1976
+ ],
1977
+ icon: [
1978
+ "icon",
1979
+ `icon${ae(n)}`,
1980
+ u && "iconOpen",
1981
+ o && "disabled"
1982
+ ],
1983
+ nativeInput: [
1984
+ "nativeInput"
1985
+ ]
1986
+ };
1987
+ return Z(p, Pt, t);
1988
+ }, on = l.forwardRef(function(t, n) {
1989
+ var _a;
1990
+ const { "aria-describedby": o, "aria-label": i, autoFocus: u, autoWidth: a, children: p, className: h, defaultOpen: d, defaultValue: v, disabled: S, displayEmpty: I, error: x = false, IconComponent: R, inputRef: M, labelId: c, MenuProps: g = {}, multiple: y, name: r, onBlur: s, onChange: b, onClose: w, onFocus: j, onOpen: $, open: z, readOnly: B, renderValue: N, required: F, SelectDisplayProps: E = {}, tabIndex: W, type: ie, value: me, variant: V = "standard", ...U } = t, [C, H] = at({
1991
+ controlled: me,
1992
+ default: v,
1993
+ name: "Select"
1994
+ }), [Ie, Te] = at({
1995
+ controlled: z,
1996
+ default: d,
1997
+ name: "Select"
1998
+ }), Q = l.useRef(null), K = l.useRef(null), [le, De] = l.useState(null), { current: ee } = l.useRef(z != null), [Re, X] = l.useState(), Ue = we(n, M), He = l.useCallback((f) => {
1999
+ K.current = f, f && De(f);
2000
+ }, []), te = le == null ? void 0 : le.parentNode;
2001
+ l.useImperativeHandle(Ue, () => ({
2002
+ focus: () => {
2003
+ K.current.focus();
2004
+ },
2005
+ node: Q.current,
2006
+ value: C
2007
+ }), [
2008
+ C
2009
+ ]), l.useEffect(() => {
2010
+ d && Ie && le && !ee && (X(a ? null : te.clientWidth), K.current.focus());
2011
+ }, [
2012
+ le,
2013
+ a
2014
+ ]), l.useEffect(() => {
2015
+ u && K.current.focus();
2016
+ }, [
2017
+ u
2018
+ ]), l.useEffect(() => {
2019
+ if (!c) return;
2020
+ const f = xt(K.current).getElementById(c);
2021
+ if (f) {
2022
+ const k = () => {
2023
+ getSelection().isCollapsed && K.current.focus();
2024
+ };
2025
+ return f.addEventListener("click", k), () => {
2026
+ f.removeEventListener("click", k);
2027
+ };
2028
+ }
2029
+ }, [
2030
+ c
2031
+ ]);
2032
+ const oe = (f, k) => {
2033
+ f ? $ && $(k) : w && w(k), ee || (X(a ? null : te.clientWidth), Te(f));
2034
+ }, L = (f) => {
2035
+ f.button === 0 && (f.preventDefault(), K.current.focus(), oe(true, f));
2036
+ }, D = (f) => {
2037
+ oe(false, f);
2038
+ }, ge = l.Children.toArray(p), $e = (f) => {
2039
+ const k = ge.find((T) => T.props.value === f.target.value);
2040
+ k !== void 0 && (H(k.props.value), b && b(f, k));
2041
+ }, de = (f) => (k) => {
2042
+ let T;
2043
+ if (k.currentTarget.hasAttribute("tabindex")) {
2044
+ if (y) {
2045
+ T = Array.isArray(C) ? C.slice() : [];
2046
+ const Se = C.indexOf(f.props.value);
2047
+ Se === -1 ? T.push(f.props.value) : T.splice(Se, 1);
2048
+ } else T = f.props.value;
2049
+ if (f.props.onClick && f.props.onClick(k), C !== T && (H(T), b)) {
2050
+ const Se = k.nativeEvent || k, ot = new Se.constructor(Se.type, Se);
2051
+ Object.defineProperty(ot, "target", {
2052
+ writable: true,
2053
+ value: {
2054
+ value: T,
2055
+ name: r
2056
+ }
2057
+ }), b(ot, f);
2058
+ }
2059
+ y || oe(false, k);
2060
+ }
2061
+ }, Ve = (f) => {
2062
+ B || [
2063
+ " ",
2064
+ "ArrowUp",
2065
+ "ArrowDown",
2066
+ "Enter"
2067
+ ].includes(f.key) && (f.preventDefault(), oe(true, f));
2068
+ }, ce = le !== null && Ie, Ke = (f) => {
2069
+ !ce && s && (Object.defineProperty(f, "target", {
2070
+ writable: true,
2071
+ value: {
2072
+ value: C,
2073
+ name: r
2074
+ }
2075
+ }), s(f));
2076
+ };
2077
+ delete U["aria-invalid"];
2078
+ let ne, be;
2079
+ const A = [];
2080
+ let ve = false;
2081
+ (wt({
2082
+ value: C
2083
+ }) || I) && (N ? ne = N(C) : ve = true);
2084
+ const Me = ge.map((f) => {
2085
+ if (!l.isValidElement(f)) return null;
2086
+ let k;
2087
+ if (y) {
2088
+ if (!Array.isArray(C)) throw new Error(St(2));
2089
+ k = C.some((T) => Ct(T, f.props.value)), k && ve && A.push(f.props.children);
2090
+ } else k = Ct(C, f.props.value), k && ve && (be = f.props.children);
2091
+ return l.cloneElement(f, {
2092
+ "aria-selected": k ? "true" : "false",
2093
+ onClick: de(f),
2094
+ onKeyUp: (T) => {
2095
+ T.key === " " && T.preventDefault(), f.props.onKeyUp && f.props.onKeyUp(T);
2096
+ },
2097
+ role: "option",
2098
+ selected: k,
2099
+ value: void 0,
2100
+ "data-value": f.props.value
2101
+ });
2102
+ });
2103
+ ve && (y ? A.length === 0 ? ne = null : ne = A.reduce((f, k, T) => (f.push(k), T < A.length - 1 && f.push(", "), f), []) : ne = be);
2104
+ let ke = Re;
2105
+ !a && ee && le && (ke = te.clientWidth);
2106
+ let he;
2107
+ typeof W < "u" ? he = W : he = S ? null : 0;
2108
+ const ye = E.id || (r ? `mui-component-select-${r}` : void 0), ue = {
2109
+ ...t,
2110
+ variant: V,
2111
+ value: C,
2112
+ open: ce,
2113
+ error: x
2114
+ }, P = tn(ue), Ce = {
2115
+ ...g.PaperProps,
2116
+ ...(_a = g.slotProps) == null ? void 0 : _a.paper
2117
+ }, Oe = Ht();
2118
+ return m.jsxs(l.Fragment, {
2119
+ children: [
2120
+ m.jsx(Zo, {
2121
+ as: "div",
2122
+ ref: He,
2123
+ tabIndex: he,
2124
+ role: "combobox",
2125
+ "aria-controls": ce ? Oe : void 0,
2126
+ "aria-disabled": S ? "true" : void 0,
2127
+ "aria-expanded": ce ? "true" : "false",
2128
+ "aria-haspopup": "listbox",
2129
+ "aria-label": i,
2130
+ "aria-labelledby": [
2131
+ c,
2132
+ ye
2133
+ ].filter(Boolean).join(" ") || void 0,
2134
+ "aria-describedby": o,
2135
+ "aria-required": F ? "true" : void 0,
2136
+ "aria-invalid": x ? "true" : void 0,
2137
+ onKeyDown: Ve,
2138
+ onMouseDown: S || B ? null : L,
2139
+ onBlur: Ke,
2140
+ onFocus: j,
2141
+ ...E,
2142
+ ownerState: ue,
2143
+ className: re(E.className, P.select, h),
2144
+ id: ye,
2145
+ children: en(ne) ? yt || (yt = m.jsx("span", {
2146
+ className: "notranslate",
2147
+ "aria-hidden": true,
2148
+ children: "\u200B"
2149
+ })) : ne
2150
+ }),
2151
+ m.jsx(Qo, {
2152
+ "aria-invalid": x,
2153
+ value: Array.isArray(C) ? C.join(",") : C,
2154
+ name: r,
2155
+ ref: Q,
2156
+ "aria-hidden": true,
2157
+ onChange: $e,
2158
+ tabIndex: -1,
2159
+ disabled: S,
2160
+ className: P.nativeInput,
2161
+ autoFocus: u,
2162
+ required: F,
2163
+ ...U,
2164
+ ownerState: ue
2165
+ }),
2166
+ m.jsx(Jo, {
2167
+ as: R,
2168
+ className: P.icon,
2169
+ ownerState: ue
2170
+ }),
2171
+ m.jsx(Bo, {
2172
+ id: `menu-${r || ""}`,
2173
+ anchorEl: te,
2174
+ open: ce,
2175
+ onClose: D,
2176
+ anchorOrigin: {
2177
+ vertical: "bottom",
2178
+ horizontal: "center"
2179
+ },
2180
+ transformOrigin: {
2181
+ vertical: "top",
2182
+ horizontal: "center"
2183
+ },
2184
+ ...g,
2185
+ slotProps: {
2186
+ ...g.slotProps,
2187
+ list: {
2188
+ "aria-labelledby": c,
2189
+ role: "listbox",
2190
+ "aria-multiselectable": y ? "true" : void 0,
2191
+ disableListWrap: true,
2192
+ id: Oe,
2193
+ ...g.MenuListProps
2194
+ },
2195
+ paper: {
2196
+ ...Ce,
2197
+ style: {
2198
+ minWidth: ke,
2199
+ ...Ce != null ? Ce.style : null
2200
+ }
2201
+ }
2202
+ },
2203
+ children: Me
2204
+ })
2205
+ ]
2206
+ });
2207
+ }), nn = (e) => {
2208
+ const { classes: t } = e, o = Z({
2209
+ root: [
2210
+ "root"
2211
+ ]
2212
+ }, Pt, t);
2213
+ return {
2214
+ ...t,
2215
+ ...o
2216
+ };
2217
+ }, tt = {
2218
+ name: "MuiSelect",
2219
+ overridesResolver: (e, t) => t.root,
2220
+ shouldForwardProp: (e) => J(e) && e !== "variant",
2221
+ slot: "Root"
2222
+ }, rn = O(Rt, tt)(""), an = O(Ot, tt)(""), sn = O(It, tt)(""), Ft = l.forwardRef(function(t, n) {
2223
+ const o = fe({
2224
+ name: "MuiSelect",
2225
+ props: t
2226
+ }), { autoWidth: i = false, children: u, classes: a = {}, className: p, defaultOpen: h = false, displayEmpty: d = false, IconComponent: v = ho, id: S, input: I, inputProps: x, label: R, labelId: M, MenuProps: c, multiple: g = false, native: y = false, onClose: r, onOpen: s, open: b, renderValue: w, SelectDisplayProps: j, variant: $ = "outlined", ...z } = o, B = y ? Ho : on, N = Je(), F = Ze({
2227
+ props: o,
2228
+ muiFormControl: N,
2229
+ states: [
2230
+ "variant",
2231
+ "error"
2232
+ ]
2233
+ }), E = F.variant || $, W = {
2234
+ ...o,
2235
+ variant: E,
2236
+ classes: a
2237
+ }, ie = nn(W), { root: me, ...V } = ie, U = I || {
2238
+ standard: m.jsx(rn, {
2239
+ ownerState: W
2240
+ }),
2241
+ outlined: m.jsx(an, {
2242
+ label: R,
2243
+ ownerState: W
2244
+ }),
2245
+ filled: m.jsx(sn, {
2246
+ ownerState: W
2247
+ })
2248
+ }[E], C = we(n, Kt(U));
2249
+ return m.jsx(l.Fragment, {
2250
+ children: l.cloneElement(U, {
2251
+ inputComponent: B,
2252
+ inputProps: {
2253
+ children: u,
2254
+ error: F.error,
2255
+ IconComponent: v,
2256
+ variant: E,
2257
+ type: void 0,
2258
+ multiple: g,
2259
+ ...y ? {
2260
+ id: S
2261
+ } : {
2262
+ autoWidth: i,
2263
+ defaultOpen: h,
2264
+ displayEmpty: d,
2265
+ labelId: M,
2266
+ MenuProps: c,
2267
+ onClose: r,
2268
+ onOpen: s,
2269
+ open: b,
2270
+ renderValue: w,
2271
+ SelectDisplayProps: {
2272
+ id: S,
2273
+ ...j
2274
+ }
2275
+ },
2276
+ ...x,
2277
+ classes: x ? Xe(V, x.classes) : V,
2278
+ ...I ? I.props.inputProps : {}
2279
+ },
2280
+ ...(g && y || d) && E === "outlined" ? {
2281
+ notched: true
2282
+ } : {},
2283
+ ref: C,
2284
+ className: re(U.props.className, p, ie.root),
2285
+ ...!I && {
2286
+ variant: E
2287
+ },
2288
+ ...z
2289
+ })
2290
+ });
2291
+ });
2292
+ Ft.muiName = "Select";
2293
+ const ln = () => [
2294
+ {
2295
+ type: "custom",
2296
+ component: () => m.jsx(st, {
2297
+ dividerText: "selection"
2298
+ })
2299
+ },
2300
+ {
2301
+ name: "cid",
2302
+ type: "id",
2303
+ label: "cid",
2304
+ onChange: _t([
2305
+ "boolean",
2306
+ "number",
2307
+ "string",
2308
+ "mixed"
2309
+ ], "cid")
2310
+ },
2311
+ {
2312
+ type: "custom",
2313
+ component: () => m.jsx(st, {
2314
+ dividerText: "arrow"
2315
+ })
2316
+ },
2317
+ {
2318
+ name: "arrowColor",
2319
+ label: "arrow_color",
2320
+ type: "color"
2321
+ }
2322
+ ];
2323
+ function dn() {
2324
+ const e = l.useRef(null), { width: t } = Gt(e == null ? void 0 : e.current), n = l.useContext(qt), { widget: o, theme: i } = n, u = o.data.cidObject, a = o.data.oidObject, { textStyles: p, fontStyles: h } = Xt(o.style), { data: d, states: v } = Yt("oid"), { value: S, updateValue: I } = it("oid"), { updateValue: x } = it("cid"), R = a == null ? void 0 : a.type, M = R === "boolean" || R === "number" || R === "string" || R === "mixed", c = v.findIndex((y) => String(y.value) === String(S)), g = (y) => {
2325
+ const r = y.target.value, b = v[r].value;
2326
+ u && x(b), I(b);
2327
+ };
2328
+ return m.jsxs(Zt, {
2329
+ isValidType: M,
2330
+ data: d,
2331
+ oidValue: S,
2332
+ children: [
2333
+ m.jsx(Jt, {
2334
+ data: d,
2335
+ widget: o
2336
+ }),
2337
+ m.jsx(lt, {
2338
+ ref: e,
2339
+ sx: {
2340
+ overflow: "auto",
2341
+ width: "100%",
2342
+ height: "100%",
2343
+ display: "flex",
2344
+ justifyContent: "center",
2345
+ alignItems: "center"
2346
+ },
2347
+ children: m.jsx(Ft, {
2348
+ variant: "standard",
2349
+ disableUnderline: true,
2350
+ value: c !== -1 ? c : "",
2351
+ onChange: g,
2352
+ MenuProps: {
2353
+ sx: {
2354
+ maxWidth: t
2355
+ },
2356
+ MenuListProps: {
2357
+ sx: {
2358
+ background: d.backgroundColor ? G(d.backgroundColor, 0.7) : d.background
2359
+ }
2360
+ }
2361
+ },
2362
+ sx: {
2363
+ width: "100%",
2364
+ height: "100%",
2365
+ maxWidth: `calc(${t}px - 10%)`,
2366
+ "& .MuiSelect-select": {
2367
+ backgroundColor: G(c !== -1 ? o.data[`iconSmall${c + 1}`] || o.data[`icon${c + 1}`] || o.data.iconSmall || o.data.icon ? o.data[`iconColor${c + 1}`] || o.data.iconColor || d.iconColor || i.palette.primary.main : o.data[`textColor${c + 1}`] || o.data.textColor || d.textColor || i.palette.primary.main : o.data.iconColor || d.textColor || i.palette.primary.main, 0.15),
2368
+ paddingLeft: 1
2369
+ },
2370
+ "& .MuiSelect-icon": {
2371
+ color: c !== -1 ? o.data[`iconSmall${c + 1}`] || o.data[`icon${c + 1}`] || o.data.iconSmall || o.data.icon ? o.data[`iconColor${c + 1}`] || o.data.iconColor || d.iconColor || i.palette.primary.main : o.data[`textColor${c + 1}`] || o.data.textColor || d.textColor || i.palette.primary.main : o.data.arrowColor || o.data.iconColor || d.textColor || i.palette.primary.main
2372
+ },
2373
+ "&.Mui-focused": {
2374
+ ariaHidden: "true",
2375
+ "& .MuiSelect-select": {
2376
+ backgroundColor: G(c !== -1 ? o.data[`iconSmall${c + 1}`] || o.data[`icon${c + 1}`] || o.data.iconSmall || o.data.icon ? o.data[`iconColor${c + 1}`] || o.data.iconColor || d.iconColor || i.palette.primary.main : o.data[`textColor${c + 1}`] || o.data.textColor || d.textColor || i.palette.primary.main : o.data.iconColor || d.textColor || i.palette.primary.main, 0.2),
2377
+ paddingLeft: 1
2378
+ }
2379
+ }
2380
+ },
2381
+ children: v.map((y, r) => {
2382
+ var _a;
2383
+ const s = o.data[`iconSmall${r + 1}`] || o.data[`icon${r + 1}`] || o.data.iconSmall || o.data.icon, w = s ? o.data[`iconColor${r + 1}`] || o.data.iconColor || d.iconColor || i.palette.primary.main : o.data[`textColor${r + 1}`] || o.data.textColor || d.textColor || i.palette.primary.main;
2384
+ return m.jsx(Ao, {
2385
+ value: r,
2386
+ sx: {
2387
+ "& .MuiTouchRipple-root": {
2388
+ color: w
2389
+ },
2390
+ "&.Mui-selected": {
2391
+ backgroundColor: G(w, 0.16)
2392
+ },
2393
+ "&.Mui-selected:hover": {
2394
+ backgroundColor: G(w, 0.24)
2395
+ },
2396
+ "&:hover": {
2397
+ backgroundColor: G(w, 0.08)
2398
+ },
2399
+ background: o.data[`backgroundColor${r + 1}`] && `${o.data[`backgroundColor${r + 1}`]}!important` || `${o.data[`background${r + 1}`]}!important`
2400
+ },
2401
+ children: m.jsxs(lo, {
2402
+ direction: "row",
2403
+ spacing: s ? 1 : 0,
2404
+ sx: {
2405
+ alignItems: "center"
2406
+ },
2407
+ children: [
2408
+ m.jsx(ao, {
2409
+ alt: "",
2410
+ src: typeof s == "string" ? s : typeof s == "number" ? s.toString() : void 0,
2411
+ style: {
2412
+ position: "relative",
2413
+ top: `calc(0px - ${o.data[`iconYOffset${r + 1}`]})`,
2414
+ right: `calc(0px - ${o.data[`iconXOffset${r + 1}`]})`,
2415
+ height: !s && "0px" || (typeof o.data[`iconSize${r + 1}`] == "number" ? `calc(24px * ${o.data[`iconSize${r + 1}`]} / 100)` : typeof o.data.iconSize == "number" ? `calc(24px * ${o.data.iconSize} / 100)` : "24px"),
2416
+ ...Qt(typeof s == "string" ? s : typeof s == "number" ? s.toString() : void 0, String(S) === String(o.data[`value${r + 1}`]) && o.data.iconColorActive || o.data[`iconColor${r + 1}`] || o.data.iconColor || d.iconColor || i.palette.primary.main)
2417
+ }
2418
+ }),
2419
+ m.jsx(eo, {
2420
+ component: lt,
2421
+ variant: "subtitle2",
2422
+ sx: {
2423
+ whiteSpace: "pre-wrap",
2424
+ ...h,
2425
+ ...p,
2426
+ fontSize: o.data[`valueSize${r + 1}`] || d.valueSize,
2427
+ textAlign: "left",
2428
+ bgcolor: "transparent",
2429
+ color: o.data[`textColor${r + 1}`] || o.data.textColor || d.textColor || i.palette.primary.main,
2430
+ textTransform: "none",
2431
+ width: "100%",
2432
+ height: "100%",
2433
+ flexGrow: 1,
2434
+ alignContent: "center"
2435
+ },
2436
+ contentEditable: "false",
2437
+ dangerouslySetInnerHTML: {
2438
+ __html: o.data[`alias${r + 1}`] && ((_a = o.data[`alias${r + 1}`]) == null ? void 0 : _a.replace(/(\r\n|\n|\r)/gm, "")) || o.data[`value${r + 1}`] && `${o.data[`value${r + 1}`]}${a == null ? void 0 : a.unit}` || ""
2439
+ }
2440
+ })
2441
+ ]
2442
+ })
2443
+ }, String(y.value));
2444
+ })
2445
+ })
2446
+ })
2447
+ ]
2448
+ });
2449
+ }
2450
+ Lt = class extends to {
2451
+ static getWidgetInfo() {
2452
+ return {
2453
+ id: "tplSelectCollectionWidget",
2454
+ visSet: "vis-2-widgets-collection",
2455
+ visSetLabel: "widgets_collection",
2456
+ visName: "SelectCollectionWidget",
2457
+ visWidgetLabel: "select_collection_widget",
2458
+ visOrder: 7,
2459
+ visAttrs: [
2460
+ {
2461
+ name: "common",
2462
+ fields: [
2463
+ ...dt({
2464
+ groupName: ""
2465
+ })
2466
+ ]
2467
+ },
2468
+ {
2469
+ name: "select_collection",
2470
+ label: "group_select_collection",
2471
+ fields: [
2472
+ ...oo([
2473
+ "boolean",
2474
+ "number",
2475
+ "string",
2476
+ "mixed"
2477
+ ]),
2478
+ ...no(),
2479
+ ...ln()
2480
+ ]
2481
+ },
2482
+ {
2483
+ name: "values",
2484
+ label: "values",
2485
+ indexFrom: 1,
2486
+ indexTo: "values_count",
2487
+ fields: [
2488
+ ...dt({
2489
+ groupName: "",
2490
+ allFields: false
2491
+ })
2492
+ ]
2493
+ }
2494
+ ],
2495
+ visDefaultStyle: {
2496
+ width: "100%",
2497
+ height: "100px",
2498
+ position: "relative"
2499
+ },
2500
+ visPrev: "widgets/vis-2-widgets-collection/img/prev-collection-select.png"
2501
+ };
2502
+ }
2503
+ getWidgetInfo() {
2504
+ return Lt.getWidgetInfo();
2505
+ }
2506
+ propertiesUpdate() {
2507
+ }
2508
+ onRxDataChanged() {
2509
+ this.propertiesUpdate();
2510
+ }
2511
+ onRxStyleChanged() {
2512
+ }
2513
+ onStateUpdated(t, n) {
2514
+ }
2515
+ componentDidMount() {
2516
+ super.componentDidMount(), this.propertiesUpdate();
2517
+ }
2518
+ renderWidgetBody(t) {
2519
+ super.renderWidgetBody(t);
2520
+ const n = {
2521
+ id: t.id,
2522
+ refService: t.refService,
2523
+ style: t.style,
2524
+ widget: {
2525
+ data: this.state.rxData,
2526
+ style: this.state.rxStyle
2527
+ },
2528
+ setValue: this.setValue,
2529
+ setState: this.setState.bind(this),
2530
+ values: this.state.values,
2531
+ isSignalVisible: this.isSignalVisible.bind(this),
2532
+ getPropertyValue: this.getPropertyValue.bind(this),
2533
+ mode: this.props.context.themeType,
2534
+ socket: this.props.context.socket,
2535
+ theme: this.props.context.theme,
2536
+ wrappedContent: this.wrappedCollectionContent
2537
+ };
2538
+ return t.widget.data.noCard || t.widget.usedInWidget ? this.wrappedCollectionContent = false : this.wrappedCollectionContent = true, ro(this.wrapContent(m.jsx(dn, {})), n);
2539
+ }
2540
+ };
2541
+ });
2542
+ export {
2543
+ __tla,
2544
+ Lt as default
2545
+ };