iobroker.vis-2-widgets-inventwo 0.2.1 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/io-package.json +42 -40
- package/package.json +13 -17
- package/widgets/vis-2-widgets-inventwo/assets/InventwoGeneric-Pwz_ixvQ.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/InventwoWidgetCheckbox-C6SrGBnj.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/InventwoWidgetSlider-4jss9Gk-.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/InventwoWidgetSwitch-DcrNqK7e.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/InventwoWidgetTable-2zrzG_1n.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/InventwoWidgetUniversal-BdJByAy6.js +11 -0
- package/widgets/vis-2-widgets-inventwo/assets/InventwoWidgetUniversal-zR8yBSHx.css +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/_commonjsHelpers-Cpj98o6Y.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/createSvgIcon-BsANHQYb.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/defaultTheme-CgtMi-7i.js +16 -0
- package/widgets/vis-2-widgets-inventwo/assets/hostInit-DEl-5FFs.js +2 -0
- package/widgets/vis-2-widgets-inventwo/assets/index-CDjpFDbP.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/index-CEVhOpzY.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/index-CKTGDMeX.js +934 -0
- package/widgets/vis-2-widgets-inventwo/assets/index-DAnAP_G6.js +228 -0
- package/widgets/vis-2-widgets-inventwo/assets/index-DYTLnem5.js +24 -0
- package/widgets/vis-2-widgets-inventwo/assets/index-Do-nCdWy.js +9 -0
- package/widgets/vis-2-widgets-inventwo/assets/jsx-runtime-CmYjgQpa.js +9 -0
- package/widgets/vis-2-widgets-inventwo/assets/preload-helper-Dp1pzeXC.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/styled-6hR4rQUz.js +7 -0
- package/widgets/vis-2-widgets-inventwo/assets/tableRowClasses-Db_EYm5P.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/translations-CfX4M5LS.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/tslib.es6-CTVL-6YI.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/useTheme-BEWb8XCE.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/virtualExposes-Dex0lQav.js +2 -0
- package/widgets/vis-2-widgets-inventwo/assets/vis2Inventwo__loadShare___mf_0_iobroker_mf_1_adapter_mf_2_react_mf_2_v5__loadShare__-DMXGLNnz.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/vis2Inventwo__loadShare___mf_0_mui_mf_1_material__loadShare__-CdzygBMm.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/vis2Inventwo__loadShare__react__loadShare__-YKp8zW3_.js +1 -0
- package/widgets/vis-2-widgets-inventwo/assets/vis2Inventwo__mf_v__runtimeInit__mf_v__-CKrTQn3L.js +10 -0
- package/widgets/vis-2-widgets-inventwo/customWidgets.js +2 -2
- package/widgets/vis-2-widgets-inventwo/img/vis-widget-inventwo-checkbox.png +0 -0
- package/widgets/vis-2-widgets-inventwo/customWidgets.js.map +0 -1
- package/widgets/vis-2-widgets-inventwo/i18n/de.json +0 -253
- package/widgets/vis-2-widgets-inventwo/i18n/en.json +0 -253
- package/widgets/vis-2-widgets-inventwo/i18n/es.json +0 -253
- package/widgets/vis-2-widgets-inventwo/i18n/fr.json +0 -253
- package/widgets/vis-2-widgets-inventwo/i18n/it.json +0 -253
- package/widgets/vis-2-widgets-inventwo/i18n/nl.json +0 -253
- package/widgets/vis-2-widgets-inventwo/i18n/pl.json +0 -253
- package/widgets/vis-2-widgets-inventwo/i18n/pt.json +0 -253
- package/widgets/vis-2-widgets-inventwo/i18n/ru.json +0 -253
- package/widgets/vis-2-widgets-inventwo/i18n/uk.json +0 -253
- package/widgets/vis-2-widgets-inventwo/i18n/zh-cn.json +0 -253
- package/widgets/vis-2-widgets-inventwo/static/css/src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css.f7c0aa07.chunk.css +0 -2
- package/widgets/vis-2-widgets-inventwo/static/css/src_bootstrap_js-src_assets_inventwo_css.f7c0aa07.chunk.css +0 -2
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoGeneric_jsx-src_lib_iro_min_js-node_modules_hex-to-css-filter_dist_umd_hex-to-css-6e4187.9a778f89.chunk.js +0 -3
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoGeneric_jsx-src_lib_iro_min_js-node_modules_hex-to-css-filter_dist_umd_hex-to-css-6e4187.9a778f89.chunk.js.LICENSE.txt +0 -16
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSlider_jsx.0115ec1e.chunk.js +0 -3
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSlider_jsx.0115ec1e.chunk.js.LICENSE.txt +0 -9
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSwitch_jsx.8c6eca98.chunk.js +0 -3
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSwitch_jsx.8c6eca98.chunk.js.LICENSE.txt +0 -9
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetTable_jsx.6d8a54f7.chunk.js +0 -3
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetTable_jsx.6d8a54f7.chunk.js.LICENSE.txt +0 -9
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css.29bdd9af.chunk.js +0 -2
- package/widgets/vis-2-widgets-inventwo/static/js/src_i18n_de_json-src_i18n_en_json-src_i18n_es_json-src_i18n_fr_json-src_i18n_it_json-src_i18n-67bb96.90d81b77.chunk.js +0 -1
- package/widgets/vis-2-widgets-inventwo/static/js/src_translations_js.b189321b.chunk.js +0 -2
- package/widgets/vis-2-widgets-inventwo/static/js/vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.c60114cb.chunk.js +0 -3
- package/widgets/vis-2-widgets-inventwo/static/js/vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.c60114cb.chunk.js.LICENSE.txt +0 -1
- package/widgets/vis-2-widgets-inventwo/static/js/vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.c60114cb.chunk.js.map +0 -1
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"alignment": "结盟",
|
|
3
|
-
"attr_content_color_picker": "小部件内容 - 颜色选择器",
|
|
4
|
-
"attr_group_click_feedback": "点击反馈",
|
|
5
|
-
"attr_group_columns": "柱子",
|
|
6
|
-
"attr_group_css": "inventwo 小部件设计",
|
|
7
|
-
"attr_group_css_alignment": "inventwo CSS - 对齐",
|
|
8
|
-
"attr_group_css_border": "inventwo CSS - 边框",
|
|
9
|
-
"attr_group_css_border_radius": "inventwo CSS - 边框半径",
|
|
10
|
-
"attr_group_css_content": "inventwo CSS - 内容",
|
|
11
|
-
"attr_group_css_inner_shadow": "inventwo CSS - 内阴影",
|
|
12
|
-
"attr_group_css_outer_shadow": "inventwo CSS - 外阴影",
|
|
13
|
-
"attr_group_css_slider_slider_thumb": "inventwo CSS - 滑块",
|
|
14
|
-
"attr_group_css_slider_track": "inventwo CSS - 滑块轨道",
|
|
15
|
-
"attr_group_css_spacing": "inventwo CSS - 间距",
|
|
16
|
-
"attr_group_css_text": "inventwo CSS - 文本",
|
|
17
|
-
"attr_group_css_thumb": "inventwo CSS - 缩略图",
|
|
18
|
-
"attr_group_css_track": "inventwo CSS - 轨道",
|
|
19
|
-
"attr_group_css_transparency": "inventwo CSS - 透明度",
|
|
20
|
-
"attr_group_state_default": "默认状态",
|
|
21
|
-
"attr_group_states": "状态",
|
|
22
|
-
"attr_group_type_view_in_dialog": "类型 - 在对话框中查看",
|
|
23
|
-
"auto": "汽车",
|
|
24
|
-
"background": "背景",
|
|
25
|
-
"background color": "背景颜色",
|
|
26
|
-
"background_opacity": "背景不透明度",
|
|
27
|
-
"background_true": "背景真实",
|
|
28
|
-
"blur": "模糊",
|
|
29
|
-
"border_color": "边框颜色",
|
|
30
|
-
"border_color_true": "边框颜色为真",
|
|
31
|
-
"border_style": "边框样式",
|
|
32
|
-
"border_width": "边框宽度",
|
|
33
|
-
"bottom": "底部",
|
|
34
|
-
"bottom_left": "左下方",
|
|
35
|
-
"bottom_right": "右下角",
|
|
36
|
-
"button": "按钮",
|
|
37
|
-
"button_size": "按钮大小",
|
|
38
|
-
"button_spacing": "按钮间距",
|
|
39
|
-
"center": "中心",
|
|
40
|
-
"cie": "西耶",
|
|
41
|
-
"color": "颜色",
|
|
42
|
-
"color_model": "颜色模型",
|
|
43
|
-
"color_picker": "选色器",
|
|
44
|
-
"colors": "颜色",
|
|
45
|
-
"column": "柱子",
|
|
46
|
-
"compare_by": "比较方式",
|
|
47
|
-
"compare_by_widget_default": "默认按小部件比较",
|
|
48
|
-
"comparison_operator": "比较运算符",
|
|
49
|
-
"components_space": "元件空间",
|
|
50
|
-
"condition": "健康)状况",
|
|
51
|
-
"content_align": "内容对齐",
|
|
52
|
-
"content_blink_interval": "内容闪烁间隔",
|
|
53
|
-
"content_color": "内容颜色",
|
|
54
|
-
"content_color_true": "内容颜色真实",
|
|
55
|
-
"content_opacity": "内容不透明度",
|
|
56
|
-
"content_size": "内容大小",
|
|
57
|
-
"content_type": "内容类型",
|
|
58
|
-
"count_columns": "计数列",
|
|
59
|
-
"count_states": "计数状态",
|
|
60
|
-
"custom": "风俗",
|
|
61
|
-
"custom_steps": "自定义步骤",
|
|
62
|
-
"custom_steps_tooltip": "定义以逗号分隔的自定义步骤",
|
|
63
|
-
"dashed": "虚线",
|
|
64
|
-
"dialog_close_on_click_outside": "点击外部关闭",
|
|
65
|
-
"dialog_fullscreen": "对话框全屏",
|
|
66
|
-
"dialog_height": "对话框高度",
|
|
67
|
-
"dialog_title": "对话框标题",
|
|
68
|
-
"dialog_width": "对话框宽度",
|
|
69
|
-
"direction": "方向",
|
|
70
|
-
"dotted": "虚线",
|
|
71
|
-
"double": "双倍的",
|
|
72
|
-
"duration": "期间",
|
|
73
|
-
"end": "结尾",
|
|
74
|
-
"equal": "平等的",
|
|
75
|
-
"greater": "更大",
|
|
76
|
-
"greater_equal": "大于等于",
|
|
77
|
-
"groove": "槽",
|
|
78
|
-
"handle_margin": "句柄边距",
|
|
79
|
-
"handle_size": "手柄尺寸",
|
|
80
|
-
"hex": "十六进制",
|
|
81
|
-
"hex_8": "十六进制 8",
|
|
82
|
-
"horizontal": "水平的",
|
|
83
|
-
"hsl": "高速",
|
|
84
|
-
"hsv": "单纯疱疹病毒",
|
|
85
|
-
"http_type": "Http 类型",
|
|
86
|
-
"icon": "图标",
|
|
87
|
-
"icon_true": "图标真实",
|
|
88
|
-
"image": "图像",
|
|
89
|
-
"image_true": "图像真实",
|
|
90
|
-
"increase_decrease_value": "增加/减少价值",
|
|
91
|
-
"inner_shadow_color": "内阴影颜色",
|
|
92
|
-
"inner_shadow_color_true": "内阴影颜色真实",
|
|
93
|
-
"invert_order": "反转顺序",
|
|
94
|
-
"inverted": "倒",
|
|
95
|
-
"key": "钥匙",
|
|
96
|
-
"left": "左边",
|
|
97
|
-
"line-through": "直通",
|
|
98
|
-
"lower": "降低",
|
|
99
|
-
"lower_equal": "下等",
|
|
100
|
-
"margin_bottom": "边距底部",
|
|
101
|
-
"margin_left": "左边距",
|
|
102
|
-
"margin_right": "右边距",
|
|
103
|
-
"margin_top": "边距顶部",
|
|
104
|
-
"max_rows": "最大行数",
|
|
105
|
-
"max_value": "最大值",
|
|
106
|
-
"min_value": "最小值",
|
|
107
|
-
"mirror": "镜子",
|
|
108
|
-
"mode": "模式",
|
|
109
|
-
"nav": "导航",
|
|
110
|
-
"none": "没有任何",
|
|
111
|
-
"normal": "普通的",
|
|
112
|
-
"not_equal": "不等于",
|
|
113
|
-
"oid": "对象 ID",
|
|
114
|
-
"oid_value_1": "Oid 值 1",
|
|
115
|
-
"oid_value_2": "Oid 值 2",
|
|
116
|
-
"oid_value_3": "Oid 值 3",
|
|
117
|
-
"open_url": "打开网址",
|
|
118
|
-
"open_url_new_tab": "在新标签页中打开网址",
|
|
119
|
-
"orientation": "方向",
|
|
120
|
-
"outer_shadow_color": "外阴影颜色",
|
|
121
|
-
"outer_shadow_color_true": "外阴影颜色真实",
|
|
122
|
-
"outset": "开始",
|
|
123
|
-
"overline": "上划线",
|
|
124
|
-
"padding": "填充",
|
|
125
|
-
"padding_bottom": "衬垫底部",
|
|
126
|
-
"padding_left": "左填充",
|
|
127
|
-
"padding_right": "右填充",
|
|
128
|
-
"padding_top": "衬垫顶部",
|
|
129
|
-
"prefix": "字首",
|
|
130
|
-
"read_only": "只读",
|
|
131
|
-
"rgb": "RGB 色彩",
|
|
132
|
-
"ridge": "岭",
|
|
133
|
-
"right": "正确的",
|
|
134
|
-
"rotation": "回转",
|
|
135
|
-
"row": "排",
|
|
136
|
-
"send_http": "发送 HTTP 请求/打开 URL",
|
|
137
|
-
"send_request": "发送请求",
|
|
138
|
-
"separated_buttons": "分离按钮",
|
|
139
|
-
"set_label": "发明设计",
|
|
140
|
-
"shadow_color": "阴影颜色",
|
|
141
|
-
"shadow_color_true": "阴影颜色真实",
|
|
142
|
-
"show_Alpha": "显示 Alpha",
|
|
143
|
-
"show_Saturation": "显示饱和度",
|
|
144
|
-
"show_blue": "显示蓝色",
|
|
145
|
-
"show_box": "展示盒",
|
|
146
|
-
"show_green": "显示绿色",
|
|
147
|
-
"show_head": "秀头",
|
|
148
|
-
"show_hue": "显示色调",
|
|
149
|
-
"show_kelvin": "显示开尔文",
|
|
150
|
-
"show_min_max": "显示最小最大",
|
|
151
|
-
"show_red": "显示红色",
|
|
152
|
-
"show_steps": "显示步骤",
|
|
153
|
-
"show_value": "显示价值",
|
|
154
|
-
"show_wheel": "显示轮子",
|
|
155
|
-
"single_button": "单按钮",
|
|
156
|
-
"size": "尺寸",
|
|
157
|
-
"size_bottom": "尺寸底部",
|
|
158
|
-
"size_left": "左侧尺寸",
|
|
159
|
-
"size_right": "尺寸合适",
|
|
160
|
-
"size_top": "尺码顶部",
|
|
161
|
-
"slider_rail_active_color": "滑块轨道活动颜色",
|
|
162
|
-
"slider_rail_color": "滑轨颜色",
|
|
163
|
-
"slider_thumb_color": "滑块颜色",
|
|
164
|
-
"solid": "坚硬的",
|
|
165
|
-
"space between": "之间的空间",
|
|
166
|
-
"start": "开始",
|
|
167
|
-
"step": "步",
|
|
168
|
-
"step_display": "步进显示",
|
|
169
|
-
"step_mode": "步进模式",
|
|
170
|
-
"suffix": "后缀",
|
|
171
|
-
"switch": "转变",
|
|
172
|
-
"text": "文本",
|
|
173
|
-
"text_align": "文本对齐",
|
|
174
|
-
"text_and_content": "文本与内容",
|
|
175
|
-
"text_color": "文本颜色",
|
|
176
|
-
"text_color_true": "文字颜色 true",
|
|
177
|
-
"text_decoration": "文本修饰",
|
|
178
|
-
"text_false": "文字错误",
|
|
179
|
-
"text_html": "文本 html",
|
|
180
|
-
"text_html_true": "文本 html true",
|
|
181
|
-
"text_position": "文本位置",
|
|
182
|
-
"text_true": "文字真实",
|
|
183
|
-
"thumbSize": "拇指大小",
|
|
184
|
-
"thumb_border_radius": "拇指边缘半径",
|
|
185
|
-
"thumb_color": "拇指颜色",
|
|
186
|
-
"thumb_color_true": "拇指颜色正确",
|
|
187
|
-
"title": "标题",
|
|
188
|
-
"title_align": "标题对齐",
|
|
189
|
-
"tooltip_compare_by": "指定应该比较的内容",
|
|
190
|
-
"tooltip_content_type": "指定小部件的内容",
|
|
191
|
-
"tooltip_state_oid": "如果为空且不是导航,则将使用上面的对象 ID",
|
|
192
|
-
"tooltip_widget_mode": "单个按钮:一个按钮具有一个或多个状态,分离按钮:每个状态作为一个按钮(可以像旧的 radiobuttonlist 小部件一样使用)",
|
|
193
|
-
"tooltip_widget_type": "指定交互行为",
|
|
194
|
-
"top": "顶部",
|
|
195
|
-
"top_left": "左上方",
|
|
196
|
-
"top_right": "右上",
|
|
197
|
-
"track_bar_type": "轨道杆类型",
|
|
198
|
-
"track_border_radius": "轨道边界半径",
|
|
199
|
-
"track_color": "轨道颜色",
|
|
200
|
-
"track_color_true": "轨迹颜色真实",
|
|
201
|
-
"track_width": "履带宽度",
|
|
202
|
-
"type": "类型",
|
|
203
|
-
"underline": "强调",
|
|
204
|
-
"url": "网址",
|
|
205
|
-
"value": "价值",
|
|
206
|
-
"value_false": "值 false",
|
|
207
|
-
"value_true": "值 true",
|
|
208
|
-
"vertical": "垂直的",
|
|
209
|
-
"view": "看法",
|
|
210
|
-
"view_in_dialog": "在对话框中查看",
|
|
211
|
-
"view_in_widget": "在小部件中查看",
|
|
212
|
-
"view_in_widget_true": "在小部件中查看 true",
|
|
213
|
-
"widget_slider": "滑块",
|
|
214
|
-
"widget_switch": "转变",
|
|
215
|
-
"widget_table": "桌子",
|
|
216
|
-
"widget_universal": "普遍的",
|
|
217
|
-
"width": "宽度",
|
|
218
|
-
"x_offset": "X 偏移",
|
|
219
|
-
"y_offset": "Y 偏移",
|
|
220
|
-
"from_widget": "来自小部件",
|
|
221
|
-
"dense": "稠密",
|
|
222
|
-
"placeholder": "占位符",
|
|
223
|
-
"Text": "文本",
|
|
224
|
-
"Number": "数字",
|
|
225
|
-
"datetime": "DateTime",
|
|
226
|
-
"format": "格式",
|
|
227
|
-
"decimals": "小数",
|
|
228
|
-
"attr_content_css_table": "atter Content CSS表",
|
|
229
|
-
"background_header": "背景标题",
|
|
230
|
-
"background_odd_row": "背景奇数行",
|
|
231
|
-
"background_even_row": "背景甚至行",
|
|
232
|
-
"header_height": "标题高度",
|
|
233
|
-
"column_height": "列高度",
|
|
234
|
-
"round": "圆形的",
|
|
235
|
-
"bevel": "斜角",
|
|
236
|
-
"top_left_type": "左上类型",
|
|
237
|
-
"top_right_type": "右上角类型",
|
|
238
|
-
"bottom_right_type": "右下类型",
|
|
239
|
-
"bottom_left_type": "左下角类型",
|
|
240
|
-
"content": "内容",
|
|
241
|
-
"attr_group_css_form": "Inventwo CSS-形式",
|
|
242
|
-
"Triangle": "三角形",
|
|
243
|
-
"Square": "正方形",
|
|
244
|
-
"Pentagon": "五角大楼",
|
|
245
|
-
"Hexagon": "六边形",
|
|
246
|
-
"Heptagon": "heptagon",
|
|
247
|
-
"Octagon": "八角形",
|
|
248
|
-
"form": "形式",
|
|
249
|
-
"Datetime": "DateTime",
|
|
250
|
-
"Date": "日期",
|
|
251
|
-
"Time": "时间",
|
|
252
|
-
"datetime_format": "DateTime格式"
|
|
253
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see src_InventwoGeneric_jsx-src_lib_iro_min_js-node_modules_hex-to-css-filter_dist_umd_hex-to-css-6e4187.9a778f89.chunk.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["node_modules_react_jsx-runtime_js-_c9180","node_modules_react_jsx-runtime_js-_c9181","node_modules_react_jsx-runtime_js-_c9182","node_modules_react_jsx-runtime_js-_c9183","src_InventwoGeneric_jsx-src_lib_iro_min_js-node_modules_hex-to-css-filter_dist_umd_hex-to-css-6e4187"],{14915:()=>{},42144:function(t,e){!function(t){"use strict";function e(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}"function"===typeof SuppressedError&&SuppressedError;var n=function(){function t(t,e,n){this.r=0,this.g=0,this.b=0,this.set(t,e,n)}return t.prototype.set=function(t,e,n){this.r=this.clamp(t),this.g=this.clamp(e),this.b=this.clamp(n)},t.prototype.hueRotate=function(t){void 0===t&&(t=0),t=t/180*Math.PI;var e=Math.sin(t),n=Math.cos(t);this.multiply([.213+.787*n-.213*e,.715-.715*n-.715*e,.072-.072*n+.928*e,.213-.213*n+.143*e,.715+.285*n+.14*e,.072-.072*n-.283*e,.213-.213*n-.787*e,.715-.715*n+.715*e,.072+.928*n+.072*e])},t.prototype.grayscale=function(t){void 0===t&&(t=1),this.multiply([.2126+.7874*(1-t),.7152-.7152*(1-t),.0722-.0722*(1-t),.2126-.2126*(1-t),.7152+.2848*(1-t),.0722-.0722*(1-t),.2126-.2126*(1-t),.7152-.7152*(1-t),.0722+.9278*(1-t)])},t.prototype.sepia=function(t){void 0===t&&(t=1),this.multiply([.393+.607*(1-t),.769-.769*(1-t),.189-.189*(1-t),.349-.349*(1-t),.686+.314*(1-t),.168-.168*(1-t),.272-.272*(1-t),.534-.534*(1-t),.131+.869*(1-t)])},t.prototype.saturate=function(t){void 0===t&&(t=1),this.multiply([.213+.787*t,.715-.715*t,.072-.072*t,.213-.213*t,.715+.285*t,.072-.072*t,.213-.213*t,.715-.715*t,.072+.928*t])},t.prototype.multiply=function(t){var e=this.clamp(this.r*t[0]+this.g*t[1]+this.b*t[2]),n=this.clamp(this.r*t[3]+this.g*t[4]+this.b*t[5]),r=this.clamp(this.r*t[6]+this.g*t[7]+this.b*t[8]);this.r=e,this.g=n,this.b=r},t.prototype.brightness=function(t){void 0===t&&(t=1),this.linear(t)},t.prototype.contrast=function(t){void 0===t&&(t=1),this.linear(t,-.5*t+.5)},t.prototype.linear=function(t,e){void 0===t&&(t=1),void 0===e&&(e=0),this.r=this.clamp(this.r*t+255*e),this.g=this.clamp(this.g*t+255*e),this.b=this.clamp(this.b*t+255*e)},t.prototype.invert=function(t){void 0===t&&(t=1),this.r=this.clamp(255*(t+this.r/255*(1-2*t))),this.g=this.clamp(255*(t+this.g/255*(1-2*t))),this.b=this.clamp(255*(t+this.b/255*(1-2*t)))},t.prototype.hsl=function(){var t=this.r/255,e=this.g/255,n=this.b/255,r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,s=(r+i)/2;if(r===i)return{h:0,s:0,l:100*s};var a=r-i;return r===t?o=(e-n)/a+(e<n?6:0):r===e?o=(n-t)/a+2:r===n&&(o=(t-e)/a+4),{h:100*(o/=6),s:100*(s>.5?a/(2-r-i):a/(r+i)),l:100*s}},t.prototype.clamp=function(t){return Math.min(Math.max(t,0),255)},t}(),r=function(){function t(t,e){this.target=t,this.targetHSL=t.hsl(),this.options=Object.assign({},{acceptanceLossPercentage:5,maxChecks:15},e),this.reusedColor=new n(0,0,0)}return t.prototype.solve=function(){var t=this.solveNarrow(this.solveWide());return{values:t.values,called:t.called,loss:t.loss,filter:this.css(t.values)}},t.prototype.solveWide=function(){for(var t=5,e=15,n=[60,180,18e3,600,1.2,1.2],r={loss:1/0},i=0;r.loss>this.options.acceptanceLossPercentage;){var o=[50,20,3750,50,100,100],s=this.spsa({A:t,a:n,c:e,values:o,maxTriesInLoop:1e3});if(s.loss<r.loss&&(r=s),(i+=1)>=this.options.maxChecks)break}return Object.assign({},r,{called:i})},t.prototype.solveNarrow=function(t){var e=t.loss,n=2,r=e+1,i=[.25*r,.25*r,r,.25*r,.2*r,.2*r];return this.spsa({A:e,a:i,c:n,values:t.values,maxTriesInLoop:500,called:t.called})},t.prototype.fixValueByFilterIDX=function(t,e){var n=100;return 2===e?n=7500:4!==e&&5!==e||(n=200),3===e?t>n?t%=n:t<0&&(t=n+t%n):t<0?t=0:t>n&&(t=n),t},t.prototype.spsa=function(t){for(var e=t.A,n=t.a,r=t.c,i=t.values,o=t.maxTriesInLoop,s=void 0===o?500:o,a=t.called,l=void 0===a?0:a,c=1,u=.16666666666666666,h=null,d=1/0,p=new Array(6),f=new Array(6),v=new Array(6),g=6,y=0;y<s;y++){for(var b=r/Math.pow(y+1,u),m=0;m<g;m++)p[m]=Math.random()>.5?1:-1,f[m]=i[m]+b*p[m],v[m]=i[m]-b*p[m];var x=this.loss(f)-this.loss(v);for(m=0;m<g;m++){var w=x/(2*b)*p[m],k=n[m]/Math.pow(e+y+1,c);i[m]=this.fixValueByFilterIDX(i[m]-k*w,m)}var S=this.loss(i);S<d&&(h=i.slice(0),d=S)}return{values:h,loss:d,called:l}},t.prototype.loss=function(t){var e=this.reusedColor;e.set(0,0,0),e.invert(t[0]/100),e.sepia(t[1]/100),e.saturate(t[2]/100),e.hueRotate(3.6*t[3]),e.brightness(t[4]/100),e.contrast(t[5]/100);var n=e.hsl();return Math.abs(e.r-this.target.r)+Math.abs(e.g-this.target.g)+Math.abs(e.b-this.target.b)+Math.abs(n.h-this.targetHSL.h)+Math.abs(n.s-this.targetHSL.s)+Math.abs(n.l-this.targetHSL.l)},t.prototype.css=function(t){var e=function(e,n){return void 0===n&&(n=1),Math.round(t[e]*n)};return["invert(".concat(e(0),"%)"),"sepia(".concat(e(1),"%)"),"saturate(".concat(e(2),"%)"),"hue-rotate(".concat(e(3,3.6),"deg)"),"brightness(".concat(e(4),"%)"),"contrast(".concat(e(5),"%)")].join(" ")},t}(),i=function(t){return 4===t.length?[parseInt("0x".concat(t[1]).concat(t[1])),parseInt("0x".concat(t[2]).concat(t[2])),parseInt("0x".concat(t[3]).concat(t[3]))]:7===t.length?[parseInt("0x".concat(t[1]).concat(t[2])),parseInt("0x".concat(t[3]).concat(t[4])),parseInt("0x".concat(t[5]).concat(t[6]))]:[]},o=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},s={},a=function(t,a){var l,c,u,h,d;if(void 0===a&&(a={}),s[t]&&!a.forceFilterRecalculation)return Object.assign({},s[t],{cache:!0});try{if(c=(l=e(i(t),3))[0],u=l[1],h=l[2],!o(c)||!o(u)||!o(h))throw new Error("hextToRgb returned an invalid value for '".concat(t,"'"));d=new n(Number(c),Number(u),Number(h))}catch(f){throw new Error("Color value should be in HEX format. ".concat(f))}var p=new r(d,Object.assign({},{acceptanceLossPercentage:5,maxChecks:30,forceFilterRecalculation:!1},a));return s[t]=Object.assign({},p.solve(),{hex:t,rgb:[c,u,h],cache:!1})},l=function(t){t?s[t]&&delete s[t]:s={}};t.clearCache=l,t.hexToCSSFilter=a,Object.defineProperty(t,"__esModule",{value:!0})}(e)},51153:(t,e,n)=>{"use strict";var r=n(28437),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)s.call(e,r)&&!l.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===o[r]&&(o[r]=e[r]);return{$$typeof:i,type:t,key:c,ref:u,props:o,_owner:a.current}}e.jsx=c,e.jsxs=c},70579:(t,e,n)=>{"use strict";t.exports=n(51153)},82782:function(t){t.exports=function(){"use strict";var t,e,n,r,i,o={},s=[],a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;function l(t,e){for(var n in e)t[n]=e[n];return t}function c(t){var e=t.parentNode;e&&e.removeChild(t)}function u(t,e,n){var r,i,o,s,a=arguments;if(e=l({},e),3<arguments.length)for(n=[n],r=3;r<arguments.length;r++)n.push(a[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 p(t,e){this.props=t,this.context=e}function f(t,e){if(null==e)return t.i?f(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?f(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)(y))}function y(){var t,n,r,i,o,s,a,c;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,a=n.p,c=n.u,n.u=!1,a&&(r=[],i=S(a,o,l({},o),n.w,void 0!==a.ownerSVGElement,null,r,c,null==s?f(o):s),_(r,o),i!=s&&v(o)))}function b(t,e,n,r,i,a,l,u,h){var d,p,v,g,y,b,x,w=n&&n.n||s,k=w.length;if(u==o&&(u=null!=a?a[0]:k?f(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(p=0;p<k;p++){if((v=w[p])&&n.key==v.key&&n.type===v.type){w[p]=void 0;break}v=null}if(g=S(t,n,v=v||o,r,i,a,l,null,u,h),(p=n.ref)&&v.ref!=p&&(x=x||[]).push(p,n.c||g,n),null!=g){if(null==b&&(b=g),null!=n.l)g=n.l,n.l=null;else if(a==v||g!=u||null==g.parentNode){t:if(null==u||u.parentNode!==t)t.appendChild(g);else{for(y=u,p=0;(y=y.nextSibling)&&p<k;p+=2)if(y==g)break t;t.insertBefore(g,u)}"option"==e.type&&(t.value="")}u=g.nextSibling,"function"==typeof e.type&&(e.l=g)}}return d++,n})),e.o=b,null!=a&&"function"!=typeof e.type)for(d=a.length;d--;)null!=a[d]&&c(a[d]);for(d=k;d--;)null!=w[d]&&j(w[d],w[d]);if(x)for(d=0;d<x.length;d++)E(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===a.test(e)?n+"px":null==n?"":n}function w(t,e,n,r,i){var o,s,a,l,c;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(a in n)r&&n[a]===r[a]||x(o,a,n[a])}else"o"===e[0]&&"n"===e[1]?(l=e!==(e=e.replace(/Capture$/,"")),e=((c=e.toLowerCase())in t?c:e).slice(2),n?(r||t.addEventListener(e,k,l),(t.t||(t.t={}))[e]=n):t.removeEventListener(e,k,l)):"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,a,c,u,h,f,v){var g,y,x,k,S,_,E,j,C,R,A=n.type;if(void 0!==n.constructor)return null;(g=t.e)&&g(n);try{t:if("function"==typeof A){if(j=n.props,C=(g=A.contextType)&&i[g.c],R=g?C?C.props.value:g.i:i,r.c?E=(y=n.c=r.c).i=y.k:("prototype"in A&&A.prototype.render?n.c=y=new A(j,R):(n.c=y=new p(j,R),y.constructor=A,y.render=M),C&&C.sub(y),y.props=j,y.state||(y.state={}),y.context=R,y.w=i,x=y.f=!0,y.m=[]),null==y.j&&(y.j=y.state),null!=A.getDerivedStateFromProps&&l(y.j==y.state?y.j=l({},y.j):y.j,A.getDerivedStateFromProps(j,y.j)),x)null==A.getDerivedStateFromProps&&null!=y.componentWillMount&&y.componentWillMount(),null!=y.componentDidMount&&u.push(y);else{if(null==A.getDerivedStateFromProps&&null==h&&null!=y.componentWillReceiveProps&&y.componentWillReceiveProps(j,R),!h&&null!=y.shouldComponentUpdate&&!1===y.shouldComponentUpdate(j,y.j,R)){for(y.props=j,y.state=y.j,y.f=!1,(y.d=n).o=null!=f?f!==r.o?f: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!=y.componentWillUpdate&&y.componentWillUpdate(j,y.j,R)}for(k=y.props,S=y.state,y.context=R,y.props=j,y.state=y.j,(g=t.M)&&g(n),y.f=!1,y.d=n,y.p=e,g=y.render(y.props,y.state,y.context),n.n=m(null!=g&&g.type==d&&null==g.key?g.props.children:g),null!=y.getChildContext&&(i=l(l({},i),y.getChildContext())),x||null==y.getSnapshotBeforeUpdate||(_=y.getSnapshotBeforeUpdate(k,S)),b(e,n,r,i,a,c,u,f,v),y.base=n.o;g=y.m.pop();)y.j&&(y.state=y.j),g.call(y);x||null==k||null==y.componentDidUpdate||y.componentDidUpdate(k,S,_),E&&(y.k=y.i=null)}else n.o=function(t,e,n,r,i,a,l,c){var u,h,d,p,f=n.props,v=e.props;if(i="svg"===e.type||i,null==t&&null!=a)for(u=0;u<a.length;u++)if(null!=(h=a[u])&&(null===e.type?3===h.nodeType:h.localName===e.type)){t=h,a[u]=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),a=null}return null===e.type?f!==v&&(null!=a&&(a[a.indexOf(t)]=null),t.data=v):e!==n&&(null!=a&&(a=s.slice.call(t.childNodes)),d=(f=n.props||o).dangerouslySetInnerHTML,p=v.dangerouslySetInnerHTML,c||(p||d)&&(p&&d&&p.O==d.O||(t.innerHTML=p&&p.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,f,i,c),e.n=e.props.children,p||b(t,e,n,r,"foreignObject"!==e.type&&i,a,l,o,c),c||("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,a,c,u,v);(g=t.diffed)&&g(n)}catch(e){t.o(e,n,r)}return n.o}function _(e,n){for(var r;r=e.pop();)try{r.componentDidMount()}catch(e){t.o(e,r.d)}t.c&&t.c(n)}function E(e,n,r){try{"function"==typeof e?e(n):e.current=n}catch(e){t.o(e,r)}}function j(e,n,r){var i,o,s;if(t.unmount&&t.unmount(e),(i=e.ref)&&E(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]&&j(i[s],n,r);null!=o&&c(o)}function M(t,e,n){return this.constructor(t,n)}function C(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 R(){return(R=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={},p.prototype.setState=function(t,e){var n=this.j!==this.state&&this.j||(this.j=l({},this.state));"function"==typeof t&&!(t=t(n,this.props))||l(n,t),null!=t&&this.d&&(this.u=!1,e&&this.m.push(e),g(this))},p.prototype.forceUpdate=function(t){this.d&&(t&&this.m.push(t),this.u=!0,g(this))},p.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 A="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",I="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",O="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",T=new RegExp("rgb"+I),P=new RegExp("rgba"+O),N=new RegExp("hsl"+I),D=new RegExp("hsla"+O),H="^(?:#?|0x?)",L="([0-9a-fA-F]{1})",W="([0-9a-fA-F]{2})",F=new RegExp(H+L+L+L+"$"),$=new RegExp(H+L+L+L+L+"$"),B=new RegExp(H+W+W+W+"$"),U=new RegExp(H+W+W+W+W+"$"),z=Math.log,V=Math.round,q=Math.floor;function G(t,e,n){return Math.min(Math.max(t,e),n)}function X(t,e){var n=-1<t.indexOf("%"),r=parseFloat(t);return n?e/100*r:r}function K(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=R({},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]=R({},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=q(e),o=e-i,s=r*(1-n),a=r*(1-o*n),l=r*(1-(1-o)*n),c=i%6,u=[l,r,r,a,s,s][c],h=[s,s,l,r,r,a][c];return{r:G(255*[r,a,s,s,l,r][c],0,255),g:G(255*u,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,a=0,l=i,c=0===i?0:s/i;switch(i){case o:a=0;break;case e:a=(n-r)/s+(n<r?6:0);break;case n:a=(r-e)/s+2;break;case r:a=(e-n)/s+4}return{h:60*a%360,s:G(100*c,0,100),v:G(100*l,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*z(n),i<20?0:.8274096064007395*(r=i-10)-254.76935184120902+115.67994401066147*z(r)):(e=351.97690566805693+.114206453784165*(e=i-55)-40.25366309332127*z(e),n=325.4494125711974+.07943456536662342*(n=i-50)-28.0852963507957*z(n),255),{r:G(q(e),0,255),g:G(q(n),0,255),b:G(q(r),0,255)}},t.rgbToKelvin=function(e){for(var n,r=e.r,i=e.b,o=2e3,s=4e4;.4<s-o;){var a=t.kelvinToRgb(n=.5*(s+o));a.b/a.r>=i/r?s=n:o=n}return n},function(t,e,n){e&&C(t.prototype,e),n&&C(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=R({},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 R({},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=R({},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=R({},this.rgb,{r:t})}},{key:"green",get:function(){return this.rgb.g},set:function(t){this.rgb=R({},this.rgb,{g:t})}},{key:"blue",get:function(){return this.rgb.b},set:function(t){this.rgb=R({},this.rgb,{b:t})}},{key:"rgb",get:function(){var e=t.hsvToRgb(this.$),n=e.r,r=e.g,i=e.b;return{r:V(n),g:V(r),b:V(i)}},set:function(e){this.hsv=R({},t.rgbToHsv(e),{a:void 0===e.a?1:e.a})}},{key:"rgba",get:function(){return R({},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:V(n),s:V(r),l:V(i)}},set:function(e){this.hsv=R({},t.hslToHsv(e),{a:void 0===e.a?1:e.a})}},{key:"hsla",get:function(){return R({},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=T.exec(t))?(n=X(e[1],255),r=X(e[2],255),i=X(e[3],255)):(e=P.exec(t))&&(n=X(e[1],255),r=X(e[2],255),i=X(e[3],255),o=X(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=F.exec(t))?(n=17*K(e[1]),r=17*K(e[2]),i=17*K(e[3])):(e=$.exec(t))?(n=17*K(e[1]),r=17*K(e[2]),i=17*K(e[3]),o=17*K(e[4])):(e=B.exec(t))?(n=K(e[1]),r=K(e[2]),i=K(e[3])):(e=U.exec(t))&&(n=K(e[1]),r=K(e[2]),i=K(e[3]),o=K(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(q(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=N.exec(t))?(n=X(e[1],360),r=X(e[2],100),i=X(e[3],100)):(e=D.exec(t))&&(n=X(e[1],360),r=X(e[2],100),i=X(e[3],100),o=X(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,a=t.sliderShape,l="horizontal"===t.layoutDirection;return r=null!=(e=r)?e:2*s+2*o,"circle"===a?{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:l?r:n,height:l?n:r}}function Q(t,e){var n=J(t),r=n.width,i=n.height,o=n.handleRange,s=n.handleStart,a="horizontal"===t.layoutDirection,l=a?r/2:i/2,c=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 a&&(c=-1*c+o+2*s),{x:a?l:c,y:a?c:l}}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 at(t,e,n){var r=ot(t),i=r.cx,o=r.cy,s=it(t);e=i-e,n=o-n;var a=st(t,Math.atan2(-n,-e)*(360/et)),l=Math.min(rt(e,n),s);return{h:Math.round(a),s:Math.round(100/s*l)}}function lt(t){var e=t.width,n=t.boxHeight;return{width:e,height:null!=n?n:e,radius:t.padding+t.handleRadius}}function ct(t,e,n){var r=lt(t),i=r.width,o=r.height,s=r.radius,a=(e-s)/(i-2*s)*100,l=(n-s)/(o-2*s)*100;return{s:Math.max(0,Math.min(a,100)),v:Math.max(0,Math.min(100-l,100))}}function ut(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 pt(t){return"string"==typeof t?t:t+"px"}var ft=["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),u(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)&&ft.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),ft.forEach((function(t){document.removeEventListener(t,e,{passive:!1})}))}},e}(p);function gt(t){var e=t.r,n=t.url,r=e,i=e;return u("svg",{className:"IroHandle IroHandle--"+t.index+" "+(t.isActive?"IroHandle--isActive":""),style:{"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0);",transform:"translate("+pt(t.x)+", "+pt(t.y)+")",willChange:"transform",top:pt(-e),left:pt(-e),width:pt(2*e),height:pt(2*e),position:"absolute",overflow:"visible"}},n&&u("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&&u("circle",{cx:r,cy:i,r:e,fill:"none","stroke-width":2,stroke:"#000"}),!n&&u("circle",{cx:r,cy:i,r:e-2,fill:t.fill,"stroke-width":2,stroke:"#fff"}))}function yt(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,a=Q(t,n),l=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,a=s-o,l=o,c=0;l<s;l+=a/8,c+=1){var u=Z.kelvinToRgb(l),h=u.r,d=u.g,p=u.b;i.push([12.5*c,"rgb("+h+","+d+","+p+")"])}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 f=Z.hsvToHsl({h:n.h,s:0,v:n.v}),v=Z.hsvToHsl({h:n.h,s:100,v:n.v});return[[0,"hsl("+f.h+","+f.s+"%,"+f.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 u(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 a=Math.round(100/o*r);switch(t.sliderType){case"kelvin":var l=t.minTemperature;return l+a/100*(t.maxTemperature-l);case"alpha":return a/100;case"hue":return 3.6*a;case"red":case"blue":case"green":return 2.55*a;default:return a}}(t,e,r);t.parent.inputActive=!0,n[t.sliderType]=o,t.onInput(i,t.id)}}),(function(e,r,c){return u("div",Object.assign({},r,{className:"IroSlider",style:Object.assign({},{position:"relative",width:pt(i),height:pt(o),borderRadius:pt(s),background:"conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0)",backgroundSize:"8px 8px"},c)}),u("div",{className:"IroSliderGradient",style:Object.assign({},{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:pt(s),background:dt("linear","horizontal"===t.layoutDirection?"to top":"to right",l)},ht(t))}),u(gt,{isActive:!0,index:n.index,r:t.handleRadius,url:t.handleSvg,props:t.handleProps,x:a.x,y:a.y}))}))}function bt(t){var e=lt(t),n=e.width,r=e.height,i=e.radius,o=t.colors,s=t.parent,a=t.activeIndex,l=void 0!==a&&a<t.colors.length?t.colors[a]:t.color,c=function(t,e){return[[[0,"#fff"],[100,"hsl("+e.hue+",100%,50%)"]],[[0,"rgba(0,0,0,0)"],[100,"#000"]]]}(0,l),h=o.map((function(e){return function(t,e){var n=lt(t),r=n.width,i=n.height,o=n.radius,s=e.hsv,a=o,l=r-2*o,c=i-2*o;return{x:a+s.s/100*l,y:a+(c-s.v/100*c)}}(t,e)}));return u(vt,Object.assign({},t,{onInput:function(e,n,r){if(0===r){var i=ut(t,e,n,h);null!==i?s.setActiveColor(i):(s.inputActive=!0,l.hsv=ct(t,e,n),t.onInput(r,t.id))}else 1===r&&(s.inputActive=!0,l.hsv=ct(t,e,n));t.onInput(r,t.id)}}),(function(e,s,a){return u("div",Object.assign({},s,{className:"IroBox",style:Object.assign({},{width:pt(n),height:pt(r),position:"relative"},a)}),u("div",{className:"IroBox",style:Object.assign({},{width:"100%",height:"100%",borderRadius:pt(i)},ht(t),{background:dt("linear","to bottom",c[1])+","+dt("linear","to right",c[0])})}),o.filter((function(t){return t!==l})).map((function(e){return u(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})})),u(gt,{isActive:!0,index:l.index,fill:l.hslString,r:t.activeHandleRadius||t.handleRadius,url:t.handleSvg,props:t.handleProps,x:h[l.index].x,y:h[l.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),a=(180+st(t,n.h,!0))*(et/360),l=n.s/100*s,c="clockwise"===t.wheelDirection?-1:1;return{x:i+l*Math.cos(a)*c,y:o+l*Math.sin(a)*c}}(t,e)})),a={position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",boxSizing:"border-box"};return u(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 a=ut(t,e,n,s);null!==a?r.setActiveColor(a):(r.inputActive=!0,i.hsv=at(t,e,n),t.onInput(o,t.id))}else 1===o&&(r.inputActive=!0,i.hsv=at(t,e,n));t.onInput(o,t.id)}}),(function(r,l,c){return u("div",Object.assign({},l,{className:"IroWheel",style:Object.assign({},{width:pt(e),height:pt(e),position:"relative"},c)}),u("div",{className:"IroWheelHue",style:Object.assign({},a,{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)"})}),u("div",{className:"IroWheelSaturation",style:Object.assign({},a,{background:"radial-gradient(circle closest-side, #fff, transparent)"})}),t.wheelLightness&&u("div",{className:"IroWheelLightness",style:Object.assign({},a,{background:"#000",opacity:1-o.v/100})}),u("div",{className:"IroWheelBorder",style:Object.assign({},a,ht(t))}),n.filter((function(t){return t!==i})).map((function(e){return u(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})})),u(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}},yt.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:yt}],e.transparency&&r.push({component:yt,options:{sliderType:"alpha"}})),u("div",{class:"IroColorPicker",id:e.id,style:{display:e.display}},r.map((function(t,r){var i=t.component,o=t.options;return u(i,Object.assign({},e,o,{ref:void 0,onInput:n.emitInputEvent.bind(n),parent:n,index:r}))})))},e}(p);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,_t,Et=(jt.prototype=(wt=xt).prototype,Object.assign(jt,wt),jt.I=wt,jt);function jt(e,n){var r,a=document.createElement("div");function l(){var t=e instanceof Element?e:document.querySelector(e);t.appendChild(r.base),r.onMount(t)}return function(e,n,r){var a,l,c;t.i&&t.i(e,n),l=(a=r===i)?null:r&&r.n||n.n,e=u(d,null,[e]),c=[],S(n,a?n.n=e:(r||n).n=e,l||o,o,void 0!==n.ownerSVGElement,r&&!a?[r]:l?null:s.slice.call(n.childNodes),c,!1,r||o,a),_(c,e)}(u(wt,Object.assign({},{ref:function(t){return r=t}},n)),a),"loading"!==document.readyState?l():document.addEventListener("DOMContentLoaded",l),r}return(St=kt=kt||{}).version="5.5.2",St.Color=Z,St.ColorPicker=Et,(_t=St.ui||(St.ui={})).h=u,_t.ComponentBase=vt,_t.Handle=gt,_t.Slider=yt,_t.Wheel=mt,_t.Box=bt,kt}()},91125:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(59797);class i extends(window.visRxWidget||r.VisRxWidget){static getI18nPrefix(){return"vis_2_widgets_inventwo_"}constructor(t){super(t),this.groupAttrs=[];this.getWidgetInfo().visAttrs.forEach((t=>{t.fields.forEach((e=>{void 0!==e.name&&(e.name.endsWith("FromWidget")||(void 0===this.groupAttrs[t.name]&&(this.groupAttrs[t.name]=[]),this.groupAttrs[t.name].push(e.name)))}))}))}onChange(t,e){if(this.props.editMode)return;const n=this.state.rxData.oid;this.props.context.setValue(n,parseFloat(e))}getValue(t){if(void 0!==t&&""!==t&&"nothing_selected"!==t)return this.state.values["".concat(t,".val")]}getStyle(t,e){const n={},r=this.state.rxData[t];if(r){var i,o;let t=!1;const l=this.props.context.views[this.props.view],c=null===l||void 0===l||null===(i=l.widgets)||void 0===i||null===(o=i[r])||void 0===o?void 0:o.data;if(c)e.forEach((t=>n[t]=c[t])),t=!0;else{const i=Object.keys(this.props.context.views);for(let o=0;o<i.length;o++){var s,a;const l=this.props.context.views[i[o]];if(l!==this.props.view&&null!==(s=l.widgets)&&void 0!==s&&null!==(a=s[r])&&void 0!==a&&a.data){const i=l.widgets[r].data;e.forEach((t=>n[t]=i[t])),t=!0;break}}}t||e.forEach((t=>n[t]=this.state.rxData[t]))}else e.forEach((t=>n[t]=this.state.rxData[t]));return n}convertValue(t){return"true"===t||"false"!==t&&(isNaN(t)?t:parseFloat(t))}validFieldValue(t){return void 0!==t&&null!==t&&""!==t}convertRgbToHex(t){if(!t)return null;const e=t.match(/(\d+),(\d+),(\d+),(\d+)/);if(!e)return null;const[n,r,i]=e.slice(1,5).map(parseFloat);function o(t){const e=t.toString(16);return 1===e.length?"0".concat(e):e}return"#".concat(o(n)).concat(o(r)).concat(o(i))}}const o=i}}]);
|
|
3
|
-
//# sourceMappingURL=src_InventwoGeneric_jsx-src_lib_iro_min_js-node_modules_hex-to-css-filter_dist_umd_hex-to-css-6e4187.9a778f89.chunk.js.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* iro.js v5.5.2
|
|
3
|
-
* 2016-2021 James Daniel
|
|
4
|
-
* Licensed under MPL 2.0
|
|
5
|
-
* github.com/jaames/iro.js
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @license React
|
|
10
|
-
* react-jsx-runtime.production.min.js
|
|
11
|
-
*
|
|
12
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the MIT license found in the
|
|
15
|
-
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/
|
package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSlider_jsx.0115ec1e.chunk.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see src_InventwoWidgetSlider_jsx.0115ec1e.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["node_modules_react_jsx-runtime_js-_c9180","node_modules_react_jsx-runtime_js-_c9181","node_modules_react_jsx-runtime_js-_c9182","node_modules_react_jsx-runtime_js-_c9183","src_InventwoWidgetSlider_jsx"],{51153:(e,t,a)=>{var i=a(28437),r=Symbol.for("react.element"),l=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function n(e,t,a){var i,l={},n=null,m=null;for(i in void 0!==a&&(n=""+a),void 0!==t.key&&(n=""+t.key),void 0!==t.ref&&(m=t.ref),t)o.call(t,i)&&!d.hasOwnProperty(i)&&(l[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===l[i]&&(l[i]=t[i]);return{$$typeof:r,type:e,key:n,ref:m,props:l,_owner:s.current}}t.jsx=n,t.jsxs=n},52235:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});a(28437);var i=a(67085),r=a(91125),l=a(70579);class o extends r.A{constructor(e){super(e),this.state.sliderValue=0}componentDidMount(){super.componentDidMount(),this.setState({sliderValue:this.getValue(this.state.rxData.oid)})}static getWidgetInfo(){return{id:"tplInventwoWidgetSlider",visSet:"vis-2-widgets-inventwo",visWidgetLabel:"widget_slider",visName:"widget_slider",visAttrs:[{name:"common",fields:[{name:"oid",type:"id",label:"oid",onChange:async(e,t,a,i)=>{if(t[e.name]&&"nothing_selected"!==t[e.name]){const r=await i.getObject(t[e.name]);if(null!==r&&void 0!==r&&r.common){let e=!1;void 0!==r.common.min&&r.common.min!==t.max_value&&(t.max_value=r.common.min,e=!0),void 0!==r.common.max&&r.common.max!==t.min_value&&(t.min_value=r.common.max,e=!0),void 0!==r.common.step&&r.common.step!==t.step&&(t.step=r.common.step,e=!0),e&&a(t)}}}},{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:"orientation",type:"select",options:[{value:"horizontal",label:"horizontal"},{value:"vertical",label:"vertical"}],default:"horizontal",label:"orientation"},{name:"showMinMax",type:"checkbox",label:"show_min_max",default:!0},{type:"delimiter"},{type:"help",text:"steps"},{name:"showSteps",type:"checkbox",label:"show_steps",default:!1},{name:"stepMode",type:"select",options:[{value:"auto",label:"auto"},{value:"custom",label:"custom"}],default:"auto",label:"step_mode",hidden:"!data.showSteps"},{name:"stepDisplay",type:"number",label:"step_display",default:10,hidden:'!data.showSteps || data.stepMode != "auto"'},{name:"customSteps",type:"text",label:"custom_steps",hidden:'!data.showSteps || data.stepMode != "custom"',tooltip:"custom_steps_tooltip"}]},{name:"attr_group_css_slider_track",label:"attr_group_css_slider_track",fields:[{label:"from_widget",name:"sliderTrackFromWidget",type:"widget",tpl:"tplInventwoWidgetSlider",all:!0},{name:"sliderRailColor",type:"color",default:"rgb(110,110,110)",label:"slider_rail_color",hidden:"!!data.sliderTrackFromWidget"},{name:"sliderRailActiveColor",type:"color",default:"rgb(94,107,63)",label:"slider_rail_active_color",hidden:"!!data.sliderTrackFromWidget"},{name:"trackBarType",type:"select",options:[{value:"normal",label:"normal"},{value:"inverted",label:"inverted"},{value:!1,label:"none"}],default:"normal",label:"track_bar_type",hidden:"!!data.sliderTrackFromWidget"},{name:"trackWidth",type:"slider",min:1,max:50,step:1,default:10,label:"track_width",hidden:"!!data.sliderTrackFromWidget"},{name:"trackBorderRadius",type:"slider",min:1,max:100,step:1,default:100,label:"track_border_radius",hidden:"!!data.sliderTrackFromWidget"},{type:"delimiter",hidden:"!!data.sliderTrackFromWidget"},{type:"help",text:"track_shadow",hidden:"!!data.sliderTrackFromWidget"},{name:"trackShadowX",type:"slider",min:0,max:50,step:1,default:2,label:"x_offset",hidden:"!!data.sliderTrackFromWidget"},{name:"trackShadowY",type:"slider",min:0,max:50,step:1,default:2,label:"y_offset",hidden:"!!data.sliderTrackFromWidget"},{name:"trackShadowBlur",type:"slider",min:0,max:50,step:1,default:2,label:"blur",hidden:"!!data.sliderTrackFromWidget"},{name:"trackShadowSize",type:"slider",min:0,max:50,step:1,default:1,label:"size",hidden:"!!data.sliderTrackFromWidget"},{name:"trackShadowColor",type:"color",default:"rgba(0, 0, 0, 1)",label:"shadow_color",hidden:"!!data.sliderTrackFromWidget"}]},{name:"attr_group_css_slider_slider_thumb",label:"attr_group_css_slider_slider_thumb",fields:[{label:"from_widget",name:"sliderThumbFromWidget",type:"widget",tpl:"tplInventwoWidgetSlider",all:!0},{name:"sliderThumbColor",type:"color",default:"rgba(69, 86, 24, 1)",label:"slider_thumb_color",hidden:"!!data.sliderThumbFromWidget"},{name:"thumbSize",type:"slider",min:1,max:50,step:1,default:16,label:"thumbSize",hidden:"!!data.sliderThumbFromWidget"},{name:"thumbBorderRadius",type:"slider",min:1,max:100,step:1,default:100,label:"thumb_border_radius",hidden:"!!data.sliderThumbFromWidget"},{type:"delimiter",hidden:"!!data.sliderThumbFromWidget"},{type:"help",text:"thumb_shadow",hidden:"!!data.sliderThumbFromWidget"},{name:"thumbShadowX",type:"slider",min:0,max:50,step:1,default:2,label:"x_offset",hidden:"!!data.sliderThumbFromWidget"},{name:"thumbShadowY",type:"slider",min:0,max:50,step:1,default:2,label:"y_offset",hidden:"!!data.sliderThumbFromWidget"},{name:"thumbShadowBlur",type:"slider",min:0,max:50,step:1,default:2,label:"blur",hidden:"!!data.sliderThumbFromWidget"},{name:"thumbShadowSize",type:"slider",min:0,max:50,step:1,default:1,label:"size",hidden:"!!data.sliderThumbFromWidget"},{name:"thumbShadowColor",type:"color",default:"rgba(0, 0, 0, 0.5)",label:"shadow_color",hidden:"!!data.sliderThumbFromWidget"}]}],visDefaultStyle:{width:150,overflow:"visible",height:40},visPrev:"widgets/vis-2-widgets-inventwo/img/vis-widget-inventwo-slider.png"}}static getI18nPrefix(){return"vis_2_widgets_inventwo_"}onStateUpdated(e,t){e===this.state.rxData.oid&&t&&t.val!==this.state.sliderValue&&this.setState({sliderValue:t.val})}getWidgetInfo(){return o.getWidgetInfo()}renderWidgetBody(e){super.renderWidgetBody(e);const t=parseFloat(this.state.rxData.minValue),a=parseFloat(this.state.rxData.maxValue),r=[];if(this.state.rxData.showMinMax&&(r.push({value:t,label:t}),r.push({value:a,label:a})),this.state.rxData.showSteps)if("auto"===this.state.rxData.stepMode){const e=parseFloat(this.state.rxData.stepDisplay);if(e>0)for(let i=t+e;i<a;i+=e)r.push({value:parseFloat(i.toFixed(2).replace(/[.,]00$/,"")),label:i.toFixed(2).replace(/[.,]00$/,"")})}else{let e=this.state.rxData.customSteps;void 0!==e&&null!==e||(e=""),e=e.split(","),e.forEach((e=>{e=parseInt(e),r.push({value:e,label:e})}))}const o=this.getStyle("sliderTrackFromWidget",this.groupAttrs.attr_group_css_slider_track),s=this.getStyle("sliderThumbFromWidget",this.groupAttrs.attr_group_css_slider_slider_thumb),d=o.trackBarType,n={height:"horizontal"===this.state.rxData.orientation?o.trackWidth:"100%",width:"horizontal"!==this.state.rxData.orientation?o.trackWidth:"100%","& .MuiSlider-thumb":{backgroundColor:s.sliderThumbColor,width:s.thumbSize,height:s.thumbSize,borderRadius:"".concat(s.thumbBorderRadius,"%"),"&:before":{boxShadow:"".concat(s.thumbShadowX,"px ").concat(s.thumbShadowY,"px ").concat(s.thumbShadowBlur,"px ").concat(s.thumbShadowSize,"px ").concat(s.thumbShadowColor)}},"& .MuiSlider-rail":{backgroundColor:"normal"===d?o.sliderRailColor:"inverted"===d?o.sliderRailActiveColor:"",color:"normal"===d?o.sliderRailColor:"inverted"===d?o.sliderRailActiveColor:"",border:"none",borderRadius:"".concat(o.trackBorderRadius,"px"),boxShadow:"".concat(o.trackShadowX,"px ").concat(this.state.rxData.trackShadowY,"px ").concat(o.trackShadowBlur,"px ").concat(o.trackShadowSize,"px ").concat(o.trackShadowColor)},"& .MuiSlider-track":{backgroundColor:"normal"===d?this.state.rxData.sliderRailActiveColor:"inverted"===d?o.sliderRailColor:"",color:"normal"===d?this.state.rxData.sliderRailActiveColor:"inverted"===d?o.sliderRailColor:"",border:"none",borderRadius:"".concat(o.trackBorderRadius,"px")},"& .MuiSlider-mark":{color:o.sliderRailActiveColor},"& .MuiSlider-markLabel":{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"]}};return"horizontal"===this.state.rxData.orientation?n["& .MuiSlider-markLabel"].top=o.trackWidth+20:n["& .MuiSlider-markLabel"].left=o.trackWidth+20,(0,l.jsx)(i.Slider,{disabled:this.props.editMode,sx:n,onChange:(e,t)=>this.setState({sliderValue:t}),onChangeCommitted:(e,t)=>this.setState({sliderValue:t},(()=>this.onChange(e,t))),min:this.state.rxData.minValue,max:this.state.rxData.maxValue,step:this.state.rxData.step,value:this.state.sliderValue||0,valueLabelDisplay:"auto",track:o.trackBarType,orientation:this.state.rxData.orientation,marks:r})}}const s=o},70579:(e,t,a)=>{e.exports=a(51153)},91125:(e,t,a)=>{a.d(t,{A:()=>l});var i=a(59797);class r extends(window.visRxWidget||i.VisRxWidget){static getI18nPrefix(){return"vis_2_widgets_inventwo_"}constructor(e){super(e),this.groupAttrs=[];this.getWidgetInfo().visAttrs.forEach((e=>{e.fields.forEach((t=>{void 0!==t.name&&(t.name.endsWith("FromWidget")||(void 0===this.groupAttrs[e.name]&&(this.groupAttrs[e.name]=[]),this.groupAttrs[e.name].push(t.name)))}))}))}onChange(e,t){if(this.props.editMode)return;const a=this.state.rxData.oid;this.props.context.setValue(a,parseFloat(t))}getValue(e){if(void 0!==e&&""!==e&&"nothing_selected"!==e)return this.state.values["".concat(e,".val")]}getStyle(e,t){const a={},i=this.state.rxData[e];if(i){var r,l;let e=!1;const d=this.props.context.views[this.props.view],n=null===d||void 0===d||null===(r=d.widgets)||void 0===r||null===(l=r[i])||void 0===l?void 0:l.data;if(n)t.forEach((e=>a[e]=n[e])),e=!0;else{const r=Object.keys(this.props.context.views);for(let l=0;l<r.length;l++){var o,s;const d=this.props.context.views[r[l]];if(d!==this.props.view&&null!==(o=d.widgets)&&void 0!==o&&null!==(s=o[i])&&void 0!==s&&s.data){const r=d.widgets[i].data;t.forEach((e=>a[e]=r[e])),e=!0;break}}}e||t.forEach((e=>a[e]=this.state.rxData[e]))}else t.forEach((e=>a[e]=this.state.rxData[e]));return a}convertValue(e){return"true"===e||"false"!==e&&(isNaN(e)?e:parseFloat(e))}validFieldValue(e){return void 0!==e&&null!==e&&""!==e}convertRgbToHex(e){if(!e)return null;const t=e.match(/(\d+),(\d+),(\d+),(\d+)/);if(!t)return null;const[a,i,r]=t.slice(1,5).map(parseFloat);function l(e){const t=e.toString(16);return 1===t.length?"0".concat(t):t}return"#".concat(l(a)).concat(l(i)).concat(l(r))}}const l=r}}]);
|
|
3
|
-
//# sourceMappingURL=src_InventwoWidgetSlider_jsx.0115ec1e.chunk.js.map
|
package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSwitch_jsx.8c6eca98.chunk.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see src_InventwoWidgetSwitch_jsx.8c6eca98.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["node_modules_react_jsx-runtime_js-_c9180","node_modules_react_jsx-runtime_js-_c9181","node_modules_react_jsx-runtime_js-_c9182","node_modules_react_jsx-runtime_js-_c9183","src_InventwoWidgetSwitch_jsx"],{18548:(t,e,a)=>{a.r(e),a.d(e,{default:()=>l});a(28437);var r=a(67085),o=a(91125),i=a(70579);class d extends o.A{static getWidgetInfo(){return{id:"tplInventwoWidgetSwitch",visSet:"vis-2-widgets-inventwo",visWidgetLabel:"widget_switch",visName:"widget_switch",visAttrs:[{name:"common",fields:[{name:"oid",type:"id",label:"oid"},{name:"valueFalse",type:"text",label:"value_false"},{name:"valueTrue",type:"text",label:"value_true"},{name:"textFalse",type:"html",label:"text_false"},{name:"textTrue",type:"html",label:"text_true"},{name:"textPosition",type:"select",options:[{value:"top",label:"top"},{value:"bottom",label:"bottom"},{value:"start",label:"start"},{value:"end",label:"end"}],default:"end",label:"text_position"}]},{name:"attr_group_css_track",label:"attr_group_css_track",fields:[{label:"from_widget",name:"trackFromWidget",type:"widget",tpl:"tplInventwoWidgetSwitch",all:!0},{name:"trackColor",type:"color",label:"track_color",hidden:"!!data.trackFromWidget"},{name:"trackColorTrue",type:"color",label:"track_color_true",default:"rgb(143,164,85)",hidden:"!!data.trackFromWidget"},{name:"trackSize",type:"slider",min:1,max:50,step:1,default:12,label:"track_width",hidden:"!!data.trackFromWidget"},{name:"trackBorderRadius",type:"slider",min:1,max:100,step:1,default:100,label:"track_border_radius",hidden:"!!data.trackFromWidget"},{type:"delimiter",hidden:"!!data.trackFromWidget"},{type:"help",text:"track_shadow",hidden:"!!data.trackFromWidget"},{name:"trackShadowX",type:"slider",min:0,max:50,step:1,default:2,label:"x_offset",hidden:"!!data.trackFromWidget"},{name:"trackShadowY",type:"slider",min:0,max:50,step:1,default:2,label:"y_offset",hidden:"!!data.trackFromWidget"},{name:"trackShadowBlur",type:"slider",min:0,max:50,step:1,default:2,label:"blur",hidden:"!!data.trackFromWidget"},{name:"trackShadowSize",type:"slider",min:0,max:50,step:1,default:1,label:"size",hidden:"!!data.trackFromWidget"},{name:"trackShadowColor",type:"color",default:"rgba(0, 0, 0, 1)",label:"shadow_color",hidden:"!!data.trackFromWidget"},{name:"trackShadowColorTrue",type:"color",default:"rgba(0, 0, 0, 1)",label:"shadow_color_true",hidden:"!!data.trackFromWidget"}]},{name:"attr_group_css_thumb",label:"attr_group_css_thumb",fields:[{label:"from_widget",name:"thumbFromWidget",type:"widget",tpl:"tplInventwoWidgetSwitch",all:!0},{name:"thumbColor",type:"color",label:"thumb_color",hidden:"!!data.thumbFromWidget"},{name:"thumbColorTrue",type:"color",label:"thumb_color_true",default:"rgb(69,86,24)",hidden:"!!data.thumbFromWidget"},{name:"thumbSize",type:"slider",min:1,max:50,step:1,default:16,label:"thumbSize",hidden:"!!data.thumbFromWidget"},{name:"thumbBorderRadius",type:"slider",min:1,max:100,step:1,default:100,label:"thumb_border_radius",hidden:"!!data.thumbFromWidget"},{type:"delimiter",hidden:"!!data.thumbFromWidget"},{type:"help",text:"thumb_shadow",hidden:"!!data.thumbFromWidget"},{name:"thumbShadowX",type:"slider",min:0,max:50,step:1,default:2,label:"x_offset",hidden:"!!data.thumbFromWidget"},{name:"thumbShadowY",type:"slider",min:0,max:50,step:1,default:2,label:"y_offset",hidden:"!!data.thumbFromWidget"},{name:"thumbShadowBlur",type:"slider",min:0,max:50,step:1,default:2,label:"blur",hidden:"!!data.thumbFromWidget"},{name:"thumbShadowSize",type:"slider",min:0,max:50,step:1,default:1,label:"size",hidden:"!!data.thumbFromWidget"},{name:"thumbShadowColor",type:"color",default:"rgba(0, 0, 0, 0.5)",label:"shadow_color",hidden:"!!data.thumbFromWidget"},{name:"thumbShadowColorTrue",type:"color",default:"rgba(0, 0, 0, 0.5)",label:"shadow_color_true",hidden:"!!data.thumbFromWidget"}]}],visDefaultStyle:{overflow:"visible",width:70,height:40},visPrev:"widgets/vis-2-widgets-inventwo/img/vis-widget-inventwo-switch.png"}}propertiesUpdate(){}componentDidMount(){super.componentDidMount(),this.propertiesUpdate()}getWidgetInfo(){return d.getWidgetInfo()}onRxDataChanged(){this.propertiesUpdate()}onRxStyleChanged(){}onStateUpdated(t,e){}static getI18nPrefix(){return"vis_2_widgets_inventwo_"}onChange(){if(this.props.editMode)return;const t=this.state.rxData.oid;this.getValue(this.state.rxData.oid)===d.convertValue(this.state.rxData.valueTrue,!0)?this.props.context.setValue(t,d.convertValue(this.state.rxData.valueFalse,!1)):this.props.context.setValue(t,d.convertValue(this.state.rxData.valueTrue,!0))}getValue(t){if(void 0!==t&&""!==t&&"nothing_selected"!==t)return this.state.values["".concat(t,".val")]}static convertValue(t,e){return"true"===t||"false"!==t&&(isNaN(t)?void 0===t||null===t||""===t?e:t:parseFloat(t))}renderWidgetBody(t){super.renderWidgetBody(t);const e=this.state.rxData.oid,a=this.getValue(e)===d.convertValue(this.state.rxData.valueTrue,!0),o=this.getStyle("trackFromWidget",this.groupAttrs.attr_group_css_track),l=this.getStyle("thumbFromWidget",this.groupAttrs.attr_group_css_thumb);let s=l.thumbShadowColor,n=o.trackShadowColor;a&&(s=l.thumbShadowColorTrue,n=o.trackShadowColorTrue);const u={"&.MuiSwitch-root":{alignItems:"center",height:o.trackSize,width:"34px",boxSizing:"content-box"},"& .MuiSwitch-switchBase":{color:l.thumbColor,top:"unset"},"& .MuiSwitch-thumb":{width:l.thumbSize,height:l.thumbSize,borderRadius:"".concat(l.thumbBorderRadius,"%"),boxShadow:"".concat(l.thumbShadowX,"px ").concat(l.thumbShadowY,"px ").concat(l.thumbShadowBlur,"px ").concat(l.thumbShadowSize,"px ").concat(s)},"& .Mui-checked .MuiSwitch-thumb":{color:l.thumbColorTrue},"& .MuiSwitch-track":{backgroundColor:o.trackColor,borderRadius:"".concat(o.trackBorderRadius/2/100*o.trackSize,"px"),boxShadow:"".concat(o.trackShadowX,"px ").concat(o.trackShadowY,"px ").concat(o.trackShadowBlur,"px ").concat(o.trackShadowSize,"px ").concat(n)},"& .Mui-checked + .MuiSwitch-track":{backgroundColor:o.trackColorTrue}};return(0,i.jsx)(r.FormGroup,{children:(0,i.jsx)(r.FormControlLabel,{control:(0,i.jsx)(r.Switch,{disabled:this.props.editMode,sx:u,onClick:()=>this.onChange(),checked:a}),label:a?this.state.rxData.textTrue:this.state.rxData.textFalse,labelPlacement:this.state.rxData.textPosition})})}}const l=d},51153:(t,e,a)=>{var r=a(28437),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function n(t,e,a){var r,i={},n=null,u=null;for(r in void 0!==a&&(n=""+a),void 0!==e.key&&(n=""+e.key),void 0!==e.ref&&(u=e.ref),e)d.call(e,r)&&!s.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===i[r]&&(i[r]=e[r]);return{$$typeof:o,type:t,key:n,ref:u,props:i,_owner:l.current}}e.jsx=n,e.jsxs=n},70579:(t,e,a)=>{t.exports=a(51153)},91125:(t,e,a)=>{a.d(e,{A:()=>i});var r=a(59797);class o extends(window.visRxWidget||r.VisRxWidget){static getI18nPrefix(){return"vis_2_widgets_inventwo_"}constructor(t){super(t),this.groupAttrs=[];this.getWidgetInfo().visAttrs.forEach((t=>{t.fields.forEach((e=>{void 0!==e.name&&(e.name.endsWith("FromWidget")||(void 0===this.groupAttrs[t.name]&&(this.groupAttrs[t.name]=[]),this.groupAttrs[t.name].push(e.name)))}))}))}onChange(t,e){if(this.props.editMode)return;const a=this.state.rxData.oid;this.props.context.setValue(a,parseFloat(e))}getValue(t){if(void 0!==t&&""!==t&&"nothing_selected"!==t)return this.state.values["".concat(t,".val")]}getStyle(t,e){const a={},r=this.state.rxData[t];if(r){var o,i;let t=!1;const s=this.props.context.views[this.props.view],n=null===s||void 0===s||null===(o=s.widgets)||void 0===o||null===(i=o[r])||void 0===i?void 0:i.data;if(n)e.forEach((t=>a[t]=n[t])),t=!0;else{const o=Object.keys(this.props.context.views);for(let i=0;i<o.length;i++){var d,l;const s=this.props.context.views[o[i]];if(s!==this.props.view&&null!==(d=s.widgets)&&void 0!==d&&null!==(l=d[r])&&void 0!==l&&l.data){const o=s.widgets[r].data;e.forEach((t=>a[t]=o[t])),t=!0;break}}}t||e.forEach((t=>a[t]=this.state.rxData[t]))}else e.forEach((t=>a[t]=this.state.rxData[t]));return a}convertValue(t){return"true"===t||"false"!==t&&(isNaN(t)?t:parseFloat(t))}validFieldValue(t){return void 0!==t&&null!==t&&""!==t}convertRgbToHex(t){if(!t)return null;const e=t.match(/(\d+),(\d+),(\d+),(\d+)/);if(!e)return null;const[a,r,o]=e.slice(1,5).map(parseFloat);function i(t){const e=t.toString(16);return 1===e.length?"0".concat(e):e}return"#".concat(i(a)).concat(i(r)).concat(i(o))}}const i=o}}]);
|
|
3
|
-
//# sourceMappingURL=src_InventwoWidgetSwitch_jsx.8c6eca98.chunk.js.map
|
package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetTable_jsx.6d8a54f7.chunk.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see src_InventwoWidgetTable_jsx.6d8a54f7.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["node_modules_react_jsx-runtime_js-_c9180","node_modules_react_jsx-runtime_js-_c9181","node_modules_react_jsx-runtime_js-_c9182","node_modules_react_jsx-runtime_js-_c9183","src_InventwoWidgetTable_jsx"],{17086:(e,t,a)=>{a.r(t),a.d(t,{default:()=>d});a(28437);var n=a(17913),l=a(67085),o=a(77502),i=a(51488),r=a(59797),s=a(70579);class c extends(window.visRxWidget||r.VisRxWidget){static getWidgetInfo(){return{id:"tplInventwoWidgetTable",visSet:"vis-2-widgets-inventwo",visWidgetLabel:"widget_table",visName:"widget_table",visAttrs:[{name:"common",fields:[{name:"oid",type:"id",label:"oid"},{name:"countColumns",type:"number",default:0,label:"count_columns",hidden:"data.countColumns > 0"},{name:"maxRows",type:"number",min:0,step:1,default:0,label:"max_rows"},{name:"showHead",type:"checkbox",default:!0,label:"show_head"}]},{name:"countColumns",indexFrom:1,indexTo:"countColumns",label:"attr_group_columns",fields:[{name:"columnKey",type:"text",label:"key"},{name:"columnTitle",type:"text",label:"title"},{name:"columnWidth",type:"slider",min:0,max:200,step:1,default:0,label:"width"},{name:"columnPrefix",type:"text",label:"prefix"},{name:"columnSuffix",type:"text",label:"suffix"},{name:"columnPlaceholder",type:"text",label:"placeholder"},{name:"columnTitleAlign",type:"select",options:[{value:"left",label:"left"},{value:"center",label:"center"},{value:"right",label:"right"}],default:"center",label:"title_align"},{name:"columnContentAlign",type:"select",options:[{value:"left",label:"left"},{value:"center",label:"center"},{value:"right",label:"right"}],default:"left",label:"content_align"},{name:"columnValueFormat",type:"select",options:[{value:"text",label:"Text"},{value:"number",label:"Number"},{value:"datetime",label:"datetime"}],default:"text",label:"format"},{name:"columnNumberDecimals",type:"number",label:"decimals",default:0,hidden:'data["columnValueFormat" + index] != "number"'},{name:"columnDatetimeFormat",type:"select",options:[{value:"datetime",label:"Datetime"},{value:"date",label:"Date"},{value:"time",label:"Time"}],default:"datetime",label:"datetime_format",hidden:'data["columnValueFormat" + index] != "datetime"'}]},{name:"attr_content_css_table",label:"attr_content_css_table",fields:[{type:"help",text:"colors"},{name:"backgroundHeader",type:"color",label:"background_header"},{name:"backgroundOddRow",type:"color",label:"background_odd_row"},{name:"backgroundEvenRow",type:"color",label:"background_even_row"},{type:"help",text:"heights"},{name:"headerHeight",type:"slider",min:0,max:100,step:1,default:50,label:"header_height"},{name:"columnHeight",type:"slider",min:0,max:100,step:1,default:50,label:"column_height"}]}],visPrev:"widgets/vis-2-widgets-inventwo/img/vis-widget-inventwo-table.png"}}propertiesUpdate(){}componentDidMount(){super.componentDidMount(),this.propertiesUpdate()}static getI18nPrefix(){return"vis_2_widgets_inventwo_"}getWidgetInfo(){return c.getWidgetInfo()}onRxDataChanged(){this.propertiesUpdate()}onRxStyleChanged(){}onStateUpdated(e,t){}getValue(e){if(void 0!==e&&""!==e&&"nothing_selected"!==e)return this.state.values["".concat(e,".val")]}renderWidgetBody(e){super.renderWidgetBody(e),this.wrappedContent=!0;const t=this.state.rxData.oid,a=this.getValue(t);let r=null;if(void 0===a||null===a||""===a)return(0,s.jsx)("div",{children:"Keine Daten"});try{r=JSON.parse(a)}catch(x){return(0,s.jsx)("div",{children:"Invalides JSON"})}const c=[],d=[],u=(0,n.styled)(l.TableRow)((()=>({["&.".concat(i.A.root)]:{height:this.state.rxData.headerHeight+(Number.isNaN(Number(this.state.rxData.headerHeight))?"":"px")}}))),m=(0,n.styled)(l.TableCell)((()=>({["&.".concat(o.A.head)]:{backgroundColor:this.state.rxData.backgroundHeader},["&.".concat(o.A.root)]:{paddingTop:0,paddingBottom:0}}))),h=(0,n.styled)(l.TableCell)((()=>({["&.".concat(o.A.root)]:{paddingTop:0,paddingBottom:0}}))),b=(0,n.styled)(l.TableRow)((()=>({"&:nth-of-type(odd)":{backgroundColor:this.state.rxData.backgroundOddRow},"&:nth-of-type(even)":{backgroundColor:this.state.rxData.backgroundEvenRow},["&.".concat(i.A.root)]:{height:this.state.rxData.columnHeight+(Number.isNaN(Number(this.state.rxData.columnHeight))?"":"px")}})));if(r.length>0){const e=this.state.rxData.countColumns;if(0===e)Object.keys(r[0]).forEach(((e,t)=>{c.push((0,s.jsx)(m,{children:e},t))}));else for(let a=1;a<=this.state.rxData.countColumns;a++){let e=this.state.rxData["columnTitle".concat(a)];null===e&&(e=Object.keys(r[0])[a-1]);const t={textAlign:this.state.rxData["columnTitleAlign".concat(a)]};this.state.rxData["columnWidth".concat(a)]&&(t.width="".concat(this.state.rxData["columnWidth".concat(a)]).concat(Number.isNaN(Number(this.state.rxData["columnWidth".concat(a)]))?"":"px")),c.push((0,s.jsx)(m,{style:t,children:e},a))}let t=this.state.rxData.maxRows;t=t<=0?r.length:Math.min(t,r.length);for(let a=0;a<t;a++){const t=r[a],n=[];if(0===e)Object.values(t).forEach(((e,t)=>{n.push((0,s.jsx)(h,{children:e},"".concat(a,"_").concat(t)))}));else for(let e=1;e<=this.state.rxData.countColumns;e++){let l=this.state.rxData["columnKey".concat(e)];const o=this.state.rxData["columnPrefix".concat(e)],i=this.state.rxData["columnSuffix".concat(e)],c=this.state.rxData["columnPlaceholder".concat(e)],d=this.state.rxData["columnValueFormat".concat(e)];l||(l=Object.keys(r[0])[e-1]);let u=t[l];if(null!==u&&""!==u||!c){if("number"===d){var g,p;u=new Intl.NumberFormat(navigator.language,{minimumFractionDigits:null!==(g=this.state.rxData["columnNumberDecimals".concat(e)])&&void 0!==g?g:0,maximumFractionDigits:null!==(p=this.state.rxData["columnNumberDecimals".concat(e)])&&void 0!==p?p:0}).format(u)}else if("datetime"===d&&u){const t=this.state.rxData["columnDatetimeFormat".concat(e)];"datetime"===t?u=new Date(u).toLocaleString():"date"===t?u=new Date(u).toLocaleDateString():"time"===t&&(u=new Date(u).toLocaleTimeString())}}else u=c;n.push((0,s.jsxs)(h,{style:{textAlign:this.state.rxData["columnContentAlign".concat(e)]},children:[o,u,i]},"".concat(a,"_").concat(e)))}d.push((0,s.jsx)(b,{sx:{"&:last-child td, &:last-child th":{border:0}},children:n},a))}}return(0,s.jsx)(l.TableContainer,{component:l.Paper,style:{height:"100%"},children:(0,s.jsxs)(l.Table,{children:[this.state.rxData.showHead&&(0,s.jsx)(l.TableHead,{children:(0,s.jsx)(u,{children:c})}),(0,s.jsx)(l.TableBody,{children:d})]})})}}const d=c},51153:(e,t,a)=>{var n=a(28437),l=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,r=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,a){var n,o={},c=null,d=null;for(n in void 0!==a&&(c=""+a),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)i.call(t,n)&&!s.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:l,type:e,key:c,ref:d,props:o,_owner:r.current}}t.jsx=c,t.jsxs=c},51488:(e,t,a)=>{a.d(t,{A:()=>i,r:()=>o});var n=a(92532),l=a(72372);function o(e){return(0,l.Ay)("MuiTableRow",e)}const i=(0,n.A)("MuiTableRow",["root","selected","hover","head","footer"])},70579:(e,t,a)=>{e.exports=a(51153)},72372:(e,t,a)=>{a.d(t,{Ay:()=>o});var n=a(79386);const l={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o=l[t];return o?"".concat(a,"-").concat(o):"".concat(n.A.generate(e),"-").concat(t)}},77502:(e,t,a)=>{a.d(t,{A:()=>i,r:()=>o});var n=a(92532),l=a(72372);function o(e){return(0,l.Ay)("MuiTableCell",e)}const i=(0,n.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"])},79386:(e,t,a)=>{a.d(t,{A:()=>l});const n=e=>e,l=(()=>{let e=n;return{configure(t){e=t},generate:t=>e(t),reset(){e=n}}})()},92532:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(72372);function l(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const l={};return t.forEach((t=>{l[t]=(0,n.Ay)(e,t,a)})),l}}}]);
|
|
3
|
-
//# sourceMappingURL=src_InventwoWidgetTable_jsx.6d8a54f7.chunk.js.map
|