diff --git a/README.md b/README.md index 98e6892..88c58b6 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Detect IP addresses from: --> ## Changelog -### 0.3.0 (2024-08-29) +### **WORK IN PROGRESS** * (bluefox) Added detection of some IPs ### 0.2.1 (2024-08-28) diff --git a/admin/custom/customComponents.js b/admin/custom/customComponents.js index fbf520d..f9072b0 100644 --- a/admin/custom/customComponents.js +++ b/admin/custom/customComponents.js @@ -1,4 +1,4 @@ -var ConfigCustomKissHomeResearchSet;(()=>{"use strict";var D={23009:(s,l,a)=>{var m={"./Components":()=>Promise.all([a.e("webpack_sharing_consume_default_react_react"),a.e("webpack_sharing_consume_default_prop-types_prop-types"),a.e("webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc"),a.e("webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5"),a.e("src_ConfigCustomInstancesSelector_jsx"),a.e("src_Components_jsx")]).then(()=>()=>a(8060))},f=(u,b)=>(a.R=b,b=a.o(m,u)?m[u]():Promise.resolve().then(()=>{throw new Error('Module "'+u+'" does not exist in container.')}),a.R=void 0,b),p=(u,b)=>{if(a.S){var c="default",g=a.S[c];if(g&&g!==u)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return a.S[c]=u,a.I(c,b)}};a.d(l,{get:()=>f,init:()=>p})}},O={};function e(s){var l=O[s];if(l!==void 0)return l.exports;var a=O[s]={id:s,loaded:!1,exports:{}};return D[s].call(a.exports,a,a.exports,e),a.loaded=!0,a.exports}e.m=D,e.c=O,e.amdD=function(){throw new Error("define cannot be used indirect")},e.n=s=>{var l=s&&s.__esModule?()=>s.default:()=>s;return e.d(l,{a:l}),l},e.d=(s,l)=>{for(var a in l)e.o(l,a)&&!e.o(s,a)&&Object.defineProperty(s,a,{enumerable:!0,get:l[a]})},e.f={},e.e=s=>Promise.all(Object.keys(e.f).reduce((l,a)=>(e.f[a](s,l),l),[])),e.u=s=>"static/js/"+s+"."+{"vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6":"46f96a04","vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs":"5c06a283","vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js":"dc1c324a","vendors-node_modules_iobroker_adapter-react-v5_index_js-node_modules_mui_material_styles_cssU-2e9b58":"74ee2155",webpack_sharing_consume_default_react_react:"dbf809cc","webpack_sharing_consume_default_prop-types_prop-types":"a742cf33","webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc":"705db7ad","webpack_sharing_consume_default_react-dropzone_react-dropzone":"967b3d88","node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23730":"79a7a687","vendors-node_modules_mui_material_FilledInput_FilledInput_js":"19a17d68","vendors-node_modules_iobroker_json-config_build_index_js":"20b2ea02","webpack_sharing_consume_default_react-dom_react-dom":"5f4509c2","webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5":"d3035c9b","webpack_sharing_consume_default_mui_x-date-pickers_mui_x-date-pickers-webpack_sharing_consume-9f1a2d":"a399f706",_91570:"cbc32633","vendors-node_modules_mui_icons-material_esm_index_js":"c2355923","vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3":"09e9abd6","vendors-node_modules_mui_material_index_js":"0172a6e4","vendors-node_modules_mui_x-date-pickers_index_js":"753fe4e8","node_modules_prop-types_index_js":"6da256b6","vendors-node_modules_react-ace_lib_index_js":"d476a4bf","vendors-node_modules_react-dom_index_js":"f8dda1f6","vendors-node_modules_react-dropzone_dist_es_index_js":"fc165192",node_modules_react_index_js:"70ac611b",src_ConfigCustomInstancesSelector_jsx:"1c646203",src_Components_jsx:"f978e618","node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23731":"68986fc3",_91571:"42c2d423"}[s]+".chunk.js",e.miniCssF=s=>{},e.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(s){if(typeof window=="object")return window}}(),e.o=(s,l)=>Object.prototype.hasOwnProperty.call(s,l),(()=>{var s={},l="iobroker-admin-component-telegram:";e.l=(a,m,f,p)=>{if(s[a]){s[a].push(m);return}var u,b;if(f!==void 0)for(var c=document.getElementsByTagName("script"),g=0;g{u.onerror=u.onload=null,clearTimeout(k);var x=s[a];if(delete s[a],u.parentNode&&u.parentNode.removeChild(u),x&&x.forEach(h=>h(y)),P)return P(y)},k=setTimeout(j.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=j.bind(null,u.onerror),u.onload=j.bind(null,u.onload),b&&document.head.appendChild(u)}})(),e.r=s=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},e.nmd=s=>(s.paths=[],s.children||(s.children=[]),s),(()=>{e.S={};var s={},l={};e.I=(a,m)=>{m||(m=[]);var f=l[a];if(f||(f=l[a]={}),!(m.indexOf(f)>=0)){if(m.push(f),s[a])return s[a];e.o(e.S,a)||(e.S[a]={});var p=e.S[a],u=j=>{typeof console!="undefined"&&console.warn&&console.warn(j)},b="iobroker-admin-component-telegram",c=(j,k,P,y)=>{var x=p[j]=p[j]||{},h=x[k];(!h||!h.loaded&&(!y!=!h.eager?y:b>h.from))&&(x[k]={get:P,from:b,eager:!!y})},g=j=>{var k=h=>u("Initialization of sharing external failed: "+h);try{var P=e(j);if(!P)return;var y=h=>h&&h.init&&h.init(e.S[a],m);if(P.then)return v.push(P.then(y,k));var x=y(P);if(x&&x.then)return v.push(x.catch(k))}catch(h){k(h)}},v=[];switch(a){case"default":c("@iobroker/adapter-react-v5","6.1.9",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs"),e.e("vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js"),e.e("vendors-node_modules_iobroker_adapter-react-v5_index_js-node_modules_mui_material_styles_cssU-2e9b58"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc"),e.e("webpack_sharing_consume_default_react-dropzone_react-dropzone"),e.e("node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23730")]).then(()=>()=>e(64620))),c("@iobroker/json-config","7.0.23",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs"),e.e("vendors-node_modules_iobroker_json-config_build_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_react-dom_react-dom"),e.e("webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc"),e.e("webpack_sharing_consume_default_react-dropzone_react-dropzone"),e.e("webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5"),e.e("webpack_sharing_consume_default_mui_x-date-pickers_mui_x-date-pickers-webpack_sharing_consume-9f1a2d"),e.e("_91570")]).then(()=>()=>e(51191))),c("@mui/icons-material","5.16.7",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_icons-material_esm_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types")]).then(()=>()=>e(58597))),c("@mui/material","5.16.7",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3"),e.e("vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js"),e.e("vendors-node_modules_mui_material_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_react-dom_react-dom")]).then(()=>()=>e(64291))),c("@mui/x-date-pickers","7.12.1",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3"),e.e("vendors-node_modules_mui_x-date-pickers_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_react-dom_react-dom")]).then(()=>()=>e(19938))),c("prop-types","15.8.1",()=>e.e("node_modules_prop-types_index_js").then(()=>()=>e(75826))),c("react-ace","12.0.0",()=>Promise.all([e.e("vendors-node_modules_react-ace_lib_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types")]).then(()=>()=>e(76216))),c("react-dom","18.3.1",()=>Promise.all([e.e("vendors-node_modules_react-dom_index_js"),e.e("webpack_sharing_consume_default_react_react")]).then(()=>()=>e(22483))),c("react-dropzone","14.2.3",()=>Promise.all([e.e("vendors-node_modules_react-dropzone_dist_es_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types")]).then(()=>()=>e(72589))),c("react","18.3.1",()=>e.e("node_modules_react_index_js").then(()=>()=>e(77810)));break}return v.length?s[a]=Promise.all(v).then(()=>s[a]=1):s[a]=1}}})(),(()=>{var s;e.g.importScripts&&(s=e.g.location+"");var l=e.g.document;if(!s&&l&&(l.currentScript&&(s=l.currentScript.src),!s)){var a=l.getElementsByTagName("script");if(a.length)for(var m=a.length-1;m>-1&&(!s||!/^http(s?):/.test(s));)s=a[m--].src}if(!s)throw new Error("Automatic publicPath is not supported in this browser");s=s.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=s})(),(()=>{var s=_=>{var o=t=>t.split(".").map(n=>+n==n?+n:n),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(_),i=r[1]?o(r[1]):[];return r[2]&&(i.length++,i.push.apply(i,o(r[2]))),r[3]&&(i.push([]),i.push.apply(i,o(r[3]))),i},l=(_,o)=>{_=s(_),o=s(o);for(var r=0;;){if(r>=_.length)return r=o.length)return t=="u";var n=o[r],d=(typeof n)[0];if(t!=d)return t=="o"&&d=="n"||d=="s"||t=="u";if(t!="o"&&t!="u"&&i!=n)return i{var o=_[0],r="";if(_.length===1)return"*";if(o+.5){r+=o==0?">=":o==-1?"<":o==1?"^":o==2?"~":o>0?"=":"!=";for(var i=1,t=1;t<_.length;t++)i--,r+=(typeof(d=_[t]))[0]=="u"?"-":(i>0?".":"")+(i=2,d);return r}var n=[];for(t=1;t<_.length;t++){var d=_[t];n.push(d===0?"not("+w()+")":d===1?"("+w()+" || "+w()+")":d===2?n.pop()+" "+n.pop():a(d))}return w();function w(){return n.pop().replace(/^\((.+)\)$/,"$1")}},m=(_,o)=>{if(0 in _){o=s(o);var r=_[0],i=r<0;i&&(r=-r-1);for(var t=0,n=1,d=!0;;n++,t++){var w,F,S=n<_.length?(typeof _[n])[0]:"";if(t>=o.length||(F=(typeof(w=o[t]))[0])=="o")return!d||(S=="u"?n>r&&!i:S==""!=i);if(F=="u"){if(!d||S!="u")return!1}else if(d)if(S==F)if(n<=r){if(w!=_[n])return!1}else{if(i?w>_[n]:w<_[n])return!1;w!=_[n]&&(d=!1)}else if(S!="s"&&S!="n"){if(i||n<=r)return!1;d=!1,n--}else{if(n<=r||F_&&e.o(_,o),p=_=>(_.loaded=1,_.get()),u=_=>Object.keys(_).reduce((o,r)=>(_[r].eager&&(o[r]=_[r]),o),{}),b=(_,t,r)=>{var i=r?u(_[t]):_[t],t=Object.keys(i).reduce((n,d)=>!n||l(n,d)?d:n,0);return t&&i[t]},c=(_,n,r,i)=>{var t=i?u(_[n]):_[n],n=Object.keys(t).reduce((d,w)=>m(r,w)&&(!d||l(d,w))?w:d,0);return n&&t[n]},g=(_,o,r)=>{var i=r?u(_[o]):_[o];return Object.keys(i).reduce((t,n)=>!t||!i[t].loaded&&l(t,n)?n:t,0)},v=(_,o,r,i)=>"Unsatisfied version "+r+" from "+(r&&_[o][r].from)+" of shared singleton module "+o+" (required "+a(i)+")",j=(_,o,r,i,t)=>{var n=_[r];return"No satisfying version ("+a(i)+")"+(t?" for eager consumption":"")+" of shared module "+r+" found in shared scope "+o+`. +var ConfigCustomKissHomeResearchSet;(()=>{"use strict";var D={23009:(s,l,a)=>{var m={"./Components":()=>Promise.all([a.e("webpack_sharing_consume_default_react_react"),a.e("webpack_sharing_consume_default_prop-types_prop-types"),a.e("webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc"),a.e("webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5"),a.e("src_ConfigCustomInstancesSelector_jsx"),a.e("src_Components_jsx")]).then(()=>()=>a(8060))},f=(u,b)=>(a.R=b,b=a.o(m,u)?m[u]():Promise.resolve().then(()=>{throw new Error('Module "'+u+'" does not exist in container.')}),a.R=void 0,b),p=(u,b)=>{if(a.S){var c="default",g=a.S[c];if(g&&g!==u)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return a.S[c]=u,a.I(c,b)}};a.d(l,{get:()=>f,init:()=>p})}},O={};function e(s){var l=O[s];if(l!==void 0)return l.exports;var a=O[s]={id:s,loaded:!1,exports:{}};return D[s].call(a.exports,a,a.exports,e),a.loaded=!0,a.exports}e.m=D,e.c=O,e.amdD=function(){throw new Error("define cannot be used indirect")},e.n=s=>{var l=s&&s.__esModule?()=>s.default:()=>s;return e.d(l,{a:l}),l},e.d=(s,l)=>{for(var a in l)e.o(l,a)&&!e.o(s,a)&&Object.defineProperty(s,a,{enumerable:!0,get:l[a]})},e.f={},e.e=s=>Promise.all(Object.keys(e.f).reduce((l,a)=>(e.f[a](s,l),l),[])),e.u=s=>"static/js/"+s+"."+{"vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6":"46f96a04","vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs":"5c06a283","vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js":"dc1c324a","vendors-node_modules_iobroker_adapter-react-v5_index_js-node_modules_mui_material_styles_cssU-2e9b58":"74ee2155",webpack_sharing_consume_default_react_react:"dbf809cc","webpack_sharing_consume_default_prop-types_prop-types":"a742cf33","webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc":"705db7ad","webpack_sharing_consume_default_react-dropzone_react-dropzone":"967b3d88","node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23730":"79a7a687","vendors-node_modules_mui_material_FilledInput_FilledInput_js":"19a17d68","vendors-node_modules_iobroker_json-config_build_index_js":"20b2ea02","webpack_sharing_consume_default_react-dom_react-dom":"5f4509c2","webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5":"d3035c9b","webpack_sharing_consume_default_mui_x-date-pickers_mui_x-date-pickers-webpack_sharing_consume-9f1a2d":"a399f706",_91570:"cbc32633","vendors-node_modules_mui_icons-material_esm_index_js":"c2355923","vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3":"09e9abd6","vendors-node_modules_mui_material_index_js":"0172a6e4","vendors-node_modules_mui_x-date-pickers_index_js":"753fe4e8","node_modules_prop-types_index_js":"6da256b6","vendors-node_modules_react-ace_lib_index_js":"d476a4bf","vendors-node_modules_react-dom_index_js":"f8dda1f6","vendors-node_modules_react-dropzone_dist_es_index_js":"fc165192",node_modules_react_index_js:"70ac611b",src_ConfigCustomInstancesSelector_jsx:"85d5516e",src_Components_jsx:"f978e618","node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23731":"68986fc3",_91571:"42c2d423"}[s]+".chunk.js",e.miniCssF=s=>{},e.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(s){if(typeof window=="object")return window}}(),e.o=(s,l)=>Object.prototype.hasOwnProperty.call(s,l),(()=>{var s={},l="iobroker-admin-component-telegram:";e.l=(a,m,f,p)=>{if(s[a]){s[a].push(m);return}var u,b;if(f!==void 0)for(var c=document.getElementsByTagName("script"),g=0;g{u.onerror=u.onload=null,clearTimeout(k);var x=s[a];if(delete s[a],u.parentNode&&u.parentNode.removeChild(u),x&&x.forEach(h=>h(y)),P)return P(y)},k=setTimeout(j.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=j.bind(null,u.onerror),u.onload=j.bind(null,u.onload),b&&document.head.appendChild(u)}})(),e.r=s=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},e.nmd=s=>(s.paths=[],s.children||(s.children=[]),s),(()=>{e.S={};var s={},l={};e.I=(a,m)=>{m||(m=[]);var f=l[a];if(f||(f=l[a]={}),!(m.indexOf(f)>=0)){if(m.push(f),s[a])return s[a];e.o(e.S,a)||(e.S[a]={});var p=e.S[a],u=j=>{typeof console!="undefined"&&console.warn&&console.warn(j)},b="iobroker-admin-component-telegram",c=(j,k,P,y)=>{var x=p[j]=p[j]||{},h=x[k];(!h||!h.loaded&&(!y!=!h.eager?y:b>h.from))&&(x[k]={get:P,from:b,eager:!!y})},g=j=>{var k=h=>u("Initialization of sharing external failed: "+h);try{var P=e(j);if(!P)return;var y=h=>h&&h.init&&h.init(e.S[a],m);if(P.then)return v.push(P.then(y,k));var x=y(P);if(x&&x.then)return v.push(x.catch(k))}catch(h){k(h)}},v=[];switch(a){case"default":c("@iobroker/adapter-react-v5","6.1.9",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs"),e.e("vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js"),e.e("vendors-node_modules_iobroker_adapter-react-v5_index_js-node_modules_mui_material_styles_cssU-2e9b58"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc"),e.e("webpack_sharing_consume_default_react-dropzone_react-dropzone"),e.e("node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23730")]).then(()=>()=>e(64620))),c("@iobroker/json-config","7.0.23",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs"),e.e("vendors-node_modules_iobroker_json-config_build_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_react-dom_react-dom"),e.e("webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc"),e.e("webpack_sharing_consume_default_react-dropzone_react-dropzone"),e.e("webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5"),e.e("webpack_sharing_consume_default_mui_x-date-pickers_mui_x-date-pickers-webpack_sharing_consume-9f1a2d"),e.e("_91570")]).then(()=>()=>e(51191))),c("@mui/icons-material","5.16.7",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_icons-material_esm_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types")]).then(()=>()=>e(58597))),c("@mui/material","5.16.7",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3"),e.e("vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js"),e.e("vendors-node_modules_mui_material_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_react-dom_react-dom")]).then(()=>()=>e(64291))),c("@mui/x-date-pickers","7.12.1",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3"),e.e("vendors-node_modules_mui_x-date-pickers_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_react-dom_react-dom")]).then(()=>()=>e(19938))),c("prop-types","15.8.1",()=>e.e("node_modules_prop-types_index_js").then(()=>()=>e(75826))),c("react-ace","12.0.0",()=>Promise.all([e.e("vendors-node_modules_react-ace_lib_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types")]).then(()=>()=>e(76216))),c("react-dom","18.3.1",()=>Promise.all([e.e("vendors-node_modules_react-dom_index_js"),e.e("webpack_sharing_consume_default_react_react")]).then(()=>()=>e(22483))),c("react-dropzone","14.2.3",()=>Promise.all([e.e("vendors-node_modules_react-dropzone_dist_es_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types")]).then(()=>()=>e(72589))),c("react","18.3.1",()=>e.e("node_modules_react_index_js").then(()=>()=>e(77810)));break}return v.length?s[a]=Promise.all(v).then(()=>s[a]=1):s[a]=1}}})(),(()=>{var s;e.g.importScripts&&(s=e.g.location+"");var l=e.g.document;if(!s&&l&&(l.currentScript&&(s=l.currentScript.src),!s)){var a=l.getElementsByTagName("script");if(a.length)for(var m=a.length-1;m>-1&&(!s||!/^http(s?):/.test(s));)s=a[m--].src}if(!s)throw new Error("Automatic publicPath is not supported in this browser");s=s.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=s})(),(()=>{var s=_=>{var o=t=>t.split(".").map(n=>+n==n?+n:n),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(_),i=r[1]?o(r[1]):[];return r[2]&&(i.length++,i.push.apply(i,o(r[2]))),r[3]&&(i.push([]),i.push.apply(i,o(r[3]))),i},l=(_,o)=>{_=s(_),o=s(o);for(var r=0;;){if(r>=_.length)return r=o.length)return t=="u";var n=o[r],d=(typeof n)[0];if(t!=d)return t=="o"&&d=="n"||d=="s"||t=="u";if(t!="o"&&t!="u"&&i!=n)return i{var o=_[0],r="";if(_.length===1)return"*";if(o+.5){r+=o==0?">=":o==-1?"<":o==1?"^":o==2?"~":o>0?"=":"!=";for(var i=1,t=1;t<_.length;t++)i--,r+=(typeof(d=_[t]))[0]=="u"?"-":(i>0?".":"")+(i=2,d);return r}var n=[];for(t=1;t<_.length;t++){var d=_[t];n.push(d===0?"not("+w()+")":d===1?"("+w()+" || "+w()+")":d===2?n.pop()+" "+n.pop():a(d))}return w();function w(){return n.pop().replace(/^\((.+)\)$/,"$1")}},m=(_,o)=>{if(0 in _){o=s(o);var r=_[0],i=r<0;i&&(r=-r-1);for(var t=0,n=1,d=!0;;n++,t++){var w,F,S=n<_.length?(typeof _[n])[0]:"";if(t>=o.length||(F=(typeof(w=o[t]))[0])=="o")return!d||(S=="u"?n>r&&!i:S==""!=i);if(F=="u"){if(!d||S!="u")return!1}else if(d)if(S==F)if(n<=r){if(w!=_[n])return!1}else{if(i?w>_[n]:w<_[n])return!1;w!=_[n]&&(d=!1)}else if(S!="s"&&S!="n"){if(i||n<=r)return!1;d=!1,n--}else{if(n<=r||F_&&e.o(_,o),p=_=>(_.loaded=1,_.get()),u=_=>Object.keys(_).reduce((o,r)=>(_[r].eager&&(o[r]=_[r]),o),{}),b=(_,t,r)=>{var i=r?u(_[t]):_[t],t=Object.keys(i).reduce((n,d)=>!n||l(n,d)?d:n,0);return t&&i[t]},c=(_,n,r,i)=>{var t=i?u(_[n]):_[n],n=Object.keys(t).reduce((d,w)=>m(r,w)&&(!d||l(d,w))?w:d,0);return n&&t[n]},g=(_,o,r)=>{var i=r?u(_[o]):_[o];return Object.keys(i).reduce((t,n)=>!t||!i[t].loaded&&l(t,n)?n:t,0)},v=(_,o,r,i)=>"Unsatisfied version "+r+" from "+(r&&_[o][r].from)+" of shared singleton module "+o+" (required "+a(i)+")",j=(_,o,r,i,t)=>{var n=_[r];return"No satisfying version ("+a(i)+")"+(t?" for eager consumption":"")+" of shared module "+r+" found in shared scope "+o+`. Available versions: `+Object.keys(n).map(d=>d+" from "+n[d].from).join(", ")},k=_=>{throw new Error(_)},P=(_,o)=>k("Shared module "+o+" doesn't exist in shared scope "+_),y=_=>{typeof console!="undefined"&&console.warn&&console.warn(_)},x=_=>function(o,r,i,t,n){var d=e.I(o);return d&&d.then&&!i?d.then(_.bind(_,o,e.S[o],r,!1,t,n)):_(o,e.S[o],r,i,t,n)},h=(_,o,r)=>r?r():P(_,o),$=x((_,o,r,i,t)=>f(o,r)?p(b(o,r,i)):h(_,r,t)),U=x((_,o,r,i,t,n)=>{if(!f(o,r))return h(_,r,n);var d=c(o,r,t,i);return d?p(d):(y(j(o,_,r,t,i)),p(b(o,r,i)))}),L=x((_,o,r,i,t,n)=>{if(!f(o,r))return h(_,r,n);var d=c(o,r,t,i);if(d)return p(d);if(n)return n();k(j(o,_,r,t,i))}),H=x((_,o,r,i,t)=>{if(!f(o,r))return h(_,r,t);var n=g(o,r,i);return p(o[r][n])}),C=x((_,o,r,i,t,n)=>{if(!f(o,r))return h(_,r,n);var d=g(o,r,i);return m(t,d)||y(v(o,r,d,t)),p(o[r][d])}),K=x((_,o,r,i,t,n)=>{if(!f(o,r))return h(_,r,n);var d=g(o,r,i);return m(t,d)||k(v(o,r,d,t)),p(o[r][d])}),E={},A={28437:()=>C("default","react",!1,[0],()=>e.e("node_modules_react_index_js").then(()=>()=>e(77810))),95973:()=>C("default","prop-types",!1,[0],()=>e.e("node_modules_prop-types_index_js").then(()=>()=>e(75826))),67085:()=>C("default","@mui/material",!1,[0],()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3"),e.e("vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js"),e.e("vendors-node_modules_mui_material_index_js"),e.e("webpack_sharing_consume_default_react-dom_react-dom")]).then(()=>()=>e(64291))),21839:()=>C("default","@mui/icons-material",!1,[0],()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_icons-material_esm_index_js")]).then(()=>()=>e(58597))),53683:()=>C("default","react-dropzone",!1,[0],()=>e.e("vendors-node_modules_react-dropzone_dist_es_index_js").then(()=>()=>e(72589))),23479:()=>C("default","react-dom",!1,[0],()=>e.e("vendors-node_modules_react-dom_index_js").then(()=>()=>e(22483))),37449:()=>C("default","@iobroker/adapter-react-v5",!1,[0],()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs"),e.e("vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js"),e.e("vendors-node_modules_iobroker_adapter-react-v5_index_js-node_modules_mui_material_styles_cssU-2e9b58"),e.e("webpack_sharing_consume_default_react-dropzone_react-dropzone"),e.e("node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23731")]).then(()=>()=>e(64620))),28497:()=>C("default","@mui/x-date-pickers",!1,[0],()=>Promise.all([e.e("vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3"),e.e("vendors-node_modules_mui_x-date-pickers_index_js")]).then(()=>()=>e(19938))),58093:()=>C("default","react-ace",!1,[0],()=>e.e("vendors-node_modules_react-ace_lib_index_js").then(()=>()=>e(76216))),60556:()=>C("default","@iobroker/json-config",!1,[0],()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs"),e.e("vendors-node_modules_iobroker_json-config_build_index_js"),e.e("webpack_sharing_consume_default_react-dom_react-dom"),e.e("webpack_sharing_consume_default_react-dropzone_react-dropzone"),e.e("webpack_sharing_consume_default_mui_x-date-pickers_mui_x-date-pickers-webpack_sharing_consume-9f1a2d"),e.e("_91571")]).then(()=>()=>e(51191)))},I={webpack_sharing_consume_default_react_react:[28437],"webpack_sharing_consume_default_prop-types_prop-types":[95973],"webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc":[67085,21839],"webpack_sharing_consume_default_react-dropzone_react-dropzone":[53683],"webpack_sharing_consume_default_react-dom_react-dom":[23479],"webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5":[37449],"webpack_sharing_consume_default_mui_x-date-pickers_mui_x-date-pickers-webpack_sharing_consume-9f1a2d":[28497,58093],src_ConfigCustomInstancesSelector_jsx:[60556]},T={};e.f.consumes=(_,o)=>{e.o(I,_)&&I[_].forEach(r=>{if(e.o(E,r))return o.push(E[r]);if(!T[r]){var i=d=>{E[r]=0,e.m[r]=w=>{delete e.c[r],w.exports=d()}};T[r]=!0;var t=d=>{delete E[r],e.m[r]=w=>{throw delete e.c[r],d}};try{var n=A[r]();n.then?o.push(E[r]=n.then(i).catch(t)):i(n)}catch(d){t(d)}}})}})(),(()=>{var s={ConfigCustomKissHomeResearchSet:0};e.f.j=(m,f)=>{var p=e.o(s,m)?s[m]:void 0;if(p!==0)if(p)f.push(p[2]);else if(/^webpack_sharing_consume_default_(mui_(icons\-material_mui_icons\-material\-webpack_sharing_consume\-6275fc|x\-date\-pickers_mui_x\-date\-pickers\-webpack_sharing_consume\-9f1a2d)|react(\-d(om_react\-dom|ropzone_react\-dropzone)|_react)|iobroker_adapter\-react\-v5_iobroker_adapter\-react\-v5|prop\-types_prop\-types)$/.test(m))s[m]=0;else{var u=new Promise((v,j)=>p=s[m]=[v,j]);f.push(p[2]=u);var b=e.p+e.u(m),c=new Error,g=v=>{if(e.o(s,m)&&(p=s[m],p!==0&&(s[m]=void 0),p)){var j=v&&(v.type==="load"?"missing":v.type),k=v&&v.target&&v.target.src;c.message="Loading chunk "+m+` failed. (`+j+": "+k+")",c.name="ChunkLoadError",c.type=j,c.request=k,p[1](c)}};e.l(b,g,"chunk-"+m,m)}};var l=(m,f)=>{var p=f[0],u=f[1],b=f[2],c,g,v=0;if(p.some(k=>s[k]!==0)){for(c in u)e.o(u,c)&&(e.m[c]=u[c]);if(b)var j=b(e)}for(m&&m(f);v{var M={56046:(s,u,n)=>{Promise.all([n.e("webpack_sharing_consume_default_react_react"),n.e("webpack_sharing_consume_default_prop-types_prop-types"),n.e("webpack_sharing_consume_default_react-dom_react-dom"),n.e("webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc"),n.e("webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5"),n.e("src_ConfigCustomInstancesSelector_jsx"),n.e("src_bootstrap_jsx")]).then(n.bind(n,38733))}},B={};function e(s){var u=B[s];if(u!==void 0)return u.exports;var n=B[s]={id:s,loaded:!1,exports:{}};return M[s].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}e.m=M,e.c=B,e.amdD=function(){throw new Error("define cannot be used indirect")},e.n=s=>{var u=s&&s.__esModule?()=>s.default:()=>s;return e.d(u,{a:u}),u},e.d=(s,u)=>{for(var n in u)e.o(u,n)&&!e.o(s,n)&&Object.defineProperty(s,n,{enumerable:!0,get:u[n]})},e.f={},e.e=s=>Promise.all(Object.keys(e.f).reduce((u,n)=>(e.f[n](s,u),u),[])),e.u=s=>"static/js/"+s+"."+{webpack_sharing_consume_default_react_react:"dbf809cc","webpack_sharing_consume_default_prop-types_prop-types":"a742cf33","webpack_sharing_consume_default_react-dom_react-dom":"5f4509c2","webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc":"705db7ad","webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5":"d3035c9b",src_ConfigCustomInstancesSelector_jsx:"1c646203",src_bootstrap_jsx:"60333c4c","vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6":"46f96a04","vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs":"5c06a283","vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js":"dc1c324a","vendors-node_modules_iobroker_adapter-react-v5_index_js-node_modules_mui_material_styles_cssU-2e9b58":"74ee2155","webpack_sharing_consume_default_react-dropzone_react-dropzone":"967b3d88","node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23730":"79a7a687","vendors-node_modules_mui_material_FilledInput_FilledInput_js":"19a17d68","vendors-node_modules_iobroker_json-config_build_index_js":"20b2ea02","webpack_sharing_consume_default_mui_x-date-pickers_mui_x-date-pickers-webpack_sharing_consume-9f1a2d":"a399f706",_91570:"cbc32633","vendors-node_modules_mui_icons-material_esm_index_js":"c2355923","vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3":"09e9abd6","vendors-node_modules_mui_material_index_js":"0172a6e4","vendors-node_modules_mui_x-date-pickers_index_js":"753fe4e8","node_modules_prop-types_index_js":"6da256b6","vendors-node_modules_react-ace_lib_index_js":"d476a4bf","vendors-node_modules_react-dom_index_js":"f8dda1f6","vendors-node_modules_react-dropzone_dist_es_index_js":"fc165192",node_modules_react_index_js:"70ac611b",_91571:"42c2d423","node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23731":"68986fc3"}[s]+".chunk.js",e.miniCssF=s=>{},e.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(s){if(typeof window=="object")return window}}(),e.o=(s,u)=>Object.prototype.hasOwnProperty.call(s,u),(()=>{var s={},u="iobroker-admin-component-telegram:";e.l=(n,l,v,p)=>{if(s[n]){s[n].push(l);return}var m,x;if(v!==void 0)for(var c=document.getElementsByTagName("script"),k=0;k{m.onerror=m.onload=null,clearTimeout(g);var w=s[n];if(delete s[n],m.parentNode&&m.parentNode.removeChild(m),w&&w.forEach(h=>h(y)),P)return P(y)},g=setTimeout(b.bind(null,void 0,{type:"timeout",target:m}),12e4);m.onerror=b.bind(null,m.onerror),m.onload=b.bind(null,m.onload),x&&document.head.appendChild(m)}})(),e.r=s=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},e.nmd=s=>(s.paths=[],s.children||(s.children=[]),s),(()=>{e.S={};var s={},u={};e.I=(n,l)=>{l||(l=[]);var v=u[n];if(v||(v=u[n]={}),!(l.indexOf(v)>=0)){if(l.push(v),s[n])return s[n];e.o(e.S,n)||(e.S[n]={});var p=e.S[n],m=b=>{typeof console!="undefined"&&console.warn&&console.warn(b)},x="iobroker-admin-component-telegram",c=(b,g,P,y)=>{var w=p[b]=p[b]||{},h=w[g];(!h||!h.loaded&&(!y!=!h.eager?y:x>h.from))&&(w[g]={get:P,from:x,eager:!!y})},k=b=>{var g=h=>m("Initialization of sharing external failed: "+h);try{var P=e(b);if(!P)return;var y=h=>h&&h.init&&h.init(e.S[n],l);if(P.then)return f.push(P.then(y,g));var w=y(P);if(w&&w.then)return f.push(w.catch(g))}catch(h){g(h)}},f=[];switch(n){case"default":c("@iobroker/adapter-react-v5","6.1.9",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs"),e.e("vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js"),e.e("vendors-node_modules_iobroker_adapter-react-v5_index_js-node_modules_mui_material_styles_cssU-2e9b58"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc"),e.e("webpack_sharing_consume_default_react-dropzone_react-dropzone"),e.e("node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23730")]).then(()=>()=>e(64620))),c("@iobroker/json-config","7.0.23",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs"),e.e("vendors-node_modules_iobroker_json-config_build_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_react-dom_react-dom"),e.e("webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc"),e.e("webpack_sharing_consume_default_react-dropzone_react-dropzone"),e.e("webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5"),e.e("webpack_sharing_consume_default_mui_x-date-pickers_mui_x-date-pickers-webpack_sharing_consume-9f1a2d"),e.e("_91570")]).then(()=>()=>e(51191))),c("@mui/icons-material","5.16.7",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_icons-material_esm_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types")]).then(()=>()=>e(58597))),c("@mui/material","5.16.7",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3"),e.e("vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js"),e.e("vendors-node_modules_mui_material_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_react-dom_react-dom")]).then(()=>()=>e(64291))),c("@mui/x-date-pickers","7.12.1",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3"),e.e("vendors-node_modules_mui_x-date-pickers_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_react-dom_react-dom")]).then(()=>()=>e(19938))),c("prop-types","15.8.1",()=>e.e("node_modules_prop-types_index_js").then(()=>()=>e(75826))),c("react-ace","12.0.0",()=>Promise.all([e.e("vendors-node_modules_react-ace_lib_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types")]).then(()=>()=>e(76216))),c("react-dom","18.3.1",()=>Promise.all([e.e("vendors-node_modules_react-dom_index_js"),e.e("webpack_sharing_consume_default_react_react")]).then(()=>()=>e(22483))),c("react-dropzone","14.2.3",()=>Promise.all([e.e("vendors-node_modules_react-dropzone_dist_es_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types")]).then(()=>()=>e(72589))),c("react","18.3.1",()=>e.e("node_modules_react_index_js").then(()=>()=>e(77810)));break}return f.length?s[n]=Promise.all(f).then(()=>s[n]=1):s[n]=1}}})(),(()=>{var s;e.g.importScripts&&(s=e.g.location+"");var u=e.g.document;if(!s&&u&&(u.currentScript&&(s=u.currentScript.src),!s)){var n=u.getElementsByTagName("script");if(n.length)for(var l=n.length-1;l>-1&&(!s||!/^http(s?):/.test(s));)s=n[l--].src}if(!s)throw new Error("Automatic publicPath is not supported in this browser");s=s.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=s+"../../"})(),(()=>{var s=r=>{var o=a=>a.split(".").map(t=>+t==t?+t:t),_=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(r),d=_[1]?o(_[1]):[];return _[2]&&(d.length++,d.push.apply(d,o(_[2]))),_[3]&&(d.push([]),d.push.apply(d,o(_[3]))),d},u=(r,o)=>{r=s(r),o=s(o);for(var _=0;;){if(_>=r.length)return _=o.length)return a=="u";var t=o[_],i=(typeof t)[0];if(a!=i)return a=="o"&&i=="n"||i=="s"||a=="u";if(a!="o"&&a!="u"&&d!=t)return d{var o=r[0],_="";if(r.length===1)return"*";if(o+.5){_+=o==0?">=":o==-1?"<":o==1?"^":o==2?"~":o>0?"=":"!=";for(var d=1,a=1;a0?".":"")+(d=2,i);return _}var t=[];for(a=1;a{if(0 in r){o=s(o);var _=r[0],d=_<0;d&&(_=-_-1);for(var a=0,t=1,i=!0;;t++,a++){var j,F,S=t=o.length||(F=(typeof(j=o[a]))[0])=="o")return!i||(S=="u"?t>_&&!d:S==""!=d);if(F=="u"){if(!i||S!="u")return!1}else if(i)if(S==F)if(t<=_){if(j!=r[t])return!1}else{if(d?j>r[t]:jr&&e.o(r,o),p=r=>(r.loaded=1,r.get()),m=r=>Object.keys(r).reduce((o,_)=>(r[_].eager&&(o[_]=r[_]),o),{}),x=(r,a,_)=>{var d=_?m(r[a]):r[a],a=Object.keys(d).reduce((t,i)=>!t||u(t,i)?i:t,0);return a&&d[a]},c=(r,t,_,d)=>{var a=d?m(r[t]):r[t],t=Object.keys(a).reduce((i,j)=>l(_,j)&&(!i||u(i,j))?j:i,0);return t&&a[t]},k=(r,o,_)=>{var d=_?m(r[o]):r[o];return Object.keys(d).reduce((a,t)=>!a||!d[a].loaded&&u(a,t)?t:a,0)},f=(r,o,_,d)=>"Unsatisfied version "+_+" from "+(_&&r[o][_].from)+" of shared singleton module "+o+" (required "+n(d)+")",b=(r,o,_,d,a)=>{var t=r[_];return"No satisfying version ("+n(d)+")"+(a?" for eager consumption":"")+" of shared module "+_+" found in shared scope "+o+`. +(()=>{var M={56046:(s,u,n)=>{Promise.all([n.e("webpack_sharing_consume_default_react_react"),n.e("webpack_sharing_consume_default_prop-types_prop-types"),n.e("webpack_sharing_consume_default_react-dom_react-dom"),n.e("webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc"),n.e("webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5"),n.e("src_ConfigCustomInstancesSelector_jsx"),n.e("src_bootstrap_jsx")]).then(n.bind(n,38733))}},B={};function e(s){var u=B[s];if(u!==void 0)return u.exports;var n=B[s]={id:s,loaded:!1,exports:{}};return M[s].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}e.m=M,e.c=B,e.amdD=function(){throw new Error("define cannot be used indirect")},e.n=s=>{var u=s&&s.__esModule?()=>s.default:()=>s;return e.d(u,{a:u}),u},e.d=(s,u)=>{for(var n in u)e.o(u,n)&&!e.o(s,n)&&Object.defineProperty(s,n,{enumerable:!0,get:u[n]})},e.f={},e.e=s=>Promise.all(Object.keys(e.f).reduce((u,n)=>(e.f[n](s,u),u),[])),e.u=s=>"static/js/"+s+"."+{webpack_sharing_consume_default_react_react:"dbf809cc","webpack_sharing_consume_default_prop-types_prop-types":"a742cf33","webpack_sharing_consume_default_react-dom_react-dom":"5f4509c2","webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc":"705db7ad","webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5":"d3035c9b",src_ConfigCustomInstancesSelector_jsx:"85d5516e",src_bootstrap_jsx:"60333c4c","vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6":"46f96a04","vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs":"5c06a283","vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js":"dc1c324a","vendors-node_modules_iobroker_adapter-react-v5_index_js-node_modules_mui_material_styles_cssU-2e9b58":"74ee2155","webpack_sharing_consume_default_react-dropzone_react-dropzone":"967b3d88","node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23730":"79a7a687","vendors-node_modules_mui_material_FilledInput_FilledInput_js":"19a17d68","vendors-node_modules_iobroker_json-config_build_index_js":"20b2ea02","webpack_sharing_consume_default_mui_x-date-pickers_mui_x-date-pickers-webpack_sharing_consume-9f1a2d":"a399f706",_91570:"cbc32633","vendors-node_modules_mui_icons-material_esm_index_js":"c2355923","vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3":"09e9abd6","vendors-node_modules_mui_material_index_js":"0172a6e4","vendors-node_modules_mui_x-date-pickers_index_js":"753fe4e8","node_modules_prop-types_index_js":"6da256b6","vendors-node_modules_react-ace_lib_index_js":"d476a4bf","vendors-node_modules_react-dom_index_js":"f8dda1f6","vendors-node_modules_react-dropzone_dist_es_index_js":"fc165192",node_modules_react_index_js:"70ac611b",_91571:"42c2d423","node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23731":"68986fc3"}[s]+".chunk.js",e.miniCssF=s=>{},e.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(s){if(typeof window=="object")return window}}(),e.o=(s,u)=>Object.prototype.hasOwnProperty.call(s,u),(()=>{var s={},u="iobroker-admin-component-telegram:";e.l=(n,l,v,p)=>{if(s[n]){s[n].push(l);return}var m,x;if(v!==void 0)for(var c=document.getElementsByTagName("script"),k=0;k{m.onerror=m.onload=null,clearTimeout(g);var w=s[n];if(delete s[n],m.parentNode&&m.parentNode.removeChild(m),w&&w.forEach(h=>h(y)),P)return P(y)},g=setTimeout(b.bind(null,void 0,{type:"timeout",target:m}),12e4);m.onerror=b.bind(null,m.onerror),m.onload=b.bind(null,m.onload),x&&document.head.appendChild(m)}})(),e.r=s=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},e.nmd=s=>(s.paths=[],s.children||(s.children=[]),s),(()=>{e.S={};var s={},u={};e.I=(n,l)=>{l||(l=[]);var v=u[n];if(v||(v=u[n]={}),!(l.indexOf(v)>=0)){if(l.push(v),s[n])return s[n];e.o(e.S,n)||(e.S[n]={});var p=e.S[n],m=b=>{typeof console!="undefined"&&console.warn&&console.warn(b)},x="iobroker-admin-component-telegram",c=(b,g,P,y)=>{var w=p[b]=p[b]||{},h=w[g];(!h||!h.loaded&&(!y!=!h.eager?y:x>h.from))&&(w[g]={get:P,from:x,eager:!!y})},k=b=>{var g=h=>m("Initialization of sharing external failed: "+h);try{var P=e(b);if(!P)return;var y=h=>h&&h.init&&h.init(e.S[n],l);if(P.then)return f.push(P.then(y,g));var w=y(P);if(w&&w.then)return f.push(w.catch(g))}catch(h){g(h)}},f=[];switch(n){case"default":c("@iobroker/adapter-react-v5","6.1.9",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs"),e.e("vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js"),e.e("vendors-node_modules_iobroker_adapter-react-v5_index_js-node_modules_mui_material_styles_cssU-2e9b58"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc"),e.e("webpack_sharing_consume_default_react-dropzone_react-dropzone"),e.e("node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23730")]).then(()=>()=>e(64620))),c("@iobroker/json-config","7.0.23",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs"),e.e("vendors-node_modules_iobroker_json-config_build_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_react-dom_react-dom"),e.e("webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc"),e.e("webpack_sharing_consume_default_react-dropzone_react-dropzone"),e.e("webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5"),e.e("webpack_sharing_consume_default_mui_x-date-pickers_mui_x-date-pickers-webpack_sharing_consume-9f1a2d"),e.e("_91570")]).then(()=>()=>e(51191))),c("@mui/icons-material","5.16.7",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_icons-material_esm_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types")]).then(()=>()=>e(58597))),c("@mui/material","5.16.7",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3"),e.e("vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js"),e.e("vendors-node_modules_mui_material_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_react-dom_react-dom")]).then(()=>()=>e(64291))),c("@mui/x-date-pickers","7.12.1",()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3"),e.e("vendors-node_modules_mui_x-date-pickers_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_react-dom_react-dom")]).then(()=>()=>e(19938))),c("prop-types","15.8.1",()=>e.e("node_modules_prop-types_index_js").then(()=>()=>e(75826))),c("react-ace","12.0.0",()=>Promise.all([e.e("vendors-node_modules_react-ace_lib_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types")]).then(()=>()=>e(76216))),c("react-dom","18.3.1",()=>Promise.all([e.e("vendors-node_modules_react-dom_index_js"),e.e("webpack_sharing_consume_default_react_react")]).then(()=>()=>e(22483))),c("react-dropzone","14.2.3",()=>Promise.all([e.e("vendors-node_modules_react-dropzone_dist_es_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types")]).then(()=>()=>e(72589))),c("react","18.3.1",()=>e.e("node_modules_react_index_js").then(()=>()=>e(77810)));break}return f.length?s[n]=Promise.all(f).then(()=>s[n]=1):s[n]=1}}})(),(()=>{var s;e.g.importScripts&&(s=e.g.location+"");var u=e.g.document;if(!s&&u&&(u.currentScript&&(s=u.currentScript.src),!s)){var n=u.getElementsByTagName("script");if(n.length)for(var l=n.length-1;l>-1&&(!s||!/^http(s?):/.test(s));)s=n[l--].src}if(!s)throw new Error("Automatic publicPath is not supported in this browser");s=s.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=s+"../../"})(),(()=>{var s=r=>{var o=a=>a.split(".").map(t=>+t==t?+t:t),_=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(r),d=_[1]?o(_[1]):[];return _[2]&&(d.length++,d.push.apply(d,o(_[2]))),_[3]&&(d.push([]),d.push.apply(d,o(_[3]))),d},u=(r,o)=>{r=s(r),o=s(o);for(var _=0;;){if(_>=r.length)return _=o.length)return a=="u";var t=o[_],i=(typeof t)[0];if(a!=i)return a=="o"&&i=="n"||i=="s"||a=="u";if(a!="o"&&a!="u"&&d!=t)return d{var o=r[0],_="";if(r.length===1)return"*";if(o+.5){_+=o==0?">=":o==-1?"<":o==1?"^":o==2?"~":o>0?"=":"!=";for(var d=1,a=1;a0?".":"")+(d=2,i);return _}var t=[];for(a=1;a{if(0 in r){o=s(o);var _=r[0],d=_<0;d&&(_=-_-1);for(var a=0,t=1,i=!0;;t++,a++){var j,F,S=t=o.length||(F=(typeof(j=o[a]))[0])=="o")return!i||(S=="u"?t>_&&!d:S==""!=d);if(F=="u"){if(!i||S!="u")return!1}else if(i)if(S==F)if(t<=_){if(j!=r[t])return!1}else{if(d?j>r[t]:jr&&e.o(r,o),p=r=>(r.loaded=1,r.get()),m=r=>Object.keys(r).reduce((o,_)=>(r[_].eager&&(o[_]=r[_]),o),{}),x=(r,a,_)=>{var d=_?m(r[a]):r[a],a=Object.keys(d).reduce((t,i)=>!t||u(t,i)?i:t,0);return a&&d[a]},c=(r,t,_,d)=>{var a=d?m(r[t]):r[t],t=Object.keys(a).reduce((i,j)=>l(_,j)&&(!i||u(i,j))?j:i,0);return t&&a[t]},k=(r,o,_)=>{var d=_?m(r[o]):r[o];return Object.keys(d).reduce((a,t)=>!a||!d[a].loaded&&u(a,t)?t:a,0)},f=(r,o,_,d)=>"Unsatisfied version "+_+" from "+(_&&r[o][_].from)+" of shared singleton module "+o+" (required "+n(d)+")",b=(r,o,_,d,a)=>{var t=r[_];return"No satisfying version ("+n(d)+")"+(a?" for eager consumption":"")+" of shared module "+_+" found in shared scope "+o+`. Available versions: `+Object.keys(t).map(i=>i+" from "+t[i].from).join(", ")},g=r=>{throw new Error(r)},P=(r,o)=>g("Shared module "+o+" doesn't exist in shared scope "+r),y=r=>{typeof console!="undefined"&&console.warn&&console.warn(r)},w=r=>function(o,_,d,a,t){var i=e.I(o);return i&&i.then&&!d?i.then(r.bind(r,o,e.S[o],_,!1,a,t)):r(o,e.S[o],_,d,a,t)},h=(r,o,_)=>_?_():P(r,o),$=w((r,o,_,d,a)=>v(o,_)?p(x(o,_,d)):h(r,_,a)),U=w((r,o,_,d,a,t)=>{if(!v(o,_))return h(r,_,t);var i=c(o,_,a,d);return i?p(i):(y(b(o,r,_,a,d)),p(x(o,_,d)))}),L=w((r,o,_,d,a,t)=>{if(!v(o,_))return h(r,_,t);var i=c(o,_,a,d);if(i)return p(i);if(t)return t();g(b(o,r,_,a,d))}),G=w((r,o,_,d,a)=>{if(!v(o,_))return h(r,_,a);var t=k(o,_,d);return p(o[_][t])}),C=w((r,o,_,d,a,t)=>{if(!v(o,_))return h(r,_,t);var i=k(o,_,d);return l(a,i)||y(f(o,_,i,a)),p(o[_][i])}),H=w((r,o,_,d,a,t)=>{if(!v(o,_))return h(r,_,t);var i=k(o,_,d);return l(a,i)||g(f(o,_,i,a)),p(o[_][i])}),E={},V={28437:()=>C("default","react",!1,[0],()=>e.e("node_modules_react_index_js").then(()=>()=>e(77810))),95973:()=>C("default","prop-types",!1,[0],()=>e.e("node_modules_prop-types_index_js").then(()=>()=>e(75826))),23479:()=>C("default","react-dom",!1,[0],()=>e.e("vendors-node_modules_react-dom_index_js").then(()=>()=>e(22483))),21839:()=>C("default","@mui/icons-material",!1,[0],()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_icons-material_esm_index_js")]).then(()=>()=>e(58597))),67085:()=>C("default","@mui/material",!1,[0],()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3"),e.e("vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js"),e.e("vendors-node_modules_mui_material_index_js"),e.e("webpack_sharing_consume_default_react-dom_react-dom")]).then(()=>()=>e(64291))),37449:()=>C("default","@iobroker/adapter-react-v5",!1,[0],()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs"),e.e("vendors-node_modules_mui_material_colors_index_js-node_modules_mui_material_styles_index_js"),e.e("vendors-node_modules_iobroker_adapter-react-v5_index_js-node_modules_mui_material_styles_cssU-2e9b58"),e.e("webpack_sharing_consume_default_react-dropzone_react-dropzone"),e.e("node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23731")]).then(()=>()=>e(64620))),60556:()=>C("default","@iobroker/json-config",!1,[0],()=>Promise.all([e.e("vendors-node_modules_mui_material_styles_styled_js-node_modules_mui_system_esm_DefaultPropsPr-f385a6"),e.e("vendors-node_modules_mui_material_FilledInput_FilledInput_js"),e.e("vendors-node_modules_react-color_es_index_js-node_modules_react-icons_lib_index_mjs"),e.e("vendors-node_modules_iobroker_json-config_build_index_js"),e.e("webpack_sharing_consume_default_react-dom_react-dom"),e.e("webpack_sharing_consume_default_react-dropzone_react-dropzone"),e.e("webpack_sharing_consume_default_mui_x-date-pickers_mui_x-date-pickers-webpack_sharing_consume-9f1a2d"),e.e("_91571")]).then(()=>()=>e(51191))),53683:()=>C("default","react-dropzone",!1,[0],()=>e.e("vendors-node_modules_react-dropzone_dist_es_index_js").then(()=>()=>e(72589))),28497:()=>C("default","@mui/x-date-pickers",!1,[0],()=>Promise.all([e.e("vendors-node_modules_mui_material_Button_Button_js-node_modules_mui_material_Chip_Chip_js-nod-0905a3"),e.e("vendors-node_modules_mui_x-date-pickers_index_js")]).then(()=>()=>e(19938))),58093:()=>C("default","react-ace",!1,[0],()=>e.e("vendors-node_modules_react-ace_lib_index_js").then(()=>()=>e(76216)))},T={webpack_sharing_consume_default_react_react:[28437],"webpack_sharing_consume_default_prop-types_prop-types":[95973],"webpack_sharing_consume_default_react-dom_react-dom":[23479],"webpack_sharing_consume_default_mui_icons-material_mui_icons-material-webpack_sharing_consume-6275fc":[21839,67085],"webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5":[37449],src_ConfigCustomInstancesSelector_jsx:[60556],"webpack_sharing_consume_default_react-dropzone_react-dropzone":[53683],"webpack_sharing_consume_default_mui_x-date-pickers_mui_x-date-pickers-webpack_sharing_consume-9f1a2d":[28497,58093]},I={};e.f.consumes=(r,o)=>{e.o(T,r)&&T[r].forEach(_=>{if(e.o(E,_))return o.push(E[_]);if(!I[_]){var d=i=>{E[_]=0,e.m[_]=j=>{delete e.c[_],j.exports=i()}};I[_]=!0;var a=i=>{delete E[_],e.m[_]=j=>{throw delete e.c[_],i}};try{var t=V[_]();t.then?o.push(E[_]=t.then(d).catch(a)):d(t)}catch(i){a(i)}}})}})(),(()=>{var s={main:0};e.f.j=(l,v)=>{var p=e.o(s,l)?s[l]:void 0;if(p!==0)if(p)v.push(p[2]);else if(/^webpack_sharing_consume_default_(mui_(icons\-material_mui_icons\-material\-webpack_sharing_consume\-6275fc|x\-date\-pickers_mui_x\-date\-pickers\-webpack_sharing_consume\-9f1a2d)|react(\-d(om_react\-dom|ropzone_react\-dropzone)|_react)|iobroker_adapter\-react\-v5_iobroker_adapter\-react\-v5|prop\-types_prop\-types)$/.test(l))s[l]=0;else{var m=new Promise((f,b)=>p=s[l]=[f,b]);v.push(p[2]=m);var x=e.p+e.u(l),c=new Error,k=f=>{if(e.o(s,l)&&(p=s[l],p!==0&&(s[l]=void 0),p)){var b=f&&(f.type==="load"?"missing":f.type),g=f&&f.target&&f.target.src;c.message="Loading chunk "+l+` failed. (`+b+": "+g+")",c.name="ChunkLoadError",c.type=b,c.request=g,p[1](c)}};e.l(x,k,"chunk-"+l,l)}};var u=(l,v)=>{var p=v[0],m=v[1],x=v[2],c,k,f=0;if(p.some(g=>s[g]!==0)){for(c in m)e.o(m,c)&&(e.m[c]=m[c]);if(x)var b=x(e)}for(l&&l(v);f{_.d(M,{A:()=>H});var k=_(28437),n=_.n(k),$=_(95973),E=_.n($),d=_(67085),Q=_.n(d),A=_(21839),Y=_.n(A),f=_(60556),Z=_.n(f),b=_(37449),w=_.n(b),W=Object.defineProperty,U=Object.defineProperties,j=Object.getOwnPropertyDescriptors,O=Object.getOwnPropertySymbols,x=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,G=Reflect.get,P=(i,t,r)=>t in i?W(i,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[t]=r,L=(i,t)=>{for(var r in t||(t={}))B.call(t,r)&&P(i,r,t[r]);if(O)for(var r of O(t))V.call(t,r)&&P(i,r,t[r]);return i},K=(i,t)=>U(i,j(t)),F=(i,t,r)=>G(x(i),r,t),T=(i,t,r)=>new Promise((p,m)=>{var s=e=>{try{l(r.next(e))}catch(a){m(a)}},o=e=>{try{l(r.throw(e))}catch(a){m(a)}},l=e=>e.done?p(e.value):Promise.resolve(e.value).then(s,o);l((r=r.apply(i,t)).next())});const v={table:{minWidth:400},header:{fontSize:16,fontWeight:"bold"},td:{padding:"2px 16px"}};function S(i,t){return T(this,null,function*(){const r=yield i.getObjectViewSystem("state",`${t}.`,`${t}.\u9999`),p=[],m=Object.keys(r).filter(s=>s.endsWith(".hostname"));for(let s=0;sparseInt(r,10)).find(r=>r<0||r>255):!1:!0)}function N(i){return I(i)?i.trim().split(".").map(r=>parseInt(r,10)).join("."):i}class g extends f.ConfigGeneric{componentDidMount(){return T(this,null,function*(){F(g.prototype,this,"componentDidMount").call(this);let t=[];const r=yield this.props.socket.getObject(`system.adapter.kisshome-research.${this.props.instance}`);r!=null&&r.common.host&&(t=(yield this.props.socket.getObject(`system.host.${r.common.host}`)).common.address),this.props.socket.getAdapterInstances().then(p=>{p=p.filter(o=>{var l;return((l=o==null?void 0:o.common)==null?void 0:l.adminUI)&&(o.common.adminUI.config!=="none"||o.common.adminUI.tab)}).map(o=>({id:o._id.replace(/^system\.adapter\./,""),name:o.common.name,native:o.native})).sort((o,l)=>o.id>l.id?1:o.id{var e;let a=!1;const h={};(e=l==null?void 0:l.result)==null||e.forEach(c=>{const y=c.ip,C=m.findIndex(X=>X.ip===y);C!==-1&&(a=!0,m[C].mac=c.mac,h[c.mac]=c.vendor)});let u=!1;o.forEach(c=>{const y=m.findIndex(C=>C.ip===c.ip);y!==-1&&(c.mac!==m[y].mac&&(u=!0),h[c.mac]||(h[c.mac]=m[y].vendor,a=!0))}),a?this.setState({ips:m,vendors:h,runningRequest:!1}):this.setState({runningRequest:!1}),u&&this.onChange("devices",o)}).catch(l=>{l.toString()!=="no results"&&window.alert(`Cannot get MAC addresses: ${l}`),this.setState({runningRequest:!1})})}this.setState(s)})})}static getAttr(t,r){if(Array.isArray(r)){const p=r.shift();return typeof t[p]=="object"?g.getAttr(t[p],r):r.length?null:t[p]}return g.getAttr(t,r.split("."))}static isIp(t){if(typeof t=="string"){if(t.match(/^\d+\.\d+\.\d+\.\d+$/))return"ipv4";if(t.match(/^[\da-fA-F:]+$/))return"ipv6"}return null}componentWillUnmount(){super.componentWillUnmount(),this.validateTimeout&&clearTimeout(this.validateTimeout),this.validateTimeout=null}validateAddresses(){this.validateTimeout&&clearTimeout(this.validateTimeout),this.validateTimeout=setTimeout(()=>{this.validateTimeout=null},1e3)}collectIpAddresses(t,r){return T(this,null,function*(){let p=[];t=t||this.state.instances;for(let s=0;sl.adapter===t[s].name);if(o&&t[s].native){const l=o.attr;if(o.attr&&t[s].native[l])if(o.arrayAttr){if(Array.isArray(t[s].native[l]))for(let e=0;e{const h=g.isIp(a.ip);h&&p.push({ip:a.ip,type:h,desc:a.name||t[s].name})})}catch(e){console.error(`Cannot collect "${t[s]}": ${e}`)}if(o.clients)try{(yield z(this.props.socket,t[s]._id.replace("system.adapter.",""))).forEach(a=>{const h=g.isIp(a.ip);h&&p.push({ip:a.ip,type:h,desc:a.name||t[s].name})})}catch(e){console.error(`Cannot collect "${t[s]}": ${e}`)}}}p=p.filter(s=>!r.includes(s.ip)&&s.ip!=="0.0.0.0"&&s.ip!=="localhost"&&s.ip!=="127.0.0.1"&&s.ip!=="::1"&&s.type==="ipv4");const m=[];for(let s=0;so.ip===p[s].ip)||m.push(p[s]);return m})}renderItem(t,r,p){var m;const s=f.ConfigGeneric.getValue(this.props.data,"devices")||[],o=this.state.ips?s.filter(e=>!this.state.ips.find(a=>a.ip===e.ip)):s,l=s.every(e=>e.enabled)&&(this.state.ips?this.state.ips.every(e=>s.find(a=>a.ip===e.ip)):!0);return n().createElement(d.TableContainer,null,this.state.runningRequest?n().createElement(d.LinearProgress,null):n().createElement("div",{style:{height:2,width:"100%"}}),n().createElement(d.Table,{style:v.table,size:"small"},n().createElement(d.TableHead,null,n().createElement(d.TableRow,null,n().createElement(d.TableCell,{style:K(L({},v.header),{width:120})},n().createElement(d.Checkbox,{title:l?b.i18n.t("custom_kisshome_unselect_all"):b.i18n.t("custom_kisshome_select_all"),checked:l,indeterminate:!l&&s.length>0,disabled:this.state.runningRequest,onClick:()=>{const e=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];if(l){e.forEach(a=>a.enabled=!1);for(let a=e.length-1;a>=0;a--)this.state.ips.find(h=>h.ip===e[a].ip)&&e.splice(a,1)}else e.forEach(a=>a.enabled=!0),this.state.ips.forEach(a=>{e.find(h=>a.ip===h.ip)||e.push({ip:a.ip,mac:a.mac,desc:a.desc,enabled:!0})}),e.forEach(a=>a.enabled=!0);this.onChange("devices",e)}}),n().createElement(d.Fab,{onClick:()=>{const e=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];e.push({ip:"0.0.0.0",mac:"",desc:"",enabled:!0}),this.onChange("devices",e)},size:"small",disabled:this.state.runningRequest},n().createElement(A.Add,null))),n().createElement(d.TableCell,{style:v.header},b.i18n.t("custom_kisshome_ip")),n().createElement(d.TableCell,{style:v.header},b.i18n.t("custom_kisshome_mac")),n().createElement(d.TableCell,{style:v.header},b.i18n.t("custom_kisshome_vendor")),n().createElement(d.TableCell,{style:v.header},b.i18n.t("custom_kisshome_name")),n().createElement(d.TableCell,{style:v.header}))),n().createElement(d.TableBody,null,(m=this.state.ips)==null?void 0:m.map((e,a)=>{var h,u;return n().createElement(d.TableRow,{key:a},n().createElement(d.TableCell,{scope:"row",style:v.td},n().createElement(d.Checkbox,{checked:!!((h=s.find(c=>c.ip===e.ip))!=null&&h.enabled),disabled:this.state.runningRequest,onClick:()=>{const c=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]],y=c.findIndex(C=>C.ip===e.ip);y===-1?c.push({ip:e.ip,mac:e.mac,desc:e.desc,enabled:!0}):c.splice(y,1),this.onChange("devices",c)}})),n().createElement(d.TableCell,{style:v.td},e.ip),n().createElement(d.TableCell,{style:v.td},e.mac||""),n().createElement(d.TableCell,{style:v.td},((u=this.state.vendors)==null?void 0:u[e.mac])||""),n().createElement(d.TableCell,{style:v.td},e.desc),n().createElement(d.TableCell,{style:v.td}))}),o.map((e,a)=>{var h;return n().createElement(d.TableRow,{key:a},n().createElement(d.TableCell,{scope:"row",style:v.td},n().createElement(d.Checkbox,{checked:s.includes(e.ip),disabled:this.state.runningRequest,onClick:()=>{const u=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];u[a].enabled=!u[a].enabled,this.onChange("devices",u)}})),n().createElement(d.TableCell,{style:v.td},n().createElement(d.TextField,{fullWidth:!0,error:!I(e.ip),value:e.ip,disabled:this.state.runningRequest,onChange:u=>{const c=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];c[a].ip=u.target.value,this.onChange("devices",c),this.validateAddresses()},onBlur:()=>{if(e.ip.trim()){const u=N(e.ip);if(u!==e.ip){const c=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];c[a].ip=u,this.onChange("devices",c)}}},variant:"standard"})),n().createElement(d.TableCell,{style:v.td},n().createElement(d.TextField,{fullWidth:!0,value:e.mac,disabled:this.state.runningRequest,error:!R(e.mac),onChange:u=>{const c=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];c[a].mac=u.target.value,this.onChange("devices",c),this.validateAddresses()},onBlur:()=>{if(e.mac.trim()){const u=D(e.mac);if(u!==e.mac){const c=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];c[a].mac=u,this.onChange("devices",c)}}},variant:"standard"})),n().createElement(d.TableCell,{style:v.td},((h=this.state.vendors)==null?void 0:h[D(e.mac)])||""),n().createElement(d.TableCell,{style:v.td},n().createElement(d.TextField,{fullWidth:!0,value:e.desc,disabled:this.state.runningRequest,onChange:u=>{const c=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];c[a].desc=u.target.value,this.onChange("devices",c)},variant:"standard"})),n().createElement(d.TableCell,{style:v.td},n().createElement(d.IconButton,{disabled:this.state.runningRequest,onClick:()=>{const u=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];u.splice(a,1),this.onChange("devices",u)}},n().createElement(A.Delete,null))))}))))}}g.propTypes={socket:E().object.isRequired,themeType:E().string,themeName:E().string,style:E().object,data:E().object.isRequired,schema:E().object,onError:E().func,onChange:E().func};const H=g}}]); - -//# sourceMappingURL=src_ConfigCustomInstancesSelector_jsx.1c646203.chunk.js.map \ No newline at end of file diff --git a/admin/custom/static/js/src_ConfigCustomInstancesSelector_jsx.85d5516e.chunk.js b/admin/custom/static/js/src_ConfigCustomInstancesSelector_jsx.85d5516e.chunk.js new file mode 100644 index 0000000..973540d --- /dev/null +++ b/admin/custom/static/js/src_ConfigCustomInstancesSelector_jsx.85d5516e.chunk.js @@ -0,0 +1,3 @@ +"use strict";(self.webpackChunkiobroker_admin_component_telegram=self.webpackChunkiobroker_admin_component_telegram||[]).push([["src_ConfigCustomInstancesSelector_jsx"],{57460:(J,M,_)=>{_.d(M,{A:()=>H});var k=_(28437),n=_.n(k),$=_(95973),E=_.n($),d=_(67085),Q=_.n(d),A=_(21839),Y=_.n(A),f=_(60556),Z=_.n(f),b=_(37449),w=_.n(b),W=Object.defineProperty,U=Object.defineProperties,j=Object.getOwnPropertyDescriptors,O=Object.getOwnPropertySymbols,x=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,G=Reflect.get,P=(i,t,r)=>t in i?W(i,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[t]=r,L=(i,t)=>{for(var r in t||(t={}))B.call(t,r)&&P(i,r,t[r]);if(O)for(var r of O(t))V.call(t,r)&&P(i,r,t[r]);return i},K=(i,t)=>U(i,j(t)),F=(i,t,r)=>G(x(i),r,t),T=(i,t,r)=>new Promise((p,m)=>{var s=e=>{try{o(r.next(e))}catch(a){m(a)}},l=e=>{try{o(r.throw(e))}catch(a){m(a)}},o=e=>e.done?p(e.value):Promise.resolve(e.value).then(s,l);o((r=r.apply(i,t)).next())});const v={table:{minWidth:400},header:{fontSize:16,fontWeight:"bold"},td:{padding:"2px 16px"}};function S(i,t){return T(this,null,function*(){const r=yield i.getObjectViewSystem("state",`${t}.`,`${t}.\u9999`),p=[],m=Object.keys(r).filter(s=>s.endsWith(".hostname"));for(let s=0;sparseInt(r,10)).find(r=>r<0||r>255):!1:!0)}function N(i){return I(i)?i.trim().split(".").map(r=>parseInt(r,10)).join("."):i}class g extends f.ConfigGeneric{componentDidMount(){return T(this,null,function*(){F(g.prototype,this,"componentDidMount").call(this);let t=[];const r=yield this.props.socket.getObject(`system.adapter.kisshome-research.${this.props.instance}`);r!=null&&r.common.host&&(t=(yield this.props.socket.getObject(`system.host.${r.common.host}`)).common.address);let p=yield this.props.socket.getAdapterInstances();p=p.filter(l=>{var o;return((o=l==null?void 0:l.common)==null?void 0:o.adminUI)&&(l.common.adminUI.config!=="none"||l.common.adminUI.tab)}).map(l=>({id:l._id.replace(/^system\.adapter\./,""),name:l.common.name,native:l.native})).sort((l,o)=>l.id>o.id?1:l.id{var e;let a=!1;const h={};(e=o==null?void 0:o.result)==null||e.forEach(c=>{const y=c.ip,C=m.findIndex(X=>X.ip===y);C!==-1&&(a=!0,m[C].mac=c.mac,h[c.mac]=c.vendor)});let u=!1;l.forEach(c=>{const y=m.findIndex(C=>C.ip===c.ip);y!==-1&&(c.mac!==m[y].mac&&(u=!0),h[c.mac]||(h[c.mac]=m[y].vendor,a=!0))}),a?this.setState({ips:m,vendors:h,runningRequest:!1}):this.setState({runningRequest:!1}),u&&this.onChange("devices",l)}).catch(o=>{o.toString()!=="no results"&&window.alert(`Cannot get MAC addresses: ${o}`),this.setState({runningRequest:!1})})}this.setState(s)})}static getAttr(t,r){if(Array.isArray(r)){const p=r.shift();return typeof t[p]=="object"?g.getAttr(t[p],r):r.length?null:t[p]}return g.getAttr(t,r.split("."))}static isIp(t){if(typeof t=="string"){if(t.match(/^\d+\.\d+\.\d+\.\d+$/))return"ipv4";if(t.match(/^[\da-fA-F:]+$/))return"ipv6"}return null}componentWillUnmount(){super.componentWillUnmount(),this.validateTimeout&&clearTimeout(this.validateTimeout),this.validateTimeout=null}validateAddresses(){this.validateTimeout&&clearTimeout(this.validateTimeout),this.validateTimeout=setTimeout(()=>{this.validateTimeout=null},1e3)}collectIpAddresses(t,r){return T(this,null,function*(){let p=[];t=t||this.state.instances;for(let s=0;so.adapter===t[s].name);if(l&&t[s].native){const o=l.attr;if(l.attr&&t[s].native[o])if(l.arrayAttr){if(Array.isArray(t[s].native[o]))for(let e=0;e{const h=g.isIp(a.ip);h&&p.push({ip:a.ip,type:h,desc:a.name||t[s].name})})}catch(e){console.error(`Cannot collect "${t[s]}": ${e}`)}if(l.clients)try{(yield z(this.props.socket,t[s]._id.replace("system.adapter.",""))).forEach(a=>{const h=g.isIp(a.ip);h&&p.push({ip:a.ip,type:h,desc:a.name||t[s].name})})}catch(e){console.error(`Cannot collect "${t[s]}": ${e}`)}}}p=p.filter(s=>!r.includes(s.ip)&&s.ip!=="0.0.0.0"&&s.ip!=="localhost"&&s.ip!=="127.0.0.1"&&s.ip!=="::1"&&s.type==="ipv4");const m=[];for(let s=0;sl.ip===p[s].ip)||m.push(p[s]);return m})}renderItem(t,r,p){var m;const s=f.ConfigGeneric.getValue(this.props.data,"devices")||[],l=this.state.ips?s.filter(e=>!this.state.ips.find(a=>a.ip===e.ip)):s,o=s.every(e=>e.enabled)&&(this.state.ips?this.state.ips.every(e=>s.find(a=>a.ip===e.ip)):!0);return n().createElement(d.TableContainer,null,this.state.runningRequest?n().createElement(d.LinearProgress,null):n().createElement("div",{style:{height:2,width:"100%"}}),n().createElement(d.Table,{style:v.table,size:"small"},n().createElement(d.TableHead,null,n().createElement(d.TableRow,null,n().createElement(d.TableCell,{style:K(L({},v.header),{width:120})},n().createElement(d.Checkbox,{title:o?b.i18n.t("custom_kisshome_unselect_all"):b.i18n.t("custom_kisshome_select_all"),checked:o,indeterminate:!o&&s.length>0,disabled:this.state.runningRequest,onClick:()=>{const e=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];if(o){e.forEach(a=>a.enabled=!1);for(let a=e.length-1;a>=0;a--)this.state.ips.find(h=>h.ip===e[a].ip)&&e.splice(a,1)}else e.forEach(a=>a.enabled=!0),this.state.ips.forEach(a=>{e.find(h=>a.ip===h.ip)||e.push({ip:a.ip,mac:a.mac,desc:a.desc,enabled:!0})}),e.forEach(a=>a.enabled=!0);this.onChange("devices",e)}}),n().createElement(d.Fab,{onClick:()=>{const e=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];e.push({ip:"0.0.0.0",mac:"",desc:"",enabled:!0}),this.onChange("devices",e)},size:"small",disabled:this.state.runningRequest},n().createElement(A.Add,null))),n().createElement(d.TableCell,{style:v.header},b.i18n.t("custom_kisshome_ip")),n().createElement(d.TableCell,{style:v.header},b.i18n.t("custom_kisshome_mac")),n().createElement(d.TableCell,{style:v.header},b.i18n.t("custom_kisshome_vendor")),n().createElement(d.TableCell,{style:v.header},b.i18n.t("custom_kisshome_name")),n().createElement(d.TableCell,{style:v.header}))),n().createElement(d.TableBody,null,(m=this.state.ips)==null?void 0:m.map((e,a)=>{var h,u;return n().createElement(d.TableRow,{key:a},n().createElement(d.TableCell,{scope:"row",style:v.td},n().createElement(d.Checkbox,{checked:!!((h=s.find(c=>c.ip===e.ip))!=null&&h.enabled),disabled:this.state.runningRequest,onClick:()=>{const c=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]],y=c.findIndex(C=>C.ip===e.ip);y===-1?c.push({ip:e.ip,mac:e.mac,desc:e.desc,enabled:!0}):c.splice(y,1),this.onChange("devices",c)}})),n().createElement(d.TableCell,{style:v.td},e.ip),n().createElement(d.TableCell,{style:v.td},e.mac||""),n().createElement(d.TableCell,{style:v.td},((u=this.state.vendors)==null?void 0:u[e.mac])||""),n().createElement(d.TableCell,{style:v.td},e.desc),n().createElement(d.TableCell,{style:v.td}))}),l.map((e,a)=>{var h;return n().createElement(d.TableRow,{key:a},n().createElement(d.TableCell,{scope:"row",style:v.td},n().createElement(d.Checkbox,{checked:s.includes(e.ip),disabled:this.state.runningRequest,onClick:()=>{const u=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];u[a].enabled=!u[a].enabled,this.onChange("devices",u)}})),n().createElement(d.TableCell,{style:v.td},n().createElement(d.TextField,{fullWidth:!0,error:!I(e.ip),value:e.ip,disabled:this.state.runningRequest,onChange:u=>{const c=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];c[a].ip=u.target.value,this.onChange("devices",c),this.validateAddresses()},onBlur:()=>{if(e.ip.trim()){const u=N(e.ip);if(u!==e.ip){const c=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];c[a].ip=u,this.onChange("devices",c)}}},variant:"standard"})),n().createElement(d.TableCell,{style:v.td},n().createElement(d.TextField,{fullWidth:!0,value:e.mac,disabled:this.state.runningRequest,error:!R(e.mac),onChange:u=>{const c=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];c[a].mac=u.target.value,this.onChange("devices",c),this.validateAddresses()},onBlur:()=>{if(e.mac.trim()){const u=D(e.mac);if(u!==e.mac){const c=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];c[a].mac=u,this.onChange("devices",c)}}},variant:"standard"})),n().createElement(d.TableCell,{style:v.td},((h=this.state.vendors)==null?void 0:h[D(e.mac)])||""),n().createElement(d.TableCell,{style:v.td},n().createElement(d.TextField,{fullWidth:!0,value:e.desc,disabled:this.state.runningRequest,onChange:u=>{const c=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];c[a].desc=u.target.value,this.onChange("devices",c)},variant:"standard"})),n().createElement(d.TableCell,{style:v.td},n().createElement(d.IconButton,{disabled:this.state.runningRequest,onClick:()=>{const u=[...f.ConfigGeneric.getValue(this.props.data,"devices")||[]];u.splice(a,1),this.onChange("devices",u)}},n().createElement(A.Delete,null))))}))))}}g.propTypes={socket:E().object.isRequired,themeType:E().string,themeName:E().string,style:E().object,data:E().object.isRequired,schema:E().object,onError:E().func,onChange:E().func};const H=g}}]); + +//# sourceMappingURL=src_ConfigCustomInstancesSelector_jsx.85d5516e.chunk.js.map \ No newline at end of file diff --git a/src-admin/src/ConfigCustomInstancesSelector.jsx b/src-admin/src/ConfigCustomInstancesSelector.jsx index 988bbfd..6f397b8 100644 --- a/src-admin/src/ConfigCustomInstancesSelector.jsx +++ b/src-admin/src/ConfigCustomInstancesSelector.jsx @@ -156,78 +156,77 @@ class ConfigCustomInstancesSelector extends ConfigGeneric { address = host.common.address; } - this.props.socket.getAdapterInstances() - .then(instances => { - instances = instances - .filter(instance => - instance?.common?.adminUI && (instance.common.adminUI.config !== 'none' || instance.common.adminUI.tab)) - .map(instance => ({ - id: instance._id.replace(/^system\.adapter\./, ''), - name: instance.common.name, - native: instance.native, - })) - .sort((a, b) => a.id > b.id ? 1 : (a.id < b.id ? -1 : 0)); - - const ips = this.collectIpAddresses(instances, address); - - const newState = { - instances, - ips, - }; - // get vendor and MAC-Address information - if (this.props.alive) { - const devices = [...(ConfigGeneric.getValue(this.props.data, 'devices') || [])]; - newState.runningRequest = true; - - this.props.socket.sendTo(`kisshome-research.${this.props.instance}`, 'getMacForIps', devices) - .then(result => { - // result: { result: { mac: string; vendor?: string, ip: string }[] } - let changedState = false; - const vendors = {}; - result?.result?.forEach(item => { - const ip = item.ip; - const pos = ips.findIndex(i => i.ip === ip); - if (pos !== -1) { - changedState = true; - ips[pos].mac = item.mac; - vendors[item.mac] = item.vendor; - } - }); - - let changed = false; - // detect changed MAC addresses in saved information - devices.forEach(item => { - const pos = ips.findIndex(i => i.ip === item.ip); - if (pos !== -1) { - if (item.mac !== ips[pos].mac) { - changed = true; - } - if (!vendors[item.mac]) { - vendors[item.mac] = ips[pos].vendor; - changedState = true; - } - } - }); - - if (changedState) { - this.setState({ ips, vendors, runningRequest: false }); - } else { - this.setState({ runningRequest: false }); - } - if (changed) { - this.onChange('devices', devices); + let instances = await this.props.socket.getAdapterInstances(); + instances = instances + .filter(instance => + instance?.common?.adminUI && (instance.common.adminUI.config !== 'none' || instance.common.adminUI.tab)) + .map(instance => ({ + id: instance._id.replace(/^system\.adapter\./, ''), + name: instance.common.name, + native: instance.native, + })) + .sort((a, b) => a.id > b.id ? 1 : (a.id < b.id ? -1 : 0)); + + const ips = await this.collectIpAddresses(instances, address); + + const newState = { + instances, + ips, + }; + + // get vendor and MAC-Address information + if (this.props.alive) { + const devices = [...(ConfigGeneric.getValue(this.props.data, 'devices') || [])]; + newState.runningRequest = true; + + this.props.socket.sendTo(`kisshome-research.${this.props.instance}`, 'getMacForIps', devices) + .then(result => { + // result: { result: { mac: string; vendor?: string, ip: string }[] } + let changedState = false; + const vendors = {}; + result?.result?.forEach(item => { + const ip = item.ip; + const pos = ips.findIndex(i => i.ip === ip); + if (pos !== -1) { + changedState = true; + ips[pos].mac = item.mac; + vendors[item.mac] = item.vendor; + } + }); + + let changed = false; + // detect changed MAC addresses in saved information + devices.forEach(item => { + const pos = ips.findIndex(i => i.ip === item.ip); + if (pos !== -1) { + if (item.mac !== ips[pos].mac) { + changed = true; } - }) - .catch(e => { - if (e.toString() !== 'no results') { - window.alert(`Cannot get MAC addresses: ${e}`); + if (!vendors[item.mac]) { + vendors[item.mac] = ips[pos].vendor; + changedState = true; } - this.setState({ runningRequest: false }); - }); - } + } + }); - this.setState(newState); - }); + if (changedState) { + this.setState({ ips, vendors, runningRequest: false }); + } else { + this.setState({ runningRequest: false }); + } + if (changed) { + this.onChange('devices', devices); + } + }) + .catch(e => { + if (e.toString() !== 'no results') { + window.alert(`Cannot get MAC addresses: ${e}`); + } + this.setState({ runningRequest: false }); + }); + } + + this.setState(newState); } static getAttr(obj, attr) {