From 56a591d5b2a7d45400a44df2c77b7759b1756e33 Mon Sep 17 00:00:00 2001 From: Matthias Kleine Date: Fri, 15 Dec 2023 09:27:49 +0100 Subject: [PATCH] chore: release v7.5.0 * (klein0r) Day of week as number always returns 1 (monday) to 7 (sunday) * (klein0r) Fixed layout of script type selection * (klein0r) Fixed sendto with multiple instances (for callback / timeout handling) --- CHANGELOG_OLD.md | 3 ++ README.md | 5 +-- admin/asset-manifest.json | 10 +++--- admin/google-blockly/own/blocks_convert.js | 36 +++++++++---------- admin/google-blockly/own/blocks_time.js | 4 +-- admin/google-blockly/own/blocks_trigger.js | 24 ++++++------- admin/google-blockly/own/blocks_words.js | 4 +-- admin/static/js/864.12f7e04a.chunk.js | 2 ++ admin/static/js/864.12f7e04a.chunk.js.map | 1 + admin/static/js/864.d7c7a956.chunk.js | 2 -- admin/static/js/864.d7c7a956.chunk.js.map | 1 - .../js/{main.01380d13.js => main.e35235fb.js} | 4 +-- ...n.01380d13.js.map => main.e35235fb.js.map} | 2 +- admin/tab.html | 2 +- io-package.json | 28 +++++++-------- package.json | 2 +- src/package.json | 2 +- 17 files changed, 66 insertions(+), 66 deletions(-) create mode 100644 admin/static/js/864.12f7e04a.chunk.js create mode 100644 admin/static/js/864.12f7e04a.chunk.js.map delete mode 100644 admin/static/js/864.d7c7a956.chunk.js delete mode 100644 admin/static/js/864.d7c7a956.chunk.js.map rename admin/static/js/{main.01380d13.js => main.e35235fb.js} (98%) rename admin/static/js/{main.01380d13.js.map => main.e35235fb.js.map} (99%) diff --git a/CHANGELOG_OLD.md b/CHANGELOG_OLD.md index 0136822bb..f96bebd7e 100644 --- a/CHANGELOG_OLD.md +++ b/CHANGELOG_OLD.md @@ -1,4 +1,7 @@ The newest change log is in README.md +## 7.1.5 (2023-10-09) +* (bluefox) Added play-ground for ChatGPT (API key required) + ## 7.1.4 (2023-08-09) * (bluefox) Added version to the side menu * (klein0r) Added blockly blocks for `getHistory` and calculated times diff --git a/README.md b/README.md index 9032936e5..995f1724d 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.5.0 (2023-12-15) * (klein0r) Day of week as number always returns 1 (monday) to 7 (sunday) * (klein0r) Fixed layout of script type selection @@ -79,9 +79,6 @@ NodeJS 16.x is required ### 7.1.6 (2023-10-24) * (bluefox) Fixed pushover rules block -### 7.1.5 (2023-10-09) -* (bluefox) Added play-ground for ChatGPT (API key required) - ## License The MIT License (MIT) diff --git a/admin/asset-manifest.json b/admin/asset-manifest.json index 9a1770a29..3f83348e4 100644 --- a/admin/asset-manifest.json +++ b/admin/asset-manifest.json @@ -1,8 +1,8 @@ { "files": { - "main.js": "/static/js/main.01380d13.js", + "main.js": "/static/js/main.e35235fb.js", "static/css/864.42bfc5f3.chunk.css": "/static/css/864.42bfc5f3.chunk.css", - "static/js/864.d7c7a956.chunk.js": "/static/js/864.d7c7a956.chunk.js", + "static/js/864.12f7e04a.chunk.js": "/static/js/864.12f7e04a.chunk.js", "static/js/90.356ce273.chunk.js": "/static/js/90.356ce273.chunk.js", "static/js/750.cbf4f684.chunk.js": "/static/js/750.cbf4f684.chunk.js", "static/js/723.6006b5e8.chunk.js": "/static/js/723.6006b5e8.chunk.js", @@ -157,9 +157,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.01380d13.js.map": "/static/js/main.01380d13.js.map", + "main.e35235fb.js.map": "/static/js/main.e35235fb.js.map", "864.42bfc5f3.chunk.css.map": "/static/css/864.42bfc5f3.chunk.css.map", - "864.d7c7a956.chunk.js.map": "/static/js/864.d7c7a956.chunk.js.map", + "864.12f7e04a.chunk.js.map": "/static/js/864.12f7e04a.chunk.js.map", "90.356ce273.chunk.js.map": "/static/js/90.356ce273.chunk.js.map", "750.cbf4f684.chunk.js.map": "/static/js/750.cbf4f684.chunk.js.map", "723.6006b5e8.chunk.js.map": "/static/js/723.6006b5e8.chunk.js.map", @@ -189,6 +189,6 @@ "360.59624b85.chunk.js.map": "/static/js/360.59624b85.chunk.js.map" }, "entrypoints": [ - "static/js/main.01380d13.js" + "static/js/main.e35235fb.js" ] } \ No newline at end of file diff --git a/admin/google-blockly/own/blocks_convert.js b/admin/google-blockly/own/blocks_convert.js index b8e122821..e77569774 100644 --- a/admin/google-blockly/own/blocks_convert.js +++ b/admin/google-blockly/own/blocks_convert.js @@ -259,41 +259,41 @@ Blockly.JavaScript.convert_from_date = function (block) { let code; if (option === 'object') { - code = 'getDateObject(' + value + ').getTime()'; + code = `getDateObject(${value}).getTime()`; } else if (option === 'ms') { - code = 'getDateObject(' + value + ').getMilliseconds()'; + code = `getDateObject(${value}).getMilliseconds()`; } else if (option === 's') { - code = 'getDateObject(' + value + ').getSeconds()'; + code = `getDateObject(${value}).getSeconds()`; } else if (option === 'sid') { - code = '(function () { const v = getDateObject(' + value + '); return v.getHours() * 3600 + v.getMinutes() * 60 + v.getSeconds(); })()'; + code = `(() => { const v = getDateObject(${value}); return v.getHours() * 3600 + v.getMinutes() * 60 + v.getSeconds(); })()`; } else if (option === 'm') { - code = '(getDateObject(' + value + ').getMinutes())'; + code = `getDateObject(${value}).getMinutes())`; } else if (option === 'mid') { - code = '(function () { const v = getDateObject(' + value + '); return v.getHours() * 60 + v.getMinutes(); })()'; + code = `(() => { const v = getDateObject(${value}); return v.getHours() * 60 + v.getMinutes(); })()`; } else if (option === 'h') { - code = 'getDateObject(' + value + ').getHours()'; + code = `getDateObject(${value}).getHours()`; } else if (option === 'd') { - code = 'getDateObject(' + value + ').getDate()'; + code = `getDateObject(${value}).getDate()`; } else if (option === 'M') { - code = '(getDateObject(' + value + ').getMonth() + 1)'; + code = `(getDateObject(${value}).getMonth() + 1)`; } else if (option === 'Mt') { - code = 'formatDate(getDateObject(' + value + '), "OO", "' + lang + '")'; + code = `formatDate(getDateObject(${value}), 'OO', '${lang}')`; } else if (option === 'Mts') { - code = 'formatDate(getDateObject(' + value + '), "O", "' + lang + '")'; + code = `formatDate(getDateObject(${value}), 'O', '${lang}')`; } else if (option === 'y') { - code = 'getDateObject(' + value + ').getYear()'; + code = `getDateObject(${value}).getYear()`; } else if (option === 'fy') { - code = 'getDateObject(' + value + ').getFullYear()'; + code = `getDateObject(${value}).getFullYear()`; } else if (option === 'wdt') { - code = 'formatDate(getDateObject(' + value + '), "WW", "' + lang + '")'; + code = `formatDate(getDateObject(${value}), 'WW', '${lang}')`; } else if (option === 'wdts') { - code = 'formatDate(getDateObject(' + value + '), "W", "' + lang + '")'; + code = `formatDate(getDateObject(${value}), 'W', '${lang}')`; } else if (option === 'wd') { - code = 'getDateObject(' + value + ').getDay()'; + code = `(() => { const d = getDateObject(${value}).getDay(); return d === 0 ? 7 : d; })()`; } else if (option === 'custom') { - code = 'formatDate(getDateObject(' + value + '), "' + format + '")'; + code = `formatDate(getDateObject(${value}), '${format}')`; } else { - code = 'formatDate(getDateObject(' + value + '), "' + option + '")'; + code = `formatDate(getDateObject(${value}), '${option}')`; } return [code, Blockly.JavaScript.ORDER_ATOMIC]; diff --git a/admin/google-blockly/own/blocks_time.js b/admin/google-blockly/own/blocks_time.js index 39f54e065..817d70060 100644 --- a/admin/google-blockly/own/blocks_time.js +++ b/admin/google-blockly/own/blocks_time.js @@ -406,7 +406,7 @@ Blockly.JavaScript['time_get'] = function(block) { } else if (option === 's') { code = '(new Date().getSeconds())'; } else if (option === 'sid') { - code = '(new Date().getHours() * 3600 + new Date().getMinutes() * 60 + new Date().getSeconds())'; + code = '(() => { const v = new Date(); return v.getHours() * 3600 + v.getMinutes() * 60 + v.getSeconds(); })()'; } else if (option === 'm') { code = '(new Date().getMinutes())'; } else if (option === 'mid') { @@ -430,7 +430,7 @@ Blockly.JavaScript['time_get'] = function(block) { } else if (option === 'wdts') { code = `formatDate(new Date(), 'W', '${lang}')`; } else if (option === 'wd') { - code = '(new Date().getDay() === 0 ? 7 : new Date().getDay())'; + code = '(() => { const d = new Date().getDay(); return d === 0 ? 7 : d; })()'; } else if (option === 'custom') { code = `formatDate(new Date(), '${format}')`; } else { diff --git a/admin/google-blockly/own/blocks_trigger.js b/admin/google-blockly/own/blocks_trigger.js index 1e56a98f4..aa234d66b 100644 --- a/admin/google-blockly/own/blocks_trigger.js +++ b/admin/google-blockly/own/blocks_trigger.js @@ -388,13 +388,6 @@ Blockly.Blocks['on_source'] = { this.appendDummyInput('ATTR') .appendField(new Blockly.FieldDropdown([ - [Blockly.Translate('on_source_id'), 'id'], - [Blockly.Translate('on_source_name'), 'common.name'], - [Blockly.Translate('on_source_desc'), 'common.desc'], - [Blockly.Translate('on_source_channel_id'), 'channelId'], - [Blockly.Translate('on_source_channel_name'), 'channelName'], - [Blockly.Translate('on_source_device_id'), 'deviceId'], - [Blockly.Translate('on_source_device_name'), 'deviceName'], [Blockly.Translate('on_source_state_val'), 'state.val'], [Blockly.Translate('on_source_state_ts'), 'state.ts'], [Blockly.Translate('on_source_state_q'), 'state.q'], @@ -403,6 +396,13 @@ Blockly.Blocks['on_source'] = { [Blockly.Translate('on_source_state_lc'), 'state.lc'], [Blockly.Translate('on_source_state_c'), 'state.c'], [Blockly.Translate('on_source_state_user'), 'state.user'], + [Blockly.Translate('on_source_id'), 'id'], + [Blockly.Translate('on_source_name'), 'common.name'], + [Blockly.Translate('on_source_desc'), 'common.desc'], + [Blockly.Translate('on_source_channel_id'), 'channelId'], + [Blockly.Translate('on_source_channel_name'), 'channelName'], + [Blockly.Translate('on_source_device_id'), 'deviceId'], + [Blockly.Translate('on_source_device_name'), 'deviceName'], [Blockly.Translate('on_source_oldstate_val'), 'oldState.val'], [Blockly.Translate('on_source_oldstate_ts'), 'oldState.ts'], [Blockly.Translate('on_source_oldstate_q'), 'oldState.q'], @@ -455,9 +455,9 @@ Blockly.JavaScript['on_source'] = function(block) { const parts = attr.split('.'); if (parts.length > 1) { - attr = '(obj.' + parts[0] + ' ? obj.' + attr + ' : "")'; + attr = `(obj.${parts[0]} ? obj.${attr} : '')`; } else { - attr = 'obj.' + attr; + attr = `obj.${attr}`; } return [attr, Blockly.JavaScript.ORDER_ATOMIC]; @@ -747,7 +747,7 @@ Blockly.Blocks['schedule_clear'] = { Blockly.JavaScript['schedule_clear'] = function(block) { const name = Blockly.JavaScript.variableDB_.safeName_(block.getFieldValue('NAME')); - return `(function () { if (${name}) { clearSchedule(${name}); ${name} = null; }})();\n`; + return `(() => { if (${name}) { clearSchedule(${name}); ${name} = null; }})();\n`; }; // --- CRON dialog -------------------------------------------------- @@ -1004,7 +1004,7 @@ Blockly.Trigger.blocks['onFile'] = '' + ' ' + ' ' - + ' Meta Object ID' + + ' 0_userdata.0' + ' ' + ' ' + ' ' @@ -1072,7 +1072,7 @@ Blockly.Trigger.blocks['offFile'] = '' + ' ' + ' ' - + ' Meta Object ID' + + ' 0_userdata.0' + ' ' + ' ' + ' ' diff --git a/admin/google-blockly/own/blocks_words.js b/admin/google-blockly/own/blocks_words.js index 09a7928cb..5cd2383cb 100644 --- a/admin/google-blockly/own/blocks_words.js +++ b/admin/google-blockly/own/blocks_words.js @@ -482,13 +482,13 @@ Blockly.Words['logic_switch_control_case_tooltip'] = {'en': 'This is a variabl // --- trigger onFile -------------------------------------------------- Blockly.Words['onFile'] = {'en': 'Event: file update', 'de': 'Ereignis: Datei geändert', 'ru': 'Событие: файл обновлён', 'pt': 'Evento: se arquivo', 'nl': 'Gebeurtenis: als bestand', 'fr': 'Evénement : si fichier', 'it': 'Evento: se file', 'es': 'Evento: si el archivo', 'pl': 'Zdarzenie: jeśli plik', 'zh-cn': '事件:如果文件', 'uk': 'Подія: оновлення файлу'}; -Blockly.Words['onFile_file'] = {'en': 'File pattern', 'de': 'Dateimuster', 'ru': 'Шаблон файла', 'pt': 'Padrão de arquivo', 'nl': 'Bestandspatroon', 'fr': 'Modèle de fichier', 'it': 'Modello di file', 'es': 'patrón de archivo', 'pl': 'Wzór pliku', 'zh-cn': '文件模式', 'uk': 'Шаблон файлу'}; +Blockly.Words['onFile_file'] = {'en': 'File pattern', 'de': 'Dateischema', 'ru': 'Шаблон файла', 'pt': 'Padrão de arquivo', 'nl': 'Bestandspatroon', 'fr': 'Modèle de fichier', 'it': 'Modello di file', 'es': 'patrón de archivo', 'pl': 'Wzór pliku', 'zh-cn': '文件模式', 'uk': 'Шаблон файлу'}; Blockly.Words['onFile_withFile'] = {'en': 'With file data', 'de': 'Mit Dateidaten', 'ru': 'С данными файла', 'pt': 'Com dados de arquivo', 'nl': 'Met bestandsgegevens', 'fr': 'Avec les données du fichier', 'it': 'Con dati di file', 'es': 'Con datos de archivo', 'pl': 'Z danymi pliku', 'zh-cn': '有文件数据', 'uk': 'З даними файлу'}; Blockly.Words['onFile_tooltip'] = {'en': 'If some file changed or updated', 'de': 'Wenn sich eine Datei geändert oder aktualisiert hat', 'ru': 'Если какой-то файл изменился или обновился', 'pt': 'Se algum arquivo mudou ou atualizou', 'nl': 'Als een bestand is gewijzigd of bijgewerkt', 'fr': 'Si un fichier a été modifié ou mis à jour', 'it': 'Se qualche file è cambiato o aggiornato', 'es': 'Si algún archivo cambió o actualizó', 'pl': 'Jeśli jakiś plik został zmieniony lub zaktualizowany', 'zh-cn': '如果某些文件更改或更新', 'uk': 'Якщо якийсь файл змінено або оновлено'}; Blockly.Words['onFile_help'] = {'en': 'onFile', 'de': 'onFile', 'ru': 'onFile', 'pt': 'onFile', 'nl': 'onFile', 'fr': 'onFile', 'it': 'onFile', 'es': 'onFile', 'pl': 'onFile', 'zh-cn': 'onFile', 'uk': 'onFile'}; // --- trigger offFile -------------------------------------------------- -Blockly.Words['offFile'] = {'en': 'Cancel file event', 'de': 'Dateiereignis abbrechen', 'ru': 'Отменить событие файла', 'pt': 'Cancelar evento de arquivo', 'nl': 'Bestandsgebeurtenis annuleren', 'fr': 'Annuler l\'événement de fichier', 'it': 'Annulla evento file', 'es': 'Cancelar evento de archivo', 'pl': 'Anuluj zdarzenie pliku', 'zh-cn': '取消文件事件', 'uk': 'Скасувати подію файлу'}; +Blockly.Words['offFile'] = {'en': 'Cancel file event', 'de': 'Dateiereignis entfernen', 'ru': 'Отменить событие файла', 'pt': 'Cancelar evento de arquivo', 'nl': 'Bestandsgebeurtenis annuleren', 'fr': 'Annuler l\'événement de fichier', 'it': 'Annulla evento file', 'es': 'Cancelar evento de archivo', 'pl': 'Anuluj zdarzenie pliku', 'zh-cn': '取消文件事件', 'uk': 'Скасувати подію файлу'}; Blockly.Words['offFile_tooltip'] = {'en': 'Cancel subscription on file change', 'de': 'Abonnement bei Dateiänderung kündigen', 'ru': 'Отменить подписку на изменение файла', 'pt': 'Cancelar assinatura na alteração do arquivo', 'nl': 'Abonnement opzeggen bij bestandswijziging', 'fr': 'Annuler l\'abonnement en cas de changement de fichier', 'it': 'Annulla l\'abbonamento in caso di modifica del file', 'es': 'Cancelar suscripción en cambio de archivo', 'pl': 'Anuluj subskrypcję po zmianie pliku', 'zh-cn': '取消订阅文件更改', 'uk': 'Скасувати підписку на зміну файлу'}; Blockly.Words['offFile_help'] = {'en': 'offFile', 'de': 'offFile', 'ru': 'offFile', 'pt': 'offFile', 'nl': 'offFile', 'fr': 'offFile', 'it': 'offFile', 'es': 'offFile', 'pl': 'offFile', 'zh-cn': 'offFile', 'uk': 'offFile'}; diff --git a/admin/static/js/864.12f7e04a.chunk.js b/admin/static/js/864.12f7e04a.chunk.js new file mode 100644 index 000000000..a9b5d29fb --- /dev/null +++ b/admin/static/js/864.12f7e04a.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkjs=self.webpackChunkjs||[]).push([[864],{63541:(e,t,s)=>{s.r(t);var a=s(4819),i=s.n(a),o=s(1250),n=s(11640),r=s(10937),l=s(58503),c=s(15854),d=s.n(c),u=s(55377),p=s(52721),h=s.n(p),m=(s(64630),s(43488)),g=s(10154),b=s(20889),y=s(75606),v=s(16856),f=s(88654),S=s(94721),x=s(43236),k=s(52411),w=s(57064),C=s(47055),j=s(49900),I=s(90977),T=s(52744),D=s(82626),A=s(4110),N=s(98422),E=s(1067),O=s(60090),_=s(46401),R=s(56355),M=s(80007),z=s(51637),P=s(82460);const F="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMS4xYyqcSwAAB8xJREFUaEPtmflzVFUWx+ePsYQk3e/1ls7rTu/pdHrvFivOsAlBE2IQUAajjiw6iqhYoowgg1gzLKXEsSQ6YhDDMk4CcTQJhWAgCdmgZlyKfZOZX+bz+nY63Z2gI4F5UtVV3wrd75177vmec89ym1+d70vemUic74vxFwJ8ukMR5y8E+OdORJrGHR0BFQUCWqNAQGsUCGiNAgGtUSCgNQoEtEaBgNYoENAaBQJao0BAaxQIaI0CAa1x6wmc601cOgnilwcSgA98Fc+zxTJPLvQjhnD822Ox3o7wsbbQSHf0PA+HkpcGcuQnxG2JwJKH7fdPt86ZYZ07s2zmr61LF9r3Nwcu9ufIpHkOJI63R9avcdfPU35TbY1HLdGw+d6kpWZW2cpGR8sOv8rkR2ncegJ4NBgw6yVJkiXZIBcVS+GQuXlrhYiDwLne+NWhBJ7eusE7e7q1wmc0mWW9LJfogaSTJINRttsM98TNyx8r79obvFEMwW0hEA6aZQNGSEaTXKKTcKpKYNSRqu8HEsOdkU2vuKsqTVOLJdhiMcImswEYTUCWDOpaS6nc8KDS2Ro8e0L9Qfdc7l7gthCIhCwZg3R6ORaxfLDNn3Wg4xdPJra/4VOtL9JjrrCbJZKsxoG4ibW8whE6nbRkga2nPaz+KD0uCBoQ4Dwc/SxcO1e5awrWC0Nl5EtLDT6vqcJnstmMfE1pgJUEJUupgSw6eyJ2IXcvoAGBa8PJN9d6K/0mnZS2HmD0Qw8of3jBvWGN53dLyhNRC1lBQHiF5G8X2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ih9JiTL8JiRPBOIHNk/YKuQOJc0kexNYksfNzzqs4Ijd7deHzCaAyzQBb8HOIiURAWe2b7g4UvjdzNEyW5nbh9AaUAf15mJlArlDD8yiCRBsghiJaeHbRmdfIWWgLNLG+1kKDaNkQQ0RdA+lFgeOMKA47EssQzExnb/zVrXcYIxufnlRgzXLuO7GPkaz2yCPpDf2C2Rb4AlA/I4aLw/oCVzAs3zKs61FPQ8nbSOcwAbGxKfOH4w6yQfx8ff6Jpmgyo3Do45fKMB9LZDj9OBl8kyeHl7hkhDj+oscKs3D715sh4Q0pEUJSzEoW85GDX+cwRKA2RzcOuK5iNDGV/pRHMlF0vtfitqmTj3Rs/Z3QeCQPSh9+05uArRiMcd6yJcLsVapN0fC4mIRSisJFBW4jbqJLEl6eMA4KWBmYRzIbypEfS+YmrlGW5ycEzrdGKcdBbCJMcm1gYxnLACkSchRPRIOLkoFbjRQpg0C7cIHXKwvRNCVsST2HfZ11pI4rvciUWIYVYZm7tAYyaLjEeRFGnJGgEfaPd3+OFkIIYX9QHgP2TOLzmSH794AAAAAElFTkSuQmCC";var W=s(95087),Z=s(65661),V=s(4899),J=s(77386),q=s(5574),H=s(93006),G=s(45363),Y=s(84701),K=s(62861),Q=s(86711),X=s(872),$=s(80184);class ee extends i().Component{constructor(e){super(e),this.handleCancel=()=>{this.props.onClose()},this.handleOk=()=>{this.props.onRename(this.oldId,this.state.id,this.state.name,this.state.instance),this.props.onClose()},this.handleChange=e=>{this.setState({name:e,id:this.getId(e)})},this.state={name:e.name,id:e.id,instance:e.instance||0},this.isShowInstance=!e.folder&&e.instances&&(e.instance||e.instances[0]||e.instances.length>1),this.prefix=this.getPrefix(e.id),this.oldId=e.id}getPrefix(e){const t=(e||"").split(".");return t.pop(),t.join(".")}getId(e){return e=(e||"").replace(/[\\/\][*,;'"`<>?\s]/g,"_"),this.prefix+"."+e}componentWillReceiveProps(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}))}render(){return(0,$.jsxs)(q.Z,{onClose:(e,t)=>!1,maxWidth:"md",fullWidth:!0,open:!0,"aria-labelledby":"confirmation-dialog-title",children:[(0,$.jsx)(Z.Z,{id:"confirmation-dialog-title",children:y.I18n.t("Rename")}),(0,$.jsx)(V.Z,{children:(0,$.jsxs)("form",{noValidate:!0,autoComplete:"off",children:[(0,$.jsx)(H.Z,{variant:"standard",style:{width:"100%"},id:"standard-name",autoFocus:!0,label:y.I18n.t("Name"),value:this.state.name,onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),setTimeout((()=>this.handleOk()),200))},onChange:e=>this.handleChange(e.target.value),margin:"normal"}),(0,$.jsx)(H.Z,{variant:"standard",id:"standard-name-id",style:{width:"100%"},label:y.I18n.t("ID"),value:this.state.id,disabled:!0,margin:"normal"}),this.isShowInstance&&(0,$.jsxs)(G.Z,{variant:"standard",children:[(0,$.jsx)(K.Z,{htmlFor:"instance",children:y.I18n.t("Instance")}),(0,$.jsx)(Y.Z,{variant:"standard",value:this.state.instance,onChange:e=>this.setState({instance:parseInt(e.target.value,10)}),inputProps:{name:"instance",id:"instance"},children:this.props.instances.map((e=>(0,$.jsx)(D.Z,{value:e,children:e||"0"},e)))})]})]})}),(0,$.jsxs)(J.Z,{children:[(0,$.jsx)(W.Z,{variant:"contained",onClick:this.handleOk,color:"primary",startIcon:(0,$.jsx)(X.default,{}),children:y.I18n.t("Ok")}),(0,$.jsx)(W.Z,{color:"grey",variant:"contained",onClick:this.handleCancel,startIcon:(0,$.jsx)(Q.default,{}),children:y.I18n.t("Cancel")})]})]})}}const te=ee;class se extends i().Component{constructor(e){super(e),this.handleCancel=()=>{this.props.onClose(null)},this.handleOk=()=>{this.props.onDelete(this.state.id),this.props.onClose(this.props.value)},this.state={name:e.name,id:e.id}}componentWillReceiveProps(e){e.name!==this.props.name&&this.setState({name:e.name}),e.id!==this.props.id&&this.setState({id:e.id})}render(){return(0,$.jsxs)(q.Z,{onClose:(e,t)=>!1,maxWidth:"md",open:!0,"aria-labelledby":"confirmation-dialog-title",children:[(0,$.jsx)(Z.Z,{id:"confirmation-dialog-title",children:y.I18n.t("Are you sure?")}),(0,$.jsxs)(V.Z,{children:[(0,$.jsx)(v.ZkW,{}),(0,$.jsx)("span",{style:{fontSize:14,fontWeight:"bold"},children:y.I18n.t("Delete %s",this.state.name)})]}),(0,$.jsxs)(J.Z,{children:[(0,$.jsx)(W.Z,{variant:"contained",onClick:this.handleOk,color:"primary",startIcon:(0,$.jsx)(X.default,{}),children:y.I18n.t("Ok")}),(0,$.jsx)(W.Z,{color:"grey",variant:"contained",onClick:this.handleCancel,startIcon:(0,$.jsx)(Q.default,{}),children:y.I18n.t("Cancel")})]})]})}}const ae=(0,u.Z)((e=>({})))(se);var ie=s(88588),oe=s(81374),ne=s(77234),re=s(22492),le=s(1867);const ce=s.p+"static/media/tileJS.8810e7b4835e61465c3a.png",de=s.p+"static/media/tileTS.446265dff5dc550d46a5.png",ue=s.p+"static/media/tileBlockly.42b0a9f0e66bc4e68f4b.png",pe=s.p+"static/media/tileRules.7ed5885a66686cc288b1.png";class he extends i().Component{constructor(){super(...arguments),this.handleCancel=()=>{this.props.onClose()},this.handleOk=e=>{this.props.onClose(e)}}openHtml(e){const t=y.I18n.getLanguage();e.includes("javascript.md")||"de"!==t&&"ru"!==t||(e=e.replace(/\/en\//,"/"+t+"/"));window.open(e,"_blank").focus()}getJSCard(){return(0,$.jsxs)(ie.Z,{className:this.props.classes.card,children:[(0,$.jsxs)(oe.Z,{onClick:()=>this.props.onClose&&this.props.onClose("Javascript/js"),children:[(0,$.jsx)(le.Z,{className:this.props.classes.media,image:ce,title:"JavaScript"}),(0,$.jsxs)(re.Z,{children:[(0,$.jsx)("h2",{children:"JavaScript"}),(0,$.jsx)("div",{className:this.props.classes.complexity,children:y.I18n.t("for programmers")}),(0,$.jsx)("div",{className:this.props.classes.text,children:y.I18n.t("JS description")})]})]}),(0,$.jsxs)(ne.Z,{children:[(0,$.jsx)(W.Z,{size:"small",color:"primary",variant:"contained",onClick:()=>this.props.onClose&&this.props.onClose("Javascript/js"),children:y.I18n.t("Add")}),(0,$.jsx)(W.Z,{size:"small",color:"secondary",onClick:()=>this.openHtml("https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/javascript.md"),children:y.I18n.t("Learn More")})]})]})}getTSCard(){return(0,$.jsxs)(ie.Z,{className:this.props.classes.card,children:[(0,$.jsxs)(oe.Z,{onClick:()=>this.props.onClose&&this.props.onClose("TypeScript/ts"),children:[(0,$.jsx)(le.Z,{className:this.props.classes.media,image:de,title:"TypeScript"}),(0,$.jsxs)(re.Z,{children:[(0,$.jsx)("h2",{children:"TypeScript"}),(0,$.jsx)("div",{className:this.props.classes.complexity,children:y.I18n.t("for professionals")}),(0,$.jsx)("div",{className:this.props.classes.text,children:y.I18n.t("TS description")})]})]}),(0,$.jsxs)(ne.Z,{children:[(0,$.jsx)(W.Z,{size:"small",color:"primary",variant:"contained",onClick:()=>this.props.onClose&&this.props.onClose("TypeScript/ts"),children:y.I18n.t("Add")}),(0,$.jsx)(W.Z,{size:"small",color:"secondary",onClick:()=>this.openHtml("https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/javascript.md"),children:y.I18n.t("Learn More")})]})]})}getBlocklyCard(){return(0,$.jsxs)(ie.Z,{className:this.props.classes.card,children:[(0,$.jsxs)(oe.Z,{onClick:()=>this.props.onClose&&this.props.onClose("Blockly"),children:[(0,$.jsx)(le.Z,{className:this.props.classes.media,image:ue,title:"Blockly"}),(0,$.jsxs)(re.Z,{children:[(0,$.jsx)("h2",{children:"Blockly"}),(0,$.jsx)("div",{className:this.props.classes.complexity,children:y.I18n.t("normal")}),(0,$.jsx)("div",{className:this.props.classes.text,children:y.I18n.t("Blockly description")})]})]}),(0,$.jsxs)(ne.Z,{children:[(0,$.jsx)(W.Z,{size:"small",color:"primary",variant:"contained",onClick:()=>this.props.onClose&&this.props.onClose("Blockly"),children:y.I18n.t("Add")}),(0,$.jsx)(W.Z,{size:"small",color:"secondary",onClick:()=>this.openHtml("https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/blockly.md"),children:y.I18n.t("Learn More")})]})]})}getRulesCard(){return(0,$.jsxs)(ie.Z,{className:this.props.classes.card,children:[(0,$.jsxs)(oe.Z,{onClick:()=>this.props.onClose&&this.props.onClose("Rules"),children:[(0,$.jsx)(le.Z,{className:this.props.classes.media,image:pe,title:"Rules"}),(0,$.jsxs)(re.Z,{children:[(0,$.jsx)("h2",{children:"Rules"}),(0,$.jsx)("div",{className:this.props.classes.complexity,children:y.I18n.t("easy")}),(0,$.jsx)("div",{className:this.props.classes.text,children:y.I18n.t("Rules description")})]})]}),(0,$.jsxs)(ne.Z,{children:[(0,$.jsx)(W.Z,{size:"small",color:"primary",variant:"contained",onClick:()=>this.props.onClose&&this.props.onClose("Rules"),children:y.I18n.t("Add")}),(0,$.jsx)(W.Z,{size:"small",color:"secondary",onClick:()=>this.openHtml("https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/javascript.md"),children:y.I18n.t("Learn More")})]})]})}render(){return(0,$.jsxs)(q.Z,{onClose:()=>!1,maxWidth:"lg",fullWidth:!0,open:!0,"aria-labelledby":"confirmation-dialog-title",children:[(0,$.jsx)(Z.Z,{id:"confirmation-dialog-title",children:y.I18n.t("Add new script")}),(0,$.jsxs)(V.Z,{style:{textAlign:"center"},children:[this.getRulesCard(),this.getBlocklyCard(),this.getJSCard(),this.getTSCard()]}),(0,$.jsx)(J.Z,{children:(0,$.jsx)(W.Z,{color:"grey",onClick:this.handleCancel,startIcon:(0,$.jsx)(Q.default,{}),children:y.I18n.t("Cancel")})})]})}}const me=(0,u.Z)((e=>({card:{maxWidth:345,minWidth:250,display:"inline-block",margin:"0 10px 0 10px"},media:{height:122},text:{maxWidth:218,minHeight:30},complexity:{fontWeight:"bold",fontStyle:"italic",marginBottom:e.spacing(1)}})))(he);class ge extends i().Component{constructor(e){super(e),this.handleCancel=()=>{this.props.onClose()},this.handleOk=()=>{this.props.onAdd(this.getId(this.state.name),this.state.name,this.state.instance,this.props.type),this.props.onClose()},this.handleChange=e=>{const t=this.getId(e);e?this.props.existingItems&&-1!==this.props.existingItems.indexOf(t)?this.setState({name:e,id:t,error:y.I18n.t("Duplicate name")}):this.setState({name:e,id:t,error:""}):this.setState({name:e,id:t,error:y.I18n.t("Empty name is not allowed")})},this.state={name:e.name||"Script",instance:e.instance||0,parent:e.parent,error:""},this.isShowInstance=!e.folder&&e.instances&&(e.instance||e.instances[0]||e.instances.length>1)}getId(e){return e=(e=e||this.state.name||"").replace(/[\\/\][.*,;'"`<>?\s]/g,"_").trim().replace(/\.$/,"_"),(this.state?this.state.parent:this.props.parent)+"."+e}componentWillReceiveProps(e){e.name!==this.props.name&&this.setState({name:e.name})}render(){return(0,$.jsxs)(q.Z,{onClose:(e,t)=>!1,maxWidth:"md",fullWidth:!0,open:!0,"aria-labelledby":"confirmation-dialog-title",children:[(0,$.jsx)(Z.Z,{id:"confirmation-dialog-title",children:this.props.title||y.I18n.t("Create new")}),(0,$.jsx)(V.Z,{children:(0,$.jsxs)("form",{noValidate:!0,autoComplete:"off",children:[(0,$.jsx)(H.Z,{variant:"standard",style:{width:"100%"},id:"standard-name",autoFocus:!0,error:!!this.state.error,label:y.I18n.t("Name"),value:this.state.name,helperText:this.state.error,onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),setTimeout((()=>this.handleOk()),200))},onChange:e=>this.handleChange(e.target.value),margin:"normal"}),(0,$.jsxs)(G.Z,{variant:"standard",style:{width:"100%"},children:[(0,$.jsx)(K.Z,{htmlFor:"parent",children:y.I18n.t("Folder")}),(0,$.jsx)(Y.Z,{variant:"standard",style:{width:"100%"},value:this.state.parent,onChange:e=>this.setState({parent:e.target.value}),inputProps:{name:"parent",id:"parent"},children:this.props.parents.map((e=>{const t=e.id.split(".");t.splice(0,2);const s=[];let a="script.js";return t.forEach(((e,t)=>{a+="."+e;const i=this.props.parents.find((e=>e.id===a));i?s.push(i.name):s.push(e)})),s.length||s.push(e.name),(0,$.jsx)(D.Z,{value:e.id,children:s.join(" / ")},e.id)}))})]}),(0,$.jsx)(H.Z,{variant:"standard",id:"standard-name-id",style:{width:"100%"},label:y.I18n.t("ID"),value:this.getId(),disabled:!0,margin:"normal"}),this.isShowInstance&&(0,$.jsxs)(G.Z,{variant:"standard",children:[(0,$.jsx)(K.Z,{htmlFor:"instance",children:y.I18n.t("Instance")}),(0,$.jsx)(Y.Z,{variant:"standard",value:this.state.instance,onChange:e=>this.setState({instance:parseInt(e.target.value,10)}),inputProps:{name:"instance",id:"instance"},children:this.props.instances.map((e=>(0,$.jsx)(D.Z,{value:e,children:e||"0"},"instance"+e)))})]})]})}),(0,$.jsxs)(J.Z,{children:[(0,$.jsx)(W.Z,{variant:"contained",onClick:this.handleOk,disabled:!!this.state.error,color:"primary",startIcon:(0,$.jsx)(X.default,{}),children:y.I18n.t("Ok")}),(0,$.jsx)(W.Z,{color:"grey",variant:"contained",onClick:this.handleCancel,startIcon:(0,$.jsx)(Q.default,{}),children:y.I18n.t("Cancel")})]})]})}}const be=(0,u.Z)((e=>({})))(ge);var ye=s(31701);class ve extends i().Component{constructor(e){super(e),this.handleOk=()=>{this.props.onClose&&this.props.onClose()},console.log("Error created")}render(){return(0,$.jsxs)(q.Z,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:()=>this.handleOk(),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,$.jsx)(Z.Z,{className:this.props.classes.titleBackground,classes:{root:this.props.classes.titleColor},id:"alert-dialog-title",children:this.props.title||y.I18n.t("Error")}),(0,$.jsx)(V.Z,{children:(0,$.jsx)(ye.Z,{id:"alert-dialog-description",children:this.props.text||y.I18n.t("Unknown error!")})}),(0,$.jsx)(J.Z,{children:(0,$.jsx)(W.Z,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",autoFocus:!0,startIcon:(0,$.jsx)(X.default,{}),children:y.I18n.t("Ok")})})]})}}const fe=(0,u.Z)((e=>({titleBackground:{background:e.palette.error.main},titleColor:{color:e.palette.error.contrastText,"&>h2":{color:e.palette.error.contrastText}}})))(ve);var Se=s(81153),xe=s(97808),ke=s(29823);class we extends i().Component{constructor(e){super(e),this.handleOk=()=>{if(this.state.instances.find((e=>e.id===this.state.adapterToDebug)).enabled)return this.props.socket.getObject("system.adapter."+this.state.adapterToDebug).then((e=>{e.common.enabled=!1,this.props.socket.setObject(e._id,e).then((()=>this.props.onDebug(this.state.jsInstance,this.state.adapterToDebug)))}));this.props.onDebug(this.state.jsInstance,this.state.adapterToDebug)},this.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")||""}}componentDidMount(){this.props.socket.getAdapterInstances().then((e=>{(e=e.filter((e=>{var t;return e&&!(null!==(t=e.common)&&void 0!==t&&t.onlyWWW)})).map((e=>{var t,s,a;const i=e._id.replace(/^system\.adapter\./,""),[o]=i.split(".");return{id:i,enabled:null===(t=e.common)||void 0===t?void 0:t.enabled,host:null===(s=e.common)||void 0===s?void 0:s.host,icon:null!==(a=e.common)&&void 0!==a&&a.icon?"../../adapter/".concat(o,"/").concat(e.common.icon):""}}))).sort(((e,t)=>e.id>t.id?1:e.ide.id===this.state.jsInstance));this.state.jsInstance&&a?t=a?a.host:"":(s=e.find((e=>e.id.startsWith("javascript."))),t=s?s.host:"",s=s?s.id:"");let i=this.state.adapterToDebug||"";i&&!e.find((e=>e.id===i))&&(i=""),this.setState({instances:e,jsInstance:s,adapterToDebug:i,jsInstanceHost:t})}))}renderJavascriptList(){const e=this.state.instances.filter((e=>e.id.startsWith("javascript.")));return e.length<2?null:(0,$.jsxs)(Se.ZP,{item:!0,children:[(0,$.jsx)("div",{className:this.props.classes.title,children:y.I18n.t("Host")}),(0,$.jsx)(x.Z,{component:"nav",children:e.map((e=>(0,$.jsxs)(k.ZP,{button:!0,selected:this.state.jsInstance===e.id,onClick:this.setState({jsInstance:e.id,jsInstanceHost:e.host}),children:[(0,$.jsx)(w.Z,{children:(0,$.jsx)("img",{src:e.icon,alt:e.id,className:this.props.classes.icon})}),(0,$.jsx)(j.Z,{primary:e.id})]})))})]})}renderInstances(){if(this.state.jsInstance){const e=this.state.instances.filter((e=>e.id!==this.state.jsInstance&&e.host===this.state.jsInstanceHost&&(!this.state.filter||e.id.includes(this.state.filter.toLowerCase()))));return(0,$.jsxs)(Se.ZP,{item:!0,children:[(0,$.jsx)("div",{className:this.props.classes.title,children:y.I18n.t("Instances")}),(0,$.jsx)(x.Z,{component:"nav",children:e.map((e=>(0,$.jsxs)(k.ZP,{button:!0,selected:this.state.adapterToDebug===e.id,onDoubleClick:()=>this.setState({adapterToDebug:e.id},(()=>this.handleOk())),onClick:()=>this.setState({adapterToDebug:e.id}),children:[(0,$.jsx)(w.Z,{children:(0,$.jsx)("img",{src:e.icon,alt:e.id,className:this.props.classes.icon})}),(0,$.jsx)(j.Z,{primary:e.id})]})))})]})}return(0,$.jsx)(Se.ZP,{item:!0})}render(){return(0,$.jsxs)(q.Z,{maxWidth:"md",fullWidth:!1,open:!0,onClose:(e,t)=>!1,"aria-labelledby":"confirmation-dialog-title",children:[(0,$.jsx)(Z.Z,{id:"confirmation-dialog-title",children:this.props.title||y.I18n.t("Debug instance")}),(0,$.jsx)(V.Z,{children:(0,$.jsxs)(Se.ZP,{container:!0,direction:"column",children:[(0,$.jsx)(Se.ZP,{item:!0,children:(0,$.jsx)(A.Z,{classes:{root:this.props.classes.filterWithButton},value:this.state.filter,placeholder:y.I18n.t("Filter"),onChange:e=>{this.setState({filter:e.target.value}),window.localStorage.setItem("javascript.debug.filter",e.target.value)},endAdornment:(0,$.jsx)(xe.Z,{position:"end",children:this.state.filter?(0,$.jsx)(I.Z,{size:"small","aria-label":"toggle password visibility",onClick:()=>this.setState({filter:""}),children:(0,$.jsx)(ke.default,{})}):""})})}),(0,$.jsx)(Se.ZP,{item:!0,children:(0,$.jsxs)(Se.ZP,{container:!0,children:[this.renderJavascriptList(),this.renderInstances()]})})]})}),(0,$.jsxs)(J.Z,{children:[(0,$.jsx)(W.Z,{variant:"contained",onClick:this.handleOk,disabled:!this.state.jsInstance||!this.state.adapterToDebug,color:"primary",startIcon:(0,$.jsx)(X.default,{}),children:y.I18n.t("Start")}),(0,$.jsx)(W.Z,{color:"grey",variant:"contained",onClick:()=>this.props.onClose(),startIcon:(0,$.jsx)(Q.default,{}),children:y.I18n.t("Close")})]})]})}}const Ce=(0,u.Z)((e=>({buttonIcon:{marginRight:e.spacing(1)},icon:{width:24,height:24},filter:{width:"100%"},filterWithButton:{width:"100%"},title:{fontWeight:"bold",marginTop:e.spacing(2)}})))(we),je=M.Z[400],Ie=z.Z[400],Te=P.Z[400],De="script.js",Ae=De+".common",Ne=De+".global",Ee=350,Oe={background:"#164477",color:"white"},_e={Blockly:B,"Javascript/js":F,def:F,Rules:U,"TypeScript/ts":L},Re=(e,t,s)=>(s=s||y.I18n.getLanguage(),t&&t.common&&t.common.name?"object"===typeof t.common.name?(t.common.name[s]||t.common.name.en||e.replace(/^script\.js./,"")).toString():t.common.name.toString():e.replace(/^script\.js./,"")),Me=e=>{const t=[{id:De,depth:0,index:0,parent:null,title:"root",type:"folder"}],s=Object.keys(e);for(let i=0;i1?o.join("."):null,instance:a.common.engine?parseInt(a.common.engine.split(".").pop(),10)||0:null})}let a;do{a=!1,t.forEach((e=>{if(e.parent){if(!t.find((t=>t.id===e.parent))){const s=e.parent.split(".");s.pop(),t.push({id:e.parent,title:e.parent.split(".").pop(),depth:s.length-1,type:"folder",parent:s.length>1?s.join("."):null}),a=!0}}}))}while(a);return t.sort(((e,t)=>{const s=e.id.toLowerCase(),a=t.id.toLowerCase();return"folder"===e.type&&"folder"!==t.type?-1:"folder"===t.type&&"folder"!==e.type||s>a?1:se.index=t)),t.forEach((e=>{if(e.parent){const s=t.find((t=>t.id===e.parent));s&&(e.parentIndex=s.index)}})),t},ze=e=>{const{onDrop:t}=e,[{isOver:s,isOverAny:a},i]=(0,N.L)({accept:["script"],drop:e=>s?t(e):void 0,collect:e=>({isOver:e.isOver({shallow:!0}),isOverAny:e.isOver()})});return(0,$.jsx)("div",{ref:i,className:y.Utils.clsx(s&&"js-folder-dragover",a&&"js-folder-dragging"),children:e.children})},Pe=e=>{const{name:t}=e,[{opacity:s},a]=(0,E.c)({type:"script",item:()=>({name:t}),collect:e=>({opacity:e.isDragging()?.3:1})});return(0,$.jsx)("div",{ref:a,style:{opacity:s,transform:"translate3d(0, 0, 0)"},children:e.children})};class Fe extends i().Component{constructor(e){super(e);let t=window.localStorage?window.localStorage.getItem("SideMenu.expanded"):"[]";try{t=JSON.parse(t)||[]}catch(a){t=[]}this.inputRef=new(i().createRef),this.state={listItems:Me(e.scripts||{}),expanded:t,problems:[],reorder:!1,themeName:this.props.themeName,selected:window.localStorage&&window.localStorage.getItem("SideMenu.selected")||null,creatingScript:!1,creatingFolder:!1,copingScript:"",renaming:null,deleting:null,choosingType:null,errorText:"",instances:e.instances||[],menuOpened:!1,menuAnchorEl:null,searchMode:!1,expertMode:this.props.expertMode,searchText:"",width:this.props.width||300,typeFilter:window.localStorage&&window.localStorage.getItem("SideMenu.typeFilter")||"",statusFilter:window.localStorage&&window.localStorage.getItem("SideMenu.statusFilter")||"",runningInstances:this.props.runningInstances||{},scriptsHash:e.scriptsHash,showAdapterDebug:!1};const s=this.ensureSelectedIsVisible();s&&(this.state.expanded=s),this.filterTimer=null,this.state.isAllZeroInstances=this.getIsAllZeroInstances(),this.problems=null,this.problemsTimer=null,this.onProblemUpdatedBound=this.onProblemUpdated.bind(this)}readProblems(e,t){if(t||(t=Object.keys(this.props.scripts)),t&&t.length){const s=t.shift();if(this.props.scripts[s]&&"script"===this.props.scripts[s].type&&this.props.scripts[s].common&&this.props.scripts[s].common.enabled&&!s.match(/^script\.js\.global\./)){const a=this.props.scripts[s].common.engine.split(".").pop(),i=this,o="javascript.".concat(a,".scriptProblem.").concat(s.substring(10));this.props.socket.getState(o,((s,a)=>{i.onProblemUpdated(o,a),setTimeout((()=>i.readProblems(e,t)),0)}))}else setTimeout((()=>this.readProblems(e,t)),0)}else e&&e()}componentDidMount(){this.readProblems((()=>{this.props.instances.forEach((e=>{this.props.socket.subscribeState("javascript.".concat(e,".scriptProblem.*"),this.onProblemUpdatedBound)}))}))}componentWillUnmount(){this.props.instances.forEach((e=>{this.props.socket.unsubscribeState("javascript.".concat(e,".scriptProblem.*"),this.onProblemUpdatedBound)}))}onProblemUpdated(e,t){if(!t||!e)return;e="".concat(De,".").concat(e.replace(/^javascript\.\d+\.scriptProblem\./,"")),this.problems||(this.problems=JSON.parse(JSON.stringify(this.state.problems)));let s=!1;if(t.val)-1===this.problems.indexOf(e)&&(this.problems.push(e),s=!0);else{const t=this.problems.indexOf(e);-1!==t&&(this.problems.splice(t,1),s=!0)}s&&!this.problemsTimer&&(this.problemsTimer=setTimeout((()=>{this.problemsTimer=null,this.setState({problems:this.problems}),this.problems=null}),300))}static filterListStatic(e,t,s,a,i){t=JSON.parse(JSON.stringify(t));let o=!1,n={listItems:t};if(!1!==e&&s&&a){const e=a.toLowerCase();if(t.forEach((t=>{const s=t.title.toLowerCase();t.filteredPartly=!1;let a=s.includes(e);if(!a&&i&&i[t.id]&&i[t.id].common&&i[t.id].common.source)if("Blockly"===i[t.id].common.engineType){const s=i[t.id].common.source.lastIndexOf("//");a=i[t.id].common.source.substring(0,s).toLowerCase().includes(e)}else a=i[t.id].common.source.toLowerCase().includes(e);a?t.filtered&&(t.filtered=!1,o=!0):t.filtered||(t.filtered=!0,o=!0)})),o)for(let s=t.length-1;s>=0;s--){const e=t[s];if(!e.filtered||e.filteredPartly){let s=e;do{s.parent&&t[s.parentIndex]&&(o=!0,t[s.parentIndex].filteredPartly=!0),s=s.parent&&t[s.parentIndex]?t[s.parentIndex]:null}while(s)}}}else t.forEach((e=>{(e.filtered||e.filteredPartly)&&(e.filtered=!1,e.filteredPartly=!1,o=!0)})),!1===e&&(n.searchText="",n.searchMode=!1,o=!0);return o?n:null}filterList(e,t){const s=Fe.filterListStatic(e,this.state.listItems,this.state.searchMode,this.state.searchText,this.props.scripts);s?this.setState(s,(()=>t&&t())):t&&t()}static ensureSelectedIsVisibleStatic(e,t,s){t=JSON.parse(JSON.stringify(t));let a=!1,i="object"===typeof e?e:s.find((t=>t.id===e));do{i=i&&i.parent&&s.find((e=>e.id===i.parent)),i&&-1===t.indexOf(i.id)&&(t.push(i.id),a=!0)}while(i);return a&&t}ensureSelectedIsVisible(e,t){Fe.ensureSelectedIsVisibleStatic(e||this.state.selected,t||this.state.expanded,this.state.listItems)}static getDerivedStateFromProps(e,t){const s={};let a=!1;if(t.expertMode!==e.expertMode&&(a=!0,s.expertMode=e.expertMode),t.scriptsHash!==e.scriptsHash&&e.scripts){const i=Me(e.scripts||{});if(s.listItems=i,t.searchText){const a=Fe.filterListStatic(!0,i,t.searchMode,t.searchText,e.scripts);a&&Object.assign(s,a)}const o=Fe.getIsAllZeroInstancesStatic(i,e.instances||[]),n=Fe.ensureSelectedIsVisibleStatic(t.selected,t.expanded,t.listItems);s.isAllZeroInstances=o,n&&(s.expanded=n),a=!0}if(t.width!==e.width&&(a=!0,s.width=e.width),t.themeName!==e.themeName&&(a=!0,s.themeName=e.themeName),e.selectId&&t.selected!==e.selectId){const i=t.listItems.find((t=>t.id===e.selectId));if(!t.reorder&&i){const e=Fe.ensureSelectedIsVisibleStatic(i,t.expanded,t.listItems);s.selected=i.id,e&&(s.expanded=e),a=!0,window.localStorage&&window.localStorage.setItem("SideMenu.selected",i.id)}}return a?s:null}static getIsAllZeroInstancesStatic(e,t){let s=!t[0]&&t.length<=1;return s&&e.forEach((e=>{"folder"!==e.type&&0!==e.instance&&(s=!1)})),s}getIsAllZeroInstances(e,t){return e=e||this.state.listItems,t=t||this.state.instances,Fe.getIsAllZeroInstancesStatic(e||this.state.listItems,t||this.state.instances)}saveExpanded(e){window.localStorage.setItem("SideMenu.expanded",JSON.stringify(e||this.state.expanded))}showError(e){this.setState({errorText:e})}onToggle(e,t){if(t&&t.stopPropagation(),e===De)return;const s=[...this.state.expanded],a={expanded:s},i=s.indexOf(e);-1!==i?(s.splice(i,1),this.state.selected&&this.state.selected.startsWith("".concat(e,"."))&&(a.selected=e,window.localStorage&&window.localStorage.setItem("SideMenu.selected",e))):(s.push(e),s.sort()),this.setState({expanded:s}),this.saveExpanded(s)}renderItemButtonsOnEnd(e,t){if(this.state.reorder)return null;if("folder"!==e.type){let t=e.enabled?je:Te;return e.enabled&&this.state.problems.includes(e.id)&&(t=Ie),[(0,$.jsx)(I.Z,{className:y.Utils.clsx(this.props.classes.iconButtons,this.props.debugMode&&this.props.classes.iconButtonsDisabled),onClick:t=>{t.stopPropagation(),this.props.onEnableDisable&&this.props.onEnableDisable(e.id,!e.enabled)},title:e.enabled?y.I18n.t("Pause script"):y.I18n.t("Run script"),disabled:this.props.debugMode,style:{color:t},size:"medium",children:e.enabled?(0,$.jsx)(v.hPq,{}):(0,$.jsx)(v.Nhx,{})},"startStop"),this.state.width>Ee?(0,$.jsx)(I.Z,{className:y.Utils.clsx(this.props.debugMode&&this.props.classes.iconButtonsDisabled),title:y.I18n.t("Delete script"),disabled:e.id===Ne||e.id===Ae||this.props.debugMode,onClick:t=>this.onDelete(e,t),size:"medium",children:(0,$.jsx)(v.ZkW,{})},"delete"):null,(0,$.jsx)(I.Z,{className:y.Utils.clsx(this.props.debugMode&&this.props.classes.iconButtonsDisabled),disabled:this.props.debugMode,title:y.I18n.t("Edit script or just double click"),onClick:t=>this.onEdit(e,t),size:"medium",children:(0,$.jsx)(v.jzb,{})},"openInEdit")]}return this.state.width>Ee?e.id===De||e.id===Ae||e.id===Ne||t&&t.length?null:(0,$.jsx)(I.Z,{className:y.Utils.clsx(this.props.debugMode&&this.props.classes.iconButtonsDisabled),title:y.I18n.t("Delete folder"),disabled:e.id===Ne||e.id===Ae||this.props.debugMode,onClick:t=>this.onDelete(e,t),size:"medium",children:(0,$.jsx)(v.ZkW,{})},"delete"):void 0}onDelete(e,t){return t&&t.stopPropagation(),new Promise((t=>{"object"!==typeof e?this.setState({deleting:e}):this.setState({deleting:e.id})}))}onEdit(e,t){this.onClick(e,t),this.props.onEdit&&this.props.onEdit(e.id)}getTextStyle(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"}}onClick(e,t){if(t&&t.stopPropagation(),!this.state.reorder&&e){const t=this.ensureSelectedIsVisible(e),s={selected:e.id};t&&(s.expanded=t),this.setState(s),window.localStorage&&window.localStorage.setItem("SideMenu.selected",e.id)}}onDblClick(e,t){t&&t.stopPropagation(),this.state.reorder||("folder"===e.type?this.onToggle(e.id):this.onEdit(e))}isFilteredOut(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))}renderListItem(e,t,s){if(e.id===De&&!this.state.reorder)return null;const a=16*(this.state.reorder?e.depth:e.depth-1);let i=e.title;if(this.state.searchText){const e=i.toLowerCase().indexOf(this.state.searchText.toLowerCase());-1!==e&&(i=[(0,$.jsx)("span",{children:i.substring(0,e)},"first"),(0,$.jsx)("span",{style:{color:"orange"},children:i.substring(e,e+this.state.searchText.length)},"second"),(0,$.jsx)("span",{children:i.substring(e+this.state.searchText.length)},"third")])}this.state.isAllZeroInstances||"folder"===e.type||(i=[(0,$.jsxs)("span",{title:y.I18n.t("Instance"),className:this.props.classes.instances,children:["[",e.instance,"] "]},"instance"),(0,$.jsx)("span",{children:i},"title")]);const o=this.state.reorder&&!this.props.debugMode,n=Object.assign({marginLeft:a,cursor:"folder"===e.type&&o?"default":"inherit",width:"calc(100% - ".concat(a,"px)")},e.id!==this.state.selected||o?{}:Oe);o||(n.opacity=e.filteredPartly?.5:1),e.id===Ne&&e.id!==this.state.selected&&(n.color="#00a200");let r=e.id===De;!r&&t&&(r=this.state.expanded.includes(e.id));let l,c={};e.id===Ne?c.color="#356956":e.id===Ae&&(c.color="#4899e1"),l="folder"===e.type?y.Utils.clsx(this.props.classes.folderIcon,o?this.props.classes.folderIconReorder:this.props.classes.folderIconNoReorder):y.Utils.clsx(this.props.classes.scriptIcon,o?this.props.classes.scriptIconReorder:this.props.classes.scriptIconNoReorder);let d=null;return(s&&s.length||t&&t.length)&&(d=(0,$.jsx)("span",{className:this.props.classes.childrenCount,children:s&&s.length!==t.length?"".concat(s.length,"(").concat(t.length,")"):t.length})),(0,$.jsxs)(k.ZP,{style:n,className:y.Utils.clsx("folder"===e.type?this.props.classes.folder:this.props.classes.script,o&&"folder"===e.type&&"folder-reorder",o&&"folder"!==e.type&&"script-reorder",o&&this.props.classes.reorder,o&&"folder"!==e.type&&this.props.classes.scriptReorder,o&&"folder"===e.type&&this.props.classes.folderReorder),onClick:t=>this.onClick(e,t),onDoubleClick:t=>this.onDblClick(e,t),children:[(0,$.jsx)(w.Z,{classes:{root:this.props.classes.listItemIcon},children:"folder"===e.type?o||r?(0,$.jsx)(R.FaFolderOpen,{className:l,style:c,onClick:t=>!o&&this.onToggle(e.id,t)}):(0,$.jsx)(R.FaFolder,{className:l,style:c,onClick:t=>!o&&this.onToggle(e.id,t)}):(0,$.jsx)("img",{className:l,alt:e.type,src:_e[e.type]||_e.def})}),(0,$.jsx)(j.Z,{classes:{primary:e.id!==this.state.selected||o?void 0:this.props.classes.selected},style:this.getTextStyle(e),primary:(0,$.jsxs)("span",{children:[i,d]})}),(0,$.jsx)(C.Z,{children:this.renderItemButtonsOnEnd(e,t)})]},e.id)}onDragFinish(e,t){let s="".concat(t,".").concat(e.split(".").pop());s!==e&&(this.state.listItems.find((e=>e.id===s))&&(s+="_".concat(y.I18n.t("copy"))),this.props.onRename&&this.props.onRename(e,s))}renderOneItem(e,t){let s=(this.state.statusFilter||this.state.typeFilter)&&e.filter((e=>e.parent===t.id&&!this.isFilteredOut(e))),a=e.filter((e=>e.parent===t.id));if(this.isFilteredOut(t))return;if("folder"===t.type&&(this.state.statusFilter||this.state.typeFilter)&&!s.length)return;const i=this.state.reorder&&!this.props.debugMode,o=this.renderListItem(t,a,s),n=[];let r;return a&&(i||this.state.expanded.includes(t.id)||t.id===De)&&(r=a.map((t=>this.renderOneItem(e,t)))),i?"folder"===t.type?n.push((0,$.jsxs)(ze,{onDrop:e=>this.onDragFinish(e.name,t.id),children:[(0,$.jsx)(Pe,{name:t.id,children:o},"draggable_".concat(t.id)),r||null]},"droppable_".concat(t.id))):n.push((0,$.jsxs)(Pe,{name:t.id,children:[o,r||null]},"draggable_".concat(t.id))):(n.push(o),r&&r.forEach((e=>n.push(e)))),n}renderAllItems(e){const t=e.filter((e=>!e.parent)).map((t=>this.renderOneItem(e,t)));return(0,$.jsx)(x.Z,{dense:!0,disablePadding:!0,className:this.props.classes.mainList,children:t})}onAddNew(e){e&&e.stopPropagation();let t=this.state.listItems.find((e=>e.id===this.state.selected)),s=De;for(;t&&"folder"!==t.type;)t=this.state.listItems[t.parentIndex];t&&(s=t.id),this.parent=s,this.setState({choosingType:!0})}onCopy(e,t){e&&e.stopPropagation();let s=this.state.listItems.find((e=>e.id===t)),a=De;for(;s&&"folder"!==s.type;)s=this.state.listItems[s.parentIndex];s&&(a=s.id),this.parent=a,this.setState({copingScript:t})}onAddNewFolder(e){e&&e.stopPropagation();let t=this.state.listItems.find((e=>e.id===this.state.selected)),s=De;for(;t&&"folder"!==t.type;)t=this.state.listItems[t.parentIndex];t&&(s=t.id),this.parent=s,this.setState({creatingFolder:!0})}onRename(e){e&&e.stopPropagation(),this.setState({renaming:this.state.selected})}getUniqueName(e){let t=1,s="".concat(y.I18n.t("Script")," ");if(e){let a=Re(e,this.props.scripts[e]);const i=a.match(/\d+$/);i?(s=a.replace(/\d+$/,""),t=parseInt(i[0],10)+1):s=a}for(;this.state.listItems.find((e=>e.id==="".concat(this.parent,".").concat(s.replace(/\.\s/g,"_")).concat(t)));)t++;return s+t}getUniqueFolderName(){let e=1;for(;this.state.listItems.find((t=>t.id==="".concat(this.parent,".").concat(y.I18n.t("Folder"),"_").concat(e)));)e++;return"".concat(y.I18n.t("Folder")," ").concat(e)}onCloseMenu(e){this.setState({menuOpened:!1,menuAnchorEl:null,menuAnchorFilterEl:null},e)}getFilterBadge(){return[!0===this.state.statusFilter&&(0,$.jsx)(v.Nhx,{className:this.props.classes.filterIcon,style:{color:je}}),!1===this.state.statusFilter&&(0,$.jsx)(v.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"]}getMainMenu(e,t){return(0,$.jsxs)(T.Z,{id:"long-menu",anchorEl:this.state.menuAnchorEl,open:this.state.menuOpened,onClose:()=>this.setState({menuOpened:!1,menuAnchorEl:null}),PaperProps:{style:{maxHeight:360}},children:[this.state.width<=Ee?(0,$.jsxs)(D.Z,{disabled:this.props.debugMode||!this.state.selected||this.state.selected===Ne||this.state.selected===Ae||e&&e.length,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.state.listItems.find((e=>e.parent===this.state.selected))?this.showError(y.I18n.t("Cannot delete non empty item!")):this.setState({menuOpened:!1,menuAnchorEl:null},(()=>this.onDelete(this.state.selected).then((()=>{}))))},children:[(0,$.jsx)(v.ZkW,{className:this.props.classes.iconDropdownMenu,style:{color:"red"}}),y.I18n.t("Delete")]},"delete"):null,(0,$.jsxs)(D.Z,{disabled:this.props.debugMode,selected:this.state.expertMode,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.onCloseMenu((()=>this.props.onExpertModeChange&&this.props.onExpertModeChange(!this.state.expertMode)))},children:[(0,$.jsx)(v.Bjz,{className:this.props.classes.iconDropdownMenu,style:{color:this.state.expertMode?"orange":"inherit"}}),y.I18n.t("Expert mode")]},"expertMode"),this.props.onExport&&(0,$.jsxs)(D.Z,{onClick:e=>{e.stopPropagation(),e.preventDefault(),this.onCloseMenu((()=>this.props.onExport()))},children:[(0,$.jsx)(R.FaFileExport,{className:this.props.classes.iconDropdownMenu}),y.I18n.t("Export all scripts")]},"exportAll"),this.props.onImport&&(0,$.jsxs)(D.Z,{disabled:this.props.debugMode,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.onCloseMenu((()=>this.props.onImport()))},children:[(0,$.jsx)(R.FaFileImport,{className:this.props.classes.iconDropdownMenu}),y.I18n.t("Import scripts")]},"import"),this.props.onThemeChange&&(0,$.jsxs)(D.Z,{onClick:()=>this.onCloseMenu((()=>{const e="dark"===this.state.themeName?"blue":"blue"===this.state.themeName?"colored":"colored"===this.state.themeName?"light":"light"===this.state.themeName?"dark":"colored";this.props.onThemeChange(e)})),children:[(0,$.jsx)(v.Zox,{className:this.props.classes.iconDropdownMenu}),y.I18n.t('Change theme (actual "%s")',this.state.themeName)]},"dark"),this.props.onAddNew&&(0,$.jsxs)(D.Z,{disabled:!this.state.selected||!t||"folder"===t.type,onClick:e=>{const t=this.state.selected;this.onCloseMenu((()=>this.onCopy(e,t)))},children:[(0,$.jsx)(v.Fqs,{className:this.props.classes.iconDropdownMenu}),y.I18n.t("Copy script")]},"copy"),this.state.expertMode&&(0,$.jsxs)(D.Z,{disabled:this.props.debugMode,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.onCloseMenu((()=>this.setState({showAdapterDebug:!0})))},children:[(0,$.jsx)(v.qXL,{className:this.props.classes.iconDropdownMenu}),y.I18n.t("Debug instance")]},"debugInstance")]},"menu")}getToolbarButtons(){const e=[],t=this.props.classes,s=this.state.reorder&&!this.props.debugMode;if(this.state.searchMode&&!this.props.debugMode)e.push((0,$.jsx)(A.Z,{value:this.state.searchText,className:t.toolbarSearch,ref:this.inputRef,autoFocus:!0,placeholder:y.I18n.t("Search..."),onChange:e=>{this.setState({searchText:e.target.value}),this.filterTimer&&clearTimeout(this.filterTimer),this.filterTimer=setTimeout((()=>{this.filterTimer=null,this.filterList(!0),this.props.onSearch&&this.props.onSearch(this.state.searchText)}),400)}},"searchInput")),e.push((0,$.jsx)(I.Z,{className:t.toolbarButtons,style:{float:"right"},title:y.I18n.t("End search mode"),onClick:e=>{e.stopPropagation(),this.filterList(!1,(()=>this.props.onSearch&&this.props.onSearch(this.state.searchText)))},size:"medium",children:(0,$.jsx)(v.w7s,{})},"disableSearch")),this.state.searchText&&e.push((0,$.jsx)(I.Z,{mini:"true",title:y.I18n.t("Clear search input"),className:t.toolbarButtons,style:{marginTop:7,float:"right"},onClick:e=>{e.stopPropagation(),this.setState({searchText:""},(()=>{this.filterList(!0),this.props.onSearch&&this.props.onSearch(this.state.searchText)}))},size:"medium",children:(0,$.jsx)(v.FU5,{fontSize:"small"})},"cleanSearch"));else{if(!s){e.push((0,$.jsx)(I.Z,{"aria-label":"More","aria-owns":this.state.menuOpened?"long-menu":void 0,title:y.I18n.t("Menu"),"aria-haspopup":"true",onClick:e=>{e.stopPropagation(),e.preventDefault(),this.setState({menuOpened:!0,menuAnchorEl:e.currentTarget})},size:"medium",children:(0,$.jsx)(v.rgS,{})},"menuButton"));const a=this.state.listItems.find((e=>e.id===this.state.selected));let i;a&&this.state.width<=Ee&&"folder"===a.type&&(i=this.state.listItems.filter((e=>e.parent===this.state.selected))),e.push(this.getMainMenu(i,a)),e.push((0,$.jsx)(I.Z,{disabled:this.props.debugMode,title:y.I18n.t("Create new script"),className:y.Utils.clsx(t.toolbarButtons,this.props.debugMode&&t.iconButtonsDisabled),style:{color:s?"red":"inherit"},onClick:e=>this.onAddNew(e),size:"medium",children:(0,$.jsx)(v.x06,{})},"new-script")),e.push((0,$.jsx)(I.Z,{disabled:this.props.debugMode,title:y.I18n.t("Create new folder"),className:y.Utils.clsx(t.toolbarButtons,this.props.debugMode&&t.iconButtonsDisabled),style:{color:s?"red":"inherit"},onClick:()=>this.onAddNewFolder(),size:"medium",children:(0,$.jsx)(v.Db7,{})},"new-folder"))}e.push((0,$.jsx)(I.Z,{disabled:s||this.props.debugMode,className:y.Utils.clsx(t.toolbarButtons,this.props.debugMode&&t.iconButtonsDisabled),title:y.I18n.t("Search in scripts"),style:{float:"right",opacity:this.props.debugMode?.5:s?0:1},onClick:e=>{e.stopPropagation(),this.setState({searchMode:!0})},size:"medium",children:(0,$.jsx)(v.vU7,{})},"search")),e.push((0,$.jsx)(I.Z,{disabled:this.props.debugMode,title:y.I18n.t("Reorder scripts in folders"),className:y.Utils.clsx(t.toolbarButtons,this.props.debugMode&&t.iconButtonsDisabled),style:{color:s?"red":"inherit",float:"right"},onClick:e=>{e.stopPropagation(),this.setState({reorder:!this.state.reorder})},size:"medium",children:(0,$.jsx)(v.Llt,{})},"reorder")),!s&&this.state.selected&&this.state.selected!==Ne&&this.state.selected!==Ae&&e.push((0,$.jsx)(I.Z,{className:y.Utils.clsx(t.toolbarButtons,this.props.debugMode&&t.iconButtonsDisabled),disabled:this.props.debugMode,title:y.I18n.t("Rename"),onClick:e=>this.onRename(e),size:"medium",children:(0,$.jsx)(v.zmo,{})},"rename")),e.push((0,$.jsxs)("span",{style:{opacity:.5,fontSize:10},children:["v",this.props.version]},"version"))}return e}getFolders(){const e=[{id:De,name:y.I18n.t("Root folder")}];return this.state.listItems.forEach((t=>{"folder"===t.type&&t.id!==De&&(t.id.startsWith(Ne)&&!this.state.expertMode||e.push({id:t.id,name:t.title}))})),e}onCollapseAll(){this.setState({expanded:[]}),this.saveExpanded([])}onExpandAll(){const e=[];this.state.listItems.forEach((t=>this.state.listItems.find((e=>e.parent===t.id))&&e.push(t.id))),this.setState({expanded:e}),this.saveExpanded(e)}getBottomButtons(){return this.state.reorder||this.props.debugMode?null:[(0,$.jsx)(v.hPq,{className:this.props.classes.footerButtons,style:{color:je,opacity:"running"===this.state.statusFilter?1:.3,background:"running"===this.state.statusFilter?"gray":"inherit"},title:y.I18n.t("Show only running scripts"),onClick:e=>{e.stopPropagation(),e.preventDefault();const t="running"===this.state.statusFilter?"":"running";window.localStorage&&window.localStorage.setItem("SideMenu.statusFilter",t),this.setState({statusFilter:t})}},"filterByRunning"),(0,$.jsx)(v.Nhx,{title:y.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:()=>{const e="paused"===this.state.statusFilter?"":"paused";window.localStorage&&window.localStorage.setItem("SideMenu.statusFilter",e),this.setState({statusFilter:e})}},"filterByPaused"),(0,$.jsx)(v.hPq,{title:y.I18n.t("Show only scripts with problems"),className:this.props.classes.footerButtons,style:{color:Ie,opacity:"problems"===this.state.statusFilter?1:.3,background:"problems"===this.state.statusFilter?"gray":"inherit"},onClick:()=>{const e="problems"===this.state.statusFilter?"":"problems";window.localStorage&&window.localStorage.setItem("SideMenu.statusFilter",e),this.setState({statusFilter:e})}},"filterByProblem"),(0,$.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:_e.Blockly||_e.def,onClick:()=>{const e="Blockly"===this.state.typeFilter?"":"Blockly";window.localStorage&&window.localStorage.setItem("SideMenu.typeFilter",e),this.setState({typeFilter:e})}},"filterBlockly"),(0,$.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:_e["Javascript/js"]||_e.def,onClick:()=>{const e="Javascript/js"===this.state.typeFilter?"":"Javascript/js";window.localStorage&&window.localStorage.setItem("SideMenu.typeFilter",e),this.setState({typeFilter:e})}},"filterJS"),(0,$.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:_e["TypeScript/ts"]||_e.def,onClick:()=>{const e="TypeScript/ts"===this.state.typeFilter?"":"TypeScript/ts";window.localStorage&&window.localStorage.setItem("SideMenu.typeFilter",e),this.setState({typeFilter:e})}},"filterTS"),(0,$.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:_e.Rules||_e.def,onClick:e=>{const t="Rules"===this.state.typeFilter?"":"Rules";window.localStorage&&window.localStorage.setItem("SideMenu.typeFilter",t),this.setState({typeFilter:t})}},"filterRules"),(0,$.jsx)(v.bPX,{className:"".concat(this.props.classes.footerButtons," ").concat(this.props.classes.footerButtonsRight),title:y.I18n.t("Expand all"),onClick:()=>this.onExpandAll()},"expandAll"),this.state.expanded.length?(0,$.jsx)(v.SPo,{className:"".concat(this.props.classes.footerButtons," ").concat(this.props.classes.footerButtonsRight),title:y.I18n.t("Collapse all"),onClick:()=>this.onCollapseAll()},"collapseAll"):null]}getAdapterDebugDialog(){if(this.state.showAdapterDebug)return(0,$.jsx)(Ce,{socket:this.props.socket,onClose:()=>this.setState({showAdapterDebug:!1}),onDebug:(e,t)=>this.setState({showAdapterDebug:!1},(()=>this.props.onDebugInstance({instance:e,adapter:t})))},"debug")}render(){const{classes:e}=this.props,t=this.state.renaming&&this.state.listItems.find((e=>e.id===this.state.renaming)),s=this.state.copingScript&&this.props.scripts[this.state.copingScript];return[(0,$.jsxs)(f.ZP,{variant:"permanent",className:e.menu,classes:{paper:e.drawerPaper},anchor:"left",onClick:()=>this.onClick({id:""}),children:[(0,$.jsx)("div",{className:e.toolbar,children:this.getToolbarButtons()}),(0,$.jsx)(S.Z,{}),(0,$.jsx)(O.W,{backend:_.PD,children:(0,$.jsx)("div",{className:e.innerMenu,children:this.renderAllItems(this.state.listItems)})}),(0,$.jsx)(S.Z,{}),(0,$.jsx)("div",{className:e.footer,children:this.getBottomButtons()})]},"drawer"),t?(0,$.jsx)(te,{name:t.title,title:y.I18n.t("Rename"),id:this.state.renaming,folder:"folder"===t.type,instance:t.instance,instances:this.props.instances,onClose:()=>this.setState({renaming:!1}),onRename:(e,t,s,a)=>this.props.onRename&&this.props.onRename(e,t,s,a)},"dialog-rename"):null,this.state.deleting?(0,$.jsx)(ae,{name:this.state.listItems.find((e=>e.id===this.state.deleting)).title,id:this.state.deleting,onClose:()=>this.setState({deleting:!1}),onDelete:e=>this.props.onDelete&&this.props.onDelete(e)},"dialog-delete"):null,this.state.choosingType?(0,$.jsx)(me,{onClose:e=>{const t={choosingType:!1};e&&(t.creatingScript=e),this.setState(t)}},"dialog-script-type"):null,this.state.creatingScript?(0,$.jsx)(be,{onClose:()=>this.setState({creatingScript:!1}),title:y.I18n.t("Create new script"),name:this.getUniqueName(),parents:this.getFolders(),folder:!1,existingItems:this.state.listItems.map((e=>e.id)),instance:this.props.instances[0]||0,instances:this.props.instances,type:this.state.creatingScript,parent:this.parent,onAdd:(e,t,s,a)=>this.props.onAddNew&&this.props.onAddNew(e,t,!1,s,a)},"dialog-new-script"):null,this.state.copingScript?(0,$.jsx)(be,{onClose:()=>this.setState({copingScript:""}),title:y.I18n.t("Copy script"),name:this.getUniqueName(this.state.copingScript),parents:this.getFolders(),folder:!1,instance:parseInt(s&&s.common&&s.common.engine&&s.common.engine.split(".").pop()||0,10),instances:this.props.instances,type:s&&s.common&&s.common.engineType||"Javascript/js",parent:this.parent,onAdd:(e,t,s,a)=>{const i=this.state.copingScript&&this.props.scripts[this.state.copingScript];i&&i.common&&(i.common.enabled=!1),this.props.onAddNew&&this.props.onAddNew(e,t,!1,s,a,i&&i.common&&i.common.source)}},"dialog-copy-script"):null,this.state.creatingFolder?(0,$.jsx)(be,{onClose:()=>this.setState({creatingFolder:!1}),title:y.I18n.t("Create new folder"),parents:this.getFolders(),name:this.getUniqueFolderName(),parent:this.parent,onAdd:(e,t)=>this.props.onAddNew&&this.props.onAddNew(e,t,!0)},"dialog-new-folder"):null,this.state.errorText?(0,$.jsx)(fe,{onClose:()=>this.setState({errorText:""}),text:this.state.errorText},"error"):null,this.getAdapterDebugDialog()]}}const Be=(0,u.Z)((e=>({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}}})))(Fe);function Le(e){let t,s=e.getHours();return s<10&&(s="0".concat(s.toString())),t="".concat(s,":"),s=e.getMinutes(),s<10&&(s="0".concat(s.toString())),t+="".concat(s,":"),s=e.getSeconds(),s<10&&(s="0".concat(s.toString())),t+="".concat(s,"."),s=e.getMilliseconds(),s<10?s="00".concat(s.toString()):s<100&&(s="0".concat(s.toString())),t+=s,t}let Ue={};class We extends i().Component{constructor(e){super(e),this.logHandler=e=>{let t=this.state.lines;const s=this.state.editing.filter((t=>e.message.includes(t)));let a;if(!s.length)return;1===s.length?a=s[0]:(s.sort(),a=s[s.length-1]);let i=t[a]||[],o=Ue[a]||[];i.push(this.generateLine(e));let n=e.severity;"info"!==n&&"warn"!==n||(n+=" ");const r=new Date(e.ts);var l;o.push("".concat(r.toLocaleString(),".").concat((l=r.getMilliseconds(),l<10?"00".concat(l):l<100?"0".concat(l):l),"\t[").concat(n,"]: ").concat(e.message)),i.length>300&&(i.splice(0,i.length-300),o.splice(0,i.length-300)),Ue[a]=o,t[a]=i,this.setState({lines:t})},this.state={lines:{},goBottom:!0,selected:null,editing:this.props.editing||[]},this.lastIndex=null,this.messagesEnd=i().createRef()}generateLine(e){return(0,$.jsxs)("tr",{className:this.props.classes[e.severity],children:[(0,$.jsx)("td",{className:this.props.classes.trTime,children:Le(new Date(e.ts))},"tdTime"),(0,$.jsx)("td",{className:this.props.classes.trSeverity,children:e.severity},"tdSeverity"),(0,$.jsx)("td",{children:e.message},"tdMessage")]},"tr_".concat(e.ts,"_").concat(e.message.substr(-10)))}scrollToBottom(){this.messagesEnd&&this.messagesEnd.current&&this.messagesEnd.current.scrollIntoView({behavior:"smooth"})}componentDidMount(){this.props.socket.registerLogHandler(this.logHandler)}componentWillUnmount(){this.props.socket.unregisterLogHandler(this.logHandler)}componentDidUpdate(){this.state.goBottom&&this.scrollToBottom()}static getDerivedStateFromProps(e,t){let s=!1,a={};if(e.selected!==t.selected){let i=e.selected,o=t.lines;o[i]=o[i]||[],Ue[i]=Ue[i]||[],a.selected=i,s=!0}if(JSON.stringify(e.editing)!==JSON.stringify(t.editing)){const i=JSON.parse(JSON.stringify(e.editing));s=!0;let o=t.lines;for(const e in Ue)Ue.hasOwnProperty(e)&&(i.includes(e)||(delete Ue[e],delete o[e]));a.editing=i}return s?a:null}onCopy(){y.Utils.copyToClipboard((Ue[this.state.selected]||[]).join("\n"))}clearLog(){let e=this.state.lines;e[this.state.selected]&&(e[this.state.selected]=[]),Ue[this.state.selected]&&(Ue[this.state.selected]=[]),this.setState({lines:e})}renderLogList(e){return this.state.selected&&e&&e.length?(0,$.jsxs)("div",{className:this.props.classes.logBoxInner,children:[(0,$.jsx)("table",{className:this.props.classes.table,children:(0,$.jsx)("tbody",{children:e})},"logTable"),(0,$.jsx)("div",{ref:this.messagesEnd,style:{float:"left",clear:"both"}},"logScrollPoint")]},"logList"):(0,$.jsx)("div",{className:this.props.classes.logBoxInner,style:{paddingLeft:10},children:y.I18n.t("Log outputs")},"logList")}render(){const e=this.state.selected&&this.state.lines[this.state.selected];return(0,$.jsxs)("div",{className:this.props.classes.logBox,children:[(0,$.jsxs)("div",{className:this.props.classes.toolbox,children:[(0,$.jsx)(I.Z,{className:this.props.classes.iconButtons,onClick:()=>this.setState({goBottom:!this.state.goBottom}),color:this.state.goBottom?"secondary":"",size:"medium",children:(0,$.jsx)(v.G10,{})}),e&&e.length?(0,$.jsx)(I.Z,{className:this.props.classes.iconButtons,onClick:()=>this.clearLog(),size:"medium",children:(0,$.jsx)(v.FH3,{})}):null,e&&e.length?(0,$.jsx)(I.Z,{className:this.props.classes.iconButtons,onClick:()=>this.onCopy(),size:"medium",children:(0,$.jsx)(v.Fqs,{})}):null,this.props.onLayoutChange?(0,$.jsx)(I.Z,{className:this.props.classes.iconButtons,onClick:()=>this.props.onLayoutChange(),title:y.I18n.t("Change layout"),size:"medium",children:(0,$.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,$.jsx)(I.Z,{className:this.props.classes.iconButtons,onClick:()=>this.props.onHideLog(),title:y.I18n.t("Hide logs"),size:"medium",children:(0,$.jsx)(v.wqE,{})})]},"toolbox"),this.renderLogList(e)]})}}const Ze=(0,u.Z)((e=>({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}})))(We);var Ve=s(71434),Je=s(29464),qe=s(19523),He=s(61474),Ge=s(27029),Ye=s(34129),Ke=s(13034),Qe=s(40986),Xe=s(15416),$e=s(62155),et=s(68745),tt=s(55261),st=s(22041),at=s(9195),it=s(4841);var ot=s(94427);let nt=0;class rt extends i().Component{constructor(e){super(e),this.state={name:"current",isDark:e.isDark||!1,language:e.language||"javascript",readOnly:e.readOnly||!1,alive:!0,check:!1,searchText:this.props.searchText||"",typingsLoaded:!1},this.runningInstancesStr=JSON.stringify(this.props.runningInstances),this.monacoDiv=null,this.editor=null,this.monaco=window.monaco,this.insert="",this.originalCode=e.code||"",this.typings={},this.lastSearch=""}waitForMonaco(e){var t,s,a,i;let o=null===(t=this.monaco)||void 0===t||null===(s=t.languages)||void 0===s||null===(a=s.typescript)||void 0===a||null===(i=a.typescriptDefaults)||void 0===i?void 0:i.getCompilerOptions;if(o&&this.props.runningInstances)e&&e();else{var n,r,l,c;if(this.monaco=window.monaco,o=null===(n=this.monaco)||void 0===n||null===(r=n.languages)||void 0===r||null===(l=r.typescript)||void 0===l||null===(c=l.typescriptDefaults)||void 0===c?void 0:c.getCompilerOptions,this.monacoCounter=this.monacoCounter||0,this.monacoCounter++,!o&&this.monacoCounter<20)return console.log("wait for monaco loaded"),void setTimeout((()=>this.waitForMonaco(e)),200);this.monacoCounter>=20&&console.error("Cannot load monaco!")}}loadTypings(e){if(!this.editor)return;let t=(e=e||this.props.runningInstances)&&Object.keys(e).find((t=>e[t]));t&&this.props.socket.sendTo(t.replace("system.adapter.",""),"loadTypings",null).then((e=>{this.setState({alive:!0,check:!0,typingsLoaded:!0}),this.setTypeCheck(!0),e.typings?(this.typings=e.typings,this.setEditorTypings(this.state.name)):console.error("failed to load typings: ".concat(e.error))}))}componentDidMount(){var e,t,s,a;const i=null===(e=this.monaco)||void 0===e||null===(t=e.languages)||void 0===t||null===(s=t.typescript)||void 0===s||null===(a=s.typescriptDefaults)||void 0===a?void 0:a.getCompilerOptions;if((!i||!this.props.runningInstances)&&(this.monaco=window.monaco,!i))return console.log("wait for monaco loaded..."),void this.waitForMonaco((()=>this.componentDidMount()));if(!this.editor&&i){console.log("Init editor"),this.props.onRegisterSelect&&this.props.onRegisterSelect((()=>this.editor.getModel().getValueInRange(this.editor.getSelection())));const e=this.monaco.languages.typescript.typescriptDefaults.getCompilerOptions();e.target=this.monaco.languages.typescript.ScriptTarget.ES2015,e.allowJs=!0,e.checkJs=!1!==this.props.checkJs,e.noLib=!0,e.lib=[],e.useUnknownInCatchVariables=!1,e.moduleResolution=this.monaco.languages.typescript.ModuleResolutionKind.NodeJs,this.monaco.languages.typescript.typescriptDefaults.setCompilerOptions(e),this.setTypeCheck(!1),this.editor=this.monaco.editor.create(this.monacoDiv,{lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,glyphMargin:!!this.props.breakpoints}),this.editor.onDidChangeModelContent((()=>this.onChange(this.editor.getValue()))),this.loadTypings(),this.editor.addCommand(this.monaco.KeyMod.CtrlCmd|this.monaco.KeyCode.KEY_S,(()=>this.onForceSave())),setTimeout((()=>{this.highlightText(this.state.searchText),this.location=this.props.location,this.breakpoints=this.props.breakpoints,this.showDecorators()}))}const o={selectOnLineNumbers:!0,scrollBeyondLastLine:!1,automaticLayout:!0,readOnly:this.state.readOnly,language:this.state.language,isDark:this.state.isDark};this.setEditorOptions(o),this.editor.focus(),this.editor.setValue(this.originalCode),this.props.onToggleBreakpoint?this.editor.onMouseDown((e=>{e.target.detail&&void 0!==e.target.detail.glyphMarginLeft&&this.props.onToggleBreakpoint(e.target.position.lineNumber-1)})):this.editor.onMouseDown((()=>{}))}setEditorOptions(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"))}componentWillUnmount(){this.editor&&(this.props.onRegisterSelect&&this.props.onRegisterSelect(null),this.editor.dispose(),this.editor=null)}setEditorLanguage(e){const t=this.editor.getModel(),s=t.getValue(),a=t.uri.path,i="string"===typeof a&&a.includes(".")?a.substr(0,a.lastIndexOf(".")):"index",o="javascript"===e?"js":"typescript"===e?"ts":e;t.dispose();const n="javascript"===e||"typescript"===e?"typescript":e,r=this.monaco.editor.createModel(s,n,this.monaco.Uri.from({path:"".concat(i).concat(nt++,".").concat(o)}));this.editor.setModel(r)}setTypeCheck(e){const t={noSemanticValidation:!this.state.alive||!e,noSyntaxValidation:!this.state.alive};this.monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions(t)}setEditorTypings(){var e,t,s,a,i,o,n,r;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const c=/^script\.js\.global\./.test(l);const d="".concat(l,".d.ts"),u=[];for(const p of Object.keys(this.typings)){if(c){if("global.d.ts"===p)continue;if(p.startsWith("script.js.global")&&p!==d)continue}u.push({filePath:p,content:this.typings[p]})}if(null!==(e=this.monaco)&&void 0!==e&&null!==(t=e.languages)&&void 0!==t&&null!==(s=t.typescript)&&void 0!==s&&null!==(a=s.typescriptDefaults)&&void 0!==a&&a.setExtraLibs)this.monaco.languages.typescript.typescriptDefaults.setExtraLibs(u);else if(null!==(i=this.monaco)&&void 0!==i&&null!==(o=i.languages)&&void 0!==o&&null!==(n=o.typescript)&&void 0!==n&&null!==(r=n.typescriptDefaults)&&void 0!==r&&r.addExtraLib){const e=this.monaco.languages.typescript.typescriptDefaults.getExtraLibs();u.forEach((t=>{e[t.filePath]||this.monaco.languages.typescript.typescriptDefaults.addExtraLib(t,t.filePath)}))}}insertTextIntoEditor(e){const t=this.editor.getSelection(),s=new this.monaco.Range(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn);this.editor.executeEdits("",[{range:s,text:e,forceMoveMarkers:!0}]),this.editor.focus()}highlightText(e){let t=e&&this.editor.getModel().findMatches(e);if(t&&t.length)t.forEach((e=>this.editor.setSelection(e.range))),this.editor.revealLine(t[0].range.startLineNumber);else if(this.editor){const e=this.editor.getPosition().lineNumber,t=this.editor.getPosition().column;this.editor.setSelection(new this.monaco.Range(e,t,e,t))}}showDecorators(){this.decorations=this.decorations||[];const e=[];this.location&&(e.push({range:new this.monaco.Range(this.location.lineNumber+1,this.location.columnNumber+1,this.location.lineNumber+1,1e3),options:{isWholeLine:!1,className:this.props.isDark?"monacoCurrentLineDark":"monacoCurrentLine"}}),e.push({range:new this.monaco.Range(this.location.lineNumber+1,0,this.location.lineNumber+1,0),options:{isWholeLine:!0,className:this.props.isDark?"monacoCurrentFullLineDark":"monacoCurrentFullLine"}})),this.breakpoints&&this.breakpoints.forEach((t=>{e.push({range:new this.monaco.Range(t.location.lineNumber+1,0,t.location.lineNumber+1,100),options:{isWholeLine:!0,glyphMarginClassName:this.props.isDark?"monacoBreakPointDark":"monacoBreakPoint"}})})),this.editor&&(this.decorations=this.editor.deltaDecorations(this.decorations,e))}initNewScript(e,t){this.setState({name:e}),this.originalCode=t||"",this.editor&&this.editor.setValue(t),this.highlightText(this.lastSearch),this.showDecorators(),this.setEditorTypings(e)}scrollToLineIfNeeded(e){if(this.editor){const t=this.editor.getVisibleRanges();(!t||!t[0]||t[0].startLineNumber>e||e>t[0].endLineNumber)&&this.editor.revealLineInCenter(e)}}UNSAFE_componentWillReceiveProps(e){const t={};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)),!this.editor||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"}),t.language=e.language||"javascript"):this.state.readOnly!==(e.readOnly||!1)?(this.setState({readOnly:e.readOnly||!1}),t.readOnly=e.readOnly):this.state.isDark!==(e.isDark||!1)&&(this.setState({isDark:e.isDark||!1}),t.isDark=e.isDark),this.setEditorOptions(t),this.insert!==e.insert&&(this.insert=e.insert,this.insert&&(console.log("Insert text"+this.insert),setTimeout((e=>{this.insertTextIntoEditor(e),setTimeout((()=>this.props.onInserted&&this.props.onInserted()),100)}),100,this.insert)))}onChange(e,t){this.props.readOnly||this.props.onChange&&this.props.onChange(this.editor.getValue())}render(){var e,t,s;return null!==(e=this.monaco)&&void 0!==e&&null!==(t=e.languages)&&void 0!==t&&null!==(s=t.typescript)&&void 0!==s&&s.typescriptDefaults&&this.props.runningInstances?(0,$.jsx)("div",{ref:e=>this.monacoDiv=e,style:{width:"100%",height:"100%",overflow:"hidden",position:"relative"},children:!this.state.check&&(0,$.jsx)(ot.Fab,{size:"small",title:y.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,$.jsx)(v.vhT,{})})}):(setTimeout((()=>{this.monaco=window.monaco,this.forceUpdate()}),200),null)}}const lt=rt;var ct=s(85959),dt=s(60627),ut=s(56120);class pt extends i().Component{constructor(e){super(e),this.state={anchorEl:null,popper:""}}handleCancel(){this.props.onClose()}onCopy(e){y.Utils.copyToClipboard(this.props.text);const t=e.currentTarget;setTimeout((()=>{this.setState({popper:y.I18n.t("Copied"),anchorEl:t}),setTimeout((()=>this.setState({popper:"",anchorEl:null})),1e3)}),50)}render(){const e=this.props.classes,t=new Blob([this.props.text],{type:"application/xml"}),s=this.props.scriptId.substring(10)+".xml";return(0,$.jsxs)(q.Z,{onClose:(e,t)=>!1,maxWidth:"lg",classes:{paper:e.dialog},fullWidth:!0,open:this.props.open,"aria-labelledby":"export-dialog-title",children:[(0,$.jsx)(Z.Z,{id:"export-dialog-title",children:y.I18n.t("Export selected blocks")}),(0,$.jsx)(V.Z,{classes:{root:e.overflowY},children:(0,$.jsx)("pre",{id:"export-text",className:"".concat(e.textArea," ").concat("dark"===this.props.themeType?"":e.textAreaLight),children:this.props.text})}),(0,$.jsxs)(J.Z,{children:[(0,$.jsx)(W.Z,{variant:"contained",color:"secondary",startIcon:(0,$.jsx)(R.FaFileExport,{}),children:(0,$.jsx)("a",{download:s,target:"_blank",rel:"noreferrer",href:URL.createObjectURL(t),style:{textDecoration:"inherit",color:"inherit"},children:y.I18n.t("Download as file")})}),(0,$.jsx)(W.Z,{variant:"contained",onClick:e=>this.onCopy(e),color:"secondary",startIcon:(0,$.jsx)(ut.Z,{}),children:y.I18n.t("Copy to clipboard")}),(0,$.jsx)(W.Z,{variant:"contained",onClick:()=>this.handleCancel(),color:"primary",startIcon:(0,$.jsx)(Q.default,{}),children:y.I18n.t("Close")}),(0,$.jsx)(ct.Z,{id:"popper",style:{zIndex:1e4},open:!!this.state.popper,placement:"top",anchorEl:this.state.anchorEl,transition:!0,children:t=>{let{TransitionProps:s}=t;return(0,$.jsx)(dt.Z,{...s,timeout:350,children:(0,$.jsx)(it.Z,{children:(0,$.jsx)("p",{className:e.typography,children:this.state.popper})})})}}),(0,$.jsx)("textarea",{id:"copy_input",readOnly:!0,style:{position:"absolute",left:-9999},tabIndex:-1,"aria-hidden":!0,value:this.props.text})]})]},"export-dialog")}}pt.defaultProps={open:!0};const ht=(0,u.Z)((e=>({textArea:{width:"100%",height:"100%",overflow:"auto"},textAreaLight:{background:"lightgray"},dialog:{height:"95%"},typography:{padding:e.spacing(2)},overflowY:{overflowY:"hidden"}})))(pt);var mt=s(18267);class gt extends i().Component{constructor(e){super(e),this.state={text:""}}componentDidMount(){setTimeout((()=>{try{window.document.getElementById("import-text-area").focus()}catch(e){}}),100)}static readFileDataUrl(e,t){const s=new FileReader;s.onload=()=>{t(null,{data:s.result,name:e.name})},s.onabort=()=>{console.error("file reading was aborted"),t(y.I18n.t("file reading was aborted"))},s.onerror=e=>{console.error("file reading has failed"),t(y.I18n.t("file reading has failed: %s",e))},s.readAsText(e)}handleDropFile(e){if(e&&e.hasOwnProperty("target")&&(e=e.target.files),!e&&!e.length)return;const t=e[e.length-1];t&>.readFileDataUrl(t,((e,t)=>{e?this.setState({error:e}):this.setState({text:t.data})}))}handleCancel(){this.props.onClose()}handleOk(){this.props.onClose(this.state.text)}onChange(e){this.setState({text:e.target.value})}render(){const e=this.props.classes,t=e.dropzone+" "+("accepted"===this.state.imageStatus?e.dropzoneAccepted:"rejected"===this.state.imageStatus?e.dropzoneRejected:"");return(0,$.jsxs)(q.Z,{onClose:(e,t)=>!1,maxWidth:"lg",classes:{paper:e.dialog},fullWidth:!0,open:this.props.open,"aria-labelledby":"import-dialog-title",children:[(0,$.jsx)(Z.Z,{id:"import-dialog-title",children:y.I18n.t("Import blocks")}),(0,$.jsxs)(V.Z,{className:e.fullHeight,children:[(0,$.jsx)("textarea",{autoFocus:!0,id:"import-text-area",className:e.textArea,onChange:e=>this.onChange(e),value:this.state.text}),(0,$.jsx)(mt.default,{maxSize:5e7,acceptClassName:e.dropzoneAccepted,rejectClassName:e.dropzoneRejected,onDrop:e=>this.handleDropFile(e),multiple:!1,accept:"text/plain,text/xml,application/xml",className:t,children:e=>{let{getRootProps:t,getInputProps:s,isDragActive:a,isDragReject:i}=e;return i?("rejected"!==this.state.imageStatus&&this.setState({imageStatus:"rejected"}),(0,$.jsxs)("div",{className:this.props.classes.dropzoneDiv,...t(),children:[(0,$.jsx)("input",{...s()}),(0,$.jsx)("span",{className:this.props.classes.text,children:y.I18n.t("Some files will be rejected")},"text"),(0,$.jsx)(v.B4e,{className:this.props.classes.icon+" "+this.props.classes.iconError},"icon")]})):a?("accepted"!==this.state.imageStatus&&this.setState({imageStatus:"accepted"}),(0,$.jsxs)("div",{className:this.props.classes.dropzoneDiv,...t(),children:[(0,$.jsx)("input",{...s()}),(0,$.jsx)("span",{className:this.props.classes.text,children:y.I18n.t("All files will be accepted")},"text"),(0,$.jsx)(v.hjC,{className:this.props.classes.icon+" "+this.props.classes.iconOk},"icon")]})):("wait"!==this.state.imageStatus&&this.setState({imageStatus:"wait"}),(0,$.jsxs)("div",{className:this.props.classes.dropzoneDiv,...t(),children:[(0,$.jsx)("input",{...s()}),(0,$.jsx)("span",{className:this.props.classes.text,children:y.I18n.t("Drop some files here or click...")},"text"),(0,$.jsx)(v.s_P,{className:this.props.classes.icon},"icon")]}))}},"image-drop")]}),(0,$.jsxs)(J.Z,{children:[(0,$.jsx)(W.Z,{variant:"contained",disabled:!this.state.text,onClick:e=>this.handleOk(),color:"primary",startIcon:(0,$.jsx)(X.default,{}),children:y.I18n.t("Import")}),(0,$.jsx)(W.Z,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:(0,$.jsx)(Q.default,{}),children:y.I18n.t("Close")})]})]})}}gt.defaultProps={open:!0};const bt=(0,u.Z)((e=>({textArea:{width:"calc(100% - 10px)",height:"80%",resize:"none",fontFamily:"monospace",fontSize:"1em"},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:"20%",position:"relative"},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},dialog:{height:"95%"},fullHeight:{height:"100%",overflow:"hidden"}})))(gt);let yt,vt=!1,ft=!1,St=null,xt=[];function kt(e,t,s,a){if(a=a||[],"BLOCK"!==e.tagName&&"block"!==e.tagName||(s=e.id),"FIELD"===e.tagName||"field"===e.tagName)for(let i=0;ikt(e,t,s,a))),a}class wt extends i().Component{constructor(e){super(e),this.blockly=null,this.blocklyWorkspace=null,this.toolbox=null,this.Blockly=window.Blockly,this.state={languageOwnLoaded:ft,languageBlocklyLoaded:vt,changed:!1,message:"",error:"",themeType:this.props.themeType,exportText:"",importText:!1,searchText:this.props.searchText||""},this.originalCode=e.code||"",this.someSelected=null,this.changeTimer=null,this.onResizeBind=this.onResize.bind(this),this.lastCommand="",this.lastSearch=this.props.searchText||"",this.blinkBlock=null,this.loadLanguages()}static loadJS(e,t,s){const a=document.createElement("script");try{a.src=e,a.onload=t,a.onreadystatechange=t,a.onerror=t,(s||window.document.body).appendChild(a)}catch(i){console.error("Cannot load "+e+": "+i),t&&t()}}static loadScripts(e,t){if(!e||!e.length)return t&&t();const s=e.pop();-1===xt.indexOf(s)?(xt.push(s),wt.loadJS("../../adapter/"+s+"/blockly.js",(()=>setTimeout((()=>wt.loadScripts(e,t)),0)))):setTimeout((()=>wt.loadScripts(e,t)),0)}static loadCustomBlockly(e,t){const s=[];for(const a in e)e.hasOwnProperty(a)&&e[a]&&a.match(/^system\.adapter\./)&&"adapter"===e[a].type&&e[a].common&&e[a].common.blockly&&(console.log("Detected custom blockly: "+e[a].common.name),s.push(e[a].common.name));wt.loadScripts(s,t)}static loadXMLDoc(e){let t;return t=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},t(e)}searchBlocks(e){if(this.blocklyWorkspace){const t=kt(this.Blockly.Xml.workspaceToDom(this.blocklyWorkspace),e.toLowerCase()),s=this.blocklyWorkspace.getAllBlocks(),a=[];return s.filter((e=>t.includes(e.id))).forEach((e=>a.push(e))),a}}searchId(){const e=this.lastSearch&&this.searchBlocks(this.lastSearch);e&&e.length?(this.someSelected=e,this.someSelected.forEach((e=>e.addSelect())),this.someSelectedTime=Date.now()):this.someSelected&&(this.someSelected.forEach((e=>e.removeSelect())),this.someSelected=null)}UNSAFE_componentWillReceiveProps(e){e.command&&this.lastCommand!==e.command&&(this.lastCommand=e.command,setTimeout((()=>this.lastCommand=""),300),"check"===this.lastCommand?this.blocklyCheckBlocks(((e,t)=>{e?(t&&this.blocklyBlinkBlock(t),this.setState({error:{text:y.I18n.t(e),title:y.I18n.t("Error was found")}}),this.blinkBlock=t):this.setState({message:y.I18n.t("Ok")})})):"export"===this.lastCommand?this.exportBlocks():"import"===this.lastCommand&&this.importBlocks()),e.searchText!==this.lastSearch&&(this.lastSearch=e.searchText,this.searchId()),this.state.themeType!==e.themeType&&this.setState({themeType:e.themeType},(()=>this.updateBackground())),this.originalCode!==e.code&&(this.originalCode=e.code||"",this.loadCode(),this.searchId())}loadLanguages(){if(!vt){const e=window.document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src","google-blockly/msg/js/"+y.I18n.getLanguage()+".js"),e.onload=()=>{vt=!0,this.setState({languageBlocklyLoaded:vt})},e.onreadystatechange=()=>{"complete"===this.readyState&&(vt=!0,this.setState({languageBlocklyLoaded:vt}))},window.document.getElementsByTagName("head")[0].appendChild(e)}if(!ft){const e=window.document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src","google-blockly/own/msg/"+y.I18n.getLanguage()+".js"),e.onload=()=>{ft=!0,this.setState({languageOwnLoaded:ft})},e.onreadystatechange=()=>{"complete"===this.readyState&&(ft=!0,this.setState({languageOwnLoaded:ft}))},window.document.getElementsByTagName("head")[0].appendChild(e)}}onResize(){this.Blockly.svgResize(this.blocklyWorkspace)}jsCode2Blockly(e){const t=(e=e||"").split(/[\r\n]+|\r|\n/g);let s="";for(let i=t.length-1;i>=0;i--)if("//"===t[i].substring(0,2)){s=t[i].substring(2);break}if("e.select()),t),setTimeout((()=>e.unselect()),t+150)}blocklyRemoveOrphanedShadows(){if(this.blocklyWorkspace){let e,t=this.blocklyWorkspace.getAllBlocks();for(let s=0;e=t[s];s++)if(e.isShadow()){const t=e.getConnections_(!0);let s;for(let a=0;s=t[a];a++)if(!s.targetConnection){e.dispose();break}}}}blocklyCheckBlocks(e){let t;if(!this.blocklyWorkspace||0===this.blocklyWorkspace.getAllBlocks().length)return void(e&&e("no blocks found"));let s=this.blocklyGetUnconnectedBlock();return s?t="not properly connected":(s=this.blocklyGetBlockWithWarning(),s&&(t="warning on this block")),s?(e?e(t,s):this.blocklyBlinkBlock(s),!1):(e(),!0)}blocklyGetUnconnectedBlock(){const e=this.blocklyWorkspace.getAllBlocks();let t;for(let s=0;t=e[s];s++){const e=t.getConnections_(!0);let s;for(let a=0;s=e[a];a++)if(!s.sourceBlock_||(s.type===this.Blockly.INPUT_VALUE||s.type===this.Blockly.OUTPUT_VALUE)&&!s.targetConnection&&!s._optional)return t}return null}blocklyGetBlockWithWarning(){const e=this.blocklyWorkspace.getAllBlocks();let t;for(let s=0;t=e[s];s++)if(t.warning)return t;return null}blocklyCode2JSCode(e){let t=this.Blockly.JavaScript.workspaceToCode(this.blocklyWorkspace);if(!e){t+="\n";const e=this.Blockly.Xml.workspaceToDom(this.blocklyWorkspace),s=this.Blockly.Xml.domToText(e);t+="//"+btoa(encodeURIComponent(s))}return t}exportBlocks(){let e;if(this.Blockly.selected){const t=this.Blockly.Xml.blockToDom(this.Blockly.selected);this.Blockly.dragMode_!==this.Blockly.DRAG_FREE&&this.Blockly.Xml.deleteNext(t);const s=this.Blockly.selected.getRelativeToSurfaceXY();t.setAttribute("x",this.Blockly.selected.RTL?-s.x:s.x),t.setAttribute("y",s.y),e=this.Blockly.Xml.domToPrettyText(t)}else{const t=this.Blockly.Xml.workspaceToDom(this.blocklyWorkspace);e=this.Blockly.Xml.domToPrettyText(t)}this.setState({exportText:e})}importBlocks(){this.setState({importText:!0})}onImportBlocks(e){if(e=(e||"").trim())try{e.startsWith("'+e+"");let t=e.replace(/[\n\r]/g,"").match(/(.*)<\/variables>/);if(t){let e=this.Blockly.utils.xml.textToDomDocument(""+t[1]+"");if(e){let t=e.childNodes&&e.childNodes[0]&&e.childNodes[0].childNodes;if(t)for(let e=0;e.*<\/variables>/g,""),window.scripts.loading=!0;let s=this.Blockly.utils.xml.textToDom(e);if("xml"===s.nodeName)for(let e=0;e';window.scripts.loading=!0;const t=this.Blockly.utils.xml.textToDom(e);this.Blockly.Xml.domToWorkspace(t,this.blocklyWorkspace),window.scripts.loading=!1}catch(e){console.error(e),setTimeout((()=>this.setState({error:y.I18n.t("Cannot extract Blockly code!")})))}setTimeout((()=>this.ignoreChanges=!1),100)}}onBlocklyChanged(){this.blocklyRemoveOrphanedShadows(),this.setState({changed:!0}),this.onChange()}async componentDidUpdate(){if(!this.blockly)return;if(this.didUpdate&&(clearTimeout(this.didUpdate),this.didUpdate=null),this.blocklyWorkspace)return;window.addEventListener("resize",this.onResizeBind,!1),St=St||await this.getToolbox(),yt=yt||this.Blockly.utils.xml.textToDom(St),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((e=>{if(this.someSelected&&Date.now()-this.someSelectedTime>500){const e=this.blocklyWorkspace.getAllBlocks();this.someSelected=null,e.forEach((e=>e.removeSelect()))}e.type!==this.Blockly.Events.UI&&e.type!==this.Blockly.Events.CREATE&&(this.ignoreChanges||(this.changeTimer&&clearTimeout(this.changeTimer),this.changeTimer=setTimeout((()=>{this.changeTimer=null,this.onBlocklyChanged()}),200)))})),this.loadCode(),this.onResize();const e=document.getElementsByClassName("blocklyToolboxDiv")[0];this.blockly.appendChild(e),this.updateBackground(),setTimeout((()=>this.searchId()),200)}updateBackground(){const 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)}componentWillUnmount(){this.blocklyWorkspace&&(this.blocklyWorkspace.dispose(),this.blocklyWorkspace=null,this.changeTimer&&clearTimeout(this.changeTimer),this.changeTimer=null,window.removeEventListener("resize",this.onResizeBind))}onChange(){this.originalCode=this.blocklyCode2JSCode(),this.props.onChange&&this.props.onChange(this.originalCode)}async getToolbox(e){const t=window.document.getElementById("toolbox");let s=t&&t.outerHTML;if(!s)return e?(console.error("Cannot load blocks!"),""):new Promise((e=>setTimeout((()=>e(this.getToolbox(!0))),500)));if(s=s.replace(/{(\w+)}/g,((e,t)=>window.MSG[t])),this.Blockly.CustomBlocks){let e="";const t=y.I18n.getLanguage();for(let s=0;s';for(const t in this.Blockly[a].blocks)this.Blockly[a].blocks.hasOwnProperty(t)&&(e+=this.Blockly[a].blocks[t]);e+=""}s=s.replace("%%CUSTOM_BLOCKS%%",e)}return s}renderMessageDialog(){return this.state.message?(0,$.jsx)(g.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:()=>this.setState({message:""})},"dialogMessage"):null}renderErrorDialog(){return this.state.error?(0,$.jsx)(fe,{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:()=>{this.blinkBlock&&(this.blocklyBlinkBlock(this.blinkBlock),this.blinkBlock=null),this.setState({error:""})}},"dialogError"):null}renderExportDialog(){return this.state.exportText?(0,$.jsx)(ht,{theme:this.state.themeType,onClose:()=>this.setState({exportText:""}),text:this.state.exportText,scriptId:this.props.scriptId},"dialogExport"):null}renderImportDialog(){return this.state.importText?(0,$.jsx)(bt,{onClose:e=>{this.setState({importText:!1}),this.onImportBlocks(e)}},"dialogImport"):null}render(){return this.state.languageBlocklyLoaded&&this.state.languageOwnLoaded?(this.didUpdate=setTimeout((()=>{this.didUpdate=null,this.componentDidUpdate()}),100),[(0,$.jsx)("div",{ref:e=>this.blockly=e,style:{width:"100%",height:"100%",position:"relative"}},"blocklyDOM"),this.renderMessageDialog(),this.renderErrorDialog(),this.renderExportDialog(),this.renderImportDialog()]):null}}const Ct=wt;var jt=s(53329);class It extends i().Component{constructor(e){super(e),this.state={changed:!1,source:this.props.source},!this.state.source&&this.props.isReturn&&(this.state.source="\nreturn false")}componentDidMount(){setTimeout((()=>{try{window.document.getElementById("source-text-area").focus()}catch(e){}}),100)}handleCancel(){this.props.onClose(!1)}handleOk(){this.props.isReturn&&!this.state.source.includes("return ")||this.props.onClose(this.state.source)}onChange(e){this.setState({changed:!0,source:e})}render(){const e=this.props.classes;return(0,$.jsxs)(q.Z,{onClose:(e,t)=>!1,maxWidth:"lg",classes:{paper:e.dialog},fullWidth:!0,open:!0,"aria-labelledby":"source-dialog-title",children:[(0,$.jsx)(Z.Z,{id:"source-dialog-title",children:y.I18n.t("Function editor")}),(0,$.jsxs)(V.Z,{className:e.fullHeight,children:[this.props.args&&(0,$.jsxs)("div",{className:e.args,children:[(0,$.jsx)("span",{className:e.argsTitle,children:y.I18n.t("function (")}),this.props.args,(0,$.jsx)("span",{className:e.argsTitle,children:")"})]},"arguments"),(0,$.jsx)(lt,{adapterName:this.props.adapterName,runningInstances:this.props.runningInstances,className:e.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:e=>this.onChange(e),language:"javascript"},"scriptEditor")]}),(0,$.jsxs)(J.Z,{children:[(0,$.jsx)(W.Z,{variant:"contained",onClick:()=>this.handleOk(),color:"primary",startIcon:(0,$.jsx)(jt.Z,{}),children:y.I18n.t("Save")}),(0,$.jsx)(W.Z,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:(0,$.jsx)(Q.default,{}),children:y.I18n.t("Cancel")})]})]})}}const Tt=(0,u.Z)((e=>({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"}})))(It),Dt="style_wrapperRules__Js-Pp",At="style_rootWrapper__0Dpqp",Nt="style_addClass__ry424";var Et=s(32449);const Ot="style_switchesItem__RBQz7",_t="style_switchesItemActive__FU8S9",Rt="style_iconTheme__inJLE";var Mt=s(80576);const zt={},Pt=e=>{let{iconName:t,className:s,adapter:i,socket:o,onClick:n}=e,[r,l]=(0,a.useState)("");if((0,a.useEffect)((()=>{i&&o&&(zt[i]=zt[i]||o.getObject("system.adapter.".concat(i)),zt[i].then((e=>{var t;return(null===e||void 0===e||null===(t=e.common)||void 0===t?void 0:t.icon)&&l("../../adapter/".concat(i,"/").concat(e.common.icon))})))}),[i,o]),i)return(0,$.jsx)("img",{onClick:e=>n&&n(e),src:r||"",className:s,alt:""});{const e=Mt[t||"Help"];return(0,$.jsx)(e,{className:s,onClick:e=>n&&n(e)})}};Pt.defaultProps={className:null,iconName:"Help"};const Ft=Pt,Bt=e=>{let{name:t,id:s,active:a,icon:i,adapter:o,socket:n,onDoubleClick:r,title:l,onTouchMove:c}=e;return(0,$.jsxs)("div",{onDoubleClick:r,onTouchMove:c,title:y.I18n.t(l),className:y.Utils.clsx(Ot,a&&_t,"block-"+s),children:[(0,$.jsx)(Ft,{iconName:i,className:Rt,adapter:o,socket:n}),(0,$.jsx)("span",{children:t?y.I18n.t(t):""})]},s)};Bt.defaultProps={name:"",active:!1,id:"",onDoubleClick:()=>{}};const Lt=Bt,Ut="style_cardStyle__5c+lG",Wt="style_cardStyleActive__n6Nq8",Zt="style_controlMenu__J0sIm",Vt="style_closeBtn__TzVMw",Jt="style_isDelete__0Sa6U",qt="style_drag_mobile__RVp7B";function Ht(e,t,s){let a;return"actions"===e?(a={...t,[e]:{...t[e],[s]:[...t[e][s]]}},a):(a={...t,[e]:[...t[e]]},a)}function Gt(e,t,s,a){switch(e){case"actions":case"conditions":return t[e][s]=t[e][s].filter((e=>e._id!==a)),t;default:return t[e]=t[e].filter((e=>e._id!==a)),t}}const Yt={cardStyle:"style_cardStyle__A9pAJ",nameCard:"style_nameCard__m2nJe",cardStyleActive:"style_cardStyleActive__sMSgj",iconThemCard:"style_iconThemCard__wx6Kq",iconThemCardSelectable:"style_iconThemCardSelectable__H9okn",iconHelp:"style_iconHelp__iIi1g",inputCard:"style_inputCard__qf8Q+",blockName:"style_blockName__CqwBy",controlMenu:"style_controlMenu__8kQnd",closeBtn:"style_closeBtn__LcbOd",controlMenuTop:"style_controlMenuTop__AkzEp",debugInfo:"style_debugInfo__wPdyv",fadeIn:"style_fadeIn__zKsCh",tagCard:"style_tagCard__CEY-X",displayFlex:"style_displayFlex__5sr+i",blockMarginTop:"style_blockMarginTop__Qn7Lh",nameBlock:"style_nameBlock__MZ53S",frontText:"style_frontText__3cVcg",backText:"style_backText__sF8Y-",iconTag:"style_iconTag__2cpM6",displayItalic:"style_displayItalic__9KtQw"};var Kt=s(95857),Qt=s(31238),Xt=s(32548),$t=s(70810);const es="style_root__h6PjP",ts="style_square__ahzCN",ss="style_icon__jwNl0",as=e=>{let{fullWidth:t,size:s,onClick:a,style:i,className:o,value:n,square:r,icon:l}=e;return(0,$.jsx)(ot.Button,{variant:"outlined",color:"primary",onClick:a,fullWidth:t,style:i,className:y.Utils.clsx(es,o,r?ts:""),margin:"normal",size:s,children:l?(0,$.jsx)(y.Icon,{className:ss,src:l}):n})};as.defaultProps={value:"",className:null,variant:"standard",size:"medium",fullWidth:!1,square:!1};const is=as,os="style_root__8DT4l",ns=e=>{let{size:t,value:s,style:i,title:o,onChange:n,className:r,customValue:l,disabled:c}=e;const[d,u]=(0,a.useState)(!1);return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(ot.Checkbox,{disabled:c,checked:Boolean(l?s:d),className:y.Utils.clsx(os,r),onChange:e=>{l&&u(e.target.checked),n(e.target.checked)},size:t}),o||null]})};ns.defaultProps={value:!1,disabled:!1,type:null,error:"",className:null,table:!1,native:{},variant:"standard",size:"medium",component:null,styleComponentBlock:null,onChange:()=>{},fullWidth:!1,autoComplete:"",customValue:!1,label:"all"};const rs=(0,a.memo)(ns),ls={root:"style_root__WINKv"},cs=e=>{let{autoFocus:t,fullWidth:s,disabled:i,multiline:o,rows:n,autoComplete:r,label:l,error:c,size:d,variant:u,value:p,type:h,style:m,onChange:g,className:b,customValue:v,icon:f}=e;const[S,x]=(0,a.useState)("");return(0,$.jsx)(ot.TextField,{error:!!c,autoFocus:t,fullWidth:s,label:l,disabled:i,variant:u,multiline:o,rows:n,value:v?p:S,type:h,helperText:c,style:m,className:y.Utils.clsx(ls.root,b),autoComplete:r,onChange:e=>{!v&&x(e.target.value),g(e.target.value)},InputProps:{endAdornment:f?(0,$.jsx)(xe.Z,{position:"end",children:(0,$.jsx)(y.Icon,{className:ls.icon,src:f})}):null},margin:"normal",size:d})};cs.defaultProps={value:"",type:"text",error:"",className:null,table:!1,native:{},variant:"standard",size:"medium",component:null,styleComponentBlock:null,onChange:()=>{},fullWidth:!1,autoComplete:"",customValue:!1,autoFocus:!1,rows:1};const ds=cs,us=(0,u.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"}}})(ot.FormControl),ps=e=>{let{multiple:t,value:s,customValue:i,socket:o,title:n,attr:r,adapter:l,style:c,onChange:d,className:u,onInstanceHide:p}=e;const[h,m]=(0,a.useState)(s||"test1"),[g,b]=(0,a.useState)([]);return(0,a.useEffect)((()=>{o&&o.getAdapterInstances(l).then((e=>{const t=e.map((e=>({value:e._id.replace("system.adapter.",""),title:e._id.replace("system.adapter.","")})));1===t.length?p(t[0].value):t.unshift({value:l,title:y.I18n.t("All")}),b(t)}))}),[o,l,p]),(0,$.jsxs)(us,{className:u,fullWidth:!0,style:c,children:[(0,$.jsx)(ot.Select,{variant:"standard",value:(i?s:h)||"_",fullWidth:!0,multiple:t,renderValue:e=>t&&e.join?e.join(", "):e,onChange:e=>{!i&&m(e.target.value),d(e.target.value)},input:r?(0,$.jsx)(ot.Input,{name:r,id:r+"-helper"}):(0,$.jsx)(ot.Input,{name:r}),children:g.map((e=>(0,$.jsxs)(ot.MenuItem,{style:{placeContent:"space-between"},value:e.value||"_",children:[y.I18n.t(e.title),e.title2&&(0,$.jsx)("div",{children:e.title2})]},"key-"+e.value)))}),(0,$.jsx)(ot.FormHelperText,{children:y.I18n.t(n)})]})};ps.defaultProps={value:"",className:null,table:!1,customValue:!1};const hs=ps,ms="style_modalWrapper__VUeGq",gs="style_modalDialog__MI8Ka";var bs=s(18181);const ys=e=>{let{open:t,onClose:s,children:i,titleButtonApply:o,titleButtonClose:n,onApply:r,className:l,textInput:c,defaultValue:d}=e,[u,p]=(0,a.useState)(d);return(0,$.jsxs)(ot.Dialog,{open:t,maxWidth:"md",disableEscapeKeyDown:!1,onClose:s,classes:{paper:gs},className:ms,children:[(0,$.jsxs)(ot.DialogContent,{children:[c&&(0,$.jsx)(ds,{className:l,autoComplete:"off",fullWidth:!0,variant:"outlined",size:"medium",rows:10,multiline:!0,value:u,onChange:p,customValue:!0}),!c&&i]}),(0,$.jsxs)(ot.DialogActions,{children:[(0,$.jsx)(W.Z,{onClick:()=>r(c?u:null),variant:"contained",color:"primary",children:bs.default.t(o)}),(0,$.jsx)(W.Z,{color:"grey",onClick:s,variant:"contained",children:bs.default.t(n)})]})]})};ys.defaultProps={open:!1,onApply:()=>{},onClose:()=>{},titleButtonClose:"Cancel",titleButtonApply:"Ok"};const vs=ys,fs="style_root__AZ3ER",Ss=e=>{let{multiple:t,value:s,customValue:i,title:o,attr:n,options:r,style:l,onChange:c,className:d,doNotTranslate:u,doNotTranslate2:p}=e;const[h,m]=(0,a.useState)(void 0===s?r[0].value:s),g=i?s:h,b=""===g||null===g||void 0===g?"_":g;return(0,$.jsxs)(ot.FormControl,{variant:"standard",className:y.Utils.clsx(fs,d),fullWidth:!0,style:l,children:[(0,$.jsxs)(ot.Select,{variant:"standard",value:b,fullWidth:!0,multiple:t,renderValue:e=>{if(t&&e.join){e.sort();let t=e.indexOf("0");-1!==t&&(e.splice(t,1),e.push("0")),t=e.indexOf("_"),-1!==t&&(e.splice(t,1),e.unshift("_"));const s=r.find((e=>e.only));if(e.includes(s.value))return s.titleShort?u?s.titleShort:y.I18n.t(s.titleShort):u?s.title:y.I18n.t(s.title);return e.map((e=>r.find((t=>t.value===e||"_"===e&&""===t.value))||e)).map((e=>"object"===typeof e?e.titleShort?u?e.titleShort:y.I18n.t(e.titleShort):u?e.title:y.I18n.t(e.title):u?e:y.I18n.t(e))).join(", ")}{const t=r?r.find((t=>t.value===e||"_"===e&&""===t.value)):null;return null!==t&&void 0!==t&&t.title?u?null===t||void 0===t?void 0:t.title:y.I18n.t(null===t||void 0===t?void 0:t.title):e}},onChange:e=>{if(!i&&m(e.target.value),t){const t=r.find((e=>e.only));if(t){const s=t.value;if(e.target.value.length===r.length-1&&e.target.value.includes(s))return c(e.target.value.filter((e=>e!==s)),n);if(e.target.value.includes(s))return c(r.map((e=>e.value)),n)}}c(e.target.value,n)},input:n?(0,$.jsx)(ot.Input,{name:n,id:"".concat(n,"-helper")}):(0,$.jsx)(ot.Input,{name:n}),children:[!t&&r&&r.map((e=>(0,$.jsxs)(ot.MenuItem,{style:{placeContent:"space-between"},value:""===e.value||null===e.value||void 0===e.value?"_":e.value,children:[u?e.title:y.I18n.t(e.title),e.title2&&(0,$.jsx)("div",{children:p?e.title2:y.I18n.t(e.title2)})]},"key-".concat(e.value)))),t&&r&&r.map((e=>(0,$.jsxs)(ot.MenuItem,{style:{placeContent:"space-between"},value:e.value||"_",children:[u?e.title:y.I18n.t(e.title)," ",(0,$.jsx)(rs,{customValue:!0,value:s.includes(e.value)})]},"key-".concat(e.value))))]}),o?(0,$.jsx)(ot.FormHelperText,{children:y.I18n.t(o)}):null]})};Ss.defaultProps={value:"",className:null,table:!1,customValue:!1,multiple:!1};const xs=Ss,ks="style_root__BGOBc",ws="style_mark__MLqoT",Cs=e=>{let{fullWidth:t,autoComplete:s,label:i,error:o,size:n,variant:r,value:l,type:c,style:d,onChange:u,className:p,customValue:h,min:m,max:g,step:b,unit:v}=e;const[f,S]=(0,a.useState)(0);m=void 0!==m?m:0,g=void 0!==g?g:0,b=void 0!==b?b:(g-m)/100;const x=[{value:m,label:m+(v||"")},{value:g,label:g+(v||"")}];return(0,$.jsx)(ot.Slider,{defaultValue:h?l:f,"aria-labelledby":"discrete-slider",valueLabelDisplay:"auto",classes:{mark:ws},marks:x,step:b,min:m,max:g,error:o||"",label:i,variant:r,value:h?l:f,type:c,style:d,className:y.Utils.clsx(ks,p),autoComplete:s,onChange:(e,t)=>{!h&&S(t),u(t)},margin:"normal",size:n})};Cs.defaultProps={value:"",type:"text",error:"",className:null,table:!1,native:{},variant:"standard",size:"medium",component:null,styleComponentBlock:null,onChange:()=>{},fullWidth:!1,autoComplete:"",customValue:!1};const js=Cs,Is="style_root__anA9+",Ts=e=>{let{label:t,size:s,value:i,style:o,onChange:n,className:r,customValue:l}=e;const[c,d]=(0,a.useState)(!1);return(0,$.jsx)(ot.FormControlLabel,{className:Is,control:(0,$.jsx)(ot.Switch,{checked:l?i:c,style:o,className:r,onChange:e=>{l||d(e.target.checked),n(e.target.checked)},size:s}),label:t})};Ts.defaultProps={value:!1,type:"text",error:"",className:null,table:!1,native:{},variant:"standard",size:"medium",component:null,styleComponentBlock:null,onChange:()=>{},fullWidth:!1,autoComplete:"",customValue:!1,label:"all"};const Ds=(0,a.memo)(Ts),As="style_root__xyxno",Ns=e=>{let{value:t,style:s,onChange:a,className:i}=e;return(0,$.jsx)(ot.TextField,{variant:"standard",id:"time",type:"time",onChange:e=>a(e.currentTarget.value),value:t,className:y.Utils.clsx(As,i),fullWidth:!0,style:s,InputLabelProps:{shrink:!0},inputProps:{step:300}})};Ns.defaultProps={value:"",className:null,table:!1};const Es=Ns,Os="style_root__FwemI",_s=[31,29,31,30,31,30,31,31,30,31,30,31],Rs=e=>{let{value:t,onChange:s,className:a,title:i,style:o}=e,[n,r]=(t||"01.01").toString().split(".");r=parseInt(r,10)||0,n=parseInt(n,10)||0,n>12?n=12:n<0&&(n=0),r>_s[n]?r=_s[n]:r<0&&(r=0);let l=[];for(let c=0;c<_s[n];c++)l.push(c+1);return(0,$.jsxs)("div",{children:[(0,$.jsx)(ot.FormControl,{variant:"standard",className:y.Utils.clsx(Os,a),style:o,children:(0,$.jsxs)(ot.Select,{variant:"standard",className:y.Utils.clsx(Os,a),margin:"dense",label:y.I18n.t("Month"),onChange:e=>s("".concat(e.target.value.toString().padStart(2,"0"),".").concat(r.toString().padStart(2,"0"))),value:n,children:[(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:0,children:y.I18n.t("Any month")},0),(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:1,children:y.I18n.t("January")},1),(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:2,children:y.I18n.t("February")},2),(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:3,children:y.I18n.t("March")},3),(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:4,children:y.I18n.t("April")},4),(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:5,children:y.I18n.t("May")},5),(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:6,children:y.I18n.t("June")},6),(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:7,children:y.I18n.t("July")},7),(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:8,children:y.I18n.t("August")},8),(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:9,children:y.I18n.t("September")},9),(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:10,children:y.I18n.t("October")},10),(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:11,children:y.I18n.t("November")},11),(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:12,children:y.I18n.t("December")},12)]})}),(0,$.jsx)(ot.FormControl,{variant:"standard",className:y.Utils.clsx(Os,a),style:o,children:(0,$.jsxs)(ot.Select,{variant:"standard",className:y.Utils.clsx(Os,a),margin:"dense",label:y.I18n.t("Date"),onChange:e=>s("".concat(n.toString().padStart(2,"0"),".").concat(e.target.value.toString().padStart(2,"0"))),value:r,children:[(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:0,children:y.I18n.t("Any")},"A"),l.map((e=>(0,$.jsx)(ot.MenuItem,{style:{placeContent:"space-between"},value:e,children:e},e)))]})})]})};Rs.defaultProps={value:"",className:null};const Ms=Rs;let zs;const Ps={getName:e=>(zs=zs||y.I18n.getLanguage(),"object"===typeof e?e[zs]||e.en:e)},Fs=0,Bs=1,Ls=2,Us=3,Ws=4,Zs=5,Vs=6,Js=7,qs=8,Hs=[{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"}];class Gs extends a.PureComponent{constructor(e,t){super(e),this.renderText=(e,t,s)=>{const{className:i}=this.props,{attr:o,frontText:n,backText:r,nameBlock:l,name:c,doNotTranslate:d,doNotTranslateBack:u}=e;return(0,$.jsxs)(a.Fragment,{children:[(0,$.jsxs)("div",{className:y.Utils.clsx(Yt.displayFlex,Yt.blockMarginTop),children:[n&&(0,$.jsx)("div",{className:Yt.frontText,children:d?n:y.I18n.t(n)}),(0,$.jsx)(ds,{className:i,autoComplete:"off",label:Ps.getName(c),variant:"outlined",size:"small",fullWidth:!0,value:t,onChange:s,customValue:!0}),r&&(0,$.jsx)("div",{className:Yt.backText,children:u?r:y.I18n.t(r)})]}),l&&(0,$.jsx)("div",{className:Yt.nameBlock,children:y.I18n.t(l)})]},o)},this.renderSwitch=(e,t,s)=>{const{className:a}=this.props,{attr:i,frontText:o,backText:n,nameBlock:r,doNotTranslate:l,doNotTranslateBack:c}=e;return(0,$.jsxs)("div",{children:[(0,$.jsxs)("div",{className:y.Utils.clsx(Yt.displayFlex,Yt.blockMarginTop),children:[o&&(0,$.jsx)("div",{className:Yt.frontText,children:l?o:y.I18n.t(o)}),(0,$.jsx)(Ds,{className:a,label:"",customValue:!0,value:t,onChange:s}),n&&(0,$.jsx)("div",{className:Yt.backText,children:c?n:y.I18n.t(n)})]}),r&&(0,$.jsx)("div",{className:Yt.nameBlock,children:y.I18n.t(r)})]},i)},this.renderNameText=(e,t)=>{let{attr:s,signature:a,doNotTranslate:i,defaultValue:o}=e;return(0,$.jsx)("div",{className:y.Utils.clsx(a?Yt.displayItalic:Yt.displayFlex,Yt.blockMarginTop),children:t?i?t:y.I18n.t(t):i?o:y.I18n.t(o)},s)},this.renderNumber=(e,t,s)=>{const{className:a}=this.props,{settings:i}=this.state,{attr:o,backText:n,frontText:r,openCheckbox:l,doNotTranslate:c,doNotTranslateBack:d}=e;let u=!0;return l&&(u="boolean"!==typeof i.offset||i.offset),u?(0,$.jsxs)("div",{className:y.Utils.clsx(Yt.displayFlex,Yt.blockMarginTop),children:[r&&(0,$.jsx)("div",{className:Yt.frontText,children:c?r:y.I18n.t(r)}),(0,$.jsx)(ds,{className:y.Utils.clsx(a,e.className),fullWidth:!0,autoComplete:"off",label:e.noHelperText?"":"number",variant:"outlined",size:"small",type:"number",value:t,onChange:s,customValue:!0}),n&&(0,$.jsx)("div",{className:Yt.backText,children:d?n:y.I18n.t(n)})]},o):null},this.renderColor=(e,t,s)=>{const{className:a}=this.props,{attr:i,backText:o,frontText:n,doNotTranslate:r,doNotTranslateBack:l}=e;return(0,$.jsxs)("div",{className:y.Utils.clsx(Yt.displayFlex,Yt.blockMarginTop),children:[n&&(0,$.jsx)("div",{className:Yt.frontText,children:r?n:y.I18n.t(n)}),(0,$.jsx)(ds,{className:a,autoComplete:"off",fullWidth:!0,variant:"outlined",size:"small",type:"color",value:t,onChange:s}),o&&(0,$.jsx)("div",{className:Yt.backText,children:l?o:y.I18n.t(o)})]},i)},this.renderCheckbox=(e,t,s)=>{const{className:a}=this.props,{settings:i}=this.state,{attr:o,backText:n,frontText:r,defaultValue:l,doNotTranslate:c,doNotTranslateBack:d}=e;return(0,$.jsxs)("div",{className:Yt.displayFlex,children:[r&&(0,$.jsx)("div",{className:Yt.frontText,children:c?r:y.I18n.t(r)}),(0,$.jsx)(rs,{className:a,size:"small",style:{marginRight:5},value:"boolean"===typeof i[o]?i[o]:l,customValue:!0,onChange:s}),n&&(0,$.jsx)("div",{onClick:()=>s("boolean"===typeof i[o]?!i[o]:!l),className:Yt.backText,children:d?n:y.I18n.t(n)})]},o)},this.renderSlider=(e,t,s)=>{const{className:a}=this.props,{attr:i,frontText:o,backText:n,nameBlock:r,min:l,max:c,step:d,unit:u,doNotTranslate:p,doNotTranslateBack:h}=e;return(0,$.jsxs)("div",{children:[(0,$.jsxs)("div",{className:Yt.displayFlex,style:{marginRight:20},children:[o&&(0,$.jsx)("div",{className:Yt.frontText,children:p?o:y.I18n.t(o)}),(0,$.jsx)(js,{customValue:!0,min:l,max:c,step:d,unit:u,className:a,autoComplete:"off",label:"number",variant:"outlined",size:"small",value:t,onChange:e=>{console.log(e),s(e)}}),n&&(0,$.jsx)("div",{style:{marginLeft:20},className:Yt.backText,children:h?n:y.I18n.t(n)})]}),r&&(0,$.jsx)("div",{className:Yt.nameBlock,children:y.I18n.t(r)})]},i)},this.renderButton=(e,t,s)=>{const{className:a}=this.props,{attr:i,frontText:o,backText:n,buttonText:r,doNotTranslate:l,doNotTranslateBack:c}=e;return(0,$.jsxs)("div",{className:y.Utils.clsx(Yt.displayFlex,Yt.blockMarginTop),children:[o&&(0,$.jsx)("div",{className:Yt.frontText,children:l?o:y.I18n.t(o)}),(0,$.jsx)(is,{label:r,fullWidth:!0,value:t,className:a,onClick:s}),n&&(0,$.jsx)("div",{className:Yt.backText,children:c?n:y.I18n.t(n)})]},i)},this.findIcon=e=>{var t;if(!e)return Promise.resolve(null);if(null!==(t=e.common)&&void 0!==t&&t.icon)return Promise.resolve((0,$t.getSelectIdIcon)(e,"../.."));if("state"===e.type||"channel"===e.type){const t=e._id.split(".");t.pop();const s=t.join(".");return this.props.socket.getObject(s).then((e=>this.findIcon(e))).catch((()=>null))}},this.renderObjectID=(e,t,s)=>{const{attr:a,openCheckbox:i,checkReadOnly:o}=e,{settings:n}=this.state,r=this.state["showSelectId".concat(a)],{className:l,socket:c}=this.props;let d=!0;return i&&(d="boolean"!==typeof n.offset||n.offset),n[a]&&!this.state[n[a]]&&setTimeout((()=>{c.getObject(t).then((e=>{this.findIcon(e).then((t=>{var s;return this.setState({[n[a]]:e,["".concat(n[a],"___icon")]:t,error:o&&this.lastObjectIdChange&&Date.now()-this.lastObjectIdChange<1e3&&!1===(null===e||void 0===e||null===(s=e.common)||void 0===s?void 0:s.write)?y.I18n.t("Read only ID selected: %s",n[a]):""})}))}))}),0),d?(0,$.jsxs)("div",{className:Yt.blockMarginTop,children:[(0,$.jsxs)("div",{className:Yt.displayFlex,children:[e.title?(0,$.jsx)("div",{children:y.I18n.t(e.title)}):null,(0,$.jsx)(ds,{className:l,autoComplete:"off",fullWidth:!0,disabled:!0,variant:"outlined",size:"small",value:t,customValue:!0}),(0,$.jsx)(is,{icon:this.state["".concat(this.state.settings[e.attr],"___icon")],square:!0,style:{marginLeft:7},value:"...",className:l,onClick:()=>{const e={};e["showSelectId".concat(a)]=!0,this.setState(e)}})]}),this.state[this.state.settings[e.attr]]&&(0,$.jsx)("div",{className:y.Utils.clsx(Yt.nameBlock,Yt.displayItalic),children:y.Utils.getObjectNameFromObj(this.state[n[a]],y.I18n.getLanguage())}),r?(0,$.jsx)(Qt.default,{imagePrefix:"../..",dialogName:"javascript",themeType:y.Utils.getThemeName(),socket:c,statesOnly:!0,selected:t,onClose:()=>{const e={};e["showSelectId".concat(a)]=!1,this.setState(e)},onOk:(e,t,i)=>{const o={};o["showSelectId".concat(a)]=!1,this.setState(o,(()=>c.getObject(e).then((t=>{this.lastObjectIdChange=Date.now(),s({[a]:e,["".concat(a,"Role")]:t.common.role,["".concat(a,"Type")]:t.common.type,["".concat(a,"Unit")]:t.common.unit,["".concat(a,"States")]:t.common.states,["".concat(a,"Min")]:t.common.min,["".concat(a,"Max")]:t.common.max,["".concat(a,"Step")]:t.common.step,["".concat(a,"Def")]:t.common.def,["".concat(a,"Write")]:t.common.write,["".concat(a,"Read")]:t.common.read},null,(()=>this.props.setOnUpdate&&this.props.setOnUpdate(!0)))}))))}}):null]},a):null},this.renderIconTag=()=>(0,$.jsx)("div",{className:Yt.iconTag,onClick:e=>{this.state.settings.tagCard&&(this.state.tagCardArray.length<3?this.onChangeTag():this.setState({openTagMenu:e.currentTarget}))},children:this.state.settings.tagCard}),this.renderTime=(e,t,s)=>{const{attr:a,backText:i,frontText:o,doNotTranslate:n,doNotTranslateBack:r}=e;return(0,$.jsxs)("div",{className:Yt.displayFlex,style:{whiteSpace:"nowrap"},children:[o&&(0,$.jsx)("div",{className:Yt.frontText,children:n?o:y.I18n.t(o)}),(0,$.jsx)(Es,{value:t,onChange:s}),i&&(0,$.jsx)("div",{className:Yt.backText,children:r?i:y.I18n.t(i)})]},a)},this.renderSelect=(e,t,s)=>{const{className:a}=this.props,{name:i,options:o,frontText:n,backText:r,attr:l,multiple:c,doNotTranslate:d,doNotTranslate2:u,doNotTranslateBack:p}=e;return(0,$.jsxs)("div",{className:y.Utils.clsx(Yt.displayFlex,Yt.blockMarginTop),style:{whiteSpace:"nowrap"},children:[n&&(0,$.jsx)("div",{className:Yt.frontText,children:y.I18n.t(n)}),(0,$.jsx)(xs,{attr:l,doNotTranslate:d,doNotTranslate2:u,title:i,className:a,options:o,value:t,onChange:s,multiple:c,customValue:!0}),r&&(0,$.jsx)("div",{className:Yt.backText,children:p?r:y.I18n.t(r)})]},l)},this.renderInstance=(e,t,s)=>{const{className:a,socket:i}=this.props,{name:o,options:n,frontText:r,backText:l,attr:c,adapter:d,doNotTranslate:u,doNotTranslateBack:p}=e;return this.state.hideAttributes.includes(c)?null:(0,$.jsxs)("div",{className:y.Utils.clsx(Yt.displayFlex,Yt.blockMarginTop),style:{whiteSpace:"nowrap"},children:[r&&(0,$.jsx)("div",{className:Yt.frontText,children:u?r:y.I18n.t(r)}),(0,$.jsx)(hs,{attr:c,socket:i,adapter:d,title:o,className:a,options:n,value:t,onChange:s,customValue:!0,onInstanceHide:e=>this.setState({hideAttributes:[...this.state.hideAttributes,c]},(()=>s(e)))}),l&&(0,$.jsx)("div",{className:Yt.backText,children:p?l:y.I18n.t(l)})]},c)},this.renderDialog=(e,t,s)=>{const{onShowDialog:a,frontText:i,backText:o,attr:n,icon:r,doNotTranslate:l,doNotTranslateBack:c}=e;return(0,$.jsxs)("div",{className:y.Utils.clsx(Yt.displayFlex,Yt.blockMarginTop),style:{whiteSpace:"nowrap"},children:[i&&(0,$.jsx)("div",{className:Yt.frontText,children:l?i:y.I18n.t(i)}),(0,$.jsx)(Ft,{iconName:r,className:y.Utils.clsx(Yt.iconDialog),onClick:e=>a&&a()}),o&&(0,$.jsx)("div",{className:Yt.backText,children:c?o:y.I18n.t(o)})]},n)},this.renderModalInput=(e,t,s)=>{const{openModal:a}=this.state,{className:i}=this.props,{attr:o,nameBlock:n,frontText:r,backText:l,noTextEdit:c,doNotTranslate:d,doNotTranslateBack:u}=e;return(0,$.jsxs)("div",{children:[(0,$.jsxs)("div",{className:y.Utils.clsx(Yt.displayFlex,Yt.blockMarginTop),children:[r&&(0,$.jsx)("div",{className:Yt.frontText,children:d?r:y.I18n.t(r)}),(0,$.jsx)(ds,{disabled:!!c,className:i,autoComplete:"off",fullWidth:!0,variant:"outlined",size:"small",value:t,onChange:s,customValue:!0}),(0,$.jsx)(is,{square:!0,style:{marginLeft:5},value:"...",className:i,onClick:()=>this.setState({openModal:!0})}),l&&(0,$.jsx)("div",{className:Yt.backText,children:u?l:y.I18n.t(l)})]}),a?(0,$.jsx)(vs,{open:!0,onApply:e=>this.setState({openModal:!1},(()=>null!==e&&void 0!==e&&s(e))),onClose:()=>this.setState({openModal:!1}),defaultValue:t,textInput:!0}):null,n&&(0,$.jsx)("div",{className:Yt.nameBlock,children:y.I18n.t(n)})]},o)},this.renderDate=(e,t,s)=>{const{attr:a,backText:i,frontText:o,doNotTranslate:n,doNotTranslateBack:r}=e;return(0,$.jsxs)("div",{className:Yt.displayFlex,style:{whiteSpace:"nowrap"},children:[o&&(0,$.jsx)("div",{className:Yt.frontText,children:n?o:y.I18n.t(o)}),(0,$.jsx)(Ms,{value:t,onChange:s}),i&&(0,$.jsx)("div",{className:Yt.backText,children:r?i:y.I18n.t(i)})]},a)},this.renderTags=()=>{let{tagCardArray:e,openTagMenu:t}=this.state,{tagCard:s}=this.state.settings,a="="!==s&&"<>"!==s&&">="!==s&&"()"!==s&&"."!==s&&"<="!==s&&"<"!==s&&">"!==s?y.I18n.t(s):s;return e.length>=3&&(a=(0,$.jsxs)("div",{children:[(0,$.jsx)("div",{"aria-controls":"simple-menu","aria-haspopup":"true",onClick:e=>{this.setState({openTagMenu:e.currentTarget},(()=>{this.props.isTourOpen&&this.props.tourStep===Ls&&setTimeout((()=>this.props.setTourStep(Us)),300)}))},children:a}),(0,$.jsx)(ot.Menu,{id:"simple-menu",anchorEl:t,keepMounted:!0,open:Boolean(t),onClose:()=>this.setState({openTagMenu:null}),children:e.map((e=>{let t=e;return"string"!==typeof e&&(t=e.title),(0,$.jsxs)(ot.MenuItem,{selected:t===s,className:"tag-card-"+t,style:{placeContent:"space-between"},onClick:()=>{const e={...this.state.settings,tagCard:t};this.setState({openTagMenu:null,settings:e},(()=>{this.props.onChange(e),this.onTagChange(t)})),this.props.isTourOpen&&(this.props.tourStep===Ls||this.props.tourStep===Us)&&"interval"===t&&setTimeout((()=>this.props.setTourStep(Ws)),500)},children:[-1!==t.search(/>|<|<>|<=|>=|=/)?t:y.I18n.t(t),"string"!==typeof e&&e.title2&&(0,$.jsx)("div",{style:{marginLeft:4},children:y.I18n.t(e.title2)})]},t)}))})]})),a},this.onChangeTag=()=>{const{tagCardArray:e,settings:t,settings:{tagCard:s}}=this.state;let a=[...e];if("string"!==typeof a[0]&&(a=a.map((e=>e.title))),s&&a.length<3){const e={...t},i=a[(a.indexOf(s)+1)%a.length];e.tagCard=i,this.setState({settings:e},(()=>{this.props.onChange(e),this.onTagChange(i)}))}},this.componentDidMount=()=>{this.onTagChange()},this.componentDidUpdate=e=>{"triggers"!==this.props.acceptedBy&&this.props.onUpdate&&setTimeout((()=>this.onUpdate()),0)},this.onChangeInput=e=>(t,s,a)=>{const i=JSON.parse(JSON.stringify(this.state.settings));"object"!==typeof t||s&&"function"!==typeof s?i[s||e]=t:Object.keys(t).forEach((e=>i[e]=t[e])),i.id=this.getData().id,i._id=this.props._id,this.setState({settings:i},(()=>{this.onValueChanged(t,s||e),this.props.onChange(i),a&&a()}))},this.render=()=>{const{inputs:e,name:t,icon:s,iconTag:i,settings:o,adapter:n,settings:{tagCard:r},helpDialog:l}=this.state,{socket:c,notFound:d}=this.props;return(0,$.jsxs)(a.Fragment,{children:[i?this.renderIconTag():(0,$.jsx)(Ft,{iconName:s,className:y.Utils.clsx(Yt.iconThemCard,r&&this.state.tagCardArray.length&&Yt.iconThemCardSelectable),adapter:n,socket:c,onClick:e=>{r&&(this.state.tagCardArray.length<3?this.onChangeTag():this.setState({openTagMenu:e.currentTarget}))}}),(0,$.jsxs)("div",{className:Yt.blockName,children:[(0,$.jsxs)("span",{className:Yt.nameCard,children:[y.I18n.t(t),d?y.I18n.t("%s not found",o.id):"",l?(0,$.jsx)(I.Z,{className:Yt.iconHelp,size:"small",onClick:()=>this.setState({helpText:y.I18n.t(l)}),children:(0,$.jsx)(Kt.Z,{})}):null]}),e.filter((e=>{let{nameRender:t}=e;return this[t]})).map((e=>{const{nameRender:t,defaultValue:s,attr:a,options:i}=e;return this[t](e,void 0!==o[a]?o[a]:s,this.onChangeInput(a),i||[])}))]}),r&&(0,$.jsx)("div",{className:Yt.controlMenuTop,style:{opacity:1,height:22,top:-22},children:(0,$.jsx)("div",{onClick:()=>this.onChangeTag(),className:y.Utils.clsx(Yt.tagCard,"tag-card"),children:this.renderTags()})}),this.renderDebugInfo(),this.state.error?(0,$.jsx)(Xt.default,{title:y.I18n.t("Warning"),text:this.state.error,onClose:()=>this.setState({error:""})}):null,this.state.helpText?(0,$.jsx)(g.default,{title:y.I18n.t("Instructions"),text:this.state.helpText,onClose:()=>this.setState({helpText:""})}):null,this.renderSpecific()]})},t=t||{};let s=e.settings||{tagCard:t.tagCardArray?"string"!==typeof t.tagCardArray[0]?t.tagCardArray[0].title:t.tagCardArray[0]:""};!s.tagCard&&t.tagCardArray&&(s.tagCard="string"!==typeof t.tagCardArray[0]?t.tagCardArray[0].title:t.tagCardArray[0]),this.state={inputs:t.inputs||e.inputs||[],name:t.name||e.name||"",icon:t.icon||e.icon||"",adapter:t.adapter||e.adapter||"",helpDialog:t.helpDialog||e.helpDialog||"",tagCardArray:t.tagCardArray||[],openTagMenu:!1,openModal:!1,iconTag:!1,error:"",helpText:"",oid:{},instanceSelectionOptions:[],instanceSelectionDef:"",hideAttributes:[],settings:s,debugMessage:null,enableSimulation:this.props.enableSimulation},this.debugHideTimeout=null}UNSAFE_componentWillReceiveProps(e){if(!e||!e.settings)return void console.log(JSON.stringify(e));const t=JSON.parse(JSON.stringify(e.settings));!t.tagCard&&this.state.tagCardArray&&this.state.tagCardArray.length&&(t.tagCard="string"!==typeof this.state.tagCardArray[0]?this.state.tagCardArray[0].title:this.state.tagCardArray[0]);let s=null;e.onDebugMessage&&e.onDebugMessage.blockId===this.props._id&&(s={},s.debugMessage=JSON.parse(JSON.stringify(e.onDebugMessage)),this.debugHideTimeout&&clearTimeout(this.debugHideTimeout),this.debugHideTimeout=setTimeout((()=>this.setState({debugMessage:null})),e.onDebugMessage.hideTimeout||5e3)),JSON.stringify(t)!==JSON.stringify(this.state.settings)&&(s=s||{},s.settings=t),this.state.enableSimulation!==e.enableSimulation&&(s=s||{},s.enableSimulation=e.enableSimulation),s&&this.setState(s)}componentWillUnmount(){this.debugHideTimeout&&clearTimeout(this.debugHideTimeout),this.debugHideTimeout=null}onTagChange(e,t){let s=!1,a=JSON.parse(JSON.stringify(this.state.settings));this.state.inputs.forEach((e=>{e.attr&&void 0!==e.defaultValue&&void 0===a[e.attr]&&(s=!0,a[e.attr]=e.defaultValue)})),s?(this.setState({settings:a},(()=>t&&t())),this.props.onChange(a)):t&&t()}onUpdate(){}onValueChanged(e,t){}static getReplacesInText(e){var t;let s="";return null!==(t=e.trigger)&&void 0!==t&&t.oidType?s=".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&&(s=".replace(/%s/g, ".concat(e.conditionsStates[0].name,').replace(/%id/g, "').concat(e.conditionsStates[0].id,'")')),s}renderSpecific(){return null}renderDebugInfo(){return this.state.debugMessage?(0,$.jsx)("div",{className:Yt.debugInfo,style:{opacity:1,height:22,bottom:-22},children:this.renderDebug?this.renderDebug(this.state.debugMessage):y.I18n.t("executed")},this.state.debugMessage.ts):null}}const Ys=Gs,Ks={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"}};class Qs extends Ys{constructor(e){super(e,Qs.getStaticData())}static compile(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(Ys.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'});")}renderDebug(e){return"".concat(y.I18n.t("Say:")," ").concat(e.data.text)}onTagChange(e){const t=y.I18n.getLanguage(),s=Object.keys(Ks).filter((e=>e.startsWith(t))).map((e=>({title:Ks[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:"}]},(()=>super.onTagChange(e)))}static getStaticData(){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"}}getData(){return Qs.getStaticData()}}const Xs=Qs;class $s extends Ys{constructor(e){super(e,$s.getStaticData())}static compile(e,t){return e.recipients?"// Send Email ".concat(e.text||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat((e.text||"").replace(/"/g,'\\"'),'"').concat(Ys.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(Ys.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'});")}renderDebug(e){return"".concat(y.I18n.t("Sent:")," ").concat(e.data.text)}onTagChange(e){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:"}]},(()=>super.onTagChange(e)))}static getStaticData(){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"}}getData(){return $s.getStaticData()}}const ea=$s;class ta extends Ys{constructor(e){super(e,ta.getStaticData()),this.cachePromises={}}static compile(e,t){let s=(e.text||"").replace(/"/g,'\\"');return s?"// Telegram ".concat(s||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat((s||"").replace(/"/g,'\\"'),'"').concat(Ys.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'});")}renderDebug(e){return"".concat(y.I18n.t("Sent:")," ").concat(e.data.text)}onValueChanged(e,t){"instance"===t&&this._setUsers(e)}_setUsers(e){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:"}]},(()=>super.onTagChange()));this.cachePromises[e].then((e=>{try{var t;(e=(e=(e=null!==(t=e)&&void 0!==t&&t.val?JSON.parse(e.val):null)&&Object.keys(e).map((t=>({title:e[t].userName||e[t].firstName,value:t}))))||[]).unshift({title:"all",value:""})}catch(s){e=[{title:"all",value:""}]}this.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:"}]},(()=>super.onTagChange()))}))}onTagChange(e){this._setUsers()}static getStaticData(){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"}}getData(){return ta.getStaticData()}}const sa=ta;class aa extends Ys{constructor(e){super(e,aa.getStaticData()),this.cachePromises={}}static compile(e,t){let s=(e.text||"").replace(/"/g,'\\"');return s?"// Pushover ".concat(e.text||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat(s,'"').concat(Ys.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(Ys.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'});")}renderDebug(e){return"Sent: ".concat(e.data.text)}onTagChange(e){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"}]}]},(()=>super.onTagChange()))}static getStaticData(){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"}}getData(){return aa.getStaticData()}}const ia=aa;class oa extends Ys{constructor(e){super(e,oa.getStaticData()),this.cachePromises={}}static compile(e,t){let s=(e.text||"").replace(/"/g,'\\"');return s?"// whatsapp ".concat(s||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat((s||"").replace(/"/g,'\\"'),'"').concat(Ys.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'});")}renderDebug(e){return"".concat(y.I18n.t("Sent:")," ").concat(e.data.text)}onTagChange(e){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)"}]},(()=>super.onTagChange()))}static getStaticData(){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"}}getData(){return oa.getStaticData()}}const na=oa;class ra extends Ys{constructor(e){super(e,ra.getStaticData()),this.cachePromises={}}static compile(e,t){let s=(e.text||"").replace(/"/g,'\\"');return s?"// Pushsafer ".concat(e.text||"","\n\t\tconst subActionVar").concat(e._id,' = "').concat(s,'"').concat(Ys.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(Ys.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'});")}renderDebug(e){return"Sent: ".concat(e.data.text)}onTagChange(e){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"}]}]},(()=>super.onTagChange()))}static getStaticData(){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"}}getData(){return ra.getStaticData()}}const la=ra,ca={triggers:[],conditions:[[]],justCheck:!1,actions:{then:[],else:[]}};function da(e,t,s){const a=[];let i=e.triggers;i.length||(i=[{id:"TriggerScriptSave"}]);const o=[];let n=[],r=e.conditions.find((e=>e.find((e=>"()"===e.tagCard))));i.forEach(((t,i)=>{const l=ua(t.id,s);if(l){const c={trigger:t,condition:{},justCheck:!r&&(e.justCheck||!e.conditions.length||!e.conditions[0].length),conditionsDebug:[],conditionsVars:[],conditionsStates:[]},d=l.compile(t,c),u=function(e,t,s){let a=[],i=0;return e&&e.forEach((e=>{if(e.hasOwnProperty("length")&&e.length){const o=[];o&&e.forEach((e=>{const a=ua(e.id,s);a&&(t.condition.index=i++,o.push(a.compile(e,t)))})),a.push("(".concat(o.join(") &&\n ("),")"))}else{const o=ua(e.id,s);o&&(t.condition.index=i++,a.push(o.compile(e,t)))}})),a.length?1===a.length?a[0]||"true":"(".concat(a.join(") || ("),")"):"true"}(e.conditions,c,s),p=pa(e.actions.then,c,s),h=pa(e.actions.else,c,s);o.push("cond".concat(i)),c.prelines&&c.prelines.length&&c.prelines.forEach((e=>n.push(e))),d.includes(" __%%CONDITIONS_VARS%%__")&&(c.conditionsVars=c.conditionsVars.map(((e,t)=>t?" ".concat(e):e)),c.conditionsDebug=c.conditionsDebug.map(((e,t)=>t?" ".concat(e):e))),a.push(d.replace("__%%CONDITIONS_VARS%%__",c.conditionsVars.join("\n")).replace('"__%%DEBUG_CONDITIONS%%__";',c.conditionsDebug.join("\n")).replace("__%%CONDITION%%__",u).replace("__%%THEN%%__",p||"// ignore").replace("__%%ELSE%%__",h||"// ignore").replace(/__%%STATE%%__/g,"cond"+i))}}));let l=a.join("\n\n");return e.justCheck&&!r||(l="".concat(o.map((e=>"let ".concat(e," = false;"))).join("\n"),"\n\n").concat(l)),n&&(l="".concat(n.join("\n"),"\n\n").concat(l)),l}function ua(e,t){return t.find((t=>t.getStaticData&&t.getStaticData().id===e))}function pa(e,t,s){let a=[];return e&&e.forEach((e=>{const i=ua(e.id,s);i&&a.push(i.compile(e,t))})),"\t\t".concat(a.join("\n\n\t\t"))||0}function ha(e,t){return da(e,0,t)}const ma={code2json:function(e){if(!e)return ca;{const s=e.split("\n");try{let e=s.pop().replace(/^\/\//,"");return e=JSON.parse(e),e.triggers||(e=ca),e}catch(t){return ca}}},json2code:function(e,t){let s="";return s+=ha(e,t),s+="\n/*\nconst demo = ".concat(JSON.stringify(e,null,2).replace(/\*\//g,"* /"),";\n*/\n"),"".concat(s,"\n//").concat(JSON.stringify(e))},compile:ha,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}'};class ga extends Ys{constructor(e){super(e,ga.getStaticData())}static compile(e){return ma.NO_FUNCTION.replace('"__%%DEBUG_TRIGGER%%__"',"_sendToFrontEnd(".concat(e._id,", {trigger: true})"))}renderDebug(){return bs.default.t("Triggered")}onTagChange(e){this.setState({inputs:[{nameRender:"renderNameText",defaultValue:"On script save or adapter start",attr:"script"}]},(()=>super.onTagChange()))}static getStaticData(){return{acceptedBy:"triggers",name:"Start script",id:"TriggerScriptSave",icon:"PlayArrow",title:"Triggers the on script saving or the javascript instance restart"}}getData(){return ga.getStaticData()}}const ba=ga;var ya=s(75801),va=s.n(ya),fa=s(22772),Sa=s(64101),xa=s(96404);class ka extends Ys{constructor(e){super(e,ka.getStaticData()),this.coordinates=null}static compile(e,t){let s="",a=t.justCheck?ma.STANDARD_FUNCTION_STATE:ma.STANDARD_FUNCTION_STATE_ONCHANGE;if(a=a.replace('"__%%DEBUG_TRIGGER%%__"',"_sendToFrontEnd(".concat(e._id,", {trigger: true})")),"interval"===e.tagCard)s="setInterval(".concat(a,", ").concat(e.interval||1," * ").concat("s"===e.unit?1e3:"m"===e.unit?6e4:36e5,");");else if("cron"===e.tagCard)s='schedule("'.concat(e.cron,'", ').concat(a,");");else if("at"===e.tagCard){var i;const[t,o]=(e.at||"").split(":");let n="*";if(null!==e&&void 0!==e&&null!==(i=e.dow)&&void 0!==i&&i.length&&!e.dow.includes("_")){const t=[...e.dow].map((e=>parseInt(e,10)));t.sort();let s=[],a=t[0],i=1;for(;i1?(a===t[i-1]?s.push(a):t[i-1]-a===1?s.push(a+","+t[i-1]):s.push(a+"-"+t[i-1]),a=t[i]):i===t.length-1&&(a===t[i-1]||t[i]-a===1?s.push(a+","+t[i]):s.push(a+"-"+t[i]));n=s.join(",")}s='schedule("'.concat(o||"0"," ").concat(t||"0"," * * ").concat(n,'", ').concat(a,");")}else"astro"===e.tagCard?s='schedule({astro: "'.concat(e.astro,'", shift: ').concat(e.offset?e.offsetValue:0,"}, ").concat(a,");"):"wizard"===e.tagCard&&(s="schedule('".concat(e.wizard,"', ").concat(a,");"));return s}static _time2String(e){return e?"".concat(e.getHours().toString().padStart(2,"0"),":").concat(e.getMinutes().toString().padStart(2,"0")):"--:--"}async _setAstro(e,t,s){e=e||this.state.settings.astro||"solarNoon",t=void 0===t?this.state.settings.offset:t,s=void 0===s?this.state.settings.offsetValue:s,s=parseInt(s,10)||0,this.coordinates||await this.props.socket.getObject("system.adapter.javascript.0").then((e=>{let{native:{latitude:t,longitude:s}}=e;if(!t&&!s)return this.props.socket.getObject("system.config").then((e=>{e&&(e.common.latitude||e.common.longitude)?this.coordinates={latitude:e.common.latitude,longitude:e.common.longitude}:this.coordinates=null}));this.coordinates={latitude:t,longitude:s}}));const a=this.coordinates&&va().getTimes(new Date,this.coordinates.latitude,this.coordinates.longitude),i=a?Object.keys(a).map((e=>({value:e,title:e,title2:"[".concat(ka._time2String(a[e]),"]"),order:a?ka._time2String(a[e]):"??:??"}))):[];i.sort(((e,t)=>e.order>t.order?1:e.ordersuper.onTagChange()))}async _setInterval(e){let t;t=1===(e=parseInt(e||this.state.settings.interval,10)||30)?[{value:"s",title:"second"},{value:"m",title:"minute"},{value:"h",title:"hour"}]:[{value:"s",title:"seconds"},{value:"m",title:"minutes"},{value:"h",title:"hours"}],this.setState({inputs:[{nameRender:"renderNumber",prefix:{en:"every"},attr:"interval",frontText:"every",defaultValue:30,className:"block-input-interval"},{nameRender:"renderSelect",attr:"unit",defaultValue:"s",options:t}]},(()=>super.onTagChange()))}renderDebug(e){return y.I18n.t("Triggered")}onValueChanged(e,t){"astro"===this.state.settings.tagCard?"astro"===t?this._setAstro(e):"offset"===t?this._setAstro(void 0,e):"offsetValue"===t&&this._setAstro(void 0,void 0,e):"interval"===this.state.settings.tagCard&&"interval"===t&&this._setInterval(e)}renderCron(e,t,s){const{className:a}=this.props;let i="";const{settings:o}=this.state,{attr:n}=e;return(0,$.jsxs)("div",{children:[(0,$.jsxs)("div",{style:{display:"flex",alignItems:"baseline"},children:[(0,$.jsx)("div",{style:{width:"100%"},children:this.renderText({attr:n,defaultValue:t},o[n]?o[n]:t,s)}),(0,$.jsx)(is,{square:!0,style:{marginLeft:7},value:"...",className:a,onClick:()=>this.setState({openDialog:!0})})]}),(0,$.jsx)(vs,{open:this.state.openDialog,onApply:async()=>{await s(i,n),await s((0,xa.default)(i,y.I18n.getLanguage()),"addText"),this.setState({openDialog:!1})},onClose:()=>this.setState({openDialog:!1}),children:(0,$.jsx)(fa.default,{cronExpression:o[n]?o[n]:"",onChange:e=>i=e,language:y.I18n.getLanguage()})}),this.renderNameText({defaultValue:y.I18n.t("every hour at 0 minutes"),attr:"addText",signature:!0,doNotTranslate:!0},o.addText?o.addText:y.I18n.t("every hour at 0 minutes"),s)]},n)}renderWizard(e,t,s){const{className:a}=this.props,{attr:i}=e;let o="",n=null;return(0,$.jsxs)("div",{children:[(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",marginTop:7},children:[(0,$.jsx)(ds,{className:a,autoComplete:"off",fullWidth:!0,variant:"outlined",size:"small",multiline:!0,rows:2,value:this.state.settings["".concat(i,"Text")],onChange:e=>s(e),customValue:!0}),(0,$.jsx)(is,{square:!0,style:{marginLeft:7},value:"...",className:a,onClick:()=>this.setState({openDialog:!0})})]}),(0,$.jsx)(vs,{open:this.state.openDialog,onApply:()=>this.setState({openDialog:!1},(()=>s({["".concat(i,"Text")]:o,[i]:n}))),onClose:()=>this.setState({openDialog:!1}),children:(0,$.jsx)(Sa.default,{onChange:(e,t)=>{o=t,n="object"===typeof e?JSON.parse(JSON.stringify(e)):JSON.parse(e),n.valid=n.valid||{},n.valid.from=n.valid.from||Sa.default.now2string(),n=JSON.stringify(n)}})})]},i)}onTagChange(e){switch(e=e||this.state.settings.tagCard){case"interval":this._setInterval();break;case"cron":this.setState({inputs:[{nameRender:"renderCron",attr:"cron",defaultValue:"0 * * * *"}]},(()=>super.onTagChange()));break;case"wizard":const e=JSON.parse('{"time":{"start":"00:00","end":"24:00","mode":"hours","interval":1},"period":{"days":1}}');e.valid=e.valid||{},e.valid.from=e.valid.from||Sa.default.now2string(),this.setState({inputs:[{nameRender:"renderWizard",attr:"wizard",defaultValue:JSON.stringify(e)}]},(()=>super.onTagChange(null,(()=>{const t=Sa.default.state2text(this.state.settings.wizard||e);if(this.state.settings.wizardText!==t){const e=JSON.parse(JSON.stringify(this.state.settings));e.wizardText=t,this.setState({settings:e}),this.props.onChange(e)}}))));break;case"at":this.setState({inputs:[{nameRender:"renderTime",prefix:"at",attr:"at",defaultValue:"07:30"},{nameRender:"renderSelect",attr:"dow",default:"",multiple:!0,defaultValue:["_","1","2","3","4","5","6","0"],options:[{value:"_",title:"Every day",only:!0},{value:"1",title:"Monday",titleShort:"Mo"},{value:"2",title:"Tuesday",titleShort:"Tu"},{value:"3",title:"Wednesday",titleShort:"We"},{value:"4",title:"Thursday",titleShort:"Th"},{value:"5",title:"Friday",titleShort:"Fr"},{value:"6",title:"Saturday",titleShort:"Sa"},{value:"0",title:"Sunday",titleShort:"Su"}]}]},(()=>super.onTagChange()));break;case"astro":this._setAstro()}}static getStaticData(){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"}}getData(){return ka.getStaticData()}}const wa=ka;var Ca=s(89891),ja=s(55931),Ia=s(25801);const Ta=i().forwardRef(((e,t)=>(0,$.jsx)(ja.Z,{direction:"up",ref:t,...e})));class Da extends Ys{constructor(e){super(e,Da.getStaticData()),this.inputRef=i().createRef()}static compile(e,t){let s=t.justCheck?ma.STANDARD_FUNCTION_STATE:ma.STANDARD_FUNCTION_STATE_ONCHANGE;return s=s.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(s,");")}static renderValue(e){return null===e?"null":void 0===e?"undefined":Array.isArray(e)?e.join(", "):"object"===typeof e?JSON.stringify(e):e.toString()}renderDebug(e){return void 0!==e.data.valOld?(0,$.jsxs)("span",{children:[y.I18n.t("Triggered")," ",(0,$.jsx)("span",{className:e.data.ackOld?this.props.classes.valueAck:this.props.classes.valueNotAck,children:Da.renderValue(e.data.valOld)})," \u2192 ",(0,$.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:Da.renderValue(e.data.val)})]}):(0,$.jsxs)("span",{children:[y.I18n.t("Triggered")," ",(0,$.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:Da.renderValue(e.data.val)})]})}onWriteValue(){this.setState({openSimulate:!1});let 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})}renderWriteState(){return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(W.Z,{disabled:!this.state.settings.oid||!this.state.enableSimulation,variant:"contained",color:"primary",onClick:()=>{this.setState({openSimulate:!0,simulateValue:"boolean"===this.state.settings.oidType?"true"===window.localStorage.getItem("javascript.app.".concat(this.state.settings.oid)):window.localStorage.getItem("javascript.app.".concat(this.state.settings.oid))||"",simulateAck:"true"===window.localStorage.getItem("javascript.app.".concat(this.state.settings.oid,"_ack"))}),setTimeout((()=>{var e;return null===(e=this.inputRef.current)||void 0===e?void 0:e.focus()}),200)},children:y.I18n.t("Simulate")}),(0,$.jsxs)(q.Z,{open:!!this.state.openSimulate,TransitionComponent:Ta,keepMounted:!0,onClose:()=>this.setState({openSimulate:!1}),"aria-labelledby":"simulate-dialog-slide-title","aria-describedby":"simulate-dialog-slide-description",children:[(0,$.jsx)(Z.Z,{id:"simulate-dialog-slide-title",children:y.I18n.t("Trigger with value")}),(0,$.jsxs)(V.Z,{children:["boolean"===this.state.settings.oidType?(0,$.jsx)(Ia.Z,{control:(0,$.jsx)(Ca.Z,{inputRef:this.inputRef,onKeyUp:e=>13===e.keyCode&&this.onWriteValue(),value:!!this.state.simulateValue,onChange:e=>this.setState({simulateValue:e.target.checked})}),label:y.I18n.t("Value")}):(0,$.jsx)(H.Z,{variant:"standard",inputRef:this.inputRef,label:y.I18n.t("Value"),fullWidth:!0,onKeyUp:e=>13===e.keyCode&&this.onWriteValue(),value:this.state.simulateValue,onChange:e=>this.setState({simulateValue:e.target.value})}),(0,$.jsx)("br",{}),(0,$.jsx)(Ia.Z,{control:(0,$.jsx)(Ke.Z,{checked:!!this.state.simulateAck,onChange:e=>this.setState({simulateAck:e.target.checked}),color:"primary"}),label:y.I18n.t("Ack")})]}),(0,$.jsxs)(J.Z,{children:[(0,$.jsxs)(W.Z,{variant:"contained",onClick:()=>this.onWriteValue(),color:"primary",children:[(0,$.jsx)(v.HhX,{}),y.I18n.t("Write")]}),(0,$.jsxs)(W.Z,{color:"grey",variant:"contained",onClick:()=>this.setState({openSimulate:!1}),children:[(0,$.jsx)(v.B4e,{}),y.I18n.t("Close")]})]})]})]})}onTagChange(e){this.setState({inputs:[{nameRender:"renderObjectID",attr:"oid",defaultValue:""},{nameRender:"renderWriteState"}]},(()=>{super.onTagChange()}))}static getStaticData(){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"}}getData(){return Da.getStaticData()}}const Aa=(0,u.Z)((e=>({valueAck:{color:"#b02323"},valueNotAck:{color:"#12ac15"}})))(Da),Na=s.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}";class Oa extends Ys{constructor(e){super(e,Oa.getStaticData()),this.onShowHelp=()=>this.setState({showHysteresisHelp:!0})}isAllTriggersOnState(){var e,t,s,a;return(null===(e=this.props.userRules)||void 0===e||null===(t=e.triggers)||void 0===t?void 0:t.find((e=>"TriggerState"===e.id)))&&!(null!==(s=this.props.userRules)&&void 0!==s&&null!==(a=s.triggers)&&void 0!==a&&a.find((e=>"TriggerState"!==e.id)))}static compile(e,t){let s=e.value;null!==s&&void 0!==s||(s=!1);let a,i="";if("()"===e.tagCard)t.prelines=t.prelines||[],!t.prelines.find((e=>e!==Ea))&&t.prelines.push(Ea),e.useTrigger?(i="obj.state.val",""===s&&(s=0),a="__hysteresis(subCondVar".concat(e._id,", ").concat(s,", __%%STATE%%__, ").concat(e.hist,', "').concat(e.histComp,'")')):(i='(await getStateAsync("'.concat(e.oid,'")).val'),""===s&&(s=0),"string"===typeof s&&parseFloat(s.trim()).toString()!==s.trim()&&(s='"'.concat(s,'"')),a="__hysteresis(subCondVar".concat(e._id,", ").concat(s,", __%%STATE%%__, ").concat(e.hist,', "').concat(e.histComp,'")'));else if("includes"!==e.tagCard){const n="="===e.tagCard?"==":"<>"===e.tagCard?"!=":e.tagCard;var o;if(e.useTrigger)i="obj.state.val","string"===(null===t||void 0===t||null===(o=t.trigger)||void 0===o?void 0:o.oidType)?(s=s.replace(/"/g,'\\"'),a="subCondVar".concat(e._id," ").concat(n,' "').concat(s,'"')):(""===s&&(s=0),"string"===typeof s&&parseFloat(s.trim()).toString()!==s.trim()&&(s='"'.concat(s,'"')),a="subCondVar".concat(e._id," ").concat(n," ").concat(s));else i='(await getStateAsync("'.concat(e.oid,'")).val'),"string"===e.oidType?(s=s.replace(/"/g,'\\"'),a="subCondVar".concat(e._id," ").concat(n,' "').concat(s,'"')):(""===s&&(s=0),"string"===typeof s&&parseFloat(s.trim()).toString()!==s.trim()&&(s='"'.concat(s,'"')),a="subCondVar".concat(e._id," ").concat(n," ").concat(s))}else{var n;if(e.useTrigger)i="obj.state.val","string"===(null===t||void 0===t||null===(n=t.trigger)||void 0===n?void 0:n.oidType)?(s=s.replace(/"/g,'\\"'),a='obj.state.val.includes("'.concat(s,'")')):a="false";else i='(await getStateAsync("'.concat(e.oid,'")).val'),"string"===e.oidType?(s=s.replace(/"/g,'\\"'),a="subCondVar".concat(e._id,'.includes("').concat(s,'")')):a="false"}return t.conditionsStates.push({name:"subCondVar".concat(e._id),id:e.oid}),t.conditionsVars.push("const subCondVar".concat(e._id," = ").concat(i,";")),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(s,'"});')),"subCond".concat(e._id)}renderDebug(e){const t=this.state.settings.tagCard;return"()"!==t?"".concat(e.data.result.toString().toUpperCase()," [").concat(e.data.value," ").concat(t," ").concat(e.data.compareWith,"]"):y.I18n.t("Triggered")}_setInputs(e,t,s,a,i){var o,n;const r=this.isAllTriggersOnState();t=t||this.state.settings.tagCard,s=s||this.state.settings.oidType,a=a||this.state.settings.oidUnit,i=i||this.state.settings.oidStates,r&&e&&1===(null===(o=this.props.userRules)||void 0===o||null===(n=o.triggers)||void 0===n?void 0:n.length)&&(s=this.props.userRules.triggers[0].oidType,a=this.props.userRules.triggers[0].oidUnit,i=this.props.userRules.triggers[0].oidStates);const l=Oa.getStaticData().tagCardArray.find((e=>e.title===t));let c,d=null;"number"===s?(c=[{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"}],i&&(d=Object.keys(i).map((e=>({value:e,title:i[e]}))))):"boolean"===s?(c=[{title:"=",title2:"[equal]",text:"equal to"},{title:"<>",title2:"[not equal]",text:"not equal to"}],d=[{title:"false",value:!1},{title:"true",value:!0}]):(c=[{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"}],i&&(d=Object.keys(i).map((e=>({value:e,title:i[e]})))));let u,p=null;c.find((e=>e.title===t))||(t=c[0].title,p=p||{...this.state.settings},p.tagCard=t);let h={nameRender:"renderText",defaultValue:"",attr:"value",frontText:"()"===t?"Limit":(null===l||void 0===l?void 0:l.text)||"compare with",doNotTranslateBack:!0,backText:a};d&&(h={nameRender:"renderSelect",defaultValue:d[0].value,options:d,attr:"value",frontText:(null===l||void 0===l?void 0:l.text)||"compare with",doNotTranslateBack:!0,backText:a},d.find((e=>e.value===this.state.settings.value))||(p=p||{...this.state.settings},p.value=d[0].value),d.length<=2&&(c=[{title:"=",title2:"[equal]",text:"equal to"},{title:"<>",title2:"[not equal]",text:"not equal to"}])),u=r&&e?[{backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger",defaultValue:!1},h]:r?[{backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger"},{nameRender:"renderObjectID",attr:"oid",defaultValue:""},h]:[{nameRender:"renderObjectID",attr:"oid",defaultValue:""},h],"()"===t&&(u.splice(1,0,{nameRender:"renderDialog",icon:"HelpOutline",frontText:"Explanation",onShowDialog:this.onShowHelp}),u.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:"<>"}]}),u.push({frontText:"\u0394",doNotTranslate:!0,nameRender:"renderNumber",noHelperText:!0,attr:"hist",defaultValue:1,doNotTranslateBack:!0,backText:a}));const m={iconTag:!0,tagCardArray:c,inputs:u};this.setState(m,(()=>super.onTagChange(null,(()=>{p&&(this.setState({settings:p}),this.props.onChange(p))}))))}onValueChanged(e,t,s){"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)}onUpdate(){this._setInputs(this.state.settings.useTrigger)}onTagChange(e){this._setInputs(this.state.settings.useTrigger,e)}static getStaticData(){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"}}getData(){return Oa.getStaticData()}renderSpecific(){return this.state.showHysteresisHelp?(0,$.jsxs)(q.Z,{open:!0,maxWidth:"md",onClose:()=>this.setState({showHysteresisHelp:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,$.jsx)(V.Z,{children:(0,$.jsx)(ye.Z,{id:"alert-dialog-description",children:(0,$.jsx)("img",{src:Na,alt:"Hysteresis"})})}),(0,$.jsx)(J.Z,{children:(0,$.jsx)(W.Z,{onClick:()=>this.setState({showHysteresisHelp:!1}),color:"primary",autoFocus:!0,children:y.I18n.t("OK")})})]}):null}}const _a=Oa,Ra=[31,29,31,30,31,30,31,31,30,31,30,31];class Ma extends Ys{constructor(e){super(e,Ma.getStaticData())}static compile(e,t){const s="="===e.tagCard?"===":"<>"===e.tagCard?"!==":e.tagCard;let a;if(e.withDate){let[t,i]=(e.date||"01.01").toString().split(".");i=parseInt(i,10)||0,t=parseInt(t,10)||0,t>12?t=12:t<0&&(t=0),i>Ra[t]?i=Ra[t]:i<0&&(i=0),a=i&&t?"formatDate(Date.now(), 'MM.DD-hh:mm') ".concat(s,' "').concat(e.date,"-").concat(e.time,'"'):0===i&&t?"formatDate(Date.now(), 'MM-hh:mm') ".concat(s,' "').concat(t.toString().padStart(2,"0"),"-").concat(e.time,'"'):0===t&&i?"formatDate(Date.now(), 'DD-hh:mm') ".concat(s,' "').concat(i.toString().padStart(2,"0"),"-").concat(e.time,'"'):"formatDate(Date.now(), 'hh:mm') ".concat(s,' "').concat(e.time,'"')}else a="formatDate(Date.now(), 'hh:mm') ".concat(s,' "').concat(e.time,'"');return t.conditionsVars.push("const subCond".concat(e._id," = ").concat(a,";")),t.conditionsDebug.push("_sendToFrontEnd(".concat(e._id,", {result: subCond").concat(e._id,"});")),"subCond".concat(e._id)}_setInputs(e,t){t=void 0===t?this.state.settings.withDate:t,e=e||this.state.settings.tagCard;const s=Ma.getStaticData().tagCardArray.find((t=>t.title===e)),a=[{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&&a.push({nameRender:"renderDate",attr:"date",defaultValue:"01.01"}),this.setState({inputs:a,iconTag:!0},(()=>super.onTagChange()))}onValueChanged(e,t){"withDate"===t&&this._setInputs(void 0,e)}onTagChange(e){this._setInputs(e)}static getStaticData(){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"}}getData(){return Ma.getStaticData()}}const za=Ma;class Pa extends Ys{constructor(e){super(e,Pa.getStaticData()),this.coordinates=null}static compile(e,t){const s="="===e.tagCard?"===":"<>"===e.tagCard?"!==":e.tagCard;let a;e.offset&&(a=parseInt(e.offsetValue,10)||0);const i="formatDate(Date.now(), 'hh:mm') ".concat(s,' formatDate(getAstroDate("').concat(e.astro,'"').concat(a?", undefined, ".concat(a):"","), 'hh:mm')");return t.conditionsVars.push("const subCond".concat(e._id," = ").concat(i,";")),t.conditionsDebug.push("_sendToFrontEnd(".concat(e._id,", {result: ").concat(i,"});")),i}static _time2String(e){return e?"".concat(e.getHours().toString().padStart(2,"0"),":").concat(e.getMinutes().toString().padStart(2,"0")):"--:--"}onValueChanged(e,t){"astro"===t?this._setAstro(e):"offset"===t?this._setAstro(void 0,e):"offsetValue"===t&&this._setAstro(void 0,void 0,e)}async _setAstro(e,t,s){e=e||this.state.settings.astro||"solarNoon",t=void 0===t?this.state.settings.offset:t,s=void 0===s?this.state.settings.offsetValue:s,s=parseInt(s,10)||0,this.coordinates||await this.props.socket.getObject("system.adapter.javascript.0").then((e=>{let{native:{latitude:t,longitude:s}}=e;if(!t&&!s)return this.props.socket.getObject("system.config").then((e=>{e&&(e.common.latitude||e.common.longitude)?this.coordinates={latitude:e.common.latitude,longitude:e.common.longitude}:this.coordinates=null}));this.coordinates={latitude:t,longitude:s}}));const a=this.coordinates&&va().getTimes(new Date,this.coordinates.latitude,this.coordinates.longitude),i=a?Object.keys(a).map((e=>({value:e,title:e,title2:"[".concat(Pa._time2String(a[e]),"]"),order:Pa._time2String(a[e])}))):[];i.sort(((e,t)=>e.order>t.order?1:e.ordere.title===this.state.settings.tagCard));let n,r="--:--";if(e&&a&&a[e]){const i=new Date(a[e]);t&&i.setMinutes(i.getMinutes()+parseInt(s,10)),r="(".concat(y.I18n.t(o.text)," ").concat(Pa._time2String(i),")")}n=t?[{nameRender:"renderNameText",defaultValue:"Actual time of day",attr:"text"},{frontText:o.text,attr:"astro",nameRender:"renderSelect",options:i,doNotTranslate2:!0,defaultValue:"solarNoon"},{backText:"with offset",nameRender:"renderCheckbox",attr:"offset"},{backText:1===s?"minute":"minutes",frontText:"offset",nameRender:"renderNumber",defaultValue:0,attr:"offsetValue",noHelperText:!0},{nameRender:"renderNameText",attr:"textTime",doNotTranslate:!0,defaultValue:r}]:[{nameRender:"renderNameText",defaultValue:"Actual time of day",attr:"text"},{frontText:o.text,attr:"astro",nameRender:"renderSelect",options:i,doNotTranslate2:!0,defaultValue:"solarNoon"},{backText:"with offset",nameRender:"renderCheckbox",attr:"offset"},{nameRender:"renderNameText",attr:"textTime",doNotTranslate:!0,defaultValue:r}],this.setState({inputs:n},(()=>super.onTagChange()))}onTagChange(e){this._setAstro()}static getStaticData(){return{acceptedBy:"conditions",name:"Astronomical",id:"ConditionAstronomical",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 astronomical event"}}getData(){return Pa.getStaticData()}}const Fa=Pa;class Ba extends Ys{constructor(e){super(e,Ba.getStaticData())}isAllTriggersOnState(){var e,t,s,a;return(null===(e=this.props.userRules)||void 0===e||null===(t=e.triggers)||void 0===t?void 0:t.find((e=>"TriggerState"===e.id)))&&!(null!==(s=this.props.userRules)&&void 0!==s&&null!==(a=s.triggers)&&void 0!==a&&a.find((e=>"TriggerState"!==e.id)))}static compile(e,t){let s,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(Ys.getReplacesInText(t)))),s=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(s,";\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,");")}static renderValue(e){return null===e?"null":void 0===e?"undefined":Array.isArray(e)?e.join(", "):"object"===typeof e?JSON.stringify(e):e.toString()}renderDebug(e){return(0,$.jsxs)("span",{children:[y.I18n.t("Set:")," ",(0,$.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:Ba.renderValue(e.data.val)})]})}_setInputs(e,t){const s=this.isAllTriggersOnState();t=void 0===t?this.state.settings.toggle:t,e=void 0===e?this.state.settings.useTrigger:e;let a,i="";const{oidType:o,oidUnit:n,oidStates:r,oidMax:l,oidMin:c,oidRole:d,oidWrite:u,oidStep:p}=this.state.settings;let h,m;if(o&&("number"===o?(i="number",void 0!==l&&void 0!==c&&(i="slider")):"boolean"===o?(i="boolean",d&&d.includes("button")&&u&&(i="button")):(i="",d&&d.includes("color")&&(i="color")),r&&(a=Object.keys(r).map((e=>({value:e,title:r[e]}))),i="select")),s&&e)m=[{backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger",defaultValue:!1}],"boolean"===i&&m.push({backText:"toggle value",attr:"toggle",nameRender:"renderCheckbox",defaultValue:!1});else{switch(i){case"number":m=[{backText:n||"",frontText:"with",nameRender:"renderNumber",defaultValue:void 0===l?0:l,attr:"value"}],void 0!==this.state.settings.value&&isNaN(parseFloat(this.state.settings.value))&&(h={value:void 0===l?0:l});break;case"slider":m=[{nameRender:"renderSlider",defaultValue:l,min:c,max:l,unit:n,step:p,attr:"value"}];const e=parseFloat(this.state.settings.value);void 0!==this.state.settings.value&&(isNaN(e)||el)&&(h={value:l});break;case"select":m=[{nameRender:"renderSelect",frontText:"with",options:a,defaultValue:a[0].value,attr:"value"}],void 0===this.state.settings.value||a.find((e=>e.value===this.state.settings.value))||(h={value:a[0].value});break;case"boolean":m=[{backText:"toggle value",attr:"toggle",nameRender:"renderCheckbox",defaultValue:!1}],t||m.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&&(h={value:!1});break;case"button":m=[{nameRender:"renderButton",defaultValue:!0,attr:"value"}],void 0!==this.state.settings.value&&!0!==this.state.settings.value&&(h={value:!0});break;case"color":m=[{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)||(h={value:"#FFFFFF"});break;default:m=[{backText:n||"",frontText:"with",nameRender:"renderText",defaultValue:"",attr:"value"}]}s&&m.unshift({backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger"})}return{inputs:m,newSettings:h}}onTagChange(e,t,s,a,i){i=void 0===i?this.state.settings.useTrigger:i;const{inputs:o,newSettings:n}=this._setInputs(i,a);o.unshift({nameRender:"renderObjectID",attr:"oid",defaultValue:"",checkReadOnly:!0}),this.setState({inputs:o},(()=>super.onTagChange(null,(()=>{if(n){const e=JSON.parse(JSON.stringify(this.state.settings));Object.assign(e,n),this.setState(e),this.props.onChange(e)}}))))}onValueChanged(e,t,s){this.onTagChange(void 0,void 0,void 0,"toggle"===t?e:void 0,"useTrigger"===t?e:void 0)}onUpdate(){this.onTagChange()}static getStaticData(){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"}}getData(){return Ba.getStaticData()}}const La=(0,u.Z)((e=>({valueAck:{color:"#b02323"},valueNotAck:{color:"#12ac15"}})))(Ba);class Ua extends Ys{constructor(e){super(e,Ua.getStaticData())}static compile(e,t){return'// exec "'.concat(e.exec,'"\n\t\tconst subActionVar').concat(e._id,' = "').concat((e.exec||"").replace(/"/g,'\\"'),'"').concat(Ys.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {exec: subActionVar").concat(e._id,"});\n\t\tconsole.log(subActionVar").concat(e._id,");")}renderDebug(e){return"Exec: ".concat(e.data.exec)}onTagChange(e){this.setState({inputs:[{nameRender:"renderModalInput",attr:"exec",defaultValue:"ls /opt/iobroker",nameBlock:"Shell command"}]},(()=>super.onTagChange(e)))}static getStaticData(){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"}}getData(){return Ua.getStaticData()}}const Wa=Ua;class Za extends Ys{constructor(e){super(e,Za.getStaticData())}static compile(e,t){return"// HTTP request ".concat(e.url,"\n\t\tconst subActionVar").concat(e._id,' = "').concat((e.url||"").replace(/"/g,'\\"'),'"').concat(Ys.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {url: subActionVar").concat(e._id,"});\n\t\trequest(subActionVar").concat(e._id,");")}renderDebug(e){return"URL: ".concat(e.data.url)}onTagChange(e){this.setState({inputs:[{nameRender:"renderModalInput",attr:"url",defaultValue:"http://mydevice.com?...",nameBlock:"URL"}]},(()=>super.onTagChange(e)))}static getStaticData(){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"}}getData(){return Za.getStaticData()}}const Va=Za;class Ja extends Ys{constructor(e){super(e,Ja.getStaticData())}static compile(e,t){return"// Log ".concat(e.text,"\n\t\tconst subActionVar").concat(e._id,' = "').concat((e.text||"").replace(/"/g,'\\"'),'"').concat(Ys.getReplacesInText(t),";\n\t\t_sendToFrontEnd(").concat(e._id,", {text: subActionVar").concat(e._id,"});\n\t\tconsole.log(subActionVar").concat(e._id,");")}renderDebug(e){return y.I18n.t("Log: %s",e.data.text)}onTagChange(e){this.setState({inputs:[{nameRender:"renderModalInput",attr:"text",defaultValue:"My device triggered",nameBlock:"Log text"}]},(()=>super.onTagChange(e)))}static getStaticData(){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"}}getData(){return Ja.getStaticData()}}const qa=Ja;class Ha extends Ys{constructor(e){super(e,Ha.getStaticData())}static compile(e,t){const s="ms"===e.unit?1:"s"===e.unit?1e3:"m"===e.unit?6e4:36e5;return"// pause for ".concat(s,"ms\n\t\t_sendToFrontEnd(").concat(e._id,", {paused: true});\n\n\t\tawait wait(").concat(e.pause," * ").concat(s,");\n\n\t\t_sendToFrontEnd(").concat(e._id,", {paused: false});")}renderDebug(e){return bs.default.t("Paused: %s",e.data.paused)}_getOptions(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"}]}_setInputs(e){this.setState({inputs:[{nameRender:"renderNumber",attr:"pause",defaultValue:100,noHelperText:!0},{nameRender:"renderSelect",attr:"unit",defaultValue:"ms",options:this._getOptions(e)}]},(()=>super.onTagChange()))}onValueChanged(e,t){"pause"===t&&this._setInputs(e)}onTagChange(e){this._setInputs()}static getStaticData(){return{acceptedBy:"actions",name:"Pause",id:"ActionPause",icon:"Pause",title:"Make a pause between actions"}}getData(){return Ha.getStaticData()}}const Ga=Ha;class Ya extends Ys{constructor(e){super(e,Ya.getStaticData())}static compile(e,t){const s=(e.func||"").split("\n").map(((e,t)=>" ".concat(e)));return s.unshift("\t\t_sendToFrontEnd(".concat(e._id,", {func: 'executed'});")),s.unshift("// user function"),s.join("\n")}renderDebug(e){return y.I18n.t("Function: executed")}onTagChange(e){this.setState({inputs:[{nameRender:"renderModalInput",attr:"func",noTextEdit:!0,defaultValue:'console.log("Test")',nameBlock:"Function"}]},(()=>super.onTagChange(e)))}static getStaticData(){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"}}getData(){return Ya.getStaticData()}}const Ka=Ya;class Qa extends Ys{constructor(e){super(e,Qa.getStaticData())}isAllTriggersOnState(){var e,t,s,a;return(null===(e=this.props.userRules)||void 0===e||null===(t=e.triggers)||void 0===t?void 0:t.find((e=>"TriggerState"===e.id)))&&!(null!==(s=this.props.userRules)&&void 0!==s&&null!==(a=s.triggers)&&void 0!==a&&a.find((e=>"TriggerState"!==e.id)))}static compile(e,t){let s,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(Ys.getReplacesInText(t)))),s=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(s,";\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",");")}static renderValue(e){return null===e?"null":void 0===e?"undefined":Array.isArray(e)?e.join(", "):"object"===typeof e?JSON.stringify(e):e.toString()}renderDebug(e){return(0,$.jsxs)("span",{children:[y.I18n.t("Set:")," ",(0,$.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:Qa.renderValue(e.data.val)})]})}_setInputs(e,t){const s=this.isAllTriggersOnState();t=void 0===t?this.state.settings.toggle:t,e=void 0===e?this.state.settings.useTrigger:e;let a,i="";const{oidType:o,oidUnit:n,oidStates:r,oidMax:l,oidMin:c,oidRole:d,oidWrite:u,oidStep:p}=this.state.settings;let h,m;if(o&&("number"===o?(i="number",void 0!==l&&void 0!==c&&(i="slider")):"boolean"===o?(i="boolean",d&&d.includes("button")&&u&&(i="button")):(i="",d&&d.includes("color")&&(i="color")),r&&(a=Object.keys(r).map((e=>({value:e,title:r[e]}))),i="select")),s&&e)m=[{backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger",defaultValue:!1}],"boolean"===i&&m.push({backText:"toggle value",attr:"toggle",nameRender:"renderCheckbox",defaultValue:!1});else{switch(i){case"number":m=[{backText:n||"",frontText:"with",nameRender:"renderNumber",defaultValue:void 0===l?0:l,attr:"value"}],void 0!==this.state.settings.value&&isNaN(parseFloat(this.state.settings.value))&&(h={value:void 0===l?0:l});break;case"slider":m=[{nameRender:"renderSlider",defaultValue:l,min:c,max:l,unit:n,step:p,attr:"value"}];const e=parseFloat(this.state.settings.value);void 0!==this.state.settings.value&&(isNaN(e)||el)&&(h={value:l});break;case"select":m=[{nameRender:"renderSelect",frontText:"with",options:a,defaultValue:a[0].value,attr:"value"}],void 0===this.state.settings.value||a.find((e=>e.value===this.state.settings.value))||(h={value:a[0].value});break;case"boolean":m=[{backText:"toggle value",attr:"toggle",nameRender:"renderCheckbox",defaultValue:!1}],t||m.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&&(h={value:!1});break;case"button":m=[{nameRender:"renderButton",defaultValue:!0,attr:"value"}],void 0!==this.state.settings.value&&!0!==this.state.settings.value&&(h={value:!0});break;case"color":m=[{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)||(h={value:"#FFFFFF"});break;default:m=[{backText:n||"",frontText:"with",nameRender:"renderText",defaultValue:"",attr:"value"}]}s&&m.unshift({backText:"use trigger value",nameRender:"renderCheckbox",attr:"useTrigger"})}return m.push({backText:"ms",frontText:"Delay",nameRender:"renderNumber",defaultValue:"1000",noHelperText:!0,attr:"delay"}),m.push({backText:"clear running",nameRender:"renderCheckbox",defaultValue:!0,attr:"clearRunning"}),{inputs:m,newSettings:h}}onTagChange(e,t,s,a,i){i=void 0===i?this.state.settings.useTrigger:i;const{inputs:o,newSettings:n}=this._setInputs(i,a);o.unshift({nameRender:"renderObjectID",attr:"oid",defaultValue:"",checkReadOnly:!0}),this.setState({inputs:o},(()=>super.onTagChange(null,(()=>{if(n){const e=JSON.parse(JSON.stringify(this.state.settings));Object.assign(e,n),this.setState(e),this.props.onChange(e)}}))))}onValueChanged(e,t,s){this.onTagChange(void 0,void 0,void 0,"toggle"===t?e:void 0,"useTrigger"===t?e:void 0)}onUpdate(){this.onTagChange()}static getStaticData(){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"}}getData(){return Qa.getStaticData()}}const Xa=Qa;class $a extends Ys{constructor(e){super(e,$a.getStaticData())}isAllTriggersOnState(){var e,t,s,a;return(null===(e=this.props.userRules)||void 0===e||null===(t=e.triggers)||void 0===t?void 0:t.find((e=>"TriggerState"===e.id)))&&!(null!==(s=this.props.userRules)&&void 0!==s&&null!==(a=s.triggers)&&void 0!==a&&a.find((e=>"TriggerState"!==e.id)))}static compile(e,t){let s="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(s,"\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,");")}static renderValue(e){return null===e?"null":void 0===e?"undefined":Array.isArray(e)?e.join(", "):"object"===typeof e?JSON.stringify(e):e.toString()}renderDebug(e){return(0,$.jsxs)("span",{children:[y.I18n.t("Set:")," ",(0,$.jsx)("span",{className:e.data.ack?this.props.classes.valueAck:this.props.classes.valueNotAck,children:$a.renderValue(e.data.val)})]})}onTagChange(e,t,s,a,i){const o=[];o.push({nameRender:"renderObjectID",title:"ID1",attr:"oid1",defaultValue:"",checkReadOnly:!1}),o.push({nameRender:"renderSelect",options:[{value:"+",title:"+"},{value:"-",title:"-"},{value:"*",title:"*"},{value:"/",title:"/"}],doNotTranslate:!0,defaultValue:"+",attr:"operation"}),o.push({nameRender:"renderObjectID",title:"ID2",attr:"oid2",defaultValue:"",checkReadOnly:!1}),o.push({nameRender:"renderNameText",defaultValue:"store in",attr:"textEqual"}),o.push({nameRender:"renderObjectID",attr:"oidResult",defaultValue:"",checkReadOnly:!0}),this.setState({inputs:o},(()=>super.onTagChange(null,(()=>{const e=JSON.parse(JSON.stringify(this.state.settings));this.props.onChange(e)}))))}onValueChanged(e,t,s){this.onTagChange(void 0,void 0,void 0,"toggle"===t?e:void 0,"useTrigger"===t?e:void 0)}onUpdate(){this.onTagChange()}static getStaticData(){return{acceptedBy:"actions",name:"Operate two states",id:"ActionOperateStates",icon:"AddBox",tagCardArray:["control","update"],title:"Operations with two states"}}getData(){return $a.getStaticData()}}const ei=[wa,ba,Aa,_a,za,Fa,La,Wa,Va,qa,Ga,Ka,Xa,$a],ti={telegram:sa,email:ea,sayit:Xs,pushover:ia,"whatsapp-cmb":na,pushsafer:la},si=(0,a.createContext)(),ai=(e,t,a,i)=>async()=>{await function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return new Promise(((i,o)=>{if(window[e])i();else{const n=document.querySelector('[data-webpack="'.concat(e,'"]')),r=async()=>{if(!window[e])return o('Cannot load Remote "'.concat(e,'" to inject'));window[e].__initialized||(await window[e].init(s.S[t]),window[e].__initialized=!0),i()};if(n)n.onload=r,n.onerror=o;else if(a){const t=document,s=t.createElement("script");s.type="text/javascript",s.setAttribute("data-webpack","".concat(e)),s.async=!0,s.onerror=o,s.onload=r,s.src=a,t.getElementsByTagName("head")[0].appendChild(s)}else o("Cannot Find Remote ".concat(e," to inject"))}}))}(e,t,i);const o=window[e];return(await o.get(a))()},ii=e=>{let{children:t,socket:s}=e;const[i,o]=(0,a.useState)(null),[n,r]=(0,a.useState)(!1),[l,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{n&&r(!1)}),[n]),(0,a.useEffect)((()=>{(async()=>{const e=await s.getAdapterInstances(),t=Object.keys(ti).filter((t=>e.find((e=>{var s;return(null===e||void 0===e||null===(s=e.common)||void 0===s?void 0:s.name)===t})))),a=[],i=e.filter((e=>e.common.javascriptRules)),n=[];for(let s in i){const e=i[s];if(n.includes(e.common.name))continue;let t;if(t=e.common.javascriptRules.url.startsWith("http:")||e.common.javascriptRules.url.startsWith("https:")?e.common.javascriptRules.url:e.common.javascriptRules.url.startsWith("./")?"".concat(window.location.protocol,"//").concat(window.location.host).concat(e.common.javascriptRules.url.replace(/^\./,"")):"".concat(window.location.protocol,"//").concat(window.location.host,"/adapter/").concat(e.common.name,"/").concat(e.common.javascriptRules.url),!0===e.common.javascriptRules.i18n){const e=t.lastIndexOf("/");let s;s=-1!==e?t.substring(0,e):t;const a=y.I18n.getLanguage(),i="".concat(s,"/i18n/").concat(a,".json");await fetch(i).then((e=>e.json())).then((e=>y.I18n.extendTranslations(e,a))).catch((e=>{if("en"!==a)return fetch("".concat(s,"/i18n/en.json")).then((e=>e.json())).then((e=>y.I18n.extendTranslations(e,a))).catch((e=>console.error('Cannot load i18n "'.concat(i,'": ').concat(e))));console.log('Cannot load i18n "'.concat(i,'": ').concat(e))}))}else if(e.common.javascriptRules.i18n&&"object"===typeof e.common.javascriptRules.i18n)try{y.I18n.extendTranslations(e.common.javascriptRules.i18n)}catch(l){console.error('Cannot import i18n for "'.concat(e.common.javascriptRules.name,'": ').concat(l))}try{const s=(await ai(e.common.javascriptRules.name,"default","./".concat(e.common.javascriptRules.name),t)()).default;s&&(a.push(s),n.push(e.common.name),ti[e.common.name]=null)}catch(c){console.error('Cannot load component "'.concat(e.common.javascriptRules.name,'": ').concat(c))}}const r=t.filter((e=>ti[e])).map((e=>ti[e]));o([...ei,...r,...a])})()}),[]),(0,$.jsx)(si.Provider,{value:{blocks:i,socket:s,onUpdate:n,setOnUpdate:r,onDebugMessage:l,setOnDebugMessage:c,enableSimulation:d,setEnableSimulation:u},children:t})};const oi=(0,a.memo)((e=>{const{setUserRules:t,userRules:s,_id:i,id:o,blockValue:n,active:r,acceptedBy:l,isTourOpen:c,setTourStep:d,tourStep:u}=e,[p,h]=(0,a.useState)(null),{blocks:m,socket:g,onUpdate:b,setOnUpdate:y,onDebugMessage:v,enableSimulation:f}=(0,a.useContext)(si);(0,a.useEffect)((()=>{console.log("New message !!"+JSON.stringify(v))}),[v]);const S=(0,a.useCallback)((e=>m.find((t=>t.getStaticData().id===e))),[m]),x=(0,a.useCallback)((e=>{let a=function(e,t,s){const{_id:a,acceptedBy:i}=e;let o;if(!i||!t[i])return console.warn("Cannot find "+i),t;switch(i){case"actions":case"conditions":return o=t[i][s].find((e=>e._id===a)),o?t[i][s][t[i][s].indexOf(o)]=e:console.warn("Cannot find "+a),t;default:return o=t[i].find((e=>e._id===a)),o?t[i][t[i].indexOf(o)]=e:console.warn("Cannot find "+a),t}}(e,s,n);a&&t(a)}),[s]),k=e=>e.currentTarget!==p&&h(e.currentTarget),w=(0,a.useMemo)((()=>{const t=S(o)||Ys;return(0,$.jsx)(t,{isTourOpen:c,setTourStep:d,tourStep:u,notFound:!S(o),...e,onUpdate:b,setOnUpdate:y,enableSimulation:f,onDebugMessage:v,onChange:x,className:null,socket:g})}),[s,b,v,f]),[C,j]=(0,a.useState)(!1);return(0,$.jsxs)("div",{onMouseMove:k,onMouseEnter:k,onMouseLeave:()=>h(null),onMouseDown:e=>{if(e.ctrlKey){let e,a=Ht(l,s,n);e="triggers"!==n?a[l][n].find((e=>e._id===i)):a[l].find((e=>e._id===i)),"triggers"!==n?a[l][n].splice(a[l][n].indexOf(e),0,{...e,_id:Date.now()}):a[l].splice(a[l].indexOf(e),0,{...e,_id:Date.now()}),t(a)}},id:"height",style:r?{width:document.getElementById("width").clientWidth-70}:null,className:"".concat(Ut," ").concat(r?Wt:null," ").concat(C?Jt:null),children:[(0,$.jsx)("div",{className:qt}),w,t&&(0,$.jsx)("div",{className:Zt,style:Boolean(p)?{opacity:1}:{opacity:0},children:(0,$.jsx)("div",{onClick:e=>{let a=Ht(l,s,n);a=Gt(l,a,n,i),j(!0),setTimeout((()=>{"triggers"===l&&y(!0),t(a)}),300)},className:Vt})})]})}));oi.defaultProps={active:!1};const ni=oi,ri={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},li=(e,t,s)=>{if(!e||!t)return{display:"none"};let{x:a,y:i}=t;s&&(a-=e.x,i-=e.y,[a,i]=((e,t)=>[32*Math.round(e/32),32*Math.round(t/32)])(a,i),a+=e.x,i+=e.y);const o="translate(".concat(a,"px, ").concat(i,"px)");return{transform:o,WebkitTransform:o}},ci=e=>{const{itemType:t,isDragging:s,item:a,initialOffset:i,currentOffset:o,targetIds:n}=(0,Et.f)((e=>({item:e.getItem(),itemType:e.getItemType(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging(),targetIds:e.getTargetIds()})));return s?(0,$.jsx)("div",{style:ri,children:(0,$.jsx)("div",{style:li(i,o),children:"box"===t?n.length?(0,$.jsx)(ni,{active:!0,...a,allBlocks:e.allBlocks}):(0,$.jsx)(Lt,{active:!0,...a,socket:e.socket}):null})}):null},di={border:"style_border__Zz9Km",emptyBlockStyle:"style_emptyBlockStyle__sE5FO",emptyBlock:"style_emptyBlock__dMBHS",marginTop:"style_marginTop__uK9O+",selectOnChange:"style_selectOnChange__6r-uo",selectOnChangeHelp:"style_selectOnChangeHelp__nP0g8",selectOnChangeHelpIcon:"style_selectOnChangeHelpIcon__r7G9x",emptyBlockNone:"style_emptyBlockNone__DS6GG",mainBlockItemRules:"style_mainBlockItemRules__JYCaQ",nameBlockItems:"style_nameBlockItems__sNeEH",contentBlockItem:"style_contentBlockItem__SQejW",wrapperMargin:"style_wrapperMargin__v8PwE",contentHeightOn:"style_contentHeightOn__T3ZZ-",heightBlock:"style_heightBlock__B96p1",contentHeightOff:"style_contentHeightOff__eaSlV",cardAdd:"style_cardAdd__SNY3P",blockCardAdd:"style_blockCardAdd__xHdXK",addClassOverflow:"style_addClassOverflow__bcVva",addClassHeight:"style_addClassHeight__GJALi"};function ui(e,t){const[s,i]=a.useState(localStorage.getItem(t)?JSON.parse(localStorage.getItem(t)):e);return[s,e=>{localStorage.setItem(t,JSON.stringify(e)),i(e)},!!localStorage.getItem(t)]}var pi=s(60953),hi=s(763),mi=s.n(hi);const gi=mi().throttle(((e,t)=>e(t)),0),bi=(e,t,s,a,i,o,n,r,l)=>{const{card:c,index:d}=yi(e,s);if(!(dt&&r>l)&&c&&d!==t){const e=mi().clone(s);e.splice(d,1),e.splice(t,0,c);const r=mi().clone(i);switch(o){case"actions":case"conditions":return r[o][n]=e,void gi(a,r);default:return r[o]=e,void gi(a,r)}}},yi=(e,t)=>{const s=t.find((t=>t._id===e));return{card:s,index:t.indexOf(s)}},vi="style_drag__Gq61w",fi="style_root__nSnEB",Si=e=>{let{typeBlocks:t,allProperties:s,id:i,isActive:o,setUserRules:n,userRules:r,children:l,_id:c,blockValue:d}=e;const{setOnUpdate:u}=(0,a.useContext)(si),[{opacity:p},h,m]=(0,E.c)({type:"box",item:()=>({...s,id:i,isActive:o,_id:c}),end:(e,t)=>{let s,{acceptedBy:a}=e,i=t.getDropResult();if(!i)return"number"!==typeof c||t.getTargetIds().length||(s=Ht(a,r,d),s=Gt(a,s,d,c),n(s)),null;if(i.blockValue!==d){let t="number"===typeof c?c:Date.now();s=Ht(a,r,i.blockValue);const o={id:e.id,acceptedBy:e.acceptedBy};switch(a){case"actions":return d&&(s=Gt(a,s,d,c)),s=Gt(a,s,i.blockValue,c),s[a][i.blockValue].push({...o,_id:t}),n(s);case"conditions":return"number"===typeof d&&(s=Gt(a,s,d,c)),s=Gt(a,s,i.blockValue,c),s[a][i.blockValue].push({...o,_id:t}),n(s);default:return u(!0),s=Gt(a,s,i.blockValue,c),s[a].push({...o,_id:t}),n(s)}}},collect:e=>({opacity:e.isDragging()?.4:1,isDragging:e.isDragging()})}),g=(0,a.useRef)(null),[,b]=(0,N.L)({accept:"box",canDrop:()=>!1,hover(e,s){var a;let{_id:i,acceptedBy:o}=e;if(!g.current)return;if(t!==o)return;const l=null===(a=g.current)||void 0===a?void 0:a.getBoundingClientRect(),u=(l.bottom-l.top)/2,p=s.getClientOffset().y-l.top;if(c&&i!==c)switch(o){case"actions":if("then"===d||"else"===d){const{index:e}=yi(c,r[o][d]);e!==i&&bi(i,e,r[o][d],n,r,o,d,p,u)}return;case"conditions":if("number"===typeof d){const{index:e}=yi(c,r[o][d]);e!==i&&bi(i,e,r[o][d],n,r,o,d,p,u)}return;default:const{index:e}=yi(c,r[o]);return void(e!==i&&bi(i,e,r[o],n,r,o,null,p,u))}}});(0,a.useEffect)((()=>{m((0,pi.r)(),{captureDraggingState:!0})}),[]),h(b(g));const y=window.innerWidth<600;return(0,$.jsxs)("div",{ref:y&&c?null:g,className:fi,style:{opacity:p},children:[(0,$.jsx)("div",{className:c?vi:null,ref:c&&y?g:null}),l]})};Si.defaultProps={name:"",active:!1,id:"",_id:null};const xi=Si,ki=e=>{let{onClose:t,open:s}=e;return(0,$.jsxs)(q.Z,{open:s,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,$.jsx)(V.Z,{children:(0,$.jsxs)("div",{style:{fontSize:"1rem",fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',fontWeight:400,lineHeight:1.5,letterSpacing:"0.00938em"},children:[(0,$.jsx)("h3",{children:y.I18n.t("On condition change")}),(0,$.jsx)("div",{children:y.I18n.t("help_on_change")}),(0,$.jsx)("h3",{children:y.I18n.t("Just check")}),(0,$.jsx)("div",{children:y.I18n.t("help_just_check")})]})}),(0,$.jsx)(J.Z,{children:(0,$.jsx)(W.Z,{onClick:t,color:"primary",autoFocus:!0,startIcon:(0,$.jsx)(X.default,{}),children:y.I18n.t("OK")})})]})};ki.defaultProps={open:!1,onClose:()=>{}};const wi=ki,Ci=e=>{let{onClose:t,open:s}=e;return(0,$.jsxs)(q.Z,{open:s,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,$.jsx)(V.Z,{children:(0,$.jsxs)(ye.Z,{id:"alert-dialog-description",children:[(0,$.jsx)("h3",{children:y.I18n.t("On condition change")}),(0,$.jsx)("div",{children:y.I18n.t("help_on_change")}),(0,$.jsx)("h3",{children:y.I18n.t("Just check")}),(0,$.jsx)("div",{children:y.I18n.t("help_just_check")})]})}),(0,$.jsx)(J.Z,{children:(0,$.jsx)(W.Z,{onClick:t,color:"primary",autoFocus:!0,children:y.I18n.t("OK")})})]})};Ci.defaultProps={open:!1,onClose:()=>{}};const ji=Ci,Ii=e=>{var t;let{size:s,itemsSwitchesRender:i,blockValue:o,boolean:n,typeBlock:r,userRules:l,setUserRules:c,animation:d,setTourStep:u,tourStep:p,isTourOpen:h}=e;const[m,g]=(0,a.useState)(!1),[b,v]=(0,a.useState)(!1),[f,S]=(0,a.useState)(!1),[x,k]=(0,a.useState)(""),w=(0,N.L)({accept:"box",drop:()=>({blockValue:o}),hover:(e,t)=>{let{acceptedBy:s,_id:a}=e;g(s===r),S(!!a),k(t.getHandlerId())},canDrop:(e,t)=>{let{acceptedBy:s}=e;return v(s===r),s===r},collect: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}}}),[{canDrop:C,isOver:j,offset:I,targetId:T},D]=w;(0,a.useEffect)((()=>{k("")}),[I]);const A=C&&j;let E="";return A?E=m?"#00fb003d":"#fb00002e":C?E=b?"#00fb003d":"#fb00002e":I&&(E=T===x?"#fb00002e":""),(0,$.jsx)("div",{ref:D,style:{backgroundColor:E},className:"".concat(y.Utils.clsx(di.contentBlockItem,s&&di.addClassHeight)," ").concat(n?d?di.contentHeightOn:null:di.contentHeightOff),children:(0,$.jsxs)("div",{className:di.wrapperMargin,children:[null===(t=i[o])||void 0===t?void 0:t.map((e=>(0,$.jsx)(xi,{typeBlocks:r,...e,blockValue:o,allProperties:e,userRules:l,setUserRules:c,children:(0,$.jsx)(ni,{...e,isTourOpen:h,setTourStep:u,tourStep:p,settings:e,blockValue:o,userRules:l,setUserRules:c})},e._id))),(0,$.jsx)("div",{style:A&&m&&!f?{height:document.getElementById("height")?document.getElementById("height").clientHeight:200}:null,className:"".concat(di.emptyBlockStyle," ").concat(A&&m&&!f?di.emptyBlock:di.emptyBlockNone)})]})})};Ii.defaultProps={children:null,boolean:!0,animation:!1};const Ti=e=>{let{size:t,typeBlock:s,name:i,nameAdditionally:o,additionally:n,border:r,userRules:l,setUserRules:c,iconName:d,adapter:u,socket:p,setTourStep:h,tourStep:m,isTourOpen:g}=e;const[b,v,f]=ui("actions"!==s&&[],"additionallyClickItems_".concat(s)),[S,x]=(0,a.useState)(!1),[k,w]=(0,a.useState)(!1);(0,a.useEffect)((()=>{if("conditions"===s&&b.length!==l.conditions.length-1){let e=[];l.conditions.forEach(((t,s)=>{s>0&&e.push({_id:Date.now(),open:!0})})),v([...b,...e])}"actions"===s&&!f&&l.actions.else.length&&v(!0)}),[]);const[C,j]=(0,a.useState)(!1);return(0,$.jsxs)("div",{className:"".concat(y.Utils.clsx(di.mainBlockItemRules,t&&di.addClassOverflow)," ").concat(r&&!t?di.border:null),children:[(0,$.jsxs)("span",{id:"width",className:di.nameBlockItems,children:[(0,$.jsx)(Ft,{iconName:d,className:di.iconThemCard,adapter:u,socket:p}),i]}),"conditions"===s?(0,$.jsxs)("div",{style:{width:"100%"},children:[(0,$.jsxs)(Y.Z,{variant:"standard",className:di.selectOnChange,value:l.justCheck||!1,onChange:e=>{const t=Ht("conditions",l);t.justCheck=e.target.value,c(t)},children:[(0,$.jsx)(D.Z,{value:!1,children:y.I18n.t("on condition change")}),(0,$.jsx)(D.Z,{value:!0,children:y.I18n.t("just check")})]}),(0,$.jsx)(I.Z,{size:"small",title:y.I18n.t("Explanation"),className:di.selectOnChangeHelp,onClick:()=>x(!0),children:(0,$.jsx)(Kt.Z,{className:di.selectOnChangeHelpIcon})})]}):null,(0,$.jsx)(Ii,{setTourStep:h,tourStep:m,isTourOpen:g,blockValue:"actions"===s?"then":"conditions"===s?0:s,typeBlock:s,setUserRules:c,userRules:l,size:t,itemsSwitchesRender:"actions"===s?l.actions:"conditions"===s?l.conditions:l}),n&&[...Array("actions"===s?1:l.conditions.length-1)].map(((e,i)=>{const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return Boolean("actions"===s?b:b.find(((t,s)=>s===e&&t.open)))};return(0,$.jsxs)(a.Fragment,{children:[(0,$.jsxs)("div",{onClick:()=>{if("actions"===s)return v(!b),null;let e=JSON.parse(JSON.stringify(b));if(l.conditions[i+1].length)return e[i].open=!e[i].open,v(e),null;e=e.filter(((e,t)=>t!==i)),v(e),j("actions"===s||i),setTimeout((()=>{j(!1),c({...l,conditions:[...l.conditions.filter(((e,t)=>t!==i+1))]})}),250)},className:di.blockCardAdd,children:[n()?"-":"+",(0,$.jsx)("div",{className:di.cardAdd,children:o})]},i),(0,$.jsx)(Ii,{blockValue:"actions"===s?"else":"conditions"===s?i+1:s,typeBlock:s,setUserRules:c,itemsSwitchesRender:"actions"===s?l.actions:"conditions"===s?l.conditions:l,userRules:l,boolean:n(),animation:Boolean(C===i),size:t})]},"".concat(i,"_block_").concat(s))})),n&&"conditions"===s&&(0,$.jsxs)("div",{onClick:()=>{v([...b,{_id:Date.now(),open:!0}]),c({...l,conditions:[...l.conditions,[]]}),j("actions"===s||l.conditions.length-1),setTimeout((()=>j(!1)),1e3)},className:di.blockCardAdd,children:["+",(0,$.jsx)("div",{className:di.cardAdd,children:o})]}),(0,$.jsx)(wi,{open:S,onClose:()=>x(!1)}),(0,$.jsx)(ji,{open:k,onClose:()=>w(!1)})]})};Ti.defaultProps={children:null,name:"",nameAdditionally:"",additionally:!1,border:!1,typeBlock:""};const Di=Ti,Ai="style_menuRules__NRFrw",Ni="style_switchesRenderWrapper__MHBpo",Ei="style_menuOff__GV8BN",Oi="style_menuTitle__bnI7K",_i="style_marginAuto__h3I6J",Ri="style_inputWidth__Hkd3w",Mi="style_menuWrapper__16zE-",zi="style_hamburgerWrapper__+AsNg",Pi="style_hamburgerOff__Tmmok",Fi="style_nothingFound__hm0xN",Bi="style_resetSearch__oA8LS",Li="style_controlPanel__ojI7Z",Ui="style_controlPanelAppBar__fjB3Y",Wi="style_addClassMenu__3n58b",Zi="style_addClassBackground__j1FHK",Vi="style_addClassPosition__YL+W4",Ji=e=>{const{allProperties:t,allProperties:{acceptedBy:s,id:a},setUserRules:i,userRules:o,setTourStep:n,tourStep:r,isTourOpen:l,onTouchMove:c}=e;return(0,$.jsx)(xi,{...e,...t,children:(0,$.jsx)(Lt,{onTouchMove:c,onDoubleClick:()=>{l&&r===Bs&&"TriggerScheduleBlock"===a&&n(Ls),l&&r===Zs&&"ActionPrintText"===a&&n(Vs);let e,t=Date.now();switch(s){case"actions":e="then";break;case"conditions":e=o[s].length-1}let c=Ht(s,o,e);const d={id:a,_id:t,acceptedBy:s};void 0!==e?c[s][e].push({...d}):c[s].push({...d}),i(c)},onDoubl:!0,...e,...t})})},qi="hamburgerMenu_hamburgerMenu__zKaBW",Hi="hamburgerMenu_animate__CjZxq",Gi=e=>{let{boolean:t}=e;return(0,$.jsx)("div",{className:"".concat(qi," ").concat(t?Hi:"")})};Gi.defaultProps={boolean:!1};const Yi=Gi,Ki=e=>{let{addClass:t,setAllBlocks:s,allBlocks:i,userRules:o,onChangeBlocks:n,setTourStep:r,tourStep:l,isTourOpen:c}=e;const{blocks:d,socket:u}=(0,a.useContext)(si),[p,h]=ui(!1,"hamburgerOnOff"),[m,g]=ui({text:"",type:"triggers",index:0},"filterControlPanel"),b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.text,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.type;if(!d)return;let a=[...d];a=a.filter((t=>{if(!e)return!0;const{name:s}=t.getStaticData();return s&&y.I18n.t(s).toLowerCase().includes(e.toLowerCase())})),a=a.filter((e=>t===e.getStaticData().acceptedBy)),s(a)},v=e=>({id:"scrollable-force-tab-".concat(e),"aria-controls":"scrollable-force-tabpanel-".concat(e)});return(0,a.useEffect)((()=>{b()}),[d]),(0,$.jsx)(ot.ClickAwayListener,{mouseEvent:!1,touchEvent:"onTouchStart",onClickAway:()=>h(!0),children:(0,$.jsxs)("div",{className:y.Utils.clsx(Mi,t[1035]&&Wi),children:[(0,$.jsx)("div",{className:"".concat(zi," ").concat(p?Pi:null),onClick:()=>h(!p),children:(0,$.jsx)(Yi,{boolean:!p})}),(0,$.jsxs)("div",{className:"".concat(y.Utils.clsx(Ai,t[1035]&&Zi,t[835]&&Vi)," ").concat(p?Ei:null),children:[(0,$.jsx)("div",{className:Li,children:(0,$.jsx)(ot.AppBar,{className:Ui,position:"static",children:(0,$.jsxs)(ot.Tabs,{value:m.index,onChange:(e,t)=>{c&&0===t&&l===Fs&&r(Bs),c&&2===t&&l===Ws&&r(Zs),g({...m,index:t,type:["triggers","conditions","actions"][t]}),b(m.text,["triggers","conditions","actions"][t])},children:[(0,$.jsx)(ot.Tab,{className:"blocks-triggers",title:y.I18n.t("Triggers"),icon:(0,$.jsx)(Ft,{iconName:"FlashOn"}),...v(0)}),(0,$.jsx)(ot.Tab,{title:y.I18n.t("Conditions"),className:"blocks-conditions",icon:(0,$.jsx)(Ft,{iconName:"Help"}),...v(1)}),(0,$.jsx)(ot.Tab,{title:y.I18n.t("Actions"),className:"blocks-actions",icon:(0,$.jsx)(Ft,{iconName:"PlayForWork"}),...v(2)})]})})}),(0,$.jsx)("div",{className:Ni,children:(0,$.jsxs)("span",{children:[i.map((e=>{const{name:t,id:s,icon:i,adapter:d}=e.getStaticData();return(0,$.jsx)(a.Fragment,{children:(0,$.jsx)(Ji,{onTouchMove:()=>h(!0),setTourStep:r,tourStep:l,isTourOpen:c,allProperties:e.getStaticData(),name:t,icon:i,adapter:d,socket:u,userRules:o,setUserRules:n,isActive:!1,id:s})},s)})),0===i.length&&(0,$.jsxs)("div",{className:Fi,children:[y.I18n.t("Nothing found"),"...",(0,$.jsx)("div",{className:Bi,onClick:()=>{g({...m,text:""}),b("")},children:y.I18n.t("reset search")})]})]})}),(0,$.jsx)("div",{className:y.Utils.clsx(Oi,_i)}),(0,$.jsx)(ds,{className:Ri,fullWidth:!0,customValue:!0,value:m.text,size:"small",autoComplete:"off",label:y.I18n.t("search"),variant:"outlined",onChange:e=>{g({...m,text:e}),b(e)}})]})]})})},Qi=e=>{let{code:t,onChange:s,themeName:i,setTourStep:o,tourStep:n,isTourOpen:r,command:l,scriptId:c,changed:d,running:u}=e;const{blocks:p,socket:h,setOnUpdate:m,setOnDebugMessage:g,setEnableSimulation:b}=(0,a.useContext)(si),[v,f]=(0,a.useState)([]),[S,x]=(0,a.useState)(ma.code2json(t)),[k,w]=(0,a.useState)(""),[C,j]=(0,a.useState)(!1);(0,a.useEffect)((()=>{let e,t;const s=(a,i)=>{var o,n;a===e+".alive"?t!==(null===i||void 0===i?void 0:i.val)&&(t=null===i||void 0===i?void 0:i.val,t&&h.sendTo(e.replace(/^system\.adapter\./,""),"rulesOn",c)):e!==(null===i||void 0===i||null===(o=i.common)||void 0===o?void 0:o.engine)&&(e&&h.unsubscribeState("".concat(e,".alive"),s),t&&h.sendTo(e.replace(/^system\.adapter\./,""),"rulesOn",c),e=null===i||void 0===i||null===(n=i.common)||void 0===n?void 0:n.engine,e&&h.subscribeState("".concat(e,".alive"),s))},a=(e,t)=>{if(t)try{let e=JSON.parse(t.val);e.ruleId===c&&Date.now()-e.ts<1e3&&g({blockId:e.blockId,data:e.data,ts:e.ts})}catch(s){console.error("Cannot parse: "+t.val)}};return h.getObject(c).then((t=>{var i;e=null===t||void 0===t||null===(i=t.common)||void 0===i?void 0:i.engine,h.subscribeObject(c,s),e&&h.subscribeState("".concat(e,".alive"),s),e&&h.subscribeState(e.replace(/^system\.adapter\./,"")+".debug.rules",a)})),function(){e&&h.unsubscribeObject("".concat(e,".alive"),s),h.unsubscribeState(c,s),t&&e&&h.sendTo(e.replace(/^system\.adapter\./,""),"rulesOff",c),e&&h.unsubscribeState(e.replace(/^system\.adapter\./,"")+".debug.rules",a)}}),[]),(0,a.useEffect)((()=>{b(!d&&u)}),[d,u,b]),(0,a.useEffect)((()=>{l&&(w(l),C||j(!0))}),[l]),(0,a.useEffect)((()=>{const e=ma.code2json(t);JSON.stringify(e)!==JSON.stringify(S)&&(x(e),m(!0))}),[t]),(0,a.useEffect)((()=>{document.getElementsByTagName("HTML")[0].className=i||"blue"}),[i]);const I=(0,a.useCallback)((e=>{x(e),s(ma.json2code(e,p))}),[p,s]),T=(0,a.useRef)({clientWidth:0}),[D,A]=(0,a.useState)({835:!1,1035:!1});return(0,a.useEffect)((()=>{T.current&&(T.current.clientWidth<=1035&&A({835:!1,1035:!0}),T.current.clientWidth<=835&&A({1035:!0,835:!0}),T.current.clientWidth>1035&&A({835:!1,1035:!1}))}),[T.current.clientWidth]),p?(0,$.jsxs)("div",{className:Dt,ref:T,children:[(0,$.jsx)(ci,{allBlocks:v,socket:h}),"export"===k?(0,$.jsx)(ht,{onClose:()=>j(!1),open:C,text:JSON.stringify(S,null,2)},"dialogExport"):(0,$.jsx)(bt,{open:C,onClose:e=>{j(!1),e&&I(JSON.parse(e))}},"dialogImport"),(0,$.jsxs)("div",{className:y.Utils.clsx(At,D[835]&&Nt),children:[(0,$.jsx)(Ki,{setAllBlocks:f,allBlocks:v,userRules:S,onChangeBlocks:I,setTourStep:o,tourStep:n,addClass:D,isTourOpen:r}),(0,$.jsx)(Di,{setUserRules:I,userRules:S,isTourOpen:r,setTourStep:o,tourStep:n,name:"".concat(y.I18n.t("when"),"..."),typeBlock:"triggers",iconName:"FlashOn",size:D[835]}),(0,$.jsx)(Di,{setUserRules:I,isTourOpen:r,setTourStep:o,tourStep:n,userRules:S,name:"...".concat(y.I18n.t("and"),"..."),typeBlock:"conditions",iconName:"Help",nameAdditionally:y.I18n.t("or"),additionally:!0,border:!0,size:D[835]}),(0,$.jsx)(Di,{setUserRules:I,isTourOpen:r,setTourStep:o,tourStep:n,userRules:S,name:"...".concat(y.I18n.t("then")),typeBlock:"actions",iconName:"PlayForWork",nameAdditionally:y.I18n.t("else"),additionally:!0,size:D[835]})]})]},"rulesEditor"):null};var Xi=s(76278);class $i extends i().Component{constructor(e){super(e),this.state={lines:(this.props.script||"").split(/\r\n|\n/)}}editorDidMount(e,t){this.monaco=t,this.editor=e,e.focus()}render(){return(0,$.jsx)("div",{className:this.props.classes.editorDiv,children:(0,$.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:e=>this.props.onToggleBreakpoint(e)},"scriptEditor2")},"scriptEditorDiv2")}}const eo=(0,u.Z)((e=>({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"}})))($i);function to(e){let t,s=e.getHours();return s<10&&(s="0"+s.toString()),t=s+":",s=e.getMinutes(),s<10&&(s="0"+s.toString()),t+=s+":",s=e.getSeconds(),s<10&&(s="0"+s.toString()),t+=s+".",s=e.getMilliseconds(),s<10?s="00"+s.toString():s<100&&(s="0"+s.toString()),t+=s,t}class so extends i().Component{constructor(e){super(e),this.state={lines:{},goBottom:!0},this.messagesEnd=i().createRef()}generateLine(e){return(0,$.jsxs)("tr",{className:this.props.classes[e.severity],children:[(0,$.jsx)("td",{className:this.props.classes.trTime,children:to(new Date(e.ts))},"tdTime"),(0,$.jsx)("td",{className:this.props.classes.trSeverity,children:e.severity},"tdSeverity"),(0,$.jsx)("td",{children:e.text},"tdMessage")]},"tr_".concat(e.ts,"_").concat(e.text.substr(-10)))}renderLogList(e){return e&&e.length?(0,$.jsxs)("div",{className:this.props.classes.logBoxInner,children:[(0,$.jsx)("table",{className:this.props.classes.table,children:(0,$.jsx)("tbody",{children:e.map(((e,t)=>this.generateLine(e)))})},"logTable"),(0,$.jsx)("div",{ref:this.messagesEnd,style:{float:"left",clear:"both"}},"logScrollPoint")]},"logList"):(0,$.jsx)("div",{className:this.props.classes.logBoxInner,style:{paddingLeft:10},children:y.I18n.t("Log outputs")},"logList")}onCopy(){y.Utils.copyToClipboard(this.props.console.join("\n"))}scrollToBottom(){this.messagesEnd&&this.messagesEnd.current&&this.messagesEnd.current.scrollIntoView({behavior:"smooth"})}componentDidUpdate(){this.state.goBottom&&this.scrollToBottom()}render(){const e=this.props.console;return(0,$.jsxs)("div",{className:this.props.classes.logBox,children:[(0,$.jsxs)("div",{className:this.props.classes.toolbox,children:[(0,$.jsx)(I.Z,{className:this.props.classes.iconButtons,onClick:()=>this.setState({goBottom:!this.state.goBottom}),color:this.state.goBottom?"secondary":"",size:"medium",children:(0,$.jsx)(v.G10,{})}),e&&e.length?(0,$.jsx)(I.Z,{className:this.props.classes.iconButtons,onClick:()=>this.props.onClearAllLogs(),size:"medium",children:(0,$.jsx)(v.FH3,{})}):null,e&&e.length?(0,$.jsx)(I.Z,{className:this.props.classes.iconButtons,onClick:()=>this.onCopy(),size:"medium",children:(0,$.jsx)(v.Fqs,{})}):null]},"toolbox"),this.renderLogList(e)]})}}const ao=(0,u.Z)((e=>({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}})))(so);var io=s(71939),oo=s.n(io);class no extends i().Component{constructor(e){super(e),this.framesSize=parseFloat(window.localStorage.getItem("App.framesSize"))||300,this.state={editValue:null,callFrames:this.props.callFrames},this.editRef=i().createRef()}onExpressionNameUpdate(){this.props.onExpressionNameUpdate(this.state.editValue.index,this.scopeValue,(()=>{this.setState({editValue:null}),this.scopeValue=null}))}renderExpression(e,t){const s=this.state.editValue&&"expression"===this.state.editValue.type&&this.state.editValue.index===t?(0,$.jsx)(A.Z,{inputRef:this.editRef,fullWidth:!0,margin:"dense",onBlur:()=>this.state.editValue&&this.setState({editValue:null}),defaultValue:e.name,onKeyUp:e=>{13===e.keyCode?this.onExpressionNameUpdate():27===e.keyCode&&this.setState({editValue:null})},onChange:e=>this.scopeValue=e.target.value,endAdornment:(0,$.jsx)(xe.Z,{position:"end",children:(0,$.jsx)(I.Z,{onClick:()=>this.onExpressionNameUpdate(),size:"medium",children:(0,$.jsx)(v.HhX,{})})})}):[(0,$.jsx)("div",{className:this.props.classes.scopeNameName,title:y.I18n.t("Double click to edit expression"),children:e.name},"name"),(0,$.jsx)("div",{className:this.props.classes.scopeNameEqual,children:" = "},"="),(0,$.jsx)("div",{className:this.props.classes.scopeNameValue,children:this.formatValue(e.value)},"val")];return(0,$.jsxs)("tr",{children:[(0,$.jsx)("td",{className:y.Utils.clsx(this.props.classes.scopeType,this.props.classes.scopeType_user),children:"user"}),(0,$.jsx)("td",{className:this.props.classes.scopeName,onDoubleClick:()=>{this.scopeValue=e.name||"",this.setState({editValue:{type:"expression",valueType:"string",index:t,name:e.name,value:e.name||""}})},children:s}),(0,$.jsx)(I.Z,{className:this.props.classes.scopeButtonDel,size:"small",disabled:!!this.state.editValue,onClick:()=>this.props.onExpressionDelete(t),children:(0,$.jsx)(v.ZkW,{})})]},"user_".concat(t).concat(e.name))}renderExpressions(){return this.props.expressions.map(((e,t)=>this.renderExpression(e,t)))}renderOneFrameTitle(e,t){if(this.props.mainScriptId===this.props.currentScriptId&&e.location.scriptId!==this.props.mainScriptId)return null;const s=e.url.split("/").pop().replace(/^script\.js\./,"");return(0,$.jsx)(Xi.Z,{onClick:()=>this.props.onChangeCurrentFrame(t),dense:!0,selected:this.props.currentFrame===t,classes:{root:this.props.classes.frameRoot},children:(0,$.jsx)(j.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(s," (").concat(e.location.lineNumber,":").concat(e.location.columnNumber,")")})},e.id)}formatValue(e,t){if(e){if("function"===e.type){const s=e.description?e.description.length>100?e.description.substring(0,100)+"...":e.description:"function";return t?s:(0,$.jsx)("span",{className:this.props.classes.valueFunc,title:e.description,children:s})}if(void 0===e.value)return t?"undefined":(0,$.jsx)("span",{className:this.props.classes.valueUndefined,children:"undefined"});if(null===e.value)return t?"null":(0,$.jsx)("span",{className:this.props.classes.valueNull,children:"null"});if("string"===e.type){if(t)return e.value;{const t=e.value?e.value.length>100?e.value.substring(0,100)+"...":e.value:"";return(0,$.jsxs)("span",{className:this.props.classes.valueString,title:t,children:['"',t,'"']})}}return"boolean"===e.type?t?e.value.toString():(0,$.jsx)("span",{className:this.props.classes.valueBoolean,children:e.value.toString()}):"object"===e.type?t?JSON.stringify(e.value):(0,$.jsx)(oo(),{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,$.jsx)("span",{className:this.props.classes.valueNone,children:"none"})}onWriteScopeValue(){"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}componentDidUpdate(){var e;null===(e=this.editRef.current)||void 0===e||e.focus()}renderScope(e,t,s){var a,i;const o=!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===(i=t.value)||void 0===i?void 0:i.value)),n=this.state.editValue&&this.state.editValue.type===s&&this.state.editValue.name===t.name?[(0,$.jsx)("div",{className:this.props.classes.scopeNameName,children:t.name},"name"),(0,$.jsx)("div",{className:this.props.classes.scopeNameEqual,children:" = "},"="),(0,$.jsx)(A.Z,{inputRef:this.editRef,margin:"dense",onBlur:()=>this.state.editValue&&this.setState({editValue:null}),defaultValue:this.formatValue(t.value,!0),onKeyUp:e=>{13===e.keyCode?this.onWriteScopeValue():27===e.keyCode&&this.setState({editValue:null})},onChange:e=>this.scopeValue=e.target.value,endAdornment:(0,$.jsx)(xe.Z,{position:"end",children:(0,$.jsx)(I.Z,{onClick:()=>this.onWriteScopeValue(),size:"medium",children:(0,$.jsx)(v.HhX,{})})})})]:[(0,$.jsx)("div",{className:this.props.classes.scopeNameName,title:y.I18n.t("Double click to write value"),children:t.name},"name"),(0,$.jsx)("div",{className:this.props.classes.scopeNameEqual,children:" = "},"="),(0,$.jsxs)("div",{className:this.props.classes.scopeNameValue,children:[this.formatValue(t.value)," (",t.value.type,")"]},"val")];return(0,$.jsxs)("tr",{children:[(0,$.jsx)("td",{className:y.Utils.clsx(this.props.classes.scopeType,this.props.classes["scopeType_"+s]),children:s}),(0,$.jsx)("td",{className:y.Utils.clsx(this.props.classes.scopeName,!this.props.currentFrame&&o&&this.props.classes.scopeValueEditable),onDoubleClick:()=>{o&&(this.scopeValue=t.value.value,this.setState({editValue:{scopeId:e,type:s,valueType:t.value.type,name:t.name,value:t.value.value}}))},children:n})]},"".concat(s,"_").concat(e,"_").concat(t.name))}renderScopes(e){if(e){var t,s,a,i,o,n;let e=this.renderExpressions(),r=null===(t=this.props.scopes)||void 0===t||null===(s=t.local)||void 0===s||null===(a=s.properties)||void 0===a?void 0:a.result.map((e=>this.renderScope(this.props.scopes.id,e,"local")));return r&&r.forEach((t=>e.push(t))),r=null===(i=this.props.scopes)||void 0===i||null===(o=i.closure)||void 0===o||null===(n=o.properties)||void 0===n?void 0:n.result.map((e=>this.renderScope(this.props.scopes.id,e,"closure"))),r&&r.forEach((t=>e.push(t))),(0,$.jsx)("table",{style:{width:"100%"},children:(0,$.jsx)("tbody",{children:e})})}return null}render(){return(0,$.jsxs)(h(),{customClassName:this.props.classes.splitter,primaryIndex:1,secondaryMinSize:200,primaryMinSize:200,vertical:!1,secondaryInitialSize:this.framesSize,onSecondaryPaneSizeChange:e=>this.framesSize=parseFloat(e),onDragEnd:()=>window.localStorage.setItem("App.framesSize",this.framesSize.toString()),children:[(0,$.jsx)("div",{style:{width:"100%",height:"100%",overflow:"auto"},children:(0,$.jsx)(x.Z,{classes:{root:this.props.classes.listRoot},children:this.props.callFrames?this.props.callFrames.map(((e,t)=>this.renderOneFrameTitle(e,t))):null})}),(0,$.jsxs)("div",{style:{width:"100%",height:"100%",overflow:"auto"},children:[(0,$.jsx)("div",{className:this.props.classes.toolbarScopes,children:(0,$.jsx)(I.Z,{size:"small",onClick:()=>this.props.onExpressionAdd(((e,t)=>{this.scopeValue=t.name||"",this.setState({editValue:{type:"expression",valueType:"string",index:e,name:t.name,value:t.name||""}})})),children:(0,$.jsx)(v.x06,{})})}),(0,$.jsx)("div",{className:this.props.classes.scopesAfterToolbar,children:this.props.callFrames&&this.props.callFrames.length&&this.renderScopes(this.props.callFrames[this.props.currentFrame])})]})]})}}const ro=(0,u.Z)((e=>({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"}})))(no);class lo extends i().Component{constructor(e){super(e),this.fromInstance=(e,t)=>{try{const e=JSON.parse(t.val);if("subscribed"===e.cmd)this.props.socket.sendTo(this.state.instance,"debug",this.props.debugInstance||{scriptName:this.props.src});else if("readyToDebug"===e.cmd){var s;this.mainScriptId=e.scriptId,this.scripts[e.scriptId]=e.script,e.script.startsWith("(async () => {debugger;\n")?this.scripts[e.scriptId]="(async () => {\n".concat(e.script.substring(24)):e.script.startsWith("debugger;")&&(this.scripts[e.scriptId]=e.script.substring(9));const t=JSON.parse(JSON.stringify(this.state.tabs));t[e.scriptId]=this.props.debugInstance?e.url:this.props.src.replace("script.js.","");const a="".concat(Date.now(),".").concat(1e4*Math.random());(null===(s=e.context)||void 0===s?void 0:s.callFrames)&&e.context.callFrames.forEach(((e,t)=>e.id=a+t)),this.setState({starting:!1,finished:!1,selected:this.mainScriptId,script:this.scripts[e.scriptId],tabs:t,currentFrame:0,started:!0,paused:!0,location:this.getLocation(e.context),context:e.context},(()=>this.reinitBreakpoints((()=>{this.readCurrentScope(),this.readExpressions()}))))}else if("paused"===e.cmd){var a,i;const t="".concat(Date.now(),".").concat(1e4*Math.random());(null===(a=e.context)||void 0===a?void 0:a.callFrames)&&e.context.callFrames.forEach(((e,s)=>e.id=t+s));const s=this.getLocation(e.context),o=JSON.parse(JSON.stringify(this.state.tabs)),n=e.context.callFrames[0].url.split("iobroker.javascript");o[s.scriptId]=(n[1]||n[0]).replace("script.js.","");const r={tabs:o,paused:!0,location:s,currentFrame:0,context:e.context,scope:{id:(null===(i=e.context)||void 0===i?void 0:i.callFrames)&&e.context.callFrames[0]&&e.context.callFrames[0].id||0}};r.script=void 0===this.scripts[s.scriptId]?y.I18n.t("loading..."):this.scripts[s.scriptId],r.selected=s.scriptId,this.setState(r,(()=>{this.readCurrentScope(),this.readExpressions(),this.scripts[s.scriptId]||this.sendToInstance({cmd:"source",scriptId:s.scriptId})}))}else if("script"===e.cmd)this.scripts[e.scriptId]=e.text,this.state.selected===e.scriptId&&this.setState({script:this.scripts[e.scriptId]});else if("resumed"===e.cmd)this.setState({paused:!1});else if("log"===e.cmd)if("console"===this.state.toolsTab){this.console=null;const t=[...this.state.console];t.push({text:e.text,severity:e.severity,ts:e.ts}),this.setState({console:t})}else"error"===e.severity?this.setState({logErrors:this.state.logErrors+1}):"warn"===e.severity?this.setState({logWarnings:this.state.logWarnings+1}):this.setState({logs:this.state.logs+1}),this.console=this.console||[...this.state.console],this.console.push({text:e.text,severity:e.severity,ts:e.ts});else if("error"===e.cmd)this.setState({error:e.error});else if("finished"===e.cmd||"debugStopped"===e.cmd)this.setState({finished:!0,starting:!1,started:!0});else if("sb"===e.cmd){const t=JSON.parse(JSON.stringify(this.state.breakpoints));let s=!1;e.breakpoints.filter((e=>e)).forEach((e=>{t.find((t=>t.location.scriptId===e.location.scriptId&&t.location.lineNumber===e.location.lineNumber))||(s=!0,t.push(e))})),s&&window.localStorage.setItem("javascript.tools.bp."+this.props.src,JSON.stringify(t)),s&&this.setState({breakpoints:t})}else if("cb"===e.cmd){const t=JSON.parse(JSON.stringify(this.state.breakpoints));let s=!1;e.breakpoints.filter((e=>void 0!==e&&null!==e)).forEach((e=>{const a=t.find((t=>t.id===e));if(a){const e=t.indexOf(a);t.splice(e,1),s=!0}})),s&&window.localStorage.setItem("javascript.tools.bp."+this.props.src,JSON.stringify(t)),s&&this.setState({breakpoints:t})}else if("scope"===e.cmd){const t=e.scopes.find((e=>"local"===e.type))||null,s=e.scopes.find((e=>"closure"===e.type))||null;console.log(JSON.stringify(s)),this.setState({scopes:{local:t,closure:s,id:"".concat(this.state.scope.id,"_").concat(this.state.currentFrame)}})}else if("setValue"===e.cmd){const t=JSON.parse(JSON.stringify(this.state.scopes));let s;s=0===e.scopeNumber?t.local&&t.local.properties&&t.local.properties.result&&t.local.properties.result.find((t=>t.name===e.variableName)):t.closure&&t.closure.properties&&t.closure.properties.result&&t.closure.properties.result&&t.closure.properties.result.find((t=>t.name===e.variableName)),s&&(s.value.value=e.newValue.value,this.setState({scopes:t}))}else if("expressions"===e.cmd){let t=JSON.parse(JSON.stringify(this.state.expressions)),s=!1;e.expressions.forEach((e=>{const a=t.find((t=>t.name===e.name));a&&(s=!0,a.value=e.result)})),s&&this.setState({expressions:t}),console.log("expressions: "+JSON.stringify(e))}else if("getPossibleBreakpoints"===e.cmd){var o,n,r,l;1===(null===(o=e.breakpoints)||void 0===o||null===(n=o.locations)||void 0===n?void 0:n.length)?this.sendToInstance({breakpoints:e.breakpoints.locations,cmd:"sb"}):null!==(r=e.breakpoints)&&void 0!==r&&null!==(l=r.locations)&&void 0!==l&&l.length?this.setState({queryBreakpoints:e.breakpoints.locations}):window.alert("cannot set")}else console.error("Unknown command: ".concat(JSON.stringify(e)))}catch(c){}};let t=window.localStorage.getItem("javascript.tools.bp."+this.props.src);try{t=t?JSON.parse(t):[]}catch(a){t=[]}let s=window.localStorage.getItem("javascript.tools.exps."+this.props.src);try{s=s?JSON.parse(s):[],s=s.map((e=>({name:e})))}catch(a){s=[]}this.toolSize=window.localStorage&&parseFloat(window.localStorage.getItem("App.toolSize"))||150,this.state={starting:!0,selected:null,tabs:{},script:"",breakpoints:t,expressions:s,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},this.scripts={},this.mainScriptId=null}componentDidMount(){new Promise((e=>{this.props.debugInstance?e(this.props.debugInstance.instance):this.props.socket.getObject(this.props.src).then((t=>{var s,a;return e(null===t||void 0===t||null===(s=t.common)||void 0===s||null===(a=s.engine)||void 0===a?void 0:a.replace("system.adapter.",""))}))})).then((e=>this.setState({instance:e},(()=>{this.state.instance?(this.props.socket.setState("".concat(this.state.instance,".debug.from"),{val:'{"cmd": "subscribed"}',ack:!0}),setTimeout((()=>this.props.socket.subscribeState("".concat(this.state.instance,".debug.from"),this.fromInstance)),200)):this.setState({error:"Unknown instance"})}))))}componentWillUnmount(){this.state.instance&&(this.props.socket.unsubscribeState("".concat(this.state.instance,".debug.from"),this.fromInstance),this.props.socket.sendTo(this.state.instance,"debugStop"))}sendToInstance(e){this.props.socket.setState("".concat(this.state.instance,".debug.to"),{val:JSON.stringify(e),ack:!1})}reinitBreakpoints(e){if(this.state.breakpoints.length){let t=JSON.parse(JSON.stringify(this.state.breakpoints));t=t.map((e=>e.location)),this.setState({breakpoints:[]},(()=>{this.sendToInstance({breakpoints:t,cmd:"sb"}),this.state.stopOnException&&this.sendToInstance({cmd:"stopOnException",state:!0}),e&&e()}))}else this.state.stopOnException?(this.sendToInstance({cmd:"stopOnException",state:!0}),e&&e()):e&&e()}getLocation(e){if(e.callFrames){return e.callFrames[0].location}}readCurrentScope(){var e;const t=(null===(e=this.state.context)||void 0===e?void 0:e.callFrames)&&this.state.context.callFrames[this.state.currentFrame];if(t){const e=t.scopeChain.filter((e=>"global"!==e.type));e.length?this.sendToInstance({cmd:"scope",scopes:e}):(this.state.scopes.global||this.state.scopes.local||this.state.scopes.closure)&&this.setState({scopes:{}})}}readExpressions(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}))}getTextAtLocation(e){let t=this.state.script.split(/\r\n|\n/)[e.lineNumber],s="";return e.columnNumber>=10?(t=t.substring(e.columnNumber-10,e.columnNumber+20),s="".padStart(10," ")+"\u2191"):(t=t.substring(0,30-e.columnNumber),s="".padStart(e.columnNumber," ")+"\u2191"),[(0,$.jsx)("div",{className:this.props.classes.monospace,children:t},"line"),(0,$.jsx)("div",{className:y.Utils.clsx(this.props.classes.monospace,this.props.classes.arrow),children:s},"arrow")]}renderQueryBreakpoints(){return this.state.queryBreakpoints?(0,$.jsxs)(q.Z,{onClose:()=>this.setState({queryBreakpoints:null}),"aria-labelledby":"bp-dialog-title",open:!0,children:[(0,$.jsx)(Z.Z,{id:"bp-dialog-title",children:y.I18n.t("Select breakpoint")}),(0,$.jsx)(x.Z,{children:this.state.queryBreakpoints.map(((e,t)=>(0,$.jsx)(Xi.Z,{classes:{root:this.props.classes.bpListItem},dense:!0,onClick:()=>{this.sendToInstance({breakpoints:[e],cmd:"sb"}),this.setState({queryBreakpoints:null})},children:(0,$.jsx)(j.Z,{classes:{primary:this.props.classes.bpListPrimary,secondary:this.props.classes.bpListSecondary},primary:this.getTextAtLocation(e)})},t)))})]}):null}renderError(){return this.state.error?(0,$.jsx)(fe,{onClose:()=>this.setState({error:""}),text:this.state.error},"dialogError"):null}closeTab(e,t){t&&t.stopPropagation();const s=JSON.parse(JSON.stringify(this.state.tabs));delete s[e];const a={tabs:s,script:this.scripts[this.mainScriptId],selected:this.mainScriptId};this.state.location&&this.state.location.scriptId!==this.mainScriptId&&(a.location=null),this.setState(a)}renderTabs(){const e=!this.state.tabs||!this.state.started;return(0,$.jsx)(qe.Z,{component:"div",indicatorColor:"primary",style:{position:"relative",width:"calc(100% - 300px)",display:"inline-block"},value:this.state.selected,onChange:(e,t)=>{this.scripts[t]?this.setState({selected:t,script:this.scripts[t]}):this.setState({selected:t,script:"loading..."},(()=>this.sendToInstance({cmd:"source",scriptId:t})))},scrollButtons:"auto",children:Object.keys(this.state.tabs||[]).map((t=>{let s=t,a=this.state.tabs[t]||"";return this.state.tabs[t]&&(s=this.state.tabs[t].split("/").pop()),s=[(0,$.jsx)("div",{className:y.Utils.clsx(this.props.classes.tabText),children:s},"text"),t!==this.mainScriptId&&(0,$.jsx)("span",{className:this.props.classes.closeButton,children:(0,$.jsx)(v.FU5,{onClick:e=>this.closeTab(t,e),fontSize:"small"},"close")},"icon")],(0,$.jsx)(He.Z,{disabled:e,classes:{root:this.props.classes.tabFile},label:s,title:a,value:t},t)}))})}onResume(){this.sendToInstance({cmd:"cont"})}onPause(){this.sendToInstance({cmd:"pause"})}onNext(){this.sendToInstance({cmd:"next"})}onStepIn(){this.sendToInstance({cmd:"step"})}onStepOut(){this.sendToInstance({cmd:"out"})}onRestart(){this.setState({started:!1,starting:!0},(()=>this.props.socket.sendTo(this.state.instance,"debug",this.props.debugInstance||{scriptName:this.props.src})))}onToggleException(){const e=!this.state.stopOnException;window.localStorage.setItem("javascript.tools.stopOnException",e?"true":"false"),this.setState({stopOnException:e},(()=>this.sendToInstance({cmd:"stopOnException",state:e})))}renderToolbar(){const e=!this.state.started;return(0,$.jsxs)(Je.Z,{variant:"dense",className:this.props.classes.toolbar,children:[(0,$.jsx)(I.Z,{className:this.props.classes.buttonRestart,disabled:e,onClick:()=>this.onRestart(),title:y.I18n.t("Restart"),size:"medium",children:(0,$.jsx)(v.la_,{})}),!this.state.finished&&this.state.paused?(0,$.jsx)(I.Z,{className:this.props.classes.buttonRun,disabled:e,onClick:()=>this.onResume(),title:y.I18n.t("Resume execution"),size:"medium",children:(0,$.jsx)(v.Nhx,{})}):!this.state.finished&&(0,$.jsx)(I.Z,{disabled:e,className:this.props.classes.buttonPause,onClick:()=>this.onPause(),title:y.I18n.t("Pause execution"),size:"medium",children:(0,$.jsx)(v.hPq,{})}),!this.state.finished&&(0,$.jsx)(I.Z,{className:this.props.classes.buttonNext,disabled:e||!this.state.paused,onClick:()=>this.onNext(),title:y.I18n.t("Go to next line"),size:"medium",children:(0,$.jsx)(v.hdK,{})}),!this.state.finished&&(0,$.jsx)(I.Z,{className:this.props.classes.buttonStep,disabled:e||!this.state.paused,onClick:()=>this.onStepIn(),title:y.I18n.t("Step into function"),size:"medium",children:(0,$.jsx)(v.t9$,{})}),!this.state.finished&&(0,$.jsx)(I.Z,{className:this.props.classes.buttonOut,disabled:e||!this.state.paused,onClick:()=>this.onStepOut(),title:y.I18n.t("Step out from function"),size:"medium",children:(0,$.jsx)(v.InZ,{})}),!this.state.finished&&(0,$.jsx)(I.Z,{className:this.props.classes.buttonException,color:this.state.stopOnException?"primary":"default",disabled:e||!this.state.paused,onClick:()=>this.onToggleException(),title:y.I18n.t("Stop on exception"),size:"medium",children:(0,$.jsx)(v.YTL,{})}),this.renderTabs()]},"toolbar1")}getPossibleBreakpoints(e){const t={...e,columnNumber:1e3};this.sendToInstance({cmd:"getPossibleBreakpoints",start:e,end:t})}toggleBreakpoint(e){let t=this.state.breakpoints.find((t=>t.location.scriptId===this.state.selected&&t.location.lineNumber===e));if(t){const e=JSON.parse(JSON.stringify(this.state.breakpoints));this.setState({breakpoints:e},(()=>this.sendToInstance({breakpoints:[t.id],cmd:"cb"})))}else t={scriptId:this.state.selected,lineNumber:e,columnNumber:0},this.getPossibleBreakpoints(t)}renderCode(){if(this.state.script&&this.state.started){const e=this.state.breakpoints.filter((e=>e.location.scriptId===this.state.selected));return(0,$.jsx)(eo,{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:e,location:this.state.location,themeType:this.props.themeType,themeName:this.props.themeName,onToggleBreakpoint:e=>this.toggleBreakpoint(e)})}}renderFrames(){var e;return this.state.paused?(0,$.jsx)(ro,{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:e=>{this.setState({currentFrame:e,scopes:{}},(()=>{this.readCurrentScope(),this.readExpressions()}))},onWriteScopeValue:e=>{this.sendToInstance({cmd:"setValue",variableName:e.variableName,scopeNumber:e.scopeNumber,newValue:e.newValue,callFrameId:e.callFrameId})},onExpressionDelete:e=>{const t=JSON.parse(JSON.stringify(this.state.expressions));t.splice(e,1),this.setState({expressions:t}),window.localStorage.setItem("javascript.tools.exps."+this.props.src,JSON.stringify(t.map((e=>e.name))))},onExpressionAdd:e=>{const t=JSON.parse(JSON.stringify(this.state.expressions));t.push({name:"",value:{value:""}}),this.setState({expressions:t},(()=>e&&e(t.length-1,this.state.expressions[t.length-1])))},onExpressionNameUpdate:(e,t,s)=>{const a=JSON.parse(JSON.stringify(this.state.expressions));if(t){if(a.find((e=>e.name===t)))return s&&s(!1);a[e].name=t}else a.splice(e,1);this.setState({expressions:a},(()=>{t&&this.readExpressions(e),s&&s()})),window.localStorage.setItem("javascript.tools.exps."+this.props.src,JSON.stringify(a.map((e=>e.name))))}}):null}renderConsole(){return(0,$.jsx)(ao,{theme:this.props.theme,console:this.state.console,onClearAllLogs:()=>this.setState({console:[],logErrors:0,logWarning:0,logs:0})})}renderTools(){const e=!this.state.tabs||!this.state.started;let t;return t=this.state.logErrors?(0,$.jsx)(Ge.Z,{badgeContent:this.state.logErrors,color:"error",children:(0,$.jsx)("span",{children:y.I18n.t("Console")})}):this.state.logWarnings?(0,$.jsx)(Ge.Z,{badgeContent:this.state.logWarnings,color:"secondary",children:(0,$.jsx)("span",{children:y.I18n.t("Console")})}):this.state.logs?(0,$.jsx)(Ge.Z,{badgeContent:this.state.logs,color:"default",children:(0,$.jsx)("span",{children:y.I18n.t("Console")})}):y.I18n.t("Console"),(0,$.jsxs)("div",{style:{width:"100%",height:"100%",overflow:"hidden"},children:[(0,$.jsxs)(qe.Z,{classes:{root:this.props.classes.tabsRoot},component:"div",indicatorColor:"primary",style:{position:"relative",width:"100%"},value:this.state.toolsTab,onChange:(e,t)=>{const s={toolsTab:t};this.console&&"console"===t&&(s.console=this.console,this.console=null,s.logs=0,s.logWarnings=0,s.logErrors=0),window.localStorage.setItem("javascript.tools.tab",t),this.setState(s)},scrollButtons:"auto",children:[(0,$.jsx)(He.Z,{classes:{root:this.props.classes.tabRoot},disabled:e,label:y.I18n.t("Stack"),value:"stack"}),(0,$.jsx)(He.Z,{classes:{root:this.props.classes.tabRoot},disabled:e,label:t,value:"console"})]}),(0,$.jsxs)("div",{style:{width:"100%",height:"calc(100% - 36px)",overflow:"hidden"},children:["stack"!==this.state.toolsTab||e?null:this.renderFrames(),"console"!==this.state.toolsTab||e?null:this.renderConsole()]})]})}render(){return(0,$.jsxs)("div",{style:this.props.style,className:y.Utils.clsx(this.props.classes.root,this.props.className),children:[this.state.starting?(0,$.jsx)(Qe.Z,{}):null,this.renderToolbar(),(0,$.jsxs)(h(),{customClassName:this.props.classes.splitter,primaryMinSize:100,vertical:!0,secondaryInitialSize:this.toolSize,onSecondaryPaneSizeChange:e=>this.toolSize=parseFloat(e),onDragEnd:()=>window.localStorage.setItem("App.toolSize",this.toolSize.toString()),children:[(0,$.jsxs)("div",{style:{width:"100%",height:"100%",overflow:"hidden"},children:[this.renderCode(),this.renderQueryBreakpoints()]}),(0,$.jsx)("div",{style:{width:"100%",height:"100%",overflow:"hidden"},children:this.renderTools()})]}),this.renderError()]},"debugger")}}const co=(0,u.Z)((e=>({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%"}}})))(lo);var uo=s(47317),po=s(59665),ho=s(57046);const mo=s.p+"static/media/docs.1f96bec81cf08933d921.md";let go=null;const bo=(e,t)=>e&&"object"===typeof e?e[t]||e.en:e||"",yo=async e=>{const t=y.I18n.getLanguage(),s=await(async e=>{if(go)return go;const t=await e.getObjectView("","\u9999","state"),s=await e.getObjectView("","\u9999","channel"),a=await e.getObjectView("","\u9999","device"),i=await e.getObjectView("","\u9999","folder"),o=await e.getObjectView("","\u9999","enum");return go=Object.values(t).concat(Object.values(s)).concat(Object.values(a)).concat(Object.values(i)).concat(Object.values(o)).reduce(((e,t)=>(e[t._id]=t,e)),{}),go})(e),a=Object.keys(s).sort(),i=new ho.ZP,o=[],n=[],r=[],l=[];a.forEach((e=>{var t,a,i;"enum"===(null===(t=s[e])||void 0===t?void 0:t.type)?o.push(e):null!==(a=s[e])&&void 0!==a&&null!==(i=a.common)&&void 0!==i&&i.smartName&&l.push(e)})),o.forEach((e=>{e.startsWith("enum.rooms.")?n.push(e):e.startsWith("enum.functions.")&&r.push(e);const t=s[e].common.members;t&&t.length&&t.forEach((e=>{s[e]&&(l.includes(e)||l.push(e))}))}));const c={objects:s,_keysOptional:a,_usedIdsOptional:[],ignoreIndicators:["UNREACH_STICKY"],excludedTypes:["info"]},d=[];l.forEach((e=>{c.id=e;const a=i.detect(c);a&&a.forEach((e=>{const a=e.states.find((e=>e.id)).id;if(d.find((e=>e.id===a)))return;const i={id:a,name:bo(s[a].common.name,t),role:s[a].type,deviceType:e.type,states:e.states.filter((e=>e.id)).map((e=>({id:e.id,name:e.name,role:e.defaultRole,type:s[e.id].common.type,unit:s[e.id].common.unit,read:void 0===s[e.id].common.read||s[e.id].common.read,write:void 0===s[e.id].common.write||s[e.id].common.write})))},o=a.split(".");let l,c;"channel"!==s[a].type&&"state"!==s[a].type||(o.pop(),l=o.join("."),!s[l]||"channel"!==s[l].type&&"folder"!==s[a].type?l=null:(o.pop(),c=o.join("."),(!s[c]||"device"!==s[c].type&&"folder"!==s[a].type)&&(c=null)));const u=n.find((e=>!!s[e].common.members.includes(a)||(!(!l||!s[e].common.members.includes(l))||c&&s[e].common.members.includes(c))));u&&(i.room=bo(s[u].common.name,t));const p=r.find((e=>!!s[e].common.members.includes(a)||(!(!l||!s[e].common.members.includes(l))||c&&s[e].common.members.includes(c))));p&&(i.function=bo(s[p].common.name,t)),d.push(i)}))}));for(const g in d){const e=d[g];if("state"===e.type||"channel"===e.type){const a=e._id.split(".");a.pop();const i=s[a.join(".")];if(!i||"channel"!==i.type&&"device"!==i.type&&"folder"!==i.type){var u;e.common.name=bo((null===i||void 0===i||null===(u=i.common)||void 0===u?void 0:u.name)||e.common.name,t)}else{var p,h;e.common.name=bo((null===(p=i.common)||void 0===p?void 0:p.name)||e.common.name,t),a.pop();const o=s[a.join(".")];var m;if("device"===(null===o||void 0===o?void 0:o.type)&&null!==(h=o.common)&&void 0!==h&&h.icon)e.common.name=bo((null===(m=o.common)||void 0===m?void 0:m.name)||e.common.name,t)}}}return d},vo={ru:"Russian",en:"English",de:"German",es:"Spanish",fr:"French",it:"Italian",pl:"Polish",nl:"Dutch",pt:"Portuguese",uk:"Ukrainian","zh-cn":"Chinese"},fo=()=>(0,$.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 2406 2406",children:[(0,$.jsx)("path",{d:"M1 578.4C1 259.5 259.5 1 578.4 1h1249.1c319 0 577.5 258.5 577.5 577.4V2406H578.4C259.5 2406 1 2147.5 1 1828.6V578.4z",fill:"#74aa9c"}),(0,$.jsx)("path",{d:"M1107.3 299.1c-198 0-373.9 127.3-435.2 315.3C544.8 640.6 434.9 720.2 370.5 833c-99.3 171.4-76.6 386.9 56.4 533.8-41.1 123.1-27 257.7 38.6 369.2 98.7 172 297.3 260.2 491.6 219.2 86.1 97 209.8 152.3 339.6 151.8 198 0 373.9-127.3 435.3-315.3 127.5-26.3 237.2-105.9 301-218.5 99.9-171.4 77.2-386.9-55.8-533.9v-.6c41.1-123.1 27-257.8-38.6-369.8-98.7-171.4-297.3-259.6-491-218.6-86.6-96.8-210.5-151.8-340.3-151.2zm0 117.5-.6.6c79.7 0 156.3 27.5 217.6 78.4-2.5 1.2-7.4 4.3-11 6.1L952.8 709.3c-18.4 10.4-29.4 30-29.4 51.4V1248l-155.1-89.4V755.8c-.1-187.1 151.6-338.9 339-339.2zm434.2 141.9c121.6-.2 234 64.5 294.7 169.8 39.2 68.6 53.9 148.8 40.4 226.5-2.5-1.8-7.3-4.3-10.4-6.1l-360.4-208.2c-18.4-10.4-41-10.4-59.4 0L1024 984.2V805.4L1372.7 604c51.3-29.7 109.5-45.4 168.8-45.5zM650 743.5v427.9c0 21.4 11 40.4 29.4 51.4l421.7 243-155.7 90L597.2 1355c-162-93.8-217.4-300.9-123.8-462.8C513.1 823.6 575.5 771 650 743.5zm807.9 106 348.8 200.8c162.5 93.7 217.6 300.6 123.8 462.8l.6.6c-39.8 68.6-102.4 121.2-176.5 148.2v-428c0-21.4-11-41-29.4-51.4l-422.3-243.7 155-89.3zM1201.7 997l177.8 102.8v205.1l-177.8 102.8-177.8-102.8v-205.1L1201.7 997zm279.5 161.6 155.1 89.4v402.2c0 187.3-152 339.2-339 339.2v-.6c-79.1 0-156.3-27.6-217-78.4 2.5-1.2 8-4.3 11-6.1l360.4-207.5c18.4-10.4 30-30 29.4-51.4l.1-486.8zM1380 1421.9v178.8l-348.8 200.8c-162.5 93.1-369.6 38-463.4-123.7h.6c-39.8-68-54-148.8-40.5-226.5 2.5 1.8 7.4 4.3 10.4 6.1l360.4 208.2c18.4 10.4 41 10.4 59.4 0l421.9-243.7z",fill:"white"})]}),So=e=>{const[t,s]=(0,a.useState)(window.localStorage.getItem("openai-question")||""),[i,o]=(0,a.useState)(""),[n,r]=(0,a.useState)(!1),[l,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)(!1),[p,h]=(0,a.useState)(!1),m=(0,a.useRef)(null),g=(0,a.useRef)(null),b=(0,a.useRef)(null),v=(0,a.useCallback)((async()=>{let s,a,i;if(m.current?s=m.current:(s=await yo(e.socket),m.current=s,console.log("devices: ".concat(JSON.stringify(s,2,null)))),g.current)a=g.current;else{const t=Object.keys(e.runningInstances);for(let s=0;s(await fetch(mo)).text())(),b.current=i),a){c(!0),u(!1);try{const e=new uo.ZP({apiKey:a,dangerouslyAllowBrowser:!0}),n=(await e.chat.completions.create({model:"gpt-3.5-turbo-16k",messages:[{role:"system",content:"You are programmer. Here is a documentation:\n\n".concat(i)},{role:"system",content:"Here is list of devices:\n\n".concat(JSON.stringify(s,null,2))},{role:"user",content:"Write code that do:\n\n".concat(t,"\nReturn only code.\nWrite comments in ").concat(vo[y.I18n.getLanguage()]||"English",".\nYou can call async function directly in the code without encapsulate them in async function as this code will be already executed in async function.\nDo not import any libraries as all functions are already imported.")}]})).choices[0].message,r=n.content.match(/```(javascript|js|typescript)\n?(.*)```(.*)/ms);let l;if(r){if(l=r[2],r[3]){const e=r[3].split("\n").map((e=>e.trim()));for(;""===e[0];)e.shift();l="".concat(e.map((e=>"// ".concat(e))).join("\n"),"\n").concat(l)}}else l=n.content,l.startsWith("`")&&(l=l.substring(1)),l.endsWith("`")&&(l=l.substring(0,l.length-1));console.log(n),o(l)}catch(d){var n,r,l;if(d.response)u(null===(r=d.response.data)||void 0===r||null===(l=r.error)||void 0===l?void 0:l.message);console.error("Cannot request: ".concat(d,", ").concat(JSON.stringify((null===d||void 0===d||null===(n=d.response)||void 0===n?void 0:n.data)||d,null,2)))}c(!1)}else h(!0)}),[t]);return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(ot.IconButton,{"aria-label":"AI",title:y.I18n.t("AI code generator"),className:e.classes.toolbarButtons,size:"medium",onClick:()=>r(!0),children:(0,$.jsx)(fo,{})},"ai"),p&&(0,$.jsxs)(ot.Dialog,{maxWidth:"lg",open:!0,onClose:()=>h(!1),fullWidth:!0,children:[(0,$.jsx)(ot.DialogTitle,{children:y.I18n.t("No Chat GPT Key found")}),(0,$.jsxs)(ot.DialogContent,{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,$.jsx)("div",{children:y.I18n.t("You have to enter OpenAI API key in the configuration of javascript adapter.")}),(0,$.jsx)(ot.Button,{variant:"contained",onClick:()=>{const t=Object.keys(e.runningInstances);window.open("../../#tab-instances/config/".concat(t[0]||"system.adapter.javascript.0"),"_blank"),h(!1)},children:y.I18n.t("Open configuration")})]}),(0,$.jsx)(ot.DialogActions,{children:(0,$.jsx)(ot.Button,{variant:"contained",startIcon:(0,$.jsx)(po.Close,{}),onClick:()=>h(!1),children:y.I18n.t("Close")})})]}),n&&(0,$.jsxs)(ot.Dialog,{maxWidth:"lg",classes:{paper:e.classes.fullHeightDialog},open:!0,onClose:()=>r(!1),fullWidth:!0,children:[(0,$.jsx)(ot.DialogTitle,{children:y.I18n.t("AI code generator")}),(0,$.jsxs)(ot.DialogContent,{style:{display:"flex",flexDirection:"column",gap:8,height:"100%"},children:[(0,$.jsx)("div",{children:(0,$.jsx)(ot.TextField,{variant:"standard",multiline:!0,autoFocus:!0,disabled:l,fullWidth:!0,onKeyUp:e=>{"Enter"===e.key&&e.ctrlKey&&v()},label:y.I18n.t("Enter your question"),helperText:y.I18n.t("Press Ctrl+Enter to get the answer"),value:t,onChange:e=>{window.localStorage.setItem("openai-question",e.target.value),s(e.target.value)}})}),(0,$.jsx)("div",{children:(0,$.jsx)(ot.Button,{variant:"contained",disabled:l||!t,startIcon:(0,$.jsx)(po.QuestionMark,{}),onClick:async()=>v(),children:l?(0,$.jsx)(ot.CircularProgress,{size:24}):y.I18n.t("Ask")})}),(0,$.jsx)("div",{children:y.I18n.t("Result")}),(0,$.jsx)("div",{style:{height:"calc(100% - 155px)"},children:d?(0,$.jsx)("div",{style:{color:"#bb0000"},children:d}):(0,$.jsx)(lt,{adapterName:e.adapterName,runningInstances:e.runningInstances,style:{height:"100%",width:"100%",resize:"none"},name:"ai",socket:e.socket,readOnly:!0,checkJs:!0,code:i,isDark:"dark"===e.themeType,language:e.language})})]}),(0,$.jsxs)(ot.DialogActions,{children:[(0,$.jsx)(ot.Button,{color:"grey",variant:"outlined",disabled:!i,startIcon:(0,$.jsx)(po.FileCopy,{}),onClick:()=>{y.Utils.copyToClipboard(i),window.alert(y.I18n.t("Copied"))},children:y.I18n.t("Copy to clipboard")}),(0,$.jsx)(ot.Button,{color:"primary",variant:"contained",disabled:!i||d,startIcon:(0,$.jsx)(po.Check,{}),onClick:()=>{e.onAddCode(i),r(!1)},children:y.I18n.t("Use generated code")}),(0,$.jsx)(ot.Button,{color:"grey",variant:"contained",startIcon:(0,$.jsx)(po.Close,{}),onClick:()=>r(!1),children:y.I18n.t("Close")})]})]})]})},xo={Blockly:B,"Javascript/js":F,Rules:U,def:F,"TypeScript/ts":L},ko="#02a102",wo="#70aae9",Co=M.Z[400],jo=P.Z[400];class Io extends i().Component{constructor(e){super(e),this.onInstanceChanged=(e,t)=>{if(e)if(!t&&window.main.instances.includes[e]){delete window.main.objects[e];const t=window.main.instances.indexOf(e);window.main.instances.splice(t,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)},this.onBrowserClose=e=>{const t=Object.keys(this.scripts).find((e=>JSON.stringify(this.scripts[e])!==JSON.stringify(this.props.objects[e].common)));if(t){console.log("Script "+JSON.stringify(this.scripts[t]));const s=y.I18n.t("Configuration not saved.");return(e=e||window.event)&&(e.returnValue=s),s}},this.setTourStep=e=>this.setState({tourStep:e});const t=window.localStorage.getItem("Editor.selected")||"";let s=window.localStorage.getItem("Editor.editing")||"[]";try{s=JSON.parse(s)}catch(a){s=[]}t&&!s.includes(t)&&s.push(t),this.tabsRef=i().createRef(),this.state={selected:t,editing:s,changed:{},blockly:null,rules:null,debugEnabled:!1,verboseEnabled:!1,showCompiledCode:!1,showSelectId:!1,showCron:!1,showScript:!1,showAstro:!1,astroEvents:null,insert:"",searchText:"",themeType:this.props.themeType,visible:e.visible,cmdToBlockly:"",cmdToRules:"",menuOpened:!!this.props.menuOpened,menuTabsOpened:!1,menuTabsAnchorEl:null,runningInstances:this.props.runningInstances||{},showDebugMenu:!1,toast:"",instancesLoaded:!1,isTourOpen:"true"!==window.localStorage.getItem("tour"),tourStep:Fs,showAdapterDebug:!1},this.setChangedInAdmin(),this.selectId={initValue:null,callback:null},this.cron={initValue:null,callback:null},this.scriptDialog={initValue:null,callback:null,args:null,isReturn:!1},window.systemLang=y.I18n.getLanguage(),window.main={objects:{},getObject:(e,t)=>this.props.socket.getObject(e).then((e=>t&&t(null,e))).catch((e=>t&&t(e))),instances:[],selectIdDialog:(e,t,s)=>{"function"===typeof t&&(s=t,t=null),this.selectId.callback=s,this.selectId.initValue=e,this.selectId.type=t,this.setState({showSelectId:!0})},cronDialog:(e,t)=>{this.cron.callback=t,this.cron.initValue=e,this.setState({showCron:!0})},showScriptDialog:(e,t,s,a)=>{this.scriptDialog.callback=a,this.scriptDialog.initValue=e,this.scriptDialog.args=t,this.scriptDialog.isReturn=s||!1,this.setState({showScript:!0})}},this.objects=e.objects,this.scripts={},!this.state.selected&&this.state.editing.length&&(this.state.selected=this.state.editing[0]),this.getAllAdapterInstances().then((()=>{this.props.onSelectedChange&&this.state.selected&&setTimeout((()=>this.props.onSelectedChange(this.state.selected,this.state.editing)),100)}))}getAllAdapterInstances(){return this.props.socket.getAdapterInstances(!0).then((e=>{const t={},s=e.map((e=>(t[e._id]=e,e._id)));window.main.objects=t,window.main.instances=s,this.setState({instancesLoaded:!0})}))}setChangedInAdmin(){const e=Object.keys(this.state.changed).find((e=>this.state.changed[e]));"undefined"!==typeof window.parent&&window.parent&&(window.parent.configNotSaved=!!e)}componentDidMount(){window.addEventListener("beforeunload",this.onBrowserClose,!1),this.props.socket.subscribeObject("system.adapter.*",this.onInstanceChanged)}componentWillUnmount(){window.removeEventListener("beforeunload",this.onBrowserClose),this.props.socket.unsubscribeObject("system.adapter.*",this.onInstanceChanged)}removeNonExistingScripts(e,t){e=e||this.props,t=t||{};let s=!1;if(this.state.editing){if(this.state.editing.find((t=>!e.objects[t]))){const e=JSON.parse(JSON.stringify(this.state.editing));for(let t=e.length-1;t>=0;t--)this.objects[e[t]]||(s=!0,e.splice(t,1));s&&(t.editing=e),this.state.selected&&!this.objects[this.state.selected]&&(s=!0,t.selected=e[0]||"",this.scripts[t.selected]&&(this.state.blockly!==("Blockly"===this.scripts[t.selected].engineType)&&(t.blockly="Blockly"===this.scripts[t.selected].engineType,s=!0),this.state.rules!==("Rules"===this.scripts[t.selected].engineType)&&(t.rules="Rules"===this.scripts[t.selected].engineType,s=!0),this.state.verboseEnabled!==this.scripts[t.selected].verbose&&(t.verboseEnabled=this.scripts[t.selected].verbose,s=!0),this.state.debugEnabled!==this.scripts[t.selected].debug&&(t.debugEnabled=this.scripts[t.selected].debug,s=!0)))}}return s}UNSAFE_componentWillReceiveProps(e){const t={};let s=!1;if(JSON.stringify(e.runningInstances)!==JSON.stringify(this.state.runningInstances)&&(s=!0,t.runningInstances=e.runningInstances),this.state.menuOpened!==e.menuOpened&&(t.menuOpened=e.menuOpened,s=!0),this.state.themeType!==e.themeType&&(t.themeType=e.themeType,s=!0),this.removeNonExistingScripts(e,t)&&(s=!0),this.state.searchText!==e.searchText&&(t.searchText=e.searchText,s=!0),this.objects!==e.objects){this.objects=e.objects,window.main.objects=e.objects,Object.keys(this.scripts).forEach((e=>{const t=this.scripts[e].source;this.scripts[e]=JSON.parse(JSON.stringify(this.objects[e].common)),this.scripts[e].source=t})),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)&&(t.blockly="Blockly"===this.scripts[this.state.selected].engineType,s=!0),this.state.rules!==("Rules"===this.scripts[this.state.selected].engineType)&&(t.rules="Rules"===this.scripts[this.state.selected].engineType,s=!0),this.state.verboseEnabled!==this.scripts[this.state.selected].verbose&&(t.verboseEnabled=this.scripts[this.state.selected].verbose,s=!0),this.state.debugEnabled!==this.scripts[this.state.selected].debug&&(t.debugEnabled=this.scripts[this.state.selected].debug,s=!0));const a=JSON.parse(JSON.stringify(this.state.editing));for(let e=a.length-1;e>=0;e--)this.objects[a[e]]||(s=!0,a.splice(e,1),void 0!==this.state.changed[a[e]]&&(t.changed=t.changed||JSON.parse(JSON.stringify(this.state.changed)),delete t.changed[a[e]]));this.state.selected&&!this.objects[this.state.selected]&&(t.selected=a[0]||""),s&&(t.editing=a)}else for(const a in this.scripts)if(this.scripts.hasOwnProperty(a))if(this.objects[a]&&this.objects[a].common){const e=this.scripts[a].source,i=JSON.parse(JSON.stringify(this.scripts[a]));i.source=this.objects[a].common.source,JSON.stringify(i)!==JSON.stringify(this.objects[a].common)&&(this.scripts[a]=JSON.parse(JSON.stringify(this.objects[a].common)),this.scripts[a].source=e),e!==this.objects[a].common.source?this.state.changed[a]?this.objects[a].from&&this.objects[a].from.startsWith("system.adapter.javascript.")&&(this.objects[a].from="system.adapter.admin.0",this.setState({toast:y.I18n.t("Script %s was modified on disk.",a.split(".").pop())})):this.scripts[a].source=this.objects[a].common.source:this.state.changed[a]&&(t.changed=t.changed||JSON.parse(JSON.stringify(this.state.changed)),t.changed[a]=!1,s=!0)}else if(delete this.scripts[a],this.state.selected===a){if(-1!==this.state.editing.indexOf(a)){const e=JSON.parse(JSON.stringify(this.state.editing)),i=e.indexOf(a);-1!==i&&(e.splice(i,1),t.editing=e,s=!0)}t.selected=this.state.editing[0]||"",s=!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)));const a=this.props.objects[e.selected]&&this.props.objects[e.selected].common,i=a&&JSON.stringify(this.scripts[e.selected])!==JSON.stringify(a),o=JSON.parse(JSON.stringify(this.state.editing));e.selected&&-1===o.indexOf(e.selected)&&(o.push(e.selected),this.props.onSelectedChange(e.selected,o),window.localStorage&&window.localStorage.setItem("Editor.editing",JSON.stringify(o))),s=!0,t.changed=t.changed||JSON.parse(JSON.stringify(this.state.changed)),t.changed[e.selected]=i,t.editing=o,t.selected=e.selected,t.blockly="Blockly"===this.scripts[e.selected].engineType,t.rules="Rules"===this.scripts[e.selected].engineType,t.verboseEnabled=this.scripts[e.selected].verbose,t.debugEnabled=this.scripts[e.selected].debug,t.showCompiledCode=!1}this.state.visible!==e.visible&&(s=!0,t.visible=e.visible),s&&this.setState(t,(()=>this.setChangedInAdmin()))}onRestart(){this.props.onRestart&&this.props.onRestart(this.state.selected)}onStartStop(){const e=JSON.parse(JSON.stringify(this.scripts[this.state.selected]));e.enabled=!e.enabled,this.props.onChange&&this.props.onChange(this.state.selected,e)}onSave(){if(this.state.isTourOpen&&this.state.tourStep===qs&&(this.setState({isTourOpen:!1}),window.localStorage.setItem("tour","true")),this.state.changed[this.state.selected]){const e=JSON.parse(JSON.stringify(this.state.changed));e[this.state.selected]=!1,this.setState({changed:e},(()=>{this.setChangedInAdmin(),this.props.onChange&&this.props.onChange(this.state.selected,this.scripts[this.state.selected])}))}}onSaveAll(){const e=JSON.parse(JSON.stringify(this.state.changed));Object.keys(e).forEach((t=>{e[t]&&(e[t]=!1,this.props.onChange&&this.props.onChange(t,this.scripts[t]))})),this.setState({changed:e},(()=>this.setChangedInAdmin()))}onCancel(){this.scripts[this.state.selected]=JSON.parse(JSON.stringify(this.props.objects[this.state.selected].common));const e=JSON.parse(JSON.stringify(this.state.changed));e[this.state.selected]=!1,this.setState({changed:e},(()=>this.setChangedInAdmin()))}onRegisterSelect(e){this.getSelect=e}onConvertBlockly2JS(){this.showConfirmDialog(y.I18n.t("It will not be possible to revert this operation."),(e=>{if(e){this.scripts[this.state.selected].engineType="Javascript/js";const e=this.scripts[this.state.selected].source.split("\n");e.pop(),this.scripts[this.state.selected].source=e.join("\n");const t=this.state.selected,s=JSON.parse(JSON.stringify(this.state.changed));s[this.state.selected]=!0,this.setState({changed:s,blockly:!1,selected:""},(()=>{this.setChangedInAdmin(),setTimeout((()=>this.setState({selected:t})),100)}))}}))}onChange(e){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);const t=JSON.stringify(this.scripts[this.state.selected])!==JSON.stringify(this.props.objects[this.state.selected].common);if(t!==(this.state.changed[this.state.selected]||!1)){const e=JSON.parse(JSON.stringify(this.state.changed));e[this.state.selected]=t,this.objects[this.state.selected].from="system.adapter.admin.0",this.setState({changed:e},(()=>this.setChangedInAdmin()))}}onTabChange(e,t){if(this.props.debugMode)return;window.localStorage&&window.localStorage.setItem("Editor.selected",t);const s=this.scripts[t]||this.props.objects[t]&&this.props.objects[t].common;this.setState({selected:t,rules:"Rules"===s.engineType,blockly:"Blockly"===s.engineType,showCompiledCode:!1,verboseEnabled:s.verbose,debugEnabled:s.debug}),this.props.onSelectedChange&&this.props.onSelectedChange(t,this.state.editing)}isScriptChanged(e){return this.scripts[e]&&this.props.objects[e]&&JSON.stringify(this.scripts[e])!==JSON.stringify(this.props.objects[e].common)}onTabClose(e,t){t&&t.stopPropagation();const s=this.state.editing.indexOf(e);if(this.state.editing.includes(e))if(this.isScriptChanged(e))this.showConfirmDialog(y.I18n.t("Discard changes for %s",this.props.objects[e].common.name),(t=>{t&&(delete this.scripts[e],this.onTabClose(e))}));else{const t=JSON.parse(JSON.stringify(this.state.editing));t.splice(s,1);const a={editing:t};if(e===this.state.selected?t.length?0===s||1===t.length?a.selected=t[0]:a.selected=t[s-1]:a.selected="":this.state.selected&&!t.length&&(a.selected=""),window.localStorage&&window.localStorage.setItem("Editor.editing",JSON.stringify(t)),void 0!==a.selected){a.changed=a.changed||JSON.parse(JSON.stringify(this.state.changed)),a.changed[a.selected]=this.isScriptChanged(a.selected);const e=a.selected&&(this.scripts[a.selected]||this.props.objects[a.selected]&&this.props.objects[a.selected].common);a.blockly=!!e&&"Blockly"===e.engineType,a.rules=!!e&&"Rules"===e.engineType,a.verboseEnabled=!!e&&e.verbose,a.debugEnabled=!!e&&e.debug,a.showCompiledCode=!1}this.setState(a,(()=>{this.setChangedInAdmin(),void 0!==a.selected?(this.props.onSelectedChange&&this.props.onSelectedChange(a.selected,this.state.editing),window.localStorage&&window.localStorage.setItem("Editor.selected",a.selected)):this.props.onSelectedChange&&this.props.onSelectedChange(this.state.selected,this.state.editing)}))}}showConfirmDialog(e,t){this.confirmCallback=t,this.setState({confirm:e})}sendCommandToBlockly(e){this.setState({cmdToBlockly:e},(()=>setTimeout((()=>this.setState({cmdToBlockly:""})),200)))}sendCommandToRules(e){this.setState({cmdToRules:e},(()=>setTimeout((()=>this.setState({cmdToRules:""})),200)))}static getText(e){return"object"===typeof e?e[y.I18n.getLanguage()]||e.en:e}getScriptFullName(e){const t=e.split(".");t.shift(),t.shift();const s=[];let a="script.js";for(let i=0;ithis.onTabChange(e,t),indicatorColor:"primary",style:{position:"relative",marginLeft:10,width:this.state.editing.length>1?"calc(100% - 50px)":"100%",display:"inline-block"},textColor:"primary",variant:"scrollable",scrollButtons:"auto",children:[this.state.editing.map((e=>{if(this.props.objects[e]){let t=Io.getText(this.props.objects[e].common.name)||"",s=this.getScriptFullName(e);t.length>18&&(t="".concat(t.substring(0,15),"..."));const a=this.props.objects[e].common&&this.scripts[e]&&this.props.objects[e].common.source!==this.scripts[e].source,i=[(0,$.jsx)("div",{className:y.Utils.clsx(this.props.classes.tabText,this.isScriptChanged(e)&&this.props.classes.tabChanged),children:t},"text"),a?(0,$.jsx)("span",{className:this.props.classes.tabChangedIcon,children:"\u25a3"},"changedSign"):null,!this.props.debugInstance&&(!this.props.debugMode||this.state.selected!==e)&&(0,$.jsx)(I.Z,{onClick:t=>this.onTabClose(e,t),className:this.props.classes.closeButton,size:"small",component:"span",children:(0,$.jsx)(v.FU5,{})},"icon")];return(0,$.jsx)(He.Z,{disabled:this.props.debugInstance||this.state.selected!==e&&this.props.debugMode,wrapped:!0,component:"div",iconPosition:"start",icon:(0,$.jsx)("img",{alt:"",src:xo[this.props.objects[e].common.engineType]||xo.def,className:this.props.classes.tabIcon},"icon"),href:"#".concat(e),label:i,className:this.props.classes.tabButton,value:e,title:s,classes:{wrapper:this.props.classes.tabButtonWrapper}},e)}{const t=[(0,$.jsx)("div",{className:y.Utils.clsx(this.props.classes.tabText,this.isScriptChanged(e)&&this.props.classes.tabChanged),children:e.split(".").pop()},"text"),(0,$.jsx)(I.Z,{onClick:t=>this.onTabClose(e,t),className:this.props.classes.closeButton,size:"small",component:"span",children:(0,$.jsx)(v.FU5,{})},"icon")];return(0,$.jsx)(He.Z,{wrapped:!0,component:"div",href:"#"+e,label:t,value:e,classes:{wrapper:this.props.classes.tabButtonWrapper}},e)}})),this.props.debugInstance?(0,$.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,$.jsx)(I.Z,{href:"#","aria-label":"Close all but current",className:this.props.classes.tabMenuButton,title:y.I18n.t("Close all but current"),"aria-haspopup":"false",onClick:e=>{const t=[this.state.selected];Object.keys(this.scripts).forEach((e=>e!==this.state.selected&&JSON.stringify(this.scripts[e])!==JSON.stringify(this.props.objects[e].common)&&t.push(e))),window.localStorage&&window.localStorage.setItem("Editor.editing",JSON.stringify(t)),this.setState({menuTabsOpened:!1,menuTabsAnchorEl:null,editing:t})},size:"medium",children:(0,$.jsx)(v.ULn,{})},"menuButton"):null]:(0,$.jsx)("div",{className:this.props.classes.toolbar,children:(0,$.jsxs)(W.Z,{color:"grey",disabled:!0,className:this.props.classes.hintButton,href:"",children:[(0,$.jsx)("span",{children:y.I18n.t("Click on this icon")},"select2"),(0,$.jsx)(v.jzb,{className:this.props.classes.hintIcon},"select3"),(0,$.jsx)("span",{children:y.I18n.t("for edit or create script")},"select4")]},"select1")},"tabs2")}getDebugMenu(){return this.state.showDebugMenu?(0,$.jsxs)(T.Z,{id:"menu-debug",anchorEl:this.state.menuDebugAnchorEl,open:this.state.showDebugMenu,onClose:()=>this.setState({showDebugMenu:!1,menuDebugAnchorEl:null}),PaperProps:{style:{maxHeight:360}},children:[(0,$.jsxs)(D.Z,{title:y.I18n.t("debug_help"),onClick:e=>{e.stopPropagation(),e.preventDefault(),this.setState({showDebugMenu:!1,menuDebugAnchorEl:null,debugEnabled:!this.state.debugEnabled},(()=>this.onChange({debug:this.state.debugEnabled})))},children:[(0,$.jsx)(Ke.Z,{checked:this.state.debugEnabled}),(0,$.jsx)(v.qXL,{className:this.props.classes.menuIcon,style:{color:ko}}),y.I18n.t("debug_label")]},"debugEnabled"),(0,$.jsxs)(D.Z,{title:y.I18n.t("verbose_help"),onClick:e=>{e.stopPropagation(),e.preventDefault(),this.setState({showDebugMenu:!1,menuDebugAnchorEl:null,verboseEnabled:!this.state.verboseEnabled},(()=>this.onChange({verbose:this.state.verboseEnabled})))},children:[(0,$.jsx)(Ke.Z,{checked:this.state.verboseEnabled}),(0,$.jsx)(v.Yo8,{className:this.props.classes.menuIcon,style:{color:wo}}),y.I18n.t("verbose_label")]},"verboseEnabled")]},"menuDebug"):null}getDebugBadge(){return[this.state.debugEnabled&&this.state.verboseEnabled&&(0,$.jsx)(v.qXL,{className:this.props.classes.menuIcon,style:{color:wo}},"DebugVerbose"),this.state.debugEnabled&&!this.state.verboseEnabled&&(0,$.jsx)(v.qXL,{className:this.props.classes.menuIcon,style:{color:ko}},"DebugNoVerbose"),!this.state.debugEnabled&&this.state.verboseEnabled&&(0,$.jsx)(v.Yo8,{className:this.props.classes.menuIcon,style:{color:wo}},"noDebugVerbose")]}getAskAboutDebug(){return this.state.askAboutDebug?(0,$.jsx)(y.Confirm,{onClose:()=>{this.setState({askAboutDebug:!1},(()=>this.props.onDebugModeChange(!0)))},ok:y.I18n.t("Yes"),cancel:y.I18n.t("Cancel"),text:y.I18n.t("The script will be stopped and must be activated manually after debugging. Continue?")}):null}getToolbar(){const e=this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].engine&&this.state.runningInstances[this.scripts[this.state.selected].engine],t=this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].enabled;if(this.state.selected){const s=Object.keys(this.state.changed).filter((e=>this.state.changed[e])).length,a=this.state.changed[this.state.selected];return(0,$.jsxs)(Je.Z,{variant:"dense",className:this.props.classes.toolbar,children:[!this.props.debugInstance&&this.state.menuOpened&&this.props.onLocate&&(0,$.jsx)(I.Z,{className:this.props.classes.toolbarButtons,title:y.I18n.t("Locate file"),onClick:()=>this.props.onLocate(this.state.selected),size:"medium",children:(0,$.jsx)(v.A_X,{})},"locate"),!this.props.debugInstance&&!a&&e&&(0,$.jsx)(I.Z,{disabled:this.props.debugMode,variant:"contained",className:this.props.classes.toolbarButtons,onClick:()=>this.onRestart(),title:y.I18n.t("Restart"),size:"medium",children:(0,$.jsx)(v.la_,{})},"restart"),!this.props.debugInstance&&!a&&(0,$.jsx)(I.Z,{disabled:this.props.debugMode,variant:"contained",className:this.props.classes.toolbarButtons,onClick:()=>this.onStartStop(),title:t?y.I18n.t("Pause script"):y.I18n.t("Run script"),size:"medium",style:{color:t?Co:jo},children:t?(0,$.jsx)(v.hPq,{}):(0,$.jsx)(v.Nhx,{})},"start-stop"),!this.props.debugInstance&&!a&&!t&&(0,$.jsx)("span",{className:this.props.classes.notRunning,children:y.I18n.t("Script is not running")}),!a&&t&&!e&&(0,$.jsx)("span",{className:this.props.classes.notRunning,children:y.I18n.t("Instance is disabled")}),a&&(0,$.jsxs)(W.Z,{color:"grey",variant:"contained",className:y.Utils.clsx(this.props.classes.textButton,this.props.classes.saveButton,"button-save"),onClick:()=>this.onSave(),children:[y.I18n.t("Save"),(0,$.jsx)(v.tfk,{className:this.props.classes.textIcon})]},"save"),(s>1||1===s&&!a)&&(0,$.jsxs)(W.Z,{color:"grey",variant:"contained",className:this.props.classes.textButton,onClick:()=>this.onSaveAll(),children:[y.I18n.t("Save all"),(0,$.jsx)(v.tfk,{className:this.props.classes.textIcon})]},"saveall"),a&&(0,$.jsxs)(W.Z,{color:"grey",variant:"contained",className:this.props.classes.textButton,onClick:()=>this.onCancel(),children:[y.I18n.t("Cancel"),(0,$.jsx)(v.B4e,{className:this.props.classes.textIcon})]},"cancel"),(0,$.jsx)("div",{style:{flex:2}}),this.state.blockly&&!this.state.showCompiledCode&&(0,$.jsx)(I.Z,{"aria-label":"Export Blocks",title:y.I18n.t("Export blocks"),className:this.props.classes.toolbarButtons,onClick:()=>this.sendCommandToBlockly("export"),size:"medium",children:(0,$.jsx)(R.FaFileExport,{})},"export"),this.state.blockly&&!this.state.showCompiledCode&&(0,$.jsx)(I.Z,{"aria-label":"Import Blocks",title:y.I18n.t("Import blocks"),className:this.props.classes.toolbarButtons,onClick:()=>this.sendCommandToBlockly("import"),size:"medium",children:(0,$.jsx)(R.FaFileImport,{})},"import"),this.state.blockly&&!this.state.showCompiledCode&&(0,$.jsx)(I.Z,{"aria-label":"Check code",title:y.I18n.t("Check blocks"),className:this.props.classes.toolbarButtons,onClick:()=>this.sendCommandToBlockly("check"),size:"medium",children:(0,$.jsx)(R.FaFlagCheckered,{})},"check"),!this.props.debugMode&&!this.state.blockly&&!this.state.rules&&!this.state.showCompiledCode&&(0,$.jsx)(I.Z,{"aria-label":"create CRON",title:y.I18n.t("Create or edit CRON or time wizard"),className:this.props.classes.toolbarButtons,onClick:()=>this.setState({showCron:!0}),size:"medium",children:(0,$.jsx)(R.FaClock,{})},"select-cron"),this.scripts[this.state.selected]&&"Blockly"!==this.scripts[this.state.selected].engineType&&"Rules"!==this.scripts[this.state.selected].engineType?(0,$.jsx)(So,{adapterName:this.props.adapterName,socket:this.props.socket,runningInstances:this.state.runningInstances,classes:this.props.classes,themeType:this.state.themeType,language:"TypeScript/ts"===this.scripts[this.state.selected].engineType?"typescript":"javascript",onAddCode:e=>this.setState({insert:e})}):null,(0,$.jsx)(I.Z,{"aria-label":"Show astronomical events",title:y.I18n.t("Show astronomical events"),className:this.props.classes.toolbarButtons,disabled:!e,onClick:()=>{this.setState({showAstro:!0,astroEvents:null}),this.props.socket.sendTo(this.scripts[this.state.selected].engine.replace("system.adapter.",""),"calcAstroAll",{}).then((e=>this.setState({astroEvents:e})))},size:"medium",children:(0,$.jsx)(v.Gd0,{})},"show-astro"),!this.props.debugMode&&!this.state.blockly&&!this.state.rules&&!this.state.showCompiledCode&&(0,$.jsx)(I.Z,{"aria-label":"select ID",title:y.I18n.t("Insert object ID"),className:this.props.classes.toolbarButtons,onClick:()=>this.setState({showSelectId:!0}),size:"medium",children:(0,$.jsx)(R.FaClipboardList,{})},"select-id"),this.state.blockly&&!this.state.rules&&this.state.showCompiledCode&&(0,$.jsx)(W.Z,{color:"grey","aria-label":"convert to javascript",title:y.I18n.t("Convert blockly to javascript for ever."),onClick:()=>this.onConvertBlockly2JS(),children:"Blockly=>JS"},"convert2js"),this.state.rules&&!this.state.showCompiledCode&&(0,$.jsx)(I.Z,{"aria-label":"Export Blocks",title:y.I18n.t("Export blocks"),className:this.props.classes.toolbarButtons,onClick:()=>this.sendCommandToRules("export"),size:"medium",children:(0,$.jsx)(R.FaFileExport,{})},"export"),this.state.rules&&!this.state.showCompiledCode&&(0,$.jsx)(I.Z,{"aria-label":"Import Blocks",title:y.I18n.t("Import blocks"),className:this.props.classes.toolbarButtons,onClick:()=>this.sendCommandToRules("import"),size:"medium",children:(0,$.jsx)(R.FaFileImport,{})},"import"),this.props.expertMode&&!a&&(this.props.debugMode||!this.state.blockly&&!this.state.rules||(this.state.blockly||this.state.rules)&&this.state.showCompiledCode)&&(0,$.jsx)(I.Z,{className:this.props.classes.toolbarButtons,color:this.props.debugMode?"primary":"default",disabled:!this.props.debugMode&&!e,onClick:()=>{!this.props.debugMode&&t?this.setState({askAboutDebug:!0}):this.props.onDebugModeChange(!this.props.debugMode)},size:"medium",children:(0,$.jsx)(v.qXL,{style:{fontSize:32}})}),(this.state.blockly||this.state.rules)&&(0,$.jsx)(W.Z,{"aria-label":"blockly",title:y.I18n.t("Show javascript code"),className:y.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:()=>{this.props.debugMode||(this.setState({showCompiledCode:!this.state.showCompiledCode}),this.state.isTourOpen&&this.state.tourStep===Vs&&this.setState({tourStep:Js}),this.state.isTourOpen&&this.state.tourStep===Js&&this.setState({tourStep:qs}))},children:(0,$.jsx)("img",{alt:this.state.blockly?"blockly2js":"rules2js",src:this.state.blockly?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAAAeCAYAAADXRcu0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC41ZYUyZQAABxRJREFUaEPdmotTE0ccx/Pn9OG003baaeuoqGh1pPUtIogvFIWqoKLUIiY8whunqKjBKloVsMZQEV8FFBWtgkKtGFoRUWx9gsgzCcl9u3u5JLvJFuk01ITfzGeS++4vd7e/b2739hIVgBFPQE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4LMm+uJTNnp+svNXNE7PRhT7WNjbLOnqQEhDTPm+x5xH5GZaetebzWkRrtxksj4O8ndUkNS5MmSpYPR8laddCiF74tAATWgZtMXZIChOjvVPZSLDhib1vy/3pDpsd7nr4OpnrKZfNyWU8PTerHoTSmFeh5YOV1PeQPQ8kq2mo8H1ZxzNbftsBzLpmMSfG3n5nyWb9H6OFFKptjl9HbUqOz8Zzj7fOqesBEX4Kgs2QFwtcPV5JOQmsV8u/b+qVMmecosmt3QitVZcKQPXFPSvadNQ+/5JfvpfhwBeKDkOo1Xk/rlIr10pl400lbaaPL2NtOOhPcjeFo2z6VzgheoLhQ3fRr5/Tzm+99kXWtsQZPj0gmUxnDihIycH+CnRt7uR7hvq5xF6RcS9aNy2P0J8bffyI8PWKsoU79g9l9wLMOkU+A+WR8I1Hx/z+YDQ0ecOH9lhyNMNYwXg2xDPiag9cL/H7kVRkajFdDPODCexqIufDHBcarIV4D7KWRBHaNki5Dgn8DIpsEjn2A+AIAAAAASUVORK5CYII="})},"blockly-code"),(0,$.jsx)(I.Z,{disabled:this.props.debugMode,"aria-label":"Debug menu",title:y.I18n.t("Debug options"),className:this.props.classes.toolbarButtons,onClick:e=>this.setState({showDebugMenu:!0,menuDebugAnchorEl:e.currentTarget}),size:"medium",children:(0,$.jsx)(Ge.Z,{className:this.props.classes.badgeMargin,badgeContent:this.getDebugBadge(),children:(0,$.jsx)(v._u1,{})})},"debug")]},"toolbar1")}return null}getScriptEditor(){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,$.jsx)("div",{className:this.props.classes.editorDiv,children:(0,$.jsx)(lt,{name:this.state.selected,adapterName:this.props.adapterName,insert:this.state.insert,onInserted:()=>this.setState({insert:""}),onForceSave:()=>this.onSave(),searchText:this.state.searchText,onRegisterSelect:e=>this.onRegisterSelect(e),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:e=>this.onChange({script:e}),language:"TypeScript/ts"===this.scripts[this.state.selected].engineType?"typescript":"javascript"},"scriptEditor1")},"scriptEditorDiv"))}getBlocklyEditor(){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,$.jsx)("div",{className:this.props.classes.editorDiv,children:(0,$.jsx)(Ct,{command:this.state.cmdToBlockly,themeType:this.state.themeType,searchText:this.state.searchText,resizing:this.props.resizing,code:this.scripts[this.state.selected].source||"",scriptId:this.state.selected,onChange:e=>this.onChange({script:e})},"BlocklyEditor")},"blocklyEditorDiv")):null}getRulesEditor(){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));const e=this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].engine&&this.state.runningInstances[this.scripts[this.state.selected].engine],t=this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].enabled;return(0,$.jsx)("div",{className:y.Utils.clsx(this.props.classes.editorDiv),children:(0,$.jsx)(Qi,{scriptId:this.state.selected,setTourStep:this.setTourStep,tourStep:this.state.tourStep,isTourOpen:this.state.isTourOpen,changed:this.state.changed[this.state.selected],running:e&&t,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:e=>this.onChange({script:e})},"flowEditor")},"flowEditorDiv")}return null}getConfirmDialog(){return this.state.confirm?(0,$.jsx)(y.Confirm,{text:this.state.confirm,onClose:e=>{if(this.confirmCallback){const t=this.confirmCallback;this.confirmCallback=null,t(e)}this.setState({confirm:""})}},"dialogConfirm1"):null}getSelectIdDialog(){if(this.state.showSelectId){let e=this.selectId.callback?this.selectId.initValue||"":this.getSelect?this.getSelect():"",t=e.indexOf("/*");-1!==t&&(e=e.substring(0,t)),t=e.indexOf("//"),-1!==t&&(e=e.substring(0,t));let s=e.match(/"([^"]+)"/);return s&&(e=s[1]),s=e.match(/'([^']+)'/),s&&(e=s[1]),(0,$.jsx)(y.SelectID,{imagePrefix:"../..",themeName:this.props.themeName,themeType:this.state.themeType,socket:this.props.socket,selected:e,expertMode:"script"===this.selectId.type||void 0,types:[this.selectId.type||"state"],onClose:()=>{this.setState({showSelectId:!1}),this.selectId.callback&&(this.selectId.callback=null)},onOk:(e,t)=>{this.selectId.initValue=null,this.selectId.callback?(this.selectId.callback(e),this.selectId.callback=null):this.setState({insert:"'".concat(e,"'/*").concat(t,"*/")})}},"dialogSelectID1")}return null}getCronDialog(){return this.state.showCron?(0,$.jsx)(y.Cron,{cron:this.cron.callback?this.cron.initValue||"":this.getSelect?this.getSelect():"* * * * *",onClose:()=>this.setState({showCron:!1}),onOk:e=>{this.cron.initValue=null,this.cron.callback?(this.cron.callback(e),this.cron.callback=null):this.setState({insert:"'".concat(e,"'")})}},"dialogCron1"):null}getAstroDialog(){return this.state.showAstro?(0,$.jsxs)(q.Z,{open:!0,onClose:()=>this.setState({showAstro:!1}),children:[(0,$.jsx)(Z.Z,{children:y.I18n.t("Astronomical events today")}),(0,$.jsx)(V.Z,{children:this.state.astroEvents?(0,$.jsx)(tt.Z,{component:it.Z,children:(0,$.jsxs)(Xe.Z,{size:"small",children:[(0,$.jsx)(st.Z,{children:(0,$.jsxs)(at.Z,{children:[(0,$.jsx)(et.Z,{children:y.I18n.t("Name")}),(0,$.jsx)(et.Z,{children:y.I18n.t("Time")}),(0,$.jsx)(et.Z,{children:y.I18n.t("Description")})]})}),(0,$.jsx)($e.Z,{children:Object.keys(this.state.astroEvents).map((e=>(0,$.jsxs)(at.Z,{children:[(0,$.jsx)(et.Z,{component:"th",scope:"row",children:e.startsWith("next")?"":e}),(0,$.jsx)(et.Z,{align:"right",children:new Date(this.state.astroEvents[e]).toLocaleTimeString()}),(0,$.jsx)(et.Z,{children:y.I18n.t(e)})]},e)))})]})}):(0,$.jsx)(Qe.Z,{})}),(0,$.jsx)(J.Z,{children:(0,$.jsx)(W.Z,{variant:"contained",onClick:()=>this.setState({showAstro:!1}),color:"primary",startIcon:(0,$.jsx)(v.FU5,{}),children:y.I18n.t("Close")})})]},"dialogAstro"):null}getEditorDialog(){return this.state.showScript?(0,$.jsx)(Tt,{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:e=>{this.scriptDialog.initValue=null,this.scriptDialog.callback&&(!1!==e&&this.scriptDialog.callback(e||""),this.scriptDialog.callback=null),this.setState({showScript:!1})}},"scriptEditorDialog"):null}getToast(){return(0,$.jsx)(Ye.Z,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:!!this.state.toast,autoHideDuration:6e3,onClose:()=>this.setState({toast:""}),ContentProps:{"aria-describedby":"message-id"},message:(0,$.jsx)("span",{id:"message-id",children:this.state.toast}),action:[(0,$.jsx)(I.Z,{"aria-label":"close",color:"inherit",className:this.props.classes.closeToast,onClick:()=>this.setState({toast:""}),size:"medium",children:(0,$.jsx)(v.FU5,{})},"close")]},"toast")}getTour(){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,$.jsx)(Ve.ZP,{steps:Hs,isOpen:this.state.isTourOpen,onRequestClose:()=>{this.setState({isTourOpen:!1}),window.localStorage.setItem("tour","true"),this.props.socket.setState("javascript.0.variables.rulesTour",{val:!0,ack:!0})},goToStep:this.state.tourStep},"tour")}getDebug(){if(this.props.debugMode){return this.state.selected&&this.scripts[this.state.selected]&&this.scripts[this.state.selected].engine&&this.state.runningInstances[this.scripts[this.state.selected].engine]?(0,$.jsx)(co,{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((()=>this.props.onDebugModeChange(!1))),null)}return null}render(){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((()=>{const e={blockly:"Blockly"===this.scripts[this.state.selected].engineType,rules:"Rules"===this.scripts[this.state.selected].engineType,showCompiledCode:!1,debugEnabled:this.scripts[this.state.selected].debug,verboseEnabled:this.scripts[this.state.selected].verbose};this.removeNonExistingScripts(null,e),this.setState(e)}),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()]}}const To=(0,u.Z)((e=>({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,marginLeft:5},closeButton:{marginLeft:5},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},fullHeightDialog:{height:"calc(100% - 100px)"}})))(Io);class Do extends i().Component{constructor(e){super(e),this.state={error:"",imageStatus:""}}componentDidMount(){setTimeout((()=>{try{window.document.getElementById("import-text-area").focus()}catch(e){}}),100)}handleCancel(){this.props.onClose()}onChange(e){this.setState({text:e.target.value})}static readFileDataUrl(e,t){const s=new FileReader;s.onload=()=>{t(null,{data:s.result,name:e.name})},s.onabort=()=>{console.error("file reading was aborted"),t(y.I18n.t("file reading was aborted"))},s.onerror=e=>{console.error("file reading has failed"),t(y.I18n.t("file reading has failed: %s",e))},s.readAsDataURL(e)}handleDropFile(e){if(e&&e.hasOwnProperty("target")&&(e=e.target.files),!e&&!e.length)return;const t=e[e.length-1];t&&Do.readFileDataUrl(t,((e,t)=>{e?this.setState({error:e}):this.props.onClose(t&&t.data)}))}render(){const e=this.props.classes,t=e.dropzone+" "+("accepted"===this.state.imageStatus?e.dropzoneAccepted:"rejected"===this.state.imageStatus?e.dropzoneRejected:"");return(0,$.jsxs)(q.Z,{onClose:(e,t)=>!1,maxWidth:"lg",classes:{paper:e.dialog},fullWidth:!0,open:!0,"aria-labelledby":"import-dialog-title",children:[(0,$.jsx)(Z.Z,{id:"import-dialog-title",children:y.I18n.t("Import scripts")}),(0,$.jsxs)(V.Z,{className:e.fullHeight,children:[(0,$.jsx)(mt.default,{maxSize:5e7,acceptClassName:e.dropzoneAccepted,rejectClassName:e.dropzoneRejected,onDrop:e=>this.handleDropFile(e),multiple:!1,accept:"application/zip,application/x-zip-compressed",className:t,children:e=>{let{getRootProps:t,getInputProps:s,isDragActive:a,isDragReject:i}=e;return i?("rejected"!==this.state.imageStatus&&this.setState({imageStatus:"rejected"}),(0,$.jsxs)("div",{className:this.props.classes.dropzoneDiv,...t(),children:[(0,$.jsx)("input",{...s()}),(0,$.jsx)("span",{className:this.props.classes.text,children:y.I18n.t("Some files will be rejected")},"text"),(0,$.jsx)(v.B4e,{className:this.props.classes.icon+" "+this.props.classes.iconError},"icon")]})):a?("accepted"!==this.state.imageStatus&&this.setState({imageStatus:"accepted"}),(0,$.jsxs)("div",{className:this.props.classes.dropzoneDiv,...t(),children:[(0,$.jsx)("input",{...s()}),(0,$.jsx)("span",{className:this.props.classes.text,children:y.I18n.t("All files will be accepted")},"text"),(0,$.jsx)(v.hjC,{className:this.props.classes.icon+" "+this.props.classes.iconOk},"icon")]})):("wait"!==this.state.imageStatus&&this.setState({imageStatus:"wait"}),(0,$.jsxs)("div",{className:this.props.classes.dropzoneDiv,...t(),children:[(0,$.jsx)("input",{...s()}),(0,$.jsx)("span",{className:this.props.classes.text,children:y.I18n.t("Drop some files here or click...")},"text"),(0,$.jsx)(v.s_P,{className:this.props.classes.icon},"icon")]}))}},"image-drop"),this.state.error?(0,$.jsx)(fe,{text:this.state.error,onClose:()=>this.setState({error:""})}):null]}),(0,$.jsx)(J.Z,{children:(0,$.jsx)(W.Z,{color:"grey",variant:"contained",onClick:()=>this.handleCancel(),startIcon:(0,$.jsx)(Q.default,{}),children:y.I18n.t("Close")})})]})}}const Ao=(0,u.Z)((e=>({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}})))(Do);class No extends m.Z{constructor(e){super(e,{Connection:y.AdminConnection,translations:{en:s(86443),de:s(19837),es:s(55117),fr:s(86115),it:s(79399),nl:s(43573),pl:s(28130),pt:s(65909),ru:s(50482),uk:s(17138),"zh-cn":s(58246)},bottomButtons:!1,socket:{autoSubscribeLog:!0},sentryDSN:window.sentryDSN}),this.onScriptsChanged=(e,t)=>{if(!e)return;let s=!1;const a={};e.startsWith("script.js.")&&(t?JSON.stringify(this.scripts[e])!==JSON.stringify(t)&&(this.scripts[e]=t,s=!0,a.scriptsHash=this.state.scriptsHash+1):this.scripts[e]&&(delete this.scripts[e],s=!0,a.scriptsHash=this.state.scriptsHash+1)),s&&this.setState(a)},this.onInstanceChanged=(e,t)=>{if(!e)return;let s=!1;const a={};if(e.match(/^system\.adapter\.[-_\w\d]+\$/)){if(e.startsWith("system.adapter.".concat(this.adapterName,".")))if(t&&"instance"===t.type)this.state.instances.includes(e)||(a.instances=[...this.state.instances],a.instances.push(e),a.instances.sort(),s=!0,this.socket.subscribeState("".concat(t._id,".alive"),this.onInstanceAliveChange));else if(!t&&this.state.instances.includes(e)){this.socket.unsubscribeState("".concat(e,".alive"),this.onInstanceAliveChange),a.instances=[...this.state.instances];const t=a.instances.indexOf(e);a.instances.splice(t,1),s=!0}t&&t[e].common&&t[e].common.blockly&&(this.confirmCallback=e=>e&&window.location.reload(),a.confirm=y.I18n.t("Some blocks were updated. Reload admin?"),s=!0)}s&&this.setState(a)},this.onHostChanged=(e,t)=>{if(!e)return;if(e.startsWith("system.host."))if(t&&"host"===t.type)this.hosts.includes(e)||(this.hosts.push(e),this.hosts.sort());else if(!t&&this.hosts.includes(e)){const t=this.hosts.indexOf(e);this.hosts.splice(t,1)}},this.onInstanceAliveChange=(e,t)=>{if(e&&(e=e&&e.substring(0,e.length-6),this.state.runningInstances[e]!==(!!t&&t.val))){const s=JSON.parse(JSON.stringify(this.state.runningInstances));s[e]=!!t&&t.val,this.setState({runningInstances:s})}},this.logSize=window.localStorage&&parseFloat(window.localStorage.getItem("App.logSize"))||150,this.menuSize=window.localStorage&&parseFloat(window.localStorage.getItem("App.menuSize"))||500,this.hosts=[],this.importFile=null,this.scripts={},window.alert=e=>{console.error(e),this.showError(e.toString())}}onConnectionReady(){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});const e={};this.subscribeOnInstances().then((t=>(e.instances=t.instances,e.runningInstances=t.runningInstances,this.readAdaptersWithBlockly()))).then((()=>this.socket.getHosts())).then((e=>(this.hosts=e.map((e=>e._id)),this.readAllScripts()))).then((t=>{window.localStorage&&"true"!==window.localStorage.getItem("App.expertMode")&&"false"!==window.localStorage.getItem("App.expertMode")&&Object.keys(t).find((e=>e.startsWith("script.js.global.")&&"script"===t.type))&&(e.expertMode=!0),this.scripts=t;let s=this.state.scriptsHash;this.compareScripts(t)&&s++,e.scriptsHash=s,e.ready=!0,this.socket.subscribeObject("script.*",this.onScriptsChanged),this.socket.subscribeObject("system.adapter.*",this.onInstanceChanged),this.socket.subscribeObject("system.host.*",this.onHostChanged),this.setState(e)}))}subscribeOnInstances(){return this.socket.getAdapterInstances(this.adapterName).then((e=>{const t=e.map((e=>parseInt(e._id.split(".").pop()))).sort(),s={};t.forEach((e=>s["system.adapter.".concat(this.adapterName,".").concat(e)]=!1));const a=[];return t.forEach((e=>{const t="system.adapter.".concat(this.adapterName,".").concat(e),i="".concat(t,".alive");a.push(this.socket.getState(i).then((e=>{s[t]=!!e&&e.val,this.socket.subscribeState(i,this.onInstanceAliveChange)})))})),Promise.all(a).then((()=>({instances:t,runningInstances:s})))}))}readAllScripts(){return this.socket.getObjectView("script.js.","script.js.\u9999","channel").then((e=>this.socket.getObjectView("script.js.","script.js.\u9999","script").then((t=>(Object.keys(t).forEach((s=>e[s]=t[s])),e)))))}readAdaptersWithBlockly(){return this.socket.getObjectView("system.adapter.","system.adapter.\u9999","adapter").then((e=>new Promise((t=>Ct.loadCustomBlockly(e,(()=>t()))))))}onToggleExpertMode(e){this.onExpertModeChange(e)}compareScripts(e){const t=Object.keys(this.scripts),s=Object.keys(e);if(t.length!==s.length)return this.scripts=this.newScripts,!0;if(JSON.stringify(t)!==JSON.stringify(s))return this.scripts=this.newScripts,!0;for(let a=0;a ").concat(t)),this.setState({updating:!0}),this.scripts[e]&&"script"===this.scripts[e].type){const o=JSON.parse(JSON.stringify(this.scripts[e].common));o.name=s||o.name,void 0!==a&&(o.engine="system.adapter.javascript.".concat(a));const n=t.split(".");n.pop();const r=n.join(".");this.scripts[r]&&"script"===this.scripts[r].type&&(n.pop(),t="".concat(n.join("."),".").concat(t.split(".").pop())),i=this.updateScript(e,t,o)}else i=this.renameGroup(e,t,s);i.then((()=>this.setState({updating:!1}))).catch((e=>"canceled"!==e&&this.showError(e)))}renameGroup(e,t,s,a){if(a){if(a.length){let i=a.pop();return this.socket.getObject(i).then((o=>this.socket.delObject(i).catch((()=>{})).then((()=>(i=t+i.substring(e.length),o._id=i,o.common=o.common||{},o.common.expert=!0,this.socket.setObject(i,o)))).then((()=>this.renameGroup(e,t,s,a)))))}return Promise.resolve()}return a=[],a=Object.keys(this.scripts).filter((t=>t.startsWith("".concat(e,".")))),this.socket.getObject(e).then((i=>{(i=i||{common:{}}).common.name=s||i.common.name||e.split(".").pop(),i._id=t,this.socket.delObject(e).catch((()=>{})).then((()=>this.socket.setObject(t,i))).then((()=>this.renameGroup(e,t,s,a))).catch((e=>console.log(e)))})).catch((i=>{console.log(i);const o={_id:t,type:"channel",common:{name:s||e.split(".").pop(),expert:!0},native:{}};return this.socket.setObject(t,o).then((()=>this.renameGroup(e,t,s,a)))}))}onUpdateScript(e,t){this.scripts[e]&&"script"===this.scripts[e].type&&this.updateScript(e,e,t).then((()=>{})).catch((e=>"canceled"!==e&&this.showError(e)))}onSelect(e){this.scripts[e]&&this.scripts[e].common&&"script"===this.scripts[e].type&&this.setState({selected:e,menuSelectId:e},(()=>setTimeout((()=>this.setState({menuSelectId:""})))),300)}onExpertModeChange(e){this.state.expertMode!==e&&(window.localStorage&&window.localStorage.setItem("App.expertMode",e?"true":"false"),this.setState({expertMode:e}))}showError(e){this.setState({errorText:e?e.toString():""})}showMessage(e){this.setState({message:e?e.toString():""})}onDelete(e){this.socket.delObject(e).then((()=>{})).catch((e=>this.showError(e)))}onEdit(e){this.state.selected!==e&&this.setState({selected:e})}onAddNew(e,t,s,a,i,o){const n=new RegExp("^".concat(e,"\\."));if(Object.keys(this.scripts).find((t=>e===t||n.test(e))))return this.showError(y.I18n.t("Yet exists!"));s?this.socket.setObject(e,{common:{name:t,expert:!0},type:"channel"}).then((()=>setTimeout((()=>this.setState({menuSelectId:e},(()=>setTimeout((()=>this.setState({menuSelectId:""})))),300)),1e3))).catch((e=>this.showError(e))):this.socket.setObject(e,{common:{name:t,expert:!0,engineType:i,engine:"system.adapter.javascript.".concat(a||0),source:o||"",debug:!1,verbose:!1},type:"script"}).then((()=>setTimeout((()=>this.onSelect(e)),1e3))).catch((e=>this.showError(e)))}updateScript(e,t,s){return this.socket.getObject(e).then((a=>{const i={common:{}};return void 0!==s.engine&&(i.common.engine=s.engine),void 0!==s.enabled&&(i.common.enabled=s.enabled),void 0!==s.source&&(i.common.source=s.source),void 0!==s.debug&&(i.common.debug=s.debug),void 0!==s.verbose&&(i.common.verbose=s.verbose),i.from="system.adapter.admin.0",e===t&&a&&a.common&&s.name===a.common.name?(s.engineType&&s.engineType===a.common.engineType||void 0!==s.engineType&&(i.common.engineType=s.engineType||"Javascript/js"),i.type="script",this.socket.extendObject(e,i)):a&&a.common?(a.common.engineType=s.engineType||a.common.engineType||"Javascript/js",this.socket.delObject(e).then((()=>{void 0!==i.common.engine&&(a.common.engine=i.common.engine),void 0!==i.common.enabled&&(a.common.enabled=i.common.enabled),void 0!==i.common.source&&(a.common.source=i.common.source),void 0!==i.common.name&&(a.common.name=i.common.name),void 0!==i.common.debug&&(a.common.debug=i.common.debug),void 0!==i.common.verbose&&(a.common.verbose=i.common.verbose),delete a._rev,a.common.name=s.name,a.common.expert=!0,a.type="script",a._id=t,this.socket.setObject(t,a)}))):((a=i).common.name=s.name,a.common.expert=!0,a.type="script",a._id=t,this.socket.setObject(t,a))}))}onEnableDisable(e,t){if(this.scripts[e]&&"script"===this.scripts[e].type){const s=this.scripts[e].common;s.enabled=t,s.expert=!0,this.updateScript(e,e,s).catch((e=>"canceled"!==e&&this.showError(e)))}}getLiveHost(e,t){if(t||(t=this.hosts?[...this.hosts]:[]),t.length){const s=t.shift();this.socket.getState("".concat(s,".alive")).then((a=>{a&&a.val?e(s):setTimeout((()=>this.getLiveHost(e,t)))}))}else e()}onExport(){this.getLiveHost((e=>{if(!e)return this.showError(y.I18n.t("No active host found"));const t=new Date;let s=t.getFullYear(),a=t.getMonth()+1;a<10&&(a="0".concat(a)),s+="-".concat(a),a=t.getDate(),a<10&&(a="0".concat(a)),s+="-".concat(a,"-"),this.socket.getRawSocket().emit("sendToHost",e,"readObjectsAsZip",{adapter:"javascript",id:"script.js",link:"".concat(s,"scripts.zip"),fileStorageNamespace:"admin.".concat(this.instance)},(e=>{if("string"===typeof e){const t=document.createElement("a");if(e.startsWith("admin."))t.href="../../files/".concat(e);else{const s=e.split(".zip.");t.href="./zip/".concat(s[0],"/").concat(s[1])}document.body.appendChild(t),t.click(),t.remove()}else if(e.error&&this.showError(e.error),e.data){const t=document.createElement("a");t.href="data: application/zip;base64,".concat(e.data),t.download="".concat(s,"scripts.zip"),document.body.appendChild(t),t.click(),t.remove()}}))}))}onImport(e){this.importFile=e,e?(this.confirmCallback=this.onImportConfirmed.bind(this),this.setState({importFile:!1,confirm:y.I18n.t("Existing scripts will be overwritten.")})):this.setState({importFile:!1})}onImportConfirmed(e){let t=this.importFile;this.importFile=null,e&&t&&(t=t.split(",")[1],this.getLiveHost((e=>{e?this.socket.getRawSocket().emit("sendToHost",e,"writeObjectsAsZip",{data:t,adapter:"javascript",id:"script.js"},(e=>{"permissionError"===e?this.showError(y.I18n.t(e)):!e||e.error?this.showError(e?y.I18n.t(e.error):y.I18n.t("Unknown error")):this.showMessage(y.I18n.t("Done"))})):this.showError(y.I18n.t("No active host found"))})))}toggleLogLayout(){window.localStorage&&window.localStorage.setItem("App.logHorzLayout",this.state.logHorzLayout?"false":"true"),this.setState({logHorzLayout:!this.state.logHorzLayout})}renderEditor(){const e=Object.keys(this.scripts).reduce(((e,t)=>e+("Rules"===this.scripts[t].common.engineType?1:0)),0);return(0,$.jsx)(To,{debugMode:this.state.debugMode,onDebugModeChange:e=>{e?this.setState({debugMode:!0}):this.setState({debugMode:!1,debugInstance:null})},visible:!this.state.resizing,socket:this.socket,adapterName:this.adapterName,onLocate:e=>this.setState({menuSelectId:e}),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:(e,t)=>this.onUpdateScript(e,t),isAnyRulesExists:e,debugInstance:this.state.debugInstance,onSelectedChange:(e,t)=>{const s={};let a=!1;e!==this.state.selected&&(a=!0,s.selected=e),JSON.stringify(t)!==JSON.stringify(this.state.editing)&&(a=!0,s.editing=JSON.parse(JSON.stringify(t))),a&&this.setState(s)},onRestart:e=>this.socket.extendObject(e,{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")}showLogButton(){return(0,$.jsx)("div",{title:y.I18n.t("Show logs"),className:this.props.classes.showLogButton,onClick:()=>{window.localStorage.setItem("App.hideLog","false"),this.setState({hideLog:!1,resizing:!0}),setTimeout((()=>this.setState({resizing:!1})),300)},children:(0,$.jsx)(v.t2l,{})},"showLog")}renderErrorDialog(){return this.state.errorText?(0,$.jsx)(fe,{onClose:()=>this.setState({errorText:""}),text:this.state.errorText},"dialogError"):null}renderMain(){const{classes:e}=this.props;return[this.state.message?(0,$.jsx)(g.default,{onClose:()=>this.setState({message:""}),text:this.state.message},"dialogMessage"):null,this.renderErrorDialog(),this.state.importFile?(0,$.jsx)(Ao,{onClose:e=>this.onImport(e)},"dialogImportFile"):null,this.state.confirm?(0,$.jsx)(b.default,{onClose:e=>{this.state.confirm&&this.setState({confirm:""}),this.confirmCallback&&this.confirmCallback(e),this.confirmCallback=null},text:this.state.confirm},"dialogConfirm"):null,(0,$.jsxs)("div",{className:e.content+" iobVerticalSplitter",children:[(0,$.jsx)("div",{className:e.menuOpenCloseButton,onClick:()=>{window.localStorage.setItem("App.menuOpened",this.state.menuOpened?"false":"true"),this.setState({menuOpened:!this.state.menuOpened,resizing:!0}),setTimeout((()=>this.setState({resizing:!1})),300)},children:this.state.menuOpened?(0,$.jsx)(v.KYK,{}):(0,$.jsx)(v.xXU,{})},"closeMenu"),(0,$.jsxs)(h(),{vertical:!this.state.logHorzLayout,primaryMinSize:100,secondaryInitialSize:this.state.hideLog?0:this.logSize,onDragStart:()=>this.setState({resizing:!0}),onSecondaryPaneSizeChange:e=>this.state.hideLog?0:this.logSize=parseFloat(e),onDragEnd:()=>{this.setState({resizing:!1}),window.localStorage.setItem("App.logSize",this.logSize.toString())},children:[(0,$.jsxs)($.Fragment,{children:[this.renderEditor(),!this.state.debugMode&&this.state.hideLog&&this.showLogButton()]}),!this.state.debugMode&&!this.state.hideLog&&(0,$.jsx)(Ze,{verticalLayout:!this.state.logHorzLayout,onLayoutChange:()=>this.toggleLogLayout(),editing:this.state.editing,socket:this.socket,selected:this.state.selected,onHideLog:()=>{window.localStorage.setItem("App.hideLog","true"),this.setState({hideLog:!0,resizing:!0}),setTimeout((()=>this.setState({resizing:!1})),300)}},"log")]},"splitterLayout")]},"main")]}render(){const{classes:e}=this.props;return this.state.ready?(0,$.jsx)("div",{className:e.root,children:(0,$.jsx)(ii,{socket:this.socket,children:(0,$.jsxs)(h(),{vertical:!1,primaryMinSize:300,primaryIndex:1,secondaryMinSize:300,secondaryInitialSize:this.menuSize,customClassName:"".concat(e.splitterDivs," ").concat(this.state.menuOpened?"":e.menuDivWithoutMenu),onDragStart:()=>this.setState({resizing:!0}),onSecondaryPaneSizeChange:e=>this.menuSize=parseFloat(e),onDragEnd:()=>{this.setState({resizing:!1}),window.localStorage.setItem("App.menuSize",this.menuSize.toString())},children:[(0,$.jsx)("div",{className:e.mainDiv,children:(0,$.jsx)(Be,{debugMode:this.state.debugMode,onDebugInstance:e=>{this.setState({debugInstance:e,debugMode:!!e})},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:e=>{y.Utils.setThemeName(e);const t=y.Utils.getThemeType(e);this.setState({themeName:e,themeType:t},(()=>this.props.onThemeChange(e)))},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:()=>this.setState({importFile:!0}),onSearch:e=>this.setState({searchText:e}),version:this.props.version},"sidemenu")},"menu"),this.renderMain()]},"menuSplitter")})}):(0,$.jsx)(y.Loader,{theme:this.state.themeType})}}No.propTypes={version:d().string,onThemeChange:d().func};const Eo=(0,u.Z)((e=>({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"}}})))(No);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}$/));const Oo="7.5.0";var _o=s(37674),Ro=s(19509);window.GenericBlock=Ys,window.adapterName="javascript",window.sentryDSN="https://504499a725eb4898930d3b9e9da95740@sentry.iobroker.net/56";let Mo=y.Utils.getThemeName();console.log("iobroker.".concat(window.adapterName,"@").concat(Oo,' using theme "').concat(Mo,'"'));const zo=(0,l.createGenerateClassName)({productionPrefix:"iob"});!function e(){const t=window.innerWidth<600,s=document.getElementById("root");return(0,o.s)(s).render((0,$.jsx)(l.StylesProvider,{generateClassName:zo,children:(0,$.jsx)(n.Z,{injectFirst:!0,children:(0,$.jsx)(r.Z,{theme:(0,_o.default)(Mo),children:(0,$.jsx)(O.W,{backend:t?Ro.zr:_.PD,children:(0,$.jsx)(Eo,{version:Oo,onThemeChange:t=>{Mo=t,e()}})})})})}))}(),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((e=>{e.unregister()}));const 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: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","Download as file":"Download als Datei","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","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","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","Time":"Zeit","Description":"Beschreibung","nextSunrise":"N\xe4chster Sonnenaufgang","nextSunset":"N\xe4chster Sonnenuntergang","Astronomical events today":"Astronomische Ereignisse heute","Compares current time with astronomical event":"Vergleicht die aktuelle Zeit mit einem astronomischen Ereignis","Show astronomical events":"Astronomische Ereignisse anzeigen","Astronomical":"Astronomisch","Enter your question":"Anfrage eingeben","Press Ctrl+Enter to get the answer":"Dr\xfccken Sie Strg+Eingabetaste, um die Antwort zu erhalten","Ask":"Fragen","Result":"Ergebnis","Use generated code":"Code verwenden","No Chat GPT Key found":"Kein Chat-GPT-Schl\xfcssel gefunden","You have to enter OpenAI API key in the configuration of javascript adapter.":"Sie m\xfcssen den OpenAI-API-Schl\xfcssel in der Konfiguration des Javascript-Adapters eingeben.","Open configuration":"Konfiguration \xf6ffnen"}')},86443: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","Download as file":"Download as file","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","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","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","Time":"Time","Description":"Description","nextSunrise":"Next Sunrise","nextSunset":"Next sunset","Astronomical events today":"Astronomical events today","Compares current time with astronomical event":"Compares current time with astronomical event","Show astronomical events":"Show astronomical events","Astronomical":"Astronomical","Enter your question":"Enter your request","Press Ctrl+Enter to get the answer":"Press Ctrl+Enter to get the answer","Ask":"Ask","Result":"Result","Use generated code":"Use generated code","No Chat GPT Key found":"No Chat GPT Key found","You have to enter OpenAI API key in the configuration of javascript adapter.":"You have to enter OpenAI API key in the configuration of javascript adapter.","Open configuration":"Open configuration"}')},55117: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","Download as file":"Descargar como archivo","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","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","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","Time":"Tiempo","Description":"Descripci\xf3n","nextSunrise":"pr\xf3ximo amanecer","nextSunset":"Pr\xf3xima puesta de sol","Astronomical events today":"Eventos astron\xf3micos hoy","Compares current time with astronomical event":"Compara la hora actual con un evento astron\xf3mico","Show astronomical events":"Mostrar eventos astron\xf3micos","Astronomical":"Astron\xf3mico","Enter your question":"Ingrese su solicitud","Press Ctrl+Enter to get the answer":"Presiona Ctrl+Enter para obtener la respuesta","Ask":"Preguntar","Result":"Resultado","Use generated code":"Usar c\xf3digo generado","No Chat GPT Key found":"No se ha encontrado ninguna clave GPT de chat","You have to enter OpenAI API key in the configuration of javascript adapter.":"Debe ingresar la clave API de OpenAI en la configuraci\xf3n del adaptador de JavaScript.","Open configuration":"Configuraci\xf3n abierta"}')},86115: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","Download as file":"T\xe9l\xe9charger le fichier","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","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","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","Time":"Temps","Description":"Description","nextSunrise":"Prochain lever de soleil","nextSunset":"Prochain coucher de soleil","Astronomical events today":"\xc9v\xe9nements astronomiques aujourd\'hui","Compares current time with astronomical event":"Compare l\'heure actuelle avec un \xe9v\xe9nement astronomique","Show astronomical events":"Afficher les \xe9v\xe9nements astronomiques","Astronomical":"Astronomique","Enter your question":"Entrez votre demande","Press Ctrl+Enter to get the answer":"Appuyez sur Ctrl+Entr\xe9e pour obtenir la r\xe9ponse","Ask":"Demander","Result":"R\xe9sultat","Use generated code":"Utiliser le code g\xe9n\xe9r\xe9","No Chat GPT Key found":"Aucune cl\xe9 GPT de chat trouv\xe9e","You have to enter OpenAI API key in the configuration of javascript adapter.":"Vous devez entrer la cl\xe9 API OpenAI dans la configuration de l\'adaptateur javascript.","Open configuration":"Configuration ouverte"}')},79399: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","Download as file":"Scarica come file","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","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","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","Time":"Tempo","Description":"Descrizione","nextSunrise":"Prossima alba","nextSunset":"Prossimo tramonto","Astronomical events today":"Eventi astronomici oggi","Compares current time with astronomical event":"Confronta l\'ora corrente con l\'evento astronomico","Show astronomical events":"Mostra eventi astronomici","Astronomical":"Astronomico","Enter your question":"Inserisci la tua richiesta","Press Ctrl+Enter to get the answer":"Premi Ctrl+Invio per ottenere la risposta","Ask":"Chiedere","Result":"Risultato","Use generated code":"Usa il codice generato","No Chat GPT Key found":"Nessuna chiave GPT chat trovata","You have to enter OpenAI API key in the configuration of javascript adapter.":"Devi inserire la chiave API OpenAI nella configurazione dell\'adattatore javascript.","Open configuration":"Configurazione aperta"}')},43573: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","Download as file":"Download","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","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","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","Time":"Tijd","Description":"Beschrijving","nextSunrise":"Volgende zonsopgang","nextSunset":"Volgende zonsondergang","Astronomical events today":"Astronomische gebeurtenissen vandaag","Compares current time with astronomical event":"Vergelijkt huidige tijd met astronomische gebeurtenis","Show astronomical events":"Laat astronomische gebeurtenissen zien","Astronomical":"Astronomisch","Enter your question":"Voer uw verzoek in","Press Ctrl+Enter to get the answer":"Druk op Ctrl+Enter om het antwoord te krijgen","Ask":"Vragen","Result":"Resultaat","Use generated code":"Gebruik gegenereerde code","No Chat GPT Key found":"Geen Chat GPT-sleutel gevonden","You have to enter OpenAI API key in the configuration of javascript adapter.":"U moet de OpenAI API-sleutel invoeren in de configuratie van de javascript-adapter.","Open configuration":"Configuratie openen"}')},28130: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":"Pomi\u0144","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":"Zamknij","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.":"Bezpowrotna konwersja Blockly na Javascript.","Copy script":"Skopiuj skrypt","Copy to clipboard":"Skopiuj do schowka","Download as file":"Download jako plik plik","Create new":"Utw\xf3rz nowy","Create new folder":"Utw\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":"Usu\u0144","Delete %s":"Usu\u0144 %s ...","Delete folder":"Usu\u0144 folder","Delete script":"Usu\u0144 skrypt","Deselect all":"Odznacz wszystkie","Discard changes for %s":"Odrzu\u0107 zmiany dla %s","Done":"Gotowe","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":"Folder","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 w 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":"Log dziennika","March":"Marzec","May":"Maj","Menu":"Menu","Message":"Wiadomo\u015b\u0107","Monday":"Poniedzia\u0142ek","Name":"Nazwa","No active host found":"Nie znaleziono aktywnego hosta","November":"Listopad","October":"Pa\u017adziernik","Ok":"Ok","On weekdays":"W dni powszednie","Pause script":"Wstrzymaj skrypt","Please select object ID...":"Wybierz identyfikator obiektu ...","Rename":"Przemianuj","Reorder scripts in folders":"Zmie\u0144 kolejno\u015b\u0107 skrypt\xf3w w folderach","Repeat":"Powt\xf3rz","Restart":"Uruchom ponownie","Root folder":"Folder g\u0142\xf3wny","Run script":"Uruchom skrypt","Saturday":"Sobota","Save":"Zapisz","Script":"Skrypt","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 w Typescript","Thursday":"Czwartek","Tuesday":"Wtorek","Unknown error":"Nieznany b\u0142\u0105d","Unknown error!":"Nieznany b\u0142\u0105d!","Wednesday":"\u015aroda","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":"Funkcja","filter_id":"ID","filter_name":"Nazwa","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":"Akceptuj","tooltip_from":"Od","tooltip_lc":"Ostatnia zmiana","tooltip_quality":"Jako\u015b\u0107","tooltip_ts":"Znacznik 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 (obecnie - \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 \u201enast\u0119pnie\u201d zostan\u0105 wykonane raz, gdy temperatura przekroczy 20. Nast\u0119pnym razem dzia\u0142ania \u201enast\u0119pnie\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 \u201enast\u0119pnie\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":"inaczej","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":"P\xf3\u0142noc s\u0142oneczna","nightEnd":"Koniec nocy","nauticalDawn":"\u017beglarski \u015bwit","dawn":"\u015awit","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":"prawda","false":"fa\u0142sz","search":"Szukaj","Actions":"Dzia\u0142ania","Conditions":"Warunki","Schedule":"Harmonogram","Start script":"Uruchom skrypt","State":"Stan","State condition":"Warunek stanu","Time condition":"Warunek czasowy","Set state action":"Ustaw stan dzia\u0142ania","Exec":"Uruchom shell","HTTP Call":"Po\u0142\u0105czenie HTTP","Log text":"Tekst dziennika","Pause":"Pauza","on change":"na zmian\u0119","control":"kontrola","Say It":"Wypowiedz","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":"Aktualna pora dnia","with":"z","Shell command":"Polecenie pow\u0142oki","URL":"URL","Instance:":"Instancja:","Language:":"J\u0119zyk:","Volume":"Wolumen","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","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":"Pushover","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:":"Temat:","Body:":"Tre\u015b\u0107:","Title:":"Tytu\u0142:","Sound:":"D\u017awi\u0119k:","Priority:":"Priorytet:","magic":"magia","quiet":"cisza","normal":"normalny","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":"wi\u0119cej ni\u017c","offset":"przesuni\u0119cie","Function":"Funkcja","greater or equal to":"wi\u0119cej lub r\xf3wno","less or equal to":"mniej lub r\xf3wno","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\u0119ksze]","[less or equal]":"[mniejsze lub r\xf3wne]","[less]":"[mniejsze]","[not equal]":"[nie r\xf3wne]","[includes]":"[obejmuje]","[hysteresis]":"[histereza]","greater or equal":"wi\u0119ksze lub r\xf3wne","less or equal":"mniejsze lub r\xf3wne","includes":"zawiera",".":".","()":"()","Mo":"Po","Tu":"Wt","We":"\u015ar","Th":"Cz","Fr":"Pt","Sa":"So","Su":"Nd","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":"czyste uruchomienie","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":"Stycze\u0144","Februar":"Luty","March ":"Marzec ","Condition":"Stan","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":"Stos","Pause execution":"Wstrzymaj wykonanie","Simulate":"Symulacja","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":"Wyzwolony","Function: executed":"Funkcja: wykonywana","Operate two states":"Obs\u0142uguj dwa stany","store in":"przechowaj w","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","Time":"Czas","Description":"Opis","nextSunrise":"Nast\u0119pny wsch\xf3d s\u0142o\u0144ca","nextSunset":"Nast\u0119pny zach\xf3d s\u0142o\u0144ca","Astronomical events today":"Wydarzenia astronomiczne dzisiaj","Compares current time with astronomical event":"Por\xf3wnuje aktualny czas z wydarzeniem astronomicznym","Show astronomical events":"Poka\u017c wydarzenia astronomiczne","Astronomical":"Astronomiczny","Enter your question":"Wpisz swoj\u0105 pro\u015bb\u0119","Press Ctrl+Enter to get the answer":"Naci\u015bnij klawisze Ctrl+Enter, aby uzyska\u0107 odpowied\u017a","Ask":"Zapyta\u0107","Result":"Wynik","Use generated code":"U\u017cyj wygenerowanego kodu","No Chat GPT Key found":"Nie znaleziono klucza GPT czatu","You have to enter OpenAI API key in the configuration of javascript adapter.":"Nale\u017cy wprowadzi\u0107 klucz OpenAI API w konfiguracji adaptera javascript.","Open configuration":"Otwarta konfiguracja"}')},65909: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","Download as file":"Baixar como arquivo","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","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","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","Time":"Tempo","Description":"Descri\xe7\xe3o","nextSunrise":"pr\xf3ximo nascer do sol","nextSunset":"Pr\xf3ximo p\xf4r do sol","Astronomical events today":"Eventos astron\xf4micos hoje","Compares current time with astronomical event":"Compara o tempo atual com o evento astron\xf4mico","Show astronomical events":"Mostrar eventos astron\xf4micos","Astronomical":"Astron\xf4mico","Enter your question":"Digite sua solicita\xe7\xe3o","Press Ctrl+Enter to get the answer":"Pressione Ctrl+Enter para obter a resposta","Ask":"Perguntar","Result":"Resultado","Use generated code":"Usar c\xf3digo gerado","No Chat GPT Key found":"Nenhuma chave GPT de bate-papo encontrada","You have to enter OpenAI API key in the configuration of javascript adapter.":"Voc\xea deve inserir a chave da API OpenAI na configura\xe7\xe3o do adaptador javascript.","Open configuration":"Configura\xe7\xe3o aberta"}')},50482: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","Download as file":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043a\u0430\u043a \u0444\u0430\u0439\u043b","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","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","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","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","Astronomical events today":"\u0410\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0441\u0435\u0433\u043e\u0434\u043d\u044f","Compares current time with astronomical 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","Show astronomical events":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0430\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f","Astronomical":"A\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439","Enter your question":"\u0412\u0432\u0435\u0434\u0438 \u0441\u0432\u043e\u044e \u043f\u0440\u043e\u0441\u044c\u0431\u0443","Press Ctrl+Enter to get the answer":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 Ctrl+Enter, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442","Ask":"\u0421\u043f\u0440\u043e\u0441\u0438\u0442\u044c","Result":"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442","Use generated code":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434","No Chat GPT Key found":"\u041a\u043b\u044e\u0447 GPT \u0434\u043b\u044f \u0447\u0430\u0442\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d","You have to enter OpenAI API key in the configuration of javascript adapter.":"\u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u0432\u0435\u0441\u0442\u0438 \u043a\u043b\u044e\u0447 OpenAI API \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 javascript.","Open configuration":"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"}')},17138: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?","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 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","Download as file":"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0444\u0430\u0439\u043b","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","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","Astronomical events today":"\u0410\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0456\u0447\u043d\u0456 \u043f\u043e\u0434\u0456\u0457 \u0441\u044c\u043e\u0433\u043e\u0434\u043d\u0456","Compares current time with astronomical 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","Show astronomical events":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0430\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0456\u0447\u043d\u0456 \u043f\u043e\u0434\u0456\u0457","Astronomical":"\u0410\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0456\u0447\u043d\u0438\u0439","Enter your question":"\u0412\u0432\u0435\u0434\u0438 \u0441\u0432\u043e\u0454 \u043f\u0440\u043e\u0445\u0430\u043d\u043d\u044f","Press Ctrl+Enter to get the answer":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c Ctrl+Enter, \u0449\u043e\u0431 \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044c","Ask":"\u0417\u0430\u043f\u0438\u0442\u0443\u0439\u0442\u0435","Result":"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442","Use generated code":"\u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 \u0437\u0433\u0435\u043d\u0435\u0440\u043e\u0432\u0430\u043d\u0438\u0439 \u043a\u043e\u0434","No Chat GPT Key found":"\u041a\u043b\u044e\u0447 GPT \u0434\u043b\u044f \u0447\u0430\u0442\u0443 \u043d\u0435 \u0437\u043d\u0430\u0439\u0434\u0435\u043d\u043e","You have to enter OpenAI API key in the configuration of javascript adapter.":"\u0412\u0438 \u043f\u043e\u0432\u0438\u043d\u043d\u0456 \u0432\u0432\u0435\u0441\u0442\u0438 \u043a\u043b\u044e\u0447 OpenAI API \u0443 \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u0457 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 JavaScript.","Open configuration":"\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0430 \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u044f"}')},58246: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","Download as file":"\u6863\u6848","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","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","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","Time":"\u65f6\u95f4","Description":"\u63cf\u8ff0","nextSunrise":"\u4e0b\u4e00\u4e2a\u65e5\u51fa","nextSunset":"\u4e0b\u4e00\u4e2a\u65e5\u843d","Astronomical events today":"\u4eca\u5929\u7684\u5929\u6587\u4e8b\u4ef6","Compares current time with astronomical event":"\u5c06\u5f53\u524d\u65f6\u95f4\u4e0e\u5929\u6587\u4e8b\u4ef6\u8fdb\u884c\u6bd4\u8f83","Show astronomical events":"\u663e\u793a\u5929\u6587\u4e8b\u4ef6","Astronomical":"\u5929\u6587","Enter your question":"\u8f93\u5165\u60a8\u7684\u8981\u6c42","Press Ctrl+Enter to get the answer":"\u6309 Ctrl+Enter \u5373\u53ef\u5f97\u5230\u7b54\u6848","Ask":"\u95ee","Result":"\u7ed3\u679c","Use generated code":"\u4f7f\u7528\u751f\u6210\u7684\u4ee3\u7801","No Chat GPT Key found":"\u627e\u4e0d\u5230\u804a\u5929 GPT \u5bc6\u94a5","You have to enter OpenAI API key in the configuration of javascript adapter.":"\u60a8\u5fc5\u987b\u5728 javascript \u9002\u914d\u5668\u7684\u914d\u7f6e\u4e2d\u8f93\u5165 OpenAI API \u5bc6\u94a5\u3002","Open configuration":"\u5f00\u653e\u914d\u7f6e"}')}}]); +//# sourceMappingURL=864.12f7e04a.chunk.js.map \ No newline at end of file diff --git a/admin/static/js/864.12f7e04a.chunk.js.map b/admin/static/js/864.12f7e04a.chunk.js.map new file mode 100644 index 000000000..789ba9ddc --- /dev/null +++ b/admin/static/js/864.12f7e04a.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/864.12f7e04a.chunk.js","mappings":"25hBAmBA,MAAMA,WAAqBC,IAAAA,UACvBC,WAAAA,CAAYC,GACRC,MAAMD,GAAO,KAgCjBE,aAAe,KACXC,KAAKH,MAAMI,SAAS,EACtB,KAEFC,SAAW,KACPF,KAAKH,MAAMM,SAASH,KAAKI,MAAOJ,KAAKK,MAAMC,GAAIN,KAAKK,MAAME,KAAMP,KAAKK,MAAMG,UAC3ER,KAAKH,MAAMI,SAAS,EACtB,KAEFQ,aAAeF,IACXP,KAAKU,SAAS,CAACH,OAAMD,GAAIN,KAAKW,MAAMJ,IAAO,EAzC3CP,KAAKK,MAAQ,CACTE,KAAMV,EAAMU,KACZD,GAAIT,EAAMS,GACVE,SAAUX,EAAMW,UAAY,GAEhCR,KAAKY,gBAAkBf,EAAMgB,QAAUhB,EAAMiB,YAAcjB,EAAMW,UAAYX,EAAMiB,UAAU,IAAMjB,EAAMiB,UAAUC,OAAS,GAC5Hf,KAAKgB,OAAShB,KAAKiB,UAAUpB,EAAMS,IACnCN,KAAKI,MAAQP,EAAMS,EACvB,CAEAW,SAAAA,CAAUX,GACN,MAAMY,GAASZ,GAAM,IAAIa,MAAM,KAE/B,OADA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ACK,oBAA/B38D,OAAO68D,qBAAsC78D,OAAO68D,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/ConditionAstronomical.jsx","Components/RulesEditor/components/Blocks/ActionSetState.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/StandardBlocks/index.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","OpenAi/OpenAiPrompt.jsx","OpenAi/OpenAiDialog.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 minWidth: 250,\n display: 'inline-block',\n margin: '0 10px 0 10px',\n },\n media: {\n height: 122,\n },\n text: {\n maxWidth: 218,\n minHeight: 30,\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 indexes\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.includes(text);\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().includes(text);\n } else {\n found = objects[item.id].common.source.toLowerCase().includes(text);\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 this.onDelete(item, e)}\n size=\"medium\"\n >\n \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 }\n\n return {\n whiteSpace: 'nowrap',\n padding: '0 16px 0 0',\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) {\n return true;\n }\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 && 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 >\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 >\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 >\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 >\n \n );\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\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 \n );\n\n // New Folder\n result.push( this.onAddNewFolder()}\n size=\"medium\"\n >\n \n );\n }\n\n // Search\n result.push( {\n e.stopPropagation();\n this.setState({ searchMode: true });\n }}\n size=\"medium\"\n >\n \n );\n\n // Reorder button\n result.push( {\n e.stopPropagation();\n this.setState({ reorder: !this.state.reorder });\n }}\n size=\"medium\"\n >\n \n );\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 \n );\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 result.push(v{this.props.version});\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 if (item.type === 'folder' && item.id !== ROOT_ID) { // root has been added above\n if (!item.id.startsWith(GLOBAL_ID) || this.state.expertMode) {\n folders.push({ id: item.id, name: item.title });\n }\n }\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 />,\n this.state.expanded.length ? this.onCollapseAll()}\n /> : 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 const newState = { choosingType: false };\n if (type) {\n newState.creatingScript = type;\n }\n this.setState(newState);\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) => 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 version: PropTypes.string,\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';\n\nimport { Fab } from '@mui/material';\n\nimport { MdGTranslate as IconNoCheck } from 'react-icons/md';\n\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 let monacoLoaded = this.monaco?.languages?.typescript?.typescriptDefaults?.getCompilerOptions;\n if (!monacoLoaded || !this.props.runningInstances) {\n this.monaco = window.monaco;\n monacoLoaded = this.monaco?.languages?.typescript?.typescriptDefaults?.getCompilerOptions;\n this.monacoCounter = this.monacoCounter || 0;\n this.monacoCounter++;\n if (!monacoLoaded && this.monacoCounter < 20) {\n console.log('wait for monaco loaded');\n setTimeout(() => this.waitForMonaco(cb), 200);\n return;\n }\n 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 const monacoLoaded = this.monaco?.languages?.typescript?.typescriptDefaults?.getCompilerOptions;\n if (!monacoLoaded || !this.props.runningInstances) {\n this.monaco = window.monaco;\n if (!monacoLoaded) {\n console.log('wait for monaco loaded...');\n this.waitForMonaco(() => this.componentDidMount());\n\n return;\n }\n }\n if (!this.editor && monacoLoaded) {\n console.log('Init 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(() =>\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?.languages?.typescript?.typescriptDefaults?.setExtraLibs) {\n this.monaco.languages.typescript.typescriptDefaults.setExtraLibs(wantedTypings);\n } else if (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 is 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 (this.editor && !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?.languages?.typescript?.typescriptDefaults || !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 }\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 { FaFileExport as IconExport } from 'react-icons/fa';\nimport IconCancel from '@mui/icons-material/Cancel';\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\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 const file = new Blob([this.props.text], {type: 'application/xml'});\n const fileName = this.props.scriptId.substring('scripts.js'.length) + '.xml';\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 \n {({ TransitionProps }) => (\n \n \n

{this.state.popper}

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