iobroker.vis-2-widgets-collection 2.0.2 → 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 +8 -0
  2. package/io-package.json +27 -27
  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,485 @@
1
+ import { j as e, C as c, M as w, w as p, A as k, T as B, D as v, o as A, I, q as W, x as D, y as V, s as H, z as O, n as R, G as z, H as P, L as $, __tla as __tla_0 } from "./commonFields-Dc3dYGx-.js";
2
+ import { v as d, __tla as __tla_1 } from "./vis2CollectionWidget__loadShare__react__loadShare__-L1bZe9z4.js";
3
+ import { u as F, __tla as __tla_2 } from "./useHtmlValue-Dcwl_hqT.js";
4
+ import { C as M, __tla as __tla_3 } from "./Close-APpa6HX8.js";
5
+ import "./_commonjsHelpers-Cpj98o6Y.js";
6
+ import "./vis2CollectionWidget__mf_v__runtimeInit__mf_v__-Cugi9Gwb.js";
7
+ let S;
8
+ let __tla = Promise.all([
9
+ (() => {
10
+ try {
11
+ return __tla_0;
12
+ } catch {
13
+ }
14
+ })(),
15
+ (() => {
16
+ try {
17
+ return __tla_1;
18
+ } catch {
19
+ }
20
+ })(),
21
+ (() => {
22
+ try {
23
+ return __tla_2;
24
+ } catch {
25
+ }
26
+ })(),
27
+ (() => {
28
+ try {
29
+ return __tla_3;
30
+ } catch {
31
+ }
32
+ })()
33
+ ]).then(async () => {
34
+ const L = () => [
35
+ {
36
+ name: "view",
37
+ label: "view",
38
+ type: "select-views",
39
+ multiple: false
40
+ },
41
+ {
42
+ label: "",
43
+ type: "custom",
44
+ component: () => e.jsx(c, {})
45
+ },
46
+ {
47
+ name: "dialogAutoClose",
48
+ label: "dialog_auto_close",
49
+ type: "slider",
50
+ min: 0,
51
+ max: 3e4,
52
+ step: 100
53
+ },
54
+ {
55
+ label: "",
56
+ type: "custom",
57
+ component: () => e.jsx(c, {})
58
+ },
59
+ {
60
+ name: "oid",
61
+ type: "id",
62
+ label: "oid",
63
+ tooltip: "dialog_set_oid_tooltip"
64
+ },
65
+ {
66
+ label: "",
67
+ type: "custom",
68
+ component: () => e.jsx(c, {})
69
+ },
70
+ {
71
+ name: "dialogHeaderAsTitle",
72
+ label: "dialog_header_as_title",
73
+ type: "checkbox",
74
+ default: false
75
+ },
76
+ {
77
+ label: "",
78
+ type: "custom",
79
+ component: () => e.jsx(c, {})
80
+ },
81
+ {
82
+ name: "dialogWidth",
83
+ label: "dialog_width",
84
+ type: "slider",
85
+ min: 1,
86
+ max: 100,
87
+ default: 100,
88
+ step: 1
89
+ },
90
+ {
91
+ name: "dialogHeight",
92
+ label: "dialog_height",
93
+ type: "slider",
94
+ min: 1,
95
+ max: 100,
96
+ default: 100,
97
+ step: 1
98
+ },
99
+ {
100
+ name: "dialogInPixel",
101
+ label: "dialog_in_pixel",
102
+ type: "checkbox",
103
+ default: false
104
+ },
105
+ {
106
+ label: "",
107
+ type: "custom",
108
+ component: () => e.jsx(c, {})
109
+ },
110
+ {
111
+ name: "dialogBackgroundColor",
112
+ label: "background_color",
113
+ type: "color"
114
+ },
115
+ {
116
+ label: "",
117
+ type: "custom",
118
+ component: () => e.jsx(c, {
119
+ dividerText: "dialog_button"
120
+ })
121
+ },
122
+ {
123
+ name: "value",
124
+ label: "dialog_text",
125
+ type: "html",
126
+ default: ""
127
+ },
128
+ {
129
+ label: "",
130
+ type: "custom",
131
+ component: () => e.jsx(c, {})
132
+ },
133
+ {
134
+ name: "dialogCloseButtonTop",
135
+ label: "dialog_close_button_top",
136
+ type: "checkbox",
137
+ default: false
138
+ },
139
+ {
140
+ name: "dialogCloseButtonBottom",
141
+ label: "dialog_close_button_bottom",
142
+ type: "checkbox",
143
+ default: false
144
+ },
145
+ {
146
+ name: "dialogCloseButtonColor",
147
+ label: "dialog_close_button_color",
148
+ type: "color"
149
+ },
150
+ {
151
+ label: "",
152
+ type: "custom",
153
+ component: () => e.jsx(c, {})
154
+ },
155
+ {
156
+ name: "onlyIcon",
157
+ label: "only_icon",
158
+ type: "checkbox",
159
+ default: false,
160
+ hidden: "data.onlyText"
161
+ },
162
+ {
163
+ name: "onlyText",
164
+ label: "only_text",
165
+ type: "checkbox",
166
+ default: false,
167
+ hidden: "data.onlyIcon"
168
+ }
169
+ ];
170
+ function E({ open: x, handleClose: a, widget: t, data: l, getWidgetView: i, fontStyles: y, textStyles: u }) {
171
+ var _a;
172
+ const h = d.useRef(null), [r, o] = d.useState(null), s = (_a = h.current) == null ? void 0 : _a.header;
173
+ d.useEffect(() => {
174
+ t.data.dialogHeaderAsTitle && s && r && (t.data.dialogHeaderAsTitle && (s.style.width = "0px", s.style.height = "0px"), r.innerHTML = l.header, r.style.height = "auto", r.style.width = "auto");
175
+ }, [
176
+ s,
177
+ r,
178
+ l.header,
179
+ t.data.dialogHeaderAsTitle
180
+ ]);
181
+ const f = e.jsx(I, {
182
+ sx: {
183
+ alignSelf: "flex-end",
184
+ filter: "brightness(1.5)",
185
+ color: (n) => t.data.dialogCloseButtonColor || l.frameBackgroundColor || n.palette.background.default
186
+ },
187
+ "aria-label": "delete",
188
+ onClick: a,
189
+ children: e.jsx(M, {})
190
+ });
191
+ return e.jsx(w, {
192
+ onClose: a,
193
+ open: x,
194
+ sx: {
195
+ display: "flex",
196
+ justifyContent: "center",
197
+ alignItems: "center",
198
+ backgroundColor: t.data.dialogBackgroundColor || "inherit"
199
+ },
200
+ children: e.jsx(p, {
201
+ sx: {
202
+ width: t.data.dialogInPixel ? `${t.data.dialogWidth}px` : `${t.data.dialogWidth}%`,
203
+ height: t.data.dialogInPixel ? `${t.data.dialogHeight}px` : `${t.data.dialogHeight}%`
204
+ },
205
+ children: e.jsxs(k, {
206
+ ref: h,
207
+ data: l,
208
+ sx: {
209
+ flexDirection: "column",
210
+ background: l.backgroundColor || l.background
211
+ },
212
+ children: [
213
+ e.jsxs(p, {
214
+ sx: {
215
+ position: "relative",
216
+ width: "100%",
217
+ height: "auto",
218
+ display: "flex",
219
+ justifyContent: "flex-end",
220
+ alignItems: "center",
221
+ p: t.data.dialogCloseButtonTop || !t.data.dialogHeaderAsTitle ? 0 : 2
222
+ },
223
+ children: [
224
+ e.jsx(p, {
225
+ sx: {
226
+ position: "absolute",
227
+ left: 0,
228
+ width: "100%"
229
+ },
230
+ children: e.jsx(B, {
231
+ ref: o,
232
+ noWrap: true,
233
+ variant: "body2",
234
+ sx: {
235
+ ...y,
236
+ ...u,
237
+ fontSize: l.headerSize,
238
+ color: l.textColor,
239
+ px: t.data.dialogCloseButtonTop ? 4 : 0
240
+ }
241
+ })
242
+ }),
243
+ t.data.dialogCloseButtonTop && f
244
+ ]
245
+ }),
246
+ e.jsx(e.Fragment, {
247
+ children: t.data.dialogCloseButtonTop && e.jsx(v, {
248
+ sx: {
249
+ width: "100%",
250
+ opacity: "0.5",
251
+ background: (n) => l.frameBackgroundColor || n.palette.background.default
252
+ }
253
+ })
254
+ }),
255
+ e.jsx(p, {
256
+ sx: {
257
+ "::-webkit-scrollbar-track": {
258
+ background: l.frameBackgroundColor && A(l.frameBackgroundColor, 0.5)
259
+ },
260
+ "::-webkit-scrollbar-thumb": {
261
+ opacity: "0.5",
262
+ background: l.frameBackgroundColor && A(l.frameBackgroundColor, 0.7)
263
+ },
264
+ position: "relative",
265
+ overflow: "auto",
266
+ width: "100%",
267
+ height: "100%"
268
+ },
269
+ children: i(t.data.view || "", {
270
+ style: {}
271
+ })
272
+ }),
273
+ e.jsxs(e.Fragment, {
274
+ children: [
275
+ t.data.dialogCloseButtonBottom && e.jsx(v, {
276
+ sx: {
277
+ width: "100%",
278
+ opacity: "0.5",
279
+ background: (n) => l.frameBackgroundColor || n.palette.background.default
280
+ }
281
+ }),
282
+ t.data.dialogCloseButtonBottom && f
283
+ ]
284
+ })
285
+ ]
286
+ })
287
+ })
288
+ });
289
+ }
290
+ const U = H(R)({
291
+ width: "100% !important",
292
+ height: "100% !important",
293
+ display: "flex",
294
+ justifyContent: "center",
295
+ alignItems: "center"
296
+ });
297
+ function G() {
298
+ const [x, a] = d.useState(false), t = d.useRef(null), l = d.useContext(W), { widget: i, getWidgetView: y, setValue: u } = l, { textStyles: h, fontStyles: r } = D(i.style), { data: o, oidValue: s } = V("oid"), f = i.data.oidObject, n = f == null ? void 0 : f._id, T = (f == null ? void 0 : f.type) === "boolean" || !i.data.oid || i.data.oid === "nothing_selected", b = d.useCallback(() => {
299
+ if (t.current) return;
300
+ const j = i.data.dialogAutoClose, m = String(j);
301
+ if (!j || m === "" || m === "0") {
302
+ a(true);
303
+ return;
304
+ }
305
+ let g;
306
+ m === "true" ? g = 1e4 : g = parseInt(m, 10), g < 60 && (g *= 1e3), g = g || 1e3, t.current = setTimeout(() => {
307
+ t.current = null, n && u(n, false), a(false);
308
+ }, g), a(true);
309
+ }, [
310
+ n,
311
+ u,
312
+ i.data.dialogAutoClose
313
+ ]), C = d.useCallback(() => {
314
+ t.current && (clearTimeout(t.current), t.current = null), n && u(n, false), a(false);
315
+ }, [
316
+ n,
317
+ u
318
+ ]), _ = F(s, i, o);
319
+ return d.useEffect(() => {
320
+ s != null && (s ? b() : C());
321
+ }, [
322
+ s,
323
+ b,
324
+ C
325
+ ]), e.jsxs(e.Fragment, {
326
+ children: [
327
+ e.jsx(E, {
328
+ open: x,
329
+ handleClose: C,
330
+ widget: i,
331
+ data: o,
332
+ getWidgetView: y,
333
+ fontStyles: r,
334
+ textStyles: h
335
+ }),
336
+ e.jsx(k, {
337
+ isValidType: T,
338
+ data: o,
339
+ children: e.jsx(p, {
340
+ sx: {
341
+ width: "100%",
342
+ height: "100%",
343
+ display: "flex"
344
+ },
345
+ children: e.jsxs(U, {
346
+ onClick: () => {
347
+ n && u(n, true), b();
348
+ },
349
+ sx: {
350
+ "& .MuiTouchRipple-root span": {
351
+ color: o.iconColor
352
+ }
353
+ },
354
+ children: [
355
+ i.data.onlyIcon || !i.data.onlyText && !i.data.onlyIcon ? e.jsx(p, {
356
+ sx: {
357
+ overflow: "hidden",
358
+ p: 0.5,
359
+ width: "100%",
360
+ height: "100%",
361
+ display: "flex",
362
+ justifyContent: "center",
363
+ alignItems: "center"
364
+ },
365
+ children: e.jsx("img", {
366
+ alt: "",
367
+ src: o.icon || "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
368
+ style: {
369
+ position: "relative",
370
+ objectFit: "contain",
371
+ top: `calc(0px - ${o.iconYOffset})`,
372
+ right: `calc(0px - ${o.iconXOffset})`,
373
+ width: typeof o.iconSizeOnly == "number" && `calc(100% * ${o.iconSizeOnly} / 100)` || "100%",
374
+ height: typeof o.iconSizeOnly == "number" && `calc(100% * ${o.iconSizeOnly} / 100)` || "100%",
375
+ ...O(o.icon, o.iconColor)
376
+ }
377
+ })
378
+ }) : null,
379
+ i.data.onlyText || !i.data.onlyText && !i.data.onlyIcon ? e.jsx(B, {
380
+ variant: "body2",
381
+ sx: {
382
+ overflow: "hidden",
383
+ width: "100%",
384
+ height: "100%",
385
+ p: 0.5,
386
+ display: "flex",
387
+ flexDirection: "column",
388
+ justifyContent: "center",
389
+ alignItems: "center",
390
+ ...r,
391
+ ...h,
392
+ fontSize: o.valueSize,
393
+ color: o.textColor,
394
+ textTransform: "none"
395
+ },
396
+ dangerouslySetInnerHTML: {
397
+ __html: _ !== void 0 ? String(_) : ""
398
+ }
399
+ }) : null
400
+ ]
401
+ })
402
+ })
403
+ })
404
+ ]
405
+ });
406
+ }
407
+ S = class extends z {
408
+ static getWidgetInfo() {
409
+ return {
410
+ id: "tplDialogCollectionWidget",
411
+ visSet: "vis-2-widgets-collection",
412
+ visSetLabel: "widgets_collection",
413
+ visName: "DialogCollectionWidget",
414
+ visWidgetLabel: "dialog_collection_widget",
415
+ visOrder: 8,
416
+ visAttrs: [
417
+ {
418
+ name: "common",
419
+ fields: [
420
+ ...P({
421
+ groupName: "",
422
+ allFields: true
423
+ })
424
+ ]
425
+ },
426
+ {
427
+ name: "dialog",
428
+ label: "group_dialog",
429
+ fields: [
430
+ ...L()
431
+ ]
432
+ }
433
+ ],
434
+ visDefaultStyle: {
435
+ width: "100%",
436
+ height: "100px",
437
+ position: "relative"
438
+ },
439
+ visPrev: "widgets/vis-2-widgets-collection/img/prev-collection-dialog.png"
440
+ };
441
+ }
442
+ getWidgetInfo() {
443
+ return S.getWidgetInfo();
444
+ }
445
+ propertiesUpdate() {
446
+ }
447
+ onRxDataChanged() {
448
+ this.propertiesUpdate();
449
+ }
450
+ onRxStyleChanged() {
451
+ }
452
+ onStateUpdated(a, t) {
453
+ }
454
+ componentDidMount() {
455
+ super.componentDidMount(), this.propertiesUpdate();
456
+ }
457
+ renderWidgetBody(a) {
458
+ super.renderWidgetBody(a);
459
+ const t = {
460
+ id: a.id,
461
+ refService: a.refService,
462
+ style: a.style,
463
+ widget: {
464
+ data: this.state.rxData,
465
+ style: this.state.rxStyle
466
+ },
467
+ setValue: this.setValue,
468
+ setState: this.setState.bind(this),
469
+ values: this.state.values,
470
+ isSignalVisible: this.isSignalVisible.bind(this),
471
+ getPropertyValue: this.getPropertyValue.bind(this),
472
+ mode: this.props.context.themeType,
473
+ socket: this.props.context.socket,
474
+ theme: this.props.context.theme,
475
+ getWidgetView: this.getWidgetView.bind(this),
476
+ wrappedContent: this.wrappedCollectionContent
477
+ };
478
+ return a.widget.data.noCard || a.widget.usedInWidget ? this.wrappedCollectionContent = false : this.wrappedCollectionContent = true, $(this.wrapContent(e.jsx(G, {})), t);
479
+ }
480
+ };
481
+ });
482
+ export {
483
+ __tla,
484
+ S as default
485
+ };
@@ -0,0 +1,207 @@
1
+ import { v as y, __tla as __tla_0 } from "./vis2CollectionWidget__loadShare__react__loadShare__-L1bZe9z4.js";
2
+ import { a as D, g as U, u as A, b as E, T as P, j as c, d as v, s as x, i as F, e as W, m as L, __tla as __tla_1 } from "./commonFields-Dc3dYGx-.js";
3
+ import { f as z } from "./formControlState-Dq1zat_P.js";
4
+ import { u as B, __tla as __tla_2 } from "./useFormControl--TM4wVzV.js";
5
+ let oe;
6
+ let __tla = Promise.all([
7
+ (() => {
8
+ try {
9
+ return __tla_0;
10
+ } catch {
11
+ }
12
+ })(),
13
+ (() => {
14
+ try {
15
+ return __tla_1;
16
+ } catch {
17
+ }
18
+ })(),
19
+ (() => {
20
+ try {
21
+ return __tla_2;
22
+ } catch {
23
+ }
24
+ })()
25
+ ]).then(async () => {
26
+ function H(e) {
27
+ return U("MuiFormControlLabel", e);
28
+ }
29
+ let t, I, G, J;
30
+ t = D("MuiFormControlLabel", [
31
+ "root",
32
+ "labelPlacementStart",
33
+ "labelPlacementTop",
34
+ "labelPlacementBottom",
35
+ "disabled",
36
+ "label",
37
+ "error",
38
+ "required",
39
+ "asterisk"
40
+ ]);
41
+ I = (e) => {
42
+ const { classes: o, disabled: s, labelPlacement: r, error: p, required: m } = e, d = {
43
+ root: [
44
+ "root",
45
+ s && "disabled",
46
+ `labelPlacement${F(r)}`,
47
+ p && "error",
48
+ m && "required"
49
+ ],
50
+ label: [
51
+ "label",
52
+ s && "disabled"
53
+ ],
54
+ asterisk: [
55
+ "asterisk",
56
+ p && "error"
57
+ ]
58
+ };
59
+ return W(d, H, o);
60
+ };
61
+ G = x("label", {
62
+ name: "MuiFormControlLabel",
63
+ slot: "Root",
64
+ overridesResolver: (e, o) => {
65
+ const { ownerState: s } = e;
66
+ return [
67
+ {
68
+ [`& .${t.label}`]: o.label
69
+ },
70
+ o.root,
71
+ o[`labelPlacement${F(s.labelPlacement)}`]
72
+ ];
73
+ }
74
+ })(L(({ theme: e }) => ({
75
+ display: "inline-flex",
76
+ alignItems: "center",
77
+ cursor: "pointer",
78
+ verticalAlign: "middle",
79
+ WebkitTapHighlightColor: "transparent",
80
+ marginLeft: -11,
81
+ marginRight: 16,
82
+ [`&.${t.disabled}`]: {
83
+ cursor: "default"
84
+ },
85
+ [`& .${t.label}`]: {
86
+ [`&.${t.disabled}`]: {
87
+ color: (e.vars || e).palette.text.disabled
88
+ }
89
+ },
90
+ variants: [
91
+ {
92
+ props: {
93
+ labelPlacement: "start"
94
+ },
95
+ style: {
96
+ flexDirection: "row-reverse",
97
+ marginRight: -11
98
+ }
99
+ },
100
+ {
101
+ props: {
102
+ labelPlacement: "top"
103
+ },
104
+ style: {
105
+ flexDirection: "column-reverse"
106
+ }
107
+ },
108
+ {
109
+ props: {
110
+ labelPlacement: "bottom"
111
+ },
112
+ style: {
113
+ flexDirection: "column"
114
+ }
115
+ },
116
+ {
117
+ props: ({ labelPlacement: o }) => o === "start" || o === "top" || o === "bottom",
118
+ style: {
119
+ marginLeft: 16
120
+ }
121
+ }
122
+ ]
123
+ })));
124
+ J = x("span", {
125
+ name: "MuiFormControlLabel",
126
+ slot: "Asterisk",
127
+ overridesResolver: (e, o) => o.asterisk
128
+ })(L(({ theme: e }) => ({
129
+ [`&.${t.error}`]: {
130
+ color: (e.vars || e).palette.error.main
131
+ }
132
+ })));
133
+ oe = y.forwardRef(function(o, s) {
134
+ const r = A({
135
+ props: o,
136
+ name: "MuiFormControlLabel"
137
+ }), { checked: p, className: m, componentsProps: d = {}, control: a, disabled: R, disableTypography: S, inputRef: K, label: T, labelPlacement: _ = "end", name: O, onChange: Q, required: k, slots: q = {}, slotProps: $ = {}, value: V, ...j } = r, f = B(), C = R ?? a.props.disabled ?? (f == null ? void 0 : f.disabled), b = k ?? a.props.required, g = {
138
+ disabled: C,
139
+ required: b
140
+ };
141
+ [
142
+ "checked",
143
+ "name",
144
+ "onChange",
145
+ "value",
146
+ "inputRef"
147
+ ].forEach((i) => {
148
+ typeof a.props[i] > "u" && typeof r[i] < "u" && (g[i] = r[i]);
149
+ });
150
+ const w = z({
151
+ props: r,
152
+ muiFormControl: f,
153
+ states: [
154
+ "error"
155
+ ]
156
+ }), n = {
157
+ ...r,
158
+ disabled: C,
159
+ labelPlacement: _,
160
+ required: b,
161
+ error: w.error
162
+ }, u = I(n), M = {
163
+ slots: q,
164
+ slotProps: {
165
+ ...d,
166
+ ...$
167
+ }
168
+ }, [N, h] = E("typography", {
169
+ elementType: P,
170
+ externalForwardedProps: M,
171
+ ownerState: n
172
+ });
173
+ let l = T;
174
+ return l != null && l.type !== P && !S && (l = c.jsx(N, {
175
+ component: "span",
176
+ ...h,
177
+ className: v(u.label, h == null ? void 0 : h.className),
178
+ children: l
179
+ })), c.jsxs(G, {
180
+ className: v(u.root, m),
181
+ ownerState: n,
182
+ ref: s,
183
+ ...j,
184
+ children: [
185
+ y.cloneElement(a, g),
186
+ b ? c.jsxs("div", {
187
+ children: [
188
+ l,
189
+ c.jsxs(J, {
190
+ ownerState: n,
191
+ "aria-hidden": true,
192
+ className: u.asterisk,
193
+ children: [
194
+ "\u2009",
195
+ "*"
196
+ ]
197
+ })
198
+ ]
199
+ }) : l
200
+ ]
201
+ });
202
+ });
203
+ });
204
+ export {
205
+ oe as F,
206
+ __tla
207
+ };