iobroker.vis-2-widgets-inventwo 0.0.3 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -1
- package/admin/vis-2-widgets-inventwo.png +0 -0
- package/io-package.json +53 -1
- package/package.json +1 -1
- package/widgets/vis-2-widgets-inventwo/customWidgets.js +1 -1
- package/widgets/vis-2-widgets-inventwo/customWidgets.js.map +1 -1
- package/widgets/vis-2-widgets-inventwo/i18n/de.json +0 -8
- package/widgets/vis-2-widgets-inventwo/i18n/en.json +168 -1
- package/widgets/vis-2-widgets-inventwo/i18n/es.json +0 -5
- package/widgets/vis-2-widgets-inventwo/i18n/fr.json +0 -5
- package/widgets/vis-2-widgets-inventwo/i18n/it.json +0 -5
- package/widgets/vis-2-widgets-inventwo/i18n/nl.json +0 -5
- package/widgets/vis-2-widgets-inventwo/i18n/pl.json +0 -5
- package/widgets/vis-2-widgets-inventwo/i18n/pt.json +0 -5
- package/widgets/vis-2-widgets-inventwo/i18n/ru.json +0 -5
- package/widgets/vis-2-widgets-inventwo/i18n/zh-cn.json +0 -5
- package/widgets/vis-2-widgets-inventwo/img/vis-widget-inventwo-slider.png +0 -0
- package/widgets/vis-2-widgets-inventwo/img/vis-widget-inventwo-universal.png +0 -0
- package/widgets/vis-2-widgets-inventwo/static/css/src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css.196d3a1e.chunk.css +2 -0
- package/widgets/vis-2-widgets-inventwo/static/css/src_bootstrap_js-webpack_sharing_consume_default_react-dom_client_react-dom_client-src_assets-8ab8eb.196d3a1e.chunk.css +2 -0
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSlider_jsx.2c454fb3.chunk.js +3 -0
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css.a78ad806.chunk.js +3 -0
- package/widgets/vis-2-widgets-inventwo/static/js/src_lib_iro_min_js-src_assets_inventwo_css.c4bdf169.chunk.js +3 -0
- package/widgets/vis-2-widgets-inventwo/static/js/src_translations_js.42265fc2.chunk.js +2 -0
- package/widgets/vis-2-widgets-inventwo/static/js/{vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.7b1ea2fb.chunk.js → vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.86299ce8.chunk.js} +3 -3
- package/widgets/vis-2-widgets-inventwo/static/js/vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.86299ce8.chunk.js.map +1 -0
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSlider_jsx.c71c8db7.chunk.js +0 -3
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetUniversal_jsx.8e8b905e.chunk.js +0 -3
- package/widgets/vis-2-widgets-inventwo/static/js/src_lib_iro_min_js.b7af0450.chunk.js +0 -3
- package/widgets/vis-2-widgets-inventwo/static/js/src_translations_js.21a7d3cd.chunk.js +0 -2
- package/widgets/vis-2-widgets-inventwo/static/js/vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.7b1ea2fb.chunk.js.map +0 -1
- /package/widgets/vis-2-widgets-inventwo/static/js/{src_InventwoWidgetSlider_jsx.c71c8db7.chunk.js.LICENSE.txt → src_InventwoWidgetSlider_jsx.2c454fb3.chunk.js.LICENSE.txt} +0 -0
- /package/widgets/vis-2-widgets-inventwo/static/js/{src_InventwoWidgetUniversal_jsx.8e8b905e.chunk.js.LICENSE.txt → src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css.a78ad806.chunk.js.LICENSE.txt} +0 -0
- /package/widgets/vis-2-widgets-inventwo/static/js/{src_lib_iro_min_js.b7af0450.chunk.js.LICENSE.txt → src_lib_iro_min_js-src_assets_inventwo_css.c4bdf169.chunk.js.LICENSE.txt} +0 -0
- /package/widgets/vis-2-widgets-inventwo/static/js/{vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.7b1ea2fb.chunk.js.LICENSE.txt → vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.86299ce8.chunk.js.LICENSE.txt} +0 -0
|
@@ -7,5 +7,172 @@
|
|
|
7
7
|
"vis_2_widgets_inventwo_widget_slider": "Slider",
|
|
8
8
|
"vis_2_widgets_inventwo_attr_group_css": "inventwo Widget Design",
|
|
9
9
|
"vis_2_widgets_inventwo_attr_group_states": "State",
|
|
10
|
-
"vis_2_widgets_inventwo_attr_group_state_default": "Default state"
|
|
10
|
+
"vis_2_widgets_inventwo_attr_group_state_default": "Default state",
|
|
11
|
+
"vis_2_widgets_inventwo_attr_group_type_view_in_dialog": "Type - View in dialog",
|
|
12
|
+
"vis_2_widgets_inventwo_attr_content_color_picker": "Widget content - Color picker",
|
|
13
|
+
"vis_2_widgets_inventwo_attr_group_css_text": "inventwo CSS - Text",
|
|
14
|
+
"vis_2_widgets_inventwo_attr_group_css_content": "inventwo CSS - Content",
|
|
15
|
+
"vis_2_widgets_inventwo_attr_group_css_alignment": "inventwo CSS - Alignment",
|
|
16
|
+
"vis_2_widgets_inventwo_attr_group_css_transparency": "inventwo CSS - Transparency",
|
|
17
|
+
"vis_2_widgets_inventwo_attr_group_css_spacing": "inventwo CSS - Spacing",
|
|
18
|
+
"vis_2_widgets_inventwo_attr_group_css_border_radius": "inventwo CSS - Border radius",
|
|
19
|
+
"vis_2_widgets_inventwo_attr_group_css_border": "inventwo CSS - Border",
|
|
20
|
+
"vis_2_widgets_inventwo_attr_group_css_outer_shadow": "inventwo CSS - Outer shadow",
|
|
21
|
+
"vis_2_widgets_inventwo_attr_group_css_inner_shadow": "inventwo CSS - Inner shadow",
|
|
22
|
+
"vis_2_widgets_inventwo_attr_group_css_slider_track": "inventwo CSS - Slider track",
|
|
23
|
+
"vis_2_widgets_inventwo_attr_group_css_slider_slider_thumb": "inventwo CSS - Slider thumb",
|
|
24
|
+
|
|
25
|
+
"colors": "Colors",
|
|
26
|
+
"oid": "Object ID",
|
|
27
|
+
"min_value": "Min value",
|
|
28
|
+
"max_value": "Max value",
|
|
29
|
+
"step": "Step",
|
|
30
|
+
"horizontal": "Horizontal",
|
|
31
|
+
"vertical": "Vertical",
|
|
32
|
+
"orientation": "Orientation",
|
|
33
|
+
"slider_rail_color": "Slider rail color",
|
|
34
|
+
"slider_rail_active_color": "Slider rail active color",
|
|
35
|
+
"normal": "Normal",
|
|
36
|
+
"inverted": "Inverted",
|
|
37
|
+
"none": "None",
|
|
38
|
+
"track_bar_type": "Track bar type",
|
|
39
|
+
"track_width": "Track width",
|
|
40
|
+
"track_border_radius": "Track border radius",
|
|
41
|
+
"x_offset": "X offset",
|
|
42
|
+
"y_offset": "Y offset",
|
|
43
|
+
"blur": "Blur",
|
|
44
|
+
"size": "Size",
|
|
45
|
+
"shadow_color": "Shadow color",
|
|
46
|
+
"slider_thumb_color": "Slider thumb color",
|
|
47
|
+
"thumbSize": "ThumbSize",
|
|
48
|
+
"thumb_border_radius": "Thumb border radius",
|
|
49
|
+
"switch": "Switch",
|
|
50
|
+
"button": "Button",
|
|
51
|
+
"nav": "Nav",
|
|
52
|
+
"read_only": "Read only",
|
|
53
|
+
"view_in_dialog": "View in dialog",
|
|
54
|
+
"type": "Type",
|
|
55
|
+
"mode": "Mode",
|
|
56
|
+
"row": "Row",
|
|
57
|
+
"column": "Column",
|
|
58
|
+
"direction": "Direction",
|
|
59
|
+
"view": "View",
|
|
60
|
+
"value_false": "Value false",
|
|
61
|
+
"value_true": "Value true",
|
|
62
|
+
"dialog_title": "Dialog title",
|
|
63
|
+
"button_width": "Button width",
|
|
64
|
+
"button_spacing": "Button spacing",
|
|
65
|
+
"count_states": "Count states",
|
|
66
|
+
"dialog_fullscreen": "Dialog fullscreen",
|
|
67
|
+
"dialog_width": "Dialog width",
|
|
68
|
+
"dialog_height": "Dialog height",
|
|
69
|
+
"text": "Text",
|
|
70
|
+
"icon": "Icon",
|
|
71
|
+
"image": "Image",
|
|
72
|
+
"text_html": "Text html",
|
|
73
|
+
"view_in_widget": "View in widget",
|
|
74
|
+
"content_color": "Content color",
|
|
75
|
+
"text_color": "Text color",
|
|
76
|
+
"border_color": "Border color",
|
|
77
|
+
"outer_shadow_color": "Outer shadow color",
|
|
78
|
+
"inner_shadow_color": "Inner shadow color",
|
|
79
|
+
"value": "Value",
|
|
80
|
+
"text_true": "Text true",
|
|
81
|
+
"icon_true": "Icon true",
|
|
82
|
+
"image_true": "Image true",
|
|
83
|
+
"text_html_true": "Text html true",
|
|
84
|
+
"view_in_widget_true": "View in widget true",
|
|
85
|
+
"content_color_true": "Content color true",
|
|
86
|
+
"background color": "Background color",
|
|
87
|
+
"background_true": "Background true",
|
|
88
|
+
"hex": "Hex",
|
|
89
|
+
"hex_8": "Hex 8",
|
|
90
|
+
"rgb": "Rgb",
|
|
91
|
+
"hsl": "Hsl",
|
|
92
|
+
"hsv": "Hsv",
|
|
93
|
+
"cie": "Cie",
|
|
94
|
+
"color_model": "Color model",
|
|
95
|
+
"oid_value_1": "Oid value 1",
|
|
96
|
+
"oid_value_2": "Oid value 2",
|
|
97
|
+
"oid_value_3": "Oid value 3",
|
|
98
|
+
"width": "Width",
|
|
99
|
+
"handle_size": "Handle size",
|
|
100
|
+
"handle_margin": "Handle margin",
|
|
101
|
+
"components_space": "Components space",
|
|
102
|
+
"border_width": "Border width",
|
|
103
|
+
"show_wheel": "Show wheel",
|
|
104
|
+
"show_box": "Show box",
|
|
105
|
+
"show_hue": "Show hue",
|
|
106
|
+
"show_Saturation": "Show Saturation",
|
|
107
|
+
"show_value": "Show value",
|
|
108
|
+
"show_red": "Show red",
|
|
109
|
+
"show_green": "Show green",
|
|
110
|
+
"show_blue": "Show blue",
|
|
111
|
+
"show_Alpha": "Show Alpha",
|
|
112
|
+
"show_kelvin": "Show kelvin",
|
|
113
|
+
"underline": "Underline",
|
|
114
|
+
"overline": "Overline",
|
|
115
|
+
"line-through": "Line-through",
|
|
116
|
+
"text_decoration": "Text decoration",
|
|
117
|
+
"margin_top": "Margin top",
|
|
118
|
+
"margin_bottom": "Margin bottom",
|
|
119
|
+
"margin_left": "Margin left",
|
|
120
|
+
"margin_right": "Margin right",
|
|
121
|
+
"color_picker": "Color picker",
|
|
122
|
+
"content_type": "Content type",
|
|
123
|
+
"content_size": "Content size",
|
|
124
|
+
"rotation": "Rotation",
|
|
125
|
+
"mirror": "Mirror",
|
|
126
|
+
"start": "Start",
|
|
127
|
+
"center": "Center",
|
|
128
|
+
"end": "End",
|
|
129
|
+
"space between": "Space between",
|
|
130
|
+
"alignment": "Alignment",
|
|
131
|
+
"text_align": "Text align",
|
|
132
|
+
"content_align": "Content align",
|
|
133
|
+
"invert_order": "Invert order",
|
|
134
|
+
"background_opacity": "Background opacity",
|
|
135
|
+
"content_opacity": "Content opacity",
|
|
136
|
+
"padding_left": "Padding left",
|
|
137
|
+
"padding_right": "Padding right",
|
|
138
|
+
"padding_top": "Padding top",
|
|
139
|
+
"padding_bottom": "Padding bottom",
|
|
140
|
+
"top_left": "Top left",
|
|
141
|
+
"top_right": "Top right",
|
|
142
|
+
"bottom_right": "Bottom right",
|
|
143
|
+
"bottom_left": "Bottom left",
|
|
144
|
+
"size_top": "Size top",
|
|
145
|
+
"size_bottom": "Size bottom",
|
|
146
|
+
"size_left": "Size left",
|
|
147
|
+
"size_right": "Size right",
|
|
148
|
+
"dashed": "Dashed",
|
|
149
|
+
"dotted": "Dotted",
|
|
150
|
+
"double": "Double",
|
|
151
|
+
"groove": "Groove",
|
|
152
|
+
"outset": "Outset",
|
|
153
|
+
"ridge": "Ridge",
|
|
154
|
+
"solid": "Solid",
|
|
155
|
+
"border_style": "Border style",
|
|
156
|
+
"content_blink_interval": "Content blink interval",
|
|
157
|
+
"text_color_true": "Text color true",
|
|
158
|
+
"border_color_true": "Border color true",
|
|
159
|
+
"outer_shadow_color_true": "Outer shadow color true",
|
|
160
|
+
"inner_shadow_color_true": "Inner shadow color true",
|
|
161
|
+
"background": "Background",
|
|
162
|
+
"show_min_max": "Show min max",
|
|
163
|
+
"vis_2_widgets_inventwo_widget_table": "Table",
|
|
164
|
+
"vis_2_widgets_inventwo_attr_group_columns": "Column",
|
|
165
|
+
"max_rows": "Max rows",
|
|
166
|
+
"show_head": "Show head",
|
|
167
|
+
"key": "Key",
|
|
168
|
+
"title": "Title",
|
|
169
|
+
"prefix": "Prefix",
|
|
170
|
+
"suffix": "Suffix",
|
|
171
|
+
"left": "Left",
|
|
172
|
+
"right": "Right",
|
|
173
|
+
"title_align": "Title align",
|
|
174
|
+
"count_columns": "Count columns",
|
|
175
|
+
"single_button": "Single button",
|
|
176
|
+
"separated_buttons": "Separated buttons"
|
|
177
|
+
|
|
11
178
|
}
|
package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSlider_jsx.2c454fb3.chunk.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see src_InventwoWidgetSlider_jsx.2c454fb3.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["src_InventwoWidgetSlider_jsx","node_modules_react_jsx-runtime_js-_c9180","node_modules_react_jsx-runtime_js-_c9181"],{52235:(t,e,a)=>{a.r(e),a.d(e,{default:()=>d});a(28437);var r=a(67085),i=a(59797),s=a(32719),l=a(70579);class o extends(window.visRxWidget||i.VisRxWidget){constructor(t){super(t),this.state.sliderValue=0}static getWidgetInfo(){return{id:"tplInventwoWidgetSlider",visSet:"vis-2-widgets-inventwo",visWidgetLabel:"vis_2_widgets_inventwo_widget_slider",visName:"vis_2_widgets_inventwo_widget_slider",visAttrs:[{name:"common",fields:[{name:"oid",type:"id",label:"oid"},{name:"minValue",type:"number",label:"min_value",default:0},{name:"maxValue",type:"number",label:"max_value",default:100},{name:"step",type:"number",label:"step",default:1},{name:"showMinMax",type:"checkbox",label:"show_min_max",default:!0},{name:"orientation",type:"select",options:[{value:"horizontal",label:"horizontal"},{value:"vertical",label:"vertical"}],default:"horizontal",label:"orientation"}]},{name:"vis_2_widgets_inventwo_attr_group_css_slider_track",label:"vis_2_widgets_inventwo_attr_group_css_slider_track",fields:[{name:"sliderRailColor",type:"color",default:"rgb(110,110,110)",label:"slider_rail_color"},{name:"sliderRailActiveColor",type:"color",default:"rgb(94,107,63)",label:"slider_rail_active_color"},{name:"trackBarType",type:"select",options:[{value:"normal",label:"normal"},{value:"inverted",label:"inverted"},{value:!1,label:"none"}],default:"normal",label:"track_bar_type"},{name:"trackWidth",type:"slider",min:1,max:50,step:1,default:10,label:"track_width"},{name:"trackBorderRadius",type:"slider",min:1,max:100,step:1,default:100,label:"track_border_radius"},{type:"delimiter"},{type:"help",text:"track_shadow"},{name:"trackShadowX",type:"slider",min:0,max:50,step:1,default:2,label:"x_offset"},{name:"trackShadowY",type:"slider",min:0,max:50,step:1,default:2,label:"y_offset"},{name:"trackShadowBlur",type:"slider",min:0,max:50,step:1,default:2,label:"blur"},{name:"trackShadowSize",type:"slider",min:0,max:50,step:1,default:1,label:"size"},{name:"trackShadowColor",type:"color",default:"rgba(0, 0, 0, 1)",label:"shadow_color"}]},{name:"vis_2_widgets_inventwo_attr_group_css_slider_slider_thumb",label:"vis_2_widgets_inventwo_attr_group_css_slider_slider_thumb",fields:[{name:"sliderThumbColor",type:"color",default:"rgba(69, 86, 24, 1)",label:"slider_thumb_color"},{name:"thumbSize",type:"slider",min:1,max:50,step:1,default:16,label:"thumbSize"},{name:"thumbBorderRadius",type:"slider",min:1,max:100,step:1,default:100,label:"thumb_border_radius"},{type:"delimiter"},{type:"help",text:"thumb_shadow"},{name:"thumbShadowX",type:"slider",min:0,max:50,step:1,default:2,label:"x_offset"},{name:"thumbShadowY",type:"slider",min:0,max:50,step:1,default:2,label:"y_offset"},{name:"thumbShadowBlur",type:"slider",min:0,max:50,step:1,default:2,label:"blur"},{name:"thumbShadowSize",type:"slider",min:0,max:50,step:1,default:1,label:"size"},{name:"thumbShadowColor",type:"color",default:"rgba(0, 0, 0, 0.5)",label:"shadow_color"}]}],visDefaultStyle:{width:110,overflow:"visible"},visPrev:"widgets/vis-2-widgets-inventwo/img/vis-widget-inventwo-slider.png"}}propertiesUpdate(){}componentDidMount(){super.componentDidMount(),this.propertiesUpdate()}getWidgetInfo(){return o.getWidgetInfo()}onRxDataChanged(){this.propertiesUpdate()}onRxStyleChanged(){}onStateUpdated(t,e){}onChange(t,e){if(this.props.editMode)return;const a=this.state.rxData.oid;this.props.context.setValue(a,e)}getValue(t){if(void 0!==t&&""!==t&&"nothing_selected"!==t)return this.state.values["".concat(t,".val")]}renderWidgetBody(t){super.renderWidgetBody(t);const e=this.state.rxData.oid,a=this.getValue(e),i=this.state.rxData.trackBarType,o=[];this.state.rxData.showMinMax&&(o.push({value:this.state.rxData.minValue,label:this.state.rxData.minValue}),o.push({value:this.state.rxData.maxValue,label:this.state.rxData.maxValue}));const d={height:"horizontal"===this.state.rxData.orientation?this.state.rxData.trackWidth:"100%",width:"horizontal"!==this.state.rxData.orientation?this.state.rxData.trackWidth:"100%","& .MuiSlider-thumb":{backgroundColor:this.state.rxData.sliderThumbColor,width:this.state.rxData.thumbSize,height:this.state.rxData.thumbSize,borderRadius:"".concat(this.state.rxData.thumbBorderRadius,"%"),"&:before":{boxShadow:"".concat(this.state.rxData.thumbShadowX,"px ").concat(this.state.rxData.thumbShadowY,"px ").concat(this.state.rxData.thumbShadowBlur,"px ").concat(this.state.rxData.thumbShadowSize,"px ").concat(this.state.rxData.thumbShadowColor)}},"& .MuiSlider-rail":{backgroundColor:"normal"===i?this.state.rxData.sliderRailColor:"inverted"===i?this.state.rxData.sliderRailActiveColor:"",color:"normal"===i?this.state.rxData.sliderRailColor:"inverted"===i?this.state.rxData.sliderRailActiveColor:"",border:"none",borderRadius:this.state.rxData.trackBorderRadius,boxShadow:"".concat(this.state.rxData.trackShadowX,"px ").concat(this.state.rxData.trackShadowY,"px ").concat(this.state.rxData.trackShadowBlur,"px ").concat(this.state.rxData.trackShadowSize,"px ").concat(this.state.rxData.trackShadowColor)},"& .MuiSlider-track":{backgroundColor:"normal"===i?this.state.rxData.sliderRailActiveColor:"inverted"===i?this.state.rxData.sliderRailColor:"",color:"normal"===i?this.state.rxData.sliderRailActiveColor:"inverted"===i?this.state.rxData.sliderRailColor:"",border:"none",borderRadius:this.state.rxData.trackBorderRadius},"& .MuiSlider-mark":{color:this.state.rxData.sliderRailActiveColor}};"horizontal"===this.state.rxData.orientation?d["& .MuiSlider-markLabel"]={top:this.state.rxData.trackWidth+20}:d["& .MuiSlider-markLabel"]={left:this.state.rxData.trackWidth+20};const n=(0,s.styled)(r.Slider)((()=>d));return(0,l.jsx)(n,{onChangeCommitted:(t,e)=>this.onChange(t,e),min:this.state.rxData.minValue,max:this.state.rxData.maxValue,step:this.state.rxData.step,defaultValue:a,valueLabelDisplay:"auto",track:this.state.rxData.trackBarType,orientation:this.state.rxData.orientation,marks:o})}}const d=o},51153:(t,e,a)=>{var r=a(28437),i=Symbol.for("react.element"),s=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function n(t,e,a){var r,s={},n=null,h=null;for(r in void 0!==a&&(n=""+a),void 0!==e.key&&(n=""+e.key),void 0!==e.ref&&(h=e.ref),e)l.call(e,r)&&!d.hasOwnProperty(r)&&(s[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===s[r]&&(s[r]=e[r]);return{$$typeof:i,type:t,key:n,ref:h,props:s,_owner:o.current}}e.Fragment=s,e.jsx=n,e.jsxs=n},70579:(t,e,a)=>{t.exports=a(51153)}}]);
|
|
3
|
+
//# sourceMappingURL=src_InventwoWidgetSlider_jsx.2c454fb3.chunk.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css.a78ad806.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css","node_modules_react_jsx-runtime_js-_c9180","node_modules_react_jsx-runtime_js-_c9181"],{52053:(t,e,a)=>{a.r(e),a.d(e,{default:()=>p});a(28437);var o=a(67085),i=a(21839),l=a(32719),n=a(37449),r=a(59797),s=a(82782),d=a.n(s),c=(a(14915),a(70579));class h extends(window.visRxWidget||r.VisRxWidget){constructor(t){super(t),this.state.currentView=null,this.state.dialogOpen=!1}static getWidgetInfo(){return{id:"tplInventwoWidgetUniversal",visSet:"vis-2-widgets-inventwo",visSetLabel:"vis_2_widgets_set_inventwo",visWidgetLabel:"vis_2_widgets_inventwo_widget_universal",visName:"vis_2_widgets_inventwo_widget_universal",visSetColor:"rgba(69, 86, 24, 1)",visAttrs:[{name:"common",fields:[{name:"type",type:"select",options:[{value:"switch",label:"switch"},{value:"button",label:"button"},{value:"nav",label:"nav"},{value:"readonly",label:"read_only"},{value:"viewInDialog",label:"view_in_dialog"}],default:"switch",label:"type"},{name:"mode",type:"select",options:[{value:"singleButton",label:"single_button"},{value:"separatedButtons",label:"separated_buttons"}],default:"singleButton",label:"mode"},{name:"direction",type:"select",options:[{value:"row",label:"row"},{value:"column",label:"column"}],default:"row",label:"direction",hidden:'data.mode == "singleButton"'},{name:"oid",type:"id",label:"oid",hidden:'data.type == "nav" || data.type == "viewInDialog"'},{name:"view",type:"views",label:"view",hidden:'(data.type != "nav" && data.type != "viewInDialog") || data.mode == "separatedButtons"'},{name:"valueFalse",type:"text",label:"value_false",hidden:'data.type != "switch" || data.mode == "separatedButtons"'},{name:"valueTrue",type:"text",label:"value_true",hidden:'data.type == "nav" || data.type == "viewInDialog" || data.mode == "separatedButtons"'},{name:"dialogTitle",type:"text",label:"dialog_title",hidden:'data.type != "viewInDialog"'},{name:"buttonSize",type:"slider",min:1,max:200,step:10,default:110,label:"button_width",hidden:'data.mode == "singleButton"'},{name:"buttonHeight",type:"slider",min:1,max:200,step:10,default:110,label:"button_width",hidden:'data.mode == "singleButton"'},{name:"btnSpacing",type:"slider",min:0,max:50,step:1,default:10,label:"button_spacing",hidden:'data.mode == "singleButton"'},{name:"countStates",type:"number",default:1,label:"count_states",hidden:"data.countStates > 0"}]},{name:"vis_2_widgets_inventwo_attr_group_type_view_in_dialog",label:"vis_2_widgets_inventwo_attr_group_type_view_in_dialog",hidden:'data.type != "viewInDialog"',fields:[{name:"dialogFullscreen",type:"checkbox",label:"dialog_fullscreen",hidden:'data.type != "viewInDialog"'},{name:"dialogWidth",type:"slider",min:1,max:1e3,step:1,default:500,label:"dialog_width",hidden:"data.dialogFullscreen"},{name:"dialogHeight",type:"slider",min:1,max:1e3,step:1,default:300,label:"dialog_height",hidden:"data.dialogFullscreen"}]},{name:"vis_2_widgets_inventwo_attr_group_state_default",label:"vis_2_widgets_inventwo_attr_group_state_default",fields:[{name:"text",type:"html",label:"text",hidden:'data.mode == "separatedButtons"'},{name:"icon",type:"icon64",label:"icon",hidden:'data.mode == "separatedButtons" || data.contentType != "icon"'},{name:"image",type:"image",label:"image",hidden:'data.mode == "separatedButtons" || data.contentType != "image"'},{name:"html",type:"html",label:"text_html",hidden:'data.mode == "separatedButtons" || data.contentType != "html"'},{name:"viewInWidget",type:"views",label:"view_in_widget",hidden:'data.mode == "separatedButtons" || data.contentType != "viewInWidget"'},{name:"contentBlinkInterval",type:"slider",min:0,max:2e3,step:100,default:0,label:"content_blink_interval"},{type:"delimiter"},{type:"help",text:"colors"},{name:"contentColor",type:"color",label:"content_color",hidden:'data.mode == "separatedButtons" || data.contentType != "icon"'},{name:"background",type:"color",label:"background"},{name:"textColor",type:"color",label:"text_color"},{name:"borderColor",type:"color",label:"border_color"},{name:"outerShadowColor",type:"color",label:"outer_shadow_color",default:" rgba(0, 0, 0, 1)"},{name:"innerShadowColor",type:"color",label:"inner_shadow_color"}]},{name:"countStates",indexFrom:1,indexTo:"countStates",label:"vis_2_widgets_inventwo_attr_group_states",fields:[{name:"value",type:"text",label:"value",hidden:'data.type == "nav" || (data.mode == "singleButton" && data.countStates <= 1)'},{name:"view",type:"views",label:"view",hidden:'data.type != "nav"'},{name:"text",type:"html",label:"text"},{name:"textTrue",type:"html",label:"text_true",hidden:'data.mode == "singleButton"'},{name:"icon",type:"icon64",label:"icon",hidden:'data.contentType != "icon"'},{name:"iconTrue",type:"icon64",label:"icon_true",hidden:'data.mode == "singleButton" || data.contentType != "icon"'},{name:"image",type:"image",label:"image",hidden:'data.contentType != "image"'},{name:"imageTrue",type:"image",label:"image_true",hidden:'data.mode == "singleButton" || data.contentType != "image"'},{name:"html",type:"html",label:"text_html",hidden:'data.contentType != "html"'},{name:"htmlTrue",type:"html",label:"text_html_true",hidden:'data.mode == "singleButton" || data.contentType != "html"'},{name:"viewInWidget",type:"views",label:"view_in_widget",hidden:'data.contentType != "viewInWidget"'},{name:"viewInWidgetTrue",type:"views",label:"view_in_widget_true",hidden:'data.mode == "singleButton" || data.contentType != "viewInWidget"'},{name:"contentBlinkInterval",type:"slider",min:0,max:2e3,step:100,default:0,label:"content_blink_interval"},{type:"delimiter"},{type:"help",text:"colors"},{name:"contentColor",type:"color",label:"content_color",hidden:'data.contentType != "icon"'},{name:"contentColorTrue",type:"color",label:"content_color_true",hidden:'data.mode == "singleButton" || data.contentType != "icon"'},{name:"background",type:"color",default:"rgba(69, 86, 24, 1)",label:"background"},{name:"backgroundTrue",type:"color",default:"rgba(69, 86, 24, 1)",label:"background_true",hidden:'data.mode == "singleButton"'},{name:"textColor",type:"color",label:"text_color"},{name:"textColorTrue",type:"color",label:"text_color_true",hidden:'data.mode == "singleButton"'},{name:"borderColor",type:"color",label:"border_color"},{name:"borderColorTrue",type:"color",label:"border_color_true",hidden:'data.mode == "singleButton"'},{name:"outerShadowColor",type:"color",label:"outer_shadow_color",default:" rgba(0, 0, 0, 1)"},{name:"outerShadowColorTrue",type:"color",label:"outer_shadow_color_true",hidden:'data.mode == "singleButton"',default:" rgba(0, 0, 0, 1)"},{name:"innerShadowColor",type:"color",label:"inner_shadow_color"},{name:"innerShadowColorTrue",type:"color",label:"inner_shadow_color_true",hidden:'data.mode == "singleButton"'}]},{name:"vis_2_widgets_inventwo_attr_content_color_picker",label:"vis_2_widgets_inventwo_attr_content_color_picker",hidden:'data.contentType != "colorPicker"',fields:[{name:"colorPickerColorModel",type:"select",options:[{value:"hex",label:"hex"},{value:"hex8",label:"hex_8"},{value:"rgb",label:"rgb"},{value:"hsl",label:"hsl"},{value:"hsv",label:"hsv"},{value:"cie",label:"cie"}],default:"hex",label:"color_model"},{name:"colorPickerOid",type:"id",hidden:'data.colorPickerColorModel === "rgb" || data.colorPickerColorModel === "hsl" || data.colorPickerColorModel === "hsv"',label:"oid"},{name:"colorPickerOid1",type:"id",hidden:'data.colorPickerColorModel !== "rgb" && data.colorPickerColorModel !== "hsl" && data.colorPickerColorModel !== "hsv"',label:"oid_value_1"},{name:"colorPickerOid2",type:"id",hidden:'data.colorPickerColorModel !== "rgb" && data.colorPickerColorModel !== "hsl" && data.colorPickerColorModel !== "hsv"',label:"oid_value_2"},{name:"colorPickerOid3",type:"id",hidden:'data.colorPickerColorModel !== "rgb" && data.colorPickerColorModel !== "hsl" && data.colorPickerColorModel !== "hsv"',label:"oid_value_3"},{type:"help",text:"layout_size"},{name:"colorPickerWidth",type:"slider",min:0,max:500,step:1,default:200,label:"width"},{name:"colorPickerHandleSize",type:"slider",min:0,max:20,step:1,default:8,label:"handle_size"},{name:"colorPickerHandleMargin",type:"slider",min:0,max:20,step:1,default:6,label:"handle_margin"},{name:"colorPickerComponentsSpace",type:"slider",min:0,max:50,step:1,default:12,label:"components_space"},{name:"colorPickerDirection",type:"select",options:[{value:"vertical",label:"vertical"},{value:"horizontal",label:"horizontal"}],default:"vertical",label:"direction"},{name:"colorPickerBorderWidth",type:"slider",min:0,max:10,step:1,default:0,label:"border_width"},{name:"colorPickerBorderColor",type:"color",label:"border_color"},{type:"help",text:"components"},{name:"colorPickerShowWheel",type:"checkbox",default:!0,label:"show_wheel"},{name:"colorPickerShowBox",type:"checkbox",label:"show_box"},{name:"colorPickerShowHue",type:"checkbox",label:"show_hue"},{name:"colorPickerShowSaturation",type:"checkbox",default:!0,label:"show_Saturation"},{name:"colorPickerShowValue",type:"checkbox",default:!0,label:"show_value"},{name:"colorPickerShowRed",type:"checkbox",label:"show_red"},{name:"colorPickerShowGreen",type:"checkbox",label:"show_green"},{name:"colorPickerShowBlue",type:"checkbox",label:"show_blue"},{name:"colorPickerShowAlpha",type:"checkbox",label:"show_Alpha"},{name:"colorPickerShowKelvin",type:"checkbox",label:"show_kelvin"}]},{name:"vis_2_widgets_inventwo_attr_group_css_text",label:"vis_2_widgets_inventwo_attr_group_css_text",fields:[{name:"textDecoration",type:"select",options:[{value:"none",label:"none"},{value:"underline",label:"underline"},{value:"overline",label:"overline"},{value:"line-through",label:"line-through"}],default:"none",label:"text_decoration"},{name:"textMarginTop",type:"slider",min:0,max:50,step:1,default:0,label:"margin_top"},{name:"textMarginBottom",type:"slider",min:0,max:50,step:1,default:0,label:"margin_bottom"},{name:"textMarginLeft",type:"slider",min:0,max:50,step:1,default:0,label:"margin_left"},{name:"textMarginRight",type:"slider",min:0,max:50,step:1,default:0,label:"margin_right"}]},{name:"vis_2_widgets_inventwo_attr_group_css_content",label:"vis_2_widgets_inventwo_attr_group_css_content",fields:[{name:"contentType",type:"select",options:[{value:"icon",label:"icon"},{value:"image",label:"image"},{value:"html",label:"text_html"},{value:"viewInWidget",label:"view_in_widget"},{value:"colorPicker",label:"color_picker"}],default:"icon",label:"content_type"},{name:"contentMarginTop",type:"slider",min:0,max:50,step:1,default:0,label:"margin_top"},{name:"contentMarginBottom",type:"slider",min:0,max:50,step:1,default:0,label:"margin_bottom"},{name:"contentMarginLeft",type:"slider",min:0,max:50,step:1,default:0,label:"margin_left"},{name:"contentMarginRight",type:"slider",min:0,max:50,step:1,default:0,label:"margin_right"},{name:"contentSize",type:"slider",min:1,max:100,step:1,default:40,label:"content_size"},{name:"contentRotation",type:"slider",min:-180,max:180,step:1,default:0,label:"rotation"},{name:"contentMirror",type:"checkbox",default:!1,label:"mirror"}]},{name:"vis_2_widgets_inventwo_attr_group_css_alignment",label:"vis_2_widgets_inventwo_attr_group_css_alignment",fields:[{name:"flexDirection",type:"select",options:[{value:"row",label:"row"},{value:"column",label:"column"}],default:"column",label:"direction"},{name:"alignItems",type:"select",options:[{value:"flex-start",label:"start"},{value:"center",label:"center"},{value:"flex-end",label:"end"},{value:"space-between",label:"space between"}],default:"space-between",label:"alignment"},{name:"textAlign",type:"select",options:[{value:"start",label:"start"},{value:"center",label:"center"},{value:"end",label:"end"}],default:"start",label:"text_align"},{name:"contentAlign",type:"select",options:[{value:"start",label:"start"},{value:"center",label:"center"},{value:"end",label:"end"}],default:"center",label:"content_align"},{name:"invertOrder",type:"checkbox",label:"invert_order"}]},{name:"vis_2_widgets_inventwo_attr_group_css_transparency",label:"vis_2_widgets_inventwo_attr_group_css_transparency",fields:[{name:"backgroundOpacity",type:"slider",min:0,max:1,step:.1,default:1,label:"background_opacity"},{name:"contentOpacity",type:"slider",min:0,max:1,step:.1,default:1,label:"content_opacity"}]},{name:"vis_2_widgets_inventwo_attr_group_css_spacing",label:"vis_2_widgets_inventwo_attr_group_css_spacing",fields:[{name:"paddingLeft",type:"slider",min:0,max:50,step:1,default:10,label:"padding_left"},{name:"paddingRight",type:"slider",min:0,max:50,step:1,default:10,label:"padding_right"},{name:"paddingTop",type:"slider",min:0,max:50,step:1,default:10,label:"padding_top"},{name:"paddingBottom",type:"slider",min:0,max:50,step:1,default:10,label:"padding_bottom"}]},{name:"vis_2_widgets_inventwo_attr_group_css_border_radius",label:"vis_2_widgets_inventwo_attr_group_css_border_radius",fields:[{name:"borderRadiusTopLeft",type:"slider",min:0,max:50,step:1,default:12,label:"top_left"},{name:"borderRadiusTopRight",type:"slider",min:0,max:50,step:1,default:0,label:"top_right"},{name:"borderRadiusBottomRight",type:"slider",min:0,max:50,step:1,default:12,label:"bottom_right"},{name:"borderRadiusBottomLeft",type:"slider",min:0,max:50,step:1,default:0,label:"bottom_left"}]},{name:"vis_2_widgets_inventwo_attr_group_css_border",label:"vis_2_widgets_inventwo_attr_group_css_border",fields:[{name:"borderSizeTop",type:"slider",min:0,max:10,step:1,default:0,label:"size_top"},{name:"borderSizeBottom",type:"slider",min:0,max:10,step:1,default:0,label:"size_bottom"},{name:"borderSizeLeft",type:"slider",min:0,max:10,step:1,default:0,label:"size_left"},{name:"borderSizeRight",type:"slider",min:0,max:10,step:1,default:0,label:"size_right"},{name:"borderStyle",type:"select",options:[{value:"none",label:"none"},{value:"dashed",label:"dashed"},{value:"dotted",label:"dotted"},{value:"double",label:"double"},{value:"groove",label:"groove"},{value:"inset",label:"outset"},{value:"ridge",label:"ridge"},{value:"solid",label:"solid"}],default:"none",label:"border_style"}]},{name:"vis_2_widgets_inventwo_attr_group_css_outer_shadow",label:"vis_2_widgets_inventwo_attr_group_css_outer_shadow",fields:[{name:"outerShadowX",type:"slider",min:0,max:50,step:1,default:2,label:"x_offset"},{name:"outerShadowY",type:"slider",min:0,max:50,step:1,default:2,label:"y_offset"},{name:"outerShadowBlur",type:"slider",min:0,max:50,step:1,default:2,label:"blur"},{name:"outerShadowSize",type:"slider",min:0,max:50,step:1,default:1,label:"size"}]},{name:"vis_2_widgets_inventwo_attr_group_css_inner_shadow",label:"vis_2_widgets_inventwo_attr_group_css_inner_shadow",fields:[{name:"innerShadowX",type:"slider",min:0,max:50,step:1,default:0,label:"x_offset"},{name:"innerShadowY",type:"slider",min:0,max:50,step:1,default:0,label:"y_offset"},{name:"innerShadowBlur",type:"slider",min:0,max:50,step:1,default:0,label:"blur"},{name:"innerShadowSize",type:"slider",min:0,max:50,step:1,default:0,label:"size"}]}],visDefaultStyle:{width:110,height:110,position:"absolute",overflow:"visible"},visPrev:"widgets/vis-2-widgets-inventwo/img/vis-widget-inventwo-universal.png"}}propertiesUpdate(){if("colorPicker"===this.state.rxData.contentType){const t=[];this.state.rxData.colorPickerShowWheel&&t.push({component:d().ui.Wheel,options:{}}),this.state.rxData.colorPickerShowBox&&t.push({component:d().ui.Box,options:{}}),this.state.rxData.colorPickerShowHue&&t.push({component:d().ui.Slider,options:{sliderType:"hue"}}),this.state.rxData.colorPickerShowSaturation&&t.push({component:d().ui.Slider,options:{sliderType:"saturation"}}),this.state.rxData.colorPickerShowValue&&t.push({component:d().ui.Slider,options:{sliderType:"value"}}),this.state.rxData.colorPickerShowRed&&t.push({component:d().ui.Slider,options:{sliderType:"red"}}),this.state.rxData.colorPickerShowGreen&&t.push({component:d().ui.Slider,options:{sliderType:"green"}}),this.state.rxData.colorPickerShowBlue&&t.push({component:d().ui.Slider,options:{sliderType:"blue"}}),this.state.rxData.colorPickerShowAlpha&&t.push({component:d().ui.Slider,options:{sliderType:"alpha"}}),this.state.rxData.colorPickerShowKelvin&&t.push({component:d().ui.Slider,options:{sliderType:"kelvin"}});const e=document.querySelector("#".concat(this.props.id," .vis-inventwo-widget-color-picker-wrapper"));e.innerHTML="",this.state.colorPicker=new(d().ColorPicker)(e,{width:this.state.rxData.colorPickerWidth,color:"#ffff00",layout:t,handleRadius:this.state.rxData.colorPickerHandleSize,padding:this.state.rxData.colorPickerHandleMargin,margin:this.state.rxData.colorPickerComponentsSpace,layoutDirection:this.state.rxData.colorPickerDirection,borderWidth:this.state.rxData.colorPickerBorderWidth,borderColor:this.state.rxData.colorPickerBorderColor}),this.state.colorPicker.on("input:change",(t=>{switch(this.state.rxData.colorPickerColorModel){case"hex":this.props.context.setValue(this.state.rxData.colorPickerOid,t.hexString);break;case"hex8":this.props.context.setValue(this.state.rxData.colorPickerOid,t.hex8String);break;case"rgb":this.props.context.setValue(this.state.rxData.colorPickerOid1,t.rgb.r),this.props.context.setValue(this.state.rxData.colorPickerOid2,t.rgb.g),this.props.context.setValue(this.state.rxData.colorPickerOid3,t.rgb.b);break;case"hsl":this.props.context.setValue(this.state.rxData.colorPickerOid1,t.hsl.h),this.props.context.setValue(this.state.rxData.colorPickerOid2,t.hsl.s),this.props.context.setValue(this.state.rxData.colorPickerOid3,t.hsl.l);break;case"hsv":this.props.context.setValue(this.state.rxData.colorPickerOid1,t.hsv.h),this.props.context.setValue(this.state.rxData.colorPickerOid2,t.hsv.s),this.props.context.setValue(this.state.rxData.colorPickerOid3,t.hsv.v)}})),this.setColorPickerColor()}}async setColorPickerColor(){const t=this.state.rxData.colorPickerColorModel,e=(await this.props.context.socket.getState(this.state.rxData.colorPickerOid)).val,a=(await this.props.context.socket.getState(this.state.rxData.colorPickerOid1)).val,o=(await this.props.context.socket.getState(this.state.rxData.colorPickerOid2)).val,i=(await this.props.context.socket.getState(this.state.rxData.colorPickerOid3)).val;switch(t){case"hex":/^#([A-Fa-f0-9]{3}$)|([A-Fa-f0-9]{6}$)/.test(e)?this.state.colorPicker.color.hexString=e:this.state.colorPicker.color.hexString="#ffffff";break;case"hex8":/^#([A-Fa-f0-9]{8}$)/.test(e)?this.state.colorPicker.color.hex8String=e:this.state.colorPicker.color.hexString="#ffffffff";break;case"rgb":this.state.colorPicker.color.rgb=void 0!==a&&void 0!==o&&void 0!==i?{r:a,g:o,b:i}:{r:255,g:255,b:255};break;case"hsl":this.state.colorPicker.color.hsl=void 0!==a&&void 0!==o&&void 0!==i?{h:a,s:o,l:i}:{h:330,s:0,l:100};break;case"hsv":this.state.colorPicker.color.hsv=void 0!==a&&void 0!==o&&void 0!==i?{h:a,s:o,v:i}:{h:0,s:0,v:100}}}componentDidMount(){super.componentDidMount(),this.propertiesUpdate()}getWidgetInfo(){return h.getWidgetInfo()}onRxDataChanged(){this.propertiesUpdate()}onRxStyleChanged(){}onStateUpdated(t,e){}getValue(t){if(void 0!==t&&""!==t&&"nothing_selected"!==t)return this.state.values["".concat(t,".val")]}getValueData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const e=this.state.rxData.oid,a=this.getValue(e);if(void 0!==a||null!==t||"nav"===this.state.rxData.type){if(null!==t)return"switch"===this.state.rxData.type&&this.state.rxData["value".concat(t)]===a||"nav"===this.state.rxData.type&&this.state.rxData["view".concat(t)]===this.props.view?this.getStateData(t,!0):this.getStateData(t);for(let t=1;t<=this.state.rxData.countStates;t++)if("switch"===this.state.rxData.type&&"singleButton"===this.state.rxData.mode&&1===this.state.rxData.countStates&&this.state.rxData.valueTrue===a||"switch"===this.state.rxData.type&&this.state.rxData["value".concat(t)]===a||"nav"===this.state.rxData.type&&this.state.rxData["view".concat(t)]===this.props.view)return this.getStateData(t)}return{background:this.state.rxData.background,icon:this.state.rxData.icon,image:this.state.rxData.image,contentColor:this.state.rxData.contentColor,text:this.state.rxData.text,textColor:this.state.rxData.textColor,outerShadowColor:this.state.rxData.outerShadowColor,innerShadowColor:this.state.rxData.innerShadowColor,borderColor:this.state.rxData.borderColor,html:this.state.rxData.html,viewInWidget:this.state.rxData.viewInWidget,contentBlinkInterval:this.state.rxData.contentBlinkInterval}}getStateData(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const a={background:this.state.rxData["background".concat(t)],icon:this.state.rxData["icon".concat(t)],image:this.state.rxData["image".concat(t)],contentColor:this.state.rxData["contentColor".concat(t)],text:this.state.rxData["text".concat(t)],textColor:this.state.rxData["textColor".concat(t)],outerShadowColor:this.state.rxData["outerShadowColor".concat(t)],innerShadowColor:this.state.rxData["innerShadowColor".concat(t)],borderColor:this.state.rxData["borderColor".concat(t)],html:this.state.rxData["html".concat(t)],viewInWidget:this.state.rxData["viewInWidget".concat(t)],contentBlinkInterval:this.state.rxData["contentBlinkInterval".concat(t)]};return e&&(a.background=this.state.rxData["backgroundTrue".concat(t)],a.icon=this.state.rxData["iconTrue".concat(t)],a.image=this.state.rxData["imageTrue".concat(t)],a.contentColor=this.state.rxData["contentColorTrue".concat(t)],a.text=this.state.rxData["textTrue".concat(t)],a.html=this.state.rxData["htmlTrue".concat(t)],a.viewInWidget=this.state.rxData["viewInWidgetTrue".concat(t)],a.textColor=this.state.rxData["textColorTrue".concat(t)],a.borderColor=this.state.rxData["borderColorTrue".concat(t)],a.outerShadowColor=this.state.rxData["outerShadowColorTrue".concat(t)],a.innerShadowColor=this.state.rxData["innerShadowColorTrue".concat(t)]),a}onClick(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.props.editMode)return;if(null!==e.target.closest(".IroColorPicker"))return;const a=this.state.rxData.oid;if(!e.target.closest(".inventwo-view-in-widget-wrapper, #".concat(this.props.id)).classList.contains("inventwo-view-in-widget-wrapper"))switch(this.state.rxData.type){case"switch":"singleButton"===this.state.rxData.mode?this.state.values["".concat(a,".val")]===this.state.rxData.valueTrue?this.props.context.setValue(a,this.state.rxData.valueFalse):this.props.context.setValue(a,this.state.rxData.valueTrue):this.props.context.setValue(a,this.state.rxData["value".concat(t)]);break;case"button":"singleButton"===this.state.rxData.mode?this.props.context.setValue(a,this.state.rxData.valueTrue):this.props.context.setValue(a,this.state.rxData["value".concat(t)]);break;case"nav":const o=e.target.closest(".inventwo-dialog");if(void 0!==o&&null!==o)return;"singleButton"===this.state.rxData.mode?window.vis.changeView(this.state.rxData.view,this.state.rxData.view):window.vis.changeView(this.state.rxData["view".concat(t)],this.state.rxData["view".concat(t)]);break;case"viewInDialog":this.setState({dialogOpen:!0})}}renderWidgetBody(t){return super.renderWidgetBody(t),this.wrappedContent=!0,this.buildWidgetBody()}buildWidgetBody(){const t=[];if("singleButton"===this.state.rxData.mode)t.push(this.getSingleCard());else{const e=[];for(let t=1;t<=this.state.rxData.countStates;t++)e.push(this.getSingleCard(t));t.push((0,c.jsx)(o.Box,{sx:{display:"flex",height:"100%",overflow:"auto",gap:"".concat(this.state.rxData.btnSpacing,"px"),flexDirection:this.state.rxData.direction,padding:"10px",margin:"-10px"},children:e},"cardWrapper"))}return"viewInDialog"===this.state.rxData.type&&t.push((0,c.jsxs)(o.Dialog,{classes:"inventwo-dialog",open:this.state.dialogOpen,fullScreen:!0,sx:{"& .MuiDialog-container":{"& .MuiPaper-root":{maxWidth:this.state.rxData.dialogFullscreen?"100%":"".concat(this.state.rxData.dialogWidth,"px"),maxHeight:this.state.rxData.dialogFullscreen?"100%":"".concat(this.state.rxData.dialogHeight,"px")}}},children:[(0,c.jsxs)(o.DialogTitle,{className:this.props.classes.dialogTitle,children:[(0,c.jsx)("span",{children:this.state.rxData.dialogTitle}),(0,c.jsx)(o.IconButton,{onClick:()=>this.setState({dialogOpen:!1}),children:(0,c.jsx)(i.Close,{})})]}),(0,c.jsx)(o.DialogContent,{children:this.buildViewInWidget(this.state.rxData.view)})]},"dialog")),(0,c.jsx)("div",{style:{overflow:"visible",height:"100%",width:"100%",fontSize:this.state.rxStyle["font-size"],color:this.state.rxStyle.color,textShadow:this.state.rxStyle["text-shadow"],fontFamily:this.state.rxStyle["font-family"],fontStyle:this.state.rxStyle["font-style"],fontVariant:this.state.rxStyle["font-variant"],fontWeight:this.state.rxStyle["font-weight"],lineHeight:this.state.rxStyle["line-height"],letterSpacing:this.state.rxStyle["letter-spacing"],wordSpacing:this.state.rxStyle["word-spacing"]},children:t})}getContentIcon(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===this.getValueData(t).icon?"":(0,c.jsx)(n.Icon,{src:this.getValueData(t).icon,style:{width:this.state.rxData.contentSize,height:this.state.rxData.contentSize,color:this.getValueData(t).contentColor}})}getContentImage(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===this.getValueData(t).image?"":(0,c.jsx)("img",{alt:"",src:this.getValueData(t).image,style:{width:this.state.rxData.contentSize,height:this.state.rxData.contentSize}})}getContentHtml(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,c.jsx)("div",{style:{fontSize:"".concat(this.state.rxData.contentSize,"px")},dangerouslySetInnerHTML:{__html:this.getValueData(t).html}})}getContentViewInWidget(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const e=this.getValueData(t).viewInWidget;return this.buildViewInWidget(e)}buildViewInWidget(t){if(t===this.props.view)return(0,c.jsx)("div",{children:"Cannot use recursive views"});return(0,c.jsx)("div",{style:{position:"relative",overflow:"auto",height:"100%"},className:"inventwo-view-in-widget-wrapper",children:t?this.getWidgetView(t,{style:{}}):null})}getCardContent(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;switch(this.state.rxData.contentType){case"icon":t=this.getContentIcon(e);break;case"image":t=this.getContentImage(e);break;case"html":t=this.getContentHtml(e);break;case"viewInWidget":t=this.getContentViewInWidget(e);break;default:t=""}return(0,c.jsx)("div",{className:"colorPicker"===this.state.rxData.contentType?"vis-inventwo-widget-color-picker-wrapper":"",style:{height:"100%",width:"viewInWidget"===this.state.rxData.contentType?"100%":"",transform:"rotateZ(".concat(this.state.rxData.contentRotation,"deg)"),animation:this.getValueData(e).contentBlinkInterval>0?"blink ".concat(this.getValueData(e).contentBlinkInterval/1e3,"s infinite"):""},children:t})}buildCard(t,e){const a=this.getValueData(t);let i="";return void 0!==a.outerShadowColor&&null!==a.outerShadowColor&&(i+="".concat(this.state.rxData.outerShadowX,"px ").concat(this.state.rxData.outerShadowY,"px ").concat(this.state.rxData.outerShadowBlur,"px ").concat(this.state.rxData.outerShadowSize,"px ").concat(a.outerShadowColor)),void 0!==a.innerShadowColor&&null!==a.innerShadowColor&&(""!==i&&(i+=", "),i+="inset ".concat(this.state.rxData.innerShadowX,"px ").concat(this.state.rxData.innerShadowY,"px ").concat(this.state.rxData.innerShadowBlur,"px ").concat(this.state.rxData.innerShadowSize,"px ").concat(a.innerShadowColor)),(0,c.jsxs)("div",{style:{width:null===t?"100%":"",height:null===t?"100%":"",flex:null!==t?"0 0 ".concat(this.state.rxData.buttonSize,"px"):"",position:"relative",border:this.state.rxData.borderRadiusTopLeft,borderRadius:"".concat(this.state.rxData.borderRadiusTopLeft,"px ").concat(this.state.rxData.borderRadiusTopRight,"px ").concat(this.state.rxData.borderRadiusBottomRight,"px ").concat(this.state.rxData.borderRadiusBottomLeft,"px")},children:[(0,c.jsx)(o.Card,{className:"vis_rx_widget_card",sx:{background:a.background,borderRadius:"".concat(this.state.rxData.borderRadiusTopLeft,"px ").concat(this.state.rxData.borderRadiusTopRight,"px ").concat(this.state.rxData.borderRadiusBottomRight,"px ").concat(this.state.rxData.borderRadiusBottomLeft,"px"),boxShadow:i,opacity:this.state.rxData.backgroundOpacity,position:"absolute",inset:0,borderColor:a.borderColor,borderTopWidth:"".concat(this.state.rxData.borderSizeTop,"px"),borderBottomWidth:"".concat(this.state.rxData.borderSizeBottom,"px"),borderLeftWidth:"".concat(this.state.rxData.borderSizeLeft,"px"),borderRightWidth:"".concat(this.state.rxData.borderSizeRight,"px"),borderStyle:this.state.rxData.borderStyle}}),(0,c.jsx)(o.Card,{sx:{cursor:"readonly"!==this.state.rxData.type?"pointer":"",background:"transparent",borderRadius:"".concat(this.state.rxData.borderRadiusTopLeft,"px ").concat(this.state.rxData.borderRadiusTopRight,"px ").concat(this.state.rxData.borderRadiusBottomRight,"px ").concat(this.state.rxData.borderRadiusBottomLeft,"px"),opacity:this.state.rxData.contentOpacity,position:"absolute",inset:0,color:"unset",boxShadow:"none"},onClick:e=>this.onClick(t,e),children:(0,c.jsx)(o.CardContent,{sx:{boxSizing:"border-box",width:"100%",height:"100%"},style:{padding:"".concat(this.state.rxData.paddingTop,"px ").concat(this.state.rxData.paddingRight,"px ").concat(this.state.rxData.paddingBottom,"px ").concat(this.state.rxData.paddingLeft,"px")},children:e})})]},null!==t?t:"")}getSingleCard(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const e=this.getCardContent(t),a=(0,c.jsxs)("div",{style:{height:"100%",width:"100%",display:"flex",flexDirection:this.state.rxData.flexDirection+(this.state.rxData.invertOrder?"-reverse":""),justifyContent:this.state.rxData.invertOrder&&"flex-start"===this.state.rxData.alignItems?"flex-end":this.state.rxData.invertOrder&&"flex-end"===this.state.rxData.alignItems?"flex-start":this.state.rxData.alignItems},children:[(0,c.jsx)("div",{style:{display:"flex",justifyContent:"column"===this.state.rxData.flexDirection?this.state.rxData.contentAlign:"",alignSelf:"row"===this.state.rxData.flexDirection?this.state.rxData.contentAlign:"",transform:"scaleX(".concat(this.state.rxData.contentMirror?-1:1,")"),height:"viewInWidget"===this.state.rxData.contentType?"100%":"",overflow:"hidden",margin:"".concat(this.state.rxData.contentMarginTop,"px ").concat(this.state.rxData.contentMarginRight,"px ").concat(this.state.rxData.contentMarginBottom,"px ").concat(this.state.rxData.contentMarginLeft,"px")},children:e}),(0,c.jsx)("div",{style:{textAlign:"column"===this.state.rxData.flexDirection?this.state.rxData.textAlign:"",alignSelf:"row"===this.state.rxData.flexDirection?this.state.rxData.textAlign:"",textDecoration:this.state.rxData.textDecoration,color:this.getValueData(t).textColor,margin:"".concat(this.state.rxData.textMarginTop,"px ").concat(this.state.rxData.textMarginRight,"px ").concat(this.state.rxData.textMarginBottom,"px ").concat(this.state.rxData.textMarginLeft,"px")},dangerouslySetInnerHTML:{__html:this.getValueData(t).text}})]});return this.buildCard(t,a)}}const p=(0,l.withStyles)((()=>({dialogTitle:{display:"flex",justifyContent:"space-between",alignItems:"center"}})))(h)},51153:(t,e,a)=>{var o=a(28437),i=Symbol.for("react.element"),l=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,r=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function d(t,e,a){var o,l={},d=null,c=null;for(o in void 0!==a&&(d=""+a),void 0!==e.key&&(d=""+e.key),void 0!==e.ref&&(c=e.ref),e)n.call(e,o)&&!s.hasOwnProperty(o)&&(l[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps)void 0===l[o]&&(l[o]=e[o]);return{$$typeof:i,type:t,key:d,ref:c,props:l,_owner:r.current}}e.Fragment=l,e.jsx=d,e.jsxs=d},70579:(t,e,a)=>{t.exports=a(51153)}}]);
|
|
3
|
+
//# sourceMappingURL=src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css.a78ad806.chunk.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see src_lib_iro_min_js-src_assets_inventwo_css.c4bdf169.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["src_lib_iro_min_js-src_assets_inventwo_css"],{82782:function(t){t.exports=function(){"use strict";var t,e,n,r,i,o={},s=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;function a(t,e){for(var n in e)t[n]=e[n];return t}function u(t){var e=t.parentNode;e&&e.removeChild(t)}function c(t,e,n){var r,i,o,s,l=arguments;if(e=a({},e),3<arguments.length)for(n=[n],r=3;r<arguments.length;r++)n.push(l[r]);if(null!=n&&(e.children=n),null!=t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===e[i]&&(e[i]=t.defaultProps[i]);return s=e.key,null!=(o=e.ref)&&delete e.ref,null!=s&&delete e.key,h(t,e,s,o)}function h(e,n,r,i){var o={type:e,props:n,key:r,ref:i,n:null,i:null,e:0,o:null,l:null,c:null,constructor:void 0};return t.vnode&&t.vnode(o),o}function d(t){return t.children}function f(t,e){this.props=t,this.context=e}function p(t,e){if(null==e)return t.i?p(t.i,t.i.n.indexOf(t)+1):null;for(var n;e<t.n.length;e++)if(null!=(n=t.n[e])&&null!=n.o)return n.o;return"function"==typeof t.type?p(t):null}function v(t){var e,n;if(null!=(t=t.i)&&null!=t.c){for(t.o=t.c.base=null,e=0;e<t.n.length;e++)if(null!=(n=t.n[e])&&null!=n.o){t.o=t.c.base=n.o;break}return v(t)}}function g(i){(!i.f&&(i.f=!0)&&1===e.push(i)||r!==t.debounceRendering)&&(r=t.debounceRendering,(t.debounceRendering||n)(b))}function b(){var t,n,r,i,o,s,l,u;for(e.sort((function(t,e){return e.d.e-t.d.e}));t=e.pop();)t.f&&(i=r=void 0,s=(o=(n=t).d).o,l=n.p,u=n.u,n.u=!1,l&&(r=[],i=S(l,o,a({},o),n.w,void 0!==l.ownerSVGElement,null,r,u,null==s?p(o):s),E(r,o),i!=s&&v(o)))}function y(t,e,n,r,i,l,a,c,h){var d,f,v,g,b,y,x,w=n&&n.n||s,k=w.length;if(c==o&&(c=null!=l?l[0]:k?p(n,0):null),d=0,e.n=m(e.n,(function(n){if(null!=n){if(n.i=e,n.e=e.e+1,null===(v=w[d])||v&&n.key==v.key&&n.type===v.type)w[d]=void 0;else for(f=0;f<k;f++){if((v=w[f])&&n.key==v.key&&n.type===v.type){w[f]=void 0;break}v=null}if(g=S(t,n,v=v||o,r,i,l,a,null,c,h),(f=n.ref)&&v.ref!=f&&(x=x||[]).push(f,n.c||g,n),null!=g){if(null==y&&(y=g),null!=n.l)g=n.l,n.l=null;else if(l==v||g!=c||null==g.parentNode){t:if(null==c||c.parentNode!==t)t.appendChild(g);else{for(b=c,f=0;(b=b.nextSibling)&&f<k;f+=2)if(b==g)break t;t.insertBefore(g,c)}"option"==e.type&&(t.value="")}c=g.nextSibling,"function"==typeof e.type&&(e.l=g)}}return d++,n})),e.o=y,null!=l&&"function"!=typeof e.type)for(d=l.length;d--;)null!=l[d]&&u(l[d]);for(d=k;d--;)null!=w[d]&&C(w[d],w[d]);if(x)for(d=0;d<x.length;d++)j(x[d],x[++d],x[++d])}function m(t,e,n){if(null==n&&(n=[]),null==t||"boolean"==typeof t)e&&n.push(e(null));else if(Array.isArray(t))for(var r=0;r<t.length;r++)m(t[r],e,n);else n.push(e?e(function(t){if(null==t||"boolean"==typeof t)return null;if("string"==typeof t||"number"==typeof t)return h(null,t,null,null);if(null==t.o&&null==t.c)return t;var e=h(t.type,t.props,t.key,null);return e.o=t.o,e}(t)):t);return n}function x(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]="number"==typeof n&&!1===l.test(e)?n+"px":null==n?"":n}function w(t,e,n,r,i){var o,s,l,a,u;if("key"===(e=i?"className"===e?"class":e:"class"===e?"className":e)||"children"===e);else if("style"===e)if(o=t.style,"string"==typeof n)o.cssText=n;else{if("string"==typeof r&&(o.cssText="",r=null),r)for(s in r)n&&s in n||x(o,s,"");if(n)for(l in n)r&&n[l]===r[l]||x(o,l,n[l])}else"o"===e[0]&&"n"===e[1]?(a=e!==(e=e.replace(/Capture$/,"")),e=((u=e.toLowerCase())in t?u:e).slice(2),n?(r||t.addEventListener(e,k,a),(t.t||(t.t={}))[e]=n):t.removeEventListener(e,k,a)):"list"!==e&&"tagName"!==e&&"form"!==e&&!i&&e in t?t[e]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==e&&(e!==(e=e.replace(/^xlink:?/,""))?null==n||!1===n?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),n):null==n||!1===n?t.removeAttribute(e):t.setAttribute(e,n))}function k(e){return this.t[e.type](t.event?t.event(e):e)}function S(e,n,r,i,l,u,c,h,p,v){var g,b,x,k,S,E,j,C,R,A,M=n.type;if(void 0!==n.constructor)return null;(g=t.e)&&g(n);try{t:if("function"==typeof M){if(C=n.props,R=(g=M.contextType)&&i[g.c],A=g?R?R.props.value:g.i:i,r.c?j=(b=n.c=r.c).i=b.k:("prototype"in M&&M.prototype.render?n.c=b=new M(C,A):(n.c=b=new f(C,A),b.constructor=M,b.render=T),R&&R.sub(b),b.props=C,b.state||(b.state={}),b.context=A,b.w=i,x=b.f=!0,b.m=[]),null==b.j&&(b.j=b.state),null!=M.getDerivedStateFromProps&&a(b.j==b.state?b.j=a({},b.j):b.j,M.getDerivedStateFromProps(C,b.j)),x)null==M.getDerivedStateFromProps&&null!=b.componentWillMount&&b.componentWillMount(),null!=b.componentDidMount&&c.push(b);else{if(null==M.getDerivedStateFromProps&&null==h&&null!=b.componentWillReceiveProps&&b.componentWillReceiveProps(C,A),!h&&null!=b.shouldComponentUpdate&&!1===b.shouldComponentUpdate(C,b.j,A)){for(b.props=C,b.state=b.j,b.f=!1,(b.d=n).o=null!=p?p!==r.o?p:r.o:null,n.n=r.n,g=0;g<n.n.length;g++)n.n[g]&&(n.n[g].i=n);break t}null!=b.componentWillUpdate&&b.componentWillUpdate(C,b.j,A)}for(k=b.props,S=b.state,b.context=A,b.props=C,b.state=b.j,(g=t.M)&&g(n),b.f=!1,b.d=n,b.p=e,g=b.render(b.props,b.state,b.context),n.n=m(null!=g&&g.type==d&&null==g.key?g.props.children:g),null!=b.getChildContext&&(i=a(a({},i),b.getChildContext())),x||null==b.getSnapshotBeforeUpdate||(E=b.getSnapshotBeforeUpdate(k,S)),y(e,n,r,i,l,u,c,p,v),b.base=n.o;g=b.m.pop();)b.j&&(b.state=b.j),g.call(b);x||null==k||null==b.componentDidUpdate||b.componentDidUpdate(k,S,E),j&&(b.k=b.i=null)}else n.o=function(t,e,n,r,i,l,a,u){var c,h,d,f,p=n.props,v=e.props;if(i="svg"===e.type||i,null==t&&null!=l)for(c=0;c<l.length;c++)if(null!=(h=l[c])&&(null===e.type?3===h.nodeType:h.localName===e.type)){t=h,l[c]=null;break}if(null==t){if(null===e.type)return document.createTextNode(v);t=i?document.createElementNS("http://www.w3.org/2000/svg",e.type):document.createElement(e.type),l=null}return null===e.type?p!==v&&(null!=l&&(l[l.indexOf(t)]=null),t.data=v):e!==n&&(null!=l&&(l=s.slice.call(t.childNodes)),d=(p=n.props||o).dangerouslySetInnerHTML,f=v.dangerouslySetInnerHTML,u||(f||d)&&(f&&d&&f.O==d.O||(t.innerHTML=f&&f.O||"")),function(t,e,n,r,i){var o;for(o in n)o in e||w(t,o,null,n[o],r);for(o in e)i&&"function"!=typeof e[o]||"value"===o||"checked"===o||n[o]===e[o]||w(t,o,e[o],n[o],r)}(t,v,p,i,u),e.n=e.props.children,f||y(t,e,n,r,"foreignObject"!==e.type&&i,l,a,o,u),u||("value"in v&&void 0!==v.value&&v.value!==t.value&&(t.value=null==v.value?"":v.value),"checked"in v&&void 0!==v.checked&&v.checked!==t.checked&&(t.checked=v.checked))),t}(r.o,n,r,i,l,u,c,v);(g=t.diffed)&&g(n)}catch(e){t.o(e,n,r)}return n.o}function E(e,n){for(var r;r=e.pop();)try{r.componentDidMount()}catch(e){t.o(e,r.d)}t.c&&t.c(n)}function j(e,n,r){try{"function"==typeof e?e(n):e.current=n}catch(e){t.o(e,r)}}function C(e,n,r){var i,o,s;if(t.unmount&&t.unmount(e),(i=e.ref)&&j(i,null,n),r||"function"==typeof e.type||(r=null!=(o=e.o)),e.o=e.l=null,null!=(i=e.c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){t.o(e,n)}i.base=i.p=null}if(i=e.n)for(s=0;s<i.length;s++)i[s]&&C(i[s],n,r);null!=o&&u(o)}function T(t,e,n){return this.constructor(t,n)}function R(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function A(){return(A=Object.assign||function(t){for(var e=arguments,n=1;n<arguments.length;n++){var r=e[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}).apply(this,arguments)}t={},f.prototype.setState=function(t,e){var n=this.j!==this.state&&this.j||(this.j=a({},this.state));"function"==typeof t&&!(t=t(n,this.props))||a(n,t),null!=t&&this.d&&(this.u=!1,e&&this.m.push(e),g(this))},f.prototype.forceUpdate=function(t){this.d&&(t&&this.m.push(t),this.u=!0,g(this))},f.prototype.render=d,e=[],n="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,r=t.debounceRendering,t.o=function(t,e,n){for(var r;e=e.i;)if((r=e.c)&&!r.i)try{if(r.constructor&&null!=r.constructor.getDerivedStateFromError)r.setState(r.constructor.getDerivedStateFromError(t));else{if(null==r.componentDidCatch)continue;r.componentDidCatch(t)}return g(r.k=r)}catch(e){t=e}throw t},i=o;var M="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",O="[\\s|\\(]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")\\s*\\)?",I="[\\s|\\(]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")\\s*\\)?",P=new RegExp("rgb"+O),D=new RegExp("rgba"+I),H=new RegExp("hsl"+O),N=new RegExp("hsla"+I),_="^(?:#?|0x?)",W="([0-9a-fA-F]{1})",$="([0-9a-fA-F]{2})",L=new RegExp(_+W+W+W+"$"),z=new RegExp(_+W+W+W+W+"$"),U=new RegExp(_+$+$+$+"$"),B=new RegExp(_+$+$+$+$+"$"),F=Math.log,q=Math.round,V=Math.floor;function G(t,e,n){return Math.min(Math.max(t,e),n)}function K(t,e){var n=-1<t.indexOf("%"),r=parseFloat(t);return n?e/100*r:r}function X(t){return parseInt(t,16)}function Y(t){return t.toString(16).padStart(2,"0")}var Z=function(){function t(t,e){this.$={h:0,s:0,v:0,a:1},t&&this.set(t),this.onChange=e,this.initialValue=A({},this.$)}var e=t.prototype;return e.set=function(e){if("string"==typeof e)/^(?:#?|0x?)[0-9a-fA-F]{3,8}$/.test(e)?this.hexString=e:/^rgba?/.test(e)?this.rgbString=e:/^hsla?/.test(e)&&(this.hslString=e);else{if("object"!=typeof e)throw new Error("Invalid color value");e instanceof t?this.hsva=e.hsva:"r"in e&&"g"in e&&"b"in e?this.rgb=e:"h"in e&&"s"in e&&"v"in e?this.hsv=e:"h"in e&&"s"in e&&"l"in e?this.hsl=e:"kelvin"in e&&(this.kelvin=e.kelvin)}},e.setChannel=function(t,e,n){var r;this[t]=A({},this[t],((r={})[e]=n,r))},e.reset=function(){this.hsva=this.initialValue},e.clone=function(){return new t(this)},e.unbind=function(){this.onChange=void 0},t.hsvToRgb=function(t){var e=t.h/60,n=t.s/100,r=t.v/100,i=V(e),o=e-i,s=r*(1-n),l=r*(1-o*n),a=r*(1-(1-o)*n),u=i%6,c=[a,r,r,l,s,s][u],h=[s,s,a,r,r,l][u];return{r:G(255*[r,l,s,s,a,r][u],0,255),g:G(255*c,0,255),b:G(255*h,0,255)}},t.rgbToHsv=function(t){var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.max(e,n,r),o=Math.min(e,n,r),s=i-o,l=0,a=i,u=0===i?0:s/i;switch(i){case o:l=0;break;case e:l=(n-r)/s+(n<r?6:0);break;case n:l=(r-e)/s+2;break;case r:l=(e-n)/s+4}return{h:60*l%360,s:G(100*u,0,100),v:G(100*a,0,100)}},t.hsvToHsl=function(t){var e=t.s/100,n=t.v/100,r=(2-e)*n,i=r<=1?r:2-r,o=i<1e-9?0:e*n/i;return{h:t.h,s:G(100*o,0,100),l:G(50*r,0,100)}},t.hslToHsv=function(t){var e=2*t.l,n=t.s*(e<=100?e:200-e)/100,r=e+n<1e-9?0:2*n/(e+n);return{h:t.h,s:G(100*r,0,100),v:G((e+n)/2,0,100)}},t.kelvinToRgb=function(t){var e,n,r,i=t/100;return r=i<66?(e=255,n=-155.25485562709179-.44596950469579133*(n=i-2)+104.49216199393888*F(n),i<20?0:.8274096064007395*(r=i-10)-254.76935184120902+115.67994401066147*F(r)):(e=351.97690566805693+.114206453784165*(e=i-55)-40.25366309332127*F(e),n=325.4494125711974+.07943456536662342*(n=i-50)-28.0852963507957*F(n),255),{r:G(V(e),0,255),g:G(V(n),0,255),b:G(V(r),0,255)}},t.rgbToKelvin=function(e){for(var n,r=e.r,i=e.b,o=2e3,s=4e4;.4<s-o;){var l=t.kelvinToRgb(n=.5*(s+o));l.b/l.r>=i/r?s=n:o=n}return n},function(t,e,n){e&&R(t.prototype,e),n&&R(t,n)}(t,[{key:"hsv",get:function(){var t=this.$;return{h:t.h,s:t.s,v:t.v}},set:function(t){var e=this.$;if(t=A({},e,t),this.onChange){var n={h:!1,v:!1,s:!1,a:!1};for(var r in e)n[r]=t[r]!=e[r];this.$=t,(n.h||n.s||n.v||n.a)&&this.onChange(this,n)}else this.$=t}},{key:"hsva",get:function(){return A({},this.$)},set:function(t){this.hsv=t}},{key:"hue",get:function(){return this.$.h},set:function(t){this.hsv={h:t}}},{key:"saturation",get:function(){return this.$.s},set:function(t){this.hsv={s:t}}},{key:"value",get:function(){return this.$.v},set:function(t){this.hsv={v:t}}},{key:"alpha",get:function(){return this.$.a},set:function(t){this.hsv=A({},this.hsv,{a:t})}},{key:"kelvin",get:function(){return t.rgbToKelvin(this.rgb)},set:function(e){this.rgb=t.kelvinToRgb(e)}},{key:"red",get:function(){return this.rgb.r},set:function(t){this.rgb=A({},this.rgb,{r:t})}},{key:"green",get:function(){return this.rgb.g},set:function(t){this.rgb=A({},this.rgb,{g:t})}},{key:"blue",get:function(){return this.rgb.b},set:function(t){this.rgb=A({},this.rgb,{b:t})}},{key:"rgb",get:function(){var e=t.hsvToRgb(this.$),n=e.r,r=e.g,i=e.b;return{r:q(n),g:q(r),b:q(i)}},set:function(e){this.hsv=A({},t.rgbToHsv(e),{a:void 0===e.a?1:e.a})}},{key:"rgba",get:function(){return A({},this.rgb,{a:this.alpha})},set:function(t){this.rgb=t}},{key:"hsl",get:function(){var e=t.hsvToHsl(this.$),n=e.h,r=e.s,i=e.l;return{h:q(n),s:q(r),l:q(i)}},set:function(e){this.hsv=A({},t.hslToHsv(e),{a:void 0===e.a?1:e.a})}},{key:"hsla",get:function(){return A({},this.hsl,{a:this.alpha})},set:function(t){this.hsl=t}},{key:"rgbString",get:function(){var t=this.rgb;return"rgb("+t.r+", "+t.g+", "+t.b+")"},set:function(t){var e,n,r,i,o=1;if((e=P.exec(t))?(n=K(e[1],255),r=K(e[2],255),i=K(e[3],255)):(e=D.exec(t))&&(n=K(e[1],255),r=K(e[2],255),i=K(e[3],255),o=K(e[4],1)),!e)throw new Error("Invalid rgb string");this.rgb={r:n,g:r,b:i,a:o}}},{key:"rgbaString",get:function(){var t=this.rgba;return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},set:function(t){this.rgbString=t}},{key:"hexString",get:function(){var t=this.rgb;return"#"+Y(t.r)+Y(t.g)+Y(t.b)},set:function(t){var e,n,r,i,o=255;if((e=L.exec(t))?(n=17*X(e[1]),r=17*X(e[2]),i=17*X(e[3])):(e=z.exec(t))?(n=17*X(e[1]),r=17*X(e[2]),i=17*X(e[3]),o=17*X(e[4])):(e=U.exec(t))?(n=X(e[1]),r=X(e[2]),i=X(e[3])):(e=B.exec(t))&&(n=X(e[1]),r=X(e[2]),i=X(e[3]),o=X(e[4])),!e)throw new Error("Invalid hex string");this.rgb={r:n,g:r,b:i,a:o/255}}},{key:"hex8String",get:function(){var t=this.rgba;return"#"+Y(t.r)+Y(t.g)+Y(t.b)+Y(V(255*t.a))},set:function(t){this.hexString=t}},{key:"hslString",get:function(){var t=this.hsl;return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},set:function(t){var e,n,r,i,o=1;if((e=H.exec(t))?(n=K(e[1],360),r=K(e[2],100),i=K(e[3],100)):(e=N.exec(t))&&(n=K(e[1],360),r=K(e[2],100),i=K(e[3],100),o=K(e[4],1)),!e)throw new Error("Invalid hsl string");this.hsl={h:n,s:r,l:i,a:o}}},{key:"hslaString",get:function(){var t=this.hsla;return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},set:function(t){this.hslString=t}}]),t}();function J(t){var e,n=t.width,r=t.sliderSize,i=t.borderWidth,o=t.handleRadius,s=t.padding,l=t.sliderShape,a="horizontal"===t.layoutDirection;return r=null!=(e=r)?e:2*s+2*o,"circle"===l?{handleStart:t.padding+t.handleRadius,handleRange:n-2*s-2*o,width:n,height:n,cx:n/2,cy:n/2,radius:n/2-i/2}:{handleStart:r/2,handleRange:n-r,radius:r/2,x:0,y:0,width:a?r:n,height:a?n:r}}function Q(t,e){var n=J(t),r=n.width,i=n.height,o=n.handleRange,s=n.handleStart,l="horizontal"===t.layoutDirection,a=l?r/2:i/2,u=s+function(t,e){var n=e.hsva,r=e.rgb;switch(t.sliderType){case"red":return r.r/2.55;case"green":return r.g/2.55;case"blue":return r.b/2.55;case"alpha":return 100*n.a;case"kelvin":var i=t.minTemperature,o=t.maxTemperature-i,s=(e.kelvin-i)/o*100;return Math.max(0,Math.min(s,100));case"hue":return n.h/=3.6;case"saturation":return n.s;default:return n.v}}(t,e)/100*o;return l&&(u=-1*u+o+2*s),{x:l?a:u,y:l?u:a}}var tt,et=2*Math.PI,nt=function(t,e){return(t%e+e)%e},rt=function(t,e){return Math.sqrt(t*t+e*e)};function it(t){return t.width/2-t.padding-t.handleRadius-t.borderWidth}function ot(t){var e=t.width/2;return{width:t.width,radius:e-t.borderWidth,cx:e,cy:e}}function st(t,e,n){var r=t.wheelAngle,i=t.wheelDirection;return n&&"clockwise"===i?e=r+e:"clockwise"===i?e=360-r+e:n&&"anticlockwise"===i?e=r+180-e:"anticlockwise"===i&&(e=r-e),nt(e,360)}function lt(t,e,n){var r=ot(t),i=r.cx,o=r.cy,s=it(t);e=i-e,n=o-n;var l=st(t,Math.atan2(-n,-e)*(360/et)),a=Math.min(rt(e,n),s);return{h:Math.round(l),s:Math.round(100/s*a)}}function at(t){var e=t.width,n=t.boxHeight;return{width:e,height:null!=n?n:e,radius:t.padding+t.handleRadius}}function ut(t,e,n){var r=at(t),i=r.width,o=r.height,s=r.radius,l=(e-s)/(i-2*s)*100,a=(n-s)/(o-2*s)*100;return{s:Math.max(0,Math.min(l,100)),v:Math.max(0,Math.min(100-a,100))}}function ct(t,e,n,r){for(var i=0;i<r.length;i++){var o=r[i].x-e,s=r[i].y-n;if(Math.sqrt(o*o+s*s)<t.handleRadius)return i}return null}function ht(t){return{boxSizing:"border-box",border:t.borderWidth+"px solid "+t.borderColor}}function dt(t,e,n){return t+"-gradient("+e+", "+n.map((function(t){var e=t[0];return t[1]+" "+e+"%"})).join(",")+")"}function ft(t){return"string"==typeof t?t:t+"px"}var pt=["mousemove","touchmove","mouseup","touchend"],vt=function(t){function e(e){t.call(this,e),this.uid=(Math.random()+1).toString(36).substring(5)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.render=function(t){var e=this.handleEvent.bind(this),n={onMouseDown:e,ontouchstart:e},r="horizontal"===t.layoutDirection,i=null===t.margin?t.sliderMargin:t.margin,o={overflow:"visible",display:r?"inline-block":"block"};return 0<t.index&&(o[r?"marginLeft":"marginTop"]=i),c(d,null,t.children(this.uid,n,o))},e.prototype.handleEvent=function(t){var e=this,n=this.props.onInput,r=this.base.getBoundingClientRect();t.preventDefault();var i=t.touches?t.changedTouches[0]:t,o=i.clientX-r.left,s=i.clientY-r.top;switch(t.type){case"mousedown":case"touchstart":!1!==n(o,s,0)&&pt.forEach((function(t){document.addEventListener(t,e,{passive:!1})}));break;case"mousemove":case"touchmove":n(o,s,1);break;case"mouseup":case"touchend":n(o,s,2),pt.forEach((function(t){document.removeEventListener(t,e,{passive:!1})}))}},e}(f);function gt(t){var e=t.r,n=t.url,r=e,i=e;return c("svg",{className:"IroHandle IroHandle--"+t.index+" "+(t.isActive?"IroHandle--isActive":""),style:{"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0);",transform:"translate("+ft(t.x)+", "+ft(t.y)+")",willChange:"transform",top:ft(-e),left:ft(-e),width:ft(2*e),height:ft(2*e),position:"absolute",overflow:"visible"}},n&&c("use",Object.assign({xlinkHref:function(t){tt=tt||document.getElementsByTagName("base");var e=window.navigator.userAgent,n=/^((?!chrome|android).)*safari/i.test(e),r=/iPhone|iPod|iPad/i.test(e),i=window.location;return(n||r)&&0<tt.length?i.protocol+"//"+i.host+i.pathname+i.search+t:t}(n)},t.props)),!n&&c("circle",{cx:r,cy:i,r:e,fill:"none","stroke-width":2,stroke:"#000"}),!n&&c("circle",{cx:r,cy:i,r:e-2,fill:t.fill,"stroke-width":2,stroke:"#fff"}))}function bt(t){var e=t.activeIndex,n=void 0!==e&&e<t.colors.length?t.colors[e]:t.color,r=J(t),i=r.width,o=r.height,s=r.radius,l=Q(t,n),a=function(t,e){var n=e.hsv,r=e.rgb;switch(t.sliderType){case"red":return[[0,"rgb(0,"+r.g+","+r.b+")"],[100,"rgb(255,"+r.g+","+r.b+")"]];case"green":return[[0,"rgb("+r.r+",0,"+r.b+")"],[100,"rgb("+r.r+",255,"+r.b+")"]];case"blue":return[[0,"rgb("+r.r+","+r.g+",0)"],[100,"rgb("+r.r+","+r.g+",255)"]];case"alpha":return[[0,"rgba("+r.r+","+r.g+","+r.b+",0)"],[100,"rgb("+r.r+","+r.g+","+r.b+")"]];case"kelvin":for(var i=[],o=t.minTemperature,s=t.maxTemperature,l=s-o,a=o,u=0;a<s;a+=l/8,u+=1){var c=Z.kelvinToRgb(a),h=c.r,d=c.g,f=c.b;i.push([12.5*u,"rgb("+h+","+d+","+f+")"])}return i;case"hue":return[[0,"#f00"],[16.666,"#ff0"],[33.333,"#0f0"],[50,"#0ff"],[66.666,"#00f"],[83.333,"#f0f"],[100,"#f00"]];case"saturation":var p=Z.hsvToHsl({h:n.h,s:0,v:n.v}),v=Z.hsvToHsl({h:n.h,s:100,v:n.v});return[[0,"hsl("+p.h+","+p.s+"%,"+p.l+"%)"],[100,"hsl("+v.h+","+v.s+"%,"+v.l+"%)"]];default:var g=Z.hsvToHsl({h:n.h,s:n.s,v:100});return[[0,"#000"],[100,"hsl("+g.h+","+g.s+"%,"+g.l+"%)"]]}}(t,n);return c(vt,Object.assign({},t,{onInput:function(e,r,i){var o=function(t,e,n){var r,i=J(t),o=i.handleRange,s=i.handleStart;r="horizontal"===t.layoutDirection?-1*n+o+s:e-s,r=Math.max(Math.min(r,o),0);var l=Math.round(100/o*r);switch(t.sliderType){case"kelvin":var a=t.minTemperature;return a+l/100*(t.maxTemperature-a);case"alpha":return l/100;case"hue":return 3.6*l;case"red":case"blue":case"green":return 2.55*l;default:return l}}(t,e,r);t.parent.inputActive=!0,n[t.sliderType]=o,t.onInput(i,t.id)}}),(function(e,r,u){return c("div",Object.assign({},r,{className:"IroSlider",style:Object.assign({},{position:"relative",width:ft(i),height:ft(o),borderRadius:ft(s),background:"conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0)",backgroundSize:"8px 8px"},u)}),c("div",{className:"IroSliderGradient",style:Object.assign({},{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:ft(s),background:dt("linear","horizontal"===t.layoutDirection?"to top":"to right",a)},ht(t))}),c(gt,{isActive:!0,index:n.index,r:t.handleRadius,url:t.handleSvg,props:t.handleProps,x:l.x,y:l.y}))}))}function yt(t){var e=at(t),n=e.width,r=e.height,i=e.radius,o=t.colors,s=t.parent,l=t.activeIndex,a=void 0!==l&&l<t.colors.length?t.colors[l]:t.color,u=function(t,e){return[[[0,"#fff"],[100,"hsl("+e.hue+",100%,50%)"]],[[0,"rgba(0,0,0,0)"],[100,"#000"]]]}(0,a),h=o.map((function(e){return function(t,e){var n=at(t),r=n.width,i=n.height,o=n.radius,s=e.hsv,l=o,a=r-2*o,u=i-2*o;return{x:l+s.s/100*a,y:l+(u-s.v/100*u)}}(t,e)}));return c(vt,Object.assign({},t,{onInput:function(e,n,r){if(0===r){var i=ct(t,e,n,h);null!==i?s.setActiveColor(i):(s.inputActive=!0,a.hsv=ut(t,e,n),t.onInput(r,t.id))}else 1===r&&(s.inputActive=!0,a.hsv=ut(t,e,n));t.onInput(r,t.id)}}),(function(e,s,l){return c("div",Object.assign({},s,{className:"IroBox",style:Object.assign({},{width:ft(n),height:ft(r),position:"relative"},l)}),c("div",{className:"IroBox",style:Object.assign({},{width:"100%",height:"100%",borderRadius:ft(i)},ht(t),{background:dt("linear","to bottom",u[1])+","+dt("linear","to right",u[0])})}),o.filter((function(t){return t!==a})).map((function(e){return c(gt,{isActive:!1,index:e.index,fill:e.hslString,r:t.handleRadius,url:t.handleSvg,props:t.handleProps,x:h[e.index].x,y:h[e.index].y})})),c(gt,{isActive:!0,index:a.index,fill:a.hslString,r:t.activeHandleRadius||t.handleRadius,url:t.handleSvg,props:t.handleProps,x:h[a.index].x,y:h[a.index].y}))}))}function mt(t){var e=ot(t).width,n=t.colors,r=(t.borderWidth,t.parent),i=t.color,o=i.hsv,s=n.map((function(e){return function(t,e){var n=e.hsv,r=ot(t),i=r.cx,o=r.cy,s=it(t),l=(180+st(t,n.h,!0))*(et/360),a=n.s/100*s,u="clockwise"===t.wheelDirection?-1:1;return{x:i+a*Math.cos(l)*u,y:o+a*Math.sin(l)*u}}(t,e)})),l={position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",boxSizing:"border-box"};return c(vt,Object.assign({},t,{onInput:function(e,n,o){if(0===o){if(!function(t,e,n){var r=ot(t),i=r.cx,o=r.cy,s=t.width/2;return rt(i-e,o-n)<s}(t,e,n))return!1;var l=ct(t,e,n,s);null!==l?r.setActiveColor(l):(r.inputActive=!0,i.hsv=lt(t,e,n),t.onInput(o,t.id))}else 1===o&&(r.inputActive=!0,i.hsv=lt(t,e,n));t.onInput(o,t.id)}}),(function(r,a,u){return c("div",Object.assign({},a,{className:"IroWheel",style:Object.assign({},{width:ft(e),height:ft(e),position:"relative"},u)}),c("div",{className:"IroWheelHue",style:Object.assign({},l,{transform:"rotateZ("+(t.wheelAngle+90)+"deg)",background:"clockwise"===t.wheelDirection?"conic-gradient(red, yellow, lime, aqua, blue, magenta, red)":"conic-gradient(red, magenta, blue, aqua, lime, yellow, red)"})}),c("div",{className:"IroWheelSaturation",style:Object.assign({},l,{background:"radial-gradient(circle closest-side, #fff, transparent)"})}),t.wheelLightness&&c("div",{className:"IroWheelLightness",style:Object.assign({},l,{background:"#000",opacity:1-o.v/100})}),c("div",{className:"IroWheelBorder",style:Object.assign({},l,ht(t))}),n.filter((function(t){return t!==i})).map((function(e){return c(gt,{isActive:!1,index:e.index,fill:e.hslString,r:t.handleRadius,url:t.handleSvg,props:t.handleProps,x:s[e.index].x,y:s[e.index].y})})),c(gt,{isActive:!0,index:i.index,fill:i.hslString,r:t.activeHandleRadius||t.handleRadius,url:t.handleSvg,props:t.handleProps,x:s[i.index].x,y:s[i.index].y}))}))}gt.defaultProps={fill:"none",x:0,y:0,r:8,url:null,props:{x:0,y:0}},bt.defaultProps=Object.assign({},{sliderShape:"bar",sliderType:"value",minTemperature:2200,maxTemperature:11e3});var xt=function(t){function e(e){var n=this;t.call(this,e),this.colors=[],this.inputActive=!1,this.events={},this.activeEvents={},this.deferredEvents={},this.id=e.id,(0<e.colors.length?e.colors:[e.color]).forEach((function(t){return n.addColor(t)})),this.setActiveColor(0),this.state=Object.assign({},e,{color:this.color,colors:this.colors,layout:e.layout})}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.addColor=function(t,e){void 0===e&&(e=this.colors.length);var n=new Z(t,this.onColorChange.bind(this));this.colors.splice(e,0,n),this.colors.forEach((function(t,e){return t.index=e})),this.state&&this.setState({colors:this.colors}),this.deferredEmit("color:init",n)},e.prototype.removeColor=function(t){var e=this.colors.splice(t,1)[0];e.unbind(),this.colors.forEach((function(t,e){return t.index=e})),this.state&&this.setState({colors:this.colors}),e.index===this.color.index&&this.setActiveColor(0),this.emit("color:remove",e)},e.prototype.setActiveColor=function(t){this.color=this.colors[t],this.state&&this.setState({color:this.color}),this.emit("color:setActive",this.color)},e.prototype.setColors=function(t,e){var n=this;void 0===e&&(e=0),this.colors.forEach((function(t){return t.unbind()})),this.colors=[],t.forEach((function(t){return n.addColor(t)})),this.setActiveColor(e),this.emit("color:setAll",this.colors)},e.prototype.on=function(t,e){var n=this,r=this.events;(Array.isArray(t)?t:[t]).forEach((function(t){(r[t]||(r[t]=[])).push(e),n.deferredEvents[t]&&(n.deferredEvents[t].forEach((function(t){e.apply(null,t)})),n.deferredEvents[t]=[])}))},e.prototype.off=function(t,e){var n=this;(Array.isArray(t)?t:[t]).forEach((function(t){var r=n.events[t];r&&r.splice(r.indexOf(e),1)}))},e.prototype.emit=function(t){for(var e=this,n=[],r=arguments.length-1;0<r--;)n[r]=arguments[r+1];var i=this.activeEvents;i.hasOwnProperty(t)&&i[t]||(i[t]=!0,(this.events[t]||[]).forEach((function(t){return t.apply(e,n)})),i[t]=!1)},e.prototype.deferredEmit=function(t){for(var e,n=[],r=arguments.length-1;0<r--;)n[r]=arguments[r+1];var i=this.deferredEvents;(e=this).emit.apply(e,[t].concat(n)),(i[t]||(i[t]=[])).push(n)},e.prototype.setOptions=function(t){this.setState(t)},e.prototype.resize=function(t){this.setOptions({width:t})},e.prototype.reset=function(){this.colors.forEach((function(t){return t.reset()})),this.setState({colors:this.colors})},e.prototype.onMount=function(t){this.el=t,this.deferredEmit("mount",this)},e.prototype.onColorChange=function(t,e){this.setState({color:this.color}),this.inputActive&&(this.inputActive=!1,this.emit("input:change",t,e)),this.emit("color:change",t,e)},e.prototype.emitInputEvent=function(t,e){0===t?this.emit("input:start",this.color,e):1===t?this.emit("input:move",this.color,e):2===t&&this.emit("input:end",this.color,e)},e.prototype.render=function(t,e){var n=this,r=e.layout;return Array.isArray(r)||(r=[{component:mt},{component:bt}],e.transparency&&r.push({component:bt,options:{sliderType:"alpha"}})),c("div",{class:"IroColorPicker",id:e.id,style:{display:e.display}},r.map((function(t,r){var i=t.component,o=t.options;return c(i,Object.assign({},e,o,{ref:void 0,onInput:n.emitInputEvent.bind(n),parent:n,index:r}))})))},e}(f);xt.defaultProps=Object.assign({},{width:300,height:300,color:"#fff",colors:[],padding:6,layoutDirection:"vertical",borderColor:"#fff",borderWidth:0,handleRadius:8,activeHandleRadius:null,handleSvg:null,handleProps:{x:0,y:0},wheelLightness:!0,wheelAngle:0,wheelDirection:"anticlockwise",sliderSize:null,sliderMargin:12,boxHeight:null},{colors:[],display:"block",id:null,layout:"default",margin:null});var wt,kt,St,Et,jt=(Ct.prototype=(wt=xt).prototype,Object.assign(Ct,wt),Ct.I=wt,Ct);function Ct(e,n){var r,l=document.createElement("div");function a(){var t=e instanceof Element?e:document.querySelector(e);t.appendChild(r.base),r.onMount(t)}return function(e,n,r){var l,a,u;t.i&&t.i(e,n),a=(l=r===i)?null:r&&r.n||n.n,e=c(d,null,[e]),u=[],S(n,l?n.n=e:(r||n).n=e,a||o,o,void 0!==n.ownerSVGElement,r&&!l?[r]:a?null:s.slice.call(n.childNodes),u,!1,r||o,l),E(u,e)}(c(wt,Object.assign({},{ref:function(t){return r=t}},n)),l),"loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a),r}return(St=kt=kt||{}).version="5.5.2",St.Color=Z,St.ColorPicker=jt,(Et=St.ui||(St.ui={})).h=c,Et.ComponentBase=vt,Et.Handle=gt,Et.Slider=bt,Et.Wheel=mt,Et.Box=yt,kt}()},14915:()=>{}}]);
|
|
3
|
+
//# sourceMappingURL=src_lib_iro_min_js-src_assets_inventwo_css.c4bdf169.chunk.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["src_translations_js"],{5850:(t,e,o)=>{o.r(e),o.d(e,{default:()=>i});const i={en:o(75553),de:o(46477),ru:o(63715),pt:o(74606),nl:o(86164),fr:o(74554),it:o(66851),es:o(72706),pl:o(23638),"zh-cn":o(80222)}},46477:t=>{t.exports={}},75553:t=>{t.exports=JSON.parse('{"vis_2_widgets_set_inventwo":"inventwo Widgets","vis_2_widgets_template_oid":"Objekt ID","vis_2_widgets_template_private":"Private","vis_2_widgets_template_type":"Type","vis_2_widgets_inventwo_widget_universal":"Universal","vis_2_widgets_inventwo_widget_slider":"Slider","vis_2_widgets_inventwo_attr_group_css":"inventwo Widget Design","vis_2_widgets_inventwo_attr_group_states":"State","vis_2_widgets_inventwo_attr_group_state_default":"Default state","vis_2_widgets_inventwo_attr_group_type_view_in_dialog":"Type - View in dialog","vis_2_widgets_inventwo_attr_content_color_picker":"Widget content - Color picker","vis_2_widgets_inventwo_attr_group_css_text":"inventwo CSS - Text","vis_2_widgets_inventwo_attr_group_css_content":"inventwo CSS - Content","vis_2_widgets_inventwo_attr_group_css_alignment":"inventwo CSS - Alignment","vis_2_widgets_inventwo_attr_group_css_transparency":"inventwo CSS - Transparency","vis_2_widgets_inventwo_attr_group_css_spacing":"inventwo CSS - Spacing","vis_2_widgets_inventwo_attr_group_css_border_radius":"inventwo CSS - Border radius","vis_2_widgets_inventwo_attr_group_css_border":"inventwo CSS - Border","vis_2_widgets_inventwo_attr_group_css_outer_shadow":"inventwo CSS - Outer shadow","vis_2_widgets_inventwo_attr_group_css_inner_shadow":"inventwo CSS - Inner shadow","vis_2_widgets_inventwo_attr_group_css_slider_track":"inventwo CSS - Slider track","vis_2_widgets_inventwo_attr_group_css_slider_slider_thumb":"inventwo CSS - Slider thumb","colors":"Colors","oid":"Object ID","min_value":"Min value","max_value":"Max value","step":"Step","horizontal":"Horizontal","vertical":"Vertical","orientation":"Orientation","slider_rail_color":"Slider rail color","slider_rail_active_color":"Slider rail active color","normal":"Normal","inverted":"Inverted","none":"None","track_bar_type":"Track bar type","track_width":"Track width","track_border_radius":"Track border radius","x_offset":"X offset","y_offset":"Y offset","blur":"Blur","size":"Size","shadow_color":"Shadow color","slider_thumb_color":"Slider thumb color","thumbSize":"ThumbSize","thumb_border_radius":"Thumb border radius","switch":"Switch","button":"Button","nav":"Nav","read_only":"Read only","view_in_dialog":"View in dialog","type":"Type","mode":"Mode","row":"Row","column":"Column","direction":"Direction","view":"View","value_false":"Value false","value_true":"Value true","dialog_title":"Dialog title","button_width":"Button width","button_spacing":"Button spacing","count_states":"Count states","dialog_fullscreen":"Dialog fullscreen","dialog_width":"Dialog width","dialog_height":"Dialog height","text":"Text","icon":"Icon","image":"Image","text_html":"Text html","view_in_widget":"View in widget","content_color":"Content color","text_color":"Text color","border_color":"Border color","outer_shadow_color":"Outer shadow color","inner_shadow_color":"Inner shadow color","value":"Value","text_true":"Text true","icon_true":"Icon true","image_true":"Image true","text_html_true":"Text html true","view_in_widget_true":"View in widget true","content_color_true":"Content color true","background color":"Background color","background_true":"Background true","hex":"Hex","hex_8":"Hex 8","rgb":"Rgb","hsl":"Hsl","hsv":"Hsv","cie":"Cie","color_model":"Color model","oid_value_1":"Oid value 1","oid_value_2":"Oid value 2","oid_value_3":"Oid value 3","width":"Width","handle_size":"Handle size","handle_margin":"Handle margin","components_space":"Components space","border_width":"Border width","show_wheel":"Show wheel","show_box":"Show box","show_hue":"Show hue","show_Saturation":"Show Saturation","show_value":"Show value","show_red":"Show red","show_green":"Show green","show_blue":"Show blue","show_Alpha":"Show Alpha","show_kelvin":"Show kelvin","underline":"Underline","overline":"Overline","line-through":"Line-through","text_decoration":"Text decoration","margin_top":"Margin top","margin_bottom":"Margin bottom","margin_left":"Margin left","margin_right":"Margin right","color_picker":"Color picker","content_type":"Content type","content_size":"Content size","rotation":"Rotation","mirror":"Mirror","start":"Start","center":"Center","end":"End","space between":"Space between","alignment":"Alignment","text_align":"Text align","content_align":"Content align","invert_order":"Invert order","background_opacity":"Background opacity","content_opacity":"Content opacity","padding_left":"Padding left","padding_right":"Padding right","padding_top":"Padding top","padding_bottom":"Padding bottom","top_left":"Top left","top_right":"Top right","bottom_right":"Bottom right","bottom_left":"Bottom left","size_top":"Size top","size_bottom":"Size bottom","size_left":"Size left","size_right":"Size right","dashed":"Dashed","dotted":"Dotted","double":"Double","groove":"Groove","outset":"Outset","ridge":"Ridge","solid":"Solid","border_style":"Border style","content_blink_interval":"Content blink interval","text_color_true":"Text color true","border_color_true":"Border color true","outer_shadow_color_true":"Outer shadow color true","inner_shadow_color_true":"Inner shadow color true","background":"Background","show_min_max":"Show min max","vis_2_widgets_inventwo_widget_table":"Table","vis_2_widgets_inventwo_attr_group_columns":"Column","max_rows":"Max rows","show_head":"Show head","key":"Key","title":"Title","prefix":"Prefix","suffix":"Suffix","left":"Left","right":"Right","title_align":"Title align","count_columns":"Count columns","single_button":"Single button","separated_buttons":"Separated buttons"}')},72706:t=>{t.exports={}},74554:t=>{t.exports={}},66851:t=>{t.exports={}},86164:t=>{t.exports={}},23638:t=>{t.exports={}},74606:t=>{t.exports={}},63715:t=>{t.exports={}},80222:t=>{t.exports={}}}]);
|
|
2
|
+
//# sourceMappingURL=src_translations_js.42265fc2.chunk.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! For license information please see vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.
|
|
2
|
-
(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx"],{15647:(t,e,r)=>{"use strict";var n=r(24994);Object.defineProperty(e,"B",{value:!0}),e.A=void 0;var o=n(r(54756)),i=n(r(73738)),a=n(r(29293)),u=n(r(17383)),s=n(r(34579)),c=n(r(12475)),l=n(r(29511)),f=n(r(28452)),p=n(r(63072)),d=n(r(43693)),h=n(r(28437)),y=r(67085),v=r(37449);function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){(0,d.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,p.default)(t);if(e){var o=(0,p.default)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,f.default)(this,r)}}var m=["background-color","border","background","background-image","background-position","background-repeat","background-size","background-clip","background-origin","color","box-sizing","border-width","border-style","border-color","border-radius","box-shadow","text-align","text-shadow","font-family","font-size","font-weight","line-height","font-style","font-variant","letter-spacing","word-spacing"],w=function(t){(0,l.default)(r,t);var e=b(r);function r(t){var n;return(0,u.default)(this,r),n=e.call(this,t),(0,d.default)((0,c.default)(n),"getIdSubscribeState",(function(t,e){return n.props.context.socket.getState(t).then((function(r){return e(t,r),n.props.context.socket.subscribeState(t,(function(r,n){return e(t,n)}))}))})),n.onStateChanged=n.onStateChanged.bind((0,c.default)(n)),n.state=x(x({},t),{},{values:{},data:JSON.parse(JSON.stringify(t.data||{})),style:JSON.parse(JSON.stringify(t.style||{})),rxData:JSON.parse(JSON.stringify(t.data||{})),rxStyle:JSON.parse(JSON.stringify(t.style||{}))}),n.linkContext={IDs:[]},n}return(0,s.default)(r,[{key:"renderWidgetBody",value:function(t){return null}},{key:"onStateUpdated",value:function(t,e){}},{key:"formatValue",value:function(t,e){var r;"number"===typeof t&&(t=0===e?Math.round(t):Math.round(100*t)/100,null!==(r=this.props.context.systemConfig)&&void 0!==r&&r.common&&this.props.context.systemConfig.common.isFloatComma&&(t=t.toString().replace(".",",")));return void 0===t||null===t?"":t.toString()}},{key:"wrapContent",value:function(t,e,r,n,o,i){var a,u=this,s=(null===i||void 0===i?void 0:i.Card)||y.Card,c=(null===i||void 0===i?void 0:i.CardContent)||y.CardContent,l=x({width:"calc(100% - 8px)",height:"calc(100% - 8px)",margin:4},null===(a=this.props.customSettings)||void 0===a||null===(a=a.viewStyle)||void 0===a?void 0:a.visCard);return Object.keys(this.state.rxStyle).forEach((function(t){var e=u.state.rxStyle[t];null!==e&&void 0!==e&&m.includes(t)&&(t=t.replace(/(-\w)/g,(function(t){return t[1].toUpperCase()})),l[t]=e)})),this.wrappedContent=!0,h.default.createElement(s,{className:"vis_rx_widget_card",style:l,onClick:o},h.default.createElement(c,{className:"vis_rx_widget_card_content",style:x({display:"flex",flexDirection:"column",alignItems:"center",height:"calc(100% - 32px)",paddingBottom:16,position:"relative"},r)},this.state.rxData.widgetTitle?h.default.createElement("div",{className:"vis_rx_widget_card_name",style:{display:"flex",justifyContent:"space-between",width:"100%",alignItems:"center"}},h.default.createElement("div",{className:"vis_rx_widget_card_name_div",style:x({fontSize:24,paddingTop:0,paddingBottom:4},n)},this.state.rxData.widgetTitle),e||null):e||null,t))}},{key:"onStateChanged",value:function(t,e){if(e){var r=JSON.parse(JSON.stringify(this.state.values));Object.keys(e).forEach((function(n){return r["".concat(t,".").concat(n)]=e[n]})),this.onStateUpdated(t,e),this.setState({values:r})}}},{key:"componentDidMount",value:function(){var t=(0,a.default)(o.default.mark((function t(){var e,r,n=this;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:null===(e=this.getWidgetInfo())||void 0===e||null===(e=e.visAttrs)||void 0===e||e.forEach((function(t){var e;return null===t||void 0===t||null===(e=t.fields)||void 0===e?void 0:e.forEach((function(t){"id"===(null===t||void 0===t?void 0:t.type)&&Object.keys(n.state.data).forEach((function(e){if(e.match(new RegExp("^".concat(t.name,"[0-9]*$")))){var r=n.state.data[e];n.linkContext.IDs.includes(r)||n.linkContext.IDs.push(r)}}))}))})),r=0;case 2:if(!(r<this.linkContext.IDs.length)){t.next=8;break}return t.next=5,this.getIdSubscribeState(this.linkContext.IDs[r],this.onStateChanged);case 5:r++,t.next=2;break;case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){var t=this;this.linkContext.IDs.forEach((function(e){return t.props.context.socket.unsubscribeState(e,t.onStateChanged)}))}},{key:"getWidgetView",value:function(t,e){return h.default.createElement("div",{style:{width:"100%",height:"100%"}},"DEMO VIEW")}},{key:"render",value:function(){var t,e;return h.default.createElement("div",{style:{width:null===(t=this.state.style)||void 0===t?void 0:t.width,height:null===(e=this.state.style)||void 0===e?void 0:e.height}},this.renderWidgetBody({widget:{}}))}}],[{key:"getI18nPrefix",value:function(){return""}},{key:"getText",value:function(t){return t&&"object"===(0,i.default)(t)?t[v.I18n.getLanguage()]||t.en:t}},{key:"t",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return v.I18n.t.apply(v.I18n,["".concat(this.getI18nPrefix()).concat(t)].concat(r))}},{key:"getLanguage",value:function(){return v.I18n.getLanguage()}}]),r}(h.default.Component);(0,d.default)(w,"POSSIBLE_MUI_STYLES",m);e.A=w},27798:(t,e,r)=>{"use strict";r.r(e),r.d(e,{VisRxWidget:()=>n.A,__esModule:()=>n.B});var n=r(15647)},12475:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},29293:t=>{function e(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(c){return void r(c)}u.done?e(s):Promise.resolve(s).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function u(t){e(a,o,i,u,s,"next",t)}function s(t){e(a,o,i,u,s,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},17383:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},34579:(t,e,r)=>{var n=r(77736);function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}t.exports=function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},43693:(t,e,r)=>{var n=r(77736);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},63072:t=>{function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},29511:(t,e,r)=>{var n=r(95636);t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},24994:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},28452:(t,e,r)=>{var n=r(73738).default,o=r(12475);t.exports=function(t,e){if(e&&("object"===n(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4633:(t,e,r)=>{var n=r(73738).default;function o(){"use strict";t.exports=o=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var e,r={},i=Object.prototype,a=i.hasOwnProperty,u=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),a=new N(n||[]);return u(i,"_invoke",{value:P(t,r,a)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=d;var y="suspendedStart",v="suspendedYield",g="executing",x="completed",b={};function m(){}function w(){}function _(){}var O={};p(O,c,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(D([])));S&&S!==i&&a.call(S,c)&&(O=S);var E=_.prototype=m.prototype=Object.create(O);function j(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,u,s){var c=h(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==n(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var o;u(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function P(t,r,n){var o=y;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===x){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=C(u,n);if(s){if(s===b)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=x,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var c=h(t,r,n);if("normal"===c.type){if(o=n.done?x:v,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=x,n.method="throw",n.arg=c.arg)}}}function C(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function D(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(a.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=_,u(E,"constructor",{value:_,configurable:!0}),u(_,"constructor",{value:w,configurable:!0}),w.displayName=p(_,f,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,p(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},r.awrap=function(t){return{__await:t}},j(L.prototype),p(L.prototype,l,(function(){return this})),r.AsyncIterator=L,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new L(d(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(E),p(E,f,"Generator"),p(E,c,(function(){return this})),p(E,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=D,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},r}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},95636:t=>{function e(r,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},89045:(t,e,r)=>{var n=r(73738).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},77736:(t,e,r)=>{var n=r(73738).default,o=r(89045);t.exports=function(t){var e=o(t,"string");return"symbol"==n(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},73738:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},54756:(t,e,r)=>{var n=r(4633)();t.exports=n;try{regeneratorRuntime=n}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}}]);
|
|
3
|
-
//# sourceMappingURL=vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.
|
|
1
|
+
/*! For license information please see vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.86299ce8.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx"],{15647:(t,e,r)=>{"use strict";var n=r(24994);Object.defineProperty(e,"B",{value:!0}),e.A=void 0;var o=n(r(54756)),i=n(r(73738)),a=n(r(29293)),u=n(r(17383)),s=n(r(34579)),c=n(r(12475)),l=n(r(29511)),f=n(r(28452)),p=n(r(63072)),d=n(r(43693)),h=n(r(28437)),y=r(67085),v=r(37449);function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){(0,d.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,p.default)(t);if(e){var o=(0,p.default)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,f.default)(this,r)}}var m=["background-color","border","background","background-image","background-position","background-repeat","background-size","background-clip","background-origin","color","box-sizing","border-width","border-style","border-color","border-radius","box-shadow","text-align","text-shadow","font-family","font-size","font-weight","line-height","font-style","font-variant","letter-spacing","word-spacing"],w=function(t){(0,l.default)(r,t);var e=b(r);function r(t){var n;return(0,u.default)(this,r),n=e.call(this,t),(0,d.default)((0,c.default)(n),"getIdSubscribeState",(function(t,e){return n.props.context.socket.getState(t).then((function(r){return e(t,r),n.props.context.socket.subscribeState(t,(function(r,n){return e(t,n)}))}))})),n.onStateChanged=n.onStateChanged.bind((0,c.default)(n)),n.state=x(x({},t),{},{values:{},data:JSON.parse(JSON.stringify(t.data||{})),style:JSON.parse(JSON.stringify(t.style||{})),rxData:JSON.parse(JSON.stringify(t.data||{})),rxStyle:JSON.parse(JSON.stringify(t.style||{}))}),n.linkContext={IDs:[]},n}return(0,s.default)(r,[{key:"renderWidgetBody",value:function(t){return null}},{key:"onStateUpdated",value:function(t,e){}},{key:"formatValue",value:function(t,e){var r;"number"===typeof t&&(t=0===e?Math.round(t):Math.round(100*t)/100,null!==(r=this.props.context.systemConfig)&&void 0!==r&&r.common&&this.props.context.systemConfig.common.isFloatComma&&(t=t.toString().replace(".",",")));return void 0===t||null===t?"":t.toString()}},{key:"wrapContent",value:function(t,e,r,n,o,i){var a,u=this,s=(null===i||void 0===i?void 0:i.Card)||y.Card,c=(null===i||void 0===i?void 0:i.CardContent)||y.CardContent,l=x({width:"calc(100% - 8px)",height:"calc(100% - 8px)",margin:4},null===(a=this.props.customSettings)||void 0===a||null===(a=a.viewStyle)||void 0===a?void 0:a.visCard);return Object.keys(this.state.rxStyle).forEach((function(t){var e=u.state.rxStyle[t];null!==e&&void 0!==e&&m.includes(t)&&(t=t.replace(/(-\w)/g,(function(t){return t[1].toUpperCase()})),l[t]=e)})),this.wrappedContent=!0,h.default.createElement(s,{className:"vis_rx_widget_card",style:l,onClick:o},h.default.createElement(c,{className:"vis_rx_widget_card_content",style:x({display:"flex",flexDirection:"column",alignItems:"center",height:"calc(100% - 32px)",paddingBottom:16,position:"relative"},r)},this.state.rxData.widgetTitle?h.default.createElement("div",{className:"vis_rx_widget_card_name",style:{display:"flex",justifyContent:"space-between",width:"100%",alignItems:"center"}},h.default.createElement("div",{className:"vis_rx_widget_card_name_div",style:x({fontSize:24,paddingTop:0,paddingBottom:4},n)},this.state.rxData.widgetTitle),e||null):e||null,t))}},{key:"onStateChanged",value:function(t,e){if(e){var r=JSON.parse(JSON.stringify(this.state.values));Object.keys(e).forEach((function(n){return r["".concat(t,".").concat(n)]=e[n]})),this.onStateUpdated(t,e),this.setState({values:r})}}},{key:"componentDidMount",value:function(){var t=(0,a.default)(o.default.mark((function t(){var e,r,n=this;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:null===(e=this.getWidgetInfo())||void 0===e||null===(e=e.visAttrs)||void 0===e||e.forEach((function(t){var e;return null===t||void 0===t||null===(e=t.fields)||void 0===e?void 0:e.forEach((function(t){"id"===(null===t||void 0===t?void 0:t.type)&&Object.keys(n.state.data).forEach((function(e){if(e.match(new RegExp("^".concat(t.name,"[0-9]*$")))){var r=n.state.data[e];n.linkContext.IDs.includes(r)||n.linkContext.IDs.push(r)}}))}))})),r=0;case 2:if(!(r<this.linkContext.IDs.length)){t.next=8;break}return t.next=5,this.getIdSubscribeState(this.linkContext.IDs[r],this.onStateChanged);case 5:r++,t.next=2;break;case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){var t=this;this.linkContext.IDs.forEach((function(e){return t.props.context.socket.unsubscribeState(e,t.onStateChanged)}))}},{key:"getWidgetView",value:function(t,e){return h.default.createElement("div",{style:{width:"100%",height:"100%"}},"DEMO VIEW")}},{key:"render",value:function(){var t,e;return h.default.createElement("div",{style:{width:null===(t=this.state.style)||void 0===t?void 0:t.width,height:null===(e=this.state.style)||void 0===e?void 0:e.height}},this.renderWidgetBody({widget:{}}))}}],[{key:"getI18nPrefix",value:function(){return""}},{key:"getText",value:function(t){return t&&"object"===(0,i.default)(t)?t[v.I18n.getLanguage()]||t.en:t}},{key:"t",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return v.I18n.t.apply(v.I18n,["".concat(this.getI18nPrefix()).concat(t)].concat(r))}},{key:"getLanguage",value:function(){return v.I18n.getLanguage()}}]),r}(h.default.Component);(0,d.default)(w,"POSSIBLE_MUI_STYLES",m);e.A=w},27798:(t,e,r)=>{"use strict";r.r(e),r.d(e,{VisRxWidget:()=>n.A,__esModule:()=>n.B});var n=r(15647)},12475:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},29293:t=>{function e(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(c){return void r(c)}u.done?e(s):Promise.resolve(s).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function u(t){e(a,o,i,u,s,"next",t)}function s(t){e(a,o,i,u,s,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},17383:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},34579:(t,e,r)=>{var n=r(77736);function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}t.exports=function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},43693:(t,e,r)=>{var n=r(77736);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},63072:t=>{function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},29511:(t,e,r)=>{var n=r(95636);t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},24994:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},28452:(t,e,r)=>{var n=r(73738).default,o=r(12475);t.exports=function(t,e){if(e&&("object"===n(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4633:(t,e,r)=>{var n=r(73738).default;function o(){"use strict";t.exports=o=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var e,r={},i=Object.prototype,a=i.hasOwnProperty,u=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),a=new N(n||[]);return u(i,"_invoke",{value:P(t,r,a)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=d;var y="suspendedStart",v="suspendedYield",g="executing",x="completed",b={};function m(){}function w(){}function _(){}var O={};p(O,c,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(D([])));S&&S!==i&&a.call(S,c)&&(O=S);var E=_.prototype=m.prototype=Object.create(O);function j(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,u,s){var c=h(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==n(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var o;u(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function P(t,r,n){var o=y;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===x){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=C(u,n);if(s){if(s===b)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=x,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var c=h(t,r,n);if("normal"===c.type){if(o=n.done?x:v,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=x,n.method="throw",n.arg=c.arg)}}}function C(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function D(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(a.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=_,u(E,"constructor",{value:_,configurable:!0}),u(_,"constructor",{value:w,configurable:!0}),w.displayName=p(_,f,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,p(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},r.awrap=function(t){return{__await:t}},j(L.prototype),p(L.prototype,l,(function(){return this})),r.AsyncIterator=L,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new L(d(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(E),p(E,f,"Generator"),p(E,c,(function(){return this})),p(E,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=D,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},r}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},95636:t=>{function e(r,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},89045:(t,e,r)=>{var n=r(73738).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},77736:(t,e,r)=>{var n=r(73738).default,o=r(89045);t.exports=function(t){var e=o(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},73738:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},54756:(t,e,r)=>{var n=r(4633)();t.exports=n;try{regeneratorRuntime=n}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}}]);
|
|
3
|
+
//# sourceMappingURL=vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.86299ce8.chunk.js.map
|