diff --git a/CHANGELOG_OLD.md b/CHANGELOG_OLD.md index ede0f4d4c..26f3d10b8 100644 --- a/CHANGELOG_OLD.md +++ b/CHANGELOG_OLD.md @@ -1,4 +1,8 @@ The newest change log is in README.md +## 7.0.3 (2023-03-16) +* (bluefox) made the editor visible in full height +* (paul53) small fixes on blockly and translations are made + ## 7.0.2 (2023-03-13) * (bluefox) Breaking change: all usages of `jsonata` must be rewritten to use promises. * (bluefox) Breaking change: all blockly scripts with `jsonata` blocks must be changed (just move some blocks) and saved anew. diff --git a/README.md b/README.md index cc80fbec9..9966b2b62 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Since v5.5.0 of the JavaScript adapter the following locations (relative to the -### **WORK IN PROGRESS** +### 7.1.1 (2023-06-20) * (bluefox) corrected the script export ### 7.1.0 (2023-06-13) @@ -69,10 +69,6 @@ Since v5.5.0 of the JavaScript adapter the following locations (relative to the * (bluefox) packages updated * (bluefox) Files are used for export of scripts -### 7.0.3 (2023-03-16) -* (bluefox) made the editor visible in full height -* (paul53) small fixes on blockly and translations are made - ## License The MIT License (MIT) diff --git a/admin/asset-manifest.json b/admin/asset-manifest.json index 4425a58fe..07c05b8cd 100644 --- a/admin/asset-manifest.json +++ b/admin/asset-manifest.json @@ -1,8 +1,8 @@ { "files": { - "main.js": "/static/js/main.9d59d84e.js", + "main.js": "/static/js/main.eff26bcc.js", "static/css/98.cacc94fa.chunk.css": "/static/css/98.cacc94fa.chunk.css", - "static/js/98.faeee5d4.chunk.js": "/static/js/98.faeee5d4.chunk.js", + "static/js/98.1893d080.chunk.js": "/static/js/98.1893d080.chunk.js", "static/js/90.30165444.chunk.js": "/static/js/90.30165444.chunk.js", "static/js/305.6132eb16.chunk.js": "/static/js/305.6132eb16.chunk.js", "static/js/281.6af18b40.chunk.js": "/static/js/281.6af18b40.chunk.js", @@ -143,9 +143,9 @@ "static/media/Garage Doors.svg": "/static/media/Garage Doors.0c2a1cfca7ad1ea59625.svg", "static/media/Outdoor Blinds.svg": "/static/media/Outdoor Blinds.37b85a9c060a4af48da9.svg", "static/media/Upstairs.svg": "/static/media/Upstairs.441813e54e0daca0882d.svg", - "main.9d59d84e.js.map": "/static/js/main.9d59d84e.js.map", + "main.eff26bcc.js.map": "/static/js/main.eff26bcc.js.map", "98.cacc94fa.chunk.css.map": "/static/css/98.cacc94fa.chunk.css.map", - "98.faeee5d4.chunk.js.map": "/static/js/98.faeee5d4.chunk.js.map", + "98.1893d080.chunk.js.map": "/static/js/98.1893d080.chunk.js.map", "90.30165444.chunk.js.map": "/static/js/90.30165444.chunk.js.map", "305.6132eb16.chunk.js.map": "/static/js/305.6132eb16.chunk.js.map", "281.6af18b40.chunk.js.map": "/static/js/281.6af18b40.chunk.js.map", @@ -166,6 +166,6 @@ "277.ef8a89ff.chunk.js.map": "/static/js/277.ef8a89ff.chunk.js.map" }, "entrypoints": [ - "static/js/main.9d59d84e.js" + "static/js/main.eff26bcc.js" ] } \ No newline at end of file diff --git a/admin/static/js/98.faeee5d4.chunk.js b/admin/static/js/98.1893d080.chunk.js similarity index 99% rename from admin/static/js/98.faeee5d4.chunk.js rename to admin/static/js/98.1893d080.chunk.js index 25648445f..b5a743ad0 100644 --- a/admin/static/js/98.faeee5d4.chunk.js +++ b/admin/static/js/98.1893d080.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunkjs=self.webpackChunkjs||[]).push([[98],{52860:function(e,t,n){n.r(t);var a=n(4819),s=n.n(a),o=n(1250),i=n(11640),r=n(10937),l=n(58503),c=n(93433),u=n(15671),d=n(43144),p=n(60136),h=n(27277),g=n(55377),m=n(52721),f=n.n(m),v=(n(64630),n(43488)),y=n(10154),b=n(20889),k=n(75606),S=n(16856),x=n(97326),w=n(29439),C=n(88654),I=n(94721),j=n(43236),T=n(52411),A=n(57064),D=n(47055),N=n(49900),E=n(90977),O=n(52744),M=n(82626),z=n(4110),Z=n(98422),R=n(1067),F=n(60090),B=n(46401),P=n(56355),_=n(80007),L=n(51637),U=n(82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RIOLkoFbjRQpg0C7cIHXKwvRNCVsST2HfZ11pI4rvciUWIYVYZm7tAYyaLjEeRFGnJGgEfaPd3+OFkIIYX9QHgP2TOLzmSH794AAAAAElFTkSuQmCC",H=n(5849),q=n(65661),Y=n(4899),K=n(77386),Q=n(5574),X=n(93006),$=n(45363),ee=n(84701),te=n(62861),ne=n(86711),ae=n(872),se=n(80184),oe=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).handleCancel=function(){a.props.onClose()},a.handleOk=function(){a.props.onRename(a.oldId,a.state.id,a.state.name,a.state.instance),a.props.onClose()},a.handleChange=function(e){a.setState({name:e,id:a.getId(e)})},a.state={name:e.name,id:e.id,instance:e.instance||0},a.isShowInstance=!e.folder&&e.instances&&(e.instance||e.instances[0]||e.instances.length>1),a.prefix=a.getPrefix(e.id),a.oldId=e.id,a}return(0,d.Z)(n,[{key:"getPrefix",value:function(e){var t=(e||"").split(".");return t.pop(),t.join(".")}},{key:"getId",value:function(e){return e=(e||"").replace(/[\\/\][*,;'"`<>?\s]/g,"_"),this.prefix+"."+e}},{key:"componentWillReceiveProps",value:function(e){e.name!==this.props.name&&this.setState({name:e.name}),e.id!==this.props.id&&(this.prefix=this.getPrefix(e.id),this.setState({id:e.id}))}},{key:"render",value:function(){var e=this;return(0,se.jsxs)(Q.Z,{onClose:function(e,t){return!1},maxWidth:"md",fullWidth:!0,open:!0,"aria-labelledby":"confirmation-dialog-title",children:[(0,se.jsx)(q.Z,{id:"confirmation-dialog-title",children:k.I18n.t("Rename")}),(0,se.jsx)(Y.Z,{children:(0,se.jsxs)("form",{noValidate:!0,autoComplete:"off",children:[(0,se.jsx)(X.Z,{variant:"standard",style:{width:"100%"},id:"standard-name",autoFocus:!0,label:k.I18n.t("Name"),value:this.state.name,onKeyPress:function(t){"Enter"===t.key&&(t.preventDefault(),setTimeout((function(){return e.handleOk()}),200))},onChange:function(t){return e.handleChange(t.target.value)},margin:"normal"}),(0,se.jsx)(X.Z,{variant:"standard",id:"standard-name-id",style:{width:"100%"},label:k.I18n.t("ID"),value:this.state.id,disabled:!0,margin:"normal"}),this.isShowInstance&&(0,se.jsxs)($.Z,{variant:"standard",children:[(0,se.jsx)(te.Z,{htmlFor:"instance",children:k.I18n.t("Instance")}),(0,se.jsx)(ee.Z,{variant:"standard",value:this.state.instance,onChange:function(t){return e.setState({instance:parseInt(t.target.value,10)})},inputProps:{name:"instance",id:"instance"},children:this.props.instances.map((function(e){return(0,se.jsx)(M.Z,{value:e,children:e||"0"},e)}))})]})]})}),(0,se.jsxs)(K.Z,{children:[(0,se.jsx)(H.Z,{variant:"contained",onClick:this.handleOk,color:"primary",startIcon:(0,se.jsx)(ae.default,{}),children:k.I18n.t("Ok")}),(0,se.jsx)(H.Z,{color:"grey",variant:"contained",onClick:this.handleCancel,startIcon:(0,se.jsx)(ne.default,{}),children:k.I18n.t("Cancel")})]})]})}}]),n}(s().Component),ie=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).handleCancel=function(){a.props.onClose(null)},a.handleOk=function(){a.props.onDelete(a.state.id),a.props.onClose(a.props.value)},a.state={name:e.name,id:e.id},a}return(0,d.Z)(n,[{key:"componentWillReceiveProps",value:function(e){e.name!==this.props.name&&this.setState({name:e.name}),e.id!==this.props.id&&this.setState({id:e.id})}},{key:"render",value:function(){return(0,se.jsxs)(Q.Z,{onClose:function(e,t){return!1},maxWidth:"md",open:!0,"aria-labelledby":"confirmation-dialog-title",children:[(0,se.jsx)(q.Z,{id:"confirmation-dialog-title",children:k.I18n.t("Are you sure?")}),(0,se.jsxs)(Y.Z,{children:[(0,se.jsx)(S.ZkW,{}),(0,se.jsx)("span",{style:{fontSize:14,fontWeight:"bold"},children:k.I18n.t("Delete %s",this.state.name)})]}),(0,se.jsxs)(K.Z,{children:[(0,se.jsx)(H.Z,{variant:"contained",onClick:this.handleOk,color:"primary",startIcon:(0,se.jsx)(ae.default,{}),children:k.I18n.t("Ok")}),(0,se.jsx)(H.Z,{color:"grey",variant:"contained",onClick:this.handleCancel,startIcon:(0,se.jsx)(ne.default,{}),children:k.I18n.t("Cancel")})]})]})}}]),n}(s().Component),re=(0,g.Z)((function(e){return{}}))(ie),le=n(88588),ce=n(81374),ue=n(77234),de=n(22492),pe=n(1867),he=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(){var e;(0,u.Z)(this,n);for(var a=arguments.length,s=new Array(a),o=0;o1),a}return(0,d.Z)(n,[{key:"getId",value:function(e){return e=(e=e||this.state.name||"").replace(/[\\/\][.*,;'"`<>?\s]/g,"_").trim().replace(/\.$/,"_"),(this.state?this.state.parent:this.props.parent)+"."+e}},{key:"componentWillReceiveProps",value:function(e){e.name!==this.props.name&&this.setState({name:e.name})}},{key:"render",value:function(){var e=this;return(0,se.jsxs)(Q.Z,{onClose:function(e,t){return!1},maxWidth:"md",fullWidth:!0,open:!0,"aria-labelledby":"confirmation-dialog-title",children:[(0,se.jsx)(q.Z,{id:"confirmation-dialog-title",children:this.props.title||k.I18n.t("Create new")}),(0,se.jsx)(Y.Z,{children:(0,se.jsxs)("form",{noValidate:!0,autoComplete:"off",children:[(0,se.jsx)(X.Z,{variant:"standard",style:{width:"100%"},id:"standard-name",autoFocus:!0,error:!!this.state.error,label:k.I18n.t("Name"),value:this.state.name,helperText:this.state.error,onKeyPress:function(t){"Enter"===t.key&&(t.preventDefault(),setTimeout((function(){return e.handleOk()}),200))},onChange:function(t){return e.handleChange(t.target.value)},margin:"normal"}),(0,se.jsxs)($.Z,{variant:"standard",style:{minWidth:100},children:[(0,se.jsx)(te.Z,{htmlFor:"parent",children:k.I18n.t("Folder")}),(0,se.jsx)(ee.Z,{variant:"standard",style:{width:"100%"},value:this.state.parent,onChange:function(t){return e.setState({parent:t.target.value})},inputProps:{name:"parent",id:"parent"},children:this.props.parents.map((function(t){var n=t.id.split(".");n.splice(0,2);var a=[],s="script.js";return n.forEach((function(t,n){s+="."+t;var o=e.props.parents.find((function(e){return e.id===s}));o?a.push(o.name):a.push(t)})),a.length||a.push(t.name),(0,se.jsx)(M.Z,{value:t.id,children:a.join(" / ")},t.id)}))})]}),(0,se.jsx)(X.Z,{variant:"standard",id:"standard-name-id",style:{width:"100%"},label:k.I18n.t("ID"),value:this.getId(),disabled:!0,margin:"normal"}),this.isShowInstance&&(0,se.jsxs)($.Z,{variant:"standard",children:[(0,se.jsx)(te.Z,{htmlFor:"instance",children:k.I18n.t("Instance")}),(0,se.jsx)(ee.Z,{variant:"standard",value:this.state.instance,onChange:function(t){return e.setState({instance:parseInt(t.target.value,10)})},inputProps:{name:"instance",id:"instance"},children:this.props.instances.map((function(e){return(0,se.jsx)(M.Z,{value:e,children:e||"0"},"instance"+e)}))})]})]})}),(0,se.jsxs)(K.Z,{children:[(0,se.jsx)(H.Z,{variant:"contained",onClick:this.handleOk,disabled:!!this.state.error,color:"primary",startIcon:(0,se.jsx)(ae.default,{}),children:k.I18n.t("Ok")}),(0,se.jsx)(H.Z,{color:"grey",variant:"contained",onClick:this.handleCancel,startIcon:(0,se.jsx)(ne.default,{}),children:k.I18n.t("Cancel")})]})]})}}]),n}(s().Component),fe=(0,g.Z)((function(e){return{}}))(me),ve=n(31701),ye=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).handleOk=function(){a.props.onClose&&a.props.onClose()},console.log("Error created"),a}return(0,d.Z)(n,[{key:"render",value:function(){var e=this;return(0,se.jsxs)(Q.Z,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:function(){return e.handleOk()},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,se.jsx)(q.Z,{className:this.props.classes.titleBackground,classes:{root:this.props.classes.titleColor},id:"alert-dialog-title",children:this.props.title||k.I18n.t("Error")}),(0,se.jsx)(Y.Z,{children:(0,se.jsx)(ve.Z,{id:"alert-dialog-description",children:this.props.text||k.I18n.t("Unknown error!")})}),(0,se.jsx)(K.Z,{children:(0,se.jsx)(H.Z,{variant:"contained",onClick:function(){return e.handleOk()},color:"primary",autoFocus:!0,startIcon:(0,se.jsx)(ae.default,{}),children:k.I18n.t("Ok")})})]})}}]),n}(s().Component),be=(0,g.Z)((function(e){return{titleBackground:{background:e.palette.error.main},titleColor:{color:e.palette.error.contrastText,"&>h2":{color:e.palette.error.contrastText}}}}))(ye),ke=n(81153),Se=n(97808),xe=n(29823),we=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).handleOk=function(){if(a.state.instances.find((function(e){return e.id===a.state.adapterToDebug})).enabled)return a.props.socket.getObject("system.adapter."+a.state.adapterToDebug).then((function(e){e.common.enabled=!1,a.props.socket.setObject(e._id,e).then((function(){return a.props.onDebug(a.state.jsInstance,a.state.adapterToDebug)}))}));a.props.onDebug(a.state.jsInstance,a.state.adapterToDebug)},a.state={instances:[],filter:window.localStorage.getItem("javascript.debug.filter")||"",showAskForStop:!1,jsInstance:window.localStorage.getItem("javascript.debug.instance")||"",jsInstanceHost:"",adapterToDebug:window.localStorage.getItem("javascript.debug.adapter")||""},a}return(0,d.Z)(n,[{key:"componentDidMount",value:function(){var e=this;this.props.socket.getAdapterInstances().then((function(t){(t=t.filter((function(e){var t;return e&&!(null!==(t=e.common)&&void 0!==t&&t.onlyWWW)})).map((function(e){var t,n,a,s=e._id.replace(/^system\.adapter\./,""),o=s.split("."),i=(0,w.Z)(o,1)[0];return{id:s,enabled:null===(t=e.common)||void 0===t?void 0:t.enabled,host:null===(n=e.common)||void 0===n?void 0:n.host,icon:null!==(a=e.common)&&void 0!==a&&a.icon?"../../adapter/".concat(i,"/").concat(e.common.icon):""}}))).sort((function(e,t){return e.id>t.id?1:e.id1?i.join("."):null,instance:o.common.engine?parseInt(o.common.engine.split(".").pop(),10)||0:null})}do{t=!1,n.forEach((function(e){if(e.parent&&!n.find((function(t){return t.id===e.parent}))){var a=e.parent.split(".");a.pop(),n.push({id:e.parent,title:e.parent.split(".").pop(),depth:a.length-1,type:"folder",parent:a.length>1?a.join("."):null}),t=!0}}))}while(t);return n.sort((function(e,t){var n=e.id.toLowerCase(),a=t.id.toLowerCase();return"folder"===e.type&&"folder"!==t.type?-1:"folder"===t.type&&"folder"!==e.type||n>a?1:nEe?(0,se.jsx)(E.Z,{className:k.Utils.clsx(this.props.debugMode&&this.props.classes.iconButtonsDisabled),title:k.I18n.t("Delete script"),disabled:e.id===Ne||e.id===De||this.props.debugMode,onClick:function(t){return n.onDelete(e,t)},size:"medium",children:(0,se.jsx)(S.ZkW,{})},"delete"):null,(0,se.jsx)(E.Z,{className:k.Utils.clsx(this.props.debugMode&&this.props.classes.iconButtonsDisabled),disabled:this.props.debugMode,title:k.I18n.t("Edit script or just double click"),onClick:function(t){return n.onEdit(e,t)},size:"medium",children:(0,se.jsx)(S.jzb,{})},"openInEdit")]}return this.state.width>Ee?e.id===Ae||e.id===De||e.id===Ne||t&&t.length?null:(0,se.jsx)(E.Z,{className:k.Utils.clsx(this.props.debugMode&&this.props.classes.iconButtonsDisabled),title:k.I18n.t("Delete folder"),disabled:e.id===Ne||e.id===De||this.props.debugMode,onClick:function(t){return n.onDelete(e,t)},size:"medium",children:(0,se.jsx)(S.ZkW,{})},"delete"):void 0}},{key:"onDelete",value:function(e,t){var n=this;return t&&t.stopPropagation(),new Promise((function(t){"object"!==typeof e?n.setState({deleting:e}):n.setState({deleting:e.id})}))}},{key:"onEdit",value:function(e,t){this.onClick(e,t),this.props.onEdit&&this.props.onEdit(e.id)}},{key:"getTextStyle",value:function(e){return this.state.reorder||"folder"===e.type?{whiteSpace:"nowrap",padding:"0 16px 0 0"}:{width:"calc(100% - ".concat(this.state.width>Ee?185:137,"px)"),overflow:"hidden",whiteSpace:"nowrap",flex:"none",padding:"0 16px 0 0"}}},{key:"onClick",value:function(e,t){if(t&&t.stopPropagation(),!this.state.reorder&&e){var n=this.ensureSelectedIsVisible(e),a={selected:e.id};n&&(a.expanded=n),this.setState(a),window.localStorage&&window.localStorage.setItem("SideMenu.selected",e.id)}}},{key:"onDblClick",value:function(e,t){t&&t.stopPropagation(),this.state.reorder||("folder"===e.type?this.onToggle(e.id):this.onEdit(e))}},{key:"isFilteredOut",value:function(e){return!(!e.filtered||e.filteredPartly)||(!(!this.state.typeFilter||"folder"===e.type||e.type===this.state.typeFilter)||(!(!this.state.statusFilter||"folder"===e.type||!("running"===this.state.statusFilter&&!e.enabled||"paused"===this.state.statusFilter&&e.enabled)&&("problems"!==this.state.statusFilter||e.enabled&&-1!==this.state.problems.indexOf(e.id)))||e.id===Ne&&!this.state.expertMode))}},{key:"renderListItem",value:function(e,t,n){var a=this;if(e.id===Ae&&!this.state.reorder)return null;var s=16*(this.state.reorder?e.depth:e.depth-1),o=e.title;if(this.state.searchText){var i=o.toLowerCase().indexOf(this.state.searchText.toLowerCase());-1!==i&&(o=[(0,se.jsx)("span",{children:o.substring(0,i)},"first"),(0,se.jsx)("span",{style:{color:"orange"},children:o.substring(i,i+this.state.searchText.length)},"second"),(0,se.jsx)("span",{children:o.substring(i+this.state.searchText.length)},"third")])}this.state.isAllZeroInstances||"folder"===e.type||(o=[(0,se.jsxs)("span",{title:k.I18n.t("Instance"),className:this.props.classes.instances,children:["[",e.instance,"] "]},"instance"),(0,se.jsx)("span",{children:o},"title")]);var r=this.state.reorder&&!this.props.debugMode,l=Object.assign({marginLeft:s,cursor:"folder"===e.type&&r?"default":"inherit",width:"calc(100% - ".concat(s,"px)")},e.id!==this.state.selected||r?{}:Oe);r||(l.opacity=e.filteredPartly?.5:1),e.id===Ne&&e.id!==this.state.selected&&(l.color="#00a200");var c=e.id===Ae;!c&&t&&(c=this.state.expanded.includes(e.id));var u,d={};e.id===Ne?d.color="#356956":e.id===De&&(d.color="#4899e1"),u="folder"===e.type?k.Utils.clsx(this.props.classes.folderIcon,r?this.props.classes.folderIconReorder:this.props.classes.folderIconNoReorder):k.Utils.clsx(this.props.classes.scriptIcon,r?this.props.classes.scriptIconReorder:this.props.classes.scriptIconNoReorder);var p=null;return(n&&n.length||t&&t.length)&&(p=(0,se.jsx)("span",{className:this.props.classes.childrenCount,children:n&&n.length!==t.length?"".concat(n.length,"(").concat(t.length,")"):t.length})),(0,se.jsxs)(T.ZP,{style:l,className:k.Utils.clsx("folder"===e.type?this.props.classes.folder:this.props.classes.script,r&&"folder"===e.type&&"folder-reorder",r&&"folder"!==e.type&&"script-reorder",r&&this.props.classes.reorder,r&&"folder"!==e.type&&this.props.classes.scriptReorder,r&&"folder"===e.type&&this.props.classes.folderReorder),onClick:function(t){return a.onClick(e,t)},onDoubleClick:function(t){return a.onDblClick(e,t)},children:[(0,se.jsx)(A.Z,{classes:{root:this.props.classes.listItemIcon},children:"folder"===e.type?r||c?(0,se.jsx)(P.FaFolderOpen,{className:u,style:d,onClick:function(t){return!r&&a.onToggle(e.id,t)}}):(0,se.jsx)(P.FaFolder,{className:u,style:d,onClick:function(t){return!r&&a.onToggle(e.id,t)}}):(0,se.jsx)("img",{className:u,alt:e.type,src:Me[e.type]||Me.def})}),(0,se.jsx)(N.Z,{classes:{primary:e.id!==this.state.selected||r?void 0:this.props.classes.selected},style:this.getTextStyle(e),primary:(0,se.jsxs)("span",{children:[o,p]})}),(0,se.jsx)(D.Z,{children:this.renderItemButtonsOnEnd(e,t)})]},e.id)}},{key:"onDragFinish",value:function(e,t){var n="".concat(t,".").concat(e.split(".").pop());n!==e&&(this.state.listItems.find((function(e){return e.id===n}))&&(n+="_".concat(k.I18n.t("copy"))),this.props.onRename&&this.props.onRename(e,n))}},{key:"renderOneItem",value:function(e,t){var n=this,a=(this.state.statusFilter||this.state.typeFilter)&&e.filter((function(e){return e.parent===t.id&&!n.isFilteredOut(e)})),s=e.filter((function(e){return e.parent===t.id}));if(!this.isFilteredOut(t)&&("folder"!==t.type||!this.state.statusFilter&&!this.state.typeFilter||a.length)){var o,i=this.state.reorder&&!this.props.debugMode,r=this.renderListItem(t,s,a),l=[];return s&&(i||this.state.expanded.includes(t.id)||t.id===Ae)&&(o=s.map((function(t){return n.renderOneItem(e,t)}))),i?"folder"===t.type?l.push((0,se.jsxs)(Re,{onDrop:function(e){return n.onDragFinish(e.name,t.id)},children:[(0,se.jsx)(Fe,{name:t.id,children:r},"draggable_".concat(t.id)),o||null]},"droppable_".concat(t.id))):l.push((0,se.jsxs)(Fe,{name:t.id,children:[r,o||null]},"draggable_".concat(t.id))):(l.push(r),o&&o.forEach((function(e){return l.push(e)}))),l}}},{key:"renderAllItems",value:function(e){var t=this,n=e.filter((function(e){return!e.parent})).map((function(n){return t.renderOneItem(e,n)}));return(0,se.jsx)(j.Z,{dense:!0,disablePadding:!0,className:this.props.classes.mainList,children:n})}},{key:"onAddNew",value:function(e){var t=this;e&&e.stopPropagation();for(var n=this.state.listItems.find((function(e){return e.id===t.state.selected})),a=Ae;n&&"folder"!==n.type;)n=this.state.listItems[n.parentIndex];n&&(a=n.id),this.parent=a,this.setState({choosingType:!0})}},{key:"onCopy",value:function(e,t){e&&e.stopPropagation();for(var n=this.state.listItems.find((function(e){return e.id===t})),a=Ae;n&&"folder"!==n.type;)n=this.state.listItems[n.parentIndex];n&&(a=n.id),this.parent=a,this.setState({copingScript:t})}},{key:"onAddNewFolder",value:function(e){var t=this;e&&e.stopPropagation();for(var n=this.state.listItems.find((function(e){return e.id===t.state.selected})),a=Ae;n&&"folder"!==n.type;)n=this.state.listItems[n.parentIndex];n&&(a=n.id),this.parent=a,this.setState({creatingFolder:!0})}},{key:"onRename",value:function(e){e&&e.stopPropagation(),this.setState({renaming:this.state.selected})}},{key:"getUniqueName",value:function(e){var t=this,n=1,a="".concat(k.I18n.t("Script")," ");if(e){var s=ze(e,this.props.scripts[e]),o=s.match(/\d+$/);o?(a=s.replace(/\d+$/,""),n=parseInt(o[0],10)+1):a=s}for(;this.state.listItems.find((function(e){return e.id==="".concat(t.parent,".").concat(a.replace(/\.\s/g,"_")).concat(n)}));)n++;return a+n}},{key:"getUniqueFolderName",value:function(){for(var e=this,t=1;this.state.listItems.find((function(n){return n.id==="".concat(e.parent,".").concat(k.I18n.t("Folder"),"_").concat(t)}));)t++;return"".concat(k.I18n.t("Folder")," ").concat(t)}},{key:"onCloseMenu",value:function(e){this.setState({menuOpened:!1,menuAnchorEl:null,menuAnchorFilterEl:null},e)}},{key:"getFilterBadge",value:function(){return[!0===this.state.statusFilter&&(0,se.jsx)(S.Nhx,{className:this.props.classes.filterIcon,style:{color:Ie}}),!1===this.state.statusFilter&&(0,se.jsx)(S.hPq,{className:this.props.classes.filterIcon,style:{color:Te}}),"Blockly"===this.state.typeFilter&&"Bl","Javascript/js"===this.state.typeFilter&&"JS","TypeScript/ts"===this.state.typeFilter&&"TS"]}},{key:"getMainMenu",value:function(e,t){var n=this;return(0,se.jsxs)(O.Z,{id:"long-menu",anchorEl:this.state.menuAnchorEl,open:this.state.menuOpened,onClose:function(){return n.setState({menuOpened:!1,menuAnchorEl:null})},PaperProps:{style:{maxHeight:360}},children:[this.state.width<=Ee?(0,se.jsxs)(M.Z,{disabled:this.props.debugMode||!this.state.selected||this.state.selected===Ne||this.state.selected===De||e&&e.length,onClick:function(e){e.stopPropagation(),e.preventDefault(),n.state.listItems.find((function(e){return e.parent===n.state.selected}))?n.showError(k.I18n.t("Cannot delete non empty item!")):n.setState({menuOpened:!1,menuAnchorEl:null},(function(){return n.onDelete(n.state.selected).then((function(){}))}))},children:[(0,se.jsx)(S.ZkW,{className:this.props.classes.iconDropdownMenu,style:{color:"red"}}),k.I18n.t("Delete")]},"delete"):null,(0,se.jsxs)(M.Z,{disabled:this.props.debugMode,selected:this.state.expertMode,onClick:function(e){e.stopPropagation(),e.preventDefault(),n.onCloseMenu((function(){return n.props.onExpertModeChange&&n.props.onExpertModeChange(!n.state.expertMode)}))},children:[(0,se.jsx)(S.Bjz,{className:this.props.classes.iconDropdownMenu,style:{color:this.state.expertMode?"orange":"inherit"}}),k.I18n.t("Expert mode")]},"expertMode"),this.props.onExport&&(0,se.jsxs)(M.Z,{onClick:function(e){e.stopPropagation(),e.preventDefault(),n.onCloseMenu((function(){return n.props.onExport()}))},children:[(0,se.jsx)(P.FaFileExport,{className:this.props.classes.iconDropdownMenu}),k.I18n.t("Export all scripts")]},"exportAll"),this.props.onImport&&(0,se.jsxs)(M.Z,{disabled:this.props.debugMode,onClick:function(e){e.stopPropagation(),e.preventDefault(),n.onCloseMenu((function(){return n.props.onImport()}))},children:[(0,se.jsx)(P.FaFileImport,{className:this.props.classes.iconDropdownMenu}),k.I18n.t("Import scripts")]},"import"),this.props.onThemeChange&&(0,se.jsxs)(M.Z,{onClick:function(){return n.onCloseMenu((function(){var e="dark"===n.state.themeName?"blue":"blue"===n.state.themeName?"colored":"colored"===n.state.themeName?"light":"light"===n.state.themeName?"dark":"colored";n.props.onThemeChange(e)}))},children:[(0,se.jsx)(S.Zox,{className:this.props.classes.iconDropdownMenu}),k.I18n.t('Change theme (actual "%s")',this.state.themeName)]},"dark"),this.props.onAddNew&&(0,se.jsxs)(M.Z,{disabled:!this.state.selected||!t||"folder"===t.type,onClick:function(e){var t=n.state.selected;n.onCloseMenu((function(){return n.onCopy(e,t)}))},children:[(0,se.jsx)(S.Fqs,{className:this.props.classes.iconDropdownMenu}),k.I18n.t("Copy script")]},"copy"),this.state.expertMode&&(0,se.jsxs)(M.Z,{disabled:this.props.debugMode,onClick:function(e){e.stopPropagation(),e.preventDefault(),n.onCloseMenu((function(){return n.setState({showAdapterDebug:!0})}))},children:[(0,se.jsx)(S.qXL,{className:this.props.classes.iconDropdownMenu}),k.I18n.t("Debug instance")]},"debugInstance")]},"menu")}},{key:"getToolbarButtons",value:function(){var e=this,t=[],n=this.props.classes,a=this.state.reorder&&!this.props.debugMode;if(this.state.searchMode&&!this.props.debugMode)t.push((0,se.jsx)(z.Z,{value:this.state.searchText,className:n.toolbarSearch,ref:this.inputRef,autoFocus:!0,placeholder:k.I18n.t("Search..."),onChange:function(t){e.setState({searchText:t.target.value}),e.filterTimer&&clearTimeout(e.filterTimer),e.filterTimer=setTimeout((function(){e.filterTimer=null,e.filterList(!0),e.props.onSearch&&e.props.onSearch(e.state.searchText)}),400)}},"searchInput")),t.push((0,se.jsx)(E.Z,{className:n.toolbarButtons,style:{float:"right"},title:k.I18n.t("End search mode"),onClick:function(t){t.stopPropagation(),e.filterList(!1,(function(){return e.props.onSearch&&e.props.onSearch(e.state.searchText)}))},size:"medium",children:(0,se.jsx)(S.w7s,{})},"disableSearch")),this.state.searchText&&t.push((0,se.jsx)(E.Z,{mini:"true",title:k.I18n.t("Clear search input"),className:n.toolbarButtons,style:{marginTop:7,float:"right"},onClick:function(t){t.stopPropagation(),e.setState({searchText:""},(function(){e.filterList(!0),e.props.onSearch&&e.props.onSearch(e.state.searchText)}))},size:"medium",children:(0,se.jsx)(S.FU5,{fontSize:"small"})},"cleanSearch"));else{if(!a){t.push((0,se.jsx)(E.Z,{"aria-label":"More","aria-owns":this.state.menuOpened?"long-menu":void 0,title:k.I18n.t("Menu"),"aria-haspopup":"true",onClick:function(t){t.stopPropagation(),t.preventDefault(),e.setState({menuOpened:!0,menuAnchorEl:t.currentTarget})},size:"medium",children:(0,se.jsx)(S.rgS,{})},"menuButton"));var s,o=this.state.listItems.find((function(t){return t.id===e.state.selected}));o&&this.state.width<=Ee&&"folder"===o.type&&(s=this.state.listItems.filter((function(t){return t.parent===e.state.selected}))),t.push(this.getMainMenu(s,o)),t.push((0,se.jsx)(E.Z,{disabled:this.props.debugMode,title:k.I18n.t("Create new script"),className:k.Utils.clsx(n.toolbarButtons,this.props.debugMode&&n.iconButtonsDisabled),style:{color:a?"red":"inherit"},onClick:function(t){return e.onAddNew(t)},size:"medium",children:(0,se.jsx)(S.x06,{})},"new-script")),t.push((0,se.jsx)(E.Z,{disabled:this.props.debugMode,title:k.I18n.t("Create new folder"),className:k.Utils.clsx(n.toolbarButtons,this.props.debugMode&&n.iconButtonsDisabled),style:{color:a?"red":"inherit"},onClick:function(){return e.onAddNewFolder()},size:"medium",children:(0,se.jsx)(S.Db7,{})},"new-folder"))}t.push((0,se.jsx)(E.Z,{disabled:a||this.props.debugMode,className:k.Utils.clsx(n.toolbarButtons,this.props.debugMode&&n.iconButtonsDisabled),title:k.I18n.t("Search in scripts"),style:{float:"right",opacity:this.props.debugMode?.5:a?0:1},onClick:function(t){t.stopPropagation(),e.setState({searchMode:!0})},size:"medium",children:(0,se.jsx)(S.vU7,{})},"search")),t.push((0,se.jsx)(E.Z,{disabled:this.props.debugMode,title:k.I18n.t("Reorder scripts in folders"),className:k.Utils.clsx(n.toolbarButtons,this.props.debugMode&&n.iconButtonsDisabled),style:{color:a?"red":"inherit",float:"right"},onClick:function(t){t.stopPropagation(),e.setState({reorder:!e.state.reorder})},size:"medium",children:(0,se.jsx)(S.Llt,{})},"reorder")),!a&&this.state.selected&&this.state.selected!==Ne&&this.state.selected!==De&&t.push((0,se.jsx)(E.Z,{className:k.Utils.clsx(n.toolbarButtons,this.props.debugMode&&n.iconButtonsDisabled),disabled:this.props.debugMode,title:k.I18n.t("Rename"),onClick:function(t){return e.onRename(t)},size:"medium",children:(0,se.jsx)(S.zmo,{})},"rename"))}return t}},{key:"getFolders",value:function(){var e=[{id:Ae,name:k.I18n.t("Root folder")}];return this.state.listItems.forEach((function(t){return"folder"===t.type&&e.push({id:t.id,name:t.title})})),e}},{key:"onCollapseAll",value:function(){this.setState({expanded:[]}),this.saveExpanded([])}},{key:"onExpandAll",value:function(){var e=this,t=[];this.state.listItems.forEach((function(n){return e.state.listItems.find((function(e){return e.parent===n.id}))&&t.push(n.id)})),this.setState({expanded:t}),this.saveExpanded(t)}},{key:"getBottomButtons",value:function(){var e=this;return this.state.reorder||this.props.debugMode?null:[(0,se.jsx)(S.hPq,{className:this.props.classes.footerButtons,style:{color:Ie,opacity:"running"===this.state.statusFilter?1:.3,background:"running"===this.state.statusFilter?"gray":"inherit"},title:k.I18n.t("Show only running scripts"),onClick:function(t){t.stopPropagation(),t.preventDefault();var n="running"===e.state.statusFilter?"":"running";window.localStorage&&window.localStorage.setItem("SideMenu.statusFilter",n),e.setState({statusFilter:n})}},"filterByRunning"),(0,se.jsx)(S.Nhx,{title:k.I18n.t("Show only paused scripts"),className:this.props.classes.footerButtons,style:{color:Te,opacity:"paused"===this.state.statusFilter?1:.3,background:"paused"===this.state.statusFilter?"gray":"inherit"},onClick:function(){var t="paused"===e.state.statusFilter?"":"paused";window.localStorage&&window.localStorage.setItem("SideMenu.statusFilter",t),e.setState({statusFilter:t})}},"filterByPaused"),(0,se.jsx)(S.hPq,{title:k.I18n.t("Show only scripts with problems"),className:this.props.classes.footerButtons,style:{color:je,opacity:"problems"===this.state.statusFilter?1:.3,background:"problems"===this.state.statusFilter?"gray":"inherit"},onClick:function(){var t="problems"===e.state.statusFilter?"":"problems";window.localStorage&&window.localStorage.setItem("SideMenu.statusFilter",t),e.setState({statusFilter:t})}},"filterByProblem"),(0,se.jsx)("img",{className:this.props.classes.footerButtons,alt:"Blockly",style:{opacity:"Blockly"===this.state.typeFilter?1:.3,background:"Blockly"===this.state.typeFilter?"gray":"inherit"},src:Me.Blockly||Me.def,onClick:function(){var t="Blockly"===e.state.typeFilter?"":"Blockly";window.localStorage&&window.localStorage.setItem("SideMenu.typeFilter",t),e.setState({typeFilter:t})}},"filterBlockly"),(0,se.jsx)("img",{className:this.props.classes.footerButtons,alt:"Javascript",style:{opacity:"Javascript/js"===this.state.typeFilter?1:.3,background:"Javascript/js"===this.state.typeFilter?"gray":"inherit"},src:Me["Javascript/js"]||Me.def,onClick:function(){var t="Javascript/js"===e.state.typeFilter?"":"Javascript/js";window.localStorage&&window.localStorage.setItem("SideMenu.typeFilter",t),e.setState({typeFilter:t})}},"filterJS"),(0,se.jsx)("img",{className:this.props.classes.footerButtons,alt:"TypeScript",style:{opacity:"TypeScript/ts"===this.state.typeFilter?1:.3,background:"TypeScript/ts"===this.state.typeFilter?"gray":"inherit"},src:Me["TypeScript/ts"]||Me.def,onClick:function(){var t="TypeScript/ts"===e.state.typeFilter?"":"TypeScript/ts";window.localStorage&&window.localStorage.setItem("SideMenu.typeFilter",t),e.setState({typeFilter:t})}},"filterTS"),(0,se.jsx)("img",{className:this.props.classes.footerButtons,alt:"Rules",style:{opacity:"Rules"===this.state.typeFilter?1:.3,background:"Rules"===this.state.typeFilter?"gray":"inherit"},src:Me.Rules||Me.def,onClick:function(t){var n="Rules"===e.state.typeFilter?"":"Rules";window.localStorage&&window.localStorage.setItem("SideMenu.typeFilter",n),e.setState({typeFilter:n})}},"filterRules"),(0,se.jsx)(S.bPX,{className:"".concat(this.props.classes.footerButtons," ").concat(this.props.classes.footerButtonsRight),title:k.I18n.t("Expand all"),onClick:function(){return e.onExpandAll()}},"expandAll"),this.state.expanded.length?(0,se.jsx)(S.SPo,{className:"".concat(this.props.classes.footerButtons," ").concat(this.props.classes.footerButtonsRight),title:k.I18n.t("Collapse all"),onClick:function(){return e.onCollapseAll()}},"collapseAll"):null]}},{key:"getAdapterDebugDialog",value:function(){var e=this;if(this.state.showAdapterDebug)return(0,se.jsx)(Ce,{socket:this.props.socket,onClose:function(){return e.setState({showAdapterDebug:!1})},onDebug:function(t,n){return e.setState({showAdapterDebug:!1},(function(){return e.props.onDebugInstance({instance:t,adapter:n})}))}})}},{key:"render",value:function(){var e=this,t=this.props.classes,n=this.state.renaming&&this.state.listItems.find((function(t){return t.id===e.state.renaming})),a=this.state.copingScript&&this.props.scripts[this.state.copingScript];return[(0,se.jsxs)(C.ZP,{variant:"permanent",className:t.menu,classes:{paper:t.drawerPaper},anchor:"left",onClick:function(){return e.onClick({id:""})},children:[(0,se.jsx)("div",{className:t.toolbar,children:this.getToolbarButtons()}),(0,se.jsx)(I.Z,{}),(0,se.jsx)(F.W,{backend:B.PD,children:(0,se.jsx)("div",{className:t.innerMenu,children:this.renderAllItems(this.state.listItems)})}),(0,se.jsx)(I.Z,{}),(0,se.jsx)("div",{className:t.footer,children:this.getBottomButtons()})]},"drawer"),n?(0,se.jsx)(oe,{name:n.title,title:k.I18n.t("Rename"),id:this.state.renaming,folder:"folder"===n.type,instance:n.instance,instances:this.props.instances,onClose:function(){return e.setState({renaming:!1})},onRename:function(t,n,a,s){return e.props.onRename&&e.props.onRename(t,n,a,s)}},"dialog-rename"):null,this.state.deleting?(0,se.jsx)(re,{name:this.state.listItems.find((function(t){return t.id===e.state.deleting})).title,id:this.state.deleting,onClose:function(){return e.setState({deleting:!1})},onDelete:function(t){return e.props.onDelete&&e.props.onDelete(t)}},"dialog-delete"):null,this.state.choosingType?(0,se.jsx)(ge,{onClose:function(t){e.setState({choosingType:!1}),t&&e.setState({creatingScript:t})}},"dialog-script-type"):null,this.state.creatingScript?(0,se.jsx)(fe,{onClose:function(){return e.setState({creatingScript:!1})},title:k.I18n.t("Create new script"),name:this.getUniqueName(),parents:this.getFolders(),folder:!1,existingItems:this.state.listItems.map((function(e){return e.id})),instance:this.props.instances[0]||0,instances:this.props.instances,type:this.state.creatingScript,parent:this.parent,onAdd:function(t,n,a,s){return e.props.onAddNew&&e.props.onAddNew(t,n,!1,a,s)}},"dialog-new-script"):null,this.state.copingScript?(0,se.jsx)(fe,{onClose:function(){return e.setState({copingScript:""})},title:k.I18n.t("Copy script"),name:this.getUniqueName(this.state.copingScript),parents:this.getFolders(),folder:!1,instance:parseInt(a&&a.common&&a.common.engine&&a.common.engine.split(".").pop()||0,10),instances:this.props.instances,type:a&&a.common&&a.common.engineType||"Javascript/js",parent:this.parent,onAdd:function(t,n,a,s){var o=e.state.copingScript&&e.props.scripts[e.state.copingScript];o&&o.common&&(o.common.enabled=!1),e.props.onAddNew&&e.props.onAddNew(t,n,!1,a,s,o&&o.common&&o.common.source)}},"dialog-copy-script"):null,this.state.creatingFolder?(0,se.jsx)(fe,{onClose:function(){return e.setState({creatingFolder:!1})},title:k.I18n.t("Create new folder"),parents:this.getFolders(),name:this.getUniqueFolderName(),parent:this.parent,onAdd:function(t,n){return e.props.onAddNew&&e.props.onAddNew(t,n,!0)}},"dialog-new-folder"):null,this.state.errorText?(0,se.jsx)(be,{onClose:function(){return e.setState({errorText:""})},text:this.state.errorText}):null,this.getAdapterDebugDialog()]}}],[{key:"filterListStatic",value:function(e,t,n,a,s){t=JSON.parse(JSON.stringify(t));var o=!1,i={listItems:t};if(!1!==e&&n&&a){var r=a.toLowerCase();if(t.forEach((function(e){var t=e.title.toLowerCase();e.filteredPartly=!1;var n=-1!==t.indexOf(r);if(!n&&s&&s[e.id]&&s[e.id].common&&s[e.id].common.source)if("Blockly"===s[e.id].common.engineType){var a=s[e.id].common.source.lastIndexOf("//");n=-1!==s[e.id].common.source.substring(0,a).toLowerCase().indexOf(r)}else n=-1!==s[e.id].common.source.toLowerCase().indexOf(r);n?e.filtered&&(e.filtered=!1,o=!0):e.filtered||(e.filtered=!0,o=!0)})),o)for(var l=t.length-1;l>=0;l--){var c=t[l];if(!c.filtered||c.filteredPartly){var u=c;do{u.parent&&t[u.parentIndex]&&(o=!0,t[u.parentIndex].filteredPartly=!0),u=u.parent&&t[u.parentIndex]?t[u.parentIndex]:null}while(u)}}}else t.forEach((function(e){(e.filtered||e.filteredPartly)&&(e.filtered=!1,e.filteredPartly=!1,o=!0)})),!1===e&&(i.searchText="",i.searchMode=!1,o=!0);return o?i:null}},{key:"ensureSelectedIsVisibleStatic",value:function(e,t,n){t=JSON.parse(JSON.stringify(t));var a=!1,s="object"===typeof e?e:n.find((function(t){return t.id===e}));do{(s=s&&s.parent&&n.find((function(e){return e.id===s.parent})))&&-1===t.indexOf(s.id)&&(t.push(s.id),a=!0)}while(s);return a&&t}},{key:"getDerivedStateFromProps",value:function(e,t){var a={},s=!1;if(t.expertMode!==e.expertMode&&(s=!0,a.expertMode=e.expertMode),t.scriptsHash!==e.scriptsHash&&e.scripts){var o=Ze(e.scripts||{});if(a.listItems=o,t.searchText){var i=n.filterListStatic(!0,o,t.searchMode,t.searchText,e.scripts);i&&Object.assign(a,i)}var r=n.getIsAllZeroInstancesStatic(o,e.instances||[]),l=n.ensureSelectedIsVisibleStatic(t.selected,t.expanded,t.listItems);a.isAllZeroInstances=r,l&&(a.expanded=l),s=!0}if(t.width!==e.width&&(s=!0,a.width=e.width),t.themeName!==e.themeName&&(s=!0,a.themeName=e.themeName),e.selectId&&t.selected!==e.selectId){var c=t.listItems.find((function(t){return t.id===e.selectId}));if(!t.reorder&&c){var u=n.ensureSelectedIsVisibleStatic(c,t.expanded,t.listItems);a.selected=c.id,u&&(a.expanded=u),s=!0,window.localStorage&&window.localStorage.setItem("SideMenu.selected",c.id)}}return s?a:null}},{key:"getIsAllZeroInstancesStatic",value:function(e,t){var n=!t[0]&&t.length<=1;return n&&e.forEach((function(e){"folder"!==e.type&&0!==e.instance&&(n=!1)})),n}}]),n}(s().Component),Pe=(0,g.Z)((function(e){return{drawerPaper:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},toolbar:{height:e.toolbar.height},toolbarButtons:{color:"dark"===e.palette.mode?"white !important":"black !important"},iconButtonsDisabled:{filter:"grayscale(100%)",opacity:.5},toolbarSearch:{width:"calc(100% - 105px)",lineHeight:"34px",marginLeft:5},iconButtons:{width:32,height:32,padding:2},iconDropdownMenu:{paddingRight:5},iconOnTheRight:{position:"absolute",right:10,top:"calc(50% - 8px)"},menu:{width:"100%",height:"100%"},innerMenu:{width:"100%",height:"calc(100% - 76px)",overflowX:"hidden",overflowY:"auto"},listItemIcon:{minWidth:32},filterIcon:{width:18,height:18,borderRadius:2,marginRight:5},scriptIcon:{width:18,height:18,borderRadius:2,marginTop:4,marginBottom:4,marginLeft:8,marginRight:4},folder:{cursor:"pointer",padding:0,userSelect:"none"},folderReorder:{opacity:.3,transitionDuration:"0.5s",transitionProperty:"opacity"},folderIcon:{width:20,height:20},folderIconReorder:{paddingTop:4,paddingBottom:4,paddingLeft:8,paddingRight:4},folderIconNoReorder:{cursor:"pointer",paddingTop:4,paddingBottom:4,paddingLeft:8,paddingRight:4},script:{cursor:"pointer",padding:0,userSelect:"none"},scriptReorder:{opacity:1,transitionDuration:"0.5s",transitionProperty:"opacity"},reorder:{},expandButton:{width:37,height:37},selected:Oe,instances:{color:"gray",fontSize:"smaller"},childrenCount:{float:"right",marginRight:5,fontSize:10,opacity:.4},footer:{height:24},footerButtons:{"&:hover":{backgroundColor:"#dbdbdb"},color:"dark"===e.palette.mode?"#ffffff":"#111111",cursor:"pointer",marginTop:1,marginRight:2,height:22,width:22},footerButtonsRight:{float:"right"},mainList:{"& .js-folder-dragover>div>li>.folder-reorder":{background:"#40adff"},"& .js-folder-dragging .folder-reorder":{opacity:1},"& .js-folder-dragging .script-reorder":{opacity:.3}}}}))(Be);function _e(e){var t,n=e.getHours();return n<10&&(n="0".concat(n.toString())),t="".concat(n,":"),(n=e.getMinutes())<10&&(n="0".concat(n.toString())),t+="".concat(n,":"),(n=e.getSeconds())<10&&(n="0".concat(n.toString())),t+="".concat(n,"."),(n=e.getMilliseconds())<10?n="00".concat(n.toString()):n<100&&(n="0".concat(n.toString())),t+=n}var Le={},Ue=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).logHandler=function(e){var t,n=a.state.lines,s=a.state.editing.filter((function(t){return e.message.includes(t)}));if(s.length){1===s.length?t=s[0]:(s.sort(),t=s[s.length-1]);var o=n[t]||[],i=Le[t]||[];o.push(a.generateLine(e));var r=e.severity;"info"!==r&&"warn"!==r||(r+=" ");var l,c=new Date(e.ts);i.push("".concat(c.toLocaleString(),".").concat((l=c.getMilliseconds(),l<10?"00".concat(l):l<100?"0".concat(l):l),"\t[").concat(r,"]: ").concat(e.message)),o.length>300&&(o.splice(0,o.length-300),i.splice(0,o.length-300)),Le[t]=i,n[t]=o,a.setState({lines:n})}},a.state={lines:{},goBottom:!0,selected:null,editing:a.props.editing||[]},a.lastIndex=null,a.messagesEnd=s().createRef(),a}return(0,d.Z)(n,[{key:"generateLine",value:function(e){return(0,se.jsxs)("tr",{className:this.props.classes[e.severity],children:[(0,se.jsx)("td",{className:this.props.classes.trTime,children:_e(new Date(e.ts))},"tdTime"),(0,se.jsx)("td",{className:this.props.classes.trSeverity,children:e.severity},"tdSeverity"),(0,se.jsx)("td",{children:e.message},"tdMessage")]},"tr_".concat(e.ts,"_").concat(e.message.substr(-10)))}},{key:"scrollToBottom",value:function(){this.messagesEnd&&this.messagesEnd.current&&this.messagesEnd.current.scrollIntoView({behavior:"smooth"})}},{key:"componentDidMount",value:function(){this.props.socket.registerLogHandler(this.logHandler)}},{key:"componentWillUnmount",value:function(){this.props.socket.unregisterLogHandler(this.logHandler)}},{key:"componentDidUpdate",value:function(){this.state.goBottom&&this.scrollToBottom()}},{key:"onCopy",value:function(){k.Utils.copyToClipboard((Le[this.state.selected]||[]).join("\n"))}},{key:"clearLog",value:function(){var e=this.state.lines;e[this.state.selected]&&(e[this.state.selected]=[]),Le[this.state.selected]&&(Le[this.state.selected]=[]),this.setState({lines:e})}},{key:"renderLogList",value:function(e){return this.state.selected&&e&&e.length?(0,se.jsxs)("div",{className:this.props.classes.logBoxInner,children:[(0,se.jsx)("table",{className:this.props.classes.table,children:(0,se.jsx)("tbody",{children:e})},"logTable"),(0,se.jsx)("div",{ref:this.messagesEnd,style:{float:"left",clear:"both"}},"logScrollPoint")]},"logList"):(0,se.jsx)("div",{className:this.props.classes.logBoxInner,style:{paddingLeft:10},children:k.I18n.t("Log outputs")},"logList")}},{key:"render",value:function(){var e=this,t=this.state.selected&&this.state.lines[this.state.selected];return(0,se.jsxs)("div",{className:this.props.classes.logBox,children:[(0,se.jsxs)("div",{className:this.props.classes.toolbox,children:[(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.setState({goBottom:!e.state.goBottom})},color:this.state.goBottom?"secondary":"",size:"medium",children:(0,se.jsx)(S.G10,{})}),t&&t.length?(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.clearLog()},size:"medium",children:(0,se.jsx)(S.FH3,{})}):null,t&&t.length?(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.onCopy()},size:"medium",children:(0,se.jsx)(S.Fqs,{})}):null,this.props.onLayoutChange?(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.props.onLayoutChange()},title:k.I18n.t("Change layout"),size:"medium",children:(0,se.jsx)("img",{className:this.props.classes.layoutIcon,alt:"split",src:this.props.verticalLayout?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgAQMAAADYVuV7AAAABlBMVEUAAAAzMzPI8eYgAAAAAXRSTlMAQObYZgAAACFJREFUeAFjAIJRwP////8PYIKWHCigNQdKj/pn1D+jAABTG16wVQqVpQAAAABJRU5ErkJggg==":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgAQMAAADYVuV7AAAABlBMVEUAAAAzMzPI8eYgAAAAAXRSTlMAQObYZgAAABtJREFUeAFjAIJRwP8fCj7QkENn/4z6Z5QzCgBjbWaoyx1PqQAAAABJRU5ErkJggg=="})}):null,(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.props.onHideLog()},title:k.I18n.t("Hide logs"),size:"medium",children:(0,se.jsx)(S.wqE,{})})]},"toolbox"),this.renderLogList(t)]})}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=!1,a={};if(e.selected!==t.selected){var s=e.selected,o=t.lines;o[s]=o[s]||[],Le[s]=Le[s]||[],a.selected=s,n=!0}if(JSON.stringify(e.editing)!==JSON.stringify(t.editing)){var i=JSON.parse(JSON.stringify(e.editing));n=!0;var r=t.lines;for(var l in Le)Le.hasOwnProperty(l)&&(i.includes(l)||(delete Le[l],delete r[l]));a.editing=i}return n?a:null}}]),n}(s().Component),We=(0,g.Z)((function(e){return{logBox:{width:"100%",height:"100%",position:"relative",overflow:"hidden"},logBoxInner:{display:"inline-block",color:"dark"===e.palette.mode?"white":"black",width:"calc(100% - ".concat(34,"px)"),height:"100%",overflow:"auto",position:"relative",verticalAlign:"top"},info:{background:"dark"===e.palette.mode?"darkgrey":"lightgrey",color:(e.palette.mode,"black")},error:{background:"#FF0000",color:"dark"===e.palette.mode?"black":"white"},warn:{background:"#FF8000",color:"dark"===e.palette.mode?"black":"white"},debug:{background:"gray",opacity:.8,color:"dark"===e.palette.mode?"black":"white"},silly:{background:"gray",opacity:.6,color:"dark"===e.palette.mode?"black":"white"},table:{fontFamily:"monospace",width:"100%"},toolbox:{width:34,height:"100%",boxShadow:"2px 0px 4px -1px rgba(0, 0, 0, 0.2), 4px 0px 5px 0px rgba(0, 0, 0, 0.14), 1px 0px 10px 0px rgba(0, 0, 0, 0.12)",display:"inline-block",verticalAlign:"top",overflow:"hidden"},trTime:{width:90},trSeverity:{width:40,fontWeight:"bold"},iconButtons:{width:32,height:32,padding:4},layoutIcon:{width:24,height:24,background:"dark"===e.palette.mode?"#9d9d9d":void 0,borderRadius:"dark"===e.palette.mode?30:void 0}}}))(Ue),Ve=n(50804),Je=n(29464),Ge=n(29347),He=n(61474),qe=n(27029),Ye=n(34129),Ke=n(13034),Qe=n(40986),Xe=n(15416),$e=n(62155),et=n(68745),tt=n(55261),nt=n(22041),at=n(9195),st=n(4841),ot=n(48240);var it=0,rt=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).state={name:"current",isDark:e.isDark||!1,language:e.language||"javascript",readOnly:e.readOnly||!1,alive:!0,check:!1,searchText:a.props.searchText||"",typingsLoaded:!1},a.runningInstancesStr=JSON.stringify(a.props.runningInstances),a.monacoDiv=null,a.editor=null,a.monaco=window.monaco,a.insert="",a.originalCode=e.code||"",a.typings={},a.lastSearch="",a}return(0,d.Z)(n,[{key:"waitForMonaco",value:function(e){var t=this;if(this.monaco&&this.props.runningInstances)e&&e();else{if(this.monaco=window.monaco,this.monacoCounter=this.monacoCounter||0,this.monacoCounter++,!this.monaco&&this.monacoCounter<20)return console.log("wait for monaco loaded"),setTimeout((function(){return t.waitForMonaco(e)}),200);this.monacoCounter>=20&&console.error("Cannot load monaco!")}}},{key:"loadTypings",value:function(e){var t=this;if(this.editor){var n=(e=e||this.props.runningInstances)&&Object.keys(e).find((function(t){return e[t]}));n&&this.props.socket.sendTo(n.replace("system.adapter.",""),"loadTypings",null).then((function(e){t.setState({alive:!0,check:!0,typingsLoaded:!0}),t.setTypeCheck(!0),e.typings?(t.typings=e.typings,t.setEditorTypings(t.state.name)):console.error("failed to load typings: ".concat(e.error))}))}}},{key:"componentDidMount",value:function(){var e=this;if((!this.monaco||!this.props.runningInstances)&&(this.monaco=window.monaco,!this.monaco))return console.log("wait for monaco loaded"),this.waitForMonaco((function(){return e.componentDidMount()}));if(!this.editor){this.props.onRegisterSelect&&this.props.onRegisterSelect((function(){return e.editor.getModel().getValueInRange(e.editor.getSelection())}));var t=this.monaco.languages.typescript.typescriptDefaults.getCompilerOptions();t.target=this.monaco.languages.typescript.ScriptTarget.ES2015,t.allowJs=!0,t.checkJs=!1!==this.props.checkJs,t.noLib=!0,t.lib=[],t.useUnknownInCatchVariables=!1,t.moduleResolution=this.monaco.languages.typescript.ModuleResolutionKind.NodeJs,this.monaco.languages.typescript.typescriptDefaults.setCompilerOptions(t),this.setTypeCheck(!1),this.editor=this.monaco.editor.create(this.monacoDiv,{lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,glyphMargin:!!this.props.breakpoints}),this.editor.onDidChangeModelContent((function(t){return e.onChange(e.editor.getValue())})),this.loadTypings(),this.editor.addCommand(this.monaco.KeyMod.CtrlCmd|this.monaco.KeyCode.KEY_S,(function(){return e.onForceSave()})),setTimeout((function(){e.highlightText(e.state.searchText),e.location=e.props.location,e.breakpoints=e.props.breakpoints,e.showDecorators()}))}var n={selectOnLineNumbers:!0,scrollBeyondLastLine:!1,automaticLayout:!0,readOnly:this.state.readOnly,language:this.state.language,isDark:this.state.isDark};this.setEditorOptions(n),this.editor.focus(),this.editor.setValue(this.originalCode),this.props.onToggleBreakpoint?this.editor.onMouseDown((function(t){t.target.detail&&void 0!==t.target.detail.glyphMarginLeft&&e.props.onToggleBreakpoint(t.target.position.lineNumber-1)})):this.editor.onMouseDown((function(){}))}},{key:"setEditorOptions",value:function(e){e&&(e.language&&this.setEditorLanguage(e.language),void 0!==e.readOnly&&this.editor.updateOptions({readOnly:e.readOnly}),void 0!==e.lineWrap&&this.editor.updateOptions({wordWrap:e.lineWrap?"on":"off"}),void 0!==e.typeCheck&&this.setTypeCheck(e.typeCheck),void 0!==e.isDark&&this.monaco.editor.setTheme(e.isDark?"vs-dark":"vs"))}},{key:"componentWillUnmount",value:function(){this.editor&&(this.props.onRegisterSelect&&this.props.onRegisterSelect(null),this.editor.dispose(),this.editor=null)}},{key:"setEditorLanguage",value:function(e){var t=this.editor.getModel(),n=t.getValue(),a=t.uri.path,s="string"===typeof a&&a.includes(".")?a.substr(0,a.lastIndexOf(".")):"index",o="javascript"===e?"js":"typescript"===e?"ts":e;t.dispose();var i="javascript"===e||"typescript"===e?"typescript":e,r=this.monaco.editor.createModel(n,i,this.monaco.Uri.from({path:"".concat(s).concat(it++,".").concat(o)}));this.editor.setModel(r)}},{key:"setTypeCheck",value:function(e){var t={noSemanticValidation:!this.state.alive||!e,noSyntaxValidation:!this.state.alive};this.monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions(t)}},{key:"setEditorTypings",value:function(){for(var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=/^script\.js\.global\./.test(t),a="".concat(t,".d.ts"),s=[],o=0,i=Object.keys(this.typings);oe||e>t[0].endLineNumber)&&this.editor.revealLineInCenter(e)}}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this,n={};this.state.name!==e.name&&this.initNewScript(e.name,e.code),JSON.stringify(e.runningInstances)!==this.runningInstancesStr&&(this.runningInstancesStr=JSON.stringify(e.runningInstances),this.state.typingsLoaded||this.loadTypings(e.runningInstances)),e.changed||e.code===this.originalCode&&e.code===this.editor.getValue()||(this.originalCode=e.code,this.editor.setValue(this.originalCode),this.showDecorators(),this.location&&this.scrollToLineIfNeeded(this.location.lineNumber+1)),e.searchText!==this.lastSearch&&(this.lastSearch=e.searchText,this.highlightText(this.lastSearch)),JSON.stringify(e.location)!==JSON.stringify(this.location)&&JSON.stringify(e.breakpoints)!==JSON.stringify(this.breakpoints)?(this.location=e.location,this.breakpoints=e.breakpoints,this.showDecorators(),this.editor&&this.location&&this.scrollToLineIfNeeded(this.location.lineNumber+1)):JSON.stringify(e.breakpoints)!==JSON.stringify(this.breakpoints)?(this.breakpoints=e.breakpoints,this.showDecorators()):JSON.stringify(e.location)!==JSON.stringify(this.location)&&(this.location=e.location,this.showDecorators(),this.editor&&this.location&&this.scrollToLineIfNeeded(this.location.lineNumber+1)),this.state.language!==(e.language||"javascript")?(this.setState({language:e.language||"javascript"}),n.language=e.language||"javascript"):this.state.readOnly!==(e.readOnly||!1)?(this.setState({readOnly:e.readOnly||!1}),n.readOnly=e.readOnly):this.state.isDark!==(e.isDark||!1)&&(this.setState({isDark:e.isDark||!1}),n.isDark=e.isDark),this.setEditorOptions(n),this.insert!==e.insert&&(this.insert=e.insert,this.insert&&(console.log("Insert text"+this.insert),setTimeout((function(e){t.insertTextIntoEditor(e),setTimeout((function(){return t.props.onInserted&&t.props.onInserted()}),100)}),100,this.insert)))}},{key:"onChange",value:function(e,t){this.props.readOnly||this.props.onChange&&this.props.onChange(this.editor.getValue())}},{key:"render",value:function(){var e=this;return this.monaco&&this.props.runningInstances?(0,se.jsx)("div",{ref:function(t){return e.monacoDiv=t},style:{width:"100%",height:"100%",overflow:"hidden",position:"relative"},children:!this.state.check&&(0,se.jsx)(ot.Z,{size:"small",title:k.I18n.t("Check is not active, because javascript adapter is disabled"),style:{bottom:10,right:10,opacity:.5,position:"absolute",zIndex:1,background:"red",color:"white"},color:"secondary",children:(0,se.jsx)(S.vhT,{})})}):(setTimeout((function(){e.monaco=window.monaco,e.forceUpdate()}),200),null)}}]),n}(s().Component),lt=rt,ct=n(74165),ut=n(15861),dt=n(1413),pt=n(94366),ht=n(60627),gt=n(56120),mt=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).handleCancel=function(){a.props.onClose()},a.state={anchorEl:null,popper:""},a}return(0,d.Z)(n,[{key:"onCopy",value:function(e){var t=this;k.Utils.copyToClipboard(this.props.text);var n=e.currentTarget;setTimeout((function(){t.setState({popper:k.I18n.t("Copied"),anchorEl:n}),setTimeout((function(){return t.setState({popper:"",anchorEl:null})}),1e3)}),50)}},{key:"render",value:function(){var e=this,t=this.props.classes;return(0,se.jsxs)(Q.Z,{onClose:function(e,t){return!1},maxWidth:"lg",classes:{paper:t.dialog},fullWidth:!0,open:this.props.open,"aria-labelledby":"export-dialog-title",children:[(0,se.jsx)(q.Z,{id:"export-dialog-title",children:k.I18n.t("Export selected blocks")}),(0,se.jsx)(Y.Z,{classes:{root:t.overflowY},children:(0,se.jsx)("pre",{id:"export-text",className:"".concat(t.textArea," ").concat("dark"===this.props.themeType?"":t.textAreaLight),children:this.props.text})}),(0,se.jsxs)(K.Z,{children:[(0,se.jsx)(H.Z,{variant:"contained",onClick:function(t){return e.onCopy(t)},color:"secondary",startIcon:(0,se.jsx)(gt.Z,{}),children:k.I18n.t("Copy to clipboard")}),(0,se.jsx)(H.Z,{variant:"contained",onClick:function(){return e.handleCancel()},color:"primary",startIcon:(0,se.jsx)(ne.default,{}),children:k.I18n.t("Close")}),(0,se.jsx)(pt.Z,{id:"popper",style:{zIndex:1e4},open:!!this.state.popper,placement:"top",anchorEl:this.state.anchorEl,transition:!0,children:function(n){var a=n.TransitionProps;return(0,se.jsx)(ht.Z,(0,dt.Z)((0,dt.Z)({},a),{},{timeout:350,children:(0,se.jsx)(st.Z,{children:(0,se.jsx)("p",{className:t.typography,children:e.state.popper})})}))}}),(0,se.jsx)("textarea",{id:"copy_input",readOnly:!0,style:{position:"absolute",left:-9999},tabIndex:-1,"aria-hidden":!0,value:this.props.text})]})]},"export-dialog")}}]),n}(s().Component);mt.defaultProps={open:!0};var ft=(0,g.Z)((function(e){return{textArea:{width:"100%",height:"100%",overflow:"auto"},textAreaLight:{background:"lightgray"},dialog:{height:"95%"},typography:{padding:e.spacing(2)},overflowY:{overflowY:"hidden"}}}))(mt),vt=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).state={text:""},a}return(0,d.Z)(n,[{key:"componentDidMount",value:function(){setTimeout((function(){try{window.document.getElementById("import-text-area").focus()}catch(e){}}),100)}},{key:"handleCancel",value:function(){this.props.onClose()}},{key:"handleOk",value:function(){this.props.onClose(this.state.text)}},{key:"onChange",value:function(e){this.setState({text:e.target.value})}},{key:"render",value:function(){var e=this,t=this.props.classes;return(0,se.jsxs)(Q.Z,{onClose:function(e,t){return!1},maxWidth:"lg",classes:{paper:t.dialog},fullWidth:!0,open:this.props.open,"aria-labelledby":"import-dialog-title",children:[(0,se.jsx)(q.Z,{id:"import-dialog-title",children:k.I18n.t("Import blocks")}),(0,se.jsx)(Y.Z,{className:t.fullHeight,children:(0,se.jsx)("textarea",{autoFocus:!0,id:"import-text-area",className:t.textArea,onChange:function(t){return e.onChange(t)}})}),(0,se.jsxs)(K.Z,{children:[(0,se.jsx)(H.Z,{variant:"contained",disabled:!this.state.text,onClick:function(t){return e.handleOk()},color:"primary",startIcon:(0,se.jsx)(ae.default,{}),children:k.I18n.t("Import")}),(0,se.jsx)(H.Z,{color:"grey",variant:"contained",onClick:function(){return e.handleCancel()},startIcon:(0,se.jsx)(ne.default,{}),children:k.I18n.t("Close")})]})]})}}]),n}(s().Component);vt.defaultProps={open:!0};var yt,bt=(0,g.Z)((function(e){return{textArea:{width:"calc(100% - 10px)",height:"100%",resize:"none"},dialog:{height:"95%"},fullHeight:{height:"100%",overflow:"hidden"}}}))(vt),kt=!1,St=!1,xt=null,wt=[];function Ct(e,t,n,a){if(a=a||[],"BLOCK"!==e.tagName&&"block"!==e.tagName||(n=e.id),"FIELD"===e.tagName||"field"===e.tagName)for(var s=0;s=0;s--)if("//"===n[s].substring(0,2)){a=n[s].substring(2);break}if("'+e+"");var t=e.replace(/[\n\r]/g,"").match(/(.*)<\/variables>/);if(t){var n=this.Blockly.utils.xml.textToDomDocument(""+t[1]+"");if(n){var a=n.childNodes&&n.childNodes[0]&&n.childNodes[0].childNodes;if(a)for(var s=0;s.*<\/variables>/g,""),window.scripts.loading=!0;var o=this.Blockly.utils.xml.textToDom(e);if("xml"===o.nodeName)for(var i=0;i';window.scripts.loading=!0;var n=this.Blockly.utils.xml.textToDom(t);this.Blockly.Xml.domToWorkspace(n,this.blocklyWorkspace),window.scripts.loading=!1}catch(a){console.error(a),setTimeout((function(){return e.setState({error:k.I18n.t("Cannot extract Blockly code!")})}))}setTimeout((function(){return e.ignoreChanges=!1}),100)}}},{key:"onBlocklyChanged",value:function(){this.blocklyRemoveOrphanedShadows(),this.setState({changed:!0}),this.onChange()}},{key:"componentDidUpdate",value:function(){var e=(0,ut.Z)((0,ct.Z)().mark((function e(){var t,n=this;return(0,ct.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.blockly){e.next=2;break}return e.abrupt("return");case 2:if(this.didUpdate&&(clearTimeout(this.didUpdate),this.didUpdate=null),!this.blocklyWorkspace){e.next=5;break}return e.abrupt("return");case 5:if(window.addEventListener("resize",this.onResizeBind,!1),e.t0=xt,e.t0){e.next=11;break}return e.next=10,this.getToolbox();case 10:e.t0=e.sent;case 11:xt=e.t0,yt=yt||this.Blockly.utils.xml.textToDom(xt),this.blocklyWorkspace=this.Blockly.inject(this.blockly,{media:"google-blockly/media/",toolbox:yt,zoom:{controls:!0,wheel:!1,startScale:1,maxScale:3,minScale:.3,scaleSpeed:1.2},move:{scrollbars:!0,drag:!0,wheel:!0},trashcan:!0,grid:{spacing:25,length:3,colour:"#ccc",snap:!0},sounds:!1}),window.scripts={blocklyWorkspace:this.blocklyWorkspace},this.blocklyWorkspace.registerToolboxCategoryCallback("PROCEDURE",this.Blockly.Procedures.flyoutCategoryNew),this.blocklyWorkspace.addChangeListener((function(e){if(n.someSelected&&Date.now()-n.someSelectedTime>500){var t=n.blocklyWorkspace.getAllBlocks();n.someSelected=null,t.forEach((function(e){return e.removeSelect()}))}e.type!==n.Blockly.Events.UI&&e.type!==n.Blockly.Events.CREATE&&(n.ignoreChanges||(n.changeTimer&&clearTimeout(n.changeTimer),n.changeTimer=setTimeout((function(){n.changeTimer=null,n.onBlocklyChanged()}),200)))})),this.loadCode(),this.onResize(),t=document.getElementsByClassName("blocklyToolboxDiv")[0],this.blockly.appendChild(t),this.updateBackground(),setTimeout((function(){return n.searchId()}),200);case 23:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"updateBackground",value:function(){var e=document.getElementsByClassName("blocklyMainBackground")[0];"dark"===this.state.themeType?(e._originalStyle||(e._originalStyle={stroke:e.style.stroke,fill:e.style.fill}),e.style.stroke="#3a3a3a",e.style.fill="#515151"):e._originalStyle&&(e.style.stroke=e._originalStyle.stroke,e.style.fill=e._originalStyle.fill)}},{key:"componentWillUnmount",value:function(){this.blocklyWorkspace&&(this.blocklyWorkspace.dispose(),this.blocklyWorkspace=null,this.changeTimer&&clearTimeout(this.changeTimer),this.changeTimer=null,window.removeEventListener("resize",this.onResizeBind))}},{key:"onChange",value:function(){this.originalCode=this.blocklyCode2JSCode(),this.props.onChange&&this.props.onChange(this.originalCode)}},{key:"getToolbox",value:function(){var e=(0,ut.Z)((0,ct.Z)().mark((function e(t){var n,a,s,o,i,r,l,c=this;return(0,ct.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=window.document.getElementById("toolbox"),a=n&&n.outerHTML){e.next=9;break}if(t){e.next=7;break}return e.abrupt("return",new Promise((function(e){return setTimeout((function(){return e(c.getToolbox(!0))}),500)})));case 7:return console.error("Cannot load blocks!"),e.abrupt("return","");case 9:if(a=a.replace(/{(\w+)}/g,(function(e,t){return window.MSG[t]})),this.Blockly.CustomBlocks){for(s="",o=k.I18n.getLanguage(),i=0;i',this.Blockly[r].blocks)this.Blockly[r].blocks.hasOwnProperty(l)&&(s+=this.Blockly[r].blocks[l]);s+=""}a=a.replace("%%CUSTOM_BLOCKS%%",s)}return e.abrupt("return",a);case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"renderMessageDialog",value:function(){var e=this;return this.state.message?(0,se.jsx)(y.default,{text:"object"===typeof this.state.message?this.state.message.text:this.state.message,title:"object"===typeof this.state.message?this.state.message.title:"",onClose:function(){return e.setState({message:""})}},"dialogMessage"):null}},{key:"renderErrorDialog",value:function(){var e=this;return this.state.error?(0,se.jsx)(be,{text:"object"===typeof this.state.error?this.state.error.text.toString():this.state.error,title:"object"===typeof this.state.error?this.state.error.title:"",onClose:function(){e.blinkBlock&&(e.blocklyBlinkBlock(e.blinkBlock),e.blinkBlock=null),e.setState({error:""})}},"dialogError"):null}},{key:"renderExportDialog",value:function(){var e=this;return this.state.exportText?(0,se.jsx)(ft,{theme:this.state.themeType,onClose:function(){return e.setState({exportText:""})},text:this.state.exportText},"dialogExport"):null}},{key:"renderImportDialog",value:function(){var e=this;return this.state.importText?(0,se.jsx)(bt,{onClose:function(t){e.setState({importText:!1}),e.onImportBlocks(t)}},"dialogImport"):null}},{key:"render",value:function(){var e=this;return this.state.languageBlocklyLoaded&&this.state.languageOwnLoaded?(this.didUpdate=setTimeout((function(){e.didUpdate=null,e.componentDidUpdate()}),100),[(0,se.jsx)("div",{ref:function(t){return e.blockly=t},style:{width:"100%",height:"100%",position:"relative"}},"blocklyDOM"),this.renderMessageDialog(),this.renderErrorDialog(),this.renderExportDialog(),this.renderImportDialog()]):null}}],[{key:"loadJS",value:function(e,t,n){var a=document.createElement("script");try{a.src=e,a.onload=t,a.onreadystatechange=t,a.onerror=t,(n||window.document.body).appendChild(a)}catch(s){console.error("Cannot load "+e+": "+s),t&&t()}}},{key:"loadScripts",value:function(e,t){if(!e||!e.length)return t&&t();var a=e.pop();-1===wt.indexOf(a)?(wt.push(a),n.loadJS("../../adapter/"+a+"/blockly.js",(function(){return setTimeout((function(){return n.loadScripts(e,t)}),0)}))):setTimeout((function(){return n.loadScripts(e,t)}),0)}},{key:"loadCustomBlockly",value:function(e,t){var a=[];for(var s in e)e.hasOwnProperty(s)&&e[s]&&s.match(/^system\.adapter\./)&&"adapter"===e[s].type&&e[s].common&&e[s].common.blockly&&(console.log("Detected custom blockly: "+e[s].common.name),a.push(e[s].common.name));n.loadScripts(a,t)}},{key:"loadXMLDoc",value:function(e){return(window.DOMParser?function(e){return(new window.DOMParser).parseFromString(e,"text/xml")}:"undefined"!=typeof window.ActiveXObject&&new window.ActiveXObject("Microsoft.XMLDOM")?function(e){var t=new window.ActiveXObject("Microsoft.XMLDOM");return t.async="false",t.loadXML(e),t}:function(){return null})(e)}}]),n}(s().Component),jt=It,Tt=n(53329),At=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).state={changed:!1,source:a.props.source},!a.state.source&&a.props.isReturn&&(a.state.source="\nreturn false"),a}return(0,d.Z)(n,[{key:"componentDidMount",value:function(){setTimeout((function(){try{window.document.getElementById("source-text-area").focus()}catch(e){}}),100)}},{key:"handleCancel",value:function(){this.props.onClose(!1)}},{key:"handleOk",value:function(){this.props.isReturn&&!this.state.source.includes("return ")||this.props.onClose(this.state.source)}},{key:"onChange",value:function(e){this.setState({changed:!0,source:e})}},{key:"render",value:function(){var e=this,t=this.props.classes;return(0,se.jsxs)(Q.Z,{onClose:function(e,t){return!1},maxWidth:"lg",classes:{paper:t.dialog},fullWidth:!0,open:!0,"aria-labelledby":"source-dialog-title",children:[(0,se.jsx)(q.Z,{id:"source-dialog-title",children:k.I18n.t("Function editor")}),(0,se.jsxs)(Y.Z,{className:t.fullHeight,children:[this.props.args&&(0,se.jsxs)("div",{className:t.args,children:[(0,se.jsx)("span",{className:t.argsTitle,children:k.I18n.t("function (")}),this.props.args,(0,se.jsx)("span",{className:t.argsTitle,children:")"})]},"arguments"),(0,se.jsx)(lt,{adapterName:this.props.adapterName,runningInstances:this.props.runningInstances,className:t.textArea,style:{height:this.props.args?"calc(100% - 30px)":"100%"},name:"blockly",socket:this.props.socket,readOnly:!1,checkJs:!1,changed:this.state.changed,code:this.state.source,isDark:"dark"===this.props.themeType,onChange:function(t){return e.onChange(t)},language:"javascript"},"scriptEditor")]}),(0,se.jsxs)(K.Z,{children:[(0,se.jsx)(H.Z,{variant:"contained",onClick:function(){return e.handleOk()},color:"primary",startIcon:(0,se.jsx)(Tt.default,{}),children:k.I18n.t("Save")}),(0,se.jsx)(H.Z,{color:"grey",variant:"contained",onClick:function(){return e.handleCancel()},startIcon:(0,se.jsx)(ne.default,{}),children:k.I18n.t("Cancel")})]})]})}}]),n}(s().Component),Dt=(0,g.Z)((function(e){return{textArea:{width:"calc(100% - 10px)",resize:"none"},dialog:{height:"95%"},fullHeight:{height:"100%",overflow:"hidden"},args:{color:"dark"===e.palette.mode?"white":"black",height:30,width:"100%",fontSize:16},argsTitle:{color:"dark"===e.palette.mode?"white":"black",fontWeight:"bold"}}}))(At),Nt="style_wrapperRules__O-oAU",Et="style_rootWrapper__rXS-l",Ot="style_addClass__4KLUZ",Mt=n(32449),zt="style_switchesItem__DY9Qy",Zt="style_switchesItemActive__kglCJ",Rt="style_iconTheme__AotSq",Ft=n(24910),Bt={},Pt=function(e){var t=e.iconName,n=e.className,s=e.adapter,o=e.socket,i=e.onClick,r=(0,a.useState)(""),l=(0,w.Z)(r,2),c=l[0],u=l[1];if((0,a.useEffect)((function(){s&&o&&(Bt[s]=Bt[s]||o.getObject("system.adapter.".concat(s)),Bt[s].then((function(e){var t;return(null===e||void 0===e||null===(t=e.common)||void 0===t?void 0:t.icon)&&u("../../adapter/".concat(s,"/").concat(e.common.icon))})))}),[s,o]),s)return(0,se.jsx)("img",{onClick:function(e){return i&&i(e)},src:c||"",className:n,alt:""});var d=Ft[t||"Help"];return(0,se.jsx)(d,{className:n,onClick:function(e){return i&&i(e)}})};Pt.defaultProps={className:null,iconName:"Help"};var _t=Pt,Lt=function(e){var t=e.name,n=e.id,a=e.active,s=e.icon,o=e.adapter,i=e.socket,r=e.onDoubleClick,l=e.title,c=e.onTouchMove;return(0,se.jsxs)("div",{onDoubleClick:r,onTouchMove:c,title:k.I18n.t(l),className:k.Utils.clsx(zt,a&&Zt,"block-"+n),children:[(0,se.jsx)(_t,{iconName:s,className:Rt,adapter:o,socket:i}),(0,se.jsx)("span",{children:t?k.I18n.t(t):""})]},n)};Lt.defaultProps={name:"",active:!1,id:"",onDoubleClick:function(){}};var Ut=Lt,Wt="style_cardStyle__bzAxQ",Vt="style_cardStyleActive__BaK+z",Jt="style_controlMenu__RxkVe",Gt="style_closeBtn__-nF+7",Ht="style_isDelete__u9OAa",qt="style_drag_mobile__d9hW5",Yt=n(4942);function Kt(e,t,n){return"actions"===e?(0,dt.Z)((0,dt.Z)({},t),{},(0,Yt.Z)({},e,(0,dt.Z)((0,dt.Z)({},t[e]),{},(0,Yt.Z)({},n,(0,c.Z)(t[e][n]))))):(0,dt.Z)((0,dt.Z)({},t),{},(0,Yt.Z)({},e,(0,c.Z)(t[e])))}function Qt(e,t,n,a){switch(e){case"actions":case"conditions":return t[e][n]=t[e][n].filter((function(e){return e._id!==a})),t;default:return t[e]=t[e].filter((function(e){return e._id!==a})),t}}var Xt=n(11752),$t=n(61120),en={cardStyle:"style_cardStyle__Qk8PP",nameCard:"style_nameCard__eHe3n",cardStyleActive:"style_cardStyleActive__UjCy0",iconThemCard:"style_iconThemCard__tMl1-",iconThemCardSelectable:"style_iconThemCardSelectable__6mEII",iconHelp:"style_iconHelp__b28SN",inputCard:"style_inputCard__zwn8V",blockName:"style_blockName__T-Ud-",controlMenu:"style_controlMenu__kR476",closeBtn:"style_closeBtn__7c+6X",controlMenuTop:"style_controlMenuTop__OayQd",debugInfo:"style_debugInfo__kdwsD",fadeIn:"style_fadeIn__jT4pd",tagCard:"style_tagCard__n9gJP",displayFlex:"style_displayFlex__4QnOf",blockMarginTop:"style_blockMarginTop__ZM9lX",nameBlock:"style_nameBlock__H2Ujc",frontText:"style_frontText__yvugL",backText:"style_backText__nuybg",iconTag:"style_iconTag__x0Rub",displayItalic:"style_displayItalic__LY2l3"},tn=n(94427),nn=n(95857),an=n(31238),sn=n(32548),on=n(70810),rn="style_root__569oE",ln="style_square__rf4cS",cn="style_icon__bnClh",un=function(e){var t=e.fullWidth,n=e.size,a=e.onClick,s=e.style,o=e.className,i=e.value,r=e.square,l=e.icon;return(0,se.jsx)(tn.Button,{variant:"outlined",color:"primary",onClick:a,fullWidth:t,style:s,className:k.Utils.clsx(rn,o,r?ln:""),margin:"normal",size:n,children:l?(0,se.jsx)(k.Icon,{className:cn,src:l}):i})};un.defaultProps={value:"",className:null,variant:"standard",size:"medium",fullWidth:!1,square:!1};var dn=un,pn="style_root__HWP9G",hn=function(e){var t=e.size,n=e.value,s=(e.style,e.title),o=e.onChange,i=e.className,r=e.customValue,l=e.disabled,c=(0,a.useState)(!1),u=(0,w.Z)(c,2),d=u[0],p=u[1];return(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(tn.Checkbox,{disabled:l,checked:Boolean(r?n:d),className:k.Utils.clsx(pn,i),onChange:function(e){r&&p(e.target.checked),o(e.target.checked)},size:t}),s||null]})};hn.defaultProps={value:!1,disabled:!1,type:null,error:"",className:null,table:!1,native:{},variant:"standard",size:"medium",component:null,styleComponentBlock:null,onChange:function(){},fullWidth:!1,autoComplete:"",customValue:!1,label:"all"};var gn=(0,a.memo)(hn),mn={root:"style_root__Ohc9u"},fn=function(e){var t=e.autoFocus,n=e.fullWidth,s=e.disabled,o=e.multiline,i=e.rows,r=e.autoComplete,l=e.label,c=e.error,u=e.size,d=e.variant,p=e.value,h=e.type,g=e.style,m=e.onChange,f=e.className,v=e.customValue,y=e.icon,b=(0,a.useState)(""),S=(0,w.Z)(b,2),x=S[0],C=S[1];return(0,se.jsx)(tn.TextField,{error:!!c,autoFocus:t,fullWidth:n,label:l,disabled:s,variant:d,multiline:o,rows:i,value:v?p:x,type:h,helperText:c,style:g,className:k.Utils.clsx(mn.root,f),autoComplete:r,onChange:function(e){!v&&C(e.target.value),m(e.target.value)},InputProps:{endAdornment:y?(0,se.jsx)(Se.Z,{position:"end",children:(0,se.jsx)(k.Icon,{className:mn.icon,src:y})}):null},margin:"normal",size:u})};fn.defaultProps={value:"",type:"text",error:"",className:null,table:!1,native:{},variant:"standard",size:"medium",component:null,styleComponentBlock:null,onChange:function(){},fullWidth:!1,autoComplete:"",customValue:!1,autoFocus:!1,rows:1};var vn=fn,yn=(0,g.Z)({root:{margin:"10px 0","& .MuiFormControl-marginNormal":{marginTop:0,marginBottom:0},"& > *":{color:"#2d0440 !important"},"& .MuiSelect-icon":{color:"#81688c"},"& label.Mui-focused":{color:"#81688c"},"& .MuiInput-underline:after":{borderBottomColor:"#510573"},"& .MuiInput-underline:before":{borderBottomColor:"#81688c"},"& .MuiInput-underline:hover:before":{borderBottomColor:"#81688c"}}})(tn.FormControl),bn=function(e){var t=e.multiple,n=e.value,s=e.customValue,o=e.socket,i=e.title,r=e.attr,l=e.adapter,c=e.style,u=e.onChange,d=e.className,p=e.onInstanceHide,h=(0,a.useState)(n||"test1"),g=(0,w.Z)(h,2),m=g[0],f=g[1],v=(0,a.useState)([]),y=(0,w.Z)(v,2),b=y[0],S=y[1];return(0,a.useEffect)((function(){o&&o.getAdapterInstances(l).then((function(e){var t=e.map((function(e){return{value:e._id.replace("system.adapter.",""),title:e._id.replace("system.adapter.","")}}));1===t.length?p(t[0].value):t.unshift({value:l,title:k.I18n.t("All")}),S(t)}))}),[o,l,p]),(0,se.jsxs)(yn,{className:d,fullWidth:!0,style:c,children:[(0,se.jsx)(tn.Select,{variant:"standard",value:(s?n:m)||"_",fullWidth:!0,multiple:t,renderValue:function(e){return t&&e.join?e.join(", "):e},onChange:function(e){!s&&f(e.target.value),u(e.target.value)},input:r?(0,se.jsx)(tn.Input,{name:r,id:r+"-helper"}):(0,se.jsx)(tn.Input,{name:r}),children:b.map((function(e){return(0,se.jsxs)(tn.MenuItem,{style:{placeContent:"space-between"},value:e.value||"_",children:[k.I18n.t(e.title),e.title2&&(0,se.jsx)("div",{children:e.title2})]},"key-"+e.value)}))}),(0,se.jsx)(tn.FormHelperText,{children:k.I18n.t(i)})]})};bn.defaultProps={value:"",className:null,table:!1,customValue:!1};var kn=bn,Sn="style_modalWrapper__mluI5",xn="style_modalDialog__Pki9P",wn=n(18181),Cn=function(e){var t=e.open,n=e.onClose,s=e.children,o=e.titleButtonApply,i=e.titleButtonClose,r=e.onApply,l=e.className,c=e.textInput,u=e.defaultValue,d=(0,a.useState)(u),p=(0,w.Z)(d,2),h=p[0],g=p[1];return(0,se.jsxs)(tn.Dialog,{open:t,maxWidth:"md",disableEscapeKeyDown:!1,onClose:n,classes:{paper:xn},className:Sn,children:[(0,se.jsxs)(tn.DialogContent,{children:[c&&(0,se.jsx)(vn,{className:l,autoComplete:"off",fullWidth:!0,variant:"outlined",size:"medium",rows:10,multiline:!0,value:h,onChange:g,customValue:!0}),!c&&s]}),(0,se.jsxs)(tn.DialogActions,{children:[(0,se.jsx)(H.Z,{onClick:function(){return r(c?h:null)},variant:"contained",color:"primary",children:wn.default.t(o)}),(0,se.jsx)(H.Z,{color:"grey",onClick:n,variant:"contained",children:wn.default.t(i)})]})]})};Cn.defaultProps={open:!1,onApply:function(){},onClose:function(){},titleButtonClose:"Cancel",titleButtonApply:"Ok"};var In=Cn,jn="style_root__GxGj0",Tn=function(e){var t=e.multiple,n=e.value,s=e.customValue,o=e.title,i=e.attr,r=e.options,l=e.style,c=e.onChange,u=e.className,d=e.doNotTranslate,p=e.doNotTranslate2,h=(0,a.useState)(void 0===n?r[0].value:n),g=(0,w.Z)(h,2),m=g[0],f=g[1],v=s?n:m,y=""===v||null===v||void 0===v?"_":v;return(0,se.jsxs)(tn.FormControl,{variant:"standard",className:k.Utils.clsx(jn,u),fullWidth:!0,style:l,children:[(0,se.jsxs)(tn.Select,{variant:"standard",value:y,fullWidth:!0,multiple:t,renderValue:function(e){if(t&&e.join){e.sort();var n=e.indexOf("0");-1!==n&&(e.splice(n,1),e.push("0")),-1!==(n=e.indexOf("_"))&&(e.splice(n,1),e.unshift("_"));var a=r.find((function(e){return e.only}));if(e.includes(a.value))return a.titleShort?d?a.titleShort:k.I18n.t(a.titleShort):d?a.title:k.I18n.t(a.title);var s=e.map((function(e){return r.find((function(t){return t.value===e||"_"===e&&""===t.value}))||e})).map((function(e){return"object"===typeof e?e.titleShort?d?e.titleShort:k.I18n.t(e.titleShort):d?e.title:k.I18n.t(e.title):d?e:k.I18n.t(e)}));return s.join(", ")}var o=r?r.find((function(t){return t.value===e||"_"===e&&""===t.value})):null;return null!==o&&void 0!==o&&o.title?d?null===o||void 0===o?void 0:o.title:k.I18n.t(null===o||void 0===o?void 0:o.title):e},onChange:function(e){if(!s&&f(e.target.value),t){var n=r.find((function(e){return e.only}));if(n){var a=n.value;if(e.target.value.length===r.length-1&&e.target.value.includes(a))return c(e.target.value.filter((function(e){return e!==a})),i);if(e.target.value.includes(a))return c(r.map((function(e){return e.value})),i)}}c(e.target.value,i)},input:i?(0,se.jsx)(tn.Input,{name:i,id:"".concat(i,"-helper")}):(0,se.jsx)(tn.Input,{name:i}),children:[!t&&r&&r.map((function(e){return(0,se.jsxs)(tn.MenuItem,{style:{placeContent:"space-between"},value:""===e.value||null===e.value||void 0===e.value?"_":e.value,children:[d?e.title:k.I18n.t(e.title),e.title2&&(0,se.jsx)("div",{children:p?e.title2:k.I18n.t(e.title2)})]},"key-".concat(e.value))})),t&&r&&r.map((function(e){return(0,se.jsxs)(tn.MenuItem,{style:{placeContent:"space-between"},value:e.value||"_",children:[d?e.title:k.I18n.t(e.title)," ",(0,se.jsx)(gn,{customValue:!0,value:n.includes(e.value)})]},"key-".concat(e.value))}))]}),o?(0,se.jsx)(tn.FormHelperText,{children:k.I18n.t(o)}):null]})};Tn.defaultProps={value:"",className:null,table:!1,customValue:!1,multiple:!1};var An=Tn,Dn="style_root__EDdVB",Nn="style_mark__oVsRI",En=function(e){e.fullWidth;var t=e.autoComplete,n=e.label,s=e.error,o=e.size,i=e.variant,r=e.value,l=e.type,c=e.style,u=e.onChange,d=e.className,p=e.customValue,h=e.min,g=e.max,m=e.step,f=e.unit,v=(0,a.useState)(0),y=(0,w.Z)(v,2),b=y[0],S=y[1];h=void 0!==h?h:0,g=void 0!==g?g:0,m=void 0!==m?m:(g-h)/100;var x=[{value:h,label:h+(f||"")},{value:g,label:g+(f||"")}];return(0,se.jsx)(tn.Slider,{defaultValue:p?r:b,"aria-labelledby":"discrete-slider",valueLabelDisplay:"auto",classes:{mark:Nn},marks:x,step:m,min:h,max:g,error:s||"",label:n,variant:i,value:p?r:b,type:l,style:c,className:k.Utils.clsx(Dn,d),autoComplete:t,onChange:function(e,t){!p&&S(t),u(t)},margin:"normal",size:o})};En.defaultProps={value:"",type:"text",error:"",className:null,table:!1,native:{},variant:"standard",size:"medium",component:null,styleComponentBlock:null,onChange:function(){},fullWidth:!1,autoComplete:"",customValue:!1};var On=En,Mn="style_root__gbUwF",zn=function(e){var t=e.label,n=e.size,s=e.value,o=e.style,i=e.onChange,r=e.className,l=e.customValue,c=(0,a.useState)(!1),u=(0,w.Z)(c,2),d=u[0],p=u[1];return(0,se.jsx)(tn.FormControlLabel,{className:Mn,control:(0,se.jsx)(tn.Switch,{checked:l?s:d,style:o,className:r,onChange:function(e){l||p(e.target.checked),i(e.target.checked)},size:n}),label:t})};zn.defaultProps={value:!1,type:"text",error:"",className:null,table:!1,native:{},variant:"standard",size:"medium",component:null,styleComponentBlock:null,onChange:function(){},fullWidth:!1,autoComplete:"",customValue:!1,label:"all"};var Zn=(0,a.memo)(zn),Rn="style_root__K8xdq",Fn=function(e){var t=e.value,n=e.style,a=e.onChange,s=e.className;return(0,se.jsx)(tn.TextField,{variant:"standard",id:"time",type:"time",onChange:function(e){return a(e.currentTarget.value)},value:t,className:k.Utils.clsx(Rn,s),fullWidth:!0,style:n,InputLabelProps:{shrink:!0},inputProps:{step:300}})};Fn.defaultProps={value:"",className:null,table:!1};var Bn=Fn,Pn="style_root__MKvTE",_n=[31,29,31,30,31,30,31,31,30,31,30,31],Ln=function(e){var t=e.value,n=e.onChange,a=e.className,s=(e.title,e.style),o=(t||"01.01").toString().split("."),i=(0,w.Z)(o,2),r=i[0],l=i[1];l=parseInt(l,10)||0,(r=parseInt(r,10)||0)>12?r=12:r<0&&(r=0),l>_n[r]?l=_n[r]:l<0&&(l=0);for(var c=[],u=0;u<_n[r];u++)c.push(u+1);return(0,se.jsxs)("div",{children:[(0,se.jsx)(tn.FormControl,{variant:"standard",className:k.Utils.clsx(Pn,a),style:s,children:(0,se.jsxs)(tn.Select,{variant:"standard",className:k.Utils.clsx(Pn,a),margin:"dense",label:k.I18n.t("Month"),onChange:function(e){return n("".concat(e.target.value.toString().padStart(2,"0"),".").concat(l.toString().padStart(2,"0")))},value:r,children:[(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:0,children:k.I18n.t("Any month")},0),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:1,children:k.I18n.t("January")},1),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:2,children:k.I18n.t("February")},2),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:3,children:k.I18n.t("March")},3),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:4,children:k.I18n.t("April")},4),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:5,children:k.I18n.t("May")},5),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:6,children:k.I18n.t("June")},6),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:7,children:k.I18n.t("July")},7),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:8,children:k.I18n.t("August")},8),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:9,children:k.I18n.t("September")},9),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:10,children:k.I18n.t("October")},10),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:11,children:k.I18n.t("November")},11),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:12,children:k.I18n.t("December")},12)]})}),(0,se.jsx)(tn.FormControl,{variant:"standard",className:k.Utils.clsx(Pn,a),style:s,children:(0,se.jsxs)(tn.Select,{variant:"standard",className:k.Utils.clsx(Pn,a),margin:"dense",label:k.I18n.t("Date"),onChange:function(e){return n("".concat(r.toString().padStart(2,"0"),".").concat(e.target.value.toString().padStart(2,"0")))},value:l,children:[(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:0,children:k.I18n.t("Any")},"A"),c.map((function(e){return(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:e,children:e},e)}))]})})]})};Ln.defaultProps={value:"",className:null};var Un,Wn=Ln,Vn={getName:function(e){return Un=Un||k.I18n.getLanguage(),"object"===typeof e?e[Un]||e.en:e}},Jn=0,Gn=1,Hn=2,qn=3,Yn=4,Kn=5,Qn=6,Xn=7,$n=8,ea=[{selector:".blocks-triggers",content:"Select triggers"},{selector:".block-TriggerScheduleBlock",content:"Double click to add the block"},{selector:".tag-card",content:"Open drop down menu"},{selector:".tag-card-interval",content:"Select interval"},{selector:".blocks-actions",content:"Select action blocks"},{selector:".block-ActionPrintText",content:"Double click to add the block"},{selector:".button-js-code",content:"Check the script"},{selector:".button-js-code",content:"Switch back to rules"},{selector:".button-save",content:"Save the script"}],ta=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e,s){var o;(0,u.Z)(this,n),(o=t.call(this,e)).renderText=function(e,t,n){var s=o.props.className,i=e.attr,r=e.frontText,l=e.backText,c=e.nameBlock,u=e.name,d=e.doNotTranslate,p=e.doNotTranslateBack;return(0,se.jsxs)(a.Fragment,{children:[(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),children:[r&&(0,se.jsx)("div",{className:en.frontText,children:d?r:k.I18n.t(r)}),(0,se.jsx)(vn,{className:s,autoComplete:"off",label:Vn.getName(u),variant:"outlined",size:"small",fullWidth:!0,value:t,onChange:n,customValue:!0}),l&&(0,se.jsx)("div",{className:en.backText,children:p?l:k.I18n.t(l)})]}),c&&(0,se.jsx)("div",{className:en.nameBlock,children:k.I18n.t(c)})]},i)},o.renderSwitch=function(e,t,n){var a=o.props.className,s=e.attr,i=e.frontText,r=e.backText,l=e.nameBlock,c=e.doNotTranslate,u=e.doNotTranslateBack;return(0,se.jsxs)("div",{children:[(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),children:[i&&(0,se.jsx)("div",{className:en.frontText,children:c?i:k.I18n.t(i)}),(0,se.jsx)(Zn,{className:a,label:"",customValue:!0,value:t,onChange:n}),r&&(0,se.jsx)("div",{className:en.backText,children:u?r:k.I18n.t(r)})]}),l&&(0,se.jsx)("div",{className:en.nameBlock,children:k.I18n.t(l)})]},s)},o.renderNameText=function(e,t){var n=e.attr,a=e.signature,s=e.doNotTranslate,o=e.defaultValue;return(0,se.jsx)("div",{className:k.Utils.clsx(a?en.displayItalic:en.displayFlex,en.blockMarginTop),children:t?s?t:k.I18n.t(t):s?o:k.I18n.t(o)},n)},o.renderNumber=function(e,t,n){var a=o.props.className,s=o.state.settings,i=e.attr,r=e.backText,l=e.frontText,c=e.openCheckbox,u=e.doNotTranslate,d=e.doNotTranslateBack,p=!0;return c&&(p="boolean"!==typeof s.offset||s.offset),p?(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),children:[l&&(0,se.jsx)("div",{className:en.frontText,children:u?l:k.I18n.t(l)}),(0,se.jsx)(vn,{className:k.Utils.clsx(a,e.className),fullWidth:!0,autoComplete:"off",label:e.noHelperText?"":"number",variant:"outlined",size:"small",type:"number",value:t,onChange:n,customValue:!0}),r&&(0,se.jsx)("div",{className:en.backText,children:d?r:k.I18n.t(r)})]},i):null},o.renderColor=function(e,t,n){var a=o.props.className,s=e.attr,i=e.backText,r=e.frontText,l=e.doNotTranslate,c=e.doNotTranslateBack;return(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),children:[r&&(0,se.jsx)("div",{className:en.frontText,children:l?r:k.I18n.t(r)}),(0,se.jsx)(vn,{className:a,autoComplete:"off",fullWidth:!0,variant:"outlined",size:"small",type:"color",value:t,onChange:n}),i&&(0,se.jsx)("div",{className:en.backText,children:c?i:k.I18n.t(i)})]},s)},o.renderCheckbox=function(e,t,n){var a=o.props.className,s=o.state.settings,i=e.attr,r=e.backText,l=e.frontText,c=e.defaultValue,u=e.doNotTranslate,d=e.doNotTranslateBack;return(0,se.jsxs)("div",{className:en.displayFlex,children:[l&&(0,se.jsx)("div",{className:en.frontText,children:u?l:k.I18n.t(l)}),(0,se.jsx)(gn,{className:a,size:"small",style:{marginRight:5},value:"boolean"===typeof s[i]?s[i]:c,customValue:!0,onChange:n}),r&&(0,se.jsx)("div",{onClick:function(){return n("boolean"===typeof s[i]?!s[i]:!c)},className:en.backText,children:d?r:k.I18n.t(r)})]},i)},o.renderSlider=function(e,t,n){var a=o.props.className,s=e.attr,i=e.frontText,r=e.backText,l=e.nameBlock,c=e.min,u=e.max,d=e.step,p=e.unit,h=e.doNotTranslate,g=e.doNotTranslateBack;return(0,se.jsxs)("div",{children:[(0,se.jsxs)("div",{className:en.displayFlex,style:{marginRight:20},children:[i&&(0,se.jsx)("div",{className:en.frontText,children:h?i:k.I18n.t(i)}),(0,se.jsx)(On,{customValue:!0,min:c,max:u,step:d,unit:p,className:a,autoComplete:"off",label:"number",variant:"outlined",size:"small",value:t,onChange:function(e){console.log(e),n(e)}}),r&&(0,se.jsx)("div",{style:{marginLeft:20},className:en.backText,children:g?r:k.I18n.t(r)})]}),l&&(0,se.jsx)("div",{className:en.nameBlock,children:k.I18n.t(l)})]},s)},o.renderButton=function(e,t,n){var a=o.props.className,s=e.attr,i=e.frontText,r=e.backText,l=e.buttonText,c=e.doNotTranslate,u=e.doNotTranslateBack;return(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),children:[i&&(0,se.jsx)("div",{className:en.frontText,children:c?i:k.I18n.t(i)}),(0,se.jsx)(dn,{label:l,fullWidth:!0,value:t,className:a,onClick:n}),r&&(0,se.jsx)("div",{className:en.backText,children:u?r:k.I18n.t(r)})]},s)},o.findIcon=function(e){var t;if(!e)return Promise.resolve(null);if(null!==(t=e.common)&&void 0!==t&&t.icon)return Promise.resolve((0,on.getSelectIdIcon)(e,"../.."));if("state"===e.type||"channel"===e.type){var n=e._id.split(".");n.pop();var a=n.join(".");return o.props.socket.getObject(a).then((function(e){return o.findIcon(e)})).catch((function(){return null}))}},o.renderObjectID=function(e,t,n){var a=e.attr,s=e.openCheckbox,i=e.checkReadOnly,r=o.state.settings,l=o.state["showSelectId".concat(a)],c=o.props,u=c.className,d=c.socket,p=!0;return s&&(p="boolean"!==typeof r.offset||r.offset),r[a]&&!o.state[r[a]]&&setTimeout((function(){d.getObject(t).then((function(e){o.findIcon(e).then((function(t){var n,s;return o.setState((s={},(0,Yt.Z)(s,r[a],e),(0,Yt.Z)(s,"".concat(r[a],"___icon"),t),(0,Yt.Z)(s,"error",i&&o.lastObjectIdChange&&Date.now()-o.lastObjectIdChange<1e3&&!1===(null===e||void 0===e||null===(n=e.common)||void 0===n?void 0:n.write)?k.I18n.t("Read only ID selected: %s",r[a]):""),s))}))}))}),0),p?(0,se.jsxs)("div",{className:en.blockMarginTop,children:[(0,se.jsxs)("div",{className:en.displayFlex,children:[e.title?(0,se.jsx)("div",{children:k.I18n.t(e.title)}):null,(0,se.jsx)(vn,{className:u,autoComplete:"off",fullWidth:!0,disabled:!0,variant:"outlined",size:"small",value:t,customValue:!0}),(0,se.jsx)(dn,{icon:o.state["".concat(o.state.settings[e.attr],"___icon")],square:!0,style:{marginLeft:7},value:"...",className:u,onClick:function(){var e={};e["showSelectId".concat(a)]=!0,o.setState(e)}})]}),o.state[o.state.settings[e.attr]]&&(0,se.jsx)("div",{className:k.Utils.clsx(en.nameBlock,en.displayItalic),children:k.Utils.getObjectNameFromObj(o.state[r[a]],k.I18n.getLanguage())}),l?(0,se.jsx)(an.default,{imagePrefix:"../..",dialogName:"javascript",themeType:k.Utils.getThemeName(),socket:d,statesOnly:!0,selected:t,onClose:function(){var e={};e["showSelectId".concat(a)]=!1,o.setState(e)},onOk:function(e,t,s){var i={};i["showSelectId".concat(a)]=!1,o.setState(i,(function(){return d.getObject(e).then((function(t){var s;o.lastObjectIdChange=Date.now(),n((s={},(0,Yt.Z)(s,a,e),(0,Yt.Z)(s,"".concat(a,"Role"),t.common.role),(0,Yt.Z)(s,"".concat(a,"Type"),t.common.type),(0,Yt.Z)(s,"".concat(a,"Unit"),t.common.unit),(0,Yt.Z)(s,"".concat(a,"States"),t.common.states),(0,Yt.Z)(s,"".concat(a,"Min"),t.common.min),(0,Yt.Z)(s,"".concat(a,"Max"),t.common.max),(0,Yt.Z)(s,"".concat(a,"Step"),t.common.step),(0,Yt.Z)(s,"".concat(a,"Def"),t.common.def),(0,Yt.Z)(s,"".concat(a,"Write"),t.common.write),(0,Yt.Z)(s,"".concat(a,"Read"),t.common.read),s),null,(function(){return o.props.setOnUpdate&&o.props.setOnUpdate(!0)}))}))}))}}):null]},a):null},o.renderIconTag=function(){return(0,se.jsx)("div",{className:en.iconTag,onClick:function(e){o.state.settings.tagCard&&(o.state.tagCardArray.length<3?o.onChangeTag():o.setState({openTagMenu:e.currentTarget}))},children:o.state.settings.tagCard})},o.renderTime=function(e,t,n){var a=e.attr,s=e.backText,o=e.frontText,i=e.doNotTranslate,r=e.doNotTranslateBack;return(0,se.jsxs)("div",{className:en.displayFlex,style:{whiteSpace:"nowrap"},children:[o&&(0,se.jsx)("div",{className:en.frontText,children:i?o:k.I18n.t(o)}),(0,se.jsx)(Bn,{value:t,onChange:n}),s&&(0,se.jsx)("div",{className:en.backText,children:r?s:k.I18n.t(s)})]},a)},o.renderSelect=function(e,t,n){var a=o.props.className,s=e.name,i=e.options,r=e.frontText,l=e.backText,c=e.attr,u=e.multiple,d=e.doNotTranslate,p=e.doNotTranslate2,h=e.doNotTranslateBack;return(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),style:{whiteSpace:"nowrap"},children:[r&&(0,se.jsx)("div",{className:en.frontText,children:k.I18n.t(r)}),(0,se.jsx)(An,{attr:c,doNotTranslate:d,doNotTranslate2:p,title:s,className:a,options:i,value:t,onChange:n,multiple:u,customValue:!0}),l&&(0,se.jsx)("div",{className:en.backText,children:h?l:k.I18n.t(l)})]},c)},o.renderInstance=function(e,t,n){var a=o.props,s=a.className,i=a.socket,r=e.name,l=e.options,u=e.frontText,d=e.backText,p=e.attr,h=e.adapter,g=e.doNotTranslate,m=e.doNotTranslateBack;return o.state.hideAttributes.includes(p)?null:(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),style:{whiteSpace:"nowrap"},children:[u&&(0,se.jsx)("div",{className:en.frontText,children:g?u:k.I18n.t(u)}),(0,se.jsx)(kn,{attr:p,socket:i,adapter:h,title:r,className:s,options:l,value:t,onChange:n,customValue:!0,onInstanceHide:function(e){return o.setState({hideAttributes:[].concat((0,c.Z)(o.state.hideAttributes),[p])},(function(){return n(e)}))}}),d&&(0,se.jsx)("div",{className:en.backText,children:m?d:k.I18n.t(d)})]},p)},o.renderDialog=function(e,t,n){var a=e.onShowDialog,s=e.frontText,o=e.backText,i=e.attr,r=e.icon,l=e.doNotTranslate,c=e.doNotTranslateBack;return(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),style:{whiteSpace:"nowrap"},children:[s&&(0,se.jsx)("div",{className:en.frontText,children:l?s:k.I18n.t(s)}),(0,se.jsx)(_t,{iconName:r,className:k.Utils.clsx(en.iconDialog),onClick:function(e){return a&&a()}}),o&&(0,se.jsx)("div",{className:en.backText,children:c?o:k.I18n.t(o)})]},i)},o.renderModalInput=function(e,t,n){var a=o.state.openModal,s=o.props.className,i=e.attr,r=e.nameBlock,l=e.frontText,c=e.backText,u=e.noTextEdit,d=e.doNotTranslate,p=e.doNotTranslateBack;return(0,se.jsxs)("div",{children:[(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),children:[l&&(0,se.jsx)("div",{className:en.frontText,children:d?l:k.I18n.t(l)}),(0,se.jsx)(vn,{disabled:!!u,className:s,autoComplete:"off",fullWidth:!0,variant:"outlined",size:"small",value:t,onChange:n,customValue:!0}),(0,se.jsx)(dn,{square:!0,style:{marginLeft:5},value:"...",className:s,onClick:function(){return o.setState({openModal:!0})}}),c&&(0,se.jsx)("div",{className:en.backText,children:p?c:k.I18n.t(c)})]}),a?(0,se.jsx)(In,{open:!0,onApply:function(e){return o.setState({openModal:!1},(function(){return null!==e&&void 0!==e&&n(e)}))},onClose:function(){return o.setState({openModal:!1})},defaultValue:t,textInput:!0}):null,r&&(0,se.jsx)("div",{className:en.nameBlock,children:k.I18n.t(r)})]},i)},o.renderDate=function(e,t,n){var a=e.attr,s=e.backText,o=e.frontText,i=e.doNotTranslate,r=e.doNotTranslateBack;return(0,se.jsxs)("div",{className:en.displayFlex,style:{whiteSpace:"nowrap"},children:[o&&(0,se.jsx)("div",{className:en.frontText,children:i?o:k.I18n.t(o)}),(0,se.jsx)(Wn,{value:t,onChange:n}),s&&(0,se.jsx)("div",{className:en.backText,children:r?s:k.I18n.t(s)})]},a)},o.renderTags=function(){var e=o.state,t=e.tagCardArray,n=e.openTagMenu,a=o.state.settings.tagCard,s="="!==a&&"<>"!==a&&">="!==a&&"()"!==a&&"."!==a&&"<="!==a&&"<"!==a&&">"!==a?k.I18n.t(a):a;return t.length>=3&&(s=(0,se.jsxs)("div",{children:[(0,se.jsx)("div",{"aria-controls":"simple-menu","aria-haspopup":"true",onClick:function(e){o.setState({openTagMenu:e.currentTarget},(function(){o.props.isTourOpen&&o.props.tourStep===Hn&&setTimeout((function(){return o.props.setTourStep(qn)}),300)}))},children:s}),(0,se.jsx)(tn.Menu,{id:"simple-menu",anchorEl:n,keepMounted:!0,open:Boolean(n),onClose:function(){return o.setState({openTagMenu:null})},children:t.map((function(e){var t=e;return"string"!==typeof e&&(t=e.title),(0,se.jsxs)(tn.MenuItem,{selected:t===a,className:"tag-card-"+t,style:{placeContent:"space-between"},onClick:function(){var e=(0,dt.Z)((0,dt.Z)({},o.state.settings),{},{tagCard:t});o.setState({openTagMenu:null,settings:e},(function(){o.props.onChange(e),o.onTagChange(t)})),o.props.isTourOpen&&(o.props.tourStep===Hn||o.props.tourStep===qn)&&"interval"===t&&setTimeout((function(){return o.props.setTourStep(Yn)}),500)},children:[-1!==t.search(/>|<|<>|<=|>=|=/)?t:k.I18n.t(t),"string"!==typeof e&&e.title2&&(0,se.jsx)("div",{style:{marginLeft:4},children:k.I18n.t(e.title2)})]},t)}))})]})),s},o.onChangeTag=function(){var e=o.state,t=e.tagCardArray,n=e.settings,a=e.settings.tagCard,s=(0,c.Z)(t);if("string"!==typeof s[0]&&(s=s.map((function(e){return e.title}))),a&&s.length<3){var i=(0,dt.Z)({},n),r=s[(s.indexOf(a)+1)%s.length];i.tagCard=r,o.setState({settings:i},(function(){o.props.onChange(i),o.onTagChange(r)}))}},o.componentDidMount=function(){o.onTagChange()},o.componentDidUpdate=function(e){"triggers"!==o.props.acceptedBy&&o.props.onUpdate&&setTimeout((function(){return o.onUpdate()}),0)},o.onChangeInput=function(e){return function(t,n,a){var s=JSON.parse(JSON.stringify(o.state.settings));"object"!==typeof t||n&&"function"!==typeof n?s[n||e]=t:Object.keys(t).forEach((function(e){return s[e]=t[e]})),s.id=o.getData().id,s._id=o.props._id,o.setState({settings:s},(function(){o.onValueChanged(t,n||e),o.props.onChange(s),a&&a()}))}},o.render=function(){var e=o.state,t=e.inputs,n=e.name,s=e.icon,i=e.iconTag,r=e.settings,l=e.adapter,c=e.settings.tagCard,u=e.helpDialog,d=o.props,p=d.socket,h=d.notFound;return(0,se.jsxs)(a.Fragment,{children:[i?o.renderIconTag():(0,se.jsx)(_t,{iconName:s,className:k.Utils.clsx(en.iconThemCard,c&&o.state.tagCardArray.length&&en.iconThemCardSelectable),adapter:l,socket:p,onClick:function(e){c&&(o.state.tagCardArray.length<3?o.onChangeTag():o.setState({openTagMenu:e.currentTarget}))}}),(0,se.jsxs)("div",{className:en.blockName,children:[(0,se.jsxs)("span",{className:en.nameCard,children:[k.I18n.t(n),h?k.I18n.t("%s not found",r.id):"",u?(0,se.jsx)(E.Z,{className:en.iconHelp,size:"small",onClick:function(){return o.setState({helpText:k.I18n.t(u)})},children:(0,se.jsx)(nn.Z,{})}):null]}),t.filter((function(e){var t=e.nameRender;return o[t]})).map((function(e){var t=e.nameRender,n=e.defaultValue,a=e.attr,s=e.options;return o[t](e,void 0!==r[a]?r[a]:n,o.onChangeInput(a),s||[])}))]}),c&&(0,se.jsx)("div",{className:en.controlMenuTop,style:{opacity:1,height:22,top:-22},children:(0,se.jsx)("div",{onClick:function(){return o.onChangeTag()},className:k.Utils.clsx(en.tagCard,"tag-card"),children:o.renderTags()})}),o.renderDebugInfo(),o.state.error?(0,se.jsx)(sn.default,{title:k.I18n.t("Warning"),text:o.state.error,onClose:function(){return o.setState({error:""})}}):null,o.state.helpText?(0,se.jsx)(y.default,{title:k.I18n.t("Instructions"),text:o.state.helpText,onClose:function(){return o.setState({helpText:""})}}):null,o.renderSpecific()]})},s=s||{};var i=e.settings||{tagCard:s.tagCardArray?"string"!==typeof s.tagCardArray[0]?s.tagCardArray[0].title:s.tagCardArray[0]:""};return!i.tagCard&&s.tagCardArray&&(i.tagCard="string"!==typeof s.tagCardArray[0]?s.tagCardArray[0].title:s.tagCardArray[0]),o.state={inputs:s.inputs||e.inputs||[],name:s.name||e.name||"",icon:s.icon||e.icon||"",adapter:s.adapter||e.adapter||"",helpDialog:s.helpDialog||e.helpDialog||"",tagCardArray:s.tagCardArray||[],openTagMenu:!1,openModal:!1,iconTag:!1,error:"",helpText:"",oid:{},instanceSelectionOptions:[],instanceSelectionDef:"",hideAttributes:[],settings:i,debugMessage:null,enableSimulation:o.props.enableSimulation},o.debugHideTimeout=null,o}return(0,d.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this;if(e&&e.settings){var n=JSON.parse(JSON.stringify(e.settings));!n.tagCard&&this.state.tagCardArray&&this.state.tagCardArray.length&&(n.tagCard="string"!==typeof this.state.tagCardArray[0]?this.state.tagCardArray[0].title:this.state.tagCardArray[0]);var a=null;e.onDebugMessage&&e.onDebugMessage.blockId===this.props._id&&((a={}).debugMessage=JSON.parse(JSON.stringify(e.onDebugMessage)),this.debugHideTimeout&&clearTimeout(this.debugHideTimeout),this.debugHideTimeout=setTimeout((function(){return t.setState({debugMessage:null})}),e.onDebugMessage.hideTimeout||5e3)),JSON.stringify(n)!==JSON.stringify(this.state.settings)&&((a=a||{}).settings=n),this.state.enableSimulation!==e.enableSimulation&&((a=a||{}).enableSimulation=e.enableSimulation),a&&this.setState(a)}else console.log(JSON.stringify(e))}},{key:"componentWillUnmount",value:function(){this.debugHideTimeout&&clearTimeout(this.debugHideTimeout),this.debugHideTimeout=null}},{key:"onTagChange",value:function(e,t){var n=!1,a=JSON.parse(JSON.stringify(this.state.settings));this.state.inputs.forEach((function(e){e.attr&&void 0!==e.defaultValue&&void 0===a[e.attr]&&(n=!0,a[e.attr]=e.defaultValue)})),n?(this.setState({settings:a},(function(){return t&&t()})),this.props.onChange(a)):t&&t()}},{key:"onUpdate",value:function(){}},{key:"onValueChanged",value:function(e,t){}},{key:"renderSpecific",value:function(){return null}},{key:"renderDebugInfo",value:function(){return this.state.debugMessage?(0,se.jsx)("div",{className:en.debugInfo,style:{opacity:1,height:22,bottom:-22},children:this.renderDebug?this.renderDebug(this.state.debugMessage):k.I18n.t("executed")},this.state.debugMessage.ts):null}}],[{key:"getReplacesInText",value:function(e){var t,n="";return null!==(t=e.trigger)&&void 0!==t&&t.oidType?n=".replace(/%s/g, obj.state.val).replace(/%id/g, obj.id).replace(/%name/g, obj.common && obj.common.name).replace(/%old/g, obj.oldState.val)":e.conditionsStates.length&&(n=".replace(/%s/g, ".concat(e.conditionsStates[0].name,').replace(/%id/g, "').concat(e.conditionsStates[0].id,'")')),n}}]),n}(a.PureComponent),na={en:{name:"Google - English",engine:"google",params:[]},de:{name:"Google - Deutsch",engine:"google",params:[]},ru:{name:"Google - \u0420\u0443\u0441\u0441\u043a\u0438\u0439",engine:"google",params:[]},it:{name:"Google - Italiano",engine:"google",params:[]},es:{name:"Google - Espaniol",engine:"google",params:[]},fr:{name:"Google - Fran\xe7ais",engine:"google",params:[]},ru_YA:{name:"Yandex - \u0420\u0443\u0441\u0441\u043a\u0438\u0439",engine:"yandex",params:["key","voice","emotion","ill","drunk","robot"],voice:["jane","zahar"],emotion:["none","good","neutral","evil","mixed"]},ru_YA_CLOUD:{name:"Yandex Cloud - \u0420\u0443\u0441\u0441\u043a\u0438\u0439",engine:"yandexCloud",params:["key","folderID","voice","emotion"],voice:["alyss","oksana","jane","zahar"],emotion:["good","neutral","evil"]},"en-US":{name:"PicoTTS - Englisch US",engine:"PicoTTS",params:[]},"en-GB":{name:"PicoTTS - Englisch GB",engine:"PicoTTS",params:[]},"de-DE":{name:"PicoTTS - Deutsch",engine:"PicoTTS",params:[]},"it-IT":{name:"PicoTTS - Italiano",engine:"PicoTTS",params:[]},"es-ES":{name:"PicoTTS - Espaniol",engine:"PicoTTS",params:[]},"fr-FR":{name:"PicoTTS - Fran\xe7ais",engine:"PicoTTS",params:[]},"ru-RU_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"ru-RU",ename:"Tatyana",ssml:!0,name:"Cloud - \u0420\u0443\u0441\u0441\u043a\u0438\u0439 - \u0422\u0430\u0442\u044c\u044f\u043d\u0430"},"ru-RU_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"ru-RU",ename:"Maxim",ssml:!0,name:"Cloud - \u0420\u0443\u0441\u0441\u043a\u0438\u0439 - \u041c\u0430\u043a\u0441\u0438\u043c"},"de-DE_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"de-DE",ename:"Marlene",ssml:!0,name:"Cloud - Deutsch - Marlene"},"de-DE_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"de-DE",ename:"Hans",ssml:!0,name:"Cloud - Deutsch - Hans"},"en-US_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-US",ename:"Salli",ssml:!0,name:"Cloud - en-US - Female - Salli"},"en-US_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"en-US",ename:"Joey",ssml:!0,name:"Cloud - en-US - Male - Joey"},"da-DK_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"da-DK",ename:"Naja",ssml:!0,name:"Cloud - da-DK - Female - Naja"},"da-DK_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"da-DK",ename:"Mads",ssml:!0,name:"Cloud - da-DK - Male - Mads"},"en-AU_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-AU",ename:"Nicole",ssml:!0,name:"Cloud - en-AU - Female - Nicole"},"en-AU_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"en-AU",ename:"Russell",ssml:!0,name:"Cloud - en-AU - Male - Russell"},"en-GB_CLOUD_Female_Amy":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-GB",ename:"Amy",ssml:!0,name:"Cloud - en-GB - Female - Amy"},"en-GB_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"en-GB",ename:"Brian",ssml:!0,name:"Cloud - en-GB - Male - Brian"},"en-GB_CLOUD_Female_Emma":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-GB",ename:"Emma",ssml:!0,name:"Cloud - en-GB - Female - Emma"},"en-GB-WLS_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-GB-WLS",ename:"Gwyneth",ssml:!0,name:"Cloud - en-GB-WLS - Female - Gwyneth"},"en-GB-WLS_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"en-GB-WLS",ename:"Geraint",ssml:!0,name:"Cloud - en-GB-WLS - Male - Geraint"},"cy-GB_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"cy-GB",ename:"Gwyneth",ssml:!0,name:"Cloud - cy-GB - Female - Gwyneth"},"cy-GB_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"cy-GB",ename:"Geraint",ssml:!0,name:"Cloud - cy-GB - Male - Geraint"},"en-IN_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-IN",ename:"Raveena",ssml:!0,name:"Cloud - en-IN - Female - Raveena"},"en-US_CLOUD_Male_Chipmunk":{gender:"Male",engine:"cloud",params:["cloud"],language:"en-US",ename:"Chipmunk",ssml:!0,name:"Cloud - en-US - Male - Chipmunk"},"en-US_CLOUD_Male_Eric":{gender:"Male",engine:"cloud",params:["cloud"],language:"en-US",ename:"Eric",ssml:!0,name:"Cloud - en-US - Male - Eric"},"en-US_CLOUD_Female_Ivy":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-US",ename:"Ivy",ssml:!0,name:"Cloud - en-US - Female - Ivy"},"en-US_CLOUD_Female_Jennifer":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-US",ename:"Jennifer",ssml:!0,name:"Cloud - en-US - Female - Jennifer"},"en-US_CLOUD_Male_Justin":{gender:"Male",engine:"cloud",params:["cloud"],language:"en-US",ename:"Justin",ssml:!0,name:"Cloud - en-US - Male - Justin"},"en-US_CLOUD_Female_Kendra":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-US",ename:"Kendra",ssml:!0,name:"Cloud - en-US - Female - Kendra"},"en-US_CLOUD_Female_Kimberly":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-US",ename:"Kimberly",ssml:!0,name:"Cloud - en-US - Female - Kimberly"},"es-ES_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"es-ES",ename:"Conchita",ssml:!0,name:"Cloud - es-ES - Female - Conchita"},"es-ES_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"es-ES",ename:"Enrique",ssml:!0,name:"Cloud - es-ES - Male - Enrique"},"es-US_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"es-US",ename:"Penelope",ssml:!0,name:"Cloud - es-US - Female - Penelope"},"es-US_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"es-US",ename:"Miguel",ssml:!0,name:"Cloud - es-US - Male - Miguel"},"fr-CA_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"fr-CA",ename:"Chantal",ssml:!0,name:"Cloud - fr-CA - Female - Chantal"},"fr-FR_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"fr-FR",ename:"Celine",ssml:!0,name:"Cloud - fr-FR - Female - Celine"},"fr-FR_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"fr-FR",ename:"Mathieu",ssml:!0,name:"Cloud - fr-FR - Male - Mathieu"},"is-IS_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"is-IS",ename:"Dora",ssml:!0,name:"Cloud - is-IS - Female - Dora"},"is-IS_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"is-IS",ename:"Karl",ssml:!0,name:"Cloud - is-IS - Male - Karl"},"it-IT_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"it-IT",ename:"Carla",ssml:!0,name:"Cloud - it-IT - Female - Carla"},"it-IT_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"it-IT",ename:"Giorgio",ssml:!0,name:"Cloud - it-IT - Male - Giorgio"},"nb-NO_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"nb-NO",ename:"Liv",ssml:!0,name:"Cloud - nb-NO - Female - Liv"},"nl-NL_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"nl-NL",ename:"Lotte",ssml:!0,name:"Cloud - nl-NL - Female - Lotte"},"nl-NL_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"nl-NL",ename:"Ruben",ssml:!0,name:"Cloud - nl-NL - Male - Ruben"},"pl-PL_CLOUD_Female_Agnieszka":{gender:"Female",engine:"cloud",params:["cloud"],language:"pl-PL",ename:"Agnieszka",ssml:!0,name:"Cloud - pl-PL - Female - Agnieszka"},"pl-PL_CLOUD_Male_Jacek":{gender:"Male",engine:"cloud",params:["cloud"],language:"pl-PL",ename:"Jacek",ssml:!0,name:"Cloud - pl-PL - Male - Jacek"},"pl-PL_CLOUD_Female_Ewa":{gender:"Female",engine:"cloud",params:["cloud"],language:"pl-PL",ename:"Ewa",ssml:!0,name:"Cloud - pl-PL - Female - Ewa"},"pl-PL_CLOUD_Male_Jan":{gender:"Male",engine:"cloud",params:["cloud"],language:"pl-PL",ename:"Jan",ssml:!0,name:"Cloud - pl-PL - Male - Jan"},"pl-PL_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"pl-PL",ename:"Maja",ssml:!0,name:"Cloud - pl-PL - Female - Maja"},"pt-BR_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"pt-BR",ename:"Vitoria",ssml:!0,name:"Cloud - pt-BR - Female - Vitoria"},"pt-BR_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"pt-BR",ename:"Ricardo",ssml:!0,name:"Cloud - pt-BR - Male - Ricardo"},"pt-PT_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"pt-PT",ename:"Cristiano",ssml:!0,name:"Cloud - pt-PT - Male - Cristiano"},"pt-PT_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"pt-PT",ename:"Ines",ssml:!0,name:"Cloud - pt-PT - Female - Ines"},"ro-RO_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"ro-RO",ename:"Carmen",ssml:!0,name:"Cloud - ro-RO - Female - Carmen"},"sv-SE_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"sv-SE",ename:"Astrid",ssml:!0,name:"Cloud - sv-SE - Female - Astrid"},"tr-TR_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"tr-TR",ename:"Filiz",ssml:!0,name:"Cloud - tr-TR - Female - Filiz"},"ru-RU_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"ru-RU",ename:"Tatyana",ssml:!0,name:"AWS Polly - \u0420\u0443\u0441\u0441\u043a\u0438\u0439 - \u0422\u0430\u0442\u044c\u044f\u043d\u0430"},"ru-RU_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"ru-RU",ename:"Maxim",ssml:!0,name:"AWS Polly - \u0420\u0443\u0441\u0441\u043a\u0438\u0439 - \u041c\u0430\u043a\u0441\u0438\u043c"},"de-DE_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"de-DE",ename:"Marlene",ssml:!0,name:"AWS Polly - Deutsch - Marlene"},"de-DE_AP_Female_Vicky":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"de-DE",ename:"Vicky",ssml:!0,name:"AWS Polly - Deutsch - Vicky"},"de-DE_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"de-DE",ename:"Hans",ssml:!0,name:"AWS Polly - Deutsch - Hans"},"en-US_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Salli",ssml:!0,name:"AWS Polly - en-US - Female - Salli"},"en-US_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Joey",ssml:!0,name:"AWS Polly - en-US - Male - Joey"},"da-DK_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"da-DK",ename:"Naja",ssml:!0,name:"AWS Polly - da-DK - Female - Naja"},"da-DK_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"da-DK",ename:"Mads",ssml:!0,name:"AWS Polly - da-DK - Male - Mads"},"en-AU_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-AU",ename:"Nicole",ssml:!0,name:"AWS Polly - en-AU - Female - Nicole"},"en-AU_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"en-AU",ename:"Russell",ssml:!0,name:"AWS Polly - en-AU - Male - Russell"},"en-GB_AP_Female_Amy":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-GB",ename:"Amy",ssml:!0,name:"AWS Polly - en-GB - Female - Amy"},"en-GB_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"en-GB",ename:"Brian",ssml:!0,name:"AWS Polly - en-GB - Male - Brian"},"en-GB_AP_Female_Emma":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-GB",ename:"Emma",ssml:!0,name:"AWS Polly - en-GB - Female - Emma"},"en-GB-WLS_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-GB-WLS",ename:"Gwyneth",ssml:!0,name:"AWS Polly - en-GB-WLS - Female - Gwyneth"},"en-GB-WLS_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"en-GB-WLS",ename:"Geraint",ssml:!0,name:"AWS Polly - en-GB-WLS - Male - Geraint"},"cy-GB_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"cy-GB",ename:"Gwyneth",ssml:!0,name:"AWS Polly - cy-GB - Female - Gwyneth"},"cy-GB_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"cy-GB",ename:"Geraint",ssml:!0,name:"AWS Polly - cy-GB - Male - Geraint"},"en-IN_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-IN",ename:"Raveena",ssml:!0,name:"AWS Polly - en-IN - Female - Raveena"},"en-US_AP_Male_Chipmunk":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Chipmunk",ssml:!0,name:"AWS Polly - en-US - Male - Chipmunk"},"en-US_AP_Male_Eric":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Eric",ssml:!0,name:"AWS Polly - en-US - Male - Eric"},"en-US_AP_Female_Ivy":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Ivy",ssml:!0,name:"AWS Polly - en-US - Female - Ivy"},"en-US_AP_Female_Jennifer":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Jennifer",ssml:!0,name:"AWS Polly - en-US - Female - Jennifer"},"en-US_AP_Male_Justin":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Justin",ssml:!0,name:"AWS Polly - en-US - Male - Justin"},"en-US_AP_Female_Kendra":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Kendra",ssml:!0,name:"AWS Polly - en-US - Female - Kendra"},"en-US_AP_Female_Kimberly":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Kimberly",ssml:!0,name:"AWS Polly - en-US - Female - Kimberly"},"es-ES_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"es-ES",ename:"Conchita",ssml:!0,name:"AWS Polly - es-ES - Female - Conchita"},"es-ES_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"es-ES",ename:"Enrique",ssml:!0,name:"AWS Polly - es-ES - Male - Enrique"},"es-US_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"es-US",ename:"Penelope",ssml:!0,name:"AWS Polly - es-US - Female - Penelope"},"es-US_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"es-US",ename:"Miguel",ssml:!0,name:"AWS Polly - es-US - Male - Miguel"},"fr-CA_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"fr-CA",ename:"Chantal",ssml:!0,name:"AWS Polly - fr-CA - Female - Chantal"},"fr-FR_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"fr-FR",ename:"Celine",ssml:!0,name:"AWS Polly - fr-FR - Female - Celine"},"fr-FR_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"fr-FR",ename:"Mathieu",ssml:!0,name:"AWS Polly - fr-FR - Male - Mathieu"},"is-IS_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"is-IS",ename:"Dora",ssml:!0,name:"AWS Polly - is-IS - Female - Dora"},"is-IS_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"is-IS",ename:"Karl",ssml:!0,name:"AWS Polly - is-IS - Male - Karl"},"it-IT_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"it-IT",ename:"Carla",ssml:!0,name:"AWS Polly - it-IT - Female - Carla"},"it-IT_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"it-IT",ename:"Giorgio",ssml:!0,name:"AWS Polly - it-IT - Male - Giorgio"},"nb-NO_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"nb-NO",ename:"Liv",ssml:!0,name:"AWS Polly - nb-NO - Female - Liv"},"nl-NL_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"nl-NL",ename:"Lotte",ssml:!0,name:"AWS Polly - nl-NL - Female - Lotte"},"nl-NL_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"nl-NL",ename:"Ruben",ssml:!0,name:"AWS Polly - nl-NL - Male - Ruben"},"pl-PL_AP_Female_Agnieszka":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"pl-PL",ename:"Agnieszka",ssml:!0,name:"AWS Polly - pl-PL - Female - Agnieszka"},"pl-PL_AP_Male_Jacek":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"pl-PL",ename:"Jacek",ssml:!0,name:"AWS Polly - pl-PL - Male - Jacek"},"pl-PL_AP_Female_Ewa":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"pl-PL",ename:"Ewa",ssml:!0,name:"AWS Polly - pl-PL - Female - Ewa"},"pl-PL_AP_Male_Jan":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"pl-PL",ename:"Jan",ssml:!0,name:"AWS Polly - pl-PL - Male - Jan"},"pl-PL_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"pl-PL",ename:"Maja",ssml:!0,name:"AWS Polly - pl-PL - Female - Maja"},"pt-BR_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"pt-BR",ename:"Vitoria",ssml:!0,name:"AWS Polly - pt-BR - Female - Vitoria"},"pt-BR_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"pt-BR",ename:"Ricardo",ssml:!0,name:"AWS Polly - pt-BR - Male - Ricardo"},"pt-PT_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"pt-PT",ename:"Cristiano",ssml:!0,name:"AWS Polly - pt-PT - Male - Cristiano"},"pt-PT_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"pt-PT",ename:"Ines",ssml:!0,name:"AWS Polly - pt-PT - Female - Ines"},"ro-RO_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"ro-RO",ename:"Carmen",ssml:!0,name:"AWS Polly - ro-RO - Female - Carmen"},"sv-SE_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"sv-SE",ename:"Astrid",ssml:!0,name:"AWS Polly - sv-SE - Female - Astrid"},"tr-TR_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"tr-TR",ename:"Filiz",ssml:!0,name:"AWS Polly - tr-TR - Female - Filiz"}},aa=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"".concat(k.I18n.t("Say:")," ").concat(e.data.text)}},{key:"onTagChange",value:function(e){var t=this,a=k.I18n.getLanguage(),s=Object.keys(na).filter((function(e){return e.startsWith(a)})).map((function(e){return{title:na[e].name,value:e}}));s.unshift({title:"Default",value:"_"}),this.setState({inputs:[{attr:"instance",nameRender:"renderInstance",adapter:"sayit",defaultValue:"sayit.0",frontText:"Instance:"},{nameRender:"renderSelect",frontText:"Language:",options:s,defaultValue:"_",attr:"language"},{nameRender:"renderNameText",defaultValue:"Volume",attr:"textVol"},{nameRender:"renderSlider",attr:"volume",defaultValue:100,min:0,max:100},{attr:"text",nameRender:"renderModalInput",defaultValue:"Hallo",nameBlock:"",frontText:"Text:"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t,e)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){return e.text?"// Sayit ".concat(e.text||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat(e.language&&"_"!==e.language?"".concat(e.language,";"):"").concat(e.volume?"".concat(e.volume,";"):"").concat((e.text||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,'});\n\t\tawait setStateAsync("').concat(e.instance,'.tts.text", subActionVar').concat(e._id,");"):"// no text defined\n_sendToFrontEnd(".concat(e._id,", {text: 'No text defined'});")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Say It",id:"ActionSayText",adapter:"sayit",title:"Say some text via sayit adapter",helpDialog:"You can use %s in the text to display current trigger value or %id to display the triggered object ID"}}}]),n}(ta),sa=aa,oa=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"".concat(k.I18n.t("Sent:")," ").concat(e.data.text)}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{attr:"instance",nameRender:"renderInstance",defaultValue:"email.0",frontText:"Instance:",adapter:"email"},{attr:"recipients",nameRender:"renderText",defaultValue:"user@mail.ru",frontText:"To:"},{attr:"subject",nameRender:"renderText",defaultValue:"Email from iobroker",nameBlock:"",frontText:"Subject:"},{attr:"text",nameRender:"renderModalInput",defaultValue:"Email from iobroker",nameBlock:"",frontText:"Body:"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t,e)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){return e.recipients?"// Send Email ".concat(e.text||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat((e.text||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,'});\n\t\tsendTo("').concat(e.instance||"email.0",'", {\n\t\t to: "').concat(e.recipients||"",'",\n\t\t subject: "').concat((e.subject||"ioBroker").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),",\n\t\t text: subActionVar").concat(e._id,"\n\t\t});"):"// no recipients defined'\n_sendToFrontEnd(".concat(e._id,", {text: 'No recipients defined'});")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Send email",id:"ActionSendEmail",adapter:"email",title:"Sends an email",helpDialog:"You can use %s in the text to display current trigger value or %id to display the triggered object ID"}}}]),n}(ta),ia=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).cachePromises={},a}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"".concat(k.I18n.t("Sent:")," ").concat(e.data.text)}},{key:"onValueChanged",value:function(e,t){"instance"===t&&this._setUsers(e)}},{key:"_setUsers",value:function(e){var t=this;if(e=e||this.state.settings.instance||"telegram.0",this.cachePromises[e]=this.cachePromises[e]||this.props.socket.getState("".concat(e,".communicate.users")),!this.state.settings._id)return this.setState({inputs:[{nameRender:"renderSelect",adapter:"telegram",frontText:"Instance:",defaultValue:"telegram.0",attr:"instance"},{nameRender:"renderSelect",attr:"user",options:[{title:"telegram.0",value:"telegram.0"}],defaultValue:"",frontText:"User:"},{nameRender:"renderModalInput",attr:"text",defaultValue:"Hallo",nameBlock:"",frontText:"Text:"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}));this.cachePromises[e].then((function(e){try{var a;(e=(e=(e=null!==(a=e)&&void 0!==a&&a.val?JSON.parse(e.val):null)&&Object.keys(e).map((function(t){return{title:e[t].userName||e[t].firstName,value:t}})))||[]).unshift({title:"all",value:""})}catch(s){e=[{title:"all",value:""}]}t.setState({inputs:[{nameRender:"renderInstance",adapter:"telegram",frontText:"Instance:",defaultValue:"telegram.0",attr:"instance"},{nameRender:"renderSelect",attr:"user",options:e,defaultValue:"_",frontText:"User:"},{nameRender:"renderModalInput",attr:"text",defaultValue:"Hallo",nameBlock:"",frontText:"Text:"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}))}))}},{key:"onTagChange",value:function(e){this._setUsers()}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n=(e.text||"").replace(/"/g,'\\"');return n?"// Telegram ".concat(n||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat((n||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,'});\n\t\tsendTo("').concat(e.instance,'", "send", ').concat(e.user&&"_"!==e.user?'{user: "'.concat((e.user||"").replace(/"/g,'\\"'),'", text: subActionVar').concat(e._id,"}"):"subActionVar".concat(e._id),");"):"// no text defined\n_sendToFrontEnd(".concat(e._id,", {text: 'No text defined'});")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Telegram",id:"ActionTelegram",adapter:"telegram",title:"Sends message via telegram",helpDialog:"You can use %s in the text to display current trigger value or %id to display the triggered object ID"}}}]),n}(ta),ra=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).cachePromises={},a}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"Sent: ".concat(e.data.text)}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderInstance",adapter:"pushover",frontText:"Instance:",defaultValue:"pushover.0",attr:"instance"},{nameRender:"renderModalInput",attr:"text",defaultValue:"Hello",nameBlock:"",frontText:"Text:"},{nameRender:"renderText",attr:"title",defaultValue:"ioBroker",frontText:"Title:"},{nameRender:"renderSelect",attr:"sound",defaultValue:"magic",frontText:"Sound:",doNotTranslate:!0,options:[{value:"pushover",title:"pushover"},{value:"bike",title:"bike"},{value:"bugle",title:"bugle"},{value:"cashregister",title:"cashregister"},{value:"classical",title:"classical"},{value:"cosmic",title:"cosmic"},{value:"falling",title:"falling"},{value:"gamelan",title:"gamelan"},{value:"incoming",title:"incoming"},{value:"intermission",title:"intermission"},{value:"magic",title:"magic"},{value:"mechanical",title:"mechanical"},{value:"pianobar",title:"pianobar"},{value:"siren",title:"siren"},{value:"spacealarm",title:"spacealarm"},{value:"tugboat",title:"tugboat"},{value:"alien",title:"alien"},{value:"climb",title:"climb"},{value:"persistent",title:"persistent"},{value:"echo",title:"echo"},{value:"updown",title:"updown"},{value:"none",title:"none"}]},{nameRender:"renderSelect",attr:"priority",defaultValue:-1,frontText:"Priority:",options:[{value:-1,title:"quiet"},{value:0,title:"normal"},{value:1,title:"high-priority"},{value:2,title:"acknowledgment"}]}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n=(e.text||"").replace(/"/g,'\\"');return n?"// Pushover ".concat(e.text||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat(n,'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,'});`; \n\t\tsendTo("').concat(e.instance,'", "send", {\n\t\t message: subActionVar').concat(e._id,',\n\t\t title: "').concat((e.title||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),',\n\t\t sound: "').concat(e.sound,'",\n\t\t priority: ').concat(e.priority,"\n\t\t});"):"// no text defined\n_sendToFrontEnd(".concat(e._id,", {text: 'No text defined'});")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Pushover",id:"ActionPushover",adapter:"pushover",title:"Sends message via pushover",helpDialog:"You can use %s in the text to display current trigger value or %id to display the triggered object ID"}}}]),n}(ta),la=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).cachePromises={},a}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"".concat(k.I18n.t("Sent:")," ").concat(e.data.text)}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderInstance",adapter:"whatsapp-cmb",frontText:"Instance:",defaultValue:"whatsapp-cmb.0",attr:"instance"},{nameRender:"renderModalInput",attr:"text",defaultValue:"Hello",nameBlock:"",frontText:"Text:"},{nameRender:"renderText",attr:"phone",defaultValue:"",frontText:"Phone:",backText:"(optional)"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n=(e.text||"").replace(/"/g,'\\"');return n?"// whatsapp ".concat(n||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat((n||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,'});\n\t\tsendTo("').concat(e.instance,'", "send", {text: subActionVar').concat(e._id).concat(e.phone?', phone: "'.concat(e.phone.replace(/"/g,'\\"'),'"'):"","});"):"// no text defined\n_sendToFrontEnd(".concat(e._id,", {text: 'No text defined'});")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Whatsapp-cmb",id:"ActionWhatsappcmb",adapter:"whatsapp-cmb",title:"Sends message via whatsapp-cmb",helpDialog:"You can use %s in the text to display current trigger value or %id to display the triggered object ID"}}}]),n}(ta),ca=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).cachePromises={},a}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"Sent: ".concat(e.data.text)}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderInstance",adapter:"pushsafer",frontText:"Instance:",defaultValue:"pushsafer.0",attr:"instance"},{nameRender:"renderModalInput",attr:"text",defaultValue:"Hello",nameBlock:"",frontText:"Text:"},{nameRender:"renderText",attr:"title",defaultValue:"ioBroker",frontText:"Title:"},{nameRender:"renderSelect",attr:"sound",defaultValue:"magic",frontText:"Sound:",doNotTranslate:!0,options:[{value:"_",title:"Device Default"},{value:"0",title:"Silent"},{value:"1",title:"Ahem (IM)"},{value:"2",title:"Applause (Mail)"},{value:"3",title:"Arrow (Reminder)"},{value:"4",title:"Baby (SMS)"},{value:"5",title:"Bell (Alarm)"},{value:"6",title:"Bicycle (Alarm2)"},{value:"7",title:"Boing (Alarm3)"},{value:"8",title:"Buzzer (Alarm4)"},{value:"9",title:"Camera (Alarm5)"},{value:"10",title:"Car Horn (Alarm6)"},{value:"11",title:"Cash Register (Alarm7)"},{value:"12",title:"Chime (Alarm8)"},{value:"13",title:"Creaky Door (Alarm9)"},{value:"14",title:"Cuckoo Clock (Alarm10)"},{value:"15",title:"Disconnect (Call)"},{value:"16",title:"Dog (Call2)"},{value:"17",title:"Doorbell (Call3)"},{value:"18",title:"Fanfare (Call4)"},{value:"19",title:"Gun Shot (Call5)"},{value:"20",title:"Honk (Call6)"},{value:"21",title:"Jaw Harp (Call7)"},{value:"22",title:"Morse (Call8)"},{value:"23",title:"Electricity (Call9)"},{value:"24",title:"Radio Tuner (Call10)"},{value:"25",title:"Sirens"},{value:"26",title:"Military Trumpets"},{value:"27",title:"Ufo"},{value:"28",title:"Whah Whah Whah"},{value:"29",title:"Man Saying Goodbye"},{value:"30",title:"Man Saying Hello"},{value:"31",title:"Man Saying No"},{value:"32",title:"Man Saying Ok"},{value:"33",title:"Man Saying Ooohhhweee"},{value:"34",title:"Man Saying Warning"},{value:"35",title:"Man Saying Welcome"},{value:"36",title:"Man Saying Yeah"},{value:"37",title:"Man Saying Yes"},{value:"38",title:"Beep short"},{value:"39",title:"Weeeee short"},{value:"40",title:"Cut in and out short"},{value:"41",title:"Finger flicking glas short"},{value:"42",title:"Wa Wa Waaaa short"},{value:"43",title:"Laser short"},{value:"44",title:"Wind Chime short"},{value:"45",title:"Echo short"},{value:"46",title:"Zipper short"},{value:"47",title:"HiHat short"},{value:"48",title:"Beep 2 short"},{value:"49",title:"Beep 3 short"},{value:"50",title:"Beep 4 short"},{value:"51",title:"The Alarm is armed"},{value:"52",title:"The Alarm is disarmed"},{value:"53",title:"The Backup is ready"},{value:"54",title:"The Door is closed"},{value:"55",title:"The Door is opend"},{value:"56",title:"The Window is closed"},{value:"57",title:"The Window is open"},{value:"58",title:"The Light is off"},{value:"59",title:"The Light is on"},{value:"60",title:"The Doorbell rings"},{value:"61",title:"Pager short"},{value:"62",title:"Pager long"}]},{nameRender:"renderSelect",attr:"priority",defaultValue:0,frontText:"Priority:",options:[{value:-2,title:"lowest priority"},{value:-1,title:"lower priority"},{value:0,title:"normal priority"},{value:1,title:"high priority"},{value:2,title:"highest priority"}]},{nameRender:"renderSelect",attr:"vibration",defaultValue:0,frontText:"Vibration:",options:[{value:"_",title:"default"},{value:1,title:"1"},{value:2,title:"2"},{value:3,title:"3"}]}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n=(e.text||"").replace(/"/g,'\\"');return n?"// Pushsafer ".concat(e.text||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat(n,'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,'}); \n\t\tsendTo("').concat(e.instance,'", "send", {\n\t\t message: subActionVar').concat(e._id,',\n\t\t title: "').concat((e.title||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),",\n\t\t ").concat(e.device?'device: "'.concat(e.device,'",'):"","\n\t\t ").concat(e.sound&&"_"!==e.sound?'sound: "'.concat(e.sound,'",'):"","\n\t\t priority: ").concat(e.priority,",\n\t\t ").concat(e.vibration&&"_"!==e.vibration?"vibration: ".concat(e.vibration,","):"","\n\t\t});"):"// no text defined\n_sendToFrontEnd(".concat(e._id,", {text: 'No text defined'});")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Pushsafer",id:"ActionPushsafer",adapter:"pushsafer",title:"Sends message via Pushsafer",helpDialog:"You can use %s in the text to display current trigger value or %id to display the triggered object ID"}}}]),n}(ta),ua={triggers:[],conditions:[[]],justCheck:!1,actions:{then:[],else:[]}};function da(e,t,n){var a=[],s=e.triggers;s.length||(s=[{id:"TriggerScriptSave"}]);var o=[],i=[],r=e.conditions.find((function(e){return e.find((function(e){return"()"===e.tagCard}))}));s.forEach((function(t,s){var l=pa(t.id,n);if(l){var c={trigger:t,condition:{},justCheck:!r&&(e.justCheck||!e.conditions.length||!e.conditions[0].length),conditionsDebug:[],conditionsVars:[],conditionsStates:[]},u=l.compile(t,c),d=function(e,t,n){var a=[],s=0;return e&&e.forEach((function(e){if(e.hasOwnProperty("length")&&e.length){var o=[];o&&e.forEach((function(e){var a=pa(e.id,n);a&&(t.condition.index=s++,o.push(a.compile(e,t)))})),a.push("(".concat(o.join(") &&\n ("),")"))}else{var i=pa(e.id,n);i&&(t.condition.index=s++,a.push(i.compile(e,t)))}})),a.length?1===a.length?a[0]||"true":"(".concat(a.join(") || ("),")"):"true"}(e.conditions,c,n),p=ha(e.actions.then,c,n),h=ha(e.actions.else,c,n);o.push("cond".concat(s)),c.prelines&&c.prelines.length&&c.prelines.forEach((function(e){return i.push(e)})),u.includes(" __%%CONDITIONS_VARS%%__")&&(c.conditionsVars=c.conditionsVars.map((function(e,t){return t?" ".concat(e):e})),c.conditionsDebug=c.conditionsDebug.map((function(e,t){return t?" ".concat(e):e}))),a.push(u.replace("__%%CONDITIONS_VARS%%__",c.conditionsVars.join("\n")).replace('"__%%DEBUG_CONDITIONS%%__";',c.conditionsDebug.join("\n")).replace("__%%CONDITION%%__",d).replace("__%%THEN%%__",p||"// ignore").replace("__%%ELSE%%__",h||"// ignore").replace(/__%%STATE%%__/g,"cond"+s))}}));var l=a.join("\n\n");return e.justCheck&&!r||(l="".concat(o.map((function(e){return"let ".concat(e," = false;")})).join("\n"),"\n\n").concat(l)),i&&(l="".concat(i.join("\n"),"\n\n").concat(l)),l}function pa(e,t){return t.find((function(t){return t.getStaticData&&t.getStaticData().id===e}))}function ha(e,t,n){var a=[];return e&&e.forEach((function(e){var s=pa(e.id,n);s&&a.push(s.compile(e,t))})),"\t\t".concat(a.join("\n\n\t\t"))||0}function ga(e,t){return da(e,0,t)}var ma={code2json:function(e){if(!e)return ua;var t=e.split("\n");try{var n=t.pop().replace(/^\/\//,"");return(n=JSON.parse(n)).triggers||(n=ua),n}catch(a){return ua}},json2code:function(e,t){var n="";return n+=ga(e,t),n+="\n/*\nconst demo = ".concat(JSON.stringify(e,null,2).replace(/\*\//g,"* /"),";\n*/\n"),"".concat(n,"\n//").concat(JSON.stringify(e))},compile:ga,STANDARD_FUNCTION:'async function () {\n "__%%DEBUG_TRIGGER%%__";\n __%%CONDITIONS_VARS%%__\n const _cond = __%%CONDITION%%__;\n \n "__%%DEBUG_CONDITIONS%%__";\n \n if (_cond) {\n__%%THEN%%__\n } else {\n__%%ELSE%%__\n }\n}',STANDARD_FUNCTION_ONCHANGE:'async function () {\n "__%%DEBUG_TRIGGER%%__";\n __%%CONDITIONS_VARS%%__\n const _cond = __%%CONDITION%%__;\n \n "__%%DEBUG_CONDITIONS%%__";\n \n if (__%%STATE%%__ === false && _cond) {\n __%%STATE%%__ = true; \n__%%THEN%%__\n } else if (__%%STATE%%__ === true && !_cond) {\n __%%STATE%%__ = false; \n__%%ELSE%%__\n }\n}',STANDARD_FUNCTION_STATE:'async function (obj) {\n "__%%DEBUG_TRIGGER%%__";\n __%%CONDITIONS_VARS%%__\n const _cond = __%%CONDITION%%__;\n \n "__%%DEBUG_CONDITIONS%%__";\n \n if (_cond) {\n__%%THEN%%__\n } else {\n__%%ELSE%%__\n }\n}',STANDARD_FUNCTION_STATE_ONCHANGE:'async function (obj) {\n "__%%DEBUG_TRIGGER%%__";\n __%%CONDITIONS_VARS%%__\n const _cond = __%%CONDITION%%__;\n \n "__%%DEBUG_CONDITIONS%%__";\n \n if (__%%STATE%%__ === false && _cond) {\n __%%STATE%%__ = true; \n__%%THEN%%__\n } else if (__%%STATE%%__ === true && !_cond) {\n __%%STATE%%__ = false; \n__%%ELSE%%__\n }\n}',NO_FUNCTION:'"__%%DEBUG_TRIGGER%%__";\n__%%CONDITIONS_VARS%%__\nconst _cond = __%%CONDITION%%__;\n\n"__%%DEBUG_CONDITIONS%%__";\n\nif (_cond) {\n__%%THEN%%__\n} else {\n__%%ELSE%%__\n}'},fa=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(){return wn.default.t("Triggered")}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderNameText",defaultValue:"On script save or adapter start",attr:"script"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e){return ma.NO_FUNCTION.replace('"__%%DEBUG_TRIGGER%%__"',"_sendToFrontEnd(".concat(e._id,", {trigger: true})"))}},{key:"getStaticData",value:function(){return{acceptedBy:"triggers",name:"Start script",id:"TriggerScriptSave",icon:"PlayArrow",title:"Triggers the on script saving or the javascript instance restart"}}}]),n}(ta),va=n(75801),ya=n.n(va),ba=n(22772),ka=n(64101),Sa=n(96404),xa=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).coordinates=null,a}return(0,d.Z)(n,[{key:"_setAstro",value:function(){var e=(0,ut.Z)((0,ct.Z)().mark((function e(t,a,s){var o,i,r,l,c,u=this;return(0,ct.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=t||this.state.settings.astro||"solarNoon",a=void 0===a?this.state.settings.offset:a,s=void 0===s?this.state.settings.offsetValue:s,s=parseInt(s,10)||0,this.coordinates){e.next=7;break}return e.next=7,this.props.socket.getObject("system.adapter.javascript.0").then((function(e){var t=e.native,n=t.latitude,a=t.longitude;if(!n&&!a)return u.props.socket.getObject("system.config").then((function(e){e&&(e.common.latitude||e.common.longitude)?u.coordinates={latitude:e.common.latitude,longitude:e.common.longitude}:u.coordinates=null}));u.coordinates={latitude:n,longitude:a}}));case 7:o=this.coordinates&&ya().getTimes(new Date,this.coordinates.latitude,this.coordinates.longitude),(i=o?Object.keys(o).map((function(e){return{value:e,title:e,title2:"[".concat(n._time2String(o[e]),"]"),order:o?n._time2String(o[e]):"??:??"}})):[]).sort((function(e,t){return e.order>t.order?1:e.order1?(h===d[g-1]?p.push(h):d[g-1]-h===1?p.push(h+","+d[g-1]):p.push(h+"-"+d[g-1]),h=d[g]):g===d.length-1&&(h===d[g-1]||d[g]-h===1?p.push(h+","+d[g]):p.push(h+"-"+d[g]));u=p.join(",")}n='schedule("'.concat(l||"0"," ").concat(r||"0"," * * ").concat(u,'", ').concat(a,");")}else"astro"===e.tagCard?n='schedule({astro: "'.concat(e.astro,'", shift: ').concat(e.offset?e.offsetValue:0,"}, ").concat(a,");"):"wizard"===e.tagCard&&(n="schedule('".concat(e.wizard,"', ").concat(a,");"));return n}},{key:"_time2String",value:function(e){return e?"".concat(e.getHours().toString().padStart(2,"0"),":").concat(e.getMinutes().toString().padStart(2,"0")):"--:--"}},{key:"getStaticData",value:function(){return{acceptedBy:"triggers",name:"Schedule",id:"TriggerScheduleBlock",icon:"AccessTime",tagCardArray:["cron","wizard","interval","at","astro"],title:"Triggers the rule periodically or on some specific time"}}}]),n}(ta),wa=xa,Ca=n(89891),Ia=n(55931),ja=n(25801),Ta=s().forwardRef((function(e,t){return(0,se.jsx)(Ia.Z,(0,dt.Z)({direction:"up",ref:t},e))})),Aa=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).inputRef=s().createRef(),a}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return void 0!==e.data.valOld?(0,se.jsxs)("span",{children:[k.I18n.t("Triggered")," ",(0,se.jsx)("span",{className:e.data.ackOld?this.props.classes.valueAck:this.props.classes.valueNotAck,children:n.renderValue(e.data.valOld)})," \u2192 ",(0,se.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:n.renderValue(e.data.val)})]}):(0,se.jsxs)("span",{children:[k.I18n.t("Triggered")," ",(0,se.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:n.renderValue(e.data.val)})]})}},{key:"onWriteValue",value:function(){this.setState({openSimulate:!1});var e=this.state.simulateValue;window.localStorage.setItem("javascript.app.".concat(this.state.settings.oid,"_ack"),this.state.simulateAck),"boolean"===this.state.settings.oidType?e=!0===e||"true"===e||"1"===e:"number"===this.state.settings.oidType&&(e=parseFloat(e)||0),window.localStorage.setItem("javascript.app.".concat(this.state.settings.oid),e),this.props.socket.setState(this.state.settings.oid,{val:e,ack:!!this.state.simulateAck})}},{key:"renderWriteState",value:function(){var e=this;return(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(H.Z,{disabled:!this.state.settings.oid||!this.state.enableSimulation,variant:"contained",color:"primary",onClick:function(){e.setState({openSimulate:!0,simulateValue:"boolean"===e.state.settings.oidType?"true"===window.localStorage.getItem("javascript.app.".concat(e.state.settings.oid)):window.localStorage.getItem("javascript.app.".concat(e.state.settings.oid))||"",simulateAck:"true"===window.localStorage.getItem("javascript.app.".concat(e.state.settings.oid,"_ack"))}),setTimeout((function(){var t;return null===(t=e.inputRef.current)||void 0===t?void 0:t.focus()}),200)},children:k.I18n.t("Simulate")}),(0,se.jsxs)(Q.Z,{open:!!this.state.openSimulate,TransitionComponent:Ta,keepMounted:!0,onClose:function(){return e.setState({openSimulate:!1})},"aria-labelledby":"simulate-dialog-slide-title","aria-describedby":"simulate-dialog-slide-description",children:[(0,se.jsx)(q.Z,{id:"simulate-dialog-slide-title",children:k.I18n.t("Trigger with value")}),(0,se.jsxs)(Y.Z,{children:["boolean"===this.state.settings.oidType?(0,se.jsx)(ja.Z,{control:(0,se.jsx)(Ca.Z,{inputRef:this.inputRef,onKeyUp:function(t){return 13===t.keyCode&&e.onWriteValue()},value:!!this.state.simulateValue,onChange:function(t){return e.setState({simulateValue:t.target.checked})}}),label:k.I18n.t("Value")}):(0,se.jsx)(X.Z,{variant:"standard",inputRef:this.inputRef,label:k.I18n.t("Value"),fullWidth:!0,onKeyUp:function(t){return 13===t.keyCode&&e.onWriteValue()},value:this.state.simulateValue,onChange:function(t){return e.setState({simulateValue:t.target.value})}}),(0,se.jsx)("br",{}),(0,se.jsx)(ja.Z,{control:(0,se.jsx)(Ke.Z,{checked:!!this.state.simulateAck,onChange:function(t){return e.setState({simulateAck:t.target.checked})},color:"primary"}),label:k.I18n.t("Ack")})]}),(0,se.jsxs)(K.Z,{children:[(0,se.jsxs)(H.Z,{variant:"contained",onClick:function(){return e.onWriteValue()},color:"primary",children:[(0,se.jsx)(S.HhX,{}),k.I18n.t("Write")]}),(0,se.jsxs)(H.Z,{color:"grey",variant:"contained",onClick:function(){return e.setState({openSimulate:!1})},children:[(0,se.jsx)(S.B4e,{}),k.I18n.t("Close")]})]})]})]})}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderObjectID",attr:"oid",defaultValue:""},{nameRender:"renderWriteState"}]},(function(){(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n=t.justCheck?ma.STANDARD_FUNCTION_STATE:ma.STANDARD_FUNCTION_STATE_ONCHANGE;return n=n.replace('"__%%DEBUG_TRIGGER%%__"',"_sendToFrontEnd(".concat(e._id,", {val: obj.state.val, ack: obj.state.ack, valOld: obj.oldState && obj.oldState.val, ackOld: obj.oldState && obj.oldState.ack})")),'on({id: "'.concat(e.oid||"",'", change: "').concat("on update"===e.tagCard?"any":"ne",'"}, ').concat(n,");")}},{key:"renderValue",value:function(e){return null===e?"null":void 0===e?"undefined":Array.isArray(e)?e.join(", "):"object"===typeof e?JSON.stringify(e):e.toString()}},{key:"getStaticData",value:function(){return{acceptedBy:"triggers",name:"State",id:"TriggerState",icon:"FlashOn",tagCardArray:["on change","on update"],title:"Triggers the rule on update or change of some state"}}}]),n}(ta),Da=(0,g.Z)((function(e){return{valueAck:{color:"#b02323"},valueNotAck:{color:"#12ac15"}}}))(Aa),Na=n.p+"static/media/hysteresis.04ebd02c6062432f891d.png",Ea="function __hysteresis(val, limit, state, hist, comp) {\n let cond1, cond2;\n if (comp === '>') {\n cond1 = val > limit + hist;\n cond2 = val <= limit - hist;\n } else if (comp === '<') {\n cond1 = val < limit - hist;\n cond2 = val >= limit + hist;\n } else if (comp === '>=') {\n cond1 = val >= limit + hist;\n cond2 = val < limit - hist;\n } else if (comp === '<=') {\n cond1 = val <= limit - hist;\n cond2 = val > limit + hist;\n } else if (comp === '=') {\n cond1 = val <= limit + hist && val > limit - hist;\n cond2 = val > limit + hist || val <= limit - hist;\n } else if (comp === '<>') {\n cond1 = val > limit + hist || val <= limit - hist;\n cond2 = val <= limit + hist && val > limit - hist;\n }\n \n if (!state && cond1) {\n return true;\n } else if (state && cond2) {\n return false;\n } else {\n return state;\n }\n}",Oa=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).onShowHelp=function(){return a.setState({showHysteresisHelp:!0})},a}return(0,d.Z)(n,[{key:"isAllTriggersOnState",value:function(){var e,t,n,a;return(null===(e=this.props.userRules)||void 0===e||null===(t=e.triggers)||void 0===t?void 0:t.find((function(e){return"TriggerState"===e.id})))&&!(null!==(n=this.props.userRules)&&void 0!==n&&null!==(a=n.triggers)&&void 0!==a&&a.find((function(e){return"TriggerState"!==e.id})))}},{key:"renderDebug",value:function(e){var t=this.state.settings.tagCard;return"()"!==t?"".concat(e.data.result.toString().toUpperCase()," [").concat(e.data.value," ").concat(t," ").concat(e.data.compareWith,"]"):k.I18n.t("Triggered")}},{key:"_setInputs",value:function(e,t,a,s,o){var i,r,l=this,c=this.isAllTriggersOnState();t=t||this.state.settings.tagCard,a=a||this.state.settings.oidType,s=s||this.state.settings.oidUnit,o=o||this.state.settings.oidStates,c&&e&&1===(null===(i=this.props.userRules)||void 0===i||null===(r=i.triggers)||void 0===r?void 0:r.length)&&(a=this.props.userRules.triggers[0].oidType,s=this.props.userRules.triggers[0].oidUnit,o=this.props.userRules.triggers[0].oidStates);var u,d=n.getStaticData().tagCardArray.find((function(e){return e.title===t})),p=null;"number"===a?(u=[{title:"=",title2:"[equal]",text:"equal to"},{title:">=",title2:"[greater or equal]",text:"greater or equal"},{title:">",title2:"[greater]",text:"greater than"},{title:"<=",title2:"[less or equal]",text:"less or equal"},{title:"<",title2:"[less]",text:"less than"},{title:"<>",title2:"[not equal]",text:"not equal to"},{title:"()",title2:"[hysteresis]",text:"hysteresis"}],o&&(p=Object.keys(o).map((function(e){return{value:e,title:o[e]}})))):"boolean"===a?(u=[{title:"=",title2:"[equal]",text:"equal to"},{title:"<>",title2:"[not equal]",text:"not equal to"}],p=[{title:"false",value:!1},{title:"true",value:!0}]):(u=[{title:"=",title2:"[equal]",text:"equal to"},{title:">=",title2:"[greater or equal]",text:"greater or equal"},{title:">",title2:"[greater]",text:"greater than"},{title:"<=",title2:"[less or equal]",text:"less or equal"},{title:"<",title2:"[less]",text:"less than"},{title:"<>",title2:"[not equal]",text:"not equal to"},{title:".",title2:"[includes]",text:"includes"}],o&&(p=Object.keys(o).map((function(e){return{value:e,title:o[e]}}))));var h,g=null;u.find((function(e){return e.title===t}))||(t=u[0].title,(g=g||(0,dt.Z)({},this.state.settings)).tagCard=t);var m={nameRender:"renderText",defaultValue:"",attr:"value",frontText:"()"===t?"Limit":(null===d||void 0===d?void 0:d.text)||"compare with",doNotTranslateBack:!0,backText:s};p&&(m={nameRender:"renderSelect",defaultValue:p[0].value,options:p,attr:"value",frontText:(null===d||void 0===d?void 0:d.text)||"compare with",doNotTranslateBack:!0,backText:s},p.find((function(e){return e.value===l.state.settings.value}))||((g=g||(0,dt.Z)({},this.state.settings)).value=p[0].value),p.length<=2&&(u=[{title:"=",title2:"[equal]",text:"equal to"},{title:"<>",title2:"[not equal]",text:"not equal to"}])),h=c&&e?[{backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger",defaultValue:!1},m]:c?[{backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger"},{nameRender:"renderObjectID",attr:"oid",defaultValue:""},m]:[{nameRender:"renderObjectID",attr:"oid",defaultValue:""},m],"()"===t&&(h.splice(1,0,{nameRender:"renderDialog",icon:"HelpOutline",frontText:"Explanation",onShowDialog:this.onShowHelp}),h.splice(2,0,{nameRender:"renderSelect",attr:"histComp",defaultValue:">",frontText:"Condition",doNotTranslate:!0,options:[{title:">",value:">"},{title:">=",value:">="},{title:"<",value:"<"},{title:"<=",value:"<="},{title:"=",value:"="},{title:"<>",value:"<>"}]}),h.push({frontText:"\u0394",doNotTranslate:!0,nameRender:"renderNumber",noHelperText:!0,attr:"hist",defaultValue:1,doNotTranslateBack:!0,backText:s}));var f={iconTag:!0,tagCardArray:u,inputs:h};this.setState(f,(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",l).call(l,null,(function(){g&&(l.setState({settings:g}),l.props.onChange(g))}))}))}},{key:"onValueChanged",value:function(e,t,n){"object"===typeof e?this._setInputs(e.useTrigger,e.tagCard,e.oidType,e.states):"useTrigger"===t?this._setInputs(e):"oidType"===t?this._setInputs(e,void 0,e):"oidUnit"===t?this._setInputs(e,void 0,void 0,e):"oidStates"===t&&this._setInputs(e,void 0,void 0,void 0,e)}},{key:"onUpdate",value:function(){this._setInputs(this.state.settings.useTrigger)}},{key:"onTagChange",value:function(e){this._setInputs(this.state.settings.useTrigger,e)}},{key:"getData",value:function(){return n.getStaticData()}},{key:"renderSpecific",value:function(){var e=this;return this.state.showHysteresisHelp?(0,se.jsxs)(Q.Z,{open:!0,maxWidth:"md",onClose:function(){return e.setState({showHysteresisHelp:!1})},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,se.jsx)(Y.Z,{children:(0,se.jsx)(ve.Z,{id:"alert-dialog-description",children:(0,se.jsx)("img",{src:Na,alt:"Hysteresis"})})}),(0,se.jsx)(K.Z,{children:(0,se.jsx)(H.Z,{onClick:function(){return e.setState({showHysteresisHelp:!1})},color:"primary",autoFocus:!0,children:k.I18n.t("OK")})})]}):null}}],[{key:"compile",value:function(e,t){var n=e.value;null!==n&&void 0!==n||(n=!1);var a,s="";if("()"===e.tagCard)t.prelines=t.prelines||[],!t.prelines.find((function(e){return e!==Ea}))&&t.prelines.push(Ea),e.useTrigger?(s="obj.state.val",""===n&&(n=0),a="__hysteresis(subCondVar".concat(e._id,", ").concat(n,", __%%STATE%%__, ").concat(e.hist,', "').concat(e.histComp,'")')):(s='(await getStateAsync("'.concat(e.oid,'")).val'),""===n&&(n=0),"string"===typeof n&&parseFloat(n.trim()).toString()!==n.trim()&&(n='"'.concat(n,'"')),a="__hysteresis(subCondVar".concat(e._id,", ").concat(n,", __%%STATE%%__, ").concat(e.hist,', "').concat(e.histComp,'")'));else if("includes"!==e.tagCard){var o,i="="===e.tagCard?"==":"<>"===e.tagCard?"!=":e.tagCard;if(e.useTrigger)s="obj.state.val","string"===(null===t||void 0===t||null===(o=t.trigger)||void 0===o?void 0:o.oidType)?(n=n.replace(/"/g,'\\"'),a="subCondVar".concat(e._id," ").concat(i,' "').concat(n,'"')):(""===n&&(n=0),"string"===typeof n&&parseFloat(n.trim()).toString()!==n.trim()&&(n='"'.concat(n,'"')),a="subCondVar".concat(e._id," ").concat(i," ").concat(n));else s='(await getStateAsync("'.concat(e.oid,'")).val'),"string"===e.oidType?(n=n.replace(/"/g,'\\"'),a="subCondVar".concat(e._id," ").concat(i,' "').concat(n,'"')):(""===n&&(n=0),"string"===typeof n&&parseFloat(n.trim()).toString()!==n.trim()&&(n='"'.concat(n,'"')),a="subCondVar".concat(e._id," ").concat(i," ").concat(n))}else{var r;if(e.useTrigger)s="obj.state.val","string"===(null===t||void 0===t||null===(r=t.trigger)||void 0===r?void 0:r.oidType)?(n=n.replace(/"/g,'\\"'),a='obj.state.val.includes("'.concat(n,'")')):a="false";else s='(await getStateAsync("'.concat(e.oid,'")).val'),"string"===e.oidType?(n=n.replace(/"/g,'\\"'),a="subCondVar".concat(e._id,'.includes("').concat(n,'")')):a="false"}return t.conditionsStates.push({name:"subCondVar".concat(e._id),id:e.oid}),t.conditionsVars.push("const subCondVar".concat(e._id," = ").concat(s,";")),t.conditionsVars.push("const subCond".concat(e._id," = ").concat(a,";")),t.conditionsDebug.push("_sendToFrontEnd(".concat(e._id,", {result: subCond").concat(e._id,", value: subCondVar").concat(e._id,', compareWith: "').concat(n,'"});')),"subCond".concat(e._id)}},{key:"getStaticData",value:function(){return{acceptedBy:"conditions",name:"State condition",id:"ConditionState",icon:"Shuffle",tagCardArray:[{title:"=",title2:"[equal]",text:"equal to"},{title:">=",title2:"[greater or equal]",text:"greater or equal"},{title:">",title2:"[greater]",text:"greater than"},{title:"<=",title2:"[less or equal]",text:"less or equal"},{title:"<",title2:"[less]",text:"less than"},{title:"<>",title2:"[not equal]",text:"not equal to"},{title:".",title2:"[includes]",text:"includes"},{title:"()",title2:"[hysteresis]",text:"hysteresis"}],title:"Compares the state value with user defined value"}}}]),n}(ta),Ma=[31,29,31,30,31,30,31,31,30,31,30,31],za=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"_setInputs",value:function(e,t){var a=this;t=void 0===t?this.state.settings.withDate:t,e=e||this.state.settings.tagCard;var s=n.getStaticData().tagCardArray.find((function(t){return t.title===e})),o=[{nameRender:"renderNameText",attr:"interval",defaultValue:"Actual time of day"},{frontText:(null===s||void 0===s?void 0:s.text)||e,nameRender:"renderTime",attr:"time",defaultValue:"12:00"},{frontText:"with date",nameRender:"renderCheckbox",attr:"withDate",defaultValue:!1}];t&&o.push({nameRender:"renderDate",attr:"date",defaultValue:"01.01"}),this.setState({inputs:o,iconTag:!0},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",a).call(a)}))}},{key:"onValueChanged",value:function(e,t){"withDate"===t&&this._setInputs(void 0,e)}},{key:"onTagChange",value:function(e){this._setInputs(e)}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n,a="="===e.tagCard?"===":"<>"===e.tagCard?"!==":e.tagCard;if(e.withDate){var s=(e.date||"01.01").toString().split("."),o=(0,w.Z)(s,2),i=o[0],r=o[1];r=parseInt(r,10)||0,(i=parseInt(i,10)||0)>12?i=12:i<0&&(i=0),r>Ma[i]?r=Ma[i]:r<0&&(r=0),n=r&&i?"formatDate(Date.now(), 'MM.DD-hh:mm') ".concat(a,' "').concat(e.date,"-").concat(e.time,'"'):0===r&&i?"formatDate(Date.now(), 'MM-hh:mm') ".concat(a,' "').concat(i.toString().padStart(2,"0"),"-").concat(e.time,'"'):0===i&&r?"formatDate(Date.now(), 'DD-hh:mm') ".concat(a,' "').concat(r.toString().padStart(2,"0"),"-").concat(e.time,'"'):"formatDate(Date.now(), 'hh:mm') ".concat(a,' "').concat(e.time,'"')}else n="formatDate(Date.now(), 'hh:mm') ".concat(a,' "').concat(e.time,'"');return t.conditionsVars.push("const subCond".concat(e._id," = ").concat(n,";")),t.conditionsDebug.push("_sendToFrontEnd(".concat(e._id,", {result: subCond").concat(e._id,"});")),"subCond".concat(e._id)}},{key:"getStaticData",value:function(){return{acceptedBy:"conditions",name:"Time condition",id:"ConditionTime",icon:"Shuffle",tagCardArray:[{title:"=",title2:"[equal]",text:"equal to"},{title:">=",title2:"[greater or equal]",text:"greater or equal"},{title:">",title2:"[greater]",text:"greater than"},{title:"<=",title2:"[less or equal]",text:"less or equal"},{title:"<",title2:"[less]",text:"less than"},{title:"<>",title2:"[not equal]",text:"not equal to"}],title:"Compares current time with the user specific time"}}}]),n}(ta),Za=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).coordinates=null,a}return(0,d.Z)(n,[{key:"onValueChanged",value:function(e,t){"astro"===t?this._setAstro(e):"offset"===t?this._setAstro(void 0,e):"offsetValue"===t&&this._setAstro(void 0,void 0,e)}},{key:"_setAstro",value:function(){var e=(0,ut.Z)((0,ct.Z)().mark((function e(t,a,s){var o,i,r,l,c,u,d,p=this;return(0,ct.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=t||this.state.settings.astro||"solarNoon",a=void 0===a?this.state.settings.offset:a,s=void 0===s?this.state.settings.offsetValue:s,s=parseInt(s,10)||0,this.coordinates){e.next=7;break}return e.next=7,this.props.socket.getObject("system.adapter.javascript.0").then((function(e){var t=e.native,n=t.latitude,a=t.longitude;if(!n&&!a)return p.props.socket.getObject("system.config").then((function(e){e&&(e.common.latitude||e.common.longitude)?p.coordinates={latitude:e.common.latitude,longitude:e.common.longitude}:p.coordinates=null}));p.coordinates={latitude:n,longitude:a}}));case 7:o=this.coordinates&&ya().getTimes(new Date,this.coordinates.latitude,this.coordinates.longitude),(i=o?Object.keys(o).map((function(e){return{value:e,title:e,title2:"[".concat(n._time2String(o[e]),"]"),order:n._time2String(o[e])}})):[]).sort((function(e,t){return e.order>t.order?1:e.order"===e.tagCard?"!==":e.tagCard;e.offset&&(n=parseInt(e.offsetValue,10)||0);var s="formatDate(Date.now(), 'hh:mm') ".concat(a,' formatDate(getAstroDate("').concat(e.astro,'"').concat(n?", undefined, ".concat(n):"","), 'hh:mm')");return t.conditionsVars.push("const subCond".concat(e._id," = ").concat(s,";")),t.conditionsDebug.push("_sendToFrontEnd(".concat(e._id,", {result: ").concat(s,"});")),s}},{key:"_time2String",value:function(e){return e?"".concat(e.getHours().toString().padStart(2,"0"),":").concat(e.getMinutes().toString().padStart(2,"0")):"--:--"}},{key:"getStaticData",value:function(){return{acceptedBy:"conditions",name:"Astrological",id:"ConditionAstrological",icon:"Brightness3",tagCardArray:[{title:"=",title2:"[equal]",text:"equal to"},{title:">=",title2:"[greater or equal]",text:"greater or equal to"},{title:">",title2:"[greater]",text:"greater than"},{title:"<=",title2:"[less or equal]",text:"less or equal to"},{title:"<",title2:"[less]",text:"less than"},{title:"<>",title2:"[not equal]",text:"not equal to"}],title:"Compares current time with astrological event"}}}]),n}(ta),Ra=Za,Fa=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"isAllTriggersOnState",value:function(){var e,t,n,a;return(null===(e=this.props.userRules)||void 0===e||null===(t=e.triggers)||void 0===t?void 0:t.find((function(e){return"TriggerState"===e.id})))&&!(null!==(n=this.props.userRules)&&void 0!==n&&null!==(a=n.triggers)&&void 0!==a&&a.find((function(e){return"TriggerState"!==e.id})))}},{key:"renderDebug",value:function(e){return(0,se.jsxs)("span",{children:[k.I18n.t("Set:")," ",(0,se.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:n.renderValue(e.data.val)})]})}},{key:"_setInputs",value:function(e,t){var n=this,a=this.isAllTriggersOnState();t=void 0===t?this.state.settings.toggle:t,e=void 0===e?this.state.settings.useTrigger:e;var s,o,i,r="",l=this.state.settings,c=l.oidType,u=l.oidUnit,d=l.oidStates,p=l.oidMax,h=l.oidMin,g=l.oidRole,m=l.oidWrite,f=l.oidStep;if(c&&("number"===c?(r="number",void 0!==p&&void 0!==h&&(r="slider")):"boolean"===c?(r="boolean",g&&g.includes("button")&&m&&(r="button")):(r="",g&&g.includes("color")&&(r="color")),d&&(s=Object.keys(d).map((function(e){return{value:e,title:d[e]}})),r="select")),a&&e)i=[{backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger",defaultValue:!1}],"boolean"===r&&i.push({backText:"toggle value",attr:"toggle",nameRender:"renderCheckbox",defaultValue:!1});else{switch(r){case"number":i=[{backText:u||"",frontText:"with",nameRender:"renderNumber",defaultValue:void 0===p?0:p,attr:"value"}],void 0!==this.state.settings.value&&isNaN(parseFloat(this.state.settings.value))&&(o={value:void 0===p?0:p});break;case"slider":i=[{nameRender:"renderSlider",defaultValue:p,min:h,max:p,unit:u,step:f,attr:"value"}];var v=parseFloat(this.state.settings.value);void 0!==this.state.settings.value&&(isNaN(v)||vp)&&(o={value:p});break;case"select":i=[{nameRender:"renderSelect",frontText:"with",options:s,defaultValue:s[0].value,attr:"value"}],void 0===this.state.settings.value||s.find((function(e){return e.value===n.state.settings.value}))||(o={value:s[0].value});break;case"boolean":i=[{backText:"toggle value",attr:"toggle",nameRender:"renderCheckbox",defaultValue:!1}],t||i.push({backText:"true",frontText:"false",nameRender:"renderSwitch",defaultValue:!1,attr:"value"}),void 0!==this.state.settings.value&&!1!==this.state.settings.value&&!0!==this.state.settings.value&&(o={value:!1});break;case"button":i=[{nameRender:"renderButton",defaultValue:!0,attr:"value"}],void 0!==this.state.settings.value&&!0!==this.state.settings.value&&(o={value:!0});break;case"color":i=[{nameRender:"renderColor",frontText:"with",defaultValue:"#FFFFFF",attr:"value"}],void 0===this.state.settings.value||"string"===typeof this.state.settings.value&&(this.state.settings.value.startsWith("#"),this.state.settings.value.startsWith("rgb"),0)||(o={value:"#FFFFFF"});break;default:i=[{backText:u||"",frontText:"with",nameRender:"renderText",defaultValue:"",attr:"value"}]}a&&i.unshift({backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger"})}return{inputs:i,newSettings:o}}},{key:"onTagChange",value:function(e,t,a,s,o){var i=this;o=void 0===o?this.state.settings.useTrigger:o;var r=this._setInputs(o,s),l=r.inputs,c=r.newSettings;l.unshift({nameRender:"renderObjectID",attr:"oid",defaultValue:"",checkReadOnly:!0}),this.setState({inputs:l},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",i).call(i,null,(function(){if(c){var e=JSON.parse(JSON.stringify(i.state.settings));Object.assign(e,c),i.setState(e),i.props.onChange(e)}}))}))}},{key:"onValueChanged",value:function(e,t,n){this.onTagChange(void 0,void 0,void 0,"toggle"===t?e:void 0,"useTrigger"===t?e:void 0)}},{key:"onUpdate",value:function(){this.onTagChange()}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n,a=e.value;return e.useTrigger?a=e.toggle?"!obj.state.val":"obj.state.val":(void 0!==a&&null!==a||(a=""),"string"===typeof e.value&&parseFloat(e.value).toString()!==e.value&&"true"!==e.value&&"false"!==e.value&&(a='"'.concat(a.replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t)))),n=e.toggle&&!e.useTrigger?"const subActionVar".concat(e._id,' = !(await getStateAsync("').concat(e.oid,'")).val'):"const subActionVar".concat(e._id," = ").concat(a),"// set state ".concat(e.oid," to ").concat(e.toggle&&!e.useTrigger?"toggle":a," \n\t\t").concat(n,";\n\t\t_sendToFrontEnd(").concat(e._id,", {val: subActionVar").concat(e._id,", ack: ").concat("update"===e.tagCard,'});\n\t\tawait setStateAsync("').concat(e.oid,'", subActionVar').concat(e._id,", ").concat("update"===e.tagCard,");")}},{key:"renderValue",value:function(e){return null===e?"null":void 0===e?"undefined":Array.isArray(e)?e.join(", "):"object"===typeof e?JSON.stringify(e):e.toString()}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Set state action",id:"ActionSetState",icon:"PlayForWork",tagCardArray:["control","update"],title:"Control or update some state",helpDialog:"You can use %s in the value to use the current trigger value or %id to display the triggered object ID"}}}]),n}(ta),Ba=[wa,fa,Da,Oa,za,Ra,(0,g.Z)((function(e){return{valueAck:{color:"#b02323"},valueNotAck:{color:"#12ac15"}}}))(Fa),function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"Exec: ".concat(e.data.exec)}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderModalInput",attr:"exec",defaultValue:"ls /opt/iobroker",nameBlock:"Shell command"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t,e)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){return'// exec "'.concat(e.exec,'"\n\t\tconst subActionVar').concat(e._id,' = "').concat((e.exec||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {exec: subActionVar").concat(e._id,"});\n\t\tconsole.log(subActionVar").concat(e._id,");")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Exec",id:"ActionExec",icon:"Apps",title:"Executes some shell command",helpDialog:"You can use %s in the command to use current trigger value or %id to use the triggered object ID"}}}]),n}(ta),function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"URL: ".concat(e.data.url)}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderModalInput",attr:"url",defaultValue:"http://mydevice.com?...",nameBlock:"URL"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t,e)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){return"// HTTP request ".concat(e.url,"\n\t\tconst subActionVar").concat(e._id,' = "').concat((e.url||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {url: subActionVar").concat(e._id,"});\n\t\trequest(subActionVar").concat(e._id,");")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"HTTP Call",id:"ActionHTTPCall",icon:"Language",title:"Make a HTTP get request",helpDialog:"You can use %s in the URL to use current trigger value or %id to use the triggered object ID"}}}]),n}(ta),function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return k.I18n.t("Log: %s",e.data.text)}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderModalInput",attr:"text",defaultValue:"My device triggered",nameBlock:"Log text"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t,e)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){return"// Log ".concat(e.text,"\n\t\tconst subActionVar").concat(e._id,' = "').concat((e.text||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,"});\n\t\tconsole.log(subActionVar").concat(e._id,");")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Log text",id:"ActionPrintText",icon:"Subject",title:"Print some text in log",helpDialog:"You can use %s in the text to display current trigger value or %id to display the triggered object ID"}}}]),n}(ta),function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return wn.default.t("Paused: %s",e.data.paused)}},{key:"_getOptions",value:function(e){return 1===(e=void 0===e?this.state.settings.pause:e)||"1"===e?[{value:"ms",title:"millisecond"},{value:"s",title:"second"},{value:"m",title:"minute"},{value:"h",title:"hour"}]:[{value:"ms",title:"milliseconds"},{value:"s",title:"seconds"},{value:"m",title:"minutes"},{value:"h",title:"hours"}]}},{key:"_setInputs",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderNumber",attr:"pause",defaultValue:100,noHelperText:!0},{nameRender:"renderSelect",attr:"unit",defaultValue:"ms",options:this._getOptions(e)}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}))}},{key:"onValueChanged",value:function(e,t){"pause"===t&&this._setInputs(e)}},{key:"onTagChange",value:function(e){this._setInputs()}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n="ms"===e.unit?1:"s"===e.unit?1e3:"m"===e.unit?6e4:36e5;return"// pause for ".concat(n,"ms\n\t\t_sendToFrontEnd(").concat(e._id,", {paused: true});\n\n\t\tawait wait(").concat(e.pause," * ").concat(n,");\n\n\t\t_sendToFrontEnd(").concat(e._id,", {paused: false});")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Pause",id:"ActionPause",icon:"Pause",title:"Make a pause between actions"}}}]),n}(ta),function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return k.I18n.t("Function: executed")}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderModalInput",attr:"func",noTextEdit:!0,defaultValue:'console.log("Test")',nameBlock:"Function"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t,e)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n=(e.func||"").split("\n").map((function(e,t){return" ".concat(e)}));return n.unshift("\t\t_sendToFrontEnd(".concat(e._id,", {func: 'executed'});")),n.unshift("// user function"),n.join("\n")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"User function",id:"ActionFunction",icon:"Functions",title:"Write your own code",helpDialog:"This is advances option. You can write your own code here and it will be executed on trigger"}}}]),n}(ta),function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"isAllTriggersOnState",value:function(){var e,t,n,a;return(null===(e=this.props.userRules)||void 0===e||null===(t=e.triggers)||void 0===t?void 0:t.find((function(e){return"TriggerState"===e.id})))&&!(null!==(n=this.props.userRules)&&void 0!==n&&null!==(a=n.triggers)&&void 0!==a&&a.find((function(e){return"TriggerState"!==e.id})))}},{key:"renderDebug",value:function(e){return(0,se.jsxs)("span",{children:[k.I18n.t("Set:")," ",(0,se.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:n.renderValue(e.data.val)})]})}},{key:"_setInputs",value:function(e,t){var n=this,a=this.isAllTriggersOnState();t=void 0===t?this.state.settings.toggle:t,e=void 0===e?this.state.settings.useTrigger:e;var s,o,i,r="",l=this.state.settings,c=l.oidType,u=l.oidUnit,d=l.oidStates,p=l.oidMax,h=l.oidMin,g=l.oidRole,m=l.oidWrite,f=l.oidStep;if(c&&("number"===c?(r="number",void 0!==p&&void 0!==h&&(r="slider")):"boolean"===c?(r="boolean",g&&g.includes("button")&&m&&(r="button")):(r="",g&&g.includes("color")&&(r="color")),d&&(s=Object.keys(d).map((function(e){return{value:e,title:d[e]}})),r="select")),a&&e)i=[{backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger",defaultValue:!1}],"boolean"===r&&i.push({backText:"toggle value",attr:"toggle",nameRender:"renderCheckbox",defaultValue:!1});else{switch(r){case"number":i=[{backText:u||"",frontText:"with",nameRender:"renderNumber",defaultValue:void 0===p?0:p,attr:"value"}],void 0!==this.state.settings.value&&isNaN(parseFloat(this.state.settings.value))&&(o={value:void 0===p?0:p});break;case"slider":i=[{nameRender:"renderSlider",defaultValue:p,min:h,max:p,unit:u,step:f,attr:"value"}];var v=parseFloat(this.state.settings.value);void 0!==this.state.settings.value&&(isNaN(v)||vp)&&(o={value:p});break;case"select":i=[{nameRender:"renderSelect",frontText:"with",options:s,defaultValue:s[0].value,attr:"value"}],void 0===this.state.settings.value||s.find((function(e){return e.value===n.state.settings.value}))||(o={value:s[0].value});break;case"boolean":i=[{backText:"toggle value",attr:"toggle",nameRender:"renderCheckbox",defaultValue:!1}],t||i.push({backText:"true",frontText:"false",nameRender:"renderSwitch",defaultValue:!1,attr:"value"}),void 0!==this.state.settings.value&&!1!==this.state.settings.value&&!0!==this.state.settings.value&&(o={value:!1});break;case"button":i=[{nameRender:"renderButton",defaultValue:!0,attr:"value"}],void 0!==this.state.settings.value&&!0!==this.state.settings.value&&(o={value:!0});break;case"color":i=[{nameRender:"renderColor",frontText:"with",defaultValue:"#FFFFFF",attr:"value"}],void 0===this.state.settings.value||"string"===typeof this.state.settings.value&&(this.state.settings.value.startsWith("#"),this.state.settings.value.startsWith("rgb"),0)||(o={value:"#FFFFFF"});break;default:i=[{backText:u||"",frontText:"with",nameRender:"renderText",defaultValue:"",attr:"value"}]}a&&i.unshift({backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger"})}return i.push({backText:"ms",frontText:"Delay",nameRender:"renderNumber",defaultValue:"1000",noHelperText:!0,attr:"delay"}),i.push({backText:"clear running",nameRender:"renderCheckbox",defaultValue:!0,attr:"clearRunning"}),{inputs:i,newSettings:o}}},{key:"onTagChange",value:function(e,t,a,s,o){var i=this;o=void 0===o?this.state.settings.useTrigger:o;var r=this._setInputs(o,s),l=r.inputs,c=r.newSettings;l.unshift({nameRender:"renderObjectID",attr:"oid",defaultValue:"",checkReadOnly:!0}),this.setState({inputs:l},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",i).call(i,null,(function(){if(c){var e=JSON.parse(JSON.stringify(i.state.settings));Object.assign(e,c),i.setState(e),i.props.onChange(e)}}))}))}},{key:"onValueChanged",value:function(e,t,n){this.onTagChange(void 0,void 0,void 0,"toggle"===t?e:void 0,"useTrigger"===t?e:void 0)}},{key:"onUpdate",value:function(){this.onTagChange()}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n,a=e.value;return e.useTrigger?a=e.toggle?"!obj.state.val":"obj.state.val":(void 0!==a&&null!==a||(a=""),"string"===typeof e.value&&parseFloat(e.value).toString()!==e.value&&"true"!==e.value&&"false"!==e.value&&(a='"'.concat(a.replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t)))),n=e.toggle&&!e.useTrigger?"const subActionVar".concat(e._id,' = !(await getStateAsync("').concat(e.oid,'")).val'):"const subActionVar".concat(e._id," = ").concat(a),"// set delayed state ".concat(e.oid," to ").concat(e.toggle&&!e.useTrigger?"toggle":a," with delay of ").concat(e.delay,"ms\n\t\t").concat(n,";\n\t\t_sendToFrontEnd(").concat(e._id,", {val: subActionVar").concat(e._id,", ack: ").concat("update"===e.tagCard,'});\n\t\tsetStateDelayed("').concat(e.oid,'", subActionVar').concat(e._id,", ").concat("update"===e.tagCard,", ").concat(parseInt(e.delay,10),", ").concat(e.clearRunning?"true":"false",");")}},{key:"renderValue",value:function(e){return null===e?"null":void 0===e?"undefined":Array.isArray(e)?e.join(", "):"object"===typeof e?JSON.stringify(e):e.toString()}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Set with delay",id:"ActionSetStateDelayed",icon:"PlayForWork",tagCardArray:["control","update"],title:"Control or update some state with delay",helpDialog:"You can use %s in the value to use the current trigger value or %id to display the triggered object ID"}}}]),n}(ta),function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"isAllTriggersOnState",value:function(){var e,t,n,a;return(null===(e=this.props.userRules)||void 0===e||null===(t=e.triggers)||void 0===t?void 0:t.find((function(e){return"TriggerState"===e.id})))&&!(null!==(n=this.props.userRules)&&void 0!==n&&null!==(a=n.triggers)&&void 0!==a&&a.find((function(e){return"TriggerState"!==e.id})))}},{key:"renderDebug",value:function(e){return(0,se.jsxs)("span",{children:[k.I18n.t("Set:")," ",(0,se.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:n.renderValue(e.data.val)})]})}},{key:"onTagChange",value:function(e,t,a,s,o){var i=this,r=[];r.push({nameRender:"renderObjectID",title:"ID1",attr:"oid1",defaultValue:"",checkReadOnly:!1}),r.push({nameRender:"renderSelect",options:[{value:"+",title:"+"},{value:"-",title:"-"},{value:"*",title:"*"},{value:"/",title:"/"}],doNotTranslate:!0,defaultValue:"+",attr:"operation"}),r.push({nameRender:"renderObjectID",title:"ID2",attr:"oid2",defaultValue:"",checkReadOnly:!1}),r.push({nameRender:"renderNameText",defaultValue:"store in",attr:"textEqual"}),r.push({nameRender:"renderObjectID",attr:"oidResult",defaultValue:"",checkReadOnly:!0}),this.setState({inputs:r},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",i).call(i,null,(function(){var e=JSON.parse(JSON.stringify(i.state.settings));i.props.onChange(e)}))}))}},{key:"onValueChanged",value:function(e,t,n){this.onTagChange(void 0,void 0,void 0,"toggle"===t?e:void 0,"useTrigger"===t?e:void 0)}},{key:"onUpdate",value:function(){this.onTagChange()}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n="const val2_".concat(e._id,' = (await getStateAsync("').concat(e.oid1,'")).val;'),a="const val1_".concat(e._id,' = (await getStateAsync("').concat(e.oid2,'")).val;');return"// ".concat(e.oid1," ").concat(e.operation," ").concat(e.oid2," => ").concat(e.oidResult,"\n\t\t ").concat(n,"\n\t\t ").concat(a,"\n\t\t_sendToFrontEnd(").concat(e._id,", {val: val1_").concat(e._id," ").concat(e.operation," val2_").concat(e._id,", ack: ").concat("update"===e.tagCard,'});\n\t\tawait setStateAsync("').concat(e.oidResult,'", val1_').concat(e._id," ").concat(e.operation," val2_").concat(e._id,", ").concat("update"===e.tagCard,");")}},{key:"renderValue",value:function(e){return null===e?"null":void 0===e?"undefined":Array.isArray(e)?e.join(", "):"object"===typeof e?JSON.stringify(e):e.toString()}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Operate two states",id:"ActionOperateStates",icon:"AddBox",tagCardArray:["control","update"],title:"Operations with two states"}}}]),n}(ta)],Pa={telegram:ia,email:oa,sayit:sa,pushover:ra,"whatsapp-cmb":la,pushsafer:ca},_a=(0,a.createContext)(),La=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return new Promise((function(s,o){if(window[e])s();else{var i=document.querySelector('[data-webpack="'.concat(e,'"]')),r=function(){var a=(0,ut.Z)((0,ct.Z)().mark((function a(){return(0,ct.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(window[e]){a.next=2;break}return a.abrupt("return",o('Cannot load Remote "'.concat(e,'" to inject')));case 2:if(window[e].__initialized){a.next=11;break}a.next=8;break;case 6:a.next=10;break;case 8:return a.next=10,window[e].init(n.S[t]);case 10:window[e].__initialized=!0;case 11:s();case 12:case"end":return a.stop()}}),a)})));return function(){return a.apply(this,arguments)}}();if(i)i.onload=r,i.onerror=o;else if(a){var l=document,c=l.createElement("script");c.type="text/javascript",c.setAttribute("data-webpack","".concat(e)),c.async=!0,c.onerror=o,c.onload=r,c.src=a,l.getElementsByTagName("head")[0].appendChild(c)}else o("Cannot Find Remote ".concat(e," to inject"))}}))},Ua=function(e,t,n,a){return(0,ut.Z)((0,ct.Z)().mark((function s(){var o,i,r;return(0,ct.Z)().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,La(e,t,a);case 2:return o=window[e],s.next=5,o.get(n);case 5:return i=s.sent,r=i(),s.abrupt("return",r);case 8:case"end":return s.stop()}}),s)})))},Wa=function(e){var t=e.children,n=e.socket,s=(0,a.useState)(null),o=(0,w.Z)(s,2),i=o[0],r=o[1],l=(0,a.useState)(!1),u=(0,w.Z)(l,2),d=u[0],p=u[1],h=(0,a.useState)(!1),g=(0,w.Z)(h,2),m=g[0],f=g[1],v=(0,a.useState)(!1),y=(0,w.Z)(v,2),b=y[0],S=y[1];return(0,a.useEffect)((function(){d&&p(!1)}),[d]),(0,a.useEffect)((function(){(0,ut.Z)((0,ct.Z)().mark((function e(){var t,a,s,o,i,l,u,d;return(0,ct.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.getAdapterInstances();case 2:t=e.sent,a=Object.keys(Pa).filter((function(e){return t.find((function(t){var n;return(null===t||void 0===t||null===(n=t.common)||void 0===n?void 0:n.name)===e}))})),s=[],o=t.filter((function(e){return e.common.javascriptRules})),i=[],l=(0,ct.Z)().mark((function e(){var t,n,a,r,l,c,d;return(0,ct.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o[u],!i.includes(t.common.name)){e.next=3;break}return e.abrupt("return","continue");case 3:if(n=t.common.javascriptRules.url.startsWith("http:")||t.common.javascriptRules.url.startsWith("https:")?t.common.javascriptRules.url:t.common.javascriptRules.url.startsWith("./")?"".concat(window.location.protocol,"//").concat(window.location.host).concat(t.common.javascriptRules.url.replace(/^\./,"")):"".concat(window.location.protocol,"//").concat(window.location.host,"/adapter/").concat(t.common.name,"/").concat(t.common.javascriptRules.url),!0!==t.common.javascriptRules.i18n){e.next=13;break}return a=n.lastIndexOf("/"),r=-1!==a?n.substring(0,a):n,l=k.I18n.getLanguage(),c="".concat(r,"/i18n/").concat(l,".json"),e.next=11,fetch(c).then((function(e){return e.json()})).then((function(e){return k.I18n.extendTranslations(e,l)})).catch((function(e){if("en"!==l)return fetch("".concat(r,"/i18n/en.json")).then((function(e){return e.json()})).then((function(e){return k.I18n.extendTranslations(e,l)})).catch((function(e){return console.error('Cannot load i18n "'.concat(c,'": ').concat(e))}));console.log('Cannot load i18n "'.concat(c,'": ').concat(e))}));case 11:e.next=14;break;case 13:if(t.common.javascriptRules.i18n&&"object"===typeof t.common.javascriptRules.i18n)try{k.I18n.extendTranslations(t.common.javascriptRules.i18n)}catch(p){console.error('Cannot import i18n for "'.concat(t.common.javascriptRules.name,'": ').concat(p))}case 14:return e.prev=14,e.next=17,Ua(t.common.javascriptRules.name,"default","./".concat(t.common.javascriptRules.name),n)();case 17:(d=e.sent.default)&&(s.push(d),i.push(t.common.name),Pa[t.common.name]=null),e.next=24;break;case 21:e.prev=21,e.t0=e.catch(14),console.error('Cannot load component "'.concat(t.common.javascriptRules.name,'": ').concat(e.t0));case 24:case"end":return e.stop()}}),e,null,[[14,21]])})),e.t0=(0,ct.Z)().keys(o);case 9:if((e.t1=e.t0()).done){e.next=17;break}return u=e.t1.value,e.delegateYield(l(),"t2",12);case 12:if("continue"!==e.t2){e.next=15;break}return e.abrupt("continue",9);case 15:e.next=9;break;case 17:d=a.filter((function(e){return Pa[e]})).map((function(e){return Pa[e]})),r([].concat((0,c.Z)(Ba),(0,c.Z)(d),s));case 19:case"end":return e.stop()}}),e)})))()}),[]),(0,se.jsx)(_a.Provider,{value:{blocks:i,socket:n,onUpdate:d,setOnUpdate:p,onDebugMessage:m,setOnDebugMessage:f,enableSimulation:b,setEnableSimulation:S},children:t})};var Va=(0,a.memo)((function(e){var t=e.setUserRules,n=e.userRules,s=e._id,o=e.id,i=e.blockValue,r=e.active,l=e.acceptedBy,c=e.isTourOpen,u=e.setTourStep,d=e.tourStep,p=(0,a.useState)(null),h=(0,w.Z)(p,2),g=h[0],m=h[1],f=(0,a.useContext)(_a),v=f.blocks,y=f.socket,b=f.onUpdate,k=f.setOnUpdate,S=f.onDebugMessage,x=f.enableSimulation;(0,a.useEffect)((function(){console.log("New message !!"+JSON.stringify(S))}),[S]);var C=(0,a.useCallback)((function(e){return v.find((function(t){return t.getStaticData().id===e}))}),[v]),I=(0,a.useCallback)((function(e){var a=function(e,t,n){var a,s=e._id,o=e.acceptedBy;if(!o||!t[o])return console.warn("Cannot find "+o),t;switch(o){case"actions":case"conditions":return(a=t[o][n].find((function(e){return e._id===s})))?t[o][n][t[o][n].indexOf(a)]=e:console.warn("Cannot find "+s),t;default:return(a=t[o].find((function(e){return e._id===s})))?t[o][t[o].indexOf(a)]=e:console.warn("Cannot find "+s),t}}(e,n,i);a&&t(a)}),[n]),j=function(e){return e.currentTarget!==g&&m(e.currentTarget)},T=(0,a.useMemo)((function(){var t=C(o)||ta;return(0,se.jsx)(t,(0,dt.Z)((0,dt.Z)({isTourOpen:c,setTourStep:u,tourStep:d,notFound:!C(o)},e),{},{onUpdate:b,setOnUpdate:k,enableSimulation:x,onDebugMessage:S,onChange:I,className:null,socket:y}))}),[n,b,S,x]),A=(0,a.useState)(!1),D=(0,w.Z)(A,2),N=D[0],E=D[1];return(0,se.jsxs)("div",{onMouseMove:j,onMouseEnter:j,onMouseLeave:function(){return m(null)},onMouseDown:function(e){if(e.ctrlKey){var a,o=Kt(l,n,i);a="triggers"!==i?o[l][i].find((function(e){return e._id===s})):o[l].find((function(e){return e._id===s})),"triggers"!==i?o[l][i].splice(o[l][i].indexOf(a),0,(0,dt.Z)((0,dt.Z)({},a),{},{_id:Date.now()})):o[l].splice(o[l].indexOf(a),0,(0,dt.Z)((0,dt.Z)({},a),{},{_id:Date.now()})),t(o)}},id:"height",style:r?{width:document.getElementById("width").clientWidth-70}:null,className:"".concat(Wt," ").concat(r?Vt:null," ").concat(N?Ht:null),children:[(0,se.jsx)("div",{className:qt}),T,t&&(0,se.jsx)("div",{className:Jt,style:Boolean(g)?{opacity:1}:{opacity:0},children:(0,se.jsx)("div",{onClick:function(e){var a=Kt(l,n,i);a=Qt(l,a,i,s),E(!0),setTimeout((function(){"triggers"===l&&k(!0),t(a)}),300)},className:Gt})})]})}));Va.defaultProps={active:!1};var Ja=Va,Ga={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},Ha=function(e,t,n){if(!e||!t)return{display:"none"};var a=t.x,s=t.y;if(n){var o=function(e,t){return[32*Math.round(e/32),32*Math.round(t/32)]}(a-=e.x,s-=e.y),i=(0,w.Z)(o,2);a=i[0],s=i[1],a+=e.x,s+=e.y}var r="translate(".concat(a,"px, ").concat(s,"px)");return{transform:r,WebkitTransform:r}},qa=function(e){var t=(0,Mt.f)((function(e){return{item:e.getItem(),itemType:e.getItemType(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging(),targetIds:e.getTargetIds()}})),n=t.itemType,a=t.isDragging,s=t.item,o=t.initialOffset,i=t.currentOffset,r=t.targetIds;return a?(0,se.jsx)("div",{style:Ga,children:(0,se.jsx)("div",{style:Ha(o,i),children:"box"===n?r.length?(0,se.jsx)(Ja,(0,dt.Z)((0,dt.Z)({active:!0},s),{},{allBlocks:e.allBlocks})):(0,se.jsx)(Ut,(0,dt.Z)((0,dt.Z)({active:!0},s),{},{socket:e.socket})):null})}):null},Ya={border:"style_border__FU4EA",emptyBlockStyle:"style_emptyBlockStyle__OTKrV",emptyBlock:"style_emptyBlock__FtVho",marginTop:"style_marginTop__5SZbC",selectOnChange:"style_selectOnChange__RqLzt",selectOnChangeHelp:"style_selectOnChangeHelp__-Lfd8",selectOnChangeHelpIcon:"style_selectOnChangeHelpIcon__338if",emptyBlockNone:"style_emptyBlockNone__TbBah",mainBlockItemRules:"style_mainBlockItemRules__fZaoi",nameBlockItems:"style_nameBlockItems__v7gfd",contentBlockItem:"style_contentBlockItem__y6oFK",wrapperMargin:"style_wrapperMargin__9vWv4",contentHeightOn:"style_contentHeightOn__q69X4",heightBlock:"style_heightBlock__zilKy",contentHeightOff:"style_contentHeightOff__t7D6a",cardAdd:"style_cardAdd__1pX3a",blockCardAdd:"style_blockCardAdd__jbFG-",addClassOverflow:"style_addClassOverflow__hJlQh",addClassHeight:"style_addClassHeight__8Fysj"};function Ka(e,t){var n=a.useState(localStorage.getItem(t)?JSON.parse(localStorage.getItem(t)):e),s=(0,w.Z)(n,2),o=s[0],i=s[1];return[o,function(e){localStorage.setItem(t,JSON.stringify(e)),i(e)},!!localStorage.getItem(t)]}var Qa=n(60953),Xa=n(763),$a=n.n(Xa),es=$a().throttle((function(e,t){return e(t)}),0),ts=function(e,t,n,a,s,o,i,r,l){var c=ns(e,n),u=c.card,d=c.index;if(!(dt&&r>l)&&u&&d!==t){var p=$a().clone(n);p.splice(d,1),p.splice(t,0,u);var h=$a().clone(s);switch(o){case"actions":case"conditions":return h[o][i]=p,void es(a,h);default:return h[o]=p,void es(a,h)}}},ns=function(e,t){var n=t.find((function(t){return t._id===e}));return{card:n,index:t.indexOf(n)}},as="style_drag__mJTKg",ss="style_root__lrr-F",os=function(e){var t=e.typeBlocks,n=e.allProperties,s=e.id,o=e.isActive,i=e.setUserRules,r=e.userRules,l=e.children,c=e._id,u=e.blockValue,d=(0,a.useContext)(_a).setOnUpdate,p=(0,R.c)({type:"box",item:function(){return(0,dt.Z)((0,dt.Z)({},n),{},{id:s,isActive:o,_id:c})},end:function(e,t){var n,a=e.acceptedBy,s=t.getDropResult();if(!s)return"number"!==typeof c||t.getTargetIds().length||(n=Qt(a,n=Kt(a,r,u),u,c),i(n)),null;if(s.blockValue!==u){var o="number"===typeof c?c:Date.now();n=Kt(a,r,s.blockValue);var l={id:e.id,acceptedBy:e.acceptedBy};switch(a){case"actions":return u&&(n=Qt(a,n,u,c)),(n=Qt(a,n,s.blockValue,c))[a][s.blockValue].push((0,dt.Z)((0,dt.Z)({},l),{},{_id:o})),i(n);case"conditions":return"number"===typeof u&&(n=Qt(a,n,u,c)),(n=Qt(a,n,s.blockValue,c))[a][s.blockValue].push((0,dt.Z)((0,dt.Z)({},l),{},{_id:o})),i(n);default:return d(!0),(n=Qt(a,n,s.blockValue,c))[a].push((0,dt.Z)((0,dt.Z)({},l),{},{_id:o})),i(n)}}},collect:function(e){return{opacity:e.isDragging()?.4:1,isDragging:e.isDragging()}}}),h=(0,w.Z)(p,3),g=h[0].opacity,m=h[1],f=h[2],v=(0,a.useRef)(null),y=(0,Z.L)({accept:"box",canDrop:function(){return!1},hover:function(e,n){var a,s=e._id,o=e.acceptedBy;if(v.current&&t===o){var l=null===(a=v.current)||void 0===a?void 0:a.getBoundingClientRect(),d=(l.bottom-l.top)/2,p=n.getClientOffset().y-l.top;if(c&&s!==c)switch(o){case"actions":if("then"===u||"else"===u){var h=ns(c,r[o][u]).index;h!==s&&ts(s,h,r[o][u],i,r,o,u,p,d)}return;case"conditions":if("number"===typeof u){var g=ns(c,r[o][u]).index;g!==s&&ts(s,g,r[o][u],i,r,o,u,p,d)}return;default:var m=ns(c,r[o]).index;return void(m!==s&&ts(s,m,r[o],i,r,o,null,p,d))}}}}),b=(0,w.Z)(y,2)[1];(0,a.useEffect)((function(){f((0,Qa.r)(),{captureDraggingState:!0})}),[]),m(b(v));var k=window.innerWidth<600;return(0,se.jsxs)("div",{ref:k&&c?null:v,className:ss,style:{opacity:g},children:[(0,se.jsx)("div",{className:c?as:null,ref:c&&k?v:null}),l]})};os.defaultProps={name:"",active:!1,id:"",_id:null};var is=os,rs=function(e){var t=e.onClose,n=e.open;return(0,se.jsxs)(Q.Z,{open:n,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,se.jsx)(Y.Z,{children:(0,se.jsxs)("div",{style:{fontSize:"1rem",fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',fontWeight:400,lineHeight:1.5,letterSpacing:"0.00938em"},children:[(0,se.jsx)("h3",{children:k.I18n.t("On condition change")}),(0,se.jsx)("div",{children:k.I18n.t("help_on_change")}),(0,se.jsx)("h3",{children:k.I18n.t("Just check")}),(0,se.jsx)("div",{children:k.I18n.t("help_just_check")})]})}),(0,se.jsx)(K.Z,{children:(0,se.jsx)(H.Z,{onClick:t,color:"primary",autoFocus:!0,startIcon:(0,se.jsx)(ae.default,{}),children:k.I18n.t("OK")})})]})};rs.defaultProps={open:!1,onClose:function(){}};var ls=rs,cs=function(e){var t=e.onClose,n=e.open;return(0,se.jsxs)(Q.Z,{open:n,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,se.jsx)(Y.Z,{children:(0,se.jsxs)(ve.Z,{id:"alert-dialog-description",children:[(0,se.jsx)("h3",{children:k.I18n.t("On condition change")}),(0,se.jsx)("div",{children:k.I18n.t("help_on_change")}),(0,se.jsx)("h3",{children:k.I18n.t("Just check")}),(0,se.jsx)("div",{children:k.I18n.t("help_just_check")})]})}),(0,se.jsx)(K.Z,{children:(0,se.jsx)(H.Z,{onClick:t,color:"primary",autoFocus:!0,children:k.I18n.t("OK")})})]})};cs.defaultProps={open:!1,onClose:function(){}};var us=cs,ds=function(e){var t,n=e.size,s=e.itemsSwitchesRender,o=e.blockValue,i=e.boolean,r=e.typeBlock,l=e.userRules,c=e.setUserRules,u=e.animation,d=e.setTourStep,p=e.tourStep,h=e.isTourOpen,g=(0,a.useState)(!1),m=(0,w.Z)(g,2),f=m[0],v=m[1],y=(0,a.useState)(!1),b=(0,w.Z)(y,2),S=b[0],x=b[1],C=(0,a.useState)(!1),I=(0,w.Z)(C,2),j=I[0],T=I[1],A=(0,a.useState)(""),D=(0,w.Z)(A,2),N=D[0],E=D[1],O=(0,Z.L)({accept:"box",drop:function(){return{blockValue:o}},hover:function(e,t){var n=e.acceptedBy,a=e._id;v(n===r),T(!!a),E(t.getHandlerId())},canDrop:function(e,t){var n=e.acceptedBy;return x(n===r),n===r},collect:function(e){var t;return{isOver:e.isOver(),canDrop:(null===(t=e.getItem())||void 0===t?void 0:t.acceptedBy)===r,offset:e.getClientOffset(),targetId:e.targetId}}}),M=(0,w.Z)(O,2),z=M[0],R=z.canDrop,F=z.isOver,B=z.offset,P=z.targetId,_=M[1];(0,a.useEffect)((function(){E("")}),[B]);var L=R&&F,U="";return L?U=f?"#00fb003d":"#fb00002e":R?U=S?"#00fb003d":"#fb00002e":B&&(U=P===N?"#fb00002e":""),(0,se.jsx)("div",{ref:_,style:{backgroundColor:U},className:"".concat(k.Utils.clsx(Ya.contentBlockItem,n&&Ya.addClassHeight)," ").concat(i?u?Ya.contentHeightOn:null:Ya.contentHeightOff),children:(0,se.jsxs)("div",{className:Ya.wrapperMargin,children:[null===(t=s[o])||void 0===t?void 0:t.map((function(e){return(0,se.jsx)(is,(0,dt.Z)((0,dt.Z)({typeBlocks:r},e),{},{blockValue:o,allProperties:e,userRules:l,setUserRules:c,children:(0,se.jsx)(Ja,(0,dt.Z)((0,dt.Z)({},e),{},{isTourOpen:h,setTourStep:d,tourStep:p,settings:e,blockValue:o,userRules:l,setUserRules:c}))}),e._id)})),(0,se.jsx)("div",{style:L&&f&&!j?{height:document.getElementById("height")?document.getElementById("height").clientHeight:200}:null,className:"".concat(Ya.emptyBlockStyle," ").concat(L&&f&&!j?Ya.emptyBlock:Ya.emptyBlockNone)})]})})};ds.defaultProps={children:null,boolean:!0,animation:!1};var ps=function(e){var t=e.size,n=e.typeBlock,s=e.name,o=e.nameAdditionally,i=e.additionally,r=e.border,l=e.userRules,u=e.setUserRules,d=e.iconName,p=e.adapter,h=e.socket,g=e.setTourStep,m=e.tourStep,f=e.isTourOpen,v=Ka("actions"!==n&&[],"additionallyClickItems_".concat(n)),y=(0,w.Z)(v,3),b=y[0],S=y[1],x=y[2],C=(0,a.useState)(!1),I=(0,w.Z)(C,2),j=I[0],T=I[1],A=(0,a.useState)(!1),D=(0,w.Z)(A,2),N=D[0],O=D[1];(0,a.useEffect)((function(){if("conditions"===n&&b.length!==l.conditions.length-1){var e=[];l.conditions.forEach((function(t,n){n>0&&e.push({_id:Date.now(),open:!0})})),S([].concat((0,c.Z)(b),e))}"actions"===n&&!x&&l.actions.else.length&&S(!0)}),[]);var z=(0,a.useState)(!1),Z=(0,w.Z)(z,2),R=Z[0],F=Z[1];return(0,se.jsxs)("div",{className:"".concat(k.Utils.clsx(Ya.mainBlockItemRules,t&&Ya.addClassOverflow)," ").concat(r&&!t?Ya.border:null),children:[(0,se.jsxs)("span",{id:"width",className:Ya.nameBlockItems,children:[(0,se.jsx)(_t,{iconName:d,className:Ya.iconThemCard,adapter:p,socket:h}),s]}),"conditions"===n?(0,se.jsxs)("div",{style:{width:"100%"},children:[(0,se.jsxs)(ee.Z,{variant:"standard",className:Ya.selectOnChange,value:l.justCheck||!1,onChange:function(e){var t=Kt("conditions",l);t.justCheck=e.target.value,u(t)},children:[(0,se.jsx)(M.Z,{value:!1,children:k.I18n.t("on condition change")}),(0,se.jsx)(M.Z,{value:!0,children:k.I18n.t("just check")})]}),(0,se.jsx)(E.Z,{size:"small",title:k.I18n.t("Explanation"),className:Ya.selectOnChangeHelp,onClick:function(){return T(!0)},children:(0,se.jsx)(nn.Z,{className:Ya.selectOnChangeHelpIcon})})]}):null,(0,se.jsx)(ds,{setTourStep:g,tourStep:m,isTourOpen:f,blockValue:"actions"===n?"then":"conditions"===n?0:n,typeBlock:n,setUserRules:u,userRules:l,size:t,itemsSwitchesRender:"actions"===n?l.actions:"conditions"===n?l.conditions:l}),i&&(0,c.Z)(Array("actions"===n?1:l.conditions.length-1)).map((function(e,s){var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return Boolean("actions"===n?b:b.find((function(t,n){return n===e&&t.open})))};return(0,se.jsxs)(a.Fragment,{children:[(0,se.jsxs)("div",{onClick:function(){if("actions"===n)return S(!b),null;var e=JSON.parse(JSON.stringify(b));if(l.conditions[s+1].length)return e[s].open=!e[s].open,S(e),null;e=e.filter((function(e,t){return t!==s})),S(e),F("actions"===n||s),setTimeout((function(){F(!1),u((0,dt.Z)((0,dt.Z)({},l),{},{conditions:(0,c.Z)(l.conditions.filter((function(e,t){return t!==s+1})))}))}),250)},className:Ya.blockCardAdd,children:[i()?"-":"+",(0,se.jsx)("div",{className:Ya.cardAdd,children:o})]},s),(0,se.jsx)(ds,{blockValue:"actions"===n?"else":"conditions"===n?s+1:n,typeBlock:n,setUserRules:u,itemsSwitchesRender:"actions"===n?l.actions:"conditions"===n?l.conditions:l,userRules:l,boolean:i(),animation:Boolean(R===s),size:t})]},"".concat(s,"_block_").concat(n))})),i&&"conditions"===n&&(0,se.jsxs)("div",{onClick:function(){S([].concat((0,c.Z)(b),[{_id:Date.now(),open:!0}])),u((0,dt.Z)((0,dt.Z)({},l),{},{conditions:[].concat((0,c.Z)(l.conditions),[[]])})),F("actions"===n||l.conditions.length-1),setTimeout((function(){return F(!1)}),1e3)},className:Ya.blockCardAdd,children:["+",(0,se.jsx)("div",{className:Ya.cardAdd,children:o})]}),(0,se.jsx)(ls,{open:j,onClose:function(){return T(!1)}}),(0,se.jsx)(us,{open:N,onClose:function(){return O(!1)}})]})};ps.defaultProps={children:null,name:"",nameAdditionally:"",additionally:!1,border:!1,typeBlock:""};var hs=ps,gs="style_menuRules__00nS7",ms="style_switchesRenderWrapper__8kuDP",fs="style_menuOff__+NzqA",vs="style_menuTitle__ryFpz",ys="style_marginAuto__1fBxI",bs="style_inputWidth__ztv5O",ks="style_menuWrapper__UQpIH",Ss="style_hamburgerWrapper__E1orU",xs="style_hamburgerOff__OegQ1",ws="style_nothingFound__NMV9T",Cs="style_resetSearch__xcCMm",Is="style_controlPanel__WMp0-",js="style_controlPanelAppBar__3JVH5",Ts="style_addClassMenu__oVnVx",As="style_addClassBackground__jAEkn",Ds="style_addClassPosition__Omc3V",Ns=function(e){var t=e.allProperties,n=e.allProperties,a=n.acceptedBy,s=n.id,o=e.setUserRules,i=e.userRules,r=e.setTourStep,l=e.tourStep,c=e.isTourOpen,u=e.onTouchMove;return(0,se.jsx)(is,(0,dt.Z)((0,dt.Z)((0,dt.Z)({},e),t),{},{children:(0,se.jsx)(Ut,(0,dt.Z)((0,dt.Z)({onTouchMove:u,onDoubleClick:function(){c&&l===Gn&&"TriggerScheduleBlock"===s&&r(Hn),c&&l===Kn&&"ActionPrintText"===s&&r(Qn);var e,t=Date.now();switch(a){case"actions":e="then";break;case"conditions":e=i[a].length-1}var n=Kt(a,i,e),u={id:s,_id:t,acceptedBy:a};void 0!==e?n[a][e].push((0,dt.Z)({},u)):n[a].push((0,dt.Z)({},u)),o(n)},onDoubl:!0},e),t))}))},Es="hamburgerMenu_hamburgerMenu__85qrF",Os="hamburgerMenu_animate__fu7Hd",Ms=function(e){var t=e.boolean;return(0,se.jsx)("div",{className:"".concat(Es," ").concat(t?Os:"")})};Ms.defaultProps={boolean:!1};var zs=Ms,Zs=function(e){var t=e.addClass,n=e.setAllBlocks,s=e.allBlocks,o=e.userRules,i=e.onChangeBlocks,r=e.setTourStep,l=e.tourStep,u=e.isTourOpen,d=(0,a.useContext)(_a),p=d.blocks,h=d.socket,g=Ka(!1,"hamburgerOnOff"),m=(0,w.Z)(g,2),f=m[0],v=m[1],y=Ka({text:"",type:"triggers",index:0},"filterControlPanel"),b=(0,w.Z)(y,2),S=b[0],x=b[1],C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S.text,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.type;if(p){var a=(0,c.Z)(p);a=(a=a.filter((function(t){if(!e)return!0;var n=t.getStaticData().name;return n&&k.I18n.t(n).toLowerCase().includes(e.toLowerCase())}))).filter((function(e){return t===e.getStaticData().acceptedBy})),n(a)}},I=function(e){return{id:"scrollable-force-tab-".concat(e),"aria-controls":"scrollable-force-tabpanel-".concat(e)}};return(0,a.useEffect)((function(){C()}),[p]),(0,se.jsx)(tn.ClickAwayListener,{mouseEvent:!1,touchEvent:"onTouchStart",onClickAway:function(){return v(!0)},children:(0,se.jsxs)("div",{className:k.Utils.clsx(ks,t[1035]&&Ts),children:[(0,se.jsx)("div",{className:"".concat(Ss," ").concat(f?xs:null),onClick:function(){return v(!f)},children:(0,se.jsx)(zs,{boolean:!f})}),(0,se.jsxs)("div",{className:"".concat(k.Utils.clsx(gs,t[1035]&&As,t[835]&&Ds)," ").concat(f?fs:null),children:[(0,se.jsx)("div",{className:Is,children:(0,se.jsx)(tn.AppBar,{className:js,position:"static",children:(0,se.jsxs)(tn.Tabs,{value:S.index,onChange:function(e,t){u&&0===t&&l===Jn&&r(Gn),u&&2===t&&l===Yn&&r(Kn),x((0,dt.Z)((0,dt.Z)({},S),{},{index:t,type:["triggers","conditions","actions"][t]})),C(S.text,["triggers","conditions","actions"][t])},children:[(0,se.jsx)(tn.Tab,(0,dt.Z)({className:"blocks-triggers",title:k.I18n.t("Triggers"),icon:(0,se.jsx)(_t,{iconName:"FlashOn"})},I(0))),(0,se.jsx)(tn.Tab,(0,dt.Z)({title:k.I18n.t("Conditions"),className:"blocks-conditions",icon:(0,se.jsx)(_t,{iconName:"Help"})},I(1))),(0,se.jsx)(tn.Tab,(0,dt.Z)({title:k.I18n.t("Actions"),className:"blocks-actions",icon:(0,se.jsx)(_t,{iconName:"PlayForWork"})},I(2)))]})})}),(0,se.jsx)("div",{className:ms,children:(0,se.jsxs)("span",{children:[s.map((function(e){var t=e.getStaticData(),n=t.name,s=t.id,c=t.icon,d=t.adapter;return(0,se.jsx)(a.Fragment,{children:(0,se.jsx)(Ns,{onTouchMove:function(){return v(!0)},setTourStep:r,tourStep:l,isTourOpen:u,allProperties:e.getStaticData(),name:n,icon:c,adapter:d,socket:h,userRules:o,setUserRules:i,isActive:!1,id:s})},s)})),0===s.length&&(0,se.jsxs)("div",{className:ws,children:[k.I18n.t("Nothing found"),"...",(0,se.jsx)("div",{className:Cs,onClick:function(){x((0,dt.Z)((0,dt.Z)({},S),{},{text:""})),C("")},children:k.I18n.t("reset search")})]})]})}),(0,se.jsx)("div",{className:k.Utils.clsx(vs,ys)}),(0,se.jsx)(vn,{className:bs,fullWidth:!0,customValue:!0,value:S.text,size:"small",autoComplete:"off",label:k.I18n.t("search"),variant:"outlined",onChange:function(e){x((0,dt.Z)((0,dt.Z)({},S),{},{text:e})),C(e)}})]})]})})},Rs=function(e){var t=e.code,n=e.onChange,s=e.themeName,o=e.setTourStep,i=e.tourStep,r=e.isTourOpen,l=e.command,c=e.scriptId,u=e.changed,d=e.running,p=(0,a.useContext)(_a),h=p.blocks,g=p.socket,m=p.setOnUpdate,f=p.setOnDebugMessage,v=p.setEnableSimulation,y=(0,a.useState)([]),b=(0,w.Z)(y,2),S=b[0],x=b[1],C=(0,a.useState)(ma.code2json(t)),I=(0,w.Z)(C,2),j=I[0],T=I[1],A=(0,a.useState)(""),D=(0,w.Z)(A,2),N=D[0],E=D[1],O=(0,a.useState)(!1),M=(0,w.Z)(O,2),z=M[0],Z=M[1];(0,a.useEffect)((function(){var e,t,n=function n(a,s){var o,i;a===e+".alive"?t!==(null===s||void 0===s?void 0:s.val)&&(t=null===s||void 0===s?void 0:s.val)&&g.sendTo(e.replace(/^system\.adapter\./,""),"rulesOn",c):e!==(null===s||void 0===s||null===(o=s.common)||void 0===o?void 0:o.engine)&&(e&&g.unsubscribeState("".concat(e,".alive"),n),t&&g.sendTo(e.replace(/^system\.adapter\./,""),"rulesOn",c),(e=null===s||void 0===s||null===(i=s.common)||void 0===i?void 0:i.engine)&&g.subscribeState("".concat(e,".alive"),n))},a=function(e,t){if(t)try{var n=JSON.parse(t.val);n.ruleId===c&&Date.now()-n.ts<1e3&&f({blockId:n.blockId,data:n.data,ts:n.ts})}catch(a){console.error("Cannot parse: "+t.val)}};return g.getObject(c).then((function(t){var s;e=null===t||void 0===t||null===(s=t.common)||void 0===s?void 0:s.engine,g.subscribeObject(c,n),e&&g.subscribeState("".concat(e,".alive"),n),e&&g.subscribeState(e.replace(/^system\.adapter\./,"")+".debug.rules",a)})),function(){e&&g.unsubscribeObject("".concat(e,".alive"),n),g.unsubscribeState(c,n),t&&e&&g.sendTo(e.replace(/^system\.adapter\./,""),"rulesOff",c),e&&g.unsubscribeState(e.replace(/^system\.adapter\./,"")+".debug.rules",a)}}),[]),(0,a.useEffect)((function(){v(!u&&d)}),[u,d,v]),(0,a.useEffect)((function(){l&&(E(l),z||Z(!0))}),[l]),(0,a.useEffect)((function(){var e=ma.code2json(t);JSON.stringify(e)!==JSON.stringify(j)&&(T(e),m(!0))}),[t]),(0,a.useEffect)((function(){document.getElementsByTagName("HTML")[0].className=s||"blue"}),[s]);var R=(0,a.useCallback)((function(e){T(e),n(ma.json2code(e,h))}),[h,n]),F=(0,a.useRef)({clientWidth:0}),B=(0,a.useState)({835:!1,1035:!1}),P=(0,w.Z)(B,2),_=P[0],L=P[1];return(0,a.useEffect)((function(){F.current&&(F.current.clientWidth<=1035&&L({835:!1,1035:!0}),F.current.clientWidth<=835&&L({1035:!0,835:!0}),F.current.clientWidth>1035&&L({835:!1,1035:!1}))}),[F.current.clientWidth]),h?(0,se.jsxs)("div",{className:Nt,ref:F,children:[(0,se.jsx)(qa,{allBlocks:S,socket:g}),"export"===N?(0,se.jsx)(ft,{onClose:function(){return Z(!1)},open:z,text:JSON.stringify(j,null,2)},"dialogExport"):(0,se.jsx)(bt,{open:z,onClose:function(e){Z(!1),e&&R(JSON.parse(e))}},"dialogImport"),(0,se.jsxs)("div",{className:k.Utils.clsx(Et,_[835]&&Ot),children:[(0,se.jsx)(Zs,{setAllBlocks:x,allBlocks:S,userRules:j,onChangeBlocks:R,setTourStep:o,tourStep:i,addClass:_,isTourOpen:r}),(0,se.jsx)(hs,{setUserRules:R,userRules:j,isTourOpen:r,setTourStep:o,tourStep:i,name:"".concat(k.I18n.t("when"),"..."),typeBlock:"triggers",iconName:"FlashOn",size:_[835]}),(0,se.jsx)(hs,{setUserRules:R,isTourOpen:r,setTourStep:o,tourStep:i,userRules:j,name:"...".concat(k.I18n.t("and"),"..."),typeBlock:"conditions",iconName:"Help",nameAdditionally:k.I18n.t("or"),additionally:!0,border:!0,size:_[835]}),(0,se.jsx)(hs,{setUserRules:R,isTourOpen:r,setTourStep:o,tourStep:i,userRules:j,name:"...".concat(k.I18n.t("then")),typeBlock:"actions",iconName:"PlayForWork",nameAdditionally:k.I18n.t("else"),additionally:!0,size:_[835]})]})]},"rulesEditor"):null},Fs=n(76278),Bs=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).state={lines:(a.props.script||"").split(/\r\n|\n/)},a}return(0,d.Z)(n,[{key:"editorDidMount",value:function(e,t){this.monaco=t,this.editor=e,e.focus()}},{key:"render",value:function(){var e=this;return(0,se.jsx)("div",{className:this.props.classes.editorDiv,children:(0,se.jsx)(lt,{name:this.props.scriptName,adapterName:this.props.adapterName,readOnly:!0,code:this.props.script||"",isDark:"dark"===this.props.themeType,socket:this.props.socket,runningInstances:this.props.runningInstances,language:"javascript",breakpoints:this.props.breakpoints,location:this.props.paused?this.props.location:null,onToggleBreakpoint:function(t){return e.props.onToggleBreakpoint(t)}},"scriptEditor2")},"scriptEditorDiv2")}}]),n}(s().Component),Ps=(0,g.Z)((function(e){return{editorDiv:{height:"100%",width:"100%",overflow:"hidden",position:"relative"},editor:{width:"100%",height:"100%",overflow:"auto"},line:{width:"100%",whiteSpace:"nowrap"},lineNumber:{width:40,whiteSpace:"nowrap",overflow:"hidden",display:"inline-block",fontFamily:"Lucida Console, Courier, monospace",textAlign:"right",fontSize:14,marginRight:1,borderRight:"1px solid #555",cursor:"pointer"},lineBreakpoint:{background:"#330000",color:"white"},lineCode:{display:"inline-block",fontFamily:"Lucida Console, Courier, monospace",fontSize:14,margin:0,whiteSpace:"pre"},lineCurrentCode:{background:"red",color:"white"},lineCurrent:{background:"#880000",color:"white"}}}))(Bs);function _s(e){var t,n=e.getHours();return n<10&&(n="0"+n.toString()),t=n+":",(n=e.getMinutes())<10&&(n="0"+n.toString()),t+=n+":",(n=e.getSeconds())<10&&(n="0"+n.toString()),t+=n+".",(n=e.getMilliseconds())<10?n="00"+n.toString():n<100&&(n="0"+n.toString()),t+=n}var Ls=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).state={lines:{},goBottom:!0},a.messagesEnd=s().createRef(),a}return(0,d.Z)(n,[{key:"generateLine",value:function(e){return(0,se.jsxs)("tr",{className:this.props.classes[e.severity],children:[(0,se.jsx)("td",{className:this.props.classes.trTime,children:_s(new Date(e.ts))},"tdTime"),(0,se.jsx)("td",{className:this.props.classes.trSeverity,children:e.severity},"tdSeverity"),(0,se.jsx)("td",{children:e.text},"tdMessage")]},"tr_".concat(e.ts,"_").concat(e.text.substr(-10)))}},{key:"renderLogList",value:function(e){var t=this;return e&&e.length?(0,se.jsxs)("div",{className:this.props.classes.logBoxInner,children:[(0,se.jsx)("table",{className:this.props.classes.table,children:(0,se.jsx)("tbody",{children:e.map((function(e,n){return t.generateLine(e)}))})},"logTable"),(0,se.jsx)("div",{ref:this.messagesEnd,style:{float:"left",clear:"both"}},"logScrollPoint")]},"logList"):(0,se.jsx)("div",{className:this.props.classes.logBoxInner,style:{paddingLeft:10},children:k.I18n.t("Log outputs")},"logList")}},{key:"onCopy",value:function(){k.Utils.copyToClipboard(this.props.console.join("\n"))}},{key:"scrollToBottom",value:function(){this.messagesEnd&&this.messagesEnd.current&&this.messagesEnd.current.scrollIntoView({behavior:"smooth"})}},{key:"componentDidUpdate",value:function(){this.state.goBottom&&this.scrollToBottom()}},{key:"render",value:function(){var e=this,t=this.props.console;return(0,se.jsxs)("div",{className:this.props.classes.logBox,children:[(0,se.jsxs)("div",{className:this.props.classes.toolbox,children:[(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.setState({goBottom:!e.state.goBottom})},color:this.state.goBottom?"secondary":"",size:"medium",children:(0,se.jsx)(S.G10,{})}),t&&t.length?(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.props.onClearAllLogs()},size:"medium",children:(0,se.jsx)(S.FH3,{})}):null,t&&t.length?(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.onCopy()},size:"medium",children:(0,se.jsx)(S.Fqs,{})}):null]},"toolbox"),this.renderLogList(t)]})}}]),n}(s().Component),Us=(0,g.Z)((function(e){return{consoleLine:{fontSize:14,color:"dark"===e.palette.mode?"#EEE":"#222"},console_log:{},console_warn:{backgroundColor:"dark"===e.palette.mode?"#885900":"#ffa500"},console_error:{backgroundColor:"dark"===e.palette.mode?"#7a0000":"#FF0000"},console_debug:{opacity:.6},consoleSeverity:{verticalAlign:"top",width:50,textTransform:"uppercase"},consoleTime:{whiteSpace:"nowrap",verticalAlign:"top",width:170},consoleText:{fontFamily:"Lucida Console, Courier, monospace",paddingTop:4,"&>pre":{margin:0}},logBox:{width:"100%",height:"100%",position:"relative",overflow:"hidden"},logBoxInner:{display:"inline-block",color:"dark"===e.palette.mode?"white":"black",width:"calc(100% - ".concat(34,"px)"),height:"100%",overflow:"auto",position:"relative",verticalAlign:"top"},info:{background:"dark"===e.palette.mode?"darkgrey":"lightgrey",color:(e.palette.mode,"black")},error:{background:"#FF0000",color:"dark"===e.palette.mode?"black":"white"},warn:{background:"#FF8000",color:"dark"===e.palette.mode?"black":"white"},debug:{background:"gray",opacity:.8,color:"dark"===e.palette.mode?"black":"white"},silly:{background:"gray",opacity:.6,color:"dark"===e.palette.mode?"black":"white"},table:{fontFamily:"monospace",width:"100%"},toolbox:{width:34,height:"100%",boxShadow:"2px 0px 4px -1px rgba(0, 0, 0, 0.2), 4px 0px 5px 0px rgba(0, 0, 0, 0.14), 1px 0px 10px 0px rgba(0, 0, 0, 0.12)",display:"inline-block",verticalAlign:"top",overflow:"hidden"},trTime:{width:90},trSeverity:{width:40,fontWeight:"bold"},iconButtons:{width:32,height:32,padding:4}}}))(Ls),Ws=n(71939),Vs=n.n(Ws),Js=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).framesSize=parseFloat(window.localStorage.getItem("App.framesSize"))||300,a.state={editValue:null,callFrames:a.props.callFrames},a.editRef=s().createRef(),a}return(0,d.Z)(n,[{key:"onExpressionNameUpdate",value:function(){var e=this;this.props.onExpressionNameUpdate(this.state.editValue.index,this.scopeValue,(function(){e.setState({editValue:null}),e.scopeValue=null}))}},{key:"renderExpression",value:function(e,t){var n=this,a=this.state.editValue&&"expression"===this.state.editValue.type&&this.state.editValue.index===t?(0,se.jsx)(z.Z,{inputRef:this.editRef,fullWidth:!0,margin:"dense",onBlur:function(){return n.state.editValue&&n.setState({editValue:null})},defaultValue:e.name,onKeyUp:function(e){13===e.keyCode?n.onExpressionNameUpdate():27===e.keyCode&&n.setState({editValue:null})},onChange:function(e){return n.scopeValue=e.target.value},endAdornment:(0,se.jsx)(Se.Z,{position:"end",children:(0,se.jsx)(E.Z,{onClick:function(){return n.onExpressionNameUpdate()},size:"medium",children:(0,se.jsx)(S.HhX,{})})})}):[(0,se.jsx)("div",{className:this.props.classes.scopeNameName,title:k.I18n.t("Double click to edit expression"),children:e.name},"name"),(0,se.jsx)("div",{className:this.props.classes.scopeNameEqual,children:" = "},"="),(0,se.jsx)("div",{className:this.props.classes.scopeNameValue,children:this.formatValue(e.value)},"val")];return(0,se.jsxs)("tr",{children:[(0,se.jsx)("td",{className:k.Utils.clsx(this.props.classes.scopeType,this.props.classes.scopeType_user),children:"user"}),(0,se.jsx)("td",{className:this.props.classes.scopeName,onDoubleClick:function(){n.scopeValue=e.name||"",n.setState({editValue:{type:"expression",valueType:"string",index:t,name:e.name,value:e.name||""}})},children:a}),(0,se.jsx)(E.Z,{className:this.props.classes.scopeButtonDel,size:"small",disabled:!!this.state.editValue,onClick:function(){return n.props.onExpressionDelete(t)},children:(0,se.jsx)(S.ZkW,{})})]},"user_".concat(t).concat(e.name))}},{key:"renderExpressions",value:function(){var e=this;return this.props.expressions.map((function(t,n){return e.renderExpression(t,n)}))}},{key:"renderOneFrameTitle",value:function(e,t){var n=this;if(this.props.mainScriptId===this.props.currentScriptId&&e.location.scriptId!==this.props.mainScriptId)return null;var a=e.url.split("/").pop().replace(/^script\.js\./,"");return(0,se.jsx)(Fs.Z,{onClick:function(){return n.props.onChangeCurrentFrame(t)},dense:!0,selected:this.props.currentFrame===t,classes:{root:this.props.classes.frameRoot},children:(0,se.jsx)(N.Z,{classes:{root:this.props.classes.frameTextRoot,primary:this.props.classes.frameTextPrimary,secondary:this.props.classes.frameTextSecondary},title:e.url,primary:e.functionName||"anonymous",secondary:"".concat(a," (").concat(e.location.lineNumber,":").concat(e.location.columnNumber,")")})},e.id)}},{key:"formatValue",value:function(e,t){if(e){if("function"===e.type){var n=e.description?e.description.length>100?e.description.substring(0,100)+"...":e.description:"function";return t?n:(0,se.jsx)("span",{className:this.props.classes.valueFunc,title:e.description,children:n})}if(void 0===e.value)return t?"undefined":(0,se.jsx)("span",{className:this.props.classes.valueUndefined,children:"undefined"});if(null===e.value)return t?"null":(0,se.jsx)("span",{className:this.props.classes.valueNull,children:"null"});if("string"===e.type){if(t)return e.value;var a=e.value?e.value.length>100?e.value.substring(0,100)+"...":e.value:"";return(0,se.jsxs)("span",{className:this.props.classes.valueString,title:a,children:['"',a,'"']})}return"boolean"===e.type?t?e.value.toString():(0,se.jsx)("span",{className:this.props.classes.valueBoolean,children:e.value.toString()}):"object"===e.type?t?JSON.stringify(e.value):(0,se.jsx)(Vs(),{enableClipboard:!1,style:{backgroundColor:"inherit",marginTop:3},src:e.value,collapsed:!0,theme:"dark"===this.props.themeType?"brewer":"rjv-default",displayDataTypes:!1}):e.value.toString()}return t?"none":(0,se.jsx)("span",{className:this.props.classes.valueNone,children:"none"})}},{key:"onWriteScopeValue",value:function(){"true"===this.scopeValue?this.scopeValue=!0:"false"===this.scopeValue?this.scopeValue=!1:"null"===this.scopeValue?this.scopeValue=null:"undefined"===this.scopeValue?this.scopeValue=void 0:parseFloat(this.scopeValue).toString()===this.scopeValue&&(this.scopeValue=parseFloat(this.scopeValue)),this.props.onWriteScopeValue({variableName:this.state.editValue.name,scopeNumber:0,newValue:{value:this.scopeValue,valueType:typeof this.scopeValue},callFrameId:this.props.callFrames[this.props.currentFrame].callFrameId}),this.setState({editValue:null}),this.scopeValue=null}},{key:"componentDidUpdate",value:function(){var e;null===(e=this.editRef.current)||void 0===e||e.focus()}},{key:"renderScope",value:function(e,t,n){var a,s,o=this,i=!this.props.currentFrame&&t.value&&("undefined"===t.value.type||"string"===t.value.type||"number"===t.value.type||"boolean"===t.value.type||null===(null===(a=t.value)||void 0===a?void 0:a.value)||void 0===(null===(s=t.value)||void 0===s?void 0:s.value)),r=this.state.editValue&&this.state.editValue.type===n&&this.state.editValue.name===t.name?[(0,se.jsx)("div",{className:this.props.classes.scopeNameName,children:t.name},"name"),(0,se.jsx)("div",{className:this.props.classes.scopeNameEqual,children:" = "},"="),(0,se.jsx)(z.Z,{inputRef:this.editRef,margin:"dense",onBlur:function(){return o.state.editValue&&o.setState({editValue:null})},defaultValue:this.formatValue(t.value,!0),onKeyUp:function(e){13===e.keyCode?o.onWriteScopeValue():27===e.keyCode&&o.setState({editValue:null})},onChange:function(e){return o.scopeValue=e.target.value},endAdornment:(0,se.jsx)(Se.Z,{position:"end",children:(0,se.jsx)(E.Z,{onClick:function(){return o.onWriteScopeValue()},size:"medium",children:(0,se.jsx)(S.HhX,{})})})})]:[(0,se.jsx)("div",{className:this.props.classes.scopeNameName,title:k.I18n.t("Double click to write value"),children:t.name},"name"),(0,se.jsx)("div",{className:this.props.classes.scopeNameEqual,children:" = "},"="),(0,se.jsxs)("div",{className:this.props.classes.scopeNameValue,children:[this.formatValue(t.value)," (",t.value.type,")"]},"val")];return(0,se.jsxs)("tr",{children:[(0,se.jsx)("td",{className:k.Utils.clsx(this.props.classes.scopeType,this.props.classes["scopeType_"+n]),children:n}),(0,se.jsx)("td",{className:k.Utils.clsx(this.props.classes.scopeName,!this.props.currentFrame&&i&&this.props.classes.scopeValueEditable),onDoubleClick:function(){i&&(o.scopeValue=t.value.value,o.setState({editValue:{scopeId:e,type:n,valueType:t.value.type,name:t.name,value:t.value.value}}))},children:r})]},"".concat(n,"_").concat(e,"_").concat(t.name))}},{key:"renderScopes",value:function(e){var t=this;if(e){var n,a,s,o,i,r,l=this.renderExpressions(),c=null===(n=this.props.scopes)||void 0===n||null===(a=n.local)||void 0===a||null===(s=a.properties)||void 0===s?void 0:s.result.map((function(e){return t.renderScope(t.props.scopes.id,e,"local")}));return c&&c.forEach((function(e){return l.push(e)})),(c=null===(o=this.props.scopes)||void 0===o||null===(i=o.closure)||void 0===i||null===(r=i.properties)||void 0===r?void 0:r.result.map((function(e){return t.renderScope(t.props.scopes.id,e,"closure")})))&&c.forEach((function(e){return l.push(e)})),(0,se.jsx)("table",{style:{width:"100%"},children:(0,se.jsx)("tbody",{children:l})})}return null}},{key:"render",value:function(){var e=this;return(0,se.jsxs)(f(),{customClassName:this.props.classes.splitter,primaryIndex:1,secondaryMinSize:200,primaryMinSize:200,vertical:!1,secondaryInitialSize:this.framesSize,onSecondaryPaneSizeChange:function(t){return e.framesSize=parseFloat(t)},onDragEnd:function(){return window.localStorage.setItem("App.framesSize",e.framesSize.toString())},children:[(0,se.jsx)("div",{style:{width:"100%",height:"100%",overflow:"auto"},children:(0,se.jsx)(j.Z,{classes:{root:this.props.classes.listRoot},children:this.props.callFrames?this.props.callFrames.map((function(t,n){return e.renderOneFrameTitle(t,n)})):null})}),(0,se.jsxs)("div",{style:{width:"100%",height:"100%",overflow:"auto"},children:[(0,se.jsx)("div",{className:this.props.classes.toolbarScopes,children:(0,se.jsx)(E.Z,{size:"small",onClick:function(){return e.props.onExpressionAdd((function(t,n){e.scopeValue=n.name||"",e.setState({editValue:{type:"expression",valueType:"string",index:t,name:n.name,value:n.name||""}})}))},children:(0,se.jsx)(S.x06,{})})}),(0,se.jsx)("div",{className:this.props.classes.scopesAfterToolbar,children:this.props.callFrames&&this.props.callFrames.length&&this.renderScopes(this.props.callFrames[this.props.currentFrame])})]})]})}}]),n}(s().Component),Gs=(0,g.Z)((function(e){return{frameRoot:{paddingTop:0,paddingBottom:0},frameTextRoot:{margin:0},frameTextPrimary:{color:"dark"===e.palette.mode?"#CCC":"#333"},frameTextSecondary:{fontStyle:"italic",fontSize:12,opacity:.6,paddingLeft:e.spacing(1)},listRoot:{padding:0},scopeType:{verticalAlign:"top",textTransform:"uppercase",width:50},scopeType_local:{color:"#53a944"},scopeType_closure:{color:"#365b80"},scopeType_user:{color:"#a48a15"},scopeName:{color:"#bc5b5b",width:"calc(100% - 82px)",whiteSpace:"nowrap",textOverflow:"ellipsis"},scopeButton:{width:32},scopeValueEditable:{cursor:"pointer"},selectedFrame:{backgroundColor:"#777",color:"white"},splitter:{width:"100%",height:"calc(100% - 36px)",overflow:"hidden",fontSize:12},toolbarScopes:{width:24,display:"inline-block",height:"100%",background:"dark"===e.palette.mode?"#222":"#EEE",verticalAlign:"top"},scopesAfterToolbar:{width:"calc(100% - 24px)",display:"inline-block",height:"100%",verticalAlign:"top"},scopeNameName:{fontWeight:"bold",display:"inline-block",verticalAlign:"top"},scopeNameEqual:{display:"inline-block",color:"dark"===e.palette.mode?"#EEE":"#222",verticalAlign:"top"},scopeNameValue:{verticalAlign:"top",display:"inline-block",color:"#3b709f",whiteSpace:"nowrap"},scopeButtonDel:{padding:0,float:"right"},valueNull:{color:"#a44a24"},valueUndefined:{color:"#a44a24"},valueString:{color:"#1e8816"},valueNumber:{color:"#163c88"},valueBoolean:{color:"#a44a24"},valueObject:{color:"#721b70"},valueNone:{color:"#8a8a8a"},valueFunc:{color:"#ac4343"}}}))(Js),Hs=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;(0,u.Z)(this,n),(a=t.call(this,e)).fromInstance=function(e,t){try{var n=JSON.parse(t.val);if("subscribed"===n.cmd)a.props.socket.sendTo(a.state.instance,"debug",a.props.debugInstance||{scriptName:a.props.src});else if("readyToDebug"===n.cmd){var s;a.mainScriptId=n.scriptId,a.scripts[n.scriptId]=n.script,n.script.startsWith("(async () => {debugger;\n")?a.scripts[n.scriptId]="(async () => {\n".concat(n.script.substring(24)):n.script.startsWith("debugger;")&&(a.scripts[n.scriptId]=n.script.substring(9));var o=JSON.parse(JSON.stringify(a.state.tabs));o[n.scriptId]=a.props.debugInstance?n.url:a.props.src.replace("script.js.","");var i="".concat(Date.now(),".").concat(1e4*Math.random());(null===(s=n.context)||void 0===s?void 0:s.callFrames)&&n.context.callFrames.forEach((function(e,t){return e.id=i+t})),a.setState({starting:!1,finished:!1,selected:a.mainScriptId,script:a.scripts[n.scriptId],tabs:o,currentFrame:0,started:!0,paused:!0,location:a.getLocation(n.context),context:n.context},(function(){return a.reinitBreakpoints((function(){a.readCurrentScope(),a.readExpressions()}))}))}else if("paused"===n.cmd){var r,l,u="".concat(Date.now(),".").concat(1e4*Math.random());(null===(r=n.context)||void 0===r?void 0:r.callFrames)&&n.context.callFrames.forEach((function(e,t){return e.id=u+t}));var d=a.getLocation(n.context),p=JSON.parse(JSON.stringify(a.state.tabs)),h=n.context.callFrames[0].url.split("iobroker.javascript");p[d.scriptId]=(h[1]||h[0]).replace("script.js.","");var g={tabs:p,paused:!0,location:d,currentFrame:0,context:n.context,scope:{id:(null===(l=n.context)||void 0===l?void 0:l.callFrames)&&n.context.callFrames[0]&&n.context.callFrames[0].id||0}};g.script=void 0===a.scripts[d.scriptId]?k.I18n.t("loading..."):a.scripts[d.scriptId],g.selected=d.scriptId,a.setState(g,(function(){a.readCurrentScope(),a.readExpressions(),a.scripts[d.scriptId]||a.sendToInstance({cmd:"source",scriptId:d.scriptId})}))}else if("script"===n.cmd)a.scripts[n.scriptId]=n.text,a.state.selected===n.scriptId&&a.setState({script:a.scripts[n.scriptId]});else if("resumed"===n.cmd)a.setState({paused:!1});else if("log"===n.cmd)if("console"===a.state.toolsTab){a.console=null;var m=(0,c.Z)(a.state.console);m.push({text:n.text,severity:n.severity,ts:n.ts}),a.setState({console:m})}else"error"===n.severity?a.setState({logErrors:a.state.logErrors+1}):"warn"===n.severity?a.setState({logWarnings:a.state.logWarnings+1}):a.setState({logs:a.state.logs+1}),a.console=a.console||(0,c.Z)(a.state.console),a.console.push({text:n.text,severity:n.severity,ts:n.ts});else if("error"===n.cmd)a.setState({error:n.error});else if("finished"===n.cmd||"debugStopped"===n.cmd)a.setState({finished:!0,starting:!1,started:!0});else if("sb"===n.cmd){var f=JSON.parse(JSON.stringify(a.state.breakpoints)),v=!1;n.breakpoints.filter((function(e){return e})).forEach((function(e){var t=f.find((function(t){return t.location.scriptId===e.location.scriptId&&t.location.lineNumber===e.location.lineNumber}));t||(v=!0,f.push(e))})),v&&window.localStorage.setItem("javascript.tools.bp."+a.props.src,JSON.stringify(f)),v&&a.setState({breakpoints:f})}else if("cb"===n.cmd){var y=JSON.parse(JSON.stringify(a.state.breakpoints)),b=!1;n.breakpoints.filter((function(e){return void 0!==e&&null!==e})).forEach((function(e){var t=y.find((function(t){return t.id===e}));if(t){var n=y.indexOf(t);y.splice(n,1),b=!0}})),b&&window.localStorage.setItem("javascript.tools.bp."+a.props.src,JSON.stringify(y)),b&&a.setState({breakpoints:y})}else if("scope"===n.cmd){var S=n.scopes.find((function(e){return"local"===e.type}))||null,x=n.scopes.find((function(e){return"closure"===e.type}))||null;console.log(JSON.stringify(x)),a.setState({scopes:{local:S,closure:x,id:"".concat(a.state.scope.id,"_").concat(a.state.currentFrame)}})}else if("setValue"===n.cmd){var w,C=JSON.parse(JSON.stringify(a.state.scopes));(w=0===n.scopeNumber?C.local&&C.local.properties&&C.local.properties.result&&C.local.properties.result.find((function(e){return e.name===n.variableName})):C.closure&&C.closure.properties&&C.closure.properties.result&&C.closure.properties.result&&C.closure.properties.result.find((function(e){return e.name===n.variableName})))&&(w.value.value=n.newValue.value,a.setState({scopes:C}))}else if("expressions"===n.cmd){var I=JSON.parse(JSON.stringify(a.state.expressions)),j=!1;n.expressions.forEach((function(e){var t=I.find((function(t){return t.name===e.name}));t&&(j=!0,t.value=e.result)})),j&&a.setState({expressions:I}),console.log("expressions: "+JSON.stringify(n))}else if("getPossibleBreakpoints"===n.cmd){var T,A,D,N;1===(null===(T=n.breakpoints)||void 0===T||null===(A=T.locations)||void 0===A?void 0:A.length)?a.sendToInstance({breakpoints:n.breakpoints.locations,cmd:"sb"}):null!==(D=n.breakpoints)&&void 0!==D&&null!==(N=D.locations)&&void 0!==N&&N.length?a.setState({queryBreakpoints:n.breakpoints.locations}):window.alert("cannot set")}else console.error("Unknown command: ".concat(JSON.stringify(n)))}catch(E){}};var s=window.localStorage.getItem("javascript.tools.bp."+a.props.src);try{s=s?JSON.parse(s):[]}catch(i){s=[]}var o=window.localStorage.getItem("javascript.tools.exps."+a.props.src);try{o=(o=o?JSON.parse(o):[]).map((function(e){return{name:e}}))}catch(i){o=[]}return a.toolSize=window.localStorage&&parseFloat(window.localStorage.getItem("App.toolSize"))||150,a.state={starting:!0,selected:null,tabs:{},script:"",breakpoints:s,expressions:o,running:!1,error:"",started:!1,paused:!0,location:null,toolsTab:window.localStorage.getItem("javascript.tools.tab")||"console",stopOnException:"true"===window.localStorage.getItem("javascript.tools.stopOnException"),console:[],finished:!1,currentFrame:0,scopes:{},queryBreakpoints:null,logErrors:0,logWarnings:0,logs:0},a.scripts={},a.mainScriptId=null,a}return(0,d.Z)(n,[{key:"componentDidMount",value:function(){var e=this;new Promise((function(t){e.props.debugInstance?t(e.props.debugInstance.instance):e.props.socket.getObject(e.props.src).then((function(e){var n,a;return t(null===e||void 0===e||null===(n=e.common)||void 0===n||null===(a=n.engine)||void 0===a?void 0:a.replace("system.adapter.",""))}))})).then((function(t){return e.setState({instance:t},(function(){e.state.instance?(e.props.socket.setState("".concat(e.state.instance,".debug.from"),{val:'{"cmd": "subscribed"}',ack:!0}),setTimeout((function(){return e.props.socket.subscribeState("".concat(e.state.instance,".debug.from"),e.fromInstance)}),200)):e.setState({error:"Unknown instance"})}))}))}},{key:"componentWillUnmount",value:function(){this.state.instance&&(this.props.socket.unsubscribeState("".concat(this.state.instance,".debug.from"),this.fromInstance),this.props.socket.sendTo(this.state.instance,"debugStop"))}},{key:"sendToInstance",value:function(e){this.props.socket.setState("".concat(this.state.instance,".debug.to"),{val:JSON.stringify(e),ack:!1})}},{key:"reinitBreakpoints",value:function(e){var t=this;if(this.state.breakpoints.length){var n=JSON.parse(JSON.stringify(this.state.breakpoints));n=n.map((function(e){return e.location})),this.setState({breakpoints:[]},(function(){t.sendToInstance({breakpoints:n,cmd:"sb"}),t.state.stopOnException&&t.sendToInstance({cmd:"stopOnException",state:!0}),e&&e()}))}else this.state.stopOnException?(this.sendToInstance({cmd:"stopOnException",state:!0}),e&&e()):e&&e()}},{key:"getLocation",value:function(e){if(e.callFrames)return e.callFrames[0].location}},{key:"readCurrentScope",value:function(){var e,t=(null===(e=this.state.context)||void 0===e?void 0:e.callFrames)&&this.state.context.callFrames[this.state.currentFrame];if(t){var n=t.scopeChain.filter((function(e){return"global"!==e.type}));n.length?this.sendToInstance({cmd:"scope",scopes:n}):(this.state.scopes.global||this.state.scopes.local||this.state.scopes.closure)&&this.setState({scopes:{}})}}},{key:"readExpressions",value:function(e){var t;this.state.expressions.length&&null!==(t=this.state.context)&&void 0!==t&&t.callFrames&&this.state.context.callFrames[this.state.currentFrame]&&(void 0!==e?this.sendToInstance({cmd:"expressions",expressions:[this.state.expressions[e]],callFrameId:this.state.context.callFrames[this.state.currentFrame].callFrameId}):this.sendToInstance({cmd:"expressions",expressions:this.state.expressions,callFrameId:this.state.context.callFrames[this.state.currentFrame].callFrameId}))}},{key:"getTextAtLocation",value:function(e){var t=this.state.script.split(/\r\n|\n/)[e.lineNumber],n="";return e.columnNumber>=10?(t=t.substring(e.columnNumber-10,e.columnNumber+20),n="".padStart(10," ")+"\u2191"):(t=t.substring(0,30-e.columnNumber),n="".padStart(e.columnNumber," ")+"\u2191"),[(0,se.jsx)("div",{className:this.props.classes.monospace,children:t},"line"),(0,se.jsx)("div",{className:k.Utils.clsx(this.props.classes.monospace,this.props.classes.arrow),children:n},"arrow")]}},{key:"renderQueryBreakpoints",value:function(){var e=this;return this.state.queryBreakpoints?(0,se.jsxs)(Q.Z,{onClose:function(){return e.setState({queryBreakpoints:null})},"aria-labelledby":"bp-dialog-title",open:!0,children:[(0,se.jsx)(q.Z,{id:"bp-dialog-title",children:k.I18n.t("Select breakpoint")}),(0,se.jsx)(j.Z,{children:this.state.queryBreakpoints.map((function(t,n){return(0,se.jsx)(Fs.Z,{classes:{root:e.props.classes.bpListItem},dense:!0,onClick:function(){e.sendToInstance({breakpoints:[t],cmd:"sb"}),e.setState({queryBreakpoints:null})},children:(0,se.jsx)(N.Z,{classes:{primary:e.props.classes.bpListPrimary,secondary:e.props.classes.bpListSecondary},primary:e.getTextAtLocation(t)})},n)}))})]}):null}},{key:"renderError",value:function(){var e=this;return this.state.error?(0,se.jsx)(be,{onClose:function(){return e.setState({error:""})},text:this.state.error},"dialogError"):null}},{key:"closeTab",value:function(e,t){t&&t.stopPropagation();var n=JSON.parse(JSON.stringify(this.state.tabs));delete n[e];var a={tabs:n,script:this.scripts[this.mainScriptId],selected:this.mainScriptId};this.state.location&&this.state.location.scriptId!==this.mainScriptId&&(a.location=null),this.setState(a)}},{key:"renderTabs",value:function(){var e=this,t=!this.state.tabs||!this.state.started;return(0,se.jsx)(Ge.Z,{component:"div",indicatorColor:"primary",style:{position:"relative",width:"calc(100% - 300px)",display:"inline-block"},value:this.state.selected,onChange:function(t,n){e.scripts[n]?e.setState({selected:n,script:e.scripts[n]}):e.setState({selected:n,script:"loading..."},(function(){return e.sendToInstance({cmd:"source",scriptId:n})}))},scrollButtons:"auto",children:Object.keys(this.state.tabs||[]).map((function(n){var a=n,s=e.state.tabs[n]||"";return e.state.tabs[n]&&(a=e.state.tabs[n].split("/").pop()),a=[(0,se.jsx)("div",{className:k.Utils.clsx(e.props.classes.tabText),children:a},"text"),n!==e.mainScriptId&&(0,se.jsx)("span",{className:e.props.classes.closeButton,children:(0,se.jsx)(S.FU5,{onClick:function(t){return e.closeTab(n,t)},fontSize:"small"},"close")},"icon")],(0,se.jsx)(He.Z,{disabled:t,classes:{root:e.props.classes.tabFile},label:a,title:s,value:n},n)}))})}},{key:"onResume",value:function(){this.sendToInstance({cmd:"cont"})}},{key:"onPause",value:function(){this.sendToInstance({cmd:"pause"})}},{key:"onNext",value:function(){this.sendToInstance({cmd:"next"})}},{key:"onStepIn",value:function(){this.sendToInstance({cmd:"step"})}},{key:"onStepOut",value:function(){this.sendToInstance({cmd:"out"})}},{key:"onRestart",value:function(){var e=this;this.setState({started:!1,starting:!0},(function(){return e.props.socket.sendTo(e.state.instance,"debug",e.props.debugInstance||{scriptName:e.props.src})}))}},{key:"onToggleException",value:function(){var e=this,t=!this.state.stopOnException;window.localStorage.setItem("javascript.tools.stopOnException",t?"true":"false"),this.setState({stopOnException:t},(function(){return e.sendToInstance({cmd:"stopOnException",state:t})}))}},{key:"renderToolbar",value:function(){var e=this,t=!this.state.started;return(0,se.jsxs)(Je.Z,{variant:"dense",className:this.props.classes.toolbar,children:[(0,se.jsx)(E.Z,{className:this.props.classes.buttonRestart,disabled:t,onClick:function(){return e.onRestart()},title:k.I18n.t("Restart"),size:"medium",children:(0,se.jsx)(S.la_,{})}),!this.state.finished&&this.state.paused?(0,se.jsx)(E.Z,{className:this.props.classes.buttonRun,disabled:t,onClick:function(){return e.onResume()},title:k.I18n.t("Resume execution"),size:"medium",children:(0,se.jsx)(S.Nhx,{})}):!this.state.finished&&(0,se.jsx)(E.Z,{disabled:t,className:this.props.classes.buttonPause,onClick:function(){return e.onPause()},title:k.I18n.t("Pause execution"),size:"medium",children:(0,se.jsx)(S.hPq,{})}),!this.state.finished&&(0,se.jsx)(E.Z,{className:this.props.classes.buttonNext,disabled:t||!this.state.paused,onClick:function(){return e.onNext()},title:k.I18n.t("Go to next line"),size:"medium",children:(0,se.jsx)(S.hdK,{})}),!this.state.finished&&(0,se.jsx)(E.Z,{className:this.props.classes.buttonStep,disabled:t||!this.state.paused,onClick:function(){return e.onStepIn()},title:k.I18n.t("Step into function"),size:"medium",children:(0,se.jsx)(S.t9$,{})}),!this.state.finished&&(0,se.jsx)(E.Z,{className:this.props.classes.buttonOut,disabled:t||!this.state.paused,onClick:function(){return e.onStepOut()},title:k.I18n.t("Step out from function"),size:"medium",children:(0,se.jsx)(S.InZ,{})}),!this.state.finished&&(0,se.jsx)(E.Z,{className:this.props.classes.buttonException,color:this.state.stopOnException?"primary":"default",disabled:t||!this.state.paused,onClick:function(){return e.onToggleException()},title:k.I18n.t("Stop on exception"),size:"medium",children:(0,se.jsx)(S.YTL,{})}),this.renderTabs()]},"toolbar1")}},{key:"getPossibleBreakpoints",value:function(e){var t=(0,dt.Z)((0,dt.Z)({},e),{},{columnNumber:1e3});this.sendToInstance({cmd:"getPossibleBreakpoints",start:e,end:t})}},{key:"toggleBreakpoint",value:function(e){var t=this,n=this.state.breakpoints.find((function(n){return n.location.scriptId===t.state.selected&&n.location.lineNumber===e}));if(n){var a=JSON.parse(JSON.stringify(this.state.breakpoints));this.setState({breakpoints:a},(function(){return t.sendToInstance({breakpoints:[n.id],cmd:"cb"})}))}else n={scriptId:this.state.selected,lineNumber:e,columnNumber:0},this.getPossibleBreakpoints(n)}},{key:"renderCode",value:function(){var e=this;if(this.state.script&&this.state.started){var t=this.state.breakpoints.filter((function(t){return t.location.scriptId===e.state.selected}));return(0,se.jsx)(Ps,{runningInstances:this.props.runningInstances,socket:this.props.socket,adapterName:this.props.adapterName,scriptName:this.state.tabs[this.state.selected],sourceId:this.state.selected,script:this.state.script,paused:this.state.paused,breakpoints:t,location:this.state.location,themeType:this.props.themeType,themeName:this.props.themeName,onToggleBreakpoint:function(t){return e.toggleBreakpoint(t)}})}}},{key:"renderFrames",value:function(){var e,t=this;return this.state.paused?(0,se.jsx)(Gs,{currentScriptId:this.state.selected,scopes:this.state.scopes,expressions:this.state.expressions,themeType:this.props.themeType,callFrames:null===(e=this.state.context)||void 0===e?void 0:e.callFrames,currentFrame:this.state.currentFrame,onChangeCurrentFrame:function(e){t.setState({currentFrame:e,scopes:{}},(function(){t.readCurrentScope(),t.readExpressions()}))},onWriteScopeValue:function(e){t.sendToInstance({cmd:"setValue",variableName:e.variableName,scopeNumber:e.scopeNumber,newValue:e.newValue,callFrameId:e.callFrameId})},onExpressionDelete:function(e){var n=JSON.parse(JSON.stringify(t.state.expressions));n.splice(e,1),t.setState({expressions:n}),window.localStorage.setItem("javascript.tools.exps."+t.props.src,JSON.stringify(n.map((function(e){return e.name}))))},onExpressionAdd:function(e){var n=JSON.parse(JSON.stringify(t.state.expressions));n.push({name:"",value:{value:""}}),t.setState({expressions:n},(function(){return e&&e(n.length-1,t.state.expressions[n.length-1])}))},onExpressionNameUpdate:function(e,n,a){var s=JSON.parse(JSON.stringify(t.state.expressions));if(n){if(s.find((function(e){return e.name===n})))return a&&a(!1);s[e].name=n}else s.splice(e,1);t.setState({expressions:s},(function(){n&&t.readExpressions(e),a&&a()})),window.localStorage.setItem("javascript.tools.exps."+t.props.src,JSON.stringify(s.map((function(e){return e.name}))))}}):null}},{key:"renderConsole",value:function(){var e=this;return(0,se.jsx)(Us,{theme:this.props.theme,console:this.state.console,onClearAllLogs:function(){return e.setState({console:[],logErrors:0,logWarning:0,logs:0})}})}},{key:"renderTools",value:function(){var e,t=this,n=!this.state.tabs||!this.state.started;return e=this.state.logErrors?(0,se.jsx)(qe.Z,{badgeContent:this.state.logErrors,color:"error",children:(0,se.jsx)("span",{children:k.I18n.t("Console")})}):this.state.logWarnings?(0,se.jsx)(qe.Z,{badgeContent:this.state.logWarnings,color:"secondary",children:(0,se.jsx)("span",{children:k.I18n.t("Console")})}):this.state.logs?(0,se.jsx)(qe.Z,{badgeContent:this.state.logs,color:"default",children:(0,se.jsx)("span",{children:k.I18n.t("Console")})}):k.I18n.t("Console"),(0,se.jsxs)("div",{style:{width:"100%",height:"100%",overflow:"hidden"},children:[(0,se.jsxs)(Ge.Z,{classes:{root:this.props.classes.tabsRoot},component:"div",indicatorColor:"primary",style:{position:"relative",width:"100%"},value:this.state.toolsTab,onChange:function(e,n){var a={toolsTab:n};t.console&&"console"===n&&(a.console=t.console,t.console=null,a.logs=0,a.logWarnings=0,a.logErrors=0),window.localStorage.setItem("javascript.tools.tab",n),t.setState(a)},scrollButtons:"auto",children:[(0,se.jsx)(He.Z,{classes:{root:this.props.classes.tabRoot},disabled:n,label:k.I18n.t("Stack"),value:"stack"}),(0,se.jsx)(He.Z,{classes:{root:this.props.classes.tabRoot},disabled:n,label:e,value:"console"})]}),(0,se.jsxs)("div",{style:{width:"100%",height:"calc(100% - 36px)",overflow:"hidden"},children:["stack"!==this.state.toolsTab||n?null:this.renderFrames(),"console"!==this.state.toolsTab||n?null:this.renderConsole()]})]})}},{key:"render",value:function(){var e=this;return(0,se.jsxs)("div",{style:this.props.style,className:k.Utils.clsx(this.props.classes.root,this.props.className),children:[this.state.starting?(0,se.jsx)(Qe.Z,{}):null,this.renderToolbar(),(0,se.jsxs)(f(),{customClassName:this.props.classes.splitter,primaryMinSize:100,vertical:!0,secondaryInitialSize:this.toolSize,onSecondaryPaneSizeChange:function(t){return e.toolSize=parseFloat(t)},onDragEnd:function(){return window.localStorage.setItem("App.toolSize",e.toolSize.toString())},children:[(0,se.jsxs)("div",{style:{width:"100%",height:"100%",overflow:"hidden"},children:[this.renderCode(),this.renderQueryBreakpoints()]}),(0,se.jsx)("div",{style:{width:"100%",height:"100%",overflow:"hidden"},children:this.renderTools()})]}),this.renderError()]},"debugger")}}]),n}(s().Component),qs=(0,g.Z)((function(e){return{root:{width:"100%",height:"calc(100% - ".concat(e.toolbar.height+38+5,"px)"),overflow:"hidden",position:"relative"},toolbar:{minHeight:38,boxShadow:"0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)"},buttonRun:{color:"green"},buttonPause:{color:"orange"},buttonRestart:{color:"darkgreen"},buttonStop:{color:"red"},buttonNext:{color:"blue"},buttonStep:{color:"blue"},buttonOut:{color:"blue"},buttonException:{},tabFile:{textTransform:"inherit",color:"dark"===e.palette.mode?"#DDD":"inherit"},tabText:{maxWidth:130,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",display:"inline-block",verticalAlign:"middle"},closeButton:{position:"absolute",top:8,right:0,zIndex:10,padding:8,cursor:"pointer"},tabsRoot:{minHeight:24,background:"dark"===e.palette.mode?"#333":"#e6e6e6",color:"dark"===e.palette.mode?"white":"inherit"},tabRoot:{minHeight:24},bpListItem:{borderTop:"1px dashed #bfbfbf44"},monospace:{fontFamily:"Courier New, monospace",whiteSpace:"pre",fontSize:12},arrow:{color:"#fffa4f"},splitter:{height:"calc(100% - 52px)","& .layout-pane":{overflow:"hidden",height:"100%"}}}}))(Hs),Ys={Blockly:V,"Javascript/js":W,Rules:G,def:W,"TypeScript/ts":J},Ks="#02a102",Qs="#70aae9",Xs=_.Z[400],$s=U.Z[400],eo=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;(0,u.Z)(this,n),(a=t.call(this,e)).onInstanceChanged=function(e,t){if(e)if(!t&&window.main.instances.includes[e]){delete window.main.objects[e];var n=window.main.instances.indexOf(e);window.main.instances.splice(n,1)}else t&&"instance"===t.type&&(window.main.instances.includes(e)||(window.main.instances.push(e),window.main.instances.sort()),window.main.objects[e]=t)},a.onBrowserClose=function(e){var t=Object.keys(a.scripts).find((function(e){return JSON.stringify(a.scripts[e])!==JSON.stringify(a.props.objects[e].common)}));if(t){console.log("Script "+JSON.stringify(a.scripts[t]));var n=k.I18n.t("Configuration not saved.");return(e=e||window.event)&&(e.returnValue=n),n}},a.setTourStep=function(e){return a.setState({tourStep:e})};var o=window.localStorage.getItem("Editor.selected")||"",i=window.localStorage.getItem("Editor.editing")||"[]";try{i=JSON.parse(i)}catch(r){i=[]}return o&&!i.includes(o)&&i.push(o),a.tabsRef=s().createRef(),a.state={selected:o,editing:i,changed:{},blockly:null,rules:null,debugEnabled:!1,verboseEnabled:!1,showCompiledCode:!1,showSelectId:!1,showCron:!1,showScript:!1,showAstro:!1,astroEvents:null,insert:"",searchText:"",themeType:a.props.themeType,visible:e.visible,cmdToBlockly:"",cmdToRules:"",menuOpened:!!a.props.menuOpened,menuTabsOpened:!1,menuTabsAnchorEl:null,runningInstances:a.props.runningInstances||{},showDebugMenu:!1,toast:"",instancesLoaded:!1,isTourOpen:"true"!==window.localStorage.getItem("tour"),tourStep:Jn,showAdapterDebug:!1},a.setChangedInAdmin(),a.selectId={initValue:null,callback:null},a.cron={initValue:null,callback:null},a.scriptDialog={initValue:null,callback:null,args:null,isReturn:!1},window.systemLang=k.I18n.getLanguage(),window.main={objects:{},getObject:function(e,t){return a.props.socket.getObject(e).then((function(e){return t&&t(null,e)})).catch((function(e){return t&&t(e)}))},instances:[],selectIdDialog:function(e,t,n){"function"===typeof t&&(n=t,t=null),a.selectId.callback=n,a.selectId.initValue=e,a.selectId.type=t,a.setState({showSelectId:!0})},cronDialog:function(e,t){a.cron.callback=t,a.cron.initValue=e,a.setState({showCron:!0})},showScriptDialog:function(e,t,n,s){a.scriptDialog.callback=s,a.scriptDialog.initValue=e,a.scriptDialog.args=t,a.scriptDialog.isReturn=n||!1,a.setState({showScript:!0})}},a.objects=e.objects,a.scripts={},!a.state.selected&&a.state.editing.length&&(a.state.selected=a.state.editing[0]),a.getAllAdapterInstances().then((function(){a.props.onSelectedChange&&a.state.selected&&setTimeout((function(){return a.props.onSelectedChange(a.state.selected,a.state.editing)}),100)})),a}return(0,d.Z)(n,[{key:"getAllAdapterInstances",value:function(){var e=this;return this.props.socket.getAdapterInstances(!0).then((function(t){var n={},a=t.map((function(e){return n[e._id]=e,e._id}));window.main.objects=n,window.main.instances=a,e.setState({instancesLoaded:!0})}))}},{key:"setChangedInAdmin",value:function(){var e=this,t=Object.keys(this.state.changed).find((function(t){return e.state.changed[t]}));"undefined"!==typeof window.parent&&window.parent&&(window.parent.configNotSaved=!!t)}},{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.onBrowserClose,!1),this.props.socket.subscribeObject("system.adapter.*",this.onInstanceChanged)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.onBrowserClose),this.props.socket.unsubscribeObject("system.adapter.*",this.onInstanceChanged)}},{key:"removeNonExistingScripts",value:function(e,t){e=e||this.props,t=t||{};var n=!1;if(this.state.editing&&this.state.editing.find((function(t){return!e.objects[t]}))){for(var a=JSON.parse(JSON.stringify(this.state.editing)),s=a.length-1;s>=0;s--)this.objects[a[s]]||(n=!0,a.splice(s,1));n&&(t.editing=a),this.state.selected&&!this.objects[this.state.selected]&&(n=!0,t.selected=a[0]||"",this.scripts[t.selected]&&(this.state.blockly!==("Blockly"===this.scripts[t.selected].engineType)&&(t.blockly="Blockly"===this.scripts[t.selected].engineType,n=!0),this.state.rules!==("Rules"===this.scripts[t.selected].engineType)&&(t.rules="Rules"===this.scripts[t.selected].engineType,n=!0),this.state.verboseEnabled!==this.scripts[t.selected].verbose&&(t.verboseEnabled=this.scripts[t.selected].verbose,n=!0),this.state.debugEnabled!==this.scripts[t.selected].debug&&(t.debugEnabled=this.scripts[t.selected].debug,n=!0)))}return n}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this,n={},a=!1;if(JSON.stringify(e.runningInstances)!==JSON.stringify(this.state.runningInstances)&&(a=!0,n.runningInstances=e.runningInstances),this.state.menuOpened!==e.menuOpened&&(n.menuOpened=e.menuOpened,a=!0),this.state.themeType!==e.themeType&&(n.themeType=e.themeType,a=!0),this.removeNonExistingScripts(e,n)&&(a=!0),this.state.searchText!==e.searchText&&(n.searchText=e.searchText,a=!0),this.objects!==e.objects){this.objects=e.objects,window.main.objects=e.objects,Object.keys(this.scripts).forEach((function(e){var n=t.scripts[e].source;t.scripts[e]=JSON.parse(JSON.stringify(t.objects[e].common)),t.scripts[e].source=n})),this.state.selected&&this.objects[this.state.selected]&&(this.scripts[this.state.selected]=this.scripts[this.state.selected]||JSON.parse(JSON.stringify(this.objects[this.state.selected].common)),this.state.blockly!==("Blockly"===this.scripts[this.state.selected].engineType)&&(n.blockly="Blockly"===this.scripts[this.state.selected].engineType,a=!0),this.state.rules!==("Rules"===this.scripts[this.state.selected].engineType)&&(n.rules="Rules"===this.scripts[this.state.selected].engineType,a=!0),this.state.verboseEnabled!==this.scripts[this.state.selected].verbose&&(n.verboseEnabled=this.scripts[this.state.selected].verbose,a=!0),this.state.debugEnabled!==this.scripts[this.state.selected].debug&&(n.debugEnabled=this.scripts[this.state.selected].debug,a=!0));for(var s=JSON.parse(JSON.stringify(this.state.editing)),o=s.length-1;o>=0;o--)this.objects[s[o]]||(a=!0,s.splice(o,1),void 0!==this.state.changed[s[o]]&&(n.changed=n.changed||JSON.parse(JSON.stringify(this.state.changed)),delete n.changed[s[o]]));this.state.selected&&!this.objects[this.state.selected]&&(n.selected=s[0]||""),a&&(n.editing=s)}else for(var i in this.scripts)if(this.scripts.hasOwnProperty(i))if(this.objects[i]&&this.objects[i].common){var r=this.scripts[i].source,l=JSON.parse(JSON.stringify(this.scripts[i]));l.source=this.objects[i].common.source,JSON.stringify(l)!==JSON.stringify(this.objects[i].common)&&(this.scripts[i]=JSON.parse(JSON.stringify(this.objects[i].common)),this.scripts[i].source=r),r!==this.objects[i].common.source?this.state.changed[i]?this.objects[i].from&&this.objects[i].from.startsWith("system.adapter.javascript.")&&(this.objects[i].from="system.adapter.admin.0",this.setState({toast:k.I18n.t("Script %s was modified on disk.",i.split(".").pop())})):this.scripts[i].source=this.objects[i].common.source:this.state.changed[i]&&(n.changed=n.changed||JSON.parse(JSON.stringify(this.state.changed)),n.changed[i]=!1,a=!0)}else if(delete this.scripts[i],this.state.selected===i){if(-1!==this.state.editing.indexOf(i)){var c=JSON.parse(JSON.stringify(this.state.editing)),u=c.indexOf(i);-1!==u&&(c.splice(u,1),n.editing=c,a=!0)}n.selected=this.state.editing[0]||"",a=!0}if(this.state.selected!==e.selected&&e.selected){e.selected&&(this.scripts[e.selected]=this.scripts[e.selected]||JSON.parse(JSON.stringify(this.props.objects[e.selected].common)));var d=this.props.objects[e.selected]&&this.props.objects[e.selected].common,p=d&&JSON.stringify(this.scripts[e.selected])!==JSON.stringify(d),h=JSON.parse(JSON.stringify(this.state.editing));e.selected&&-1===h.indexOf(e.selected)&&(h.push(e.selected),this.props.onSelectedChange(e.selected,h),window.localStorage&&window.localStorage.setItem("Editor.editing",JSON.stringify(h))),a=!0,n.changed=n.changed||JSON.parse(JSON.stringify(this.state.changed)),n.changed[e.selected]=p,n.editing=h,n.selected=e.selected,n.blockly="Blockly"===this.scripts[e.selected].engineType,n.rules="Rules"===this.scripts[e.selected].engineType,n.verboseEnabled=this.scripts[e.selected].verbose,n.debugEnabled=this.scripts[e.selected].debug,n.showCompiledCode=!1}this.state.visible!==e.visible&&(a=!0,n.visible=e.visible),a&&this.setState(n,(function(){return t.setChangedInAdmin()}))}},{key:"onRestart",value:function(){this.props.onRestart&&this.props.onRestart(this.state.selected)}},{key:"onStartStop",value:function(){var e=JSON.parse(JSON.stringify(this.scripts[this.state.selected]));e.enabled=!e.enabled,this.props.onChange&&this.props.onChange(this.state.selected,e)}},{key:"onSave",value:function(){var e=this;if(this.state.isTourOpen&&this.state.tourStep===$n&&(this.setState({isTourOpen:!1}),window.localStorage.setItem("tour","true")),this.state.changed[this.state.selected]){var t=JSON.parse(JSON.stringify(this.state.changed));t[this.state.selected]=!1,this.setState({changed:t},(function(){e.setChangedInAdmin(),e.props.onChange&&e.props.onChange(e.state.selected,e.scripts[e.state.selected])}))}}},{key:"onSaveAll",value:function(){var e=this,t=JSON.parse(JSON.stringify(this.state.changed));Object.keys(t).forEach((function(n){t[n]&&(t[n]=!1,e.props.onChange&&e.props.onChange(n,e.scripts[n]))})),this.setState({changed:t},(function(){return e.setChangedInAdmin()}))}},{key:"onCancel",value:function(){var e=this;this.scripts[this.state.selected]=JSON.parse(JSON.stringify(this.props.objects[this.state.selected].common));var t=JSON.parse(JSON.stringify(this.state.changed));t[this.state.selected]=!1,this.setState({changed:t},(function(){return e.setChangedInAdmin()}))}},{key:"onRegisterSelect",value:function(e){this.getSelect=e}},{key:"onConvertBlockly2JS",value:function(){var e=this;this.showConfirmDialog(k.I18n.t("It will not be possible to revert this operation."),(function(t){if(t){e.scripts[e.state.selected].engineType="Javascript/js";var n=e.scripts[e.state.selected].source.split("\n");n.pop(),e.scripts[e.state.selected].source=n.join("\n");var a=e.state.selected,s=JSON.parse(JSON.stringify(e.state.changed));s[e.state.selected]=!0,e.setState({changed:s,blockly:!1,selected:""},(function(){e.setChangedInAdmin(),setTimeout((function(){return e.setState({selected:a})}),100)}))}}))}},{key:"onChange",value:function(e){var t=this;void 0!==(e=e||{}).script&&(this.scripts[this.state.selected].source=e.script),void 0!==e.debug&&(this.scripts[this.state.selected].debug=e.debug),void 0!==e.verbose&&(this.scripts[this.state.selected].verbose=e.verbose);var n=JSON.stringify(this.scripts[this.state.selected])!==JSON.stringify(this.props.objects[this.state.selected].common);if(n!==(this.state.changed[this.state.selected]||!1)){var a=JSON.parse(JSON.stringify(this.state.changed));a[this.state.selected]=n,this.objects[this.state.selected].from="system.adapter.admin.0",this.setState({changed:a},(function(){return t.setChangedInAdmin()}))}}},{key:"onTabChange",value:function(e,t){if(!this.props.debugMode){window.localStorage&&window.localStorage.setItem("Editor.selected",t);var n=this.scripts[t]||this.props.objects[t]&&this.props.objects[t].common;this.setState({selected:t,rules:"Rules"===n.engineType,blockly:"Blockly"===n.engineType,showCompiledCode:!1,verboseEnabled:n.verbose,debugEnabled:n.debug}),this.props.onSelectedChange&&this.props.onSelectedChange(t,this.state.editing)}}},{key:"isScriptChanged",value:function(e){return this.scripts[e]&&this.props.objects[e]&&JSON.stringify(this.scripts[e])!==JSON.stringify(this.props.objects[e].common)}},{key:"onTabClose",value:function(e,t){var n=this;t&&t.stopPropagation();var a=this.state.editing.indexOf(e);if(this.state.editing.includes(e))if(this.isScriptChanged(e))this.showConfirmDialog(k.I18n.t("Discard changes for %s",this.props.objects[e].common.name),(function(t){t&&(delete n.scripts[e],n.onTabClose(e))}));else{var s=JSON.parse(JSON.stringify(this.state.editing));s.splice(a,1);var o={editing:s};if(e===this.state.selected?s.length?0===a||1===s.length?o.selected=s[0]:o.selected=s[a-1]:o.selected="":this.state.selected&&!s.length&&(o.selected=""),window.localStorage&&window.localStorage.setItem("Editor.editing",JSON.stringify(s)),void 0!==o.selected){o.changed=o.changed||JSON.parse(JSON.stringify(this.state.changed)),o.changed[o.selected]=this.isScriptChanged(o.selected);var i=o.selected&&(this.scripts[o.selected]||this.props.objects[o.selected]&&this.props.objects[o.selected].common);o.blockly=!!i&&"Blockly"===i.engineType,o.rules=!!i&&"Rules"===i.engineType,o.verboseEnabled=!!i&&i.verbose,o.debugEnabled=!!i&&i.debug,o.showCompiledCode=!1}this.setState(o,(function(){n.setChangedInAdmin(),void 0!==o.selected?(n.props.onSelectedChange&&n.props.onSelectedChange(o.selected,n.state.editing),window.localStorage&&window.localStorage.setItem("Editor.selected",o.selected)):n.props.onSelectedChange&&n.props.onSelectedChange(n.state.selected,n.state.editing)}))}}},{key:"showConfirmDialog",value:function(e,t){this.confirmCallback=t,this.setState({confirm:e})}},{key:"sendCommandToBlockly",value:function(e){var t=this;this.setState({cmdToBlockly:e},(function(){return setTimeout((function(){return t.setState({cmdToBlockly:""})}),200)}))}},{key:"sendCommandToRules",value:function(e){var t=this;this.setState({cmdToRules:e},(function(){return setTimeout((function(){return t.setState({cmdToRules:""})}),200)}))}},{key:"getScriptFullName",value:function(e){var t=e.split(".");t.shift(),t.shift();for(var a=[],s="script.js",o=0;o1?"calc(100% - 50px)":"100%",display:"inline-block"},textColor:"primary",variant:"scrollable",scrollButtons:"auto",children:[this.state.editing.map((function(t){if(e.props.objects[t]){var a=n.getText(e.props.objects[t].common.name)||"",s=e.getScriptFullName(t);a.length>18&&(a="".concat(a.substring(0,15),"..."));var o=e.props.objects[t].common&&e.scripts[t]&&e.props.objects[t].common.source!==e.scripts[t].source,i=[(0,se.jsx)("div",{className:k.Utils.clsx(e.props.classes.tabText,e.isScriptChanged(t)&&e.props.classes.tabChanged),children:a},"text"),o?(0,se.jsx)("span",{className:e.props.classes.tabChangedIcon,children:"\u25a3"},"changedSign"):null,!e.props.debugInstance&&(!e.props.debugMode||e.state.selected!==t)&&(0,se.jsx)("span",{className:e.props.classes.closeButton,children:(0,se.jsx)(S.FU5,{className:e.props.classes.closeButtonIcon,onClick:function(n){return e.onTabClose(t,n)},fontSize:"small"})},"close")];return(0,se.jsx)(He.Z,{disabled:e.props.debugInstance||e.state.selected!==t&&e.props.debugMode,wrapped:!0,component:"div",iconPosition:"start",icon:(0,se.jsx)("img",{alt:"",src:Ys[e.props.objects[t].common.engineType]||Ys.def,className:e.props.classes.tabIcon},"icon"),href:"#".concat(t),label:i,className:e.props.classes.tabButton,value:t,title:s,classes:{wrapper:e.props.classes.tabButtonWrapper}},t)}var r=[(0,se.jsx)("div",{className:k.Utils.clsx(e.props.classes.tabText,e.isScriptChanged(t)&&e.props.classes.tabChanged),children:t.split(".").pop()},"text"),(0,se.jsx)("span",{className:e.props.classes.closeButton,children:(0,se.jsx)(S.FU5,{className:e.props.classes.closeButtonIcon,onClick:function(n){return e.onTabClose(t,n)},fontSize:"small"})},"icon")];return(0,se.jsx)(He.Z,{wrapped:!0,component:"div",href:"#"+t,label:r,value:t,classes:{wrapper:e.props.classes.tabButtonWrapper}},t)})),this.props.debugInstance?(0,se.jsx)(He.Z,{disabled:!1,wrapped:!0,component:"div",href:"#".concat(this.props.debugInstance.adapter),label:this.props.debugInstance.adapter,className:this.props.classes.tabButton,value:this.props.debugInstance.adapter,title:this.props.debugInstance.adapter,classes:{wrapper:this.props.classes.tabButtonWrapper}},this.props.debugInstance.adapter):""]},"tabs1"),this.state.editing.length>1?(0,se.jsx)(E.Z,{href:"#","aria-label":"Close all but current",className:this.props.classes.tabMenuButton,title:k.I18n.t("Close all but current"),"aria-haspopup":"false",onClick:function(t){var n=[e.state.selected];Object.keys(e.scripts).forEach((function(t){return t!==e.state.selected&&JSON.stringify(e.scripts[t])!==JSON.stringify(e.props.objects[t].common)&&n.push(t)})),window.localStorage&&window.localStorage.setItem("Editor.editing",JSON.stringify(n)),e.setState({menuTabsOpened:!1,menuTabsAnchorEl:null,editing:n})},size:"medium",children:(0,se.jsx)(S.ULn,{})},"menuButton"):null]:(0,se.jsx)("div",{className:this.props.classes.toolbar,children:(0,se.jsxs)(H.Z,{color:"grey",disabled:!0,className:this.props.classes.hintButton,href:"",children:[(0,se.jsx)("span",{children:k.I18n.t("Click on this icon")},"select2"),(0,se.jsx)(S.jzb,{className:this.props.classes.hintIcon},"select3"),(0,se.jsx)("span",{children:k.I18n.t("for edit or create script")},"select4")]},"select1")},"tabs2")}},{key:"getDebugMenu",value:function(){var e=this;return this.state.showDebugMenu?(0,se.jsxs)(O.Z,{id:"menu-debug",anchorEl:this.state.menuDebugAnchorEl,open:this.state.showDebugMenu,onClose:function(){return e.setState({showDebugMenu:!1,menuDebugAnchorEl:null})},PaperProps:{style:{maxHeight:360}},children:[(0,se.jsxs)(M.Z,{title:k.I18n.t("debug_help"),onClick:function(t){t.stopPropagation(),t.preventDefault(),e.setState({showDebugMenu:!1,menuDebugAnchorEl:null,debugEnabled:!e.state.debugEnabled},(function(){return e.onChange({debug:e.state.debugEnabled})}))},children:[(0,se.jsx)(Ke.Z,{checked:this.state.debugEnabled}),(0,se.jsx)(S.qXL,{className:this.props.classes.menuIcon,style:{color:Ks}}),k.I18n.t("debug_label")]},"debugEnabled"),(0,se.jsxs)(M.Z,{title:k.I18n.t("verbose_help"),onClick:function(t){t.stopPropagation(),t.preventDefault(),e.setState({showDebugMenu:!1,menuDebugAnchorEl:null,verboseEnabled:!e.state.verboseEnabled},(function(){return e.onChange({verbose:e.state.verboseEnabled})}))},children:[(0,se.jsx)(Ke.Z,{checked:this.state.verboseEnabled}),(0,se.jsx)(S.Yo8,{className:this.props.classes.menuIcon,style:{color:Qs}}),k.I18n.t("verbose_label")]},"verboseEnabled")]},"menuDebug"):null}},{key:"getDebugBadge",value:function(){return[this.state.debugEnabled&&this.state.verboseEnabled&&(0,se.jsx)(S.qXL,{className:this.props.classes.menuIcon,style:{color:Qs}},"DebugVerbose"),this.state.debugEnabled&&!this.state.verboseEnabled&&(0,se.jsx)(S.qXL,{className:this.props.classes.menuIcon,style:{color:Ks}},"DebugNoVerbose"),!this.state.debugEnabled&&this.state.verboseEnabled&&(0,se.jsx)(S.Yo8,{className:this.props.classes.menuIcon,style:{color:Qs}},"noDebugVerbose")]}},{key:"getAskAboutDebug",value:function(){var e=this;return this.state.askAboutDebug?(0,se.jsx)(k.Confirm,{onClose:function(){e.setState({askAboutDebug:!1},(function(){return e.props.onDebugModeChange(!0)}))},ok:k.I18n.t("Yes"),cancel:k.I18n.t("Cancel"),text:k.I18n.t("The script will be stopped and must be activated manually after debugging. Continue?")}):null}},{key:"getToolbar",value:function(){var e=this,t=this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].engine&&this.state.runningInstances[this.scripts[this.state.selected].engine],n=this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].enabled;if(this.state.selected){var a=Object.keys(this.state.changed).filter((function(t){return e.state.changed[t]})).length,s=this.state.changed[this.state.selected];return(0,se.jsxs)(Je.Z,{variant:"dense",className:this.props.classes.toolbar,children:[!this.props.debugInstance&&this.state.menuOpened&&this.props.onLocate&&(0,se.jsx)(E.Z,{className:this.props.classes.toolbarButtons,title:k.I18n.t("Locate file"),onClick:function(){return e.props.onLocate(e.state.selected)},size:"medium",children:(0,se.jsx)(S.A_X,{})},"locate"),!this.props.debugInstance&&!s&&t&&(0,se.jsx)(E.Z,{disabled:this.props.debugMode,variant:"contained",className:this.props.classes.toolbarButtons,onClick:function(){return e.onRestart()},title:k.I18n.t("Restart"),size:"medium",children:(0,se.jsx)(S.la_,{})},"restart"),!this.props.debugInstance&&!s&&(0,se.jsx)(E.Z,{disabled:this.props.debugMode,variant:"contained",className:this.props.classes.toolbarButtons,onClick:function(){return e.onStartStop()},title:n?k.I18n.t("Pause script"):k.I18n.t("Run script"),size:"medium",style:{color:n?Xs:$s},children:n?(0,se.jsx)(S.hPq,{}):(0,se.jsx)(S.Nhx,{})},"start-stop"),!this.props.debugInstance&&!s&&!n&&(0,se.jsx)("span",{className:this.props.classes.notRunning,children:k.I18n.t("Script is not running")}),!s&&n&&!t&&(0,se.jsx)("span",{className:this.props.classes.notRunning,children:k.I18n.t("Instance is disabled")}),s&&(0,se.jsxs)(H.Z,{color:"grey",variant:"contained",className:k.Utils.clsx(this.props.classes.textButton,this.props.classes.saveButton,"button-save"),onClick:function(){return e.onSave()},children:[k.I18n.t("Save"),(0,se.jsx)(S.tfk,{className:this.props.classes.textIcon})]},"save"),(a>1||1===a&&!s)&&(0,se.jsxs)(H.Z,{color:"grey",variant:"contained",className:this.props.classes.textButton,onClick:function(){return e.onSaveAll()},children:[k.I18n.t("Save all"),(0,se.jsx)(S.tfk,{className:this.props.classes.textIcon})]},"saveall"),s&&(0,se.jsxs)(H.Z,{color:"grey",variant:"contained",className:this.props.classes.textButton,onClick:function(){return e.onCancel()},children:[k.I18n.t("Cancel"),(0,se.jsx)(S.B4e,{className:this.props.classes.textIcon})]},"cancel"),(0,se.jsx)("div",{style:{flex:2}}),this.state.blockly&&!this.state.showCompiledCode&&(0,se.jsx)(E.Z,{"aria-label":"Export Blocks",title:k.I18n.t("Export blocks"),className:this.props.classes.toolbarButtons,onClick:function(){return e.sendCommandToBlockly("export")},size:"medium",children:(0,se.jsx)(P.FaFileExport,{})},"export"),this.state.blockly&&!this.state.showCompiledCode&&(0,se.jsx)(E.Z,{"aria-label":"Import Blocks",title:k.I18n.t("Import blocks"),className:this.props.classes.toolbarButtons,onClick:function(){return e.sendCommandToBlockly("import")},size:"medium",children:(0,se.jsx)(P.FaFileImport,{})},"import"),this.state.blockly&&!this.state.showCompiledCode&&(0,se.jsx)(E.Z,{"aria-label":"Check code",title:k.I18n.t("Check blocks"),className:this.props.classes.toolbarButtons,onClick:function(){return e.sendCommandToBlockly("check")},size:"medium",children:(0,se.jsx)(P.FaFlagCheckered,{})},"check"),!this.props.debugMode&&!this.state.blockly&&!this.state.rules&&!this.state.showCompiledCode&&(0,se.jsx)(E.Z,{"aria-label":"create CRON",title:k.I18n.t("Create or edit CRON or time wizard"),className:this.props.classes.toolbarButtons,onClick:function(){return e.setState({showCron:!0})},size:"medium",children:(0,se.jsx)(P.FaClock,{})},"select-cron"),(0,se.jsx)(E.Z,{"aria-label":"Show astrological events",title:k.I18n.t("Show astrological events"),className:this.props.classes.toolbarButtons,disabled:!t,onClick:function(){e.setState({showAstro:!0,astroEvents:null}),e.props.socket.sendTo(e.scripts[e.state.selected].engine.replace("system.adapter.",""),"calcAstroAll",{}).then((function(t){return e.setState({astroEvents:t})}))},size:"medium",children:(0,se.jsx)(S.Gd0,{})},"show-astro"),!this.props.debugMode&&!this.state.blockly&&!this.state.rules&&!this.state.showCompiledCode&&(0,se.jsx)(E.Z,{"aria-label":"select ID",title:k.I18n.t("Insert object ID"),className:this.props.classes.toolbarButtons,onClick:function(){return e.setState({showSelectId:!0})},size:"medium",children:(0,se.jsx)(P.FaClipboardList,{})},"select-id"),this.state.blockly&&!this.state.rules&&this.state.showCompiledCode&&(0,se.jsx)(H.Z,{color:"grey","aria-label":"convert to javascript",title:k.I18n.t("Convert blockly to javascript for ever."),onClick:function(){return e.onConvertBlockly2JS()},children:"Blockly=>JS"},"convert2js"),this.state.rules&&!this.state.showCompiledCode&&(0,se.jsx)(E.Z,{"aria-label":"Export Blocks",title:k.I18n.t("Export blocks"),className:this.props.classes.toolbarButtons,onClick:function(){return e.sendCommandToRules("export")},size:"medium",children:(0,se.jsx)(P.FaFileExport,{})},"export"),this.state.rules&&!this.state.showCompiledCode&&(0,se.jsx)(E.Z,{"aria-label":"Import Blocks",title:k.I18n.t("Import blocks"),className:this.props.classes.toolbarButtons,onClick:function(){return e.sendCommandToRules("import")},size:"medium",children:(0,se.jsx)(P.FaFileImport,{})},"import"),this.props.expertMode&&!s&&(this.props.debugMode||!this.state.blockly&&!this.state.rules||(this.state.blockly||this.state.rules)&&this.state.showCompiledCode)&&(0,se.jsx)(E.Z,{className:this.props.classes.toolbarButtons,color:this.props.debugMode?"primary":"default",disabled:!this.props.debugMode&&!t,onClick:function(){!e.props.debugMode&&n?e.setState({askAboutDebug:!0}):e.props.onDebugModeChange(!e.props.debugMode)},size:"medium",children:(0,se.jsx)(S.qXL,{style:{fontSize:32}})}),(this.state.blockly||this.state.rules)&&(0,se.jsx)(H.Z,{"aria-label":"blockly",title:k.I18n.t("Show javascript code"),className:k.Utils.clsx(this.props.classes.toolbarButtons,"button-js-code",this.props.debugMode&&this.props.classes.toolbarButtonsDisabled),color:this.state.showCompiledCode?"secondary":"inherit",disabled:this.props.debugMode,style:{padding:"0 5px"},onClick:function(){e.props.debugMode||(e.setState({showCompiledCode:!e.state.showCompiledCode}),e.state.isTourOpen&&e.state.tourStep===Qn&&e.setState({tourStep:Xn}),e.state.isTourOpen&&e.state.tourStep===Xn&&e.setState({tourStep:$n}))},children:(0,se.jsx)("img",{alt:this.state.blockly?"blockly2js":"rules2js",src:this.state.blockly?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAAAeCAYAAADXRcu0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC41ZYUyZQAABxRJREFUaEPdmotTE0ccx/Pn9OG003baaeuoqGh1pPUtIogvFIWqoKLUIiY8whunqKjBKloVsMZQEV8FFBWtgkKtGFoRUWx9gsgzCcl9u3u5JLvJFuk01ITfzGeS++4vd7e/b2739hIVgBFPQEBAAQGEfsJ+gjDvTSIURxK06IoB1AgHwtw3iVAcSdCiu5lwV5T3phGKIwlSeKObEcK8N41QpKiTUlTpOj38mfXqXNYATAoch87zbwPX3/I5hCZQ1Mmpquwj1di4sxzr88r8khmhyzkj0tZ/IiyCLyA0geIwYklqCRaoj/gdwfE6BIwfzxnRpB8lLIIvIDSB4u9GBC2K5UxYETZaWABfQS76Vk2SaqtaPWKMCEk8hAmTp3JGnNz+gbAAXsH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8u/b+qVMmecosmt3QitVZcKQPXFPSvadNQ+/5JfvpfhwBeKDkOo1Xk/rlIr10pl400lbaaPL2NtOOhPcjeFo2z6VzgheoLhQ3fRr5/Tzm+99kXWtsQZPj0gmUxnDihIycH+CnRt7uR7hvq5xF6RcS9aNy2P0J8bffyI8PWKsoU79g9l9wLMOkU+A+WR8I1Hx/z+YDQ0ecOH9lhyNMNYwXg2xDPiag9cL/H7kVRkajFdDPODCexqIufDHBcarIV4D7KWRBHaNki5Dgn8DIpsEjn2A+AIAAAAASUVORK5CYII="})},"blockly-code"),(0,se.jsx)(E.Z,{disabled:this.props.debugMode,"aria-label":"Debug menu",title:k.I18n.t("Debug options"),className:this.props.classes.toolbarButtons,onClick:function(t){return e.setState({showDebugMenu:!0,menuDebugAnchorEl:t.currentTarget})},size:"medium",children:(0,se.jsx)(qe.Z,{className:this.props.classes.badgeMargin,badgeContent:this.getDebugBadge(),children:(0,se.jsx)(S._u1,{})})},"debug")]},"toolbar1")}return null}},{key:"getScriptEditor",value:function(){var e=this;return this.props.debugMode||!this.state.selected||!this.props.objects[this.state.selected]||null===this.state.blockly||this.state.blockly&&!this.state.showCompiledCode||this.state.rules&&!this.state.showCompiledCode?null:(this.scripts[this.state.selected]=this.scripts[this.state.selected]||JSON.parse(JSON.stringify(this.props.objects[this.state.selected].common)),(0,se.jsx)("div",{className:this.props.classes.editorDiv,children:(0,se.jsx)(lt,{name:this.state.selected,adapterName:this.props.adapterName,insert:this.state.insert,onInserted:function(){return e.setState({insert:""})},onForceSave:function(){return e.onSave()},searchText:this.state.searchText,onRegisterSelect:function(t){return e.onRegisterSelect(t)},readOnly:this.state.showCompiledCode,changed:this.state.changed[this.state.selected],code:this.scripts[this.state.selected].source||"",isDark:"dark"===this.state.themeType,socket:this.props.socket,runningInstances:this.state.runningInstances,onChange:function(t){return e.onChange({script:t})},language:"TypeScript/ts"===this.scripts[this.state.selected].engineType?"typescript":"javascript"},"scriptEditor1")},"scriptEditorDiv"))}},{key:"getBlocklyEditor",value:function(){var e=this;return!this.props.debugMode&&this.state.instancesLoaded&&this.state.selected&&this.props.objects[this.state.selected]&&this.state.blockly&&!this.state.showCompiledCode&&this.state.visible?(this.scripts[this.state.selected]=this.scripts[this.state.selected]||JSON.parse(JSON.stringify(this.props.objects[this.state.selected].common)),(0,se.jsx)("div",{className:this.props.classes.editorDiv,children:(0,se.jsx)(jt,{command:this.state.cmdToBlockly,themeType:this.state.themeType,searchText:this.state.searchText,resizing:this.props.resizing,code:this.scripts[this.state.selected].source||"",onChange:function(t){return e.onChange({script:t})}},"BlocklyEditor")},"blocklyEditorDiv")):null}},{key:"getRulesEditor",value:function(){var e=this;if(!this.props.debugMode&&this.state.instancesLoaded&&this.state.selected&&this.props.objects[this.state.selected]&&this.state.rules&&!this.state.showCompiledCode&&this.state.visible){this.scripts[this.state.selected]=this.scripts[this.state.selected]||JSON.parse(JSON.stringify(this.props.objects[this.state.selected].common));var t=this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].engine&&this.state.runningInstances[this.scripts[this.state.selected].engine],n=this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].enabled;return(0,se.jsx)("div",{className:k.Utils.clsx(this.props.classes.editorDiv),children:(0,se.jsx)(Rs,{scriptId:this.state.selected,setTourStep:this.setTourStep,tourStep:this.state.tourStep,isTourOpen:this.state.isTourOpen,changed:this.state.changed[this.state.selected],running:t&&n,command:this.state.cmdToRules,themeType:this.state.themeType,themeName:this.props.themeName,searchText:this.state.searchText,resizing:this.props.resizing,code:this.scripts[this.state.selected].source||"",onChange:function(t){return e.onChange({script:t})}},"flowEditor")},"flowEditorDiv")}return null}},{key:"getConfirmDialog",value:function(){var e=this;return this.state.confirm?(0,se.jsx)(k.Confirm,{text:this.state.confirm,onClose:function(t){if(e.confirmCallback){var n=e.confirmCallback;e.confirmCallback=null,n(t)}e.setState({confirm:""})}},"dialogConfirm1"):null}},{key:"getSelectIdDialog",value:function(){var e=this;if(this.state.showSelectId){var t=this.selectId.callback?this.selectId.initValue||"":this.getSelect?this.getSelect():"",n=t.indexOf("/*");-1!==n&&(t=t.substring(0,n)),-1!==(n=t.indexOf("//"))&&(t=t.substring(0,n));var a=t.match(/"([^"]+)"/);return a&&(t=a[1]),(a=t.match(/'([^']+)'/))&&(t=a[1]),(0,se.jsx)(k.SelectID,{imagePrefix:"../..",themeName:this.props.themeName,themeType:this.state.themeType,socket:this.props.socket,selected:t,expertMode:"script"===this.selectId.type||void 0,types:[this.selectId.type||"state"],onClose:function(){e.setState({showSelectId:!1}),e.selectId.callback&&(e.selectId.callback=null)},onOk:function(t,n){e.selectId.initValue=null,e.selectId.callback?(e.selectId.callback(t),e.selectId.callback=null):e.setState({insert:"'".concat(t,"'/*").concat(n,"*/")})}},"dialogSelectID1")}return null}},{key:"getCronDialog",value:function(){var e=this;return this.state.showCron?(0,se.jsx)(k.Cron,{cron:this.cron.callback?this.cron.initValue||"":this.getSelect?this.getSelect():"* * * * *",onClose:function(){return e.setState({showCron:!1})},onOk:function(t){e.cron.initValue=null,e.cron.callback?(e.cron.callback(t),e.cron.callback=null):e.setState({insert:"'".concat(t,"'")})}},"dialogCron1"):null}},{key:"getAstroDialog",value:function(){var e=this;return this.state.showAstro?(0,se.jsxs)(Q.Z,{open:!0,onClose:function(){return e.setState({showAstro:!1})},children:[(0,se.jsx)(q.Z,{children:k.I18n.t("Astrological events today")}),(0,se.jsx)(Y.Z,{children:this.state.astroEvents?(0,se.jsx)(tt.Z,{component:st.Z,children:(0,se.jsxs)(Xe.Z,{size:"small",children:[(0,se.jsx)(nt.Z,{children:(0,se.jsxs)(at.Z,{children:[(0,se.jsx)(et.Z,{children:k.I18n.t("Name")}),(0,se.jsx)(et.Z,{children:k.I18n.t("Time")}),(0,se.jsx)(et.Z,{children:k.I18n.t("Description")})]})}),(0,se.jsx)($e.Z,{children:Object.keys(this.state.astroEvents).map((function(t){return(0,se.jsxs)(at.Z,{children:[(0,se.jsx)(et.Z,{component:"th",scope:"row",children:t.startsWith("next")?"":t}),(0,se.jsx)(et.Z,{align:"right",children:new Date(e.state.astroEvents[t]).toLocaleTimeString()}),(0,se.jsx)(et.Z,{children:k.I18n.t(t)})]},t)}))})]})}):(0,se.jsx)(Qe.Z,{})}),(0,se.jsx)(K.Z,{children:(0,se.jsx)(H.Z,{variant:"contained",onClick:function(){return e.setState({showAstro:!1})},color:"primary",startIcon:(0,se.jsx)(S.FU5,{}),children:k.I18n.t("Close")})})]},"dialogAstro"):null}},{key:"getEditorDialog",value:function(){var e=this;return this.state.showScript?(0,se.jsx)(Dt,{adapterName:this.props.adapterName,source:this.scriptDialog.initValue,args:this.scriptDialog.args?this.scriptDialog.args.join(", "):"",isReturn:this.scriptDialog.isReturn,socket:this.props.socket,runningInstances:this.state.runningInstances,themeType:this.state.themeType,onClose:function(t){e.scriptDialog.initValue=null,e.scriptDialog.callback&&(!1!==t&&e.scriptDialog.callback(t||""),e.scriptDialog.callback=null),e.setState({showScript:!1})}},"scriptEditorDialog"):null}},{key:"getToast",value:function(){var e=this;return(0,se.jsx)(Ye.Z,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!!this.state.toast,autoHideDuration:6e3,onClose:function(){return e.setState({toast:""})},ContentProps:{"aria-describedby":"message-id"},message:(0,se.jsx)("span",{id:"message-id",children:this.state.toast}),action:[(0,se.jsx)(E.Z,{"aria-label":"close",color:"inherit",className:this.props.classes.closeToast,onClick:function(){return e.setState({toast:""})},size:"medium",children:(0,se.jsx)(S.FU5,{})},"close")]},"toast")}},{key:"getTour",value:function(){var e=this;if(this.state.instancesLoaded&&this.state.selected&&1===this.props.isAnyRulesExists&&this.props.objects[this.state.selected]&&this.state.rules&&this.state.visible)return(0,se.jsx)(Ve.ZP,{steps:ea,isOpen:this.state.isTourOpen,onRequestClose:function(){e.setState({isTourOpen:!1}),window.localStorage.setItem("tour","true"),e.props.socket.setState("javascript.0.variables.rulesTour",{val:!0,ack:!0})},goToStep:this.state.tourStep},"tour")}},{key:"getDebug",value:function(){var e=this;return this.props.debugMode?this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].engine&&this.state.runningInstances[this.scripts[this.state.selected].engine]?(0,se.jsx)(qs,{runningInstances:this.state.runningInstances,adapterName:this.props.adapterName,socket:this.props.socket,theme:this.props.theme,themeName:this.props.themeName,themeType:this.props.themeType,src:this.props.debugInstance?this.props.debugInstance.adapter:this.state.selected,debugInstance:this.props.debugInstance},"debugger"):(setTimeout((function(){return e.props.onDebugModeChange(!1)})),null):null}},{key:"render",value:function(){var e=this;return this.state.selected&&this.props.objects[this.state.selected]&&null===this.state.blockly&&null===this.state.rules&&(this.scripts[this.state.selected]=this.scripts[this.state.selected]||JSON.parse(JSON.stringify(this.props.objects[this.state.selected].common)),setTimeout((function(){var t={blockly:"Blockly"===e.scripts[e.state.selected].engineType,rules:"Rules"===e.scripts[e.state.selected].engineType,showCompiledCode:!1,debugEnabled:e.scripts[e.state.selected].debug,verboseEnabled:e.scripts[e.state.selected].verbose};e.removeNonExistingScripts(null,t),e.setState(t)}),100)),[this.getTabs(),this.getToolbar(),this.getScriptEditor(),this.getAskAboutDebug(),this.getBlocklyEditor(),this.getRulesEditor(),this.getDebug(),this.getConfirmDialog(),this.getSelectIdDialog(),this.getCronDialog(),this.getEditorDialog(),this.getAstroDialog(),this.getDebugMenu(),this.getToast(),this.getTour()]}}],[{key:"getText",value:function(e){return"object"===typeof e?e[k.I18n.getLanguage()]||e.en:e}}]),n}(s().Component),to=(0,g.Z)((function(e){return{toolbar:{minHeight:38,boxShadow:"0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)"},toolbarButtons:{padding:4,marginLeft:4},toolbarButtonsDisabled:{filter:"grayscale(100%)",opacity:.5},editorDiv:{height:"calc(100% - ".concat(e.toolbar.height+38+10,"px)"),width:"100%",overflow:"hidden",position:"relative"},textButton:{marginRight:10,minHeight:24,padding:"6px 16px"},saveButton:{background:"#ff9900"},textIcon:{marginLeft:e.spacing(1)},tabIcon:{width:24,height:24,verticalAlign:"middle",marginBottom:2,marginRight:2,borderRadius:3},hintIcon:{padding:"0 8px 0 8px"},hintText:{},hintButton:{marginTop:8,marginLeft:20},tabMenuButton:{position:"absolute",top:0,right:0},tabChanged:{color:e.palette.secondary.main},tabText:{maxWidth:130,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",display:"inline-block",verticalAlign:"middle"},tabChangedIcon:{color:"#FF0000",fontSize:16},closeButton:{position:"absolute",top:0,right:-5,zIndex:10,padding:8,cursor:"pointer"},closeButtonIcon:{background:"dark"===e.palette.mode?"#000":"#FFF",borderRadius:"50%",opacity:.7},notRunning:{color:"#ffbc00",marginRight:e.spacing(1),marginLeft:e.spacing(1)},tabButton:{minHeight:48},tabButtonWrapper:{display:"inline-block"},menuIcon:{width:18,height:18,borderRadius:2,marginRight:5}}}))(eo),no=n(65532),ao=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).state={error:"",imageStatus:""},a}return(0,d.Z)(n,[{key:"componentDidMount",value:function(){setTimeout((function(){try{window.document.getElementById("import-text-area").focus()}catch(e){}}),100)}},{key:"handleCancel",value:function(){this.props.onClose()}},{key:"onChange",value:function(e){this.setState({text:e.target.value})}},{key:"handleDropFile",value:function(e){var t=this;if(e&&e.hasOwnProperty("target")&&(e=e.target.files),e||e.length){var a=e[e.length-1];a&&n.readFileDataUrl(a,(function(e,n){e?t.setState({error:e}):t.props.onClose(n&&n.data)}))}}},{key:"render",value:function(){var e=this,t=this.props.classes,n=t.dropzone+" "+("accepted"===this.state.imageStatus?t.dropzoneAccepted:"rejected"===this.state.imageStatus?t.dropzoneRejected:"");return(0,se.jsxs)(Q.Z,{onClose:function(e,t){return!1},maxWidth:"lg",classes:{paper:t.dialog},fullWidth:!0,open:!0,"aria-labelledby":"import-dialog-title",children:[(0,se.jsx)(q.Z,{id:"import-dialog-title",children:k.I18n.t("Import scripts")}),(0,se.jsxs)(Y.Z,{className:t.fullHeight,children:[(0,se.jsx)(no.default,{maxSize:5e7,acceptClassName:t.dropzoneAccepted,rejectClassName:t.dropzoneRejected,onDrop:function(t){return e.handleDropFile(t)},multiple:!1,accept:"application/zip,application/x-zip-compressed",className:n,children:function(t){var n=t.getRootProps,a=t.getInputProps,s=t.isDragActive;return t.isDragReject?("rejected"!==e.state.imageStatus&&e.setState({imageStatus:"rejected"}),(0,se.jsxs)("div",(0,dt.Z)((0,dt.Z)({className:e.props.classes.dropzoneDiv},n()),{},{children:[(0,se.jsx)("input",(0,dt.Z)({},a())),(0,se.jsx)("span",{className:e.props.classes.text,children:k.I18n.t("Some files will be rejected")},"text"),(0,se.jsx)(S.B4e,{className:e.props.classes.icon+" "+e.props.classes.iconError},"icon")]}))):s?("accepted"!==e.state.imageStatus&&e.setState({imageStatus:"accepted"}),(0,se.jsxs)("div",(0,dt.Z)((0,dt.Z)({className:e.props.classes.dropzoneDiv},n()),{},{children:[(0,se.jsx)("input",(0,dt.Z)({},a())),(0,se.jsx)("span",{className:e.props.classes.text,children:k.I18n.t("All files will be accepted")},"text"),(0,se.jsx)(S.hjC,{className:e.props.classes.icon+" "+e.props.classes.iconOk},"icon")]}))):("wait"!==e.state.imageStatus&&e.setState({imageStatus:"wait"}),(0,se.jsxs)("div",(0,dt.Z)((0,dt.Z)({className:e.props.classes.dropzoneDiv},n()),{},{children:[(0,se.jsx)("input",(0,dt.Z)({},a())),(0,se.jsx)("span",{className:e.props.classes.text,children:k.I18n.t("Drop some files here or click...")},"text"),(0,se.jsx)(S.s_P,{className:e.props.classes.icon},"icon")]})))}},"image-drop"),this.state.error?(0,se.jsx)(be,{text:this.state.error,onClose:function(){return e.setState({error:""})}}):null]}),(0,se.jsx)(K.Z,{children:(0,se.jsx)(H.Z,{color:"grey",variant:"contained",onClick:function(){return e.handleCancel()},startIcon:(0,se.jsx)(ne.default,{}),children:k.I18n.t("Close")})})]})}}],[{key:"readFileDataUrl",value:function(e,t){var n=new FileReader;n.onload=function(){t(null,{data:n.result,name:e.name})},n.onabort=function(){console.error("file reading was aborted"),t(k.I18n.t("file reading was aborted"))},n.onerror=function(e){console.error("file reading has failed"),t(k.I18n.t("file reading has failed: %s",e))},n.readAsDataURL(e)}}]),n}(s().Component),so=(0,g.Z)((function(e){return{dialog:{height:"95%"},fullHeight:{height:"100%",overflow:"hidden"},dropzone:{marginTop:20,width:"100%",borderWidth:5,borderStyle:"dashed",borderColor:"#d0cccc",textAlign:"center",boxSizing:"border-box",paddingTop:45,borderRadius:10,height:"calc(100% - 10px)"},dropzoneDiv:{width:"100%",height:"100%"},dropzoneRejected:{borderColor:"#970000"},dropzoneAccepted:{borderColor:"#17cd02"},icon:{height:"30%",width:"30%",color:"#eeeeee",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",zIndex:0},iconError:{color:"#ffc3c6"},iconOk:{color:"#aaeebc"},text:{top:"50%",left:"50%",transform:"translate(-50%,-50%)",color:"#868686",position:"absolute",zIndex:1}}}))(ao),oo=function(e){(0,p.Z)(a,e);var t=(0,h.Z)(a);function a(e){var s;return(0,u.Z)(this,a),(s=t.call(this,e,{Connection:k.AdminConnection,translations:{en:n(86443),de:n(19837),es:n(55117),fr:n(86115),it:n(79399),nl:n(43573),pl:n(28130),pt:n(65909),ru:n(50482),uk:n(17138),"zh-cn":n(58246)},bottomButtons:!1,socket:{autoSubscribeLog:!0},sentryDSN:window.sentryDSN})).onScriptsChanged=function(e,t){if(e){var n=!1,a={};e.startsWith("script.js.")&&(t?JSON.stringify(s.scripts[e])!==JSON.stringify(t)&&(s.scripts[e]=t,n=!0,a.scriptsHash=s.state.scriptsHash+1):s.scripts[e]&&(delete s.scripts[e],n=!0,a.scriptsHash=s.state.scriptsHash+1)),n&&s.setState(a)}},s.onInstanceChanged=function(e,t){if(e){var n=!1,a={};if(e.match(/^system\.adapter\.[-_\w\d]+\$/)){if(e.startsWith("system.adapter.".concat(s.adapterName,".")))if(t&&"instance"===t.type)s.state.instances.includes(e)||(a.instances=(0,c.Z)(s.state.instances),a.instances.push(e),a.instances.sort(),n=!0,s.socket.subscribeState("".concat(t._id,".alive"),s.onInstanceAliveChange));else if(!t&&s.state.instances.includes(e)){s.socket.unsubscribeState("".concat(e,".alive"),s.onInstanceAliveChange),a.instances=(0,c.Z)(s.state.instances);var o=a.instances.indexOf(e);a.instances.splice(o,1),n=!0}t&&t[e].common&&t[e].common.blockly&&(s.confirmCallback=function(e){return e&&window.location.reload()},a.confirm=k.I18n.t("Some blocks were updated. Reload admin?"),n=!0)}n&&s.setState(a)}},s.onHostChanged=function(e,t){if(e){if(e.startsWith("system.host."))if(t&&"host"===t.type)s.hosts.includes(e)||(s.hosts.push(e),s.hosts.sort());else if(!t&&s.hosts.includes(e)){var n=s.hosts.indexOf(e);s.hosts.splice(n,1)}}},s.onInstanceAliveChange=function(e,t){if(e&&(e=e&&e.substring(0,e.length-6),s.state.runningInstances[e]!==(!!t&&t.val))){var n=JSON.parse(JSON.stringify(s.state.runningInstances));n[e]=!!t&&t.val,s.setState({runningInstances:n})}},s.logSize=window.localStorage&&parseFloat(window.localStorage.getItem("App.logSize"))||150,s.menuSize=window.localStorage&&parseFloat(window.localStorage.getItem("App.menuSize"))||500,s.hosts=[],s.importFile=null,s.scripts={},window.alert=function(e){console.error(e),s.showError(e.toString())},s}return(0,d.Z)(a,[{key:"onConnectionReady",value:function(){var e=this;window.systemLang=this.socket.systemLang,this.setState({ready:!1,updateScripts:0,scriptsHash:0,instances:[],updating:!1,resizing:!1,selected:null,logMessage:{},editing:[],menuOpened:"false"!==window.localStorage.getItem("App.menuOpened"),menuSelectId:"",expertMode:"true"===window.localStorage.getItem("App.expertMode"),logHorzLayout:"true"===window.localStorage.getItem("App.logHorzLayout"),runningInstances:{},confirm:"",importFile:!1,message:"",searchText:"",hideLog:"true"===window.localStorage.getItem("App.hideLog"),debugMode:!1,debugInstance:null});var t={};this.subscribeOnInstances().then((function(n){return t.instances=n.instances,t.runningInstances=n.runningInstances,e.readAdaptersWithBlockly()})).then((function(){return e.socket.getHosts()})).then((function(t){return e.hosts=t.map((function(e){return e._id})),e.readAllScripts()})).then((function(n){window.localStorage&&"true"!==window.localStorage.getItem("App.expertMode")&&"false"!==window.localStorage.getItem("App.expertMode")&&Object.keys(n).find((function(e){return e.startsWith("script.js.global.")&&"script"===n.type}))&&(t.expertMode=!0),e.scripts=n;var a=e.state.scriptsHash;e.compareScripts(n)&&a++,t.scriptsHash=a,t.ready=!0,e.socket.subscribeObject("script.*",e.onScriptsChanged),e.socket.subscribeObject("system.adapter.*",e.onInstanceChanged),e.socket.subscribeObject("system.host.*",e.onHostChanged),e.setState(t)}))}},{key:"subscribeOnInstances",value:function(){var e=this;return this.socket.getAdapterInstances(this.adapterName).then((function(t){var n=t.map((function(e){return parseInt(e._id.split(".").pop())})).sort(),a={};n.forEach((function(t){return a["system.adapter.".concat(e.adapterName,".").concat(t)]=!1}));var s=[];return n.forEach((function(t){var n="system.adapter.".concat(e.adapterName,".").concat(t),o="".concat(n,".alive");s.push(e.socket.getState(o).then((function(t){a[n]=!!t&&t.val,e.socket.subscribeState(o,e.onInstanceAliveChange)})))})),Promise.all(s).then((function(){return{instances:n,runningInstances:a}}))}))}},{key:"readAllScripts",value:function(){var e=this;return this.socket.getObjectView("script.js.","script.js.\u9999","channel").then((function(t){return e.socket.getObjectView("script.js.","script.js.\u9999","script").then((function(e){return Object.keys(e).forEach((function(n){return t[n]=e[n]})),t}))}))}},{key:"readAdaptersWithBlockly",value:function(){return this.socket.getObjectView("system.adapter.","system.adapter.\u9999","adapter").then((function(e){return new Promise((function(t){return jt.loadCustomBlockly(e,(function(){return t()}))}))}))}},{key:"onToggleExpertMode",value:function(e){this.onExpertModeChange(e)}},{key:"compareScripts",value:function(e){var t=Object.keys(this.scripts),n=Object.keys(e);if(t.length!==n.length)return this.scripts=this.newScripts,!0;if(JSON.stringify(t)!==JSON.stringify(n))return this.scripts=this.newScripts,!0;for(var a=0;a ").concat(t)),this.setState({updating:!0}),this.scripts[e]&&"script"===this.scripts[e].type){var i=JSON.parse(JSON.stringify(this.scripts[e].common));i.name=n||i.name,void 0!==a&&(i.engine="system.adapter.javascript.".concat(a));var r=t.split(".");r.pop();var l=r.join(".");this.scripts[l]&&"script"===this.scripts[l].type&&(r.pop(),t="".concat(r.join("."),".").concat(t.split(".").pop())),s=this.updateScript(e,t,i)}else s=this.renameGroup(e,t,n);s.then((function(){return o.setState({updating:!1})})).catch((function(e){return"canceled"!==e&&o.showError(e)}))}},{key:"renameGroup",value:function(e,t,n,a){var s=this;if(a){if(a.length){var o=a.pop();return this.socket.getObject(o).then((function(i){return s.socket.delObject(o).catch((function(){})).then((function(){return o=t+o.substring(e.length),i._id=o,i.common=i.common||{},i.common.expert=!0,s.socket.setObject(o,i)})).then((function(){return s.renameGroup(e,t,n,a)}))}))}return Promise.resolve()}return a=[],a=Object.keys(this.scripts).filter((function(t){return t.startsWith("".concat(e,"."))})),this.socket.getObject(e).then((function(o){(o=o||{common:{}}).common.name=n||o.common.name||e.split(".").pop(),o._id=t,s.socket.delObject(e).catch((function(){})).then((function(){return s.socket.setObject(t,o)})).then((function(){return s.renameGroup(e,t,n,a)})).catch((function(e){return console.log(e)}))})).catch((function(o){console.log(o);var i={_id:t,type:"channel",common:{name:n||e.split(".").pop(),expert:!0},native:{}};return s.socket.setObject(t,i).then((function(){return s.renameGroup(e,t,n,a)}))}))}},{key:"onUpdateScript",value:function(e,t){var n=this;this.scripts[e]&&"script"===this.scripts[e].type&&this.updateScript(e,e,t).then((function(){})).catch((function(e){return"canceled"!==e&&n.showError(e)}))}},{key:"onSelect",value:function(e){var t=this;this.scripts[e]&&this.scripts[e].common&&"script"===this.scripts[e].type&&this.setState({selected:e,menuSelectId:e},(function(){return setTimeout((function(){return t.setState({menuSelectId:""})}))}),300)}},{key:"onExpertModeChange",value:function(e){this.state.expertMode!==e&&(window.localStorage&&window.localStorage.setItem("App.expertMode",e?"true":"false"),this.setState({expertMode:e}))}},{key:"showError",value:function(e){this.setState({errorText:e?e.toString():""})}},{key:"showMessage",value:function(e){this.setState({message:e?e.toString():""})}},{key:"onDelete",value:function(e){var t=this;this.socket.delObject(e).then((function(){})).catch((function(e){return t.showError(e)}))}},{key:"onEdit",value:function(e){this.state.selected!==e&&this.setState({selected:e})}},{key:"onAddNew",value:function(e,t,n,a,s,o){var i=this,r=new RegExp("^".concat(e,"\\."));if(Object.keys(this.scripts).find((function(t){return e===t||r.test(e)})))return this.showError(k.I18n.t("Yet exists!"));n?this.socket.setObject(e,{common:{name:t,expert:!0},type:"channel"}).then((function(){return setTimeout((function(){return i.setState({menuSelectId:e},(function(){return setTimeout((function(){return i.setState({menuSelectId:""})}))}),300)}),1e3)})).catch((function(e){return i.showError(e)})):this.socket.setObject(e,{common:{name:t,expert:!0,engineType:s,engine:"system.adapter.javascript.".concat(a||0),source:o||"",debug:!1,verbose:!1},type:"script"}).then((function(){return setTimeout((function(){return i.onSelect(e)}),1e3)})).catch((function(e){return i.showError(e)}))}},{key:"updateScript",value:function(e,t,n){var a=this;return this.socket.getObject(e).then((function(s){var o={common:{}};return void 0!==n.engine&&(o.common.engine=n.engine),void 0!==n.enabled&&(o.common.enabled=n.enabled),void 0!==n.source&&(o.common.source=n.source),void 0!==n.debug&&(o.common.debug=n.debug),void 0!==n.verbose&&(o.common.verbose=n.verbose),o.from="system.adapter.admin.0",e===t&&s&&s.common&&n.name===s.common.name?(n.engineType&&n.engineType===s.common.engineType||void 0!==n.engineType&&(o.common.engineType=n.engineType||"Javascript/js"),o.type="script",a.socket.extendObject(e,o)):s&&s.common?(s.common.engineType=n.engineType||s.common.engineType||"Javascript/js",a.socket.delObject(e).then((function(){void 0!==o.common.engine&&(s.common.engine=o.common.engine),void 0!==o.common.enabled&&(s.common.enabled=o.common.enabled),void 0!==o.common.source&&(s.common.source=o.common.source),void 0!==o.common.name&&(s.common.name=o.common.name),void 0!==o.common.debug&&(s.common.debug=o.common.debug),void 0!==o.common.verbose&&(s.common.verbose=o.common.verbose),delete s._rev,s.common.name=n.name,s.common.expert=!0,s.type="script",s._id=t,a.socket.setObject(t,s)}))):((s=o).common.name=n.name,s.common.expert=!0,s.type="script",s._id=t,a.socket.setObject(t,s))}))}},{key:"onEnableDisable",value:function(e,t){var n=this;if(this.scripts[e]&&"script"===this.scripts[e].type){var a=this.scripts[e].common;a.enabled=t,a.expert=!0,this.updateScript(e,e,a).catch((function(e){return"canceled"!==e&&n.showError(e)}))}}},{key:"getLiveHost",value:function(e,t){var n=this;if(t||(t=this.hosts?(0,c.Z)(this.hosts):[]),t.length){var a=t.shift();this.socket.getState("".concat(a,".alive")).then((function(s){s&&s.val?e(a):setTimeout((function(){return n.getLiveHost(e,t)}))}))}else e()}},{key:"onExport",value:function(){var e=this;this.getLiveHost((function(t){if(!t)return e.showError(k.I18n.t("No active host found"));var n=new Date,a=n.getFullYear(),s=n.getMonth()+1;s<10&&(s="0".concat(s)),a+="-".concat(s),(s=n.getDate())<10&&(s="0".concat(s)),a+="-".concat(s,"-"),e.socket.getRawSocket().emit("sendToHost",t,"readObjectsAsZip",{adapter:"javascript",id:"script.js",link:"".concat(a,"scripts.zip"),fileStorageNamespace:"admin.".concat(e.instance)},(function(t){if("string"===typeof t){var n=document.createElement("a");if(t.startsWith("admin."))n.href="../../files/".concat(t);else{var s=t.split(".zip.");n.href="./zip/".concat(s[0],"/").concat(s[1])}document.body.appendChild(n),n.click(),n.remove()}else if(t.error&&e.showError(t.error),t.data){var o=document.createElement("a");o.href="data: application/zip;base64,".concat(t.data),o.download="".concat(a,"scripts.zip"),document.body.appendChild(o),o.click(),o.remove()}}))}))}},{key:"onImport",value:function(e){this.importFile=e,e?(this.confirmCallback=this.onImportConfirmed.bind(this),this.setState({importFile:!1,confirm:k.I18n.t("Existing scripts will be overwritten.")})):this.setState({importFile:!1})}},{key:"onImportConfirmed",value:function(e){var t=this,n=this.importFile;this.importFile=null,e&&n&&(n=n.split(",")[1],this.getLiveHost((function(e){e?t.socket.getRawSocket().emit("sendToHost",e,"writeObjectsAsZip",{data:n,adapter:"javascript",id:"script.js"},(function(e){"permissionError"===e?t.showError(k.I18n.t(e)):!e||e.error?t.showError(e?k.I18n.t(e.error):k.I18n.t("Unknown error")):t.showMessage(k.I18n.t("Done"))})):t.showError(k.I18n.t("No active host found"))})))}},{key:"toggleLogLayout",value:function(){window.localStorage&&window.localStorage.setItem("App.logHorzLayout",this.state.logHorzLayout?"false":"true"),this.setState({logHorzLayout:!this.state.logHorzLayout})}},{key:"renderEditor",value:function(){var e=this,t=Object.keys(this.scripts).reduce((function(t,n){return t+("Rules"===e.scripts[n].common.engineType?1:0)}),0);return(0,se.jsx)(to,{debugMode:this.state.debugMode,onDebugModeChange:function(t){t?e.setState({debugMode:!0}):e.setState({debugMode:!1,debugInstance:null})},visible:!this.state.resizing,socket:this.socket,adapterName:this.adapterName,onLocate:function(t){return e.setState({menuSelectId:t})},runningInstances:this.state.runningInstances,menuOpened:this.state.menuOpened,searchText:this.state.searchText,themeType:this.state.themeType,themeName:this.state.themeName,theme:this.state.theme,expertMode:this.state.expertMode,onChange:function(t,n){return e.onUpdateScript(t,n)},isAnyRulesExists:t,debugInstance:this.state.debugInstance,onSelectedChange:function(t,n){var a={},s=!1;t!==e.state.selected&&(s=!0,a.selected=t),JSON.stringify(n)!==JSON.stringify(e.state.editing)&&(s=!0,a.editing=JSON.parse(JSON.stringify(n))),s&&e.setState(a)},onRestart:function(t){return e.socket.extendObject(t,{common:{enabled:!0}})},selected:this.state.selected&&this.scripts[this.state.selected]&&"script"===this.scripts[this.state.selected].type?this.state.selected:"",objects:this.scripts,instances:this.state.instances},"editor")}},{key:"showLogButton",value:function(){var e=this;return(0,se.jsx)("div",{title:k.I18n.t("Show logs"),className:this.props.classes.showLogButton,onClick:function(){window.localStorage.setItem("App.hideLog","false"),e.setState({hideLog:!1,resizing:!0}),setTimeout((function(){return e.setState({resizing:!1})}),300)},children:(0,se.jsx)(S.t2l,{})},"showLog")}},{key:"renderErrorDialog",value:function(){var e=this;return this.state.errorText?(0,se.jsx)(be,{onClose:function(){return e.setState({errorText:""})},text:this.state.errorText},"dialogError"):null}},{key:"renderMain",value:function(){var e=this,t=this.props.classes;return[this.state.message?(0,se.jsx)(y.default,{onClose:function(){return e.setState({message:""})},text:this.state.message},"dialogMessage"):null,this.renderErrorDialog(),this.state.importFile?(0,se.jsx)(so,{onClose:function(t){return e.onImport(t)}},"dialogImportFile"):null,this.state.confirm?(0,se.jsx)(b.default,{onClose:function(t){e.state.confirm&&e.setState({confirm:""}),e.confirmCallback&&e.confirmCallback(t),e.confirmCallback=null},text:this.state.confirm},"dialogConfirm"):null,(0,se.jsxs)("div",{className:t.content+" iobVerticalSplitter",children:[(0,se.jsx)("div",{className:t.menuOpenCloseButton,onClick:function(){window.localStorage.setItem("App.menuOpened",e.state.menuOpened?"false":"true"),e.setState({menuOpened:!e.state.menuOpened,resizing:!0}),setTimeout((function(){return e.setState({resizing:!1})}),300)},children:this.state.menuOpened?(0,se.jsx)(S.KYK,{}):(0,se.jsx)(S.xXU,{})},"closeMenu"),(0,se.jsxs)(f(),{vertical:!this.state.logHorzLayout,primaryMinSize:100,secondaryInitialSize:this.state.hideLog?0:this.logSize,onDragStart:function(){return e.setState({resizing:!0})},onSecondaryPaneSizeChange:function(t){return e.state.hideLog?0:e.logSize=parseFloat(t)},onDragEnd:function(){e.setState({resizing:!1}),window.localStorage.setItem("App.logSize",e.logSize.toString())},children:[(0,se.jsxs)(se.Fragment,{children:[this.renderEditor(),!this.state.debugMode&&this.state.hideLog&&this.showLogButton()]}),!this.state.debugMode&&!this.state.hideLog&&(0,se.jsx)(We,{verticalLayout:!this.state.logHorzLayout,onLayoutChange:function(){return e.toggleLogLayout()},editing:this.state.editing,socket:this.socket,selected:this.state.selected,onHideLog:function(){window.localStorage.setItem("App.hideLog","true"),e.setState({hideLog:!0,resizing:!0}),setTimeout((function(){return e.setState({resizing:!1})}),300)}},"log")]},"splitterLayout")]},"main")]}},{key:"render",value:function(){var e=this,t=this.props.classes;return this.state.ready?(0,se.jsx)("div",{className:t.root,children:(0,se.jsx)(Wa,{socket:this.socket,children:(0,se.jsxs)(f(),{vertical:!1,primaryMinSize:300,primaryIndex:1,secondaryMinSize:300,secondaryInitialSize:this.menuSize,customClassName:"".concat(t.splitterDivs," ").concat(this.state.menuOpened?"":t.menuDivWithoutMenu),onDragStart:function(){return e.setState({resizing:!0})},onSecondaryPaneSizeChange:function(t){return e.menuSize=parseFloat(t)},onDragEnd:function(){e.setState({resizing:!1}),window.localStorage.setItem("App.menuSize",e.menuSize.toString())},children:[(0,se.jsx)("div",{className:t.mainDiv,children:(0,se.jsx)(Pe,{debugMode:this.state.debugMode,onDebugInstance:function(t){e.setState({debugInstance:t,debugMode:!!t})},scripts:this.scripts,scriptsHash:this.state.scriptsHash,instances:this.state.instances,update:this.state.updateScripts,onRename:this.onRename.bind(this),onSelect:this.onSelect.bind(this),socket:this.socket,selectId:this.state.menuSelectId,onEdit:this.onEdit.bind(this),expertMode:this.state.expertMode,themeType:this.state.themeType,themeName:this.state.themeName,onThemeChange:function(t){k.Utils.setThemeName(t);var n=k.Utils.getThemeType(t);e.setState({themeName:t,themeType:n},(function(){return e.props.onThemeChange(t)}))},runningInstances:this.state.runningInstances,onExpertModeChange:this.onExpertModeChange.bind(this),onDelete:this.onDelete.bind(this),onAddNew:this.onAddNew.bind(this),onEnableDisable:this.onEnableDisable.bind(this),onExport:this.onExport.bind(this),width:this.menuSize,onImport:function(){return e.setState({importFile:!0})},onSearch:function(t){return e.setState({searchText:t})}},"sidemenu")},"menu"),this.renderMain()]},"menuSplitter")})}):(0,se.jsx)(k.Loader,{theme:this.state.themeType})}}]),a}(v.Z),io=(0,g.Z)((function(e){return{root:{flexGrow:1,display:"flex",width:"100%",height:"100%"},menuDiv:{overflow:"hidden"},splitterDivs:{"&>div":{overflow:"hidden",width:"100%",height:"100%"},"& .layout-splitter":{background:"dark"===e.palette.mode?"#595858":"#ccc;"}},mainDiv:{width:"100%",height:"100%",overflow:"hidden"},content:{width:"100%",height:"100%",backgroundColor:e.palette.background&&e.palette.background.default,position:"relative"},splitterDivWithMenu:{width:"calc(100% - 300px)",height:"100%"},menuDivWithoutMenu:{"&>div:first-child":{display:"none"},"&>.layout-splitter":{display:"none"}},progress:{margin:100},menuOpenCloseButton:{position:"absolute",left:0,borderRadius:"0 5px 5px 0",top:6,paddingTop:8,cursor:"pointer",zIndex:1,height:25,width:20,background:e.palette.secondary.main,color:e.palette.primary.main,paddingLeft:3,"&:hover":{color:"white"}},showLogButton:{position:"absolute",right:3,borderRadius:"5px 5px 0 0",bottom:0,paddingTop:3,cursor:"pointer",zIndex:10,height:20,width:25,background:e.palette.secondary.main,color:e.palette.primary.main,paddingLeft:8,"&:hover":{color:"white"}}}}))(oo);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var ro=n(37674),lo=n(19509);window.GenericBlock=ta,window.adapterName="javascript",window.sentryDSN="https://504499a725eb4898930d3b9e9da95740@sentry.iobroker.net/56";var co=k.Utils.getThemeName();console.log("iobroker.".concat(window.adapterName,"@").concat("7.1.0",' using theme "').concat(co,'"'));var uo=(0,l.createGenerateClassName)({productionPrefix:"iob"});!function e(){var t=window.innerWidth<600,n=document.getElementById("root");return(0,o.s)(n).render((0,se.jsx)(l.StylesProvider,{generateClassName:uo,children:(0,se.jsx)(i.Z,{injectFirst:!0,children:(0,se.jsx)(r.Z,{theme:(0,ro.default)(co),children:(0,se.jsx)(F.W,{backend:t?lo.zr:B.PD,children:(0,se.jsx)(io,{onThemeChange:function(t){co=t,e()}})})})})}))}(),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}));var po=window.loadDynamicScript;po&&po("3000"===window.location.port?window.location.protocol+"//"+window.location.hostname+":8081/lib/js/socket.io.js":"./../../lib/js/socket.io.js",(function(){po("vs/loader.js",(function(){po("vs/configure.js",(function(){"function"===typeof window.socketLoadedHandler&&window.socketLoadedHandler()}))}))}))},19837:function(e){e.exports=JSON.parse('{"-":"-","Add":"Hinzuf\xfcgen","Add new script":"Neues Skript hinzuf\xfcgen","All files will be accepted":"Alle Dateien werden akzeptiert","April":"April","Are you sure?":"Wirklich sicher?","August":"August","Blockly description":"Erstellen von Regeln durch Grafikbl\xf6cke","Cancel":"Abbrechen","Cannot delete non empty item!":"Kann nicht gel\xf6scht werden, weil noch einige Elementen darin sind!","Change layout":"Layout \xe4ndern","Check blocks":"Bl\xf6cke pr\xfcfen","Check is not active, because javascript adapter is disabled":"Syntax-Check ist nicht aktiv, weil der Javascript Adapter nicht aktiv ist.","Clear search input":"Sucheingabe l\xf6schen","Click on this icon":"Auf dieses Symbol klicken","Close":"Schlie\xdfen","Close all but current":"Alle anderen au\xdfer dem Aktiven schlie\xdfen","Collapse all":"Alles einklappen","Configuration not saved.":"Die Konfiguration ist nicht gespeichert.","Convert blockly to javascript for ever.":"Blockly dauerhaft in Javascript konvertieren.","Copy script":"Skript kopieren","Copy to clipboard":"In die Zwischenablage kopieren","Create new":"Neu erstellen","Create new folder":"Neuen Ordner erstellen","Create new script":"Neues Skript erstellen","Create or edit CRON or time wizard":"CRON- oder Zeit-Assistenten erstellen oder bearbeiten","Dark Theme":"Dunkles Thema","Dark style":"Dunkler Stil","Debug options":"Debug-Optionen","December":"Dezember","Define cron...":"Cron definieren ...","Define schedule...":"Zeitplan definieren ...","Delete":"L\xf6schen","Delete %s":"L\xf6schen %s...","Delete folder":"Ordner l\xf6schen","Delete script":"Skript l\xf6schen","Deselect all":"Alles abw\xe4hlen","Discard changes for %s":"\xc4nderungen f\xfcr %s verwerfen","Done":"Fertig","Drop some files here or click...":"Dateien hier ablegen oder klicken ...","Edit script or just double click":"Skript bearbeiten oder einfach doppelklicken","End search mode":"Suchmodus beenden","Error":"Fehler","Error was found":"Fehler wurde gefunden","Existing scripts will be overwritten.":"Vorhandene Skripte werden \xfcberschrieben.","Expand all":"Alle erweitern","Expert mode":"Expertenmodus","Export":"Export","Export all scripts":"Alle Skripte exportieren","Export blocks":"Bl\xf6cke exportieren","Export selected blocks":"Ausgew\xe4hlte Bl\xf6cke exportieren","February":"Februar","Folder":"Ordner","Friday":"Freitag","Function editor":"Funktions-Editor","ID":"ID","Import":"Import","Import blocks":"Bl\xf6cke importieren","Import error":"Fehler beim Importieren","Import scripts":"Skripte importieren","Insert object ID":"Objekt-ID einf\xfcgen","Instance":"Instanz","Instance is disabled":"Instanz ist deaktiviert","Invalid CRON":"Ung\xfcltiger CRON","It will not be possible to revert this operation.":"Dieser Vorgang kann nicht r\xfcckg\xe4ngig gemacht werden.","JS description":"Regeln erstellen mit JavaScript","January":"Januar","July":"Juli","June":"Juni","Learn More":"Mehr erfahren","Light style":"Heller Stil","Locate file":"Datei zeigen","Log outputs":"Protokoll","March":"M\xe4rz","May":"Mai","Menu":"Men\xfc","Message":"Nachricht","Monday":"Montag","Name":"Name","No active host found":"Kein aktiver Host gefunden","November":"November","October":"Oktober","Ok":"Ok","On weekdays":"An Wochentagen","Pause script":"Skript anhalten","Please select object ID...":"Objekt-ID ausw\xe4hlen ...","Rename":"Umbenennen","Reorder scripts in folders":"Skripte in Ordnern neu ordnen","Repeat":"Wiederholen","Restart":"Neustart","Root folder":"Root-Verzeichnis","Run script":"Skript ausf\xfchren","Saturday":"Samstag","Save":"Speichern","Script":"Skript","Script %s was modified on disk":"Skript \\"%s\\" wurde auf der Festplatte ge\xe4ndert","Script is not running":"Skript l\xe4uft nicht","Search in scripts":"Suche in Skripten","Search...":"Suche...","Select all":"Alles ausw\xe4hlen","September":"September","Show javascript code":"Javascript-Code zeigen","Show only paused scripts":"Nur angehaltene Skripte zeigen","Show only running scripts":"Nur laufende Skripte zeigen","Show only scripts with problems":"Nur Skripte mit Problemen zeigen","Some files will be rejected":"Einige Dateien werden abgelehnt","Sunday":"Sonntag","TS description":"Regeln erstellen mit TypeScript","Thursday":"Donnerstag","Tuesday":"Dienstag","Unknown error":"Unbekannter Fehler","Unknown error!":"Unbekannter Fehler!","Wednesday":"Mittwoch","Yet exists!":"Existiert schon!","copy":"Kopie","file reading has failed: %s":"Das Lesen der Datei ist fehlgeschlagen: %s","file reading was aborted":"Das Lesen der Datei wurde abgebrochen","filter_func":"Funktion","filter_id":"ID","filter_name":"Name","filter_role":"Rolle","filter_room":"Raum","for edit or create script":"zum Bearbeiten oder zum Erstellen eines neues Skripts","no blocks found":"Keine Bl\xf6cke gefunden","no group":"KEINE GRUPPE","not properly connected":"Dieser Block ist mit anderen nicht richtig verbunden.","tooltip_ack":"Best\xe4tigen","tooltip_from":"Von","tooltip_lc":"Zuletzt ge\xe4ndert","tooltip_quality":"Qualit\xe4t","tooltip_ts":"Zeitstempel","tooltip_user":"Benutzer","tooltip_value":"Wert","use seconds":"Sekunden verwenden","Save all":"Alle speichern","Change theme (actual \\"%s\\")":"Thema \xe4ndern (jetzt - \\"%s\\")","Hide logs":"Protokoll ausblenden","Show logs":"Protokoll anzeigen","Rules description":"Regeln erstellen mit WENN-, DANN- und SONST-Bl\xf6cken","help_on_change":"Der Code wird nur ausgef\xfchrt, wenn sich das Ergebnis der Bedingung \xe4ndert. z.B. wenn sich der Temperatur wert \xe4ndert und die Bedingung \\"Wenn die Temperatur gr\xf6\xdfer als 20\xb0C ist\\" lautet, werden die \\"Dann\\" -Aktionen einmal ausgef\xfchrt, wenn die Temperatur \xfcber 20\xb0C liegt. Das n\xe4chste Mal werden die \\"Dann\\" -Aktionen ausgef\xfchrt, wenn die Temperatur unter 20\xb0C gefallen ist und dann wieder \xfcber 20\xb0C ansteigt.","help_just_check":"Der Code wird jedes Mal ausgef\xfchrt, wenn die Bedingung erf\xfcllt ist. z.B. wenn der Temperatur wert sich \xe4ndert und die Bedingung \\"Wenn die Temperatur gr\xf6\xdfer als 20\xb0C ist\\" lautet, werden die \\"Dann\\" -Aktionen jedes Mal ausgef\xfchrt, wenn der Sensor die Temperatur sendet und diese \xfcber 20\xb0C liegt. Bei 21\xb0C, bei 22\xb0C und so weiter.","On condition change":"Bei \xc4nderung des Ergebnis der Bedingung","Just check":"Einfach \xfcberpr\xfcfen","when":"falls","and":"und","then":"dann","or":"oder","else":"sonst","Nothing found":"Nichts gefunden","reset search":"Suche zur\xfccksetzen","Read only ID selected: %s":"Schreibgesch\xfctzte ID ausgew\xe4hlt: %s","OK":"OK","Triggers":"L\xf6st aus","cron":"CRON","wizard":"Assistent","interval":"Intervall","at":"beim","astro":"Astro","on condition change":"bei Zustands\xe4nderung","just check":"einfach pr\xfcfen","Explanation":"Erl\xe4uterung","seconds":"Sekunden","minutes":"Minuten","hours":"Stunden","Every day":"T\xe4glich","milliseconds":"Millisekunden","Copied":"Kopiert","nadir":"Nadir","nightEnd":"astronomische Morgend\xe4mmerung","nauticalDawn":"nautische Morgend\xe4mmerung","dawn":"Morgend\xe4mmerung","sunrise":"Sonnenaufgang","sunriseEnd":"Goldene Morgenstunde","goldenHourEnd":"Vormittag","solarNoon":"(Nach-)Mittag","goldenHour":"Goldene Abendstunde","sunsetStart":"Sonnenuntergang (Anfang)","sunset":"Abendd\xe4mmerung","dusk":"nautische Abendd\xe4mmerung","nauticalDusk":"astronomische Abendd\xe4mmerung","night":"Nacht","one":"einer","two":"zwei","true":"wahr","false":"falsch","search":"Suche","Actions":"Aktionen","Conditions":"Bedingungen","Schedule":"Zeitplan","Start script":"Skript starten","State":"Zustand","State condition":"Zustandsbedingung","Time condition":"Zeitbedingung","Astrological":"Astronomisch","Set state action":"Zustand setzten","Exec":"Exec shell","HTTP Call":"HTTP-Aufruf","Log text":"Protokolltext","Pause":"Pause","on change":"bei \xc4nderung","control":"Steuerung","Say It":"Say It","every hour at 0 minutes":"jede Stunde bei 0 Minuten","On script save or adapter start":"Beim Speichern des Skripts oder beim Starten des Adapters","equal to":"gleich","Actual time of day":"Tats\xe4chliche Tageszeit","with":"mit","Shell command":"Shell-Befehl","URL":"URL","Instance:":"Instanz:","Language:":"Sprache:","Volume":"Volumen","Text:":"Text:","undefined":"nicht definiert","Default":"Standard","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"Sie k\xf6nnen %s im Text verwenden, um den aktuellen Triggerwert anzuzeigen, %id, um die ausgel\xf6ste Objekt-ID zu verwenden, %name, um den ID-Namen des ausgel\xf6sten Objekts anzuzeigen, oder %old, um den alten Triggerwert zu verwenden","Instructions":"Anleitung","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"Sie k\xf6nnen %s in der URL verwenden, um den aktuellen Triggerwert zu verwenden, %id, um die ausgel\xf6ste Objekt-ID zu verwenden, %name, um den ID-Namen des ausgel\xf6sten Objekts anzuzeigen, oder %old, um den alten Triggerwert zu verwenden","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"Sie k\xf6nnen %s im Wert verwenden, um den aktuellen Triggerwert zu verwenden, %id, um die ID des ausgel\xf6sten Objekts zu verwenden, %name, um den ID-Namen des ausgel\xf6sten Objekts anzuzeigen, oder %old, um den alten Triggerwert zu verwenden","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"Sie k\xf6nnen %s im Befehl verwenden, um den aktuellen Triggerwert zu verwenden, %id, um die ausgel\xf6ste Objekt-ID zu verwenden, %name, um den ID-Namen des ausgel\xf6sten Objekts anzuzeigen, oder %old, um den alten Triggerwert zu verwenden","every":"jeder","with offset":"mit Versatz","on update":"beim Aktualisieren","update":"Aktualisieren","Triggers the rule periodically or on some specific time":"L\xf6st periodisch oder zu einem bestimmten Zeitpunkt aus","Triggers the on script saving or the javascript instance restart":"L\xf6st das Speichern des Skripts oder den Neustart der Javascript-Instanz aus","Triggers the rule on update or change of some state":"L\xf6st die Regel beim Aktualisieren oder \xc4ndern eines Zustands aus","Compares the state value with user defined value":"Vergleicht den Zustandswert mit dem benutzerdefinierten Wert","Compares current time with the user specific time":"Vergleicht die aktuelle Zeit mit der benutzerspezifischen Zeit","Compares current time with astrological event":"Vergleicht die aktuelle Zeit mit dem astronomischen Ereignis","Control or update some state":"Zustand steuern oder aktualisieren","Executes some shell command":"F\xfchrt einen Shell-Befehl aus","Make a HTTP get request":"Stellen Sie eine HTTP-Abrufanforderung","Print some text in log":"Drucken Sie einen Text im Protokoll","Make a pause between actions":"Machen Sie eine Pause zwischen den Aktionen","Say some text via sayit adapter":"Sagen Sie einen Text \xfcber den Sayit-Adapter","Telegram":"Telegram","User:":"Benutzer:","all":"alle","Sends message via telegram":"Sendet eine Nachricht per telegram","Sends an email":"Sendet eine E-Mail","Send email":"E-Mail senden","Sends message via pushover":"Sendet eine Nachricht per Pushover","Pushover":"Pushover","Sends message via whatsapp-cmb":"Sendet eine Nachricht \xfcber WhatsApp-Cmb","Whatsapp-cmb":"WhatsApp-cmb","Sends message via Pushsafer":"Sendet eine Nachricht \xfcber Pushsafer","Pushsafer":"Pushsafer","To:":"Zu:","Subject:":"Gegenstand:","Body:":"K\xf6rper:","Title:":"Titel:","Sound:":"Klang:","Priority:":"Priorit\xe4t:","magic":"Magie","quiet":"ruhig","normal":"Normal","high-priority":"hohe Priorit\xe4t","acknowledgment":"Wissen","Phone:":"Telefon:","(optional)":"(optional)","Vibration:":"Vibration:","lowest priority":"niedrigste Priorit\xe4t","lower priority":"geringere Priorit\xe4t","normal priority":"normale Priorit\xe4t","high priority":"hohe Priorit\xe4t","highest priority":"h\xf6chste Priorit\xe4t","default":"Standard","All":"Alle","Write your own code":"Eigenen Code schreiben","User function":"Benutzerfunktion","This is advances option. You can write your own code here and it will be executed on trigger":"Dies ist eine erweiterte Option. Sie k\xf6nnen hier Ihren eigenen Code schreiben, der beim Ausl\xf6sen ausgef\xfchrt wird","greater than":"gr\xf6\xdfer als","offset":"Versatz","Function":"Funktion","greater or equal to":"gr\xf6\xdfer oder gleich","less or equal to":"kleiner oder gleich","less than":"kleiner als","not equal to":"ungleich","[equal]":"[gleich]","[greater or equal]":"[gr\xf6\xdfer oder gleich]","[greater]":"[gr\xf6\xdfer]","[less or equal]":"[kleiner oder gleich]","[less]":"[kleiner]","[not equal]":"[ungleich]","[includes]":"[enth\xe4lt]","[hysteresis]":"[Hysterese]","greater or equal":"gr\xf6\xdfer oder gleich","less or equal":"kleiner oder gleich","includes":"beinhaltet",".":".","()":"()","Mo":"Mo","Tu":"Di","We":"Mi","Th":"Do","Fr":"Fr","Sa":"Sa","Su":"So","Control or update some state with delay":"Zustand mit Verz\xf6gerung steuern oder aktualisieren","Delay":"Verz\xf6gerung","ms":"ms","Set with delay":"Setzen mit Verz\xf6gerung","clear running":"laufende abbrechen","toggle value":"Wert umschalten","Any month":"Jeden Monat","Any":"Egal","with date":"mit Datum","Date":"Datum","Month":"Monat","Januar":"Januar","Februar":"Februar","March ":"M\xe4rz ","Condition":"Bedingung","Limit":"Grenze","The script will be stopped and must be activated manually after debugging. Continue?":"Das Skript wird gestoppt und muss nach dem Debuggen manuell aktiviert werden. Fortsetzen?","Yes":"Ja","Debug instance":"Debug-Instanz","Resume execution":"Ausf\xfchrung fortsetzen","Go to next line":"Gehe zur n\xe4chsten Zeile","Step into function":"Schritt in die Funktion","Step out from function":"Raus aus der Funktion","Stop on exception":"Bei Ausnahme anhalten","Console":"Konsole","Stack":"Stack","Pause execution":"Ausf\xfchrung pausieren","Simulate":"Simulieren","Trigger with value":"Trigger mit Wert","Value":"Wert","Write":"Schreiben","Ack":"Best\xe4tigt","Start":"Start","Filter":"Filter","Instances":"Instanzen","Triggered":"Ausgel\xf6st","Function: executed":"Funktion: ausgef\xfchrt","Operate two states":"Zwei Zust\xe4nde operieren","store in":"speichern in","ID1":"ID1","ID2":"ID2","Operations with two states":"Operationen mit zwei Zust\xe4nden","debug_label":"Debuggen","debug_help":"Dies ist ein spezieller Modus, in dem sich Zust\xe4nde und Objekte nicht \xe4ndern. Im Protokoll werden jedoch nur Informationen zu jeder geplanten \xc4nderung angezeigt.","verbose_label":"Ausf\xfchrliche Protokollausgaben","verbose_help":"F\xfcgt Debug-Ausgaben f\xfcr viele Systembefehle zum Protokoll hinzu","easy":"einfach","for programmers":"f\xfcr Programmierer","for professionals":"f\xfcr Profis","Duplicate name":"Doppelter Name","Empty name is not allowed":"Leerer Name ist nicht zul\xe4ssig","Astrological events today":"Astrologische Ereignisse heute","Show astrological events":"Astrologische Ereignisse anzeigen","Time":"Zeit","Description":"Beschreibung","nextSunrise":"N\xe4chster Sonnenaufgang","nextSunset":"N\xe4chster Sonnenuntergang"}')},86443:function(e){e.exports=JSON.parse('{"-":"-","Add":"Add","Add new script":"Add new script","All files will be accepted":"All files will be accepted","April":"April","Are you sure?":"Are you sure?","August":"August","Blockly description":"Creating rules by graphic blocks","Cancel":"Cancel","Cannot delete non empty item!":"Cannot delete non empty item!","Change layout":"Change layout","Check blocks":"Check blocks","Check is not active, because javascript adapter is disabled":"Check is not active, because Javascript adapter is disabled","Clear search input":"Clear search input","Click on this icon":"Click on this icon","Close":"Close","Close all but current":"Close all but current","Collapse all":"Collapse all","Configuration not saved.":"Configuration not saved.","Convert blockly to javascript for ever.":"Permanently convert Blockly to Javascript.","Copy script":"Copy script","Copy to clipboard":"Copy to clipboard","Create new":"Create new","Create new folder":"Create new folder","Create new script":"Create new script","Create or edit CRON or time wizard":"Create or edit CRON or time wizard","Dark Theme":"Dark theme","Dark style":"Dark style","Debug options":"Debug options","December":"December","Define cron...":"Define cron...","Define schedule...":"Define schedule...","Delete":"Delete","Delete %s":"Delete %s...","Delete folder":"Delete folder","Delete script":"Delete script","Deselect all":"Deselect all","Discard changes for %s":"Discard changes for %s","Done":"Done","Drop some files here or click...":"Drop some files here or click...","Edit script or just double click":"Edit script or just double click","End search mode":"End search mode","Error":"Error","Error was found":"Error was found","Existing scripts will be overwritten.":"Existing scripts will be overwritten.","Expand all":"Expand all","Expert mode":"Expert mode","Export":"Export","Export all scripts":"Export all scripts","Export blocks":"Export blocks","Export selected blocks":"Export selected blocks","February":"February","Folder":"Folder","Friday":"Friday","Function editor":"Function editor","ID":"ID","Import":"Import","Import blocks":"Import blocks","Import error":"Import error","Import scripts":"Import scripts","Insert object ID":"Insert object ID","Instance":"Instance","Instance is disabled":"Instance is disabled","Invalid CRON":"Invalid CRON","It will not be possible to revert this operation.":"It will not be possible to revert this operation.","JS description":"Creating rules by writing Javascript","January":"January","July":"July","June":"June","Learn More":"Learn More","Light style":"Light style","Locate file":"Locate file","Log outputs":"Log outputs","March":"March","May":"May","Menu":"Menu","Message":"Message","Monday":"Monday","Name":"Name","No active host found":"No active host found","November":"November","October":"October","Ok":"Ok","On weekdays":"On weekdays","Pause script":"Pause script","Please select object ID...":"Please select object ID...","Rename":"Rename","Reorder scripts in folders":"Reorder scripts in folders","Repeat":"Repeat","Restart":"Restart","Root folder":"Root folder","Run script":"Run script","Saturday":"Saturday","Save":"Save","Script":"Script","Script %s was modified on disk":"Script %s was modified on disk","Script is not running":"Script is not running","Search in scripts":"Search in scripts","Search...":"Search...","Select all":"Select all","September":"September","Show javascript code":"Show Javascript code","Show only paused scripts":"Show only paused scripts","Show only running scripts":"Show only running scripts","Show only scripts with problems":"Show only scripts with problems","Some files will be rejected":"Some files will be rejected","Sunday":"Sunday","TS description":"Creating rules by writing Typescript","Thursday":"Thursday","Tuesday":"Tuesday","Unknown error":"Unknown error","Unknown error!":"Unknown error!","Wednesday":"Wednesday","Yet exists!":"Yet exists!","copy":"copy","file reading has failed: %s":"file reading has failed: %s","file reading was aborted":"file reading was aborted","filter_func":"Function","filter_id":"ID","filter_name":"Name","filter_role":"Role","filter_room":"Room","for edit or create script":"for edit or create a new script","no blocks found":"No blocks found","no group":"NO GROUP","not properly connected":"This block is not properly connected to other blocks.","tooltip_ack":"Acknowledge","tooltip_from":"From","tooltip_lc":"Last changed","tooltip_quality":"Quality","tooltip_ts":"Timestamp","tooltip_user":"User","tooltip_value":"Value","use seconds":"use seconds","Save all":"Save all","Change theme (actual \\"%s\\")":"Change theme (now - \\"%s\\")","Hide logs":"Hide logs","Show logs":"Show logs","Rules description":"Create rules with IF, THEN, ELSE blocks","help_on_change":"The code will be executed only if the condition result changes. E.g. if triggering on the temperature sensor value and the condition is \\"if temperature is greater than 20\xb0C\\", the \\"then\\" actions will be executed once when temperature is over 20. Next time the \\"then\\" actions will be executed when the temperature fails under 20 and then rises over 20 again.","help_just_check":"The code will be executed only every time when condition is true. E.g. if triggering on the temperature sensor value and the condition is \\"if temperature is greater than 20\xb0C\\", the \\"then\\" actions will be executed every time when sensor sends the temperature and it is over 20\xb0C. By 21\xb0C, by 22\xb0C and so on.","On condition change":"On condition result change","Just check":"Just check","when":"when","and":"and","then":"then","or":"or","else":"else","Nothing found":"Nothing found","reset search":"reset search","Read only ID selected: %s":"Read only ID selected: %s","OK":"OK","Triggers":"Triggers","cron":"CRON","wizard":"Wizard","interval":"interval","at":"at","astro":"Astro","on condition change":"on condition change","just check":"just check","Explanation":"Explanation","seconds":"seconds","minutes":"minutes","hours":"hours","Every day":"Every day","milliseconds":"milliseconds","Copied":"Copied","nadir":"Nadir","nightEnd":"Night end","nauticalDawn":"Nautical dawn","dawn":"Dawn","sunrise":"sunrise","sunriseEnd":"Sunrise end","goldenHourEnd":"End of golden hour","solarNoon":"Solar noon","goldenHour":"Golden hour","sunsetStart":"Sunset start","sunset":"Sunset","dusk":"Dusk","nauticalDusk":"Nautical dusk","night":"Night","one":"one","two":"two","true":"true","false":"false","search":"search","Actions":"Actions","Conditions":"Conditions","Schedule":"Schedule","Start script":"Start script","State":"State","State condition":"State condition","Time condition":"Time condition","Astrological":"Astronomical","Set state action":"Set state action","Exec":"Exec shell","HTTP Call":"HTTP Call","Log text":"Log text","Pause":"Pause","on change":"on change","control":"control","Say It":"Say It","every hour at 0 minutes":"every hour at 0 minutes","On script save or adapter start":"On script save or adapter start","equal to":"equal to","Actual time of day":"Actual time of day","with":"with","Shell command":"Shell command","URL":"URL","Instance:":"Instance:","Language:":"Language:","Volume":"Volume","Text:":"Text:","undefined":"undefined","Default":"Default","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"You can use %s in the text to display current trigger value, %id to use the triggered object ID, %name to show triggered object ID name or %old to use old trigger value","Instructions":"Instructions","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"You can use %s in the URL to use current trigger value, %id to use the triggered object ID, %name to show triggered object ID name or %old to use old trigger value","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"You can use %s in the value to use the current trigger value, %id to use the triggered object ID, %name to show triggered object ID name or %old to use old trigger value","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"You can use %s in the command to use current trigger value, %id to use the triggered object ID, %name to show triggered object ID name or %old to use old trigger value","every":"every","with offset":"with offset","on update":"on update","update":"update","Triggers the rule periodically or on some specific time":"Triggers the rule periodically or on some specific time","Triggers the on script saving or the javascript instance restart":"Triggers the on script saving or the javascript instance restart","Triggers the rule on update or change of some state":"Triggers the rule on update or change of some state","Compares the state value with user defined value":"Compares the state value with user defined value","Compares current time with the user specific time":"Compares current time with the user specific time","Compares current time with astrological event":"Compares current time with astronomical event","Control or update some state":"Control or update some state","Executes some shell command":"Executes some shell command","Make a HTTP get request":"Make a HTTP get request","Print some text in log":"Print some text in log","Make a pause between actions":"Make a pause between actions","Say some text via sayit adapter":"Say some text via sayit adapter","Telegram":"Telegram","User:":"User:","all":"all","Sends message via telegram":"Sends message via telegram","Sends an email":"Sends an email","Send email":"Send email","Sends message via pushover":"Sends message via pushover","Pushover":"Pushover","Sends message via whatsapp-cmb":"Sends message via whatsapp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"Sends message via Pushsafer","Pushsafer":"Pushsafer","To:":"To:","Subject:":"Subject:","Body:":"Body:","Title:":"Title:","Sound:":"Sound:","Priority:":"Priority:","magic":"magic","quiet":"quiet","normal":"normal","high-priority":"high-priority","acknowledgment":"acknowledgment","Phone:":"Phone:","(optional)":"(optional)","Vibration:":"Vibration:","lowest priority":"lowest priority","lower priority":"lower priority","normal priority":"normal priority","high priority":"high priority","highest priority":"highest priority","default":"default","All":"All","Write your own code":"Write your own code","User function":"User function","This is advances option. You can write your own code here and it will be executed on trigger":"This is advances option. You can write your own code here and it will be executed on trigger","greater than":"greater than","offset":"offset","Function":"Function","greater or equal to":"greater or equal to","less or equal to":"less or equal to","less than":"less than","not equal to":"not equal to","[equal]":"[equal]","[greater or equal]":"[greater or equal]","[greater]":"[greater]","[less or equal]":"[less or equal]","[less]":"[less]","[not equal]":"[not equal]","[includes]":"[includes]","[hysteresis]":"[hysteresis]","greater or equal":"greater or equal","less or equal":"less or equal","includes":"includes",".":".","()":"()","Mo":"Mo","Tu":"Tu","We":"We","Th":"Th","Fr":"Fr","Sa":"Sa","Su":"Su","Control or update some state with delay":"Control or update some state with delay","Delay":"Delay","ms":"ms","Set with delay":"Set with delay","clear running":"clear running","toggle value":"toggle value","Any month":"Any month","Any":"Any","with date":"with date","Date":"Date","Month":"Month","Januar":"Januar","Februar":"Februar","March ":"March ","Condition":"Condition","Limit":"Limit","The script will be stopped and must be activated manually after debugging. Continue?":"The script will be stopped and must be activated manually after debugging. Continue?","Yes":"Yes","Debug instance":"Debug instance","Resume execution":"Resume execution","Go to next line":"Go to next line","Step into function":"Step into function","Step out from function":"Step out from function","Stop on exception":"Stop on exception","Console":"Console","Stack":"Stack","Pause execution":"Pause execution","Simulate":"Simulate","Trigger with value":"Trigger with value","Value":"Value","Write":"Write","Ack":"Acknowledged","Start":"Start","Filter":"Filter","Instances":"Instances","Triggered":"Triggered","Function: executed":"Function: executed","Operate two states":"Operate two states","store in":"store in","ID1":"ID1","ID2":"ID2","Operations with two states":"Operations with two states","debug_label":"Debug","debug_help":"This is a special mode in which states and objects will not change. But only information about each planned change will be displayed in the protocol.","verbose_label":"Verbose log outputs","verbose_help":"Adds debug output to the log for many system commands","easy":"easy","for programmers":"for programmers","for professionals":"for professionals","Duplicate name":"Duplicate name","Empty name is not allowed":"Empty name is not allowed","Astrological events today":"Astrological events today","Show astrological events":"Show astrological events","Time":"Time","Description":"Description","nextSunrise":"Next Sunrise","nextSunset":"Next sunset"}')},55117:function(e){e.exports=JSON.parse('{"-":"-","Add":"A\xf1adir","Add new script":"Agregar nuevo script","All files will be accepted":"Todos los archivos ser\xe1n aceptados.","April":"abril","Are you sure?":"\xbfEst\xe1s seguro?","August":"agosto","Blockly description":"Crear reglas por bloques gr\xe1ficos","Cancel":"Cancelar","Cannot delete non empty item!":"\xa1No se puede eliminar un elemento no vac\xedo!","Change layout":"Cambia el dise\xf1o","Check blocks":"Comprobar bloques","Check is not active, because javascript adapter is disabled":"La comprobaci\xf3n no est\xe1 activa porque el adaptador Javascript est\xe1 desactivado","Clear search input":"Borrar entrada de b\xfasqueda","Click on this icon":"Haga clic en este \xedcono","Close":"Cerrar","Close all but current":"Cerrar todo menos el actual","Collapse all":"Desplegar todo","Configuration not saved.":"Configuraci\xf3n no guardada.","Convert blockly to javascript for ever.":"Convierta instant\xe1neamente en bloque a Javascript.","Copy script":"Copiar guion","Copy to clipboard":"Copiar al portapapeles","Create new":"Crear nuevo","Create new folder":"Crear nueva carpeta","Create new script":"Crear nuevo script","Create or edit CRON or time wizard":"Crear o editar CRON o asistente de tiempo","Dark Theme":"Tema oscuro","Dark style":"Estilo oscuro","Debug options":"Opciones de depuraci\xf3n","December":"diciembre","Define cron...":"Definir cron ...","Define schedule...":"Definir horario ...","Delete":"Eliminar","Delete %s":"Eliminar %s ...","Delete folder":"Eliminar carpeta","Delete script":"Eliminar gui\xf3n","Deselect all":"Deseleccionar todo","Discard changes for %s":"Descartar cambios para %s","Done":"Hecho","Drop some files here or click...":"Suelta algunos archivos aqu\xed o haz clic ...","Edit script or just double click":"Editar gui\xf3n o simplemente hacer doble clic","End search mode":"Fin del modo de b\xfasqueda","Error":"Error","Error was found":"Error encontrado","Existing scripts will be overwritten.":"Los guiones existentes se sobrescribir\xe1n.","Expand all":"Expandir todo","Expert mode":"Modo experto","Export":"Exportar","Export all scripts":"Exportar todos los scripts","Export blocks":"Exportar bloques","Export selected blocks":"Exportar bloques seleccionados","February":"febrero","Folder":"Carpeta","Friday":"viernes","Function editor":"Editor de funciones","ID":"CARN\xc9 DE IDENTIDAD","Import":"Importar","Import blocks":"Importar bloques","Import error":"Error de importaci\xf3n","Import scripts":"Importar guiones","Insert object ID":"Insertar ID de objeto","Instance":"Ejemplo","Instance is disabled":"La instancia est\xe1 deshabilitada","Invalid CRON":"CRON inv\xe1lido","It will not be possible to revert this operation.":"No ser\xe1 posible revertir esta operaci\xf3n.","JS description":"Crear reglas escribiendo Javascript","January":"enero","July":"julio","June":"junio","Learn More":"Aprende m\xe1s","Light style":"Estilo ligero","Locate file":"Localizar el archivo","Log outputs":"Salidas de registro","March":"marzo","May":"Mayo","Menu":"Men\xfa","Message":"Mensaje","Monday":"lunes","Name":"Nombre","No active host found":"No se encontr\xf3 un host activo","November":"noviembre","October":"octubre","Ok":"Okay","On weekdays":"De lunes a viernes","Pause script":"Pausar guion","Please select object ID...":"Por favor, seleccione la ID del objeto ...","Rename":"Rebautizar","Reorder scripts in folders":"Reordenar guiones en carpetas","Repeat":"Repetir","Restart":"Reiniciar","Root folder":"Carpeta ra\xedz","Run script":"Ejecutar gui\xf3n","Saturday":"s\xe1bado","Save":"Salvar","Script":"Gui\xf3n","Script %s was modified on disk":"El script %s fue modificado en el disco","Script is not running":"El script no se est\xe1 ejecutando","Search in scripts":"Buscar en guiones","Search...":"Buscar...","Select all":"Seleccionar todo","September":"septiembre","Show javascript code":"Mostrar c\xf3digo Javascript","Show only paused scripts":"Mostrar solo secuencias de comandos pausadas","Show only running scripts":"Mostrar solo scripts en ejecuci\xf3n","Show only scripts with problems":"Mostrar solo guiones con problemas","Some files will be rejected":"Algunos archivos ser\xe1n rechazados","Sunday":"domingo","TS description":"Crear reglas escribiendo el mecanografiado","Thursday":"jueves","Tuesday":"martes","Unknown error":"Error desconocido","Unknown error!":"\xa1Error desconocido!","Wednesday":"mi\xe9rcoles","Yet exists!":"\xa1Sin embargo existe!","copy":"Copiar","file reading has failed: %s":"la lectura del archivo ha fallado: %s","file reading was aborted":"la lectura del archivo fue abortada","filter_func":"Funci\xf3n","filter_id":"CARN\xc9 DE IDENTIDAD","filter_name":"Nombre","filter_role":"Papel","filter_room":"Habitaci\xf3n","for edit or create script":"para editar o crear un nuevo script","no blocks found":"No se encontraron bloques","no group":"NO GRUPO","not properly connected":"Este bloque no est\xe1 conectado correctamente a otros bloques.","tooltip_ack":"Reconocer","tooltip_from":"De","tooltip_lc":"\xdaltimo cambio","tooltip_quality":"Calidad","tooltip_ts":"Marca de tiempo","tooltip_user":"Usuario","tooltip_value":"Valor","use seconds":"usar segundos","Save all":"Salvar a todos","Change theme (actual \\"%s\\")":"Cambiar tema (ahora - \\"%s\\")","Hide logs":"Ocultar registros","Show logs":"Mostrar registros","Rules description":"Crea reglas con bloques IF, THEN, ELSE","help_on_change":"El c\xf3digo se ejecutar\xe1 solo si cambia el resultado de la condici\xf3n. P.ej. si se activa en el valor del sensor de temperatura y la condici\xf3n es \\"si la temperatura es superior a 20 \xb0 C\\", las acciones \\"entonces\\" se ejecutar\xe1n una vez cuando la temperatura sea superior a 20. La pr\xf3xima vez, las acciones \\"entonces\\" se ejecutar\xe1n cuando la temperatura falla por debajo de 20 y luego sube por encima de 20 nuevamente.","help_just_check":"El c\xf3digo se ejecutar\xe1 solo cada vez que la condici\xf3n sea verdadera. P.ej. si se activa en el valor del sensor de temperatura y la condici\xf3n es \\"si la temperatura es superior a 20 \xb0 C\\", las acciones \\"entonces\\" se ejecutar\xe1n cada vez que el sensor env\xede la temperatura y supere los 20 \xb0 C. Por 21 \xb0 C, por 22 \xb0 C y as\xed sucesivamente.","On condition change":"En condici\xf3n de cambio","Just check":"S\xf3lo revisa","when":"cuando","and":"y","then":"entonces","or":"o","else":"dem\xe1s","Nothing found":"Nada Encontrado","reset search":"restablecer la b\xfasqueda","Read only ID selected: %s":"ID de solo lectura seleccionado: %s","OK":"OK","Triggers":"Disparadores","cron":"CRON","wizard":"Wizard","interval":"intervalo","at":"a","astro":"astro","on condition change":"con cambio de condici\xf3n","just check":"S\xf3lo revisa","Explanation":"Explicaci\xf3n","seconds":"segundos","minutes":"minutos","hours":"horas","Every day":"Diario","milliseconds":"milisegundos","Copied":"Copiado","nadir":"nadir","nightEnd":"Fin de la noche","nauticalDawn":"Amanecer n\xe1utico","dawn":"Amanecer","sunrise":"amanecer","sunriseEnd":"Final del amanecer","goldenHourEnd":"Fin de la hora dorada","solarNoon":"Mediod\xeda solar","goldenHour":"hora dorada","sunsetStart":"Inicio al atardecer","sunset":"puesta de sol","dusk":"Oscuridad","nauticalDusk":"Atardecer n\xe1utico","night":"Noche","one":"uno","two":"dos","true":"cierto","false":"falso","search":"buscar","Actions":"Comportamiento","Conditions":"Condiciones","Schedule":"Calendario","Start script":"Iniciar guion","State":"Expresar","State condition":"Condici\xf3n del estado","Time condition":"Condici\xf3n de tiempo","Astrological":"Astron\xf3mico","Set state action":"Establecer acci\xf3n estatal","Exec":"Ejecutivo shell","HTTP Call":"Llamada HTTP","Log text":"Texto de registro","Pause":"Pausa","on change":"en el cambio","control":"control","Say It":"Say It","every hour at 0 minutes":"cada hora a los 0 minutos","On script save or adapter start":"Al guardar el script o al iniciar el adaptador","equal to":"igual a","Actual time of day":"Hora real del d\xeda","with":"con","Shell command":"Comando de Shell","URL":"URL","Instance:":"Ejemplo:","Language:":"Idioma:","Volume":"Volumen","Text:":"Texto:","undefined":"indefinido","Default":"Defecto","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"Puede usar %s en el texto para mostrar el valor de activaci\xf3n actual, %id para usar el ID de objeto activado, %name para mostrar el nombre de ID de objeto activado o %old para usar el valor de activaci\xf3n antiguo","Instructions":"Instrucciones","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"Puede usar %s en la URL para usar el valor de activaci\xf3n actual, %id para usar el ID de objeto activado, %name para mostrar el nombre de ID de objeto activado o %old para usar el valor de activaci\xf3n antiguo","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"Puede usar %s en el valor para usar el valor de activaci\xf3n actual, %id para usar el ID de objeto activado, %name para mostrar el nombre de ID de objeto activado o %old para usar el valor de activaci\xf3n antiguo","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"Puede usar %s en el comando para usar el valor de activaci\xf3n actual, %id para usar el ID de objeto activado, %name para mostrar el nombre de ID de objeto activado o %old para usar el valor de activaci\xf3n anterior","every":"cada","with offset":"con desplazamiento","on update":"en actualizaci\xf3n","update":"actualizar","Triggers the rule periodically or on some specific time":"Activa la regla peri\xf3dicamente o en un momento espec\xedfico","Triggers the on script saving or the javascript instance restart":"Activa el guardado de la secuencia de comandos o el reinicio de la instancia de JavaScript","Triggers the rule on update or change of some state":"Activa la regla de actualizaci\xf3n o cambio de alg\xfan estado","Compares the state value with user defined value":"Compara el valor del estado con el valor definido por el usuario","Compares current time with the user specific time":"Compara la hora actual con la hora espec\xedfica del usuario","Compares current time with astrological event":"Compara la hora actual con un evento astron\xf3mico","Control or update some state":"Controlar o actualizar alg\xfan estado","Executes some shell command":"Ejecuta alg\xfan comando de shell","Make a HTTP get request":"Realizar una solicitud de obtenci\xf3n HTTP","Print some text in log":"Imprime texto en el registro","Make a pause between actions":"Hacer una pausa entre acciones","Say some text via sayit adapter":"Di un mensaje de texto a trav\xe9s del adaptador sayit","Telegram":"Telegrama","User:":"Usuario:","all":"todos","Sends message via telegram":"Env\xeda mensaje por telegrama","Sends an email":"Env\xeda un correo electr\xf3nico","Send email":"Enviar correo electr\xf3nico","Sends message via pushover":"Env\xeda un mensaje a trav\xe9s de un pushover","Pushover":"Persona f\xe1cil de convencer","Sends message via whatsapp-cmb":"Env\xeda mensaje v\xeda whatsapp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"Env\xeda mensaje a trav\xe9s de Pushsafer","Pushsafer":"Pushsafer","To:":"A:","Subject:":"Sujeto:","Body:":"Cuerpo:","Title:":"T\xedtulo:","Sound:":"Sonido:","Priority:":"Prioridad:","magic":"magia","quiet":"tranquilo","normal":"normal","high-priority":"alta prioridad","acknowledgment":"Reconocimiento","Phone:":"Tel\xe9fono:","(optional)":"(Opcional)","Vibration:":"Vibraci\xf3n:","lowest priority":"prioridad m\xe1s baja","lower priority":"prioridad m\xe1s baja","normal priority":"prioridad normal","high priority":"alta prioridad","highest priority":"m\xe1s alta prioridad","default":"defecto","All":"Todos","Write your own code":"Escribe tu propio c\xf3digo","User function":"Funci\xf3n de usuario","This is advances option. You can write your own code here and it will be executed on trigger":"Esta es la opci\xf3n de avances. Puede escribir su propio c\xf3digo aqu\xed y se ejecutar\xe1 en el disparador","greater than":"mas grande que","offset":"compensar","Function":"Funci\xf3n","greater or equal to":"mayor o igual a","less or equal to":"menor o igual a","less than":"menos que","not equal to":"no igual a","[equal]":"[igual]","[greater or equal]":"[mayor o igual]","[greater]":"[mayor que]","[less or equal]":"[menor o igual]","[less]":"[menos]","[not equal]":"[no es igual]","[includes]":"[incluye]","[hysteresis]":"[hist\xe9resis]","greater or equal":"mayor o igual","less or equal":"menor o igual","includes":"incluye",".":".","()":"()","Mo":"Mes","Tu":"Tu","We":"3","Th":"4","Fr":"P.","Sa":"Sa","Su":"Su","Control or update some state with delay":"Controlar o actualizar alg\xfan estado con retraso","Delay":"Demora","ms":"ms","Set with delay":"Establecer con retraso","clear running":"carrera clara","toggle value":"alternar valor","Any month":"Cualquier mes","Any":"Alguna","with date":"con fecha","Date":"Fecha","Month":"Mes","Januar":"Enero","Februar":"Februar","March ":"marzo","Condition":"Condici\xf3n","Limit":"L\xedmite","The script will be stopped and must be activated manually after debugging. Continue?":"El script se detendr\xe1 y deber\xe1 activarse manualmente despu\xe9s de la depuraci\xf3n. \xbfContinuar?","Yes":"s\xed","Debug instance":"Instancia de depuraci\xf3n","Resume execution":"Reanudar ejecuci\xf3n","Go to next line":"Ir a la siguiente l\xednea","Step into function":"Entra en funci\xf3n","Step out from function":"Sal de la funci\xf3n","Stop on exception":"Det\xe9ngase en excepci\xf3n","Console":"Consola","Stack":"Stack","Pause execution":"Pausar ejecuci\xf3n","Simulate":"Simular","Trigger with value":"Activar con valor","Value":"Valor","Write":"Escribir","Ack":"Admitido","Start":"Comienzo","Filter":"Filtrar","Instances":"Instancias","Triggered":"Motivado","Function: executed":"Funci\xf3n: ejecutada","Operate two states":"Operar dos estados","store in":"almacenar en","ID1":"ID1","ID2":"ID2","Operations with two states":"Operaciones con dos estados","debug_label":"Depurar","debug_help":"Este es un modo especial en el que los estados y los objetos no cambiar\xe1n. Pero solo se mostrar\xe1 informaci\xf3n sobre cada cambio planificado en el protocolo.","verbose_label":"Salidas de registro detalladas","verbose_help":"Agrega salida de depuraci\xf3n al registro para muchos comandos del sistema","easy":"f\xe1cil","for programmers":"para programadores","for professionals":"para profesionales","Duplicate name":"Nombre duplicado","Empty name is not allowed":"No se permite el nombre vac\xedo","Astrological events today":"Eventos astrol\xf3gicos hoy","Show astrological events":"Mostrar eventos astrol\xf3gicos","Time":"Tiempo","Description":"Descripci\xf3n","nextSunrise":"pr\xf3ximo amanecer","nextSunset":"Pr\xf3xima puesta de sol"}')},86115:function(e){e.exports=JSON.parse('{"-":"-","Add":"Ajouter","Add new script":"Ajouter un nouveau script","All files will be accepted":"Tous les fichiers seront accept\xe9s","April":"avril","Are you sure?":"\xcates-vous s\xfbr?","August":"ao\xfbt","Blockly description":"Cr\xe9ation de r\xe8gles par blocs graphiques","Cancel":"Annuler","Cannot delete non empty item!":"Impossible de supprimer un \xe9l\xe9ment non vide!","Change layout":"Changer la disposition","Check blocks":"V\xe9rifier les blocs","Check is not active, because javascript adapter is disabled":"La v\xe9rification n\'est pas active, car l\'adaptateur Javascript est d\xe9sactiv\xe9","Clear search input":"Effacer la recherche","Click on this icon":"Cliquez sur cette ic\xf4ne","Close":"proche","Close all but current":"Ferme tout sauf courant","Collapse all":"R\xe9duire tout","Configuration not saved.":"Configuration non enregistr\xe9e.","Convert blockly to javascript for ever.":"Convertissez instantan\xe9ment en Javascript.","Copy script":"Copier le script","Copy to clipboard":"Copier dans le presse-papier","Create new":"Cr\xe9er un nouveau","Create new folder":"Cr\xe9er un nouveau dossier","Create new script":"Cr\xe9er un nouveau script","Create or edit CRON or time wizard":"Cr\xe9er ou \xe9diter CRON ou un assistant de temps","Dark Theme":"Th\xe8me sombre","Dark style":"Style sombre","Debug options":"Options de d\xe9bogage","December":"d\xe9cembre","Define cron...":"D\xe9finir le cron ...","Define schedule...":"D\xe9finir le calendrier ...","Delete":"Effacer","Delete %s":"Supprimer %s ...","Delete folder":"Supprimer le dossier","Delete script":"Supprimer le script","Deselect all":"Tout d\xe9selectionner","Discard changes for %s":"Ignorer les modifications pour %s","Done":"Termin\xe9","Drop some files here or click...":"D\xe9poser des fichiers ici ou cliquez sur ...","Edit script or just double click":"Modifiez le script ou double-cliquez simplement sur","End search mode":"Fin du mode de recherche","Error":"Erreur","Error was found":"Une erreur a \xe9t\xe9 trouv\xe9e","Existing scripts will be overwritten.":"Les scripts existants seront \xe9cras\xe9s.","Expand all":"D\xe9velopper tout","Expert mode":"Mode expert","Export":"Exportation","Export all scripts":"Exporter tous les scripts","Export blocks":"Blocs d\'exportation","Export selected blocks":"Exporter les blocs s\xe9lectionn\xe9s","February":"f\xe9vrier","Folder":"Dossier","Friday":"Vendredi","Function editor":"\xc9diteur de fonction","ID":"ID","Import":"Importation","Import blocks":"Blocs d\'importation","Import error":"Erreur d\'importation","Import scripts":"Importer des scripts","Insert object ID":"Ins\xe9rer un identifiant d\'objet","Instance":"Exemple","Instance is disabled":"L\'instance est d\xe9sactiv\xe9e","Invalid CRON":"CRON invalide","It will not be possible to revert this operation.":"Il ne sera pas possible de revenir sur cette op\xe9ration.","JS description":"Cr\xe9er des r\xe8gles en \xe9crivant du Javascript","January":"janvier","July":"juillet","June":"juin","Learn More":"Apprendre encore plus","Light style":"Style de lumi\xe8re","Locate file":"Localiser le fichier","Log outputs":"Journal des sorties","March":"Mars","May":"Mai","Menu":"M e n u","Message":"Message","Monday":"Lundi","Name":"Nom","No active host found":"Aucun h\xf4te actif trouv\xe9","November":"novembre","October":"octobre","Ok":"D\'accord","On weekdays":"En semaine","Pause script":"Script de pause","Please select object ID...":"Veuillez s\xe9lectionner l\'ID d\'objet ...","Rename":"Renommer","Reorder scripts in folders":"R\xe9organiser les scripts dans des dossiers","Repeat":"R\xe9p\xe9ter","Restart":"Red\xe9marrer","Root folder":"Dossier racine","Run script":"Script de lancement","Saturday":"samedi","Save":"sauver","Script":"Sc\xe9nario","Script %s was modified on disk":"Le script %s a \xe9t\xe9 modifi\xe9 sur le disque","Script is not running":"Le script n\'est pas en cours d\'ex\xe9cution","Search in scripts":"Rechercher dans les scripts","Search...":"Chercher...","Select all":"Tout s\xe9lectionner","September":"septembre","Show javascript code":"Afficher le code Javascript","Show only paused scripts":"Afficher uniquement les scripts en pause","Show only running scripts":"Afficher uniquement les scripts en cours d\'ex\xe9cution","Show only scripts with problems":"Afficher uniquement les scripts avec des probl\xe8mes","Some files will be rejected":"Certains fichiers seront rejet\xe9s","Sunday":"dimanche","TS description":"Cr\xe9er des r\xe8gles en \xe9crivant des caract\xe8res dactylographi\xe9s","Thursday":"Jeudi","Tuesday":"Mardi","Unknown error":"Erreur inconnue","Unknown error!":"Erreur inconnue!","Wednesday":"Mercredi","Yet exists!":"Pourtant existe!","copy":"copie","file reading has failed: %s":"La lecture du fichier a \xe9chou\xe9: %s","file reading was aborted":"la lecture du fichier a \xe9t\xe9 abandonn\xe9e","filter_func":"Une fonction","filter_id":"ID","filter_name":"Nom","filter_role":"R\xf4le","filter_room":"Pi\xe8ce","for edit or create script":"pour \xe9diter ou cr\xe9er un nouveau script","no blocks found":"Aucun bloc trouv\xe9","no group":"PAS DE GROUPE","not properly connected":"Ce bloc n\'est pas correctement connect\xe9 \xe0 d\'autres blocs.","tooltip_ack":"Reconna\xeetre","tooltip_from":"De","tooltip_lc":"Derni\xe8re modification","tooltip_quality":"Qualit\xe9","tooltip_ts":"Horodatage","tooltip_user":"Utilisateur","tooltip_value":"Valeur","use seconds":"utiliser les secondes","Save all":"Sauver tous","Change theme (actual \\"%s\\")":"Changer de th\xe8me (maintenant - \\"%s\\")","Hide logs":"Masquer les journaux","Show logs":"Afficher les journaux","Rules description":"Cr\xe9er des r\xe8gles avec des blocs IF, THEN, ELSE","help_on_change":"Le code ne sera ex\xe9cut\xe9 que si le r\xe9sultat de la condition change. Par exemple. si le d\xe9clenchement sur la valeur du capteur de temp\xe9rature et que la condition est \xabsi la temp\xe9rature est sup\xe9rieure \xe0 20 \xb0 C\xbb, les actions \xabalors\xbb seront ex\xe9cut\xe9es une fois lorsque la temp\xe9rature est sup\xe9rieure \xe0 20. La prochaine fois, les actions \xabalors\xbb seront ex\xe9cut\xe9es lorsque la temp\xe9rature \xe9choue sous 20 puis remonte au-dessus de 20.","help_just_check":"Le code ne sera ex\xe9cut\xe9 que chaque fois que la condition est vraie. Par exemple. si d\xe9clenchement sur la valeur du capteur de temp\xe9rature et que la condition est \xabsi la temp\xe9rature est sup\xe9rieure \xe0 20 \xb0 C\xbb, les actions \xabalors\xbb seront ex\xe9cut\xe9es \xe0 chaque fois que le capteur envoie la temp\xe9rature et qu\'elle est sup\xe9rieure \xe0 20 \xb0 C. \xc0 21 \xb0 C, \xe0 22 \xb0 C et ainsi de suite.","On condition change":"En cas de changement de condition","Just check":"V\xe9rifiez simplement","when":"lorsque","and":"et","then":"alors","or":"ou","else":"autre","Nothing found":"Rien n\'a \xe9t\xe9 trouv\xe9","reset search":"R\xe9initialiser la recherche","Read only ID selected: %s":"ID en lecture seule s\xe9lectionn\xe9: %s","OK":"OK","Triggers":"D\xe9clencheurs","cron":"CRON","wizard":"Wizard","interval":"intervalle","at":"\xe0","astro":"astro","on condition change":"sur changement de condition","just check":"V\xe9rifiez simplement","Explanation":"Explication","seconds":"secondes","minutes":"minutes","hours":"les heures","Every day":"Tous les jours","milliseconds":"millisecondes","Copied":"Copi\xe9","nadir":"nadir","nightEnd":"Fin de nuit","nauticalDawn":"Aube nautique","dawn":"Aube","sunrise":"lever du soleil","sunriseEnd":"Fin du lever du soleil","goldenHourEnd":"Fin de l\'heure d\'or","solarNoon":"Midi solaire","goldenHour":"Heure d\'or","sunsetStart":"D\xe9but du coucher du soleil","sunset":"le coucher du soleil","dusk":"Cr\xe9puscule","nauticalDusk":"Cr\xe9puscule nautique","night":"Nuit","one":"une","two":"deux","true":"vrai","false":"faux","search":"chercher","Actions":"Actions","Conditions":"Conditions","Schedule":"Horaire","Start script":"Lancer le script","State":"\xc9tat","State condition":"\xc9tat condition","Time condition":"Condition de temps","Astrological":"Astronomique","Set state action":"D\xe9finir l\'action de l\'\xe9tat","Exec":"Exec shell","HTTP Call":"Appel HTTP","Log text":"Texte du journal","Pause":"Pause","on change":"sur le changement","control":"contr\xf4ler","Say It":"Say It","every hour at 0 minutes":"toutes les heures \xe0 0 minute","On script save or adapter start":"Lors de l\'enregistrement du script ou du d\xe9marrage de l\'adaptateur","equal to":"\xe9gal \xe0","Actual time of day":"Heure r\xe9elle de la journ\xe9e","with":"avec","Shell command":"Commande Shell","URL":"URL","Instance:":"Exemple:","Language:":"Langue:","Volume":"Le volume","Text:":"Texte:","undefined":"ind\xe9fini","Default":"D\xe9faut","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"Vous pouvez utiliser %s dans le texte pour afficher la valeur de d\xe9clenchement actuelle, %id pour utiliser l\'ID de l\'objet d\xe9clench\xe9, %name pour afficher le nom de l\'ID de l\'objet d\xe9clench\xe9 ou %old pour utiliser l\'ancienne valeur de d\xe9clenchement","Instructions":"Instructions","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"Vous pouvez utiliser %s dans l\'URL pour utiliser la valeur de d\xe9clenchement actuelle, %id pour utiliser l\'ID de l\'objet d\xe9clench\xe9, %name pour afficher le nom de l\'ID de l\'objet d\xe9clench\xe9 ou %old pour utiliser l\'ancienne valeur de d\xe9clenchement","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"Vous pouvez utiliser %s dans la valeur pour utiliser la valeur de d\xe9clenchement actuelle, %id pour utiliser l\'ID de l\'objet d\xe9clench\xe9, %name pour afficher le nom de l\'ID de l\'objet d\xe9clench\xe9 ou %old pour utiliser l\'ancienne valeur de d\xe9clenchement","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"Vous pouvez utiliser %s dans la commande pour utiliser la valeur de d\xe9clenchement actuelle, %id pour utiliser l\'ID de l\'objet d\xe9clench\xe9, %name pour afficher le nom de l\'ID de l\'objet d\xe9clench\xe9 ou %old pour utiliser l\'ancienne valeur de d\xe9clenchement","every":"chaque","with offset":"avec offset","on update":"sur mise \xe0 jour","update":"mettre \xe0 jour","Triggers the rule periodically or on some specific time":"D\xe9clenche la r\xe8gle p\xe9riodiquement ou \xe0 une heure pr\xe9cise","Triggers the on script saving or the javascript instance restart":"D\xe9clenche l\'enregistrement du script ou le red\xe9marrage de l\'instance javascript","Triggers the rule on update or change of some state":"D\xe9clenche la r\xe8gle sur la mise \xe0 jour ou le changement d\'un \xe9tat","Compares the state value with user defined value":"Compare la valeur d\'\xe9tat avec la valeur d\xe9finie par l\'utilisateur","Compares current time with the user specific time":"Compare l\'heure actuelle avec l\'heure sp\xe9cifique de l\'utilisateur","Compares current time with astrological event":"Compare l\'heure actuelle avec un \xe9v\xe9nement astronomique","Control or update some state":"Contr\xf4ler ou mettre \xe0 jour un \xe9tat","Executes some shell command":"Ex\xe9cute une commande shell","Make a HTTP get request":"Faire une requ\xeate HTTP Get","Print some text in log":"Imprimer du texte dans le journal","Make a pause between actions":"Faites une pause entre les actions","Say some text via sayit adapter":"Dites du texte via l\'adaptateur sayit","Telegram":"T\xe9l\xe9gramme","User:":"Utilisateur:","all":"tout","Sends message via telegram":"Envoie un message par t\xe9l\xe9gramme","Sends an email":"Envoie un e-mail","Send email":"Envoyer un e-mail","Sends message via pushover":"Envoie un message via pushover","Pushover":"Pushover","Sends message via whatsapp-cmb":"Envoie un message via whatsapp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"Envoie un message via Pushsafer","Pushsafer":"Pushsafer","To:":"\xc0:","Subject:":"Sujet:","Body:":"Corps:","Title:":"Titre:","Sound:":"Sonner:","Priority:":"Priorit\xe9:","magic":"la magie","quiet":"calmer","normal":"Ordinaire","high-priority":"haute priorit\xe9","acknowledgment":"reconnaissance","Phone:":"T\xe9l\xe9phone:","(optional)":"(optionnel)","Vibration:":"Vibration:","lowest priority":"priorit\xe9 la plus basse","lower priority":"priorit\xe9 inf\xe9rieure","normal priority":"priorit\xe9 normale","high priority":"haute priorit\xe9","highest priority":"priorit\xe9 la plus \xe9lev\xe9e","default":"d\xe9faut","All":"Tout","Write your own code":"\xc9crivez votre propre code","User function":"Fonction utilisateur","This is advances option. You can write your own code here and it will be executed on trigger":"C\'est une option avanc\xe9e. Vous pouvez \xe9crire votre propre code ici et il sera ex\xe9cut\xe9 au d\xe9clenchement","greater than":"plus grand que","offset":"d\xe9calage","Function":"Fonction","greater or equal to":"sup\xe9rieur ou \xe9gal \xe0","less or equal to":"inf\xe9rieur ou \xe9gal \xe0","less than":"moins que","not equal to":"pas \xe9gal \xe0","[equal]":"[\xe9gal]","[greater or equal]":"[sup\xe9rieur ou \xe9gal]","[greater]":"[plus grand]","[less or equal]":"[inf\xe9rieur ou \xe9gal]","[less]":"[moins]","[not equal]":"[in\xe9gal]","[includes]":"[comprend]","[hysteresis]":"[hyst\xe9r\xe8se]","greater or equal":"sup\xe9rieur ou \xe9gal","less or equal":"inf\xe9rieur ou \xe9gal","includes":"comprend",".":".","()":"()","Mo":"Mo","Tu":"Tu","We":"3","Th":"4","Fr":"Fr","Sa":"Sa","Su":"Su","Control or update some state with delay":"Contr\xf4ler ou mettre \xe0 jour un \xe9tat avec un d\xe9lai","Delay":"Retard","ms":"ms","Set with delay":"Set avec retard","clear running":"course claire","toggle value":"valeur de bascule","Any month":"N\'importe quel mois","Any":"Tout","with date":"avec date","Date":"Date","Month":"Mois","Januar":"Janvier","Februar":"F\xe9vrier","March ":"mars","Condition":"\xc9tat","Limit":"Limite","The script will be stopped and must be activated manually after debugging. Continue?":"Le script sera arr\xeat\xe9 et doit \xeatre activ\xe9 manuellement apr\xe8s le d\xe9bogage. Continuez?","Yes":"Oui","Debug instance":"Instance de d\xe9bogage","Resume execution":"Reprendre l\'ex\xe9cution","Go to next line":"Aller \xe0 la ligne suivante","Step into function":"Entrez dans la fonction","Step out from function":"Sortez de la fonction","Stop on exception":"Arr\xeat sur exception","Console":"Console","Stack":"Stack","Pause execution":"Suspendre l\'ex\xe9cution","Simulate":"Simuler","Trigger with value":"D\xe9clencheur avec valeur","Value":"Valeur","Write":"\xc9crivez","Ack":"Reconnu","Start":"D\xe9but","Filter":"Filtre","Instances":"Instances","Triggered":"D\xe9clench\xe9","Function: executed":"Fonction\xa0: ex\xe9cut\xe9e","Operate two states":"Op\xe9rer deux \xe9tats","store in":"stocker dans","ID1":"ID1","ID2":"ID2","Operations with two states":"Op\xe9rations \xe0 deux \xe9tats","debug_label":"D\xe9boguer","debug_help":"Il s\'agit d\'un mode sp\xe9cial dans lequel les \xe9tats et les objets ne changeront pas. Mais seules les informations sur chaque changement pr\xe9vu seront affich\xe9es dans le protocole.","verbose_label":"Sorties de journal d\xe9taill\xe9es","verbose_help":"Ajoute une sortie de d\xe9bogage au journal pour de nombreuses commandes syst\xe8me","easy":"facile","for programmers":"pour les programmeurs","for professionals":"pour les professionnels","Duplicate name":"Nom en double","Empty name is not allowed":"Le nom vide n\'est pas autoris\xe9","Astrological events today":"\xc9v\xe9nements astrologiques aujourd\'hui","Show astrological events":"Afficher les \xe9v\xe9nements astrologiques","Time":"Temps","Description":"Description","nextSunrise":"Prochain lever de soleil","nextSunset":"Prochain coucher de soleil"}')},79399:function(e){e.exports=JSON.parse('{"-":"-","Add":"Inserisci","Add new script":"Aggiungi nuovo script","All files will be accepted":"Tutti i file saranno accettati","April":"aprile","Are you sure?":"Sei sicuro?","August":"agosto","Blockly description":"Creazione di regole tramite blocchi grafici","Cancel":"Annulla","Cannot delete non empty item!":"Impossibile eliminare l\'elemento non vuoto!","Change layout":"Cambia layout","Check blocks":"Controlla i blocchi","Check is not active, because javascript adapter is disabled":"Il controllo non \xe8 attivo perch\xe9 l\'adattatore Javascript \xe8 disabilitato","Clear search input":"Cancella input di ricerca","Click on this icon":"Clicca su questa icona","Close":"Vicino","Close all but current":"Chiudi tutto tranne corrente","Collapse all":"Comprimi tutto","Configuration not saved.":"Configurazione non salvata.","Convert blockly to javascript for ever.":"Converti istantaneamente a blocchi in Javascript.","Copy script":"Copia script","Copy to clipboard":"Copia negli appunti","Create new":"Creare nuovo","Create new folder":"Crea una nuova cartella","Create new script":"Crea nuovo script","Create or edit CRON or time wizard":"Crea o modifica la procedura guidata CRON o time","Dark Theme":"Tema scuro","Dark style":"Stile scuro","Debug options":"Opzioni di debug","December":"dicembre","Define cron...":"Definisci cron ...","Define schedule...":"Definisci programma ...","Delete":"Elimina","Delete %s":"Elimina %s ...","Delete folder":"Elimina cartella","Delete script":"Elimina script","Deselect all":"Deselezionare tutto","Discard changes for %s":"Annulla modifiche per %s","Done":"Fatto","Drop some files here or click...":"Trascina alcuni file qui o fai clic su ...","Edit script or just double click":"Modifica lo script o fai doppio clic","End search mode":"Termina la modalit\xe0 di ricerca","Error":"Errore","Error was found":"Errore trovato","Existing scripts will be overwritten.":"Gli script esistenti verranno sovrascritti.","Expand all":"Espandi tutto","Expert mode":"Modalit\xe0 esperto","Export":"Esportare","Export all scripts":"Esporta tutti gli script","Export blocks":"Esporta blocchi","Export selected blocks":"Esporta i blocchi selezionati","February":"febbraio","Folder":"Cartella","Friday":"Venerd\xec","Function editor":"Editor di funzioni","ID":"ID","Import":"Importare","Import blocks":"Importa blocchi","Import error":"Errore di importazione","Import scripts":"Importa script","Insert object ID":"Inserisci l\'ID oggetto","Instance":"Esempio","Instance is disabled":"L\'istanza \xe8 disabilitata","Invalid CRON":"CRON non valido","It will not be possible to revert this operation.":"Non sar\xe0 possibile ripristinare questa operazione.","JS description":"Creare regole scrivendo Javascript","January":"gennaio","July":"luglio","June":"giugno","Learn More":"Per saperne di pi\xf9","Light style":"Stile leggero","Locate file":"Localizza file","Log outputs":"Registra le uscite","March":"marzo","May":"Maggio","Menu":"Menu","Message":"Messaggio","Monday":"Lunedi","Name":"Nome","No active host found":"Nessun host attivo trovato","November":"novembre","October":"ottobre","Ok":"Ok","On weekdays":"Nei giorni della settimana","Pause script":"Metti in pausa lo script","Please select object ID...":"Seleziona l\'ID oggetto ...","Rename":"Rinominare","Reorder scripts in folders":"Riordina gli script nelle cartelle","Repeat":"Ripetere","Restart":"Ricomincia","Root folder":"Cartella root","Run script":"Esegui script","Saturday":"Sabato","Save":"Salva","Script":"copione","Script %s was modified on disk":"Lo script %s \xe8 stato modificato sul disco","Script is not running":"Lo script non \xe8 in esecuzione","Search in scripts":"Cerca negli script","Search...":"Ricerca...","Select all":"Seleziona tutto","September":"settembre","Show javascript code":"Mostra codice Javascript","Show only paused scripts":"Mostra solo script in pausa","Show only running scripts":"Mostra solo gli script in esecuzione","Show only scripts with problems":"Mostra solo script con problemi","Some files will be rejected":"Alcuni file verranno rifiutati","Sunday":"Domenica","TS description":"Creare regole scrivendo dattiloscritto","Thursday":"giovedi","Tuesday":"marted\xec","Unknown error":"Errore sconosciuto","Unknown error!":"Errore sconosciuto!","Wednesday":"mercoled\xec","Yet exists!":"Esiste ancora!","copy":"copia","file reading has failed: %s":"lettura file non riuscita: %s","file reading was aborted":"la lettura del file \xe8 stata interrotta","filter_func":"Funzione","filter_id":"ID","filter_name":"Nome","filter_role":"Ruolo","filter_room":"Camera","for edit or create script":"per modificare o creare un nuovo script","no blocks found":"Nessun blocco trovato","no group":"NESSUN GRUPPO","not properly connected":"Questo blocco non \xe8 correttamente collegato ad altri blocchi.","tooltip_ack":"Riconoscere","tooltip_from":"A partire dal","tooltip_lc":"Ultima modifica","tooltip_quality":"Qualit\xe0","tooltip_ts":"timestamp","tooltip_user":"Utente","tooltip_value":"Valore","use seconds":"usa i secondi","Save all":"Salva tutto","Change theme (actual \\"%s\\")":"Cambia tema (ora - \\"%s\\")","Hide logs":"Nascondi i registri","Show logs":"Mostra i log","Rules description":"Crea regole con i blocchi IF, THEN, ELSE","help_on_change":"Il codice verr\xe0 eseguito solo se il risultato della condizione cambia. Per esempio. se si attiva il valore del sensore di temperatura e la condizione \xe8 \\"se la temperatura \xe8 maggiore di 20 \xb0 C\\", le azioni \\"allora\\" verranno eseguite una volta quando la temperatura \xe8 superiore a 20. La prossima volta le azioni \\"allora\\" verranno eseguite quando la temperatura fallisce sotto 20 e poi sale di nuovo oltre 20.","help_just_check":"Il codice verr\xe0 eseguito solo ogni volta che la condizione \xe8 vera. Per esempio. se si attiva il valore del sensore di temperatura e la condizione \xe8 \\"se la temperatura \xe8 maggiore di 20 \xb0 C\\", le azioni \\"allora\\" verranno eseguite ogni volta che il sensore invia la temperatura e questa \xe8 superiore a 20 \xb0 C. Di 21 \xb0 C, di 22 \xb0 C e cos\xec via.","On condition change":"A condizione che cambino","Just check":"Controlla solamente","when":"quando","and":"e","then":"poi","or":"o","else":"altro","Nothing found":"Non abbiamo trovato nulla","reset search":"resetta la ricerca","Read only ID selected: %s":"ID di sola lettura selezionato: %s","OK":"OK","Triggers":"Trigger","cron":"CRON","wizard":"procedura guidata","interval":"intervallo","at":"a","astro":"astro","on condition change":"a cambio di condizione","just check":"controlla solamente","Explanation":"Spiegazione","seconds":"secondi","minutes":"minuti","hours":"ore","Every day":"Ogni giorno","milliseconds":"millisecondi","Copied":"Copiato","nadir":"nadir","nightEnd":"Fine della notte","nauticalDawn":"Alba nautica","dawn":"alba","sunrise":"Alba","sunriseEnd":"Fine dell\'alba","goldenHourEnd":"Fine dell\'ora d\'oro","solarNoon":"Mezzogiorno solare","goldenHour":"Ora d\'oro","sunsetStart":"Inizio del tramonto","sunset":"tramonto","dusk":"crepuscolo","nauticalDusk":"Crepuscolo nautico","night":"Notte","one":"uno","two":"Due","true":"vero","false":"falso","search":"ricerca","Actions":"Azioni","Conditions":"Condizioni","Schedule":"Programma","Start script":"Avvia script","State":"Stato","State condition":"Condizione dello stato","Time condition":"Condizione temporale","Astrological":"Astronomico","Set state action":"Imposta l\'azione dello stato","Exec":"Execshell","HTTP Call":"Chiamata HTTP","Log text":"Testo del registro","Pause":"Pausa","on change":"sul cambiamento","control":"controllo","Say It":"Say It","every hour at 0 minutes":"ogni ora a 0 minuti","On script save or adapter start":"Al salvataggio dello script o all\'avvio dell\'adattatore","equal to":"uguale a","Actual time of day":"Ora effettiva della giornata","with":"con","Shell command":"Comando Shell","URL":"URL","Instance:":"Esempio:","Language:":"Linguaggio:","Volume":"Volume","Text:":"Testo:","undefined":"non definito","Default":"Predefinito","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"\xc8 possibile utilizzare %s nel testo per visualizzare il valore di trigger corrente, %id per utilizzare l\'ID dell\'oggetto attivato, %name per mostrare il nome dell\'ID dell\'oggetto attivato o %old per utilizzare il vecchio valore di trigger","Instructions":"Istruzioni","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"\xc8 possibile utilizzare %s nell\'URL per utilizzare il valore di trigger corrente, %id per utilizzare l\'ID dell\'oggetto attivato, %name per mostrare il nome dell\'ID dell\'oggetto attivato o %old per utilizzare il vecchio valore di trigger","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"\xc8 possibile utilizzare %s nel valore per utilizzare il valore di trigger corrente, %id per utilizzare l\'ID dell\'oggetto attivato, %name per mostrare il nome dell\'ID dell\'oggetto attivato o %old per utilizzare il vecchio valore di trigger","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"\xc8 possibile utilizzare %s nel comando per utilizzare il valore di trigger corrente, %id per utilizzare l\'ID dell\'oggetto attivato, %name per mostrare il nome dell\'ID dell\'oggetto attivato o %old per utilizzare il vecchio valore di trigger","every":"ogni","with offset":"con offset","on update":"in aggiornamento","update":"aggiornare","Triggers the rule periodically or on some specific time":"Attiva la regola periodicamente o in un momento specifico","Triggers the on script saving or the javascript instance restart":"Attiva il salvataggio dello script o il riavvio dell\'istanza javascript","Triggers the rule on update or change of some state":"Attiva la regola in caso di aggiornamento o modifica di uno stato","Compares the state value with user defined value":"Confronta il valore dello stato con il valore definito dall\'utente","Compares current time with the user specific time":"Confronta l\'ora corrente con l\'ora specifica dell\'utente","Compares current time with astrological event":"Confronta l\'ora corrente con l\'evento astronomico","Control or update some state":"Controlla o aggiorna uno stato","Executes some shell command":"Esegue alcuni comandi della shell","Make a HTTP get request":"Effettua una richiesta get HTTP","Print some text in log":"Stampa del testo nel registro","Make a pause between actions":"Fai una pausa tra le azioni","Say some text via sayit adapter":"Pronuncia del testo tramite l\'adattatore sayit","Telegram":"Telegramma","User:":"Utente:","all":"tutti","Sends message via telegram":"Invia messaggio tramite telegramma","Sends an email":"Invia un\'e-mail","Send email":"Invia una email","Sends message via pushover":"Invia messaggio tramite pushover","Pushover":"Pushover","Sends message via whatsapp-cmb":"Invia messaggio tramite whatsapp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"Invia messaggio tramite Pushsafer","Pushsafer":"Pushsafer","To:":"Per:","Subject:":"Soggetto:","Body:":"Corpo:","Title:":"Titolo:","Sound:":"Suono:","Priority:":"Priorit\xe0:","magic":"Magia","quiet":"silenzioso","normal":"normale","high-priority":"priorit\xe0 alta","acknowledgment":"riconoscimento","Phone:":"Telefono:","(optional)":"(opzionale)","Vibration:":"Vibrazione:","lowest priority":"priorit\xe0 pi\xf9 bassa","lower priority":"priorit\xe0 inferiore","normal priority":"priorit\xe0 normale","high priority":"priorit\xe0 alta","highest priority":"massima priorit\xe0","default":"predefinito","All":"Tutti","Write your own code":"Scrivi il tuo codice","User function":"Funzione utente","This is advances option. You can write your own code here and it will be executed on trigger":"Questa \xe8 un\'opzione anticipata. Puoi scrivere il tuo codice qui e verr\xe0 eseguito al trigger","greater than":"pi\xf9 grande di","offset":"compensare","Function":"Funzione","greater or equal to":"maggiore o uguale a","less or equal to":"minore o uguale a","less than":"meno di","not equal to":"non uguale a","[equal]":"[pari]","[greater or equal]":"[maggiore o uguale]","[greater]":"[maggiore]","[less or equal]":"[minore o uguale]","[less]":"[Di meno]","[not equal]":"[non uguale]","[includes]":"[include]","[hysteresis]":"[isteresi]","greater or equal":"maggiore o uguale","less or equal":"inferiore o uguale","includes":"include",".":".","()":"()","Mo":"Mo","Tu":"Tu","We":"3","Th":"4","Fr":"P","Sa":"Sa","Su":"Su","Control or update some state with delay":"Controlla o aggiorna uno stato con ritardo","Delay":"Ritardo","ms":"ms","Set with delay":"Impostato con ritardo","clear running":"chiara esecuzione","toggle value":"alterna valore","Any month":"Ogni mese","Any":"Qualunque","with date":"con data","Date":"Data","Month":"Mese","Januar":"Januar","Februar":"Februar","March ":"marzo","Condition":"Condizione","Limit":"Limite","The script will be stopped and must be activated manually after debugging. Continue?":"Lo script verr\xe0 interrotto e dovr\xe0 essere attivato manualmente dopo il debug. Continua?","Yes":"s\xec","Debug instance":"Istanza di debug","Resume execution":"Riprendi esecuzione","Go to next line":"Vai alla riga successiva","Step into function":"Entra in funzione","Step out from function":"Esci dalla funzione","Stop on exception":"Ferma in caso di eccezione","Console":"Console","Stack":"Stack","Pause execution":"Metti in pausa l\'esecuzione","Simulate":"Simulare","Trigger with value":"Trigger con valore","Value":"Valore","Write":"Scrivi","Ack":"Riconosciuto","Start":"Cominciare","Filter":"Filtro","Instances":"istanze","Triggered":"Innescato","Function: executed":"Funzione: eseguita","Operate two states":"Gestisci due stati","store in":"conservare in","ID1":"ID1","ID2":"ID2","Operations with two states":"Operazioni con due stati","debug_label":"Debug","debug_help":"Questa \xe8 una modalit\xe0 speciale in cui gli stati e gli oggetti non cambieranno. Ma nel protocollo verranno visualizzate solo le informazioni su ogni modifica pianificata.","verbose_label":"Output di log dettagliati","verbose_help":"Aggiunge l\'output di debug al registro per molti comandi di sistema","easy":"facile","for programmers":"per i programmatori","for professionals":"per i professionisti","Duplicate name":"Nome duplicato","Empty name is not allowed":"Il nome vuoto non \xe8 consentito","Astrological events today":"Eventi astrologici oggi","Show astrological events":"Mostra eventi astrologici","Time":"Tempo","Description":"Descrizione","nextSunrise":"Prossima alba","nextSunset":"Prossimo tramonto"}')},43573:function(e){e.exports=JSON.parse('{"-":"-","Add":"Toevoegen","Add new script":"Nieuw script toevoegen","All files will be accepted":"Alle bestanden worden geaccepteerd","April":"april","Are you sure?":"Weet je zeker dat?","August":"augustus","Blockly description":"Regels maken door grafische blokken","Cancel":"annuleren","Cannot delete non empty item!":"Kan niet leeg item niet verwijderen!","Change layout":"Opmaak veranderen","Check blocks":"Controleer blokken","Check is not active, because javascript adapter is disabled":"Controle is niet actief, omdat Javascript-adapter is uitgeschakeld","Clear search input":"Zoekopdracht wissen","Click on this icon":"Klik op dit pictogram","Close":"Dichtbij","Close all but current":"Alles sluiten behalve huidig","Collapse all":"Alles inklappen","Configuration not saved.":"Configuratie niet opgeslagen.","Convert blockly to javascript for ever.":"Converteer direct blockly naar Javascript.","Copy script":"Kopieer script","Copy to clipboard":"Kopieer naar klembord","Create new":"Maak nieuw","Create new folder":"Maak een nieuwe map","Create new script":"Maak een nieuw script","Create or edit CRON or time wizard":"Cre\xeber of bewerk CRON of tijdwizard","Dark Theme":"Donker thema","Dark style":"Donkere stijl","Debug options":"Foutopsporingsopties","December":"december","Define cron...":"Definieer cron ...","Define schedule...":"Definieer schema ...","Delete":"Verwijder","Delete %s":"%s verwijderen ...","Delete folder":"Verwijder map","Delete script":"Script verwijderen","Deselect all":"Deselecteer alles","Discard changes for %s":"Wijzigingen voor %s annuleren","Done":"Gedaan","Drop some files here or click...":"Zet hier enkele bestanden neer of klik op ...","Edit script or just double click":"Bewerk het script of dubbelklik erop","End search mode":"Zoekmodus be\xebindigen","Error":"Fout","Error was found":"Er is een fout gevonden","Existing scripts will be overwritten.":"Bestaande scripts worden overschreven.","Expand all":"Alles uitvouwen","Expert mode":"Expert modus","Export":"Exporteren","Export all scripts":"Exporteer alle scripts","Export blocks":"Blokken exporteren","Export selected blocks":"Exporteer geselecteerde blokken","February":"februari","Folder":"Map","Friday":"vrijdag","Function editor":"Functie-editor","ID":"ID kaart","Import":"Importeren","Import blocks":"Blokken importeren","Import error":"Importfout","Import scripts":"Scripts importeren","Insert object ID":"Object-ID invoegen","Instance":"Voorbeeld","Instance is disabled":"Exemplaar is uitgeschakeld","Invalid CRON":"Ongeldige CRON","It will not be possible to revert this operation.":"Het is niet mogelijk om deze bewerking terug te zetten.","JS description":"Regels maken door Javascript te schrijven","January":"januari","July":"juli","June":"juni","Learn More":"Leer meer","Light style":"Lichte stijl","Locate file":"Vind het bestand","Log outputs":"Log uitgangen","March":"maart","May":"mei","Menu":"Menu","Message":"Bericht","Monday":"maandag","Name":"Naam","No active host found":"Geen actieve host gevonden","November":"november","October":"oktober","Ok":"OK","On weekdays":"Op weekdagen","Pause script":"Pauzeer script","Please select object ID...":"Selecteer object-ID ...","Rename":"andere naam geven","Reorder scripts in folders":"Sorteer scripts in mappen opnieuw","Repeat":"Herhaling","Restart":"Herstarten","Root folder":"Hoofdmap","Run script":"Voer script uit","Saturday":"zaterdag","Save":"Opslaan","Script":"Script","Script %s was modified on disk":"Script %s is gewijzigd op schijf","Script is not running":"Script is niet actief","Search in scripts":"Zoeken in scripts","Search...":"Zoeken...","Select all":"Selecteer alles","September":"september","Show javascript code":"Javascript-code weergeven","Show only paused scripts":"Toon alleen onderbroken scripts","Show only running scripts":"Toon alleen actieve scripts","Show only scripts with problems":"Toon alleen scripts met problemen","Some files will be rejected":"Sommige bestanden worden geweigerd","Sunday":"zondag","TS description":"Regels maken door Typescript te schrijven","Thursday":"donderdag","Tuesday":"dinsdag","Unknown error":"Onbekende fout","Unknown error!":"Onbekende fout!","Wednesday":"woensdag","Yet exists!":"Toch bestaat!","copy":"kopi\xebren","file reading has failed: %s":"bestands lezen is mislukt: %s","file reading was aborted":"bestands lezen is afgebroken","filter_func":"Functie","filter_id":"ID kaart","filter_name":"Naam","filter_role":"Rol","filter_room":"Kamer","for edit or create script":"voor bewerken of een nieuw script maken","no blocks found":"Geen blokken gevonden","no group":"GEEN GROEP","not properly connected":"Dit blok is niet correct verbonden met andere blokken.","tooltip_ack":"Erkennen","tooltip_from":"Van","tooltip_lc":"Laatst gewijzigd","tooltip_quality":"Kwaliteit","tooltip_ts":"tijdstempel","tooltip_user":"Gebruiker","tooltip_value":"Waarde","use seconds":"gebruik seconden","Save all":"Sla alles op","Change theme (actual \\"%s\\")":"Thema wijzigen (nu - \\"%s\\")","Hide logs":"Verberg logboeken","Show logs":"Toon logboeken","Rules description":"Maak regels met IF, THEN, ELSE blokken","help_on_change":"De code wordt alleen uitgevoerd als het conditieresultaat verandert. Bijv. als de temperatuursensor wordt geactiveerd en de conditie is \\"als de temperatuur hoger is dan 20 \xb0 C\\", worden de \\"dan\\" -acties eenmaal uitgevoerd wanneer de temperatuur hoger is dan 20. De volgende keer worden de \\"dan\\" -acties uitgevoerd wanneer de temperatuur faalt onder de 20 en stijgt dan weer boven de 20.","help_just_check":"De code wordt alleen uitgevoerd als de voorwaarde waar is. Bijv. als het triggeren op de temperatuursensorwaarde en de conditie is \\"als de temperatuur hoger is dan 20 \xb0 C\\", zullen de \\"dan\\" acties worden uitgevoerd elke keer dat de sensor de temperatuur verzendt en deze hoger is dan 20 \xb0 C. Bij 21 \xb0 C, bij 22 \xb0 C enzovoort.","On condition change":"Op voorwaarde verandering","Just check":"Kijk maar","when":"wanneer","and":"en","then":"vervolgens","or":"of","else":"anders","Nothing found":"Niets gevonden","reset search":"reset zoeken","Read only ID selected: %s":"Alleen-lezen ID geselecteerd: %s","OK":"OK","Triggers":"Triggers","cron":"cron","wizard":"tovenaar","interval":"interval","at":"Bij","astro":"astro","on condition change":"op voorwaarde verandering","just check":"kijk maar","Explanation":"Uitleg","seconds":"seconden","minutes":"minuten","hours":"uren","Every day":"Elke dag","milliseconds":"milliseconden","Copied":"Gekopieerd","nadir":"nadir","nightEnd":"Einde van de nacht","nauticalDawn":"Nautische dageraad","dawn":"dageraad","sunrise":"zonsopkomst","sunriseEnd":"Einde zonsopgang","goldenHourEnd":"Einde van gouden uur","solarNoon":"Zonne-middag","goldenHour":"gouden uur","sunsetStart":"Begin van de zonsondergang","sunset":"zonsondergang","dusk":"schemer","nauticalDusk":"Nautische schemering","night":"nacht","one":"een","two":"twee","true":"waar","false":"false","search":"zoeken","Actions":"Acties","Conditions":"Voorwaarden","Schedule":"Schema","Start script":"Start het script","State":"Staat","State condition":"Staat staat","Time condition":"Tijdsvoorwaarde","Astrological":"Astronomisch","Set state action":"Stel statusactie in","Exec":"Exec shell","HTTP Call":"HTTP-oproep","Log text":"Log tekst","Pause":"Pauze","on change":"bij verandering","control":"controle","Say It":"Say It","every hour at 0 minutes":"elk uur op 0 minuten","On script save or adapter start":"Bij het opslaan van het script of het starten van de adapter","equal to":"gelijk aan","Actual time of day":"Werkelijke tijd van de dag","with":"met","Shell command":"Shell-opdracht","URL":"URL","Instance:":"Voorbeeld:","Language:":"Taal:","Volume":"Volume","Text:":"Tekst:","undefined":"ongedefinieerd","Default":"Standaard","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"U kunt %s in de tekst gebruiken om de huidige triggerwaarde weer te geven, %id om de geactiveerde object-ID te gebruiken, %name om de geactiveerde object-ID-naam weer te geven of %old om de oude triggerwaarde te gebruiken","Instructions":"Instructies","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"U kunt %s in de URL gebruiken om de huidige triggerwaarde te gebruiken, %id om de geactiveerde object-ID te gebruiken, %name om de geactiveerde object-ID-naam te tonen of %old om de oude triggerwaarde te gebruiken","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"U kunt %s in de waarde gebruiken om de huidige triggerwaarde te gebruiken, %id om de geactiveerde object-ID te gebruiken, %name om de geactiveerde object-ID-naam te tonen of %old om de oude triggerwaarde te gebruiken","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"U kunt %s in de opdracht gebruiken om de huidige triggerwaarde te gebruiken, %id om de getriggerde object-ID te gebruiken, %name om de getriggerde object-ID-naam te tonen of %old om de oude triggerwaarde te gebruiken","every":"elke","with offset":"met offset","on update":"bij update","update":"bijwerken","Triggers the rule periodically or on some specific time":"Activeert de regel periodiek of op een specifieke tijd","Triggers the on script saving or the javascript instance restart":"Activeert het opslaan van het script of het opnieuw opstarten van de JavaScript-instantie","Triggers the rule on update or change of some state":"Activeert de regel voor het bijwerken of wijzigen van een bepaalde staat","Compares the state value with user defined value":"Vergelijkt de statuswaarde met de door de gebruiker gedefinieerde waarde","Compares current time with the user specific time":"Vergelijkt de huidige tijd met de gebruikerspecifieke tijd","Compares current time with astrological event":"Vergelijkt de huidige tijd met een astronomische gebeurtenis","Control or update some state":"Beheer of update een bepaalde staat","Executes some shell command":"Voert een shell-commando uit","Make a HTTP get request":"Maak een HTTP-ophaalverzoek","Print some text in log":"Druk wat tekst af in het logboek","Make a pause between actions":"Pauzeer tussen acties","Say some text via sayit adapter":"Zeg wat tekst via de sayit-adapter","Telegram":"Telegram","User:":"Gebruiker:","all":"alle","Sends message via telegram":"Verzendt bericht via telegram","Sends an email":"Stuurt een e-mail","Send email":"E-mail verzenden","Sends message via pushover":"Stuurt bericht via pushover","Pushover":"Pushover","Sends message via whatsapp-cmb":"Stuurt bericht via whatsapp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"Stuurt bericht via Pushsafer","Pushsafer":"Duwijzer","To:":"Naar:","Subject:":"Onderwerpen:","Body:":"Lichaam:","Title:":"Titel:","Sound:":"Geluid:","Priority:":"Prioriteit:","magic":"magie","quiet":"stil","normal":"normaal","high-priority":"hoge prioriteit","acknowledgment":"erkenning","Phone:":"Telefoon:","(optional)":"(optioneel)","Vibration:":"Trilling:","lowest priority":"laagste prioriteit","lower priority":"lagere prioriteit","normal priority":"normale prioriteit","high priority":"hoge prioriteit","highest priority":"hoogste prioriteit","default":"standaard","All":"Alle","Write your own code":"Schrijf je eigen code","User function":"Gebruikersfunctie","This is advances option. You can write your own code here and it will be executed on trigger":"Dit is een voorschotoptie. U kunt hier uw eigen code schrijven en deze wordt bij een trigger uitgevoerd","greater than":"groter dan","offset":"compensatie","Function":"Functie","greater or equal to":"groter of gelijk aan","less or equal to":"minder of gelijk aan","less than":"minder dan","not equal to":"niet gelijk aan","[equal]":"[Gelijk]","[greater or equal]":"[groter of gelijk]","[greater]":"[groter]","[less or equal]":"[minder of gelijk]","[less]":"[minder]","[not equal]":"[niet gelijk]","[includes]":"[inclusief]","[hysteresis]":"[hysterese]","greater or equal":"groter of gelijk","less or equal":"minder of gelijk","includes":"omvat",".":".","()":"()","Mo":"Ma","Tu":"Di","We":"3","Th":"4","Fr":"Vr","Sa":"Za","Su":"Zo","Control or update some state with delay":"Beheer of update een bepaalde staat met vertraging","Delay":"Vertraging","ms":"ms","Set with delay":"Met vertraging ingesteld","clear running":"duidelijk rennen","toggle value":"schakelwaarde","Any month":"Elke maand","Any":"Ieder","with date":"met datum","Date":"Datum","Month":"Maand","Januar":"Januar","Februar":"Februari","March ":"maart","Condition":"Staat","Limit":"Begrenzing","The script will be stopped and must be activated manually after debugging. Continue?":"Het script wordt gestopt en moet na het debuggen handmatig worden geactiveerd. Doorgaan met?","Yes":"Ja","Debug instance":"Debug-instantie","Resume execution":"Uitvoering hervatten","Go to next line":"Ga naar de volgende regel","Step into function":"Stap in functie","Step out from function":"Stap uit de functie","Stop on exception":"Stop bij uitzondering","Console":"Troosten","Stack":"Stack","Pause execution":"Uitvoering pauzeren","Simulate":"Simuleren","Trigger with value":"Trigger met waarde","Value":"Waarde","Write":"Schrijven","Ack":"Erkend","Start":"Begin","Filter":"Filter","Instances":"Instanties","Triggered":"Veroorzaakt","Function: executed":"Functie: uitgevoerd","Operate two states":"Bedien twee toestanden:","store in":"opslaan in","ID1":"ID1","ID2":"ID2","Operations with two states":"Bewerkingen met twee toestanden","debug_label":"Debuggen","debug_help":"Dit is een speciale modus waarin toestanden en objecten niet veranderen. Maar alleen informatie over elke geplande wijziging wordt in het protocol weergegeven.","verbose_label":"Uitgebreide log-uitgangen","verbose_help":"Voegt foutopsporingsuitvoer toe aan het logboek voor veel systeemopdrachten","easy":"eenvoudig","for programmers":"voor programmeurs","for professionals":"voor professionals","Duplicate name":"Dubbele naam","Empty name is not allowed":"Lege naam is niet toegestaan","Astrological events today":"Astrologische gebeurtenissen vandaag","Show astrological events":"Laat astrologische gebeurtenissen zien","Time":"Tijd","Description":"Beschrijving","nextSunrise":"Volgende zonsopgang","nextSunset":"Volgende zonsondergang"}')},28130:function(e){e.exports=JSON.parse('{"-":"-","Add":"Dodaj","Add new script":"Dodaj nowy skrypt","All files will be accepted":"Wszystkie pliki zostan\u0105 zaakceptowane","April":"kwiecie\u0144","Are you sure?":"Jeste\u015b pewny?","August":"sierpie\u0144","Blockly description":"Tworzenie regu\u0142 za pomoc\u0105 blok\xf3w graficznych","Cancel":"Anuluj","Cannot delete non empty item!":"Nie mo\u017cna usun\u0105\u0107 niepustego elementu!","Change layout":"Zmiana uk\u0142adu","Check blocks":"Sprawd\u017a bloki","Check is not active, because javascript adapter is disabled":"Sprawdzanie nie jest aktywne, poniewa\u017c adapter Javascript jest wy\u0142\u0105czony","Clear search input":"Wyczy\u015b\u0107 dane wyszukiwania","Click on this icon":"Kliknij t\u0119 ikon\u0119","Close":"Blisko","Close all but current":"Zamknij wszystkie opr\xf3cz bie\u017c\u0105cych","Collapse all":"Zwin\u0105\u0107 wszystkie","Configuration not saved.":"Konfiguracja nie zosta\u0142a zapisana.","Convert blockly to javascript for ever.":"Natychmiastowa konwersja blokowa do Javascript.","Copy script":"Skopiuj skrypt","Copy to clipboard":"Skopiuj do schowka","Create new":"Tworzy\u0107 nowe","Create new folder":"Stw\xf3rz nowy folder","Create new script":"Utw\xf3rz nowy skrypt","Create or edit CRON or time wizard":"Utw\xf3rz lub edytuj CRON lub kreator czasu","Dark Theme":"ciemny schemat","Dark style":"Ciemny styl","Debug options":"Opcje debugowania","December":"grudzie\u0144","Define cron...":"Zdefiniuj cron ...","Define schedule...":"Zdefiniuj harmonogram ...","Delete":"Usun\u0105\u0107","Delete %s":"Usu\u0144 %s ...","Delete folder":"Usuni\u0119ty folder","Delete script":"Usu\u0144 skrypt","Deselect all":"Odznacz wszystkie","Discard changes for %s":"Odrzu\u0107 zmiany dla %s","Done":"Gotowy","Drop some files here or click...":"Upu\u015b\u0107 niekt\xf3re pliki tutaj lub kliknij ...","Edit script or just double click":"Edytuj skrypt lub po prostu kliknij dwukrotnie","End search mode":"Zako\u0144cz tryb wyszukiwania","Error":"B\u0142\u0105d","Error was found":"B\u0142\u0105d zosta\u0142 znaleziony","Existing scripts will be overwritten.":"Istniej\u0105ce skrypty zostan\u0105 zast\u0105pione.","Expand all":"Rozwi\u0144 wszystkie","Expert mode":"Tryb ekspercki","Export":"Eksport","Export all scripts":"Wyeksportuj wszystkie skrypty","Export blocks":"Eksportuj bloki","Export selected blocks":"Eksportuj wybrane bloki","February":"luty","Folder":"Teczka","Friday":"pi\u0105tek","Function editor":"Edytor funkcji","ID":"ID","Import":"Import","Import blocks":"Importuj bloki","Import error":"B\u0142\u0105d importowania","Import scripts":"Importuj skrypty","Insert object ID":"Wstaw identyfikator obiektu","Instance":"Instancja","Instance is disabled":"Instancja jest wy\u0142\u0105czona","Invalid CRON":"Nieprawid\u0142owy CRON","It will not be possible to revert this operation.":"Cofni\u0119cie tej operacji nie b\u0119dzie mo\u017cliwe.","JS description":"Tworzenie regu\u0142 przez pisanie Javascript","January":"stycze\u0144","July":"lipiec","June":"czerwiec","Learn More":"Ucz si\u0119 wi\u0119cej","Light style":"Lekki styl","Locate file":"Znajd\u017a plik","Log outputs":"Dane wyj\u015bciowe dziennika","March":"Marsz","May":"Mo\u017ce","Menu":"Menu","Message":"Wiadomo\u015b\u0107","Monday":"poniedzia\u0142ek","Name":"Imi\u0119","No active host found":"Nie znaleziono aktywnego hosta","November":"listopad","October":"pa\u017adziernik","Ok":"Dobrze","On weekdays":"W dni powszednie","Pause script":"Wstrzymaj skrypt","Please select object ID...":"Wybierz identyfikator obiektu ...","Rename":"Przemianowa\u0107","Reorder scripts in folders":"Zmie\u0144 kolejno\u015b\u0107 skrypt\xf3w w folderach","Repeat":"Powtarza\u0107","Restart":"Uruchom ponownie","Root folder":"Folder g\u0142\xf3wny","Run script":"Uruchom skrypt","Saturday":"sobota","Save":"Zapisz","Script":"Scenariusz","Script %s was modified on disk":"Skrypt %s zosta\u0142 zmodyfikowany na dysku","Script is not running":"Skrypt nie dzia\u0142a","Search in scripts":"Szukaj w skryptach","Search...":"Szukaj...","Select all":"Zaznacz wszystko","September":"wrzesie\u0144","Show javascript code":"Poka\u017c kod JavaScript","Show only paused scripts":"Poka\u017c tylko wstrzymane skrypty","Show only running scripts":"Poka\u017c tylko dzia\u0142aj\u0105ce skrypty","Show only scripts with problems":"Poka\u017c tylko skrypty z problemami","Some files will be rejected":"Niekt\xf3re pliki zostan\u0105 odrzucone","Sunday":"niedziela","TS description":"Tworzenie regu\u0142 przez pisanie maszynopisu","Thursday":"czwartek","Tuesday":"wtorek","Unknown error":"Nieznany b\u0142\u0105d","Unknown error!":"Nieznany b\u0142\u0105d!","Wednesday":"\u015broda","Yet exists!":"A jednak istnieje!","copy":"Kopiuj","file reading has failed: %s":"odczyt pliku nie powi\xf3d\u0142 si\u0119: %s","file reading was aborted":"odczyt pliku zosta\u0142 przerwany","filter_func":"Funkcjonowa\u0107","filter_id":"ID","filter_name":"Imi\u0119","filter_role":"Rola","filter_room":"Pok\xf3j","for edit or create script":"do edycji lub utw\xf3rz nowy skrypt","no blocks found":"Nie znaleziono blok\xf3w","no group":"BRAK GRUPY","not properly connected":"Ten blok nie jest poprawnie pod\u0142\u0105czony do innych blok\xf3w.","tooltip_ack":"Uzna\u0107","tooltip_from":"Od","tooltip_lc":"Ostatnia zmiana","tooltip_quality":"Jako\u015b\u0107","tooltip_ts":"Znak czasu","tooltip_user":"U\u017cytkownik","tooltip_value":"Warto\u015b\u0107","use seconds":"u\u017cyj sekund","Save all":"Zapisz wszystko","Change theme (actual \\"%s\\")":"Zmie\u0144 motyw (teraz - \u201e%s\u201d)","Hide logs":"Ukryj dzienniki","Show logs":"Poka\u017c dzienniki","Rules description":"Tw\xf3rz regu\u0142y z blokami IF, THEN, ELSE","help_on_change":"Kod zostanie wykonany tylko wtedy, gdy wynik warunku ulegnie zmianie. Na przyk\u0142ad. je\u015bli wyzwalanie na warto\u015b\u0107 czujnika temperatury i warunek \u201eje\u015bli temperatura jest wy\u017csza ni\u017c 20 \xb0 C\u201d, to akcje \u201eto\u201d zostan\u0105 wykonane raz, gdy temperatura przekroczy 20. Nast\u0119pnym razem dzia\u0142ania \u201eto\u201d zostan\u0105 wykonane, gdy temperatura nie udaje si\u0119 poni\u017cej 20, a nast\u0119pnie ponownie wzrasta powy\u017cej 20.","help_just_check":"Kod zostanie wykonany tylko za ka\u017cdym razem, gdy warunek b\u0119dzie spe\u0142niony. Na przyk\u0142ad. je\u015bli wyzwalanie na warto\u015b\u0107 czujnika temperatury i warunek to \u201eje\u015bli temperatura jest wy\u017csza ni\u017c 20 \xb0 C\u201d, to dzia\u0142ania \u201eto\u201d b\u0119d\u0105 wykonywane za ka\u017cdym razem, gdy czujnik wy\u015ble temperatur\u0119 i jest powy\u017cej 20 \xb0 C. O 21 \xb0 C, o 22 \xb0 C i tak dalej.","On condition change":"W przypadku zmiany warunk\xf3w","Just check":"Po prostu sprawd\u017a","when":"gdy","and":"i","then":"nast\u0119pnie","or":"lub","else":"jeszcze","Nothing found":"Nic nie znaleziono","reset search":"zresetuj wyszukiwanie","Read only ID selected: %s":"Wybrano identyfikator tylko do odczytu: %s","OK":"OK","Triggers":"Wyzwalacze","cron":"CRON","wizard":"Wizard","interval":"interwa\u0142","at":"w","astro":"astro","on condition change":"pod warunkiem zmiany warunk\xf3w","just check":"po prostu sprawd\u017a","Explanation":"Wyja\u015bnienie","seconds":"sekundy","minutes":"minuty","hours":"godziny","Every day":"Codziennie","milliseconds":"milisekund","Copied":"Skopiowano","nadir":"nadir","nightEnd":"Koniec nocy","nauticalDawn":"\u017beglarski \u015bwit","dawn":"\u015bwit","sunrise":"wsch\xf3d s\u0142o\u0144ca","sunriseEnd":"Koniec wschodu s\u0142o\u0144ca","goldenHourEnd":"Koniec z\u0142otej godziny","solarNoon":"Po\u0142udnie s\u0142oneczne","goldenHour":"z\u0142ota godzina","sunsetStart":"Pocz\u0105tek zachodu s\u0142o\u0144ca","sunset":"zach\xf3d s\u0142o\u0144ca","dusk":"zmierzch","nauticalDusk":"\u017beglarski zmierzch","night":"Noc","one":"jeden","two":"dwa","true":"prawdziwe","false":"fa\u0142szywy","search":"Szukaj","Actions":"dzia\u0142ania","Conditions":"Warunki","Schedule":"Harmonogram","Start script":"Uruchom skrypt","State":"Stan","State condition":"Stan stanu","Time condition":"Warunek czasowy","Astrological":"Astronomiczny","Set state action":"Ustaw stan dzia\u0142ania","Exec":"Exec shell","HTTP Call":"Po\u0142\u0105czenie HTTP","Log text":"Tekst dziennika","Pause":"Pauza","on change":"na zmian\u0119","control":"kontrola","Say It":"Say It","every hour at 0 minutes":"co godzin\u0119 po 0 minutach","On script save or adapter start":"Podczas zapisywania skryptu lub uruchamiania adaptera","equal to":"r\xf3wny","Actual time of day":"Rzeczywista pora dnia","with":"z","Shell command":"Polecenie pow\u0142oki","URL":"URL","Instance:":"Instancja:","Language:":"J\u0119zyk:","Volume":"Tom","Text:":"Tekst:","undefined":"nieokre\u015blony","Default":"Domy\u015blna","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"Mo\u017cesz u\u017cy\u0107 %s w tek\u015bcie, aby wy\u015bwietli\u0107 aktualn\u0105 warto\u015b\u0107 wyzwalaj\u0105c\u0105, %id, aby u\u017cy\u0107 identyfikatora wyzwolonego obiektu, %name, aby wy\u015bwietli\u0107 nazw\u0119 identyfikatora wyzwolonego obiektu lub %old, aby u\u017cy\u0107 starej warto\u015bci wyzwalaj\u0105cej","Instructions":"Instrukcje","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"Mo\u017cesz u\u017cy\u0107 %s w adresie URL, aby u\u017cy\u0107 bie\u017c\u0105cej warto\u015bci wyzwalacza, %id, aby u\u017cy\u0107 wyzwalanego identyfikatora obiektu, %name, aby wy\u015bwietli\u0107 nazw\u0119 identyfikatora wyzwalanego obiektu, lub %old, aby u\u017cy\u0107 starej warto\u015bci wyzwalacza","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"Mo\u017cesz u\u017cy\u0107 %s w warto\u015bci, aby u\u017cy\u0107 bie\u017c\u0105cej warto\u015bci wyzwalacza, %id, aby u\u017cy\u0107 identyfikatora wyzwalanego obiektu, %name, aby wy\u015bwietli\u0107 nazw\u0119 identyfikatora wyzwalanego obiektu, lub %old, aby u\u017cy\u0107 starej warto\u015bci wyzwalacza","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"Mo\u017cesz u\u017cy\u0107 %s w poleceniu, aby u\u017cy\u0107 bie\u017c\u0105cej warto\u015bci wyzwalaj\u0105cej, %id, aby u\u017cy\u0107 identyfikatora wyzwalanego obiektu, %name, aby wy\u015bwietli\u0107 nazw\u0119 identyfikatora wyzwalanego obiektu, lub %old, aby u\u017cy\u0107 starej warto\u015bci wyzwalaj\u0105cej","every":"ka\u017cdy","with offset":"z przesuni\u0119ciem","on update":"po aktualizacji","update":"aktualizacja","Triggers the rule periodically or on some specific time":"Uruchamia regu\u0142\u0119 okresowo lub w okre\u015blonym czasie","Triggers the on script saving or the javascript instance restart":"Uruchamia zapisywanie skryptu lub restart instancji javascript","Triggers the rule on update or change of some state":"Uruchamia regu\u0142\u0119 przy aktualizacji lub zmianie jakiego\u015b stanu","Compares the state value with user defined value":"Por\xf3wnuje warto\u015b\u0107 stanu z warto\u015bci\u0105 zdefiniowan\u0105 przez u\u017cytkownika","Compares current time with the user specific time":"Por\xf3wnuje aktualny czas z czasem okre\u015blonym przez u\u017cytkownika","Compares current time with astrological event":"Por\xf3wnuje aktualny czas z wydarzeniem astronomicznym","Control or update some state":"Kontroluj lub aktualizuj stan","Executes some shell command":"Wykonuje polecenie pow\u0142oki","Make a HTTP get request":"Z\u0142\xf3\u017c \u017c\u0105danie HTTP get","Print some text in log":"Wydrukuj tekst w dzienniku","Make a pause between actions":"Zr\xf3b przerw\u0119 mi\u0119dzy czynno\u015bciami","Say some text via sayit adapter":"Powiedz tekst przez adapter Sayit","Telegram":"Telegram","User:":"U\u017cytkownik:","all":"wszystko","Sends message via telegram":"Wysy\u0142a wiadomo\u015b\u0107 telegramem","Sends an email":"Wysy\u0142a e-mail","Send email":"Wys\u0142a\u0107 email","Sends message via pushover":"Wysy\u0142a wiadomo\u015b\u0107 przez pushover","Pushover":"\u0141atwizna","Sends message via whatsapp-cmb":"Wysy\u0142a wiadomo\u015b\u0107 przez WhatsApp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"Wysy\u0142a wiadomo\u015b\u0107 przez Pushsafer","Pushsafer":"Pushsafer","To:":"Do:","Subject:":"Przedmiot:","Body:":"Cia\u0142o:","Title:":"Tytu\u0142:","Sound:":"D\u017awi\u0119k:","Priority:":"Priorytet:","magic":"magia","quiet":"cichy","normal":"normalna","high-priority":"wysoki priorytet","acknowledgment":"potwierdzenie","Phone:":"Telefon:","(optional)":"(opcjonalny)","Vibration:":"Wibracja:","lowest priority":"najni\u017cszy priorytet","lower priority":"ni\u017cszy priorytet","normal priority":"normalny priorytet","high priority":"wysoki priorytet","highest priority":"najwy\u017cszy priorytet","default":"domy\u015blna","All":"Wszystko","Write your own code":"Napisz sw\xf3j w\u0142asny kod","User function":"Funkcja u\u017cytkownika","This is advances option. You can write your own code here and it will be executed on trigger":"To jest opcja zaawansowana. Mo\u017cesz tutaj napisa\u0107 w\u0142asny kod, kt\xf3ry zostanie wykonany po wyzwoleniu","greater than":"Lepszy ni\u017c","offset":"offsetowy","Function":"Funkcjonowa\u0107","greater or equal to":"wi\u0119ksze lub r\xf3wne","less or equal to":"mniejszy lub r\xf3wny","less than":"mniej ni\u017c","not equal to":"nie r\xf3wna si\u0119","[equal]":"[r\xf3wny]","[greater or equal]":"[wi\u0119ksze lub r\xf3wne]","[greater]":"[wi\u0119kszy]","[less or equal]":"[mniejszy lub r\xf3wny]","[less]":"[mniej]","[not equal]":"[nie r\xf3wne]","[includes]":"[obejmuje]","[hysteresis]":"[histereza]","greater or equal":"wi\u0119ksze lub r\xf3wne","less or equal":"mniejszy lub r\xf3wny","includes":"zawiera",".":".","()":"()","Mo":"Mo","Tu":"Tu","We":"3","Th":"4","Fr":"Ks","Sa":"Sa","Su":"Su","Control or update some state with delay":"Kontroluj lub aktualizuj jaki\u015b stan z op\xf3\u017anieniem","Delay":"Op\xf3\u017anienie","ms":"ms","Set with delay":"Ustaw z op\xf3\u017anieniem","clear running":"czysty bieg","toggle value":"warto\u015b\u0107 prze\u0142\u0105czania","Any month":"Dowolny miesi\u0105c","Any":"Ka\u017cdy","with date":"z dat\u0105","Date":"Data","Month":"Miesi\u0105c","Januar":"Januar","Februar":"Februar","March ":"Marzec ","Condition":"Stan: schorzenie","Limit":"Limit","The script will be stopped and must be activated manually after debugging. Continue?":"Skrypt zostanie zatrzymany i nale\u017cy go aktywowa\u0107 r\u0119cznie po debugowaniu. Kontyntynuj?","Yes":"tak","Debug instance":"Debuguj instancj\u0119","Resume execution":"Wzn\xf3w wykonanie","Go to next line":"Przejd\u017a do nast\u0119pnej linii","Step into function":"Wejd\u017a do funkcji","Step out from function":"Wyjd\u017a z funkcji","Stop on exception":"Zatrzymaj si\u0119 na wyj\u0105tku","Console":"Konsola","Stack":"Stack","Pause execution":"Wstrzymaj wykonanie","Simulate":"Symulowa\u0107","Trigger with value":"Wyzwalacz z warto\u015bci\u0105","Value":"Warto\u015b\u0107","Write":"Pisa\u0107","Ack":"Potwierdzony","Start":"Pocz\u0105tek","Filter":"Filtr","Instances":"Instancje","Triggered":"Rozsierdzony","Function: executed":"Funkcja: wykonywana","Operate two states":"Obs\u0142uguj dwa stany","store in":"przechowywa\u0107","ID1":"ID1","ID2":"ID2","Operations with two states":"Operacje z dwoma stanami","debug_label":"Odpluskwi\u0107","debug_help":"Jest to specjalny tryb, w kt\xf3rym stany i obiekty si\u0119 nie zmieniaj\u0105. Jednak w protokole b\u0119d\u0105 wy\u015bwietlane tylko informacje o ka\u017cdej planowanej zmianie.","verbose_label":"Pe\u0142ne dane wyj\u015bciowe dziennika","verbose_help":"Dodaje wyniki debugowania do dziennika dla wielu polece\u0144 systemowych","easy":"\u0142atwy","for programmers":"dla programist\xf3w","for professionals":"dla profesjonalist\xf3w","Duplicate name":"Duplikat nazwy","Empty name is not allowed":"Pusta nazwa jest niedozwolona","Astrological events today":"Dzisiejsze wydarzenia astrologiczne","Show astrological events":"Poka\u017c wydarzenia astrologiczne","Time":"Czas","Description":"Opis","nextSunrise":"Nast\u0119pny wsch\xf3d s\u0142o\u0144ca","nextSunset":"Nast\u0119pny zach\xf3d s\u0142o\u0144ca"}')},65909:function(e){e.exports=JSON.parse('{"-":"-","Add":"Adicionar","Add new script":"Adicionar novo script","All files will be accepted":"Todos os arquivos ser\xe3o aceitos","April":"abril","Are you sure?":"Voc\xea tem certeza?","August":"agosto","Blockly description":"Criando regras por blocos gr\xe1ficos","Cancel":"Cancelar","Cannot delete non empty item!":"N\xe3o pode ser deletar, porque n\xe3o est\xe1 vazio!","Change layout":"Alterar layout","Check blocks":"Verificar blocos","Check is not active, because javascript adapter is disabled":"A verifica\xe7\xe3o de sintaxe n\xe3o est\xe1 ativa porque o adaptador javascript n\xe3o est\xe1 rodando.","Clear search input":"Limpar entrada de pesquisa","Click on this icon":"Clique neste \xedcone","Close":"Fechar","Close all but current":"Fechar tudo, menos atual","Collapse all":"Recolher todos","Configuration not saved.":"Configura\xe7\xe3o n\xe3o esta salva.","Convert blockly to javascript for ever.":"Converter Blockly em Javascript permanentemente.","Copy script":"Copiar script","Copy to clipboard":"Copiar para \xe1rea de transfer\xeancia","Create new":"Crie um novo","Create new folder":"Criar nova pasta","Create new script":"Criar novo script","Create or edit CRON or time wizard":"Criar ou editar o assistente cron ou o assistente de hor\xe1rio","Dark Theme":"Layout escuro","Dark style":"Estilo escuro","Debug options":"Op\xe7\xf5es de depura\xe7\xe3o","December":"dezembro","Define cron...":"Definir cron...","Define schedule...":"Definir agendamento ...","Delete":"Deletar","Delete %s":"Deletar %s...","Delete folder":"Deletar pasta","Delete script":"Deletar script","Deselect all":"Desmarcar todos","Discard changes for %s":"Descartar altera\xe7\xf5es para %s","Done":"Pronto","Drop some files here or click...":"Solte alguns arquivos aqui ou clique em...","Edit script or just double click":"Edite o script ou clique duas vezes","End search mode":"Finalizar modo de pesquisa","Error":"Erro","Error was found":"Erro foi encontrado","Existing scripts will be overwritten.":"Os scripts existentes ser\xe3o substitu\xeddos.","Expand all":"Expandir todos","Expert mode":"Modo de especialista","Export":"Exporta\xe7\xe3o","Export all scripts":"Exportar todos os scripts","Export blocks":"Exportar blocos","Export selected blocks":"Exportar blocos selecionados","February":"fevereiro","Folder":"Pasta","Friday":"Sexta-feira","Function editor":"Editor de fun\xe7\xf5es","ID":"ID","Import":"Importar","Import blocks":"Importar blocos","Import error":"Erro de importa\xe7\xe3o","Import scripts":"Importar script","Insert object ID":"Inserir ID do objeto","Instance":"Inst\xe2ncia","Instance is disabled":"Inst\xe2ncia est\xe1 desativada","Invalid CRON":"CRON inv\xe1lido","It will not be possible to revert this operation.":"N\xe3o ser\xe1 poss\xedvel reverter esta opera\xe7\xe3o.","JS description":"Criando regras escrevendo Javascript","January":"janeiro","July":"julho","June":"junho","Learn More":"Aprender mais","Light style":"Estilo claro","Locate file":"Localize o arquivo","Log outputs":"Sa\xeddas de log","March":"mar\xe7o","May":"maio","Menu":"Menu","Message":"mensagem","Monday":"Segunda-feira","Name":"Nome","No active host found":"Nenhum host ativo encontrado","November":"novembro","October":"outubro","Ok":"Ok","On weekdays":"Nos dias \xfateis","Pause script":"Pausar script","Please select object ID...":"Selecione o ID do objeto...","Rename":"Renomear","Reorder scripts in folders":"Reordenar scripts em pastas","Repeat":"Repetir","Restart":"Reiniciar","Root folder":"Pasta principal","Run script":"Executar script","Saturday":"S\xe1bado","Save":"Salve","Script":"Script","Script %s was modified on disk":"O script \\"%s\\" foi modificado no disco r\xedgido","Script is not running":"Script n\xe3o est\xe1 sendo executado","Search in scripts":"Pesquisa em scripts","Search...":"Procurar...","Select all":"Selecionar tudo","September":"setembro","Show javascript code":"Mostrar c\xf3digo Javascript","Show only paused scripts":"Mostrar apenas scripts pausados","Show only running scripts":"Mostrar apenas scripts em execu\xe7\xe3o","Show only scripts with problems":"Mostrar apenas scripts com problemas","Some files will be rejected":"Alguns arquivos ser\xe3o rejeitados","Sunday":"Domingo","TS description":"Criando regras escrevendo Typecript","Thursday":"Quinta-feira","Tuesday":"ter\xe7a","Unknown error":"Erro desconhecido","Unknown error!":"Erro desconhecido!","Wednesday":"quarta","Yet exists!":"Ainda existe!","copy":"copiar","file reading has failed: %s":"a leitura do arquivo falhou: %s","file reading was aborted":"a leitura do arquivo foi abortada","filter_func":"Fun\xe7\xe3o","filter_id":"ID","filter_name":"Nome","filter_role":"Tipo","filter_room":"Quarto","for edit or create script":"para editar ou criar um novo script","no blocks found":"Nenhum bloco encontrado","no group":"SEM GRUPO","not properly connected":"Este bloco n\xe3o est\xe1 conectado corretamente com outros blocos.","tooltip_ack":"reconhecer","tooltip_from":"de","tooltip_lc":"\xdaltima altera\xe7\xe3o","tooltip_quality":"Qualidade","tooltip_ts":"timestamp","tooltip_user":"usu\xe1rio","tooltip_value":"valor","use seconds":"use segundos","Save all":"Salvar tudo","Change theme (actual \\"%s\\")":"Alterar tema (agora - \\"%s\\")","Hide logs":"Ocultar logs","Show logs":"Mostrar logs","Rules description":"Crie regras com blocos IF, THEN, ELSE","help_on_change":"O c\xf3digo ser\xe1 executado apenas se o resultado da condi\xe7\xe3o mudar. Por exemplo. se disparar no valor do sensor de temperatura e a condi\xe7\xe3o for \\"se a temperatura for maior que 20 \xb0 C\\", as a\xe7\xf5es \\"ent\xe3o\\" ser\xe3o executadas uma vez quando a temperatura estiver acima de 20. Na pr\xf3xima vez, as a\xe7\xf5es \\"ent\xe3o\\" ser\xe3o executadas quando a temperatura falha abaixo de 20 e sobe acima de 20 novamente.","help_just_check":"O c\xf3digo ser\xe1 executado apenas sempre que a condi\xe7\xe3o for verdadeira. Por exemplo. se disparar no valor do sensor de temperatura e a condi\xe7\xe3o for \\"se a temperatura for maior que 20 \xb0 C\\", as a\xe7\xf5es \\"ent\xe3o\\" ser\xe3o executadas toda vez que o sensor enviar a temperatura e ela estiver acima de 20 \xb0 C. Por 21 \xb0 C, por 22 \xb0 C e assim por diante.","On condition change":"Na mudan\xe7a de condi\xe7\xe3o","Just check":"Apenas verifique","when":"quando","and":"e","then":"ent\xe3o","or":"ou","else":"outro","Nothing found":"Nada encontrado","reset search":"redefinir pesquisa","Read only ID selected: %s":"ID somente leitura selecionada: %s","OK":"OK","Triggers":"Gatilhos","cron":"CRON","wizard":"Wizard","interval":"intervalo","at":"no","astro":"astro","on condition change":"na mudan\xe7a de condi\xe7\xe3o","just check":"Apenas verifique","Explanation":"Explica\xe7\xe3o","seconds":"segundos","minutes":"minutos","hours":"horas","Every day":"Todos os dias","milliseconds":"milissegundos","Copied":"Copiado","nadir":"nadir","nightEnd":"Fim de noite","nauticalDawn":"Madrugada n\xe1utica","dawn":"alvorecer","sunrise":"nascer do sol","sunriseEnd":"Fim do nascer do sol","goldenHourEnd":"Fim da hora de ouro","solarNoon":"Meio-dia solar","goldenHour":"Hora dourada","sunsetStart":"Come\xe7o do p\xf4r do sol","sunset":"p\xf4r do sol","dusk":"Crep\xfasculo","nauticalDusk":"Crep\xfasculo n\xe1utico","night":"Noite","one":"1","two":"dois","true":"verdade","false":"falso","search":"procurar","Actions":"A\xe7\xf5es","Conditions":"Condi\xe7\xf5es","Schedule":"Cronograma","Start script":"Iniciar script","State":"Estado","State condition":"Condi\xe7\xe3o de estado","Time condition":"Condi\xe7\xe3o de tempo","Astrological":"Astron\xf4mico","Set state action":"Definir a\xe7\xe3o de estado","Exec":"Exec shell","HTTP Call":"Chamada HTTP","Log text":"Texto de registro","Pause":"Pausa","on change":"em mudan\xe7a","control":"ao controle","Say It":"Say It","every hour at 0 minutes":"a cada hora em 0 minutos","On script save or adapter start":"Ao salvar o script ou iniciar o adaptador","equal to":"igual a","Actual time of day":"Hora real do dia","with":"com","Shell command":"Comando shell","URL":"URL","Instance:":"Inst\xe2ncia:","Language:":"L\xedngua:","Volume":"Volume","Text:":"Texto:","undefined":"Indefinido","Default":"Predefini\xe7\xe3o","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"Voc\xea pode usar %s no texto para exibir o valor do acionador atual, %id para usar o ID do objeto acionado, %name para mostrar o nome do ID do objeto acionado ou %old para usar o valor do acionador antigo","Instructions":"Instru\xe7\xf5es","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"Voc\xea pode usar %s na URL para usar o valor do gatilho atual, %id para usar o ID do objeto acionado, %name para mostrar o nome do ID do objeto acionado ou %old para usar o valor do gatilho antigo","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"Voc\xea pode usar %s no valor para usar o valor do acionador atual, %id para usar o ID do objeto acionado, %name para mostrar o nome do ID do objeto acionado ou %old para usar o valor do acionador antigo","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"Voc\xea pode usar %s no comando para usar o valor do acionador atual, %id para usar o ID do objeto acionado, %name para mostrar o nome do ID do objeto acionado ou %old para usar o valor do acionador antigo","every":"cada","with offset":"com deslocamento","on update":"em atualiza\xe7\xe3o","update":"atualizar","Triggers the rule periodically or on some specific time":"Aciona a regra periodicamente ou em algum momento espec\xedfico","Triggers the on script saving or the javascript instance restart":"Aciona o salvamento do script ou a reinicializa\xe7\xe3o da inst\xe2ncia javascript","Triggers the rule on update or change of some state":"Aciona a regra na atualiza\xe7\xe3o ou mudan\xe7a de algum estado","Compares the state value with user defined value":"Compara o valor do estado com o valor definido pelo usu\xe1rio","Compares current time with the user specific time":"Compara a hora atual com a hora espec\xedfica do usu\xe1rio","Compares current time with astrological event":"Compara a hora atual com o evento astron\xf4mico","Control or update some state":"Controlar ou atualizar algum estado","Executes some shell command":"Executa algum comando shell","Make a HTTP get request":"Fa\xe7a uma solicita\xe7\xe3o HTTP get","Print some text in log":"Imprimir algum texto no log","Make a pause between actions":"Fa\xe7a uma pausa entre as a\xe7\xf5es","Say some text via sayit adapter":"Diga algum texto atrav\xe9s do adaptador sayit","Telegram":"Telegrama","User:":"Do utilizador:","all":"todos","Sends message via telegram":"Envia mensagem via telegrama","Sends an email":"Envia um email","Send email":"Enviar email","Sends message via pushover":"Envia mensagem via pushover","Pushover":"Pushover","Sends message via whatsapp-cmb":"Envia mensagem via whatsapp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"Envia mensagem via Pushsafer","Pushsafer":"Pushsafer","To:":"Para:","Subject:":"Sujeito:","Body:":"Corpo:","Title:":"T\xedtulo:","Sound:":"Som:","Priority:":"Prioridade:","magic":"Magia","quiet":"quieto","normal":"normal","high-priority":"prioridade m\xe1xima","acknowledgment":"reconhecimento","Phone:":"Telefone:","(optional)":"(opcional)","Vibration:":"Vibra\xe7\xe3o:","lowest priority":"prioridade mais baixa","lower priority":"prioridade mais baixa","normal priority":"prioridade normal","high priority":"prioridade m\xe1xima","highest priority":"Prioridade m\xe1xima","default":"predefini\xe7\xe3o","All":"Todos","Write your own code":"Escreva seu pr\xf3prio c\xf3digo","User function":"Fun\xe7\xe3o do usu\xe1rio","This is advances option. You can write your own code here and it will be executed on trigger":"Esta \xe9 a op\xe7\xe3o de avan\xe7os. Voc\xea pode escrever seu pr\xf3prio c\xf3digo aqui e ele ser\xe1 executado no gatilho","greater than":"Maior que","offset":"Deslocamento","Function":"Fun\xe7\xe3o","greater or equal to":"maior ou igual a","less or equal to":"menor ou igual a","less than":"Menor que","not equal to":"n\xe3o \xe9 igual a","[equal]":"[igual]","[greater or equal]":"[maior ou igual]","[greater]":"[maior]","[less or equal]":"[menor ou igual]","[less]":"[menos]","[not equal]":"[n\xe3o igual]","[includes]":"[inclui]","[hysteresis]":"[histerese]","greater or equal":"maior ou igual","less or equal":"menor ou igual","includes":"inclui",".":".","()":"()","Mo":"Mo","Tu":"Tu","We":"3","Th":"4","Fr":"Fr","Sa":"S\xe1","Su":"Su","Control or update some state with delay":"Controlar ou atualizar algum estado com atraso","Delay":"Atraso","ms":"ms","Set with delay":"Definido com atraso","clear running":"corrida limpa","toggle value":"valor de altern\xe2ncia","Any month":"Qualquer m\xeas","Any":"Nenhum","with date":"com data","Date":"Encontro","Month":"M\xeas","Januar":"Januar","Februar":"Februar","March ":"Mar\xe7o","Condition":"Doen\xe7a","Limit":"Limite","The script will be stopped and must be activated manually after debugging. Continue?":"O script ser\xe1 interrompido e deve ser ativado manualmente ap\xf3s a depura\xe7\xe3o. Continuar?","Yes":"sim","Debug instance":"Inst\xe2ncia de depura\xe7\xe3o","Resume execution":"Retomar execu\xe7\xe3o","Go to next line":"V\xe1 para a pr\xf3xima linha","Step into function":"Entre na fun\xe7\xe3o","Step out from function":"Saia da fun\xe7\xe3o","Stop on exception":"Pare na exce\xe7\xe3o","Console":"Console","Stack":"Pilha","Pause execution":"Pausar a execu\xe7\xe3o","Simulate":"Simular","Trigger with value":"Trigger com valor","Value":"Valor","Write":"Escrever","Ack":"Reconhecido","Start":"Come\xe7ar","Filter":"Filtro","Instances":"Inst\xe2ncias","Triggered":"Provocado","Function: executed":"Fun\xe7\xe3o: executado","Operate two states":"Operar dois estados","store in":"armazenar em","ID1":"ID1","ID2":"ID2","Operations with two states":"Opera\xe7\xf5es com dois estados","debug_label":"Depurar","debug_help":"Este \xe9 um modo especial no qual estados e objetos n\xe3o ser\xe3o alterados. Mas apenas as informa\xe7\xf5es sobre cada mudan\xe7a planejada ser\xe3o exibidas no protocolo.","verbose_label":"Sa\xeddas de log detalhadas","verbose_help":"Adiciona sa\xedda de depura\xe7\xe3o ao log para muitos comandos do sistema","easy":"f\xe1cil","for programmers":"para programadores","for professionals":"para profissionais","Duplicate name":"Nome duplicado","Empty name is not allowed":"Nome vazio n\xe3o \xe9 permitido","Astrological events today":"Eventos astrol\xf3gicos hoje","Show astrological events":"Mostrar eventos astrol\xf3gicos","Time":"Tempo","Description":"Descri\xe7\xe3o","nextSunrise":"pr\xf3ximo nascer do sol","nextSunset":"Pr\xf3ximo p\xf4r do sol"}')},50482:function(e){e.exports=JSON.parse('{"-":"-","Add":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c","Add new script":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442","All files will be accepted":"\u0412\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043d\u044f\u0442\u044b","April":"\u0410\u043f\u0440\u0435\u043b\u044c","Are you sure?":"\u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b?","August":"\u0410\u0432\u0433\u0443\u0441\u0442","Blockly description":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438","Cancel":"\u041e\u0442\u043c\u0435\u043d\u0430","Cannot delete non empty item!":"\u041d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043d\u0435\u043f\u0443\u0441\u0442\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442!","Change layout":"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043c\u0430\u043a\u0435\u0442","Check blocks":"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0431\u043b\u043e\u043a\u0438","Check is not active, because javascript adapter is disabled":"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0430\u0434\u0430\u043f\u0442\u0435\u0440 Javascript \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d","Clear search input":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u0432\u043e\u0434","Click on this icon":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0437\u043d\u0430\u0447\u043e\u043a","Close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c","Close all but current":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435 \u043a\u0440\u043e\u043c\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e","Collapse all":"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u0441\u0435","Configuration not saved.":"\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0430.","Convert blockly to javascript for ever.":"\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u044c blockly \u0432 Javascript \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430.","Copy script":"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442","Copy to clipboard":"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430","Create new":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439","Create new folder":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443","Create new script":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442","Create or edit CRON or time wizard":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043b\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 CRON \u0438\u043b\u0438 \u043c\u0430\u0441\u0442\u0435\u0440\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438","Dark Theme":"\u0422\u0451\u043c\u043d\u0430\u044f \u0442\u0435\u043c\u0430","Dark style":"\u0422\u0435\u043c\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c","Debug options":"\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043e\u0442\u043b\u0430\u0434\u043a\u0438","December":"\u0414\u0435\u043a\u0430\u0431\u0440\u044c","Define cron...":"\u0417\u0430\u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u043e ...","Define schedule...":"\u0417\u0430\u0434\u0430\u0442\u044c \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435...","Delete":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c","Delete %s":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c %s...","Delete folder":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0430\u043f\u043a\u0443","Delete script":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442","Deselect all":"\u0421\u043d\u044f\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \u0441\u043e \u0432\u0441\u0435\u0445","Discard changes for %s":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0434\u043b\u044f %s","Done":"\u0413\u043e\u0442\u043e\u0432\u043e","Drop some files here or click...":"\u041f\u0435\u0440\u0435\u0442\u044b\u0449\u0438\u0442\u0435 \u0441\u044e\u0434\u0430 \u0444\u0430\u0439\u043b\u044b \u0438\u043b\u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 ...","Edit script or just double click":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0432\u0430\u0436\u0434\u044b \u0449\u0435\u043b\u043a\u043d\u0443\u0442\u044c","End search mode":"\u0417\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u043f\u043e\u0438\u0441\u043a","Error":"\u041e\u0448\u0438\u0431\u043a\u0430","Error was found":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0431\u044b\u043b\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u0430","Existing scripts will be overwritten.":"\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u043d\u044b.","Expand all":"\u0420\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0432\u0441\u0435","Expert mode":"\u042d\u043a\u0441\u043f\u0435\u0440\u0442\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c","Export":"\u042d\u043a\u0441\u043f\u043e\u0440\u0442","Export all scripts":"\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432\u0441\u0435\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432","Export blocks":"\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043b\u043e\u043a\u0438","Export selected blocks":"\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0431\u043b\u043e\u043a\u0438","February":"\u0424\u0435\u0432\u0440\u0430\u043b\u044c","Folder":"\u041f\u0430\u043f\u043a\u0430","Friday":"\u043f\u044f\u0442\u043d\u0438\u0446\u0430","Function editor":"\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438","ID":"ID","Import":"\u0418\u043c\u043f\u043e\u0440\u0442","Import blocks":"\u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043b\u043e\u043a\u0438","Import error":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0438\u043c\u043f\u043e\u0440\u0442\u0430","Import scripts":"\u0418\u043c\u043f\u043e\u0440\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432","Insert object ID":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c ID \u043e\u0431\u044a\u0435\u043a\u0442\u0430","Instance":"\u042d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440","Instance is disabled":"\u042d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d","Invalid CRON":"\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 CRON","It will not be possible to revert this operation.":"\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u044d\u0442\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e.","JS description":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b \u043f\u0443\u0442\u0451\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f Javascript","January":"\u042f\u043d\u0432\u0430\u0440\u044c","July":"\u0418\u044e\u043b\u044c","June":"\u0418\u044e\u043d\u044c","Learn More":"\u0423\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435","Light style":"\u0421\u0432\u0435\u0442\u043b\u044b\u0439 \u0441\u0442\u0438\u043b\u044c","Locate file":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0432 \u0434\u0435\u0440\u0435\u0432\u0435","Log outputs":"\u0416\u0443\u0440\u043d\u0430\u043b","March":"\u041c\u0430\u0440\u0442","May":"\u041c\u0430\u0439","Menu":"\u041c\u0435\u043d\u044e","Message":"\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435","Monday":"\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","Name":"\u0418\u043c\u044f","No active host found":"\u0410\u043a\u0442\u0438\u0432\u043d\u044b\u0439 host \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d","November":"\u041d\u043e\u044f\u0431\u0440\u044c","October":"\u041e\u043a\u0442\u044f\u0431\u0440\u044c","Ok":"Ok","On weekdays":"\u041f\u043e \u0434\u043d\u044f\u043c \u043d\u0435\u0434\u0435\u043b\u0438","Pause script":"\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442","Please select object ID...":"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 ID \u043e\u0431\u044a\u0435\u043a\u0442\u0430 ...","Rename":"\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c","Reorder scripts in folders":"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432 \u043f\u0430\u043f\u043a\u0430\u0445","Repeat":"\u041f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0435","Restart":"\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c","Root folder":"\u041a\u043e\u0440\u043d\u0435\u0432\u0430\u044f \u043f\u0430\u043f\u043a\u0430","Run script":"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442","Saturday":"\u0441\u0443\u0431\u0431\u043e\u0442\u0430","Save":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c","Script":"\u0441\u043a\u0440\u0438\u043f\u0442","Script %s was modified on disk":"\u0421\u043a\u0440\u0438\u043f\u0442 \\"%s\\" \u0431\u044b\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d \u043d\u0430 \u0434\u0438\u0441\u043a\u0435","Script is not running":"\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043d\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d","Search in scripts":"\u041f\u043e\u0438\u0441\u043a \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445","Search...":"\u041f\u043e\u0438\u0441\u043a...","Select all":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435","September":"\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","Show javascript code":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u0434 Javascript","Show only paused scripts":"\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438","Show only running scripts":"\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b","Show only scripts with problems":"\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438","Some files will be rejected":"\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u044b","Sunday":"\u0412\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","TS description":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b \u043f\u0443\u0442\u0451\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f Typescript","Thursday":"\u0427\u0435\u0442\u0432\u0435\u0440\u0433","Tuesday":"\u0432\u0442\u043e\u0440\u043d\u0438\u043a","Unknown error":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430","Unknown error!":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430!","Wednesday":"\u0441\u0440\u0435\u0434\u0430","Yet exists!":"\u0418\u043c\u044f \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442!","copy":"\u043a\u043e\u043f\u0438\u044f","file reading has failed: %s":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430: %s","file reading was aborted":"\u0427\u0442\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0431\u044b\u043b\u043e \u043f\u0440\u0435\u0440\u0432\u0430\u043d\u043e","filter_func":"\u0424\u0443\u043d\u043a\u0446\u0438\u044f","filter_id":"ID","filter_name":"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435","filter_role":"\u0420\u043e\u043b\u044c","filter_room":"\u041a\u043e\u043c\u043d\u0430\u0442\u0430","for edit or create script":"\u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442","no blocks found":"\u0411\u043b\u043e\u043a\u043e\u0432 \u043d\u0435\u0442","no group":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f\u044b","not properly connected":"\u042d\u0442\u043e\u0442 \u0431\u043b\u043e\u043a \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0451\u043d \u0438\u043b\u0438 \u043d\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0451\u043d \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438.","tooltip_ack":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u043e","tooltip_from":"\u041e\u0442","tooltip_lc":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435","tooltip_quality":"\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439","tooltip_ts":"\u0412\u0440\u0435\u043c\u044f","tooltip_user":"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c","tooltip_value":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435","use seconds":"\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u043a\u0443\u043d\u0434\u044b","Save all":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0441\u0435","Change theme (actual \\"%s\\")":"\u0421\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0435\u043c\u0443 (\u0441\u0435\u0439\u0447\u0430\u0441 - \\"%s\\")","Hide logs":"\u0421\u043a\u0440\u044b\u0442\u044c \u0436\u0443\u0440\u043d\u0430\u043b\u044b","Show logs":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0436\u0443\u0440\u043d\u0430\u043b\u044b","Rules description":"\u0421\u043e\u0437\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0441 \u0431\u043b\u043e\u043a\u0430\u043c\u0438 \u0415\u0421\u041b\u0418, \u0422\u041e, \u0418\u041d\u0410\u0427\u0415","help_on_change":"\u041a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044e \xab\u0435\u0441\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 20\xb0C\xbb, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \xab\u0437\u0430\u0442\u0435\u043c\xbb \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043f\u0440\u0435\u0432\u044b\u0441\u0438\u0442 20\xb0C. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \xab\u0437\u0430\u0442\u0435\u043c\xbb \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b, \u043a\u043e\u0433\u0434\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043e\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f \u043d\u0438\u0436\u0435 20\xb0C, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0448\u0435 20\xb0C.","help_just_check":"\u041a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0438\u0441\u0442\u0438\u043d\u043d\u043e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440. \u043f\u0440\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044e \xab\u0435\u0441\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0432\u044b\u0448\u0435 20\xb0C\xbb, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \xab\u0437\u0430\u0442\u0435\u043c\xbb \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0434\u0430\u0442\u0447\u0438\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b, \u0438 \u043e\u043d\u043e \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 20\xb0C. \u041d\u0430 21\xb0\u0421, \u043d\u0430 22\xb0\u0421 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435.","On condition change":"\u041f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0440\u0435\u0443\u0437\u043b\u044c\u0442\u0430\u0442\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0439","Just check":"\u041f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c","when":"\u0435\u0441\u043b\u0438","and":"\u0438","then":"\u0442\u043e\u0433\u0434\u0430","or":"\u0438\u043b\u0438","else":"\u0438\u043d\u0430\u0447\u0435","Nothing found":"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e","reset search":"C\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u0438\u0441\u043a","Read only ID selected: %s":"\u0412\u044b\u0431\u0440\u0430\u043d \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f: %s","OK":"\u041e\u043a","Triggers":"\u0422\u0440\u0438\u0433\u0433\u0435\u0440\u044b","cron":"CRON","wizard":"\u041c\u0430\u0441\u0442\u0435\u0440","interval":"\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b","at":"\u0432","astro":"\u0410\u0441\u0442\u0440\u043e","on condition change":"\u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f","just check":"\u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c","Explanation":"\u041e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435","seconds":"\u0441\u0435\u043a\u0443\u043d\u0434","minutes":"\u043c\u0438\u043d\u0443\u0442(\u0443)","hours":"\u0447\u0430\u0441(\u043e\u0432)","Every day":"\u041a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c","milliseconds":"\u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u044b","Copied":"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e","nadir":"\u041d\u0430\u0434\u0438\u0440","nightEnd":"\u041a\u043e\u043d\u0435\u0446 \u043d\u043e\u0447\u0438","nauticalDawn":"\u041c\u043e\u0440\u0441\u043a\u043e\u0439 \u0440\u0430\u0441\u0441\u0432\u0435\u0442","dawn":"\u0420\u0430\u0441\u0441\u0432\u0435\u0442","sunrise":"\u0412\u043e\u0441\u0445\u043e\u0434 \u0441\u043e\u043b\u043d\u0446\u0430","sunriseEnd":"\u041a\u043e\u043d\u0435\u0446 \u0432\u043e\u0441\u0445\u043e\u0434\u0430","goldenHourEnd":"\u041a\u043e\u043d\u0435\u0446 \u0437\u043e\u043b\u043e\u0442\u043e\u0433\u043e \u0447\u0430\u0441\u0430","solarNoon":"\u0421\u043e\u043b\u043d\u0435\u0447\u043d\u044b\u0439 \u043f\u043e\u043b\u0434\u0435\u043d\u044c","goldenHour":"\u0417\u043e\u043b\u043e\u0442\u043e\u0439 \u0447\u0430\u0441","sunsetStart":"\u041d\u0430\u0447\u0430\u043b\u043e \u0437\u0430\u043a\u0430\u0442\u0430","sunset":"\u0417\u0430\u043a\u0430\u0442 \u0441\u043e\u043b\u043d\u0446\u0430","dusk":"\u0421\u0443\u043c\u0435\u0440\u043a\u0438","nauticalDusk":"\u041c\u043e\u0440\u0441\u043a\u0438\u0435 \u0441\u0443\u043c\u0435\u0440\u043a\u0438","night":"\u041d\u043e\u0447\u044c","one":"\u043e\u0434\u0438\u043d","two":"\u0434\u0432\u0430","true":"true","false":"false","search":"\u043f\u043e\u0438\u0441\u043a","Actions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f","Conditions":"\u0423\u0441\u043b\u043e\u0432\u0438\u044f","Schedule":"\u0420\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435","Start script":"\u0421\u0442\u0430\u0440\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u0430","State":"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435","State condition":"\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f","Time condition":"\u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438","Astrological":"A\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439","Set state action":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435","Exec":"\u0418\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u044c shell","HTTP Call":"HTTP-\u0432\u044b\u0437\u043e\u0432","Log text":"\u0422\u0435\u043a\u0441\u0442 \u0436\u0443\u0440\u043d\u0430\u043b\u0430","Pause":"\u041f\u0430\u0443\u0437\u0430","on change":"\u043f\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044e","control":"\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c","Say It":"Say It","every hour at 0 minutes":"\u043a\u0430\u0436\u0434\u044b\u0439 \u0447\u0430\u0441 \u0447\u0435\u0440\u0435\u0437 0 \u043c\u0438\u043d\u0443\u0442","On script save or adapter start":"\u041f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430","equal to":"\u0440\u0430\u0432\u043d\u043e","Actual time of day":"\u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u0443\u0442\u043e\u043a","with":"\u0441","Shell command":"\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438","URL":"URL","Instance:":"\u041f\u0440\u0438\u043c\u0435\u0440:","Language:":"\u042f\u0437\u044b\u043a:","Volume":"\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c","Text:":"\u0422\u0435\u043a\u0441\u0442:","undefined":"\u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439","Default":"\u0414\u0435\u0444\u043e\u043b\u0442","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c %s \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430, %id \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0432\u0448\u0435\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, %name \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u043d\u0438 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0432\u0448\u0435\u0433\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438\u043b\u0438 %old \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430.","Instructions":"\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c %s \u0432 URL-\u0430\u0434\u0440\u0435\u0441\u0435, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430, %id, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, %name, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0438\u043b\u0438 %old, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0440\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430.","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c %s \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430, %id, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, %name, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0438\u043b\u0438 %old, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0440\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430.","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c %s \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430, %id, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0432\u0448\u0435\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, %name, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0432\u0448\u0435\u0433\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0438\u043b\u0438 %old, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0440\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430.","every":"\u043a\u0430\u0436\u0434\u044b\u0435(\u044b\u0439)","with offset":"\u0441\u043e \u0441\u0434\u0432\u0438\u0433\u043e\u043c","on update":"\u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438","update":"\u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c","Triggers the rule periodically or on some specific time":"\u0421\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u043b\u0438 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f","Triggers the on script saving or the javascript instance restart":"\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 javascript","Triggers the rule on update or change of some state":"\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043a\u0430\u043a\u043e\u0433\u043e-\u043b\u0438\u0431\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f","Compares the state value with user defined value":"\u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c","Compares current time with the user specific time":"\u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0441 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f","Compares current time with astrological event":"\u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0441 \u0430\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0435\u043c","Control or update some state":"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435","Executes some shell command":"\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438","Make a HTTP get request":"\u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435","Print some text in log":"\u041d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0435","Make a pause between actions":"\u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u043f\u0430\u0443\u0437\u0443 \u043c\u0435\u0436\u0434\u0443 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438","Say some text via sayit adapter":"\u041f\u0440\u043e\u0438\u0437\u043d\u0435\u0441\u0438\u0442\u0435 \u0442\u0435\u043a\u0441\u0442 \u0447\u0435\u0440\u0435\u0437 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 Sayit","Telegram":"Telegram","User:":"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c:","all":"\u0432\u0441\u0435","Sends message via telegram":"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c\u0435","Sends an email":"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0435 \u043f\u0438\u0441\u044c\u043c\u043e","Send email":"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c email","Sends message via pushover":"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043f\u0443\u0441\u0442\u044b\u0448\u043a\u0443","Pushover":"Pushover","Sends message via whatsapp-cmb":"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 whatsapp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 Pushsafer","Pushsafer":"Pushsafer","To:":"\u041a:","Subject:":"\u041f\u0440\u0435\u0434\u043c\u0435\u0442:","Body:":"\u0422\u0435\u043b\u043e:","Title:":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a:","Sound:":"\u0417\u0432\u0443\u043a:","Priority:":"\u041f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442:","magic":"\u043c\u0430\u0433\u0438\u044f","quiet":"\u0442\u0438\u0445\u0438\u0439","normal":"\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439","high-priority":"\u0432\u044b\u0441\u043e\u043a\u0438\u0439-\u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442","acknowledgment":"\u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435","Phone:":"\u0422\u0435\u043b\u0435\u0444\u043e\u043d:","(optional)":"(\u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439)","Vibration:":"\u0412\u0438\u0431\u0440\u0430\u0446\u0438\u044f:","lowest priority":"\u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0437\u043a\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442","lower priority":"\u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442","normal priority":"\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442","high priority":"\u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442","highest priority":"\u0432\u044b\u0441\u0448\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442","default":"\u0434\u0435\u0444\u043e\u043b\u0442","All":"\u0412\u0441\u0435","Write your own code":"\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0441\u0432\u043e\u0439 \u043a\u043e\u0434","User function":"\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f","This is advances option. You can write your own code here and it will be executed on trigger":"\u042d\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u0441\u0432\u043e\u0439 \u043a\u043e\u0434 \u0438 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u043e \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0443","greater than":"\u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c","offset":"\u0441\u0434\u0432\u0438\u0433","Function":"\u0424\u0443\u043d\u043a\u0446\u0438\u044f","greater or equal to":"\u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e","less or equal to":"\u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e","less than":"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c","not equal to":"\u043d\u0435 \u0440\u0430\u0432\u043d\u043e","[equal]":"[\u0440\u0430\u0432\u043d\u043e]","[greater or equal]":"[\u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e]","[greater]":"[\u0431\u043e\u043b\u044c\u0448\u0435]","[less or equal]":"[\u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e]","[less]":"[\u043c\u0435\u043d\u044c\u0448\u0435]","[not equal]":"[\u043d\u0435 \u0440\u0430\u0432\u043d\u043e]","[includes]":"[\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442]","[hysteresis]":"[\u0433\u0438\u0441\u0442\u0435\u0440\u0435\u0437\u0438\u0441]","greater or equal":"\u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e","less or equal":"\u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e","includes":"\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442",".":".","()":"()","Mo":"\u041f\u043d","Tu":"\u0412\u0442","We":"\u0421\u0440","Th":"\u0427\u0442","Fr":"\u041f\u0442","Sa":"\u0421\u0431","Su":"\u0412\u0441","Control or update some state with delay":"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u043a\u0430\u043a\u043e\u0435-\u043b\u0438\u0431\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439","Delay":"\u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430","ms":"\u043c\u0441","Set with delay":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439","clear running":"\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0443\u0436\u0435 \u0431\u0435\u0433\u0443\u0449\u0438\u0435","toggle value":"\u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435","Any month":"\u0412 \u043b\u044e\u0431\u043e\u0439 \u043c\u0435\u0441\u044f\u0446","Any":"\u041b\u044e\u0431\u0430\u044f","with date":"\u0441 \u0434\u0430\u0442\u043e\u0439","Date":"\u0414\u0430\u0442\u0430","Month":"\u041c\u0435\u0441\u044f\u0446","Januar":"\u042f\u043d\u0432\u0430\u0440\u044c","Februar":"\u0424\u0435\u0432\u0440\u0430\u043b\u044c","March ":"\u041c\u0430\u0440\u0442 ","Condition":"\u0423\u0441\u043b\u043e\u0432\u0438\u0435","Limit":"\u041f\u0440\u0435\u0434\u0435\u043b","The script will be stopped and must be activated manually after debugging. Continue?":"C\u043a\u0440\u0438\u043f\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043b\u0430\u0434\u043a\u0438. \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c?","Yes":"\u0414\u0430","Debug instance":"\u042d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043e\u0442\u043b\u0430\u0434\u043a\u0438","Resume execution":"\u0412\u043e\u0437\u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435","Go to next line":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435","Step into function":"\u0428\u0430\u0433 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","Step out from function":"\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438","Stop on exception":"\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438","Console":"\u041f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430","Stack":"Stack","Pause execution":"\u041f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435","Simulate":"\u0421\u0438\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c","Trigger with value":"\u0422\u0440\u0438\u0433\u0433\u0435\u0440 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c","Value":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435","Write":"\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435","Ack":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435","Start":"\u041d\u0430\u0447\u0438\u043d\u0430\u0442\u044c","Filter":"\u0424\u0438\u043b\u044c\u0442\u0440","Instances":"\u042d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b","Triggered":"\u0421\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442","Function: executed":"\u0424\u0443\u043d\u043a\u0446\u0438\u044f: \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e","Operate two states":"\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0434 \u0434\u0432\u0443\u043c\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043c\u0438","store in":"\u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432","ID1":"ID1","ID2":"ID2","Operations with two states":"\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u0434\u0432\u0443\u043c\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043c\u0438","debug_label":"\u041e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c","debug_help":"\u042d\u0442\u043e \u043e\u0441\u043e\u0431\u044b\u0439 \u0440\u0435\u0436\u0438\u043c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f. \u041d\u043e \u0432 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438.","verbose_label":"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b","verbose_help":"\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u044b\u0432\u043e\u0434 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0432 \u0436\u0443\u0440\u043d\u0430\u043b \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434.","easy":"\u043b\u0435\u0433\u043a\u0438\u0439","for programmers":"\u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432","for professionals":"\u0434\u043b\u044f \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u043e\u0432","Duplicate name":"\u041f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0435\u0435\u0441\u044f \u0438\u043c\u044f","Empty name is not allowed":"\u041f\u0443\u0441\u0442\u043e\u0435 \u0438\u043c\u044f \u043d\u0435 \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f","Astrological events today":"\u0410\u0441\u0442\u0440\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0441\u0435\u0433\u043e\u0434\u043d\u044f","Show astrological events":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0430\u0441\u0442\u0440\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f","Time":"\u0412\u0440\u0435\u043c\u044f","Description":"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435","nextSunrise":"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u043e\u0441\u0445\u043e\u0434","nextSunset":"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0437\u0430\u043a\u0430\u0442"}')},17138:function(e){e.exports=JSON.parse('{"debug_label":"\u0412\u0456\u0434\u043b\u0430\u0433\u043e\u0434\u0436\u0443\u0432\u0430\u0442\u0438","debug_help":"\u0426\u0435 \u043e\u0441\u043e\u0431\u043b\u0438\u0432\u0438\u0439 \u0440\u0435\u0436\u0438\u043c, \u0432 \u044f\u043a\u043e\u043c\u0443 \u0441\u0442\u0430\u043d\u0443 \u0442\u0430 \u043e\u0431\'\u0454\u043a\u0442\u0438 \u043d\u0435 \u0437\u043c\u0456\u043d\u044e\u0432\u0430\u0442\u0438\u043c\u0443\u0442\u044c\u0441\u044f. \u0410\u043b\u0435 \u0432 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0456 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u0438\u043c\u0435\u0442\u044c\u0441\u044f \u043b\u0438\u0448\u0435 \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u044f \u043f\u0440\u043e \u043a\u043e\u0436\u043d\u0443 \u0437\u0430\u043f\u043b\u0430\u043d\u043e\u0432\u0430\u043d\u0443 \u0437\u043c\u0456\u043d\u0443.","verbose_label":"\u0414\u043e\u043a\u043b\u0430\u0434\u043d\u0456 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0443","verbose_help":"\u0414\u043e\u0434\u0430\u0454 \u0432\u0438\u0445\u0456\u0434\u043d\u0456 \u0434\u0430\u043d\u0456 \u043d\u0430\u043b\u0430\u0433\u043e\u0434\u0436\u0435\u043d\u043d\u044f \u0434\u043e \u0436\u0443\u0440\u043d\u0430\u043b\u0443 \u0434\u043b\u044f \u0431\u0430\u0433\u0430\u0442\u044c\u043e\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434","()":"()","(optional)":"(\u043d\u0435\u043e\u0431\u043e\u0432\'\u044f\u0437\u043a\u043e\u0432\u043e)","-":"-",".":".","Ack":"\u0412\u0438\u0437\u043d\u0430\u043d\u043e","Actions":"\u0414\u0456\u0457","Actual time of day":"\u0424\u0430\u043a\u0442\u0438\u0447\u043d\u0438\u0439 \u0447\u0430\u0441 \u0434\u043e\u0431\u0438","Add":"\u0434\u043e\u0434\u0430\u0442\u0438","Add new script":"\u0414\u043e\u0434\u0430\u0442\u0438 \u043d\u043e\u0432\u0438\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439","All":"\u0432\u0441\u0435","All files will be accepted":"\u0423\u0441\u0456 \u0444\u0430\u0439\u043b\u0438 \u0431\u0443\u0434\u0443\u0442\u044c \u043f\u0440\u0438\u0439\u043d\u044f\u0442\u0456","Any":"\u0411\u0443\u0434\u044c-\u044f\u043a\u0438\u0439","Any month":"\u0411\u0443\u0434\u044c-\u044f\u043a\u0438\u0439 \u043c\u0456\u0441\u044f\u0446\u044c","April":"\u043a\u0432\u0456\u0442\u0435\u043d\u044c","Are you sure?":"\u0422\u0438 \u0432\u043f\u0435\u0432\u043d\u0435\u043d\u0438\u0439?","Astrological":"\u0410\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0456\u0447\u043d\u0438\u0439","August":"\u0441\u0435\u0440\u043f\u0435\u043d\u044c","Blockly description":"\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043f\u0440\u0430\u0432\u0438\u043b \u0437\u0430 \u0433\u0440\u0430\u0444\u0456\u0447\u043d\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438","Body:":"\u0422\u0456\u043b\u043e:","Cancel":"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438","Cannot delete non empty item!":"\u041d\u0435\u043c\u043e\u0436\u043b\u0438\u0432\u043e \u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u043d\u0435\u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439 \u0435\u043b\u0435\u043c\u0435\u043d\u0442!","Change layout":"\u0417\u043c\u0456\u043d\u0438\u0442\u0438 \u043c\u0430\u043a\u0435\u0442","Change theme (actual \\"%s\\")":"\u0417\u043c\u0456\u043d\u0438\u0442\u0438 \u0442\u0435\u043c\u0443 (\u0442\u0435\u043f\u0435\u0440 - \\"%s\\")","Check blocks":"\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0431\u043b\u043e\u043a\u0438","Check is not active, because javascript adapter is disabled":"\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0430 \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u0430, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 Javascript \u0432\u0438\u043c\u043a\u043d\u0435\u043d\u043e","Clear search input":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u043f\u043e\u0448\u0443\u043a\u043e\u0432\u0438\u0439 \u0437\u0430\u043f\u0438\u0442","Click on this icon":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u043d\u0430 \u0446\u0435\u0439 \u0437\u043d\u0430\u0447\u043e\u043a","Close":"\u0417\u0430\u043a\u0440\u0438\u0442\u0438","Close all but current":"\u0417\u0430\u043a\u0440\u0438\u0442\u0438 \u0432\u0441\u0456, \u043a\u0440\u0456\u043c \u043f\u043e\u0442\u043e\u0447\u043d\u0438\u0445","Collapse all":"\u0417\u0430\u043a\u0440\u0438\u0442\u0438 \u0432\u0441\u0456","Compares current time with astrological event":"\u041f\u043e\u0440\u0456\u0432\u043d\u044e\u0454 \u043f\u043e\u0442\u043e\u0447\u043d\u0438\u0439 \u0447\u0430\u0441 \u0437 \u0430\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0456\u0447\u043d\u043e\u044e \u043f\u043e\u0434\u0456\u0454\u044e","Compares current time with the user specific time":"\u041f\u043e\u0440\u0456\u0432\u043d\u044e\u0454 \u043f\u043e\u0442\u043e\u0447\u043d\u0438\u0439 \u0447\u0430\u0441 \u0456\u0437 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0438\u043c \u0447\u0430\u0441\u043e\u043c \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430","Compares the state value with user defined value":"\u041f\u043e\u0440\u0456\u0432\u043d\u044e\u0454 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0441\u0442\u0430\u043d\u0443 \u0437 \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u043c \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f\u043c","Condition":"\u0425\u0432\u043e\u0440\u043e\u0431\u0430","Conditions":"\u0423\u043c\u043e\u0432\u0438","Configuration not saved.":"\u041a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u044f \u043d\u0435 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u0430.","Console":"\u041a\u043e\u043d\u0441\u043e\u043b\u044c","Control or update some state":"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044e\u0439\u0442\u0435 \u0430\u0431\u043e \u043e\u043d\u043e\u0432\u043b\u044e\u0439\u0442\u0435 \u043f\u0435\u0432\u043d\u0438\u0439 \u0441\u0442\u0430\u043d","Control or update some state with delay":"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044e\u0439\u0442\u0435 \u0430\u0431\u043e \u043e\u043d\u043e\u0432\u043b\u044e\u0439\u0442\u0435 \u0434\u0435\u044f\u043a\u0438\u0439 \u0441\u0442\u0430\u043d \u0456\u0437 \u0437\u0430\u0442\u0440\u0438\u043c\u043a\u043e\u044e","Convert blockly to javascript for ever.":"\u041d\u0430\u0437\u0430\u0432\u0436\u0434\u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0443\u0439\u0442\u0435 Blockly \u0443 Javascript.","Copied":"\u0421\u043a\u043e\u043f\u0456\u0439\u043e\u0432\u0430\u043d\u043e","Copy script":"\u041a\u043e\u043f\u0456\u044e\u0432\u0430\u0442\u0438 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439","Copy to clipboard":"\u041a\u043e\u043f\u0456\u044e\u0432\u0430\u0442\u0438 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0456\u043d\u0443","Create new":"\u0421\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043d\u043e\u0432\u0438\u0439","Create new folder":"\u0421\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043d\u043e\u0432\u0443 \u043f\u0430\u043f\u043a\u0443","Create new script":"\u0421\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u043d\u043e\u0432\u0438\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439","Create or edit CRON or time wizard":"\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0430\u0431\u043e \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u043d\u043d\u044f CRON \u0430\u0431\u043e \u043c\u0430\u0439\u0441\u0442\u0440\u0430 \u0447\u0430\u0441\u0443","Dark Theme":"\u0422\u0435\u043c\u043d\u0430 \u0442\u0435\u043c\u0430","Dark style":"\u0422\u0435\u043c\u043d\u0438\u0439 \u0441\u0442\u0438\u043b\u044c","Date":"\u0414\u0430\u0442\u0430","Debug instance":"\u0415\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043d\u0430\u043b\u0430\u0433\u043e\u0434\u0436\u0435\u043d\u043d\u044f","Debug options":"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438 \u043d\u0430\u043b\u0430\u0433\u043e\u0434\u0436\u0435\u043d\u043d\u044f","December":"\u0413\u0440\u0443\u0434\u0435\u043d\u044c","Default":"\u0417\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","Define cron...":"\u0412\u0438\u0437\u043d\u0430\u0447\u0438\u0442\u0438 cron...","Define schedule...":"\u0412\u0438\u0437\u043d\u0430\u0447\u0438\u0442\u0438 \u0440\u043e\u0437\u043a\u043b\u0430\u0434...","Delay":"\u0417\u0430\u0442\u0440\u0438\u043c\u043a\u0430","Delete":"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438","Delete %s":"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 %s...","Delete folder":"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u043f\u0430\u043f\u043a\u0443","Delete script":"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439","Deselect all":"\u0417\u043d\u044f\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0456\u0437 \u0443\u0441\u0456\u0445","Discard changes for %s":"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u0437\u043c\u0456\u043d\u0438 \u0434\u043b\u044f %s","Done":"\u0413\u043e\u0442\u043e\u0432\u043e","Drop some files here or click...":"\u041f\u0435\u0440\u0435\u0442\u044f\u0433\u043d\u0456\u0442\u044c \u043a\u0456\u043b\u044c\u043a\u0430 \u0444\u0430\u0439\u043b\u0456\u0432 \u0441\u044e\u0434\u0438 \u0430\u0431\u043e \u043d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c...","Edit script or just double click":"\u0412\u0456\u0434\u0440\u0435\u0434\u0430\u0433\u0443\u0439\u0442\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439 \u0430\u0431\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0432\u0456\u0447\u0456 \u043a\u043b\u0430\u0446\u043d\u0456\u0442\u044c","End search mode":"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0440\u0435\u0436\u0438\u043c \u043f\u043e\u0448\u0443\u043a\u0443","Error":"\u041f\u043e\u043c\u0438\u043b\u043a\u0430","Error was found":"\u0412\u0438\u044f\u0432\u043b\u0435\u043d\u043e \u043f\u043e\u043c\u0438\u043b\u043a\u0443","Every day":"\u041a\u043e\u0436\u0435\u043d \u0434\u0435\u043d\u044c","Exec":"\u0412\u0438\u043a\u043e\u043d\u0430\u0432\u0447\u0430 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0430","Executes some shell command":"\u0412\u0438\u043a\u043e\u043d\u0443\u0454 \u043f\u0435\u0432\u043d\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0438","Existing scripts will be overwritten.":"\u0406\u0441\u043d\u0443\u044e\u0447\u0456 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0457 \u0431\u0443\u0434\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e.","Expand all":"\u0420\u043e\u0437\u0433\u043e\u0440\u043d\u0443\u0442\u0438 \u0432\u0441\u0435","Expert mode":"\u0415\u043a\u0441\u043f\u0435\u0440\u0442\u043d\u0438\u0439 \u0440\u0435\u0436\u0438\u043c","Explanation":"\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u043d\u044f","Export":"\u0415\u043a\u0441\u043f\u043e\u0440\u0442","Export all scripts":"\u0415\u043a\u0441\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0432\u0441\u0456 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0457","Export blocks":"\u0415\u043a\u0441\u043f\u043e\u0440\u0442 \u0431\u043b\u043e\u043a\u0456\u0432","Export selected blocks":"\u0415\u043a\u0441\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0432\u0438\u0431\u0440\u0430\u043d\u0456 \u0431\u043b\u043e\u043a\u0438","Februar":"\u041b\u044e\u0442\u0438\u0439","February":"\u041b\u044e\u0442\u0438\u0439","Filter":"\u0444\u0456\u043b\u044c\u0442\u0440","Folder":"\u041f\u0430\u043f\u043a\u0430","Fr":"\u041e","Friday":"\u041f\'\u044f\u0442\u043d\u0438\u0446\u044f","Function":"\u0444\u0443\u043d\u043a\u0446\u0456\u044f","Function editor":"\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0444\u0443\u043d\u043a\u0446\u0456\u0439","Function: executed":"\u0424\u0443\u043d\u043a\u0446\u0456\u044f: \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043e","Go to next line":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0434\u043e \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u0440\u044f\u0434\u043a\u0430","HTTP Call":"\u0412\u0438\u043a\u043b\u0438\u043a HTTP","Hide logs":"\u041f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0438","ID":"ID","ID1":"ID1","ID2":"ID2","Import":"\u0406\u043c\u043f\u043e\u0440\u0442","Import blocks":"\u0406\u043c\u043f\u043e\u0440\u0442 \u0431\u043b\u043e\u043a\u0456\u0432","Import error":"\u041f\u043e\u043c\u0438\u043b\u043a\u0430 \u0456\u043c\u043f\u043e\u0440\u0442\u0443","Import scripts":"\u0406\u043c\u043f\u043e\u0440\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u0456\u0432","Insert object ID":"\u0412\u0441\u0442\u0430\u0432\u0442\u0435 ID \u043e\u0431\'\u0454\u043a\u0442\u0430","Instance":"\u0415\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440","Instance is disabled":"\u041f\u0440\u0438\u043c\u0456\u0440\u043d\u0438\u043a \u0432\u0438\u043c\u043a\u043d\u0435\u043d\u043e","Instance:":"\u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440:","Instances":"\u041f\u0440\u0438\u043c\u0456\u0440\u043d\u0438\u043a\u0438","Instructions":"\u0406\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0456\u0457","Invalid CRON":"\u041d\u0435\u0434\u0456\u0439\u0441\u043d\u0438\u0439 CRON","It will not be possible to revert this operation.":"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u0446\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u044e \u0431\u0443\u0434\u0435 \u043d\u0435\u043c\u043e\u0436\u043b\u0438\u0432\u043e.","JS description":"\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043f\u0440\u0430\u0432\u0438\u043b \u0448\u043b\u044f\u0445\u043e\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044f Javascript","Januar":"\u0441\u0456\u0447\u0435\u043d\u044c","January":"\u0441\u0456\u0447\u043d\u044f","July":"\u043b\u0438\u043f\u0435\u043d\u044c","June":"\u0447\u0435\u0440\u0432\u0435\u043d\u044c","Just check":"\u041f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435","Language:":"\u041c\u043e\u0432\u0443:","Learn More":"\u0412\u0438\u0432\u0447\u0430\u0439\u0442\u0435 \u0431\u0456\u043b\u044c\u0448\u0435","Light style":"\u041b\u0435\u0433\u043a\u0438\u0439 \u0441\u0442\u0438\u043b\u044c","Limit":"\u041b\u0456\u043c\u0456\u0442","Locate file":"\u0417\u043d\u0430\u0439\u0442\u0438 \u0444\u0430\u0439\u043b","Log outputs":"\u0412\u0438\u0445\u043e\u0434\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0443","Log text":"\u0422\u0435\u043a\u0441\u0442 \u0436\u0443\u0440\u043d\u0430\u043b\u0443","Make a HTTP get request":"\u0417\u0440\u043e\u0431\u0456\u0442\u044c HTTP-\u0437\u0430\u043f\u0438\u0442 \u043d\u0430 \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f","Make a pause between actions":"\u041c\u0456\u0436 \u0434\u0456\u044f\u043c\u0438 \u0440\u043e\u0431\u0456\u0442\u044c \u043f\u0430\u0443\u0437\u0443","March":"\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c","March ":"\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c","May":"\u041c\u043e\u0436\u0435","Menu":"\u041c\u0435\u043d\u044e","Message":"\u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f","Mo":"\u043f\u043d","Monday":"\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","Month":"\u043c\u0456\u0441\u044f\u0446\u044c","Name":"\u0406\u043c\'\u044f","No active host found":"\u0410\u043a\u0442\u0438\u0432\u043d\u0438\u0439 \u0445\u043e\u0441\u0442 \u043d\u0435 \u0437\u043d\u0430\u0439\u0434\u0435\u043d\u043e","Nothing found":"\u041d\u0456\u0447\u043e\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u0439\u0434\u0435\u043d\u043e","November":"\u041b\u0438\u0441\u0442\u043e\u043f\u0430\u0434","OK":"\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0443","October":"\u0436\u043e\u0432\u0442\u0435\u043d\u044c","Ok":"\u0412 \u043f\u043e\u0440\u044f\u0434\u043a\u0443","On condition change":"\u0417\u0430 \u0443\u043c\u043e\u0432\u0438 \u0437\u043c\u0456\u043d\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443","On script save or adapter start":"\u041f\u0456\u0434 \u0447\u0430\u0441 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043d\u044f \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e \u0430\u0431\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430","On weekdays":"\u0412 \u0431\u0443\u0434\u043d\u0456 \u0434\u043d\u0456","Operate two states":"\u041a\u0435\u0440\u0443\u0439\u0442\u0435 \u0434\u0432\u043e\u043c\u0430 \u0441\u0442\u0430\u043d\u0430\u043c\u0438","Operations with two states":"\u041e\u043f\u0435\u0440\u0430\u0446\u0456\u0457 \u0437 \u0434\u0432\u043e\u043c\u0430 \u0441\u0442\u0430\u043d\u0430\u043c\u0438","Pause":"\u041f\u0430\u0443\u0437\u0430","Pause execution":"\u041f\u0440\u0438\u0437\u0443\u043f\u0438\u043d\u0438\u0442\u0438 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f","Pause script":"\u041f\u0440\u0438\u0437\u0443\u043f\u0438\u043d\u0438\u0442\u0438 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439","Phone:":"\u0442\u0435\u043b\u0435\u0444\u043e\u043d:","Please select object ID...":"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440 \u043e\u0431\'\u0454\u043a\u0442\u0430...","Print some text in log":"\u041d\u0430\u0434\u0440\u0443\u043a\u0443\u0432\u0430\u0442\u0438 \u0442\u0435\u043a\u0441\u0442 \u0443 \u0436\u0443\u0440\u043d\u0430\u043b\u0456","Priority:":"\u041f\u0440\u0456\u043e\u0440\u0438\u0442\u0435\u0442:","Pushover":"Pushover","Pushsafer":"Pushsafer","Read only ID selected: %s":"\u0412\u0438\u0431\u0440\u0430\u043d\u043e \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440 \u043b\u0438\u0448\u0435 \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u043d\u043d\u044f: %s","Rename":"\u041f\u0435\u0440\u0435\u0439\u043c\u0435\u043d\u0443\u0432\u0430\u0442\u0438","Reorder scripts in folders":"\u0417\u043c\u0456\u043d\u0430 \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0457\u0432 \u0443 \u043f\u0430\u043f\u043a\u0430\u0445","Repeat":"\u041f\u043e\u0432\u0442\u043e\u0440\u0456\u0442\u044c","Restart":"\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c","Resume execution":"\u0412\u0456\u0434\u043d\u043e\u0432\u0438\u0442\u0438 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f","Root folder":"\u041a\u043e\u0440\u0435\u043d\u0435\u0432\u0430 \u043f\u0430\u043f\u043a\u0430","Rules description":"\u0421\u0442\u0432\u043e\u0440\u044e\u0439\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0437 \u0431\u043b\u043e\u043a\u0430\u043c\u0438 IF, THEN, ELSE","Run script":"\u0417\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439","Sa":"Sa","Saturday":"\u0421\u0443\u0431\u043e\u0442\u0430","Save":"\u0437\u0431\u0435\u0440\u0435\u0433\u0442\u0438","Save all":"\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u0432\u0441\u0435","Say It":"\u0421\u043a\u0430\u0436\u0438 \u0446\u0435","Say some text via sayit adapter":"\u0421\u043a\u0430\u0436\u0456\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0447\u0435\u0440\u0435\u0437 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 sayit","Schedule":"\u0440\u043e\u0437\u043a\u043b\u0430\u0434","Script":"\u0421\u0446\u0435\u043d\u0430\u0440\u0456\u0439","Script %s was modified on disk":"\u0421\u0446\u0435\u043d\u0430\u0440\u0456\u0439 %s \u0437\u043c\u0456\u043d\u0435\u043d\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0443","Script is not running":"\u0421\u0446\u0435\u043d\u0430\u0440\u0456\u0439 \u043d\u0435 \u043f\u0440\u0430\u0446\u044e\u0454","Search in scripts":"\u041f\u043e\u0448\u0443\u043a \u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445","Search...":"\u043f\u043e\u0448\u0443\u043a...","Select all":"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0435","Send email":"\u0412\u0456\u0434\u043f\u0440\u0430\u0432\u0438\u0442\u0438 \u043b\u0438\u0441\u0442","Sends an email":"\u041d\u0430\u0434\u0441\u0438\u043b\u0430\u0454 \u0435\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0438\u0439 \u043b\u0438\u0441\u0442","Sends message via Pushsafer":"\u041d\u0430\u0434\u0441\u0438\u043b\u0430\u0454 \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f \u0447\u0435\u0440\u0435\u0437 Pushsafer","Sends message via pushover":"\u041d\u0430\u0434\u0441\u0438\u043b\u0430\u0454 \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f \u0447\u0435\u0440\u0435\u0437 pushover","Sends message via telegram":"\u041d\u0430\u0434\u0441\u0438\u043b\u0430\u0454 \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c","Sends message via whatsapp-cmb":"\u041d\u0430\u0434\u0441\u0438\u043b\u0430\u0454 \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f \u0447\u0435\u0440\u0435\u0437 whatsapp-cmb","September":"\u0412\u0435\u0440\u0435\u0441\u0435\u043d\u044c","Set state action":"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u0434\u0456\u044e \u0441\u0442\u0430\u043d\u0443","Set with delay":"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u0456\u0437 \u0437\u0430\u0442\u0440\u0438\u043c\u043a\u043e\u044e","Shell command":"\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0438","Show javascript code":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u043a\u043e\u0434 Javascript","Show logs":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0438","Show only paused scripts":"\u041f\u043e\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 \u043b\u0438\u0448\u0435 \u043f\u0440\u0438\u0437\u0443\u043f\u0438\u043d\u0435\u043d\u0456 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0457","Show only running scripts":"\u041f\u043e\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 \u043b\u0438\u0448\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0456 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0457","Show only scripts with problems":"\u041f\u043e\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 \u043b\u0438\u0448\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0457 \u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438","Simulate":"\u0421\u0438\u043c\u0443\u043b\u044e\u0432\u0430\u0442\u0438","Some files will be rejected":"\u0414\u0435\u044f\u043a\u0456 \u0444\u0430\u0439\u043b\u0438 \u0431\u0443\u0434\u0435 \u0432\u0456\u0434\u0445\u0438\u043b\u0435\u043d\u043e","Sound:":"\u0437\u0432\u0443\u043a:","Stack":"\u0421\u0442\u0435\u043a","Start":"\u0441\u0442\u0430\u0440\u0442","Start script":"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0438 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439","State":"\u0414\u0435\u0440\u0436\u0430\u0432\u0430","State condition":"\u0421\u0442\u0430\u043d \u0441\u0442\u0430\u043d\u0443","Step into function":"\u041a\u0440\u043e\u043a \u0443 \u0444\u0443\u043d\u043a\u0446\u0456\u0457","Step out from function":"\u0412\u0438\u0439\u0442\u0438 \u0437 \u0444\u0443\u043d\u043a\u0446\u0456\u0457","Stop on exception":"\u0417\u0443\u043f\u0438\u043d\u043a\u0430 \u043d\u0430 \u0432\u0438\u043d\u044f\u0442\u043a\u0430\u0445","Su":"\u041d\u0434","Subject:":"\u0422\u0435\u043c\u0430:","Sunday":"\u043d\u0435\u0434\u0456\u043b\u044f","TS description":"\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043f\u0440\u0430\u0432\u0438\u043b \u0448\u043b\u044f\u0445\u043e\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044f Typescript","Telegram":"\u0422\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u0430","Text:":"\u0422\u0435\u043a\u0441\u0442:","Th":"\u0447\u0442","The script will be stopped and must be activated manually after debugging. Continue?":"\u0421\u0446\u0435\u043d\u0430\u0440\u0456\u0439 \u0431\u0443\u0434\u0435 \u0437\u0443\u043f\u0438\u043d\u0435\u043d\u043e, \u0456 \u0439\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u0443\u0432\u0430\u0442\u0438 \u0432\u0440\u0443\u0447\u043d\u0443 \u043f\u0456\u0441\u043b\u044f \u043d\u0430\u043b\u0430\u0433\u043e\u0434\u0436\u0435\u043d\u043d\u044f. \u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438?","This is advances option. You can write your own code here and it will be executed on trigger":"\u0426\u0435 \u0430\u0432\u0430\u043d\u0441\u043e\u0432\u0438\u0439 \u0432\u0430\u0440\u0456\u0430\u043d\u0442. \u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u0438 \u0442\u0443\u0442 \u0441\u0432\u0456\u0439 \u0432\u043b\u0430\u0441\u043d\u0438\u0439 \u043a\u043e\u0434, \u0456 \u0432\u0456\u043d \u0431\u0443\u0434\u0435 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043e \u043d\u0430 \u0442\u0440\u0438\u0433\u0435\u0440\u0456","Thursday":"\u0447\u0435\u0442\u0432\u0435\u0440","Time condition":"\u0423\u043c\u043e\u0432\u0430 \u0447\u0430\u0441\u0443","Title:":"\u041d\u0430\u0437\u0432\u0430:","To:":"\u0434\u043e:","Trigger with value":"\u0422\u0440\u0438\u0433\u0435\u0440 \u0437\u0456 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f\u043c","Triggered":"\u0421\u043f\u0440\u0430\u0446\u044c\u043e\u0432\u0443\u0454","Triggers":"\u0422\u0440\u0438\u0433\u0435\u0440\u0438","Triggers the on script saving or the javascript instance restart":"\u0406\u043d\u0456\u0446\u0456\u044e\u0454 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043d\u044f \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e \u0430\u0431\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a \u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 JavaScript","Triggers the rule on update or change of some state":"\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0454 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0440\u0438 \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0456 \u0430\u0431\u043e \u0437\u043c\u0456\u043d\u0456 \u044f\u043a\u043e\u0433\u043e\u0441\u044c \u0441\u0442\u0430\u043d\u0443","Triggers the rule periodically or on some specific time":"\u0421\u043f\u0440\u0430\u0446\u044c\u043e\u0432\u0443\u0454 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0435\u0440\u0456\u043e\u0434\u0438\u0447\u043d\u043e \u0430\u0431\u043e \u0432 \u043f\u0435\u0432\u043d\u0438\u0439 \u0447\u0430\u0441","Tu":"\u0432\u0442","Tuesday":"\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","URL":"URL","Unknown error":"\u041d\u0435\u0432\u0456\u0434\u043e\u043c\u0430 \u043f\u043e\u043c\u0438\u043b\u043a\u0430","Unknown error!":"\u041d\u0435\u0432\u0456\u0434\u043e\u043c\u0430 \u043f\u043e\u043c\u0438\u043b\u043a\u0430!","User function":"\u0424\u0443\u043d\u043a\u0446\u0456\u044f \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430","User:":"\u041a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447:","Value":"\u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f","Vibration:":"\u0412\u0456\u0431\u0440\u0430\u0446\u0456\u044f:","Volume":"\u041e\u0431\u0441\u044f\u0433","We":"\u043c\u0438","Wednesday":"\u0421\u0435\u0440\u0435\u0434\u0430","Whatsapp-cmb":"Whatsapp-cmb","Write":"\u041d\u0430\u043f\u0438\u0448\u0456\u0442\u044c","Write your own code":"\u041d\u0430\u043f\u0438\u0448\u0456\u0442\u044c \u0432\u043b\u0430\u0441\u043d\u0438\u0439 \u043a\u043e\u0434","Yes":"\u0422\u0430\u043a","Yet exists!":"\u0412\u0441\u0435 \u0436 \u0456\u0441\u043d\u0443\u0454!","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 %s \u0432 URL-\u0430\u0434\u0440\u0435\u0441\u0456, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043f\u043e\u0442\u043e\u0447\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430, %id, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430, %name, \u0449\u043e\u0431 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u043d\u0430\u0437\u0432\u0443 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440\u0430 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430, \u0430\u0431\u043e %old, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0441\u0442\u0430\u0440\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 %s \u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0456, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043f\u043e\u0442\u043e\u0447\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430, %id, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430, %name, \u0449\u043e\u0431 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u043d\u0430\u0437\u0432\u0443 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440\u0430 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430, \u0430\u0431\u043e %old, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0441\u0442\u0430\u0440\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 %s \u0443 \u0442\u0435\u043a\u0441\u0442\u0456 \u0434\u043b\u044f \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430, %id \u0434\u043b\u044f \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440\u0430 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430, %name \u0434\u043b\u044f \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0456\u043c\u0435\u043d\u0456 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440\u0430 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430 \u0430\u0431\u043e %old \u0434\u043b\u044f \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 %s \u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u0456, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043f\u043e\u0442\u043e\u0447\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430, %id, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430, %name, \u0449\u043e\u0431 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u043d\u0430\u0437\u0432\u0443 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440\u0430 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430, \u0430\u0431\u043e %old, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0441\u0442\u0430\u0440\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430","[equal]":"[\u0440\u0456\u0432\u043d\u0438\u0439]","[greater or equal]":"[\u0431\u0456\u043b\u044c\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454]","[greater]":"[\u0431\u0456\u043b\u044c\u0448\u0438\u0439]","[hysteresis]":"[\u0433\u0456\u0441\u0442\u0435\u0440\u0435\u0437\u0438\u0441]","[includes]":"[\u0432\u043a\u043b\u044e\u0447\u0430\u0454]","[less or equal]":"[\u043c\u0435\u043d\u0448\u0435 \u0430\u0431\u043e \u0440\u0456\u0432\u043d\u043e]","[less]":"[\u043c\u0435\u043d\u0448\u0435]","[not equal]":"[\u043d\u0435 \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454]","acknowledgment":"\u043f\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043d\u043d\u044f","all":"\u0432\u0441\u0435","and":"\u0456","astro":"\u0410\u0441\u0442\u0440\u043e","at":"\u0432","clear running":"\u0447\u0456\u0442\u043a\u0438\u0439 \u0431\u0456\u0433","control":"\u041a\u041e\u041d\u0422\u0420\u041e\u041b\u042c","copy":"\u043a\u043e\u043f\u0456\u044f","cron":"CRON","dawn":"\u0421\u0432\u0456\u0442\u0430\u043d\u043e\u043a","default":"\u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","dusk":"\u0421\u0443\u0442\u0456\u043d\u043a\u0438","else":"\u0456\u043d\u0448\u0435","equal to":"\u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454","every":"\u043a\u043e\u0436\u0435\u043d","every hour at 0 minutes":"\u0449\u043e\u0433\u043e\u0434\u0438\u043d\u0438 \u043e 0 \u0445\u0432\u0438\u043b\u0438\u043d","false":"\u043f\u043e\u043c\u0438\u043b\u043a\u043e\u0432\u0438\u0439","file reading has failed: %s":"\u043d\u0435 \u0432\u0434\u0430\u043b\u043e\u0441\u044f \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u0438 \u0444\u0430\u0439\u043b: %s","file reading was aborted":"\u0447\u0438\u0442\u0430\u043d\u043d\u044f \u0444\u0430\u0439\u043b\u0443 \u0431\u0443\u043b\u043e \u043f\u0435\u0440\u0435\u0440\u0432\u0430\u043d\u043e","filter_func":"\u0444\u0443\u043d\u043a\u0446\u0456\u044f","filter_id":"ID","filter_name":"\u0406\u043c\'\u044f","filter_role":"\u0420\u043e\u043b\u044c","filter_room":"\u041a\u0456\u043c\u043d\u0430\u0442\u0430","for edit or create script":"\u0434\u043b\u044f \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u043d\u043d\u044f \u0430\u0431\u043e \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e","goldenHour":"\u0417\u043e\u043b\u043e\u0442\u0430 \u0433\u043e\u0434\u0438\u043d\u0430","goldenHourEnd":"\u041a\u0456\u043d\u0435\u0446\u044c \u0437\u043e\u043b\u043e\u0442\u043e\u0457 \u0433\u043e\u0434\u0438\u043d\u0438","greater or equal":"\u0431\u0456\u043b\u044c\u0448\u0438\u0439 \u0430\u0431\u043e \u0440\u0456\u0432\u043d\u0438\u0439","greater or equal to":"\u0431\u0456\u043b\u044c\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454","greater than":"\u0431\u0456\u043b\u044c\u0448\u0435, \u043d\u0456\u0436, \u0432\u0435\u043b\u0438\u0447\u043d\u0456\u0448\u0435 \u043d\u0456\u0436, \u043a\u0440\u0443\u0442\u0456\u0448\u0438\u0439 \u0437\u0430","help_just_check":"\u041a\u043e\u0434 \u0431\u0443\u0434\u0435 \u0432\u0438\u043a\u043e\u043d\u0443\u0432\u0430\u0442\u0438\u0441\u044f \u043b\u0438\u0448\u0435 \u0449\u043e\u0440\u0430\u0437\u0443, \u043a\u043e\u043b\u0438 \u0443\u043c\u043e\u0432\u0430 \u0432\u0438\u043a\u043e\u043d\u0443\u0454\u0442\u044c\u0441\u044f. \u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434 \u044f\u043a\u0449\u043e \u0441\u043f\u0440\u0430\u0446\u044c\u043e\u0432\u0443\u0454 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0438 \u0442\u0430 \u0443\u043c\u043e\u0432\u0430 \xab\u044f\u043a\u0449\u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043f\u0435\u0440\u0435\u0432\u0438\u0449\u0443\u0454 20\xb0C\xbb, \u0434\u0456\u0457 \xab\u0442\u043e\u0434\u0456\xbb \u0432\u0438\u043a\u043e\u043d\u0443\u0432\u0430\u0442\u0438\u043c\u0443\u0442\u044c\u0441\u044f \u0449\u043e\u0440\u0430\u0437\u0443, \u043a\u043e\u043b\u0438 \u0434\u0430\u0442\u0447\u0438\u043a \u043d\u0430\u0434\u0441\u0438\u043b\u0430\u0454 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443, \u0456 \u0432\u043e\u043d\u0430 \u043f\u0435\u0440\u0435\u0432\u0438\u0449\u0443\u0454 20\xb0C. \u041d\u0430 21\xb0C, \u043d\u0430 22\xb0C \u0456 \u0442\u0430\u043a \u0434\u0430\u043b\u0456.","help_on_change":"\u041a\u043e\u0434 \u0431\u0443\u0434\u0435 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043e \u043b\u0438\u0448\u0435 \u0443 \u0440\u0430\u0437\u0456 \u0437\u043c\u0456\u043d\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443 \u0443\u043c\u043e\u0432\u0438. \u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434 \u044f\u043a\u0449\u043e \u0441\u043f\u0440\u0430\u0446\u044c\u043e\u0432\u0443\u0454 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0438 \u0442\u0430 \u0443\u043c\u043e\u0432\u0430 \xab\u044f\u043a\u0449\u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043f\u0435\u0440\u0435\u0432\u0438\u0449\u0443\u0454 20\xb0C\xbb, \u0434\u0456\u0457 \xab\u0442\u043e\u0434\u0456\xbb \u0431\u0443\u0434\u0443\u0442\u044c \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u0456 \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043a\u043e\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0431\u0443\u0434\u0435 \u0432\u0438\u0449\u0435 20. \u041d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0443 \u0434\u0456\u0457 \xab\u0442\u043e\u0434\u0456\xbb \u0431\u0443\u0434\u0435 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043e, \u043a\u043e\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043f\u0430\u0434\u0430\u0454 \u043d\u0438\u0436\u0447\u0435 20, \u0430 \u043f\u043e\u0442\u0456\u043c \u0437\u043d\u043e\u0432\u0443 \u043f\u0456\u0434\u043d\u0456\u043c\u0430\u0454\u0442\u044c\u0441\u044f \u0432\u0438\u0449\u0435 20.","high priority":"\u0432\u0438\u0441\u043e\u043a\u0438\u0439 \u043f\u0440\u0456\u043e\u0440\u0438\u0442\u0435\u0442","high-priority":"\u0432\u0438\u0441\u043e\u043a\u0438\u0439 \u043f\u0440\u0456\u043e\u0440\u0438\u0442\u0435\u0442","highest priority":"\u043d\u0430\u0439\u0432\u0438\u0449\u0438\u0439 \u043f\u0440\u0456\u043e\u0440\u0438\u0442\u0435\u0442","hours":"\u0433\u043e\u0434\u0438\u043d\u0438","includes":"\u0432\u043a\u043b\u044e\u0447\u0430\u0454 \u0432 \u0441\u0435\u0431\u0435","interval":"\u0456\u043d\u0442\u0435\u0440\u0432\u0430\u043b","just check":"\u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435","less or equal":"\u043c\u0435\u043d\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454","less or equal to":"\u043c\u0435\u043d\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454","less than":"\u043c\u0435\u043d\u0448\u0435 \u043d\u0456\u0436","lower priority":"\u043d\u0438\u0436\u0447\u0438\u0439 \u043f\u0440\u0456\u043e\u0440\u0438\u0442\u0435\u0442","lowest priority":"\u043d\u0430\u0439\u043d\u0438\u0436\u0447\u0438\u0439 \u043f\u0440\u0456\u043e\u0440\u0438\u0442\u0435\u0442","magic":"\u043c\u0430\u0433\u0456\u044f","milliseconds":"\u043c\u0456\u043b\u0456\u0441\u0435\u043a\u0443\u043d\u0434","minutes":"\u0445\u0432\u0438\u043b\u0438\u043d","ms":"\u0420\u0421","nadir":"\u041d\u0430\u0434\u0456\u0440","nauticalDawn":"\u041c\u043e\u0440\u0441\u044c\u043a\u0438\u0439 \u0441\u0432\u0456\u0442\u0430\u043d\u043e\u043a","nauticalDusk":"\u041c\u043e\u0440\u0441\u044c\u043a\u0456 \u0441\u0443\u0442\u0456\u043d\u043a\u0438","night":"\u043d\u0456\u0447","nightEnd":"\u041a\u0456\u043d\u0435\u0446\u044c \u043d\u043e\u0447\u0456","no blocks found":"\u0411\u043b\u043e\u043a\u0456\u0432 \u043d\u0435 \u0437\u043d\u0430\u0439\u0434\u0435\u043d\u043e","no group":"\u041d\u0415\u041c\u0410\u0404 \u0413\u0420\u0423\u041f\u0418","normal":"\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e","normal priority":"\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0438\u0439 \u043f\u0440\u0456\u043e\u0440\u0438\u0442\u0435\u0442","not equal to":"\u043d\u0435 \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454","not properly connected":"\u0426\u0435\u0439 \u0431\u043b\u043e\u043a \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0437\u2019\u0454\u0434\u043d\u0430\u043d\u0438\u0439 \u0437 \u0456\u043d\u0448\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438.","offset":"\u0437\u0441\u0443\u0432","on change":"\u043d\u0430 \u0437\u043c\u0456\u043d\u0443","on condition change":"\u043f\u0440\u043e \u0437\u043c\u0456\u043d\u0443 \u0443\u043c\u043e\u0432","on update":"\u043d\u0430 \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f","one":"\u043e\u0434\u0438\u043d","or":"\u0430\u0431\u043e","quiet":"\u0442\u0438\u0445\u043e","reset search":"\u0441\u043a\u0438\u043d\u0443\u0442\u0438 \u043f\u043e\u0448\u0443\u043a","search":"\u043f\u043e\u0448\u0443\u043a","seconds":"\u0441\u0435\u043a\u0443\u043d\u0434","solarNoon":"\u0421\u043e\u043d\u044f\u0447\u043d\u0438\u0439 \u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c","store in":"\u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0442\u0438 \u0432","sunrise":"\u0441\u0445\u0456\u0434 \u0441\u043e\u043d\u0446\u044f","sunriseEnd":"\u041a\u0456\u043d\u0435\u0446\u044c \u0441\u0445\u043e\u0434\u0443 \u0441\u043e\u043d\u0446\u044f","sunset":"\u0417\u0430\u0445\u0456\u0434 \u0441\u043e\u043d\u0446\u044f","sunsetStart":"\u041f\u043e\u0447\u0430\u0442\u043e\u043a \u0437\u0430\u0445\u043e\u0434\u0443 \u0441\u043e\u043d\u0446\u044f","then":"\u043f\u043e\u0442\u0456\u043c","toggle value":"\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043f\u0435\u0440\u0435\u043c\u0438\u043a\u0430\u043d\u043d\u044f","tooltip_ack":"\u0412\u0438\u0437\u043d\u0430\u0442\u0438","tooltip_from":"\u0412\u0456\u0434","tooltip_lc":"\u0412\u043e\u0441\u0442\u0430\u043d\u043d\u0454 \u0437\u043c\u0456\u043d\u0435\u043d\u043e","tooltip_quality":"\u044f\u043a\u0456\u0441\u0442\u044c","tooltip_ts":"\u041c\u0456\u0442\u043a\u0430 \u0447\u0430\u0441\u0443","tooltip_user":"\u041a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447","tooltip_value":"\u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f","true":"\u043f\u0440\u0430\u0432\u0434\u0430","two":"\u0434\u0432\u0430","undefined":"\u043d\u0435\u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439","update":"\u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f","use seconds":"\u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u0438","when":"\u043a\u043e\u043b\u0438","with":"\u0437","with date":"\u0437 \u0434\u0430\u0442\u043e\u044e","with offset":"\u0437\u0456 \u0437\u043c\u0456\u0449\u0435\u043d\u043d\u044f\u043c","wizard":"\u043c\u0430\u0439\u0441\u0442\u0435\u0440","easy":"\u043b\u0435\u0433\u043a\u043e","for programmers":"\u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0456\u0441\u0442\u0456\u0432","for professionals":"\u0434\u043b\u044f \u043f\u0440\u043e\u0444\u0435\u0441\u0456\u043e\u043d\u0430\u043b\u0456\u0432","Duplicate name":"\u041f\u043e\u0432\u0442\u043e\u0440\u044e\u0432\u0430\u043d\u0435 \u0456\u043c\'\u044f","Empty name is not allowed":"\u041f\u043e\u0440\u043e\u0436\u043d\u0454 \u0456\u043c\'\u044f \u043d\u0435 \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u0454\u0442\u044c\u0441\u044f","Astrological events today":"\u0410\u0441\u0442\u0440\u043e\u043b\u043e\u0433\u0456\u0447\u043d\u0456 \u043f\u043e\u0434\u0456\u0457 \u0441\u044c\u043e\u0433\u043e\u0434\u043d\u0456","Show astrological events":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0430\u0441\u0442\u0440\u043e\u043b\u043e\u0433\u0456\u0447\u043d\u0456 \u043f\u043e\u0434\u0456\u0457","Time":"\u0447\u0430\u0441","Description":"\u043e\u043f\u0438\u0441","nextSunrise":"\u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0441\u0445\u0456\u0434 \u0441\u043e\u043d\u0446\u044f","nextSunset":"\u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0437\u0430\u0445\u0456\u0434 \u0441\u043e\u043d\u0446\u044f"}')},58246:function(e){e.exports=JSON.parse('{"-":"-","Add":"\u6dfb\u52a0","Add new script":"\u6dfb\u52a0\u65b0\u811a\u672c","All files will be accepted":"\u6240\u6709\u6587\u4ef6\u90fd\u5c06\u88ab\u63a5\u53d7","April":"\u56db\u6708","Are you sure?":"\u4f60\u786e\u5b9a\u5417\uff1f","August":"\u516b\u6708","Blockly description":"\u6309\u56fe\u5f62\u5757\u521b\u5efa\u89c4\u5219","Cancel":"\u53d6\u6d88","Cannot delete non empty item!":"\u65e0\u6cd5\u5220\u9664\u975e\u7a7a\u9879\u76ee\uff01","Change layout":"\u53d8\u66f4\u7248\u9762","Check blocks":"\u68c0\u67e5\u5757","Check is not active, because javascript adapter is disabled":"\u68c0\u67e5\u672a\u6fc0\u6d3b\uff0c\u56e0\u4e3a\u7981\u7528\u4e86Javascript\u9002\u914d\u5668","Clear search input":"\u6e05\u9664\u641c\u7d22\u8f93\u5165","Click on this icon":"\u5355\u51fb\u6b64\u56fe\u6807","Close":"\u5173\u95ed","Close all but current":"\u5173\u95ed\u6240\u6709\uff08\u5f53\u524d\u9664\u5916\uff09","Collapse all":"\u5168\u90e8\u6536\u7f29","Configuration not saved.":"\u914d\u7f6e\u672a\u4fdd\u5b58\u3002","Convert blockly to javascript for ever.":"\u7acb\u5373\u5c06blockly\u8f6c\u6362\u4e3aJavascript\u3002","Copy script":"\u590d\u5236\u811a\u672c","Copy to clipboard":"\u590d\u5236\u5230\u526a\u8d34\u677f","Create new":"\u521b\u5efa\u65b0\u7684","Create new folder":"\u521b\u5efa\u65b0\u6587\u4ef6\u5939","Create new script":"\u521b\u5efa\u65b0\u811a\u672c","Create or edit CRON or time wizard":"\u521b\u5efa\u6216\u7f16\u8f91\u5468\u671f\u4efb\u52a1\u6216\u65f6\u95f4\u5411\u5bfc","Dark Theme":"\u6df1\u8272\u8c03\u4e3b\u9898","Dark style":"\u6df1\u8272\u8c03\u98ce\u683c","Debug options":"\u8c03\u8bd5\u9009\u9879","December":"\u5341\u4e8c\u6708","Define cron...":"\u5b9a\u4e49\u5468\u671f\u4efb\u52a1...","Define schedule...":"\u5b9a\u4e49\u8c03\u5ea6\u5668......","Delete":"\u5220\u9664","Delete %s":"\u5220\u9664%s...","Delete folder":"\u5220\u9664\u6587\u4ef6\u5939","Delete script":"\u5220\u9664\u811a\u672c","Deselect all":"\u53d6\u6d88\u5168\u9009","Discard changes for %s":"\u653e\u5f03%s\u7684\u66f4\u6539","Done":"\u5b8c\u6210","Drop some files here or click...":"\u5c06\u6587\u4ef6\u62d6\u62fd\u5230\u8fd9\u91cc\u6216\u5355\u51fb......","Edit script or just double click":"\u53cc\u51fb\u7f16\u8f91\u811a\u672c","End search mode":"\u7ed3\u675f\u641c\u7d22\u6a21\u5f0f","Error":"\u9519\u8bef","Error was found":"\u53d1\u73b0\u9519\u8bef","Existing scripts will be overwritten.":"\u73b0\u6709\u811a\u672c\u5c06\u88ab\u8986\u76d6\u3002","Expand all":"\u5c55\u5f00\u5168\u90e8","Expert mode":"\u4e13\u5bb6\u6a21\u5f0f","Export":"\u5bfc\u51fa","Export all scripts":"\u5bfc\u51fa\u6240\u6709\u811a\u672c","Export blocks":"\u5bfc\u51fa\u5757","Export selected blocks":"\u5bfc\u51fa\u9009\u5b9a\u7684\u5757","February":"\u4e8c\u6708","Folder":"\u6587\u4ef6\u5939","Friday":"\u661f\u671f\u4e94","Function editor":"\u529f\u80fd\u7f16\u8f91\u5668","ID":"ID","Import":"\u5bfc\u5165","Import blocks":"\u5bfc\u5165\u5757","Import error":"\u5bfc\u5165\u9519\u8bef","Import scripts":"\u5bfc\u5165\u811a\u672c","Insert object ID":"\u63d2\u5165\u5bf9\u8c61ID","Instance":"\u5b9e\u4f8b","Instance is disabled":"\u5b9e\u4f8b\u5df2\u7981\u7528","Invalid CRON":"\u65e0\u6548\u7684\u5468\u671f\u4efb\u52a1","It will not be possible to revert this operation.":"\u65e0\u6cd5\u6062\u590d\u6b64\u64cd\u4f5c\u3002","JS description":"\u901a\u8fc7\u7f16\u5199Javascript\u6765\u521b\u5efa\u89c4\u5219","January":"\u4e00\u6708","July":"\u4e03\u6708","June":"\u516d\u6708","Learn More":"\u4e86\u89e3\u66f4\u591a","Light style":"\u6d45\u8272\u8c03\u98ce\u683c","Locate file":"\u5b9a\u4f4d\u6587\u4ef6","Log outputs":"\u8bb0\u5f55\u8f93\u51fa","March":"\u4e09\u6708","May":"\u4e94\u6708","Menu":"\u83dc\u5355","Message":"\u4fe1\u606f","Monday":"\u661f\u671f\u4e00","Name":"\u540d\u79f0","No active host found":"\u627e\u4e0d\u5230\u6d3b\u52a8\u4e3b\u673a","November":"\u5341\u4e00\u6708","October":"\u5341\u6708","Ok":"\u786e\u5b9a","On weekdays":"\u5728\u5de5\u4f5c\u65e5","Pause script":"\u6682\u505c\u811a\u672c","Please select object ID...":"\u8bf7\u9009\u62e9\u5bf9\u8c61ID...","Rename":"\u91cd\u547d\u540d","Reorder scripts in folders":"\u91cd\u65b0\u6392\u5e8f\u6587\u4ef6\u5939\u4e2d\u7684\u811a\u672c","Repeat":"\u91cd\u590d","Restart":"\u91cd\u542f","Root folder":"\u6839\u6587\u4ef6\u5939","Run script":"\u8fd0\u884c\u811a\u672c","Saturday":"\u661f\u671f\u516d","Save":"\u4fdd\u5b58","Script":"\u811a\u672c","Script %s was modified on disk":"\u811a\u672c%s\u5df2\u5728\u78c1\u76d8\u4e0a\u4fee\u6539","Script is not running":"\u811a\u672c\u6ca1\u6709\u8fd0\u884c","Search in scripts":"\u5728\u811a\u672c\u4e2d\u641c\u7d22","Search...":"\u641c\u7d22...","Select all":"\u5168\u9009","September":"\u4e5d\u6708","Show javascript code":"\u663e\u793aJavascript\u4ee3\u7801","Show only paused scripts":"\u4ec5\u663e\u793a\u6682\u505c\u7684\u811a\u672c","Show only running scripts":"\u4ec5\u663e\u793a\u6b63\u5728\u8fd0\u884c\u7684\u811a\u672c","Show only scripts with problems":"\u4ec5\u663e\u793a\u6709\u95ee\u9898\u7684\u811a\u672c","Some files will be rejected":"\u6709\u4e9b\u6587\u4ef6\u5c06\u88ab\u62d2\u7edd","Sunday":"\u661f\u671f\u65e5","TS description":"\u901a\u8fc7\u7f16\u5199Typescript\u6765\u521b\u5efa\u89c4\u5219","Thursday":"\u661f\u671f\u56db","Tuesday":"\u661f\u671f\u4e8c","Unknown error":"\u672a\u77e5\u9519\u8bef","Unknown error!":"\u672a\u77e5\u9519\u8bef\uff01","Wednesday":"\u661f\u671f\u4e09","Yet exists!":"\u4e0d\u5b58\u5728\uff01","copy":"\u590d\u5236","file reading has failed: %s":"\u6587\u4ef6\u8bfb\u53d6\u5931\u8d25\uff1a%s","file reading was aborted":"\u6587\u4ef6\u8bfb\u53d6\u4e2d\u6b62","filter_func":"\u529f\u80fd","filter_id":"ID","filter_name":"\u540d\u5b57","filter_role":"\u89d2\u8272","filter_room":"\u623f\u95f4","for edit or create script":"\u7528\u4e8e\u7f16\u8f91\u6216\u521b\u5efa\u811a\u672c","no blocks found":"\u627e\u4e0d\u5230\u5757","no group":"\u6ca1\u6709\u7ec4","not properly connected":"\u6b64\u5757\u672a\u6b63\u786e\u8fde\u63a5\u5230\u5176\u4ed6\u5757\u3002","tooltip_ack":"\u786e\u8ba4","tooltip_from":"\u4ece","tooltip_lc":"\u4e0a\u4e00\u6b21\u6539\u53d8","tooltip_quality":"\u8d28\u91cf","tooltip_ts":"\u65f6\u95f4\u6233","tooltip_user":"\u7528\u6237","tooltip_value":"\u503c","use seconds":"\u7cbe\u786e\u5230\u79d2","Save all":"\u4fdd\u5b58\u5168\u90e8","Change theme (actual \\"%s\\")":"\u66f4\u6539\u4e3b\u9898\uff08\u73b0\u5728\u4e3a\u201c%s\u201d\uff09","Hide logs":"\u9690\u85cf\u65e5\u5fd7","Show logs":"\u663e\u793a\u8bb0\u5f55","Rules description":"\u4f7f\u7528IF\uff0cTHEN\uff0cELSE\u5757\u521b\u5efa\u89c4\u5219","help_on_change":"\u4ec5\u5f53\u6761\u4ef6\u7ed3\u679c\u66f4\u6539\u65f6\uff0c\u4ee3\u7801\u624d\u4f1a\u6267\u884c\u3002\u4f8b\u5982\u3002\u5982\u679c\u89e6\u53d1\u6e29\u5ea6\u4f20\u611f\u5668\u503c\u4e14\u6761\u4ef6\u4e3a\u201c\u5982\u679c\u6e29\u5ea6\u5927\u4e8e20\xb0C\u201d\uff0c\u5219\u6e29\u5ea6\u8d85\u8fc720\u65f6\u5c06\u6267\u884c\u4e00\u6b21\u201c\u5219\u201d\u52a8\u4f5c\uff0c\u4e0b\u4e00\u6b21\uff0c\u5f53\u6e29\u5ea6\u8d85\u8fc720\u65f6\u5c06\u6267\u884c\u201c\u5219\u201d\u52a8\u4f5c\u4f4e\u4e8e20\u5931\u8d25\uff0c\u7136\u540e\u518d\u6b21\u8d85\u8fc720\u3002","help_just_check":"\u4ec5\u5728\u6761\u4ef6\u4e3a\u771f\u65f6\u624d\u6267\u884c\u4ee3\u7801\u3002\u4f8b\u5982\u3002\u5982\u679c\u89e6\u53d1\u6e29\u5ea6\u4f20\u611f\u5668\u503c\u5e76\u4e14\u6761\u4ef6\u4e3a\u201c\u5982\u679c\u6e29\u5ea6\u5927\u4e8e20\xb0C\u201d\uff0c\u5219\u6bcf\u6b21\u4f20\u611f\u5668\u53d1\u9001\u6e29\u5ea6\u4e14\u6e29\u5ea6\u8d85\u8fc720\xb0C\u65f6\uff0c\u5c06\u6267\u884c\u201c\u7136\u540e\u201d\u52a8\u4f5c\u3002 21\xb0C\uff0c22\xb0C\u7b49\u3002","On condition change":"\u6761\u4ef6\u53d8\u5316\u65f6","Just check":"\u53ea\u662f\u68c0\u67e5","when":"\u4ec0\u4e48\u65f6\u5019","and":"\u548c","then":"\u7136\u540e","or":"\u6216","else":"\u522b\u7684","Nothing found":"\u6ca1\u6709\u53d1\u73b0","reset search":"\u91cd\u7f6e\u641c\u7d22","Read only ID selected: %s":"\u9009\u62e9\u7684\u53ea\u8bfbID\uff1a%s","OK":"\u597d\u7684","Triggers":"\u6273\u673a","cron":"\u514b\u6717","wizard":"\u5deb\u5e08","interval":"\u95f4\u9694","at":"\u5728","astro":"\u5929\u6587","on condition change":"\u5728\u6761\u4ef6\u53d8\u5316\u65f6","just check":"\u53ea\u662f\u68c0\u67e5","Explanation":"\u89e3\u91ca","seconds":"\u79d2","minutes":"\u5206\u949f","hours":"\u5c0f\u65f6","Every day":"\u6bcf\u5929","milliseconds":"\u6beb\u79d2","Copied":"\u590d\u5236\u7684","nadir":"\u6700\u4f4e\u70b9","nightEnd":"\u591c\u665a\u7ed3\u675f","nauticalDawn":"\u822a\u6d77\u9ece\u660e","dawn":"\u9ece\u660e","sunrise":"\u65e5\u51fa","sunriseEnd":"\u65e5\u51fa\u7ed3\u675f","goldenHourEnd":"\u9ec4\u91d1\u65f6\u6bb5\u7ed3\u675f","solarNoon":"\u661f\u671f\u65e5\u6b63\u5348","goldenHour":"\u9ec4\u91d1\u65f6\u6bb5","sunsetStart":"\u65e5\u843d\u5f00\u59cb","sunset":"\u65e5\u843d","dusk":"\u9ec4\u660f","nauticalDusk":"\u822a\u6d77\u9ec4\u660f","night":"\u591c\u665a","one":"\u4e00","two":"\u4e8c","true":"\u771f\u7684","false":"\u9519\u8bef\u7684","search":"\u641c\u7d22","Actions":"\u52a8\u4f5c","Conditions":"\u60c5\u51b5","Schedule":"\u65e5\u7a0b","Start script":"\u542f\u52a8\u811a\u672c","State":"\u72b6\u6001","State condition":"\u72b6\u6001\u6761\u4ef6","Time condition":"\u65f6\u95f4\u6761\u4ef6","Astrological":"\u5929\u6587","Set state action":"\u8bbe\u5b9a\u72b6\u6001\u52a8\u4f5c","Exec":"\u6267\u884c\u529b","HTTP Call":"HTTP\u547c\u53eb","Log text":"\u8bb0\u5f55\u6587\u5b57","Pause":"\u6682\u505c","on change":"\u5728\u53d8\u5316","control":"\u63a7\u5236","Say It":"Say It","every hour at 0 minutes":"\u6bcf\u5c0f\u65f60\u5206\u949f","On script save or adapter start":"\u5728\u811a\u672c\u4fdd\u5b58\u6216\u9002\u914d\u5668\u542f\u52a8\u65f6","equal to":"\u7b49\u4e8e","Actual time of day":"\u4e00\u5929\u4e2d\u7684\u5b9e\u9645\u65f6\u95f4","with":"\u548c","Shell command":"Shell\u547d\u4ee4","URL":"\u7f51\u5740","Instance:":"\u5b9e\u4f8b\uff1a","Language:":"\u8bed\u8a00\uff1a","Volume":"\u4f53\u79ef","Text:":"\u6587\u672c\uff1a","undefined":"\u4e0d\u660e\u786e\u7684","Default":"\u9ed8\u8ba4","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"\u60a8\u53ef\u4ee5\u5728\u6587\u672c\u4e2d\u4f7f\u7528 %s \u663e\u793a\u5f53\u524d\u89e6\u53d1\u503c\uff0c%id \u4f7f\u7528\u89e6\u53d1\u5bf9\u8c61 ID\uff0c%name \u663e\u793a\u89e6\u53d1\u5bf9\u8c61 ID \u540d\u79f0\u6216 %old \u4f7f\u7528\u65e7\u89e6\u53d1\u503c","Instructions":"\u6307\u793a","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"\u60a8\u53ef\u4ee5\u5728 URL \u4e2d\u4f7f\u7528 %s \u4ee5\u4f7f\u7528\u5f53\u524d\u89e6\u53d1\u503c\uff0c%id \u4ee5\u4f7f\u7528\u89e6\u53d1\u5bf9\u8c61 ID\uff0c%name \u4ee5\u663e\u793a\u89e6\u53d1\u5bf9\u8c61 ID \u540d\u79f0\u6216 %old \u4ee5\u4f7f\u7528\u65e7\u89e6\u53d1\u503c","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"\u60a8\u53ef\u4ee5\u5728\u503c\u4e2d\u4f7f\u7528 %s \u4ee5\u4f7f\u7528\u5f53\u524d\u89e6\u53d1\u5668\u503c\uff0c%id \u4f7f\u7528\u89e6\u53d1\u5bf9\u8c61 ID\uff0c%name \u663e\u793a\u89e6\u53d1\u5bf9\u8c61 ID \u540d\u79f0\u6216 %old \u4f7f\u7528\u65e7\u89e6\u53d1\u5668\u503c","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"\u60a8\u53ef\u4ee5\u5728\u547d\u4ee4\u4e2d\u4f7f\u7528 %s \u4ee5\u4f7f\u7528\u5f53\u524d\u89e6\u53d1\u503c\uff0c%id \u4f7f\u7528\u89e6\u53d1\u5bf9\u8c61 ID\uff0c%name \u663e\u793a\u89e6\u53d1\u5bf9\u8c61 ID \u540d\u79f0\u6216 %old \u4f7f\u7528\u65e7\u89e6\u53d1\u503c","every":"\u6bcf\u4e00\u4e2a","with offset":"\u5e26\u504f\u79fb","on update":"\u66f4\u65b0\u65f6","update":"\u66f4\u65b0","Triggers the rule periodically or on some specific time":"\u5b9a\u671f\u6216\u5728\u7279\u5b9a\u65f6\u95f4\u89e6\u53d1\u89c4\u5219","Triggers the on script saving or the javascript instance restart":"\u89e6\u53d1\u811a\u672c\u4fdd\u5b58\u6216javascript\u5b9e\u4f8b\u91cd\u542f","Triggers the rule on update or change of some state":"\u5728\u67d0\u4e9b\u72b6\u6001\u7684\u66f4\u65b0\u6216\u66f4\u6539\u65f6\u89e6\u53d1\u89c4\u5219","Compares the state value with user defined value":"\u6bd4\u8f83\u72b6\u6001\u503c\u548c\u7528\u6237\u5b9a\u4e49\u7684\u503c","Compares current time with the user specific time":"\u5c06\u5f53\u524d\u65f6\u95f4\u4e0e\u7528\u6237\u7279\u5b9a\u65f6\u95f4\u8fdb\u884c\u6bd4\u8f83","Compares current time with astrological event":"\u5c06\u5f53\u524d\u65f6\u95f4\u4e0e\u5929\u6587\u4e8b\u4ef6\u8fdb\u884c\u6bd4\u8f83","Control or update some state":"\u63a7\u5236\u6216\u66f4\u65b0\u67d0\u4e9b\u72b6\u6001","Executes some shell command":"\u6267\u884c\u4e00\u4e9bshell\u547d\u4ee4","Make a HTTP get request":"\u53d1\u51faHTTP\u83b7\u53d6\u8bf7\u6c42","Print some text in log":"\u5728\u65e5\u5fd7\u4e2d\u6253\u5370\u4e00\u4e9b\u6587\u672c","Make a pause between actions":"\u5728\u52a8\u4f5c\u4e4b\u95f4\u6682\u505c","Say some text via sayit adapter":"\u901a\u8fc7sayit\u9002\u914d\u5668\u8bf4\u4e00\u4e9b\u6587\u5b57","Telegram":"\u7535\u62a5","User:":"\u7528\u6237\uff1a","all":"\u5168\u90e8","Sends message via telegram":"\u901a\u8fc7\u7535\u62a5\u53d1\u9001\u6d88\u606f","Sends an email":"\u53d1\u9001\u90ae\u4ef6","Send email":"\u53d1\u9001\u7535\u5b50\u90ae\u4ef6","Sends message via pushover":"\u901a\u8fc7\u63a8\u64ad\u53d1\u9001\u6d88\u606f","Pushover":"\u4fef\u5367\u6491","Sends message via whatsapp-cmb":"\u901a\u8fc7whatsapp-cmb\u53d1\u9001\u6d88\u606f","Whatsapp-cmb":"Whatsapp\u7684cmb","Sends message via Pushsafer":"\u901a\u8fc7Pushsafer\u53d1\u9001\u6d88\u606f","Pushsafer":"\u63a8\u5b89\u5168","To:":"\u5230\uff1a","Subject:":"\u5b66\u79d1\uff1a","Body:":"\u8eab\u4f53\uff1a","Title:":"\u6807\u9898\uff1a","Sound:":"\u58f0\u97f3\uff1a","Priority:":"\u4f18\u5148\uff1a","magic":"\u9b54\u6cd5","quiet":"\u5b89\u9759\u7684","normal":"\u666e\u901a\u7684","high-priority":"\u9ad8\u4f18\u5148\u7ea7","acknowledgment":"\u81f4\u8c22","Phone:":"\u7535\u8bdd\uff1a","(optional)":"\uff08\u9009\u4fee\u7684\uff09","Vibration:":"\u632f\u52a8\uff1a","lowest priority":"\u6700\u4f4e\u4f18\u5148\u7ea7","lower priority":"\u4f4e\u4f18\u5148\u7ea7","normal priority":"\u6b63\u5e38\u4f18\u5148","high priority":"\u9ad8\u4f18\u5148\u7ea7","highest priority":"\u6700\u9ad8\u4f18\u5148\u7ea7","default":"\u9ed8\u8ba4","All":"\u6240\u6709","Write your own code":"\u7f16\u5199\u81ea\u5df1\u7684\u4ee3\u7801","User function":"\u7528\u6237\u529f\u80fd","This is advances option. You can write your own code here and it will be executed on trigger":"\u8fd9\u662f\u9ad8\u7ea7\u9009\u9879\u3002\u60a8\u53ef\u4ee5\u5728\u6b64\u5904\u7f16\u5199\u81ea\u5df1\u7684\u4ee3\u7801\uff0c\u5b83\u5c06\u5728\u89e6\u53d1\u5668\u4e0a\u6267\u884c","greater than":"\u6bd4...\u66f4\u68d2","offset":"\u62b5\u6d88","Function":"\u529f\u80fd","greater or equal to":"\u5927\u4e8e\u6216\u7b49\u4e8e","less or equal to":"\u5c0f\u4e8e\u6216\u7b49\u4e8e","less than":"\u5c11\u4e8e","not equal to":"\u4e0d\u7b49\u4e8e","[equal]":"[\u5e73\u7b49\u7684]","[greater or equal]":"[\u5927\u4e8e\u7b49\u4e8e]","[greater]":"[\u66f4\u5927]","[less or equal]":"[\u5c0f\u4e8e\u6216\u7b49\u4e8e]","[less]":"[\u8f83\u5c11\u7684]","[not equal]":"[\u4e0d\u76f8\u7b49]","[includes]":"[\u5305\u62ec]","[hysteresis]":"[\u78c1\u6ede]","greater or equal":"\u5927\u4e8e\u6216\u7b49\u4e8e","less or equal":"\u5c0f\u4e8e\u6216\u7b49\u4e8e","includes":"\u5305\u62ec",".":".","()":"()","Mo":"\u83ab","Tu":"\u6d82","We":"3","Th":"4","Fr":"r","Sa":"\u8428","Su":"\u82cf","Control or update some state with delay":"\u5ef6\u8fdf\u63a7\u5236\u6216\u66f4\u65b0\u67d0\u4e9b\u72b6\u6001","Delay":"\u5ef6\u8fdf","ms":"\u6beb\u79d2","Set with delay":"\u5ef6\u8fdf\u8bbe\u7f6e","clear running":"\u7545\u901a\u65e0\u963b","toggle value":"\u5207\u6362\u503c","Any month":"\u4efb\u4f55\u6708\u4efd","Any":"\u4efb\u4f55","with date":"\u6709\u65e5\u671f","Date":"\u65e5\u671f","Month":"\u6708","Januar":"\u4e9a\u52aa\u5c14","Februar":"\u4e8c\u6708","March ":"\u884c\u8fdb","Condition":"\u5065\u5eb7\uff09\u72b6\u51b5","Limit":"\u9650\u5236","The script will be stopped and must be activated manually after debugging. Continue?":"\u8be5\u811a\u672c\u5c06\u505c\u6b62\uff0c\u5e76\u4e14\u5fc5\u987b\u5728\u8c03\u8bd5\u540e\u624b\u52a8\u6fc0\u6d3b\u3002\u7ee7\u7eed\uff1f","Yes":"\u662f\u7684","Debug instance":"\u8c03\u8bd5\u5b9e\u4f8b","Resume execution":"\u6062\u590d\u6267\u884c","Go to next line":"\u8f6c\u5230\u4e0b\u4e00\u884c","Step into function":"\u8fdb\u5165\u529f\u80fd","Step out from function":"\u9000\u51fa\u51fd\u6570","Stop on exception":"\u5f02\u5e38\u505c\u6b62","Console":"\u5b89\u6170","Stack":"\u5806","Pause execution":"\u6682\u505c\u6267\u884c","Simulate":"\u6a21\u62df","Trigger with value":"\u7528\u503c\u89e6\u53d1","Value":"\u4ef7\u503c","Write":"\u5199","Ack":"\u786e\u8ba4","Start":"\u5f00\u59cb","Filter":"\u7b5b\u9009","Instances":"\u5b9e\u4f8b","Triggered":"\u89e6\u53d1","Function: executed":"\u529f\u80fd\uff1a\u6267\u884c","Operate two states":"\u64cd\u4f5c\u4e24\u79cd\u72b6\u6001","store in":"\u5b58\u653e\u5728","ID1":"ID1","ID2":"ID2","Operations with two states":"\u5177\u6709\u4e24\u79cd\u72b6\u6001\u7684\u64cd\u4f5c","debug_label":"\u8c03\u8bd5","debug_help":"\u8fd9\u662f\u4e00\u79cd\u7279\u6b8a\u6a21\u5f0f\uff0c\u5176\u4e2d\u72b6\u6001\u548c\u5bf9\u8c61\u4e0d\u4f1a\u6539\u53d8\u3002\u4f46\u53ea\u6709\u6709\u5173\u6bcf\u4e2a\u8ba1\u5212\u66f4\u6539\u7684\u4fe1\u606f\u624d\u4f1a\u663e\u793a\u5728\u534f\u8bae\u4e2d\u3002","verbose_label":"\u8be6\u7ec6\u65e5\u5fd7\u8f93\u51fa","verbose_help":"\u5c06\u8c03\u8bd5\u8f93\u51fa\u6dfb\u52a0\u5230\u8bb8\u591a\u7cfb\u7edf\u547d\u4ee4\u7684\u65e5\u5fd7\u4e2d","easy":"\u7b80\u5355\u7684","for programmers":"\u5bf9\u4e8e\u7a0b\u5e8f\u5458","for professionals":"\u5bf9\u4e8e\u4e13\u4e1a\u4eba\u58eb","Duplicate name":"\u91cd\u540d","Empty name is not allowed":"\u4e0d\u5141\u8bb8\u4f7f\u7528\u7a7a\u540d\u79f0","Astrological events today":"\u4eca\u5929\u7684\u5360\u661f\u4e8b\u4ef6","Show astrological events":"\u663e\u793a\u5360\u661f\u4e8b\u4ef6","Time":"\u65f6\u95f4","Description":"\u63cf\u8ff0","nextSunrise":"\u4e0b\u4e00\u4e2a\u65e5\u51fa","nextSunset":"\u4e0b\u4e00\u4e2a\u65e5\u843d"}')}}]); -//# sourceMappingURL=98.faeee5d4.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunkjs=self.webpackChunkjs||[]).push([[98],{52860:function(e,t,n){n.r(t);var a=n(4819),s=n.n(a),o=n(1250),i=n(11640),r=n(10937),l=n(58503),c=n(93433),u=n(15671),d=n(43144),p=n(60136),h=n(27277),g=n(55377),m=n(52721),f=n.n(m),v=(n(64630),n(43488)),y=n(10154),b=n(20889),k=n(75606),S=n(16856),x=n(97326),w=n(29439),C=n(88654),I=n(94721),j=n(43236),T=n(52411),A=n(57064),D=n(47055),N=n(49900),E=n(90977),O=n(52744),M=n(82626),z=n(4110),Z=n(98422),R=n(1067),F=n(60090),B=n(46401),P=n(56355),_=n(80007),L=n(51637),U=n(82460),W="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMS4xYyqcSwAAB8xJREFUaEPtmflzVFUWx+ePsYQk3e/1ls7rTu/pdHrvFivOsAlBE2IQUAajjiw6iqhYoowgg1gzLKXEsSQ6YhDDMk4CcTQJhWAgCdmgZlyKfZOZX+bz+nY63Z2gI4F5UtVV3wrd75177vmec89ym1+d70vemUic74vxFwJ8ukMR5y8E+OdORJrGHR0BFQUCWqNAQGsUCGiNAgGtUSCgNQoEtEaBgNYoENAaBQJao0BAaxQIaI0CAa1x6wmc601cOgnilwcSgA98Fc+zxTJPLvQjhnD822Ox3o7wsbbQSHf0PA+HkpcGcuQnxG2JwJKH7fdPt86ZYZ07s2zmr61LF9r3Nwcu9ufIpHkOJI63R9avcdfPU35TbY1HLdGw+d6kpWZW2cpGR8sOv8rkR2ncegJ4NBgw6yVJkiXZIBcVS+GQuXlrhYiDwLne+NWhBJ7eusE7e7q1wmc0mWW9LJfogaSTJINRttsM98TNyx8r79obvFEMwW0hEA6aZQNGSEaTXKKTcKpKYNSRqu8HEsOdkU2vuKsqTVOLJdhiMcImswEYTUCWDOpaS6n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RmdfIWWgLNLG+1kKDaNkQQ0RdA+lFgeOMKA47EssQzExnb/zVrXcYIxufnlRgzXLuO7GPkaz2yCPpDf2C2Rb4AlA/I4aLw/oCVzAs3zKs61FPQ8nbSOcwAbGxKfOH4w6yQfx8ff6Jpmgyo3Do45fKMB9LZDj9OBl8kyeHl7hkhDj+oscKs3D715sh4Q0pEUJSzEoW85GDX+cwRKA2RzcOuK5iNDGV/pRHMlF0vtfitqmTj3Rs/Z3QeCQPSh9+05uArRiMcd6yJcLsVapN0fC4mIRSisJFBW4jbqJLEl6eMA4KWBmYRzIbypEfS+YmrlGW5ycEzrdGKcdBbCJMcm1gYxnLACkSchRPRIOLkoFbjRQpg0C7cIHXKwvRNCVsST2HfZ11pI4rvciUWIYVYZm7tAYyaLjEeRFGnJGgEfaPd3+OFkIIYX9QHgP2TOLzmSH794AAAAAElFTkSuQmCC",H=n(5849),q=n(65661),Y=n(4899),K=n(77386),Q=n(5574),X=n(93006),$=n(45363),ee=n(84701),te=n(62861),ne=n(86711),ae=n(872),se=n(80184),oe=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).handleCancel=function(){a.props.onClose()},a.handleOk=function(){a.props.onRename(a.oldId,a.state.id,a.state.name,a.state.instance),a.props.onClose()},a.handleChange=function(e){a.setState({name:e,id:a.getId(e)})},a.state={name:e.name,id:e.id,instance:e.instance||0},a.isShowInstance=!e.folder&&e.instances&&(e.instance||e.instances[0]||e.instances.length>1),a.prefix=a.getPrefix(e.id),a.oldId=e.id,a}return(0,d.Z)(n,[{key:"getPrefix",value:function(e){var t=(e||"").split(".");return t.pop(),t.join(".")}},{key:"getId",value:function(e){return e=(e||"").replace(/[\\/\][*,;'"`<>?\s]/g,"_"),this.prefix+"."+e}},{key:"componentWillReceiveProps",value:function(e){e.name!==this.props.name&&this.setState({name:e.name}),e.id!==this.props.id&&(this.prefix=this.getPrefix(e.id),this.setState({id:e.id}))}},{key:"render",value:function(){var e=this;return(0,se.jsxs)(Q.Z,{onClose:function(e,t){return!1},maxWidth:"md",fullWidth:!0,open:!0,"aria-labelledby":"confirmation-dialog-title",children:[(0,se.jsx)(q.Z,{id:"confirmation-dialog-title",children:k.I18n.t("Rename")}),(0,se.jsx)(Y.Z,{children:(0,se.jsxs)("form",{noValidate:!0,autoComplete:"off",children:[(0,se.jsx)(X.Z,{variant:"standard",style:{width:"100%"},id:"standard-name",autoFocus:!0,label:k.I18n.t("Name"),value:this.state.name,onKeyPress:function(t){"Enter"===t.key&&(t.preventDefault(),setTimeout((function(){return e.handleOk()}),200))},onChange:function(t){return e.handleChange(t.target.value)},margin:"normal"}),(0,se.jsx)(X.Z,{variant:"standard",id:"standard-name-id",style:{width:"100%"},label:k.I18n.t("ID"),value:this.state.id,disabled:!0,margin:"normal"}),this.isShowInstance&&(0,se.jsxs)($.Z,{variant:"standard",children:[(0,se.jsx)(te.Z,{htmlFor:"instance",children:k.I18n.t("Instance")}),(0,se.jsx)(ee.Z,{variant:"standard",value:this.state.instance,onChange:function(t){return e.setState({instance:parseInt(t.target.value,10)})},inputProps:{name:"instance",id:"instance"},children:this.props.instances.map((function(e){return(0,se.jsx)(M.Z,{value:e,children:e||"0"},e)}))})]})]})}),(0,se.jsxs)(K.Z,{children:[(0,se.jsx)(H.Z,{variant:"contained",onClick:this.handleOk,color:"primary",startIcon:(0,se.jsx)(ae.default,{}),children:k.I18n.t("Ok")}),(0,se.jsx)(H.Z,{color:"grey",variant:"contained",onClick:this.handleCancel,startIcon:(0,se.jsx)(ne.default,{}),children:k.I18n.t("Cancel")})]})]})}}]),n}(s().Component),ie=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).handleCancel=function(){a.props.onClose(null)},a.handleOk=function(){a.props.onDelete(a.state.id),a.props.onClose(a.props.value)},a.state={name:e.name,id:e.id},a}return(0,d.Z)(n,[{key:"componentWillReceiveProps",value:function(e){e.name!==this.props.name&&this.setState({name:e.name}),e.id!==this.props.id&&this.setState({id:e.id})}},{key:"render",value:function(){return(0,se.jsxs)(Q.Z,{onClose:function(e,t){return!1},maxWidth:"md",open:!0,"aria-labelledby":"confirmation-dialog-title",children:[(0,se.jsx)(q.Z,{id:"confirmation-dialog-title",children:k.I18n.t("Are you sure?")}),(0,se.jsxs)(Y.Z,{children:[(0,se.jsx)(S.ZkW,{}),(0,se.jsx)("span",{style:{fontSize:14,fontWeight:"bold"},children:k.I18n.t("Delete %s",this.state.name)})]}),(0,se.jsxs)(K.Z,{children:[(0,se.jsx)(H.Z,{variant:"contained",onClick:this.handleOk,color:"primary",startIcon:(0,se.jsx)(ae.default,{}),children:k.I18n.t("Ok")}),(0,se.jsx)(H.Z,{color:"grey",variant:"contained",onClick:this.handleCancel,startIcon:(0,se.jsx)(ne.default,{}),children:k.I18n.t("Cancel")})]})]})}}]),n}(s().Component),re=(0,g.Z)((function(e){return{}}))(ie),le=n(88588),ce=n(81374),ue=n(77234),de=n(22492),pe=n(1867),he=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(){var e;(0,u.Z)(this,n);for(var a=arguments.length,s=new Array(a),o=0;o1),a}return(0,d.Z)(n,[{key:"getId",value:function(e){return e=(e=e||this.state.name||"").replace(/[\\/\][.*,;'"`<>?\s]/g,"_").trim().replace(/\.$/,"_"),(this.state?this.state.parent:this.props.parent)+"."+e}},{key:"componentWillReceiveProps",value:function(e){e.name!==this.props.name&&this.setState({name:e.name})}},{key:"render",value:function(){var e=this;return(0,se.jsxs)(Q.Z,{onClose:function(e,t){return!1},maxWidth:"md",fullWidth:!0,open:!0,"aria-labelledby":"confirmation-dialog-title",children:[(0,se.jsx)(q.Z,{id:"confirmation-dialog-title",children:this.props.title||k.I18n.t("Create new")}),(0,se.jsx)(Y.Z,{children:(0,se.jsxs)("form",{noValidate:!0,autoComplete:"off",children:[(0,se.jsx)(X.Z,{variant:"standard",style:{width:"100%"},id:"standard-name",autoFocus:!0,error:!!this.state.error,label:k.I18n.t("Name"),value:this.state.name,helperText:this.state.error,onKeyPress:function(t){"Enter"===t.key&&(t.preventDefault(),setTimeout((function(){return e.handleOk()}),200))},onChange:function(t){return e.handleChange(t.target.value)},margin:"normal"}),(0,se.jsxs)($.Z,{variant:"standard",style:{minWidth:100},children:[(0,se.jsx)(te.Z,{htmlFor:"parent",children:k.I18n.t("Folder")}),(0,se.jsx)(ee.Z,{variant:"standard",style:{width:"100%"},value:this.state.parent,onChange:function(t){return e.setState({parent:t.target.value})},inputProps:{name:"parent",id:"parent"},children:this.props.parents.map((function(t){var n=t.id.split(".");n.splice(0,2);var a=[],s="script.js";return n.forEach((function(t,n){s+="."+t;var o=e.props.parents.find((function(e){return e.id===s}));o?a.push(o.name):a.push(t)})),a.length||a.push(t.name),(0,se.jsx)(M.Z,{value:t.id,children:a.join(" / ")},t.id)}))})]}),(0,se.jsx)(X.Z,{variant:"standard",id:"standard-name-id",style:{width:"100%"},label:k.I18n.t("ID"),value:this.getId(),disabled:!0,margin:"normal"}),this.isShowInstance&&(0,se.jsxs)($.Z,{variant:"standard",children:[(0,se.jsx)(te.Z,{htmlFor:"instance",children:k.I18n.t("Instance")}),(0,se.jsx)(ee.Z,{variant:"standard",value:this.state.instance,onChange:function(t){return e.setState({instance:parseInt(t.target.value,10)})},inputProps:{name:"instance",id:"instance"},children:this.props.instances.map((function(e){return(0,se.jsx)(M.Z,{value:e,children:e||"0"},"instance"+e)}))})]})]})}),(0,se.jsxs)(K.Z,{children:[(0,se.jsx)(H.Z,{variant:"contained",onClick:this.handleOk,disabled:!!this.state.error,color:"primary",startIcon:(0,se.jsx)(ae.default,{}),children:k.I18n.t("Ok")}),(0,se.jsx)(H.Z,{color:"grey",variant:"contained",onClick:this.handleCancel,startIcon:(0,se.jsx)(ne.default,{}),children:k.I18n.t("Cancel")})]})]})}}]),n}(s().Component),fe=(0,g.Z)((function(e){return{}}))(me),ve=n(31701),ye=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).handleOk=function(){a.props.onClose&&a.props.onClose()},console.log("Error created"),a}return(0,d.Z)(n,[{key:"render",value:function(){var e=this;return(0,se.jsxs)(Q.Z,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:function(){return e.handleOk()},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,se.jsx)(q.Z,{className:this.props.classes.titleBackground,classes:{root:this.props.classes.titleColor},id:"alert-dialog-title",children:this.props.title||k.I18n.t("Error")}),(0,se.jsx)(Y.Z,{children:(0,se.jsx)(ve.Z,{id:"alert-dialog-description",children:this.props.text||k.I18n.t("Unknown error!")})}),(0,se.jsx)(K.Z,{children:(0,se.jsx)(H.Z,{variant:"contained",onClick:function(){return e.handleOk()},color:"primary",autoFocus:!0,startIcon:(0,se.jsx)(ae.default,{}),children:k.I18n.t("Ok")})})]})}}]),n}(s().Component),be=(0,g.Z)((function(e){return{titleBackground:{background:e.palette.error.main},titleColor:{color:e.palette.error.contrastText,"&>h2":{color:e.palette.error.contrastText}}}}))(ye),ke=n(81153),Se=n(97808),xe=n(29823),we=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).handleOk=function(){if(a.state.instances.find((function(e){return e.id===a.state.adapterToDebug})).enabled)return a.props.socket.getObject("system.adapter."+a.state.adapterToDebug).then((function(e){e.common.enabled=!1,a.props.socket.setObject(e._id,e).then((function(){return a.props.onDebug(a.state.jsInstance,a.state.adapterToDebug)}))}));a.props.onDebug(a.state.jsInstance,a.state.adapterToDebug)},a.state={instances:[],filter:window.localStorage.getItem("javascript.debug.filter")||"",showAskForStop:!1,jsInstance:window.localStorage.getItem("javascript.debug.instance")||"",jsInstanceHost:"",adapterToDebug:window.localStorage.getItem("javascript.debug.adapter")||""},a}return(0,d.Z)(n,[{key:"componentDidMount",value:function(){var e=this;this.props.socket.getAdapterInstances().then((function(t){(t=t.filter((function(e){var t;return e&&!(null!==(t=e.common)&&void 0!==t&&t.onlyWWW)})).map((function(e){var t,n,a,s=e._id.replace(/^system\.adapter\./,""),o=s.split("."),i=(0,w.Z)(o,1)[0];return{id:s,enabled:null===(t=e.common)||void 0===t?void 0:t.enabled,host:null===(n=e.common)||void 0===n?void 0:n.host,icon:null!==(a=e.common)&&void 0!==a&&a.icon?"../../adapter/".concat(i,"/").concat(e.common.icon):""}}))).sort((function(e,t){return e.id>t.id?1:e.id1?i.join("."):null,instance:o.common.engine?parseInt(o.common.engine.split(".").pop(),10)||0:null})}do{t=!1,n.forEach((function(e){if(e.parent&&!n.find((function(t){return t.id===e.parent}))){var a=e.parent.split(".");a.pop(),n.push({id:e.parent,title:e.parent.split(".").pop(),depth:a.length-1,type:"folder",parent:a.length>1?a.join("."):null}),t=!0}}))}while(t);return n.sort((function(e,t){var n=e.id.toLowerCase(),a=t.id.toLowerCase();return"folder"===e.type&&"folder"!==t.type?-1:"folder"===t.type&&"folder"!==e.type||n>a?1:nEe?(0,se.jsx)(E.Z,{className:k.Utils.clsx(this.props.debugMode&&this.props.classes.iconButtonsDisabled),title:k.I18n.t("Delete script"),disabled:e.id===Ne||e.id===De||this.props.debugMode,onClick:function(t){return n.onDelete(e,t)},size:"medium",children:(0,se.jsx)(S.ZkW,{})},"delete"):null,(0,se.jsx)(E.Z,{className:k.Utils.clsx(this.props.debugMode&&this.props.classes.iconButtonsDisabled),disabled:this.props.debugMode,title:k.I18n.t("Edit script or just double click"),onClick:function(t){return n.onEdit(e,t)},size:"medium",children:(0,se.jsx)(S.jzb,{})},"openInEdit")]}return this.state.width>Ee?e.id===Ae||e.id===De||e.id===Ne||t&&t.length?null:(0,se.jsx)(E.Z,{className:k.Utils.clsx(this.props.debugMode&&this.props.classes.iconButtonsDisabled),title:k.I18n.t("Delete folder"),disabled:e.id===Ne||e.id===De||this.props.debugMode,onClick:function(t){return n.onDelete(e,t)},size:"medium",children:(0,se.jsx)(S.ZkW,{})},"delete"):void 0}},{key:"onDelete",value:function(e,t){var n=this;return t&&t.stopPropagation(),new Promise((function(t){"object"!==typeof e?n.setState({deleting:e}):n.setState({deleting:e.id})}))}},{key:"onEdit",value:function(e,t){this.onClick(e,t),this.props.onEdit&&this.props.onEdit(e.id)}},{key:"getTextStyle",value:function(e){return this.state.reorder||"folder"===e.type?{whiteSpace:"nowrap",padding:"0 16px 0 0"}:{width:"calc(100% - ".concat(this.state.width>Ee?185:137,"px)"),overflow:"hidden",whiteSpace:"nowrap",flex:"none",padding:"0 16px 0 0"}}},{key:"onClick",value:function(e,t){if(t&&t.stopPropagation(),!this.state.reorder&&e){var n=this.ensureSelectedIsVisible(e),a={selected:e.id};n&&(a.expanded=n),this.setState(a),window.localStorage&&window.localStorage.setItem("SideMenu.selected",e.id)}}},{key:"onDblClick",value:function(e,t){t&&t.stopPropagation(),this.state.reorder||("folder"===e.type?this.onToggle(e.id):this.onEdit(e))}},{key:"isFilteredOut",value:function(e){return!(!e.filtered||e.filteredPartly)||(!(!this.state.typeFilter||"folder"===e.type||e.type===this.state.typeFilter)||(!(!this.state.statusFilter||"folder"===e.type||!("running"===this.state.statusFilter&&!e.enabled||"paused"===this.state.statusFilter&&e.enabled)&&("problems"!==this.state.statusFilter||e.enabled&&-1!==this.state.problems.indexOf(e.id)))||e.id===Ne&&!this.state.expertMode))}},{key:"renderListItem",value:function(e,t,n){var a=this;if(e.id===Ae&&!this.state.reorder)return null;var s=16*(this.state.reorder?e.depth:e.depth-1),o=e.title;if(this.state.searchText){var i=o.toLowerCase().indexOf(this.state.searchText.toLowerCase());-1!==i&&(o=[(0,se.jsx)("span",{children:o.substring(0,i)},"first"),(0,se.jsx)("span",{style:{color:"orange"},children:o.substring(i,i+this.state.searchText.length)},"second"),(0,se.jsx)("span",{children:o.substring(i+this.state.searchText.length)},"third")])}this.state.isAllZeroInstances||"folder"===e.type||(o=[(0,se.jsxs)("span",{title:k.I18n.t("Instance"),className:this.props.classes.instances,children:["[",e.instance,"] "]},"instance"),(0,se.jsx)("span",{children:o},"title")]);var r=this.state.reorder&&!this.props.debugMode,l=Object.assign({marginLeft:s,cursor:"folder"===e.type&&r?"default":"inherit",width:"calc(100% - ".concat(s,"px)")},e.id!==this.state.selected||r?{}:Oe);r||(l.opacity=e.filteredPartly?.5:1),e.id===Ne&&e.id!==this.state.selected&&(l.color="#00a200");var c=e.id===Ae;!c&&t&&(c=this.state.expanded.includes(e.id));var u,d={};e.id===Ne?d.color="#356956":e.id===De&&(d.color="#4899e1"),u="folder"===e.type?k.Utils.clsx(this.props.classes.folderIcon,r?this.props.classes.folderIconReorder:this.props.classes.folderIconNoReorder):k.Utils.clsx(this.props.classes.scriptIcon,r?this.props.classes.scriptIconReorder:this.props.classes.scriptIconNoReorder);var p=null;return(n&&n.length||t&&t.length)&&(p=(0,se.jsx)("span",{className:this.props.classes.childrenCount,children:n&&n.length!==t.length?"".concat(n.length,"(").concat(t.length,")"):t.length})),(0,se.jsxs)(T.ZP,{style:l,className:k.Utils.clsx("folder"===e.type?this.props.classes.folder:this.props.classes.script,r&&"folder"===e.type&&"folder-reorder",r&&"folder"!==e.type&&"script-reorder",r&&this.props.classes.reorder,r&&"folder"!==e.type&&this.props.classes.scriptReorder,r&&"folder"===e.type&&this.props.classes.folderReorder),onClick:function(t){return a.onClick(e,t)},onDoubleClick:function(t){return a.onDblClick(e,t)},children:[(0,se.jsx)(A.Z,{classes:{root:this.props.classes.listItemIcon},children:"folder"===e.type?r||c?(0,se.jsx)(P.FaFolderOpen,{className:u,style:d,onClick:function(t){return!r&&a.onToggle(e.id,t)}}):(0,se.jsx)(P.FaFolder,{className:u,style:d,onClick:function(t){return!r&&a.onToggle(e.id,t)}}):(0,se.jsx)("img",{className:u,alt:e.type,src:Me[e.type]||Me.def})}),(0,se.jsx)(N.Z,{classes:{primary:e.id!==this.state.selected||r?void 0:this.props.classes.selected},style:this.getTextStyle(e),primary:(0,se.jsxs)("span",{children:[o,p]})}),(0,se.jsx)(D.Z,{children:this.renderItemButtonsOnEnd(e,t)})]},e.id)}},{key:"onDragFinish",value:function(e,t){var n="".concat(t,".").concat(e.split(".").pop());n!==e&&(this.state.listItems.find((function(e){return e.id===n}))&&(n+="_".concat(k.I18n.t("copy"))),this.props.onRename&&this.props.onRename(e,n))}},{key:"renderOneItem",value:function(e,t){var n=this,a=(this.state.statusFilter||this.state.typeFilter)&&e.filter((function(e){return e.parent===t.id&&!n.isFilteredOut(e)})),s=e.filter((function(e){return e.parent===t.id}));if(!this.isFilteredOut(t)&&("folder"!==t.type||!this.state.statusFilter&&!this.state.typeFilter||a.length)){var o,i=this.state.reorder&&!this.props.debugMode,r=this.renderListItem(t,s,a),l=[];return s&&(i||this.state.expanded.includes(t.id)||t.id===Ae)&&(o=s.map((function(t){return n.renderOneItem(e,t)}))),i?"folder"===t.type?l.push((0,se.jsxs)(Re,{onDrop:function(e){return n.onDragFinish(e.name,t.id)},children:[(0,se.jsx)(Fe,{name:t.id,children:r},"draggable_".concat(t.id)),o||null]},"droppable_".concat(t.id))):l.push((0,se.jsxs)(Fe,{name:t.id,children:[r,o||null]},"draggable_".concat(t.id))):(l.push(r),o&&o.forEach((function(e){return l.push(e)}))),l}}},{key:"renderAllItems",value:function(e){var t=this,n=e.filter((function(e){return!e.parent})).map((function(n){return t.renderOneItem(e,n)}));return(0,se.jsx)(j.Z,{dense:!0,disablePadding:!0,className:this.props.classes.mainList,children:n})}},{key:"onAddNew",value:function(e){var t=this;e&&e.stopPropagation();for(var n=this.state.listItems.find((function(e){return e.id===t.state.selected})),a=Ae;n&&"folder"!==n.type;)n=this.state.listItems[n.parentIndex];n&&(a=n.id),this.parent=a,this.setState({choosingType:!0})}},{key:"onCopy",value:function(e,t){e&&e.stopPropagation();for(var n=this.state.listItems.find((function(e){return e.id===t})),a=Ae;n&&"folder"!==n.type;)n=this.state.listItems[n.parentIndex];n&&(a=n.id),this.parent=a,this.setState({copingScript:t})}},{key:"onAddNewFolder",value:function(e){var t=this;e&&e.stopPropagation();for(var n=this.state.listItems.find((function(e){return e.id===t.state.selected})),a=Ae;n&&"folder"!==n.type;)n=this.state.listItems[n.parentIndex];n&&(a=n.id),this.parent=a,this.setState({creatingFolder:!0})}},{key:"onRename",value:function(e){e&&e.stopPropagation(),this.setState({renaming:this.state.selected})}},{key:"getUniqueName",value:function(e){var t=this,n=1,a="".concat(k.I18n.t("Script")," ");if(e){var s=ze(e,this.props.scripts[e]),o=s.match(/\d+$/);o?(a=s.replace(/\d+$/,""),n=parseInt(o[0],10)+1):a=s}for(;this.state.listItems.find((function(e){return e.id==="".concat(t.parent,".").concat(a.replace(/\.\s/g,"_")).concat(n)}));)n++;return a+n}},{key:"getUniqueFolderName",value:function(){for(var e=this,t=1;this.state.listItems.find((function(n){return n.id==="".concat(e.parent,".").concat(k.I18n.t("Folder"),"_").concat(t)}));)t++;return"".concat(k.I18n.t("Folder")," ").concat(t)}},{key:"onCloseMenu",value:function(e){this.setState({menuOpened:!1,menuAnchorEl:null,menuAnchorFilterEl:null},e)}},{key:"getFilterBadge",value:function(){return[!0===this.state.statusFilter&&(0,se.jsx)(S.Nhx,{className:this.props.classes.filterIcon,style:{color:Ie}}),!1===this.state.statusFilter&&(0,se.jsx)(S.hPq,{className:this.props.classes.filterIcon,style:{color:Te}}),"Blockly"===this.state.typeFilter&&"Bl","Javascript/js"===this.state.typeFilter&&"JS","TypeScript/ts"===this.state.typeFilter&&"TS"]}},{key:"getMainMenu",value:function(e,t){var n=this;return(0,se.jsxs)(O.Z,{id:"long-menu",anchorEl:this.state.menuAnchorEl,open:this.state.menuOpened,onClose:function(){return n.setState({menuOpened:!1,menuAnchorEl:null})},PaperProps:{style:{maxHeight:360}},children:[this.state.width<=Ee?(0,se.jsxs)(M.Z,{disabled:this.props.debugMode||!this.state.selected||this.state.selected===Ne||this.state.selected===De||e&&e.length,onClick:function(e){e.stopPropagation(),e.preventDefault(),n.state.listItems.find((function(e){return e.parent===n.state.selected}))?n.showError(k.I18n.t("Cannot delete non empty item!")):n.setState({menuOpened:!1,menuAnchorEl:null},(function(){return n.onDelete(n.state.selected).then((function(){}))}))},children:[(0,se.jsx)(S.ZkW,{className:this.props.classes.iconDropdownMenu,style:{color:"red"}}),k.I18n.t("Delete")]},"delete"):null,(0,se.jsxs)(M.Z,{disabled:this.props.debugMode,selected:this.state.expertMode,onClick:function(e){e.stopPropagation(),e.preventDefault(),n.onCloseMenu((function(){return n.props.onExpertModeChange&&n.props.onExpertModeChange(!n.state.expertMode)}))},children:[(0,se.jsx)(S.Bjz,{className:this.props.classes.iconDropdownMenu,style:{color:this.state.expertMode?"orange":"inherit"}}),k.I18n.t("Expert mode")]},"expertMode"),this.props.onExport&&(0,se.jsxs)(M.Z,{onClick:function(e){e.stopPropagation(),e.preventDefault(),n.onCloseMenu((function(){return n.props.onExport()}))},children:[(0,se.jsx)(P.FaFileExport,{className:this.props.classes.iconDropdownMenu}),k.I18n.t("Export all scripts")]},"exportAll"),this.props.onImport&&(0,se.jsxs)(M.Z,{disabled:this.props.debugMode,onClick:function(e){e.stopPropagation(),e.preventDefault(),n.onCloseMenu((function(){return n.props.onImport()}))},children:[(0,se.jsx)(P.FaFileImport,{className:this.props.classes.iconDropdownMenu}),k.I18n.t("Import scripts")]},"import"),this.props.onThemeChange&&(0,se.jsxs)(M.Z,{onClick:function(){return n.onCloseMenu((function(){var e="dark"===n.state.themeName?"blue":"blue"===n.state.themeName?"colored":"colored"===n.state.themeName?"light":"light"===n.state.themeName?"dark":"colored";n.props.onThemeChange(e)}))},children:[(0,se.jsx)(S.Zox,{className:this.props.classes.iconDropdownMenu}),k.I18n.t('Change theme (actual "%s")',this.state.themeName)]},"dark"),this.props.onAddNew&&(0,se.jsxs)(M.Z,{disabled:!this.state.selected||!t||"folder"===t.type,onClick:function(e){var t=n.state.selected;n.onCloseMenu((function(){return n.onCopy(e,t)}))},children:[(0,se.jsx)(S.Fqs,{className:this.props.classes.iconDropdownMenu}),k.I18n.t("Copy script")]},"copy"),this.state.expertMode&&(0,se.jsxs)(M.Z,{disabled:this.props.debugMode,onClick:function(e){e.stopPropagation(),e.preventDefault(),n.onCloseMenu((function(){return n.setState({showAdapterDebug:!0})}))},children:[(0,se.jsx)(S.qXL,{className:this.props.classes.iconDropdownMenu}),k.I18n.t("Debug instance")]},"debugInstance")]},"menu")}},{key:"getToolbarButtons",value:function(){var e=this,t=[],n=this.props.classes,a=this.state.reorder&&!this.props.debugMode;if(this.state.searchMode&&!this.props.debugMode)t.push((0,se.jsx)(z.Z,{value:this.state.searchText,className:n.toolbarSearch,ref:this.inputRef,autoFocus:!0,placeholder:k.I18n.t("Search..."),onChange:function(t){e.setState({searchText:t.target.value}),e.filterTimer&&clearTimeout(e.filterTimer),e.filterTimer=setTimeout((function(){e.filterTimer=null,e.filterList(!0),e.props.onSearch&&e.props.onSearch(e.state.searchText)}),400)}},"searchInput")),t.push((0,se.jsx)(E.Z,{className:n.toolbarButtons,style:{float:"right"},title:k.I18n.t("End search mode"),onClick:function(t){t.stopPropagation(),e.filterList(!1,(function(){return e.props.onSearch&&e.props.onSearch(e.state.searchText)}))},size:"medium",children:(0,se.jsx)(S.w7s,{})},"disableSearch")),this.state.searchText&&t.push((0,se.jsx)(E.Z,{mini:"true",title:k.I18n.t("Clear search input"),className:n.toolbarButtons,style:{marginTop:7,float:"right"},onClick:function(t){t.stopPropagation(),e.setState({searchText:""},(function(){e.filterList(!0),e.props.onSearch&&e.props.onSearch(e.state.searchText)}))},size:"medium",children:(0,se.jsx)(S.FU5,{fontSize:"small"})},"cleanSearch"));else{if(!a){t.push((0,se.jsx)(E.Z,{"aria-label":"More","aria-owns":this.state.menuOpened?"long-menu":void 0,title:k.I18n.t("Menu"),"aria-haspopup":"true",onClick:function(t){t.stopPropagation(),t.preventDefault(),e.setState({menuOpened:!0,menuAnchorEl:t.currentTarget})},size:"medium",children:(0,se.jsx)(S.rgS,{})},"menuButton"));var s,o=this.state.listItems.find((function(t){return t.id===e.state.selected}));o&&this.state.width<=Ee&&"folder"===o.type&&(s=this.state.listItems.filter((function(t){return t.parent===e.state.selected}))),t.push(this.getMainMenu(s,o)),t.push((0,se.jsx)(E.Z,{disabled:this.props.debugMode,title:k.I18n.t("Create new script"),className:k.Utils.clsx(n.toolbarButtons,this.props.debugMode&&n.iconButtonsDisabled),style:{color:a?"red":"inherit"},onClick:function(t){return e.onAddNew(t)},size:"medium",children:(0,se.jsx)(S.x06,{})},"new-script")),t.push((0,se.jsx)(E.Z,{disabled:this.props.debugMode,title:k.I18n.t("Create new folder"),className:k.Utils.clsx(n.toolbarButtons,this.props.debugMode&&n.iconButtonsDisabled),style:{color:a?"red":"inherit"},onClick:function(){return e.onAddNewFolder()},size:"medium",children:(0,se.jsx)(S.Db7,{})},"new-folder"))}t.push((0,se.jsx)(E.Z,{disabled:a||this.props.debugMode,className:k.Utils.clsx(n.toolbarButtons,this.props.debugMode&&n.iconButtonsDisabled),title:k.I18n.t("Search in scripts"),style:{float:"right",opacity:this.props.debugMode?.5:a?0:1},onClick:function(t){t.stopPropagation(),e.setState({searchMode:!0})},size:"medium",children:(0,se.jsx)(S.vU7,{})},"search")),t.push((0,se.jsx)(E.Z,{disabled:this.props.debugMode,title:k.I18n.t("Reorder scripts in folders"),className:k.Utils.clsx(n.toolbarButtons,this.props.debugMode&&n.iconButtonsDisabled),style:{color:a?"red":"inherit",float:"right"},onClick:function(t){t.stopPropagation(),e.setState({reorder:!e.state.reorder})},size:"medium",children:(0,se.jsx)(S.Llt,{})},"reorder")),!a&&this.state.selected&&this.state.selected!==Ne&&this.state.selected!==De&&t.push((0,se.jsx)(E.Z,{className:k.Utils.clsx(n.toolbarButtons,this.props.debugMode&&n.iconButtonsDisabled),disabled:this.props.debugMode,title:k.I18n.t("Rename"),onClick:function(t){return e.onRename(t)},size:"medium",children:(0,se.jsx)(S.zmo,{})},"rename"))}return t}},{key:"getFolders",value:function(){var e=[{id:Ae,name:k.I18n.t("Root folder")}];return this.state.listItems.forEach((function(t){return"folder"===t.type&&e.push({id:t.id,name:t.title})})),e}},{key:"onCollapseAll",value:function(){this.setState({expanded:[]}),this.saveExpanded([])}},{key:"onExpandAll",value:function(){var e=this,t=[];this.state.listItems.forEach((function(n){return e.state.listItems.find((function(e){return e.parent===n.id}))&&t.push(n.id)})),this.setState({expanded:t}),this.saveExpanded(t)}},{key:"getBottomButtons",value:function(){var e=this;return this.state.reorder||this.props.debugMode?null:[(0,se.jsx)(S.hPq,{className:this.props.classes.footerButtons,style:{color:Ie,opacity:"running"===this.state.statusFilter?1:.3,background:"running"===this.state.statusFilter?"gray":"inherit"},title:k.I18n.t("Show only running scripts"),onClick:function(t){t.stopPropagation(),t.preventDefault();var n="running"===e.state.statusFilter?"":"running";window.localStorage&&window.localStorage.setItem("SideMenu.statusFilter",n),e.setState({statusFilter:n})}},"filterByRunning"),(0,se.jsx)(S.Nhx,{title:k.I18n.t("Show only paused scripts"),className:this.props.classes.footerButtons,style:{color:Te,opacity:"paused"===this.state.statusFilter?1:.3,background:"paused"===this.state.statusFilter?"gray":"inherit"},onClick:function(){var t="paused"===e.state.statusFilter?"":"paused";window.localStorage&&window.localStorage.setItem("SideMenu.statusFilter",t),e.setState({statusFilter:t})}},"filterByPaused"),(0,se.jsx)(S.hPq,{title:k.I18n.t("Show only scripts with problems"),className:this.props.classes.footerButtons,style:{color:je,opacity:"problems"===this.state.statusFilter?1:.3,background:"problems"===this.state.statusFilter?"gray":"inherit"},onClick:function(){var t="problems"===e.state.statusFilter?"":"problems";window.localStorage&&window.localStorage.setItem("SideMenu.statusFilter",t),e.setState({statusFilter:t})}},"filterByProblem"),(0,se.jsx)("img",{className:this.props.classes.footerButtons,alt:"Blockly",style:{opacity:"Blockly"===this.state.typeFilter?1:.3,background:"Blockly"===this.state.typeFilter?"gray":"inherit"},src:Me.Blockly||Me.def,onClick:function(){var t="Blockly"===e.state.typeFilter?"":"Blockly";window.localStorage&&window.localStorage.setItem("SideMenu.typeFilter",t),e.setState({typeFilter:t})}},"filterBlockly"),(0,se.jsx)("img",{className:this.props.classes.footerButtons,alt:"Javascript",style:{opacity:"Javascript/js"===this.state.typeFilter?1:.3,background:"Javascript/js"===this.state.typeFilter?"gray":"inherit"},src:Me["Javascript/js"]||Me.def,onClick:function(){var t="Javascript/js"===e.state.typeFilter?"":"Javascript/js";window.localStorage&&window.localStorage.setItem("SideMenu.typeFilter",t),e.setState({typeFilter:t})}},"filterJS"),(0,se.jsx)("img",{className:this.props.classes.footerButtons,alt:"TypeScript",style:{opacity:"TypeScript/ts"===this.state.typeFilter?1:.3,background:"TypeScript/ts"===this.state.typeFilter?"gray":"inherit"},src:Me["TypeScript/ts"]||Me.def,onClick:function(){var t="TypeScript/ts"===e.state.typeFilter?"":"TypeScript/ts";window.localStorage&&window.localStorage.setItem("SideMenu.typeFilter",t),e.setState({typeFilter:t})}},"filterTS"),(0,se.jsx)("img",{className:this.props.classes.footerButtons,alt:"Rules",style:{opacity:"Rules"===this.state.typeFilter?1:.3,background:"Rules"===this.state.typeFilter?"gray":"inherit"},src:Me.Rules||Me.def,onClick:function(t){var n="Rules"===e.state.typeFilter?"":"Rules";window.localStorage&&window.localStorage.setItem("SideMenu.typeFilter",n),e.setState({typeFilter:n})}},"filterRules"),(0,se.jsx)(S.bPX,{className:"".concat(this.props.classes.footerButtons," ").concat(this.props.classes.footerButtonsRight),title:k.I18n.t("Expand all"),onClick:function(){return e.onExpandAll()}},"expandAll"),this.state.expanded.length?(0,se.jsx)(S.SPo,{className:"".concat(this.props.classes.footerButtons," ").concat(this.props.classes.footerButtonsRight),title:k.I18n.t("Collapse all"),onClick:function(){return e.onCollapseAll()}},"collapseAll"):null]}},{key:"getAdapterDebugDialog",value:function(){var e=this;if(this.state.showAdapterDebug)return(0,se.jsx)(Ce,{socket:this.props.socket,onClose:function(){return e.setState({showAdapterDebug:!1})},onDebug:function(t,n){return e.setState({showAdapterDebug:!1},(function(){return e.props.onDebugInstance({instance:t,adapter:n})}))}})}},{key:"render",value:function(){var e=this,t=this.props.classes,n=this.state.renaming&&this.state.listItems.find((function(t){return t.id===e.state.renaming})),a=this.state.copingScript&&this.props.scripts[this.state.copingScript];return[(0,se.jsxs)(C.ZP,{variant:"permanent",className:t.menu,classes:{paper:t.drawerPaper},anchor:"left",onClick:function(){return e.onClick({id:""})},children:[(0,se.jsx)("div",{className:t.toolbar,children:this.getToolbarButtons()}),(0,se.jsx)(I.Z,{}),(0,se.jsx)(F.W,{backend:B.PD,children:(0,se.jsx)("div",{className:t.innerMenu,children:this.renderAllItems(this.state.listItems)})}),(0,se.jsx)(I.Z,{}),(0,se.jsx)("div",{className:t.footer,children:this.getBottomButtons()})]},"drawer"),n?(0,se.jsx)(oe,{name:n.title,title:k.I18n.t("Rename"),id:this.state.renaming,folder:"folder"===n.type,instance:n.instance,instances:this.props.instances,onClose:function(){return e.setState({renaming:!1})},onRename:function(t,n,a,s){return e.props.onRename&&e.props.onRename(t,n,a,s)}},"dialog-rename"):null,this.state.deleting?(0,se.jsx)(re,{name:this.state.listItems.find((function(t){return t.id===e.state.deleting})).title,id:this.state.deleting,onClose:function(){return e.setState({deleting:!1})},onDelete:function(t){return e.props.onDelete&&e.props.onDelete(t)}},"dialog-delete"):null,this.state.choosingType?(0,se.jsx)(ge,{onClose:function(t){e.setState({choosingType:!1}),t&&e.setState({creatingScript:t})}},"dialog-script-type"):null,this.state.creatingScript?(0,se.jsx)(fe,{onClose:function(){return e.setState({creatingScript:!1})},title:k.I18n.t("Create new script"),name:this.getUniqueName(),parents:this.getFolders(),folder:!1,existingItems:this.state.listItems.map((function(e){return e.id})),instance:this.props.instances[0]||0,instances:this.props.instances,type:this.state.creatingScript,parent:this.parent,onAdd:function(t,n,a,s){return e.props.onAddNew&&e.props.onAddNew(t,n,!1,a,s)}},"dialog-new-script"):null,this.state.copingScript?(0,se.jsx)(fe,{onClose:function(){return e.setState({copingScript:""})},title:k.I18n.t("Copy script"),name:this.getUniqueName(this.state.copingScript),parents:this.getFolders(),folder:!1,instance:parseInt(a&&a.common&&a.common.engine&&a.common.engine.split(".").pop()||0,10),instances:this.props.instances,type:a&&a.common&&a.common.engineType||"Javascript/js",parent:this.parent,onAdd:function(t,n,a,s){var o=e.state.copingScript&&e.props.scripts[e.state.copingScript];o&&o.common&&(o.common.enabled=!1),e.props.onAddNew&&e.props.onAddNew(t,n,!1,a,s,o&&o.common&&o.common.source)}},"dialog-copy-script"):null,this.state.creatingFolder?(0,se.jsx)(fe,{onClose:function(){return e.setState({creatingFolder:!1})},title:k.I18n.t("Create new folder"),parents:this.getFolders(),name:this.getUniqueFolderName(),parent:this.parent,onAdd:function(t,n){return e.props.onAddNew&&e.props.onAddNew(t,n,!0)}},"dialog-new-folder"):null,this.state.errorText?(0,se.jsx)(be,{onClose:function(){return e.setState({errorText:""})},text:this.state.errorText}):null,this.getAdapterDebugDialog()]}}],[{key:"filterListStatic",value:function(e,t,n,a,s){t=JSON.parse(JSON.stringify(t));var o=!1,i={listItems:t};if(!1!==e&&n&&a){var r=a.toLowerCase();if(t.forEach((function(e){var t=e.title.toLowerCase();e.filteredPartly=!1;var n=-1!==t.indexOf(r);if(!n&&s&&s[e.id]&&s[e.id].common&&s[e.id].common.source)if("Blockly"===s[e.id].common.engineType){var a=s[e.id].common.source.lastIndexOf("//");n=-1!==s[e.id].common.source.substring(0,a).toLowerCase().indexOf(r)}else n=-1!==s[e.id].common.source.toLowerCase().indexOf(r);n?e.filtered&&(e.filtered=!1,o=!0):e.filtered||(e.filtered=!0,o=!0)})),o)for(var l=t.length-1;l>=0;l--){var c=t[l];if(!c.filtered||c.filteredPartly){var u=c;do{u.parent&&t[u.parentIndex]&&(o=!0,t[u.parentIndex].filteredPartly=!0),u=u.parent&&t[u.parentIndex]?t[u.parentIndex]:null}while(u)}}}else t.forEach((function(e){(e.filtered||e.filteredPartly)&&(e.filtered=!1,e.filteredPartly=!1,o=!0)})),!1===e&&(i.searchText="",i.searchMode=!1,o=!0);return o?i:null}},{key:"ensureSelectedIsVisibleStatic",value:function(e,t,n){t=JSON.parse(JSON.stringify(t));var a=!1,s="object"===typeof e?e:n.find((function(t){return t.id===e}));do{(s=s&&s.parent&&n.find((function(e){return e.id===s.parent})))&&-1===t.indexOf(s.id)&&(t.push(s.id),a=!0)}while(s);return a&&t}},{key:"getDerivedStateFromProps",value:function(e,t){var a={},s=!1;if(t.expertMode!==e.expertMode&&(s=!0,a.expertMode=e.expertMode),t.scriptsHash!==e.scriptsHash&&e.scripts){var o=Ze(e.scripts||{});if(a.listItems=o,t.searchText){var i=n.filterListStatic(!0,o,t.searchMode,t.searchText,e.scripts);i&&Object.assign(a,i)}var r=n.getIsAllZeroInstancesStatic(o,e.instances||[]),l=n.ensureSelectedIsVisibleStatic(t.selected,t.expanded,t.listItems);a.isAllZeroInstances=r,l&&(a.expanded=l),s=!0}if(t.width!==e.width&&(s=!0,a.width=e.width),t.themeName!==e.themeName&&(s=!0,a.themeName=e.themeName),e.selectId&&t.selected!==e.selectId){var c=t.listItems.find((function(t){return t.id===e.selectId}));if(!t.reorder&&c){var u=n.ensureSelectedIsVisibleStatic(c,t.expanded,t.listItems);a.selected=c.id,u&&(a.expanded=u),s=!0,window.localStorage&&window.localStorage.setItem("SideMenu.selected",c.id)}}return s?a:null}},{key:"getIsAllZeroInstancesStatic",value:function(e,t){var n=!t[0]&&t.length<=1;return n&&e.forEach((function(e){"folder"!==e.type&&0!==e.instance&&(n=!1)})),n}}]),n}(s().Component),Pe=(0,g.Z)((function(e){return{drawerPaper:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},toolbar:{height:e.toolbar.height},toolbarButtons:{color:"dark"===e.palette.mode?"white !important":"black !important"},iconButtonsDisabled:{filter:"grayscale(100%)",opacity:.5},toolbarSearch:{width:"calc(100% - 105px)",lineHeight:"34px",marginLeft:5},iconButtons:{width:32,height:32,padding:2},iconDropdownMenu:{paddingRight:5},iconOnTheRight:{position:"absolute",right:10,top:"calc(50% - 8px)"},menu:{width:"100%",height:"100%"},innerMenu:{width:"100%",height:"calc(100% - 76px)",overflowX:"hidden",overflowY:"auto"},listItemIcon:{minWidth:32},filterIcon:{width:18,height:18,borderRadius:2,marginRight:5},scriptIcon:{width:18,height:18,borderRadius:2,marginTop:4,marginBottom:4,marginLeft:8,marginRight:4},folder:{cursor:"pointer",padding:0,userSelect:"none"},folderReorder:{opacity:.3,transitionDuration:"0.5s",transitionProperty:"opacity"},folderIcon:{width:20,height:20},folderIconReorder:{paddingTop:4,paddingBottom:4,paddingLeft:8,paddingRight:4},folderIconNoReorder:{cursor:"pointer",paddingTop:4,paddingBottom:4,paddingLeft:8,paddingRight:4},script:{cursor:"pointer",padding:0,userSelect:"none"},scriptReorder:{opacity:1,transitionDuration:"0.5s",transitionProperty:"opacity"},reorder:{},expandButton:{width:37,height:37},selected:Oe,instances:{color:"gray",fontSize:"smaller"},childrenCount:{float:"right",marginRight:5,fontSize:10,opacity:.4},footer:{height:24},footerButtons:{"&:hover":{backgroundColor:"#dbdbdb"},color:"dark"===e.palette.mode?"#ffffff":"#111111",cursor:"pointer",marginTop:1,marginRight:2,height:22,width:22},footerButtonsRight:{float:"right"},mainList:{"& .js-folder-dragover>div>li>.folder-reorder":{background:"#40adff"},"& .js-folder-dragging .folder-reorder":{opacity:1},"& .js-folder-dragging .script-reorder":{opacity:.3}}}}))(Be);function _e(e){var t,n=e.getHours();return n<10&&(n="0".concat(n.toString())),t="".concat(n,":"),(n=e.getMinutes())<10&&(n="0".concat(n.toString())),t+="".concat(n,":"),(n=e.getSeconds())<10&&(n="0".concat(n.toString())),t+="".concat(n,"."),(n=e.getMilliseconds())<10?n="00".concat(n.toString()):n<100&&(n="0".concat(n.toString())),t+=n}var Le={},Ue=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).logHandler=function(e){var t,n=a.state.lines,s=a.state.editing.filter((function(t){return e.message.includes(t)}));if(s.length){1===s.length?t=s[0]:(s.sort(),t=s[s.length-1]);var o=n[t]||[],i=Le[t]||[];o.push(a.generateLine(e));var r=e.severity;"info"!==r&&"warn"!==r||(r+=" ");var l,c=new Date(e.ts);i.push("".concat(c.toLocaleString(),".").concat((l=c.getMilliseconds(),l<10?"00".concat(l):l<100?"0".concat(l):l),"\t[").concat(r,"]: ").concat(e.message)),o.length>300&&(o.splice(0,o.length-300),i.splice(0,o.length-300)),Le[t]=i,n[t]=o,a.setState({lines:n})}},a.state={lines:{},goBottom:!0,selected:null,editing:a.props.editing||[]},a.lastIndex=null,a.messagesEnd=s().createRef(),a}return(0,d.Z)(n,[{key:"generateLine",value:function(e){return(0,se.jsxs)("tr",{className:this.props.classes[e.severity],children:[(0,se.jsx)("td",{className:this.props.classes.trTime,children:_e(new Date(e.ts))},"tdTime"),(0,se.jsx)("td",{className:this.props.classes.trSeverity,children:e.severity},"tdSeverity"),(0,se.jsx)("td",{children:e.message},"tdMessage")]},"tr_".concat(e.ts,"_").concat(e.message.substr(-10)))}},{key:"scrollToBottom",value:function(){this.messagesEnd&&this.messagesEnd.current&&this.messagesEnd.current.scrollIntoView({behavior:"smooth"})}},{key:"componentDidMount",value:function(){this.props.socket.registerLogHandler(this.logHandler)}},{key:"componentWillUnmount",value:function(){this.props.socket.unregisterLogHandler(this.logHandler)}},{key:"componentDidUpdate",value:function(){this.state.goBottom&&this.scrollToBottom()}},{key:"onCopy",value:function(){k.Utils.copyToClipboard((Le[this.state.selected]||[]).join("\n"))}},{key:"clearLog",value:function(){var e=this.state.lines;e[this.state.selected]&&(e[this.state.selected]=[]),Le[this.state.selected]&&(Le[this.state.selected]=[]),this.setState({lines:e})}},{key:"renderLogList",value:function(e){return this.state.selected&&e&&e.length?(0,se.jsxs)("div",{className:this.props.classes.logBoxInner,children:[(0,se.jsx)("table",{className:this.props.classes.table,children:(0,se.jsx)("tbody",{children:e})},"logTable"),(0,se.jsx)("div",{ref:this.messagesEnd,style:{float:"left",clear:"both"}},"logScrollPoint")]},"logList"):(0,se.jsx)("div",{className:this.props.classes.logBoxInner,style:{paddingLeft:10},children:k.I18n.t("Log outputs")},"logList")}},{key:"render",value:function(){var e=this,t=this.state.selected&&this.state.lines[this.state.selected];return(0,se.jsxs)("div",{className:this.props.classes.logBox,children:[(0,se.jsxs)("div",{className:this.props.classes.toolbox,children:[(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.setState({goBottom:!e.state.goBottom})},color:this.state.goBottom?"secondary":"",size:"medium",children:(0,se.jsx)(S.G10,{})}),t&&t.length?(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.clearLog()},size:"medium",children:(0,se.jsx)(S.FH3,{})}):null,t&&t.length?(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.onCopy()},size:"medium",children:(0,se.jsx)(S.Fqs,{})}):null,this.props.onLayoutChange?(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.props.onLayoutChange()},title:k.I18n.t("Change layout"),size:"medium",children:(0,se.jsx)("img",{className:this.props.classes.layoutIcon,alt:"split",src:this.props.verticalLayout?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgAQMAAADYVuV7AAAABlBMVEUAAAAzMzPI8eYgAAAAAXRSTlMAQObYZgAAACFJREFUeAFjAIJRwP////8PYIKWHCigNQdKj/pn1D+jAABTG16wVQqVpQAAAABJRU5ErkJggg==":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgAQMAAADYVuV7AAAABlBMVEUAAAAzMzPI8eYgAAAAAXRSTlMAQObYZgAAABtJREFUeAFjAIJRwP8fCj7QkENn/4z6Z5QzCgBjbWaoyx1PqQAAAABJRU5ErkJggg=="})}):null,(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.props.onHideLog()},title:k.I18n.t("Hide logs"),size:"medium",children:(0,se.jsx)(S.wqE,{})})]},"toolbox"),this.renderLogList(t)]})}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=!1,a={};if(e.selected!==t.selected){var s=e.selected,o=t.lines;o[s]=o[s]||[],Le[s]=Le[s]||[],a.selected=s,n=!0}if(JSON.stringify(e.editing)!==JSON.stringify(t.editing)){var i=JSON.parse(JSON.stringify(e.editing));n=!0;var r=t.lines;for(var l in Le)Le.hasOwnProperty(l)&&(i.includes(l)||(delete Le[l],delete r[l]));a.editing=i}return n?a:null}}]),n}(s().Component),We=(0,g.Z)((function(e){return{logBox:{width:"100%",height:"100%",position:"relative",overflow:"hidden"},logBoxInner:{display:"inline-block",color:"dark"===e.palette.mode?"white":"black",width:"calc(100% - ".concat(34,"px)"),height:"100%",overflow:"auto",position:"relative",verticalAlign:"top"},info:{background:"dark"===e.palette.mode?"darkgrey":"lightgrey",color:(e.palette.mode,"black")},error:{background:"#FF0000",color:"dark"===e.palette.mode?"black":"white"},warn:{background:"#FF8000",color:"dark"===e.palette.mode?"black":"white"},debug:{background:"gray",opacity:.8,color:"dark"===e.palette.mode?"black":"white"},silly:{background:"gray",opacity:.6,color:"dark"===e.palette.mode?"black":"white"},table:{fontFamily:"monospace",width:"100%"},toolbox:{width:34,height:"100%",boxShadow:"2px 0px 4px -1px rgba(0, 0, 0, 0.2), 4px 0px 5px 0px rgba(0, 0, 0, 0.14), 1px 0px 10px 0px rgba(0, 0, 0, 0.12)",display:"inline-block",verticalAlign:"top",overflow:"hidden"},trTime:{width:90},trSeverity:{width:40,fontWeight:"bold"},iconButtons:{width:32,height:32,padding:4},layoutIcon:{width:24,height:24,background:"dark"===e.palette.mode?"#9d9d9d":void 0,borderRadius:"dark"===e.palette.mode?30:void 0}}}))(Ue),Ve=n(50804),Je=n(29464),Ge=n(29347),He=n(61474),qe=n(27029),Ye=n(34129),Ke=n(13034),Qe=n(40986),Xe=n(15416),$e=n(62155),et=n(68745),tt=n(55261),nt=n(22041),at=n(9195),st=n(4841),ot=n(48240);var it=0,rt=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).state={name:"current",isDark:e.isDark||!1,language:e.language||"javascript",readOnly:e.readOnly||!1,alive:!0,check:!1,searchText:a.props.searchText||"",typingsLoaded:!1},a.runningInstancesStr=JSON.stringify(a.props.runningInstances),a.monacoDiv=null,a.editor=null,a.monaco=window.monaco,a.insert="",a.originalCode=e.code||"",a.typings={},a.lastSearch="",a}return(0,d.Z)(n,[{key:"waitForMonaco",value:function(e){var t=this;if(this.monaco&&this.props.runningInstances)e&&e();else{if(this.monaco=window.monaco,this.monacoCounter=this.monacoCounter||0,this.monacoCounter++,!this.monaco&&this.monacoCounter<20)return console.log("wait for monaco loaded"),setTimeout((function(){return t.waitForMonaco(e)}),200);this.monacoCounter>=20&&console.error("Cannot load monaco!")}}},{key:"loadTypings",value:function(e){var t=this;if(this.editor){var n=(e=e||this.props.runningInstances)&&Object.keys(e).find((function(t){return e[t]}));n&&this.props.socket.sendTo(n.replace("system.adapter.",""),"loadTypings",null).then((function(e){t.setState({alive:!0,check:!0,typingsLoaded:!0}),t.setTypeCheck(!0),e.typings?(t.typings=e.typings,t.setEditorTypings(t.state.name)):console.error("failed to load typings: ".concat(e.error))}))}}},{key:"componentDidMount",value:function(){var e=this;if((!this.monaco||!this.props.runningInstances)&&(this.monaco=window.monaco,!this.monaco))return console.log("wait for monaco loaded"),this.waitForMonaco((function(){return e.componentDidMount()}));if(!this.editor){this.props.onRegisterSelect&&this.props.onRegisterSelect((function(){return e.editor.getModel().getValueInRange(e.editor.getSelection())}));var t=this.monaco.languages.typescript.typescriptDefaults.getCompilerOptions();t.target=this.monaco.languages.typescript.ScriptTarget.ES2015,t.allowJs=!0,t.checkJs=!1!==this.props.checkJs,t.noLib=!0,t.lib=[],t.useUnknownInCatchVariables=!1,t.moduleResolution=this.monaco.languages.typescript.ModuleResolutionKind.NodeJs,this.monaco.languages.typescript.typescriptDefaults.setCompilerOptions(t),this.setTypeCheck(!1),this.editor=this.monaco.editor.create(this.monacoDiv,{lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,glyphMargin:!!this.props.breakpoints}),this.editor.onDidChangeModelContent((function(t){return e.onChange(e.editor.getValue())})),this.loadTypings(),this.editor.addCommand(this.monaco.KeyMod.CtrlCmd|this.monaco.KeyCode.KEY_S,(function(){return e.onForceSave()})),setTimeout((function(){e.highlightText(e.state.searchText),e.location=e.props.location,e.breakpoints=e.props.breakpoints,e.showDecorators()}))}var n={selectOnLineNumbers:!0,scrollBeyondLastLine:!1,automaticLayout:!0,readOnly:this.state.readOnly,language:this.state.language,isDark:this.state.isDark};this.setEditorOptions(n),this.editor.focus(),this.editor.setValue(this.originalCode),this.props.onToggleBreakpoint?this.editor.onMouseDown((function(t){t.target.detail&&void 0!==t.target.detail.glyphMarginLeft&&e.props.onToggleBreakpoint(t.target.position.lineNumber-1)})):this.editor.onMouseDown((function(){}))}},{key:"setEditorOptions",value:function(e){e&&(e.language&&this.setEditorLanguage(e.language),void 0!==e.readOnly&&this.editor.updateOptions({readOnly:e.readOnly}),void 0!==e.lineWrap&&this.editor.updateOptions({wordWrap:e.lineWrap?"on":"off"}),void 0!==e.typeCheck&&this.setTypeCheck(e.typeCheck),void 0!==e.isDark&&this.monaco.editor.setTheme(e.isDark?"vs-dark":"vs"))}},{key:"componentWillUnmount",value:function(){this.editor&&(this.props.onRegisterSelect&&this.props.onRegisterSelect(null),this.editor.dispose(),this.editor=null)}},{key:"setEditorLanguage",value:function(e){var t=this.editor.getModel(),n=t.getValue(),a=t.uri.path,s="string"===typeof a&&a.includes(".")?a.substr(0,a.lastIndexOf(".")):"index",o="javascript"===e?"js":"typescript"===e?"ts":e;t.dispose();var i="javascript"===e||"typescript"===e?"typescript":e,r=this.monaco.editor.createModel(n,i,this.monaco.Uri.from({path:"".concat(s).concat(it++,".").concat(o)}));this.editor.setModel(r)}},{key:"setTypeCheck",value:function(e){var t={noSemanticValidation:!this.state.alive||!e,noSyntaxValidation:!this.state.alive};this.monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions(t)}},{key:"setEditorTypings",value:function(){for(var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=/^script\.js\.global\./.test(t),a="".concat(t,".d.ts"),s=[],o=0,i=Object.keys(this.typings);oe||e>t[0].endLineNumber)&&this.editor.revealLineInCenter(e)}}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this,n={};this.state.name!==e.name&&this.initNewScript(e.name,e.code),JSON.stringify(e.runningInstances)!==this.runningInstancesStr&&(this.runningInstancesStr=JSON.stringify(e.runningInstances),this.state.typingsLoaded||this.loadTypings(e.runningInstances)),e.changed||e.code===this.originalCode&&e.code===this.editor.getValue()||(this.originalCode=e.code,this.editor.setValue(this.originalCode),this.showDecorators(),this.location&&this.scrollToLineIfNeeded(this.location.lineNumber+1)),e.searchText!==this.lastSearch&&(this.lastSearch=e.searchText,this.highlightText(this.lastSearch)),JSON.stringify(e.location)!==JSON.stringify(this.location)&&JSON.stringify(e.breakpoints)!==JSON.stringify(this.breakpoints)?(this.location=e.location,this.breakpoints=e.breakpoints,this.showDecorators(),this.editor&&this.location&&this.scrollToLineIfNeeded(this.location.lineNumber+1)):JSON.stringify(e.breakpoints)!==JSON.stringify(this.breakpoints)?(this.breakpoints=e.breakpoints,this.showDecorators()):JSON.stringify(e.location)!==JSON.stringify(this.location)&&(this.location=e.location,this.showDecorators(),this.editor&&this.location&&this.scrollToLineIfNeeded(this.location.lineNumber+1)),this.state.language!==(e.language||"javascript")?(this.setState({language:e.language||"javascript"}),n.language=e.language||"javascript"):this.state.readOnly!==(e.readOnly||!1)?(this.setState({readOnly:e.readOnly||!1}),n.readOnly=e.readOnly):this.state.isDark!==(e.isDark||!1)&&(this.setState({isDark:e.isDark||!1}),n.isDark=e.isDark),this.setEditorOptions(n),this.insert!==e.insert&&(this.insert=e.insert,this.insert&&(console.log("Insert text"+this.insert),setTimeout((function(e){t.insertTextIntoEditor(e),setTimeout((function(){return t.props.onInserted&&t.props.onInserted()}),100)}),100,this.insert)))}},{key:"onChange",value:function(e,t){this.props.readOnly||this.props.onChange&&this.props.onChange(this.editor.getValue())}},{key:"render",value:function(){var e=this;return this.monaco&&this.props.runningInstances?(0,se.jsx)("div",{ref:function(t){return e.monacoDiv=t},style:{width:"100%",height:"100%",overflow:"hidden",position:"relative"},children:!this.state.check&&(0,se.jsx)(ot.Z,{size:"small",title:k.I18n.t("Check is not active, because javascript adapter is disabled"),style:{bottom:10,right:10,opacity:.5,position:"absolute",zIndex:1,background:"red",color:"white"},color:"secondary",children:(0,se.jsx)(S.vhT,{})})}):(setTimeout((function(){e.monaco=window.monaco,e.forceUpdate()}),200),null)}}]),n}(s().Component),lt=rt,ct=n(74165),ut=n(15861),dt=n(1413),pt=n(94366),ht=n(60627),gt=n(56120),mt=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).handleCancel=function(){a.props.onClose()},a.state={anchorEl:null,popper:""},a}return(0,d.Z)(n,[{key:"onCopy",value:function(e){var t=this;k.Utils.copyToClipboard(this.props.text);var n=e.currentTarget;setTimeout((function(){t.setState({popper:k.I18n.t("Copied"),anchorEl:n}),setTimeout((function(){return t.setState({popper:"",anchorEl:null})}),1e3)}),50)}},{key:"render",value:function(){var e=this,t=this.props.classes;return(0,se.jsxs)(Q.Z,{onClose:function(e,t){return!1},maxWidth:"lg",classes:{paper:t.dialog},fullWidth:!0,open:this.props.open,"aria-labelledby":"export-dialog-title",children:[(0,se.jsx)(q.Z,{id:"export-dialog-title",children:k.I18n.t("Export selected blocks")}),(0,se.jsx)(Y.Z,{classes:{root:t.overflowY},children:(0,se.jsx)("pre",{id:"export-text",className:"".concat(t.textArea," ").concat("dark"===this.props.themeType?"":t.textAreaLight),children:this.props.text})}),(0,se.jsxs)(K.Z,{children:[(0,se.jsx)(H.Z,{variant:"contained",onClick:function(t){return e.onCopy(t)},color:"secondary",startIcon:(0,se.jsx)(gt.Z,{}),children:k.I18n.t("Copy to clipboard")}),(0,se.jsx)(H.Z,{variant:"contained",onClick:function(){return e.handleCancel()},color:"primary",startIcon:(0,se.jsx)(ne.default,{}),children:k.I18n.t("Close")}),(0,se.jsx)(pt.Z,{id:"popper",style:{zIndex:1e4},open:!!this.state.popper,placement:"top",anchorEl:this.state.anchorEl,transition:!0,children:function(n){var a=n.TransitionProps;return(0,se.jsx)(ht.Z,(0,dt.Z)((0,dt.Z)({},a),{},{timeout:350,children:(0,se.jsx)(st.Z,{children:(0,se.jsx)("p",{className:t.typography,children:e.state.popper})})}))}}),(0,se.jsx)("textarea",{id:"copy_input",readOnly:!0,style:{position:"absolute",left:-9999},tabIndex:-1,"aria-hidden":!0,value:this.props.text})]})]},"export-dialog")}}]),n}(s().Component);mt.defaultProps={open:!0};var ft=(0,g.Z)((function(e){return{textArea:{width:"100%",height:"100%",overflow:"auto"},textAreaLight:{background:"lightgray"},dialog:{height:"95%"},typography:{padding:e.spacing(2)},overflowY:{overflowY:"hidden"}}}))(mt),vt=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).state={text:""},a}return(0,d.Z)(n,[{key:"componentDidMount",value:function(){setTimeout((function(){try{window.document.getElementById("import-text-area").focus()}catch(e){}}),100)}},{key:"handleCancel",value:function(){this.props.onClose()}},{key:"handleOk",value:function(){this.props.onClose(this.state.text)}},{key:"onChange",value:function(e){this.setState({text:e.target.value})}},{key:"render",value:function(){var e=this,t=this.props.classes;return(0,se.jsxs)(Q.Z,{onClose:function(e,t){return!1},maxWidth:"lg",classes:{paper:t.dialog},fullWidth:!0,open:this.props.open,"aria-labelledby":"import-dialog-title",children:[(0,se.jsx)(q.Z,{id:"import-dialog-title",children:k.I18n.t("Import blocks")}),(0,se.jsx)(Y.Z,{className:t.fullHeight,children:(0,se.jsx)("textarea",{autoFocus:!0,id:"import-text-area",className:t.textArea,onChange:function(t){return e.onChange(t)}})}),(0,se.jsxs)(K.Z,{children:[(0,se.jsx)(H.Z,{variant:"contained",disabled:!this.state.text,onClick:function(t){return e.handleOk()},color:"primary",startIcon:(0,se.jsx)(ae.default,{}),children:k.I18n.t("Import")}),(0,se.jsx)(H.Z,{color:"grey",variant:"contained",onClick:function(){return e.handleCancel()},startIcon:(0,se.jsx)(ne.default,{}),children:k.I18n.t("Close")})]})]})}}]),n}(s().Component);vt.defaultProps={open:!0};var yt,bt=(0,g.Z)((function(e){return{textArea:{width:"calc(100% - 10px)",height:"100%",resize:"none"},dialog:{height:"95%"},fullHeight:{height:"100%",overflow:"hidden"}}}))(vt),kt=!1,St=!1,xt=null,wt=[];function Ct(e,t,n,a){if(a=a||[],"BLOCK"!==e.tagName&&"block"!==e.tagName||(n=e.id),"FIELD"===e.tagName||"field"===e.tagName)for(var s=0;s=0;s--)if("//"===n[s].substring(0,2)){a=n[s].substring(2);break}if("'+e+"");var t=e.replace(/[\n\r]/g,"").match(/(.*)<\/variables>/);if(t){var n=this.Blockly.utils.xml.textToDomDocument(""+t[1]+"");if(n){var a=n.childNodes&&n.childNodes[0]&&n.childNodes[0].childNodes;if(a)for(var s=0;s.*<\/variables>/g,""),window.scripts.loading=!0;var o=this.Blockly.utils.xml.textToDom(e);if("xml"===o.nodeName)for(var i=0;i';window.scripts.loading=!0;var n=this.Blockly.utils.xml.textToDom(t);this.Blockly.Xml.domToWorkspace(n,this.blocklyWorkspace),window.scripts.loading=!1}catch(a){console.error(a),setTimeout((function(){return e.setState({error:k.I18n.t("Cannot extract Blockly code!")})}))}setTimeout((function(){return e.ignoreChanges=!1}),100)}}},{key:"onBlocklyChanged",value:function(){this.blocklyRemoveOrphanedShadows(),this.setState({changed:!0}),this.onChange()}},{key:"componentDidUpdate",value:function(){var e=(0,ut.Z)((0,ct.Z)().mark((function e(){var t,n=this;return(0,ct.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.blockly){e.next=2;break}return e.abrupt("return");case 2:if(this.didUpdate&&(clearTimeout(this.didUpdate),this.didUpdate=null),!this.blocklyWorkspace){e.next=5;break}return e.abrupt("return");case 5:if(window.addEventListener("resize",this.onResizeBind,!1),e.t0=xt,e.t0){e.next=11;break}return e.next=10,this.getToolbox();case 10:e.t0=e.sent;case 11:xt=e.t0,yt=yt||this.Blockly.utils.xml.textToDom(xt),this.blocklyWorkspace=this.Blockly.inject(this.blockly,{media:"google-blockly/media/",toolbox:yt,zoom:{controls:!0,wheel:!1,startScale:1,maxScale:3,minScale:.3,scaleSpeed:1.2},move:{scrollbars:!0,drag:!0,wheel:!0},trashcan:!0,grid:{spacing:25,length:3,colour:"#ccc",snap:!0},sounds:!1}),window.scripts={blocklyWorkspace:this.blocklyWorkspace},this.blocklyWorkspace.registerToolboxCategoryCallback("PROCEDURE",this.Blockly.Procedures.flyoutCategoryNew),this.blocklyWorkspace.addChangeListener((function(e){if(n.someSelected&&Date.now()-n.someSelectedTime>500){var t=n.blocklyWorkspace.getAllBlocks();n.someSelected=null,t.forEach((function(e){return e.removeSelect()}))}e.type!==n.Blockly.Events.UI&&e.type!==n.Blockly.Events.CREATE&&(n.ignoreChanges||(n.changeTimer&&clearTimeout(n.changeTimer),n.changeTimer=setTimeout((function(){n.changeTimer=null,n.onBlocklyChanged()}),200)))})),this.loadCode(),this.onResize(),t=document.getElementsByClassName("blocklyToolboxDiv")[0],this.blockly.appendChild(t),this.updateBackground(),setTimeout((function(){return n.searchId()}),200);case 23:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"updateBackground",value:function(){var e=document.getElementsByClassName("blocklyMainBackground")[0];"dark"===this.state.themeType?(e._originalStyle||(e._originalStyle={stroke:e.style.stroke,fill:e.style.fill}),e.style.stroke="#3a3a3a",e.style.fill="#515151"):e._originalStyle&&(e.style.stroke=e._originalStyle.stroke,e.style.fill=e._originalStyle.fill)}},{key:"componentWillUnmount",value:function(){this.blocklyWorkspace&&(this.blocklyWorkspace.dispose(),this.blocklyWorkspace=null,this.changeTimer&&clearTimeout(this.changeTimer),this.changeTimer=null,window.removeEventListener("resize",this.onResizeBind))}},{key:"onChange",value:function(){this.originalCode=this.blocklyCode2JSCode(),this.props.onChange&&this.props.onChange(this.originalCode)}},{key:"getToolbox",value:function(){var e=(0,ut.Z)((0,ct.Z)().mark((function e(t){var n,a,s,o,i,r,l,c=this;return(0,ct.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=window.document.getElementById("toolbox"),a=n&&n.outerHTML){e.next=9;break}if(t){e.next=7;break}return e.abrupt("return",new Promise((function(e){return setTimeout((function(){return e(c.getToolbox(!0))}),500)})));case 7:return console.error("Cannot load blocks!"),e.abrupt("return","");case 9:if(a=a.replace(/{(\w+)}/g,(function(e,t){return window.MSG[t]})),this.Blockly.CustomBlocks){for(s="",o=k.I18n.getLanguage(),i=0;i',this.Blockly[r].blocks)this.Blockly[r].blocks.hasOwnProperty(l)&&(s+=this.Blockly[r].blocks[l]);s+=""}a=a.replace("%%CUSTOM_BLOCKS%%",s)}return e.abrupt("return",a);case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"renderMessageDialog",value:function(){var e=this;return this.state.message?(0,se.jsx)(y.default,{text:"object"===typeof this.state.message?this.state.message.text:this.state.message,title:"object"===typeof this.state.message?this.state.message.title:"",onClose:function(){return e.setState({message:""})}},"dialogMessage"):null}},{key:"renderErrorDialog",value:function(){var e=this;return this.state.error?(0,se.jsx)(be,{text:"object"===typeof this.state.error?this.state.error.text.toString():this.state.error,title:"object"===typeof this.state.error?this.state.error.title:"",onClose:function(){e.blinkBlock&&(e.blocklyBlinkBlock(e.blinkBlock),e.blinkBlock=null),e.setState({error:""})}},"dialogError"):null}},{key:"renderExportDialog",value:function(){var e=this;return this.state.exportText?(0,se.jsx)(ft,{theme:this.state.themeType,onClose:function(){return e.setState({exportText:""})},text:this.state.exportText},"dialogExport"):null}},{key:"renderImportDialog",value:function(){var e=this;return this.state.importText?(0,se.jsx)(bt,{onClose:function(t){e.setState({importText:!1}),e.onImportBlocks(t)}},"dialogImport"):null}},{key:"render",value:function(){var e=this;return this.state.languageBlocklyLoaded&&this.state.languageOwnLoaded?(this.didUpdate=setTimeout((function(){e.didUpdate=null,e.componentDidUpdate()}),100),[(0,se.jsx)("div",{ref:function(t){return e.blockly=t},style:{width:"100%",height:"100%",position:"relative"}},"blocklyDOM"),this.renderMessageDialog(),this.renderErrorDialog(),this.renderExportDialog(),this.renderImportDialog()]):null}}],[{key:"loadJS",value:function(e,t,n){var a=document.createElement("script");try{a.src=e,a.onload=t,a.onreadystatechange=t,a.onerror=t,(n||window.document.body).appendChild(a)}catch(s){console.error("Cannot load "+e+": "+s),t&&t()}}},{key:"loadScripts",value:function(e,t){if(!e||!e.length)return t&&t();var a=e.pop();-1===wt.indexOf(a)?(wt.push(a),n.loadJS("../../adapter/"+a+"/blockly.js",(function(){return setTimeout((function(){return n.loadScripts(e,t)}),0)}))):setTimeout((function(){return n.loadScripts(e,t)}),0)}},{key:"loadCustomBlockly",value:function(e,t){var a=[];for(var s in e)e.hasOwnProperty(s)&&e[s]&&s.match(/^system\.adapter\./)&&"adapter"===e[s].type&&e[s].common&&e[s].common.blockly&&(console.log("Detected custom blockly: "+e[s].common.name),a.push(e[s].common.name));n.loadScripts(a,t)}},{key:"loadXMLDoc",value:function(e){return(window.DOMParser?function(e){return(new window.DOMParser).parseFromString(e,"text/xml")}:"undefined"!=typeof window.ActiveXObject&&new window.ActiveXObject("Microsoft.XMLDOM")?function(e){var t=new window.ActiveXObject("Microsoft.XMLDOM");return t.async="false",t.loadXML(e),t}:function(){return null})(e)}}]),n}(s().Component),jt=It,Tt=n(53329),At=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).state={changed:!1,source:a.props.source},!a.state.source&&a.props.isReturn&&(a.state.source="\nreturn false"),a}return(0,d.Z)(n,[{key:"componentDidMount",value:function(){setTimeout((function(){try{window.document.getElementById("source-text-area").focus()}catch(e){}}),100)}},{key:"handleCancel",value:function(){this.props.onClose(!1)}},{key:"handleOk",value:function(){this.props.isReturn&&!this.state.source.includes("return ")||this.props.onClose(this.state.source)}},{key:"onChange",value:function(e){this.setState({changed:!0,source:e})}},{key:"render",value:function(){var e=this,t=this.props.classes;return(0,se.jsxs)(Q.Z,{onClose:function(e,t){return!1},maxWidth:"lg",classes:{paper:t.dialog},fullWidth:!0,open:!0,"aria-labelledby":"source-dialog-title",children:[(0,se.jsx)(q.Z,{id:"source-dialog-title",children:k.I18n.t("Function editor")}),(0,se.jsxs)(Y.Z,{className:t.fullHeight,children:[this.props.args&&(0,se.jsxs)("div",{className:t.args,children:[(0,se.jsx)("span",{className:t.argsTitle,children:k.I18n.t("function (")}),this.props.args,(0,se.jsx)("span",{className:t.argsTitle,children:")"})]},"arguments"),(0,se.jsx)(lt,{adapterName:this.props.adapterName,runningInstances:this.props.runningInstances,className:t.textArea,style:{height:this.props.args?"calc(100% - 30px)":"100%"},name:"blockly",socket:this.props.socket,readOnly:!1,checkJs:!1,changed:this.state.changed,code:this.state.source,isDark:"dark"===this.props.themeType,onChange:function(t){return e.onChange(t)},language:"javascript"},"scriptEditor")]}),(0,se.jsxs)(K.Z,{children:[(0,se.jsx)(H.Z,{variant:"contained",onClick:function(){return e.handleOk()},color:"primary",startIcon:(0,se.jsx)(Tt.default,{}),children:k.I18n.t("Save")}),(0,se.jsx)(H.Z,{color:"grey",variant:"contained",onClick:function(){return e.handleCancel()},startIcon:(0,se.jsx)(ne.default,{}),children:k.I18n.t("Cancel")})]})]})}}]),n}(s().Component),Dt=(0,g.Z)((function(e){return{textArea:{width:"calc(100% - 10px)",resize:"none"},dialog:{height:"95%"},fullHeight:{height:"100%",overflow:"hidden"},args:{color:"dark"===e.palette.mode?"white":"black",height:30,width:"100%",fontSize:16},argsTitle:{color:"dark"===e.palette.mode?"white":"black",fontWeight:"bold"}}}))(At),Nt="style_wrapperRules__O-oAU",Et="style_rootWrapper__rXS-l",Ot="style_addClass__4KLUZ",Mt=n(32449),zt="style_switchesItem__DY9Qy",Zt="style_switchesItemActive__kglCJ",Rt="style_iconTheme__AotSq",Ft=n(24910),Bt={},Pt=function(e){var t=e.iconName,n=e.className,s=e.adapter,o=e.socket,i=e.onClick,r=(0,a.useState)(""),l=(0,w.Z)(r,2),c=l[0],u=l[1];if((0,a.useEffect)((function(){s&&o&&(Bt[s]=Bt[s]||o.getObject("system.adapter.".concat(s)),Bt[s].then((function(e){var t;return(null===e||void 0===e||null===(t=e.common)||void 0===t?void 0:t.icon)&&u("../../adapter/".concat(s,"/").concat(e.common.icon))})))}),[s,o]),s)return(0,se.jsx)("img",{onClick:function(e){return i&&i(e)},src:c||"",className:n,alt:""});var d=Ft[t||"Help"];return(0,se.jsx)(d,{className:n,onClick:function(e){return i&&i(e)}})};Pt.defaultProps={className:null,iconName:"Help"};var _t=Pt,Lt=function(e){var t=e.name,n=e.id,a=e.active,s=e.icon,o=e.adapter,i=e.socket,r=e.onDoubleClick,l=e.title,c=e.onTouchMove;return(0,se.jsxs)("div",{onDoubleClick:r,onTouchMove:c,title:k.I18n.t(l),className:k.Utils.clsx(zt,a&&Zt,"block-"+n),children:[(0,se.jsx)(_t,{iconName:s,className:Rt,adapter:o,socket:i}),(0,se.jsx)("span",{children:t?k.I18n.t(t):""})]},n)};Lt.defaultProps={name:"",active:!1,id:"",onDoubleClick:function(){}};var Ut=Lt,Wt="style_cardStyle__bzAxQ",Vt="style_cardStyleActive__BaK+z",Jt="style_controlMenu__RxkVe",Gt="style_closeBtn__-nF+7",Ht="style_isDelete__u9OAa",qt="style_drag_mobile__d9hW5",Yt=n(4942);function Kt(e,t,n){return"actions"===e?(0,dt.Z)((0,dt.Z)({},t),{},(0,Yt.Z)({},e,(0,dt.Z)((0,dt.Z)({},t[e]),{},(0,Yt.Z)({},n,(0,c.Z)(t[e][n]))))):(0,dt.Z)((0,dt.Z)({},t),{},(0,Yt.Z)({},e,(0,c.Z)(t[e])))}function Qt(e,t,n,a){switch(e){case"actions":case"conditions":return t[e][n]=t[e][n].filter((function(e){return e._id!==a})),t;default:return t[e]=t[e].filter((function(e){return e._id!==a})),t}}var Xt=n(11752),$t=n(61120),en={cardStyle:"style_cardStyle__Qk8PP",nameCard:"style_nameCard__eHe3n",cardStyleActive:"style_cardStyleActive__UjCy0",iconThemCard:"style_iconThemCard__tMl1-",iconThemCardSelectable:"style_iconThemCardSelectable__6mEII",iconHelp:"style_iconHelp__b28SN",inputCard:"style_inputCard__zwn8V",blockName:"style_blockName__T-Ud-",controlMenu:"style_controlMenu__kR476",closeBtn:"style_closeBtn__7c+6X",controlMenuTop:"style_controlMenuTop__OayQd",debugInfo:"style_debugInfo__kdwsD",fadeIn:"style_fadeIn__jT4pd",tagCard:"style_tagCard__n9gJP",displayFlex:"style_displayFlex__4QnOf",blockMarginTop:"style_blockMarginTop__ZM9lX",nameBlock:"style_nameBlock__H2Ujc",frontText:"style_frontText__yvugL",backText:"style_backText__nuybg",iconTag:"style_iconTag__x0Rub",displayItalic:"style_displayItalic__LY2l3"},tn=n(94427),nn=n(95857),an=n(31238),sn=n(32548),on=n(70810),rn="style_root__569oE",ln="style_square__rf4cS",cn="style_icon__bnClh",un=function(e){var t=e.fullWidth,n=e.size,a=e.onClick,s=e.style,o=e.className,i=e.value,r=e.square,l=e.icon;return(0,se.jsx)(tn.Button,{variant:"outlined",color:"primary",onClick:a,fullWidth:t,style:s,className:k.Utils.clsx(rn,o,r?ln:""),margin:"normal",size:n,children:l?(0,se.jsx)(k.Icon,{className:cn,src:l}):i})};un.defaultProps={value:"",className:null,variant:"standard",size:"medium",fullWidth:!1,square:!1};var dn=un,pn="style_root__HWP9G",hn=function(e){var t=e.size,n=e.value,s=(e.style,e.title),o=e.onChange,i=e.className,r=e.customValue,l=e.disabled,c=(0,a.useState)(!1),u=(0,w.Z)(c,2),d=u[0],p=u[1];return(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(tn.Checkbox,{disabled:l,checked:Boolean(r?n:d),className:k.Utils.clsx(pn,i),onChange:function(e){r&&p(e.target.checked),o(e.target.checked)},size:t}),s||null]})};hn.defaultProps={value:!1,disabled:!1,type:null,error:"",className:null,table:!1,native:{},variant:"standard",size:"medium",component:null,styleComponentBlock:null,onChange:function(){},fullWidth:!1,autoComplete:"",customValue:!1,label:"all"};var gn=(0,a.memo)(hn),mn={root:"style_root__Ohc9u"},fn=function(e){var t=e.autoFocus,n=e.fullWidth,s=e.disabled,o=e.multiline,i=e.rows,r=e.autoComplete,l=e.label,c=e.error,u=e.size,d=e.variant,p=e.value,h=e.type,g=e.style,m=e.onChange,f=e.className,v=e.customValue,y=e.icon,b=(0,a.useState)(""),S=(0,w.Z)(b,2),x=S[0],C=S[1];return(0,se.jsx)(tn.TextField,{error:!!c,autoFocus:t,fullWidth:n,label:l,disabled:s,variant:d,multiline:o,rows:i,value:v?p:x,type:h,helperText:c,style:g,className:k.Utils.clsx(mn.root,f),autoComplete:r,onChange:function(e){!v&&C(e.target.value),m(e.target.value)},InputProps:{endAdornment:y?(0,se.jsx)(Se.Z,{position:"end",children:(0,se.jsx)(k.Icon,{className:mn.icon,src:y})}):null},margin:"normal",size:u})};fn.defaultProps={value:"",type:"text",error:"",className:null,table:!1,native:{},variant:"standard",size:"medium",component:null,styleComponentBlock:null,onChange:function(){},fullWidth:!1,autoComplete:"",customValue:!1,autoFocus:!1,rows:1};var vn=fn,yn=(0,g.Z)({root:{margin:"10px 0","& .MuiFormControl-marginNormal":{marginTop:0,marginBottom:0},"& > *":{color:"#2d0440 !important"},"& .MuiSelect-icon":{color:"#81688c"},"& label.Mui-focused":{color:"#81688c"},"& .MuiInput-underline:after":{borderBottomColor:"#510573"},"& .MuiInput-underline:before":{borderBottomColor:"#81688c"},"& .MuiInput-underline:hover:before":{borderBottomColor:"#81688c"}}})(tn.FormControl),bn=function(e){var t=e.multiple,n=e.value,s=e.customValue,o=e.socket,i=e.title,r=e.attr,l=e.adapter,c=e.style,u=e.onChange,d=e.className,p=e.onInstanceHide,h=(0,a.useState)(n||"test1"),g=(0,w.Z)(h,2),m=g[0],f=g[1],v=(0,a.useState)([]),y=(0,w.Z)(v,2),b=y[0],S=y[1];return(0,a.useEffect)((function(){o&&o.getAdapterInstances(l).then((function(e){var t=e.map((function(e){return{value:e._id.replace("system.adapter.",""),title:e._id.replace("system.adapter.","")}}));1===t.length?p(t[0].value):t.unshift({value:l,title:k.I18n.t("All")}),S(t)}))}),[o,l,p]),(0,se.jsxs)(yn,{className:d,fullWidth:!0,style:c,children:[(0,se.jsx)(tn.Select,{variant:"standard",value:(s?n:m)||"_",fullWidth:!0,multiple:t,renderValue:function(e){return t&&e.join?e.join(", "):e},onChange:function(e){!s&&f(e.target.value),u(e.target.value)},input:r?(0,se.jsx)(tn.Input,{name:r,id:r+"-helper"}):(0,se.jsx)(tn.Input,{name:r}),children:b.map((function(e){return(0,se.jsxs)(tn.MenuItem,{style:{placeContent:"space-between"},value:e.value||"_",children:[k.I18n.t(e.title),e.title2&&(0,se.jsx)("div",{children:e.title2})]},"key-"+e.value)}))}),(0,se.jsx)(tn.FormHelperText,{children:k.I18n.t(i)})]})};bn.defaultProps={value:"",className:null,table:!1,customValue:!1};var kn=bn,Sn="style_modalWrapper__mluI5",xn="style_modalDialog__Pki9P",wn=n(18181),Cn=function(e){var t=e.open,n=e.onClose,s=e.children,o=e.titleButtonApply,i=e.titleButtonClose,r=e.onApply,l=e.className,c=e.textInput,u=e.defaultValue,d=(0,a.useState)(u),p=(0,w.Z)(d,2),h=p[0],g=p[1];return(0,se.jsxs)(tn.Dialog,{open:t,maxWidth:"md",disableEscapeKeyDown:!1,onClose:n,classes:{paper:xn},className:Sn,children:[(0,se.jsxs)(tn.DialogContent,{children:[c&&(0,se.jsx)(vn,{className:l,autoComplete:"off",fullWidth:!0,variant:"outlined",size:"medium",rows:10,multiline:!0,value:h,onChange:g,customValue:!0}),!c&&s]}),(0,se.jsxs)(tn.DialogActions,{children:[(0,se.jsx)(H.Z,{onClick:function(){return r(c?h:null)},variant:"contained",color:"primary",children:wn.default.t(o)}),(0,se.jsx)(H.Z,{color:"grey",onClick:n,variant:"contained",children:wn.default.t(i)})]})]})};Cn.defaultProps={open:!1,onApply:function(){},onClose:function(){},titleButtonClose:"Cancel",titleButtonApply:"Ok"};var In=Cn,jn="style_root__GxGj0",Tn=function(e){var t=e.multiple,n=e.value,s=e.customValue,o=e.title,i=e.attr,r=e.options,l=e.style,c=e.onChange,u=e.className,d=e.doNotTranslate,p=e.doNotTranslate2,h=(0,a.useState)(void 0===n?r[0].value:n),g=(0,w.Z)(h,2),m=g[0],f=g[1],v=s?n:m,y=""===v||null===v||void 0===v?"_":v;return(0,se.jsxs)(tn.FormControl,{variant:"standard",className:k.Utils.clsx(jn,u),fullWidth:!0,style:l,children:[(0,se.jsxs)(tn.Select,{variant:"standard",value:y,fullWidth:!0,multiple:t,renderValue:function(e){if(t&&e.join){e.sort();var n=e.indexOf("0");-1!==n&&(e.splice(n,1),e.push("0")),-1!==(n=e.indexOf("_"))&&(e.splice(n,1),e.unshift("_"));var a=r.find((function(e){return e.only}));if(e.includes(a.value))return a.titleShort?d?a.titleShort:k.I18n.t(a.titleShort):d?a.title:k.I18n.t(a.title);var s=e.map((function(e){return r.find((function(t){return t.value===e||"_"===e&&""===t.value}))||e})).map((function(e){return"object"===typeof e?e.titleShort?d?e.titleShort:k.I18n.t(e.titleShort):d?e.title:k.I18n.t(e.title):d?e:k.I18n.t(e)}));return s.join(", ")}var o=r?r.find((function(t){return t.value===e||"_"===e&&""===t.value})):null;return null!==o&&void 0!==o&&o.title?d?null===o||void 0===o?void 0:o.title:k.I18n.t(null===o||void 0===o?void 0:o.title):e},onChange:function(e){if(!s&&f(e.target.value),t){var n=r.find((function(e){return e.only}));if(n){var a=n.value;if(e.target.value.length===r.length-1&&e.target.value.includes(a))return c(e.target.value.filter((function(e){return e!==a})),i);if(e.target.value.includes(a))return c(r.map((function(e){return e.value})),i)}}c(e.target.value,i)},input:i?(0,se.jsx)(tn.Input,{name:i,id:"".concat(i,"-helper")}):(0,se.jsx)(tn.Input,{name:i}),children:[!t&&r&&r.map((function(e){return(0,se.jsxs)(tn.MenuItem,{style:{placeContent:"space-between"},value:""===e.value||null===e.value||void 0===e.value?"_":e.value,children:[d?e.title:k.I18n.t(e.title),e.title2&&(0,se.jsx)("div",{children:p?e.title2:k.I18n.t(e.title2)})]},"key-".concat(e.value))})),t&&r&&r.map((function(e){return(0,se.jsxs)(tn.MenuItem,{style:{placeContent:"space-between"},value:e.value||"_",children:[d?e.title:k.I18n.t(e.title)," ",(0,se.jsx)(gn,{customValue:!0,value:n.includes(e.value)})]},"key-".concat(e.value))}))]}),o?(0,se.jsx)(tn.FormHelperText,{children:k.I18n.t(o)}):null]})};Tn.defaultProps={value:"",className:null,table:!1,customValue:!1,multiple:!1};var An=Tn,Dn="style_root__EDdVB",Nn="style_mark__oVsRI",En=function(e){e.fullWidth;var t=e.autoComplete,n=e.label,s=e.error,o=e.size,i=e.variant,r=e.value,l=e.type,c=e.style,u=e.onChange,d=e.className,p=e.customValue,h=e.min,g=e.max,m=e.step,f=e.unit,v=(0,a.useState)(0),y=(0,w.Z)(v,2),b=y[0],S=y[1];h=void 0!==h?h:0,g=void 0!==g?g:0,m=void 0!==m?m:(g-h)/100;var x=[{value:h,label:h+(f||"")},{value:g,label:g+(f||"")}];return(0,se.jsx)(tn.Slider,{defaultValue:p?r:b,"aria-labelledby":"discrete-slider",valueLabelDisplay:"auto",classes:{mark:Nn},marks:x,step:m,min:h,max:g,error:s||"",label:n,variant:i,value:p?r:b,type:l,style:c,className:k.Utils.clsx(Dn,d),autoComplete:t,onChange:function(e,t){!p&&S(t),u(t)},margin:"normal",size:o})};En.defaultProps={value:"",type:"text",error:"",className:null,table:!1,native:{},variant:"standard",size:"medium",component:null,styleComponentBlock:null,onChange:function(){},fullWidth:!1,autoComplete:"",customValue:!1};var On=En,Mn="style_root__gbUwF",zn=function(e){var t=e.label,n=e.size,s=e.value,o=e.style,i=e.onChange,r=e.className,l=e.customValue,c=(0,a.useState)(!1),u=(0,w.Z)(c,2),d=u[0],p=u[1];return(0,se.jsx)(tn.FormControlLabel,{className:Mn,control:(0,se.jsx)(tn.Switch,{checked:l?s:d,style:o,className:r,onChange:function(e){l||p(e.target.checked),i(e.target.checked)},size:n}),label:t})};zn.defaultProps={value:!1,type:"text",error:"",className:null,table:!1,native:{},variant:"standard",size:"medium",component:null,styleComponentBlock:null,onChange:function(){},fullWidth:!1,autoComplete:"",customValue:!1,label:"all"};var Zn=(0,a.memo)(zn),Rn="style_root__K8xdq",Fn=function(e){var t=e.value,n=e.style,a=e.onChange,s=e.className;return(0,se.jsx)(tn.TextField,{variant:"standard",id:"time",type:"time",onChange:function(e){return a(e.currentTarget.value)},value:t,className:k.Utils.clsx(Rn,s),fullWidth:!0,style:n,InputLabelProps:{shrink:!0},inputProps:{step:300}})};Fn.defaultProps={value:"",className:null,table:!1};var Bn=Fn,Pn="style_root__MKvTE",_n=[31,29,31,30,31,30,31,31,30,31,30,31],Ln=function(e){var t=e.value,n=e.onChange,a=e.className,s=(e.title,e.style),o=(t||"01.01").toString().split("."),i=(0,w.Z)(o,2),r=i[0],l=i[1];l=parseInt(l,10)||0,(r=parseInt(r,10)||0)>12?r=12:r<0&&(r=0),l>_n[r]?l=_n[r]:l<0&&(l=0);for(var c=[],u=0;u<_n[r];u++)c.push(u+1);return(0,se.jsxs)("div",{children:[(0,se.jsx)(tn.FormControl,{variant:"standard",className:k.Utils.clsx(Pn,a),style:s,children:(0,se.jsxs)(tn.Select,{variant:"standard",className:k.Utils.clsx(Pn,a),margin:"dense",label:k.I18n.t("Month"),onChange:function(e){return n("".concat(e.target.value.toString().padStart(2,"0"),".").concat(l.toString().padStart(2,"0")))},value:r,children:[(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:0,children:k.I18n.t("Any month")},0),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:1,children:k.I18n.t("January")},1),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:2,children:k.I18n.t("February")},2),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:3,children:k.I18n.t("March")},3),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:4,children:k.I18n.t("April")},4),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:5,children:k.I18n.t("May")},5),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:6,children:k.I18n.t("June")},6),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:7,children:k.I18n.t("July")},7),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:8,children:k.I18n.t("August")},8),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:9,children:k.I18n.t("September")},9),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:10,children:k.I18n.t("October")},10),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:11,children:k.I18n.t("November")},11),(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:12,children:k.I18n.t("December")},12)]})}),(0,se.jsx)(tn.FormControl,{variant:"standard",className:k.Utils.clsx(Pn,a),style:s,children:(0,se.jsxs)(tn.Select,{variant:"standard",className:k.Utils.clsx(Pn,a),margin:"dense",label:k.I18n.t("Date"),onChange:function(e){return n("".concat(r.toString().padStart(2,"0"),".").concat(e.target.value.toString().padStart(2,"0")))},value:l,children:[(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:0,children:k.I18n.t("Any")},"A"),c.map((function(e){return(0,se.jsx)(tn.MenuItem,{style:{placeContent:"space-between"},value:e,children:e},e)}))]})})]})};Ln.defaultProps={value:"",className:null};var Un,Wn=Ln,Vn={getName:function(e){return Un=Un||k.I18n.getLanguage(),"object"===typeof e?e[Un]||e.en:e}},Jn=0,Gn=1,Hn=2,qn=3,Yn=4,Kn=5,Qn=6,Xn=7,$n=8,ea=[{selector:".blocks-triggers",content:"Select triggers"},{selector:".block-TriggerScheduleBlock",content:"Double click to add the block"},{selector:".tag-card",content:"Open drop down menu"},{selector:".tag-card-interval",content:"Select interval"},{selector:".blocks-actions",content:"Select action blocks"},{selector:".block-ActionPrintText",content:"Double click to add the block"},{selector:".button-js-code",content:"Check the script"},{selector:".button-js-code",content:"Switch back to rules"},{selector:".button-save",content:"Save the script"}],ta=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e,s){var o;(0,u.Z)(this,n),(o=t.call(this,e)).renderText=function(e,t,n){var s=o.props.className,i=e.attr,r=e.frontText,l=e.backText,c=e.nameBlock,u=e.name,d=e.doNotTranslate,p=e.doNotTranslateBack;return(0,se.jsxs)(a.Fragment,{children:[(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),children:[r&&(0,se.jsx)("div",{className:en.frontText,children:d?r:k.I18n.t(r)}),(0,se.jsx)(vn,{className:s,autoComplete:"off",label:Vn.getName(u),variant:"outlined",size:"small",fullWidth:!0,value:t,onChange:n,customValue:!0}),l&&(0,se.jsx)("div",{className:en.backText,children:p?l:k.I18n.t(l)})]}),c&&(0,se.jsx)("div",{className:en.nameBlock,children:k.I18n.t(c)})]},i)},o.renderSwitch=function(e,t,n){var a=o.props.className,s=e.attr,i=e.frontText,r=e.backText,l=e.nameBlock,c=e.doNotTranslate,u=e.doNotTranslateBack;return(0,se.jsxs)("div",{children:[(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),children:[i&&(0,se.jsx)("div",{className:en.frontText,children:c?i:k.I18n.t(i)}),(0,se.jsx)(Zn,{className:a,label:"",customValue:!0,value:t,onChange:n}),r&&(0,se.jsx)("div",{className:en.backText,children:u?r:k.I18n.t(r)})]}),l&&(0,se.jsx)("div",{className:en.nameBlock,children:k.I18n.t(l)})]},s)},o.renderNameText=function(e,t){var n=e.attr,a=e.signature,s=e.doNotTranslate,o=e.defaultValue;return(0,se.jsx)("div",{className:k.Utils.clsx(a?en.displayItalic:en.displayFlex,en.blockMarginTop),children:t?s?t:k.I18n.t(t):s?o:k.I18n.t(o)},n)},o.renderNumber=function(e,t,n){var a=o.props.className,s=o.state.settings,i=e.attr,r=e.backText,l=e.frontText,c=e.openCheckbox,u=e.doNotTranslate,d=e.doNotTranslateBack,p=!0;return c&&(p="boolean"!==typeof s.offset||s.offset),p?(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),children:[l&&(0,se.jsx)("div",{className:en.frontText,children:u?l:k.I18n.t(l)}),(0,se.jsx)(vn,{className:k.Utils.clsx(a,e.className),fullWidth:!0,autoComplete:"off",label:e.noHelperText?"":"number",variant:"outlined",size:"small",type:"number",value:t,onChange:n,customValue:!0}),r&&(0,se.jsx)("div",{className:en.backText,children:d?r:k.I18n.t(r)})]},i):null},o.renderColor=function(e,t,n){var a=o.props.className,s=e.attr,i=e.backText,r=e.frontText,l=e.doNotTranslate,c=e.doNotTranslateBack;return(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),children:[r&&(0,se.jsx)("div",{className:en.frontText,children:l?r:k.I18n.t(r)}),(0,se.jsx)(vn,{className:a,autoComplete:"off",fullWidth:!0,variant:"outlined",size:"small",type:"color",value:t,onChange:n}),i&&(0,se.jsx)("div",{className:en.backText,children:c?i:k.I18n.t(i)})]},s)},o.renderCheckbox=function(e,t,n){var a=o.props.className,s=o.state.settings,i=e.attr,r=e.backText,l=e.frontText,c=e.defaultValue,u=e.doNotTranslate,d=e.doNotTranslateBack;return(0,se.jsxs)("div",{className:en.displayFlex,children:[l&&(0,se.jsx)("div",{className:en.frontText,children:u?l:k.I18n.t(l)}),(0,se.jsx)(gn,{className:a,size:"small",style:{marginRight:5},value:"boolean"===typeof s[i]?s[i]:c,customValue:!0,onChange:n}),r&&(0,se.jsx)("div",{onClick:function(){return n("boolean"===typeof s[i]?!s[i]:!c)},className:en.backText,children:d?r:k.I18n.t(r)})]},i)},o.renderSlider=function(e,t,n){var a=o.props.className,s=e.attr,i=e.frontText,r=e.backText,l=e.nameBlock,c=e.min,u=e.max,d=e.step,p=e.unit,h=e.doNotTranslate,g=e.doNotTranslateBack;return(0,se.jsxs)("div",{children:[(0,se.jsxs)("div",{className:en.displayFlex,style:{marginRight:20},children:[i&&(0,se.jsx)("div",{className:en.frontText,children:h?i:k.I18n.t(i)}),(0,se.jsx)(On,{customValue:!0,min:c,max:u,step:d,unit:p,className:a,autoComplete:"off",label:"number",variant:"outlined",size:"small",value:t,onChange:function(e){console.log(e),n(e)}}),r&&(0,se.jsx)("div",{style:{marginLeft:20},className:en.backText,children:g?r:k.I18n.t(r)})]}),l&&(0,se.jsx)("div",{className:en.nameBlock,children:k.I18n.t(l)})]},s)},o.renderButton=function(e,t,n){var a=o.props.className,s=e.attr,i=e.frontText,r=e.backText,l=e.buttonText,c=e.doNotTranslate,u=e.doNotTranslateBack;return(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),children:[i&&(0,se.jsx)("div",{className:en.frontText,children:c?i:k.I18n.t(i)}),(0,se.jsx)(dn,{label:l,fullWidth:!0,value:t,className:a,onClick:n}),r&&(0,se.jsx)("div",{className:en.backText,children:u?r:k.I18n.t(r)})]},s)},o.findIcon=function(e){var t;if(!e)return Promise.resolve(null);if(null!==(t=e.common)&&void 0!==t&&t.icon)return Promise.resolve((0,on.getSelectIdIcon)(e,"../.."));if("state"===e.type||"channel"===e.type){var n=e._id.split(".");n.pop();var a=n.join(".");return o.props.socket.getObject(a).then((function(e){return o.findIcon(e)})).catch((function(){return null}))}},o.renderObjectID=function(e,t,n){var a=e.attr,s=e.openCheckbox,i=e.checkReadOnly,r=o.state.settings,l=o.state["showSelectId".concat(a)],c=o.props,u=c.className,d=c.socket,p=!0;return s&&(p="boolean"!==typeof r.offset||r.offset),r[a]&&!o.state[r[a]]&&setTimeout((function(){d.getObject(t).then((function(e){o.findIcon(e).then((function(t){var n,s;return o.setState((s={},(0,Yt.Z)(s,r[a],e),(0,Yt.Z)(s,"".concat(r[a],"___icon"),t),(0,Yt.Z)(s,"error",i&&o.lastObjectIdChange&&Date.now()-o.lastObjectIdChange<1e3&&!1===(null===e||void 0===e||null===(n=e.common)||void 0===n?void 0:n.write)?k.I18n.t("Read only ID selected: %s",r[a]):""),s))}))}))}),0),p?(0,se.jsxs)("div",{className:en.blockMarginTop,children:[(0,se.jsxs)("div",{className:en.displayFlex,children:[e.title?(0,se.jsx)("div",{children:k.I18n.t(e.title)}):null,(0,se.jsx)(vn,{className:u,autoComplete:"off",fullWidth:!0,disabled:!0,variant:"outlined",size:"small",value:t,customValue:!0}),(0,se.jsx)(dn,{icon:o.state["".concat(o.state.settings[e.attr],"___icon")],square:!0,style:{marginLeft:7},value:"...",className:u,onClick:function(){var e={};e["showSelectId".concat(a)]=!0,o.setState(e)}})]}),o.state[o.state.settings[e.attr]]&&(0,se.jsx)("div",{className:k.Utils.clsx(en.nameBlock,en.displayItalic),children:k.Utils.getObjectNameFromObj(o.state[r[a]],k.I18n.getLanguage())}),l?(0,se.jsx)(an.default,{imagePrefix:"../..",dialogName:"javascript",themeType:k.Utils.getThemeName(),socket:d,statesOnly:!0,selected:t,onClose:function(){var e={};e["showSelectId".concat(a)]=!1,o.setState(e)},onOk:function(e,t,s){var i={};i["showSelectId".concat(a)]=!1,o.setState(i,(function(){return d.getObject(e).then((function(t){var s;o.lastObjectIdChange=Date.now(),n((s={},(0,Yt.Z)(s,a,e),(0,Yt.Z)(s,"".concat(a,"Role"),t.common.role),(0,Yt.Z)(s,"".concat(a,"Type"),t.common.type),(0,Yt.Z)(s,"".concat(a,"Unit"),t.common.unit),(0,Yt.Z)(s,"".concat(a,"States"),t.common.states),(0,Yt.Z)(s,"".concat(a,"Min"),t.common.min),(0,Yt.Z)(s,"".concat(a,"Max"),t.common.max),(0,Yt.Z)(s,"".concat(a,"Step"),t.common.step),(0,Yt.Z)(s,"".concat(a,"Def"),t.common.def),(0,Yt.Z)(s,"".concat(a,"Write"),t.common.write),(0,Yt.Z)(s,"".concat(a,"Read"),t.common.read),s),null,(function(){return o.props.setOnUpdate&&o.props.setOnUpdate(!0)}))}))}))}}):null]},a):null},o.renderIconTag=function(){return(0,se.jsx)("div",{className:en.iconTag,onClick:function(e){o.state.settings.tagCard&&(o.state.tagCardArray.length<3?o.onChangeTag():o.setState({openTagMenu:e.currentTarget}))},children:o.state.settings.tagCard})},o.renderTime=function(e,t,n){var a=e.attr,s=e.backText,o=e.frontText,i=e.doNotTranslate,r=e.doNotTranslateBack;return(0,se.jsxs)("div",{className:en.displayFlex,style:{whiteSpace:"nowrap"},children:[o&&(0,se.jsx)("div",{className:en.frontText,children:i?o:k.I18n.t(o)}),(0,se.jsx)(Bn,{value:t,onChange:n}),s&&(0,se.jsx)("div",{className:en.backText,children:r?s:k.I18n.t(s)})]},a)},o.renderSelect=function(e,t,n){var a=o.props.className,s=e.name,i=e.options,r=e.frontText,l=e.backText,c=e.attr,u=e.multiple,d=e.doNotTranslate,p=e.doNotTranslate2,h=e.doNotTranslateBack;return(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),style:{whiteSpace:"nowrap"},children:[r&&(0,se.jsx)("div",{className:en.frontText,children:k.I18n.t(r)}),(0,se.jsx)(An,{attr:c,doNotTranslate:d,doNotTranslate2:p,title:s,className:a,options:i,value:t,onChange:n,multiple:u,customValue:!0}),l&&(0,se.jsx)("div",{className:en.backText,children:h?l:k.I18n.t(l)})]},c)},o.renderInstance=function(e,t,n){var a=o.props,s=a.className,i=a.socket,r=e.name,l=e.options,u=e.frontText,d=e.backText,p=e.attr,h=e.adapter,g=e.doNotTranslate,m=e.doNotTranslateBack;return o.state.hideAttributes.includes(p)?null:(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),style:{whiteSpace:"nowrap"},children:[u&&(0,se.jsx)("div",{className:en.frontText,children:g?u:k.I18n.t(u)}),(0,se.jsx)(kn,{attr:p,socket:i,adapter:h,title:r,className:s,options:l,value:t,onChange:n,customValue:!0,onInstanceHide:function(e){return o.setState({hideAttributes:[].concat((0,c.Z)(o.state.hideAttributes),[p])},(function(){return n(e)}))}}),d&&(0,se.jsx)("div",{className:en.backText,children:m?d:k.I18n.t(d)})]},p)},o.renderDialog=function(e,t,n){var a=e.onShowDialog,s=e.frontText,o=e.backText,i=e.attr,r=e.icon,l=e.doNotTranslate,c=e.doNotTranslateBack;return(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),style:{whiteSpace:"nowrap"},children:[s&&(0,se.jsx)("div",{className:en.frontText,children:l?s:k.I18n.t(s)}),(0,se.jsx)(_t,{iconName:r,className:k.Utils.clsx(en.iconDialog),onClick:function(e){return a&&a()}}),o&&(0,se.jsx)("div",{className:en.backText,children:c?o:k.I18n.t(o)})]},i)},o.renderModalInput=function(e,t,n){var a=o.state.openModal,s=o.props.className,i=e.attr,r=e.nameBlock,l=e.frontText,c=e.backText,u=e.noTextEdit,d=e.doNotTranslate,p=e.doNotTranslateBack;return(0,se.jsxs)("div",{children:[(0,se.jsxs)("div",{className:k.Utils.clsx(en.displayFlex,en.blockMarginTop),children:[l&&(0,se.jsx)("div",{className:en.frontText,children:d?l:k.I18n.t(l)}),(0,se.jsx)(vn,{disabled:!!u,className:s,autoComplete:"off",fullWidth:!0,variant:"outlined",size:"small",value:t,onChange:n,customValue:!0}),(0,se.jsx)(dn,{square:!0,style:{marginLeft:5},value:"...",className:s,onClick:function(){return o.setState({openModal:!0})}}),c&&(0,se.jsx)("div",{className:en.backText,children:p?c:k.I18n.t(c)})]}),a?(0,se.jsx)(In,{open:!0,onApply:function(e){return o.setState({openModal:!1},(function(){return null!==e&&void 0!==e&&n(e)}))},onClose:function(){return o.setState({openModal:!1})},defaultValue:t,textInput:!0}):null,r&&(0,se.jsx)("div",{className:en.nameBlock,children:k.I18n.t(r)})]},i)},o.renderDate=function(e,t,n){var a=e.attr,s=e.backText,o=e.frontText,i=e.doNotTranslate,r=e.doNotTranslateBack;return(0,se.jsxs)("div",{className:en.displayFlex,style:{whiteSpace:"nowrap"},children:[o&&(0,se.jsx)("div",{className:en.frontText,children:i?o:k.I18n.t(o)}),(0,se.jsx)(Wn,{value:t,onChange:n}),s&&(0,se.jsx)("div",{className:en.backText,children:r?s:k.I18n.t(s)})]},a)},o.renderTags=function(){var e=o.state,t=e.tagCardArray,n=e.openTagMenu,a=o.state.settings.tagCard,s="="!==a&&"<>"!==a&&">="!==a&&"()"!==a&&"."!==a&&"<="!==a&&"<"!==a&&">"!==a?k.I18n.t(a):a;return t.length>=3&&(s=(0,se.jsxs)("div",{children:[(0,se.jsx)("div",{"aria-controls":"simple-menu","aria-haspopup":"true",onClick:function(e){o.setState({openTagMenu:e.currentTarget},(function(){o.props.isTourOpen&&o.props.tourStep===Hn&&setTimeout((function(){return o.props.setTourStep(qn)}),300)}))},children:s}),(0,se.jsx)(tn.Menu,{id:"simple-menu",anchorEl:n,keepMounted:!0,open:Boolean(n),onClose:function(){return o.setState({openTagMenu:null})},children:t.map((function(e){var t=e;return"string"!==typeof e&&(t=e.title),(0,se.jsxs)(tn.MenuItem,{selected:t===a,className:"tag-card-"+t,style:{placeContent:"space-between"},onClick:function(){var e=(0,dt.Z)((0,dt.Z)({},o.state.settings),{},{tagCard:t});o.setState({openTagMenu:null,settings:e},(function(){o.props.onChange(e),o.onTagChange(t)})),o.props.isTourOpen&&(o.props.tourStep===Hn||o.props.tourStep===qn)&&"interval"===t&&setTimeout((function(){return o.props.setTourStep(Yn)}),500)},children:[-1!==t.search(/>|<|<>|<=|>=|=/)?t:k.I18n.t(t),"string"!==typeof e&&e.title2&&(0,se.jsx)("div",{style:{marginLeft:4},children:k.I18n.t(e.title2)})]},t)}))})]})),s},o.onChangeTag=function(){var e=o.state,t=e.tagCardArray,n=e.settings,a=e.settings.tagCard,s=(0,c.Z)(t);if("string"!==typeof s[0]&&(s=s.map((function(e){return e.title}))),a&&s.length<3){var i=(0,dt.Z)({},n),r=s[(s.indexOf(a)+1)%s.length];i.tagCard=r,o.setState({settings:i},(function(){o.props.onChange(i),o.onTagChange(r)}))}},o.componentDidMount=function(){o.onTagChange()},o.componentDidUpdate=function(e){"triggers"!==o.props.acceptedBy&&o.props.onUpdate&&setTimeout((function(){return o.onUpdate()}),0)},o.onChangeInput=function(e){return function(t,n,a){var s=JSON.parse(JSON.stringify(o.state.settings));"object"!==typeof t||n&&"function"!==typeof n?s[n||e]=t:Object.keys(t).forEach((function(e){return s[e]=t[e]})),s.id=o.getData().id,s._id=o.props._id,o.setState({settings:s},(function(){o.onValueChanged(t,n||e),o.props.onChange(s),a&&a()}))}},o.render=function(){var e=o.state,t=e.inputs,n=e.name,s=e.icon,i=e.iconTag,r=e.settings,l=e.adapter,c=e.settings.tagCard,u=e.helpDialog,d=o.props,p=d.socket,h=d.notFound;return(0,se.jsxs)(a.Fragment,{children:[i?o.renderIconTag():(0,se.jsx)(_t,{iconName:s,className:k.Utils.clsx(en.iconThemCard,c&&o.state.tagCardArray.length&&en.iconThemCardSelectable),adapter:l,socket:p,onClick:function(e){c&&(o.state.tagCardArray.length<3?o.onChangeTag():o.setState({openTagMenu:e.currentTarget}))}}),(0,se.jsxs)("div",{className:en.blockName,children:[(0,se.jsxs)("span",{className:en.nameCard,children:[k.I18n.t(n),h?k.I18n.t("%s not found",r.id):"",u?(0,se.jsx)(E.Z,{className:en.iconHelp,size:"small",onClick:function(){return o.setState({helpText:k.I18n.t(u)})},children:(0,se.jsx)(nn.Z,{})}):null]}),t.filter((function(e){var t=e.nameRender;return o[t]})).map((function(e){var t=e.nameRender,n=e.defaultValue,a=e.attr,s=e.options;return o[t](e,void 0!==r[a]?r[a]:n,o.onChangeInput(a),s||[])}))]}),c&&(0,se.jsx)("div",{className:en.controlMenuTop,style:{opacity:1,height:22,top:-22},children:(0,se.jsx)("div",{onClick:function(){return o.onChangeTag()},className:k.Utils.clsx(en.tagCard,"tag-card"),children:o.renderTags()})}),o.renderDebugInfo(),o.state.error?(0,se.jsx)(sn.default,{title:k.I18n.t("Warning"),text:o.state.error,onClose:function(){return o.setState({error:""})}}):null,o.state.helpText?(0,se.jsx)(y.default,{title:k.I18n.t("Instructions"),text:o.state.helpText,onClose:function(){return o.setState({helpText:""})}}):null,o.renderSpecific()]})},s=s||{};var i=e.settings||{tagCard:s.tagCardArray?"string"!==typeof s.tagCardArray[0]?s.tagCardArray[0].title:s.tagCardArray[0]:""};return!i.tagCard&&s.tagCardArray&&(i.tagCard="string"!==typeof s.tagCardArray[0]?s.tagCardArray[0].title:s.tagCardArray[0]),o.state={inputs:s.inputs||e.inputs||[],name:s.name||e.name||"",icon:s.icon||e.icon||"",adapter:s.adapter||e.adapter||"",helpDialog:s.helpDialog||e.helpDialog||"",tagCardArray:s.tagCardArray||[],openTagMenu:!1,openModal:!1,iconTag:!1,error:"",helpText:"",oid:{},instanceSelectionOptions:[],instanceSelectionDef:"",hideAttributes:[],settings:i,debugMessage:null,enableSimulation:o.props.enableSimulation},o.debugHideTimeout=null,o}return(0,d.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this;if(e&&e.settings){var n=JSON.parse(JSON.stringify(e.settings));!n.tagCard&&this.state.tagCardArray&&this.state.tagCardArray.length&&(n.tagCard="string"!==typeof this.state.tagCardArray[0]?this.state.tagCardArray[0].title:this.state.tagCardArray[0]);var a=null;e.onDebugMessage&&e.onDebugMessage.blockId===this.props._id&&((a={}).debugMessage=JSON.parse(JSON.stringify(e.onDebugMessage)),this.debugHideTimeout&&clearTimeout(this.debugHideTimeout),this.debugHideTimeout=setTimeout((function(){return t.setState({debugMessage:null})}),e.onDebugMessage.hideTimeout||5e3)),JSON.stringify(n)!==JSON.stringify(this.state.settings)&&((a=a||{}).settings=n),this.state.enableSimulation!==e.enableSimulation&&((a=a||{}).enableSimulation=e.enableSimulation),a&&this.setState(a)}else console.log(JSON.stringify(e))}},{key:"componentWillUnmount",value:function(){this.debugHideTimeout&&clearTimeout(this.debugHideTimeout),this.debugHideTimeout=null}},{key:"onTagChange",value:function(e,t){var n=!1,a=JSON.parse(JSON.stringify(this.state.settings));this.state.inputs.forEach((function(e){e.attr&&void 0!==e.defaultValue&&void 0===a[e.attr]&&(n=!0,a[e.attr]=e.defaultValue)})),n?(this.setState({settings:a},(function(){return t&&t()})),this.props.onChange(a)):t&&t()}},{key:"onUpdate",value:function(){}},{key:"onValueChanged",value:function(e,t){}},{key:"renderSpecific",value:function(){return null}},{key:"renderDebugInfo",value:function(){return this.state.debugMessage?(0,se.jsx)("div",{className:en.debugInfo,style:{opacity:1,height:22,bottom:-22},children:this.renderDebug?this.renderDebug(this.state.debugMessage):k.I18n.t("executed")},this.state.debugMessage.ts):null}}],[{key:"getReplacesInText",value:function(e){var t,n="";return null!==(t=e.trigger)&&void 0!==t&&t.oidType?n=".replace(/%s/g, obj.state.val).replace(/%id/g, obj.id).replace(/%name/g, obj.common && obj.common.name).replace(/%old/g, obj.oldState.val)":e.conditionsStates.length&&(n=".replace(/%s/g, ".concat(e.conditionsStates[0].name,').replace(/%id/g, "').concat(e.conditionsStates[0].id,'")')),n}}]),n}(a.PureComponent),na={en:{name:"Google - English",engine:"google",params:[]},de:{name:"Google - Deutsch",engine:"google",params:[]},ru:{name:"Google - \u0420\u0443\u0441\u0441\u043a\u0438\u0439",engine:"google",params:[]},it:{name:"Google - Italiano",engine:"google",params:[]},es:{name:"Google - Espaniol",engine:"google",params:[]},fr:{name:"Google - Fran\xe7ais",engine:"google",params:[]},ru_YA:{name:"Yandex - \u0420\u0443\u0441\u0441\u043a\u0438\u0439",engine:"yandex",params:["key","voice","emotion","ill","drunk","robot"],voice:["jane","zahar"],emotion:["none","good","neutral","evil","mixed"]},ru_YA_CLOUD:{name:"Yandex Cloud - \u0420\u0443\u0441\u0441\u043a\u0438\u0439",engine:"yandexCloud",params:["key","folderID","voice","emotion"],voice:["alyss","oksana","jane","zahar"],emotion:["good","neutral","evil"]},"en-US":{name:"PicoTTS - Englisch US",engine:"PicoTTS",params:[]},"en-GB":{name:"PicoTTS - Englisch GB",engine:"PicoTTS",params:[]},"de-DE":{name:"PicoTTS - Deutsch",engine:"PicoTTS",params:[]},"it-IT":{name:"PicoTTS - Italiano",engine:"PicoTTS",params:[]},"es-ES":{name:"PicoTTS - Espaniol",engine:"PicoTTS",params:[]},"fr-FR":{name:"PicoTTS - Fran\xe7ais",engine:"PicoTTS",params:[]},"ru-RU_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"ru-RU",ename:"Tatyana",ssml:!0,name:"Cloud - \u0420\u0443\u0441\u0441\u043a\u0438\u0439 - \u0422\u0430\u0442\u044c\u044f\u043d\u0430"},"ru-RU_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"ru-RU",ename:"Maxim",ssml:!0,name:"Cloud - \u0420\u0443\u0441\u0441\u043a\u0438\u0439 - \u041c\u0430\u043a\u0441\u0438\u043c"},"de-DE_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"de-DE",ename:"Marlene",ssml:!0,name:"Cloud - Deutsch - Marlene"},"de-DE_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"de-DE",ename:"Hans",ssml:!0,name:"Cloud - Deutsch - Hans"},"en-US_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-US",ename:"Salli",ssml:!0,name:"Cloud - en-US - Female - Salli"},"en-US_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"en-US",ename:"Joey",ssml:!0,name:"Cloud - en-US - Male - Joey"},"da-DK_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"da-DK",ename:"Naja",ssml:!0,name:"Cloud - da-DK - Female - Naja"},"da-DK_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"da-DK",ename:"Mads",ssml:!0,name:"Cloud - da-DK - Male - Mads"},"en-AU_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-AU",ename:"Nicole",ssml:!0,name:"Cloud - en-AU - Female - Nicole"},"en-AU_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"en-AU",ename:"Russell",ssml:!0,name:"Cloud - en-AU - Male - Russell"},"en-GB_CLOUD_Female_Amy":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-GB",ename:"Amy",ssml:!0,name:"Cloud - en-GB - Female - Amy"},"en-GB_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"en-GB",ename:"Brian",ssml:!0,name:"Cloud - en-GB - Male - Brian"},"en-GB_CLOUD_Female_Emma":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-GB",ename:"Emma",ssml:!0,name:"Cloud - en-GB - Female - Emma"},"en-GB-WLS_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-GB-WLS",ename:"Gwyneth",ssml:!0,name:"Cloud - en-GB-WLS - Female - Gwyneth"},"en-GB-WLS_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"en-GB-WLS",ename:"Geraint",ssml:!0,name:"Cloud - en-GB-WLS - Male - Geraint"},"cy-GB_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"cy-GB",ename:"Gwyneth",ssml:!0,name:"Cloud - cy-GB - Female - Gwyneth"},"cy-GB_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"cy-GB",ename:"Geraint",ssml:!0,name:"Cloud - cy-GB - Male - Geraint"},"en-IN_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-IN",ename:"Raveena",ssml:!0,name:"Cloud - en-IN - Female - Raveena"},"en-US_CLOUD_Male_Chipmunk":{gender:"Male",engine:"cloud",params:["cloud"],language:"en-US",ename:"Chipmunk",ssml:!0,name:"Cloud - en-US - Male - Chipmunk"},"en-US_CLOUD_Male_Eric":{gender:"Male",engine:"cloud",params:["cloud"],language:"en-US",ename:"Eric",ssml:!0,name:"Cloud - en-US - Male - Eric"},"en-US_CLOUD_Female_Ivy":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-US",ename:"Ivy",ssml:!0,name:"Cloud - en-US - Female - Ivy"},"en-US_CLOUD_Female_Jennifer":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-US",ename:"Jennifer",ssml:!0,name:"Cloud - en-US - Female - Jennifer"},"en-US_CLOUD_Male_Justin":{gender:"Male",engine:"cloud",params:["cloud"],language:"en-US",ename:"Justin",ssml:!0,name:"Cloud - en-US - Male - Justin"},"en-US_CLOUD_Female_Kendra":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-US",ename:"Kendra",ssml:!0,name:"Cloud - en-US - Female - Kendra"},"en-US_CLOUD_Female_Kimberly":{gender:"Female",engine:"cloud",params:["cloud"],language:"en-US",ename:"Kimberly",ssml:!0,name:"Cloud - en-US - Female - Kimberly"},"es-ES_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"es-ES",ename:"Conchita",ssml:!0,name:"Cloud - es-ES - Female - Conchita"},"es-ES_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"es-ES",ename:"Enrique",ssml:!0,name:"Cloud - es-ES - Male - Enrique"},"es-US_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"es-US",ename:"Penelope",ssml:!0,name:"Cloud - es-US - Female - Penelope"},"es-US_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"es-US",ename:"Miguel",ssml:!0,name:"Cloud - es-US - Male - Miguel"},"fr-CA_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"fr-CA",ename:"Chantal",ssml:!0,name:"Cloud - fr-CA - Female - Chantal"},"fr-FR_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"fr-FR",ename:"Celine",ssml:!0,name:"Cloud - fr-FR - Female - Celine"},"fr-FR_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"fr-FR",ename:"Mathieu",ssml:!0,name:"Cloud - fr-FR - Male - Mathieu"},"is-IS_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"is-IS",ename:"Dora",ssml:!0,name:"Cloud - is-IS - Female - Dora"},"is-IS_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"is-IS",ename:"Karl",ssml:!0,name:"Cloud - is-IS - Male - Karl"},"it-IT_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"it-IT",ename:"Carla",ssml:!0,name:"Cloud - it-IT - Female - Carla"},"it-IT_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"it-IT",ename:"Giorgio",ssml:!0,name:"Cloud - it-IT - Male - Giorgio"},"nb-NO_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"nb-NO",ename:"Liv",ssml:!0,name:"Cloud - nb-NO - Female - Liv"},"nl-NL_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"nl-NL",ename:"Lotte",ssml:!0,name:"Cloud - nl-NL - Female - Lotte"},"nl-NL_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"nl-NL",ename:"Ruben",ssml:!0,name:"Cloud - nl-NL - Male - Ruben"},"pl-PL_CLOUD_Female_Agnieszka":{gender:"Female",engine:"cloud",params:["cloud"],language:"pl-PL",ename:"Agnieszka",ssml:!0,name:"Cloud - pl-PL - Female - Agnieszka"},"pl-PL_CLOUD_Male_Jacek":{gender:"Male",engine:"cloud",params:["cloud"],language:"pl-PL",ename:"Jacek",ssml:!0,name:"Cloud - pl-PL - Male - Jacek"},"pl-PL_CLOUD_Female_Ewa":{gender:"Female",engine:"cloud",params:["cloud"],language:"pl-PL",ename:"Ewa",ssml:!0,name:"Cloud - pl-PL - Female - Ewa"},"pl-PL_CLOUD_Male_Jan":{gender:"Male",engine:"cloud",params:["cloud"],language:"pl-PL",ename:"Jan",ssml:!0,name:"Cloud - pl-PL - Male - Jan"},"pl-PL_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"pl-PL",ename:"Maja",ssml:!0,name:"Cloud - pl-PL - Female - Maja"},"pt-BR_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"pt-BR",ename:"Vitoria",ssml:!0,name:"Cloud - pt-BR - Female - Vitoria"},"pt-BR_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"pt-BR",ename:"Ricardo",ssml:!0,name:"Cloud - pt-BR - Male - Ricardo"},"pt-PT_CLOUD_Male":{gender:"Male",engine:"cloud",params:["cloud"],language:"pt-PT",ename:"Cristiano",ssml:!0,name:"Cloud - pt-PT - Male - Cristiano"},"pt-PT_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"pt-PT",ename:"Ines",ssml:!0,name:"Cloud - pt-PT - Female - Ines"},"ro-RO_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"ro-RO",ename:"Carmen",ssml:!0,name:"Cloud - ro-RO - Female - Carmen"},"sv-SE_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"sv-SE",ename:"Astrid",ssml:!0,name:"Cloud - sv-SE - Female - Astrid"},"tr-TR_CLOUD_Female":{gender:"Female",engine:"cloud",params:["cloud"],language:"tr-TR",ename:"Filiz",ssml:!0,name:"Cloud - tr-TR - Female - Filiz"},"ru-RU_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"ru-RU",ename:"Tatyana",ssml:!0,name:"AWS Polly - \u0420\u0443\u0441\u0441\u043a\u0438\u0439 - \u0422\u0430\u0442\u044c\u044f\u043d\u0430"},"ru-RU_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"ru-RU",ename:"Maxim",ssml:!0,name:"AWS Polly - \u0420\u0443\u0441\u0441\u043a\u0438\u0439 - \u041c\u0430\u043a\u0441\u0438\u043c"},"de-DE_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"de-DE",ename:"Marlene",ssml:!0,name:"AWS Polly - Deutsch - Marlene"},"de-DE_AP_Female_Vicky":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"de-DE",ename:"Vicky",ssml:!0,name:"AWS Polly - Deutsch - Vicky"},"de-DE_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"de-DE",ename:"Hans",ssml:!0,name:"AWS Polly - Deutsch - Hans"},"en-US_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Salli",ssml:!0,name:"AWS Polly - en-US - Female - Salli"},"en-US_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Joey",ssml:!0,name:"AWS Polly - en-US - Male - Joey"},"da-DK_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"da-DK",ename:"Naja",ssml:!0,name:"AWS Polly - da-DK - Female - Naja"},"da-DK_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"da-DK",ename:"Mads",ssml:!0,name:"AWS Polly - da-DK - Male - Mads"},"en-AU_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-AU",ename:"Nicole",ssml:!0,name:"AWS Polly - en-AU - Female - Nicole"},"en-AU_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"en-AU",ename:"Russell",ssml:!0,name:"AWS Polly - en-AU - Male - Russell"},"en-GB_AP_Female_Amy":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-GB",ename:"Amy",ssml:!0,name:"AWS Polly - en-GB - Female - Amy"},"en-GB_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"en-GB",ename:"Brian",ssml:!0,name:"AWS Polly - en-GB - Male - Brian"},"en-GB_AP_Female_Emma":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-GB",ename:"Emma",ssml:!0,name:"AWS Polly - en-GB - Female - Emma"},"en-GB-WLS_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-GB-WLS",ename:"Gwyneth",ssml:!0,name:"AWS Polly - en-GB-WLS - Female - Gwyneth"},"en-GB-WLS_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"en-GB-WLS",ename:"Geraint",ssml:!0,name:"AWS Polly - en-GB-WLS - Male - Geraint"},"cy-GB_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"cy-GB",ename:"Gwyneth",ssml:!0,name:"AWS Polly - cy-GB - Female - Gwyneth"},"cy-GB_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"cy-GB",ename:"Geraint",ssml:!0,name:"AWS Polly - cy-GB - Male - Geraint"},"en-IN_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-IN",ename:"Raveena",ssml:!0,name:"AWS Polly - en-IN - Female - Raveena"},"en-US_AP_Male_Chipmunk":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Chipmunk",ssml:!0,name:"AWS Polly - en-US - Male - Chipmunk"},"en-US_AP_Male_Eric":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Eric",ssml:!0,name:"AWS Polly - en-US - Male - Eric"},"en-US_AP_Female_Ivy":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Ivy",ssml:!0,name:"AWS Polly - en-US - Female - Ivy"},"en-US_AP_Female_Jennifer":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Jennifer",ssml:!0,name:"AWS Polly - en-US - Female - Jennifer"},"en-US_AP_Male_Justin":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Justin",ssml:!0,name:"AWS Polly - en-US - Male - Justin"},"en-US_AP_Female_Kendra":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Kendra",ssml:!0,name:"AWS Polly - en-US - Female - Kendra"},"en-US_AP_Female_Kimberly":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"en-US",ename:"Kimberly",ssml:!0,name:"AWS Polly - en-US - Female - Kimberly"},"es-ES_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"es-ES",ename:"Conchita",ssml:!0,name:"AWS Polly - es-ES - Female - Conchita"},"es-ES_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"es-ES",ename:"Enrique",ssml:!0,name:"AWS Polly - es-ES - Male - Enrique"},"es-US_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"es-US",ename:"Penelope",ssml:!0,name:"AWS Polly - es-US - Female - Penelope"},"es-US_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"es-US",ename:"Miguel",ssml:!0,name:"AWS Polly - es-US - Male - Miguel"},"fr-CA_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"fr-CA",ename:"Chantal",ssml:!0,name:"AWS Polly - fr-CA - Female - Chantal"},"fr-FR_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"fr-FR",ename:"Celine",ssml:!0,name:"AWS Polly - fr-FR - Female - Celine"},"fr-FR_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"fr-FR",ename:"Mathieu",ssml:!0,name:"AWS Polly - fr-FR - Male - Mathieu"},"is-IS_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"is-IS",ename:"Dora",ssml:!0,name:"AWS Polly - is-IS - Female - Dora"},"is-IS_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"is-IS",ename:"Karl",ssml:!0,name:"AWS Polly - is-IS - Male - Karl"},"it-IT_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"it-IT",ename:"Carla",ssml:!0,name:"AWS Polly - it-IT - Female - Carla"},"it-IT_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"it-IT",ename:"Giorgio",ssml:!0,name:"AWS Polly - it-IT - Male - Giorgio"},"nb-NO_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"nb-NO",ename:"Liv",ssml:!0,name:"AWS Polly - nb-NO - Female - Liv"},"nl-NL_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"nl-NL",ename:"Lotte",ssml:!0,name:"AWS Polly - nl-NL - Female - Lotte"},"nl-NL_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"nl-NL",ename:"Ruben",ssml:!0,name:"AWS Polly - nl-NL - Male - Ruben"},"pl-PL_AP_Female_Agnieszka":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"pl-PL",ename:"Agnieszka",ssml:!0,name:"AWS Polly - pl-PL - Female - Agnieszka"},"pl-PL_AP_Male_Jacek":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"pl-PL",ename:"Jacek",ssml:!0,name:"AWS Polly - pl-PL - Male - Jacek"},"pl-PL_AP_Female_Ewa":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"pl-PL",ename:"Ewa",ssml:!0,name:"AWS Polly - pl-PL - Female - Ewa"},"pl-PL_AP_Male_Jan":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"pl-PL",ename:"Jan",ssml:!0,name:"AWS Polly - pl-PL - Male - Jan"},"pl-PL_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"pl-PL",ename:"Maja",ssml:!0,name:"AWS Polly - pl-PL - Female - Maja"},"pt-BR_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"pt-BR",ename:"Vitoria",ssml:!0,name:"AWS Polly - pt-BR - Female - Vitoria"},"pt-BR_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"pt-BR",ename:"Ricardo",ssml:!0,name:"AWS Polly - pt-BR - Male - Ricardo"},"pt-PT_AP_Male":{gender:"Male",engine:"polly",params:["accessKey","secretKey","region"],language:"pt-PT",ename:"Cristiano",ssml:!0,name:"AWS Polly - pt-PT - Male - Cristiano"},"pt-PT_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"pt-PT",ename:"Ines",ssml:!0,name:"AWS Polly - pt-PT - Female - Ines"},"ro-RO_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"ro-RO",ename:"Carmen",ssml:!0,name:"AWS Polly - ro-RO - Female - Carmen"},"sv-SE_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"sv-SE",ename:"Astrid",ssml:!0,name:"AWS Polly - sv-SE - Female - Astrid"},"tr-TR_AP_Female":{gender:"Female",engine:"polly",params:["accessKey","secretKey","region"],language:"tr-TR",ename:"Filiz",ssml:!0,name:"AWS Polly - tr-TR - Female - Filiz"}},aa=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"".concat(k.I18n.t("Say:")," ").concat(e.data.text)}},{key:"onTagChange",value:function(e){var t=this,a=k.I18n.getLanguage(),s=Object.keys(na).filter((function(e){return e.startsWith(a)})).map((function(e){return{title:na[e].name,value:e}}));s.unshift({title:"Default",value:"_"}),this.setState({inputs:[{attr:"instance",nameRender:"renderInstance",adapter:"sayit",defaultValue:"sayit.0",frontText:"Instance:"},{nameRender:"renderSelect",frontText:"Language:",options:s,defaultValue:"_",attr:"language"},{nameRender:"renderNameText",defaultValue:"Volume",attr:"textVol"},{nameRender:"renderSlider",attr:"volume",defaultValue:100,min:0,max:100},{attr:"text",nameRender:"renderModalInput",defaultValue:"Hallo",nameBlock:"",frontText:"Text:"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t,e)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){return e.text?"// Sayit ".concat(e.text||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat(e.language&&"_"!==e.language?"".concat(e.language,";"):"").concat(e.volume?"".concat(e.volume,";"):"").concat((e.text||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,'});\n\t\tawait setStateAsync("').concat(e.instance,'.tts.text", subActionVar').concat(e._id,");"):"// no text defined\n_sendToFrontEnd(".concat(e._id,", {text: 'No text defined'});")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Say It",id:"ActionSayText",adapter:"sayit",title:"Say some text via sayit adapter",helpDialog:"You can use %s in the text to display current trigger value or %id to display the triggered object ID"}}}]),n}(ta),sa=aa,oa=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"".concat(k.I18n.t("Sent:")," ").concat(e.data.text)}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{attr:"instance",nameRender:"renderInstance",defaultValue:"email.0",frontText:"Instance:",adapter:"email"},{attr:"recipients",nameRender:"renderText",defaultValue:"user@mail.ru",frontText:"To:"},{attr:"subject",nameRender:"renderText",defaultValue:"Email from iobroker",nameBlock:"",frontText:"Subject:"},{attr:"text",nameRender:"renderModalInput",defaultValue:"Email from iobroker",nameBlock:"",frontText:"Body:"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t,e)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){return e.recipients?"// Send Email ".concat(e.text||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat((e.text||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,'});\n\t\tsendTo("').concat(e.instance||"email.0",'", {\n\t\t to: "').concat(e.recipients||"",'",\n\t\t subject: "').concat((e.subject||"ioBroker").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),",\n\t\t text: subActionVar").concat(e._id,"\n\t\t});"):"// no recipients defined'\n_sendToFrontEnd(".concat(e._id,", {text: 'No recipients defined'});")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Send email",id:"ActionSendEmail",adapter:"email",title:"Sends an email",helpDialog:"You can use %s in the text to display current trigger value or %id to display the triggered object ID"}}}]),n}(ta),ia=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).cachePromises={},a}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"".concat(k.I18n.t("Sent:")," ").concat(e.data.text)}},{key:"onValueChanged",value:function(e,t){"instance"===t&&this._setUsers(e)}},{key:"_setUsers",value:function(e){var t=this;if(e=e||this.state.settings.instance||"telegram.0",this.cachePromises[e]=this.cachePromises[e]||this.props.socket.getState("".concat(e,".communicate.users")),!this.state.settings._id)return this.setState({inputs:[{nameRender:"renderSelect",adapter:"telegram",frontText:"Instance:",defaultValue:"telegram.0",attr:"instance"},{nameRender:"renderSelect",attr:"user",options:[{title:"telegram.0",value:"telegram.0"}],defaultValue:"",frontText:"User:"},{nameRender:"renderModalInput",attr:"text",defaultValue:"Hallo",nameBlock:"",frontText:"Text:"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}));this.cachePromises[e].then((function(e){try{var a;(e=(e=(e=null!==(a=e)&&void 0!==a&&a.val?JSON.parse(e.val):null)&&Object.keys(e).map((function(t){return{title:e[t].userName||e[t].firstName,value:t}})))||[]).unshift({title:"all",value:""})}catch(s){e=[{title:"all",value:""}]}t.setState({inputs:[{nameRender:"renderInstance",adapter:"telegram",frontText:"Instance:",defaultValue:"telegram.0",attr:"instance"},{nameRender:"renderSelect",attr:"user",options:e,defaultValue:"_",frontText:"User:"},{nameRender:"renderModalInput",attr:"text",defaultValue:"Hallo",nameBlock:"",frontText:"Text:"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}))}))}},{key:"onTagChange",value:function(e){this._setUsers()}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n=(e.text||"").replace(/"/g,'\\"');return n?"// Telegram ".concat(n||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat((n||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,'});\n\t\tsendTo("').concat(e.instance,'", "send", ').concat(e.user&&"_"!==e.user?'{user: "'.concat((e.user||"").replace(/"/g,'\\"'),'", text: subActionVar').concat(e._id,"}"):"subActionVar".concat(e._id),");"):"// no text defined\n_sendToFrontEnd(".concat(e._id,", {text: 'No text defined'});")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Telegram",id:"ActionTelegram",adapter:"telegram",title:"Sends message via telegram",helpDialog:"You can use %s in the text to display current trigger value or %id to display the triggered object ID"}}}]),n}(ta),ra=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).cachePromises={},a}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"Sent: ".concat(e.data.text)}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderInstance",adapter:"pushover",frontText:"Instance:",defaultValue:"pushover.0",attr:"instance"},{nameRender:"renderModalInput",attr:"text",defaultValue:"Hello",nameBlock:"",frontText:"Text:"},{nameRender:"renderText",attr:"title",defaultValue:"ioBroker",frontText:"Title:"},{nameRender:"renderSelect",attr:"sound",defaultValue:"magic",frontText:"Sound:",doNotTranslate:!0,options:[{value:"pushover",title:"pushover"},{value:"bike",title:"bike"},{value:"bugle",title:"bugle"},{value:"cashregister",title:"cashregister"},{value:"classical",title:"classical"},{value:"cosmic",title:"cosmic"},{value:"falling",title:"falling"},{value:"gamelan",title:"gamelan"},{value:"incoming",title:"incoming"},{value:"intermission",title:"intermission"},{value:"magic",title:"magic"},{value:"mechanical",title:"mechanical"},{value:"pianobar",title:"pianobar"},{value:"siren",title:"siren"},{value:"spacealarm",title:"spacealarm"},{value:"tugboat",title:"tugboat"},{value:"alien",title:"alien"},{value:"climb",title:"climb"},{value:"persistent",title:"persistent"},{value:"echo",title:"echo"},{value:"updown",title:"updown"},{value:"none",title:"none"}]},{nameRender:"renderSelect",attr:"priority",defaultValue:-1,frontText:"Priority:",options:[{value:-1,title:"quiet"},{value:0,title:"normal"},{value:1,title:"high-priority"},{value:2,title:"acknowledgment"}]}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n=(e.text||"").replace(/"/g,'\\"');return n?"// Pushover ".concat(e.text||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat(n,'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,'});`; \n\t\tsendTo("').concat(e.instance,'", "send", {\n\t\t message: subActionVar').concat(e._id,',\n\t\t title: "').concat((e.title||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),',\n\t\t sound: "').concat(e.sound,'",\n\t\t priority: ').concat(e.priority,"\n\t\t});"):"// no text defined\n_sendToFrontEnd(".concat(e._id,", {text: 'No text defined'});")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Pushover",id:"ActionPushover",adapter:"pushover",title:"Sends message via pushover",helpDialog:"You can use %s in the text to display current trigger value or %id to display the triggered object ID"}}}]),n}(ta),la=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).cachePromises={},a}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"".concat(k.I18n.t("Sent:")," ").concat(e.data.text)}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderInstance",adapter:"whatsapp-cmb",frontText:"Instance:",defaultValue:"whatsapp-cmb.0",attr:"instance"},{nameRender:"renderModalInput",attr:"text",defaultValue:"Hello",nameBlock:"",frontText:"Text:"},{nameRender:"renderText",attr:"phone",defaultValue:"",frontText:"Phone:",backText:"(optional)"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n=(e.text||"").replace(/"/g,'\\"');return n?"// whatsapp ".concat(n||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat((n||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,'});\n\t\tsendTo("').concat(e.instance,'", "send", {text: subActionVar').concat(e._id).concat(e.phone?', phone: "'.concat(e.phone.replace(/"/g,'\\"'),'"'):"","});"):"// no text defined\n_sendToFrontEnd(".concat(e._id,", {text: 'No text defined'});")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Whatsapp-cmb",id:"ActionWhatsappcmb",adapter:"whatsapp-cmb",title:"Sends message via whatsapp-cmb",helpDialog:"You can use %s in the text to display current trigger value or %id to display the triggered object ID"}}}]),n}(ta),ca=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).cachePromises={},a}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"Sent: ".concat(e.data.text)}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderInstance",adapter:"pushsafer",frontText:"Instance:",defaultValue:"pushsafer.0",attr:"instance"},{nameRender:"renderModalInput",attr:"text",defaultValue:"Hello",nameBlock:"",frontText:"Text:"},{nameRender:"renderText",attr:"title",defaultValue:"ioBroker",frontText:"Title:"},{nameRender:"renderSelect",attr:"sound",defaultValue:"magic",frontText:"Sound:",doNotTranslate:!0,options:[{value:"_",title:"Device Default"},{value:"0",title:"Silent"},{value:"1",title:"Ahem (IM)"},{value:"2",title:"Applause (Mail)"},{value:"3",title:"Arrow (Reminder)"},{value:"4",title:"Baby (SMS)"},{value:"5",title:"Bell (Alarm)"},{value:"6",title:"Bicycle (Alarm2)"},{value:"7",title:"Boing (Alarm3)"},{value:"8",title:"Buzzer (Alarm4)"},{value:"9",title:"Camera (Alarm5)"},{value:"10",title:"Car Horn (Alarm6)"},{value:"11",title:"Cash Register (Alarm7)"},{value:"12",title:"Chime (Alarm8)"},{value:"13",title:"Creaky Door (Alarm9)"},{value:"14",title:"Cuckoo Clock (Alarm10)"},{value:"15",title:"Disconnect (Call)"},{value:"16",title:"Dog (Call2)"},{value:"17",title:"Doorbell (Call3)"},{value:"18",title:"Fanfare (Call4)"},{value:"19",title:"Gun Shot (Call5)"},{value:"20",title:"Honk (Call6)"},{value:"21",title:"Jaw Harp (Call7)"},{value:"22",title:"Morse (Call8)"},{value:"23",title:"Electricity (Call9)"},{value:"24",title:"Radio Tuner (Call10)"},{value:"25",title:"Sirens"},{value:"26",title:"Military Trumpets"},{value:"27",title:"Ufo"},{value:"28",title:"Whah Whah Whah"},{value:"29",title:"Man Saying Goodbye"},{value:"30",title:"Man Saying Hello"},{value:"31",title:"Man Saying No"},{value:"32",title:"Man Saying Ok"},{value:"33",title:"Man Saying Ooohhhweee"},{value:"34",title:"Man Saying Warning"},{value:"35",title:"Man Saying Welcome"},{value:"36",title:"Man Saying Yeah"},{value:"37",title:"Man Saying Yes"},{value:"38",title:"Beep short"},{value:"39",title:"Weeeee short"},{value:"40",title:"Cut in and out short"},{value:"41",title:"Finger flicking glas short"},{value:"42",title:"Wa Wa Waaaa short"},{value:"43",title:"Laser short"},{value:"44",title:"Wind Chime short"},{value:"45",title:"Echo short"},{value:"46",title:"Zipper short"},{value:"47",title:"HiHat short"},{value:"48",title:"Beep 2 short"},{value:"49",title:"Beep 3 short"},{value:"50",title:"Beep 4 short"},{value:"51",title:"The Alarm is armed"},{value:"52",title:"The Alarm is disarmed"},{value:"53",title:"The Backup is ready"},{value:"54",title:"The Door is closed"},{value:"55",title:"The Door is opend"},{value:"56",title:"The Window is closed"},{value:"57",title:"The Window is open"},{value:"58",title:"The Light is off"},{value:"59",title:"The Light is on"},{value:"60",title:"The Doorbell rings"},{value:"61",title:"Pager short"},{value:"62",title:"Pager long"}]},{nameRender:"renderSelect",attr:"priority",defaultValue:0,frontText:"Priority:",options:[{value:-2,title:"lowest priority"},{value:-1,title:"lower priority"},{value:0,title:"normal priority"},{value:1,title:"high priority"},{value:2,title:"highest priority"}]},{nameRender:"renderSelect",attr:"vibration",defaultValue:0,frontText:"Vibration:",options:[{value:"_",title:"default"},{value:1,title:"1"},{value:2,title:"2"},{value:3,title:"3"}]}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n=(e.text||"").replace(/"/g,'\\"');return n?"// Pushsafer ".concat(e.text||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat(n,'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,'}); \n\t\tsendTo("').concat(e.instance,'", "send", {\n\t\t message: subActionVar').concat(e._id,',\n\t\t title: "').concat((e.title||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),",\n\t\t ").concat(e.device?'device: "'.concat(e.device,'",'):"","\n\t\t ").concat(e.sound&&"_"!==e.sound?'sound: "'.concat(e.sound,'",'):"","\n\t\t priority: ").concat(e.priority,",\n\t\t ").concat(e.vibration&&"_"!==e.vibration?"vibration: ".concat(e.vibration,","):"","\n\t\t});"):"// no text defined\n_sendToFrontEnd(".concat(e._id,", {text: 'No text defined'});")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Pushsafer",id:"ActionPushsafer",adapter:"pushsafer",title:"Sends message via Pushsafer",helpDialog:"You can use %s in the text to display current trigger value or %id to display the triggered object ID"}}}]),n}(ta),ua={triggers:[],conditions:[[]],justCheck:!1,actions:{then:[],else:[]}};function da(e,t,n){var a=[],s=e.triggers;s.length||(s=[{id:"TriggerScriptSave"}]);var o=[],i=[],r=e.conditions.find((function(e){return e.find((function(e){return"()"===e.tagCard}))}));s.forEach((function(t,s){var l=pa(t.id,n);if(l){var c={trigger:t,condition:{},justCheck:!r&&(e.justCheck||!e.conditions.length||!e.conditions[0].length),conditionsDebug:[],conditionsVars:[],conditionsStates:[]},u=l.compile(t,c),d=function(e,t,n){var a=[],s=0;return e&&e.forEach((function(e){if(e.hasOwnProperty("length")&&e.length){var o=[];o&&e.forEach((function(e){var a=pa(e.id,n);a&&(t.condition.index=s++,o.push(a.compile(e,t)))})),a.push("(".concat(o.join(") &&\n ("),")"))}else{var i=pa(e.id,n);i&&(t.condition.index=s++,a.push(i.compile(e,t)))}})),a.length?1===a.length?a[0]||"true":"(".concat(a.join(") || ("),")"):"true"}(e.conditions,c,n),p=ha(e.actions.then,c,n),h=ha(e.actions.else,c,n);o.push("cond".concat(s)),c.prelines&&c.prelines.length&&c.prelines.forEach((function(e){return i.push(e)})),u.includes(" __%%CONDITIONS_VARS%%__")&&(c.conditionsVars=c.conditionsVars.map((function(e,t){return t?" ".concat(e):e})),c.conditionsDebug=c.conditionsDebug.map((function(e,t){return t?" ".concat(e):e}))),a.push(u.replace("__%%CONDITIONS_VARS%%__",c.conditionsVars.join("\n")).replace('"__%%DEBUG_CONDITIONS%%__";',c.conditionsDebug.join("\n")).replace("__%%CONDITION%%__",d).replace("__%%THEN%%__",p||"// ignore").replace("__%%ELSE%%__",h||"// ignore").replace(/__%%STATE%%__/g,"cond"+s))}}));var l=a.join("\n\n");return e.justCheck&&!r||(l="".concat(o.map((function(e){return"let ".concat(e," = false;")})).join("\n"),"\n\n").concat(l)),i&&(l="".concat(i.join("\n"),"\n\n").concat(l)),l}function pa(e,t){return t.find((function(t){return t.getStaticData&&t.getStaticData().id===e}))}function ha(e,t,n){var a=[];return e&&e.forEach((function(e){var s=pa(e.id,n);s&&a.push(s.compile(e,t))})),"\t\t".concat(a.join("\n\n\t\t"))||0}function ga(e,t){return da(e,0,t)}var ma={code2json:function(e){if(!e)return ua;var t=e.split("\n");try{var n=t.pop().replace(/^\/\//,"");return(n=JSON.parse(n)).triggers||(n=ua),n}catch(a){return ua}},json2code:function(e,t){var n="";return n+=ga(e,t),n+="\n/*\nconst demo = ".concat(JSON.stringify(e,null,2).replace(/\*\//g,"* /"),";\n*/\n"),"".concat(n,"\n//").concat(JSON.stringify(e))},compile:ga,STANDARD_FUNCTION:'async function () {\n "__%%DEBUG_TRIGGER%%__";\n __%%CONDITIONS_VARS%%__\n const _cond = __%%CONDITION%%__;\n \n "__%%DEBUG_CONDITIONS%%__";\n \n if (_cond) {\n__%%THEN%%__\n } else {\n__%%ELSE%%__\n }\n}',STANDARD_FUNCTION_ONCHANGE:'async function () {\n "__%%DEBUG_TRIGGER%%__";\n __%%CONDITIONS_VARS%%__\n const _cond = __%%CONDITION%%__;\n \n "__%%DEBUG_CONDITIONS%%__";\n \n if (__%%STATE%%__ === false && _cond) {\n __%%STATE%%__ = true; \n__%%THEN%%__\n } else if (__%%STATE%%__ === true && !_cond) {\n __%%STATE%%__ = false; \n__%%ELSE%%__\n }\n}',STANDARD_FUNCTION_STATE:'async function (obj) {\n "__%%DEBUG_TRIGGER%%__";\n __%%CONDITIONS_VARS%%__\n const _cond = __%%CONDITION%%__;\n \n "__%%DEBUG_CONDITIONS%%__";\n \n if (_cond) {\n__%%THEN%%__\n } else {\n__%%ELSE%%__\n }\n}',STANDARD_FUNCTION_STATE_ONCHANGE:'async function (obj) {\n "__%%DEBUG_TRIGGER%%__";\n __%%CONDITIONS_VARS%%__\n const _cond = __%%CONDITION%%__;\n \n "__%%DEBUG_CONDITIONS%%__";\n \n if (__%%STATE%%__ === false && _cond) {\n __%%STATE%%__ = true; \n__%%THEN%%__\n } else if (__%%STATE%%__ === true && !_cond) {\n __%%STATE%%__ = false; \n__%%ELSE%%__\n }\n}',NO_FUNCTION:'"__%%DEBUG_TRIGGER%%__";\n__%%CONDITIONS_VARS%%__\nconst _cond = __%%CONDITION%%__;\n\n"__%%DEBUG_CONDITIONS%%__";\n\nif (_cond) {\n__%%THEN%%__\n} else {\n__%%ELSE%%__\n}'},fa=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(){return wn.default.t("Triggered")}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderNameText",defaultValue:"On script save or adapter start",attr:"script"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e){return ma.NO_FUNCTION.replace('"__%%DEBUG_TRIGGER%%__"',"_sendToFrontEnd(".concat(e._id,", {trigger: true})"))}},{key:"getStaticData",value:function(){return{acceptedBy:"triggers",name:"Start script",id:"TriggerScriptSave",icon:"PlayArrow",title:"Triggers the on script saving or the javascript instance restart"}}}]),n}(ta),va=n(75801),ya=n.n(va),ba=n(22772),ka=n(64101),Sa=n(96404),xa=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).coordinates=null,a}return(0,d.Z)(n,[{key:"_setAstro",value:function(){var e=(0,ut.Z)((0,ct.Z)().mark((function e(t,a,s){var o,i,r,l,c,u=this;return(0,ct.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=t||this.state.settings.astro||"solarNoon",a=void 0===a?this.state.settings.offset:a,s=void 0===s?this.state.settings.offsetValue:s,s=parseInt(s,10)||0,this.coordinates){e.next=7;break}return e.next=7,this.props.socket.getObject("system.adapter.javascript.0").then((function(e){var t=e.native,n=t.latitude,a=t.longitude;if(!n&&!a)return u.props.socket.getObject("system.config").then((function(e){e&&(e.common.latitude||e.common.longitude)?u.coordinates={latitude:e.common.latitude,longitude:e.common.longitude}:u.coordinates=null}));u.coordinates={latitude:n,longitude:a}}));case 7:o=this.coordinates&&ya().getTimes(new Date,this.coordinates.latitude,this.coordinates.longitude),(i=o?Object.keys(o).map((function(e){return{value:e,title:e,title2:"[".concat(n._time2String(o[e]),"]"),order:o?n._time2String(o[e]):"??:??"}})):[]).sort((function(e,t){return e.order>t.order?1:e.order1?(h===d[g-1]?p.push(h):d[g-1]-h===1?p.push(h+","+d[g-1]):p.push(h+"-"+d[g-1]),h=d[g]):g===d.length-1&&(h===d[g-1]||d[g]-h===1?p.push(h+","+d[g]):p.push(h+"-"+d[g]));u=p.join(",")}n='schedule("'.concat(l||"0"," ").concat(r||"0"," * * ").concat(u,'", ').concat(a,");")}else"astro"===e.tagCard?n='schedule({astro: "'.concat(e.astro,'", shift: ').concat(e.offset?e.offsetValue:0,"}, ").concat(a,");"):"wizard"===e.tagCard&&(n="schedule('".concat(e.wizard,"', ").concat(a,");"));return n}},{key:"_time2String",value:function(e){return e?"".concat(e.getHours().toString().padStart(2,"0"),":").concat(e.getMinutes().toString().padStart(2,"0")):"--:--"}},{key:"getStaticData",value:function(){return{acceptedBy:"triggers",name:"Schedule",id:"TriggerScheduleBlock",icon:"AccessTime",tagCardArray:["cron","wizard","interval","at","astro"],title:"Triggers the rule periodically or on some specific time"}}}]),n}(ta),wa=xa,Ca=n(89891),Ia=n(55931),ja=n(25801),Ta=s().forwardRef((function(e,t){return(0,se.jsx)(Ia.Z,(0,dt.Z)({direction:"up",ref:t},e))})),Aa=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).inputRef=s().createRef(),a}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return void 0!==e.data.valOld?(0,se.jsxs)("span",{children:[k.I18n.t("Triggered")," ",(0,se.jsx)("span",{className:e.data.ackOld?this.props.classes.valueAck:this.props.classes.valueNotAck,children:n.renderValue(e.data.valOld)})," \u2192 ",(0,se.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:n.renderValue(e.data.val)})]}):(0,se.jsxs)("span",{children:[k.I18n.t("Triggered")," ",(0,se.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:n.renderValue(e.data.val)})]})}},{key:"onWriteValue",value:function(){this.setState({openSimulate:!1});var e=this.state.simulateValue;window.localStorage.setItem("javascript.app.".concat(this.state.settings.oid,"_ack"),this.state.simulateAck),"boolean"===this.state.settings.oidType?e=!0===e||"true"===e||"1"===e:"number"===this.state.settings.oidType&&(e=parseFloat(e)||0),window.localStorage.setItem("javascript.app.".concat(this.state.settings.oid),e),this.props.socket.setState(this.state.settings.oid,{val:e,ack:!!this.state.simulateAck})}},{key:"renderWriteState",value:function(){var e=this;return(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(H.Z,{disabled:!this.state.settings.oid||!this.state.enableSimulation,variant:"contained",color:"primary",onClick:function(){e.setState({openSimulate:!0,simulateValue:"boolean"===e.state.settings.oidType?"true"===window.localStorage.getItem("javascript.app.".concat(e.state.settings.oid)):window.localStorage.getItem("javascript.app.".concat(e.state.settings.oid))||"",simulateAck:"true"===window.localStorage.getItem("javascript.app.".concat(e.state.settings.oid,"_ack"))}),setTimeout((function(){var t;return null===(t=e.inputRef.current)||void 0===t?void 0:t.focus()}),200)},children:k.I18n.t("Simulate")}),(0,se.jsxs)(Q.Z,{open:!!this.state.openSimulate,TransitionComponent:Ta,keepMounted:!0,onClose:function(){return e.setState({openSimulate:!1})},"aria-labelledby":"simulate-dialog-slide-title","aria-describedby":"simulate-dialog-slide-description",children:[(0,se.jsx)(q.Z,{id:"simulate-dialog-slide-title",children:k.I18n.t("Trigger with value")}),(0,se.jsxs)(Y.Z,{children:["boolean"===this.state.settings.oidType?(0,se.jsx)(ja.Z,{control:(0,se.jsx)(Ca.Z,{inputRef:this.inputRef,onKeyUp:function(t){return 13===t.keyCode&&e.onWriteValue()},value:!!this.state.simulateValue,onChange:function(t){return e.setState({simulateValue:t.target.checked})}}),label:k.I18n.t("Value")}):(0,se.jsx)(X.Z,{variant:"standard",inputRef:this.inputRef,label:k.I18n.t("Value"),fullWidth:!0,onKeyUp:function(t){return 13===t.keyCode&&e.onWriteValue()},value:this.state.simulateValue,onChange:function(t){return e.setState({simulateValue:t.target.value})}}),(0,se.jsx)("br",{}),(0,se.jsx)(ja.Z,{control:(0,se.jsx)(Ke.Z,{checked:!!this.state.simulateAck,onChange:function(t){return e.setState({simulateAck:t.target.checked})},color:"primary"}),label:k.I18n.t("Ack")})]}),(0,se.jsxs)(K.Z,{children:[(0,se.jsxs)(H.Z,{variant:"contained",onClick:function(){return e.onWriteValue()},color:"primary",children:[(0,se.jsx)(S.HhX,{}),k.I18n.t("Write")]}),(0,se.jsxs)(H.Z,{color:"grey",variant:"contained",onClick:function(){return e.setState({openSimulate:!1})},children:[(0,se.jsx)(S.B4e,{}),k.I18n.t("Close")]})]})]})]})}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderObjectID",attr:"oid",defaultValue:""},{nameRender:"renderWriteState"}]},(function(){(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n=t.justCheck?ma.STANDARD_FUNCTION_STATE:ma.STANDARD_FUNCTION_STATE_ONCHANGE;return n=n.replace('"__%%DEBUG_TRIGGER%%__"',"_sendToFrontEnd(".concat(e._id,", {val: obj.state.val, ack: obj.state.ack, valOld: obj.oldState && obj.oldState.val, ackOld: obj.oldState && obj.oldState.ack})")),'on({id: "'.concat(e.oid||"",'", change: "').concat("on update"===e.tagCard?"any":"ne",'"}, ').concat(n,");")}},{key:"renderValue",value:function(e){return null===e?"null":void 0===e?"undefined":Array.isArray(e)?e.join(", "):"object"===typeof e?JSON.stringify(e):e.toString()}},{key:"getStaticData",value:function(){return{acceptedBy:"triggers",name:"State",id:"TriggerState",icon:"FlashOn",tagCardArray:["on change","on update"],title:"Triggers the rule on update or change of some state"}}}]),n}(ta),Da=(0,g.Z)((function(e){return{valueAck:{color:"#b02323"},valueNotAck:{color:"#12ac15"}}}))(Aa),Na=n.p+"static/media/hysteresis.04ebd02c6062432f891d.png",Ea="function __hysteresis(val, limit, state, hist, comp) {\n let cond1, cond2;\n if (comp === '>') {\n cond1 = val > limit + hist;\n cond2 = val <= limit - hist;\n } else if (comp === '<') {\n cond1 = val < limit - hist;\n cond2 = val >= limit + hist;\n } else if (comp === '>=') {\n cond1 = val >= limit + hist;\n cond2 = val < limit - hist;\n } else if (comp === '<=') {\n cond1 = val <= limit - hist;\n cond2 = val > limit + hist;\n } else if (comp === '=') {\n cond1 = val <= limit + hist && val > limit - hist;\n cond2 = val > limit + hist || val <= limit - hist;\n } else if (comp === '<>') {\n cond1 = val > limit + hist || val <= limit - hist;\n cond2 = val <= limit + hist && val > limit - hist;\n }\n \n if (!state && cond1) {\n return true;\n } else if (state && cond2) {\n return false;\n } else {\n return state;\n }\n}",Oa=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).onShowHelp=function(){return a.setState({showHysteresisHelp:!0})},a}return(0,d.Z)(n,[{key:"isAllTriggersOnState",value:function(){var e,t,n,a;return(null===(e=this.props.userRules)||void 0===e||null===(t=e.triggers)||void 0===t?void 0:t.find((function(e){return"TriggerState"===e.id})))&&!(null!==(n=this.props.userRules)&&void 0!==n&&null!==(a=n.triggers)&&void 0!==a&&a.find((function(e){return"TriggerState"!==e.id})))}},{key:"renderDebug",value:function(e){var t=this.state.settings.tagCard;return"()"!==t?"".concat(e.data.result.toString().toUpperCase()," [").concat(e.data.value," ").concat(t," ").concat(e.data.compareWith,"]"):k.I18n.t("Triggered")}},{key:"_setInputs",value:function(e,t,a,s,o){var i,r,l=this,c=this.isAllTriggersOnState();t=t||this.state.settings.tagCard,a=a||this.state.settings.oidType,s=s||this.state.settings.oidUnit,o=o||this.state.settings.oidStates,c&&e&&1===(null===(i=this.props.userRules)||void 0===i||null===(r=i.triggers)||void 0===r?void 0:r.length)&&(a=this.props.userRules.triggers[0].oidType,s=this.props.userRules.triggers[0].oidUnit,o=this.props.userRules.triggers[0].oidStates);var u,d=n.getStaticData().tagCardArray.find((function(e){return e.title===t})),p=null;"number"===a?(u=[{title:"=",title2:"[equal]",text:"equal to"},{title:">=",title2:"[greater or equal]",text:"greater or equal"},{title:">",title2:"[greater]",text:"greater than"},{title:"<=",title2:"[less or equal]",text:"less or equal"},{title:"<",title2:"[less]",text:"less than"},{title:"<>",title2:"[not equal]",text:"not equal to"},{title:"()",title2:"[hysteresis]",text:"hysteresis"}],o&&(p=Object.keys(o).map((function(e){return{value:e,title:o[e]}})))):"boolean"===a?(u=[{title:"=",title2:"[equal]",text:"equal to"},{title:"<>",title2:"[not equal]",text:"not equal to"}],p=[{title:"false",value:!1},{title:"true",value:!0}]):(u=[{title:"=",title2:"[equal]",text:"equal to"},{title:">=",title2:"[greater or equal]",text:"greater or equal"},{title:">",title2:"[greater]",text:"greater than"},{title:"<=",title2:"[less or equal]",text:"less or equal"},{title:"<",title2:"[less]",text:"less than"},{title:"<>",title2:"[not equal]",text:"not equal to"},{title:".",title2:"[includes]",text:"includes"}],o&&(p=Object.keys(o).map((function(e){return{value:e,title:o[e]}}))));var h,g=null;u.find((function(e){return e.title===t}))||(t=u[0].title,(g=g||(0,dt.Z)({},this.state.settings)).tagCard=t);var m={nameRender:"renderText",defaultValue:"",attr:"value",frontText:"()"===t?"Limit":(null===d||void 0===d?void 0:d.text)||"compare with",doNotTranslateBack:!0,backText:s};p&&(m={nameRender:"renderSelect",defaultValue:p[0].value,options:p,attr:"value",frontText:(null===d||void 0===d?void 0:d.text)||"compare with",doNotTranslateBack:!0,backText:s},p.find((function(e){return e.value===l.state.settings.value}))||((g=g||(0,dt.Z)({},this.state.settings)).value=p[0].value),p.length<=2&&(u=[{title:"=",title2:"[equal]",text:"equal to"},{title:"<>",title2:"[not equal]",text:"not equal to"}])),h=c&&e?[{backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger",defaultValue:!1},m]:c?[{backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger"},{nameRender:"renderObjectID",attr:"oid",defaultValue:""},m]:[{nameRender:"renderObjectID",attr:"oid",defaultValue:""},m],"()"===t&&(h.splice(1,0,{nameRender:"renderDialog",icon:"HelpOutline",frontText:"Explanation",onShowDialog:this.onShowHelp}),h.splice(2,0,{nameRender:"renderSelect",attr:"histComp",defaultValue:">",frontText:"Condition",doNotTranslate:!0,options:[{title:">",value:">"},{title:">=",value:">="},{title:"<",value:"<"},{title:"<=",value:"<="},{title:"=",value:"="},{title:"<>",value:"<>"}]}),h.push({frontText:"\u0394",doNotTranslate:!0,nameRender:"renderNumber",noHelperText:!0,attr:"hist",defaultValue:1,doNotTranslateBack:!0,backText:s}));var f={iconTag:!0,tagCardArray:u,inputs:h};this.setState(f,(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",l).call(l,null,(function(){g&&(l.setState({settings:g}),l.props.onChange(g))}))}))}},{key:"onValueChanged",value:function(e,t,n){"object"===typeof e?this._setInputs(e.useTrigger,e.tagCard,e.oidType,e.states):"useTrigger"===t?this._setInputs(e):"oidType"===t?this._setInputs(e,void 0,e):"oidUnit"===t?this._setInputs(e,void 0,void 0,e):"oidStates"===t&&this._setInputs(e,void 0,void 0,void 0,e)}},{key:"onUpdate",value:function(){this._setInputs(this.state.settings.useTrigger)}},{key:"onTagChange",value:function(e){this._setInputs(this.state.settings.useTrigger,e)}},{key:"getData",value:function(){return n.getStaticData()}},{key:"renderSpecific",value:function(){var e=this;return this.state.showHysteresisHelp?(0,se.jsxs)(Q.Z,{open:!0,maxWidth:"md",onClose:function(){return e.setState({showHysteresisHelp:!1})},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,se.jsx)(Y.Z,{children:(0,se.jsx)(ve.Z,{id:"alert-dialog-description",children:(0,se.jsx)("img",{src:Na,alt:"Hysteresis"})})}),(0,se.jsx)(K.Z,{children:(0,se.jsx)(H.Z,{onClick:function(){return e.setState({showHysteresisHelp:!1})},color:"primary",autoFocus:!0,children:k.I18n.t("OK")})})]}):null}}],[{key:"compile",value:function(e,t){var n=e.value;null!==n&&void 0!==n||(n=!1);var a,s="";if("()"===e.tagCard)t.prelines=t.prelines||[],!t.prelines.find((function(e){return e!==Ea}))&&t.prelines.push(Ea),e.useTrigger?(s="obj.state.val",""===n&&(n=0),a="__hysteresis(subCondVar".concat(e._id,", ").concat(n,", __%%STATE%%__, ").concat(e.hist,', "').concat(e.histComp,'")')):(s='(await getStateAsync("'.concat(e.oid,'")).val'),""===n&&(n=0),"string"===typeof n&&parseFloat(n.trim()).toString()!==n.trim()&&(n='"'.concat(n,'"')),a="__hysteresis(subCondVar".concat(e._id,", ").concat(n,", __%%STATE%%__, ").concat(e.hist,', "').concat(e.histComp,'")'));else if("includes"!==e.tagCard){var o,i="="===e.tagCard?"==":"<>"===e.tagCard?"!=":e.tagCard;if(e.useTrigger)s="obj.state.val","string"===(null===t||void 0===t||null===(o=t.trigger)||void 0===o?void 0:o.oidType)?(n=n.replace(/"/g,'\\"'),a="subCondVar".concat(e._id," ").concat(i,' "').concat(n,'"')):(""===n&&(n=0),"string"===typeof n&&parseFloat(n.trim()).toString()!==n.trim()&&(n='"'.concat(n,'"')),a="subCondVar".concat(e._id," ").concat(i," ").concat(n));else s='(await getStateAsync("'.concat(e.oid,'")).val'),"string"===e.oidType?(n=n.replace(/"/g,'\\"'),a="subCondVar".concat(e._id," ").concat(i,' "').concat(n,'"')):(""===n&&(n=0),"string"===typeof n&&parseFloat(n.trim()).toString()!==n.trim()&&(n='"'.concat(n,'"')),a="subCondVar".concat(e._id," ").concat(i," ").concat(n))}else{var r;if(e.useTrigger)s="obj.state.val","string"===(null===t||void 0===t||null===(r=t.trigger)||void 0===r?void 0:r.oidType)?(n=n.replace(/"/g,'\\"'),a='obj.state.val.includes("'.concat(n,'")')):a="false";else s='(await getStateAsync("'.concat(e.oid,'")).val'),"string"===e.oidType?(n=n.replace(/"/g,'\\"'),a="subCondVar".concat(e._id,'.includes("').concat(n,'")')):a="false"}return t.conditionsStates.push({name:"subCondVar".concat(e._id),id:e.oid}),t.conditionsVars.push("const subCondVar".concat(e._id," = ").concat(s,";")),t.conditionsVars.push("const subCond".concat(e._id," = ").concat(a,";")),t.conditionsDebug.push("_sendToFrontEnd(".concat(e._id,", {result: subCond").concat(e._id,", value: subCondVar").concat(e._id,', compareWith: "').concat(n,'"});')),"subCond".concat(e._id)}},{key:"getStaticData",value:function(){return{acceptedBy:"conditions",name:"State condition",id:"ConditionState",icon:"Shuffle",tagCardArray:[{title:"=",title2:"[equal]",text:"equal to"},{title:">=",title2:"[greater or equal]",text:"greater or equal"},{title:">",title2:"[greater]",text:"greater than"},{title:"<=",title2:"[less or equal]",text:"less or equal"},{title:"<",title2:"[less]",text:"less than"},{title:"<>",title2:"[not equal]",text:"not equal to"},{title:".",title2:"[includes]",text:"includes"},{title:"()",title2:"[hysteresis]",text:"hysteresis"}],title:"Compares the state value with user defined value"}}}]),n}(ta),Ma=[31,29,31,30,31,30,31,31,30,31,30,31],za=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"_setInputs",value:function(e,t){var a=this;t=void 0===t?this.state.settings.withDate:t,e=e||this.state.settings.tagCard;var s=n.getStaticData().tagCardArray.find((function(t){return t.title===e})),o=[{nameRender:"renderNameText",attr:"interval",defaultValue:"Actual time of day"},{frontText:(null===s||void 0===s?void 0:s.text)||e,nameRender:"renderTime",attr:"time",defaultValue:"12:00"},{frontText:"with date",nameRender:"renderCheckbox",attr:"withDate",defaultValue:!1}];t&&o.push({nameRender:"renderDate",attr:"date",defaultValue:"01.01"}),this.setState({inputs:o,iconTag:!0},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",a).call(a)}))}},{key:"onValueChanged",value:function(e,t){"withDate"===t&&this._setInputs(void 0,e)}},{key:"onTagChange",value:function(e){this._setInputs(e)}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n,a="="===e.tagCard?"===":"<>"===e.tagCard?"!==":e.tagCard;if(e.withDate){var s=(e.date||"01.01").toString().split("."),o=(0,w.Z)(s,2),i=o[0],r=o[1];r=parseInt(r,10)||0,(i=parseInt(i,10)||0)>12?i=12:i<0&&(i=0),r>Ma[i]?r=Ma[i]:r<0&&(r=0),n=r&&i?"formatDate(Date.now(), 'MM.DD-hh:mm') ".concat(a,' "').concat(e.date,"-").concat(e.time,'"'):0===r&&i?"formatDate(Date.now(), 'MM-hh:mm') ".concat(a,' "').concat(i.toString().padStart(2,"0"),"-").concat(e.time,'"'):0===i&&r?"formatDate(Date.now(), 'DD-hh:mm') ".concat(a,' "').concat(r.toString().padStart(2,"0"),"-").concat(e.time,'"'):"formatDate(Date.now(), 'hh:mm') ".concat(a,' "').concat(e.time,'"')}else n="formatDate(Date.now(), 'hh:mm') ".concat(a,' "').concat(e.time,'"');return t.conditionsVars.push("const subCond".concat(e._id," = ").concat(n,";")),t.conditionsDebug.push("_sendToFrontEnd(".concat(e._id,", {result: subCond").concat(e._id,"});")),"subCond".concat(e._id)}},{key:"getStaticData",value:function(){return{acceptedBy:"conditions",name:"Time condition",id:"ConditionTime",icon:"Shuffle",tagCardArray:[{title:"=",title2:"[equal]",text:"equal to"},{title:">=",title2:"[greater or equal]",text:"greater or equal"},{title:">",title2:"[greater]",text:"greater than"},{title:"<=",title2:"[less or equal]",text:"less or equal"},{title:"<",title2:"[less]",text:"less than"},{title:"<>",title2:"[not equal]",text:"not equal to"}],title:"Compares current time with the user specific time"}}}]),n}(ta),Za=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e,n.getStaticData())).coordinates=null,a}return(0,d.Z)(n,[{key:"onValueChanged",value:function(e,t){"astro"===t?this._setAstro(e):"offset"===t?this._setAstro(void 0,e):"offsetValue"===t&&this._setAstro(void 0,void 0,e)}},{key:"_setAstro",value:function(){var e=(0,ut.Z)((0,ct.Z)().mark((function e(t,a,s){var o,i,r,l,c,u,d,p=this;return(0,ct.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=t||this.state.settings.astro||"solarNoon",a=void 0===a?this.state.settings.offset:a,s=void 0===s?this.state.settings.offsetValue:s,s=parseInt(s,10)||0,this.coordinates){e.next=7;break}return e.next=7,this.props.socket.getObject("system.adapter.javascript.0").then((function(e){var t=e.native,n=t.latitude,a=t.longitude;if(!n&&!a)return p.props.socket.getObject("system.config").then((function(e){e&&(e.common.latitude||e.common.longitude)?p.coordinates={latitude:e.common.latitude,longitude:e.common.longitude}:p.coordinates=null}));p.coordinates={latitude:n,longitude:a}}));case 7:o=this.coordinates&&ya().getTimes(new Date,this.coordinates.latitude,this.coordinates.longitude),(i=o?Object.keys(o).map((function(e){return{value:e,title:e,title2:"[".concat(n._time2String(o[e]),"]"),order:n._time2String(o[e])}})):[]).sort((function(e,t){return e.order>t.order?1:e.order"===e.tagCard?"!==":e.tagCard;e.offset&&(n=parseInt(e.offsetValue,10)||0);var s="formatDate(Date.now(), 'hh:mm') ".concat(a,' formatDate(getAstroDate("').concat(e.astro,'"').concat(n?", undefined, ".concat(n):"","), 'hh:mm')");return t.conditionsVars.push("const subCond".concat(e._id," = ").concat(s,";")),t.conditionsDebug.push("_sendToFrontEnd(".concat(e._id,", {result: ").concat(s,"});")),s}},{key:"_time2String",value:function(e){return e?"".concat(e.getHours().toString().padStart(2,"0"),":").concat(e.getMinutes().toString().padStart(2,"0")):"--:--"}},{key:"getStaticData",value:function(){return{acceptedBy:"conditions",name:"Astrological",id:"ConditionAstrological",icon:"Brightness3",tagCardArray:[{title:"=",title2:"[equal]",text:"equal to"},{title:">=",title2:"[greater or equal]",text:"greater or equal to"},{title:">",title2:"[greater]",text:"greater than"},{title:"<=",title2:"[less or equal]",text:"less or equal to"},{title:"<",title2:"[less]",text:"less than"},{title:"<>",title2:"[not equal]",text:"not equal to"}],title:"Compares current time with astrological event"}}}]),n}(ta),Ra=Za,Fa=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"isAllTriggersOnState",value:function(){var e,t,n,a;return(null===(e=this.props.userRules)||void 0===e||null===(t=e.triggers)||void 0===t?void 0:t.find((function(e){return"TriggerState"===e.id})))&&!(null!==(n=this.props.userRules)&&void 0!==n&&null!==(a=n.triggers)&&void 0!==a&&a.find((function(e){return"TriggerState"!==e.id})))}},{key:"renderDebug",value:function(e){return(0,se.jsxs)("span",{children:[k.I18n.t("Set:")," ",(0,se.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:n.renderValue(e.data.val)})]})}},{key:"_setInputs",value:function(e,t){var n=this,a=this.isAllTriggersOnState();t=void 0===t?this.state.settings.toggle:t,e=void 0===e?this.state.settings.useTrigger:e;var s,o,i,r="",l=this.state.settings,c=l.oidType,u=l.oidUnit,d=l.oidStates,p=l.oidMax,h=l.oidMin,g=l.oidRole,m=l.oidWrite,f=l.oidStep;if(c&&("number"===c?(r="number",void 0!==p&&void 0!==h&&(r="slider")):"boolean"===c?(r="boolean",g&&g.includes("button")&&m&&(r="button")):(r="",g&&g.includes("color")&&(r="color")),d&&(s=Object.keys(d).map((function(e){return{value:e,title:d[e]}})),r="select")),a&&e)i=[{backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger",defaultValue:!1}],"boolean"===r&&i.push({backText:"toggle value",attr:"toggle",nameRender:"renderCheckbox",defaultValue:!1});else{switch(r){case"number":i=[{backText:u||"",frontText:"with",nameRender:"renderNumber",defaultValue:void 0===p?0:p,attr:"value"}],void 0!==this.state.settings.value&&isNaN(parseFloat(this.state.settings.value))&&(o={value:void 0===p?0:p});break;case"slider":i=[{nameRender:"renderSlider",defaultValue:p,min:h,max:p,unit:u,step:f,attr:"value"}];var v=parseFloat(this.state.settings.value);void 0!==this.state.settings.value&&(isNaN(v)||vp)&&(o={value:p});break;case"select":i=[{nameRender:"renderSelect",frontText:"with",options:s,defaultValue:s[0].value,attr:"value"}],void 0===this.state.settings.value||s.find((function(e){return e.value===n.state.settings.value}))||(o={value:s[0].value});break;case"boolean":i=[{backText:"toggle value",attr:"toggle",nameRender:"renderCheckbox",defaultValue:!1}],t||i.push({backText:"true",frontText:"false",nameRender:"renderSwitch",defaultValue:!1,attr:"value"}),void 0!==this.state.settings.value&&!1!==this.state.settings.value&&!0!==this.state.settings.value&&(o={value:!1});break;case"button":i=[{nameRender:"renderButton",defaultValue:!0,attr:"value"}],void 0!==this.state.settings.value&&!0!==this.state.settings.value&&(o={value:!0});break;case"color":i=[{nameRender:"renderColor",frontText:"with",defaultValue:"#FFFFFF",attr:"value"}],void 0===this.state.settings.value||"string"===typeof this.state.settings.value&&(this.state.settings.value.startsWith("#"),this.state.settings.value.startsWith("rgb"),0)||(o={value:"#FFFFFF"});break;default:i=[{backText:u||"",frontText:"with",nameRender:"renderText",defaultValue:"",attr:"value"}]}a&&i.unshift({backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger"})}return{inputs:i,newSettings:o}}},{key:"onTagChange",value:function(e,t,a,s,o){var i=this;o=void 0===o?this.state.settings.useTrigger:o;var r=this._setInputs(o,s),l=r.inputs,c=r.newSettings;l.unshift({nameRender:"renderObjectID",attr:"oid",defaultValue:"",checkReadOnly:!0}),this.setState({inputs:l},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",i).call(i,null,(function(){if(c){var e=JSON.parse(JSON.stringify(i.state.settings));Object.assign(e,c),i.setState(e),i.props.onChange(e)}}))}))}},{key:"onValueChanged",value:function(e,t,n){this.onTagChange(void 0,void 0,void 0,"toggle"===t?e:void 0,"useTrigger"===t?e:void 0)}},{key:"onUpdate",value:function(){this.onTagChange()}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n,a=e.value;return e.useTrigger?a=e.toggle?"!obj.state.val":"obj.state.val":(void 0!==a&&null!==a||(a=""),"string"===typeof e.value&&parseFloat(e.value).toString()!==e.value&&"true"!==e.value&&"false"!==e.value&&(a='"'.concat(a.replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t)))),n=e.toggle&&!e.useTrigger?"const subActionVar".concat(e._id,' = !(await getStateAsync("').concat(e.oid,'")).val'):"const subActionVar".concat(e._id," = ").concat(a),"// set state ".concat(e.oid," to ").concat(e.toggle&&!e.useTrigger?"toggle":a," \n\t\t").concat(n,";\n\t\t_sendToFrontEnd(").concat(e._id,", {val: subActionVar").concat(e._id,", ack: ").concat("update"===e.tagCard,'});\n\t\tawait setStateAsync("').concat(e.oid,'", subActionVar').concat(e._id,", ").concat("update"===e.tagCard,");")}},{key:"renderValue",value:function(e){return null===e?"null":void 0===e?"undefined":Array.isArray(e)?e.join(", "):"object"===typeof e?JSON.stringify(e):e.toString()}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Set state action",id:"ActionSetState",icon:"PlayForWork",tagCardArray:["control","update"],title:"Control or update some state",helpDialog:"You can use %s in the value to use the current trigger value or %id to display the triggered object ID"}}}]),n}(ta),Ba=[wa,fa,Da,Oa,za,Ra,(0,g.Z)((function(e){return{valueAck:{color:"#b02323"},valueNotAck:{color:"#12ac15"}}}))(Fa),function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"Exec: ".concat(e.data.exec)}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderModalInput",attr:"exec",defaultValue:"ls /opt/iobroker",nameBlock:"Shell command"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t,e)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){return'// exec "'.concat(e.exec,'"\n\t\tconst subActionVar').concat(e._id,' = "').concat((e.exec||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {exec: subActionVar").concat(e._id,"});\n\t\tconsole.log(subActionVar").concat(e._id,");")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Exec",id:"ActionExec",icon:"Apps",title:"Executes some shell command",helpDialog:"You can use %s in the command to use current trigger value or %id to use the triggered object ID"}}}]),n}(ta),function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return"URL: ".concat(e.data.url)}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderModalInput",attr:"url",defaultValue:"http://mydevice.com?...",nameBlock:"URL"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t,e)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){return"// HTTP request ".concat(e.url,"\n\t\tconst subActionVar").concat(e._id,' = "').concat((e.url||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {url: subActionVar").concat(e._id,"});\n\t\trequest(subActionVar").concat(e._id,");")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"HTTP Call",id:"ActionHTTPCall",icon:"Language",title:"Make a HTTP get request",helpDialog:"You can use %s in the URL to use current trigger value or %id to use the triggered object ID"}}}]),n}(ta),function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return k.I18n.t("Log: %s",e.data.text)}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderModalInput",attr:"text",defaultValue:"My device triggered",nameBlock:"Log text"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t,e)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){return"// Log ".concat(e.text,"\n\t\tconst subActionVar").concat(e._id,' = "').concat((e.text||"").replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,"});\n\t\tconsole.log(subActionVar").concat(e._id,");")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Log text",id:"ActionPrintText",icon:"Subject",title:"Print some text in log",helpDialog:"You can use %s in the text to display current trigger value or %id to display the triggered object ID"}}}]),n}(ta),function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return wn.default.t("Paused: %s",e.data.paused)}},{key:"_getOptions",value:function(e){return 1===(e=void 0===e?this.state.settings.pause:e)||"1"===e?[{value:"ms",title:"millisecond"},{value:"s",title:"second"},{value:"m",title:"minute"},{value:"h",title:"hour"}]:[{value:"ms",title:"milliseconds"},{value:"s",title:"seconds"},{value:"m",title:"minutes"},{value:"h",title:"hours"}]}},{key:"_setInputs",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderNumber",attr:"pause",defaultValue:100,noHelperText:!0},{nameRender:"renderSelect",attr:"unit",defaultValue:"ms",options:this._getOptions(e)}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t)}))}},{key:"onValueChanged",value:function(e,t){"pause"===t&&this._setInputs(e)}},{key:"onTagChange",value:function(e){this._setInputs()}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n="ms"===e.unit?1:"s"===e.unit?1e3:"m"===e.unit?6e4:36e5;return"// pause for ".concat(n,"ms\n\t\t_sendToFrontEnd(").concat(e._id,", {paused: true});\n\n\t\tawait wait(").concat(e.pause," * ").concat(n,");\n\n\t\t_sendToFrontEnd(").concat(e._id,", {paused: false});")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Pause",id:"ActionPause",icon:"Pause",title:"Make a pause between actions"}}}]),n}(ta),function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"renderDebug",value:function(e){return k.I18n.t("Function: executed")}},{key:"onTagChange",value:function(e){var t=this;this.setState({inputs:[{nameRender:"renderModalInput",attr:"func",noTextEdit:!0,defaultValue:'console.log("Test")',nameBlock:"Function"}]},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",t).call(t,e)}))}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n=(e.func||"").split("\n").map((function(e,t){return" ".concat(e)}));return n.unshift("\t\t_sendToFrontEnd(".concat(e._id,", {func: 'executed'});")),n.unshift("// user function"),n.join("\n")}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"User function",id:"ActionFunction",icon:"Functions",title:"Write your own code",helpDialog:"This is advances option. You can write your own code here and it will be executed on trigger"}}}]),n}(ta),function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"isAllTriggersOnState",value:function(){var e,t,n,a;return(null===(e=this.props.userRules)||void 0===e||null===(t=e.triggers)||void 0===t?void 0:t.find((function(e){return"TriggerState"===e.id})))&&!(null!==(n=this.props.userRules)&&void 0!==n&&null!==(a=n.triggers)&&void 0!==a&&a.find((function(e){return"TriggerState"!==e.id})))}},{key:"renderDebug",value:function(e){return(0,se.jsxs)("span",{children:[k.I18n.t("Set:")," ",(0,se.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:n.renderValue(e.data.val)})]})}},{key:"_setInputs",value:function(e,t){var n=this,a=this.isAllTriggersOnState();t=void 0===t?this.state.settings.toggle:t,e=void 0===e?this.state.settings.useTrigger:e;var s,o,i,r="",l=this.state.settings,c=l.oidType,u=l.oidUnit,d=l.oidStates,p=l.oidMax,h=l.oidMin,g=l.oidRole,m=l.oidWrite,f=l.oidStep;if(c&&("number"===c?(r="number",void 0!==p&&void 0!==h&&(r="slider")):"boolean"===c?(r="boolean",g&&g.includes("button")&&m&&(r="button")):(r="",g&&g.includes("color")&&(r="color")),d&&(s=Object.keys(d).map((function(e){return{value:e,title:d[e]}})),r="select")),a&&e)i=[{backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger",defaultValue:!1}],"boolean"===r&&i.push({backText:"toggle value",attr:"toggle",nameRender:"renderCheckbox",defaultValue:!1});else{switch(r){case"number":i=[{backText:u||"",frontText:"with",nameRender:"renderNumber",defaultValue:void 0===p?0:p,attr:"value"}],void 0!==this.state.settings.value&&isNaN(parseFloat(this.state.settings.value))&&(o={value:void 0===p?0:p});break;case"slider":i=[{nameRender:"renderSlider",defaultValue:p,min:h,max:p,unit:u,step:f,attr:"value"}];var v=parseFloat(this.state.settings.value);void 0!==this.state.settings.value&&(isNaN(v)||vp)&&(o={value:p});break;case"select":i=[{nameRender:"renderSelect",frontText:"with",options:s,defaultValue:s[0].value,attr:"value"}],void 0===this.state.settings.value||s.find((function(e){return e.value===n.state.settings.value}))||(o={value:s[0].value});break;case"boolean":i=[{backText:"toggle value",attr:"toggle",nameRender:"renderCheckbox",defaultValue:!1}],t||i.push({backText:"true",frontText:"false",nameRender:"renderSwitch",defaultValue:!1,attr:"value"}),void 0!==this.state.settings.value&&!1!==this.state.settings.value&&!0!==this.state.settings.value&&(o={value:!1});break;case"button":i=[{nameRender:"renderButton",defaultValue:!0,attr:"value"}],void 0!==this.state.settings.value&&!0!==this.state.settings.value&&(o={value:!0});break;case"color":i=[{nameRender:"renderColor",frontText:"with",defaultValue:"#FFFFFF",attr:"value"}],void 0===this.state.settings.value||"string"===typeof this.state.settings.value&&(this.state.settings.value.startsWith("#"),this.state.settings.value.startsWith("rgb"),0)||(o={value:"#FFFFFF"});break;default:i=[{backText:u||"",frontText:"with",nameRender:"renderText",defaultValue:"",attr:"value"}]}a&&i.unshift({backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger"})}return i.push({backText:"ms",frontText:"Delay",nameRender:"renderNumber",defaultValue:"1000",noHelperText:!0,attr:"delay"}),i.push({backText:"clear running",nameRender:"renderCheckbox",defaultValue:!0,attr:"clearRunning"}),{inputs:i,newSettings:o}}},{key:"onTagChange",value:function(e,t,a,s,o){var i=this;o=void 0===o?this.state.settings.useTrigger:o;var r=this._setInputs(o,s),l=r.inputs,c=r.newSettings;l.unshift({nameRender:"renderObjectID",attr:"oid",defaultValue:"",checkReadOnly:!0}),this.setState({inputs:l},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",i).call(i,null,(function(){if(c){var e=JSON.parse(JSON.stringify(i.state.settings));Object.assign(e,c),i.setState(e),i.props.onChange(e)}}))}))}},{key:"onValueChanged",value:function(e,t,n){this.onTagChange(void 0,void 0,void 0,"toggle"===t?e:void 0,"useTrigger"===t?e:void 0)}},{key:"onUpdate",value:function(){this.onTagChange()}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n,a=e.value;return e.useTrigger?a=e.toggle?"!obj.state.val":"obj.state.val":(void 0!==a&&null!==a||(a=""),"string"===typeof e.value&&parseFloat(e.value).toString()!==e.value&&"true"!==e.value&&"false"!==e.value&&(a='"'.concat(a.replace(/"/g,'\\"'),'"').concat(ta.getReplacesInText(t)))),n=e.toggle&&!e.useTrigger?"const subActionVar".concat(e._id,' = !(await getStateAsync("').concat(e.oid,'")).val'):"const subActionVar".concat(e._id," = ").concat(a),"// set delayed state ".concat(e.oid," to ").concat(e.toggle&&!e.useTrigger?"toggle":a," with delay of ").concat(e.delay,"ms\n\t\t").concat(n,";\n\t\t_sendToFrontEnd(").concat(e._id,", {val: subActionVar").concat(e._id,", ack: ").concat("update"===e.tagCard,'});\n\t\tsetStateDelayed("').concat(e.oid,'", subActionVar').concat(e._id,", ").concat("update"===e.tagCard,", ").concat(parseInt(e.delay,10),", ").concat(e.clearRunning?"true":"false",");")}},{key:"renderValue",value:function(e){return null===e?"null":void 0===e?"undefined":Array.isArray(e)?e.join(", "):"object"===typeof e?JSON.stringify(e):e.toString()}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Set with delay",id:"ActionSetStateDelayed",icon:"PlayForWork",tagCardArray:["control","update"],title:"Control or update some state with delay",helpDialog:"You can use %s in the value to use the current trigger value or %id to display the triggered object ID"}}}]),n}(ta),function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,u.Z)(this,n),t.call(this,e,n.getStaticData())}return(0,d.Z)(n,[{key:"isAllTriggersOnState",value:function(){var e,t,n,a;return(null===(e=this.props.userRules)||void 0===e||null===(t=e.triggers)||void 0===t?void 0:t.find((function(e){return"TriggerState"===e.id})))&&!(null!==(n=this.props.userRules)&&void 0!==n&&null!==(a=n.triggers)&&void 0!==a&&a.find((function(e){return"TriggerState"!==e.id})))}},{key:"renderDebug",value:function(e){return(0,se.jsxs)("span",{children:[k.I18n.t("Set:")," ",(0,se.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:n.renderValue(e.data.val)})]})}},{key:"onTagChange",value:function(e,t,a,s,o){var i=this,r=[];r.push({nameRender:"renderObjectID",title:"ID1",attr:"oid1",defaultValue:"",checkReadOnly:!1}),r.push({nameRender:"renderSelect",options:[{value:"+",title:"+"},{value:"-",title:"-"},{value:"*",title:"*"},{value:"/",title:"/"}],doNotTranslate:!0,defaultValue:"+",attr:"operation"}),r.push({nameRender:"renderObjectID",title:"ID2",attr:"oid2",defaultValue:"",checkReadOnly:!1}),r.push({nameRender:"renderNameText",defaultValue:"store in",attr:"textEqual"}),r.push({nameRender:"renderObjectID",attr:"oidResult",defaultValue:"",checkReadOnly:!0}),this.setState({inputs:r},(function(){return(0,Xt.Z)((0,$t.Z)(n.prototype),"onTagChange",i).call(i,null,(function(){var e=JSON.parse(JSON.stringify(i.state.settings));i.props.onChange(e)}))}))}},{key:"onValueChanged",value:function(e,t,n){this.onTagChange(void 0,void 0,void 0,"toggle"===t?e:void 0,"useTrigger"===t?e:void 0)}},{key:"onUpdate",value:function(){this.onTagChange()}},{key:"getData",value:function(){return n.getStaticData()}}],[{key:"compile",value:function(e,t){var n="const val2_".concat(e._id,' = (await getStateAsync("').concat(e.oid1,'")).val;'),a="const val1_".concat(e._id,' = (await getStateAsync("').concat(e.oid2,'")).val;');return"// ".concat(e.oid1," ").concat(e.operation," ").concat(e.oid2," => ").concat(e.oidResult,"\n\t\t ").concat(n,"\n\t\t ").concat(a,"\n\t\t_sendToFrontEnd(").concat(e._id,", {val: val1_").concat(e._id," ").concat(e.operation," val2_").concat(e._id,", ack: ").concat("update"===e.tagCard,'});\n\t\tawait setStateAsync("').concat(e.oidResult,'", val1_').concat(e._id," ").concat(e.operation," val2_").concat(e._id,", ").concat("update"===e.tagCard,");")}},{key:"renderValue",value:function(e){return null===e?"null":void 0===e?"undefined":Array.isArray(e)?e.join(", "):"object"===typeof e?JSON.stringify(e):e.toString()}},{key:"getStaticData",value:function(){return{acceptedBy:"actions",name:"Operate two states",id:"ActionOperateStates",icon:"AddBox",tagCardArray:["control","update"],title:"Operations with two states"}}}]),n}(ta)],Pa={telegram:ia,email:oa,sayit:sa,pushover:ra,"whatsapp-cmb":la,pushsafer:ca},_a=(0,a.createContext)(),La=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return new Promise((function(s,o){if(window[e])s();else{var i=document.querySelector('[data-webpack="'.concat(e,'"]')),r=function(){var a=(0,ut.Z)((0,ct.Z)().mark((function a(){return(0,ct.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(window[e]){a.next=2;break}return a.abrupt("return",o('Cannot load Remote "'.concat(e,'" to inject')));case 2:if(window[e].__initialized){a.next=11;break}a.next=8;break;case 6:a.next=10;break;case 8:return a.next=10,window[e].init(n.S[t]);case 10:window[e].__initialized=!0;case 11:s();case 12:case"end":return a.stop()}}),a)})));return function(){return a.apply(this,arguments)}}();if(i)i.onload=r,i.onerror=o;else if(a){var l=document,c=l.createElement("script");c.type="text/javascript",c.setAttribute("data-webpack","".concat(e)),c.async=!0,c.onerror=o,c.onload=r,c.src=a,l.getElementsByTagName("head")[0].appendChild(c)}else o("Cannot Find Remote ".concat(e," to inject"))}}))},Ua=function(e,t,n,a){return(0,ut.Z)((0,ct.Z)().mark((function s(){var o,i,r;return(0,ct.Z)().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,La(e,t,a);case 2:return o=window[e],s.next=5,o.get(n);case 5:return i=s.sent,r=i(),s.abrupt("return",r);case 8:case"end":return s.stop()}}),s)})))},Wa=function(e){var t=e.children,n=e.socket,s=(0,a.useState)(null),o=(0,w.Z)(s,2),i=o[0],r=o[1],l=(0,a.useState)(!1),u=(0,w.Z)(l,2),d=u[0],p=u[1],h=(0,a.useState)(!1),g=(0,w.Z)(h,2),m=g[0],f=g[1],v=(0,a.useState)(!1),y=(0,w.Z)(v,2),b=y[0],S=y[1];return(0,a.useEffect)((function(){d&&p(!1)}),[d]),(0,a.useEffect)((function(){(0,ut.Z)((0,ct.Z)().mark((function e(){var t,a,s,o,i,l,u,d;return(0,ct.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.getAdapterInstances();case 2:t=e.sent,a=Object.keys(Pa).filter((function(e){return t.find((function(t){var n;return(null===t||void 0===t||null===(n=t.common)||void 0===n?void 0:n.name)===e}))})),s=[],o=t.filter((function(e){return e.common.javascriptRules})),i=[],l=(0,ct.Z)().mark((function e(){var t,n,a,r,l,c,d;return(0,ct.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o[u],!i.includes(t.common.name)){e.next=3;break}return e.abrupt("return","continue");case 3:if(n=t.common.javascriptRules.url.startsWith("http:")||t.common.javascriptRules.url.startsWith("https:")?t.common.javascriptRules.url:t.common.javascriptRules.url.startsWith("./")?"".concat(window.location.protocol,"//").concat(window.location.host).concat(t.common.javascriptRules.url.replace(/^\./,"")):"".concat(window.location.protocol,"//").concat(window.location.host,"/adapter/").concat(t.common.name,"/").concat(t.common.javascriptRules.url),!0!==t.common.javascriptRules.i18n){e.next=13;break}return a=n.lastIndexOf("/"),r=-1!==a?n.substring(0,a):n,l=k.I18n.getLanguage(),c="".concat(r,"/i18n/").concat(l,".json"),e.next=11,fetch(c).then((function(e){return e.json()})).then((function(e){return k.I18n.extendTranslations(e,l)})).catch((function(e){if("en"!==l)return fetch("".concat(r,"/i18n/en.json")).then((function(e){return e.json()})).then((function(e){return k.I18n.extendTranslations(e,l)})).catch((function(e){return console.error('Cannot load i18n "'.concat(c,'": ').concat(e))}));console.log('Cannot load i18n "'.concat(c,'": ').concat(e))}));case 11:e.next=14;break;case 13:if(t.common.javascriptRules.i18n&&"object"===typeof t.common.javascriptRules.i18n)try{k.I18n.extendTranslations(t.common.javascriptRules.i18n)}catch(p){console.error('Cannot import i18n for "'.concat(t.common.javascriptRules.name,'": ').concat(p))}case 14:return e.prev=14,e.next=17,Ua(t.common.javascriptRules.name,"default","./".concat(t.common.javascriptRules.name),n)();case 17:(d=e.sent.default)&&(s.push(d),i.push(t.common.name),Pa[t.common.name]=null),e.next=24;break;case 21:e.prev=21,e.t0=e.catch(14),console.error('Cannot load component "'.concat(t.common.javascriptRules.name,'": ').concat(e.t0));case 24:case"end":return e.stop()}}),e,null,[[14,21]])})),e.t0=(0,ct.Z)().keys(o);case 9:if((e.t1=e.t0()).done){e.next=17;break}return u=e.t1.value,e.delegateYield(l(),"t2",12);case 12:if("continue"!==e.t2){e.next=15;break}return e.abrupt("continue",9);case 15:e.next=9;break;case 17:d=a.filter((function(e){return Pa[e]})).map((function(e){return Pa[e]})),r([].concat((0,c.Z)(Ba),(0,c.Z)(d),s));case 19:case"end":return e.stop()}}),e)})))()}),[]),(0,se.jsx)(_a.Provider,{value:{blocks:i,socket:n,onUpdate:d,setOnUpdate:p,onDebugMessage:m,setOnDebugMessage:f,enableSimulation:b,setEnableSimulation:S},children:t})};var Va=(0,a.memo)((function(e){var t=e.setUserRules,n=e.userRules,s=e._id,o=e.id,i=e.blockValue,r=e.active,l=e.acceptedBy,c=e.isTourOpen,u=e.setTourStep,d=e.tourStep,p=(0,a.useState)(null),h=(0,w.Z)(p,2),g=h[0],m=h[1],f=(0,a.useContext)(_a),v=f.blocks,y=f.socket,b=f.onUpdate,k=f.setOnUpdate,S=f.onDebugMessage,x=f.enableSimulation;(0,a.useEffect)((function(){console.log("New message !!"+JSON.stringify(S))}),[S]);var C=(0,a.useCallback)((function(e){return v.find((function(t){return t.getStaticData().id===e}))}),[v]),I=(0,a.useCallback)((function(e){var a=function(e,t,n){var a,s=e._id,o=e.acceptedBy;if(!o||!t[o])return console.warn("Cannot find "+o),t;switch(o){case"actions":case"conditions":return(a=t[o][n].find((function(e){return e._id===s})))?t[o][n][t[o][n].indexOf(a)]=e:console.warn("Cannot find "+s),t;default:return(a=t[o].find((function(e){return e._id===s})))?t[o][t[o].indexOf(a)]=e:console.warn("Cannot find "+s),t}}(e,n,i);a&&t(a)}),[n]),j=function(e){return e.currentTarget!==g&&m(e.currentTarget)},T=(0,a.useMemo)((function(){var t=C(o)||ta;return(0,se.jsx)(t,(0,dt.Z)((0,dt.Z)({isTourOpen:c,setTourStep:u,tourStep:d,notFound:!C(o)},e),{},{onUpdate:b,setOnUpdate:k,enableSimulation:x,onDebugMessage:S,onChange:I,className:null,socket:y}))}),[n,b,S,x]),A=(0,a.useState)(!1),D=(0,w.Z)(A,2),N=D[0],E=D[1];return(0,se.jsxs)("div",{onMouseMove:j,onMouseEnter:j,onMouseLeave:function(){return m(null)},onMouseDown:function(e){if(e.ctrlKey){var a,o=Kt(l,n,i);a="triggers"!==i?o[l][i].find((function(e){return e._id===s})):o[l].find((function(e){return e._id===s})),"triggers"!==i?o[l][i].splice(o[l][i].indexOf(a),0,(0,dt.Z)((0,dt.Z)({},a),{},{_id:Date.now()})):o[l].splice(o[l].indexOf(a),0,(0,dt.Z)((0,dt.Z)({},a),{},{_id:Date.now()})),t(o)}},id:"height",style:r?{width:document.getElementById("width").clientWidth-70}:null,className:"".concat(Wt," ").concat(r?Vt:null," ").concat(N?Ht:null),children:[(0,se.jsx)("div",{className:qt}),T,t&&(0,se.jsx)("div",{className:Jt,style:Boolean(g)?{opacity:1}:{opacity:0},children:(0,se.jsx)("div",{onClick:function(e){var a=Kt(l,n,i);a=Qt(l,a,i,s),E(!0),setTimeout((function(){"triggers"===l&&k(!0),t(a)}),300)},className:Gt})})]})}));Va.defaultProps={active:!1};var Ja=Va,Ga={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},Ha=function(e,t,n){if(!e||!t)return{display:"none"};var a=t.x,s=t.y;if(n){var o=function(e,t){return[32*Math.round(e/32),32*Math.round(t/32)]}(a-=e.x,s-=e.y),i=(0,w.Z)(o,2);a=i[0],s=i[1],a+=e.x,s+=e.y}var r="translate(".concat(a,"px, ").concat(s,"px)");return{transform:r,WebkitTransform:r}},qa=function(e){var t=(0,Mt.f)((function(e){return{item:e.getItem(),itemType:e.getItemType(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging(),targetIds:e.getTargetIds()}})),n=t.itemType,a=t.isDragging,s=t.item,o=t.initialOffset,i=t.currentOffset,r=t.targetIds;return a?(0,se.jsx)("div",{style:Ga,children:(0,se.jsx)("div",{style:Ha(o,i),children:"box"===n?r.length?(0,se.jsx)(Ja,(0,dt.Z)((0,dt.Z)({active:!0},s),{},{allBlocks:e.allBlocks})):(0,se.jsx)(Ut,(0,dt.Z)((0,dt.Z)({active:!0},s),{},{socket:e.socket})):null})}):null},Ya={border:"style_border__FU4EA",emptyBlockStyle:"style_emptyBlockStyle__OTKrV",emptyBlock:"style_emptyBlock__FtVho",marginTop:"style_marginTop__5SZbC",selectOnChange:"style_selectOnChange__RqLzt",selectOnChangeHelp:"style_selectOnChangeHelp__-Lfd8",selectOnChangeHelpIcon:"style_selectOnChangeHelpIcon__338if",emptyBlockNone:"style_emptyBlockNone__TbBah",mainBlockItemRules:"style_mainBlockItemRules__fZaoi",nameBlockItems:"style_nameBlockItems__v7gfd",contentBlockItem:"style_contentBlockItem__y6oFK",wrapperMargin:"style_wrapperMargin__9vWv4",contentHeightOn:"style_contentHeightOn__q69X4",heightBlock:"style_heightBlock__zilKy",contentHeightOff:"style_contentHeightOff__t7D6a",cardAdd:"style_cardAdd__1pX3a",blockCardAdd:"style_blockCardAdd__jbFG-",addClassOverflow:"style_addClassOverflow__hJlQh",addClassHeight:"style_addClassHeight__8Fysj"};function Ka(e,t){var n=a.useState(localStorage.getItem(t)?JSON.parse(localStorage.getItem(t)):e),s=(0,w.Z)(n,2),o=s[0],i=s[1];return[o,function(e){localStorage.setItem(t,JSON.stringify(e)),i(e)},!!localStorage.getItem(t)]}var Qa=n(60953),Xa=n(763),$a=n.n(Xa),es=$a().throttle((function(e,t){return e(t)}),0),ts=function(e,t,n,a,s,o,i,r,l){var c=ns(e,n),u=c.card,d=c.index;if(!(dt&&r>l)&&u&&d!==t){var p=$a().clone(n);p.splice(d,1),p.splice(t,0,u);var h=$a().clone(s);switch(o){case"actions":case"conditions":return h[o][i]=p,void es(a,h);default:return h[o]=p,void es(a,h)}}},ns=function(e,t){var n=t.find((function(t){return t._id===e}));return{card:n,index:t.indexOf(n)}},as="style_drag__mJTKg",ss="style_root__lrr-F",os=function(e){var t=e.typeBlocks,n=e.allProperties,s=e.id,o=e.isActive,i=e.setUserRules,r=e.userRules,l=e.children,c=e._id,u=e.blockValue,d=(0,a.useContext)(_a).setOnUpdate,p=(0,R.c)({type:"box",item:function(){return(0,dt.Z)((0,dt.Z)({},n),{},{id:s,isActive:o,_id:c})},end:function(e,t){var n,a=e.acceptedBy,s=t.getDropResult();if(!s)return"number"!==typeof c||t.getTargetIds().length||(n=Qt(a,n=Kt(a,r,u),u,c),i(n)),null;if(s.blockValue!==u){var o="number"===typeof c?c:Date.now();n=Kt(a,r,s.blockValue);var l={id:e.id,acceptedBy:e.acceptedBy};switch(a){case"actions":return u&&(n=Qt(a,n,u,c)),(n=Qt(a,n,s.blockValue,c))[a][s.blockValue].push((0,dt.Z)((0,dt.Z)({},l),{},{_id:o})),i(n);case"conditions":return"number"===typeof u&&(n=Qt(a,n,u,c)),(n=Qt(a,n,s.blockValue,c))[a][s.blockValue].push((0,dt.Z)((0,dt.Z)({},l),{},{_id:o})),i(n);default:return d(!0),(n=Qt(a,n,s.blockValue,c))[a].push((0,dt.Z)((0,dt.Z)({},l),{},{_id:o})),i(n)}}},collect:function(e){return{opacity:e.isDragging()?.4:1,isDragging:e.isDragging()}}}),h=(0,w.Z)(p,3),g=h[0].opacity,m=h[1],f=h[2],v=(0,a.useRef)(null),y=(0,Z.L)({accept:"box",canDrop:function(){return!1},hover:function(e,n){var a,s=e._id,o=e.acceptedBy;if(v.current&&t===o){var l=null===(a=v.current)||void 0===a?void 0:a.getBoundingClientRect(),d=(l.bottom-l.top)/2,p=n.getClientOffset().y-l.top;if(c&&s!==c)switch(o){case"actions":if("then"===u||"else"===u){var h=ns(c,r[o][u]).index;h!==s&&ts(s,h,r[o][u],i,r,o,u,p,d)}return;case"conditions":if("number"===typeof u){var g=ns(c,r[o][u]).index;g!==s&&ts(s,g,r[o][u],i,r,o,u,p,d)}return;default:var m=ns(c,r[o]).index;return void(m!==s&&ts(s,m,r[o],i,r,o,null,p,d))}}}}),b=(0,w.Z)(y,2)[1];(0,a.useEffect)((function(){f((0,Qa.r)(),{captureDraggingState:!0})}),[]),m(b(v));var k=window.innerWidth<600;return(0,se.jsxs)("div",{ref:k&&c?null:v,className:ss,style:{opacity:g},children:[(0,se.jsx)("div",{className:c?as:null,ref:c&&k?v:null}),l]})};os.defaultProps={name:"",active:!1,id:"",_id:null};var is=os,rs=function(e){var t=e.onClose,n=e.open;return(0,se.jsxs)(Q.Z,{open:n,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,se.jsx)(Y.Z,{children:(0,se.jsxs)("div",{style:{fontSize:"1rem",fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',fontWeight:400,lineHeight:1.5,letterSpacing:"0.00938em"},children:[(0,se.jsx)("h3",{children:k.I18n.t("On condition change")}),(0,se.jsx)("div",{children:k.I18n.t("help_on_change")}),(0,se.jsx)("h3",{children:k.I18n.t("Just check")}),(0,se.jsx)("div",{children:k.I18n.t("help_just_check")})]})}),(0,se.jsx)(K.Z,{children:(0,se.jsx)(H.Z,{onClick:t,color:"primary",autoFocus:!0,startIcon:(0,se.jsx)(ae.default,{}),children:k.I18n.t("OK")})})]})};rs.defaultProps={open:!1,onClose:function(){}};var ls=rs,cs=function(e){var t=e.onClose,n=e.open;return(0,se.jsxs)(Q.Z,{open:n,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,se.jsx)(Y.Z,{children:(0,se.jsxs)(ve.Z,{id:"alert-dialog-description",children:[(0,se.jsx)("h3",{children:k.I18n.t("On condition change")}),(0,se.jsx)("div",{children:k.I18n.t("help_on_change")}),(0,se.jsx)("h3",{children:k.I18n.t("Just check")}),(0,se.jsx)("div",{children:k.I18n.t("help_just_check")})]})}),(0,se.jsx)(K.Z,{children:(0,se.jsx)(H.Z,{onClick:t,color:"primary",autoFocus:!0,children:k.I18n.t("OK")})})]})};cs.defaultProps={open:!1,onClose:function(){}};var us=cs,ds=function(e){var t,n=e.size,s=e.itemsSwitchesRender,o=e.blockValue,i=e.boolean,r=e.typeBlock,l=e.userRules,c=e.setUserRules,u=e.animation,d=e.setTourStep,p=e.tourStep,h=e.isTourOpen,g=(0,a.useState)(!1),m=(0,w.Z)(g,2),f=m[0],v=m[1],y=(0,a.useState)(!1),b=(0,w.Z)(y,2),S=b[0],x=b[1],C=(0,a.useState)(!1),I=(0,w.Z)(C,2),j=I[0],T=I[1],A=(0,a.useState)(""),D=(0,w.Z)(A,2),N=D[0],E=D[1],O=(0,Z.L)({accept:"box",drop:function(){return{blockValue:o}},hover:function(e,t){var n=e.acceptedBy,a=e._id;v(n===r),T(!!a),E(t.getHandlerId())},canDrop:function(e,t){var n=e.acceptedBy;return x(n===r),n===r},collect:function(e){var t;return{isOver:e.isOver(),canDrop:(null===(t=e.getItem())||void 0===t?void 0:t.acceptedBy)===r,offset:e.getClientOffset(),targetId:e.targetId}}}),M=(0,w.Z)(O,2),z=M[0],R=z.canDrop,F=z.isOver,B=z.offset,P=z.targetId,_=M[1];(0,a.useEffect)((function(){E("")}),[B]);var L=R&&F,U="";return L?U=f?"#00fb003d":"#fb00002e":R?U=S?"#00fb003d":"#fb00002e":B&&(U=P===N?"#fb00002e":""),(0,se.jsx)("div",{ref:_,style:{backgroundColor:U},className:"".concat(k.Utils.clsx(Ya.contentBlockItem,n&&Ya.addClassHeight)," ").concat(i?u?Ya.contentHeightOn:null:Ya.contentHeightOff),children:(0,se.jsxs)("div",{className:Ya.wrapperMargin,children:[null===(t=s[o])||void 0===t?void 0:t.map((function(e){return(0,se.jsx)(is,(0,dt.Z)((0,dt.Z)({typeBlocks:r},e),{},{blockValue:o,allProperties:e,userRules:l,setUserRules:c,children:(0,se.jsx)(Ja,(0,dt.Z)((0,dt.Z)({},e),{},{isTourOpen:h,setTourStep:d,tourStep:p,settings:e,blockValue:o,userRules:l,setUserRules:c}))}),e._id)})),(0,se.jsx)("div",{style:L&&f&&!j?{height:document.getElementById("height")?document.getElementById("height").clientHeight:200}:null,className:"".concat(Ya.emptyBlockStyle," ").concat(L&&f&&!j?Ya.emptyBlock:Ya.emptyBlockNone)})]})})};ds.defaultProps={children:null,boolean:!0,animation:!1};var ps=function(e){var t=e.size,n=e.typeBlock,s=e.name,o=e.nameAdditionally,i=e.additionally,r=e.border,l=e.userRules,u=e.setUserRules,d=e.iconName,p=e.adapter,h=e.socket,g=e.setTourStep,m=e.tourStep,f=e.isTourOpen,v=Ka("actions"!==n&&[],"additionallyClickItems_".concat(n)),y=(0,w.Z)(v,3),b=y[0],S=y[1],x=y[2],C=(0,a.useState)(!1),I=(0,w.Z)(C,2),j=I[0],T=I[1],A=(0,a.useState)(!1),D=(0,w.Z)(A,2),N=D[0],O=D[1];(0,a.useEffect)((function(){if("conditions"===n&&b.length!==l.conditions.length-1){var e=[];l.conditions.forEach((function(t,n){n>0&&e.push({_id:Date.now(),open:!0})})),S([].concat((0,c.Z)(b),e))}"actions"===n&&!x&&l.actions.else.length&&S(!0)}),[]);var z=(0,a.useState)(!1),Z=(0,w.Z)(z,2),R=Z[0],F=Z[1];return(0,se.jsxs)("div",{className:"".concat(k.Utils.clsx(Ya.mainBlockItemRules,t&&Ya.addClassOverflow)," ").concat(r&&!t?Ya.border:null),children:[(0,se.jsxs)("span",{id:"width",className:Ya.nameBlockItems,children:[(0,se.jsx)(_t,{iconName:d,className:Ya.iconThemCard,adapter:p,socket:h}),s]}),"conditions"===n?(0,se.jsxs)("div",{style:{width:"100%"},children:[(0,se.jsxs)(ee.Z,{variant:"standard",className:Ya.selectOnChange,value:l.justCheck||!1,onChange:function(e){var t=Kt("conditions",l);t.justCheck=e.target.value,u(t)},children:[(0,se.jsx)(M.Z,{value:!1,children:k.I18n.t("on condition change")}),(0,se.jsx)(M.Z,{value:!0,children:k.I18n.t("just check")})]}),(0,se.jsx)(E.Z,{size:"small",title:k.I18n.t("Explanation"),className:Ya.selectOnChangeHelp,onClick:function(){return T(!0)},children:(0,se.jsx)(nn.Z,{className:Ya.selectOnChangeHelpIcon})})]}):null,(0,se.jsx)(ds,{setTourStep:g,tourStep:m,isTourOpen:f,blockValue:"actions"===n?"then":"conditions"===n?0:n,typeBlock:n,setUserRules:u,userRules:l,size:t,itemsSwitchesRender:"actions"===n?l.actions:"conditions"===n?l.conditions:l}),i&&(0,c.Z)(Array("actions"===n?1:l.conditions.length-1)).map((function(e,s){var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return Boolean("actions"===n?b:b.find((function(t,n){return n===e&&t.open})))};return(0,se.jsxs)(a.Fragment,{children:[(0,se.jsxs)("div",{onClick:function(){if("actions"===n)return S(!b),null;var e=JSON.parse(JSON.stringify(b));if(l.conditions[s+1].length)return e[s].open=!e[s].open,S(e),null;e=e.filter((function(e,t){return t!==s})),S(e),F("actions"===n||s),setTimeout((function(){F(!1),u((0,dt.Z)((0,dt.Z)({},l),{},{conditions:(0,c.Z)(l.conditions.filter((function(e,t){return t!==s+1})))}))}),250)},className:Ya.blockCardAdd,children:[i()?"-":"+",(0,se.jsx)("div",{className:Ya.cardAdd,children:o})]},s),(0,se.jsx)(ds,{blockValue:"actions"===n?"else":"conditions"===n?s+1:n,typeBlock:n,setUserRules:u,itemsSwitchesRender:"actions"===n?l.actions:"conditions"===n?l.conditions:l,userRules:l,boolean:i(),animation:Boolean(R===s),size:t})]},"".concat(s,"_block_").concat(n))})),i&&"conditions"===n&&(0,se.jsxs)("div",{onClick:function(){S([].concat((0,c.Z)(b),[{_id:Date.now(),open:!0}])),u((0,dt.Z)((0,dt.Z)({},l),{},{conditions:[].concat((0,c.Z)(l.conditions),[[]])})),F("actions"===n||l.conditions.length-1),setTimeout((function(){return F(!1)}),1e3)},className:Ya.blockCardAdd,children:["+",(0,se.jsx)("div",{className:Ya.cardAdd,children:o})]}),(0,se.jsx)(ls,{open:j,onClose:function(){return T(!1)}}),(0,se.jsx)(us,{open:N,onClose:function(){return O(!1)}})]})};ps.defaultProps={children:null,name:"",nameAdditionally:"",additionally:!1,border:!1,typeBlock:""};var hs=ps,gs="style_menuRules__00nS7",ms="style_switchesRenderWrapper__8kuDP",fs="style_menuOff__+NzqA",vs="style_menuTitle__ryFpz",ys="style_marginAuto__1fBxI",bs="style_inputWidth__ztv5O",ks="style_menuWrapper__UQpIH",Ss="style_hamburgerWrapper__E1orU",xs="style_hamburgerOff__OegQ1",ws="style_nothingFound__NMV9T",Cs="style_resetSearch__xcCMm",Is="style_controlPanel__WMp0-",js="style_controlPanelAppBar__3JVH5",Ts="style_addClassMenu__oVnVx",As="style_addClassBackground__jAEkn",Ds="style_addClassPosition__Omc3V",Ns=function(e){var t=e.allProperties,n=e.allProperties,a=n.acceptedBy,s=n.id,o=e.setUserRules,i=e.userRules,r=e.setTourStep,l=e.tourStep,c=e.isTourOpen,u=e.onTouchMove;return(0,se.jsx)(is,(0,dt.Z)((0,dt.Z)((0,dt.Z)({},e),t),{},{children:(0,se.jsx)(Ut,(0,dt.Z)((0,dt.Z)({onTouchMove:u,onDoubleClick:function(){c&&l===Gn&&"TriggerScheduleBlock"===s&&r(Hn),c&&l===Kn&&"ActionPrintText"===s&&r(Qn);var e,t=Date.now();switch(a){case"actions":e="then";break;case"conditions":e=i[a].length-1}var n=Kt(a,i,e),u={id:s,_id:t,acceptedBy:a};void 0!==e?n[a][e].push((0,dt.Z)({},u)):n[a].push((0,dt.Z)({},u)),o(n)},onDoubl:!0},e),t))}))},Es="hamburgerMenu_hamburgerMenu__85qrF",Os="hamburgerMenu_animate__fu7Hd",Ms=function(e){var t=e.boolean;return(0,se.jsx)("div",{className:"".concat(Es," ").concat(t?Os:"")})};Ms.defaultProps={boolean:!1};var zs=Ms,Zs=function(e){var t=e.addClass,n=e.setAllBlocks,s=e.allBlocks,o=e.userRules,i=e.onChangeBlocks,r=e.setTourStep,l=e.tourStep,u=e.isTourOpen,d=(0,a.useContext)(_a),p=d.blocks,h=d.socket,g=Ka(!1,"hamburgerOnOff"),m=(0,w.Z)(g,2),f=m[0],v=m[1],y=Ka({text:"",type:"triggers",index:0},"filterControlPanel"),b=(0,w.Z)(y,2),S=b[0],x=b[1],C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S.text,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.type;if(p){var a=(0,c.Z)(p);a=(a=a.filter((function(t){if(!e)return!0;var n=t.getStaticData().name;return n&&k.I18n.t(n).toLowerCase().includes(e.toLowerCase())}))).filter((function(e){return t===e.getStaticData().acceptedBy})),n(a)}},I=function(e){return{id:"scrollable-force-tab-".concat(e),"aria-controls":"scrollable-force-tabpanel-".concat(e)}};return(0,a.useEffect)((function(){C()}),[p]),(0,se.jsx)(tn.ClickAwayListener,{mouseEvent:!1,touchEvent:"onTouchStart",onClickAway:function(){return v(!0)},children:(0,se.jsxs)("div",{className:k.Utils.clsx(ks,t[1035]&&Ts),children:[(0,se.jsx)("div",{className:"".concat(Ss," ").concat(f?xs:null),onClick:function(){return v(!f)},children:(0,se.jsx)(zs,{boolean:!f})}),(0,se.jsxs)("div",{className:"".concat(k.Utils.clsx(gs,t[1035]&&As,t[835]&&Ds)," ").concat(f?fs:null),children:[(0,se.jsx)("div",{className:Is,children:(0,se.jsx)(tn.AppBar,{className:js,position:"static",children:(0,se.jsxs)(tn.Tabs,{value:S.index,onChange:function(e,t){u&&0===t&&l===Jn&&r(Gn),u&&2===t&&l===Yn&&r(Kn),x((0,dt.Z)((0,dt.Z)({},S),{},{index:t,type:["triggers","conditions","actions"][t]})),C(S.text,["triggers","conditions","actions"][t])},children:[(0,se.jsx)(tn.Tab,(0,dt.Z)({className:"blocks-triggers",title:k.I18n.t("Triggers"),icon:(0,se.jsx)(_t,{iconName:"FlashOn"})},I(0))),(0,se.jsx)(tn.Tab,(0,dt.Z)({title:k.I18n.t("Conditions"),className:"blocks-conditions",icon:(0,se.jsx)(_t,{iconName:"Help"})},I(1))),(0,se.jsx)(tn.Tab,(0,dt.Z)({title:k.I18n.t("Actions"),className:"blocks-actions",icon:(0,se.jsx)(_t,{iconName:"PlayForWork"})},I(2)))]})})}),(0,se.jsx)("div",{className:ms,children:(0,se.jsxs)("span",{children:[s.map((function(e){var t=e.getStaticData(),n=t.name,s=t.id,c=t.icon,d=t.adapter;return(0,se.jsx)(a.Fragment,{children:(0,se.jsx)(Ns,{onTouchMove:function(){return v(!0)},setTourStep:r,tourStep:l,isTourOpen:u,allProperties:e.getStaticData(),name:n,icon:c,adapter:d,socket:h,userRules:o,setUserRules:i,isActive:!1,id:s})},s)})),0===s.length&&(0,se.jsxs)("div",{className:ws,children:[k.I18n.t("Nothing found"),"...",(0,se.jsx)("div",{className:Cs,onClick:function(){x((0,dt.Z)((0,dt.Z)({},S),{},{text:""})),C("")},children:k.I18n.t("reset search")})]})]})}),(0,se.jsx)("div",{className:k.Utils.clsx(vs,ys)}),(0,se.jsx)(vn,{className:bs,fullWidth:!0,customValue:!0,value:S.text,size:"small",autoComplete:"off",label:k.I18n.t("search"),variant:"outlined",onChange:function(e){x((0,dt.Z)((0,dt.Z)({},S),{},{text:e})),C(e)}})]})]})})},Rs=function(e){var t=e.code,n=e.onChange,s=e.themeName,o=e.setTourStep,i=e.tourStep,r=e.isTourOpen,l=e.command,c=e.scriptId,u=e.changed,d=e.running,p=(0,a.useContext)(_a),h=p.blocks,g=p.socket,m=p.setOnUpdate,f=p.setOnDebugMessage,v=p.setEnableSimulation,y=(0,a.useState)([]),b=(0,w.Z)(y,2),S=b[0],x=b[1],C=(0,a.useState)(ma.code2json(t)),I=(0,w.Z)(C,2),j=I[0],T=I[1],A=(0,a.useState)(""),D=(0,w.Z)(A,2),N=D[0],E=D[1],O=(0,a.useState)(!1),M=(0,w.Z)(O,2),z=M[0],Z=M[1];(0,a.useEffect)((function(){var e,t,n=function n(a,s){var o,i;a===e+".alive"?t!==(null===s||void 0===s?void 0:s.val)&&(t=null===s||void 0===s?void 0:s.val)&&g.sendTo(e.replace(/^system\.adapter\./,""),"rulesOn",c):e!==(null===s||void 0===s||null===(o=s.common)||void 0===o?void 0:o.engine)&&(e&&g.unsubscribeState("".concat(e,".alive"),n),t&&g.sendTo(e.replace(/^system\.adapter\./,""),"rulesOn",c),(e=null===s||void 0===s||null===(i=s.common)||void 0===i?void 0:i.engine)&&g.subscribeState("".concat(e,".alive"),n))},a=function(e,t){if(t)try{var n=JSON.parse(t.val);n.ruleId===c&&Date.now()-n.ts<1e3&&f({blockId:n.blockId,data:n.data,ts:n.ts})}catch(a){console.error("Cannot parse: "+t.val)}};return g.getObject(c).then((function(t){var s;e=null===t||void 0===t||null===(s=t.common)||void 0===s?void 0:s.engine,g.subscribeObject(c,n),e&&g.subscribeState("".concat(e,".alive"),n),e&&g.subscribeState(e.replace(/^system\.adapter\./,"")+".debug.rules",a)})),function(){e&&g.unsubscribeObject("".concat(e,".alive"),n),g.unsubscribeState(c,n),t&&e&&g.sendTo(e.replace(/^system\.adapter\./,""),"rulesOff",c),e&&g.unsubscribeState(e.replace(/^system\.adapter\./,"")+".debug.rules",a)}}),[]),(0,a.useEffect)((function(){v(!u&&d)}),[u,d,v]),(0,a.useEffect)((function(){l&&(E(l),z||Z(!0))}),[l]),(0,a.useEffect)((function(){var e=ma.code2json(t);JSON.stringify(e)!==JSON.stringify(j)&&(T(e),m(!0))}),[t]),(0,a.useEffect)((function(){document.getElementsByTagName("HTML")[0].className=s||"blue"}),[s]);var R=(0,a.useCallback)((function(e){T(e),n(ma.json2code(e,h))}),[h,n]),F=(0,a.useRef)({clientWidth:0}),B=(0,a.useState)({835:!1,1035:!1}),P=(0,w.Z)(B,2),_=P[0],L=P[1];return(0,a.useEffect)((function(){F.current&&(F.current.clientWidth<=1035&&L({835:!1,1035:!0}),F.current.clientWidth<=835&&L({1035:!0,835:!0}),F.current.clientWidth>1035&&L({835:!1,1035:!1}))}),[F.current.clientWidth]),h?(0,se.jsxs)("div",{className:Nt,ref:F,children:[(0,se.jsx)(qa,{allBlocks:S,socket:g}),"export"===N?(0,se.jsx)(ft,{onClose:function(){return Z(!1)},open:z,text:JSON.stringify(j,null,2)},"dialogExport"):(0,se.jsx)(bt,{open:z,onClose:function(e){Z(!1),e&&R(JSON.parse(e))}},"dialogImport"),(0,se.jsxs)("div",{className:k.Utils.clsx(Et,_[835]&&Ot),children:[(0,se.jsx)(Zs,{setAllBlocks:x,allBlocks:S,userRules:j,onChangeBlocks:R,setTourStep:o,tourStep:i,addClass:_,isTourOpen:r}),(0,se.jsx)(hs,{setUserRules:R,userRules:j,isTourOpen:r,setTourStep:o,tourStep:i,name:"".concat(k.I18n.t("when"),"..."),typeBlock:"triggers",iconName:"FlashOn",size:_[835]}),(0,se.jsx)(hs,{setUserRules:R,isTourOpen:r,setTourStep:o,tourStep:i,userRules:j,name:"...".concat(k.I18n.t("and"),"..."),typeBlock:"conditions",iconName:"Help",nameAdditionally:k.I18n.t("or"),additionally:!0,border:!0,size:_[835]}),(0,se.jsx)(hs,{setUserRules:R,isTourOpen:r,setTourStep:o,tourStep:i,userRules:j,name:"...".concat(k.I18n.t("then")),typeBlock:"actions",iconName:"PlayForWork",nameAdditionally:k.I18n.t("else"),additionally:!0,size:_[835]})]})]},"rulesEditor"):null},Fs=n(76278),Bs=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).state={lines:(a.props.script||"").split(/\r\n|\n/)},a}return(0,d.Z)(n,[{key:"editorDidMount",value:function(e,t){this.monaco=t,this.editor=e,e.focus()}},{key:"render",value:function(){var e=this;return(0,se.jsx)("div",{className:this.props.classes.editorDiv,children:(0,se.jsx)(lt,{name:this.props.scriptName,adapterName:this.props.adapterName,readOnly:!0,code:this.props.script||"",isDark:"dark"===this.props.themeType,socket:this.props.socket,runningInstances:this.props.runningInstances,language:"javascript",breakpoints:this.props.breakpoints,location:this.props.paused?this.props.location:null,onToggleBreakpoint:function(t){return e.props.onToggleBreakpoint(t)}},"scriptEditor2")},"scriptEditorDiv2")}}]),n}(s().Component),Ps=(0,g.Z)((function(e){return{editorDiv:{height:"100%",width:"100%",overflow:"hidden",position:"relative"},editor:{width:"100%",height:"100%",overflow:"auto"},line:{width:"100%",whiteSpace:"nowrap"},lineNumber:{width:40,whiteSpace:"nowrap",overflow:"hidden",display:"inline-block",fontFamily:"Lucida Console, Courier, monospace",textAlign:"right",fontSize:14,marginRight:1,borderRight:"1px solid #555",cursor:"pointer"},lineBreakpoint:{background:"#330000",color:"white"},lineCode:{display:"inline-block",fontFamily:"Lucida Console, Courier, monospace",fontSize:14,margin:0,whiteSpace:"pre"},lineCurrentCode:{background:"red",color:"white"},lineCurrent:{background:"#880000",color:"white"}}}))(Bs);function _s(e){var t,n=e.getHours();return n<10&&(n="0"+n.toString()),t=n+":",(n=e.getMinutes())<10&&(n="0"+n.toString()),t+=n+":",(n=e.getSeconds())<10&&(n="0"+n.toString()),t+=n+".",(n=e.getMilliseconds())<10?n="00"+n.toString():n<100&&(n="0"+n.toString()),t+=n}var Ls=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).state={lines:{},goBottom:!0},a.messagesEnd=s().createRef(),a}return(0,d.Z)(n,[{key:"generateLine",value:function(e){return(0,se.jsxs)("tr",{className:this.props.classes[e.severity],children:[(0,se.jsx)("td",{className:this.props.classes.trTime,children:_s(new Date(e.ts))},"tdTime"),(0,se.jsx)("td",{className:this.props.classes.trSeverity,children:e.severity},"tdSeverity"),(0,se.jsx)("td",{children:e.text},"tdMessage")]},"tr_".concat(e.ts,"_").concat(e.text.substr(-10)))}},{key:"renderLogList",value:function(e){var t=this;return e&&e.length?(0,se.jsxs)("div",{className:this.props.classes.logBoxInner,children:[(0,se.jsx)("table",{className:this.props.classes.table,children:(0,se.jsx)("tbody",{children:e.map((function(e,n){return t.generateLine(e)}))})},"logTable"),(0,se.jsx)("div",{ref:this.messagesEnd,style:{float:"left",clear:"both"}},"logScrollPoint")]},"logList"):(0,se.jsx)("div",{className:this.props.classes.logBoxInner,style:{paddingLeft:10},children:k.I18n.t("Log outputs")},"logList")}},{key:"onCopy",value:function(){k.Utils.copyToClipboard(this.props.console.join("\n"))}},{key:"scrollToBottom",value:function(){this.messagesEnd&&this.messagesEnd.current&&this.messagesEnd.current.scrollIntoView({behavior:"smooth"})}},{key:"componentDidUpdate",value:function(){this.state.goBottom&&this.scrollToBottom()}},{key:"render",value:function(){var e=this,t=this.props.console;return(0,se.jsxs)("div",{className:this.props.classes.logBox,children:[(0,se.jsxs)("div",{className:this.props.classes.toolbox,children:[(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.setState({goBottom:!e.state.goBottom})},color:this.state.goBottom?"secondary":"",size:"medium",children:(0,se.jsx)(S.G10,{})}),t&&t.length?(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.props.onClearAllLogs()},size:"medium",children:(0,se.jsx)(S.FH3,{})}):null,t&&t.length?(0,se.jsx)(E.Z,{className:this.props.classes.iconButtons,onClick:function(){return e.onCopy()},size:"medium",children:(0,se.jsx)(S.Fqs,{})}):null]},"toolbox"),this.renderLogList(t)]})}}]),n}(s().Component),Us=(0,g.Z)((function(e){return{consoleLine:{fontSize:14,color:"dark"===e.palette.mode?"#EEE":"#222"},console_log:{},console_warn:{backgroundColor:"dark"===e.palette.mode?"#885900":"#ffa500"},console_error:{backgroundColor:"dark"===e.palette.mode?"#7a0000":"#FF0000"},console_debug:{opacity:.6},consoleSeverity:{verticalAlign:"top",width:50,textTransform:"uppercase"},consoleTime:{whiteSpace:"nowrap",verticalAlign:"top",width:170},consoleText:{fontFamily:"Lucida Console, Courier, monospace",paddingTop:4,"&>pre":{margin:0}},logBox:{width:"100%",height:"100%",position:"relative",overflow:"hidden"},logBoxInner:{display:"inline-block",color:"dark"===e.palette.mode?"white":"black",width:"calc(100% - ".concat(34,"px)"),height:"100%",overflow:"auto",position:"relative",verticalAlign:"top"},info:{background:"dark"===e.palette.mode?"darkgrey":"lightgrey",color:(e.palette.mode,"black")},error:{background:"#FF0000",color:"dark"===e.palette.mode?"black":"white"},warn:{background:"#FF8000",color:"dark"===e.palette.mode?"black":"white"},debug:{background:"gray",opacity:.8,color:"dark"===e.palette.mode?"black":"white"},silly:{background:"gray",opacity:.6,color:"dark"===e.palette.mode?"black":"white"},table:{fontFamily:"monospace",width:"100%"},toolbox:{width:34,height:"100%",boxShadow:"2px 0px 4px -1px rgba(0, 0, 0, 0.2), 4px 0px 5px 0px rgba(0, 0, 0, 0.14), 1px 0px 10px 0px rgba(0, 0, 0, 0.12)",display:"inline-block",verticalAlign:"top",overflow:"hidden"},trTime:{width:90},trSeverity:{width:40,fontWeight:"bold"},iconButtons:{width:32,height:32,padding:4}}}))(Ls),Ws=n(71939),Vs=n.n(Ws),Js=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).framesSize=parseFloat(window.localStorage.getItem("App.framesSize"))||300,a.state={editValue:null,callFrames:a.props.callFrames},a.editRef=s().createRef(),a}return(0,d.Z)(n,[{key:"onExpressionNameUpdate",value:function(){var e=this;this.props.onExpressionNameUpdate(this.state.editValue.index,this.scopeValue,(function(){e.setState({editValue:null}),e.scopeValue=null}))}},{key:"renderExpression",value:function(e,t){var n=this,a=this.state.editValue&&"expression"===this.state.editValue.type&&this.state.editValue.index===t?(0,se.jsx)(z.Z,{inputRef:this.editRef,fullWidth:!0,margin:"dense",onBlur:function(){return n.state.editValue&&n.setState({editValue:null})},defaultValue:e.name,onKeyUp:function(e){13===e.keyCode?n.onExpressionNameUpdate():27===e.keyCode&&n.setState({editValue:null})},onChange:function(e){return n.scopeValue=e.target.value},endAdornment:(0,se.jsx)(Se.Z,{position:"end",children:(0,se.jsx)(E.Z,{onClick:function(){return n.onExpressionNameUpdate()},size:"medium",children:(0,se.jsx)(S.HhX,{})})})}):[(0,se.jsx)("div",{className:this.props.classes.scopeNameName,title:k.I18n.t("Double click to edit expression"),children:e.name},"name"),(0,se.jsx)("div",{className:this.props.classes.scopeNameEqual,children:" = "},"="),(0,se.jsx)("div",{className:this.props.classes.scopeNameValue,children:this.formatValue(e.value)},"val")];return(0,se.jsxs)("tr",{children:[(0,se.jsx)("td",{className:k.Utils.clsx(this.props.classes.scopeType,this.props.classes.scopeType_user),children:"user"}),(0,se.jsx)("td",{className:this.props.classes.scopeName,onDoubleClick:function(){n.scopeValue=e.name||"",n.setState({editValue:{type:"expression",valueType:"string",index:t,name:e.name,value:e.name||""}})},children:a}),(0,se.jsx)(E.Z,{className:this.props.classes.scopeButtonDel,size:"small",disabled:!!this.state.editValue,onClick:function(){return n.props.onExpressionDelete(t)},children:(0,se.jsx)(S.ZkW,{})})]},"user_".concat(t).concat(e.name))}},{key:"renderExpressions",value:function(){var e=this;return this.props.expressions.map((function(t,n){return e.renderExpression(t,n)}))}},{key:"renderOneFrameTitle",value:function(e,t){var n=this;if(this.props.mainScriptId===this.props.currentScriptId&&e.location.scriptId!==this.props.mainScriptId)return null;var a=e.url.split("/").pop().replace(/^script\.js\./,"");return(0,se.jsx)(Fs.Z,{onClick:function(){return n.props.onChangeCurrentFrame(t)},dense:!0,selected:this.props.currentFrame===t,classes:{root:this.props.classes.frameRoot},children:(0,se.jsx)(N.Z,{classes:{root:this.props.classes.frameTextRoot,primary:this.props.classes.frameTextPrimary,secondary:this.props.classes.frameTextSecondary},title:e.url,primary:e.functionName||"anonymous",secondary:"".concat(a," (").concat(e.location.lineNumber,":").concat(e.location.columnNumber,")")})},e.id)}},{key:"formatValue",value:function(e,t){if(e){if("function"===e.type){var n=e.description?e.description.length>100?e.description.substring(0,100)+"...":e.description:"function";return t?n:(0,se.jsx)("span",{className:this.props.classes.valueFunc,title:e.description,children:n})}if(void 0===e.value)return t?"undefined":(0,se.jsx)("span",{className:this.props.classes.valueUndefined,children:"undefined"});if(null===e.value)return t?"null":(0,se.jsx)("span",{className:this.props.classes.valueNull,children:"null"});if("string"===e.type){if(t)return e.value;var a=e.value?e.value.length>100?e.value.substring(0,100)+"...":e.value:"";return(0,se.jsxs)("span",{className:this.props.classes.valueString,title:a,children:['"',a,'"']})}return"boolean"===e.type?t?e.value.toString():(0,se.jsx)("span",{className:this.props.classes.valueBoolean,children:e.value.toString()}):"object"===e.type?t?JSON.stringify(e.value):(0,se.jsx)(Vs(),{enableClipboard:!1,style:{backgroundColor:"inherit",marginTop:3},src:e.value,collapsed:!0,theme:"dark"===this.props.themeType?"brewer":"rjv-default",displayDataTypes:!1}):e.value.toString()}return t?"none":(0,se.jsx)("span",{className:this.props.classes.valueNone,children:"none"})}},{key:"onWriteScopeValue",value:function(){"true"===this.scopeValue?this.scopeValue=!0:"false"===this.scopeValue?this.scopeValue=!1:"null"===this.scopeValue?this.scopeValue=null:"undefined"===this.scopeValue?this.scopeValue=void 0:parseFloat(this.scopeValue).toString()===this.scopeValue&&(this.scopeValue=parseFloat(this.scopeValue)),this.props.onWriteScopeValue({variableName:this.state.editValue.name,scopeNumber:0,newValue:{value:this.scopeValue,valueType:typeof this.scopeValue},callFrameId:this.props.callFrames[this.props.currentFrame].callFrameId}),this.setState({editValue:null}),this.scopeValue=null}},{key:"componentDidUpdate",value:function(){var e;null===(e=this.editRef.current)||void 0===e||e.focus()}},{key:"renderScope",value:function(e,t,n){var a,s,o=this,i=!this.props.currentFrame&&t.value&&("undefined"===t.value.type||"string"===t.value.type||"number"===t.value.type||"boolean"===t.value.type||null===(null===(a=t.value)||void 0===a?void 0:a.value)||void 0===(null===(s=t.value)||void 0===s?void 0:s.value)),r=this.state.editValue&&this.state.editValue.type===n&&this.state.editValue.name===t.name?[(0,se.jsx)("div",{className:this.props.classes.scopeNameName,children:t.name},"name"),(0,se.jsx)("div",{className:this.props.classes.scopeNameEqual,children:" = "},"="),(0,se.jsx)(z.Z,{inputRef:this.editRef,margin:"dense",onBlur:function(){return o.state.editValue&&o.setState({editValue:null})},defaultValue:this.formatValue(t.value,!0),onKeyUp:function(e){13===e.keyCode?o.onWriteScopeValue():27===e.keyCode&&o.setState({editValue:null})},onChange:function(e){return o.scopeValue=e.target.value},endAdornment:(0,se.jsx)(Se.Z,{position:"end",children:(0,se.jsx)(E.Z,{onClick:function(){return o.onWriteScopeValue()},size:"medium",children:(0,se.jsx)(S.HhX,{})})})})]:[(0,se.jsx)("div",{className:this.props.classes.scopeNameName,title:k.I18n.t("Double click to write value"),children:t.name},"name"),(0,se.jsx)("div",{className:this.props.classes.scopeNameEqual,children:" = "},"="),(0,se.jsxs)("div",{className:this.props.classes.scopeNameValue,children:[this.formatValue(t.value)," (",t.value.type,")"]},"val")];return(0,se.jsxs)("tr",{children:[(0,se.jsx)("td",{className:k.Utils.clsx(this.props.classes.scopeType,this.props.classes["scopeType_"+n]),children:n}),(0,se.jsx)("td",{className:k.Utils.clsx(this.props.classes.scopeName,!this.props.currentFrame&&i&&this.props.classes.scopeValueEditable),onDoubleClick:function(){i&&(o.scopeValue=t.value.value,o.setState({editValue:{scopeId:e,type:n,valueType:t.value.type,name:t.name,value:t.value.value}}))},children:r})]},"".concat(n,"_").concat(e,"_").concat(t.name))}},{key:"renderScopes",value:function(e){var t=this;if(e){var n,a,s,o,i,r,l=this.renderExpressions(),c=null===(n=this.props.scopes)||void 0===n||null===(a=n.local)||void 0===a||null===(s=a.properties)||void 0===s?void 0:s.result.map((function(e){return t.renderScope(t.props.scopes.id,e,"local")}));return c&&c.forEach((function(e){return l.push(e)})),(c=null===(o=this.props.scopes)||void 0===o||null===(i=o.closure)||void 0===i||null===(r=i.properties)||void 0===r?void 0:r.result.map((function(e){return t.renderScope(t.props.scopes.id,e,"closure")})))&&c.forEach((function(e){return l.push(e)})),(0,se.jsx)("table",{style:{width:"100%"},children:(0,se.jsx)("tbody",{children:l})})}return null}},{key:"render",value:function(){var e=this;return(0,se.jsxs)(f(),{customClassName:this.props.classes.splitter,primaryIndex:1,secondaryMinSize:200,primaryMinSize:200,vertical:!1,secondaryInitialSize:this.framesSize,onSecondaryPaneSizeChange:function(t){return e.framesSize=parseFloat(t)},onDragEnd:function(){return window.localStorage.setItem("App.framesSize",e.framesSize.toString())},children:[(0,se.jsx)("div",{style:{width:"100%",height:"100%",overflow:"auto"},children:(0,se.jsx)(j.Z,{classes:{root:this.props.classes.listRoot},children:this.props.callFrames?this.props.callFrames.map((function(t,n){return e.renderOneFrameTitle(t,n)})):null})}),(0,se.jsxs)("div",{style:{width:"100%",height:"100%",overflow:"auto"},children:[(0,se.jsx)("div",{className:this.props.classes.toolbarScopes,children:(0,se.jsx)(E.Z,{size:"small",onClick:function(){return e.props.onExpressionAdd((function(t,n){e.scopeValue=n.name||"",e.setState({editValue:{type:"expression",valueType:"string",index:t,name:n.name,value:n.name||""}})}))},children:(0,se.jsx)(S.x06,{})})}),(0,se.jsx)("div",{className:this.props.classes.scopesAfterToolbar,children:this.props.callFrames&&this.props.callFrames.length&&this.renderScopes(this.props.callFrames[this.props.currentFrame])})]})]})}}]),n}(s().Component),Gs=(0,g.Z)((function(e){return{frameRoot:{paddingTop:0,paddingBottom:0},frameTextRoot:{margin:0},frameTextPrimary:{color:"dark"===e.palette.mode?"#CCC":"#333"},frameTextSecondary:{fontStyle:"italic",fontSize:12,opacity:.6,paddingLeft:e.spacing(1)},listRoot:{padding:0},scopeType:{verticalAlign:"top",textTransform:"uppercase",width:50},scopeType_local:{color:"#53a944"},scopeType_closure:{color:"#365b80"},scopeType_user:{color:"#a48a15"},scopeName:{color:"#bc5b5b",width:"calc(100% - 82px)",whiteSpace:"nowrap",textOverflow:"ellipsis"},scopeButton:{width:32},scopeValueEditable:{cursor:"pointer"},selectedFrame:{backgroundColor:"#777",color:"white"},splitter:{width:"100%",height:"calc(100% - 36px)",overflow:"hidden",fontSize:12},toolbarScopes:{width:24,display:"inline-block",height:"100%",background:"dark"===e.palette.mode?"#222":"#EEE",verticalAlign:"top"},scopesAfterToolbar:{width:"calc(100% - 24px)",display:"inline-block",height:"100%",verticalAlign:"top"},scopeNameName:{fontWeight:"bold",display:"inline-block",verticalAlign:"top"},scopeNameEqual:{display:"inline-block",color:"dark"===e.palette.mode?"#EEE":"#222",verticalAlign:"top"},scopeNameValue:{verticalAlign:"top",display:"inline-block",color:"#3b709f",whiteSpace:"nowrap"},scopeButtonDel:{padding:0,float:"right"},valueNull:{color:"#a44a24"},valueUndefined:{color:"#a44a24"},valueString:{color:"#1e8816"},valueNumber:{color:"#163c88"},valueBoolean:{color:"#a44a24"},valueObject:{color:"#721b70"},valueNone:{color:"#8a8a8a"},valueFunc:{color:"#ac4343"}}}))(Js),Hs=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;(0,u.Z)(this,n),(a=t.call(this,e)).fromInstance=function(e,t){try{var n=JSON.parse(t.val);if("subscribed"===n.cmd)a.props.socket.sendTo(a.state.instance,"debug",a.props.debugInstance||{scriptName:a.props.src});else if("readyToDebug"===n.cmd){var s;a.mainScriptId=n.scriptId,a.scripts[n.scriptId]=n.script,n.script.startsWith("(async () => {debugger;\n")?a.scripts[n.scriptId]="(async () => {\n".concat(n.script.substring(24)):n.script.startsWith("debugger;")&&(a.scripts[n.scriptId]=n.script.substring(9));var o=JSON.parse(JSON.stringify(a.state.tabs));o[n.scriptId]=a.props.debugInstance?n.url:a.props.src.replace("script.js.","");var i="".concat(Date.now(),".").concat(1e4*Math.random());(null===(s=n.context)||void 0===s?void 0:s.callFrames)&&n.context.callFrames.forEach((function(e,t){return e.id=i+t})),a.setState({starting:!1,finished:!1,selected:a.mainScriptId,script:a.scripts[n.scriptId],tabs:o,currentFrame:0,started:!0,paused:!0,location:a.getLocation(n.context),context:n.context},(function(){return a.reinitBreakpoints((function(){a.readCurrentScope(),a.readExpressions()}))}))}else if("paused"===n.cmd){var r,l,u="".concat(Date.now(),".").concat(1e4*Math.random());(null===(r=n.context)||void 0===r?void 0:r.callFrames)&&n.context.callFrames.forEach((function(e,t){return e.id=u+t}));var d=a.getLocation(n.context),p=JSON.parse(JSON.stringify(a.state.tabs)),h=n.context.callFrames[0].url.split("iobroker.javascript");p[d.scriptId]=(h[1]||h[0]).replace("script.js.","");var g={tabs:p,paused:!0,location:d,currentFrame:0,context:n.context,scope:{id:(null===(l=n.context)||void 0===l?void 0:l.callFrames)&&n.context.callFrames[0]&&n.context.callFrames[0].id||0}};g.script=void 0===a.scripts[d.scriptId]?k.I18n.t("loading..."):a.scripts[d.scriptId],g.selected=d.scriptId,a.setState(g,(function(){a.readCurrentScope(),a.readExpressions(),a.scripts[d.scriptId]||a.sendToInstance({cmd:"source",scriptId:d.scriptId})}))}else if("script"===n.cmd)a.scripts[n.scriptId]=n.text,a.state.selected===n.scriptId&&a.setState({script:a.scripts[n.scriptId]});else if("resumed"===n.cmd)a.setState({paused:!1});else if("log"===n.cmd)if("console"===a.state.toolsTab){a.console=null;var m=(0,c.Z)(a.state.console);m.push({text:n.text,severity:n.severity,ts:n.ts}),a.setState({console:m})}else"error"===n.severity?a.setState({logErrors:a.state.logErrors+1}):"warn"===n.severity?a.setState({logWarnings:a.state.logWarnings+1}):a.setState({logs:a.state.logs+1}),a.console=a.console||(0,c.Z)(a.state.console),a.console.push({text:n.text,severity:n.severity,ts:n.ts});else if("error"===n.cmd)a.setState({error:n.error});else if("finished"===n.cmd||"debugStopped"===n.cmd)a.setState({finished:!0,starting:!1,started:!0});else if("sb"===n.cmd){var f=JSON.parse(JSON.stringify(a.state.breakpoints)),v=!1;n.breakpoints.filter((function(e){return e})).forEach((function(e){var t=f.find((function(t){return t.location.scriptId===e.location.scriptId&&t.location.lineNumber===e.location.lineNumber}));t||(v=!0,f.push(e))})),v&&window.localStorage.setItem("javascript.tools.bp."+a.props.src,JSON.stringify(f)),v&&a.setState({breakpoints:f})}else if("cb"===n.cmd){var y=JSON.parse(JSON.stringify(a.state.breakpoints)),b=!1;n.breakpoints.filter((function(e){return void 0!==e&&null!==e})).forEach((function(e){var t=y.find((function(t){return t.id===e}));if(t){var n=y.indexOf(t);y.splice(n,1),b=!0}})),b&&window.localStorage.setItem("javascript.tools.bp."+a.props.src,JSON.stringify(y)),b&&a.setState({breakpoints:y})}else if("scope"===n.cmd){var S=n.scopes.find((function(e){return"local"===e.type}))||null,x=n.scopes.find((function(e){return"closure"===e.type}))||null;console.log(JSON.stringify(x)),a.setState({scopes:{local:S,closure:x,id:"".concat(a.state.scope.id,"_").concat(a.state.currentFrame)}})}else if("setValue"===n.cmd){var w,C=JSON.parse(JSON.stringify(a.state.scopes));(w=0===n.scopeNumber?C.local&&C.local.properties&&C.local.properties.result&&C.local.properties.result.find((function(e){return e.name===n.variableName})):C.closure&&C.closure.properties&&C.closure.properties.result&&C.closure.properties.result&&C.closure.properties.result.find((function(e){return e.name===n.variableName})))&&(w.value.value=n.newValue.value,a.setState({scopes:C}))}else if("expressions"===n.cmd){var I=JSON.parse(JSON.stringify(a.state.expressions)),j=!1;n.expressions.forEach((function(e){var t=I.find((function(t){return t.name===e.name}));t&&(j=!0,t.value=e.result)})),j&&a.setState({expressions:I}),console.log("expressions: "+JSON.stringify(n))}else if("getPossibleBreakpoints"===n.cmd){var T,A,D,N;1===(null===(T=n.breakpoints)||void 0===T||null===(A=T.locations)||void 0===A?void 0:A.length)?a.sendToInstance({breakpoints:n.breakpoints.locations,cmd:"sb"}):null!==(D=n.breakpoints)&&void 0!==D&&null!==(N=D.locations)&&void 0!==N&&N.length?a.setState({queryBreakpoints:n.breakpoints.locations}):window.alert("cannot set")}else console.error("Unknown command: ".concat(JSON.stringify(n)))}catch(E){}};var s=window.localStorage.getItem("javascript.tools.bp."+a.props.src);try{s=s?JSON.parse(s):[]}catch(i){s=[]}var o=window.localStorage.getItem("javascript.tools.exps."+a.props.src);try{o=(o=o?JSON.parse(o):[]).map((function(e){return{name:e}}))}catch(i){o=[]}return a.toolSize=window.localStorage&&parseFloat(window.localStorage.getItem("App.toolSize"))||150,a.state={starting:!0,selected:null,tabs:{},script:"",breakpoints:s,expressions:o,running:!1,error:"",started:!1,paused:!0,location:null,toolsTab:window.localStorage.getItem("javascript.tools.tab")||"console",stopOnException:"true"===window.localStorage.getItem("javascript.tools.stopOnException"),console:[],finished:!1,currentFrame:0,scopes:{},queryBreakpoints:null,logErrors:0,logWarnings:0,logs:0},a.scripts={},a.mainScriptId=null,a}return(0,d.Z)(n,[{key:"componentDidMount",value:function(){var e=this;new Promise((function(t){e.props.debugInstance?t(e.props.debugInstance.instance):e.props.socket.getObject(e.props.src).then((function(e){var n,a;return t(null===e||void 0===e||null===(n=e.common)||void 0===n||null===(a=n.engine)||void 0===a?void 0:a.replace("system.adapter.",""))}))})).then((function(t){return e.setState({instance:t},(function(){e.state.instance?(e.props.socket.setState("".concat(e.state.instance,".debug.from"),{val:'{"cmd": "subscribed"}',ack:!0}),setTimeout((function(){return e.props.socket.subscribeState("".concat(e.state.instance,".debug.from"),e.fromInstance)}),200)):e.setState({error:"Unknown instance"})}))}))}},{key:"componentWillUnmount",value:function(){this.state.instance&&(this.props.socket.unsubscribeState("".concat(this.state.instance,".debug.from"),this.fromInstance),this.props.socket.sendTo(this.state.instance,"debugStop"))}},{key:"sendToInstance",value:function(e){this.props.socket.setState("".concat(this.state.instance,".debug.to"),{val:JSON.stringify(e),ack:!1})}},{key:"reinitBreakpoints",value:function(e){var t=this;if(this.state.breakpoints.length){var n=JSON.parse(JSON.stringify(this.state.breakpoints));n=n.map((function(e){return e.location})),this.setState({breakpoints:[]},(function(){t.sendToInstance({breakpoints:n,cmd:"sb"}),t.state.stopOnException&&t.sendToInstance({cmd:"stopOnException",state:!0}),e&&e()}))}else this.state.stopOnException?(this.sendToInstance({cmd:"stopOnException",state:!0}),e&&e()):e&&e()}},{key:"getLocation",value:function(e){if(e.callFrames)return e.callFrames[0].location}},{key:"readCurrentScope",value:function(){var e,t=(null===(e=this.state.context)||void 0===e?void 0:e.callFrames)&&this.state.context.callFrames[this.state.currentFrame];if(t){var n=t.scopeChain.filter((function(e){return"global"!==e.type}));n.length?this.sendToInstance({cmd:"scope",scopes:n}):(this.state.scopes.global||this.state.scopes.local||this.state.scopes.closure)&&this.setState({scopes:{}})}}},{key:"readExpressions",value:function(e){var t;this.state.expressions.length&&null!==(t=this.state.context)&&void 0!==t&&t.callFrames&&this.state.context.callFrames[this.state.currentFrame]&&(void 0!==e?this.sendToInstance({cmd:"expressions",expressions:[this.state.expressions[e]],callFrameId:this.state.context.callFrames[this.state.currentFrame].callFrameId}):this.sendToInstance({cmd:"expressions",expressions:this.state.expressions,callFrameId:this.state.context.callFrames[this.state.currentFrame].callFrameId}))}},{key:"getTextAtLocation",value:function(e){var t=this.state.script.split(/\r\n|\n/)[e.lineNumber],n="";return e.columnNumber>=10?(t=t.substring(e.columnNumber-10,e.columnNumber+20),n="".padStart(10," ")+"\u2191"):(t=t.substring(0,30-e.columnNumber),n="".padStart(e.columnNumber," ")+"\u2191"),[(0,se.jsx)("div",{className:this.props.classes.monospace,children:t},"line"),(0,se.jsx)("div",{className:k.Utils.clsx(this.props.classes.monospace,this.props.classes.arrow),children:n},"arrow")]}},{key:"renderQueryBreakpoints",value:function(){var e=this;return this.state.queryBreakpoints?(0,se.jsxs)(Q.Z,{onClose:function(){return e.setState({queryBreakpoints:null})},"aria-labelledby":"bp-dialog-title",open:!0,children:[(0,se.jsx)(q.Z,{id:"bp-dialog-title",children:k.I18n.t("Select breakpoint")}),(0,se.jsx)(j.Z,{children:this.state.queryBreakpoints.map((function(t,n){return(0,se.jsx)(Fs.Z,{classes:{root:e.props.classes.bpListItem},dense:!0,onClick:function(){e.sendToInstance({breakpoints:[t],cmd:"sb"}),e.setState({queryBreakpoints:null})},children:(0,se.jsx)(N.Z,{classes:{primary:e.props.classes.bpListPrimary,secondary:e.props.classes.bpListSecondary},primary:e.getTextAtLocation(t)})},n)}))})]}):null}},{key:"renderError",value:function(){var e=this;return this.state.error?(0,se.jsx)(be,{onClose:function(){return e.setState({error:""})},text:this.state.error},"dialogError"):null}},{key:"closeTab",value:function(e,t){t&&t.stopPropagation();var n=JSON.parse(JSON.stringify(this.state.tabs));delete n[e];var a={tabs:n,script:this.scripts[this.mainScriptId],selected:this.mainScriptId};this.state.location&&this.state.location.scriptId!==this.mainScriptId&&(a.location=null),this.setState(a)}},{key:"renderTabs",value:function(){var e=this,t=!this.state.tabs||!this.state.started;return(0,se.jsx)(Ge.Z,{component:"div",indicatorColor:"primary",style:{position:"relative",width:"calc(100% - 300px)",display:"inline-block"},value:this.state.selected,onChange:function(t,n){e.scripts[n]?e.setState({selected:n,script:e.scripts[n]}):e.setState({selected:n,script:"loading..."},(function(){return e.sendToInstance({cmd:"source",scriptId:n})}))},scrollButtons:"auto",children:Object.keys(this.state.tabs||[]).map((function(n){var a=n,s=e.state.tabs[n]||"";return e.state.tabs[n]&&(a=e.state.tabs[n].split("/").pop()),a=[(0,se.jsx)("div",{className:k.Utils.clsx(e.props.classes.tabText),children:a},"text"),n!==e.mainScriptId&&(0,se.jsx)("span",{className:e.props.classes.closeButton,children:(0,se.jsx)(S.FU5,{onClick:function(t){return e.closeTab(n,t)},fontSize:"small"},"close")},"icon")],(0,se.jsx)(He.Z,{disabled:t,classes:{root:e.props.classes.tabFile},label:a,title:s,value:n},n)}))})}},{key:"onResume",value:function(){this.sendToInstance({cmd:"cont"})}},{key:"onPause",value:function(){this.sendToInstance({cmd:"pause"})}},{key:"onNext",value:function(){this.sendToInstance({cmd:"next"})}},{key:"onStepIn",value:function(){this.sendToInstance({cmd:"step"})}},{key:"onStepOut",value:function(){this.sendToInstance({cmd:"out"})}},{key:"onRestart",value:function(){var e=this;this.setState({started:!1,starting:!0},(function(){return e.props.socket.sendTo(e.state.instance,"debug",e.props.debugInstance||{scriptName:e.props.src})}))}},{key:"onToggleException",value:function(){var e=this,t=!this.state.stopOnException;window.localStorage.setItem("javascript.tools.stopOnException",t?"true":"false"),this.setState({stopOnException:t},(function(){return e.sendToInstance({cmd:"stopOnException",state:t})}))}},{key:"renderToolbar",value:function(){var e=this,t=!this.state.started;return(0,se.jsxs)(Je.Z,{variant:"dense",className:this.props.classes.toolbar,children:[(0,se.jsx)(E.Z,{className:this.props.classes.buttonRestart,disabled:t,onClick:function(){return e.onRestart()},title:k.I18n.t("Restart"),size:"medium",children:(0,se.jsx)(S.la_,{})}),!this.state.finished&&this.state.paused?(0,se.jsx)(E.Z,{className:this.props.classes.buttonRun,disabled:t,onClick:function(){return e.onResume()},title:k.I18n.t("Resume execution"),size:"medium",children:(0,se.jsx)(S.Nhx,{})}):!this.state.finished&&(0,se.jsx)(E.Z,{disabled:t,className:this.props.classes.buttonPause,onClick:function(){return e.onPause()},title:k.I18n.t("Pause execution"),size:"medium",children:(0,se.jsx)(S.hPq,{})}),!this.state.finished&&(0,se.jsx)(E.Z,{className:this.props.classes.buttonNext,disabled:t||!this.state.paused,onClick:function(){return e.onNext()},title:k.I18n.t("Go to next line"),size:"medium",children:(0,se.jsx)(S.hdK,{})}),!this.state.finished&&(0,se.jsx)(E.Z,{className:this.props.classes.buttonStep,disabled:t||!this.state.paused,onClick:function(){return e.onStepIn()},title:k.I18n.t("Step into function"),size:"medium",children:(0,se.jsx)(S.t9$,{})}),!this.state.finished&&(0,se.jsx)(E.Z,{className:this.props.classes.buttonOut,disabled:t||!this.state.paused,onClick:function(){return e.onStepOut()},title:k.I18n.t("Step out from function"),size:"medium",children:(0,se.jsx)(S.InZ,{})}),!this.state.finished&&(0,se.jsx)(E.Z,{className:this.props.classes.buttonException,color:this.state.stopOnException?"primary":"default",disabled:t||!this.state.paused,onClick:function(){return e.onToggleException()},title:k.I18n.t("Stop on exception"),size:"medium",children:(0,se.jsx)(S.YTL,{})}),this.renderTabs()]},"toolbar1")}},{key:"getPossibleBreakpoints",value:function(e){var t=(0,dt.Z)((0,dt.Z)({},e),{},{columnNumber:1e3});this.sendToInstance({cmd:"getPossibleBreakpoints",start:e,end:t})}},{key:"toggleBreakpoint",value:function(e){var t=this,n=this.state.breakpoints.find((function(n){return n.location.scriptId===t.state.selected&&n.location.lineNumber===e}));if(n){var a=JSON.parse(JSON.stringify(this.state.breakpoints));this.setState({breakpoints:a},(function(){return t.sendToInstance({breakpoints:[n.id],cmd:"cb"})}))}else n={scriptId:this.state.selected,lineNumber:e,columnNumber:0},this.getPossibleBreakpoints(n)}},{key:"renderCode",value:function(){var e=this;if(this.state.script&&this.state.started){var t=this.state.breakpoints.filter((function(t){return t.location.scriptId===e.state.selected}));return(0,se.jsx)(Ps,{runningInstances:this.props.runningInstances,socket:this.props.socket,adapterName:this.props.adapterName,scriptName:this.state.tabs[this.state.selected],sourceId:this.state.selected,script:this.state.script,paused:this.state.paused,breakpoints:t,location:this.state.location,themeType:this.props.themeType,themeName:this.props.themeName,onToggleBreakpoint:function(t){return e.toggleBreakpoint(t)}})}}},{key:"renderFrames",value:function(){var e,t=this;return this.state.paused?(0,se.jsx)(Gs,{currentScriptId:this.state.selected,scopes:this.state.scopes,expressions:this.state.expressions,themeType:this.props.themeType,callFrames:null===(e=this.state.context)||void 0===e?void 0:e.callFrames,currentFrame:this.state.currentFrame,onChangeCurrentFrame:function(e){t.setState({currentFrame:e,scopes:{}},(function(){t.readCurrentScope(),t.readExpressions()}))},onWriteScopeValue:function(e){t.sendToInstance({cmd:"setValue",variableName:e.variableName,scopeNumber:e.scopeNumber,newValue:e.newValue,callFrameId:e.callFrameId})},onExpressionDelete:function(e){var n=JSON.parse(JSON.stringify(t.state.expressions));n.splice(e,1),t.setState({expressions:n}),window.localStorage.setItem("javascript.tools.exps."+t.props.src,JSON.stringify(n.map((function(e){return e.name}))))},onExpressionAdd:function(e){var n=JSON.parse(JSON.stringify(t.state.expressions));n.push({name:"",value:{value:""}}),t.setState({expressions:n},(function(){return e&&e(n.length-1,t.state.expressions[n.length-1])}))},onExpressionNameUpdate:function(e,n,a){var s=JSON.parse(JSON.stringify(t.state.expressions));if(n){if(s.find((function(e){return e.name===n})))return a&&a(!1);s[e].name=n}else s.splice(e,1);t.setState({expressions:s},(function(){n&&t.readExpressions(e),a&&a()})),window.localStorage.setItem("javascript.tools.exps."+t.props.src,JSON.stringify(s.map((function(e){return e.name}))))}}):null}},{key:"renderConsole",value:function(){var e=this;return(0,se.jsx)(Us,{theme:this.props.theme,console:this.state.console,onClearAllLogs:function(){return e.setState({console:[],logErrors:0,logWarning:0,logs:0})}})}},{key:"renderTools",value:function(){var e,t=this,n=!this.state.tabs||!this.state.started;return e=this.state.logErrors?(0,se.jsx)(qe.Z,{badgeContent:this.state.logErrors,color:"error",children:(0,se.jsx)("span",{children:k.I18n.t("Console")})}):this.state.logWarnings?(0,se.jsx)(qe.Z,{badgeContent:this.state.logWarnings,color:"secondary",children:(0,se.jsx)("span",{children:k.I18n.t("Console")})}):this.state.logs?(0,se.jsx)(qe.Z,{badgeContent:this.state.logs,color:"default",children:(0,se.jsx)("span",{children:k.I18n.t("Console")})}):k.I18n.t("Console"),(0,se.jsxs)("div",{style:{width:"100%",height:"100%",overflow:"hidden"},children:[(0,se.jsxs)(Ge.Z,{classes:{root:this.props.classes.tabsRoot},component:"div",indicatorColor:"primary",style:{position:"relative",width:"100%"},value:this.state.toolsTab,onChange:function(e,n){var a={toolsTab:n};t.console&&"console"===n&&(a.console=t.console,t.console=null,a.logs=0,a.logWarnings=0,a.logErrors=0),window.localStorage.setItem("javascript.tools.tab",n),t.setState(a)},scrollButtons:"auto",children:[(0,se.jsx)(He.Z,{classes:{root:this.props.classes.tabRoot},disabled:n,label:k.I18n.t("Stack"),value:"stack"}),(0,se.jsx)(He.Z,{classes:{root:this.props.classes.tabRoot},disabled:n,label:e,value:"console"})]}),(0,se.jsxs)("div",{style:{width:"100%",height:"calc(100% - 36px)",overflow:"hidden"},children:["stack"!==this.state.toolsTab||n?null:this.renderFrames(),"console"!==this.state.toolsTab||n?null:this.renderConsole()]})]})}},{key:"render",value:function(){var e=this;return(0,se.jsxs)("div",{style:this.props.style,className:k.Utils.clsx(this.props.classes.root,this.props.className),children:[this.state.starting?(0,se.jsx)(Qe.Z,{}):null,this.renderToolbar(),(0,se.jsxs)(f(),{customClassName:this.props.classes.splitter,primaryMinSize:100,vertical:!0,secondaryInitialSize:this.toolSize,onSecondaryPaneSizeChange:function(t){return e.toolSize=parseFloat(t)},onDragEnd:function(){return window.localStorage.setItem("App.toolSize",e.toolSize.toString())},children:[(0,se.jsxs)("div",{style:{width:"100%",height:"100%",overflow:"hidden"},children:[this.renderCode(),this.renderQueryBreakpoints()]}),(0,se.jsx)("div",{style:{width:"100%",height:"100%",overflow:"hidden"},children:this.renderTools()})]}),this.renderError()]},"debugger")}}]),n}(s().Component),qs=(0,g.Z)((function(e){return{root:{width:"100%",height:"calc(100% - ".concat(e.toolbar.height+38+5,"px)"),overflow:"hidden",position:"relative"},toolbar:{minHeight:38,boxShadow:"0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)"},buttonRun:{color:"green"},buttonPause:{color:"orange"},buttonRestart:{color:"darkgreen"},buttonStop:{color:"red"},buttonNext:{color:"blue"},buttonStep:{color:"blue"},buttonOut:{color:"blue"},buttonException:{},tabFile:{textTransform:"inherit",color:"dark"===e.palette.mode?"#DDD":"inherit"},tabText:{maxWidth:130,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",display:"inline-block",verticalAlign:"middle"},closeButton:{position:"absolute",top:8,right:0,zIndex:10,padding:8,cursor:"pointer"},tabsRoot:{minHeight:24,background:"dark"===e.palette.mode?"#333":"#e6e6e6",color:"dark"===e.palette.mode?"white":"inherit"},tabRoot:{minHeight:24},bpListItem:{borderTop:"1px dashed #bfbfbf44"},monospace:{fontFamily:"Courier New, monospace",whiteSpace:"pre",fontSize:12},arrow:{color:"#fffa4f"},splitter:{height:"calc(100% - 52px)","& .layout-pane":{overflow:"hidden",height:"100%"}}}}))(Hs),Ys={Blockly:V,"Javascript/js":W,Rules:G,def:W,"TypeScript/ts":J},Ks="#02a102",Qs="#70aae9",Xs=_.Z[400],$s=U.Z[400],eo=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;(0,u.Z)(this,n),(a=t.call(this,e)).onInstanceChanged=function(e,t){if(e)if(!t&&window.main.instances.includes[e]){delete window.main.objects[e];var n=window.main.instances.indexOf(e);window.main.instances.splice(n,1)}else t&&"instance"===t.type&&(window.main.instances.includes(e)||(window.main.instances.push(e),window.main.instances.sort()),window.main.objects[e]=t)},a.onBrowserClose=function(e){var t=Object.keys(a.scripts).find((function(e){return JSON.stringify(a.scripts[e])!==JSON.stringify(a.props.objects[e].common)}));if(t){console.log("Script "+JSON.stringify(a.scripts[t]));var n=k.I18n.t("Configuration not saved.");return(e=e||window.event)&&(e.returnValue=n),n}},a.setTourStep=function(e){return a.setState({tourStep:e})};var o=window.localStorage.getItem("Editor.selected")||"",i=window.localStorage.getItem("Editor.editing")||"[]";try{i=JSON.parse(i)}catch(r){i=[]}return o&&!i.includes(o)&&i.push(o),a.tabsRef=s().createRef(),a.state={selected:o,editing:i,changed:{},blockly:null,rules:null,debugEnabled:!1,verboseEnabled:!1,showCompiledCode:!1,showSelectId:!1,showCron:!1,showScript:!1,showAstro:!1,astroEvents:null,insert:"",searchText:"",themeType:a.props.themeType,visible:e.visible,cmdToBlockly:"",cmdToRules:"",menuOpened:!!a.props.menuOpened,menuTabsOpened:!1,menuTabsAnchorEl:null,runningInstances:a.props.runningInstances||{},showDebugMenu:!1,toast:"",instancesLoaded:!1,isTourOpen:"true"!==window.localStorage.getItem("tour"),tourStep:Jn,showAdapterDebug:!1},a.setChangedInAdmin(),a.selectId={initValue:null,callback:null},a.cron={initValue:null,callback:null},a.scriptDialog={initValue:null,callback:null,args:null,isReturn:!1},window.systemLang=k.I18n.getLanguage(),window.main={objects:{},getObject:function(e,t){return a.props.socket.getObject(e).then((function(e){return t&&t(null,e)})).catch((function(e){return t&&t(e)}))},instances:[],selectIdDialog:function(e,t,n){"function"===typeof t&&(n=t,t=null),a.selectId.callback=n,a.selectId.initValue=e,a.selectId.type=t,a.setState({showSelectId:!0})},cronDialog:function(e,t){a.cron.callback=t,a.cron.initValue=e,a.setState({showCron:!0})},showScriptDialog:function(e,t,n,s){a.scriptDialog.callback=s,a.scriptDialog.initValue=e,a.scriptDialog.args=t,a.scriptDialog.isReturn=n||!1,a.setState({showScript:!0})}},a.objects=e.objects,a.scripts={},!a.state.selected&&a.state.editing.length&&(a.state.selected=a.state.editing[0]),a.getAllAdapterInstances().then((function(){a.props.onSelectedChange&&a.state.selected&&setTimeout((function(){return a.props.onSelectedChange(a.state.selected,a.state.editing)}),100)})),a}return(0,d.Z)(n,[{key:"getAllAdapterInstances",value:function(){var e=this;return this.props.socket.getAdapterInstances(!0).then((function(t){var n={},a=t.map((function(e){return n[e._id]=e,e._id}));window.main.objects=n,window.main.instances=a,e.setState({instancesLoaded:!0})}))}},{key:"setChangedInAdmin",value:function(){var e=this,t=Object.keys(this.state.changed).find((function(t){return e.state.changed[t]}));"undefined"!==typeof window.parent&&window.parent&&(window.parent.configNotSaved=!!t)}},{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.onBrowserClose,!1),this.props.socket.subscribeObject("system.adapter.*",this.onInstanceChanged)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.onBrowserClose),this.props.socket.unsubscribeObject("system.adapter.*",this.onInstanceChanged)}},{key:"removeNonExistingScripts",value:function(e,t){e=e||this.props,t=t||{};var n=!1;if(this.state.editing&&this.state.editing.find((function(t){return!e.objects[t]}))){for(var a=JSON.parse(JSON.stringify(this.state.editing)),s=a.length-1;s>=0;s--)this.objects[a[s]]||(n=!0,a.splice(s,1));n&&(t.editing=a),this.state.selected&&!this.objects[this.state.selected]&&(n=!0,t.selected=a[0]||"",this.scripts[t.selected]&&(this.state.blockly!==("Blockly"===this.scripts[t.selected].engineType)&&(t.blockly="Blockly"===this.scripts[t.selected].engineType,n=!0),this.state.rules!==("Rules"===this.scripts[t.selected].engineType)&&(t.rules="Rules"===this.scripts[t.selected].engineType,n=!0),this.state.verboseEnabled!==this.scripts[t.selected].verbose&&(t.verboseEnabled=this.scripts[t.selected].verbose,n=!0),this.state.debugEnabled!==this.scripts[t.selected].debug&&(t.debugEnabled=this.scripts[t.selected].debug,n=!0)))}return n}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this,n={},a=!1;if(JSON.stringify(e.runningInstances)!==JSON.stringify(this.state.runningInstances)&&(a=!0,n.runningInstances=e.runningInstances),this.state.menuOpened!==e.menuOpened&&(n.menuOpened=e.menuOpened,a=!0),this.state.themeType!==e.themeType&&(n.themeType=e.themeType,a=!0),this.removeNonExistingScripts(e,n)&&(a=!0),this.state.searchText!==e.searchText&&(n.searchText=e.searchText,a=!0),this.objects!==e.objects){this.objects=e.objects,window.main.objects=e.objects,Object.keys(this.scripts).forEach((function(e){var n=t.scripts[e].source;t.scripts[e]=JSON.parse(JSON.stringify(t.objects[e].common)),t.scripts[e].source=n})),this.state.selected&&this.objects[this.state.selected]&&(this.scripts[this.state.selected]=this.scripts[this.state.selected]||JSON.parse(JSON.stringify(this.objects[this.state.selected].common)),this.state.blockly!==("Blockly"===this.scripts[this.state.selected].engineType)&&(n.blockly="Blockly"===this.scripts[this.state.selected].engineType,a=!0),this.state.rules!==("Rules"===this.scripts[this.state.selected].engineType)&&(n.rules="Rules"===this.scripts[this.state.selected].engineType,a=!0),this.state.verboseEnabled!==this.scripts[this.state.selected].verbose&&(n.verboseEnabled=this.scripts[this.state.selected].verbose,a=!0),this.state.debugEnabled!==this.scripts[this.state.selected].debug&&(n.debugEnabled=this.scripts[this.state.selected].debug,a=!0));for(var s=JSON.parse(JSON.stringify(this.state.editing)),o=s.length-1;o>=0;o--)this.objects[s[o]]||(a=!0,s.splice(o,1),void 0!==this.state.changed[s[o]]&&(n.changed=n.changed||JSON.parse(JSON.stringify(this.state.changed)),delete n.changed[s[o]]));this.state.selected&&!this.objects[this.state.selected]&&(n.selected=s[0]||""),a&&(n.editing=s)}else for(var i in this.scripts)if(this.scripts.hasOwnProperty(i))if(this.objects[i]&&this.objects[i].common){var r=this.scripts[i].source,l=JSON.parse(JSON.stringify(this.scripts[i]));l.source=this.objects[i].common.source,JSON.stringify(l)!==JSON.stringify(this.objects[i].common)&&(this.scripts[i]=JSON.parse(JSON.stringify(this.objects[i].common)),this.scripts[i].source=r),r!==this.objects[i].common.source?this.state.changed[i]?this.objects[i].from&&this.objects[i].from.startsWith("system.adapter.javascript.")&&(this.objects[i].from="system.adapter.admin.0",this.setState({toast:k.I18n.t("Script %s was modified on disk.",i.split(".").pop())})):this.scripts[i].source=this.objects[i].common.source:this.state.changed[i]&&(n.changed=n.changed||JSON.parse(JSON.stringify(this.state.changed)),n.changed[i]=!1,a=!0)}else if(delete this.scripts[i],this.state.selected===i){if(-1!==this.state.editing.indexOf(i)){var c=JSON.parse(JSON.stringify(this.state.editing)),u=c.indexOf(i);-1!==u&&(c.splice(u,1),n.editing=c,a=!0)}n.selected=this.state.editing[0]||"",a=!0}if(this.state.selected!==e.selected&&e.selected){e.selected&&(this.scripts[e.selected]=this.scripts[e.selected]||JSON.parse(JSON.stringify(this.props.objects[e.selected].common)));var d=this.props.objects[e.selected]&&this.props.objects[e.selected].common,p=d&&JSON.stringify(this.scripts[e.selected])!==JSON.stringify(d),h=JSON.parse(JSON.stringify(this.state.editing));e.selected&&-1===h.indexOf(e.selected)&&(h.push(e.selected),this.props.onSelectedChange(e.selected,h),window.localStorage&&window.localStorage.setItem("Editor.editing",JSON.stringify(h))),a=!0,n.changed=n.changed||JSON.parse(JSON.stringify(this.state.changed)),n.changed[e.selected]=p,n.editing=h,n.selected=e.selected,n.blockly="Blockly"===this.scripts[e.selected].engineType,n.rules="Rules"===this.scripts[e.selected].engineType,n.verboseEnabled=this.scripts[e.selected].verbose,n.debugEnabled=this.scripts[e.selected].debug,n.showCompiledCode=!1}this.state.visible!==e.visible&&(a=!0,n.visible=e.visible),a&&this.setState(n,(function(){return t.setChangedInAdmin()}))}},{key:"onRestart",value:function(){this.props.onRestart&&this.props.onRestart(this.state.selected)}},{key:"onStartStop",value:function(){var e=JSON.parse(JSON.stringify(this.scripts[this.state.selected]));e.enabled=!e.enabled,this.props.onChange&&this.props.onChange(this.state.selected,e)}},{key:"onSave",value:function(){var e=this;if(this.state.isTourOpen&&this.state.tourStep===$n&&(this.setState({isTourOpen:!1}),window.localStorage.setItem("tour","true")),this.state.changed[this.state.selected]){var t=JSON.parse(JSON.stringify(this.state.changed));t[this.state.selected]=!1,this.setState({changed:t},(function(){e.setChangedInAdmin(),e.props.onChange&&e.props.onChange(e.state.selected,e.scripts[e.state.selected])}))}}},{key:"onSaveAll",value:function(){var e=this,t=JSON.parse(JSON.stringify(this.state.changed));Object.keys(t).forEach((function(n){t[n]&&(t[n]=!1,e.props.onChange&&e.props.onChange(n,e.scripts[n]))})),this.setState({changed:t},(function(){return e.setChangedInAdmin()}))}},{key:"onCancel",value:function(){var e=this;this.scripts[this.state.selected]=JSON.parse(JSON.stringify(this.props.objects[this.state.selected].common));var t=JSON.parse(JSON.stringify(this.state.changed));t[this.state.selected]=!1,this.setState({changed:t},(function(){return e.setChangedInAdmin()}))}},{key:"onRegisterSelect",value:function(e){this.getSelect=e}},{key:"onConvertBlockly2JS",value:function(){var e=this;this.showConfirmDialog(k.I18n.t("It will not be possible to revert this operation."),(function(t){if(t){e.scripts[e.state.selected].engineType="Javascript/js";var n=e.scripts[e.state.selected].source.split("\n");n.pop(),e.scripts[e.state.selected].source=n.join("\n");var a=e.state.selected,s=JSON.parse(JSON.stringify(e.state.changed));s[e.state.selected]=!0,e.setState({changed:s,blockly:!1,selected:""},(function(){e.setChangedInAdmin(),setTimeout((function(){return e.setState({selected:a})}),100)}))}}))}},{key:"onChange",value:function(e){var t=this;void 0!==(e=e||{}).script&&(this.scripts[this.state.selected].source=e.script),void 0!==e.debug&&(this.scripts[this.state.selected].debug=e.debug),void 0!==e.verbose&&(this.scripts[this.state.selected].verbose=e.verbose);var n=JSON.stringify(this.scripts[this.state.selected])!==JSON.stringify(this.props.objects[this.state.selected].common);if(n!==(this.state.changed[this.state.selected]||!1)){var a=JSON.parse(JSON.stringify(this.state.changed));a[this.state.selected]=n,this.objects[this.state.selected].from="system.adapter.admin.0",this.setState({changed:a},(function(){return t.setChangedInAdmin()}))}}},{key:"onTabChange",value:function(e,t){if(!this.props.debugMode){window.localStorage&&window.localStorage.setItem("Editor.selected",t);var n=this.scripts[t]||this.props.objects[t]&&this.props.objects[t].common;this.setState({selected:t,rules:"Rules"===n.engineType,blockly:"Blockly"===n.engineType,showCompiledCode:!1,verboseEnabled:n.verbose,debugEnabled:n.debug}),this.props.onSelectedChange&&this.props.onSelectedChange(t,this.state.editing)}}},{key:"isScriptChanged",value:function(e){return this.scripts[e]&&this.props.objects[e]&&JSON.stringify(this.scripts[e])!==JSON.stringify(this.props.objects[e].common)}},{key:"onTabClose",value:function(e,t){var n=this;t&&t.stopPropagation();var a=this.state.editing.indexOf(e);if(this.state.editing.includes(e))if(this.isScriptChanged(e))this.showConfirmDialog(k.I18n.t("Discard changes for %s",this.props.objects[e].common.name),(function(t){t&&(delete n.scripts[e],n.onTabClose(e))}));else{var s=JSON.parse(JSON.stringify(this.state.editing));s.splice(a,1);var o={editing:s};if(e===this.state.selected?s.length?0===a||1===s.length?o.selected=s[0]:o.selected=s[a-1]:o.selected="":this.state.selected&&!s.length&&(o.selected=""),window.localStorage&&window.localStorage.setItem("Editor.editing",JSON.stringify(s)),void 0!==o.selected){o.changed=o.changed||JSON.parse(JSON.stringify(this.state.changed)),o.changed[o.selected]=this.isScriptChanged(o.selected);var i=o.selected&&(this.scripts[o.selected]||this.props.objects[o.selected]&&this.props.objects[o.selected].common);o.blockly=!!i&&"Blockly"===i.engineType,o.rules=!!i&&"Rules"===i.engineType,o.verboseEnabled=!!i&&i.verbose,o.debugEnabled=!!i&&i.debug,o.showCompiledCode=!1}this.setState(o,(function(){n.setChangedInAdmin(),void 0!==o.selected?(n.props.onSelectedChange&&n.props.onSelectedChange(o.selected,n.state.editing),window.localStorage&&window.localStorage.setItem("Editor.selected",o.selected)):n.props.onSelectedChange&&n.props.onSelectedChange(n.state.selected,n.state.editing)}))}}},{key:"showConfirmDialog",value:function(e,t){this.confirmCallback=t,this.setState({confirm:e})}},{key:"sendCommandToBlockly",value:function(e){var t=this;this.setState({cmdToBlockly:e},(function(){return setTimeout((function(){return t.setState({cmdToBlockly:""})}),200)}))}},{key:"sendCommandToRules",value:function(e){var t=this;this.setState({cmdToRules:e},(function(){return setTimeout((function(){return t.setState({cmdToRules:""})}),200)}))}},{key:"getScriptFullName",value:function(e){var t=e.split(".");t.shift(),t.shift();for(var a=[],s="script.js",o=0;o1?"calc(100% - 50px)":"100%",display:"inline-block"},textColor:"primary",variant:"scrollable",scrollButtons:"auto",children:[this.state.editing.map((function(t){if(e.props.objects[t]){var a=n.getText(e.props.objects[t].common.name)||"",s=e.getScriptFullName(t);a.length>18&&(a="".concat(a.substring(0,15),"..."));var o=e.props.objects[t].common&&e.scripts[t]&&e.props.objects[t].common.source!==e.scripts[t].source,i=[(0,se.jsx)("div",{className:k.Utils.clsx(e.props.classes.tabText,e.isScriptChanged(t)&&e.props.classes.tabChanged),children:a},"text"),o?(0,se.jsx)("span",{className:e.props.classes.tabChangedIcon,children:"\u25a3"},"changedSign"):null,!e.props.debugInstance&&(!e.props.debugMode||e.state.selected!==t)&&(0,se.jsx)("span",{className:e.props.classes.closeButton,children:(0,se.jsx)(S.FU5,{className:e.props.classes.closeButtonIcon,onClick:function(n){return e.onTabClose(t,n)},fontSize:"small"})},"close")];return(0,se.jsx)(He.Z,{disabled:e.props.debugInstance||e.state.selected!==t&&e.props.debugMode,wrapped:!0,component:"div",iconPosition:"start",icon:(0,se.jsx)("img",{alt:"",src:Ys[e.props.objects[t].common.engineType]||Ys.def,className:e.props.classes.tabIcon},"icon"),href:"#".concat(t),label:i,className:e.props.classes.tabButton,value:t,title:s,classes:{wrapper:e.props.classes.tabButtonWrapper}},t)}var r=[(0,se.jsx)("div",{className:k.Utils.clsx(e.props.classes.tabText,e.isScriptChanged(t)&&e.props.classes.tabChanged),children:t.split(".").pop()},"text"),(0,se.jsx)("span",{className:e.props.classes.closeButton,children:(0,se.jsx)(S.FU5,{className:e.props.classes.closeButtonIcon,onClick:function(n){return e.onTabClose(t,n)},fontSize:"small"})},"icon")];return(0,se.jsx)(He.Z,{wrapped:!0,component:"div",href:"#"+t,label:r,value:t,classes:{wrapper:e.props.classes.tabButtonWrapper}},t)})),this.props.debugInstance?(0,se.jsx)(He.Z,{disabled:!1,wrapped:!0,component:"div",href:"#".concat(this.props.debugInstance.adapter),label:this.props.debugInstance.adapter,className:this.props.classes.tabButton,value:this.props.debugInstance.adapter,title:this.props.debugInstance.adapter,classes:{wrapper:this.props.classes.tabButtonWrapper}},this.props.debugInstance.adapter):""]},"tabs1"),this.state.editing.length>1?(0,se.jsx)(E.Z,{href:"#","aria-label":"Close all but current",className:this.props.classes.tabMenuButton,title:k.I18n.t("Close all but current"),"aria-haspopup":"false",onClick:function(t){var n=[e.state.selected];Object.keys(e.scripts).forEach((function(t){return t!==e.state.selected&&JSON.stringify(e.scripts[t])!==JSON.stringify(e.props.objects[t].common)&&n.push(t)})),window.localStorage&&window.localStorage.setItem("Editor.editing",JSON.stringify(n)),e.setState({menuTabsOpened:!1,menuTabsAnchorEl:null,editing:n})},size:"medium",children:(0,se.jsx)(S.ULn,{})},"menuButton"):null]:(0,se.jsx)("div",{className:this.props.classes.toolbar,children:(0,se.jsxs)(H.Z,{color:"grey",disabled:!0,className:this.props.classes.hintButton,href:"",children:[(0,se.jsx)("span",{children:k.I18n.t("Click on this icon")},"select2"),(0,se.jsx)(S.jzb,{className:this.props.classes.hintIcon},"select3"),(0,se.jsx)("span",{children:k.I18n.t("for edit or create script")},"select4")]},"select1")},"tabs2")}},{key:"getDebugMenu",value:function(){var e=this;return this.state.showDebugMenu?(0,se.jsxs)(O.Z,{id:"menu-debug",anchorEl:this.state.menuDebugAnchorEl,open:this.state.showDebugMenu,onClose:function(){return e.setState({showDebugMenu:!1,menuDebugAnchorEl:null})},PaperProps:{style:{maxHeight:360}},children:[(0,se.jsxs)(M.Z,{title:k.I18n.t("debug_help"),onClick:function(t){t.stopPropagation(),t.preventDefault(),e.setState({showDebugMenu:!1,menuDebugAnchorEl:null,debugEnabled:!e.state.debugEnabled},(function(){return e.onChange({debug:e.state.debugEnabled})}))},children:[(0,se.jsx)(Ke.Z,{checked:this.state.debugEnabled}),(0,se.jsx)(S.qXL,{className:this.props.classes.menuIcon,style:{color:Ks}}),k.I18n.t("debug_label")]},"debugEnabled"),(0,se.jsxs)(M.Z,{title:k.I18n.t("verbose_help"),onClick:function(t){t.stopPropagation(),t.preventDefault(),e.setState({showDebugMenu:!1,menuDebugAnchorEl:null,verboseEnabled:!e.state.verboseEnabled},(function(){return e.onChange({verbose:e.state.verboseEnabled})}))},children:[(0,se.jsx)(Ke.Z,{checked:this.state.verboseEnabled}),(0,se.jsx)(S.Yo8,{className:this.props.classes.menuIcon,style:{color:Qs}}),k.I18n.t("verbose_label")]},"verboseEnabled")]},"menuDebug"):null}},{key:"getDebugBadge",value:function(){return[this.state.debugEnabled&&this.state.verboseEnabled&&(0,se.jsx)(S.qXL,{className:this.props.classes.menuIcon,style:{color:Qs}},"DebugVerbose"),this.state.debugEnabled&&!this.state.verboseEnabled&&(0,se.jsx)(S.qXL,{className:this.props.classes.menuIcon,style:{color:Ks}},"DebugNoVerbose"),!this.state.debugEnabled&&this.state.verboseEnabled&&(0,se.jsx)(S.Yo8,{className:this.props.classes.menuIcon,style:{color:Qs}},"noDebugVerbose")]}},{key:"getAskAboutDebug",value:function(){var e=this;return this.state.askAboutDebug?(0,se.jsx)(k.Confirm,{onClose:function(){e.setState({askAboutDebug:!1},(function(){return e.props.onDebugModeChange(!0)}))},ok:k.I18n.t("Yes"),cancel:k.I18n.t("Cancel"),text:k.I18n.t("The script will be stopped and must be activated manually after debugging. Continue?")}):null}},{key:"getToolbar",value:function(){var e=this,t=this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].engine&&this.state.runningInstances[this.scripts[this.state.selected].engine],n=this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].enabled;if(this.state.selected){var a=Object.keys(this.state.changed).filter((function(t){return e.state.changed[t]})).length,s=this.state.changed[this.state.selected];return(0,se.jsxs)(Je.Z,{variant:"dense",className:this.props.classes.toolbar,children:[!this.props.debugInstance&&this.state.menuOpened&&this.props.onLocate&&(0,se.jsx)(E.Z,{className:this.props.classes.toolbarButtons,title:k.I18n.t("Locate file"),onClick:function(){return e.props.onLocate(e.state.selected)},size:"medium",children:(0,se.jsx)(S.A_X,{})},"locate"),!this.props.debugInstance&&!s&&t&&(0,se.jsx)(E.Z,{disabled:this.props.debugMode,variant:"contained",className:this.props.classes.toolbarButtons,onClick:function(){return e.onRestart()},title:k.I18n.t("Restart"),size:"medium",children:(0,se.jsx)(S.la_,{})},"restart"),!this.props.debugInstance&&!s&&(0,se.jsx)(E.Z,{disabled:this.props.debugMode,variant:"contained",className:this.props.classes.toolbarButtons,onClick:function(){return e.onStartStop()},title:n?k.I18n.t("Pause script"):k.I18n.t("Run script"),size:"medium",style:{color:n?Xs:$s},children:n?(0,se.jsx)(S.hPq,{}):(0,se.jsx)(S.Nhx,{})},"start-stop"),!this.props.debugInstance&&!s&&!n&&(0,se.jsx)("span",{className:this.props.classes.notRunning,children:k.I18n.t("Script is not running")}),!s&&n&&!t&&(0,se.jsx)("span",{className:this.props.classes.notRunning,children:k.I18n.t("Instance is disabled")}),s&&(0,se.jsxs)(H.Z,{color:"grey",variant:"contained",className:k.Utils.clsx(this.props.classes.textButton,this.props.classes.saveButton,"button-save"),onClick:function(){return e.onSave()},children:[k.I18n.t("Save"),(0,se.jsx)(S.tfk,{className:this.props.classes.textIcon})]},"save"),(a>1||1===a&&!s)&&(0,se.jsxs)(H.Z,{color:"grey",variant:"contained",className:this.props.classes.textButton,onClick:function(){return e.onSaveAll()},children:[k.I18n.t("Save all"),(0,se.jsx)(S.tfk,{className:this.props.classes.textIcon})]},"saveall"),s&&(0,se.jsxs)(H.Z,{color:"grey",variant:"contained",className:this.props.classes.textButton,onClick:function(){return e.onCancel()},children:[k.I18n.t("Cancel"),(0,se.jsx)(S.B4e,{className:this.props.classes.textIcon})]},"cancel"),(0,se.jsx)("div",{style:{flex:2}}),this.state.blockly&&!this.state.showCompiledCode&&(0,se.jsx)(E.Z,{"aria-label":"Export Blocks",title:k.I18n.t("Export blocks"),className:this.props.classes.toolbarButtons,onClick:function(){return e.sendCommandToBlockly("export")},size:"medium",children:(0,se.jsx)(P.FaFileExport,{})},"export"),this.state.blockly&&!this.state.showCompiledCode&&(0,se.jsx)(E.Z,{"aria-label":"Import Blocks",title:k.I18n.t("Import blocks"),className:this.props.classes.toolbarButtons,onClick:function(){return e.sendCommandToBlockly("import")},size:"medium",children:(0,se.jsx)(P.FaFileImport,{})},"import"),this.state.blockly&&!this.state.showCompiledCode&&(0,se.jsx)(E.Z,{"aria-label":"Check code",title:k.I18n.t("Check blocks"),className:this.props.classes.toolbarButtons,onClick:function(){return e.sendCommandToBlockly("check")},size:"medium",children:(0,se.jsx)(P.FaFlagCheckered,{})},"check"),!this.props.debugMode&&!this.state.blockly&&!this.state.rules&&!this.state.showCompiledCode&&(0,se.jsx)(E.Z,{"aria-label":"create CRON",title:k.I18n.t("Create or edit CRON or time wizard"),className:this.props.classes.toolbarButtons,onClick:function(){return e.setState({showCron:!0})},size:"medium",children:(0,se.jsx)(P.FaClock,{})},"select-cron"),(0,se.jsx)(E.Z,{"aria-label":"Show astrological events",title:k.I18n.t("Show astrological events"),className:this.props.classes.toolbarButtons,disabled:!t,onClick:function(){e.setState({showAstro:!0,astroEvents:null}),e.props.socket.sendTo(e.scripts[e.state.selected].engine.replace("system.adapter.",""),"calcAstroAll",{}).then((function(t){return e.setState({astroEvents:t})}))},size:"medium",children:(0,se.jsx)(S.Gd0,{})},"show-astro"),!this.props.debugMode&&!this.state.blockly&&!this.state.rules&&!this.state.showCompiledCode&&(0,se.jsx)(E.Z,{"aria-label":"select ID",title:k.I18n.t("Insert object ID"),className:this.props.classes.toolbarButtons,onClick:function(){return e.setState({showSelectId:!0})},size:"medium",children:(0,se.jsx)(P.FaClipboardList,{})},"select-id"),this.state.blockly&&!this.state.rules&&this.state.showCompiledCode&&(0,se.jsx)(H.Z,{color:"grey","aria-label":"convert to javascript",title:k.I18n.t("Convert blockly to javascript for ever."),onClick:function(){return e.onConvertBlockly2JS()},children:"Blockly=>JS"},"convert2js"),this.state.rules&&!this.state.showCompiledCode&&(0,se.jsx)(E.Z,{"aria-label":"Export Blocks",title:k.I18n.t("Export blocks"),className:this.props.classes.toolbarButtons,onClick:function(){return e.sendCommandToRules("export")},size:"medium",children:(0,se.jsx)(P.FaFileExport,{})},"export"),this.state.rules&&!this.state.showCompiledCode&&(0,se.jsx)(E.Z,{"aria-label":"Import Blocks",title:k.I18n.t("Import blocks"),className:this.props.classes.toolbarButtons,onClick:function(){return e.sendCommandToRules("import")},size:"medium",children:(0,se.jsx)(P.FaFileImport,{})},"import"),this.props.expertMode&&!s&&(this.props.debugMode||!this.state.blockly&&!this.state.rules||(this.state.blockly||this.state.rules)&&this.state.showCompiledCode)&&(0,se.jsx)(E.Z,{className:this.props.classes.toolbarButtons,color:this.props.debugMode?"primary":"default",disabled:!this.props.debugMode&&!t,onClick:function(){!e.props.debugMode&&n?e.setState({askAboutDebug:!0}):e.props.onDebugModeChange(!e.props.debugMode)},size:"medium",children:(0,se.jsx)(S.qXL,{style:{fontSize:32}})}),(this.state.blockly||this.state.rules)&&(0,se.jsx)(H.Z,{"aria-label":"blockly",title:k.I18n.t("Show javascript code"),className:k.Utils.clsx(this.props.classes.toolbarButtons,"button-js-code",this.props.debugMode&&this.props.classes.toolbarButtonsDisabled),color:this.state.showCompiledCode?"secondary":"inherit",disabled:this.props.debugMode,style:{padding:"0 5px"},onClick:function(){e.props.debugMode||(e.setState({showCompiledCode:!e.state.showCompiledCode}),e.state.isTourOpen&&e.state.tourStep===Qn&&e.setState({tourStep:Xn}),e.state.isTourOpen&&e.state.tourStep===Xn&&e.setState({tourStep:$n}))},children:(0,se.jsx)("img",{alt:this.state.blockly?"blockly2js":"rules2js",src:this.state.blockly?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAAAeCAYAAADXRcu0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC41ZYUyZQAABxRJREFUaEPdmotTE0ccx/Pn9OG003ba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SnH5MkLqojneR9wHEz7wkAJLJFBdPHRJ2XjYv8ep39jlFrU3O/cjDHGu6j6S85JLW/52bhr5klYGFklAU5vy6AH+ZBJDBGzXNpX+mJBRFFK8RLP4LMm+uJTNnp+svNXNE7PRhT7WNjbLOnqQEhDTPm+x5xH5GZaetebzWkRrtxksj4O8ndUkNS5MmSpYPR8laddCiF74tAATWgZtMXZIChOjvVPZSLDhib1vy/3pDpsd7nr4OpnrKZfNyWU8PTerHoTSmFeh5YOV1PeQPQ8kq2mo8H1ZxzNbftsBzLpmMSfG3n5nyWb9H6OFFKptjl9HbUqOz8Zzj7fOqesBEX4Kgs2QFwtcPV5JOQmsV8u/b+qVMmecosmt3QitVZcKQPXFPSvadNQ+/5JfvpfhwBeKDkOo1Xk/rlIr10pl400lbaaPL2NtOOhPcjeFo2z6VzgheoLhQ3fRr5/Tzm+99kXWtsQZPj0gmUxnDihIycH+CnRt7uR7hvq5xF6RcS9aNy2P0J8bffyI8PWKsoU79g9l9wLMOkU+A+WR8I1Hx/z+YDQ0ecOH9lhyNMNYwXg2xDPiag9cL/H7kVRkajFdDPODCexqIufDHBcarIV4D7KWRBHaNki5Dgn8DIpsEjn2A+AIAAAAASUVORK5CYII="})},"blockly-code"),(0,se.jsx)(E.Z,{disabled:this.props.debugMode,"aria-label":"Debug menu",title:k.I18n.t("Debug options"),className:this.props.classes.toolbarButtons,onClick:function(t){return e.setState({showDebugMenu:!0,menuDebugAnchorEl:t.currentTarget})},size:"medium",children:(0,se.jsx)(qe.Z,{className:this.props.classes.badgeMargin,badgeContent:this.getDebugBadge(),children:(0,se.jsx)(S._u1,{})})},"debug")]},"toolbar1")}return null}},{key:"getScriptEditor",value:function(){var e=this;return this.props.debugMode||!this.state.selected||!this.props.objects[this.state.selected]||null===this.state.blockly||this.state.blockly&&!this.state.showCompiledCode||this.state.rules&&!this.state.showCompiledCode?null:(this.scripts[this.state.selected]=this.scripts[this.state.selected]||JSON.parse(JSON.stringify(this.props.objects[this.state.selected].common)),(0,se.jsx)("div",{className:this.props.classes.editorDiv,children:(0,se.jsx)(lt,{name:this.state.selected,adapterName:this.props.adapterName,insert:this.state.insert,onInserted:function(){return e.setState({insert:""})},onForceSave:function(){return e.onSave()},searchText:this.state.searchText,onRegisterSelect:function(t){return e.onRegisterSelect(t)},readOnly:this.state.showCompiledCode,changed:this.state.changed[this.state.selected],code:this.scripts[this.state.selected].source||"",isDark:"dark"===this.state.themeType,socket:this.props.socket,runningInstances:this.state.runningInstances,onChange:function(t){return e.onChange({script:t})},language:"TypeScript/ts"===this.scripts[this.state.selected].engineType?"typescript":"javascript"},"scriptEditor1")},"scriptEditorDiv"))}},{key:"getBlocklyEditor",value:function(){var e=this;return!this.props.debugMode&&this.state.instancesLoaded&&this.state.selected&&this.props.objects[this.state.selected]&&this.state.blockly&&!this.state.showCompiledCode&&this.state.visible?(this.scripts[this.state.selected]=this.scripts[this.state.selected]||JSON.parse(JSON.stringify(this.props.objects[this.state.selected].common)),(0,se.jsx)("div",{className:this.props.classes.editorDiv,children:(0,se.jsx)(jt,{command:this.state.cmdToBlockly,themeType:this.state.themeType,searchText:this.state.searchText,resizing:this.props.resizing,code:this.scripts[this.state.selected].source||"",onChange:function(t){return e.onChange({script:t})}},"BlocklyEditor")},"blocklyEditorDiv")):null}},{key:"getRulesEditor",value:function(){var e=this;if(!this.props.debugMode&&this.state.instancesLoaded&&this.state.selected&&this.props.objects[this.state.selected]&&this.state.rules&&!this.state.showCompiledCode&&this.state.visible){this.scripts[this.state.selected]=this.scripts[this.state.selected]||JSON.parse(JSON.stringify(this.props.objects[this.state.selected].common));var t=this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].engine&&this.state.runningInstances[this.scripts[this.state.selected].engine],n=this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].enabled;return(0,se.jsx)("div",{className:k.Utils.clsx(this.props.classes.editorDiv),children:(0,se.jsx)(Rs,{scriptId:this.state.selected,setTourStep:this.setTourStep,tourStep:this.state.tourStep,isTourOpen:this.state.isTourOpen,changed:this.state.changed[this.state.selected],running:t&&n,command:this.state.cmdToRules,themeType:this.state.themeType,themeName:this.props.themeName,searchText:this.state.searchText,resizing:this.props.resizing,code:this.scripts[this.state.selected].source||"",onChange:function(t){return e.onChange({script:t})}},"flowEditor")},"flowEditorDiv")}return null}},{key:"getConfirmDialog",value:function(){var e=this;return this.state.confirm?(0,se.jsx)(k.Confirm,{text:this.state.confirm,onClose:function(t){if(e.confirmCallback){var n=e.confirmCallback;e.confirmCallback=null,n(t)}e.setState({confirm:""})}},"dialogConfirm1"):null}},{key:"getSelectIdDialog",value:function(){var e=this;if(this.state.showSelectId){var t=this.selectId.callback?this.selectId.initValue||"":this.getSelect?this.getSelect():"",n=t.indexOf("/*");-1!==n&&(t=t.substring(0,n)),-1!==(n=t.indexOf("//"))&&(t=t.substring(0,n));var a=t.match(/"([^"]+)"/);return a&&(t=a[1]),(a=t.match(/'([^']+)'/))&&(t=a[1]),(0,se.jsx)(k.SelectID,{imagePrefix:"../..",themeName:this.props.themeName,themeType:this.state.themeType,socket:this.props.socket,selected:t,expertMode:"script"===this.selectId.type||void 0,types:[this.selectId.type||"state"],onClose:function(){e.setState({showSelectId:!1}),e.selectId.callback&&(e.selectId.callback=null)},onOk:function(t,n){e.selectId.initValue=null,e.selectId.callback?(e.selectId.callback(t),e.selectId.callback=null):e.setState({insert:"'".concat(t,"'/*").concat(n,"*/")})}},"dialogSelectID1")}return null}},{key:"getCronDialog",value:function(){var e=this;return this.state.showCron?(0,se.jsx)(k.Cron,{cron:this.cron.callback?this.cron.initValue||"":this.getSelect?this.getSelect():"* * * * *",onClose:function(){return e.setState({showCron:!1})},onOk:function(t){e.cron.initValue=null,e.cron.callback?(e.cron.callback(t),e.cron.callback=null):e.setState({insert:"'".concat(t,"'")})}},"dialogCron1"):null}},{key:"getAstroDialog",value:function(){var e=this;return this.state.showAstro?(0,se.jsxs)(Q.Z,{open:!0,onClose:function(){return e.setState({showAstro:!1})},children:[(0,se.jsx)(q.Z,{children:k.I18n.t("Astrological events today")}),(0,se.jsx)(Y.Z,{children:this.state.astroEvents?(0,se.jsx)(tt.Z,{component:st.Z,children:(0,se.jsxs)(Xe.Z,{size:"small",children:[(0,se.jsx)(nt.Z,{children:(0,se.jsxs)(at.Z,{children:[(0,se.jsx)(et.Z,{children:k.I18n.t("Name")}),(0,se.jsx)(et.Z,{children:k.I18n.t("Time")}),(0,se.jsx)(et.Z,{children:k.I18n.t("Description")})]})}),(0,se.jsx)($e.Z,{children:Object.keys(this.state.astroEvents).map((function(t){return(0,se.jsxs)(at.Z,{children:[(0,se.jsx)(et.Z,{component:"th",scope:"row",children:t.startsWith("next")?"":t}),(0,se.jsx)(et.Z,{align:"right",children:new Date(e.state.astroEvents[t]).toLocaleTimeString()}),(0,se.jsx)(et.Z,{children:k.I18n.t(t)})]},t)}))})]})}):(0,se.jsx)(Qe.Z,{})}),(0,se.jsx)(K.Z,{children:(0,se.jsx)(H.Z,{variant:"contained",onClick:function(){return e.setState({showAstro:!1})},color:"primary",startIcon:(0,se.jsx)(S.FU5,{}),children:k.I18n.t("Close")})})]},"dialogAstro"):null}},{key:"getEditorDialog",value:function(){var e=this;return this.state.showScript?(0,se.jsx)(Dt,{adapterName:this.props.adapterName,source:this.scriptDialog.initValue,args:this.scriptDialog.args?this.scriptDialog.args.join(", "):"",isReturn:this.scriptDialog.isReturn,socket:this.props.socket,runningInstances:this.state.runningInstances,themeType:this.state.themeType,onClose:function(t){e.scriptDialog.initValue=null,e.scriptDialog.callback&&(!1!==t&&e.scriptDialog.callback(t||""),e.scriptDialog.callback=null),e.setState({showScript:!1})}},"scriptEditorDialog"):null}},{key:"getToast",value:function(){var e=this;return(0,se.jsx)(Ye.Z,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!!this.state.toast,autoHideDuration:6e3,onClose:function(){return e.setState({toast:""})},ContentProps:{"aria-describedby":"message-id"},message:(0,se.jsx)("span",{id:"message-id",children:this.state.toast}),action:[(0,se.jsx)(E.Z,{"aria-label":"close",color:"inherit",className:this.props.classes.closeToast,onClick:function(){return e.setState({toast:""})},size:"medium",children:(0,se.jsx)(S.FU5,{})},"close")]},"toast")}},{key:"getTour",value:function(){var e=this;if(this.state.instancesLoaded&&this.state.selected&&1===this.props.isAnyRulesExists&&this.props.objects[this.state.selected]&&this.state.rules&&this.state.visible)return(0,se.jsx)(Ve.ZP,{steps:ea,isOpen:this.state.isTourOpen,onRequestClose:function(){e.setState({isTourOpen:!1}),window.localStorage.setItem("tour","true"),e.props.socket.setState("javascript.0.variables.rulesTour",{val:!0,ack:!0})},goToStep:this.state.tourStep},"tour")}},{key:"getDebug",value:function(){var e=this;return this.props.debugMode?this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].engine&&this.state.runningInstances[this.scripts[this.state.selected].engine]?(0,se.jsx)(qs,{runningInstances:this.state.runningInstances,adapterName:this.props.adapterName,socket:this.props.socket,theme:this.props.theme,themeName:this.props.themeName,themeType:this.props.themeType,src:this.props.debugInstance?this.props.debugInstance.adapter:this.state.selected,debugInstance:this.props.debugInstance},"debugger"):(setTimeout((function(){return e.props.onDebugModeChange(!1)})),null):null}},{key:"render",value:function(){var e=this;return this.state.selected&&this.props.objects[this.state.selected]&&null===this.state.blockly&&null===this.state.rules&&(this.scripts[this.state.selected]=this.scripts[this.state.selected]||JSON.parse(JSON.stringify(this.props.objects[this.state.selected].common)),setTimeout((function(){var t={blockly:"Blockly"===e.scripts[e.state.selected].engineType,rules:"Rules"===e.scripts[e.state.selected].engineType,showCompiledCode:!1,debugEnabled:e.scripts[e.state.selected].debug,verboseEnabled:e.scripts[e.state.selected].verbose};e.removeNonExistingScripts(null,t),e.setState(t)}),100)),[this.getTabs(),this.getToolbar(),this.getScriptEditor(),this.getAskAboutDebug(),this.getBlocklyEditor(),this.getRulesEditor(),this.getDebug(),this.getConfirmDialog(),this.getSelectIdDialog(),this.getCronDialog(),this.getEditorDialog(),this.getAstroDialog(),this.getDebugMenu(),this.getToast(),this.getTour()]}}],[{key:"getText",value:function(e){return"object"===typeof e?e[k.I18n.getLanguage()]||e.en:e}}]),n}(s().Component),to=(0,g.Z)((function(e){return{toolbar:{minHeight:38,boxShadow:"0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)"},toolbarButtons:{padding:4,marginLeft:4},toolbarButtonsDisabled:{filter:"grayscale(100%)",opacity:.5},editorDiv:{height:"calc(100% - ".concat(e.toolbar.height+38+10,"px)"),width:"100%",overflow:"hidden",position:"relative"},textButton:{marginRight:10,minHeight:24,padding:"6px 16px"},saveButton:{background:"#ff9900"},textIcon:{marginLeft:e.spacing(1)},tabIcon:{width:24,height:24,verticalAlign:"middle",marginBottom:2,marginRight:2,borderRadius:3},hintIcon:{padding:"0 8px 0 8px"},hintText:{},hintButton:{marginTop:8,marginLeft:20},tabMenuButton:{position:"absolute",top:0,right:0},tabChanged:{color:e.palette.secondary.main},tabText:{maxWidth:130,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",display:"inline-block",verticalAlign:"middle"},tabChangedIcon:{color:"#FF0000",fontSize:16},closeButton:{position:"absolute",top:0,right:-5,zIndex:10,padding:8,cursor:"pointer"},closeButtonIcon:{background:"dark"===e.palette.mode?"#000":"#FFF",borderRadius:"50%",opacity:.7},notRunning:{color:"#ffbc00",marginRight:e.spacing(1),marginLeft:e.spacing(1)},tabButton:{minHeight:48},tabButtonWrapper:{display:"inline-block"},menuIcon:{width:18,height:18,borderRadius:2,marginRight:5}}}))(eo),no=n(65532),ao=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,u.Z)(this,n),(a=t.call(this,e)).state={error:"",imageStatus:""},a}return(0,d.Z)(n,[{key:"componentDidMount",value:function(){setTimeout((function(){try{window.document.getElementById("import-text-area").focus()}catch(e){}}),100)}},{key:"handleCancel",value:function(){this.props.onClose()}},{key:"onChange",value:function(e){this.setState({text:e.target.value})}},{key:"handleDropFile",value:function(e){var t=this;if(e&&e.hasOwnProperty("target")&&(e=e.target.files),e||e.length){var a=e[e.length-1];a&&n.readFileDataUrl(a,(function(e,n){e?t.setState({error:e}):t.props.onClose(n&&n.data)}))}}},{key:"render",value:function(){var e=this,t=this.props.classes,n=t.dropzone+" "+("accepted"===this.state.imageStatus?t.dropzoneAccepted:"rejected"===this.state.imageStatus?t.dropzoneRejected:"");return(0,se.jsxs)(Q.Z,{onClose:function(e,t){return!1},maxWidth:"lg",classes:{paper:t.dialog},fullWidth:!0,open:!0,"aria-labelledby":"import-dialog-title",children:[(0,se.jsx)(q.Z,{id:"import-dialog-title",children:k.I18n.t("Import scripts")}),(0,se.jsxs)(Y.Z,{className:t.fullHeight,children:[(0,se.jsx)(no.default,{maxSize:5e7,acceptClassName:t.dropzoneAccepted,rejectClassName:t.dropzoneRejected,onDrop:function(t){return e.handleDropFile(t)},multiple:!1,accept:"application/zip,application/x-zip-compressed",className:n,children:function(t){var n=t.getRootProps,a=t.getInputProps,s=t.isDragActive;return t.isDragReject?("rejected"!==e.state.imageStatus&&e.setState({imageStatus:"rejected"}),(0,se.jsxs)("div",(0,dt.Z)((0,dt.Z)({className:e.props.classes.dropzoneDiv},n()),{},{children:[(0,se.jsx)("input",(0,dt.Z)({},a())),(0,se.jsx)("span",{className:e.props.classes.text,children:k.I18n.t("Some files will be rejected")},"text"),(0,se.jsx)(S.B4e,{className:e.props.classes.icon+" "+e.props.classes.iconError},"icon")]}))):s?("accepted"!==e.state.imageStatus&&e.setState({imageStatus:"accepted"}),(0,se.jsxs)("div",(0,dt.Z)((0,dt.Z)({className:e.props.classes.dropzoneDiv},n()),{},{children:[(0,se.jsx)("input",(0,dt.Z)({},a())),(0,se.jsx)("span",{className:e.props.classes.text,children:k.I18n.t("All files will be accepted")},"text"),(0,se.jsx)(S.hjC,{className:e.props.classes.icon+" "+e.props.classes.iconOk},"icon")]}))):("wait"!==e.state.imageStatus&&e.setState({imageStatus:"wait"}),(0,se.jsxs)("div",(0,dt.Z)((0,dt.Z)({className:e.props.classes.dropzoneDiv},n()),{},{children:[(0,se.jsx)("input",(0,dt.Z)({},a())),(0,se.jsx)("span",{className:e.props.classes.text,children:k.I18n.t("Drop some files here or click...")},"text"),(0,se.jsx)(S.s_P,{className:e.props.classes.icon},"icon")]})))}},"image-drop"),this.state.error?(0,se.jsx)(be,{text:this.state.error,onClose:function(){return e.setState({error:""})}}):null]}),(0,se.jsx)(K.Z,{children:(0,se.jsx)(H.Z,{color:"grey",variant:"contained",onClick:function(){return e.handleCancel()},startIcon:(0,se.jsx)(ne.default,{}),children:k.I18n.t("Close")})})]})}}],[{key:"readFileDataUrl",value:function(e,t){var n=new FileReader;n.onload=function(){t(null,{data:n.result,name:e.name})},n.onabort=function(){console.error("file reading was aborted"),t(k.I18n.t("file reading was aborted"))},n.onerror=function(e){console.error("file reading has failed"),t(k.I18n.t("file reading has failed: %s",e))},n.readAsDataURL(e)}}]),n}(s().Component),so=(0,g.Z)((function(e){return{dialog:{height:"95%"},fullHeight:{height:"100%",overflow:"hidden"},dropzone:{marginTop:20,width:"100%",borderWidth:5,borderStyle:"dashed",borderColor:"#d0cccc",textAlign:"center",boxSizing:"border-box",paddingTop:45,borderRadius:10,height:"calc(100% - 10px)"},dropzoneDiv:{width:"100%",height:"100%"},dropzoneRejected:{borderColor:"#970000"},dropzoneAccepted:{borderColor:"#17cd02"},icon:{height:"30%",width:"30%",color:"#eeeeee",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",zIndex:0},iconError:{color:"#ffc3c6"},iconOk:{color:"#aaeebc"},text:{top:"50%",left:"50%",transform:"translate(-50%,-50%)",color:"#868686",position:"absolute",zIndex:1}}}))(ao),oo=function(e){(0,p.Z)(a,e);var t=(0,h.Z)(a);function a(e){var s;return(0,u.Z)(this,a),(s=t.call(this,e,{Connection:k.AdminConnection,translations:{en:n(86443),de:n(19837),es:n(55117),fr:n(86115),it:n(79399),nl:n(43573),pl:n(28130),pt:n(65909),ru:n(50482),uk:n(17138),"zh-cn":n(58246)},bottomButtons:!1,socket:{autoSubscribeLog:!0},sentryDSN:window.sentryDSN})).onScriptsChanged=function(e,t){if(e){var n=!1,a={};e.startsWith("script.js.")&&(t?JSON.stringify(s.scripts[e])!==JSON.stringify(t)&&(s.scripts[e]=t,n=!0,a.scriptsHash=s.state.scriptsHash+1):s.scripts[e]&&(delete s.scripts[e],n=!0,a.scriptsHash=s.state.scriptsHash+1)),n&&s.setState(a)}},s.onInstanceChanged=function(e,t){if(e){var n=!1,a={};if(e.match(/^system\.adapter\.[-_\w\d]+\$/)){if(e.startsWith("system.adapter.".concat(s.adapterName,".")))if(t&&"instance"===t.type)s.state.instances.includes(e)||(a.instances=(0,c.Z)(s.state.instances),a.instances.push(e),a.instances.sort(),n=!0,s.socket.subscribeState("".concat(t._id,".alive"),s.onInstanceAliveChange));else if(!t&&s.state.instances.includes(e)){s.socket.unsubscribeState("".concat(e,".alive"),s.onInstanceAliveChange),a.instances=(0,c.Z)(s.state.instances);var o=a.instances.indexOf(e);a.instances.splice(o,1),n=!0}t&&t[e].common&&t[e].common.blockly&&(s.confirmCallback=function(e){return e&&window.location.reload()},a.confirm=k.I18n.t("Some blocks were updated. Reload admin?"),n=!0)}n&&s.setState(a)}},s.onHostChanged=function(e,t){if(e){if(e.startsWith("system.host."))if(t&&"host"===t.type)s.hosts.includes(e)||(s.hosts.push(e),s.hosts.sort());else if(!t&&s.hosts.includes(e)){var n=s.hosts.indexOf(e);s.hosts.splice(n,1)}}},s.onInstanceAliveChange=function(e,t){if(e&&(e=e&&e.substring(0,e.length-6),s.state.runningInstances[e]!==(!!t&&t.val))){var n=JSON.parse(JSON.stringify(s.state.runningInstances));n[e]=!!t&&t.val,s.setState({runningInstances:n})}},s.logSize=window.localStorage&&parseFloat(window.localStorage.getItem("App.logSize"))||150,s.menuSize=window.localStorage&&parseFloat(window.localStorage.getItem("App.menuSize"))||500,s.hosts=[],s.importFile=null,s.scripts={},window.alert=function(e){console.error(e),s.showError(e.toString())},s}return(0,d.Z)(a,[{key:"onConnectionReady",value:function(){var e=this;window.systemLang=this.socket.systemLang,this.setState({ready:!1,updateScripts:0,scriptsHash:0,instances:[],updating:!1,resizing:!1,selected:null,logMessage:{},editing:[],menuOpened:"false"!==window.localStorage.getItem("App.menuOpened"),menuSelectId:"",expertMode:"true"===window.localStorage.getItem("App.expertMode"),logHorzLayout:"true"===window.localStorage.getItem("App.logHorzLayout"),runningInstances:{},confirm:"",importFile:!1,message:"",searchText:"",hideLog:"true"===window.localStorage.getItem("App.hideLog"),debugMode:!1,debugInstance:null});var t={};this.subscribeOnInstances().then((function(n){return t.instances=n.instances,t.runningInstances=n.runningInstances,e.readAdaptersWithBlockly()})).then((function(){return e.socket.getHosts()})).then((function(t){return e.hosts=t.map((function(e){return e._id})),e.readAllScripts()})).then((function(n){window.localStorage&&"true"!==window.localStorage.getItem("App.expertMode")&&"false"!==window.localStorage.getItem("App.expertMode")&&Object.keys(n).find((function(e){return e.startsWith("script.js.global.")&&"script"===n.type}))&&(t.expertMode=!0),e.scripts=n;var a=e.state.scriptsHash;e.compareScripts(n)&&a++,t.scriptsHash=a,t.ready=!0,e.socket.subscribeObject("script.*",e.onScriptsChanged),e.socket.subscribeObject("system.adapter.*",e.onInstanceChanged),e.socket.subscribeObject("system.host.*",e.onHostChanged),e.setState(t)}))}},{key:"subscribeOnInstances",value:function(){var e=this;return this.socket.getAdapterInstances(this.adapterName).then((function(t){var n=t.map((function(e){return parseInt(e._id.split(".").pop())})).sort(),a={};n.forEach((function(t){return a["system.adapter.".concat(e.adapterName,".").concat(t)]=!1}));var s=[];return n.forEach((function(t){var n="system.adapter.".concat(e.adapterName,".").concat(t),o="".concat(n,".alive");s.push(e.socket.getState(o).then((function(t){a[n]=!!t&&t.val,e.socket.subscribeState(o,e.onInstanceAliveChange)})))})),Promise.all(s).then((function(){return{instances:n,runningInstances:a}}))}))}},{key:"readAllScripts",value:function(){var e=this;return this.socket.getObjectView("script.js.","script.js.\u9999","channel").then((function(t){return e.socket.getObjectView("script.js.","script.js.\u9999","script").then((function(e){return Object.keys(e).forEach((function(n){return t[n]=e[n]})),t}))}))}},{key:"readAdaptersWithBlockly",value:function(){return this.socket.getObjectView("system.adapter.","system.adapter.\u9999","adapter").then((function(e){return new Promise((function(t){return jt.loadCustomBlockly(e,(function(){return t()}))}))}))}},{key:"onToggleExpertMode",value:function(e){this.onExpertModeChange(e)}},{key:"compareScripts",value:function(e){var t=Object.keys(this.scripts),n=Object.keys(e);if(t.length!==n.length)return this.scripts=this.newScripts,!0;if(JSON.stringify(t)!==JSON.stringify(n))return this.scripts=this.newScripts,!0;for(var a=0;a ").concat(t)),this.setState({updating:!0}),this.scripts[e]&&"script"===this.scripts[e].type){var i=JSON.parse(JSON.stringify(this.scripts[e].common));i.name=n||i.name,void 0!==a&&(i.engine="system.adapter.javascript.".concat(a));var r=t.split(".");r.pop();var l=r.join(".");this.scripts[l]&&"script"===this.scripts[l].type&&(r.pop(),t="".concat(r.join("."),".").concat(t.split(".").pop())),s=this.updateScript(e,t,i)}else s=this.renameGroup(e,t,n);s.then((function(){return o.setState({updating:!1})})).catch((function(e){return"canceled"!==e&&o.showError(e)}))}},{key:"renameGroup",value:function(e,t,n,a){var s=this;if(a){if(a.length){var o=a.pop();return this.socket.getObject(o).then((function(i){return s.socket.delObject(o).catch((function(){})).then((function(){return o=t+o.substring(e.length),i._id=o,i.common=i.common||{},i.common.expert=!0,s.socket.setObject(o,i)})).then((function(){return s.renameGroup(e,t,n,a)}))}))}return Promise.resolve()}return a=[],a=Object.keys(this.scripts).filter((function(t){return t.startsWith("".concat(e,"."))})),this.socket.getObject(e).then((function(o){(o=o||{common:{}}).common.name=n||o.common.name||e.split(".").pop(),o._id=t,s.socket.delObject(e).catch((function(){})).then((function(){return s.socket.setObject(t,o)})).then((function(){return s.renameGroup(e,t,n,a)})).catch((function(e){return console.log(e)}))})).catch((function(o){console.log(o);var i={_id:t,type:"channel",common:{name:n||e.split(".").pop(),expert:!0},native:{}};return s.socket.setObject(t,i).then((function(){return s.renameGroup(e,t,n,a)}))}))}},{key:"onUpdateScript",value:function(e,t){var n=this;this.scripts[e]&&"script"===this.scripts[e].type&&this.updateScript(e,e,t).then((function(){})).catch((function(e){return"canceled"!==e&&n.showError(e)}))}},{key:"onSelect",value:function(e){var t=this;this.scripts[e]&&this.scripts[e].common&&"script"===this.scripts[e].type&&this.setState({selected:e,menuSelectId:e},(function(){return setTimeout((function(){return t.setState({menuSelectId:""})}))}),300)}},{key:"onExpertModeChange",value:function(e){this.state.expertMode!==e&&(window.localStorage&&window.localStorage.setItem("App.expertMode",e?"true":"false"),this.setState({expertMode:e}))}},{key:"showError",value:function(e){this.setState({errorText:e?e.toString():""})}},{key:"showMessage",value:function(e){this.setState({message:e?e.toString():""})}},{key:"onDelete",value:function(e){var t=this;this.socket.delObject(e).then((function(){})).catch((function(e){return t.showError(e)}))}},{key:"onEdit",value:function(e){this.state.selected!==e&&this.setState({selected:e})}},{key:"onAddNew",value:function(e,t,n,a,s,o){var i=this,r=new RegExp("^".concat(e,"\\."));if(Object.keys(this.scripts).find((function(t){return e===t||r.test(e)})))return this.showError(k.I18n.t("Yet exists!"));n?this.socket.setObject(e,{common:{name:t,expert:!0},type:"channel"}).then((function(){return setTimeout((function(){return i.setState({menuSelectId:e},(function(){return setTimeout((function(){return i.setState({menuSelectId:""})}))}),300)}),1e3)})).catch((function(e){return i.showError(e)})):this.socket.setObject(e,{common:{name:t,expert:!0,engineType:s,engine:"system.adapter.javascript.".concat(a||0),source:o||"",debug:!1,verbose:!1},type:"script"}).then((function(){return setTimeout((function(){return i.onSelect(e)}),1e3)})).catch((function(e){return i.showError(e)}))}},{key:"updateScript",value:function(e,t,n){var a=this;return this.socket.getObject(e).then((function(s){var o={common:{}};return void 0!==n.engine&&(o.common.engine=n.engine),void 0!==n.enabled&&(o.common.enabled=n.enabled),void 0!==n.source&&(o.common.source=n.source),void 0!==n.debug&&(o.common.debug=n.debug),void 0!==n.verbose&&(o.common.verbose=n.verbose),o.from="system.adapter.admin.0",e===t&&s&&s.common&&n.name===s.common.name?(n.engineType&&n.engineType===s.common.engineType||void 0!==n.engineType&&(o.common.engineType=n.engineType||"Javascript/js"),o.type="script",a.socket.extendObject(e,o)):s&&s.common?(s.common.engineType=n.engineType||s.common.engineType||"Javascript/js",a.socket.delObject(e).then((function(){void 0!==o.common.engine&&(s.common.engine=o.common.engine),void 0!==o.common.enabled&&(s.common.enabled=o.common.enabled),void 0!==o.common.source&&(s.common.source=o.common.source),void 0!==o.common.name&&(s.common.name=o.common.name),void 0!==o.common.debug&&(s.common.debug=o.common.debug),void 0!==o.common.verbose&&(s.common.verbose=o.common.verbose),delete s._rev,s.common.name=n.name,s.common.expert=!0,s.type="script",s._id=t,a.socket.setObject(t,s)}))):((s=o).common.name=n.name,s.common.expert=!0,s.type="script",s._id=t,a.socket.setObject(t,s))}))}},{key:"onEnableDisable",value:function(e,t){var n=this;if(this.scripts[e]&&"script"===this.scripts[e].type){var a=this.scripts[e].common;a.enabled=t,a.expert=!0,this.updateScript(e,e,a).catch((function(e){return"canceled"!==e&&n.showError(e)}))}}},{key:"getLiveHost",value:function(e,t){var n=this;if(t||(t=this.hosts?(0,c.Z)(this.hosts):[]),t.length){var a=t.shift();this.socket.getState("".concat(a,".alive")).then((function(s){s&&s.val?e(a):setTimeout((function(){return n.getLiveHost(e,t)}))}))}else e()}},{key:"onExport",value:function(){var e=this;this.getLiveHost((function(t){if(!t)return e.showError(k.I18n.t("No active host found"));var n=new Date,a=n.getFullYear(),s=n.getMonth()+1;s<10&&(s="0".concat(s)),a+="-".concat(s),(s=n.getDate())<10&&(s="0".concat(s)),a+="-".concat(s,"-"),e.socket.getRawSocket().emit("sendToHost",t,"readObjectsAsZip",{adapter:"javascript",id:"script.js",link:"".concat(a,"scripts.zip"),fileStorageNamespace:"admin.".concat(e.instance)},(function(t){if("string"===typeof t){var n=document.createElement("a");if(t.startsWith("admin."))n.href="../../files/".concat(t);else{var s=t.split(".zip.");n.href="./zip/".concat(s[0],"/").concat(s[1])}document.body.appendChild(n),n.click(),n.remove()}else if(t.error&&e.showError(t.error),t.data){var o=document.createElement("a");o.href="data: application/zip;base64,".concat(t.data),o.download="".concat(a,"scripts.zip"),document.body.appendChild(o),o.click(),o.remove()}}))}))}},{key:"onImport",value:function(e){this.importFile=e,e?(this.confirmCallback=this.onImportConfirmed.bind(this),this.setState({importFile:!1,confirm:k.I18n.t("Existing scripts will be overwritten.")})):this.setState({importFile:!1})}},{key:"onImportConfirmed",value:function(e){var t=this,n=this.importFile;this.importFile=null,e&&n&&(n=n.split(",")[1],this.getLiveHost((function(e){e?t.socket.getRawSocket().emit("sendToHost",e,"writeObjectsAsZip",{data:n,adapter:"javascript",id:"script.js"},(function(e){"permissionError"===e?t.showError(k.I18n.t(e)):!e||e.error?t.showError(e?k.I18n.t(e.error):k.I18n.t("Unknown error")):t.showMessage(k.I18n.t("Done"))})):t.showError(k.I18n.t("No active host found"))})))}},{key:"toggleLogLayout",value:function(){window.localStorage&&window.localStorage.setItem("App.logHorzLayout",this.state.logHorzLayout?"false":"true"),this.setState({logHorzLayout:!this.state.logHorzLayout})}},{key:"renderEditor",value:function(){var e=this,t=Object.keys(this.scripts).reduce((function(t,n){return t+("Rules"===e.scripts[n].common.engineType?1:0)}),0);return(0,se.jsx)(to,{debugMode:this.state.debugMode,onDebugModeChange:function(t){t?e.setState({debugMode:!0}):e.setState({debugMode:!1,debugInstance:null})},visible:!this.state.resizing,socket:this.socket,adapterName:this.adapterName,onLocate:function(t){return e.setState({menuSelectId:t})},runningInstances:this.state.runningInstances,menuOpened:this.state.menuOpened,searchText:this.state.searchText,themeType:this.state.themeType,themeName:this.state.themeName,theme:this.state.theme,expertMode:this.state.expertMode,onChange:function(t,n){return e.onUpdateScript(t,n)},isAnyRulesExists:t,debugInstance:this.state.debugInstance,onSelectedChange:function(t,n){var a={},s=!1;t!==e.state.selected&&(s=!0,a.selected=t),JSON.stringify(n)!==JSON.stringify(e.state.editing)&&(s=!0,a.editing=JSON.parse(JSON.stringify(n))),s&&e.setState(a)},onRestart:function(t){return e.socket.extendObject(t,{common:{enabled:!0}})},selected:this.state.selected&&this.scripts[this.state.selected]&&"script"===this.scripts[this.state.selected].type?this.state.selected:"",objects:this.scripts,instances:this.state.instances},"editor")}},{key:"showLogButton",value:function(){var e=this;return(0,se.jsx)("div",{title:k.I18n.t("Show logs"),className:this.props.classes.showLogButton,onClick:function(){window.localStorage.setItem("App.hideLog","false"),e.setState({hideLog:!1,resizing:!0}),setTimeout((function(){return e.setState({resizing:!1})}),300)},children:(0,se.jsx)(S.t2l,{})},"showLog")}},{key:"renderErrorDialog",value:function(){var e=this;return this.state.errorText?(0,se.jsx)(be,{onClose:function(){return e.setState({errorText:""})},text:this.state.errorText},"dialogError"):null}},{key:"renderMain",value:function(){var e=this,t=this.props.classes;return[this.state.message?(0,se.jsx)(y.default,{onClose:function(){return e.setState({message:""})},text:this.state.message},"dialogMessage"):null,this.renderErrorDialog(),this.state.importFile?(0,se.jsx)(so,{onClose:function(t){return e.onImport(t)}},"dialogImportFile"):null,this.state.confirm?(0,se.jsx)(b.default,{onClose:function(t){e.state.confirm&&e.setState({confirm:""}),e.confirmCallback&&e.confirmCallback(t),e.confirmCallback=null},text:this.state.confirm},"dialogConfirm"):null,(0,se.jsxs)("div",{className:t.content+" iobVerticalSplitter",children:[(0,se.jsx)("div",{className:t.menuOpenCloseButton,onClick:function(){window.localStorage.setItem("App.menuOpened",e.state.menuOpened?"false":"true"),e.setState({menuOpened:!e.state.menuOpened,resizing:!0}),setTimeout((function(){return e.setState({resizing:!1})}),300)},children:this.state.menuOpened?(0,se.jsx)(S.KYK,{}):(0,se.jsx)(S.xXU,{})},"closeMenu"),(0,se.jsxs)(f(),{vertical:!this.state.logHorzLayout,primaryMinSize:100,secondaryInitialSize:this.state.hideLog?0:this.logSize,onDragStart:function(){return e.setState({resizing:!0})},onSecondaryPaneSizeChange:function(t){return e.state.hideLog?0:e.logSize=parseFloat(t)},onDragEnd:function(){e.setState({resizing:!1}),window.localStorage.setItem("App.logSize",e.logSize.toString())},children:[(0,se.jsxs)(se.Fragment,{children:[this.renderEditor(),!this.state.debugMode&&this.state.hideLog&&this.showLogButton()]}),!this.state.debugMode&&!this.state.hideLog&&(0,se.jsx)(We,{verticalLayout:!this.state.logHorzLayout,onLayoutChange:function(){return e.toggleLogLayout()},editing:this.state.editing,socket:this.socket,selected:this.state.selected,onHideLog:function(){window.localStorage.setItem("App.hideLog","true"),e.setState({hideLog:!0,resizing:!0}),setTimeout((function(){return e.setState({resizing:!1})}),300)}},"log")]},"splitterLayout")]},"main")]}},{key:"render",value:function(){var e=this,t=this.props.classes;return this.state.ready?(0,se.jsx)("div",{className:t.root,children:(0,se.jsx)(Wa,{socket:this.socket,children:(0,se.jsxs)(f(),{vertical:!1,primaryMinSize:300,primaryIndex:1,secondaryMinSize:300,secondaryInitialSize:this.menuSize,customClassName:"".concat(t.splitterDivs," ").concat(this.state.menuOpened?"":t.menuDivWithoutMenu),onDragStart:function(){return e.setState({resizing:!0})},onSecondaryPaneSizeChange:function(t){return e.menuSize=parseFloat(t)},onDragEnd:function(){e.setState({resizing:!1}),window.localStorage.setItem("App.menuSize",e.menuSize.toString())},children:[(0,se.jsx)("div",{className:t.mainDiv,children:(0,se.jsx)(Pe,{debugMode:this.state.debugMode,onDebugInstance:function(t){e.setState({debugInstance:t,debugMode:!!t})},scripts:this.scripts,scriptsHash:this.state.scriptsHash,instances:this.state.instances,update:this.state.updateScripts,onRename:this.onRename.bind(this),onSelect:this.onSelect.bind(this),socket:this.socket,selectId:this.state.menuSelectId,onEdit:this.onEdit.bind(this),expertMode:this.state.expertMode,themeType:this.state.themeType,themeName:this.state.themeName,onThemeChange:function(t){k.Utils.setThemeName(t);var n=k.Utils.getThemeType(t);e.setState({themeName:t,themeType:n},(function(){return e.props.onThemeChange(t)}))},runningInstances:this.state.runningInstances,onExpertModeChange:this.onExpertModeChange.bind(this),onDelete:this.onDelete.bind(this),onAddNew:this.onAddNew.bind(this),onEnableDisable:this.onEnableDisable.bind(this),onExport:this.onExport.bind(this),width:this.menuSize,onImport:function(){return e.setState({importFile:!0})},onSearch:function(t){return e.setState({searchText:t})}},"sidemenu")},"menu"),this.renderMain()]},"menuSplitter")})}):(0,se.jsx)(k.Loader,{theme:this.state.themeType})}}]),a}(v.Z),io=(0,g.Z)((function(e){return{root:{flexGrow:1,display:"flex",width:"100%",height:"100%"},menuDiv:{overflow:"hidden"},splitterDivs:{"&>div":{overflow:"hidden",width:"100%",height:"100%"},"& .layout-splitter":{background:"dark"===e.palette.mode?"#595858":"#ccc;"}},mainDiv:{width:"100%",height:"100%",overflow:"hidden"},content:{width:"100%",height:"100%",backgroundColor:e.palette.background&&e.palette.background.default,position:"relative"},splitterDivWithMenu:{width:"calc(100% - 300px)",height:"100%"},menuDivWithoutMenu:{"&>div:first-child":{display:"none"},"&>.layout-splitter":{display:"none"}},progress:{margin:100},menuOpenCloseButton:{position:"absolute",left:0,borderRadius:"0 5px 5px 0",top:6,paddingTop:8,cursor:"pointer",zIndex:1,height:25,width:20,background:e.palette.secondary.main,color:e.palette.primary.main,paddingLeft:3,"&:hover":{color:"white"}},showLogButton:{position:"absolute",right:3,borderRadius:"5px 5px 0 0",bottom:0,paddingTop:3,cursor:"pointer",zIndex:10,height:20,width:25,background:e.palette.secondary.main,color:e.palette.primary.main,paddingLeft:8,"&:hover":{color:"white"}}}}))(oo);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var ro=n(37674),lo=n(19509);window.GenericBlock=ta,window.adapterName="javascript",window.sentryDSN="https://504499a725eb4898930d3b9e9da95740@sentry.iobroker.net/56";var co=k.Utils.getThemeName();console.log("iobroker.".concat(window.adapterName,"@").concat("7.1.1",' using theme "').concat(co,'"'));var uo=(0,l.createGenerateClassName)({productionPrefix:"iob"});!function e(){var t=window.innerWidth<600,n=document.getElementById("root");return(0,o.s)(n).render((0,se.jsx)(l.StylesProvider,{generateClassName:uo,children:(0,se.jsx)(i.Z,{injectFirst:!0,children:(0,se.jsx)(r.Z,{theme:(0,ro.default)(co),children:(0,se.jsx)(F.W,{backend:t?lo.zr:B.PD,children:(0,se.jsx)(io,{onThemeChange:function(t){co=t,e()}})})})})}))}(),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}));var po=window.loadDynamicScript;po&&po("3000"===window.location.port?window.location.protocol+"//"+window.location.hostname+":8081/lib/js/socket.io.js":"./../../lib/js/socket.io.js",(function(){po("vs/loader.js",(function(){po("vs/configure.js",(function(){"function"===typeof window.socketLoadedHandler&&window.socketLoadedHandler()}))}))}))},19837:function(e){e.exports=JSON.parse('{"-":"-","Add":"Hinzuf\xfcgen","Add new script":"Neues Skript hinzuf\xfcgen","All files will be accepted":"Alle Dateien werden akzeptiert","April":"April","Are you sure?":"Wirklich sicher?","August":"August","Blockly description":"Erstellen von Regeln durch Grafikbl\xf6cke","Cancel":"Abbrechen","Cannot delete non empty item!":"Kann nicht gel\xf6scht werden, weil noch einige Elementen darin sind!","Change layout":"Layout \xe4ndern","Check blocks":"Bl\xf6cke pr\xfcfen","Check is not active, because javascript adapter is disabled":"Syntax-Check ist nicht aktiv, weil der Javascript Adapter nicht aktiv ist.","Clear search input":"Sucheingabe l\xf6schen","Click on this icon":"Auf dieses Symbol klicken","Close":"Schlie\xdfen","Close all but current":"Alle anderen au\xdfer dem Aktiven schlie\xdfen","Collapse all":"Alles einklappen","Configuration not saved.":"Die Konfiguration ist nicht gespeichert.","Convert blockly to javascript for ever.":"Blockly dauerhaft in Javascript konvertieren.","Copy script":"Skript kopieren","Copy to clipboard":"In die Zwischenablage kopieren","Create new":"Neu erstellen","Create new folder":"Neuen Ordner erstellen","Create new script":"Neues Skript erstellen","Create or edit CRON or time wizard":"CRON- oder Zeit-Assistenten erstellen oder bearbeiten","Dark Theme":"Dunkles Thema","Dark style":"Dunkler Stil","Debug options":"Debug-Optionen","December":"Dezember","Define cron...":"Cron definieren ...","Define schedule...":"Zeitplan definieren ...","Delete":"L\xf6schen","Delete %s":"L\xf6schen %s...","Delete folder":"Ordner l\xf6schen","Delete script":"Skript l\xf6schen","Deselect all":"Alles abw\xe4hlen","Discard changes for %s":"\xc4nderungen f\xfcr %s verwerfen","Done":"Fertig","Drop some files here or click...":"Dateien hier ablegen oder klicken ...","Edit script or just double click":"Skript bearbeiten oder einfach doppelklicken","End search mode":"Suchmodus beenden","Error":"Fehler","Error was found":"Fehler wurde gefunden","Existing scripts will be overwritten.":"Vorhandene Skripte werden \xfcberschrieben.","Expand all":"Alle erweitern","Expert mode":"Expertenmodus","Export":"Export","Export all scripts":"Alle Skripte exportieren","Export blocks":"Bl\xf6cke exportieren","Export selected blocks":"Ausgew\xe4hlte Bl\xf6cke exportieren","February":"Februar","Folder":"Ordner","Friday":"Freitag","Function editor":"Funktions-Editor","ID":"ID","Import":"Import","Import blocks":"Bl\xf6cke importieren","Import error":"Fehler beim Importieren","Import scripts":"Skripte importieren","Insert object ID":"Objekt-ID einf\xfcgen","Instance":"Instanz","Instance is disabled":"Instanz ist deaktiviert","Invalid CRON":"Ung\xfcltiger CRON","It will not be possible to revert this operation.":"Dieser Vorgang kann nicht r\xfcckg\xe4ngig gemacht werden.","JS description":"Regeln erstellen mit JavaScript","January":"Januar","July":"Juli","June":"Juni","Learn More":"Mehr erfahren","Light style":"Heller Stil","Locate file":"Datei zeigen","Log outputs":"Protokoll","March":"M\xe4rz","May":"Mai","Menu":"Men\xfc","Message":"Nachricht","Monday":"Montag","Name":"Name","No active host found":"Kein aktiver Host gefunden","November":"November","October":"Oktober","Ok":"Ok","On weekdays":"An Wochentagen","Pause script":"Skript anhalten","Please select object ID...":"Objekt-ID ausw\xe4hlen ...","Rename":"Umbenennen","Reorder scripts in folders":"Skripte in Ordnern neu ordnen","Repeat":"Wiederholen","Restart":"Neustart","Root folder":"Root-Verzeichnis","Run script":"Skript ausf\xfchren","Saturday":"Samstag","Save":"Speichern","Script":"Skript","Script %s was modified on disk":"Skript \\"%s\\" wurde auf der Festplatte ge\xe4ndert","Script is not running":"Skript l\xe4uft nicht","Search in scripts":"Suche in Skripten","Search...":"Suche...","Select all":"Alles ausw\xe4hlen","September":"September","Show javascript code":"Javascript-Code zeigen","Show only paused scripts":"Nur angehaltene Skripte zeigen","Show only running scripts":"Nur laufende Skripte zeigen","Show only scripts with problems":"Nur Skripte mit Problemen zeigen","Some files will be rejected":"Einige Dateien werden abgelehnt","Sunday":"Sonntag","TS description":"Regeln erstellen mit TypeScript","Thursday":"Donnerstag","Tuesday":"Dienstag","Unknown error":"Unbekannter Fehler","Unknown error!":"Unbekannter Fehler!","Wednesday":"Mittwoch","Yet exists!":"Existiert schon!","copy":"Kopie","file reading has failed: %s":"Das Lesen der Datei ist fehlgeschlagen: %s","file reading was aborted":"Das Lesen der Datei wurde abgebrochen","filter_func":"Funktion","filter_id":"ID","filter_name":"Name","filter_role":"Rolle","filter_room":"Raum","for edit or create script":"zum Bearbeiten oder zum Erstellen eines neues Skripts","no blocks found":"Keine Bl\xf6cke gefunden","no group":"KEINE GRUPPE","not properly connected":"Dieser Block ist mit anderen nicht richtig verbunden.","tooltip_ack":"Best\xe4tigen","tooltip_from":"Von","tooltip_lc":"Zuletzt ge\xe4ndert","tooltip_quality":"Qualit\xe4t","tooltip_ts":"Zeitstempel","tooltip_user":"Benutzer","tooltip_value":"Wert","use seconds":"Sekunden verwenden","Save all":"Alle speichern","Change theme (actual \\"%s\\")":"Thema \xe4ndern (jetzt - \\"%s\\")","Hide logs":"Protokoll ausblenden","Show logs":"Protokoll anzeigen","Rules description":"Regeln erstellen mit WENN-, DANN- und SONST-Bl\xf6cken","help_on_change":"Der Code wird nur ausgef\xfchrt, wenn sich das Ergebnis der Bedingung \xe4ndert. z.B. wenn sich der Temperatur wert \xe4ndert und die Bedingung \\"Wenn die Temperatur gr\xf6\xdfer als 20\xb0C ist\\" lautet, werden die \\"Dann\\" -Aktionen einmal ausgef\xfchrt, wenn die Temperatur \xfcber 20\xb0C liegt. Das n\xe4chste Mal werden die \\"Dann\\" -Aktionen ausgef\xfchrt, wenn die Temperatur unter 20\xb0C gefallen ist und dann wieder \xfcber 20\xb0C ansteigt.","help_just_check":"Der Code wird jedes Mal ausgef\xfchrt, wenn die Bedingung erf\xfcllt ist. z.B. wenn der Temperatur wert sich \xe4ndert und die Bedingung \\"Wenn die Temperatur gr\xf6\xdfer als 20\xb0C ist\\" lautet, werden die \\"Dann\\" -Aktionen jedes Mal ausgef\xfchrt, wenn der Sensor die Temperatur sendet und diese \xfcber 20\xb0C liegt. Bei 21\xb0C, bei 22\xb0C und so weiter.","On condition change":"Bei \xc4nderung des Ergebnis der Bedingung","Just check":"Einfach \xfcberpr\xfcfen","when":"falls","and":"und","then":"dann","or":"oder","else":"sonst","Nothing found":"Nichts gefunden","reset search":"Suche zur\xfccksetzen","Read only ID selected: %s":"Schreibgesch\xfctzte ID ausgew\xe4hlt: %s","OK":"OK","Triggers":"L\xf6st aus","cron":"CRON","wizard":"Assistent","interval":"Intervall","at":"beim","astro":"Astro","on condition change":"bei Zustands\xe4nderung","just check":"einfach pr\xfcfen","Explanation":"Erl\xe4uterung","seconds":"Sekunden","minutes":"Minuten","hours":"Stunden","Every day":"T\xe4glich","milliseconds":"Millisekunden","Copied":"Kopiert","nadir":"Nadir","nightEnd":"astronomische Morgend\xe4mmerung","nauticalDawn":"nautische Morgend\xe4mmerung","dawn":"Morgend\xe4mmerung","sunrise":"Sonnenaufgang","sunriseEnd":"Goldene Morgenstunde","goldenHourEnd":"Vormittag","solarNoon":"(Nach-)Mittag","goldenHour":"Goldene Abendstunde","sunsetStart":"Sonnenuntergang (Anfang)","sunset":"Abendd\xe4mmerung","dusk":"nautische Abendd\xe4mmerung","nauticalDusk":"astronomische Abendd\xe4mmerung","night":"Nacht","one":"einer","two":"zwei","true":"wahr","false":"falsch","search":"Suche","Actions":"Aktionen","Conditions":"Bedingungen","Schedule":"Zeitplan","Start script":"Skript starten","State":"Zustand","State condition":"Zustandsbedingung","Time condition":"Zeitbedingung","Astrological":"Astronomisch","Set state action":"Zustand setzten","Exec":"Exec shell","HTTP Call":"HTTP-Aufruf","Log text":"Protokolltext","Pause":"Pause","on change":"bei \xc4nderung","control":"Steuerung","Say It":"Say It","every hour at 0 minutes":"jede Stunde bei 0 Minuten","On script save or adapter start":"Beim Speichern des Skripts oder beim Starten des Adapters","equal to":"gleich","Actual time of day":"Tats\xe4chliche Tageszeit","with":"mit","Shell command":"Shell-Befehl","URL":"URL","Instance:":"Instanz:","Language:":"Sprache:","Volume":"Volumen","Text:":"Text:","undefined":"nicht definiert","Default":"Standard","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"Sie k\xf6nnen %s im Text verwenden, um den aktuellen Triggerwert anzuzeigen, %id, um die ausgel\xf6ste Objekt-ID zu verwenden, %name, um den ID-Namen des ausgel\xf6sten Objekts anzuzeigen, oder %old, um den alten Triggerwert zu verwenden","Instructions":"Anleitung","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"Sie k\xf6nnen %s in der URL verwenden, um den aktuellen Triggerwert zu verwenden, %id, um die ausgel\xf6ste Objekt-ID zu verwenden, %name, um den ID-Namen des ausgel\xf6sten Objekts anzuzeigen, oder %old, um den alten Triggerwert zu verwenden","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"Sie k\xf6nnen %s im Wert verwenden, um den aktuellen Triggerwert zu verwenden, %id, um die ID des ausgel\xf6sten Objekts zu verwenden, %name, um den ID-Namen des ausgel\xf6sten Objekts anzuzeigen, oder %old, um den alten Triggerwert zu verwenden","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"Sie k\xf6nnen %s im Befehl verwenden, um den aktuellen Triggerwert zu verwenden, %id, um die ausgel\xf6ste Objekt-ID zu verwenden, %name, um den ID-Namen des ausgel\xf6sten Objekts anzuzeigen, oder %old, um den alten Triggerwert zu verwenden","every":"jeder","with offset":"mit Versatz","on update":"beim Aktualisieren","update":"Aktualisieren","Triggers the rule periodically or on some specific time":"L\xf6st periodisch oder zu einem bestimmten Zeitpunkt aus","Triggers the on script saving or the javascript instance restart":"L\xf6st das Speichern des Skripts oder den Neustart der Javascript-Instanz aus","Triggers the rule on update or change of some state":"L\xf6st die Regel beim Aktualisieren oder \xc4ndern eines Zustands aus","Compares the state value with user defined value":"Vergleicht den Zustandswert mit dem benutzerdefinierten Wert","Compares current time with the user specific time":"Vergleicht die aktuelle Zeit mit der benutzerspezifischen Zeit","Compares current time with astrological event":"Vergleicht die aktuelle Zeit mit dem astronomischen Ereignis","Control or update some state":"Zustand steuern oder aktualisieren","Executes some shell command":"F\xfchrt einen Shell-Befehl aus","Make a HTTP get request":"Stellen Sie eine HTTP-Abrufanforderung","Print some text in log":"Drucken Sie einen Text im Protokoll","Make a pause between actions":"Machen Sie eine Pause zwischen den Aktionen","Say some text via sayit adapter":"Sagen Sie einen Text \xfcber den Sayit-Adapter","Telegram":"Telegram","User:":"Benutzer:","all":"alle","Sends message via telegram":"Sendet eine Nachricht per telegram","Sends an email":"Sendet eine E-Mail","Send email":"E-Mail senden","Sends message via pushover":"Sendet eine Nachricht per Pushover","Pushover":"Pushover","Sends message via whatsapp-cmb":"Sendet eine Nachricht \xfcber WhatsApp-Cmb","Whatsapp-cmb":"WhatsApp-cmb","Sends message via Pushsafer":"Sendet eine Nachricht \xfcber Pushsafer","Pushsafer":"Pushsafer","To:":"Zu:","Subject:":"Gegenstand:","Body:":"K\xf6rper:","Title:":"Titel:","Sound:":"Klang:","Priority:":"Priorit\xe4t:","magic":"Magie","quiet":"ruhig","normal":"Normal","high-priority":"hohe Priorit\xe4t","acknowledgment":"Wissen","Phone:":"Telefon:","(optional)":"(optional)","Vibration:":"Vibration:","lowest priority":"niedrigste Priorit\xe4t","lower priority":"geringere Priorit\xe4t","normal priority":"normale Priorit\xe4t","high priority":"hohe Priorit\xe4t","highest priority":"h\xf6chste Priorit\xe4t","default":"Standard","All":"Alle","Write your own code":"Eigenen Code schreiben","User function":"Benutzerfunktion","This is advances option. You can write your own code here and it will be executed on trigger":"Dies ist eine erweiterte Option. Sie k\xf6nnen hier Ihren eigenen Code schreiben, der beim Ausl\xf6sen ausgef\xfchrt wird","greater than":"gr\xf6\xdfer als","offset":"Versatz","Function":"Funktion","greater or equal to":"gr\xf6\xdfer oder gleich","less or equal to":"kleiner oder gleich","less than":"kleiner als","not equal to":"ungleich","[equal]":"[gleich]","[greater or equal]":"[gr\xf6\xdfer oder gleich]","[greater]":"[gr\xf6\xdfer]","[less or equal]":"[kleiner oder gleich]","[less]":"[kleiner]","[not equal]":"[ungleich]","[includes]":"[enth\xe4lt]","[hysteresis]":"[Hysterese]","greater or equal":"gr\xf6\xdfer oder gleich","less or equal":"kleiner oder gleich","includes":"beinhaltet",".":".","()":"()","Mo":"Mo","Tu":"Di","We":"Mi","Th":"Do","Fr":"Fr","Sa":"Sa","Su":"So","Control or update some state with delay":"Zustand mit Verz\xf6gerung steuern oder aktualisieren","Delay":"Verz\xf6gerung","ms":"ms","Set with delay":"Setzen mit Verz\xf6gerung","clear running":"laufende abbrechen","toggle value":"Wert umschalten","Any month":"Jeden Monat","Any":"Egal","with date":"mit Datum","Date":"Datum","Month":"Monat","Januar":"Januar","Februar":"Februar","March ":"M\xe4rz ","Condition":"Bedingung","Limit":"Grenze","The script will be stopped and must be activated manually after debugging. Continue?":"Das Skript wird gestoppt und muss nach dem Debuggen manuell aktiviert werden. Fortsetzen?","Yes":"Ja","Debug instance":"Debug-Instanz","Resume execution":"Ausf\xfchrung fortsetzen","Go to next line":"Gehe zur n\xe4chsten Zeile","Step into function":"Schritt in die Funktion","Step out from function":"Raus aus der Funktion","Stop on exception":"Bei Ausnahme anhalten","Console":"Konsole","Stack":"Stack","Pause execution":"Ausf\xfchrung pausieren","Simulate":"Simulieren","Trigger with value":"Trigger mit Wert","Value":"Wert","Write":"Schreiben","Ack":"Best\xe4tigt","Start":"Start","Filter":"Filter","Instances":"Instanzen","Triggered":"Ausgel\xf6st","Function: executed":"Funktion: ausgef\xfchrt","Operate two states":"Zwei Zust\xe4nde operieren","store in":"speichern in","ID1":"ID1","ID2":"ID2","Operations with two states":"Operationen mit zwei Zust\xe4nden","debug_label":"Debuggen","debug_help":"Dies ist ein spezieller Modus, in dem sich Zust\xe4nde und Objekte nicht \xe4ndern. Im Protokoll werden jedoch nur Informationen zu jeder geplanten \xc4nderung angezeigt.","verbose_label":"Ausf\xfchrliche Protokollausgaben","verbose_help":"F\xfcgt Debug-Ausgaben f\xfcr viele Systembefehle zum Protokoll hinzu","easy":"einfach","for programmers":"f\xfcr Programmierer","for professionals":"f\xfcr Profis","Duplicate name":"Doppelter Name","Empty name is not allowed":"Leerer Name ist nicht zul\xe4ssig","Astrological events today":"Astrologische Ereignisse heute","Show astrological events":"Astrologische Ereignisse anzeigen","Time":"Zeit","Description":"Beschreibung","nextSunrise":"N\xe4chster Sonnenaufgang","nextSunset":"N\xe4chster Sonnenuntergang"}')},86443:function(e){e.exports=JSON.parse('{"-":"-","Add":"Add","Add new script":"Add new script","All files will be accepted":"All files will be accepted","April":"April","Are you sure?":"Are you sure?","August":"August","Blockly description":"Creating rules by graphic blocks","Cancel":"Cancel","Cannot delete non empty item!":"Cannot delete non empty item!","Change layout":"Change layout","Check blocks":"Check blocks","Check is not active, because javascript adapter is disabled":"Check is not active, because Javascript adapter is disabled","Clear search input":"Clear search input","Click on this icon":"Click on this icon","Close":"Close","Close all but current":"Close all but current","Collapse all":"Collapse all","Configuration not saved.":"Configuration not saved.","Convert blockly to javascript for ever.":"Permanently convert Blockly to Javascript.","Copy script":"Copy script","Copy to clipboard":"Copy to clipboard","Create new":"Create new","Create new folder":"Create new folder","Create new script":"Create new script","Create or edit CRON or time wizard":"Create or edit CRON or time wizard","Dark Theme":"Dark theme","Dark style":"Dark style","Debug options":"Debug options","December":"December","Define cron...":"Define cron...","Define schedule...":"Define schedule...","Delete":"Delete","Delete %s":"Delete %s...","Delete folder":"Delete folder","Delete script":"Delete script","Deselect all":"Deselect all","Discard changes for %s":"Discard changes for %s","Done":"Done","Drop some files here or click...":"Drop some files here or click...","Edit script or just double click":"Edit script or just double click","End search mode":"End search mode","Error":"Error","Error was found":"Error was found","Existing scripts will be overwritten.":"Existing scripts will be overwritten.","Expand all":"Expand all","Expert mode":"Expert mode","Export":"Export","Export all scripts":"Export all scripts","Export blocks":"Export blocks","Export selected blocks":"Export selected blocks","February":"February","Folder":"Folder","Friday":"Friday","Function editor":"Function editor","ID":"ID","Import":"Import","Import blocks":"Import blocks","Import error":"Import error","Import scripts":"Import scripts","Insert object ID":"Insert object ID","Instance":"Instance","Instance is disabled":"Instance is disabled","Invalid CRON":"Invalid CRON","It will not be possible to revert this operation.":"It will not be possible to revert this operation.","JS description":"Creating rules by writing Javascript","January":"January","July":"July","June":"June","Learn More":"Learn More","Light style":"Light style","Locate file":"Locate file","Log outputs":"Log outputs","March":"March","May":"May","Menu":"Menu","Message":"Message","Monday":"Monday","Name":"Name","No active host found":"No active host found","November":"November","October":"October","Ok":"Ok","On weekdays":"On weekdays","Pause script":"Pause script","Please select object ID...":"Please select object ID...","Rename":"Rename","Reorder scripts in folders":"Reorder scripts in folders","Repeat":"Repeat","Restart":"Restart","Root folder":"Root folder","Run script":"Run script","Saturday":"Saturday","Save":"Save","Script":"Script","Script %s was modified on disk":"Script %s was modified on disk","Script is not running":"Script is not running","Search in scripts":"Search in scripts","Search...":"Search...","Select all":"Select all","September":"September","Show javascript code":"Show Javascript code","Show only paused scripts":"Show only paused scripts","Show only running scripts":"Show only running scripts","Show only scripts with problems":"Show only scripts with problems","Some files will be rejected":"Some files will be rejected","Sunday":"Sunday","TS description":"Creating rules by writing Typescript","Thursday":"Thursday","Tuesday":"Tuesday","Unknown error":"Unknown error","Unknown error!":"Unknown error!","Wednesday":"Wednesday","Yet exists!":"Yet exists!","copy":"copy","file reading has failed: %s":"file reading has failed: %s","file reading was aborted":"file reading was aborted","filter_func":"Function","filter_id":"ID","filter_name":"Name","filter_role":"Role","filter_room":"Room","for edit or create script":"for edit or create a new script","no blocks found":"No blocks found","no group":"NO GROUP","not properly connected":"This block is not properly connected to other blocks.","tooltip_ack":"Acknowledge","tooltip_from":"From","tooltip_lc":"Last changed","tooltip_quality":"Quality","tooltip_ts":"Timestamp","tooltip_user":"User","tooltip_value":"Value","use seconds":"use seconds","Save all":"Save all","Change theme (actual \\"%s\\")":"Change theme (now - \\"%s\\")","Hide logs":"Hide logs","Show logs":"Show logs","Rules description":"Create rules with IF, THEN, ELSE blocks","help_on_change":"The code will be executed only if the condition result changes. E.g. if triggering on the temperature sensor value and the condition is \\"if temperature is greater than 20\xb0C\\", the \\"then\\" actions will be executed once when temperature is over 20. Next time the \\"then\\" actions will be executed when the temperature fails under 20 and then rises over 20 again.","help_just_check":"The code will be executed only every time when condition is true. E.g. if triggering on the temperature sensor value and the condition is \\"if temperature is greater than 20\xb0C\\", the \\"then\\" actions will be executed every time when sensor sends the temperature and it is over 20\xb0C. By 21\xb0C, by 22\xb0C and so on.","On condition change":"On condition result change","Just check":"Just check","when":"when","and":"and","then":"then","or":"or","else":"else","Nothing found":"Nothing found","reset search":"reset search","Read only ID selected: %s":"Read only ID selected: %s","OK":"OK","Triggers":"Triggers","cron":"CRON","wizard":"Wizard","interval":"interval","at":"at","astro":"Astro","on condition change":"on condition change","just check":"just check","Explanation":"Explanation","seconds":"seconds","minutes":"minutes","hours":"hours","Every day":"Every day","milliseconds":"milliseconds","Copied":"Copied","nadir":"Nadir","nightEnd":"Night end","nauticalDawn":"Nautical dawn","dawn":"Dawn","sunrise":"sunrise","sunriseEnd":"Sunrise end","goldenHourEnd":"End of golden hour","solarNoon":"Solar noon","goldenHour":"Golden hour","sunsetStart":"Sunset start","sunset":"Sunset","dusk":"Dusk","nauticalDusk":"Nautical dusk","night":"Night","one":"one","two":"two","true":"true","false":"false","search":"search","Actions":"Actions","Conditions":"Conditions","Schedule":"Schedule","Start script":"Start script","State":"State","State condition":"State condition","Time condition":"Time condition","Astrological":"Astronomical","Set state action":"Set state action","Exec":"Exec shell","HTTP Call":"HTTP Call","Log text":"Log text","Pause":"Pause","on change":"on change","control":"control","Say It":"Say It","every hour at 0 minutes":"every hour at 0 minutes","On script save or adapter start":"On script save or adapter start","equal to":"equal to","Actual time of day":"Actual time of day","with":"with","Shell command":"Shell command","URL":"URL","Instance:":"Instance:","Language:":"Language:","Volume":"Volume","Text:":"Text:","undefined":"undefined","Default":"Default","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"You can use %s in the text to display current trigger value, %id to use the triggered object ID, %name to show triggered object ID name or %old to use old trigger value","Instructions":"Instructions","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"You can use %s in the URL to use current trigger value, %id to use the triggered object ID, %name to show triggered object ID name or %old to use old trigger value","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"You can use %s in the value to use the current trigger value, %id to use the triggered object ID, %name to show triggered object ID name or %old to use old trigger value","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"You can use %s in the command to use current trigger value, %id to use the triggered object ID, %name to show triggered object ID name or %old to use old trigger value","every":"every","with offset":"with offset","on update":"on update","update":"update","Triggers the rule periodically or on some specific time":"Triggers the rule periodically or on some specific time","Triggers the on script saving or the javascript instance restart":"Triggers the on script saving or the javascript instance restart","Triggers the rule on update or change of some state":"Triggers the rule on update or change of some state","Compares the state value with user defined value":"Compares the state value with user defined value","Compares current time with the user specific time":"Compares current time with the user specific time","Compares current time with astrological event":"Compares current time with astronomical event","Control or update some state":"Control or update some state","Executes some shell command":"Executes some shell command","Make a HTTP get request":"Make a HTTP get request","Print some text in log":"Print some text in log","Make a pause between actions":"Make a pause between actions","Say some text via sayit adapter":"Say some text via sayit adapter","Telegram":"Telegram","User:":"User:","all":"all","Sends message via telegram":"Sends message via telegram","Sends an email":"Sends an email","Send email":"Send email","Sends message via pushover":"Sends message via pushover","Pushover":"Pushover","Sends message via whatsapp-cmb":"Sends message via whatsapp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"Sends message via Pushsafer","Pushsafer":"Pushsafer","To:":"To:","Subject:":"Subject:","Body:":"Body:","Title:":"Title:","Sound:":"Sound:","Priority:":"Priority:","magic":"magic","quiet":"quiet","normal":"normal","high-priority":"high-priority","acknowledgment":"acknowledgment","Phone:":"Phone:","(optional)":"(optional)","Vibration:":"Vibration:","lowest priority":"lowest priority","lower priority":"lower priority","normal priority":"normal priority","high priority":"high priority","highest priority":"highest priority","default":"default","All":"All","Write your own code":"Write your own code","User function":"User function","This is advances option. You can write your own code here and it will be executed on trigger":"This is advances option. You can write your own code here and it will be executed on trigger","greater than":"greater than","offset":"offset","Function":"Function","greater or equal to":"greater or equal to","less or equal to":"less or equal to","less than":"less than","not equal to":"not equal to","[equal]":"[equal]","[greater or equal]":"[greater or equal]","[greater]":"[greater]","[less or equal]":"[less or equal]","[less]":"[less]","[not equal]":"[not equal]","[includes]":"[includes]","[hysteresis]":"[hysteresis]","greater or equal":"greater or equal","less or equal":"less or equal","includes":"includes",".":".","()":"()","Mo":"Mo","Tu":"Tu","We":"We","Th":"Th","Fr":"Fr","Sa":"Sa","Su":"Su","Control or update some state with delay":"Control or update some state with delay","Delay":"Delay","ms":"ms","Set with delay":"Set with delay","clear running":"clear running","toggle value":"toggle value","Any month":"Any month","Any":"Any","with date":"with date","Date":"Date","Month":"Month","Januar":"Januar","Februar":"Februar","March ":"March ","Condition":"Condition","Limit":"Limit","The script will be stopped and must be activated manually after debugging. Continue?":"The script will be stopped and must be activated manually after debugging. Continue?","Yes":"Yes","Debug instance":"Debug instance","Resume execution":"Resume execution","Go to next line":"Go to next line","Step into function":"Step into function","Step out from function":"Step out from function","Stop on exception":"Stop on exception","Console":"Console","Stack":"Stack","Pause execution":"Pause execution","Simulate":"Simulate","Trigger with value":"Trigger with value","Value":"Value","Write":"Write","Ack":"Acknowledged","Start":"Start","Filter":"Filter","Instances":"Instances","Triggered":"Triggered","Function: executed":"Function: executed","Operate two states":"Operate two states","store in":"store in","ID1":"ID1","ID2":"ID2","Operations with two states":"Operations with two states","debug_label":"Debug","debug_help":"This is a special mode in which states and objects will not change. But only information about each planned change will be displayed in the protocol.","verbose_label":"Verbose log outputs","verbose_help":"Adds debug output to the log for many system commands","easy":"easy","for programmers":"for programmers","for professionals":"for professionals","Duplicate name":"Duplicate name","Empty name is not allowed":"Empty name is not allowed","Astrological events today":"Astrological events today","Show astrological events":"Show astrological events","Time":"Time","Description":"Description","nextSunrise":"Next Sunrise","nextSunset":"Next sunset"}')},55117:function(e){e.exports=JSON.parse('{"-":"-","Add":"A\xf1adir","Add new script":"Agregar nuevo script","All files will be accepted":"Todos los archivos ser\xe1n aceptados.","April":"abril","Are you sure?":"\xbfEst\xe1s seguro?","August":"agosto","Blockly description":"Crear reglas por bloques gr\xe1ficos","Cancel":"Cancelar","Cannot delete non empty item!":"\xa1No se puede eliminar un elemento no vac\xedo!","Change layout":"Cambia el dise\xf1o","Check blocks":"Comprobar bloques","Check is not active, because javascript adapter is disabled":"La comprobaci\xf3n no est\xe1 activa porque el adaptador Javascript est\xe1 desactivado","Clear search input":"Borrar entrada de b\xfasqueda","Click on this icon":"Haga clic en este \xedcono","Close":"Cerrar","Close all but current":"Cerrar todo menos el actual","Collapse all":"Desplegar todo","Configuration not saved.":"Configuraci\xf3n no guardada.","Convert blockly to javascript for ever.":"Convierta instant\xe1neamente en bloque a Javascript.","Copy script":"Copiar guion","Copy to clipboard":"Copiar al portapapeles","Create new":"Crear nuevo","Create new folder":"Crear nueva carpeta","Create new script":"Crear nuevo script","Create or edit CRON or time wizard":"Crear o editar CRON o asistente de tiempo","Dark Theme":"Tema oscuro","Dark style":"Estilo oscuro","Debug options":"Opciones de depuraci\xf3n","December":"diciembre","Define cron...":"Definir cron ...","Define schedule...":"Definir horario ...","Delete":"Eliminar","Delete %s":"Eliminar %s ...","Delete folder":"Eliminar carpeta","Delete script":"Eliminar gui\xf3n","Deselect all":"Deseleccionar todo","Discard changes for %s":"Descartar cambios para %s","Done":"Hecho","Drop some files here or click...":"Suelta algunos archivos aqu\xed o haz clic ...","Edit script or just double click":"Editar gui\xf3n o simplemente hacer doble clic","End search mode":"Fin del modo de b\xfasqueda","Error":"Error","Error was found":"Error encontrado","Existing scripts will be overwritten.":"Los guiones existentes se sobrescribir\xe1n.","Expand all":"Expandir todo","Expert mode":"Modo experto","Export":"Exportar","Export all scripts":"Exportar todos los scripts","Export blocks":"Exportar bloques","Export selected blocks":"Exportar bloques seleccionados","February":"febrero","Folder":"Carpeta","Friday":"viernes","Function editor":"Editor de funciones","ID":"CARN\xc9 DE IDENTIDAD","Import":"Importar","Import blocks":"Importar bloques","Import error":"Error de importaci\xf3n","Import scripts":"Importar guiones","Insert object ID":"Insertar ID de objeto","Instance":"Ejemplo","Instance is disabled":"La instancia est\xe1 deshabilitada","Invalid CRON":"CRON inv\xe1lido","It will not be possible to revert this operation.":"No ser\xe1 posible revertir esta operaci\xf3n.","JS description":"Crear reglas escribiendo Javascript","January":"enero","July":"julio","June":"junio","Learn More":"Aprende m\xe1s","Light style":"Estilo ligero","Locate file":"Localizar el archivo","Log outputs":"Salidas de registro","March":"marzo","May":"Mayo","Menu":"Men\xfa","Message":"Mensaje","Monday":"lunes","Name":"Nombre","No active host found":"No se encontr\xf3 un host activo","November":"noviembre","October":"octubre","Ok":"Okay","On weekdays":"De lunes a viernes","Pause script":"Pausar guion","Please select object ID...":"Por favor, seleccione la ID del objeto ...","Rename":"Rebautizar","Reorder scripts in folders":"Reordenar guiones en carpetas","Repeat":"Repetir","Restart":"Reiniciar","Root folder":"Carpeta ra\xedz","Run script":"Ejecutar gui\xf3n","Saturday":"s\xe1bado","Save":"Salvar","Script":"Gui\xf3n","Script %s was modified on disk":"El script %s fue modificado en el disco","Script is not running":"El script no se est\xe1 ejecutando","Search in scripts":"Buscar en guiones","Search...":"Buscar...","Select all":"Seleccionar todo","September":"septiembre","Show javascript code":"Mostrar c\xf3digo Javascript","Show only paused scripts":"Mostrar solo secuencias de comandos pausadas","Show only running scripts":"Mostrar solo scripts en ejecuci\xf3n","Show only scripts with problems":"Mostrar solo guiones con problemas","Some files will be rejected":"Algunos archivos ser\xe1n rechazados","Sunday":"domingo","TS description":"Crear reglas escribiendo el mecanografiado","Thursday":"jueves","Tuesday":"martes","Unknown error":"Error desconocido","Unknown error!":"\xa1Error desconocido!","Wednesday":"mi\xe9rcoles","Yet exists!":"\xa1Sin embargo existe!","copy":"Copiar","file reading has failed: %s":"la lectura del archivo ha fallado: %s","file reading was aborted":"la lectura del archivo fue abortada","filter_func":"Funci\xf3n","filter_id":"CARN\xc9 DE IDENTIDAD","filter_name":"Nombre","filter_role":"Papel","filter_room":"Habitaci\xf3n","for edit or create script":"para editar o crear un nuevo script","no blocks found":"No se encontraron bloques","no group":"NO GRUPO","not properly connected":"Este bloque no est\xe1 conectado correctamente a otros bloques.","tooltip_ack":"Reconocer","tooltip_from":"De","tooltip_lc":"\xdaltimo cambio","tooltip_quality":"Calidad","tooltip_ts":"Marca de tiempo","tooltip_user":"Usuario","tooltip_value":"Valor","use seconds":"usar segundos","Save all":"Salvar a todos","Change theme (actual \\"%s\\")":"Cambiar tema (ahora - \\"%s\\")","Hide logs":"Ocultar registros","Show logs":"Mostrar registros","Rules description":"Crea reglas con bloques IF, THEN, ELSE","help_on_change":"El c\xf3digo se ejecutar\xe1 solo si cambia el resultado de la condici\xf3n. P.ej. si se activa en el valor del sensor de temperatura y la condici\xf3n es \\"si la temperatura es superior a 20 \xb0 C\\", las acciones \\"entonces\\" se ejecutar\xe1n una vez cuando la temperatura sea superior a 20. La pr\xf3xima vez, las acciones \\"entonces\\" se ejecutar\xe1n cuando la temperatura falla por debajo de 20 y luego sube por encima de 20 nuevamente.","help_just_check":"El c\xf3digo se ejecutar\xe1 solo cada vez que la condici\xf3n sea verdadera. P.ej. si se activa en el valor del sensor de temperatura y la condici\xf3n es \\"si la temperatura es superior a 20 \xb0 C\\", las acciones \\"entonces\\" se ejecutar\xe1n cada vez que el sensor env\xede la temperatura y supere los 20 \xb0 C. Por 21 \xb0 C, por 22 \xb0 C y as\xed sucesivamente.","On condition change":"En condici\xf3n de cambio","Just check":"S\xf3lo revisa","when":"cuando","and":"y","then":"entonces","or":"o","else":"dem\xe1s","Nothing found":"Nada Encontrado","reset search":"restablecer la b\xfasqueda","Read only ID selected: %s":"ID de solo lectura seleccionado: %s","OK":"OK","Triggers":"Disparadores","cron":"CRON","wizard":"Wizard","interval":"intervalo","at":"a","astro":"astro","on condition change":"con cambio de condici\xf3n","just check":"S\xf3lo revisa","Explanation":"Explicaci\xf3n","seconds":"segundos","minutes":"minutos","hours":"horas","Every day":"Diario","milliseconds":"milisegundos","Copied":"Copiado","nadir":"nadir","nightEnd":"Fin de la noche","nauticalDawn":"Amanecer n\xe1utico","dawn":"Amanecer","sunrise":"amanecer","sunriseEnd":"Final del amanecer","goldenHourEnd":"Fin de la hora dorada","solarNoon":"Mediod\xeda solar","goldenHour":"hora dorada","sunsetStart":"Inicio al atardecer","sunset":"puesta de sol","dusk":"Oscuridad","nauticalDusk":"Atardecer n\xe1utico","night":"Noche","one":"uno","two":"dos","true":"cierto","false":"falso","search":"buscar","Actions":"Comportamiento","Conditions":"Condiciones","Schedule":"Calendario","Start script":"Iniciar guion","State":"Expresar","State condition":"Condici\xf3n del estado","Time condition":"Condici\xf3n de tiempo","Astrological":"Astron\xf3mico","Set state action":"Establecer acci\xf3n estatal","Exec":"Ejecutivo shell","HTTP Call":"Llamada HTTP","Log text":"Texto de registro","Pause":"Pausa","on change":"en el cambio","control":"control","Say It":"Say It","every hour at 0 minutes":"cada hora a los 0 minutos","On script save or adapter start":"Al guardar el script o al iniciar el adaptador","equal to":"igual a","Actual time of day":"Hora real del d\xeda","with":"con","Shell command":"Comando de Shell","URL":"URL","Instance:":"Ejemplo:","Language:":"Idioma:","Volume":"Volumen","Text:":"Texto:","undefined":"indefinido","Default":"Defecto","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"Puede usar %s en el texto para mostrar el valor de activaci\xf3n actual, %id para usar el ID de objeto activado, %name para mostrar el nombre de ID de objeto activado o %old para usar el valor de activaci\xf3n antiguo","Instructions":"Instrucciones","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"Puede usar %s en la URL para usar el valor de activaci\xf3n actual, %id para usar el ID de objeto activado, %name para mostrar el nombre de ID de objeto activado o %old para usar el valor de activaci\xf3n antiguo","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"Puede usar %s en el valor para usar el valor de activaci\xf3n actual, %id para usar el ID de objeto activado, %name para mostrar el nombre de ID de objeto activado o %old para usar el valor de activaci\xf3n antiguo","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"Puede usar %s en el comando para usar el valor de activaci\xf3n actual, %id para usar el ID de objeto activado, %name para mostrar el nombre de ID de objeto activado o %old para usar el valor de activaci\xf3n anterior","every":"cada","with offset":"con desplazamiento","on update":"en actualizaci\xf3n","update":"actualizar","Triggers the rule periodically or on some specific time":"Activa la regla peri\xf3dicamente o en un momento espec\xedfico","Triggers the on script saving or the javascript instance restart":"Activa el guardado de la secuencia de comandos o el reinicio de la instancia de JavaScript","Triggers the rule on update or change of some state":"Activa la regla de actualizaci\xf3n o cambio de alg\xfan estado","Compares the state value with user defined value":"Compara el valor del estado con el valor definido por el usuario","Compares current time with the user specific time":"Compara la hora actual con la hora espec\xedfica del usuario","Compares current time with astrological event":"Compara la hora actual con un evento astron\xf3mico","Control or update some state":"Controlar o actualizar alg\xfan estado","Executes some shell command":"Ejecuta alg\xfan comando de shell","Make a HTTP get request":"Realizar una solicitud de obtenci\xf3n HTTP","Print some text in log":"Imprime texto en el registro","Make a pause between actions":"Hacer una pausa entre acciones","Say some text via sayit adapter":"Di un mensaje de texto a trav\xe9s del adaptador sayit","Telegram":"Telegrama","User:":"Usuario:","all":"todos","Sends message via telegram":"Env\xeda mensaje por telegrama","Sends an email":"Env\xeda un correo electr\xf3nico","Send email":"Enviar correo electr\xf3nico","Sends message via pushover":"Env\xeda un mensaje a trav\xe9s de un pushover","Pushover":"Persona f\xe1cil de convencer","Sends message via whatsapp-cmb":"Env\xeda mensaje v\xeda whatsapp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"Env\xeda mensaje a trav\xe9s de Pushsafer","Pushsafer":"Pushsafer","To:":"A:","Subject:":"Sujeto:","Body:":"Cuerpo:","Title:":"T\xedtulo:","Sound:":"Sonido:","Priority:":"Prioridad:","magic":"magia","quiet":"tranquilo","normal":"normal","high-priority":"alta prioridad","acknowledgment":"Reconocimiento","Phone:":"Tel\xe9fono:","(optional)":"(Opcional)","Vibration:":"Vibraci\xf3n:","lowest priority":"prioridad m\xe1s baja","lower priority":"prioridad m\xe1s baja","normal priority":"prioridad normal","high priority":"alta prioridad","highest priority":"m\xe1s alta prioridad","default":"defecto","All":"Todos","Write your own code":"Escribe tu propio c\xf3digo","User function":"Funci\xf3n de usuario","This is advances option. You can write your own code here and it will be executed on trigger":"Esta es la opci\xf3n de avances. Puede escribir su propio c\xf3digo aqu\xed y se ejecutar\xe1 en el disparador","greater than":"mas grande que","offset":"compensar","Function":"Funci\xf3n","greater or equal to":"mayor o igual a","less or equal to":"menor o igual a","less than":"menos que","not equal to":"no igual a","[equal]":"[igual]","[greater or equal]":"[mayor o igual]","[greater]":"[mayor que]","[less or equal]":"[menor o igual]","[less]":"[menos]","[not equal]":"[no es igual]","[includes]":"[incluye]","[hysteresis]":"[hist\xe9resis]","greater or equal":"mayor o igual","less or equal":"menor o igual","includes":"incluye",".":".","()":"()","Mo":"Mes","Tu":"Tu","We":"3","Th":"4","Fr":"P.","Sa":"Sa","Su":"Su","Control or update some state with delay":"Controlar o actualizar alg\xfan estado con retraso","Delay":"Demora","ms":"ms","Set with delay":"Establecer con retraso","clear running":"carrera clara","toggle value":"alternar valor","Any month":"Cualquier mes","Any":"Alguna","with date":"con fecha","Date":"Fecha","Month":"Mes","Januar":"Enero","Februar":"Februar","March ":"marzo","Condition":"Condici\xf3n","Limit":"L\xedmite","The script will be stopped and must be activated manually after debugging. Continue?":"El script se detendr\xe1 y deber\xe1 activarse manualmente despu\xe9s de la depuraci\xf3n. \xbfContinuar?","Yes":"s\xed","Debug instance":"Instancia de depuraci\xf3n","Resume execution":"Reanudar ejecuci\xf3n","Go to next line":"Ir a la siguiente l\xednea","Step into function":"Entra en funci\xf3n","Step out from function":"Sal de la funci\xf3n","Stop on exception":"Det\xe9ngase en excepci\xf3n","Console":"Consola","Stack":"Stack","Pause execution":"Pausar ejecuci\xf3n","Simulate":"Simular","Trigger with value":"Activar con valor","Value":"Valor","Write":"Escribir","Ack":"Admitido","Start":"Comienzo","Filter":"Filtrar","Instances":"Instancias","Triggered":"Motivado","Function: executed":"Funci\xf3n: ejecutada","Operate two states":"Operar dos estados","store in":"almacenar en","ID1":"ID1","ID2":"ID2","Operations with two states":"Operaciones con dos estados","debug_label":"Depurar","debug_help":"Este es un modo especial en el que los estados y los objetos no cambiar\xe1n. Pero solo se mostrar\xe1 informaci\xf3n sobre cada cambio planificado en el protocolo.","verbose_label":"Salidas de registro detalladas","verbose_help":"Agrega salida de depuraci\xf3n al registro para muchos comandos del sistema","easy":"f\xe1cil","for programmers":"para programadores","for professionals":"para profesionales","Duplicate name":"Nombre duplicado","Empty name is not allowed":"No se permite el nombre vac\xedo","Astrological events today":"Eventos astrol\xf3gicos hoy","Show astrological events":"Mostrar eventos astrol\xf3gicos","Time":"Tiempo","Description":"Descripci\xf3n","nextSunrise":"pr\xf3ximo amanecer","nextSunset":"Pr\xf3xima puesta de sol"}')},86115:function(e){e.exports=JSON.parse('{"-":"-","Add":"Ajouter","Add new script":"Ajouter un nouveau script","All files will be accepted":"Tous les fichiers seront accept\xe9s","April":"avril","Are you sure?":"\xcates-vous s\xfbr?","August":"ao\xfbt","Blockly description":"Cr\xe9ation de r\xe8gles par blocs graphiques","Cancel":"Annuler","Cannot delete non empty item!":"Impossible de supprimer un \xe9l\xe9ment non vide!","Change layout":"Changer la disposition","Check blocks":"V\xe9rifier les blocs","Check is not active, because javascript adapter is disabled":"La v\xe9rification n\'est pas active, car l\'adaptateur Javascript est d\xe9sactiv\xe9","Clear search input":"Effacer la recherche","Click on this icon":"Cliquez sur cette ic\xf4ne","Close":"proche","Close all but current":"Ferme tout sauf courant","Collapse all":"R\xe9duire tout","Configuration not saved.":"Configuration non enregistr\xe9e.","Convert blockly to javascript for ever.":"Convertissez instantan\xe9ment en Javascript.","Copy script":"Copier le script","Copy to clipboard":"Copier dans le presse-papier","Create new":"Cr\xe9er un nouveau","Create new folder":"Cr\xe9er un nouveau dossier","Create new script":"Cr\xe9er un nouveau script","Create or edit CRON or time wizard":"Cr\xe9er ou \xe9diter CRON ou un assistant de temps","Dark Theme":"Th\xe8me sombre","Dark style":"Style sombre","Debug options":"Options de d\xe9bogage","December":"d\xe9cembre","Define cron...":"D\xe9finir le cron ...","Define schedule...":"D\xe9finir le calendrier ...","Delete":"Effacer","Delete %s":"Supprimer %s ...","Delete folder":"Supprimer le dossier","Delete script":"Supprimer le script","Deselect all":"Tout d\xe9selectionner","Discard changes for %s":"Ignorer les modifications pour %s","Done":"Termin\xe9","Drop some files here or click...":"D\xe9poser des fichiers ici ou cliquez sur ...","Edit script or just double click":"Modifiez le script ou double-cliquez simplement sur","End search mode":"Fin du mode de recherche","Error":"Erreur","Error was found":"Une erreur a \xe9t\xe9 trouv\xe9e","Existing scripts will be overwritten.":"Les scripts existants seront \xe9cras\xe9s.","Expand all":"D\xe9velopper tout","Expert mode":"Mode expert","Export":"Exportation","Export all scripts":"Exporter tous les scripts","Export blocks":"Blocs d\'exportation","Export selected blocks":"Exporter les blocs s\xe9lectionn\xe9s","February":"f\xe9vrier","Folder":"Dossier","Friday":"Vendredi","Function editor":"\xc9diteur de fonction","ID":"ID","Import":"Importation","Import blocks":"Blocs d\'importation","Import error":"Erreur d\'importation","Import scripts":"Importer des scripts","Insert object ID":"Ins\xe9rer un identifiant d\'objet","Instance":"Exemple","Instance is disabled":"L\'instance est d\xe9sactiv\xe9e","Invalid CRON":"CRON invalide","It will not be possible to revert this operation.":"Il ne sera pas possible de revenir sur cette op\xe9ration.","JS description":"Cr\xe9er des r\xe8gles en \xe9crivant du Javascript","January":"janvier","July":"juillet","June":"juin","Learn More":"Apprendre encore plus","Light style":"Style de lumi\xe8re","Locate file":"Localiser le fichier","Log outputs":"Journal des sorties","March":"Mars","May":"Mai","Menu":"M e n u","Message":"Message","Monday":"Lundi","Name":"Nom","No active host found":"Aucun h\xf4te actif trouv\xe9","November":"novembre","October":"octobre","Ok":"D\'accord","On weekdays":"En semaine","Pause script":"Script de pause","Please select object ID...":"Veuillez s\xe9lectionner l\'ID d\'objet ...","Rename":"Renommer","Reorder scripts in folders":"R\xe9organiser les scripts dans des dossiers","Repeat":"R\xe9p\xe9ter","Restart":"Red\xe9marrer","Root folder":"Dossier racine","Run script":"Script de lancement","Saturday":"samedi","Save":"sauver","Script":"Sc\xe9nario","Script %s was modified on disk":"Le script %s a \xe9t\xe9 modifi\xe9 sur le disque","Script is not running":"Le script n\'est pas en cours d\'ex\xe9cution","Search in scripts":"Rechercher dans les scripts","Search...":"Chercher...","Select all":"Tout s\xe9lectionner","September":"septembre","Show javascript code":"Afficher le code Javascript","Show only paused scripts":"Afficher uniquement les scripts en pause","Show only running scripts":"Afficher uniquement les scripts en cours d\'ex\xe9cution","Show only scripts with problems":"Afficher uniquement les scripts avec des probl\xe8mes","Some files will be rejected":"Certains fichiers seront rejet\xe9s","Sunday":"dimanche","TS description":"Cr\xe9er des r\xe8gles en \xe9crivant des caract\xe8res dactylographi\xe9s","Thursday":"Jeudi","Tuesday":"Mardi","Unknown error":"Erreur inconnue","Unknown error!":"Erreur inconnue!","Wednesday":"Mercredi","Yet exists!":"Pourtant existe!","copy":"copie","file reading has failed: %s":"La lecture du fichier a \xe9chou\xe9: %s","file reading was aborted":"la lecture du fichier a \xe9t\xe9 abandonn\xe9e","filter_func":"Une fonction","filter_id":"ID","filter_name":"Nom","filter_role":"R\xf4le","filter_room":"Pi\xe8ce","for edit or create script":"pour \xe9diter ou cr\xe9er un nouveau script","no blocks found":"Aucun bloc trouv\xe9","no group":"PAS DE GROUPE","not properly connected":"Ce bloc n\'est pas correctement connect\xe9 \xe0 d\'autres blocs.","tooltip_ack":"Reconna\xeetre","tooltip_from":"De","tooltip_lc":"Derni\xe8re modification","tooltip_quality":"Qualit\xe9","tooltip_ts":"Horodatage","tooltip_user":"Utilisateur","tooltip_value":"Valeur","use seconds":"utiliser les secondes","Save all":"Sauver tous","Change theme (actual \\"%s\\")":"Changer de th\xe8me (maintenant - \\"%s\\")","Hide logs":"Masquer les journaux","Show logs":"Afficher les journaux","Rules description":"Cr\xe9er des r\xe8gles avec des blocs IF, THEN, ELSE","help_on_change":"Le code ne sera ex\xe9cut\xe9 que si le r\xe9sultat de la condition change. Par exemple. si le d\xe9clenchement sur la valeur du capteur de temp\xe9rature et que la condition est \xabsi la temp\xe9rature est sup\xe9rieure \xe0 20 \xb0 C\xbb, les actions \xabalors\xbb seront ex\xe9cut\xe9es une fois lorsque la temp\xe9rature est sup\xe9rieure \xe0 20. La prochaine fois, les actions \xabalors\xbb seront ex\xe9cut\xe9es lorsque la temp\xe9rature \xe9choue sous 20 puis remonte au-dessus de 20.","help_just_check":"Le code ne sera ex\xe9cut\xe9 que chaque fois que la condition est vraie. Par exemple. si d\xe9clenchement sur la valeur du capteur de temp\xe9rature et que la condition est \xabsi la temp\xe9rature est sup\xe9rieure \xe0 20 \xb0 C\xbb, les actions \xabalors\xbb seront ex\xe9cut\xe9es \xe0 chaque fois que le capteur envoie la temp\xe9rature et qu\'elle est sup\xe9rieure \xe0 20 \xb0 C. \xc0 21 \xb0 C, \xe0 22 \xb0 C et ainsi de suite.","On condition change":"En cas de changement de condition","Just check":"V\xe9rifiez simplement","when":"lorsque","and":"et","then":"alors","or":"ou","else":"autre","Nothing found":"Rien n\'a \xe9t\xe9 trouv\xe9","reset search":"R\xe9initialiser la recherche","Read only ID selected: %s":"ID en lecture seule s\xe9lectionn\xe9: %s","OK":"OK","Triggers":"D\xe9clencheurs","cron":"CRON","wizard":"Wizard","interval":"intervalle","at":"\xe0","astro":"astro","on condition change":"sur changement de condition","just check":"V\xe9rifiez simplement","Explanation":"Explication","seconds":"secondes","minutes":"minutes","hours":"les heures","Every day":"Tous les jours","milliseconds":"millisecondes","Copied":"Copi\xe9","nadir":"nadir","nightEnd":"Fin de nuit","nauticalDawn":"Aube nautique","dawn":"Aube","sunrise":"lever du soleil","sunriseEnd":"Fin du lever du soleil","goldenHourEnd":"Fin de l\'heure d\'or","solarNoon":"Midi solaire","goldenHour":"Heure d\'or","sunsetStart":"D\xe9but du coucher du soleil","sunset":"le coucher du soleil","dusk":"Cr\xe9puscule","nauticalDusk":"Cr\xe9puscule nautique","night":"Nuit","one":"une","two":"deux","true":"vrai","false":"faux","search":"chercher","Actions":"Actions","Conditions":"Conditions","Schedule":"Horaire","Start script":"Lancer le script","State":"\xc9tat","State condition":"\xc9tat condition","Time condition":"Condition de temps","Astrological":"Astronomique","Set state action":"D\xe9finir l\'action de l\'\xe9tat","Exec":"Exec shell","HTTP Call":"Appel HTTP","Log text":"Texte du journal","Pause":"Pause","on change":"sur le changement","control":"contr\xf4ler","Say It":"Say It","every hour at 0 minutes":"toutes les heures \xe0 0 minute","On script save or adapter start":"Lors de l\'enregistrement du script ou du d\xe9marrage de l\'adaptateur","equal to":"\xe9gal \xe0","Actual time of day":"Heure r\xe9elle de la journ\xe9e","with":"avec","Shell command":"Commande Shell","URL":"URL","Instance:":"Exemple:","Language:":"Langue:","Volume":"Le volume","Text:":"Texte:","undefined":"ind\xe9fini","Default":"D\xe9faut","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"Vous pouvez utiliser %s dans le texte pour afficher la valeur de d\xe9clenchement actuelle, %id pour utiliser l\'ID de l\'objet d\xe9clench\xe9, %name pour afficher le nom de l\'ID de l\'objet d\xe9clench\xe9 ou %old pour utiliser l\'ancienne valeur de d\xe9clenchement","Instructions":"Instructions","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"Vous pouvez utiliser %s dans l\'URL pour utiliser la valeur de d\xe9clenchement actuelle, %id pour utiliser l\'ID de l\'objet d\xe9clench\xe9, %name pour afficher le nom de l\'ID de l\'objet d\xe9clench\xe9 ou %old pour utiliser l\'ancienne valeur de d\xe9clenchement","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"Vous pouvez utiliser %s dans la valeur pour utiliser la valeur de d\xe9clenchement actuelle, %id pour utiliser l\'ID de l\'objet d\xe9clench\xe9, %name pour afficher le nom de l\'ID de l\'objet d\xe9clench\xe9 ou %old pour utiliser l\'ancienne valeur de d\xe9clenchement","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"Vous pouvez utiliser %s dans la commande pour utiliser la valeur de d\xe9clenchement actuelle, %id pour utiliser l\'ID de l\'objet d\xe9clench\xe9, %name pour afficher le nom de l\'ID de l\'objet d\xe9clench\xe9 ou %old pour utiliser l\'ancienne valeur de d\xe9clenchement","every":"chaque","with offset":"avec offset","on update":"sur mise \xe0 jour","update":"mettre \xe0 jour","Triggers the rule periodically or on some specific time":"D\xe9clenche la r\xe8gle p\xe9riodiquement ou \xe0 une heure pr\xe9cise","Triggers the on script saving or the javascript instance restart":"D\xe9clenche l\'enregistrement du script ou le red\xe9marrage de l\'instance javascript","Triggers the rule on update or change of some state":"D\xe9clenche la r\xe8gle sur la mise \xe0 jour ou le changement d\'un \xe9tat","Compares the state value with user defined value":"Compare la valeur d\'\xe9tat avec la valeur d\xe9finie par l\'utilisateur","Compares current time with the user specific time":"Compare l\'heure actuelle avec l\'heure sp\xe9cifique de l\'utilisateur","Compares current time with astrological event":"Compare l\'heure actuelle avec un \xe9v\xe9nement astronomique","Control or update some state":"Contr\xf4ler ou mettre \xe0 jour un \xe9tat","Executes some shell command":"Ex\xe9cute une commande shell","Make a HTTP get request":"Faire une requ\xeate HTTP Get","Print some text in log":"Imprimer du texte dans le journal","Make a pause between actions":"Faites une pause entre les actions","Say some text via sayit adapter":"Dites du texte via l\'adaptateur sayit","Telegram":"T\xe9l\xe9gramme","User:":"Utilisateur:","all":"tout","Sends message via telegram":"Envoie un message par t\xe9l\xe9gramme","Sends an email":"Envoie un e-mail","Send email":"Envoyer un e-mail","Sends message via pushover":"Envoie un message via pushover","Pushover":"Pushover","Sends message via whatsapp-cmb":"Envoie un message via whatsapp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"Envoie un message via Pushsafer","Pushsafer":"Pushsafer","To:":"\xc0:","Subject:":"Sujet:","Body:":"Corps:","Title:":"Titre:","Sound:":"Sonner:","Priority:":"Priorit\xe9:","magic":"la magie","quiet":"calmer","normal":"Ordinaire","high-priority":"haute priorit\xe9","acknowledgment":"reconnaissance","Phone:":"T\xe9l\xe9phone:","(optional)":"(optionnel)","Vibration:":"Vibration:","lowest priority":"priorit\xe9 la plus basse","lower priority":"priorit\xe9 inf\xe9rieure","normal priority":"priorit\xe9 normale","high priority":"haute priorit\xe9","highest priority":"priorit\xe9 la plus \xe9lev\xe9e","default":"d\xe9faut","All":"Tout","Write your own code":"\xc9crivez votre propre code","User function":"Fonction utilisateur","This is advances option. You can write your own code here and it will be executed on trigger":"C\'est une option avanc\xe9e. Vous pouvez \xe9crire votre propre code ici et il sera ex\xe9cut\xe9 au d\xe9clenchement","greater than":"plus grand que","offset":"d\xe9calage","Function":"Fonction","greater or equal to":"sup\xe9rieur ou \xe9gal \xe0","less or equal to":"inf\xe9rieur ou \xe9gal \xe0","less than":"moins que","not equal to":"pas \xe9gal \xe0","[equal]":"[\xe9gal]","[greater or equal]":"[sup\xe9rieur ou \xe9gal]","[greater]":"[plus grand]","[less or equal]":"[inf\xe9rieur ou \xe9gal]","[less]":"[moins]","[not equal]":"[in\xe9gal]","[includes]":"[comprend]","[hysteresis]":"[hyst\xe9r\xe8se]","greater or equal":"sup\xe9rieur ou \xe9gal","less or equal":"inf\xe9rieur ou \xe9gal","includes":"comprend",".":".","()":"()","Mo":"Mo","Tu":"Tu","We":"3","Th":"4","Fr":"Fr","Sa":"Sa","Su":"Su","Control or update some state with delay":"Contr\xf4ler ou mettre \xe0 jour un \xe9tat avec un d\xe9lai","Delay":"Retard","ms":"ms","Set with delay":"Set avec retard","clear running":"course claire","toggle value":"valeur de bascule","Any month":"N\'importe quel mois","Any":"Tout","with date":"avec date","Date":"Date","Month":"Mois","Januar":"Janvier","Februar":"F\xe9vrier","March ":"mars","Condition":"\xc9tat","Limit":"Limite","The script will be stopped and must be activated manually after debugging. Continue?":"Le script sera arr\xeat\xe9 et doit \xeatre activ\xe9 manuellement apr\xe8s le d\xe9bogage. Continuez?","Yes":"Oui","Debug instance":"Instance de d\xe9bogage","Resume execution":"Reprendre l\'ex\xe9cution","Go to next line":"Aller \xe0 la ligne suivante","Step into function":"Entrez dans la fonction","Step out from function":"Sortez de la fonction","Stop on exception":"Arr\xeat sur exception","Console":"Console","Stack":"Stack","Pause execution":"Suspendre l\'ex\xe9cution","Simulate":"Simuler","Trigger with value":"D\xe9clencheur avec valeur","Value":"Valeur","Write":"\xc9crivez","Ack":"Reconnu","Start":"D\xe9but","Filter":"Filtre","Instances":"Instances","Triggered":"D\xe9clench\xe9","Function: executed":"Fonction\xa0: ex\xe9cut\xe9e","Operate two states":"Op\xe9rer deux \xe9tats","store in":"stocker dans","ID1":"ID1","ID2":"ID2","Operations with two states":"Op\xe9rations \xe0 deux \xe9tats","debug_label":"D\xe9boguer","debug_help":"Il s\'agit d\'un mode sp\xe9cial dans lequel les \xe9tats et les objets ne changeront pas. Mais seules les informations sur chaque changement pr\xe9vu seront affich\xe9es dans le protocole.","verbose_label":"Sorties de journal d\xe9taill\xe9es","verbose_help":"Ajoute une sortie de d\xe9bogage au journal pour de nombreuses commandes syst\xe8me","easy":"facile","for programmers":"pour les programmeurs","for professionals":"pour les professionnels","Duplicate name":"Nom en double","Empty name is not allowed":"Le nom vide n\'est pas autoris\xe9","Astrological events today":"\xc9v\xe9nements astrologiques aujourd\'hui","Show astrological events":"Afficher les \xe9v\xe9nements astrologiques","Time":"Temps","Description":"Description","nextSunrise":"Prochain lever de soleil","nextSunset":"Prochain coucher de soleil"}')},79399:function(e){e.exports=JSON.parse('{"-":"-","Add":"Inserisci","Add new script":"Aggiungi nuovo script","All files will be accepted":"Tutti i file saranno accettati","April":"aprile","Are you sure?":"Sei sicuro?","August":"agosto","Blockly description":"Creazione di regole tramite blocchi grafici","Cancel":"Annulla","Cannot delete non empty item!":"Impossibile eliminare l\'elemento non vuoto!","Change layout":"Cambia layout","Check blocks":"Controlla i blocchi","Check is not active, because javascript adapter is disabled":"Il controllo non \xe8 attivo perch\xe9 l\'adattatore Javascript \xe8 disabilitato","Clear search input":"Cancella input di ricerca","Click on this icon":"Clicca su questa icona","Close":"Vicino","Close all but current":"Chiudi tutto tranne corrente","Collapse all":"Comprimi tutto","Configuration not saved.":"Configurazione non salvata.","Convert blockly to javascript for ever.":"Converti istantaneamente a blocchi in Javascript.","Copy script":"Copia script","Copy to clipboard":"Copia negli appunti","Create new":"Creare nuovo","Create new folder":"Crea una nuova cartella","Create new script":"Crea nuovo script","Create or edit CRON or time wizard":"Crea o modifica la procedura guidata CRON o time","Dark Theme":"Tema scuro","Dark style":"Stile scuro","Debug options":"Opzioni di debug","December":"dicembre","Define cron...":"Definisci cron ...","Define schedule...":"Definisci programma ...","Delete":"Elimina","Delete %s":"Elimina %s ...","Delete folder":"Elimina cartella","Delete script":"Elimina script","Deselect all":"Deselezionare tutto","Discard changes for %s":"Annulla modifiche per %s","Done":"Fatto","Drop some files here or click...":"Trascina alcuni file qui o fai clic su ...","Edit script or just double click":"Modifica lo script o fai doppio clic","End search mode":"Termina la modalit\xe0 di ricerca","Error":"Errore","Error was found":"Errore trovato","Existing scripts will be overwritten.":"Gli script esistenti verranno sovrascritti.","Expand all":"Espandi tutto","Expert mode":"Modalit\xe0 esperto","Export":"Esportare","Export all scripts":"Esporta tutti gli script","Export blocks":"Esporta blocchi","Export selected blocks":"Esporta i blocchi selezionati","February":"febbraio","Folder":"Cartella","Friday":"Venerd\xec","Function editor":"Editor di funzioni","ID":"ID","Import":"Importare","Import blocks":"Importa blocchi","Import error":"Errore di importazione","Import scripts":"Importa script","Insert object ID":"Inserisci l\'ID oggetto","Instance":"Esempio","Instance is disabled":"L\'istanza \xe8 disabilitata","Invalid CRON":"CRON non valido","It will not be possible to revert this operation.":"Non sar\xe0 possibile ripristinare questa operazione.","JS description":"Creare regole scrivendo Javascript","January":"gennaio","July":"luglio","June":"giugno","Learn More":"Per saperne di pi\xf9","Light style":"Stile leggero","Locate file":"Localizza file","Log outputs":"Registra le uscite","March":"marzo","May":"Maggio","Menu":"Menu","Message":"Messaggio","Monday":"Lunedi","Name":"Nome","No active host found":"Nessun host attivo trovato","November":"novembre","October":"ottobre","Ok":"Ok","On weekdays":"Nei giorni della settimana","Pause script":"Metti in pausa lo script","Please select object ID...":"Seleziona l\'ID oggetto ...","Rename":"Rinominare","Reorder scripts in folders":"Riordina gli script nelle cartelle","Repeat":"Ripetere","Restart":"Ricomincia","Root folder":"Cartella root","Run script":"Esegui script","Saturday":"Sabato","Save":"Salva","Script":"copione","Script %s was modified on disk":"Lo script %s \xe8 stato modificato sul disco","Script is not running":"Lo script non \xe8 in esecuzione","Search in scripts":"Cerca negli script","Search...":"Ricerca...","Select all":"Seleziona tutto","September":"settembre","Show javascript code":"Mostra codice Javascript","Show only paused scripts":"Mostra solo script in pausa","Show only running scripts":"Mostra solo gli script in esecuzione","Show only scripts with problems":"Mostra solo script con problemi","Some files will be rejected":"Alcuni file verranno rifiutati","Sunday":"Domenica","TS description":"Creare regole scrivendo dattiloscritto","Thursday":"giovedi","Tuesday":"marted\xec","Unknown error":"Errore sconosciuto","Unknown error!":"Errore sconosciuto!","Wednesday":"mercoled\xec","Yet exists!":"Esiste ancora!","copy":"copia","file reading has failed: %s":"lettura file non riuscita: %s","file reading was aborted":"la lettura del file \xe8 stata interrotta","filter_func":"Funzione","filter_id":"ID","filter_name":"Nome","filter_role":"Ruolo","filter_room":"Camera","for edit or create script":"per modificare o creare un nuovo script","no blocks found":"Nessun blocco trovato","no group":"NESSUN GRUPPO","not properly connected":"Questo blocco non \xe8 correttamente collegato ad altri blocchi.","tooltip_ack":"Riconoscere","tooltip_from":"A partire dal","tooltip_lc":"Ultima modifica","tooltip_quality":"Qualit\xe0","tooltip_ts":"timestamp","tooltip_user":"Utente","tooltip_value":"Valore","use seconds":"usa i secondi","Save all":"Salva tutto","Change theme (actual \\"%s\\")":"Cambia tema (ora - \\"%s\\")","Hide logs":"Nascondi i registri","Show logs":"Mostra i log","Rules description":"Crea regole con i blocchi IF, THEN, ELSE","help_on_change":"Il codice verr\xe0 eseguito solo se il risultato della condizione cambia. Per esempio. se si attiva il valore del sensore di temperatura e la condizione \xe8 \\"se la temperatura \xe8 maggiore di 20 \xb0 C\\", le azioni \\"allora\\" verranno eseguite una volta quando la temperatura \xe8 superiore a 20. La prossima volta le azioni \\"allora\\" verranno eseguite quando la temperatura fallisce sotto 20 e poi sale di nuovo oltre 20.","help_just_check":"Il codice verr\xe0 eseguito solo ogni volta che la condizione \xe8 vera. Per esempio. se si attiva il valore del sensore di temperatura e la condizione \xe8 \\"se la temperatura \xe8 maggiore di 20 \xb0 C\\", le azioni \\"allora\\" verranno eseguite ogni volta che il sensore invia la temperatura e questa \xe8 superiore a 20 \xb0 C. Di 21 \xb0 C, di 22 \xb0 C e cos\xec via.","On condition change":"A condizione che cambino","Just check":"Controlla solamente","when":"quando","and":"e","then":"poi","or":"o","else":"altro","Nothing found":"Non abbiamo trovato nulla","reset search":"resetta la ricerca","Read only ID selected: %s":"ID di sola lettura selezionato: %s","OK":"OK","Triggers":"Trigger","cron":"CRON","wizard":"procedura guidata","interval":"intervallo","at":"a","astro":"astro","on condition change":"a cambio di condizione","just check":"controlla solamente","Explanation":"Spiegazione","seconds":"secondi","minutes":"minuti","hours":"ore","Every day":"Ogni giorno","milliseconds":"millisecondi","Copied":"Copiato","nadir":"nadir","nightEnd":"Fine della notte","nauticalDawn":"Alba nautica","dawn":"alba","sunrise":"Alba","sunriseEnd":"Fine dell\'alba","goldenHourEnd":"Fine dell\'ora d\'oro","solarNoon":"Mezzogiorno solare","goldenHour":"Ora d\'oro","sunsetStart":"Inizio del tramonto","sunset":"tramonto","dusk":"crepuscolo","nauticalDusk":"Crepuscolo nautico","night":"Notte","one":"uno","two":"Due","true":"vero","false":"falso","search":"ricerca","Actions":"Azioni","Conditions":"Condizioni","Schedule":"Programma","Start script":"Avvia script","State":"Stato","State condition":"Condizione dello stato","Time condition":"Condizione temporale","Astrological":"Astronomico","Set state action":"Imposta l\'azione dello stato","Exec":"Execshell","HTTP Call":"Chiamata HTTP","Log text":"Testo del registro","Pause":"Pausa","on change":"sul cambiamento","control":"controllo","Say It":"Say It","every hour at 0 minutes":"ogni ora a 0 minuti","On script save or adapter start":"Al salvataggio dello script o all\'avvio dell\'adattatore","equal to":"uguale a","Actual time of day":"Ora effettiva della giornata","with":"con","Shell command":"Comando Shell","URL":"URL","Instance:":"Esempio:","Language:":"Linguaggio:","Volume":"Volume","Text:":"Testo:","undefined":"non definito","Default":"Predefinito","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"\xc8 possibile utilizzare %s nel testo per visualizzare il valore di trigger corrente, %id per utilizzare l\'ID dell\'oggetto attivato, %name per mostrare il nome dell\'ID dell\'oggetto attivato o %old per utilizzare il vecchio valore di trigger","Instructions":"Istruzioni","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"\xc8 possibile utilizzare %s nell\'URL per utilizzare il valore di trigger corrente, %id per utilizzare l\'ID dell\'oggetto attivato, %name per mostrare il nome dell\'ID dell\'oggetto attivato o %old per utilizzare il vecchio valore di trigger","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"\xc8 possibile utilizzare %s nel valore per utilizzare il valore di trigger corrente, %id per utilizzare l\'ID dell\'oggetto attivato, %name per mostrare il nome dell\'ID dell\'oggetto attivato o %old per utilizzare il vecchio valore di trigger","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"\xc8 possibile utilizzare %s nel comando per utilizzare il valore di trigger corrente, %id per utilizzare l\'ID dell\'oggetto attivato, %name per mostrare il nome dell\'ID dell\'oggetto attivato o %old per utilizzare il vecchio valore di trigger","every":"ogni","with offset":"con offset","on update":"in aggiornamento","update":"aggiornare","Triggers the rule periodically or on some specific time":"Attiva la regola periodicamente o in un momento specifico","Triggers the on script saving or the javascript instance restart":"Attiva il salvataggio dello script o il riavvio dell\'istanza javascript","Triggers the rule on update or change of some state":"Attiva la regola in caso di aggiornamento o modifica di uno stato","Compares the state value with user defined value":"Confronta il valore dello stato con il valore definito dall\'utente","Compares current time with the user specific time":"Confronta l\'ora corrente con l\'ora specifica dell\'utente","Compares current time with astrological event":"Confronta l\'ora corrente con l\'evento astronomico","Control or update some state":"Controlla o aggiorna uno stato","Executes some shell command":"Esegue alcuni comandi della shell","Make a HTTP get request":"Effettua una richiesta get HTTP","Print some text in log":"Stampa del testo nel registro","Make a pause between actions":"Fai una pausa tra le azioni","Say some text via sayit adapter":"Pronuncia del testo tramite l\'adattatore sayit","Telegram":"Telegramma","User:":"Utente:","all":"tutti","Sends message via telegram":"Invia messaggio tramite telegramma","Sends an email":"Invia un\'e-mail","Send email":"Invia una email","Sends message via pushover":"Invia messaggio tramite pushover","Pushover":"Pushover","Sends message via whatsapp-cmb":"Invia messaggio tramite whatsapp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"Invia messaggio tramite Pushsafer","Pushsafer":"Pushsafer","To:":"Per:","Subject:":"Soggetto:","Body:":"Corpo:","Title:":"Titolo:","Sound:":"Suono:","Priority:":"Priorit\xe0:","magic":"Magia","quiet":"silenzioso","normal":"normale","high-priority":"priorit\xe0 alta","acknowledgment":"riconoscimento","Phone:":"Telefono:","(optional)":"(opzionale)","Vibration:":"Vibrazione:","lowest priority":"priorit\xe0 pi\xf9 bassa","lower priority":"priorit\xe0 inferiore","normal priority":"priorit\xe0 normale","high priority":"priorit\xe0 alta","highest priority":"massima priorit\xe0","default":"predefinito","All":"Tutti","Write your own code":"Scrivi il tuo codice","User function":"Funzione utente","This is advances option. You can write your own code here and it will be executed on trigger":"Questa \xe8 un\'opzione anticipata. Puoi scrivere il tuo codice qui e verr\xe0 eseguito al trigger","greater than":"pi\xf9 grande di","offset":"compensare","Function":"Funzione","greater or equal to":"maggiore o uguale a","less or equal to":"minore o uguale a","less than":"meno di","not equal to":"non uguale a","[equal]":"[pari]","[greater or equal]":"[maggiore o uguale]","[greater]":"[maggiore]","[less or equal]":"[minore o uguale]","[less]":"[Di meno]","[not equal]":"[non uguale]","[includes]":"[include]","[hysteresis]":"[isteresi]","greater or equal":"maggiore o uguale","less or equal":"inferiore o uguale","includes":"include",".":".","()":"()","Mo":"Mo","Tu":"Tu","We":"3","Th":"4","Fr":"P","Sa":"Sa","Su":"Su","Control or update some state with delay":"Controlla o aggiorna uno stato con ritardo","Delay":"Ritardo","ms":"ms","Set with delay":"Impostato con ritardo","clear running":"chiara esecuzione","toggle value":"alterna valore","Any month":"Ogni mese","Any":"Qualunque","with date":"con data","Date":"Data","Month":"Mese","Januar":"Januar","Februar":"Februar","March ":"marzo","Condition":"Condizione","Limit":"Limite","The script will be stopped and must be activated manually after debugging. Continue?":"Lo script verr\xe0 interrotto e dovr\xe0 essere attivato manualmente dopo il debug. Continua?","Yes":"s\xec","Debug instance":"Istanza di debug","Resume execution":"Riprendi esecuzione","Go to next line":"Vai alla riga successiva","Step into function":"Entra in funzione","Step out from function":"Esci dalla funzione","Stop on exception":"Ferma in caso di eccezione","Console":"Console","Stack":"Stack","Pause execution":"Metti in pausa l\'esecuzione","Simulate":"Simulare","Trigger with value":"Trigger con valore","Value":"Valore","Write":"Scrivi","Ack":"Riconosciuto","Start":"Cominciare","Filter":"Filtro","Instances":"istanze","Triggered":"Innescato","Function: executed":"Funzione: eseguita","Operate two states":"Gestisci due stati","store in":"conservare in","ID1":"ID1","ID2":"ID2","Operations with two states":"Operazioni con due stati","debug_label":"Debug","debug_help":"Questa \xe8 una modalit\xe0 speciale in cui gli stati e gli oggetti non cambieranno. Ma nel protocollo verranno visualizzate solo le informazioni su ogni modifica pianificata.","verbose_label":"Output di log dettagliati","verbose_help":"Aggiunge l\'output di debug al registro per molti comandi di sistema","easy":"facile","for programmers":"per i programmatori","for professionals":"per i professionisti","Duplicate name":"Nome duplicato","Empty name is not allowed":"Il nome vuoto non \xe8 consentito","Astrological events today":"Eventi astrologici oggi","Show astrological events":"Mostra eventi astrologici","Time":"Tempo","Description":"Descrizione","nextSunrise":"Prossima alba","nextSunset":"Prossimo tramonto"}')},43573:function(e){e.exports=JSON.parse('{"-":"-","Add":"Toevoegen","Add new script":"Nieuw script toevoegen","All files will be accepted":"Alle bestanden worden geaccepteerd","April":"april","Are you sure?":"Weet je zeker dat?","August":"augustus","Blockly description":"Regels maken door grafische blokken","Cancel":"annuleren","Cannot delete non empty item!":"Kan niet leeg item niet verwijderen!","Change layout":"Opmaak veranderen","Check blocks":"Controleer blokken","Check is not active, because javascript adapter is disabled":"Controle is niet actief, omdat Javascript-adapter is uitgeschakeld","Clear search input":"Zoekopdracht wissen","Click on this icon":"Klik op dit pictogram","Close":"Dichtbij","Close all but current":"Alles sluiten behalve huidig","Collapse all":"Alles inklappen","Configuration not saved.":"Configuratie niet opgeslagen.","Convert blockly to javascript for ever.":"Converteer direct blockly naar Javascript.","Copy script":"Kopieer script","Copy to clipboard":"Kopieer naar klembord","Create new":"Maak nieuw","Create new folder":"Maak een nieuwe map","Create new script":"Maak een nieuw script","Create or edit CRON or time wizard":"Cre\xeber of bewerk CRON of tijdwizard","Dark Theme":"Donker thema","Dark style":"Donkere stijl","Debug options":"Foutopsporingsopties","December":"december","Define cron...":"Definieer cron ...","Define schedule...":"Definieer schema ...","Delete":"Verwijder","Delete %s":"%s verwijderen ...","Delete folder":"Verwijder map","Delete script":"Script verwijderen","Deselect all":"Deselecteer alles","Discard changes for %s":"Wijzigingen voor %s annuleren","Done":"Gedaan","Drop some files here or click...":"Zet hier enkele bestanden neer of klik op ...","Edit script or just double click":"Bewerk het script of dubbelklik erop","End search mode":"Zoekmodus be\xebindigen","Error":"Fout","Error was found":"Er is een fout gevonden","Existing scripts will be overwritten.":"Bestaande scripts worden overschreven.","Expand all":"Alles uitvouwen","Expert mode":"Expert modus","Export":"Exporteren","Export all scripts":"Exporteer alle scripts","Export blocks":"Blokken exporteren","Export selected blocks":"Exporteer geselecteerde blokken","February":"februari","Folder":"Map","Friday":"vrijdag","Function editor":"Functie-editor","ID":"ID kaart","Import":"Importeren","Import blocks":"Blokken importeren","Import error":"Importfout","Import scripts":"Scripts importeren","Insert object ID":"Object-ID invoegen","Instance":"Voorbeeld","Instance is disabled":"Exemplaar is uitgeschakeld","Invalid CRON":"Ongeldige CRON","It will not be possible to revert this operation.":"Het is niet mogelijk om deze bewerking terug te zetten.","JS description":"Regels maken door Javascript te schrijven","January":"januari","July":"juli","June":"juni","Learn More":"Leer meer","Light style":"Lichte stijl","Locate file":"Vind het bestand","Log outputs":"Log uitgangen","March":"maart","May":"mei","Menu":"Menu","Message":"Bericht","Monday":"maandag","Name":"Naam","No active host found":"Geen actieve host gevonden","November":"november","October":"oktober","Ok":"OK","On weekdays":"Op weekdagen","Pause script":"Pauzeer script","Please select object ID...":"Selecteer object-ID ...","Rename":"andere naam geven","Reorder scripts in folders":"Sorteer scripts in mappen opnieuw","Repeat":"Herhaling","Restart":"Herstarten","Root folder":"Hoofdmap","Run script":"Voer script uit","Saturday":"zaterdag","Save":"Opslaan","Script":"Script","Script %s was modified on disk":"Script %s is gewijzigd op schijf","Script is not running":"Script is niet actief","Search in scripts":"Zoeken in scripts","Search...":"Zoeken...","Select all":"Selecteer alles","September":"september","Show javascript code":"Javascript-code weergeven","Show only paused scripts":"Toon alleen onderbroken scripts","Show only running scripts":"Toon alleen actieve scripts","Show only scripts with problems":"Toon alleen scripts met problemen","Some files will be rejected":"Sommige bestanden worden geweigerd","Sunday":"zondag","TS description":"Regels maken door Typescript te schrijven","Thursday":"donderdag","Tuesday":"dinsdag","Unknown error":"Onbekende fout","Unknown error!":"Onbekende fout!","Wednesday":"woensdag","Yet exists!":"Toch bestaat!","copy":"kopi\xebren","file reading has failed: %s":"bestands lezen is mislukt: %s","file reading was aborted":"bestands lezen is afgebroken","filter_func":"Functie","filter_id":"ID kaart","filter_name":"Naam","filter_role":"Rol","filter_room":"Kamer","for edit or create script":"voor bewerken of een nieuw script maken","no blocks found":"Geen blokken gevonden","no group":"GEEN GROEP","not properly connected":"Dit blok is niet correct verbonden met andere blokken.","tooltip_ack":"Erkennen","tooltip_from":"Van","tooltip_lc":"Laatst gewijzigd","tooltip_quality":"Kwaliteit","tooltip_ts":"tijdstempel","tooltip_user":"Gebruiker","tooltip_value":"Waarde","use seconds":"gebruik seconden","Save all":"Sla alles op","Change theme (actual \\"%s\\")":"Thema wijzigen (nu - \\"%s\\")","Hide logs":"Verberg logboeken","Show logs":"Toon logboeken","Rules description":"Maak regels met IF, THEN, ELSE blokken","help_on_change":"De code wordt alleen uitgevoerd als het conditieresultaat verandert. Bijv. als de temperatuursensor wordt geactiveerd en de conditie is \\"als de temperatuur hoger is dan 20 \xb0 C\\", worden de \\"dan\\" -acties eenmaal uitgevoerd wanneer de temperatuur hoger is dan 20. De volgende keer worden de \\"dan\\" -acties uitgevoerd wanneer de temperatuur faalt onder de 20 en stijgt dan weer boven de 20.","help_just_check":"De code wordt alleen uitgevoerd als de voorwaarde waar is. Bijv. als het triggeren op de temperatuursensorwaarde en de conditie is \\"als de temperatuur hoger is dan 20 \xb0 C\\", zullen de \\"dan\\" acties worden uitgevoerd elke keer dat de sensor de temperatuur verzendt en deze hoger is dan 20 \xb0 C. Bij 21 \xb0 C, bij 22 \xb0 C enzovoort.","On condition change":"Op voorwaarde verandering","Just check":"Kijk maar","when":"wanneer","and":"en","then":"vervolgens","or":"of","else":"anders","Nothing found":"Niets gevonden","reset search":"reset zoeken","Read only ID selected: %s":"Alleen-lezen ID geselecteerd: %s","OK":"OK","Triggers":"Triggers","cron":"cron","wizard":"tovenaar","interval":"interval","at":"Bij","astro":"astro","on condition change":"op voorwaarde verandering","just check":"kijk maar","Explanation":"Uitleg","seconds":"seconden","minutes":"minuten","hours":"uren","Every day":"Elke dag","milliseconds":"milliseconden","Copied":"Gekopieerd","nadir":"nadir","nightEnd":"Einde van de nacht","nauticalDawn":"Nautische dageraad","dawn":"dageraad","sunrise":"zonsopkomst","sunriseEnd":"Einde zonsopgang","goldenHourEnd":"Einde van gouden uur","solarNoon":"Zonne-middag","goldenHour":"gouden uur","sunsetStart":"Begin van de zonsondergang","sunset":"zonsondergang","dusk":"schemer","nauticalDusk":"Nautische schemering","night":"nacht","one":"een","two":"twee","true":"waar","false":"false","search":"zoeken","Actions":"Acties","Conditions":"Voorwaarden","Schedule":"Schema","Start script":"Start het script","State":"Staat","State condition":"Staat staat","Time condition":"Tijdsvoorwaarde","Astrological":"Astronomisch","Set state action":"Stel statusactie in","Exec":"Exec shell","HTTP Call":"HTTP-oproep","Log text":"Log tekst","Pause":"Pauze","on change":"bij verandering","control":"controle","Say It":"Say It","every hour at 0 minutes":"elk uur op 0 minuten","On script save or adapter start":"Bij het opslaan van het script of het starten van de adapter","equal to":"gelijk aan","Actual time of day":"Werkelijke tijd van de dag","with":"met","Shell command":"Shell-opdracht","URL":"URL","Instance:":"Voorbeeld:","Language:":"Taal:","Volume":"Volume","Text:":"Tekst:","undefined":"ongedefinieerd","Default":"Standaard","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"U kunt %s in de tekst gebruiken om de huidige triggerwaarde weer te geven, %id om de geactiveerde object-ID te gebruiken, %name om de geactiveerde object-ID-naam weer te geven of %old om de oude triggerwaarde te gebruiken","Instructions":"Instructies","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"U kunt %s in de URL gebruiken om de huidige triggerwaarde te gebruiken, %id om de geactiveerde object-ID te gebruiken, %name om de geactiveerde object-ID-naam te tonen of %old om de oude triggerwaarde te gebruiken","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"U kunt %s in de waarde gebruiken om de huidige triggerwaarde te gebruiken, %id om de geactiveerde object-ID te gebruiken, %name om de geactiveerde object-ID-naam te tonen of %old om de oude triggerwaarde te gebruiken","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"U kunt %s in de opdracht gebruiken om de huidige triggerwaarde te gebruiken, %id om de getriggerde object-ID te gebruiken, %name om de getriggerde object-ID-naam te tonen of %old om de oude triggerwaarde te gebruiken","every":"elke","with offset":"met offset","on update":"bij update","update":"bijwerken","Triggers the rule periodically or on some specific time":"Activeert de regel periodiek of op een specifieke tijd","Triggers the on script saving or the javascript instance restart":"Activeert het opslaan van het script of het opnieuw opstarten van de JavaScript-instantie","Triggers the rule on update or change of some state":"Activeert de regel voor het bijwerken of wijzigen van een bepaalde staat","Compares the state value with user defined value":"Vergelijkt de statuswaarde met de door de gebruiker gedefinieerde waarde","Compares current time with the user specific time":"Vergelijkt de huidige tijd met de gebruikerspecifieke tijd","Compares current time with astrological event":"Vergelijkt de huidige tijd met een astronomische gebeurtenis","Control or update some state":"Beheer of update een bepaalde staat","Executes some shell command":"Voert een shell-commando uit","Make a HTTP get request":"Maak een HTTP-ophaalverzoek","Print some text in log":"Druk wat tekst af in het logboek","Make a pause between actions":"Pauzeer tussen acties","Say some text via sayit adapter":"Zeg wat tekst via de sayit-adapter","Telegram":"Telegram","User:":"Gebruiker:","all":"alle","Sends message via telegram":"Verzendt bericht via telegram","Sends an email":"Stuurt een e-mail","Send email":"E-mail verzenden","Sends message via pushover":"Stuurt bericht via pushover","Pushover":"Pushover","Sends message via whatsapp-cmb":"Stuurt bericht via whatsapp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"Stuurt bericht via Pushsafer","Pushsafer":"Duwijzer","To:":"Naar:","Subject:":"Onderwerpen:","Body:":"Lichaam:","Title:":"Titel:","Sound:":"Geluid:","Priority:":"Prioriteit:","magic":"magie","quiet":"stil","normal":"normaal","high-priority":"hoge prioriteit","acknowledgment":"erkenning","Phone:":"Telefoon:","(optional)":"(optioneel)","Vibration:":"Trilling:","lowest priority":"laagste prioriteit","lower priority":"lagere prioriteit","normal priority":"normale prioriteit","high priority":"hoge prioriteit","highest priority":"hoogste prioriteit","default":"standaard","All":"Alle","Write your own code":"Schrijf je eigen code","User function":"Gebruikersfunctie","This is advances option. You can write your own code here and it will be executed on trigger":"Dit is een voorschotoptie. U kunt hier uw eigen code schrijven en deze wordt bij een trigger uitgevoerd","greater than":"groter dan","offset":"compensatie","Function":"Functie","greater or equal to":"groter of gelijk aan","less or equal to":"minder of gelijk aan","less than":"minder dan","not equal to":"niet gelijk aan","[equal]":"[Gelijk]","[greater or equal]":"[groter of gelijk]","[greater]":"[groter]","[less or equal]":"[minder of gelijk]","[less]":"[minder]","[not equal]":"[niet gelijk]","[includes]":"[inclusief]","[hysteresis]":"[hysterese]","greater or equal":"groter of gelijk","less or equal":"minder of gelijk","includes":"omvat",".":".","()":"()","Mo":"Ma","Tu":"Di","We":"3","Th":"4","Fr":"Vr","Sa":"Za","Su":"Zo","Control or update some state with delay":"Beheer of update een bepaalde staat met vertraging","Delay":"Vertraging","ms":"ms","Set with delay":"Met vertraging ingesteld","clear running":"duidelijk rennen","toggle value":"schakelwaarde","Any month":"Elke maand","Any":"Ieder","with date":"met datum","Date":"Datum","Month":"Maand","Januar":"Januar","Februar":"Februari","March ":"maart","Condition":"Staat","Limit":"Begrenzing","The script will be stopped and must be activated manually after debugging. Continue?":"Het script wordt gestopt en moet na het debuggen handmatig worden geactiveerd. Doorgaan met?","Yes":"Ja","Debug instance":"Debug-instantie","Resume execution":"Uitvoering hervatten","Go to next line":"Ga naar de volgende regel","Step into function":"Stap in functie","Step out from function":"Stap uit de functie","Stop on exception":"Stop bij uitzondering","Console":"Troosten","Stack":"Stack","Pause execution":"Uitvoering pauzeren","Simulate":"Simuleren","Trigger with value":"Trigger met waarde","Value":"Waarde","Write":"Schrijven","Ack":"Erkend","Start":"Begin","Filter":"Filter","Instances":"Instanties","Triggered":"Veroorzaakt","Function: executed":"Functie: uitgevoerd","Operate two states":"Bedien twee toestanden:","store in":"opslaan in","ID1":"ID1","ID2":"ID2","Operations with two states":"Bewerkingen met twee toestanden","debug_label":"Debuggen","debug_help":"Dit is een speciale modus waarin toestanden en objecten niet veranderen. Maar alleen informatie over elke geplande wijziging wordt in het protocol weergegeven.","verbose_label":"Uitgebreide log-uitgangen","verbose_help":"Voegt foutopsporingsuitvoer toe aan het logboek voor veel systeemopdrachten","easy":"eenvoudig","for programmers":"voor programmeurs","for professionals":"voor professionals","Duplicate name":"Dubbele naam","Empty name is not allowed":"Lege naam is niet toegestaan","Astrological events today":"Astrologische gebeurtenissen vandaag","Show astrological events":"Laat astrologische gebeurtenissen zien","Time":"Tijd","Description":"Beschrijving","nextSunrise":"Volgende zonsopgang","nextSunset":"Volgende zonsondergang"}')},28130:function(e){e.exports=JSON.parse('{"-":"-","Add":"Dodaj","Add new script":"Dodaj nowy skrypt","All files will be accepted":"Wszystkie pliki zostan\u0105 zaakceptowane","April":"kwiecie\u0144","Are you sure?":"Jeste\u015b pewny?","August":"sierpie\u0144","Blockly description":"Tworzenie regu\u0142 za pomoc\u0105 blok\xf3w graficznych","Cancel":"Anuluj","Cannot delete non empty item!":"Nie mo\u017cna usun\u0105\u0107 niepustego elementu!","Change layout":"Zmiana uk\u0142adu","Check blocks":"Sprawd\u017a bloki","Check is not active, because javascript adapter is disabled":"Sprawdzanie nie jest aktywne, poniewa\u017c adapter Javascript jest wy\u0142\u0105czony","Clear search input":"Wyczy\u015b\u0107 dane wyszukiwania","Click on this icon":"Kliknij t\u0119 ikon\u0119","Close":"Blisko","Close all but current":"Zamknij wszystkie opr\xf3cz bie\u017c\u0105cych","Collapse all":"Zwin\u0105\u0107 wszystkie","Configuration not saved.":"Konfiguracja nie zosta\u0142a zapisana.","Convert blockly to javascript for ever.":"Natychmiastowa konwersja blokowa do Javascript.","Copy script":"Skopiuj skrypt","Copy to clipboard":"Skopiuj do schowka","Create new":"Tworzy\u0107 nowe","Create new folder":"Stw\xf3rz nowy folder","Create new script":"Utw\xf3rz nowy skrypt","Create or edit CRON or time wizard":"Utw\xf3rz lub edytuj CRON lub kreator czasu","Dark Theme":"ciemny schemat","Dark style":"Ciemny styl","Debug options":"Opcje debugowania","December":"grudzie\u0144","Define cron...":"Zdefiniuj cron ...","Define schedule...":"Zdefiniuj harmonogram ...","Delete":"Usun\u0105\u0107","Delete %s":"Usu\u0144 %s ...","Delete folder":"Usuni\u0119ty folder","Delete script":"Usu\u0144 skrypt","Deselect all":"Odznacz wszystkie","Discard changes for %s":"Odrzu\u0107 zmiany dla %s","Done":"Gotowy","Drop some files here or click...":"Upu\u015b\u0107 niekt\xf3re pliki tutaj lub kliknij ...","Edit script or just double click":"Edytuj skrypt lub po prostu kliknij dwukrotnie","End search mode":"Zako\u0144cz tryb wyszukiwania","Error":"B\u0142\u0105d","Error was found":"B\u0142\u0105d zosta\u0142 znaleziony","Existing scripts will be overwritten.":"Istniej\u0105ce skrypty zostan\u0105 zast\u0105pione.","Expand all":"Rozwi\u0144 wszystkie","Expert mode":"Tryb ekspercki","Export":"Eksport","Export all scripts":"Wyeksportuj wszystkie skrypty","Export blocks":"Eksportuj bloki","Export selected blocks":"Eksportuj wybrane bloki","February":"luty","Folder":"Teczka","Friday":"pi\u0105tek","Function editor":"Edytor funkcji","ID":"ID","Import":"Import","Import blocks":"Importuj bloki","Import error":"B\u0142\u0105d importowania","Import scripts":"Importuj skrypty","Insert object ID":"Wstaw identyfikator obiektu","Instance":"Instancja","Instance is disabled":"Instancja jest wy\u0142\u0105czona","Invalid CRON":"Nieprawid\u0142owy CRON","It will not be possible to revert this operation.":"Cofni\u0119cie tej operacji nie b\u0119dzie mo\u017cliwe.","JS description":"Tworzenie regu\u0142 przez pisanie Javascript","January":"stycze\u0144","July":"lipiec","June":"czerwiec","Learn More":"Ucz si\u0119 wi\u0119cej","Light style":"Lekki styl","Locate file":"Znajd\u017a plik","Log outputs":"Dane wyj\u015bciowe dziennika","March":"Marsz","May":"Mo\u017ce","Menu":"Menu","Message":"Wiadomo\u015b\u0107","Monday":"poniedzia\u0142ek","Name":"Imi\u0119","No active host found":"Nie znaleziono aktywnego hosta","November":"listopad","October":"pa\u017adziernik","Ok":"Dobrze","On weekdays":"W dni powszednie","Pause script":"Wstrzymaj skrypt","Please select object ID...":"Wybierz identyfikator obiektu ...","Rename":"Przemianowa\u0107","Reorder scripts in folders":"Zmie\u0144 kolejno\u015b\u0107 skrypt\xf3w w folderach","Repeat":"Powtarza\u0107","Restart":"Uruchom ponownie","Root folder":"Folder g\u0142\xf3wny","Run script":"Uruchom skrypt","Saturday":"sobota","Save":"Zapisz","Script":"Scenariusz","Script %s was modified on disk":"Skrypt %s zosta\u0142 zmodyfikowany na dysku","Script is not running":"Skrypt nie dzia\u0142a","Search in scripts":"Szukaj w skryptach","Search...":"Szukaj...","Select all":"Zaznacz wszystko","September":"wrzesie\u0144","Show javascript code":"Poka\u017c kod JavaScript","Show only paused scripts":"Poka\u017c tylko wstrzymane skrypty","Show only running scripts":"Poka\u017c tylko dzia\u0142aj\u0105ce skrypty","Show only scripts with problems":"Poka\u017c tylko skrypty z problemami","Some files will be rejected":"Niekt\xf3re pliki zostan\u0105 odrzucone","Sunday":"niedziela","TS description":"Tworzenie regu\u0142 przez pisanie maszynopisu","Thursday":"czwartek","Tuesday":"wtorek","Unknown error":"Nieznany b\u0142\u0105d","Unknown error!":"Nieznany b\u0142\u0105d!","Wednesday":"\u015broda","Yet exists!":"A jednak istnieje!","copy":"Kopiuj","file reading has failed: %s":"odczyt pliku nie powi\xf3d\u0142 si\u0119: %s","file reading was aborted":"odczyt pliku zosta\u0142 przerwany","filter_func":"Funkcjonowa\u0107","filter_id":"ID","filter_name":"Imi\u0119","filter_role":"Rola","filter_room":"Pok\xf3j","for edit or create script":"do edycji lub utw\xf3rz nowy skrypt","no blocks found":"Nie znaleziono blok\xf3w","no group":"BRAK GRUPY","not properly connected":"Ten blok nie jest poprawnie pod\u0142\u0105czony do innych blok\xf3w.","tooltip_ack":"Uzna\u0107","tooltip_from":"Od","tooltip_lc":"Ostatnia zmiana","tooltip_quality":"Jako\u015b\u0107","tooltip_ts":"Znak czasu","tooltip_user":"U\u017cytkownik","tooltip_value":"Warto\u015b\u0107","use seconds":"u\u017cyj sekund","Save all":"Zapisz wszystko","Change theme (actual \\"%s\\")":"Zmie\u0144 motyw (teraz - \u201e%s\u201d)","Hide logs":"Ukryj dzienniki","Show logs":"Poka\u017c dzienniki","Rules description":"Tw\xf3rz regu\u0142y z blokami IF, THEN, ELSE","help_on_change":"Kod zostanie wykonany tylko wtedy, gdy wynik warunku ulegnie zmianie. Na przyk\u0142ad. je\u015bli wyzwalanie na warto\u015b\u0107 czujnika temperatury i warunek \u201eje\u015bli temperatura jest wy\u017csza ni\u017c 20 \xb0 C\u201d, to akcje \u201eto\u201d zostan\u0105 wykonane raz, gdy temperatura przekroczy 20. Nast\u0119pnym razem dzia\u0142ania \u201eto\u201d zostan\u0105 wykonane, gdy temperatura nie udaje si\u0119 poni\u017cej 20, a nast\u0119pnie ponownie wzrasta powy\u017cej 20.","help_just_check":"Kod zostanie wykonany tylko za ka\u017cdym razem, gdy warunek b\u0119dzie spe\u0142niony. Na przyk\u0142ad. je\u015bli wyzwalanie na warto\u015b\u0107 czujnika temperatury i warunek to \u201eje\u015bli temperatura jest wy\u017csza ni\u017c 20 \xb0 C\u201d, to dzia\u0142ania \u201eto\u201d b\u0119d\u0105 wykonywane za ka\u017cdym razem, gdy czujnik wy\u015ble temperatur\u0119 i jest powy\u017cej 20 \xb0 C. O 21 \xb0 C, o 22 \xb0 C i tak dalej.","On condition change":"W przypadku zmiany warunk\xf3w","Just check":"Po prostu sprawd\u017a","when":"gdy","and":"i","then":"nast\u0119pnie","or":"lub","else":"jeszcze","Nothing found":"Nic nie znaleziono","reset search":"zresetuj wyszukiwanie","Read only ID selected: %s":"Wybrano identyfikator tylko do odczytu: %s","OK":"OK","Triggers":"Wyzwalacze","cron":"CRON","wizard":"Wizard","interval":"interwa\u0142","at":"w","astro":"astro","on condition change":"pod warunkiem zmiany warunk\xf3w","just check":"po prostu sprawd\u017a","Explanation":"Wyja\u015bnienie","seconds":"sekundy","minutes":"minuty","hours":"godziny","Every day":"Codziennie","milliseconds":"milisekund","Copied":"Skopiowano","nadir":"nadir","nightEnd":"Koniec nocy","nauticalDawn":"\u017beglarski \u015bwit","dawn":"\u015bwit","sunrise":"wsch\xf3d s\u0142o\u0144ca","sunriseEnd":"Koniec wschodu s\u0142o\u0144ca","goldenHourEnd":"Koniec z\u0142otej godziny","solarNoon":"Po\u0142udnie s\u0142oneczne","goldenHour":"z\u0142ota godzina","sunsetStart":"Pocz\u0105tek zachodu s\u0142o\u0144ca","sunset":"zach\xf3d s\u0142o\u0144ca","dusk":"zmierzch","nauticalDusk":"\u017beglarski zmierzch","night":"Noc","one":"jeden","two":"dwa","true":"prawdziwe","false":"fa\u0142szywy","search":"Szukaj","Actions":"dzia\u0142ania","Conditions":"Warunki","Schedule":"Harmonogram","Start script":"Uruchom skrypt","State":"Stan","State condition":"Stan stanu","Time condition":"Warunek czasowy","Astrological":"Astronomiczny","Set state action":"Ustaw stan dzia\u0142ania","Exec":"Exec shell","HTTP Call":"Po\u0142\u0105czenie HTTP","Log text":"Tekst dziennika","Pause":"Pauza","on change":"na zmian\u0119","control":"kontrola","Say It":"Say It","every hour at 0 minutes":"co godzin\u0119 po 0 minutach","On script save or adapter start":"Podczas zapisywania skryptu lub uruchamiania adaptera","equal to":"r\xf3wny","Actual time of day":"Rzeczywista pora dnia","with":"z","Shell command":"Polecenie pow\u0142oki","URL":"URL","Instance:":"Instancja:","Language:":"J\u0119zyk:","Volume":"Tom","Text:":"Tekst:","undefined":"nieokre\u015blony","Default":"Domy\u015blna","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"Mo\u017cesz u\u017cy\u0107 %s w tek\u015bcie, aby wy\u015bwietli\u0107 aktualn\u0105 warto\u015b\u0107 wyzwalaj\u0105c\u0105, %id, aby u\u017cy\u0107 identyfikatora wyzwolonego obiektu, %name, aby wy\u015bwietli\u0107 nazw\u0119 identyfikatora wyzwolonego obiektu lub %old, aby u\u017cy\u0107 starej warto\u015bci wyzwalaj\u0105cej","Instructions":"Instrukcje","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"Mo\u017cesz u\u017cy\u0107 %s w adresie URL, aby u\u017cy\u0107 bie\u017c\u0105cej warto\u015bci wyzwalacza, %id, aby u\u017cy\u0107 wyzwalanego identyfikatora obiektu, %name, aby wy\u015bwietli\u0107 nazw\u0119 identyfikatora wyzwalanego obiektu, lub %old, aby u\u017cy\u0107 starej warto\u015bci wyzwalacza","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"Mo\u017cesz u\u017cy\u0107 %s w warto\u015bci, aby u\u017cy\u0107 bie\u017c\u0105cej warto\u015bci wyzwalacza, %id, aby u\u017cy\u0107 identyfikatora wyzwalanego obiektu, %name, aby wy\u015bwietli\u0107 nazw\u0119 identyfikatora wyzwalanego obiektu, lub %old, aby u\u017cy\u0107 starej warto\u015bci wyzwalacza","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"Mo\u017cesz u\u017cy\u0107 %s w poleceniu, aby u\u017cy\u0107 bie\u017c\u0105cej warto\u015bci wyzwalaj\u0105cej, %id, aby u\u017cy\u0107 identyfikatora wyzwalanego obiektu, %name, aby wy\u015bwietli\u0107 nazw\u0119 identyfikatora wyzwalanego obiektu, lub %old, aby u\u017cy\u0107 starej warto\u015bci wyzwalaj\u0105cej","every":"ka\u017cdy","with offset":"z przesuni\u0119ciem","on update":"po aktualizacji","update":"aktualizacja","Triggers the rule periodically or on some specific time":"Uruchamia regu\u0142\u0119 okresowo lub w okre\u015blonym czasie","Triggers the on script saving or the javascript instance restart":"Uruchamia zapisywanie skryptu lub restart instancji javascript","Triggers the rule on update or change of some state":"Uruchamia regu\u0142\u0119 przy aktualizacji lub zmianie jakiego\u015b stanu","Compares the state value with user defined value":"Por\xf3wnuje warto\u015b\u0107 stanu z warto\u015bci\u0105 zdefiniowan\u0105 przez u\u017cytkownika","Compares current time with the user specific time":"Por\xf3wnuje aktualny czas z czasem okre\u015blonym przez u\u017cytkownika","Compares current time with astrological event":"Por\xf3wnuje aktualny czas z wydarzeniem astronomicznym","Control or update some state":"Kontroluj lub aktualizuj stan","Executes some shell command":"Wykonuje polecenie pow\u0142oki","Make a HTTP get request":"Z\u0142\xf3\u017c \u017c\u0105danie HTTP get","Print some text in log":"Wydrukuj tekst w dzienniku","Make a pause between actions":"Zr\xf3b przerw\u0119 mi\u0119dzy czynno\u015bciami","Say some text via sayit adapter":"Powiedz tekst przez adapter Sayit","Telegram":"Telegram","User:":"U\u017cytkownik:","all":"wszystko","Sends message via telegram":"Wysy\u0142a wiadomo\u015b\u0107 telegramem","Sends an email":"Wysy\u0142a e-mail","Send email":"Wys\u0142a\u0107 email","Sends message via pushover":"Wysy\u0142a wiadomo\u015b\u0107 przez pushover","Pushover":"\u0141atwizna","Sends message via whatsapp-cmb":"Wysy\u0142a wiadomo\u015b\u0107 przez WhatsApp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"Wysy\u0142a wiadomo\u015b\u0107 przez Pushsafer","Pushsafer":"Pushsafer","To:":"Do:","Subject:":"Przedmiot:","Body:":"Cia\u0142o:","Title:":"Tytu\u0142:","Sound:":"D\u017awi\u0119k:","Priority:":"Priorytet:","magic":"magia","quiet":"cichy","normal":"normalna","high-priority":"wysoki priorytet","acknowledgment":"potwierdzenie","Phone:":"Telefon:","(optional)":"(opcjonalny)","Vibration:":"Wibracja:","lowest priority":"najni\u017cszy priorytet","lower priority":"ni\u017cszy priorytet","normal priority":"normalny priorytet","high priority":"wysoki priorytet","highest priority":"najwy\u017cszy priorytet","default":"domy\u015blna","All":"Wszystko","Write your own code":"Napisz sw\xf3j w\u0142asny kod","User function":"Funkcja u\u017cytkownika","This is advances option. You can write your own code here and it will be executed on trigger":"To jest opcja zaawansowana. Mo\u017cesz tutaj napisa\u0107 w\u0142asny kod, kt\xf3ry zostanie wykonany po wyzwoleniu","greater than":"Lepszy ni\u017c","offset":"offsetowy","Function":"Funkcjonowa\u0107","greater or equal to":"wi\u0119ksze lub r\xf3wne","less or equal to":"mniejszy lub r\xf3wny","less than":"mniej ni\u017c","not equal to":"nie r\xf3wna si\u0119","[equal]":"[r\xf3wny]","[greater or equal]":"[wi\u0119ksze lub r\xf3wne]","[greater]":"[wi\u0119kszy]","[less or equal]":"[mniejszy lub r\xf3wny]","[less]":"[mniej]","[not equal]":"[nie r\xf3wne]","[includes]":"[obejmuje]","[hysteresis]":"[histereza]","greater or equal":"wi\u0119ksze lub r\xf3wne","less or equal":"mniejszy lub r\xf3wny","includes":"zawiera",".":".","()":"()","Mo":"Mo","Tu":"Tu","We":"3","Th":"4","Fr":"Ks","Sa":"Sa","Su":"Su","Control or update some state with delay":"Kontroluj lub aktualizuj jaki\u015b stan z op\xf3\u017anieniem","Delay":"Op\xf3\u017anienie","ms":"ms","Set with delay":"Ustaw z op\xf3\u017anieniem","clear running":"czysty bieg","toggle value":"warto\u015b\u0107 prze\u0142\u0105czania","Any month":"Dowolny miesi\u0105c","Any":"Ka\u017cdy","with date":"z dat\u0105","Date":"Data","Month":"Miesi\u0105c","Januar":"Januar","Februar":"Februar","March ":"Marzec ","Condition":"Stan: schorzenie","Limit":"Limit","The script will be stopped and must be activated manually after debugging. Continue?":"Skrypt zostanie zatrzymany i nale\u017cy go aktywowa\u0107 r\u0119cznie po debugowaniu. Kontyntynuj?","Yes":"tak","Debug instance":"Debuguj instancj\u0119","Resume execution":"Wzn\xf3w wykonanie","Go to next line":"Przejd\u017a do nast\u0119pnej linii","Step into function":"Wejd\u017a do funkcji","Step out from function":"Wyjd\u017a z funkcji","Stop on exception":"Zatrzymaj si\u0119 na wyj\u0105tku","Console":"Konsola","Stack":"Stack","Pause execution":"Wstrzymaj wykonanie","Simulate":"Symulowa\u0107","Trigger with value":"Wyzwalacz z warto\u015bci\u0105","Value":"Warto\u015b\u0107","Write":"Pisa\u0107","Ack":"Potwierdzony","Start":"Pocz\u0105tek","Filter":"Filtr","Instances":"Instancje","Triggered":"Rozsierdzony","Function: executed":"Funkcja: wykonywana","Operate two states":"Obs\u0142uguj dwa stany","store in":"przechowywa\u0107","ID1":"ID1","ID2":"ID2","Operations with two states":"Operacje z dwoma stanami","debug_label":"Odpluskwi\u0107","debug_help":"Jest to specjalny tryb, w kt\xf3rym stany i obiekty si\u0119 nie zmieniaj\u0105. Jednak w protokole b\u0119d\u0105 wy\u015bwietlane tylko informacje o ka\u017cdej planowanej zmianie.","verbose_label":"Pe\u0142ne dane wyj\u015bciowe dziennika","verbose_help":"Dodaje wyniki debugowania do dziennika dla wielu polece\u0144 systemowych","easy":"\u0142atwy","for programmers":"dla programist\xf3w","for professionals":"dla profesjonalist\xf3w","Duplicate name":"Duplikat nazwy","Empty name is not allowed":"Pusta nazwa jest niedozwolona","Astrological events today":"Dzisiejsze wydarzenia astrologiczne","Show astrological events":"Poka\u017c wydarzenia astrologiczne","Time":"Czas","Description":"Opis","nextSunrise":"Nast\u0119pny wsch\xf3d s\u0142o\u0144ca","nextSunset":"Nast\u0119pny zach\xf3d s\u0142o\u0144ca"}')},65909:function(e){e.exports=JSON.parse('{"-":"-","Add":"Adicionar","Add new script":"Adicionar novo script","All files will be accepted":"Todos os arquivos ser\xe3o aceitos","April":"abril","Are you sure?":"Voc\xea tem certeza?","August":"agosto","Blockly description":"Criando regras por blocos gr\xe1ficos","Cancel":"Cancelar","Cannot delete non empty item!":"N\xe3o pode ser deletar, porque n\xe3o est\xe1 vazio!","Change layout":"Alterar layout","Check blocks":"Verificar blocos","Check is not active, because javascript adapter is disabled":"A verifica\xe7\xe3o de sintaxe n\xe3o est\xe1 ativa porque o adaptador javascript n\xe3o est\xe1 rodando.","Clear search input":"Limpar entrada de pesquisa","Click on this icon":"Clique neste \xedcone","Close":"Fechar","Close all but current":"Fechar tudo, menos atual","Collapse all":"Recolher todos","Configuration not saved.":"Configura\xe7\xe3o n\xe3o esta salva.","Convert blockly to javascript for ever.":"Converter Blockly em Javascript permanentemente.","Copy script":"Copiar script","Copy to clipboard":"Copiar para \xe1rea de transfer\xeancia","Create new":"Crie um novo","Create new folder":"Criar nova pasta","Create new script":"Criar novo script","Create or edit CRON or time wizard":"Criar ou editar o assistente cron ou o assistente de hor\xe1rio","Dark Theme":"Layout escuro","Dark style":"Estilo escuro","Debug options":"Op\xe7\xf5es de depura\xe7\xe3o","December":"dezembro","Define cron...":"Definir cron...","Define schedule...":"Definir agendamento ...","Delete":"Deletar","Delete %s":"Deletar %s...","Delete folder":"Deletar pasta","Delete script":"Deletar script","Deselect all":"Desmarcar todos","Discard changes for %s":"Descartar altera\xe7\xf5es para %s","Done":"Pronto","Drop some files here or click...":"Solte alguns arquivos aqui ou clique em...","Edit script or just double click":"Edite o script ou clique duas vezes","End search mode":"Finalizar modo de pesquisa","Error":"Erro","Error was found":"Erro foi encontrado","Existing scripts will be overwritten.":"Os scripts existentes ser\xe3o substitu\xeddos.","Expand all":"Expandir todos","Expert mode":"Modo de especialista","Export":"Exporta\xe7\xe3o","Export all scripts":"Exportar todos os scripts","Export blocks":"Exportar blocos","Export selected blocks":"Exportar blocos selecionados","February":"fevereiro","Folder":"Pasta","Friday":"Sexta-feira","Function editor":"Editor de fun\xe7\xf5es","ID":"ID","Import":"Importar","Import blocks":"Importar blocos","Import error":"Erro de importa\xe7\xe3o","Import scripts":"Importar script","Insert object ID":"Inserir ID do objeto","Instance":"Inst\xe2ncia","Instance is disabled":"Inst\xe2ncia est\xe1 desativada","Invalid CRON":"CRON inv\xe1lido","It will not be possible to revert this operation.":"N\xe3o ser\xe1 poss\xedvel reverter esta opera\xe7\xe3o.","JS description":"Criando regras escrevendo Javascript","January":"janeiro","July":"julho","June":"junho","Learn More":"Aprender mais","Light style":"Estilo claro","Locate file":"Localize o arquivo","Log outputs":"Sa\xeddas de log","March":"mar\xe7o","May":"maio","Menu":"Menu","Message":"mensagem","Monday":"Segunda-feira","Name":"Nome","No active host found":"Nenhum host ativo encontrado","November":"novembro","October":"outubro","Ok":"Ok","On weekdays":"Nos dias \xfateis","Pause script":"Pausar script","Please select object ID...":"Selecione o ID do objeto...","Rename":"Renomear","Reorder scripts in folders":"Reordenar scripts em pastas","Repeat":"Repetir","Restart":"Reiniciar","Root folder":"Pasta principal","Run script":"Executar script","Saturday":"S\xe1bado","Save":"Salve","Script":"Script","Script %s was modified on disk":"O script \\"%s\\" foi modificado no disco r\xedgido","Script is not running":"Script n\xe3o est\xe1 sendo executado","Search in scripts":"Pesquisa em scripts","Search...":"Procurar...","Select all":"Selecionar tudo","September":"setembro","Show javascript code":"Mostrar c\xf3digo Javascript","Show only paused scripts":"Mostrar apenas scripts pausados","Show only running scripts":"Mostrar apenas scripts em execu\xe7\xe3o","Show only scripts with problems":"Mostrar apenas scripts com problemas","Some files will be rejected":"Alguns arquivos ser\xe3o rejeitados","Sunday":"Domingo","TS description":"Criando regras escrevendo Typecript","Thursday":"Quinta-feira","Tuesday":"ter\xe7a","Unknown error":"Erro desconhecido","Unknown error!":"Erro desconhecido!","Wednesday":"quarta","Yet exists!":"Ainda existe!","copy":"copiar","file reading has failed: %s":"a leitura do arquivo falhou: %s","file reading was aborted":"a leitura do arquivo foi abortada","filter_func":"Fun\xe7\xe3o","filter_id":"ID","filter_name":"Nome","filter_role":"Tipo","filter_room":"Quarto","for edit or create script":"para editar ou criar um novo script","no blocks found":"Nenhum bloco encontrado","no group":"SEM GRUPO","not properly connected":"Este bloco n\xe3o est\xe1 conectado corretamente com outros blocos.","tooltip_ack":"reconhecer","tooltip_from":"de","tooltip_lc":"\xdaltima altera\xe7\xe3o","tooltip_quality":"Qualidade","tooltip_ts":"timestamp","tooltip_user":"usu\xe1rio","tooltip_value":"valor","use seconds":"use segundos","Save all":"Salvar tudo","Change theme (actual \\"%s\\")":"Alterar tema (agora - \\"%s\\")","Hide logs":"Ocultar logs","Show logs":"Mostrar logs","Rules description":"Crie regras com blocos IF, THEN, ELSE","help_on_change":"O c\xf3digo ser\xe1 executado apenas se o resultado da condi\xe7\xe3o mudar. Por exemplo. se disparar no valor do sensor de temperatura e a condi\xe7\xe3o for \\"se a temperatura for maior que 20 \xb0 C\\", as a\xe7\xf5es \\"ent\xe3o\\" ser\xe3o executadas uma vez quando a temperatura estiver acima de 20. Na pr\xf3xima vez, as a\xe7\xf5es \\"ent\xe3o\\" ser\xe3o executadas quando a temperatura falha abaixo de 20 e sobe acima de 20 novamente.","help_just_check":"O c\xf3digo ser\xe1 executado apenas sempre que a condi\xe7\xe3o for verdadeira. Por exemplo. se disparar no valor do sensor de temperatura e a condi\xe7\xe3o for \\"se a temperatura for maior que 20 \xb0 C\\", as a\xe7\xf5es \\"ent\xe3o\\" ser\xe3o executadas toda vez que o sensor enviar a temperatura e ela estiver acima de 20 \xb0 C. Por 21 \xb0 C, por 22 \xb0 C e assim por diante.","On condition change":"Na mudan\xe7a de condi\xe7\xe3o","Just check":"Apenas verifique","when":"quando","and":"e","then":"ent\xe3o","or":"ou","else":"outro","Nothing found":"Nada encontrado","reset search":"redefinir pesquisa","Read only ID selected: %s":"ID somente leitura selecionada: %s","OK":"OK","Triggers":"Gatilhos","cron":"CRON","wizard":"Wizard","interval":"intervalo","at":"no","astro":"astro","on condition change":"na mudan\xe7a de condi\xe7\xe3o","just check":"Apenas verifique","Explanation":"Explica\xe7\xe3o","seconds":"segundos","minutes":"minutos","hours":"horas","Every day":"Todos os dias","milliseconds":"milissegundos","Copied":"Copiado","nadir":"nadir","nightEnd":"Fim de noite","nauticalDawn":"Madrugada n\xe1utica","dawn":"alvorecer","sunrise":"nascer do sol","sunriseEnd":"Fim do nascer do sol","goldenHourEnd":"Fim da hora de ouro","solarNoon":"Meio-dia solar","goldenHour":"Hora dourada","sunsetStart":"Come\xe7o do p\xf4r do sol","sunset":"p\xf4r do sol","dusk":"Crep\xfasculo","nauticalDusk":"Crep\xfasculo n\xe1utico","night":"Noite","one":"1","two":"dois","true":"verdade","false":"falso","search":"procurar","Actions":"A\xe7\xf5es","Conditions":"Condi\xe7\xf5es","Schedule":"Cronograma","Start script":"Iniciar script","State":"Estado","State condition":"Condi\xe7\xe3o de estado","Time condition":"Condi\xe7\xe3o de tempo","Astrological":"Astron\xf4mico","Set state action":"Definir a\xe7\xe3o de estado","Exec":"Exec shell","HTTP Call":"Chamada HTTP","Log text":"Texto de registro","Pause":"Pausa","on change":"em mudan\xe7a","control":"ao controle","Say It":"Say It","every hour at 0 minutes":"a cada hora em 0 minutos","On script save or adapter start":"Ao salvar o script ou iniciar o adaptador","equal to":"igual a","Actual time of day":"Hora real do dia","with":"com","Shell command":"Comando shell","URL":"URL","Instance:":"Inst\xe2ncia:","Language:":"L\xedngua:","Volume":"Volume","Text:":"Texto:","undefined":"Indefinido","Default":"Predefini\xe7\xe3o","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"Voc\xea pode usar %s no texto para exibir o valor do acionador atual, %id para usar o ID do objeto acionado, %name para mostrar o nome do ID do objeto acionado ou %old para usar o valor do acionador antigo","Instructions":"Instru\xe7\xf5es","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"Voc\xea pode usar %s na URL para usar o valor do gatilho atual, %id para usar o ID do objeto acionado, %name para mostrar o nome do ID do objeto acionado ou %old para usar o valor do gatilho antigo","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"Voc\xea pode usar %s no valor para usar o valor do acionador atual, %id para usar o ID do objeto acionado, %name para mostrar o nome do ID do objeto acionado ou %old para usar o valor do acionador antigo","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"Voc\xea pode usar %s no comando para usar o valor do acionador atual, %id para usar o ID do objeto acionado, %name para mostrar o nome do ID do objeto acionado ou %old para usar o valor do acionador antigo","every":"cada","with offset":"com deslocamento","on update":"em atualiza\xe7\xe3o","update":"atualizar","Triggers the rule periodically or on some specific time":"Aciona a regra periodicamente ou em algum momento espec\xedfico","Triggers the on script saving or the javascript instance restart":"Aciona o salvamento do script ou a reinicializa\xe7\xe3o da inst\xe2ncia javascript","Triggers the rule on update or change of some state":"Aciona a regra na atualiza\xe7\xe3o ou mudan\xe7a de algum estado","Compares the state value with user defined value":"Compara o valor do estado com o valor definido pelo usu\xe1rio","Compares current time with the user specific time":"Compara a hora atual com a hora espec\xedfica do usu\xe1rio","Compares current time with astrological event":"Compara a hora atual com o evento astron\xf4mico","Control or update some state":"Controlar ou atualizar algum estado","Executes some shell command":"Executa algum comando shell","Make a HTTP get request":"Fa\xe7a uma solicita\xe7\xe3o HTTP get","Print some text in log":"Imprimir algum texto no log","Make a pause between actions":"Fa\xe7a uma pausa entre as a\xe7\xf5es","Say some text via sayit adapter":"Diga algum texto atrav\xe9s do adaptador sayit","Telegram":"Telegrama","User:":"Do utilizador:","all":"todos","Sends message via telegram":"Envia mensagem via telegrama","Sends an email":"Envia um email","Send email":"Enviar email","Sends message via pushover":"Envia mensagem via pushover","Pushover":"Pushover","Sends message via whatsapp-cmb":"Envia mensagem via whatsapp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"Envia mensagem via Pushsafer","Pushsafer":"Pushsafer","To:":"Para:","Subject:":"Sujeito:","Body:":"Corpo:","Title:":"T\xedtulo:","Sound:":"Som:","Priority:":"Prioridade:","magic":"Magia","quiet":"quieto","normal":"normal","high-priority":"prioridade m\xe1xima","acknowledgment":"reconhecimento","Phone:":"Telefone:","(optional)":"(opcional)","Vibration:":"Vibra\xe7\xe3o:","lowest priority":"prioridade mais baixa","lower priority":"prioridade mais baixa","normal priority":"prioridade normal","high priority":"prioridade m\xe1xima","highest priority":"Prioridade m\xe1xima","default":"predefini\xe7\xe3o","All":"Todos","Write your own code":"Escreva seu pr\xf3prio c\xf3digo","User function":"Fun\xe7\xe3o do usu\xe1rio","This is advances option. You can write your own code here and it will be executed on trigger":"Esta \xe9 a op\xe7\xe3o de avan\xe7os. Voc\xea pode escrever seu pr\xf3prio c\xf3digo aqui e ele ser\xe1 executado no gatilho","greater than":"Maior que","offset":"Deslocamento","Function":"Fun\xe7\xe3o","greater or equal to":"maior ou igual a","less or equal to":"menor ou igual a","less than":"Menor que","not equal to":"n\xe3o \xe9 igual a","[equal]":"[igual]","[greater or equal]":"[maior ou igual]","[greater]":"[maior]","[less or equal]":"[menor ou igual]","[less]":"[menos]","[not equal]":"[n\xe3o igual]","[includes]":"[inclui]","[hysteresis]":"[histerese]","greater or equal":"maior ou igual","less or equal":"menor ou igual","includes":"inclui",".":".","()":"()","Mo":"Mo","Tu":"Tu","We":"3","Th":"4","Fr":"Fr","Sa":"S\xe1","Su":"Su","Control or update some state with delay":"Controlar ou atualizar algum estado com atraso","Delay":"Atraso","ms":"ms","Set with delay":"Definido com atraso","clear running":"corrida limpa","toggle value":"valor de altern\xe2ncia","Any month":"Qualquer m\xeas","Any":"Nenhum","with date":"com data","Date":"Encontro","Month":"M\xeas","Januar":"Januar","Februar":"Februar","March ":"Mar\xe7o","Condition":"Doen\xe7a","Limit":"Limite","The script will be stopped and must be activated manually after debugging. Continue?":"O script ser\xe1 interrompido e deve ser ativado manualmente ap\xf3s a depura\xe7\xe3o. Continuar?","Yes":"sim","Debug instance":"Inst\xe2ncia de depura\xe7\xe3o","Resume execution":"Retomar execu\xe7\xe3o","Go to next line":"V\xe1 para a pr\xf3xima linha","Step into function":"Entre na fun\xe7\xe3o","Step out from function":"Saia da fun\xe7\xe3o","Stop on exception":"Pare na exce\xe7\xe3o","Console":"Console","Stack":"Pilha","Pause execution":"Pausar a execu\xe7\xe3o","Simulate":"Simular","Trigger with value":"Trigger com valor","Value":"Valor","Write":"Escrever","Ack":"Reconhecido","Start":"Come\xe7ar","Filter":"Filtro","Instances":"Inst\xe2ncias","Triggered":"Provocado","Function: executed":"Fun\xe7\xe3o: executado","Operate two states":"Operar dois estados","store in":"armazenar em","ID1":"ID1","ID2":"ID2","Operations with two states":"Opera\xe7\xf5es com dois estados","debug_label":"Depurar","debug_help":"Este \xe9 um modo especial no qual estados e objetos n\xe3o ser\xe3o alterados. Mas apenas as informa\xe7\xf5es sobre cada mudan\xe7a planejada ser\xe3o exibidas no protocolo.","verbose_label":"Sa\xeddas de log detalhadas","verbose_help":"Adiciona sa\xedda de depura\xe7\xe3o ao log para muitos comandos do sistema","easy":"f\xe1cil","for programmers":"para programadores","for professionals":"para profissionais","Duplicate name":"Nome duplicado","Empty name is not allowed":"Nome vazio n\xe3o \xe9 permitido","Astrological events today":"Eventos astrol\xf3gicos hoje","Show astrological events":"Mostrar eventos astrol\xf3gicos","Time":"Tempo","Description":"Descri\xe7\xe3o","nextSunrise":"pr\xf3ximo nascer do sol","nextSunset":"Pr\xf3ximo p\xf4r do sol"}')},50482:function(e){e.exports=JSON.parse('{"-":"-","Add":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c","Add new script":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442","All files will be accepted":"\u0412\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043d\u044f\u0442\u044b","April":"\u0410\u043f\u0440\u0435\u043b\u044c","Are you sure?":"\u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b?","August":"\u0410\u0432\u0433\u0443\u0441\u0442","Blockly description":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438","Cancel":"\u041e\u0442\u043c\u0435\u043d\u0430","Cannot delete non empty item!":"\u041d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043d\u0435\u043f\u0443\u0441\u0442\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442!","Change layout":"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043c\u0430\u043a\u0435\u0442","Check blocks":"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0431\u043b\u043e\u043a\u0438","Check is not active, because javascript adapter is disabled":"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0430\u0434\u0430\u043f\u0442\u0435\u0440 Javascript \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d","Clear search input":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u0432\u043e\u0434","Click on this icon":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0437\u043d\u0430\u0447\u043e\u043a","Close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c","Close all but current":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435 \u043a\u0440\u043e\u043c\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e","Collapse all":"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u0441\u0435","Configuration not saved.":"\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0430.","Convert blockly to javascript for ever.":"\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u044c blockly \u0432 Javascript \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430.","Copy script":"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442","Copy to clipboard":"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430","Create new":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439","Create new folder":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443","Create new script":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442","Create or edit CRON or time wizard":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043b\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 CRON \u0438\u043b\u0438 \u043c\u0430\u0441\u0442\u0435\u0440\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438","Dark Theme":"\u0422\u0451\u043c\u043d\u0430\u044f \u0442\u0435\u043c\u0430","Dark style":"\u0422\u0435\u043c\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c","Debug options":"\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043e\u0442\u043b\u0430\u0434\u043a\u0438","December":"\u0414\u0435\u043a\u0430\u0431\u0440\u044c","Define cron...":"\u0417\u0430\u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u043e ...","Define schedule...":"\u0417\u0430\u0434\u0430\u0442\u044c \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435...","Delete":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c","Delete %s":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c %s...","Delete folder":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0430\u043f\u043a\u0443","Delete script":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442","Deselect all":"\u0421\u043d\u044f\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \u0441\u043e \u0432\u0441\u0435\u0445","Discard changes for %s":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0434\u043b\u044f %s","Done":"\u0413\u043e\u0442\u043e\u0432\u043e","Drop some files here or click...":"\u041f\u0435\u0440\u0435\u0442\u044b\u0449\u0438\u0442\u0435 \u0441\u044e\u0434\u0430 \u0444\u0430\u0439\u043b\u044b \u0438\u043b\u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 ...","Edit script or just double click":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0432\u0430\u0436\u0434\u044b \u0449\u0435\u043b\u043a\u043d\u0443\u0442\u044c","End search mode":"\u0417\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u043f\u043e\u0438\u0441\u043a","Error":"\u041e\u0448\u0438\u0431\u043a\u0430","Error was found":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0431\u044b\u043b\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u0430","Existing scripts will be overwritten.":"\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u043d\u044b.","Expand all":"\u0420\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0432\u0441\u0435","Expert mode":"\u042d\u043a\u0441\u043f\u0435\u0440\u0442\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c","Export":"\u042d\u043a\u0441\u043f\u043e\u0440\u0442","Export all scripts":"\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432\u0441\u0435\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432","Export blocks":"\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043b\u043e\u043a\u0438","Export selected blocks":"\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0431\u043b\u043e\u043a\u0438","February":"\u0424\u0435\u0432\u0440\u0430\u043b\u044c","Folder":"\u041f\u0430\u043f\u043a\u0430","Friday":"\u043f\u044f\u0442\u043d\u0438\u0446\u0430","Function editor":"\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438","ID":"ID","Import":"\u0418\u043c\u043f\u043e\u0440\u0442","Import blocks":"\u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043b\u043e\u043a\u0438","Import error":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0438\u043c\u043f\u043e\u0440\u0442\u0430","Import scripts":"\u0418\u043c\u043f\u043e\u0440\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432","Insert object ID":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c ID \u043e\u0431\u044a\u0435\u043a\u0442\u0430","Instance":"\u042d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440","Instance is disabled":"\u042d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d","Invalid CRON":"\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 CRON","It will not be possible to revert this operation.":"\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u044d\u0442\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e.","JS description":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b \u043f\u0443\u0442\u0451\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f Javascript","January":"\u042f\u043d\u0432\u0430\u0440\u044c","July":"\u0418\u044e\u043b\u044c","June":"\u0418\u044e\u043d\u044c","Learn More":"\u0423\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435","Light style":"\u0421\u0432\u0435\u0442\u043b\u044b\u0439 \u0441\u0442\u0438\u043b\u044c","Locate file":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0432 \u0434\u0435\u0440\u0435\u0432\u0435","Log outputs":"\u0416\u0443\u0440\u043d\u0430\u043b","March":"\u041c\u0430\u0440\u0442","May":"\u041c\u0430\u0439","Menu":"\u041c\u0435\u043d\u044e","Message":"\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435","Monday":"\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","Name":"\u0418\u043c\u044f","No active host found":"\u0410\u043a\u0442\u0438\u0432\u043d\u044b\u0439 host \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d","November":"\u041d\u043e\u044f\u0431\u0440\u044c","October":"\u041e\u043a\u0442\u044f\u0431\u0440\u044c","Ok":"Ok","On weekdays":"\u041f\u043e \u0434\u043d\u044f\u043c \u043d\u0435\u0434\u0435\u043b\u0438","Pause script":"\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442","Please select object ID...":"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 ID \u043e\u0431\u044a\u0435\u043a\u0442\u0430 ...","Rename":"\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c","Reorder scripts in folders":"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432 \u043f\u0430\u043f\u043a\u0430\u0445","Repeat":"\u041f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0435","Restart":"\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c","Root folder":"\u041a\u043e\u0440\u043d\u0435\u0432\u0430\u044f \u043f\u0430\u043f\u043a\u0430","Run script":"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442","Saturday":"\u0441\u0443\u0431\u0431\u043e\u0442\u0430","Save":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c","Script":"\u0441\u043a\u0440\u0438\u043f\u0442","Script %s was modified on disk":"\u0421\u043a\u0440\u0438\u043f\u0442 \\"%s\\" \u0431\u044b\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d \u043d\u0430 \u0434\u0438\u0441\u043a\u0435","Script is not running":"\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043d\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d","Search in scripts":"\u041f\u043e\u0438\u0441\u043a \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445","Search...":"\u041f\u043e\u0438\u0441\u043a...","Select all":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435","September":"\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","Show javascript code":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u0434 Javascript","Show only paused scripts":"\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438","Show only running scripts":"\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b","Show only scripts with problems":"\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438","Some files will be rejected":"\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u044b","Sunday":"\u0412\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","TS description":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b \u043f\u0443\u0442\u0451\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f Typescript","Thursday":"\u0427\u0435\u0442\u0432\u0435\u0440\u0433","Tuesday":"\u0432\u0442\u043e\u0440\u043d\u0438\u043a","Unknown error":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430","Unknown error!":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430!","Wednesday":"\u0441\u0440\u0435\u0434\u0430","Yet exists!":"\u0418\u043c\u044f \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442!","copy":"\u043a\u043e\u043f\u0438\u044f","file reading has failed: %s":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430: %s","file reading was aborted":"\u0427\u0442\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0431\u044b\u043b\u043e \u043f\u0440\u0435\u0440\u0432\u0430\u043d\u043e","filter_func":"\u0424\u0443\u043d\u043a\u0446\u0438\u044f","filter_id":"ID","filter_name":"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435","filter_role":"\u0420\u043e\u043b\u044c","filter_room":"\u041a\u043e\u043c\u043d\u0430\u0442\u0430","for edit or create script":"\u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442","no blocks found":"\u0411\u043b\u043e\u043a\u043e\u0432 \u043d\u0435\u0442","no group":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f\u044b","not properly connected":"\u042d\u0442\u043e\u0442 \u0431\u043b\u043e\u043a \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0451\u043d \u0438\u043b\u0438 \u043d\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0451\u043d \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438.","tooltip_ack":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u043e","tooltip_from":"\u041e\u0442","tooltip_lc":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435","tooltip_quality":"\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439","tooltip_ts":"\u0412\u0440\u0435\u043c\u044f","tooltip_user":"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c","tooltip_value":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435","use seconds":"\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u043a\u0443\u043d\u0434\u044b","Save all":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0441\u0435","Change theme (actual \\"%s\\")":"\u0421\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0435\u043c\u0443 (\u0441\u0435\u0439\u0447\u0430\u0441 - \\"%s\\")","Hide logs":"\u0421\u043a\u0440\u044b\u0442\u044c \u0436\u0443\u0440\u043d\u0430\u043b\u044b","Show logs":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0436\u0443\u0440\u043d\u0430\u043b\u044b","Rules description":"\u0421\u043e\u0437\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0441 \u0431\u043b\u043e\u043a\u0430\u043c\u0438 \u0415\u0421\u041b\u0418, \u0422\u041e, \u0418\u041d\u0410\u0427\u0415","help_on_change":"\u041a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044e \xab\u0435\u0441\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 20\xb0C\xbb, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \xab\u0437\u0430\u0442\u0435\u043c\xbb \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043f\u0440\u0435\u0432\u044b\u0441\u0438\u0442 20\xb0C. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \xab\u0437\u0430\u0442\u0435\u043c\xbb \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b, \u043a\u043e\u0433\u0434\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043e\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f \u043d\u0438\u0436\u0435 20\xb0C, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0448\u0435 20\xb0C.","help_just_check":"\u041a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0438\u0441\u0442\u0438\u043d\u043d\u043e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440. \u043f\u0440\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044e \xab\u0435\u0441\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0432\u044b\u0448\u0435 20\xb0C\xbb, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \xab\u0437\u0430\u0442\u0435\u043c\xbb \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0434\u0430\u0442\u0447\u0438\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b, \u0438 \u043e\u043d\u043e \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 20\xb0C. \u041d\u0430 21\xb0\u0421, \u043d\u0430 22\xb0\u0421 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435.","On condition change":"\u041f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0440\u0435\u0443\u0437\u043b\u044c\u0442\u0430\u0442\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0439","Just check":"\u041f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c","when":"\u0435\u0441\u043b\u0438","and":"\u0438","then":"\u0442\u043e\u0433\u0434\u0430","or":"\u0438\u043b\u0438","else":"\u0438\u043d\u0430\u0447\u0435","Nothing found":"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e","reset search":"C\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u0438\u0441\u043a","Read only ID selected: %s":"\u0412\u044b\u0431\u0440\u0430\u043d \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f: %s","OK":"\u041e\u043a","Triggers":"\u0422\u0440\u0438\u0433\u0433\u0435\u0440\u044b","cron":"CRON","wizard":"\u041c\u0430\u0441\u0442\u0435\u0440","interval":"\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b","at":"\u0432","astro":"\u0410\u0441\u0442\u0440\u043e","on condition change":"\u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f","just check":"\u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c","Explanation":"\u041e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435","seconds":"\u0441\u0435\u043a\u0443\u043d\u0434","minutes":"\u043c\u0438\u043d\u0443\u0442(\u0443)","hours":"\u0447\u0430\u0441(\u043e\u0432)","Every day":"\u041a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c","milliseconds":"\u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u044b","Copied":"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e","nadir":"\u041d\u0430\u0434\u0438\u0440","nightEnd":"\u041a\u043e\u043d\u0435\u0446 \u043d\u043e\u0447\u0438","nauticalDawn":"\u041c\u043e\u0440\u0441\u043a\u043e\u0439 \u0440\u0430\u0441\u0441\u0432\u0435\u0442","dawn":"\u0420\u0430\u0441\u0441\u0432\u0435\u0442","sunrise":"\u0412\u043e\u0441\u0445\u043e\u0434 \u0441\u043e\u043b\u043d\u0446\u0430","sunriseEnd":"\u041a\u043e\u043d\u0435\u0446 \u0432\u043e\u0441\u0445\u043e\u0434\u0430","goldenHourEnd":"\u041a\u043e\u043d\u0435\u0446 \u0437\u043e\u043b\u043e\u0442\u043e\u0433\u043e \u0447\u0430\u0441\u0430","solarNoon":"\u0421\u043e\u043b\u043d\u0435\u0447\u043d\u044b\u0439 \u043f\u043e\u043b\u0434\u0435\u043d\u044c","goldenHour":"\u0417\u043e\u043b\u043e\u0442\u043e\u0439 \u0447\u0430\u0441","sunsetStart":"\u041d\u0430\u0447\u0430\u043b\u043e \u0437\u0430\u043a\u0430\u0442\u0430","sunset":"\u0417\u0430\u043a\u0430\u0442 \u0441\u043e\u043b\u043d\u0446\u0430","dusk":"\u0421\u0443\u043c\u0435\u0440\u043a\u0438","nauticalDusk":"\u041c\u043e\u0440\u0441\u043a\u0438\u0435 \u0441\u0443\u043c\u0435\u0440\u043a\u0438","night":"\u041d\u043e\u0447\u044c","one":"\u043e\u0434\u0438\u043d","two":"\u0434\u0432\u0430","true":"true","false":"false","search":"\u043f\u043e\u0438\u0441\u043a","Actions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f","Conditions":"\u0423\u0441\u043b\u043e\u0432\u0438\u044f","Schedule":"\u0420\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435","Start script":"\u0421\u0442\u0430\u0440\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u0430","State":"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435","State condition":"\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f","Time condition":"\u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438","Astrological":"A\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439","Set state action":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435","Exec":"\u0418\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u044c shell","HTTP Call":"HTTP-\u0432\u044b\u0437\u043e\u0432","Log text":"\u0422\u0435\u043a\u0441\u0442 \u0436\u0443\u0440\u043d\u0430\u043b\u0430","Pause":"\u041f\u0430\u0443\u0437\u0430","on change":"\u043f\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044e","control":"\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c","Say It":"Say It","every hour at 0 minutes":"\u043a\u0430\u0436\u0434\u044b\u0439 \u0447\u0430\u0441 \u0447\u0435\u0440\u0435\u0437 0 \u043c\u0438\u043d\u0443\u0442","On script save or adapter start":"\u041f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430","equal to":"\u0440\u0430\u0432\u043d\u043e","Actual time of day":"\u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u0443\u0442\u043e\u043a","with":"\u0441","Shell command":"\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438","URL":"URL","Instance:":"\u041f\u0440\u0438\u043c\u0435\u0440:","Language:":"\u042f\u0437\u044b\u043a:","Volume":"\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c","Text:":"\u0422\u0435\u043a\u0441\u0442:","undefined":"\u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439","Default":"\u0414\u0435\u0444\u043e\u043b\u0442","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c %s \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430, %id \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0432\u0448\u0435\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, %name \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u043d\u0438 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0432\u0448\u0435\u0433\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438\u043b\u0438 %old \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430.","Instructions":"\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c %s \u0432 URL-\u0430\u0434\u0440\u0435\u0441\u0435, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430, %id, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, %name, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0438\u043b\u0438 %old, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0440\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430.","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c %s \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430, %id, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, %name, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0438\u043b\u0438 %old, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0440\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430.","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c %s \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430, %id, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0432\u0448\u0435\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, %name, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0432\u0448\u0435\u0433\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0438\u043b\u0438 %old, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0440\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430.","every":"\u043a\u0430\u0436\u0434\u044b\u0435(\u044b\u0439)","with offset":"\u0441\u043e \u0441\u0434\u0432\u0438\u0433\u043e\u043c","on update":"\u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438","update":"\u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c","Triggers the rule periodically or on some specific time":"\u0421\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u043b\u0438 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f","Triggers the on script saving or the javascript instance restart":"\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 javascript","Triggers the rule on update or change of some state":"\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043a\u0430\u043a\u043e\u0433\u043e-\u043b\u0438\u0431\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f","Compares the state value with user defined value":"\u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c","Compares current time with the user specific time":"\u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0441 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f","Compares current time with astrological event":"\u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0441 \u0430\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0435\u043c","Control or update some state":"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435","Executes some shell command":"\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438","Make a HTTP get request":"\u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435","Print some text in log":"\u041d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0435","Make a pause between actions":"\u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u043f\u0430\u0443\u0437\u0443 \u043c\u0435\u0436\u0434\u0443 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438","Say some text via sayit adapter":"\u041f\u0440\u043e\u0438\u0437\u043d\u0435\u0441\u0438\u0442\u0435 \u0442\u0435\u043a\u0441\u0442 \u0447\u0435\u0440\u0435\u0437 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 Sayit","Telegram":"Telegram","User:":"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c:","all":"\u0432\u0441\u0435","Sends message via telegram":"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c\u0435","Sends an email":"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0435 \u043f\u0438\u0441\u044c\u043c\u043e","Send email":"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c email","Sends message via pushover":"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043f\u0443\u0441\u0442\u044b\u0448\u043a\u0443","Pushover":"Pushover","Sends message via whatsapp-cmb":"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 whatsapp-cmb","Whatsapp-cmb":"Whatsapp-cmb","Sends message via Pushsafer":"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 Pushsafer","Pushsafer":"Pushsafer","To:":"\u041a:","Subject:":"\u041f\u0440\u0435\u0434\u043c\u0435\u0442:","Body:":"\u0422\u0435\u043b\u043e:","Title:":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a:","Sound:":"\u0417\u0432\u0443\u043a:","Priority:":"\u041f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442:","magic":"\u043c\u0430\u0433\u0438\u044f","quiet":"\u0442\u0438\u0445\u0438\u0439","normal":"\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439","high-priority":"\u0432\u044b\u0441\u043e\u043a\u0438\u0439-\u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442","acknowledgment":"\u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435","Phone:":"\u0422\u0435\u043b\u0435\u0444\u043e\u043d:","(optional)":"(\u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439)","Vibration:":"\u0412\u0438\u0431\u0440\u0430\u0446\u0438\u044f:","lowest priority":"\u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0437\u043a\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442","lower priority":"\u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442","normal priority":"\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442","high priority":"\u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442","highest priority":"\u0432\u044b\u0441\u0448\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442","default":"\u0434\u0435\u0444\u043e\u043b\u0442","All":"\u0412\u0441\u0435","Write your own code":"\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0441\u0432\u043e\u0439 \u043a\u043e\u0434","User function":"\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f","This is advances option. You can write your own code here and it will be executed on trigger":"\u042d\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u0441\u0432\u043e\u0439 \u043a\u043e\u0434 \u0438 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u043e \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0443","greater than":"\u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c","offset":"\u0441\u0434\u0432\u0438\u0433","Function":"\u0424\u0443\u043d\u043a\u0446\u0438\u044f","greater or equal to":"\u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e","less or equal to":"\u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e","less than":"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c","not equal to":"\u043d\u0435 \u0440\u0430\u0432\u043d\u043e","[equal]":"[\u0440\u0430\u0432\u043d\u043e]","[greater or equal]":"[\u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e]","[greater]":"[\u0431\u043e\u043b\u044c\u0448\u0435]","[less or equal]":"[\u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e]","[less]":"[\u043c\u0435\u043d\u044c\u0448\u0435]","[not equal]":"[\u043d\u0435 \u0440\u0430\u0432\u043d\u043e]","[includes]":"[\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442]","[hysteresis]":"[\u0433\u0438\u0441\u0442\u0435\u0440\u0435\u0437\u0438\u0441]","greater or equal":"\u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e","less or equal":"\u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e","includes":"\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442",".":".","()":"()","Mo":"\u041f\u043d","Tu":"\u0412\u0442","We":"\u0421\u0440","Th":"\u0427\u0442","Fr":"\u041f\u0442","Sa":"\u0421\u0431","Su":"\u0412\u0441","Control or update some state with delay":"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u043a\u0430\u043a\u043e\u0435-\u043b\u0438\u0431\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439","Delay":"\u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430","ms":"\u043c\u0441","Set with delay":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439","clear running":"\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0443\u0436\u0435 \u0431\u0435\u0433\u0443\u0449\u0438\u0435","toggle value":"\u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435","Any month":"\u0412 \u043b\u044e\u0431\u043e\u0439 \u043c\u0435\u0441\u044f\u0446","Any":"\u041b\u044e\u0431\u0430\u044f","with date":"\u0441 \u0434\u0430\u0442\u043e\u0439","Date":"\u0414\u0430\u0442\u0430","Month":"\u041c\u0435\u0441\u044f\u0446","Januar":"\u042f\u043d\u0432\u0430\u0440\u044c","Februar":"\u0424\u0435\u0432\u0440\u0430\u043b\u044c","March ":"\u041c\u0430\u0440\u0442 ","Condition":"\u0423\u0441\u043b\u043e\u0432\u0438\u0435","Limit":"\u041f\u0440\u0435\u0434\u0435\u043b","The script will be stopped and must be activated manually after debugging. Continue?":"C\u043a\u0440\u0438\u043f\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043b\u0430\u0434\u043a\u0438. \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c?","Yes":"\u0414\u0430","Debug instance":"\u042d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043e\u0442\u043b\u0430\u0434\u043a\u0438","Resume execution":"\u0412\u043e\u0437\u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435","Go to next line":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435","Step into function":"\u0428\u0430\u0433 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","Step out from function":"\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438","Stop on exception":"\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438","Console":"\u041f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430","Stack":"Stack","Pause execution":"\u041f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435","Simulate":"\u0421\u0438\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c","Trigger with value":"\u0422\u0440\u0438\u0433\u0433\u0435\u0440 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c","Value":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435","Write":"\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435","Ack":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435","Start":"\u041d\u0430\u0447\u0438\u043d\u0430\u0442\u044c","Filter":"\u0424\u0438\u043b\u044c\u0442\u0440","Instances":"\u042d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b","Triggered":"\u0421\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442","Function: executed":"\u0424\u0443\u043d\u043a\u0446\u0438\u044f: \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e","Operate two states":"\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0434 \u0434\u0432\u0443\u043c\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043c\u0438","store in":"\u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432","ID1":"ID1","ID2":"ID2","Operations with two states":"\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u0434\u0432\u0443\u043c\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043c\u0438","debug_label":"\u041e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c","debug_help":"\u042d\u0442\u043e \u043e\u0441\u043e\u0431\u044b\u0439 \u0440\u0435\u0436\u0438\u043c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f. \u041d\u043e \u0432 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438.","verbose_label":"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b","verbose_help":"\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u044b\u0432\u043e\u0434 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0432 \u0436\u0443\u0440\u043d\u0430\u043b \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434.","easy":"\u043b\u0435\u0433\u043a\u0438\u0439","for programmers":"\u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432","for professionals":"\u0434\u043b\u044f \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u043e\u0432","Duplicate name":"\u041f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0435\u0435\u0441\u044f \u0438\u043c\u044f","Empty name is not allowed":"\u041f\u0443\u0441\u0442\u043e\u0435 \u0438\u043c\u044f \u043d\u0435 \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f","Astrological events today":"\u0410\u0441\u0442\u0440\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0441\u0435\u0433\u043e\u0434\u043d\u044f","Show astrological events":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0430\u0441\u0442\u0440\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f","Time":"\u0412\u0440\u0435\u043c\u044f","Description":"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435","nextSunrise":"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u043e\u0441\u0445\u043e\u0434","nextSunset":"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0437\u0430\u043a\u0430\u0442"}')},17138:function(e){e.exports=JSON.parse('{"debug_label":"\u0412\u0456\u0434\u043b\u0430\u0433\u043e\u0434\u0436\u0443\u0432\u0430\u0442\u0438","debug_help":"\u0426\u0435 \u043e\u0441\u043e\u0431\u043b\u0438\u0432\u0438\u0439 \u0440\u0435\u0436\u0438\u043c, \u0432 \u044f\u043a\u043e\u043c\u0443 \u0441\u0442\u0430\u043d\u0443 \u0442\u0430 \u043e\u0431\'\u0454\u043a\u0442\u0438 \u043d\u0435 \u0437\u043c\u0456\u043d\u044e\u0432\u0430\u0442\u0438\u043c\u0443\u0442\u044c\u0441\u044f. \u0410\u043b\u0435 \u0432 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0456 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u0438\u043c\u0435\u0442\u044c\u0441\u044f \u043b\u0438\u0448\u0435 \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u044f \u043f\u0440\u043e \u043a\u043e\u0436\u043d\u0443 \u0437\u0430\u043f\u043b\u0430\u043d\u043e\u0432\u0430\u043d\u0443 \u0437\u043c\u0456\u043d\u0443.","verbose_label":"\u0414\u043e\u043a\u043b\u0430\u0434\u043d\u0456 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0443","verbose_help":"\u0414\u043e\u0434\u0430\u0454 \u0432\u0438\u0445\u0456\u0434\u043d\u0456 \u0434\u0430\u043d\u0456 \u043d\u0430\u043b\u0430\u0433\u043e\u0434\u0436\u0435\u043d\u043d\u044f \u0434\u043e \u0436\u0443\u0440\u043d\u0430\u043b\u0443 \u0434\u043b\u044f \u0431\u0430\u0433\u0430\u0442\u044c\u043e\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434","()":"()","(optional)":"(\u043d\u0435\u043e\u0431\u043e\u0432\'\u044f\u0437\u043a\u043e\u0432\u043e)","-":"-",".":".","Ack":"\u0412\u0438\u0437\u043d\u0430\u043d\u043e","Actions":"\u0414\u0456\u0457","Actual time of day":"\u0424\u0430\u043a\u0442\u0438\u0447\u043d\u0438\u0439 \u0447\u0430\u0441 \u0434\u043e\u0431\u0438","Add":"\u0434\u043e\u0434\u0430\u0442\u0438","Add new script":"\u0414\u043e\u0434\u0430\u0442\u0438 \u043d\u043e\u0432\u0438\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439","All":"\u0432\u0441\u0435","All files will be accepted":"\u0423\u0441\u0456 \u0444\u0430\u0439\u043b\u0438 \u0431\u0443\u0434\u0443\u0442\u044c \u043f\u0440\u0438\u0439\u043d\u044f\u0442\u0456","Any":"\u0411\u0443\u0434\u044c-\u044f\u043a\u0438\u0439","Any month":"\u0411\u0443\u0434\u044c-\u044f\u043a\u0438\u0439 \u043c\u0456\u0441\u044f\u0446\u044c","April":"\u043a\u0432\u0456\u0442\u0435\u043d\u044c","Are you sure?":"\u0422\u0438 \u0432\u043f\u0435\u0432\u043d\u0435\u043d\u0438\u0439?","Astrological":"\u0410\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0456\u0447\u043d\u0438\u0439","August":"\u0441\u0435\u0440\u043f\u0435\u043d\u044c","Blockly description":"\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043f\u0440\u0430\u0432\u0438\u043b \u0437\u0430 \u0433\u0440\u0430\u0444\u0456\u0447\u043d\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438","Body:":"\u0422\u0456\u043b\u043e:","Cancel":"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438","Cannot delete non empty item!":"\u041d\u0435\u043c\u043e\u0436\u043b\u0438\u0432\u043e \u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u043d\u0435\u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439 \u0435\u043b\u0435\u043c\u0435\u043d\u0442!","Change layout":"\u0417\u043c\u0456\u043d\u0438\u0442\u0438 \u043c\u0430\u043a\u0435\u0442","Change theme (actual \\"%s\\")":"\u0417\u043c\u0456\u043d\u0438\u0442\u0438 \u0442\u0435\u043c\u0443 (\u0442\u0435\u043f\u0435\u0440 - \\"%s\\")","Check blocks":"\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0431\u043b\u043e\u043a\u0438","Check is not active, because javascript adapter is disabled":"\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0430 \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u0430, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 Javascript \u0432\u0438\u043c\u043a\u043d\u0435\u043d\u043e","Clear search input":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u043f\u043e\u0448\u0443\u043a\u043e\u0432\u0438\u0439 \u0437\u0430\u043f\u0438\u0442","Click on this icon":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u043d\u0430 \u0446\u0435\u0439 \u0437\u043d\u0430\u0447\u043e\u043a","Close":"\u0417\u0430\u043a\u0440\u0438\u0442\u0438","Close all but current":"\u0417\u0430\u043a\u0440\u0438\u0442\u0438 \u0432\u0441\u0456, \u043a\u0440\u0456\u043c \u043f\u043e\u0442\u043e\u0447\u043d\u0438\u0445","Collapse all":"\u0417\u0430\u043a\u0440\u0438\u0442\u0438 \u0432\u0441\u0456","Compares current time with astrological event":"\u041f\u043e\u0440\u0456\u0432\u043d\u044e\u0454 \u043f\u043e\u0442\u043e\u0447\u043d\u0438\u0439 \u0447\u0430\u0441 \u0437 \u0430\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0456\u0447\u043d\u043e\u044e \u043f\u043e\u0434\u0456\u0454\u044e","Compares current time with the user specific time":"\u041f\u043e\u0440\u0456\u0432\u043d\u044e\u0454 \u043f\u043e\u0442\u043e\u0447\u043d\u0438\u0439 \u0447\u0430\u0441 \u0456\u0437 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0438\u043c \u0447\u0430\u0441\u043e\u043c \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430","Compares the state value with user defined value":"\u041f\u043e\u0440\u0456\u0432\u043d\u044e\u0454 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0441\u0442\u0430\u043d\u0443 \u0437 \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u043c \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f\u043c","Condition":"\u0425\u0432\u043e\u0440\u043e\u0431\u0430","Conditions":"\u0423\u043c\u043e\u0432\u0438","Configuration not saved.":"\u041a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u044f \u043d\u0435 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u0430.","Console":"\u041a\u043e\u043d\u0441\u043e\u043b\u044c","Control or update some state":"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044e\u0439\u0442\u0435 \u0430\u0431\u043e \u043e\u043d\u043e\u0432\u043b\u044e\u0439\u0442\u0435 \u043f\u0435\u0432\u043d\u0438\u0439 \u0441\u0442\u0430\u043d","Control or update some state with delay":"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044e\u0439\u0442\u0435 \u0430\u0431\u043e \u043e\u043d\u043e\u0432\u043b\u044e\u0439\u0442\u0435 \u0434\u0435\u044f\u043a\u0438\u0439 \u0441\u0442\u0430\u043d \u0456\u0437 \u0437\u0430\u0442\u0440\u0438\u043c\u043a\u043e\u044e","Convert blockly to javascript for ever.":"\u041d\u0430\u0437\u0430\u0432\u0436\u0434\u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0443\u0439\u0442\u0435 Blockly \u0443 Javascript.","Copied":"\u0421\u043a\u043e\u043f\u0456\u0439\u043e\u0432\u0430\u043d\u043e","Copy script":"\u041a\u043e\u043f\u0456\u044e\u0432\u0430\u0442\u0438 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439","Copy to clipboard":"\u041a\u043e\u043f\u0456\u044e\u0432\u0430\u0442\u0438 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0456\u043d\u0443","Create new":"\u0421\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043d\u043e\u0432\u0438\u0439","Create new folder":"\u0421\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043d\u043e\u0432\u0443 \u043f\u0430\u043f\u043a\u0443","Create new script":"\u0421\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u043d\u043e\u0432\u0438\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439","Create or edit CRON or time wizard":"\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0430\u0431\u043e \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u043d\u043d\u044f CRON \u0430\u0431\u043e \u043c\u0430\u0439\u0441\u0442\u0440\u0430 \u0447\u0430\u0441\u0443","Dark Theme":"\u0422\u0435\u043c\u043d\u0430 \u0442\u0435\u043c\u0430","Dark style":"\u0422\u0435\u043c\u043d\u0438\u0439 \u0441\u0442\u0438\u043b\u044c","Date":"\u0414\u0430\u0442\u0430","Debug instance":"\u0415\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043d\u0430\u043b\u0430\u0433\u043e\u0434\u0436\u0435\u043d\u043d\u044f","Debug options":"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438 \u043d\u0430\u043b\u0430\u0433\u043e\u0434\u0436\u0435\u043d\u043d\u044f","December":"\u0413\u0440\u0443\u0434\u0435\u043d\u044c","Default":"\u0417\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","Define cron...":"\u0412\u0438\u0437\u043d\u0430\u0447\u0438\u0442\u0438 cron...","Define schedule...":"\u0412\u0438\u0437\u043d\u0430\u0447\u0438\u0442\u0438 \u0440\u043e\u0437\u043a\u043b\u0430\u0434...","Delay":"\u0417\u0430\u0442\u0440\u0438\u043c\u043a\u0430","Delete":"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438","Delete %s":"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 %s...","Delete folder":"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u043f\u0430\u043f\u043a\u0443","Delete script":"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439","Deselect all":"\u0417\u043d\u044f\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0456\u0437 \u0443\u0441\u0456\u0445","Discard changes for %s":"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u0437\u043c\u0456\u043d\u0438 \u0434\u043b\u044f %s","Done":"\u0413\u043e\u0442\u043e\u0432\u043e","Drop some files here or click...":"\u041f\u0435\u0440\u0435\u0442\u044f\u0433\u043d\u0456\u0442\u044c \u043a\u0456\u043b\u044c\u043a\u0430 \u0444\u0430\u0439\u043b\u0456\u0432 \u0441\u044e\u0434\u0438 \u0430\u0431\u043e \u043d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c...","Edit script or just double click":"\u0412\u0456\u0434\u0440\u0435\u0434\u0430\u0433\u0443\u0439\u0442\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439 \u0430\u0431\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0432\u0456\u0447\u0456 \u043a\u043b\u0430\u0446\u043d\u0456\u0442\u044c","End search mode":"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0440\u0435\u0436\u0438\u043c \u043f\u043e\u0448\u0443\u043a\u0443","Error":"\u041f\u043e\u043c\u0438\u043b\u043a\u0430","Error was found":"\u0412\u0438\u044f\u0432\u043b\u0435\u043d\u043e \u043f\u043e\u043c\u0438\u043b\u043a\u0443","Every day":"\u041a\u043e\u0436\u0435\u043d \u0434\u0435\u043d\u044c","Exec":"\u0412\u0438\u043a\u043e\u043d\u0430\u0432\u0447\u0430 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0430","Executes some shell command":"\u0412\u0438\u043a\u043e\u043d\u0443\u0454 \u043f\u0435\u0432\u043d\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0438","Existing scripts will be overwritten.":"\u0406\u0441\u043d\u0443\u044e\u0447\u0456 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0457 \u0431\u0443\u0434\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e.","Expand all":"\u0420\u043e\u0437\u0433\u043e\u0440\u043d\u0443\u0442\u0438 \u0432\u0441\u0435","Expert mode":"\u0415\u043a\u0441\u043f\u0435\u0440\u0442\u043d\u0438\u0439 \u0440\u0435\u0436\u0438\u043c","Explanation":"\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u043d\u044f","Export":"\u0415\u043a\u0441\u043f\u043e\u0440\u0442","Export all scripts":"\u0415\u043a\u0441\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0432\u0441\u0456 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0457","Export blocks":"\u0415\u043a\u0441\u043f\u043e\u0440\u0442 \u0431\u043b\u043e\u043a\u0456\u0432","Export selected blocks":"\u0415\u043a\u0441\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0432\u0438\u0431\u0440\u0430\u043d\u0456 \u0431\u043b\u043e\u043a\u0438","Februar":"\u041b\u044e\u0442\u0438\u0439","February":"\u041b\u044e\u0442\u0438\u0439","Filter":"\u0444\u0456\u043b\u044c\u0442\u0440","Folder":"\u041f\u0430\u043f\u043a\u0430","Fr":"\u041e","Friday":"\u041f\'\u044f\u0442\u043d\u0438\u0446\u044f","Function":"\u0444\u0443\u043d\u043a\u0446\u0456\u044f","Function editor":"\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0444\u0443\u043d\u043a\u0446\u0456\u0439","Function: executed":"\u0424\u0443\u043d\u043a\u0446\u0456\u044f: \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043e","Go to next line":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0434\u043e \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u0440\u044f\u0434\u043a\u0430","HTTP Call":"\u0412\u0438\u043a\u043b\u0438\u043a HTTP","Hide logs":"\u041f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0438","ID":"ID","ID1":"ID1","ID2":"ID2","Import":"\u0406\u043c\u043f\u043e\u0440\u0442","Import blocks":"\u0406\u043c\u043f\u043e\u0440\u0442 \u0431\u043b\u043e\u043a\u0456\u0432","Import error":"\u041f\u043e\u043c\u0438\u043b\u043a\u0430 \u0456\u043c\u043f\u043e\u0440\u0442\u0443","Import scripts":"\u0406\u043c\u043f\u043e\u0440\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u0456\u0432","Insert object ID":"\u0412\u0441\u0442\u0430\u0432\u0442\u0435 ID \u043e\u0431\'\u0454\u043a\u0442\u0430","Instance":"\u0415\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440","Instance is disabled":"\u041f\u0440\u0438\u043c\u0456\u0440\u043d\u0438\u043a \u0432\u0438\u043c\u043a\u043d\u0435\u043d\u043e","Instance:":"\u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440:","Instances":"\u041f\u0440\u0438\u043c\u0456\u0440\u043d\u0438\u043a\u0438","Instructions":"\u0406\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0456\u0457","Invalid CRON":"\u041d\u0435\u0434\u0456\u0439\u0441\u043d\u0438\u0439 CRON","It will not be possible to revert this operation.":"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u0446\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u044e \u0431\u0443\u0434\u0435 \u043d\u0435\u043c\u043e\u0436\u043b\u0438\u0432\u043e.","JS description":"\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043f\u0440\u0430\u0432\u0438\u043b \u0448\u043b\u044f\u0445\u043e\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044f Javascript","Januar":"\u0441\u0456\u0447\u0435\u043d\u044c","January":"\u0441\u0456\u0447\u043d\u044f","July":"\u043b\u0438\u043f\u0435\u043d\u044c","June":"\u0447\u0435\u0440\u0432\u0435\u043d\u044c","Just check":"\u041f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435","Language:":"\u041c\u043e\u0432\u0443:","Learn More":"\u0412\u0438\u0432\u0447\u0430\u0439\u0442\u0435 \u0431\u0456\u043b\u044c\u0448\u0435","Light style":"\u041b\u0435\u0433\u043a\u0438\u0439 \u0441\u0442\u0438\u043b\u044c","Limit":"\u041b\u0456\u043c\u0456\u0442","Locate file":"\u0417\u043d\u0430\u0439\u0442\u0438 \u0444\u0430\u0439\u043b","Log outputs":"\u0412\u0438\u0445\u043e\u0434\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0443","Log text":"\u0422\u0435\u043a\u0441\u0442 \u0436\u0443\u0440\u043d\u0430\u043b\u0443","Make a HTTP get request":"\u0417\u0440\u043e\u0431\u0456\u0442\u044c HTTP-\u0437\u0430\u043f\u0438\u0442 \u043d\u0430 \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f","Make a pause between actions":"\u041c\u0456\u0436 \u0434\u0456\u044f\u043c\u0438 \u0440\u043e\u0431\u0456\u0442\u044c \u043f\u0430\u0443\u0437\u0443","March":"\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c","March ":"\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c","May":"\u041c\u043e\u0436\u0435","Menu":"\u041c\u0435\u043d\u044e","Message":"\u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f","Mo":"\u043f\u043d","Monday":"\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","Month":"\u043c\u0456\u0441\u044f\u0446\u044c","Name":"\u0406\u043c\'\u044f","No active host found":"\u0410\u043a\u0442\u0438\u0432\u043d\u0438\u0439 \u0445\u043e\u0441\u0442 \u043d\u0435 \u0437\u043d\u0430\u0439\u0434\u0435\u043d\u043e","Nothing found":"\u041d\u0456\u0447\u043e\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u0439\u0434\u0435\u043d\u043e","November":"\u041b\u0438\u0441\u0442\u043e\u043f\u0430\u0434","OK":"\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0443","October":"\u0436\u043e\u0432\u0442\u0435\u043d\u044c","Ok":"\u0412 \u043f\u043e\u0440\u044f\u0434\u043a\u0443","On condition change":"\u0417\u0430 \u0443\u043c\u043e\u0432\u0438 \u0437\u043c\u0456\u043d\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443","On script save or adapter start":"\u041f\u0456\u0434 \u0447\u0430\u0441 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043d\u044f \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e \u0430\u0431\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430","On weekdays":"\u0412 \u0431\u0443\u0434\u043d\u0456 \u0434\u043d\u0456","Operate two states":"\u041a\u0435\u0440\u0443\u0439\u0442\u0435 \u0434\u0432\u043e\u043c\u0430 \u0441\u0442\u0430\u043d\u0430\u043c\u0438","Operations with two states":"\u041e\u043f\u0435\u0440\u0430\u0446\u0456\u0457 \u0437 \u0434\u0432\u043e\u043c\u0430 \u0441\u0442\u0430\u043d\u0430\u043c\u0438","Pause":"\u041f\u0430\u0443\u0437\u0430","Pause execution":"\u041f\u0440\u0438\u0437\u0443\u043f\u0438\u043d\u0438\u0442\u0438 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f","Pause script":"\u041f\u0440\u0438\u0437\u0443\u043f\u0438\u043d\u0438\u0442\u0438 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439","Phone:":"\u0442\u0435\u043b\u0435\u0444\u043e\u043d:","Please select object ID...":"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440 \u043e\u0431\'\u0454\u043a\u0442\u0430...","Print some text in log":"\u041d\u0430\u0434\u0440\u0443\u043a\u0443\u0432\u0430\u0442\u0438 \u0442\u0435\u043a\u0441\u0442 \u0443 \u0436\u0443\u0440\u043d\u0430\u043b\u0456","Priority:":"\u041f\u0440\u0456\u043e\u0440\u0438\u0442\u0435\u0442:","Pushover":"Pushover","Pushsafer":"Pushsafer","Read only ID selected: %s":"\u0412\u0438\u0431\u0440\u0430\u043d\u043e \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440 \u043b\u0438\u0448\u0435 \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u043d\u043d\u044f: %s","Rename":"\u041f\u0435\u0440\u0435\u0439\u043c\u0435\u043d\u0443\u0432\u0430\u0442\u0438","Reorder scripts in folders":"\u0417\u043c\u0456\u043d\u0430 \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0457\u0432 \u0443 \u043f\u0430\u043f\u043a\u0430\u0445","Repeat":"\u041f\u043e\u0432\u0442\u043e\u0440\u0456\u0442\u044c","Restart":"\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c","Resume execution":"\u0412\u0456\u0434\u043d\u043e\u0432\u0438\u0442\u0438 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f","Root folder":"\u041a\u043e\u0440\u0435\u043d\u0435\u0432\u0430 \u043f\u0430\u043f\u043a\u0430","Rules description":"\u0421\u0442\u0432\u043e\u0440\u044e\u0439\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0437 \u0431\u043b\u043e\u043a\u0430\u043c\u0438 IF, THEN, ELSE","Run script":"\u0417\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439","Sa":"Sa","Saturday":"\u0421\u0443\u0431\u043e\u0442\u0430","Save":"\u0437\u0431\u0435\u0440\u0435\u0433\u0442\u0438","Save all":"\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u0432\u0441\u0435","Say It":"\u0421\u043a\u0430\u0436\u0438 \u0446\u0435","Say some text via sayit adapter":"\u0421\u043a\u0430\u0436\u0456\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0447\u0435\u0440\u0435\u0437 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 sayit","Schedule":"\u0440\u043e\u0437\u043a\u043b\u0430\u0434","Script":"\u0421\u0446\u0435\u043d\u0430\u0440\u0456\u0439","Script %s was modified on disk":"\u0421\u0446\u0435\u043d\u0430\u0440\u0456\u0439 %s \u0437\u043c\u0456\u043d\u0435\u043d\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0443","Script is not running":"\u0421\u0446\u0435\u043d\u0430\u0440\u0456\u0439 \u043d\u0435 \u043f\u0440\u0430\u0446\u044e\u0454","Search in scripts":"\u041f\u043e\u0448\u0443\u043a \u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445","Search...":"\u043f\u043e\u0448\u0443\u043a...","Select all":"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0435","Send email":"\u0412\u0456\u0434\u043f\u0440\u0430\u0432\u0438\u0442\u0438 \u043b\u0438\u0441\u0442","Sends an email":"\u041d\u0430\u0434\u0441\u0438\u043b\u0430\u0454 \u0435\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0438\u0439 \u043b\u0438\u0441\u0442","Sends message via Pushsafer":"\u041d\u0430\u0434\u0441\u0438\u043b\u0430\u0454 \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f \u0447\u0435\u0440\u0435\u0437 Pushsafer","Sends message via pushover":"\u041d\u0430\u0434\u0441\u0438\u043b\u0430\u0454 \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f \u0447\u0435\u0440\u0435\u0437 pushover","Sends message via telegram":"\u041d\u0430\u0434\u0441\u0438\u043b\u0430\u0454 \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c","Sends message via whatsapp-cmb":"\u041d\u0430\u0434\u0441\u0438\u043b\u0430\u0454 \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f \u0447\u0435\u0440\u0435\u0437 whatsapp-cmb","September":"\u0412\u0435\u0440\u0435\u0441\u0435\u043d\u044c","Set state action":"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u0434\u0456\u044e \u0441\u0442\u0430\u043d\u0443","Set with delay":"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u0456\u0437 \u0437\u0430\u0442\u0440\u0438\u043c\u043a\u043e\u044e","Shell command":"\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u043e\u0431\u043e\u043b\u043e\u043d\u043a\u0438","Show javascript code":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u043a\u043e\u0434 Javascript","Show logs":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0438","Show only paused scripts":"\u041f\u043e\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 \u043b\u0438\u0448\u0435 \u043f\u0440\u0438\u0437\u0443\u043f\u0438\u043d\u0435\u043d\u0456 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0457","Show only running scripts":"\u041f\u043e\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 \u043b\u0438\u0448\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0456 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0457","Show only scripts with problems":"\u041f\u043e\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 \u043b\u0438\u0448\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0457 \u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438","Simulate":"\u0421\u0438\u043c\u0443\u043b\u044e\u0432\u0430\u0442\u0438","Some files will be rejected":"\u0414\u0435\u044f\u043a\u0456 \u0444\u0430\u0439\u043b\u0438 \u0431\u0443\u0434\u0435 \u0432\u0456\u0434\u0445\u0438\u043b\u0435\u043d\u043e","Sound:":"\u0437\u0432\u0443\u043a:","Stack":"\u0421\u0442\u0435\u043a","Start":"\u0441\u0442\u0430\u0440\u0442","Start script":"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0438 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0439","State":"\u0414\u0435\u0440\u0436\u0430\u0432\u0430","State condition":"\u0421\u0442\u0430\u043d \u0441\u0442\u0430\u043d\u0443","Step into function":"\u041a\u0440\u043e\u043a \u0443 \u0444\u0443\u043d\u043a\u0446\u0456\u0457","Step out from function":"\u0412\u0438\u0439\u0442\u0438 \u0437 \u0444\u0443\u043d\u043a\u0446\u0456\u0457","Stop on exception":"\u0417\u0443\u043f\u0438\u043d\u043a\u0430 \u043d\u0430 \u0432\u0438\u043d\u044f\u0442\u043a\u0430\u0445","Su":"\u041d\u0434","Subject:":"\u0422\u0435\u043c\u0430:","Sunday":"\u043d\u0435\u0434\u0456\u043b\u044f","TS description":"\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043f\u0440\u0430\u0432\u0438\u043b \u0448\u043b\u044f\u0445\u043e\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044f Typescript","Telegram":"\u0422\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u0430","Text:":"\u0422\u0435\u043a\u0441\u0442:","Th":"\u0447\u0442","The script will be stopped and must be activated manually after debugging. Continue?":"\u0421\u0446\u0435\u043d\u0430\u0440\u0456\u0439 \u0431\u0443\u0434\u0435 \u0437\u0443\u043f\u0438\u043d\u0435\u043d\u043e, \u0456 \u0439\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u0443\u0432\u0430\u0442\u0438 \u0432\u0440\u0443\u0447\u043d\u0443 \u043f\u0456\u0441\u043b\u044f \u043d\u0430\u043b\u0430\u0433\u043e\u0434\u0436\u0435\u043d\u043d\u044f. \u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438?","This is advances option. You can write your own code here and it will be executed on trigger":"\u0426\u0435 \u0430\u0432\u0430\u043d\u0441\u043e\u0432\u0438\u0439 \u0432\u0430\u0440\u0456\u0430\u043d\u0442. \u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u0438 \u0442\u0443\u0442 \u0441\u0432\u0456\u0439 \u0432\u043b\u0430\u0441\u043d\u0438\u0439 \u043a\u043e\u0434, \u0456 \u0432\u0456\u043d \u0431\u0443\u0434\u0435 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043e \u043d\u0430 \u0442\u0440\u0438\u0433\u0435\u0440\u0456","Thursday":"\u0447\u0435\u0442\u0432\u0435\u0440","Time condition":"\u0423\u043c\u043e\u0432\u0430 \u0447\u0430\u0441\u0443","Title:":"\u041d\u0430\u0437\u0432\u0430:","To:":"\u0434\u043e:","Trigger with value":"\u0422\u0440\u0438\u0433\u0435\u0440 \u0437\u0456 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f\u043c","Triggered":"\u0421\u043f\u0440\u0430\u0446\u044c\u043e\u0432\u0443\u0454","Triggers":"\u0422\u0440\u0438\u0433\u0435\u0440\u0438","Triggers the on script saving or the javascript instance restart":"\u0406\u043d\u0456\u0446\u0456\u044e\u0454 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043d\u044f \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e \u0430\u0431\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a \u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 JavaScript","Triggers the rule on update or change of some state":"\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0454 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0440\u0438 \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0456 \u0430\u0431\u043e \u0437\u043c\u0456\u043d\u0456 \u044f\u043a\u043e\u0433\u043e\u0441\u044c \u0441\u0442\u0430\u043d\u0443","Triggers the rule periodically or on some specific time":"\u0421\u043f\u0440\u0430\u0446\u044c\u043e\u0432\u0443\u0454 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0435\u0440\u0456\u043e\u0434\u0438\u0447\u043d\u043e \u0430\u0431\u043e \u0432 \u043f\u0435\u0432\u043d\u0438\u0439 \u0447\u0430\u0441","Tu":"\u0432\u0442","Tuesday":"\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","URL":"URL","Unknown error":"\u041d\u0435\u0432\u0456\u0434\u043e\u043c\u0430 \u043f\u043e\u043c\u0438\u043b\u043a\u0430","Unknown error!":"\u041d\u0435\u0432\u0456\u0434\u043e\u043c\u0430 \u043f\u043e\u043c\u0438\u043b\u043a\u0430!","User function":"\u0424\u0443\u043d\u043a\u0446\u0456\u044f \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430","User:":"\u041a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447:","Value":"\u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f","Vibration:":"\u0412\u0456\u0431\u0440\u0430\u0446\u0456\u044f:","Volume":"\u041e\u0431\u0441\u044f\u0433","We":"\u043c\u0438","Wednesday":"\u0421\u0435\u0440\u0435\u0434\u0430","Whatsapp-cmb":"Whatsapp-cmb","Write":"\u041d\u0430\u043f\u0438\u0448\u0456\u0442\u044c","Write your own code":"\u041d\u0430\u043f\u0438\u0448\u0456\u0442\u044c \u0432\u043b\u0430\u0441\u043d\u0438\u0439 \u043a\u043e\u0434","Yes":"\u0422\u0430\u043a","Yet exists!":"\u0412\u0441\u0435 \u0436 \u0456\u0441\u043d\u0443\u0454!","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 %s \u0432 URL-\u0430\u0434\u0440\u0435\u0441\u0456, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043f\u043e\u0442\u043e\u0447\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430, %id, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430, %name, \u0449\u043e\u0431 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u043d\u0430\u0437\u0432\u0443 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440\u0430 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430, \u0430\u0431\u043e %old, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0441\u0442\u0430\u0440\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 %s \u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0456, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043f\u043e\u0442\u043e\u0447\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430, %id, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430, %name, \u0449\u043e\u0431 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u043d\u0430\u0437\u0432\u0443 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440\u0430 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430, \u0430\u0431\u043e %old, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0441\u0442\u0430\u0440\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 %s \u0443 \u0442\u0435\u043a\u0441\u0442\u0456 \u0434\u043b\u044f \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430, %id \u0434\u043b\u044f \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440\u0430 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430, %name \u0434\u043b\u044f \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0456\u043c\u0435\u043d\u0456 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440\u0430 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430 \u0430\u0431\u043e %old \u0434\u043b\u044f \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 %s \u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u0456, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043f\u043e\u0442\u043e\u0447\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430, %id, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430, %name, \u0449\u043e\u0431 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u043d\u0430\u0437\u0432\u0443 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440\u0430 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043e\u0431\u2019\u0454\u043a\u0442\u0430, \u0430\u0431\u043e %old, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0441\u0442\u0430\u0440\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0440\u0438\u0433\u0435\u0440\u0430","[equal]":"[\u0440\u0456\u0432\u043d\u0438\u0439]","[greater or equal]":"[\u0431\u0456\u043b\u044c\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454]","[greater]":"[\u0431\u0456\u043b\u044c\u0448\u0438\u0439]","[hysteresis]":"[\u0433\u0456\u0441\u0442\u0435\u0440\u0435\u0437\u0438\u0441]","[includes]":"[\u0432\u043a\u043b\u044e\u0447\u0430\u0454]","[less or equal]":"[\u043c\u0435\u043d\u0448\u0435 \u0430\u0431\u043e \u0440\u0456\u0432\u043d\u043e]","[less]":"[\u043c\u0435\u043d\u0448\u0435]","[not equal]":"[\u043d\u0435 \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454]","acknowledgment":"\u043f\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043d\u043d\u044f","all":"\u0432\u0441\u0435","and":"\u0456","astro":"\u0410\u0441\u0442\u0440\u043e","at":"\u0432","clear running":"\u0447\u0456\u0442\u043a\u0438\u0439 \u0431\u0456\u0433","control":"\u041a\u041e\u041d\u0422\u0420\u041e\u041b\u042c","copy":"\u043a\u043e\u043f\u0456\u044f","cron":"CRON","dawn":"\u0421\u0432\u0456\u0442\u0430\u043d\u043e\u043a","default":"\u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","dusk":"\u0421\u0443\u0442\u0456\u043d\u043a\u0438","else":"\u0456\u043d\u0448\u0435","equal to":"\u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454","every":"\u043a\u043e\u0436\u0435\u043d","every hour at 0 minutes":"\u0449\u043e\u0433\u043e\u0434\u0438\u043d\u0438 \u043e 0 \u0445\u0432\u0438\u043b\u0438\u043d","false":"\u043f\u043e\u043c\u0438\u043b\u043a\u043e\u0432\u0438\u0439","file reading has failed: %s":"\u043d\u0435 \u0432\u0434\u0430\u043b\u043e\u0441\u044f \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u0438 \u0444\u0430\u0439\u043b: %s","file reading was aborted":"\u0447\u0438\u0442\u0430\u043d\u043d\u044f \u0444\u0430\u0439\u043b\u0443 \u0431\u0443\u043b\u043e \u043f\u0435\u0440\u0435\u0440\u0432\u0430\u043d\u043e","filter_func":"\u0444\u0443\u043d\u043a\u0446\u0456\u044f","filter_id":"ID","filter_name":"\u0406\u043c\'\u044f","filter_role":"\u0420\u043e\u043b\u044c","filter_room":"\u041a\u0456\u043c\u043d\u0430\u0442\u0430","for edit or create script":"\u0434\u043b\u044f \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u043d\u043d\u044f \u0430\u0431\u043e \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e","goldenHour":"\u0417\u043e\u043b\u043e\u0442\u0430 \u0433\u043e\u0434\u0438\u043d\u0430","goldenHourEnd":"\u041a\u0456\u043d\u0435\u0446\u044c \u0437\u043e\u043b\u043e\u0442\u043e\u0457 \u0433\u043e\u0434\u0438\u043d\u0438","greater or equal":"\u0431\u0456\u043b\u044c\u0448\u0438\u0439 \u0430\u0431\u043e \u0440\u0456\u0432\u043d\u0438\u0439","greater or equal to":"\u0431\u0456\u043b\u044c\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454","greater than":"\u0431\u0456\u043b\u044c\u0448\u0435, \u043d\u0456\u0436, \u0432\u0435\u043b\u0438\u0447\u043d\u0456\u0448\u0435 \u043d\u0456\u0436, \u043a\u0440\u0443\u0442\u0456\u0448\u0438\u0439 \u0437\u0430","help_just_check":"\u041a\u043e\u0434 \u0431\u0443\u0434\u0435 \u0432\u0438\u043a\u043e\u043d\u0443\u0432\u0430\u0442\u0438\u0441\u044f \u043b\u0438\u0448\u0435 \u0449\u043e\u0440\u0430\u0437\u0443, \u043a\u043e\u043b\u0438 \u0443\u043c\u043e\u0432\u0430 \u0432\u0438\u043a\u043e\u043d\u0443\u0454\u0442\u044c\u0441\u044f. \u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434 \u044f\u043a\u0449\u043e \u0441\u043f\u0440\u0430\u0446\u044c\u043e\u0432\u0443\u0454 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0438 \u0442\u0430 \u0443\u043c\u043e\u0432\u0430 \xab\u044f\u043a\u0449\u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043f\u0435\u0440\u0435\u0432\u0438\u0449\u0443\u0454 20\xb0C\xbb, \u0434\u0456\u0457 \xab\u0442\u043e\u0434\u0456\xbb \u0432\u0438\u043a\u043e\u043d\u0443\u0432\u0430\u0442\u0438\u043c\u0443\u0442\u044c\u0441\u044f \u0449\u043e\u0440\u0430\u0437\u0443, \u043a\u043e\u043b\u0438 \u0434\u0430\u0442\u0447\u0438\u043a \u043d\u0430\u0434\u0441\u0438\u043b\u0430\u0454 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443, \u0456 \u0432\u043e\u043d\u0430 \u043f\u0435\u0440\u0435\u0432\u0438\u0449\u0443\u0454 20\xb0C. \u041d\u0430 21\xb0C, \u043d\u0430 22\xb0C \u0456 \u0442\u0430\u043a \u0434\u0430\u043b\u0456.","help_on_change":"\u041a\u043e\u0434 \u0431\u0443\u0434\u0435 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043e \u043b\u0438\u0448\u0435 \u0443 \u0440\u0430\u0437\u0456 \u0437\u043c\u0456\u043d\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443 \u0443\u043c\u043e\u0432\u0438. \u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434 \u044f\u043a\u0449\u043e \u0441\u043f\u0440\u0430\u0446\u044c\u043e\u0432\u0443\u0454 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0438 \u0442\u0430 \u0443\u043c\u043e\u0432\u0430 \xab\u044f\u043a\u0449\u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043f\u0435\u0440\u0435\u0432\u0438\u0449\u0443\u0454 20\xb0C\xbb, \u0434\u0456\u0457 \xab\u0442\u043e\u0434\u0456\xbb \u0431\u0443\u0434\u0443\u0442\u044c \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u0456 \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043a\u043e\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0431\u0443\u0434\u0435 \u0432\u0438\u0449\u0435 20. \u041d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0443 \u0434\u0456\u0457 \xab\u0442\u043e\u0434\u0456\xbb \u0431\u0443\u0434\u0435 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043e, \u043a\u043e\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043f\u0430\u0434\u0430\u0454 \u043d\u0438\u0436\u0447\u0435 20, \u0430 \u043f\u043e\u0442\u0456\u043c \u0437\u043d\u043e\u0432\u0443 \u043f\u0456\u0434\u043d\u0456\u043c\u0430\u0454\u0442\u044c\u0441\u044f \u0432\u0438\u0449\u0435 20.","high priority":"\u0432\u0438\u0441\u043e\u043a\u0438\u0439 \u043f\u0440\u0456\u043e\u0440\u0438\u0442\u0435\u0442","high-priority":"\u0432\u0438\u0441\u043e\u043a\u0438\u0439 \u043f\u0440\u0456\u043e\u0440\u0438\u0442\u0435\u0442","highest priority":"\u043d\u0430\u0439\u0432\u0438\u0449\u0438\u0439 \u043f\u0440\u0456\u043e\u0440\u0438\u0442\u0435\u0442","hours":"\u0433\u043e\u0434\u0438\u043d\u0438","includes":"\u0432\u043a\u043b\u044e\u0447\u0430\u0454 \u0432 \u0441\u0435\u0431\u0435","interval":"\u0456\u043d\u0442\u0435\u0440\u0432\u0430\u043b","just check":"\u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435","less or equal":"\u043c\u0435\u043d\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454","less or equal to":"\u043c\u0435\u043d\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454","less than":"\u043c\u0435\u043d\u0448\u0435 \u043d\u0456\u0436","lower priority":"\u043d\u0438\u0436\u0447\u0438\u0439 \u043f\u0440\u0456\u043e\u0440\u0438\u0442\u0435\u0442","lowest priority":"\u043d\u0430\u0439\u043d\u0438\u0436\u0447\u0438\u0439 \u043f\u0440\u0456\u043e\u0440\u0438\u0442\u0435\u0442","magic":"\u043c\u0430\u0433\u0456\u044f","milliseconds":"\u043c\u0456\u043b\u0456\u0441\u0435\u043a\u0443\u043d\u0434","minutes":"\u0445\u0432\u0438\u043b\u0438\u043d","ms":"\u0420\u0421","nadir":"\u041d\u0430\u0434\u0456\u0440","nauticalDawn":"\u041c\u043e\u0440\u0441\u044c\u043a\u0438\u0439 \u0441\u0432\u0456\u0442\u0430\u043d\u043e\u043a","nauticalDusk":"\u041c\u043e\u0440\u0441\u044c\u043a\u0456 \u0441\u0443\u0442\u0456\u043d\u043a\u0438","night":"\u043d\u0456\u0447","nightEnd":"\u041a\u0456\u043d\u0435\u0446\u044c \u043d\u043e\u0447\u0456","no blocks found":"\u0411\u043b\u043e\u043a\u0456\u0432 \u043d\u0435 \u0437\u043d\u0430\u0439\u0434\u0435\u043d\u043e","no group":"\u041d\u0415\u041c\u0410\u0404 \u0413\u0420\u0423\u041f\u0418","normal":"\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e","normal priority":"\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0438\u0439 \u043f\u0440\u0456\u043e\u0440\u0438\u0442\u0435\u0442","not equal to":"\u043d\u0435 \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454","not properly connected":"\u0426\u0435\u0439 \u0431\u043b\u043e\u043a \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0437\u2019\u0454\u0434\u043d\u0430\u043d\u0438\u0439 \u0437 \u0456\u043d\u0448\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438.","offset":"\u0437\u0441\u0443\u0432","on change":"\u043d\u0430 \u0437\u043c\u0456\u043d\u0443","on condition change":"\u043f\u0440\u043e \u0437\u043c\u0456\u043d\u0443 \u0443\u043c\u043e\u0432","on update":"\u043d\u0430 \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f","one":"\u043e\u0434\u0438\u043d","or":"\u0430\u0431\u043e","quiet":"\u0442\u0438\u0445\u043e","reset search":"\u0441\u043a\u0438\u043d\u0443\u0442\u0438 \u043f\u043e\u0448\u0443\u043a","search":"\u043f\u043e\u0448\u0443\u043a","seconds":"\u0441\u0435\u043a\u0443\u043d\u0434","solarNoon":"\u0421\u043e\u043d\u044f\u0447\u043d\u0438\u0439 \u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c","store in":"\u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0442\u0438 \u0432","sunrise":"\u0441\u0445\u0456\u0434 \u0441\u043e\u043d\u0446\u044f","sunriseEnd":"\u041a\u0456\u043d\u0435\u0446\u044c \u0441\u0445\u043e\u0434\u0443 \u0441\u043e\u043d\u0446\u044f","sunset":"\u0417\u0430\u0445\u0456\u0434 \u0441\u043e\u043d\u0446\u044f","sunsetStart":"\u041f\u043e\u0447\u0430\u0442\u043e\u043a \u0437\u0430\u0445\u043e\u0434\u0443 \u0441\u043e\u043d\u0446\u044f","then":"\u043f\u043e\u0442\u0456\u043c","toggle value":"\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043f\u0435\u0440\u0435\u043c\u0438\u043a\u0430\u043d\u043d\u044f","tooltip_ack":"\u0412\u0438\u0437\u043d\u0430\u0442\u0438","tooltip_from":"\u0412\u0456\u0434","tooltip_lc":"\u0412\u043e\u0441\u0442\u0430\u043d\u043d\u0454 \u0437\u043c\u0456\u043d\u0435\u043d\u043e","tooltip_quality":"\u044f\u043a\u0456\u0441\u0442\u044c","tooltip_ts":"\u041c\u0456\u0442\u043a\u0430 \u0447\u0430\u0441\u0443","tooltip_user":"\u041a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447","tooltip_value":"\u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f","true":"\u043f\u0440\u0430\u0432\u0434\u0430","two":"\u0434\u0432\u0430","undefined":"\u043d\u0435\u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439","update":"\u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f","use seconds":"\u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u0438","when":"\u043a\u043e\u043b\u0438","with":"\u0437","with date":"\u0437 \u0434\u0430\u0442\u043e\u044e","with offset":"\u0437\u0456 \u0437\u043c\u0456\u0449\u0435\u043d\u043d\u044f\u043c","wizard":"\u043c\u0430\u0439\u0441\u0442\u0435\u0440","easy":"\u043b\u0435\u0433\u043a\u043e","for programmers":"\u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0456\u0441\u0442\u0456\u0432","for professionals":"\u0434\u043b\u044f \u043f\u0440\u043e\u0444\u0435\u0441\u0456\u043e\u043d\u0430\u043b\u0456\u0432","Duplicate name":"\u041f\u043e\u0432\u0442\u043e\u0440\u044e\u0432\u0430\u043d\u0435 \u0456\u043c\'\u044f","Empty name is not allowed":"\u041f\u043e\u0440\u043e\u0436\u043d\u0454 \u0456\u043c\'\u044f \u043d\u0435 \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u0454\u0442\u044c\u0441\u044f","Astrological events today":"\u0410\u0441\u0442\u0440\u043e\u043b\u043e\u0433\u0456\u0447\u043d\u0456 \u043f\u043e\u0434\u0456\u0457 \u0441\u044c\u043e\u0433\u043e\u0434\u043d\u0456","Show astrological events":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0430\u0441\u0442\u0440\u043e\u043b\u043e\u0433\u0456\u0447\u043d\u0456 \u043f\u043e\u0434\u0456\u0457","Time":"\u0447\u0430\u0441","Description":"\u043e\u043f\u0438\u0441","nextSunrise":"\u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0441\u0445\u0456\u0434 \u0441\u043e\u043d\u0446\u044f","nextSunset":"\u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0437\u0430\u0445\u0456\u0434 \u0441\u043e\u043d\u0446\u044f"}')},58246:function(e){e.exports=JSON.parse('{"-":"-","Add":"\u6dfb\u52a0","Add new script":"\u6dfb\u52a0\u65b0\u811a\u672c","All files will be accepted":"\u6240\u6709\u6587\u4ef6\u90fd\u5c06\u88ab\u63a5\u53d7","April":"\u56db\u6708","Are you sure?":"\u4f60\u786e\u5b9a\u5417\uff1f","August":"\u516b\u6708","Blockly description":"\u6309\u56fe\u5f62\u5757\u521b\u5efa\u89c4\u5219","Cancel":"\u53d6\u6d88","Cannot delete non empty item!":"\u65e0\u6cd5\u5220\u9664\u975e\u7a7a\u9879\u76ee\uff01","Change layout":"\u53d8\u66f4\u7248\u9762","Check blocks":"\u68c0\u67e5\u5757","Check is not active, because javascript adapter is disabled":"\u68c0\u67e5\u672a\u6fc0\u6d3b\uff0c\u56e0\u4e3a\u7981\u7528\u4e86Javascript\u9002\u914d\u5668","Clear search input":"\u6e05\u9664\u641c\u7d22\u8f93\u5165","Click on this icon":"\u5355\u51fb\u6b64\u56fe\u6807","Close":"\u5173\u95ed","Close all but current":"\u5173\u95ed\u6240\u6709\uff08\u5f53\u524d\u9664\u5916\uff09","Collapse all":"\u5168\u90e8\u6536\u7f29","Configuration not saved.":"\u914d\u7f6e\u672a\u4fdd\u5b58\u3002","Convert blockly to javascript for ever.":"\u7acb\u5373\u5c06blockly\u8f6c\u6362\u4e3aJavascript\u3002","Copy script":"\u590d\u5236\u811a\u672c","Copy to clipboard":"\u590d\u5236\u5230\u526a\u8d34\u677f","Create new":"\u521b\u5efa\u65b0\u7684","Create new folder":"\u521b\u5efa\u65b0\u6587\u4ef6\u5939","Create new script":"\u521b\u5efa\u65b0\u811a\u672c","Create or edit CRON or time wizard":"\u521b\u5efa\u6216\u7f16\u8f91\u5468\u671f\u4efb\u52a1\u6216\u65f6\u95f4\u5411\u5bfc","Dark Theme":"\u6df1\u8272\u8c03\u4e3b\u9898","Dark style":"\u6df1\u8272\u8c03\u98ce\u683c","Debug options":"\u8c03\u8bd5\u9009\u9879","December":"\u5341\u4e8c\u6708","Define cron...":"\u5b9a\u4e49\u5468\u671f\u4efb\u52a1...","Define schedule...":"\u5b9a\u4e49\u8c03\u5ea6\u5668......","Delete":"\u5220\u9664","Delete %s":"\u5220\u9664%s...","Delete folder":"\u5220\u9664\u6587\u4ef6\u5939","Delete script":"\u5220\u9664\u811a\u672c","Deselect all":"\u53d6\u6d88\u5168\u9009","Discard changes for %s":"\u653e\u5f03%s\u7684\u66f4\u6539","Done":"\u5b8c\u6210","Drop some files here or click...":"\u5c06\u6587\u4ef6\u62d6\u62fd\u5230\u8fd9\u91cc\u6216\u5355\u51fb......","Edit script or just double click":"\u53cc\u51fb\u7f16\u8f91\u811a\u672c","End search mode":"\u7ed3\u675f\u641c\u7d22\u6a21\u5f0f","Error":"\u9519\u8bef","Error was found":"\u53d1\u73b0\u9519\u8bef","Existing scripts will be overwritten.":"\u73b0\u6709\u811a\u672c\u5c06\u88ab\u8986\u76d6\u3002","Expand all":"\u5c55\u5f00\u5168\u90e8","Expert mode":"\u4e13\u5bb6\u6a21\u5f0f","Export":"\u5bfc\u51fa","Export all scripts":"\u5bfc\u51fa\u6240\u6709\u811a\u672c","Export blocks":"\u5bfc\u51fa\u5757","Export selected blocks":"\u5bfc\u51fa\u9009\u5b9a\u7684\u5757","February":"\u4e8c\u6708","Folder":"\u6587\u4ef6\u5939","Friday":"\u661f\u671f\u4e94","Function editor":"\u529f\u80fd\u7f16\u8f91\u5668","ID":"ID","Import":"\u5bfc\u5165","Import blocks":"\u5bfc\u5165\u5757","Import error":"\u5bfc\u5165\u9519\u8bef","Import scripts":"\u5bfc\u5165\u811a\u672c","Insert object ID":"\u63d2\u5165\u5bf9\u8c61ID","Instance":"\u5b9e\u4f8b","Instance is disabled":"\u5b9e\u4f8b\u5df2\u7981\u7528","Invalid CRON":"\u65e0\u6548\u7684\u5468\u671f\u4efb\u52a1","It will not be possible to revert this operation.":"\u65e0\u6cd5\u6062\u590d\u6b64\u64cd\u4f5c\u3002","JS description":"\u901a\u8fc7\u7f16\u5199Javascript\u6765\u521b\u5efa\u89c4\u5219","January":"\u4e00\u6708","July":"\u4e03\u6708","June":"\u516d\u6708","Learn More":"\u4e86\u89e3\u66f4\u591a","Light style":"\u6d45\u8272\u8c03\u98ce\u683c","Locate file":"\u5b9a\u4f4d\u6587\u4ef6","Log outputs":"\u8bb0\u5f55\u8f93\u51fa","March":"\u4e09\u6708","May":"\u4e94\u6708","Menu":"\u83dc\u5355","Message":"\u4fe1\u606f","Monday":"\u661f\u671f\u4e00","Name":"\u540d\u79f0","No active host found":"\u627e\u4e0d\u5230\u6d3b\u52a8\u4e3b\u673a","November":"\u5341\u4e00\u6708","October":"\u5341\u6708","Ok":"\u786e\u5b9a","On weekdays":"\u5728\u5de5\u4f5c\u65e5","Pause script":"\u6682\u505c\u811a\u672c","Please select object ID...":"\u8bf7\u9009\u62e9\u5bf9\u8c61ID...","Rename":"\u91cd\u547d\u540d","Reorder scripts in folders":"\u91cd\u65b0\u6392\u5e8f\u6587\u4ef6\u5939\u4e2d\u7684\u811a\u672c","Repeat":"\u91cd\u590d","Restart":"\u91cd\u542f","Root folder":"\u6839\u6587\u4ef6\u5939","Run script":"\u8fd0\u884c\u811a\u672c","Saturday":"\u661f\u671f\u516d","Save":"\u4fdd\u5b58","Script":"\u811a\u672c","Script %s was modified on disk":"\u811a\u672c%s\u5df2\u5728\u78c1\u76d8\u4e0a\u4fee\u6539","Script is not running":"\u811a\u672c\u6ca1\u6709\u8fd0\u884c","Search in scripts":"\u5728\u811a\u672c\u4e2d\u641c\u7d22","Search...":"\u641c\u7d22...","Select all":"\u5168\u9009","September":"\u4e5d\u6708","Show javascript code":"\u663e\u793aJavascript\u4ee3\u7801","Show only paused scripts":"\u4ec5\u663e\u793a\u6682\u505c\u7684\u811a\u672c","Show only running scripts":"\u4ec5\u663e\u793a\u6b63\u5728\u8fd0\u884c\u7684\u811a\u672c","Show only scripts with problems":"\u4ec5\u663e\u793a\u6709\u95ee\u9898\u7684\u811a\u672c","Some files will be rejected":"\u6709\u4e9b\u6587\u4ef6\u5c06\u88ab\u62d2\u7edd","Sunday":"\u661f\u671f\u65e5","TS description":"\u901a\u8fc7\u7f16\u5199Typescript\u6765\u521b\u5efa\u89c4\u5219","Thursday":"\u661f\u671f\u56db","Tuesday":"\u661f\u671f\u4e8c","Unknown error":"\u672a\u77e5\u9519\u8bef","Unknown error!":"\u672a\u77e5\u9519\u8bef\uff01","Wednesday":"\u661f\u671f\u4e09","Yet exists!":"\u4e0d\u5b58\u5728\uff01","copy":"\u590d\u5236","file reading has failed: %s":"\u6587\u4ef6\u8bfb\u53d6\u5931\u8d25\uff1a%s","file reading was aborted":"\u6587\u4ef6\u8bfb\u53d6\u4e2d\u6b62","filter_func":"\u529f\u80fd","filter_id":"ID","filter_name":"\u540d\u5b57","filter_role":"\u89d2\u8272","filter_room":"\u623f\u95f4","for edit or create script":"\u7528\u4e8e\u7f16\u8f91\u6216\u521b\u5efa\u811a\u672c","no blocks found":"\u627e\u4e0d\u5230\u5757","no group":"\u6ca1\u6709\u7ec4","not properly connected":"\u6b64\u5757\u672a\u6b63\u786e\u8fde\u63a5\u5230\u5176\u4ed6\u5757\u3002","tooltip_ack":"\u786e\u8ba4","tooltip_from":"\u4ece","tooltip_lc":"\u4e0a\u4e00\u6b21\u6539\u53d8","tooltip_quality":"\u8d28\u91cf","tooltip_ts":"\u65f6\u95f4\u6233","tooltip_user":"\u7528\u6237","tooltip_value":"\u503c","use seconds":"\u7cbe\u786e\u5230\u79d2","Save all":"\u4fdd\u5b58\u5168\u90e8","Change theme (actual \\"%s\\")":"\u66f4\u6539\u4e3b\u9898\uff08\u73b0\u5728\u4e3a\u201c%s\u201d\uff09","Hide logs":"\u9690\u85cf\u65e5\u5fd7","Show logs":"\u663e\u793a\u8bb0\u5f55","Rules description":"\u4f7f\u7528IF\uff0cTHEN\uff0cELSE\u5757\u521b\u5efa\u89c4\u5219","help_on_change":"\u4ec5\u5f53\u6761\u4ef6\u7ed3\u679c\u66f4\u6539\u65f6\uff0c\u4ee3\u7801\u624d\u4f1a\u6267\u884c\u3002\u4f8b\u5982\u3002\u5982\u679c\u89e6\u53d1\u6e29\u5ea6\u4f20\u611f\u5668\u503c\u4e14\u6761\u4ef6\u4e3a\u201c\u5982\u679c\u6e29\u5ea6\u5927\u4e8e20\xb0C\u201d\uff0c\u5219\u6e29\u5ea6\u8d85\u8fc720\u65f6\u5c06\u6267\u884c\u4e00\u6b21\u201c\u5219\u201d\u52a8\u4f5c\uff0c\u4e0b\u4e00\u6b21\uff0c\u5f53\u6e29\u5ea6\u8d85\u8fc720\u65f6\u5c06\u6267\u884c\u201c\u5219\u201d\u52a8\u4f5c\u4f4e\u4e8e20\u5931\u8d25\uff0c\u7136\u540e\u518d\u6b21\u8d85\u8fc720\u3002","help_just_check":"\u4ec5\u5728\u6761\u4ef6\u4e3a\u771f\u65f6\u624d\u6267\u884c\u4ee3\u7801\u3002\u4f8b\u5982\u3002\u5982\u679c\u89e6\u53d1\u6e29\u5ea6\u4f20\u611f\u5668\u503c\u5e76\u4e14\u6761\u4ef6\u4e3a\u201c\u5982\u679c\u6e29\u5ea6\u5927\u4e8e20\xb0C\u201d\uff0c\u5219\u6bcf\u6b21\u4f20\u611f\u5668\u53d1\u9001\u6e29\u5ea6\u4e14\u6e29\u5ea6\u8d85\u8fc720\xb0C\u65f6\uff0c\u5c06\u6267\u884c\u201c\u7136\u540e\u201d\u52a8\u4f5c\u3002 21\xb0C\uff0c22\xb0C\u7b49\u3002","On condition change":"\u6761\u4ef6\u53d8\u5316\u65f6","Just check":"\u53ea\u662f\u68c0\u67e5","when":"\u4ec0\u4e48\u65f6\u5019","and":"\u548c","then":"\u7136\u540e","or":"\u6216","else":"\u522b\u7684","Nothing found":"\u6ca1\u6709\u53d1\u73b0","reset search":"\u91cd\u7f6e\u641c\u7d22","Read only ID selected: %s":"\u9009\u62e9\u7684\u53ea\u8bfbID\uff1a%s","OK":"\u597d\u7684","Triggers":"\u6273\u673a","cron":"\u514b\u6717","wizard":"\u5deb\u5e08","interval":"\u95f4\u9694","at":"\u5728","astro":"\u5929\u6587","on condition change":"\u5728\u6761\u4ef6\u53d8\u5316\u65f6","just check":"\u53ea\u662f\u68c0\u67e5","Explanation":"\u89e3\u91ca","seconds":"\u79d2","minutes":"\u5206\u949f","hours":"\u5c0f\u65f6","Every day":"\u6bcf\u5929","milliseconds":"\u6beb\u79d2","Copied":"\u590d\u5236\u7684","nadir":"\u6700\u4f4e\u70b9","nightEnd":"\u591c\u665a\u7ed3\u675f","nauticalDawn":"\u822a\u6d77\u9ece\u660e","dawn":"\u9ece\u660e","sunrise":"\u65e5\u51fa","sunriseEnd":"\u65e5\u51fa\u7ed3\u675f","goldenHourEnd":"\u9ec4\u91d1\u65f6\u6bb5\u7ed3\u675f","solarNoon":"\u661f\u671f\u65e5\u6b63\u5348","goldenHour":"\u9ec4\u91d1\u65f6\u6bb5","sunsetStart":"\u65e5\u843d\u5f00\u59cb","sunset":"\u65e5\u843d","dusk":"\u9ec4\u660f","nauticalDusk":"\u822a\u6d77\u9ec4\u660f","night":"\u591c\u665a","one":"\u4e00","two":"\u4e8c","true":"\u771f\u7684","false":"\u9519\u8bef\u7684","search":"\u641c\u7d22","Actions":"\u52a8\u4f5c","Conditions":"\u60c5\u51b5","Schedule":"\u65e5\u7a0b","Start script":"\u542f\u52a8\u811a\u672c","State":"\u72b6\u6001","State condition":"\u72b6\u6001\u6761\u4ef6","Time condition":"\u65f6\u95f4\u6761\u4ef6","Astrological":"\u5929\u6587","Set state action":"\u8bbe\u5b9a\u72b6\u6001\u52a8\u4f5c","Exec":"\u6267\u884c\u529b","HTTP Call":"HTTP\u547c\u53eb","Log text":"\u8bb0\u5f55\u6587\u5b57","Pause":"\u6682\u505c","on change":"\u5728\u53d8\u5316","control":"\u63a7\u5236","Say It":"Say It","every hour at 0 minutes":"\u6bcf\u5c0f\u65f60\u5206\u949f","On script save or adapter start":"\u5728\u811a\u672c\u4fdd\u5b58\u6216\u9002\u914d\u5668\u542f\u52a8\u65f6","equal to":"\u7b49\u4e8e","Actual time of day":"\u4e00\u5929\u4e2d\u7684\u5b9e\u9645\u65f6\u95f4","with":"\u548c","Shell command":"Shell\u547d\u4ee4","URL":"\u7f51\u5740","Instance:":"\u5b9e\u4f8b\uff1a","Language:":"\u8bed\u8a00\uff1a","Volume":"\u4f53\u79ef","Text:":"\u6587\u672c\uff1a","undefined":"\u4e0d\u660e\u786e\u7684","Default":"\u9ed8\u8ba4","You can use %s in the text to display current trigger value or %id to display the triggered object ID":"\u60a8\u53ef\u4ee5\u5728\u6587\u672c\u4e2d\u4f7f\u7528 %s \u663e\u793a\u5f53\u524d\u89e6\u53d1\u503c\uff0c%id \u4f7f\u7528\u89e6\u53d1\u5bf9\u8c61 ID\uff0c%name \u663e\u793a\u89e6\u53d1\u5bf9\u8c61 ID \u540d\u79f0\u6216 %old \u4f7f\u7528\u65e7\u89e6\u53d1\u503c","Instructions":"\u6307\u793a","You can use %s in the URL to use current trigger value or %id to use the triggered object ID":"\u60a8\u53ef\u4ee5\u5728 URL \u4e2d\u4f7f\u7528 %s \u4ee5\u4f7f\u7528\u5f53\u524d\u89e6\u53d1\u503c\uff0c%id \u4ee5\u4f7f\u7528\u89e6\u53d1\u5bf9\u8c61 ID\uff0c%name \u4ee5\u663e\u793a\u89e6\u53d1\u5bf9\u8c61 ID \u540d\u79f0\u6216 %old \u4ee5\u4f7f\u7528\u65e7\u89e6\u53d1\u503c","You can use %s in the value to use the current trigger value or %id to display the triggered object ID":"\u60a8\u53ef\u4ee5\u5728\u503c\u4e2d\u4f7f\u7528 %s \u4ee5\u4f7f\u7528\u5f53\u524d\u89e6\u53d1\u5668\u503c\uff0c%id \u4f7f\u7528\u89e6\u53d1\u5bf9\u8c61 ID\uff0c%name \u663e\u793a\u89e6\u53d1\u5bf9\u8c61 ID \u540d\u79f0\u6216 %old \u4f7f\u7528\u65e7\u89e6\u53d1\u5668\u503c","You can use %s in the command to use current trigger value or %id to use the triggered object ID":"\u60a8\u53ef\u4ee5\u5728\u547d\u4ee4\u4e2d\u4f7f\u7528 %s \u4ee5\u4f7f\u7528\u5f53\u524d\u89e6\u53d1\u503c\uff0c%id \u4f7f\u7528\u89e6\u53d1\u5bf9\u8c61 ID\uff0c%name \u663e\u793a\u89e6\u53d1\u5bf9\u8c61 ID \u540d\u79f0\u6216 %old \u4f7f\u7528\u65e7\u89e6\u53d1\u503c","every":"\u6bcf\u4e00\u4e2a","with offset":"\u5e26\u504f\u79fb","on update":"\u66f4\u65b0\u65f6","update":"\u66f4\u65b0","Triggers the rule periodically or on some specific time":"\u5b9a\u671f\u6216\u5728\u7279\u5b9a\u65f6\u95f4\u89e6\u53d1\u89c4\u5219","Triggers the on script saving or the javascript instance restart":"\u89e6\u53d1\u811a\u672c\u4fdd\u5b58\u6216javascript\u5b9e\u4f8b\u91cd\u542f","Triggers the rule on update or change of some state":"\u5728\u67d0\u4e9b\u72b6\u6001\u7684\u66f4\u65b0\u6216\u66f4\u6539\u65f6\u89e6\u53d1\u89c4\u5219","Compares the state value with user defined value":"\u6bd4\u8f83\u72b6\u6001\u503c\u548c\u7528\u6237\u5b9a\u4e49\u7684\u503c","Compares current time with the user specific time":"\u5c06\u5f53\u524d\u65f6\u95f4\u4e0e\u7528\u6237\u7279\u5b9a\u65f6\u95f4\u8fdb\u884c\u6bd4\u8f83","Compares current time with astrological event":"\u5c06\u5f53\u524d\u65f6\u95f4\u4e0e\u5929\u6587\u4e8b\u4ef6\u8fdb\u884c\u6bd4\u8f83","Control or update some state":"\u63a7\u5236\u6216\u66f4\u65b0\u67d0\u4e9b\u72b6\u6001","Executes some shell command":"\u6267\u884c\u4e00\u4e9bshell\u547d\u4ee4","Make a HTTP get request":"\u53d1\u51faHTTP\u83b7\u53d6\u8bf7\u6c42","Print some text in log":"\u5728\u65e5\u5fd7\u4e2d\u6253\u5370\u4e00\u4e9b\u6587\u672c","Make a pause between actions":"\u5728\u52a8\u4f5c\u4e4b\u95f4\u6682\u505c","Say some text via sayit adapter":"\u901a\u8fc7sayit\u9002\u914d\u5668\u8bf4\u4e00\u4e9b\u6587\u5b57","Telegram":"\u7535\u62a5","User:":"\u7528\u6237\uff1a","all":"\u5168\u90e8","Sends message via telegram":"\u901a\u8fc7\u7535\u62a5\u53d1\u9001\u6d88\u606f","Sends an email":"\u53d1\u9001\u90ae\u4ef6","Send email":"\u53d1\u9001\u7535\u5b50\u90ae\u4ef6","Sends message via pushover":"\u901a\u8fc7\u63a8\u64ad\u53d1\u9001\u6d88\u606f","Pushover":"\u4fef\u5367\u6491","Sends message via whatsapp-cmb":"\u901a\u8fc7whatsapp-cmb\u53d1\u9001\u6d88\u606f","Whatsapp-cmb":"Whatsapp\u7684cmb","Sends message via Pushsafer":"\u901a\u8fc7Pushsafer\u53d1\u9001\u6d88\u606f","Pushsafer":"\u63a8\u5b89\u5168","To:":"\u5230\uff1a","Subject:":"\u5b66\u79d1\uff1a","Body:":"\u8eab\u4f53\uff1a","Title:":"\u6807\u9898\uff1a","Sound:":"\u58f0\u97f3\uff1a","Priority:":"\u4f18\u5148\uff1a","magic":"\u9b54\u6cd5","quiet":"\u5b89\u9759\u7684","normal":"\u666e\u901a\u7684","high-priority":"\u9ad8\u4f18\u5148\u7ea7","acknowledgment":"\u81f4\u8c22","Phone:":"\u7535\u8bdd\uff1a","(optional)":"\uff08\u9009\u4fee\u7684\uff09","Vibration:":"\u632f\u52a8\uff1a","lowest priority":"\u6700\u4f4e\u4f18\u5148\u7ea7","lower priority":"\u4f4e\u4f18\u5148\u7ea7","normal priority":"\u6b63\u5e38\u4f18\u5148","high priority":"\u9ad8\u4f18\u5148\u7ea7","highest priority":"\u6700\u9ad8\u4f18\u5148\u7ea7","default":"\u9ed8\u8ba4","All":"\u6240\u6709","Write your own code":"\u7f16\u5199\u81ea\u5df1\u7684\u4ee3\u7801","User function":"\u7528\u6237\u529f\u80fd","This is advances option. You can write your own code here and it will be executed on trigger":"\u8fd9\u662f\u9ad8\u7ea7\u9009\u9879\u3002\u60a8\u53ef\u4ee5\u5728\u6b64\u5904\u7f16\u5199\u81ea\u5df1\u7684\u4ee3\u7801\uff0c\u5b83\u5c06\u5728\u89e6\u53d1\u5668\u4e0a\u6267\u884c","greater than":"\u6bd4...\u66f4\u68d2","offset":"\u62b5\u6d88","Function":"\u529f\u80fd","greater or equal to":"\u5927\u4e8e\u6216\u7b49\u4e8e","less or equal to":"\u5c0f\u4e8e\u6216\u7b49\u4e8e","less than":"\u5c11\u4e8e","not equal to":"\u4e0d\u7b49\u4e8e","[equal]":"[\u5e73\u7b49\u7684]","[greater or equal]":"[\u5927\u4e8e\u7b49\u4e8e]","[greater]":"[\u66f4\u5927]","[less or equal]":"[\u5c0f\u4e8e\u6216\u7b49\u4e8e]","[less]":"[\u8f83\u5c11\u7684]","[not equal]":"[\u4e0d\u76f8\u7b49]","[includes]":"[\u5305\u62ec]","[hysteresis]":"[\u78c1\u6ede]","greater or equal":"\u5927\u4e8e\u6216\u7b49\u4e8e","less or equal":"\u5c0f\u4e8e\u6216\u7b49\u4e8e","includes":"\u5305\u62ec",".":".","()":"()","Mo":"\u83ab","Tu":"\u6d82","We":"3","Th":"4","Fr":"r","Sa":"\u8428","Su":"\u82cf","Control or update some state with delay":"\u5ef6\u8fdf\u63a7\u5236\u6216\u66f4\u65b0\u67d0\u4e9b\u72b6\u6001","Delay":"\u5ef6\u8fdf","ms":"\u6beb\u79d2","Set with delay":"\u5ef6\u8fdf\u8bbe\u7f6e","clear running":"\u7545\u901a\u65e0\u963b","toggle value":"\u5207\u6362\u503c","Any month":"\u4efb\u4f55\u6708\u4efd","Any":"\u4efb\u4f55","with date":"\u6709\u65e5\u671f","Date":"\u65e5\u671f","Month":"\u6708","Januar":"\u4e9a\u52aa\u5c14","Februar":"\u4e8c\u6708","March ":"\u884c\u8fdb","Condition":"\u5065\u5eb7\uff09\u72b6\u51b5","Limit":"\u9650\u5236","The script will be stopped and must be activated manually after debugging. Continue?":"\u8be5\u811a\u672c\u5c06\u505c\u6b62\uff0c\u5e76\u4e14\u5fc5\u987b\u5728\u8c03\u8bd5\u540e\u624b\u52a8\u6fc0\u6d3b\u3002\u7ee7\u7eed\uff1f","Yes":"\u662f\u7684","Debug instance":"\u8c03\u8bd5\u5b9e\u4f8b","Resume execution":"\u6062\u590d\u6267\u884c","Go to next line":"\u8f6c\u5230\u4e0b\u4e00\u884c","Step into function":"\u8fdb\u5165\u529f\u80fd","Step out from function":"\u9000\u51fa\u51fd\u6570","Stop on exception":"\u5f02\u5e38\u505c\u6b62","Console":"\u5b89\u6170","Stack":"\u5806","Pause execution":"\u6682\u505c\u6267\u884c","Simulate":"\u6a21\u62df","Trigger with value":"\u7528\u503c\u89e6\u53d1","Value":"\u4ef7\u503c","Write":"\u5199","Ack":"\u786e\u8ba4","Start":"\u5f00\u59cb","Filter":"\u7b5b\u9009","Instances":"\u5b9e\u4f8b","Triggered":"\u89e6\u53d1","Function: executed":"\u529f\u80fd\uff1a\u6267\u884c","Operate two states":"\u64cd\u4f5c\u4e24\u79cd\u72b6\u6001","store in":"\u5b58\u653e\u5728","ID1":"ID1","ID2":"ID2","Operations with two states":"\u5177\u6709\u4e24\u79cd\u72b6\u6001\u7684\u64cd\u4f5c","debug_label":"\u8c03\u8bd5","debug_help":"\u8fd9\u662f\u4e00\u79cd\u7279\u6b8a\u6a21\u5f0f\uff0c\u5176\u4e2d\u72b6\u6001\u548c\u5bf9\u8c61\u4e0d\u4f1a\u6539\u53d8\u3002\u4f46\u53ea\u6709\u6709\u5173\u6bcf\u4e2a\u8ba1\u5212\u66f4\u6539\u7684\u4fe1\u606f\u624d\u4f1a\u663e\u793a\u5728\u534f\u8bae\u4e2d\u3002","verbose_label":"\u8be6\u7ec6\u65e5\u5fd7\u8f93\u51fa","verbose_help":"\u5c06\u8c03\u8bd5\u8f93\u51fa\u6dfb\u52a0\u5230\u8bb8\u591a\u7cfb\u7edf\u547d\u4ee4\u7684\u65e5\u5fd7\u4e2d","easy":"\u7b80\u5355\u7684","for programmers":"\u5bf9\u4e8e\u7a0b\u5e8f\u5458","for professionals":"\u5bf9\u4e8e\u4e13\u4e1a\u4eba\u58eb","Duplicate name":"\u91cd\u540d","Empty name is not allowed":"\u4e0d\u5141\u8bb8\u4f7f\u7528\u7a7a\u540d\u79f0","Astrological events today":"\u4eca\u5929\u7684\u5360\u661f\u4e8b\u4ef6","Show astrological events":"\u663e\u793a\u5360\u661f\u4e8b\u4ef6","Time":"\u65f6\u95f4","Description":"\u63cf\u8ff0","nextSunrise":"\u4e0b\u4e00\u4e2a\u65e5\u51fa","nextSunset":"\u4e0b\u4e00\u4e2a\u65e5\u843d"}')}}]); +//# sourceMappingURL=98.1893d080.chunk.js.map \ No newline at end of file diff --git a/admin/static/js/98.faeee5d4.chunk.js.map b/admin/static/js/98.1893d080.chunk.js.map similarity index 99% rename from admin/static/js/98.faeee5d4.chunk.js.map rename to admin/static/js/98.1893d080.chunk.js.map index 05368508c..2c25e8eb9 100644 --- a/admin/static/js/98.faeee5d4.chunk.js.map +++ b/admin/static/js/98.1893d080.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/98.faeee5d4.chunk.js","mappings":"2nhBAyIA,GAtHkB,SAAAA,IAAAC,EAAAA,EAAAA,GAAAC,EAAAF,GAAA,IAAAG,GAAAC,EAAAA,EAAAA,GAAAF,GACd,SAAAA,EAAYG,GAAQ,IAADC,EASO,OATPC,EAAAA,EAAAA,GAAA,KAAAL,IACfI,EAAAH,EAAAK,KAAA,KAAMH,IAgCVI,aAAe,WACXH,EAAKD,MAAMK,SACf,EAACJ,EAEDK,SAAW,WACPL,EAAKD,MAAMO,SAASN,EAAKO,MAAOP,EAAKQ,MAAMC,GAAIT,EAAKQ,MAAME,KAAMV,EAAKQ,MAAMG,UAC3EX,EAAKD,MAAMK,SACf,EAACJ,EAEDY,aAAe,SAAAF,GACXV,EAAKa,SAAS,CAACH,KAAAA,EAAMD,GAAIT,EAAKc,MAAMJ,IACxC,EA1CIV,EAAKQ,MAAQ,CACTE,KAAMX,EAAMW,KACZD,GAAIV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,CAAC39C,cAAe,SAAA2kD,GAChBltD,GAAYktD,EACZR,GACJ,YAKpB,CAEAA,GD4EM,kBAAmBS,WACrBA,UAAUC,cAAczF,MAAMzvD,MAAK,SAAAm1D,GACjCA,EAAaC,YACf,ICpEJ,IAAMC,GAAoBt5D,OAAOs5D,kBACjCA,IAAqBA,GAA2C,SAAzBt5D,OAAOygB,SAAS84C,KAAkBv5D,OAAOygB,SAASquB,SAAW,KAAO9uC,OAAOygB,SAAS43C,SAAW,4BAA8B,+BAA+B,WAC/LiB,GAAkB,gBAAgB,WAC9BA,GAAkB,mBAAmB,WACK,oBAA/Bt5D,OAAOw5D,qBAAsCx5D,OAAOw5D,qBAC/D,GACJ,GACJ,G","sources":["Dialogs/Rename.jsx","Dialogs/Delete.jsx","Dialogs/AddNewScript.jsx","Dialogs/New.jsx","Dialogs/Error.jsx","Dialogs/AdapterDebug.jsx","SideMenu.jsx","Log.jsx","Components/ScriptEditorVanilaMonaco.jsx","Dialogs/Export.jsx","Dialogs/Import.jsx","Components/BlocklyEditor.jsx","Dialogs/ScriptEditor.jsx","webpack://js/./src/Components/RulesEditor/style.module.scss?d9e3","webpack://js/./src/Components/RulesEditor/components/CardMenu/style.module.scss?24d8","Components/RulesEditor/helpers/MaterialDynamicIcon.jsx","Components/RulesEditor/components/CardMenu/index.jsx","webpack://js/./src/Components/RulesEditor/components/CurrentItem/style.module.scss?3318","Components/RulesEditor/helpers/deepCopy.jsx","Components/RulesEditor/helpers/filterElement.jsx","webpack://js/./src/Components/RulesEditor/components/GenericBlock/style.module.scss?9124","webpack://js/./src/Components/RulesEditor/components/CustomButton/style.module.scss?0052","Components/RulesEditor/components/CustomButton/index.jsx","webpack://js/./src/Components/RulesEditor/components/CustomCheckbox/style.module.scss?0cc5","Components/RulesEditor/components/CustomCheckbox/index.jsx","webpack://js/./src/Components/RulesEditor/components/CustomInput/style.module.scss?7193","Components/RulesEditor/components/CustomInput/index.jsx","Components/RulesEditor/components/CustomInstance/index.jsx","webpack://js/./src/Components/RulesEditor/components/CustomModal/style.module.scss?7408","Components/RulesEditor/components/CustomModal/index.jsx","webpack://js/./src/Components/RulesEditor/components/CustomSelect/style.module.scss?40f6","Components/RulesEditor/components/CustomSelect/index.jsx","webpack://js/./src/Components/RulesEditor/components/CustomSlider/style.module.scss?f41a","Components/RulesEditor/components/CustomSlider/index.jsx","webpack://js/./src/Components/RulesEditor/components/CustomSwitch/style.module.scss?0c1c","Components/RulesEditor/components/CustomSwitch/index.jsx","webpack://js/./src/Components/RulesEditor/components/CustomTime/style.module.scss?880f","Components/RulesEditor/components/CustomTime/index.jsx","webpack://js/./src/Components/RulesEditor/components/CustomDate/style.module.scss?8a42","Components/RulesEditor/components/CustomDate/index.jsx","Components/RulesEditor/helpers/utils.jsx","Components/RulesEditor/helpers/Tour.jsx","Components/RulesEditor/components/GenericBlock/index.jsx","Components/RulesEditor/components/Blocks/ActionSayText.jsx","Components/RulesEditor/components/Blocks/ActionSendEmail.jsx","Components/RulesEditor/components/Blocks/ActionTelegram.jsx","Components/RulesEditor/components/Blocks/ActionPushover.jsx","Components/RulesEditor/components/Blocks/ActionWhatsappcmb.jsx","Components/RulesEditor/components/Blocks/ActionPushsafer.jsx","Components/RulesEditor/helpers/Compile.jsx","Components/RulesEditor/components/Blocks/TriggerScriptSave.jsx","Components/RulesEditor/components/Blocks/TriggerSchedule.jsx","Components/RulesEditor/components/Blocks/TriggerState.jsx","Components/RulesEditor/components/Blocks/ConditionState.jsx","Components/RulesEditor/components/Blocks/ConditionTime.jsx","Components/RulesEditor/components/Blocks/ConditionAstrological.jsx","Components/RulesEditor/components/Blocks/ActionSetState.jsx","Components/RulesEditor/components/StandardBlocks/index.jsx","Components/RulesEditor/components/Blocks/ActionExec.jsx","Components/RulesEditor/components/Blocks/ActionHTTPCall.jsx","Components/RulesEditor/components/Blocks/ActionPrintText.jsx","Components/RulesEditor/components/Blocks/ActionPause.jsx","Components/RulesEditor/components/Blocks/ActionFunction.jsx","Components/RulesEditor/components/Blocks/ActionSetStateDelayed.jsx","Components/RulesEditor/components/Blocks/ActionOperateStates.jsx","Components/RulesEditor/components/ContextWrapper/index.jsx","Components/RulesEditor/components/CurrentItem/index.jsx","Components/RulesEditor/helpers/findElement.jsx","Components/RulesEditor/components/CustomDragLayer/index.jsx","webpack://js/./src/Components/RulesEditor/components/ContentBlockItems/style.module.scss?385e","Components/RulesEditor/hooks/useStateLocal.jsx","Components/RulesEditor/helpers/cardSort.jsx","webpack://js/./src/Components/RulesEditor/components/DragWrapper/style.module.scss?b1b7","Components/RulesEditor/components/DragWrapper/index.jsx","Components/RulesEditor/components/ContentBlockItems/DialogHelp.jsx","Components/RulesEditor/components/ContentBlockItems/DialogCondition.jsx","Components/RulesEditor/components/ContentBlockItems/index.jsx","webpack://js/./src/Components/RulesEditor/components/Menu/style.module.scss?9893","Components/RulesEditor/components/CardMenu/CustomDragItem.jsx","webpack://js/./src/Components/RulesEditor/components/HamburgerMenu/hamburgerMenu.module.scss?ab25","Components/RulesEditor/components/HamburgerMenu/index.jsx","Components/RulesEditor/components/Menu/index.jsx","Components/RulesEditor/index.jsx","Components/Debugger/Editor.jsx","Components/Debugger/Console.jsx","Components/Debugger/Stack.jsx","Components/Debugger/index.jsx","Editor.jsx","Dialogs/ImportFile.jsx","App.jsx","serviceWorker.jsx","bootstrap.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport Button from '@mui/material/Button';\nimport DialogTitle from '@mui/material/DialogTitle';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogActions from '@mui/material/DialogActions';\nimport Dialog from '@mui/material/Dialog';\nimport TextField from '@mui/material/TextField';\nimport FormControl from '@mui/material/FormControl';\nimport Select from '@mui/material/Select';\nimport InputLabel from '@mui/material/InputLabel';\nimport MenuItem from '@mui/material/MenuItem';\n\nimport IconCancel from '@mui/icons-material/Cancel';\nimport IconOk from '@mui/icons-material/Check';\n\nimport { I18n } from '@iobroker/adapter-react-v5';\n\nclass DialogRename extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n name: props.name,\n id: props.id,\n instance: props.instance || 0\n };\n this.isShowInstance = !props.folder && props.instances && (props.instance || props.instances[0] || props.instances.length > 1);\n this.prefix = this.getPrefix(props.id);\n this.oldId = props.id;\n }\n\n getPrefix(id) {\n const parts = (id || '').split('.');\n parts.pop();\n return parts.join('.');\n }\n\n getId(name) {\n name = (name || '').replace(/[\\\\/\\][*,;'\"`<>?\\s]/g, '_');\n return this.prefix + '.' + name;\n }\n\n componentWillReceiveProps(nextProps) {\n if (nextProps.name !== this.props.name) {\n this.setState({name: nextProps.name});\n }\n if (nextProps.id !== this.props.id) {\n this.prefix = this.getPrefix(nextProps.id);\n this.setState({id: nextProps.id});\n }\n }\n\n handleCancel = () => {\n this.props.onClose();\n };\n\n handleOk = () => {\n this.props.onRename(this.oldId, this.state.id, this.state.name, this.state.instance);\n this.props.onClose();\n };\n\n handleChange = name => {\n this.setState({name, id: this.getId(name)});\n };\n\n render() {\n return false}\n maxWidth=\"md\"\n fullWidth\n open={!0}\n aria-labelledby=\"confirmation-dialog-title\"\n >\n {I18n.t('Rename')}\n \n
\n {\n if (ev.key === 'Enter') {\n // Do code here\n ev.preventDefault();\n setTimeout(() => this.handleOk(), 200);\n }\n }}\n onChange={e => this.handleChange(e.target.value)}\n margin=\"normal\"\n />\n \n {\n this.isShowInstance && (\n \n {I18n.t('Instance')}\n this.setState({instance: parseInt(e.target.value, 10)})}\n inputProps={{name: 'instance', id: 'instance'}}\n >\n {this.props.instances.map(instance => {instance || '0'})}\n \n )\n }\n \n
\n \n \n \n \n ;\n }\n}\n\nDialogRename.propTypes = {\n onClose: PropTypes.func,\n onRename: PropTypes.func,\n name: PropTypes.string,\n id: PropTypes.string,\n instance: PropTypes.number,\n instances: PropTypes.array,\n folder: PropTypes.bool,\n};\n\nexport default DialogRename;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Button from '@mui/material/Button';\nimport DialogTitle from '@mui/material/DialogTitle';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogActions from '@mui/material/DialogActions';\nimport Dialog from '@mui/material/Dialog';\nimport {MdDelete as IconDelete} from 'react-icons/md';\n\nimport IconOk from '@mui/icons-material/Check';\nimport IconCancel from '@mui/icons-material/Cancel';\n\nimport { I18n } from '@iobroker/adapter-react-v5';\nimport withStyles from '@mui/styles/withStyles';\n\nconst styles = theme => ({\n\n});\n\nclass DialogDelete extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n name: props.name,\n id: props.id,\n };\n }\n\n componentWillReceiveProps(nextProps) {\n if (nextProps.name !== this.props.name) {\n this.setState({name: nextProps.name});\n }\n if (nextProps.id !== this.props.id) {\n this.setState({id: nextProps.id});\n }\n }\n\n handleCancel = () => {\n this.props.onClose(null);\n };\n\n handleOk = () => {\n this.props.onDelete(this.state.id);\n this.props.onClose(this.props.value);\n };\n\n render() {\n return false}\n maxWidth=\"md\"\n open={!0}\n aria-labelledby=\"confirmation-dialog-title\"\n >\n {I18n.t('Are you sure?')}\n \n \n {I18n.t('Delete %s', this.state.name)}\n \n \n \n \n \n ;\n }\n}\n\nDialogDelete.propTypes = {\n onClose: PropTypes.func,\n onDelete: PropTypes.func,\n name: PropTypes.string,\n id: PropTypes.string,\n};\n\nexport default withStyles(styles)(DialogDelete);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport withStyles from '@mui/styles/withStyles';\nimport Button from '@mui/material/Button';\nimport DialogTitle from '@mui/material/DialogTitle';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogActions from '@mui/material/DialogActions';\nimport Dialog from '@mui/material/Dialog';\nimport Card from '@mui/material/Card';\nimport CardActionArea from '@mui/material/CardActionArea';\nimport CardActions from '@mui/material/CardActions';\nimport CardContent from '@mui/material/CardContent';\nimport CardMedia from '@mui/material/CardMedia';\n\nimport ImgJS from '../assets/tileJS.png';\nimport ImgTS from '../assets/tileTS.png';\nimport ImgBlockly from '../assets/tileBlockly.png';\nimport ImgRules from '../assets/tileRules.png';\nimport IconCancel from '@mui/icons-material/Cancel';\n\nimport { I18n } from '@iobroker/adapter-react-v5';\n\nconst styles = theme => ({\n card: {\n maxWidth: 345,\n display: 'inline-block',\n margin: '0 10px 0 10px'\n },\n media: {\n height: 100,\n },\n text: {\n maxWidth: 200,\n },\n complexity: {\n fontWeight: 'bold',\n fontStyle: 'italic',\n marginBottom: theme.spacing(1),\n }\n});\n\nclass DialogAddNew extends React.Component {\n handleCancel = () => {\n this.props.onClose();\n };\n\n handleOk = type => {\n this.props.onClose(type);\n };\n\n openHtml(html) {\n const lang = I18n.getLanguage();\n if (!html.includes('javascript.md') && (lang === 'de' || lang === 'ru')) {\n html = html.replace(/\\/en\\//, '/' + lang + '/');\n }\n const win = window.open(html, '_blank');\n win.focus();\n }\n\n getJSCard() {\n return \n this.props.onClose && this.props.onClose('Javascript/js')}>\n \n \n

Javascript

\n
{I18n.t('for programmers')}
\n
{I18n.t('JS description')}
\n
\n \n \n \n \n \n
;\n }\n\n getTSCard() {\n return \n this.props.onClose && this.props.onClose('TypeScript/ts')}>\n \n \n

Typescript

\n
{I18n.t('for professionals')}
\n
{I18n.t('TS description')}
\n
\n \n \n \n \n \n
;\n }\n\n getBlocklyCard() {\n return \n this.props.onClose && this.props.onClose('Blockly')}>\n \n \n

Blockly

\n
{I18n.t('normal')}
\n
{I18n.t('Blockly description')}
\n
\n
\n \n \n \n \n
;\n }\n\n getRulesCard() {\n return \n this.props.onClose && this.props.onClose('Rules')}>\n \n \n

Rules

\n
{I18n.t('easy')}
\n
{I18n.t('Rules description')}
\n
\n
\n \n \n \n \n
;\n }\n\n render() {\n return false}\n maxWidth=\"lg\"\n fullWidth\n open={!0}\n aria-labelledby=\"confirmation-dialog-title\"\n >\n {I18n.t('Add new script')}\n \n {this.getRulesCard()}\n {this.getBlocklyCard()}\n {this.getJSCard()}\n {this.getTSCard()}\n \n \n \n \n ;\n }\n}\n\nDialogAddNew.propTypes = {\n onClose: PropTypes.func\n};\n\nexport default withStyles(styles)(DialogAddNew);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport withStyles from '@mui/styles/withStyles';\n\nimport Button from '@mui/material/Button';\nimport DialogTitle from '@mui/material/DialogTitle';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogActions from '@mui/material/DialogActions';\nimport Dialog from '@mui/material/Dialog';\nimport TextField from '@mui/material/TextField';\nimport FormControl from '@mui/material/FormControl';\nimport Select from '@mui/material/Select';\nimport InputLabel from '@mui/material/InputLabel';\nimport MenuItem from '@mui/material/MenuItem';\n\nimport IconOk from '@mui/icons-material/Check';\nimport IconCancel from '@mui/icons-material/Cancel';\n\nimport { I18n } from '@iobroker/adapter-react-v5';\n\nconst styles = theme => ({\n\n});\n\nclass DialogNew extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n name: props.name || 'Script',\n instance: props.instance || 0,\n parent: props.parent,\n error: ''\n };\n this.isShowInstance = !props.folder && props.instances && (props.instance || props.instances[0] || props.instances.length > 1);\n }\n\n getId(name) {\n name = name || this.state.name || '';\n name = name.replace(/[\\\\/\\][.*,;'\"`<>?\\s]/g, '_').trim().replace(/\\.$/, '_');\n return (this.state ? this.state.parent : this.props.parent) + '.' + name;\n }\n\n componentWillReceiveProps(nextProps) {\n if (nextProps.name !== this.props.name) {\n this.setState({name: nextProps.name});\n }\n }\n\n handleCancel = () => {\n this.props.onClose();\n };\n\n handleOk = () => {\n this.props.onAdd(this.getId(this.state.name), this.state.name, this.state.instance, this.props.type);\n this.props.onClose();\n };\n\n handleChange = name => {\n const id = this.getId(name);\n if (!name) {\n this.setState({name, id, error: I18n.t('Empty name is not allowed')});\n } else\n if (this.props.existingItems && this.props.existingItems.indexOf(id) !== -1) {\n this.setState({name, id, error: I18n.t('Duplicate name')});\n } else {\n this.setState({name, id, error: ''});\n }\n };\n\n render() {\n return false}\n maxWidth=\"md\"\n fullWidth\n open={!0}\n aria-labelledby=\"confirmation-dialog-title\"\n >\n {this.props.title || I18n.t('Create new')}\n \n
\n {\n if (ev.key === 'Enter') {\n // Do code here\n ev.preventDefault();\n setTimeout(() => this.handleOk(), 200);\n }\n }}\n onChange={e => this.handleChange(e.target.value)}\n margin=\"normal\"\n />\n \n {I18n.t('Folder')}\n this.setState({parent: e.target.value})}\n inputProps={{name: 'parent', id: 'parent',}}\n >\n {this.props.parents.map(parent => {\n const parts = parent.id.split('.');\n parts.splice(0, 2); // remove script.js\n const names = [];\n let id = 'script.js';\n parts.forEach((n, i) => {\n id += '.' + n;\n const el = this.props.parents.find(item => item.id === id);\n if (el) {\n names.push(el.name);\n } else {\n names.push(n);\n }\n });\n if (!names.length) {\n names.push(parent.name);\n }\n return ({names.join(' / ')})\n })}\n \n \n \n {\n this.isShowInstance && (\n \n {I18n.t('Instance')}\n this.setState({instance: parseInt(e.target.value, 10)})}\n inputProps={{name: 'instance', id: 'instance',}}\n >\n {this.props.instances.map(instance => ({instance || '0'}))}\n \n )\n }\n \n
\n \n \n \n \n ;\n }\n}\n\nDialogNew.propTypes = {\n onClose: PropTypes.func,\n onAdd: PropTypes.func,\n name: PropTypes.string,\n title: PropTypes.string,\n parent: PropTypes.string,\n instance: PropTypes.number,\n instances: PropTypes.array,\n parents: PropTypes.array,\n existingItems: PropTypes.array,\n folder: PropTypes.bool,\n type: PropTypes.string,\n};\n\nexport default withStyles(styles)(DialogNew);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport withStyles from '@mui/styles/withStyles';\nimport Button from '@mui/material/Button';\nimport Dialog from '@mui/material/Dialog';\nimport DialogActions from '@mui/material/DialogActions';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogContentText from '@mui/material/DialogContentText';\nimport DialogTitle from '@mui/material/DialogTitle';\n\nimport IconOk from '@mui/icons-material/Check';\n\nimport { I18n } from '@iobroker/adapter-react-v5';\n\nconst styles = theme => ({\n titleBackground: {\n background: theme.palette.error.main,\n },\n titleColor: {\n color: theme.palette.error.contrastText,\n '&>h2': {\n color: theme.palette.error.contrastText,\n }\n },\n});\n\nclass DialogError extends React.Component {\n constructor(props) {\n super(props);\n console.log('Error created')\n }\n handleOk = () => {\n this.props.onClose && this.props.onClose();\n };\n\n render() {\n return this.handleOk()}\n aria-labelledby=\"alert-dialog-title\"\n aria-describedby=\"alert-dialog-description\"\n >\n {this.props.title || I18n.t('Error')}\n \n \n {this.props.text || I18n.t('Unknown error!')}\n \n \n \n \n \n ;\n }\n}\n\nDialogError.propTypes = {\n onClose: PropTypes.func,\n title: PropTypes.string,\n text: PropTypes.string,\n icon: PropTypes.object\n};\n\nexport default withStyles(styles)(DialogError);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport withStyles from '@mui/styles/withStyles';\n\nimport Button from '@mui/material/Button';\nimport DialogTitle from '@mui/material/DialogTitle';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogActions from '@mui/material/DialogActions';\nimport Dialog from '@mui/material/Dialog';\nimport ListItemIcon from '@mui/material/ListItemIcon';\nimport List from '@mui/material/List';\nimport ListItem from '@mui/material/ListItem';\nimport Grid from '@mui/material/Grid';\nimport ListItemText from '@mui/material/ListItemText';\nimport Input from '@mui/material/Input';\nimport InputAdornment from '@mui/material/InputAdornment';\nimport IconButton from '@mui/material/IconButton';\n\nimport IconOk from '@mui/icons-material/Check';\nimport IconCancel from '@mui/icons-material/Cancel';\nimport IconClose from '@mui/icons-material/Close';\n\nimport { I18n } from '@iobroker/adapter-react-v5';\n\nconst styles = theme => ({\n buttonIcon: {\n marginRight: theme.spacing(1),\n },\n icon: {\n width: 24,\n height: 24,\n },\n filter: {\n width: '100%',\n },\n filterWithButton: {\n width: '100%',\n },\n title: {\n fontWeight: 'bold',\n marginTop: theme.spacing(2),\n }\n});\n\n\nclass DialogAdapterDebug extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n instances: [],\n filter: window.localStorage.getItem('javascript.debug.filter') || '',\n showAskForStop: false,\n jsInstance: window.localStorage.getItem('javascript.debug.instance') || '',\n jsInstanceHost: '',\n adapterToDebug: window.localStorage.getItem('javascript.debug.adapter') || '',\n };\n }\n\n componentDidMount() {\n this.props.socket.getAdapterInstances()\n .then(instances => {\n instances = instances.filter(i => i && !i.common?.onlyWWW).map(item => {\n const name = item._id.replace(/^system\\.adapter\\./, '');\n const [adapter] = name.split('.');\n return {\n id: name,\n enabled: item.common?.enabled,\n host: item.common?.host,\n icon: item.common?.icon ? `../../adapter/${adapter}/${item.common.icon}` : '',\n };\n });\n instances.sort((a, b) => a.id > b.id ? 1 : (a.id < b.id ? -1 : 0));\n let jsInstance = this.state.jsInstance || '';\n let jsInstanceObj = this.state.jsInstance && instances.find(item => item.id === this.state.jsInstance);\n let jsInstanceHost;\n\n // check if selected instance is in the list\n if (!this.state.jsInstance || !jsInstanceObj) {\n jsInstance = instances.find(item => item.id.startsWith('javascript.')); // take the first one\n jsInstanceHost = jsInstance ? jsInstance.host : '';\n jsInstance = jsInstance ? jsInstance.id : '';\n } else {\n jsInstanceHost = jsInstanceObj ? jsInstanceObj.host : '';\n }\n\n let adapterToDebug = this.state.adapterToDebug || '';\n if (adapterToDebug && !instances.find(item => item.id === adapterToDebug)) {\n adapterToDebug = '';\n }\n\n this.setState({instances, jsInstance, adapterToDebug, jsInstanceHost});\n });\n }\n\n handleOk = () => {\n // TODO\n if (this.state.instances.find(item => item.id === this.state.adapterToDebug).enabled) {\n return this.props.socket.getObject('system.adapter.' + this.state.adapterToDebug)\n .then(obj => {\n obj.common.enabled = false;\n this.props.socket.setObject(obj._id, obj)\n .then(() =>\n this.props.onDebug(this.state.jsInstance, this.state.adapterToDebug));\n })\n } else {\n this.props.onDebug(this.state.jsInstance, this.state.adapterToDebug);\n }\n };\n\n\n renderJavascriptList() {\n const js = this.state.instances.filter(item => item.id.startsWith('javascript.'));\n if (js.length < 2) {\n return null;\n } else {\n return \n
{I18n.t('Host')}
\n \n {js.map(item => \n {item.id}\n \n )}\n \n
;\n }\n }\n\n renderInstances() {\n if (!this.state.jsInstance) {\n return ;\n } else {\n const instances = this.state.instances.filter(item =>\n item.id !== this.state.jsInstance && item.host === this.state.jsInstanceHost && (!this.state.filter || item.id.includes(this.state.filter.toLowerCase()) ));\n return \n
{I18n.t('Instances')}
\n \n {instances.map(item => this.setState({adapterToDebug: item.id}, () => this.handleOk())}\n onClick={() => this.setState({adapterToDebug: item.id})}\n >\n {item.id}\n \n )}\n \n
;\n }\n }\n\n render() {\n return false}\n aria-labelledby=\"confirmation-dialog-title\"\n >\n {this.props.title || I18n.t('Debug instance')}\n \n \n \n {\n this.setState({filter: e.target.value});\n window.localStorage.setItem('javascript.debug.filter', e.target.value);\n }}\n endAdornment={\n \n {this.state.filter ? this.setState({filter: ''})}\n >\n \n : ''}\n \n }\n />\n \n \n \n {this.renderJavascriptList()}\n {this.renderInstances()}\n \n \n \n\n \n \n \n \n \n ;\n }\n}\n\nDialogAdapterDebug.propTypes = {\n socket: PropTypes.object.isRequired,\n onClose: PropTypes.func.isRequired,\n onDebug: PropTypes.func.isRequired,\n};\n\nexport default withStyles(styles)(DialogAdapterDebug);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport withStyles from '@mui/styles/withStyles';\n\nimport Drawer from '@mui/material/Drawer';\nimport Divider from '@mui/material/Divider';\nimport List from '@mui/material/List';\nimport ListItem from '@mui/material/ListItem';\nimport ListItemIcon from '@mui/material/ListItemIcon';\nimport ListItemSecondaryAction from '@mui/material/ListItemSecondaryAction';\nimport ListItemText from '@mui/material/ListItemText';\nimport IconButton from '@mui/material/IconButton';\nimport Menu from '@mui/material/Menu';\nimport MenuItem from '@mui/material/MenuItem';\nimport Input from '@mui/material/Input';\nimport { useDrag, useDrop, DndProvider as DragDropContext } from 'react-dnd';\nimport { HTML5Backend } from 'react-dnd-html5-backend';\n\nimport { MdMoreVert as IconMore } from 'react-icons/md';\nimport { FaFolder as IconFolder } from 'react-icons/fa';\nimport { FaFolderOpen as IconFolderOpened } from 'react-icons/fa';\nimport { MdContentCopy as IconCopy } from 'react-icons/md';\nimport { MdDelete as IconDelete } from 'react-icons/md';\nimport { MdInput as IconDoEdit } from 'react-icons/md';\nimport { MdClose as IconClear } from 'react-icons/md';\nimport { MdFormatClear as IconClose } from 'react-icons/md';\nimport { MdPlayArrow as IconPlay } from 'react-icons/md';\nimport { MdAdd as IconAdd } from 'react-icons/md';\nimport { MdCreateNewFolder as IconAddFolder } from 'react-icons/md';\nimport { MdPause as IconPause } from 'react-icons/md';\nimport { MdSwapVert as IconReorder } from 'react-icons/md';\nimport { MdEdit as IconEdit } from 'react-icons/md';\nimport { MdSearch as IconFind } from 'react-icons/md';\nimport { MdPersonPin as IconExpert } from 'react-icons/md';\nimport { FaFileExport as IconExport } from 'react-icons/fa';\nimport { FaFileImport as IconImport } from 'react-icons/fa';\nimport { MdPalette as IconDark } from 'react-icons/md';\nimport { MdUnfoldMore as IconExpandAll } from 'react-icons/md';\nimport { MdUnfoldLess as IconCollapseAll } from 'react-icons/md';\nimport { MdBugReport as IconDebug } from 'react-icons/md';\n\nimport { red, green, yellow } from '@mui/material/colors';\n\nimport ImgJS from './assets/js.png';\nimport ImgBlockly from './assets/blockly.png';\nimport ImgTypeScript from './assets/typescript.png';\nimport ImgRules from './assets/rules.png';\n\nimport { I18n, Utils } from '@iobroker/adapter-react-v5';\n\nimport DialogRename from './Dialogs/Rename';\nimport DialogDelete from './Dialogs/Delete';\nimport DialogAddNewScript from './Dialogs/AddNewScript';\nimport DialogNew from './Dialogs/New';\nimport DialogError from './Dialogs/Error';\nimport DialogAdapterDebug from './Dialogs/AdapterDebug';\n\nconst MENU_ITEM_HEIGHT = 48;\nconst COLOR_RUN = green[400];\nconst COLOR_PROBLEM = yellow[400];\nconst COLOR_PAUSE = red[400];\nconst ROOT_ID = 'script.js';\nconst COMMON_ID = ROOT_ID + '.common';\nconst GLOBAL_ID = ROOT_ID + '.global';\nconst NARROW_WIDTH = 350;\nconst LEVEL_PADDING = 16;\n\nconst SELECTED_STYLE = {\n background: '#164477',\n color: 'white'\n};\n\nconst styles = theme => ({\n drawerPaper: {\n position: 'relative',\n width: '100%', //Theme.menu.width,\n height: '100%',\n overflow: 'hidden'\n },\n toolbar: {\n height: theme.toolbar.height\n },\n toolbarButtons: {\n color: theme.palette.mode === 'dark'? 'white !important' : 'black !important'\n },\n iconButtonsDisabled: {\n filter: 'grayscale(100%)',\n opacity: 0.5,\n },\n toolbarSearch: {\n width: 'calc(100% - 105px)',\n lineHeight: '34px',\n marginLeft: 5\n },\n iconButtons: {\n width: 32,\n height: 32,\n padding: 2\n },\n iconDropdownMenu: {\n paddingRight: 5\n },\n iconOnTheRight: {\n position: 'absolute',\n right: 10,\n top: 'calc(50% - 8px)'\n },\n menu: {\n width: '100%',\n height: '100%'\n },\n innerMenu: {\n width: '100%',\n height: 'calc(100% - 76px)',\n overflowX: 'hidden',\n overflowY: 'auto'\n },\n listItemIcon: {\n minWidth: 32,\n },\n filterIcon: {\n width: 18,\n height: 18,\n borderRadius: 2,\n marginRight: 5\n },\n scriptIcon: {\n width: 18,\n height: 18,\n borderRadius: 2,\n marginTop: 4,\n marginBottom: 4,\n marginLeft: 8,\n marginRight: 4,\n },\n folder: {\n //background: theme.palette.mode === 'dark' ? '#6a6a6a' : '#e2e2e2',\n cursor: 'pointer',\n padding: 0,\n userSelect: 'none'\n },\n folderReorder: {\n opacity: 0.3,\n transitionDuration: '0.5s',\n transitionProperty: 'opacity'\n },\n folderIcon: {\n width: 20,\n height: 20,\n },\n folderIconReorder: {\n paddingTop: 4,\n paddingBottom: 4,\n paddingLeft: 8,\n paddingRight: 4,\n },\n folderIconNoReorder: {\n cursor: 'pointer',\n paddingTop: 4,\n paddingBottom: 4,\n paddingLeft: 8,\n paddingRight: 4,\n },\n script: {\n cursor: 'pointer',\n padding: 0,\n userSelect: 'none'\n },\n scriptReorder: {\n opacity: 1,\n transitionDuration: '0.5s',\n transitionProperty: 'opacity'\n },\n reorder: {\n //padding: '9px 16px 9px 9px',\n },\n expandButton: {\n width: 37,\n height: 37\n },\n selected: SELECTED_STYLE,\n instances: {\n color: 'gray',\n fontSize: 'smaller'\n },\n childrenCount: {\n float: 'right',\n marginRight: 5,\n fontSize: 10,\n opacity: 0.4,\n },\n footer: {\n height: 24,\n },\n footerButtons: {\n '&:hover': {\n backgroundColor: '#dbdbdb'\n },\n color: theme.palette.mode === 'dark' ? '#ffffff' : '#111111',\n cursor: 'pointer',\n marginTop: 1,\n marginRight: 2,\n height: 22,\n width: 22,\n },\n footerButtonsRight: {\n float: 'right'\n },\n\n mainList: {\n '& .js-folder-dragover>div>li>.folder-reorder': {\n background: '#40adff'\n },\n '& .js-folder-dragging .folder-reorder': {\n opacity: 1,\n },\n '& .js-folder-dragging .script-reorder': {\n opacity: 0.3,\n }\n }\n});\n\nconst images = {\n 'Blockly': ImgBlockly,\n 'Javascript/js': ImgJS,\n def: ImgJS,\n 'Rules':ImgRules,\n 'TypeScript/ts': ImgTypeScript,\n};\n\nconst getObjectName = (id, obj, lang) => {\n lang = lang || I18n.getLanguage();\n if (obj && obj.common && obj.common.name) {\n if (typeof obj.common.name === 'object') {\n return (obj.common.name[lang] || obj.common.name.en || id.replace(/^script\\.js./, '')).toString();\n } else {\n return obj.common.name.toString();\n }\n } else {\n return id.replace(/^script\\.js./, '');\n }\n};\n\nconst prepareList = data => {\n const result = [{\n id: ROOT_ID,\n depth: 0,\n index: 0,\n parent: null,\n title: 'root',\n type: 'folder'\n }];\n const ids = Object.keys(data);\n\n /*ids.sort((a, b) => {\n if ((a === 'script.js.common' || a === 'script.js.global') && (b === 'script.js.common' || b === 'script.js.global')) {\n return a > b ? 1 : -1;\n } else if (a === 'script.js.common' || a === 'script.js.global' || b === 'script.js.common' || b === 'script.js.global') {\n return 1;\n } else {\n return a > b ? 1 : -1;\n }\n });*/\n\n for (let i = 0; i < ids.length; i++) {\n const obj = data[ids[i]];\n const parts = ids[i].split('.');\n parts.pop();\n result.push({\n id: ids[i],\n title: getObjectName(ids[i], obj),\n enabled: obj && obj.common && obj.common.enabled,\n depth: parts.length - 1,\n type: obj.type === 'script' ? obj.common.engineType : 'folder',\n parent: parts.length > 1 ? parts.join('.') : null,\n instance: obj.common.engine ? parseInt(obj.common.engine.split('.').pop(), 10) || 0 : null\n });\n }\n\n // Place all folder-less scripts at start\n /*result.sort((a, b) => {\n // without folders => always at start\n if (!a.parent && a.type !== 'folder' && !b.parent && b.type !== 'folder') {\n if (a.id === b.id) {\n return 0;\n } else {\n return a.id > b.id ? 1 : -1;\n }\n } else if (!a.parent && a.type !== 'folder') {\n return -1;\n } else if (!b.parent && b.type !== 'folder') {\n return 1;\n } else {\n // common and global are always at the end\n if ((a.id.startsWith('script.js.common') || a.id.startsWith('script.js.global')) &&\n (b.id.startsWith('script.js.common') || b.id.startsWith('script.js.global'))) {\n if (a.id === b.id) {\n return 0;\n } else {\n return a.id > b.id ? 1 : -1;\n }\n } else if (a.id.startsWith('script.js.common') || a.id.startsWith('script.js.global')) {\n return 1;\n } else if (b.id.startsWith('script.js.common') || b.id.startsWith('script.js.global')) {\n return -1;\n } else {\n if (a.id === b.id) {\n return 0;\n } else {\n return a.id > b.id ? 1 : -1;\n }\n }\n }\n });*/\n\n let modified;\n do {\n modified = false;\n // check if all parents exists\n // eslint-disable-next-line\n result.forEach(item => {\n if (item.parent) {\n const parent = result.find(it => it.id === item.parent);\n if (!parent) {\n const parts = item.parent.split('.');\n parts.pop();\n result.push({\n id: item.parent,\n title: item.parent.split('.').pop(),\n depth: parts.length - 1,\n type: 'folder',\n parent: parts.length > 1 ? parts.join('.') : null\n });\n modified = true;\n }\n }\n });\n } while (modified);\n\n // Folders first\n result.sort((a, b) => {\n const idA = a.id.toLowerCase();\n const idB = b.id.toLowerCase();\n if (a.type === 'folder' && b.type !== 'folder') {\n return -1;\n } else if (b.type === 'folder' && a.type !== 'folder') {\n return 1;\n }\n\n if (idA > idB) {\n return 1;\n } else if (idA < idB) {\n return -1;\n } else {\n return 0;\n }\n });\n\n // Fill all index\n result.forEach((item, i) => item.index = i);\n\n // Fill all parentIndex\n result.forEach(item => {\n if (item.parent) {\n const parent = result.find(it => it.id === item.parent);\n if (parent) {\n item.parentIndex = parent.index;\n }\n }\n });\n\n return result;\n};\n\nexport const Droppable = (props) => {\n const { onDrop} = props;\n\n const [{ isOver, isOverAny}, drop] = useDrop({\n accept: ['script'],\n drop: e => isOver ? onDrop(e) : undefined,\n collect: monitor => ({\n isOver: monitor.isOver({ shallow: true }),\n isOverAny: monitor.isOver(),\n }),\n });\n\n return
\n {props.children}\n
;\n};\n\nexport const Draggable = props => {\n const { name } = props;\n const [{ opacity }, drag] = useDrag({\n type: 'script',\n item: () => ({name}),\n collect: monitor => ({opacity: monitor.isDragging() ? 0.3 : 1,}),\n });\n // About transform: https://github.com/react-dnd/react-dnd/issues/832#issuecomment-442071628\n return
\n {props.children}\n
;\n};\n\nclass SideDrawer extends React.Component {\n constructor(props) {\n super(props);\n\n let expanded = window.localStorage ? window.localStorage.getItem('SideMenu.expanded') : '[]';\n try {\n expanded = JSON.parse(expanded) || [];\n } catch (e) {\n expanded = [];\n }\n\n this.inputRef = new React.createRef();\n\n this.state = {\n listItems: prepareList(props.scripts || {}),\n expanded: expanded,\n problems: [],\n reorder: false,\n themeName: this.props.themeName,\n selected: window.localStorage ? window.localStorage.getItem('SideMenu.selected') || null : null,\n creatingScript: false,\n creatingFolder: false,\n copingScript: '',\n renaming: null,\n deleting: null,\n choosingType: null,\n errorText: '',\n instances: props.instances || [],\n menuOpened: false,\n menuAnchorEl: null,\n searchMode: false,\n expertMode: this.props.expertMode,\n searchText: '',\n width: this.props.width || 300,\n typeFilter: window.localStorage ? window.localStorage.getItem('SideMenu.typeFilter') || '' : '', // blockly, js, ts\n statusFilter: window.localStorage ? window.localStorage.getItem('SideMenu.statusFilter') || '' : '',\n runningInstances: this.props.runningInstances || {},\n scriptsHash: props.scriptsHash,\n showAdapterDebug: false,\n };\n\n const newExp = this.ensureSelectedIsVisible();\n if (newExp) {\n this.state.expanded = newExp;\n }\n\n // debounce search process\n this.filterTimer = null;\n\n this.state.isAllZeroInstances = this.getIsAllZeroInstances();\n\n this.problems = null; //cache\n this.problemsTimer = null;\n this.onProblemUpdatedBound = this.onProblemUpdated.bind(this);\n }\n\n readProblems(cb, tasks) {\n if (!tasks) {\n tasks = Object.keys(this.props.scripts);\n }\n if (!tasks || !tasks.length) {\n cb && cb();\n } else {\n const id = tasks.shift();\n if (this.props.scripts[id] &&\n this.props.scripts[id].type === 'script' &&\n this.props.scripts[id].common &&\n this.props.scripts[id].common.enabled &&\n !id.match(/^script\\.js\\.global\\./) // GLOBAL_ID\n ) {\n const instance = this.props.scripts[id].common.engine.split('.').pop();\n const that = this; // sometimes lambda does not work\n const _id = 'javascript.' + instance + '.scriptProblem.' + id.substring(ROOT_ID.length + 1);\n\n this.props.socket.getState(_id, (err, state) => {\n that.onProblemUpdated(_id, state);\n setTimeout(() => that.readProblems(cb, tasks), 0);\n });\n } else {\n setTimeout(() => this.readProblems(cb, tasks), 0);\n }\n }\n }\n\n componentDidMount() {\n this.readProblems(() => {\n this.props.instances.forEach(instance => {\n this.props.socket.subscribeState('javascript.' + instance + '.scriptProblem.*', this.onProblemUpdatedBound);\n });\n });\n }\n\n componentWillUnmount() {\n this.props.instances.forEach(instance => {\n this.props.socket.unsubscribeState('javascript.' + instance + '.scriptProblem.*', this.onProblemUpdatedBound);\n });\n }\n\n onProblemUpdated(id, state) {\n if (!state || !id) return;\n id = ROOT_ID + '.' + id.replace(/^javascript\\.\\d+\\.scriptProblem\\./, '');\n\n if (!this.problems) {\n this.problems = JSON.parse(JSON.stringify(this.state.problems));\n }\n let changed = false;\n\n if (state.val) {\n if (this.problems.indexOf(id) === -1) {\n this.problems.push(id);\n changed = true;\n }\n } else {\n const pos = this.problems.indexOf(id);\n if (pos !== -1) {\n this.problems.splice(pos, 1);\n changed = true;\n }\n }\n\n if (changed && !this.problemsTimer) {\n this.problemsTimer = setTimeout(() => {\n this.problemsTimer = null;\n this.setState({ problems: this.problems });\n this.problems = null;\n }, 300);\n }\n }\n\n static filterListStatic(isSearchEnabled, listItems, searchMode, searchText, objects) {\n listItems = JSON.parse(JSON.stringify(listItems));\n let changed = false;\n let newState = {listItems};\n if (isSearchEnabled !== false && searchMode && searchText) {\n const text = searchText.toLowerCase();\n listItems.forEach(item => {\n const id = item.title.toLowerCase();\n item.filteredPartly = false;\n let found = id.indexOf(text) !== -1;\n if (!found && (objects && objects[item.id] && objects[item.id].common && objects[item.id].common.source)) {\n if (objects[item.id].common.engineType === 'Blockly') {\n const pos = objects[item.id].common.source.lastIndexOf('//');\n found = objects[item.id].common.source.substring(0, pos).toLowerCase().indexOf(text) !== -1;\n } else {\n found = objects[item.id].common.source.toLowerCase().indexOf(text) !== -1;\n }\n }\n if (found) {\n if (item.filtered) {\n item.filtered = false;\n changed = true;\n }\n } else if (!item.filtered) {\n item.filtered = true;\n changed = true;\n }\n });\n\n if (changed) {\n // check that all parents of every non-filtered item are visible\n for (let i = listItems.length - 1; i >= 0; i--) {\n const item = listItems[i];\n if (!item.filtered || item.filteredPartly) {\n let it = item;\n do {\n if (it.parent && listItems[it.parentIndex]) {\n changed = true;\n listItems[it.parentIndex].filteredPartly = true;\n }\n it = it.parent && listItems[it.parentIndex] ? listItems[it.parentIndex] : null;\n } while(it);\n }\n }\n }\n } else {\n listItems.forEach(item => {\n if (item.filtered || item.filteredPartly) {\n item.filtered = false;\n item.filteredPartly = false;\n changed = true;\n }\n });\n if (isSearchEnabled === false) {\n newState.searchText = '';\n newState.searchMode = false;\n changed = true;\n }\n }\n\n return changed ? newState : null;\n }\n\n filterList(isSearchEnabled, cb) {\n const newState = SideDrawer.filterListStatic(\n isSearchEnabled,\n this.state.listItems,\n this.state.searchMode,\n this.state.searchText,\n this.props.scripts\n );\n\n if (newState) {\n this.setState(newState, () => cb && cb());\n } else if (cb) {\n cb();\n }\n }\n\n static ensureSelectedIsVisibleStatic(selected, expanded, listItems) {\n expanded = JSON.parse(JSON.stringify(expanded));\n let changed = false;\n\n // ensure that the item is visible\n let el = typeof selected === 'object' ? selected : listItems.find(it => it.id === selected);\n do {\n // eslint-disable-next-line\n el = el && el.parent && listItems.find(it => it.id === el.parent);\n if (el) {\n if (expanded.indexOf(el.id) === -1) {\n expanded.push(el.id);\n changed = true;\n }\n }\n } while(el);\n return changed && expanded;\n }\n\n ensureSelectedIsVisible(selected, expanded) {\n SideDrawer.ensureSelectedIsVisibleStatic(selected || this.state.selected, expanded || this.state.expanded, this.state.listItems);\n }\n\n static getDerivedStateFromProps(props, state) {\n const newState = {};\n let changed = false;\n if (state.expertMode !== props.expertMode) {\n changed = true;\n newState.expertMode = props.expertMode;\n }\n if (state.scriptsHash !== props.scriptsHash && props.scripts) {\n const listItems = prepareList(props.scripts || {});\n\n newState.listItems = listItems;\n\n if (state.searchText) {\n const nState = SideDrawer.filterListStatic(true, listItems, state.searchMode, state.searchText, props.scripts);\n nState && Object.assign(newState, nState);\n }\n\n const isAllZeroInstances = SideDrawer.getIsAllZeroInstancesStatic(listItems, props.instances || []);\n\n const newExp = SideDrawer.ensureSelectedIsVisibleStatic(state.selected, state.expanded, state.listItems);\n\n newState.isAllZeroInstances = isAllZeroInstances;\n if (newExp) {\n newState.expanded = newExp;\n }\n changed = true;\n }\n\n if (state.width !== props.width) {\n changed = true;\n newState.width = props.width;\n }\n if (state.themeName !== props.themeName) {\n changed = true;\n newState.themeName = props.themeName;\n }\n\n if (props.selectId && state.selected !== props.selectId) {\n const item = state.listItems.find(item => item.id === props.selectId);\n\n if (!state.reorder && item) {\n const expanded = SideDrawer.ensureSelectedIsVisibleStatic(item, state.expanded, state.listItems);\n newState.selected = item.id;\n if (expanded) {\n newState.expanded = expanded;\n }\n changed = true;\n window.localStorage && window.localStorage.setItem('SideMenu.selected', item.id);\n }\n }\n\n if (changed) {\n return newState;\n } else {\n return null;\n }\n }\n\n static getIsAllZeroInstancesStatic(listItems, instances) {\n let isAllZeroInstances = !instances[0] && instances.length <= 1;\n\n if (isAllZeroInstances) {\n listItems.forEach(item => {\n if (item.type !== 'folder' && item.instance !== 0) {\n isAllZeroInstances = false;\n }\n });\n }\n return isAllZeroInstances;\n }\n\n getIsAllZeroInstances(listItems, instances) {\n listItems = listItems || this.state.listItems;\n instances = instances || this.state.instances;\n return SideDrawer.getIsAllZeroInstancesStatic(listItems || this.state.listItems, instances || this.state.instances);\n }\n\n saveExpanded(expanded) {\n window.localStorage.setItem('SideMenu.expanded', JSON.stringify(expanded || this.state.expanded));\n }\n\n showError(errorText) {\n this.setState({ errorText });\n }\n\n onToggle(id, e) {\n e && e.stopPropagation();\n if (id === ROOT_ID) {\n return;\n }\n const expanded = [...this.state.expanded];\n const newState = {expanded};\n const pos = expanded.indexOf(id);\n if (pos !== -1) {\n expanded.splice(pos, 1);\n if (this.state.selected && this.state.selected.startsWith(id + '.')) {\n newState.selected = id;\n window.localStorage && window.localStorage.setItem('SideMenu.selected', id);\n }\n } else {\n expanded.push(id);\n expanded.sort();\n }\n this.setState({ expanded });\n this.saveExpanded(expanded);\n }\n\n renderItemButtonsOnEnd(item, children) {\n if (this.state.reorder) {\n return null;\n }\n if (item.type !== 'folder') {\n let color = item.enabled ? COLOR_RUN : COLOR_PAUSE;\n if (item.enabled && this.state.problems.includes(item.id)) {\n color = COLOR_PROBLEM;\n }\n\n return [\n {\n e.stopPropagation();\n this.props.onEnableDisable && this.props.onEnableDisable(item.id, !item.enabled)\n }}\n title={item.enabled ? I18n.t('Pause script') : I18n.t('Run script')}\n disabled={this.props.debugMode}\n key=\"startStop\"\n style={{ color }}\n size=\"medium\"\n >\n {item.enabled ? : }\n ,\n this.state.width > NARROW_WIDTH ? this.onDelete(item, e)}\n size=\"medium\"\n >\n \n : null,\n this.onEdit(item, e)}\n size=\"medium\">\n \n ,\n ];\n } else if (this.state.width > NARROW_WIDTH) {\n if (item.id !== ROOT_ID && item.id !== COMMON_ID && item.id !== GLOBAL_ID && (!children || !children.length)) {\n return (\n this.onDelete(item, e)}\n size=\"medium\">\n );\n } else {\n return null;\n }\n }\n }\n\n onDelete(item, e) {\n e && e.stopPropagation();\n return new Promise(resolve => {\n if (typeof item !== 'object') {\n this.setState({ deleting: item });\n } else {\n this.setState({ deleting: item.id });\n }\n });\n }\n\n onEdit(item, e) {\n this.onClick(item, e);\n this.props.onEdit && this.props.onEdit(item.id);\n }\n\n getTextStyle(item) {\n if (!this.state.reorder && item.type !== 'folder') {\n return {\n //width: 130,\n width: `calc(100% - ${this.state.width > NARROW_WIDTH ? 185 : 137}px)`,\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n flex: 'none',\n padding: '0 16px 0 0'\n };\n } else {\n return {\n whiteSpace: 'nowrap',\n padding: '0 16px 0 0'\n };\n }\n }\n\n onClick(item, e) {\n e && e.stopPropagation();\n if (!this.state.reorder && item) {\n const expanded = this.ensureSelectedIsVisible(item);\n const newState = {selected: item.id};\n if (expanded) {\n newState.expanded = expanded;\n }\n this.setState(newState);\n window.localStorage && window.localStorage.setItem('SideMenu.selected', item.id);\n }\n }\n\n onDblClick(item, e) {\n e && e.stopPropagation();\n if (this.state.reorder) {\n return;\n }\n if (item.type === 'folder') {\n this.onToggle(item.id);\n } else {\n this.onEdit(item);\n }\n }\n\n isFilteredOut(item) {\n if (item.filtered && !item.filteredPartly) return true;\n\n if (this.state.typeFilter && item.type !== 'folder' && item.type !== this.state.typeFilter) {\n return true;\n }\n\n if (this.state.statusFilter &&\n item.type !== 'folder' &&\n (\n (this.state.statusFilter === 'running' && !item.enabled) ||\n (this.state.statusFilter === 'paused' && item.enabled) ||\n (this.state.statusFilter === 'problems' && (!item.enabled || this.state.problems.indexOf(item.id) === -1)))\n ) {\n return true;\n }\n\n return (item.id === GLOBAL_ID && !this.state.expertMode);\n }\n\n renderListItem(item, children, childrenFiltered) {\n if (item.id === ROOT_ID && !this.state.reorder) {\n return null;\n }\n\n const depthPx = (this.state.reorder ? item.depth : item.depth - 1) * LEVEL_PADDING;\n\n let title = item.title;\n\n if (this.state.searchText) {\n const pos = title.toLowerCase().indexOf(this.state.searchText.toLowerCase());\n if (pos !== -1) {\n title = [\n {title.substring(0, pos)},\n {title.substring(pos, pos + this.state.searchText.length)},\n {title.substring(pos + this.state.searchText.length)},\n ];\n }\n }\n\n if (!this.state.isAllZeroInstances && item.type !== 'folder') {\n title = [\n [{item.instance}] ,\n {title}\n ];\n }\n const reorder = this.state.reorder && !this.props.debugMode;\n\n const style = Object.assign({\n marginLeft: depthPx,\n cursor: item.type === 'folder' && reorder ? 'default' : 'inherit',\n width: `calc(100% - ${depthPx}px)`\n }, item.id === this.state.selected && !reorder ? SELECTED_STYLE : {});\n\n if (!reorder) {\n style.opacity = item.filteredPartly ? 0.5 : 1;\n }\n\n if (item.id === GLOBAL_ID && item.id !== this.state.selected) {\n style.color = '#00a200';\n }\n\n let isExpanded = item.id === ROOT_ID;\n if (!isExpanded && children) {\n isExpanded = this.state.expanded.includes(item.id);\n }\n\n let iconStyle = {};\n if (item.id === GLOBAL_ID) {\n iconStyle.color = '#356956';\n } else if (item.id === COMMON_ID) {\n iconStyle.color = '#4899e1';\n }\n let iconClass;\n if (item.type === 'folder') {\n iconClass = Utils.clsx(this.props.classes.folderIcon, reorder ? this.props.classes.folderIconReorder : this.props.classes.folderIconNoReorder);\n } else {\n iconClass = Utils.clsx(this.props.classes.scriptIcon, reorder ? this.props.classes.scriptIconReorder : this.props.classes.scriptIconNoReorder);\n }\n\n let childrenCount = null;\n if ((childrenFiltered && childrenFiltered.length) || (children && children.length)) {\n childrenCount = {childrenFiltered && childrenFiltered.length !== children.length ? `${childrenFiltered.length}(${children.length})` : children.length};\n }\n\n return this.onClick(item, e)}\n onDoubleClick={e => this.onDblClick(item, e)}\n >\n {\n item.type === 'folder' ? (\n reorder || isExpanded ?\n !reorder && this.onToggle(item.id, e)} /> :\n !reorder && this.onToggle(item.id, e)} />\n )\n :\n {item.type}\n }\n {title}{childrenCount}} />\n {this.renderItemButtonsOnEnd(item, children)}\n ;\n }\n\n onDragFinish(source, target) {\n let newId = `${target}.${source.split('.').pop()}`;\n if (newId !== source) {\n // If target yet exists => add Copy to\n if (this.state.listItems.find(item => item.id === newId)) {\n newId += `_${I18n.t('copy')}`;\n }\n\n this.props.onRename && this.props.onRename(source, newId);\n }\n return undefined;\n }\n\n renderOneItem(items, item /* , dragging */) {\n let childrenFiltered = (this.state.statusFilter || this.state.typeFilter) && items.filter(i => i.parent === item.id ? !this.isFilteredOut(i) : false);\n let children = items.filter(i => i.parent === item.id);\n\n if (this.isFilteredOut(item)) {\n return;\n }\n\n if (item.type === 'folder' && (this.state.statusFilter || this.state.typeFilter) && !childrenFiltered.length) {\n return;\n }\n const reorder = this.state.reorder && !this.props.debugMode;\n\n const element = this.renderListItem(item, children, childrenFiltered);\n const result = [];\n let reactChildren;\n if (children && (reorder || this.state.expanded.includes(item.id) || item.id === ROOT_ID)) {\n reactChildren = children.map(it => this.renderOneItem(items, it));\n }\n\n if (reorder) {\n if (item.type === 'folder') {\n result.push( this.onDragFinish(e.name, item.id)}>\n {element}\n {reactChildren || null}\n );\n } else {\n result.push(\n {element}\n {reactChildren || null}\n );\n }\n } else {\n result.push(element);\n reactChildren && reactChildren.forEach(e => result.push(e));\n }\n\n return result;\n }\n\n renderAllItems(items) {\n const result = items\n .filter(item => !item.parent)\n .map(item =>\n this.renderOneItem(items, item));\n\n return \n {result}\n ;\n }\n\n onAddNew(e) {\n e && e.stopPropagation();\n let item = this.state.listItems.find(i => i.id === this.state.selected);\n let parent = ROOT_ID;\n while (item && item.type !== 'folder') {\n item = this.state.listItems[item.parentIndex];\n }\n if (item) {\n parent = item.id;\n }\n\n this.parent = parent;\n this.setState({ choosingType: true });\n }\n\n onCopy(e, id) {\n e && e.stopPropagation();\n let item = this.state.listItems.find(i => i.id === id);\n let parent = ROOT_ID;\n while (item && item.type !== 'folder') {\n item = this.state.listItems[item.parentIndex];\n }\n if (item) {\n parent = item.id;\n }\n\n this.parent = parent;\n this.setState({ copingScript: id });\n }\n\n onAddNewFolder(e) {\n e && e.stopPropagation();\n let item = this.state.listItems.find(i => i.id === this.state.selected);\n let parent = ROOT_ID;\n while (item && item.type !== 'folder') {\n item = this.state.listItems[item.parentIndex];\n }\n if (item) {\n parent = item.id;\n }\n\n this.parent = parent;\n this.setState({ creatingFolder: true });\n }\n\n onRename(e) {\n e && e.stopPropagation();\n this.setState({ renaming: this.state.selected });\n }\n\n getUniqueName(copyId) {\n let i = 1;\n let word = `${I18n.t('Script')} `;\n if (copyId) {\n let name = getObjectName(copyId, this.props.scripts[copyId]);\n const m = name.match(/\\d+$/);\n if (m) {\n word = name.replace(/\\d+$/, '');\n i = parseInt(m[0], 10) + 1;\n } else {\n word = name;\n }\n }\n\n // eslint-disable-next-line\n while (this.state.listItems.find(it => it.id === `${this.parent}.${word.replace(/\\.\\s/g, '_')}${i}`)) {\n i++;\n }\n /*ignore jslint end*/\n return word + i;\n }\n\n getUniqueFolderName() {\n let i = 1;\n // eslint-disable-next-line\n while (this.state.listItems.find(it => it.id === `${this.parent}.${I18n.t('Folder')}_${i}`)) {\n i++;\n }\n return `${I18n.t('Folder')} ${i}`;\n }\n\n onCloseMenu(cb) {\n this.setState({ menuOpened: false, menuAnchorEl: null, menuAnchorFilterEl: null }, cb);\n }\n\n getFilterBadge() {\n return [\n this.state.statusFilter === true && ,\n this.state.statusFilter === false && ,\n this.state.typeFilter === 'Blockly' && 'Bl',\n this.state.typeFilter === 'Javascript/js' && 'JS',\n this.state.typeFilter === 'TypeScript/ts' && 'TS',\n ];\n }\n\n getMainMenu(children, selectedItem) {\n return this.setState({ menuOpened: false, menuAnchorEl: null })}\n PaperProps={{\n style: {\n maxHeight: MENU_ITEM_HEIGHT * 7.5,\n // width: 200,\n },\n }}\n >\n {this.state.width <= NARROW_WIDTH ? {\n event.stopPropagation();\n event.preventDefault();\n if (this.state.listItems.find(item => item.parent === this.state.selected)) {\n this.showError(I18n.t('Cannot delete non empty item!'));\n return;\n }\n\n this.setState({ menuOpened: false, menuAnchorEl: null }, () =>\n this.onDelete(this.state.selected).then(() => {}));\n }}>{I18n.t('Delete')}\n : null}\n {\n event.stopPropagation();\n event.preventDefault();\n this.onCloseMenu(() =>\n this.props.onExpertModeChange && this.props.onExpertModeChange(!this.state.expertMode));\n }}>\n {I18n.t('Expert mode')}\n \n {this.props.onExport && {\n event.stopPropagation();\n event.preventDefault();\n this.onCloseMenu(() => this.props.onExport());\n }}>\n {I18n.t('Export all scripts')}\n }\n {this.props.onImport && {\n event.stopPropagation();\n event.preventDefault();\n this.onCloseMenu(() => this.props.onImport());\n }}>\n {I18n.t('Import scripts')}\n }\n {this.props.onThemeChange && \n this.onCloseMenu(() => {\n // TODO: use Utils.toggleTheme(themeName)\n // newThemeName = Utils.toggleTheme(themeName);\n const newThemeName = this.state.themeName === 'dark' ? 'blue' :\n this.state.themeName === 'blue' ? 'colored' : this.state.themeName === 'colored' ? 'light' :\n this.state.themeName === 'light' ? 'dark' : 'colored';\n this.props.onThemeChange(newThemeName);\n })}>\n {I18n.t('Change theme (actual \"%s\")', this.state.themeName)}\n }\n {this.props.onAddNew && {\n const selected = this.state.selected;\n this.onCloseMenu(() => this.onCopy(event, selected))\n }}>\n {I18n.t('Copy script')}\n }\n {this.state.expertMode && {\n event.stopPropagation();\n event.preventDefault();\n this.onCloseMenu(() =>\n this.setState({ showAdapterDebug: true }));\n }}>\n {I18n.t('Debug instance')}\n }\n ;\n }\n\n // render menu and toolbar\n getToolbarButtons() {\n const result = [];\n const classes = this.props.classes;\n const reorder = this.state.reorder && !this.props.debugMode;\n if (this.state.searchMode && !this.props.debugMode) {\n result.push( {\n this.setState({ searchText: e.target.value });\n this.filterTimer && clearTimeout(this.filterTimer);\n this.filterTimer = setTimeout(() => {\n this.filterTimer = null;\n this.filterList(true);\n this.props.onSearch && this.props.onSearch(this.state.searchText);\n }, 400);\n }}\n />);\n\n result.push( {\n e.stopPropagation();\n this.filterList(false, () => this.props.onSearch && this.props.onSearch(this.state.searchText));\n }}\n size=\"medium\">);\n\n this.state.searchText && result.push( {\n e.stopPropagation();\n this.setState({ searchText: '' }, () => {\n this.filterList(true);\n this.props.onSearch && this.props.onSearch(this.state.searchText);\n });\n }}\n size=\"medium\">);\n } else {\n if (!reorder) {\n // Open Menu\n result.push( {\n event.stopPropagation();\n event.preventDefault();\n this.setState({ menuOpened: true, menuAnchorEl: event.currentTarget });\n }}\n size=\"medium\">\n {/**/}\n \n {/**/}\n );\n\n const selectedItem = this.state.listItems.find(it => it.id === this.state.selected);\n let children;\n if (selectedItem && this.state.width <= NARROW_WIDTH && selectedItem.type === 'folder') {\n children = this.state.listItems.filter(i => i.parent === this.state.selected);\n }\n\n // Menu\n result.push(this.getMainMenu(children, selectedItem));\n\n // New Script\n result.push( this.onAddNew(e)}\n size=\"medium\">);\n\n // New Folder\n result.push( this.onAddNewFolder()}\n size=\"medium\">);\n }\n\n // Search\n result.push( {\n e.stopPropagation();\n this.setState({ searchMode: true });\n }}\n size=\"medium\">);\n\n // Reorder button\n result.push( {\n e.stopPropagation();\n this.setState({ reorder: !this.state.reorder });\n }}\n size=\"medium\">);\n\n if (!reorder && this.state.selected && this.state.selected !== GLOBAL_ID && this.state.selected !== COMMON_ID) {\n // Rename\n result.push( this.onRename(e)}\n size=\"medium\">);\n\n // const selectedItem = this.state.listItems.find(i => i.id === this.state.selected);\n // if (selectedItem && selectedItem.type !== 'folder') {\n // // Restart\n // result.push(( {\n // e.stopPropagation();\n // this.props.onEnableDisable && this.props.onEnableDisable();\n // }}\n // >));\n // }\n }\n\n }\n return result;\n }\n\n getFolders() {\n const folders = [{id: ROOT_ID, name: I18n.t('Root folder')}];\n this.state.listItems.forEach(item =>\n item.type === 'folder' && folders.push({id: item.id, name: item.title})\n );\n return folders;\n }\n\n onCollapseAll() {\n this.setState({ expanded: [] });\n this.saveExpanded([]);\n }\n\n onExpandAll() {\n const expanded = [];\n this.state.listItems.forEach(item =>\n this.state.listItems.find(it => it.parent === item.id) && expanded.push(item.id));\n this.setState({ expanded });\n this.saveExpanded(expanded);\n }\n\n getBottomButtons() {\n if (this.state.reorder || this.props.debugMode) {\n return null;\n }\n return [\n {\n event.stopPropagation();\n event.preventDefault();\n const statusFilter = this.state.statusFilter === 'running' ? '' : 'running';\n window.localStorage && window.localStorage.setItem('SideMenu.statusFilter', statusFilter);\n this.setState({ statusFilter });\n }}\n />,\n\n {\n const statusFilter = this.state.statusFilter === 'paused' ? '' : 'paused';\n window.localStorage && window.localStorage.setItem('SideMenu.statusFilter', statusFilter);\n this.setState({ statusFilter });\n }}\n />,\n {\n const statusFilter = this.state.statusFilter === 'problems' ? '' : 'problems';\n window.localStorage && window.localStorage.setItem('SideMenu.statusFilter', statusFilter);\n this.setState({ statusFilter });\n }}\n />,\n {\n const typeFilter = this.state.typeFilter === 'Blockly' ? '' : 'Blockly';\n window.localStorage && window.localStorage.setItem('SideMenu.typeFilter', typeFilter);\n this.setState({ typeFilter });\n }}\n />,\n {\n const typeFilter = this.state.typeFilter === 'Javascript/js' ? '' : 'Javascript/js';\n window.localStorage && window.localStorage.setItem('SideMenu.typeFilter', typeFilter);\n this.setState({ typeFilter });\n }}\n />,\n {\n const typeFilter = this.state.typeFilter === 'TypeScript/ts' ? '' : 'TypeScript/ts';\n window.localStorage && window.localStorage.setItem('SideMenu.typeFilter', typeFilter);\n this.setState({ typeFilter });\n }}\n />,\n {\n const typeFilter = this.state.typeFilter === 'Rules' ? '' : 'Rules';\n window.localStorage && window.localStorage.setItem('SideMenu.typeFilter', typeFilter);\n this.setState({ typeFilter });\n }}\n />,\n this.onExpandAll()} />,\n this.state.expanded.length ? this.onCollapseAll()} /> : null,\n ];\n }\n\n getAdapterDebugDialog() {\n if (this.state.showAdapterDebug) {\n return this.setState({ showAdapterDebug: false })}\n onDebug={(instance, adapter) => this.setState({ showAdapterDebug: false }, () => this.props.onDebugInstance({instance, adapter}))}\n />;\n }\n }\n\n render() {\n const {classes} = this.props;\n\n const renamingItem = this.state.renaming && this.state.listItems.find(i => i.id === this.state.renaming);\n const copingItem = this.state.copingScript && this.props.scripts[this.state.copingScript];\n\n return [\n this.onClick({id: ''})}\n >\n
\n {this.getToolbarButtons()}\n
\n\n \n\n \n
\n {this.renderAllItems(this.state.listItems)}\n
\n
\n\n \n\n
{this.getBottomButtons()}
\n ,\n\n renamingItem ? this.setState({ renaming: false })}\n onRename={(oldId, newName, newId, newInstance) => this.props.onRename && this.props.onRename(oldId, newName, newId, newInstance)}\n /> : null,\n\n this.state.deleting ? i.id === this.state.deleting).title}\n id={this.state.deleting}\n onClose={() => this.setState({ deleting: false })}\n onDelete={id => this.props.onDelete && this.props.onDelete(id)}\n /> : null,\n\n this.state.choosingType ? {\n this.setState({ choosingType: false });\n type && this.setState({ creatingScript: type })\n }}\n /> : null,\n\n this.state.creatingScript ? this.setState({ creatingScript: false })}\n title={I18n.t('Create new script')}\n name={this.getUniqueName()}\n parents={this.getFolders()}\n folder={false}\n existingItems={this.state.listItems.map(item => item.id)}\n instance={this.props.instances[0] || 0}\n instances={this.props.instances}\n type={this.state.creatingScript}\n parent={this.parent}\n onAdd={(id, name, instance, type) =>\n this.props.onAddNew && this.props.onAddNew(id, name, false, instance, type)}\n /> : null,\n\n this.state.copingScript ? this.setState({ copingScript: '' })}\n title={I18n.t('Copy script')}\n name={this.getUniqueName(this.state.copingScript)}\n parents={this.getFolders()}\n folder={false}\n instance={parseInt((copingItem && copingItem.common && copingItem.common.engine && copingItem.common.engine.split('.').pop()) || 0, 10)}\n instances={this.props.instances}\n type={(copingItem && copingItem.common && copingItem.common.engineType) || 'Javascript/js'}\n parent={this.parent}\n onAdd={(id, name, instance, type) => {\n const copingItem = this.state.copingScript && this.props.scripts[this.state.copingScript];\n if (copingItem && copingItem.common) {\n // disable script by coping\n copingItem.common.enabled = false;\n }\n this.props.onAddNew && this.props.onAddNew(id, name, false, instance, type, copingItem && copingItem.common && copingItem.common.source);\n }}\n /> : null,\n\n this.state.creatingFolder ? this.setState({ creatingFolder: false })}\n title={I18n.t('Create new folder')}\n parents={this.getFolders()}\n name={this.getUniqueFolderName()}\n parent={this.parent}\n onAdd={(id, name) =>\n this.props.onAddNew && this.props.onAddNew(id, name, true)}\n /> : null,\n\n this.state.errorText ? this.setState({ errorText: '' })} text={this.state.errorText} /> : null,\n\n this.getAdapterDebugDialog(),\n ];\n }\n}\n\nSideDrawer.propTypes = {\n classes: PropTypes.object.isRequired,\n instances: PropTypes.array.isRequired,\n scripts: PropTypes.object.isRequired,\n scriptsHash: PropTypes.number,\n onEdit: PropTypes.func,\n selectId: PropTypes.string,\n expertMode: PropTypes.bool,\n onExpertModeChange: PropTypes.func,\n onEnableDisable: PropTypes.func,\n runningInstances: PropTypes.object,\n socket: PropTypes.object,\n themeName: PropTypes.string,\n themeType: PropTypes.string,\n onSelect: PropTypes.func,\n onAddNew: PropTypes.func,\n onRename: PropTypes.func,\n onDelete: PropTypes.func,\n onImport: PropTypes.func,\n onExport: PropTypes.func,\n onSearch: PropTypes.func,\n onThemeChange: PropTypes.func,\n onDebugInstance: PropTypes.func,\n width: PropTypes.number,\n debugMode: PropTypes.bool,\n};\n\nexport default withStyles(styles)(SideDrawer);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport withStyles from '@mui/styles/withStyles';\n\nimport IconButton from '@mui/material/IconButton';\n\nimport { MdDeleteForever as IconDelete } from 'react-icons/md';\nimport { MdVerticalAlignBottom as IconBottom } from 'react-icons/md';\nimport { MdContentCopy as IconCopy } from 'react-icons/md';\nimport { MdVisibilityOff as IconHide } from 'react-icons/md';\n\nimport { I18n, Utils } from '@iobroker/adapter-react-v5';\n\n// replace later with MdHorizontalSplit and MdVerticalSplit\nconst IconVerticalSplit = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgAQMAAADYVuV7AAAABlBMVEUAAAAzMzPI8eYgAAAAAXRSTlMAQObYZgAAACFJREFUeAFjAIJRwP////8PYIKWHCigNQdKj/pn1D+jAABTG16wVQqVpQAAAABJRU5ErkJggg==';\nconst IconHorizontalSplit = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgAQMAAADYVuV7AAAABlBMVEUAAAAzMzPI8eYgAAAAAXRSTlMAQObYZgAAABtJREFUeAFjAIJRwP8fCj7QkENn/4z6Z5QzCgBjbWaoyx1PqQAAAABJRU5ErkJggg==';\n\nfunction getTimeString(d) {\n let text;\n let i = d.getHours();\n if (i < 10) {\n i = `0${i.toString()}`;\n }\n text = `${i}:`;\n\n i = d.getMinutes();\n if (i < 10) {\n i = `0${i.toString()}`;\n }\n text += `${i}:`;\n i = d.getSeconds();\n if (i < 10) {\n i = `0${i.toString()}`;\n }\n text += `${i}.`;\n i = d.getMilliseconds();\n if (i < 10) {\n i = `00${i.toString()}`;\n } else if (i < 100) {\n i = `0${i.toString()}`;\n }\n text += i;\n return text;\n}\nconst TOOLBOX_WIDTH = 34;\n\nconst styles = theme => ({\n logBox: {\n width: '100%',\n height: '100%',\n position: 'relative',\n overflow: 'hidden',\n },\n logBoxInner: {\n display: 'inline-block',\n color: theme.palette.mode === 'dark' ? 'white' : 'black',\n width: `calc(100% - ${TOOLBOX_WIDTH}px)`,\n height: '100%',\n //marginLeft: TOOLBOX_WIDTH,\n overflow: 'auto',\n position: 'relative',\n verticalAlign: 'top',\n },\n info: {\n background: theme.palette.mode === 'dark' ? 'darkgrey' : 'lightgrey',\n color: theme.palette.mode === 'dark' ? 'black' : 'black',\n },\n error: {\n background: '#FF0000',\n color: theme.palette.mode === 'dark' ? 'black' : 'white',\n },\n warn: {\n background: '#FF8000',\n color: theme.palette.mode === 'dark' ? 'black' : 'white',\n },\n debug: {\n background: 'gray',\n opacity: 0.8,\n color: theme.palette.mode === 'dark' ? 'black' : 'white',\n },\n silly: {\n background: 'gray',\n opacity: 0.6,\n color: theme.palette.mode === 'dark' ? 'black' : 'white',\n },\n table: {\n fontFamily: 'monospace',\n width: '100%',\n\n },\n toolbox: {\n width: TOOLBOX_WIDTH,\n height: '100%',\n boxShadow: '2px 0px 4px -1px rgba(0, 0, 0, 0.2), 4px 0px 5px 0px rgba(0, 0, 0, 0.14), 1px 0px 10px 0px rgba(0, 0, 0, 0.12)',\n display: 'inline-block',\n verticalAlign: 'top',\n overflow: 'hidden',\n },\n trTime: {\n width: 90,\n },\n trSeverity: {\n width: 40,\n fontWeight: 'bold',\n },\n iconButtons: {\n width: 32,\n height: 32,\n padding: 4,\n },\n layoutIcon: {\n width: 24,\n height: 24,\n background: theme.palette.mode === 'dark' ? '#9d9d9d' : undefined,\n borderRadius: theme.palette.mode === 'dark' ? 30 : undefined,\n },\n});\n\nfunction paddingMs(ms) {\n if (ms < 10) {\n return `00${ms}`;\n }\n if (ms < 100) {\n return `0${ms}`;\n }\n return ms;\n}\n\nlet gText = {};\n\nclass Log extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n lines: {},\n goBottom: true,\n selected: null,\n editing: this.props.editing || [],\n };\n this.lastIndex = null;\n this.messagesEnd = React.createRef();\n }\n\n generateLine(message) {\n return \n {getTimeString(new Date(message.ts))}\n {message.severity}\n {message.message}\n ;\n }\n\n scrollToBottom() {\n this.messagesEnd && this.messagesEnd.current && this.messagesEnd.current.scrollIntoView({ behavior: 'smooth' });\n }\n\n logHandler = message => {\n let allLines = this.state.lines;\n const scripts = this.state.editing.filter(id => message.message.includes(id));\n let selected;\n if (!scripts.length) {\n return;\n } else if (scripts.length === 1) {\n selected = scripts[0];\n } else {\n // try to get the script with the longest common substring\n scripts.sort();\n selected = scripts[scripts.length - 1];\n }\n\n let lines = allLines[selected] || [];\n let text = gText[selected] || [];\n\n lines.push(this.generateLine(message));\n let severity = message.severity;\n if (severity === 'info' || severity === 'warn') {\n severity += ' ';\n }\n const date = new Date(message.ts);\n text.push(`${date.toLocaleString()}.${paddingMs(date.getMilliseconds())}\\t[${severity}]: ${message.message}`);\n if (lines.length > 300) {\n lines.splice(0, lines.length - 300);\n text.splice(0, lines.length - 300);\n }\n gText[selected] = text;\n allLines[selected] = lines;\n\n this.setState({ lines: allLines });\n }\n\n componentDidMount() {\n this.props.socket.registerLogHandler(this.logHandler);\n }\n\n componentWillUnmount() {\n this.props.socket.unregisterLogHandler(this.logHandler);\n }\n\n componentDidUpdate() {\n this.state.goBottom && this.scrollToBottom();\n }\n\n static getDerivedStateFromProps(props, state) {\n let changed = false;\n let newState = {};\n\n if (props.selected !== state.selected) {\n let selected = props.selected;\n let allLines = state.lines;\n allLines[selected] = allLines[selected] || [];\n gText[selected] = gText[selected] || [];\n newState.selected = selected;\n changed = true;\n }\n\n if (JSON.stringify(props.editing) !== JSON.stringify(state.editing)) {\n const editing = JSON.parse(JSON.stringify(props.editing));\n changed = true;\n let allLines = state.lines;\n\n for (const id in gText) {\n if (gText.hasOwnProperty(id)) {\n if (!editing.includes(id)) {\n delete gText[id];\n delete allLines[id];\n }\n }\n }\n\n newState.editing = editing;\n }\n return changed ? newState : null;\n }\n\n onCopy() {\n Utils.copyToClipboard((gText[this.state.selected] || []).join('\\n'));\n }\n\n clearLog() {\n let allLines = this.state.lines;\n if (allLines[this.state.selected]) {\n allLines[this.state.selected] = [];\n }\n if (gText[this.state.selected]) {\n gText[this.state.selected] = [];\n }\n this.setState({ lines: allLines });\n }\n\n renderLogList(lines) {\n if (this.state.selected && lines && lines.length) {\n return
\n {lines}
\n
\n
;\n } else {\n return
{I18n.t('Log outputs')}
;\n }\n }\n\n render() {\n const lines = this.state.selected && this.state.lines[this.state.selected];\n return
\n
\n this.setState({ goBottom: !this.state.goBottom })}\n color={this.state.goBottom ? 'secondary' : ''}\n size=\"medium\">\n {lines && lines.length ? this.clearLog()}\n size=\"medium\"> : null}\n {lines && lines.length ? this.onCopy()}\n size=\"medium\"> : null}\n {this.props.onLayoutChange ? this.props.onLayoutChange()}\n title={I18n.t('Change layout')}\n size=\"medium\">\"split\" : null}\n this.props.onHideLog()}\n title={I18n.t('Hide logs')}\n size=\"medium\">\n
\n {this.renderLogList(lines)}\n
;\n }\n}\n\nLog.propTypes = {\n selected: PropTypes.string,\n socket: PropTypes.object,\n onLayoutChange: PropTypes.func,\n verticalLayout: PropTypes.bool,\n};\n\nexport default withStyles(styles)(Log);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Fab from '@mui/material/Fab';\n\nimport {MdGTranslate as IconNoCheck} from 'react-icons/md';\nimport { I18n } from '@iobroker/adapter-react-v5';\n\nfunction isIdOfGlobalScript(id) {\n return /^script\\.js\\.global\\./.test(id);\n}\nlet index = 0;\nclass ScriptEditor extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n name: 'current',\n isDark: props.isDark || false,\n language: props.language || 'javascript',\n readOnly: props.readOnly || false,\n alive: true,\n check: false,\n searchText: this.props.searchText || '',\n typingsLoaded: false,\n };\n this.runningInstancesStr = JSON.stringify(this.props.runningInstances);\n this.monacoDiv = null; //ref\n this.editor = null;\n this.monaco = window.monaco;\n this.insert = '';\n this.originalCode = props.code || '';\n this.typings = {}; // TypeScript declarations\n this.lastSearch = '';\n }\n\n waitForMonaco(cb) {\n if (!this.monaco || !this.props.runningInstances) {\n this.monaco = window.monaco;\n this.monacoCounter = this.monacoCounter || 0;\n this.monacoCounter++;\n if (!this.monaco && this.monacoCounter < 20) {\n console.log('wait for monaco loaded');\n return setTimeout(() => this.waitForMonaco(cb), 200);\n } else if (this.monacoCounter >= 20) {\n console.error('Cannot load monaco!');\n }\n } else {\n cb && cb();\n }\n }\n\n loadTypings(runningInstances) {\n if (!this.editor) {\n return;\n }\n runningInstances = runningInstances || this.props.runningInstances;\n let scriptAdapterInstance = runningInstances && Object.keys(runningInstances).find(id => runningInstances[id]);\n if (scriptAdapterInstance) {\n this.props.socket.sendTo(scriptAdapterInstance.replace('system.adapter.', ''), 'loadTypings', null)\n .then(result => {\n this.setState({alive: true, check: true, typingsLoaded: true});\n this.setTypeCheck(true);\n if (result.typings) {\n this.typings = result.typings;\n this.setEditorTypings(this.state.name);\n } else {\n console.error(`failed to load typings: ${result.error}`);\n }\n });\n }\n }\n\n componentDidMount() {\n if (!this.monaco || !this.props.runningInstances) {\n this.monaco = window.monaco;\n if (!this.monaco) {\n console.log('wait for monaco loaded');\n return this.waitForMonaco(() => this.componentDidMount());\n }\n }\n if (!this.editor) {\n this.props.onRegisterSelect && this.props.onRegisterSelect(() => this.editor.getModel().getValueInRange(this.editor.getSelection()));\n // For some reason we have to get the original compiler options\n // and assign new properties one by one\n const compilerOptions = this.monaco.languages.typescript.typescriptDefaults['getCompilerOptions']();\n compilerOptions.target = this.monaco.languages.typescript.ScriptTarget.ES2015;\n compilerOptions.allowJs = true;\n compilerOptions.checkJs = this.props.checkJs !== false;\n compilerOptions.noLib = true;\n compilerOptions.lib = [];\n compilerOptions.useUnknownInCatchVariables = false;\n compilerOptions.moduleResolution = this.monaco.languages.typescript.ModuleResolutionKind.NodeJs;\n this.monaco.languages.typescript.typescriptDefaults.setCompilerOptions(compilerOptions);\n\n this.setTypeCheck(false);\n\n // Create the editor instances\n this.editor = this.monaco.editor.create(this.monacoDiv, {\n lineNumbers: 'on',\n scrollBeyondLastLine: false,\n automaticLayout: true,\n glyphMargin: !!this.props.breakpoints,\n });\n\n this.editor.onDidChangeModelContent(e =>\n this.onChange(this.editor.getValue()));\n\n // Load typings for the JS editor\n /** @type {string} */\n this.loadTypings();\n\n this.editor.addCommand(this.monaco.KeyMod.CtrlCmd | this.monaco.KeyCode.KEY_S, () =>\n this.onForceSave());\n\n setTimeout(() => {\n this.highlightText(this.state.searchText);\n this.location = this.props.location;\n this.breakpoints = this.props.breakpoints;\n this.showDecorators();\n });\n }\n const options = {\n selectOnLineNumbers: true,\n scrollBeyondLastLine: false,\n automaticLayout: true,\n readOnly: this.state.readOnly,\n language: this.state.language,\n isDark: this.state.isDark,\n };\n\n this.setEditorOptions(options);\n this.editor.focus();\n this.editor.setValue(this.originalCode);\n if (this.props.onToggleBreakpoint) {\n // add onMouseDown listener to toggle breakpoints\n this.editor.onMouseDown(e => {\n if (e.target.detail && e.target.detail.glyphMarginLeft !== undefined) {\n this.props.onToggleBreakpoint(e.target.position.lineNumber - 1);\n }\n });\n } else {\n // remove onMouseDown listener\n this.editor.onMouseDown(() => { /* nop */ });\n }\n }\n\n /**\n * Sets some options of the code editor\n * @param {object} options The editor options to change\n * @param {Partial<{readOnly: boolean, lineWrap: boolean, language: EditorLanguage, typeCheck: boolean}>} options\n */\n setEditorOptions(options) {\n if (options) {\n if (options.language) {\n this.setEditorLanguage(options.language);\n }\n if (options.readOnly !== undefined) {\n this.editor.updateOptions({readOnly: options.readOnly});\n }\n if (options.lineWrap !== undefined) {\n this.editor.updateOptions({wordWrap: options.lineWrap ? 'on' : 'off'});\n }\n if (options.typeCheck !== undefined) {\n this.setTypeCheck(options.typeCheck);\n }\n if (options.isDark !== undefined) {\n this.monaco.editor.setTheme(options.isDark ? 'vs-dark' : 'vs');\n }\n }\n }\n\n componentWillUnmount() {\n if (this.editor) {\n this.props.onRegisterSelect && this.props.onRegisterSelect(null);\n this.editor.dispose();\n this.editor = null;\n }\n }\n\n /** @typedef {\"javascript\" | \"typescript\" | \"coffeescript\"} EditorLanguage */\n\n /**\n * Sets the language of the code editor\n * @param {EditorLanguage} language\n */\n setEditorLanguage(language) {\n // we need to recreate the model when changing languages,\n // so remember its settings\n const model = this.editor.getModel();\n const code = model.getValue();\n const uri = model.uri.path;\n\n const filenameWithoutExtension =\n typeof uri === 'string' && uri.includes('.')\n ? uri.substr(0, uri.lastIndexOf('.'))\n : 'index';\n\n const extension =\n language === 'javascript' ? 'js'\n : (language === 'typescript' ? 'ts' : language);\n\n // get rid of the original model\n model.dispose();\n\n // Both JS and TS need the model to work in TypeScript as the script type\n // is inferred from the file extension\n const newLanguage = (language === 'javascript' || language === 'typescript') ? 'typescript' : language;\n\n const newModel = this.monaco.editor.createModel(\n code,\n newLanguage,\n this.monaco.Uri.from({path: `${filenameWithoutExtension}${index++}.${extension}`})\n );\n\n this.editor.setModel(newModel);\n }\n\n /**\n * Enables or disables the type checking in the editor\n * @param {boolean} enabled - Whether type checking is enabled or not\n */\n setTypeCheck(enabled) {\n const options = {\n noSemanticValidation: !this.state.alive || !enabled, // toggle the type checking\n noSyntaxValidation: !this.state.alive // always check the syntax\n };\n this.monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions(options);\n }\n\n /**\n * @param {string} [currentScriptName] The name of the current script\n */\n setEditorTypings(currentScriptName = '') {\n const isGlobalScript = isIdOfGlobalScript(currentScriptName);\n // The filename of the declarations this script can see if it is a global script\n const partialDeclarationsPath = `${currentScriptName}.d.ts`;\n const wantedTypings = [];\n for (const path of Object.keys(this.typings)) {\n // global scripts don't get to see all other global scripts\n // but only a part of them\n if (isGlobalScript) {\n if (path === 'global.d.ts') {\n continue;\n }\n if (path.startsWith('script.js.global') && path !== partialDeclarationsPath) {\n continue;\n }\n }\n wantedTypings.push({\n filePath: path,\n content: this.typings[path],\n });\n }\n\n // TODO BF: check https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-semantic-tokens-provider-example\n // to support 0.21.0\n\n if (this.monaco && this.monaco.languages.typescript.typescriptDefaults.setExtraLibs) {\n this.monaco.languages.typescript.typescriptDefaults.setExtraLibs(wantedTypings);\n } else if (this.monaco && this.monaco.languages.typescript.typescriptDefaults.addExtraLib) {\n const existingLibs = this.monaco.languages.typescript.typescriptDefaults.getExtraLibs();\n wantedTypings.forEach(lib => {\n if (!existingLibs[lib.filePath]) {\n this.monaco.languages.typescript.typescriptDefaults.addExtraLib(lib, lib.filePath);\n }\n });\n }\n }\n\n /**\n * Inserts some text into the given editor\n * @param {string} text The text to add\n */\n insertTextIntoEditor(text) {\n const selection = this.editor.getSelection();\n const range = new this.monaco.Range(\n selection.startLineNumber,\n selection.startColumn,\n selection.endLineNumber,\n selection.endColumn,\n );\n this.editor.executeEdits('', [{ range: range, text: text, forceMoveMarkers: true }]);\n this.editor.focus();\n }\n\n highlightText(text) {\n let range = text && this.editor.getModel().findMatches(text);\n if (range && range.length) {\n range.forEach(r => this.editor.setSelection(r.range));\n this.editor.revealLine(range[0].range.startLineNumber);\n } else if (this.editor) {\n const row = this.editor.getPosition().lineNumber;\n const col = this.editor.getPosition().column;\n this.editor.setSelection(new this.monaco.Range(row, col, row, col));\n }\n }\n\n showDecorators() {\n this.decorations = this.decorations || [];\n const decorations = [];\n if (this.location) {\n decorations.push({\n range: new this.monaco.Range(this.location.lineNumber + 1, this.location.columnNumber + 1, this.location.lineNumber + 1, 1000),\n options: {\n isWholeLine: false,\n className: this.props.isDark ? 'monacoCurrentLineDark' : 'monacoCurrentLine',\n }\n });\n decorations.push({\n range: new this.monaco.Range(this.location.lineNumber + 1, 0, this.location.lineNumber + 1, 0),\n options: {\n isWholeLine: true,\n className: this.props.isDark ? 'monacoCurrentFullLineDark' : 'monacoCurrentFullLine',\n }\n });\n }\n\n if (this.breakpoints) {\n this.breakpoints.forEach(bp => {\n decorations.push({\n range: new this.monaco.Range(bp.location.lineNumber + 1, 0, bp.location.lineNumber + 1, 100),\n options: {\n isWholeLine: true,\n glyphMarginClassName: this.props.isDark ? 'monacoBreakPointDark' : 'monacoBreakPoint',\n }\n });\n });\n }\n this.editor && (this.decorations =\n this.editor.deltaDecorations(this.decorations, decorations));\n }\n\n initNewScript(name, code) {\n this.setState({name});\n this.originalCode = code || '';\n this.editor && this.editor.setValue(code);\n this.highlightText(this.lastSearch);\n this.showDecorators();\n //this.setEditorLanguage();\n // Update the typings because global scripts need different typings than normal scripts\n // and each global script has different typings\n this.setEditorTypings(name);\n }\n\n scrollToLineIfNeeded(lineNumber) {\n if (this.editor) {\n const ranges = this.editor.getVisibleRanges();\n if (!ranges || !ranges[0] || ranges[0].startLineNumber > lineNumber || lineNumber > ranges[0].endLineNumber) {\n this.editor.revealLineInCenter(lineNumber);\n }\n }\n }\n\n UNSAFE_componentWillReceiveProps(nextProps) {\n const options = {};\n if (this.state.name !== nextProps.name) {\n // A different script was selected\n this.initNewScript(nextProps.name, nextProps.code);\n }\n\n // if some running instance will be found and\n if (JSON.stringify(nextProps.runningInstances) !== this.runningInstancesStr) {\n this.runningInstancesStr = JSON.stringify(nextProps.runningInstances);\n if (!this.state.typingsLoaded) {\n this.loadTypings(nextProps.runningInstances);\n }\n }\n\n // if the code not yet changed, update the new code\n if (!nextProps.changed && (nextProps.code !== this.originalCode || nextProps.code !== this.editor.getValue())) {\n this.originalCode = nextProps.code;\n this.editor.setValue(this.originalCode);\n this.showDecorators();\n this.location && this.scrollToLineIfNeeded(this.location.lineNumber + 1);\n }\n\n if (nextProps.searchText !== this.lastSearch) {\n this.lastSearch = nextProps.searchText;\n this.highlightText(this.lastSearch);\n }\n\n if (JSON.stringify(nextProps.location) !== JSON.stringify(this.location) &&\n JSON.stringify(nextProps.breakpoints) !== JSON.stringify(this.breakpoints)\n ) {\n this.location = nextProps.location;\n this.breakpoints = nextProps.breakpoints;\n this.showDecorators();\n this.editor && this.location && this.scrollToLineIfNeeded(this.location.lineNumber + 1);\n //this.editor && this.location && this.editor.setPosition(this.location.lineNumber + 1, this.location.columnNumber + 1);\n } else if (JSON.stringify(nextProps.breakpoints) !== JSON.stringify(this.breakpoints)) {\n this.breakpoints = nextProps.breakpoints;\n this.showDecorators();\n } else if (JSON.stringify(nextProps.location) !== JSON.stringify(this.location)) {\n this.location = nextProps.location;\n this.showDecorators();\n this.editor && this.location && this.scrollToLineIfNeeded(this.location.lineNumber + 1);\n //this.editor && this.location && this.editor.setPosition(this.location.lineNumber + 1, this.location.columnNumber + 1);\n }\n\n if (this.state.language !== (nextProps.language || 'javascript')) {\n this.setState({language: nextProps.language || 'javascript'});\n options.language = nextProps.language || 'javascript';\n } else if (this.state.readOnly !== (nextProps.readOnly || false)) {\n this.setState({readOnly: nextProps.readOnly || false});\n options.readOnly = nextProps.readOnly;\n } else if (this.state.isDark !== (nextProps.isDark || false)) {\n this.setState({isDark: nextProps.isDark || false});\n options.isDark = nextProps.isDark;\n }\n\n this.setEditorOptions(options);\n\n if (this.insert !== nextProps.insert) {\n this.insert = nextProps.insert;\n if (this.insert) {\n console.log('Insert text' + this.insert);\n setTimeout(insert => {\n this.insertTextIntoEditor(insert);\n setTimeout(() => this.props.onInserted && this.props.onInserted(), 100);\n }, 100, this.insert);\n }\n }\n }\n\n onChange(newValue, e) {\n if (!this.props.readOnly) {\n this.props.onChange && this.props.onChange(this.editor.getValue());\n }\n }\n\n render() {\n if (!this.monaco || !this.props.runningInstances) {\n setTimeout(() => {\n this.monaco = window.monaco;\n this.forceUpdate()\n }, 200);\n return null;\n }\n\n return
this.monacoDiv = el} style={{width: '100%', height: '100%', overflow: 'hidden', position: 'relative'}}>\n {!this.state.check && }\n
;\n }\n}\n\nScriptEditor.propTypes = {\n adapterName: PropTypes.string.isRequired,\n socket: PropTypes.object,\n runningInstances: PropTypes.object,\n name: PropTypes.string,\n onChange: PropTypes.func,\n onForceSave: PropTypes.func,\n onInserted: PropTypes.func,\n isDark: PropTypes.bool,\n readOnly: PropTypes.bool,\n code: PropTypes.string,\n language: PropTypes.string,\n onRegisterSelect: PropTypes.func,\n searchText: PropTypes.string,\n checkJs: PropTypes.bool,\n changed: PropTypes.bool,\n\n breakpoints: PropTypes.array,\n location: PropTypes.object,\n onToggleBreakpoint: PropTypes.func,\n};\n\nexport default ScriptEditor;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport withStyles from '@mui/styles/withStyles';\n\nimport Button from '@mui/material/Button';\nimport DialogTitle from '@mui/material/DialogTitle';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogActions from '@mui/material/DialogActions';\nimport Dialog from '@mui/material/Dialog';\nimport Popper from '@mui/material/Popper';\nimport Fade from '@mui/material/Fade';\nimport Paper from '@mui/material/Paper';\n\nimport IconCopy from '@mui/icons-material/FileCopy';\nimport IconCancel from '@mui/icons-material/Cancel';\n\nimport { I18n, Utils } from '@iobroker/adapter-react-v5';\n\nconst styles = theme => ({\n textArea: {\n width: '100%',\n height: '100%',\n overflow: 'auto',\n },\n textAreaLight: {\n background: 'lightgray',\n },\n dialog: {\n height: '95%',\n },\n typography: {\n padding: theme.spacing(2),\n },\n overflowY: {\n overflowY: 'hidden',\n },\n});\n\nclass DialogExport extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n anchorEl: null,\n popper: '',\n };\n }\n handleCancel = () => {\n this.props.onClose();\n };\n\n onCopy(event) {\n Utils.copyToClipboard(this.props.text);\n const anchorEl = event.currentTarget;\n\n setTimeout(() => {\n this.setState({ popper: I18n.t('Copied'), anchorEl });\n setTimeout(() => this.setState({ popper: '', anchorEl: null }), 1000);\n }, 50);\n }\n\n render() {\n const classes = this.props.classes;\n\n return false}\n maxWidth=\"lg\"\n classes={{ paper: classes.dialog }}\n fullWidth\n open={this.props.open}\n aria-labelledby=\"export-dialog-title\"\n >\n {I18n.t('Export selected blocks')}\n \n {this.props.text}\n \n \n \n \n\n \n {({ TransitionProps }) => (\n \n \n

{this.state.popper}

\n
\n
\n )}\n \n