iobroker.javascript 10.2.4 → 10.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/README.md +10 -21
  2. package/admin/assets/AiChatPanel-CpY4Bun-.js +27 -0
  3. package/admin/assets/{AiChatService-Bsp_rhVx.js → AiChatService-QKcpW4jQ.js} +1 -1
  4. package/admin/assets/AiDiffView-DscPfZ38.js +1 -0
  5. package/admin/assets/{AiInlineProvider-BxOW88xU.js → AiInlineProvider-DTSPKoXG.js} +1 -1
  6. package/admin/assets/BlocklyEditor-BZyoN1JE.js +301 -0
  7. package/admin/assets/Compile-B0uHjrBE.css +1 -0
  8. package/admin/assets/Compile-Oss28m_f.js +165 -0
  9. package/admin/assets/Debugger-teJTIU-2.js +15 -0
  10. package/admin/assets/Documentation-uz4Ut9pT.js +4339 -0
  11. package/admin/assets/ExpandMore-V5Ix1QB1.js +1 -0
  12. package/admin/assets/FbEditor-B8S-mCvc.css +1 -0
  13. package/admin/assets/FbEditor-aOZ-RpPV.js +15 -0
  14. package/admin/assets/Import-BIC5Ee9z.js +1 -0
  15. package/admin/assets/NotificationsActive-BdzH44gp.js +1 -0
  16. package/admin/assets/RulesEditor-CcDVthPa.js +1 -0
  17. package/admin/assets/{ScriptEditor-BCGahS47.js → ScriptEditor-CviB6Hif.js} +2 -2
  18. package/admin/assets/ScriptEditorVanillaMonaco-ByuXwybM.js +3 -0
  19. package/admin/assets/Send-Mdo32jMb.js +1 -0
  20. package/admin/assets/_virtual_mf-localSharedImportMap___mfe_internal__iobroker_javascript__mf_owner__1-BnL93BgK.js +1 -0
  21. package/admin/assets/_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__180366418666083__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-NI-3Uv4e.js +1217 -0
  22. package/admin/assets/_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__180366418666083__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-DVaMIZyC.js +9 -0
  23. package/admin/assets/aiPromptBuilder-yTB6N2VT.js +1 -0
  24. package/admin/assets/blocklyTheme-CGhU3cEO.js +1 -0
  25. package/admin/assets/blocks_action-BQ4O7NRE.js +1 -0
  26. package/admin/assets/{blocks_convert-CLb0DLyc.js → blocks_convert-0VBjfhqQ.js} +1 -1
  27. package/admin/assets/blocks_logic-DAo99xDr.js +1 -0
  28. package/admin/assets/blocks_number-C--e19NU.js +1 -0
  29. package/admin/assets/blocks_object-D0TPhdzg.js +1 -0
  30. package/admin/assets/blocks_procedures-DgTxgXdB.js +3 -0
  31. package/admin/assets/{blocks_sendto-BxCMg9X4.js → blocks_sendto-CRIrtOUc.js} +1 -1
  32. package/admin/assets/blocks_switch-b_GYfF0n.js +2 -0
  33. package/admin/assets/blocks_system-BdkUdSsc.js +1 -0
  34. package/admin/assets/blocks_text-DSFhEVOf.js +1 -0
  35. package/admin/assets/blocks_time-CqALAiJp.js +1 -0
  36. package/admin/assets/blocks_timeout-yrOD2pZp.js +1 -0
  37. package/admin/assets/{blocks_trigger-XivsIDE5.js → blocks_trigger-DeAYXpSS.js} +1 -1
  38. package/admin/assets/{cronHoverProvider-BZMOFHO_.js → cronHoverProvider-DoO2_tpG.js} +1 -1
  39. package/admin/assets/{field_cron-CxKi__cX.js → field_cron-D3Ts_s9M.js} +1 -1
  40. package/admin/assets/{field_oid-CJIYiGxY.js → field_oid-BRNXredg.js} +1 -1
  41. package/admin/assets/{field_script-CehplM7L.js → field_script-3X6ousg7.js} +1 -1
  42. package/admin/assets/helpers-BTGaTdnT.js +1 -0
  43. package/admin/assets/{hostInit-Bs-bStPF.js → hostInit-2h2Cbsaw.js} +1 -1
  44. package/admin/assets/iconLibraryData-B5fiyl1C.js +1 -0
  45. package/admin/assets/index-BHhhebRG.css +1 -0
  46. package/admin/assets/index-CbQlIKB_.js +156 -0
  47. package/admin/assets/{inlineChatWidget-NIvdRGmU.js → inlineChatWidget-BwQVCPkx.js} +1 -1
  48. package/admin/assets/{inlineDiffController-Qh402KhK.js → inlineDiffController-BsDDsDHn.js} +1 -1
  49. package/admin/assets/loadBlocks-RpqM7PwO.js +117 -0
  50. package/admin/assets/loadMonaco-BVOEahNw.js +1 -0
  51. package/admin/assets/{mf-entry-bootstrap-0-019228a5.js → mf-entry-bootstrap-0-0deef484.js} +3 -3
  52. package/admin/assets/{pendingShares-B3t6ewri.js → pendingShares-BaAadIDv.js} +1 -1
  53. package/admin/assets/reactour.esm-DX9ZgYlx.js +137 -0
  54. package/admin/assets/stateHoverProvider-BEadnSXp.js +11 -0
  55. package/admin/assets/tileFbd-CWAy7R7m.svg +85 -0
  56. package/admin/custom/assets/Components-FkGDIlId.js +1 -0
  57. package/admin/custom/assets/_virtual_mf-localSharedImportMap___mfe_internal__ConfigCustomJavascriptSet__mf_owner__1-Cs88NUCd.js +1 -0
  58. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare___mf_0_emotion_mf_1_react__loadShare__.js-P-8ffWXw.js +1 -0
  59. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare___mf_0_emotion_mf_1_styled__loadShare__.js-ZVuRAEo5.js +1 -0
  60. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-DVb0ZZ1Q.js +1217 -0
  61. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare___mf_0_iobroker_mf_1_json_mf_2_config__loadShare__.js-Dna3WF04.js +1 -0
  62. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare___mf_0_mui_mf_1_x_mf_2_date_mf_2_pickers__loadShare__.js-DcjdCGAx.js +1 -0
  63. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare__date_mf_2_fns__loadShare__.js-CnhNjamd.js +1 -0
  64. package/admin/custom/assets/{_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare__leaflet__loadShare__.js-im3edKNs.js → _virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare__leaflet__loadShare__.js-Dz7BFJqH.js} +1 -1
  65. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-B0olko2J.js +1 -0
  66. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-CzN4reh_.js +122 -0
  67. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__prebuild__leaflet__prebuild__-xPcBaiTQ.js +1 -0
  68. package/admin/custom/assets/{_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-Byvr2uOb.js → _virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-CXpyx8Vy.js} +1 -1
  69. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__prebuild__react_mf_2_dom_mf_1_client__prebuild__-DuFBE5fh.js +9 -0
  70. package/admin/custom/assets/{hostInit-IJMNq3h7.js → hostInit-6oh4UY2k.js} +1 -1
  71. package/admin/custom/assets/iconLibraryData-B5fiyl1C.js +1 -0
  72. package/admin/custom/assets/index-BrlyEy6J.js +1 -0
  73. package/admin/custom/assets/lib-BmDlTzq2.js +3 -0
  74. package/admin/custom/assets/{mf-entry-bootstrap-0-f149bc46.js → mf-entry-bootstrap-0-ad1cd7d0.js} +3 -3
  75. package/admin/custom/assets/pendingShares-kV2kwejX.js +1 -0
  76. package/admin/custom/assets/rolldown-runtime-Dqfqb5bO.js +1 -0
  77. package/admin/custom/customComponents.js +3 -2
  78. package/admin/custom/i18n/en.json +39 -39
  79. package/admin/custom/i18n/es.json +1 -1
  80. package/admin/custom/i18n/fr.json +2 -2
  81. package/admin/custom/i18n/it.json +1 -1
  82. package/admin/custom/i18n/nl.json +2 -2
  83. package/admin/custom/i18n/pt.json +2 -2
  84. package/admin/custom/i18n/ru.json +2 -2
  85. package/admin/custom/i18n/uk.json +1 -1
  86. package/admin/custom/i18n/zh-cn.json +1 -1
  87. package/admin/i18n/de.json +1 -1
  88. package/admin/i18n/en.json +115 -115
  89. package/admin/i18n/fr.json +115 -115
  90. package/admin/i18n/it.json +115 -115
  91. package/admin/i18n/nl.json +115 -115
  92. package/admin/i18n/pl.json +1 -1
  93. package/admin/i18n/pt.json +115 -115
  94. package/admin/i18n/ru.json +115 -115
  95. package/admin/i18n/uk.json +115 -115
  96. package/admin/i18n/zh-cn.json +115 -115
  97. package/admin/mf-manifest.json +1 -1
  98. package/admin/mf-stats.json +1 -1
  99. package/admin/remoteEntry.js +2 -2
  100. package/admin/tab.html +3 -7
  101. package/build/lib/fb/analyze.js +288 -0
  102. package/build/lib/fb/analyze.js.map +1 -0
  103. package/build/lib/fb/blocks.js +605 -0
  104. package/build/lib/fb/blocks.js.map +1 -0
  105. package/build/lib/fb/generate.js +326 -0
  106. package/build/lib/fb/generate.js.map +1 -0
  107. package/build/lib/fb/graph.js +240 -0
  108. package/build/lib/fb/graph.js.map +1 -0
  109. package/build/lib/fb/index.js +57 -0
  110. package/build/lib/fb/index.js.map +1 -0
  111. package/build/lib/fb/js.js +33 -0
  112. package/build/lib/fb/js.js.map +1 -0
  113. package/build/lib/fb/layout.js +205 -0
  114. package/build/lib/fb/layout.js.map +1 -0
  115. package/build/lib/fb/library.js +657 -0
  116. package/build/lib/fb/library.js.map +1 -0
  117. package/build/lib/fb/runtime.js +793 -0
  118. package/build/lib/fb/runtime.js.map +1 -0
  119. package/build/lib/fb/time.js +76 -0
  120. package/build/lib/fb/time.js.map +1 -0
  121. package/build/lib/fb/types.js +19 -0
  122. package/build/lib/fb/types.js.map +1 -0
  123. package/build/lib/fb/user.js +78 -0
  124. package/build/lib/fb/user.js.map +1 -0
  125. package/build/lib/javascript.d.ts +17 -17
  126. package/build/lib/mirror.js +4 -0
  127. package/build/lib/mirror.js.map +1 -1
  128. package/build/lib/sandbox.js +44 -0
  129. package/build/lib/sandbox.js.map +1 -1
  130. package/build/main.js +66 -1
  131. package/build/main.js.map +1 -1
  132. package/build/types.d.ts +9 -1
  133. package/docs/de/README.md +1 -1
  134. package/docs/de/fbd.md +274 -0
  135. package/docs/de/javascript.md +2167 -0
  136. package/docs/en/fbd.md +260 -0
  137. package/docs/en/javascript.md +28 -30
  138. package/io-package.json +52 -28
  139. package/package.json +8 -8
  140. package/admin/assets/AiChatPanel-AZko1BsN.js +0 -27
  141. package/admin/assets/AiDiffView-Cri2QFh1.js +0 -1
  142. package/admin/assets/Debugger-CVDh3kgz.js +0 -15
  143. package/admin/assets/Error-Ch2nx5uC.js +0 -1
  144. package/admin/assets/Import-XKVP-nRT.js +0 -1
  145. package/admin/assets/RulesEditor-DsO4cKIk.js +0 -1
  146. package/admin/assets/ScriptEditorVanillaMonaco-BDAw2Bw6.js +0 -3
  147. package/admin/assets/_virtual_mf-localSharedImportMap___mfe_internal__iobroker_javascript__mf_owner__1-BMAFQFoH.js +0 -1
  148. package/admin/assets/_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__113183188387379__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-D-gi6Mty.js +0 -1217
  149. package/admin/assets/_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__113183188387379__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-CDctpiPx.js +0 -9
  150. package/admin/assets/aiPromptBuilder-aJfHa-eU.js +0 -1
  151. package/admin/assets/blocks_action-DS28sNfo.js +0 -1
  152. package/admin/assets/blocks_logic-Dpp2fwlu.js +0 -1
  153. package/admin/assets/blocks_number-N4IfHvYD.js +0 -1
  154. package/admin/assets/blocks_object-uK7FHVhS.js +0 -1
  155. package/admin/assets/blocks_procedures-C_KD0Bm6.js +0 -3
  156. package/admin/assets/blocks_switch-C8Rls5pK.js +0 -2
  157. package/admin/assets/blocks_system-CEQnj5fY.js +0 -1
  158. package/admin/assets/blocks_text-BDEWxu0P.js +0 -1
  159. package/admin/assets/blocks_time-aHQQK1Uz.js +0 -1
  160. package/admin/assets/blocks_timeout-C2L93TLJ.js +0 -1
  161. package/admin/assets/helpers-DiwtLpXM.js +0 -1
  162. package/admin/assets/index-B0FfAYMN.js +0 -871
  163. package/admin/assets/index-CXaeqPRy.css +0 -1
  164. package/admin/assets/stateHoverProvider-BkW15VMN.js +0 -9
  165. package/admin/assets/virtualExposes-DgGB-18P.js +0 -1
  166. package/admin/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__iobroker_javascript__remoteEntry_js-CiidVc0O.js +0 -1
  167. package/admin/assets/virtual_mf-exposes___mfe_internal__iobroker_javascript__remoteEntry_js-ChiJXsfH.js +0 -1
  168. package/admin/custom/assets/Components-SGnA-3W_.js +0 -1
  169. package/admin/custom/assets/_virtual_mf-localSharedImportMap___mfe_internal__ConfigCustomJavascriptSet__mf_owner__1-Bx3X6TLB.js +0 -1
  170. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare___mf_0_emotion_mf_1_react__loadShare__.js-Cc7MmJgr.js +0 -1
  171. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare___mf_0_emotion_mf_1_styled__loadShare__.js-CdvEvX5z.js +0 -1
  172. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-D5NaoeJi.js +0 -1217
  173. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare___mf_0_iobroker_mf_1_json_mf_2_config__loadShare__.js-Cbgw_a3f.js +0 -1
  174. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare___mf_0_mui_mf_1_x_mf_2_date_mf_2_pickers__loadShare__.js-CMr75K5w.js +0 -1
  175. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare__date_mf_2_fns__loadShare__.js-DKIvPDPX.js +0 -1
  176. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-D50aYKgD.js +0 -1
  177. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-CEzQFX7o.js +0 -122
  178. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__prebuild__leaflet__prebuild__-BUDmnAcx.js +0 -1
  179. package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__prebuild__react_mf_2_dom_mf_1_client__prebuild__-D_1oh1WH.js +0 -9
  180. package/admin/custom/assets/index-7r4VklMp.js +0 -1
  181. package/admin/custom/assets/lib-DDU2Oe48.js +0 -3
  182. package/admin/custom/assets/pendingShares-DarGQhyO.js +0 -1
  183. package/admin/custom/assets/rolldown-runtime-BcKkbAw3.js +0 -1
  184. package/admin/custom/assets/virtualExposes-C0IqMANQ.js +0 -1
  185. package/admin/custom/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__ConfigCustomJavascriptSet__customComponents_js-CqKvh5Xu.js +0 -1
  186. package/admin/custom/assets/virtual_mf-exposes___mfe_internal__ConfigCustomJavascriptSet__customComponents_js-DrBN_S5o.js +0 -2
@@ -0,0 +1 @@
1
+ @keyframes _fadeIn_1ji9r_1{0%{opacity:0}1%{opacity:0}to{opacity:1}}._nameCard_1ji9r_15{color:var(--colorBlock);margin-top:0;font-size:15px;font-weight:600;line-height:1.35}._nameCardSummary_1ji9r_24{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}._headerRow_1ji9r_32{align-items:center;gap:6px;min-width:0;display:flex}._headerRowClickable_1ji9r_39{cursor:pointer}._headerText_1ji9r_43{flex:1;min-width:0}._summaryObjectIcon_1ji9r_48{object-fit:contain;flex:none;width:20px;height:20px}._kicker_1ji9r_56{letter-spacing:.06em;text-transform:uppercase;color:var(--colorBlockHover);white-space:nowrap;text-overflow:ellipsis;font-size:10px;line-height:1.4;overflow:hidden}._summarySub_1ji9r_68{color:var(--colorBlockHover);white-space:nowrap;text-overflow:ellipsis;font-size:11px;line-height:1.4;overflow:hidden}._chevron_1ji9r_77{text-align:center;width:12px;color:var(--colorBlockHover);flex:none;font-size:13px;line-height:1;transition:transform .2s}._chevronCollapsed_1ji9r_89{transform:rotate(-90deg)}._chevronPlaceholder_1ji9r_94{visibility:hidden}._iconThemCard_1ji9r_98{flex:none;margin-left:2px;transition:width .15s,height .15s;width:32px!important;height:32px!important}._iconThemCard_1ji9r_98 *{color:var(--colorBlock)!important}._iconThemCardCollapsed_1ji9r_109{width:22px!important;height:22px!important}._iconThemCardSelectable_1ji9r_114{cursor:pointer}._iconHelp_1ji9r_118{flex:none;color:var(--colorBlock)!important;padding:2px!important}._blockName_1ji9r_124{flex-direction:column;width:100%;min-width:0;margin-left:10px;display:flex;position:relative}._debugInfo_1ji9r_130{color:var(--debugColor);opacity:0;font-size:12px;font-style:italic;animation:.3s ease-out _fadeIn_1ji9r_1;display:flex;position:absolute}._tagCard_1ji9r_146{text-align:center;white-space:nowrap;text-overflow:ellipsis;max-width:45%;color:var(--lineColorActive);background:var(--backgroundColorHumburger);border:1px solid var(--lineColor);cursor:pointer;border-radius:999px;flex:none;padding:1px 9px;font-size:11px;line-height:16px;overflow:hidden}._displayFlex_1ji9r_163{align-items:center;display:flex}._blockMarginTop_1ji9r_168,._nameBlock_1ji9r_169{margin-top:7px}._frontText_1ji9r_173{min-width:80px;margin-right:7px;display:inline-table}._backText_1ji9r_179{margin-left:7px}._iconTag_1ji9r_183{color:var(--colorBlock);flex:none;align-items:center;min-width:30px;margin-left:4px;font-size:30px;display:flex}._displayItalic_1ji9r_193{margin-top:0;font-size:11px;font-style:italic}._root_1dr6a_1{color:var(--colorBlock)!important;border-color:var(--colorBlock)!important}._root_1dr6a_1:hover{border-color:var(--colorBlockHover)!important;color:var(--colorBlockHover)!important;background-color:inherit!important}._square_1dr6a_11{min-width:auto!important;padding:6px 16px!important}._icon_1dr6a_16{width:24px;height:24px}._root_1ucda_1 *{color:var(--colorBlock)!important}._root_19roy_1{background:var(--backgroundColorHumburger);border-radius:5px;margin-top:0!important;margin-bottom:0!important}._root_19roy_1 *{color:var(--colorInput)!important}._root_19roy_1 [class*=MuiInputLabel-shrink]{color:var(--colorBlock)!important}._root_19roy_1 [class*=MuiInput-underline] :after{border-bottom-color:var(--lineColor)!important}._root_19roy_1:hover [class*=MuiOutlinedInput-notchedOutline],._root_19roy_1 [class*=MuiOutlinedInput-notchedOutline],._root_19roy_1 [class*=MuiOutlinedInput-notchedOutline]:hover,._root_19roy_1 [class*=MuiOutlinedInput-notchedOutline] [class*=Mui-focused],._root_19roy_1 [class*=MuiOutlinedInput-notchedOutline] [class*=Mui-disabled]{border-color:var(--lineColor)!important}._modalContentWrapper_587ci_1{min-width:320px;margin:20px 0;padding:0 35px;overflow-x:hidden}._modalButtonBlock_587ci_8{border-top:1px solid var(--lineColorActive);border-color:var(--lineColorActive);background:var(--backgroundColorHumburger);border-radius:3px;flex-flow:wrap;justify-content:flex-end;margin-top:20px;display:flex}._modalButtonBlock_587ci_8 button{flex:1;color:var(--lineColorActive)!important}._modalButtonBlockTwo_587ci_23{flex-flow:wrap-reverse;justify-content:space-around;position:sticky;bottom:0}._modalButtonBlockTwo_587ci_23 button{margin:5px}._modalWrapper_587ci_33 [class*="MuiPaper-root MuiDialog-paper MuiPaper-elevation24 MuiDialog-paperScrollPaper MuiDialog-paperWidthXl MuiPaper-elevation24 MuiPaper-rounded"]{background-color:#f6f6f6}._modalDialog_587ci_40{min-width:400px}._close_587ci_44{opacity:.9;cursor:pointer;width:32px;height:32px;transition:all .6s;position:absolute;top:-16px;right:-14px}._close_587ci_44:hover{transform:rotate(90deg)}._close_587ci_44:before{content:"";background-color:#ff4f4f;width:4px;height:33px;position:absolute;left:15px;transform:rotate(45deg)}._close_587ci_44:after{content:"";background-color:#ff4f4f;width:4px;height:33px;position:absolute;left:15px;transform:rotate(-45deg)}@media screen and (max-width:460px){._modalContentWrapper_587ci_1{min-width:auto}}._root_15mo1_1{max-width:440px;margin-top:0!important;margin-bottom:0!important}._root_15mo1_1 *,._root_15mo1_1 [class*=MuiInputLabel-shrink]{color:var(--colorBlock)!important}._root_15mo1_1 [class*=MuiInput-underline]:after,._root_15mo1_1 [class*=MuiInput-underline]:before,._root_15mo1_1 [class*=MuiInput-underline]:hover:before{border-bottom-color:var(--lineColor)!important}._root_167v0_1{color:var(--lineColorActive)!important;height:8px!important}._root_167v0_1 [class*=MuiSlider-rail],._root_167v0_1 [class*=MuiSlider-track]{border-radius:4px;height:8px!important}._root_167v0_1 [class*=MuiSlider-thumb]{background-color:currentColor;width:20px;height:20px}._root_167v0_1 [class*=MuiSlider-thumb]:focus,._root_167v0_1 [class*=MuiSlider-thumb]:hover,._root_167v0_1 [class*=MuiSlider-thumb][class*=Mui-active]{box-shadow:inherit!important}._root_167v0_1 [class*=MuiSlider-markLabel]{color:var(--colorBlock)}._root_167v0_1 ._mark_167v0_24{background-color:#0000!important}._root_rzul6_1 *{color:var(--colorBlock)!important}._root_rzul6_1 [class*=Mui-checked]{color:var(--lineColor)!important}._root_rzul6_1 [class*=Mui-checked]+[class*=MuiSwitch-track]{background-color:var(--lineColor)!important}._root_135pm_1 *,._root_135pm_1 [class*=MuiInputLabel-shrink]{color:var(--colorBlock)!important}._root_135pm_1 [class*=MuiInput-underline]:after,._root_135pm_1 [class*=MuiInput-underline]:before,._root_135pm_1 [class*=MuiInput-underline]:hover:before{border-bottom-color:var(--lineColor)!important}._root_135pm_1{margin-top:0!important;margin-bottom:0!important}._root_135pm_1 *,._root_135pm_1 [class*=MuiInputLabel-shrink]{color:var(--colorBlock)!important}._root_135pm_1 [class*=MuiInput-underline]:after,._root_135pm_1 [class*=MuiInput-underline]:before,._root_135pm_1 [class*=MuiInput-underline]:hover:before{border-bottom-color:var(--lineColor)!important}
@@ -0,0 +1,165 @@
1
+ import{Bn as e,Cr as t,Ht as n,Jn as r,Jt as i,Ln as a,Mn as o,Mt as s,Nn as c,Nr as l,Sr as u,_t as d,an as f,ar as p,bn as m,d as h,en as g,f as _,gn as v,hn as y,kr as b,l as x,m as S,mn as C,o as w,on as ee,or as T,qn as E,s as te,sn as ne,sr as D,v as O,vr as re,vt as ie,xn as ae,yn as oe,yr as k,yt as se}from"./_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__180366418666083__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-NI-3Uv4e.js";import{n as ce,r as le,t as ue}from"./NotificationsActive-BdzH44gp.js";import{t as de}from"./Send-Mdo32jMb.js";import{l as A,v as fe,y as pe}from"./index-CbQlIKB_.js";var me=r(T(`path`,{d:`M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z`}),`AddBox`),he=r(T(`path`,{d:`M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z`}),`Apps`),ge=r(T(`path`,{d:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z`}),`Article`),_e=r(T(`path`,{d:`M9 2c-1.05 0-2.05.16-3 .46 4.06 1.27 7 5.06 7 9.54s-2.94 8.27-7 9.54c.95.3 1.95.46 3 .46 5.52 0 10-4.48 10-10S14.52 2 9 2`}),`Brightness3`),ve=r(T(`path`,{d:`M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z`}),`CalendarMonth`),j=r([T(`path`,{d:`m12 2-5.5 9h11z`},`0`),T(`circle`,{cx:`17.5`,cy:`17.5`,r:`4.5`},`1`),T(`path`,{d:`M3 13.5h8v8H3z`},`2`)],`Category`),M=r(T(`path`,{d:`M7 2v11h3v9l7-12h-4l4-8z`}),`FlashOn`),N=r(T(`path`,{d:`M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1m-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1`}),`Forum`),P=r(T(`path`,{d:`M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z`}),`Functions`),F=r(T(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25`}),`HelpOutlined`),ye=r(T(`path`,{d:`M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-2 12H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z`}),`Message`),be=r(T(`path`,{d:`M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4z`}),`PlayForWork`),xe=r(T(`path`,{d:`m17.66 9.53-7.07 7.07-4.24-4.24 1.41-1.41 2.83 2.83 5.66-5.66zM4 12c0-2.33 1.02-4.42 2.62-5.88L9 8.5v-6H3l2.2 2.2C3.24 6.52 2 9.11 2 12c0 5.19 3.95 9.45 9 9.95v-2.02c-3.94-.49-7-3.86-7-7.93m18 0c0-5.19-3.95-9.45-9-9.95v2.02c3.94.49 7 3.86 7 7.93 0 2.33-1.02 4.42-2.62 5.88L15 15.5v6h6l-2.2-2.2c1.96-1.82 3.2-4.41 3.2-7.3`}),`PublishedWithChanges`),Se=r(T(`path`,{d:`M10.59 9.17 5.41 4 4 5.41l5.17 5.17zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4zm.33 9.41-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04z`}),`Shuffle`),Ce=r(T(`path`,{d:`M6 6h12v12H6z`}),`Stop`),we=r(T(`path`,{d:`M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z`}),`Storage`),Te=r(T(`path`,{d:`M14 17H4v2h10zm6-8H4v2h16zM4 15h16v-2H4zM4 5v2h16V5z`}),`Subject`),Ee=r(T(`path`,{d:`M6.99 11 3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z`}),`SwapHoriz`);l();var I={nameCard:`_nameCard_1ji9r_15`,nameCardSummary:`_nameCardSummary_1ji9r_24`,headerRow:`_headerRow_1ji9r_32`,headerRowClickable:`_headerRowClickable_1ji9r_39`,headerText:`_headerText_1ji9r_43`,summaryObjectIcon:`_summaryObjectIcon_1ji9r_48`,kicker:`_kicker_1ji9r_56`,summarySub:`_summarySub_1ji9r_68`,chevron:`_chevron_1ji9r_77`,chevronCollapsed:`_chevronCollapsed_1ji9r_89`,chevronPlaceholder:`_chevronPlaceholder_1ji9r_94`,iconThemCard:`_iconThemCard_1ji9r_98`,iconThemCardCollapsed:`_iconThemCardCollapsed_1ji9r_109`,iconThemCardSelectable:`_iconThemCardSelectable_1ji9r_114`,iconHelp:`_iconHelp_1ji9r_118`,blockName:`_blockName_1ji9r_124`,debugInfo:`_debugInfo_1ji9r_130`,fadeIn:`_fadeIn_1ji9r_1`,tagCard:`_tagCard_1ji9r_146`,displayFlex:`_displayFlex_1ji9r_163`,blockMarginTop:`_blockMarginTop_1ji9r_168`,nameBlock:`_nameBlock_1ji9r_169`,frontText:`_frontText_1ji9r_173`,backText:`_backText_1ji9r_179`,iconTag:`_iconTag_1ji9r_183`,displayItalic:`_displayItalic_1ji9r_193`},L={root:`_root_1dr6a_1`,square:`_square_1dr6a_11`,icon:`_icon_1dr6a_16`},R=({fullWidth:e,size:t,onClick:n,style:r,className:a,value:o,square:s,icon:c})=>T(i,{variant:`outlined`,color:`primary`,onClick:n,fullWidth:e,style:r,className:O.clsx(L.root,a,s?L.square:``),size:t||`medium`,children:c?T(_,{className:L.icon,src:c}):o}),De={root:`_root_1ucda_1`};l();var z=k(({size:e,value:t,title:n,onChange:r,className:i,customValue:a,disabled:o})=>{let[s,c]=b(!1);return D(p,{children:[T(g,{disabled:o,checked:!!(a?t:s),className:O.clsx(De.root,i),onChange:e=>{a&&c(e.target.checked),r&&r(e.target.checked)},size:e||`medium`}),n||null]})}),B={root:`_root_19roy_1`};l();var V=e=>{let[t,r]=b(``),{value:i,type:a,error:o,className:s,icon:c,label:l,style:u,onChange:d,fullWidth:f,autoComplete:p,customValue:m,autoFocus:h,rows:g,size:v,variant:y,multiline:x,disabled:S}=Object.assign({value:``,type:`text`,error:``,className:null,table:!1,native:{},variant:`standard`,size:`medium`,component:null,styleComponentBlock:null,fullWidth:!1,autoComplete:``,customValue:!1,autoFocus:!1,rows:1},e);return T(n,{error:!!o,autoFocus:h,fullWidth:f,label:l,disabled:S,variant:y,multiline:x,rows:g,value:m?i:t,type:a,helperText:o,style:u,className:O.clsx(B.root,s),autoComplete:p,onChange:e=>{!m&&r(e.target.value),d&&d(e.target.value)},slotProps:{input:{endAdornment:c?T(ae,{position:`end`,children:T(_,{className:B.icon,src:c})}):null}},margin:`normal`,size:v})};l();var Oe={formControl:{m:`10px 0`,"& .MuiFormControl-marginNormal":{mt:0,mb: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`}}},ke=({multiple:e,value:n,customValue:r,socket:i,title:o,attr:s,adapter:l,style:u,onChange:d,onInstanceHide:f})=>{let[p,h]=b(n||`test1`),[g,_]=b([]);return t(()=>{i==null||i.getAdapterInstances(l).then(e=>{let t=e.map(e=>({value:e._id.replace(`system.adapter.`,``),title:e._id.replace(`system.adapter.`,``)}));t.length===1?f(t[0].value):t.unshift({value:l,title:S.t(`All`)}),_(t)})},[i,l,f]),D(C,{sx:Oe.formControl,fullWidth:!0,style:u,children:[T(a,{variant:`standard`,value:(r?n:p)||`_`,fullWidth:!0,multiple:e,renderValue:t=>e&&Array.isArray(t)?t.join(`, `):t,onChange:e=>{!r&&h(e.target.value),d(e.target.value)},input:s?T(m,{name:s,id:`${s}-helper`}):T(m,{name:s}),children:g.map(e=>T(c,{style:{placeContent:`space-between`},value:e.value||`_`,children:S.t(e.title)},`key-${e.value}`))}),o?T(v,{children:S.t(o)}):null]})},H={modalContentWrapper:`_modalContentWrapper_587ci_1`,modalButtonBlock:`_modalButtonBlock_587ci_8`,modalButtonBlockTwo:`_modalButtonBlockTwo_587ci_23`,modalWrapper:`_modalWrapper_587ci_33`,modalDialog:`_modalDialog_587ci_40`,close:`_close_587ci_44`};l();var U=({onClose:e,children:t,titleButtonApply:n,titleButtonClose:r,onApply:a,className:o,textInput:s,defaultValue:c,disabled:l})=>{let[u,d]=b(c||``),[p]=b(c||``);return D(f,{open:!0,maxWidth:`md`,onClose:e,classes:{paper:H.modalDialog},className:H.modalWrapper,children:[D(ne,{children:[s&&T(V,{className:o,autoComplete:`off`,fullWidth:!0,variant:`outlined`,size:`medium`,rows:10,multiline:!0,value:u,onChange:d,customValue:!0}),!s&&t]}),D(ee,{children:[T(i,{disabled:l===void 0?p===u:l,onClick:()=>a(s?u:null),variant:`contained`,color:`primary`,children:S.t(n||`Ok`)}),T(i,{color:`grey`,onClick:e,variant:`contained`,children:S.t(r||`Cancel`)})]})]})},Ae={root:`_root_15mo1_1`};l();var je=({multiple:e,value:t,customValue:n,title:r,attr:i,options:o,style:s,onChange:l,className:u,doNotTranslate:d,doNotTranslate2:f})=>{let[p,h]=b(t===void 0?o[0].value:t),g=n?t:p,_=g===``||g==null?`_`:g;return D(C,{variant:`standard`,className:O.clsx(Ae.root,u),fullWidth:!0,style:s,children:[D(a,{variant:`standard`,value:_,fullWidth:!0,multiple:e,renderValue:t=>{if(e&&Array.isArray(t)){t.sort();let e=t.indexOf(`0`);e!==-1&&(t.splice(e,1),t.push(`0`)),e=t.indexOf(`_`),e!==-1&&(t.splice(e,1),t.unshift(`_`));let n=o.find(e=>e.only);return n&&t.includes(n.value)?n.titleShort?d?n.titleShort:S.t(n.titleShort):d?n.title:S.t(n.title):t.map(e=>o.find(t=>t.value===e||e===`_`&&t.value===``)||e).map(e=>typeof e==`object`?e.titleShort?d?e.titleShort:S.t(e.titleShort):d?e.title:S.t(e.title):d?e:S.t(e)).join(`, `)}let n=o?o.find(e=>e.value===t||t===`_`&&e.value===``):null;return n!=null&&n.title?d?n==null?void 0:n.title:S.t(n==null?void 0:n.title):t},onChange:t=>{if(n||h(t.target.value),e){let e=t.target.value,n=o.find(e=>e.only);if(n){let t=n.value;if(e.length===o.length-1&&e.includes(t))return l(e.filter(e=>e!==t),i);if(e.includes(t))return l(o.map(e=>e.value),i)}}l(t.target.value,i)},input:i?T(m,{name:i,id:`${i}-helper`}):T(m,{name:i}),children:[!e&&(o==null?void 0:o.map(e=>D(c,{style:{placeContent:`space-between`},value:e.value===``||e.value===null||e.value===void 0?`_`:e.value,children:[d?e.title:S.t(e.title),e.title2&&T(`div`,{children:f?e.title2:S.t(e.title2)})]},`key-${e.value}`))),e&&(o==null?void 0:o.map(e=>D(c,{style:{placeContent:`space-between`},value:e.value||`_`,children:[d?e.title:S.t(e.title),` `,T(z,{customValue:!0,value:t==null?void 0:t.includes(e.value)})]},`key-${e.value}`)))]}),r?T(v,{children:S.t(r)}):null]})},W={root:`_root_167v0_1`,mark:`_mark_167v0_24`};l();var Me=({size:t,value:n,style:r,onChange:i,className:a,customValue:o,min:s,max:c,step:l,unit:u})=>{let[d,f]=b(0);s=s===void 0?0:s,c=c===void 0?0:c,l=l!==void 0&&l>0?l:(c-s)/100||1;let p=(()=>{let e=typeof n==`number`?n:parseFloat(n);return isFinite(e)?e<s?s:e>c?c:e:s})(),m=[{value:s,label:s+(u||``)},{value:c,label:c+(u||``)}];return T(e,{defaultValue:o?p:d,"aria-labelledby":`discrete-slider`,valueLabelDisplay:`auto`,classes:{mark:W.mark},marks:m,step:l,min:s,max:c,value:o?p:d,style:r,className:O.clsx(W.root,a),onChange:(e,t)=>{Array.isArray(t)?(!o&&f(t[0]),i(t[0])):(!o&&f(t),i(t))},size:t||`medium`})},Ne={root:`_root_rzul6_1`};l();var Pe=k(({label:e,size:t,value:n,style:r,onChange:i,className:a,customValue:o})=>{let[c,l]=b(!1);return T(y,{className:Ne.root,control:T(s,{checked:o?n:c,style:r,className:a,onChange:e=>{o||l(e.target.checked),i(e.target.checked)},size:t||`medium`}),label:e??`all`})}),Fe={root:`_root_135pm_1`};l();var Ie=({value:e,style:t,onChange:r,className:i})=>T(n,{variant:`standard`,id:`time`,type:`time`,onChange:e=>r(e.currentTarget.value),value:e,className:O.clsx(Fe.root,i),fullWidth:!0,style:t,slotProps:{htmlInput:{step:300},inputLabel:{shrink:!0}}}),G={root:`_root_135pm_1`};l();var K=[31,29,31,30,31,30,31,31,30,31,30,31],Le=({value:e,onChange:t,className:n,style:r})=>{let[i,o]=(e||`01.01`).toString().split(`.`),s=parseInt(o,10)||0,l=parseInt(i,10)||0;l>12?l=12:l<0&&(l=0),s>K[l]?s=K[l]:s<0&&(s=0);let u=[];for(let e=0;e<K[l];e++)u.push(e+1);return D(`div`,{children:[T(C,{variant:`standard`,className:O.clsx(G.root,n),style:r,children:D(a,{variant:`standard`,className:O.clsx(G.root,n),margin:`dense`,label:S.t(`Month`),onChange:e=>t(`${e.target.value.toString().padStart(2,`0`)}.${s.toString().padStart(2,`0`)}`),value:l,children:[T(c,{style:{placeContent:`space-between`},value:0,children:S.t(`Any month`)},0),T(c,{style:{placeContent:`space-between`},value:1,children:S.t(`January`)},1),T(c,{style:{placeContent:`space-between`},value:2,children:S.t(`February`)},2),T(c,{style:{placeContent:`space-between`},value:3,children:S.t(`March`)},3),T(c,{style:{placeContent:`space-between`},value:4,children:S.t(`April`)},4),T(c,{style:{placeContent:`space-between`},value:5,children:S.t(`May`)},5),T(c,{style:{placeContent:`space-between`},value:6,children:S.t(`June`)},6),T(c,{style:{placeContent:`space-between`},value:7,children:S.t(`July`)},7),T(c,{style:{placeContent:`space-between`},value:8,children:S.t(`August`)},8),T(c,{style:{placeContent:`space-between`},value:9,children:S.t(`September`)},9),T(c,{style:{placeContent:`space-between`},value:10,children:S.t(`October`)},10),T(c,{style:{placeContent:`space-between`},value:11,children:S.t(`November`)},11),T(c,{style:{placeContent:`space-between`},value:12,children:S.t(`December`)},12)]})}),T(C,{variant:`standard`,className:O.clsx(G.root,n),style:r,children:D(a,{variant:`standard`,className:O.clsx(G.root,n),margin:`dense`,label:S.t(`Date`),onChange:e=>t(`${l.toString().padStart(2,`0`)}.${e.target.value.toString().padStart(2,`0`)}`),value:s,children:[T(c,{style:{placeContent:`space-between`},value:0,children:S.t(`Any`)},`A`),u.map(e=>T(c,{style:{placeContent:`space-between`},value:e,children:e},e))]})})]})};l();var q={},Re={Shuffle:Se,Apps:he,Functions:P,Language:d,AddBox:me,Pause:pe,Subject:Te,PlayForWork:be,Brightness3:_e,HelpOutline:F,Storage:we,AccessTime:le,PlayArrow:fe,FlashOn:M,CalendarMonth:ve,Send:de,Message:ye,NotificationsActive:ue,SwapHoriz:Ee,InsertDriveFile:ie,AccountTree:ce,Article:ge,Stop:Ce,Category:j,Forum:N,PublishedWithChanges:xe};function J({iconName:e,className:n,adapter:r,socket:i,onClick:a,style:o}){let[s,c]=b(``);if(t(()=>{r&&i&&(q[r]instanceof Promise||(q[r]=i.getObject(`system.adapter.${r}`)),q[r].then(e=>{var t;return(e==null||(t=e.common)==null?void 0:t.icon)&&c(`../../adapter/${r}/${e.common.icon}`)}))},[r,i]),r)return T(`img`,{onClick:e=>a&&a(e),src:s||``,className:n,style:o,alt:``});let l=e&&Re[e]||se;return T(l,{className:n,style:o,onClick:e=>a&&a(e)})}var Y;function ze(e){return Y||=S.getLanguage(),e&&typeof e==`object`?e[Y]||e.en:e||``}function Be(e){return e===null?`null`:e===void 0?`undefined`:Array.isArray(e)?e.join(`, `):typeof e==`object`?JSON.stringify(e):e.toString()}l();var Ve=class e extends re{static getStaticData(){return{acceptedBy:`actions`,name:`Not found`,id:`ActionEmpty`,icon:`Shuffle`}}static compile(e,t){return``}constructor(e,t){super(e),E(this,`debugHideTimeout`,null),E(this,`initiallyCollapsed`,!1),E(this,`collapseDecided`,!1),E(this,`lastObjectIdChange`,0),E(this,`enableSimulationProcessing`,!1),E(this,`mounted`,!1),E(this,`tagCardTimeout`,null),E(this,`enableSimulationTimeout`,null),E(this,`lastDebugMessage`,0),E(this,`debugMessageTimeout`,null),t||={};let n=e.settings||{tagCard:t.tagCardArray?typeof t.tagCardArray[0]==`string`?t.tagCardArray[0]:t.tagCardArray[0].title:``};!n.tagCard&&t.tagCardArray&&(n.tagCard=typeof t.tagCardArray[0]==`string`?t.tagCardArray[0]:t.tagCardArray[0].title),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:``,instanceSelectionOptions:[],instanceSelectionDef:``,hideAttributes:[],settings:n,debugMessage:null,enableSimulation:this.props.enableSimulation}}componentWillUnmount(){this.mounted=!1,this.debugMessageTimeout&&=(clearTimeout(this.debugMessageTimeout),null),this.debugHideTimeout&&=(clearTimeout(this.debugHideTimeout),null),this.tagCardTimeout&&=(clearTimeout(this.tagCardTimeout),null),this.enableSimulationTimeout&&=(clearTimeout(this.enableSimulationTimeout),null)}onTagChange(e,t,n,r,i){let a=!1,o=JSON.parse(JSON.stringify(this.state.settings));this.state.inputs.forEach(e=>{let t=e.attr,n=e.defaultValue;t&&n!==void 0&&o[t]===void 0&&(a=!0,o[t]=n)}),a?(this.setState({settings:o},()=>t==null?void 0:t()),this.props.onChange(o)):t&&t()}onUpdate(){}onValueChanged(e,t){}getSummary(){return null}objectName(e){if(!e)return;let t=this.state[e];if(t===void 0){setTimeout(async()=>{let t=await this.props.socket.getObject(e);this.mounted&&this.setState({[e]:t||!1})},0);return}return t&&O.getObjectNameFromObj(t,S.getLanguage())||void 0}summaryObjectIcon(e){if(!e)return;let t=`${e}___icon`,n=this.state[t];if(n===void 0){setTimeout(async()=>{let n=await this.props.socket.getObject(e),r=await this.findIcon(n);this.mounted&&this.setState({[t]:r})},0);return}return n||void 0}summaryObjectId(){let e=this.state.inputs.find(e=>e.nameRender===`renderObjectID`&&typeof this.state.settings[e.attr||``]==`string`);return e!=null&&e.attr&&this.state.settings[e.attr]||void 0}optionTitle(e,t,n=`title`){var r,i;if(t==null||t===``)return;let a=(r=this.state.inputs)==null?void 0:r.find(t=>t.attr===e),o=a==null||(i=a.options)==null?void 0:i.find(e=>String(e.value)===String(t));if(o)return n===`title2`?o.title2:a!=null&&a.doNotTranslate?o.title:S.t(o.title)}isCollapsed(e){this.collapseDecided||(this.collapseDecided=!0,this.initiallyCollapsed=e);let t=this.state.userCollapsed;return e&&(t===void 0?this.initiallyCollapsed:t)}toggleCollapsed(e){this.setState({userCollapsed:e})}renderText(e,t,n){let{className:r}=this.props,{attr:i,frontText:a,backText:o,nameBlock:s,name:c,doNotTranslate:l,doNotTranslateBack:d}=e;return D(u,{children:[D(`div`,{className:O.clsx(I.displayFlex,I.blockMarginTop),children:[a&&T(`div`,{className:I.frontText,children:l?a:S.t(a)}),T(V,{className:r,autoComplete:`off`,label:ze(c),variant:`outlined`,size:`small`,fullWidth:!0,value:t,onChange:n,customValue:!0}),o&&T(`div`,{className:I.backText,children:d?o:S.t(o)})]}),s&&T(`div`,{className:I.nameBlock,children:S.t(s)})]},i)}renderSwitch(e,t,n){let{className:r}=this.props,{attr:i,frontText:a,backText:o,nameBlock:s,doNotTranslate:c,doNotTranslateBack:l}=e;return D(`div`,{children:[D(`div`,{className:O.clsx(I.displayFlex,I.blockMarginTop),children:[a&&T(`div`,{className:I.frontText,children:c?a:S.t(a)}),T(Pe,{className:r,label:``,customValue:!0,value:t,onChange:n}),o&&T(`div`,{className:I.backText,children:l?o:S.t(o)})]}),s&&T(`div`,{className:I.nameBlock,children:S.t(s)})]},i)}renderNameText({attr:e,signature:t,doNotTranslate:n,defaultValue:r},i){return T(`div`,{className:O.clsx(t?I.displayItalic:I.displayFlex,I.blockMarginTop),children:i?n?i:S.t(i):n?r:S.t(r)},e)}renderNumber(e,t,n){let{className:r}=this.props,{settings:i}=this.state,{attr:a,backText:o,frontText:s,openCheckbox:c,doNotTranslate:l,doNotTranslateBack:u}=e,d=!0;return c&&(d=typeof i.offset!=`boolean`||i.offset),d?D(`div`,{className:O.clsx(I.displayFlex,I.blockMarginTop),children:[s&&T(`div`,{className:I.frontText,children:l?s:S.t(s)}),T(V,{className:O.clsx(r,e.className),fullWidth:!0,autoComplete:`off`,label:e.noHelperText?``:`number`,variant:`outlined`,size:`small`,type:`number`,value:t,onChange:n,customValue:!0}),o&&T(`div`,{className:I.backText,children:u?o:S.t(o)})]},a):null}renderColor(e,t,n){let{className:r}=this.props,{attr:i,backText:a,frontText:o,doNotTranslate:s,doNotTranslateBack:c}=e;return D(`div`,{className:O.clsx(I.displayFlex,I.blockMarginTop),children:[o&&T(`div`,{className:I.frontText,children:s?o:S.t(o)}),T(V,{className:r,autoComplete:`off`,fullWidth:!0,variant:`outlined`,size:`small`,type:`color`,value:t,onChange:n}),a&&T(`div`,{className:I.backText,children:c?a:S.t(a)})]},i)}renderCheckbox(e,t,n){let{className:r}=this.props,{settings:i}=this.state,{attr:a,backText:o,frontText:s,defaultValue:c,doNotTranslate:l,doNotTranslateBack:u}=e;return D(`div`,{className:I.displayFlex,children:[s&&T(`div`,{className:I.frontText,children:l?s:S.t(s)}),T(z,{className:r,size:`small`,value:typeof i[a]==`boolean`?!!i[a]:!!c,customValue:!0,onChange:n}),o&&T(`div`,{onClick:()=>n(typeof i[a]==`boolean`?!i[a]:!c),className:I.backText,children:u?o:S.t(o)})]},a)}renderSlider(e,t,n){let{className:r}=this.props,{attr:i,frontText:a,backText:o,nameBlock:s,min:c,max:l,step:u,unit:d,doNotTranslate:f,doNotTranslateBack:p}=e;return D(`div`,{children:[D(`div`,{className:I.displayFlex,style:{marginRight:20},children:[a&&T(`div`,{className:I.frontText,children:f?a:S.t(a)}),T(Me,{customValue:!0,min:c,max:l,step:u,unit:d,className:r,autoComplete:`off`,label:`number`,variant:`outlined`,size:`small`,value:t,onChange:e=>n(e)}),o&&T(`div`,{style:{marginLeft:20},className:I.backText,children:p?o:S.t(o)})]}),s&&T(`div`,{className:I.nameBlock,children:S.t(s)})]},i)}renderButton(e,t,n){let{className:r}=this.props,{attr:i,frontText:a,backText:o,doNotTranslate:s,doNotTranslateBack:c}=e;return D(`div`,{className:O.clsx(I.displayFlex,I.blockMarginTop),children:[a&&T(`div`,{className:I.frontText,children:s?a:S.t(a)}),T(R,{fullWidth:!0,value:t.toString(),className:r,onClick:()=>n(t)}),o&&T(`div`,{className:I.backText,children:c?o:S.t(o)})]},i)}async findIcon(e){var t;if(!e)return null;if((t=e.common)!=null&&t.icon&&(e.type===`state`||e.type===`channel`||e.type===`device`))return h(e,`../..`);if(e.type===`state`||e.type===`channel`){let t=e._id.split(`.`);t.pop();let n=t.join(`.`);try{let e=await this.props.socket.getObject(n);return await this.findIcon(e)}catch{return null}}return null}renderObjectID(e,t,n){let{attr:r,openCheckbox:i,checkReadOnly:a}=e,{settings:o}=this.state,s=this.state[`showSelectId${r}`],{className:c,socket:l,style:u}=this.props,d=!0;i&&(d=typeof o.offset!=`boolean`||o.offset);let f=o[r],p=f?this.state[f]:void 0;return f&&!p&&p!==!1&&setTimeout(async e=>{var n;let r=await l.getObject(t),i=await this.findIcon(r);if(!this.mounted)return;let s={[e]:r||!1,[`${e}___icon`]:i,error:a&&this.lastObjectIdChange&&Date.now()-this.lastObjectIdChange<1e3&&(r==null||(n=r.common)==null?void 0:n.write)===!1?S.t(`Read only ID selected: %s`,o[e]):``};this.setState(s)},0,f),d?D(`div`,{className:I.blockMarginTop,children:[D(`div`,{className:I.displayFlex,children:[e.title?T(`div`,{children:S.t(e.title)}):null,T(V,{className:c,style:u,autoComplete:`off`,fullWidth:!0,disabled:!0,variant:`outlined`,size:`small`,value:t,customValue:!0}),T(R,{icon:this.state[`${f}___icon`],square:!0,style:{...u||void 0,marginLeft:7},value:`...`,className:c,onClick:()=>{let e={};e[`showSelectId${r}`]=!0,this.setState(e)}})]}),p?T(`div`,{className:O.clsx(I.nameBlock,I.displayItalic),children:O.getObjectNameFromObj(p,S.getLanguage())}):null,s?T(x,{theme:this.props.theme,imagePrefix:`../..`,dialogName:`javascript`,themeType:O.getThemeType(),socket:l,selected:t,onClose:()=>{let e={};e[`showSelectId${r}`]=!1,this.setState(e)},onOk:(e,t)=>{let i={};i[`showSelectId${r}`]=!1;let a=Array.isArray(e)?e[0]:e;this.setState(i,async()=>{var t,i,o,s,c,u,d,f,p,m;let h=a?await l.getObject(a):void 0;this.lastObjectIdChange=Date.now(),n({[r]:e,[`${r}Role`]:h==null||(t=h.common)==null?void 0:t.role,[`${r}Type`]:h==null||(i=h.common)==null?void 0:i.type,[`${r}Unit`]:h==null||(o=h.common)==null?void 0:o.unit,[`${r}States`]:h==null||(s=h.common)==null?void 0:s.states,[`${r}Min`]:h==null||(c=h.common)==null?void 0:c.min,[`${r}Max`]:h==null||(u=h.common)==null?void 0:u.max,[`${r}Step`]:h==null||(d=h.common)==null?void 0:d.step,[`${r}Def`]:h==null||(f=h.common)==null?void 0:f.def,[`${r}Write`]:h==null||(p=h.common)==null?void 0:p.write,[`${r}Read`]:h==null||(m=h.common)==null?void 0:m.read},()=>this.props.setOnUpdate&&this.props.setOnUpdate(!0))})}}):null]},r):null}renderIconTag(){return T(`div`,{className:I.iconTag,onClick:e=>{this.state.settings.tagCard&&(this.state.tagCardArray.length<3?this.onChangeTag():this.setState({openTagMenu:e.currentTarget}))},children:this.state.settings.tagCard})}renderTime(e,t,n){let{attr:r,backText:i,frontText:a,doNotTranslate:o,doNotTranslateBack:s}=e;return D(`div`,{className:I.displayFlex,style:{whiteSpace:`nowrap`},children:[a&&T(`div`,{className:I.frontText,children:o?a:S.t(a)}),T(Ie,{value:t,onChange:n}),i&&T(`div`,{className:I.backText,children:s?i:S.t(i)})]},r)}renderSelect(e,t,n){let{className:r,style:i}=this.props,{name:a,options:o,frontText:s,backText:c,attr:l,multiple:u,doNotTranslate:d,doNotTranslate2:f,doNotTranslateBack:p}=e;return D(`div`,{className:O.clsx(I.displayFlex,I.blockMarginTop),style:{whiteSpace:`nowrap`},children:[s&&T(`div`,{className:I.frontText,children:S.t(s)}),T(je,{attr:l,doNotTranslate:d,doNotTranslate2:f,title:a,className:r,style:i,options:o,value:t,onChange:n,multiple:u,customValue:!0}),c&&T(`div`,{className:I.backText,children:p?c:S.t(c)})]},l)}renderInstance(e,t,n){let{socket:r}=this.props,{name:i,frontText:a,backText:o,attr:s,adapter:c,doNotTranslate:l,doNotTranslateBack:u}=e;return this.state.hideAttributes.includes(s)?null:D(`div`,{className:O.clsx(I.displayFlex,I.blockMarginTop),style:{whiteSpace:`nowrap`},children:[a&&T(`div`,{className:I.frontText,children:l?a:S.t(a)}),T(ke,{attr:s,socket:r,adapter:c,title:i,value:t,onChange:e=>{n(Array.isArray(e)?e[0]:e)},customValue:!0,onInstanceHide:e=>this.setState({hideAttributes:[...this.state.hideAttributes,s]},()=>n(e))}),o&&T(`div`,{className:I.backText,children:u?o:S.t(o)})]},s)}renderDialog(e){let{onShowDialog:t,frontText:n,backText:r,attr:i,icon:a,doNotTranslate:o,doNotTranslateBack:s}=e;return D(`div`,{className:O.clsx(I.displayFlex,I.blockMarginTop),style:{whiteSpace:`nowrap`},children:[n&&T(`div`,{className:I.frontText,children:o?n:S.t(n)}),T(J,{iconName:a,className:O.clsx(I.iconDialog),onClick:()=>t&&t()}),r&&T(`div`,{className:I.backText,children:s?r:S.t(r)})]},i)}renderModalInput(e,t,n){let{openModal:r}=this.state,{className:i}=this.props,{attr:a,nameBlock:o,frontText:s,backText:c,noTextEdit:l,doNotTranslate:u,doNotTranslateBack:d}=e;return D(`div`,{children:[D(`div`,{className:O.clsx(I.displayFlex,I.blockMarginTop),children:[s&&T(`div`,{className:I.frontText,children:u?s:S.t(s)}),T(V,{disabled:!!l,className:i,autoComplete:`off`,fullWidth:!0,variant:`outlined`,size:`small`,value:t,onChange:n,customValue:!0}),T(R,{square:!0,style:{marginLeft:5},value:`...`,className:i,onClick:()=>this.setState({openModal:!0})}),c&&T(`div`,{className:I.backText,children:d?c:S.t(c)})]}),r?T(U,{onApply:e=>this.setState({openModal:!1},()=>e!=null&&n(e)),onClose:()=>this.setState({openModal:!1}),defaultValue:t,textInput:!0}):null,o&&T(`div`,{className:I.nameBlock,children:S.t(o)})]},a)}renderDate(e,t,n){let{attr:r,backText:i,frontText:a,doNotTranslate:o,doNotTranslateBack:s}=e;return D(`div`,{className:I.displayFlex,style:{whiteSpace:`nowrap`},children:[a&&T(`div`,{className:I.frontText,children:o?a:S.t(a)}),T(Le,{value:t,onChange:n}),i&&T(`div`,{className:I.backText,children:s?i:S.t(i)})]},r)}static getValueReplace(e,t){return`.replace(/%(?:\\.(\\d+))?${e}/g, (_m, d) => { const v = ${t}; return d !== undefined && (typeof v === "number" || (typeof v === "string" && v.trim() !== "")) && isFinite(v) ? formatValue(v, parseInt(d, 10)) : v; })`}static getReplacesInText(t){var n,r,i,a,o,s;let c=``;return(n=t.trigger)!=null&&n.oidType||((r=t.trigger)==null?void 0:r.id)===`TriggerEnumMembers`?c=`${e.getValueReplace(`s`,`obj.state.val`)}.replace(/%id/g, obj.id).replace(/%name/g, obj.common && obj.common.name)${e.getValueReplace(`old`,`obj.oldState.val`)}`:((i=t.trigger)==null?void 0:i.id)===`TriggerMessage`?c=e.getValueReplace(`s`,`typeof data === "object" ? JSON.stringify(data) : data`):((a=t.trigger)==null?void 0:a.id)===`TriggerFile`?c=`.replace(/%(?:\\.\\d+)?s/g, fileName).replace(/%id/g, fileId)`:((o=t.trigger)==null?void 0:o.id)===`TriggerObject`?c=`.replace(/%(?:\\.\\d+)?s/g, id).replace(/%id/g, id)`:((s=t.trigger)==null?void 0:s.id)===`TriggerLog`?c=`.replace(/%(?:\\.\\d+)?s/g, info.message).replace(/%id/g, info.from)`:t.conditionsStates.length&&(c=`${e.getValueReplace(`s`,t.conditionsStates[0].name)}.replace(/%id/g, "${t.conditionsStates[0].id}")`),c}renderTags(){let{tagCardArray:e,openTagMenu:t}=this.state,{tagCard:n}=this.state.settings,r=n!==`=`&&n!==`<>`&&n!==`>=`&&n!==`()`&&n!==`.`&&n!==`<=`&&n!==`<`&&n!==`>`&&n?S.t(n):n;return e.length>=3&&(r=D(`div`,{children:[T(`div`,{"aria-controls":`simple-menu`,"aria-haspopup":`true`,onClick:e=>{this.setState({openTagMenu:e.currentTarget},()=>{this.props.isTourOpen&&this.props.tourStep===A.openTagsMenu&&setTimeout(()=>this.props.setTourStep&&this.props.setTourStep(A.selectIntervalTag),300)})},children:r}),T(o,{id:`simple-menu`,anchorEl:t,keepMounted:!0,open:!!t,onClose:()=>this.setState({openTagMenu:null}),children:e.map((e,t)=>{let r;return r=typeof e==`string`?e:e.title,D(c,{selected:r===n,className:`tag-card-${r}`,style:{placeContent:`space-between`},onClick:e=>{e.stopPropagation(),this.props.isTourOpen&&(this.props.tourStep===A.openTagsMenu||this.props.tourStep===A.selectIntervalTag)&&r===`interval`&&setTimeout(()=>{var e,t;return(e=(t=this.props).setTourStep)==null?void 0:e.call(t,A.selectActions)},500);let t=JSON.parse(JSON.stringify(this.state.settings));t.tagCard=r,this.setState({openTagMenu:null,settings:t},()=>{this.props.onChange(this.state.settings),this.onTagChange(this.state.settings.tagCard)})},children:[r.search(/>|<|<>|<=|>=|=/)===-1?S.t(r):r,typeof e!=`string`&&e.title2&&T(`div`,{style:{marginLeft:4},children:S.t(e.title2)})]},`${r}_${t}`)})})]})),r}getData(){return{acceptedBy:`triggers`,name:``,id:``}}onChangeTag(){let{tagCardArray:e,settings:t,settings:{tagCard:n}}=this.state,r;if(r=typeof e[0]==`string`?[...e]:e.map(e=>e.title),n&&r.length<3){let e={...t},i=r[(r.indexOf(n)+1)%r.length];e.tagCard=i,this.setState({settings:e},()=>{this.props.onChange(e),this.onTagChange(i)})}}componentDidMount(){this.mounted=!0,this.onTagChange()}componentDidUpdate(){this.props.acceptedBy!==`triggers`&&this.props.onUpdate&&setTimeout(()=>this.onUpdate(),0)}onChangeInput(e){return(t,n,r)=>{let i=JSON.parse(JSON.stringify(this.state.settings));typeof t==`object`&&(!n||typeof n==`function`)?(Object.keys(t).forEach(e=>i[e]=t[e]),typeof n==`function`&&(r=n,n=void 0)):i[n||e]=t,i.id=this.getData().id,i._id=this.props._id,this.setState({settings:i},()=>{this.onValueChanged(t,n||e),this.props.onChange(i),r==null||r()})}}renderSpecific(){return null}renderDebug(e){return``}renderDebugInfo(){return this.state.debugMessage?T(`div`,{className:I.debugInfo,style:{opacity:1,height:22,bottom:-22},children:this.renderDebug?this.renderDebug(this.state.debugMessage):S.t(`executed`)},this.state.debugMessage.ts):null}renderCron(e,t,n){return null}renderWizard(e,t,n){return null}renderWriteState(){return null}renderInputElement(e,t){let{nameRender:n,defaultValue:r,attr:i}=e,{settings:a}=this.state,o=i?a[i]:void 0;switch(o===void 0&&(o=r),n){case`renderTime`:return i?this.renderTime(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderTime`)},`invalid_${t}`);case`renderNameText`:return this.renderNameText(e,r);case`renderSelect`:return i?this.renderSelect(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderSelect`)},`invalid_${t}`);case`renderModalInput`:return i?this.renderModalInput(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderModalInput`)},`invalid_${t}`);case`renderObjectID`:return i?this.renderObjectID(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderObjectID`)},`invalid_${t}`);case`renderDialog`:return i?this.renderDialog(e):T(`div`,{children:S.t(`Invalid renderDialog`)},`invalid_${t}`);case`renderInstance`:return i?this.renderInstance(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderInstance`)},`invalid_${t}`);case`renderText`:return i?this.renderText(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderText`)},`invalid_${t}`);case`renderSlider`:return i?this.renderSlider(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderSlider`)},`invalid_${t}`);case`renderCheckbox`:return i?this.renderCheckbox(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderCheckbox`)},`invalid_${t}`);case`renderButton`:return i?this.renderButton(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderButton`)},`invalid_${t}`);case`renderColor`:return i?this.renderColor(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderColor`)},`invalid_${t}`);case`renderSwitch`:return i?this.renderSwitch(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderSwitch`)},`invalid_${t}`);case`renderDate`:return i?this.renderDate(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderDate`)},`invalid_${t}`);case`renderCron`:return i?this.renderCron(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderCron`)},`invalid_${t}`);case`renderWizard`:return i?this.renderWizard(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderWizard`)},`invalid_${t}`);case`renderWriteState`:return this.renderWriteState();case`renderNumber`:return i?this.renderNumber(e,o,this.onChangeInput(i)):T(`div`,{children:S.t(`Invalid renderNumber`)},`invalid_${t}`);default:return this[n]?this[n](e,o,i?this.onChangeInput(i):null):T(`div`,{children:S.t(`Invalid input type: %s`,n)},`invalid_${t}`)}}render(){var e;let{inputs:t,name:n,icon:r,iconTag:i,settings:a,adapter:o,settings:{tagCard:s},helpDialog:c}=this.state,{socket:l,notFound:d}=this.props;this.state.settings&&!this.state.settings.tagCard&&(e=this.state.tagCardArray)!=null&&e.length&&!this.tagCardTimeout&&(this.tagCardTimeout=setTimeout(()=>{if(this.tagCardTimeout=null,!this.mounted)return;let e=JSON.parse(JSON.stringify(this.state.settings));e.tagCard=typeof this.state.tagCardArray[0]==`string`?this.state.tagCardArray[0]:this.state.tagCardArray[0].title,this.setState({settings:e})},50)),this.state.enableSimulation!==this.props.enableSimulation&&!this.enableSimulationProcessing&&(this.enableSimulationProcessing=!0,this.enableSimulationTimeout=setTimeout(()=>{if(this.enableSimulationTimeout=null,!this.mounted){this.enableSimulationProcessing=!1;return}this.setState({enableSimulation:this.props.enableSimulation},()=>{this.enableSimulationProcessing=!1})},50));let f;if(this.props.onDebugMessage)for(let e=this.props.onDebugMessage.length-1;e>=0;e--){let t=this.props.onDebugMessage[e];if(t.blockId===this.props._id&&t.ts>this.lastDebugMessage&&t.ts>Date.now()-1e3){f=t;break}}f&&(this.lastDebugMessage=f.ts,this.debugMessageTimeout&&clearTimeout(this.debugMessageTimeout),this.debugHideTimeout&&=(clearTimeout(this.debugHideTimeout),null),this.debugMessageTimeout=setTimeout(e=>{let t=JSON.parse(e),n=t.hideTimeout||5e3;this.debugMessageTimeout=null,this.setState({debugMessage:t},()=>{this.debugHideTimeout&&clearTimeout(this.debugHideTimeout),this.debugHideTimeout=setTimeout(()=>{this.debugHideTimeout=null,this.setState({debugMessage:null})},n)})},50,JSON.stringify(f)));let p=this.getSummary(),m=this.isCollapsed(!!p),h=m?this.summaryObjectIcon(this.summaryObjectId()):void 0;return D(u,{children:[i?this.renderIconTag():T(J,{iconName:r,className:O.clsx(I.iconThemCard,m&&I.iconThemCardCollapsed,s&&this.state.tagCardArray.length&&I.iconThemCardSelectable),adapter:o,socket:l,onClick:e=>{s&&(e.stopPropagation(),this.state.tagCardArray.length<3?this.onChangeTag():this.setState({openTagMenu:e.currentTarget}))}}),D(`div`,{className:I.blockName,"data-rules-expanded":!m,children:[D(`div`,{className:O.clsx(I.headerRow,p&&I.headerRowClickable),onClick:p?()=>this.toggleCollapsed(!m):void 0,children:[h?T(`img`,{className:I.summaryObjectIcon,src:h,alt:``}):null,T(`span`,{className:O.clsx(I.chevron,m&&I.chevronCollapsed,!p&&I.chevronPlaceholder),children:`▾`}),D(`div`,{className:I.headerText,children:[p!=null&&p.kicker?T(`div`,{className:I.kicker,children:p.kicker}):null,D(`span`,{className:O.clsx(I.nameCard,p&&I.nameCardSummary),children:[p?p.title:S.t(n),d?S.t(`%s not found`,a.id):``]}),m&&p!=null&&p.subtitle?T(`div`,{className:I.summarySub,title:p.subtitle,children:p.subtitle}):null]}),s?T(`div`,{onClick:e=>{e.stopPropagation(),this.onChangeTag()},className:O.clsx(I.tagCard,`tag-card`),children:this.renderTags()}):null,c?T(oe,{className:I.iconHelp,size:`small`,onClick:e=>{e.stopPropagation(),this.setState({helpText:S.t(c)})},children:T(F,{})}):null]}),m?null:t.map((e,t)=>this.renderInputElement(e,t))]}),this.renderDebugInfo(),this.state.error?T(w,{title:S.t(`Warning`),text:this.state.error,onClose:()=>this.setState({error:``})}):null,this.state.helpText?T(te,{title:S.t(`Instructions`),text:this.state.helpText,onClose:()=>this.setState({helpText:``})}):null,this.renderSpecific()]})}},He=`async function (obj) {
2
+ "__%%DEBUG_TRIGGER%%__";
3
+ __%%CONDITIONS_VARS%%__
4
+ const _cond = __%%CONDITION%%__;
5
+
6
+ "__%%DEBUG_CONDITIONS%%__";
7
+
8
+ if (_cond) {
9
+ __%%THEN%%__
10
+ } else {
11
+ __%%ELSE%%__
12
+ }
13
+ }`,Ue=`async function (obj) {
14
+ "__%%DEBUG_TRIGGER%%__";
15
+ __%%CONDITIONS_VARS%%__
16
+ const _cond = __%%CONDITION%%__;
17
+
18
+ "__%%DEBUG_CONDITIONS%%__";
19
+
20
+ if (__%%STATE%%__ === false && _cond) {
21
+ __%%STATE%%__ = true;
22
+ __%%THEN%%__
23
+ } else if (__%%STATE%%__ === true && !_cond) {
24
+ __%%STATE%%__ = false;
25
+ __%%ELSE%%__
26
+ }
27
+ }`,We=`async function (data, _callback) {
28
+ "__%%DEBUG_TRIGGER%%__";
29
+ __%%CONDITIONS_VARS%%__
30
+ const _cond = __%%CONDITION%%__;
31
+
32
+ "__%%DEBUG_CONDITIONS%%__";
33
+
34
+ if (_cond) {
35
+ __%%THEN%%__
36
+ } else {
37
+ __%%ELSE%%__
38
+ }
39
+ }`,Ge=`async function (data, _callback) {
40
+ "__%%DEBUG_TRIGGER%%__";
41
+ __%%CONDITIONS_VARS%%__
42
+ const _cond = __%%CONDITION%%__;
43
+
44
+ "__%%DEBUG_CONDITIONS%%__";
45
+
46
+ if (__%%STATE%%__ === false && _cond) {
47
+ __%%STATE%%__ = true;
48
+ __%%THEN%%__
49
+ } else if (__%%STATE%%__ === true && !_cond) {
50
+ __%%STATE%%__ = false;
51
+ __%%ELSE%%__
52
+ }
53
+ }`,Ke=`async function (fileId, fileName, size) {
54
+ "__%%DEBUG_TRIGGER%%__";
55
+ __%%CONDITIONS_VARS%%__
56
+ const _cond = __%%CONDITION%%__;
57
+
58
+ "__%%DEBUG_CONDITIONS%%__";
59
+
60
+ if (_cond) {
61
+ __%%THEN%%__
62
+ } else {
63
+ __%%ELSE%%__
64
+ }
65
+ }`,qe=`async function (fileId, fileName, size) {
66
+ "__%%DEBUG_TRIGGER%%__";
67
+ __%%CONDITIONS_VARS%%__
68
+ const _cond = __%%CONDITION%%__;
69
+
70
+ "__%%DEBUG_CONDITIONS%%__";
71
+
72
+ if (__%%STATE%%__ === false && _cond) {
73
+ __%%STATE%%__ = true;
74
+ __%%THEN%%__
75
+ } else if (__%%STATE%%__ === true && !_cond) {
76
+ __%%STATE%%__ = false;
77
+ __%%ELSE%%__
78
+ }
79
+ }`,Je=`async function (id, obj) {
80
+ "__%%DEBUG_TRIGGER%%__";
81
+ __%%CONDITIONS_VARS%%__
82
+ const _cond = __%%CONDITION%%__;
83
+
84
+ "__%%DEBUG_CONDITIONS%%__";
85
+
86
+ if (_cond) {
87
+ __%%THEN%%__
88
+ } else {
89
+ __%%ELSE%%__
90
+ }
91
+ }`,Ye=`async function (id, obj) {
92
+ "__%%DEBUG_TRIGGER%%__";
93
+ __%%CONDITIONS_VARS%%__
94
+ const _cond = __%%CONDITION%%__;
95
+
96
+ "__%%DEBUG_CONDITIONS%%__";
97
+
98
+ if (__%%STATE%%__ === false && _cond) {
99
+ __%%STATE%%__ = true;
100
+ __%%THEN%%__
101
+ } else if (__%%STATE%%__ === true && !_cond) {
102
+ __%%STATE%%__ = false;
103
+ __%%ELSE%%__
104
+ }
105
+ }`,Xe=`async function (info) {
106
+ "__%%DEBUG_TRIGGER%%__";
107
+ __%%CONDITIONS_VARS%%__
108
+ const _cond = __%%CONDITION%%__;
109
+
110
+ "__%%DEBUG_CONDITIONS%%__";
111
+
112
+ if (_cond) {
113
+ __%%THEN%%__
114
+ } else {
115
+ __%%ELSE%%__
116
+ }
117
+ }`,Ze=`async function (info) {
118
+ "__%%DEBUG_TRIGGER%%__";
119
+ __%%CONDITIONS_VARS%%__
120
+ const _cond = __%%CONDITION%%__;
121
+
122
+ "__%%DEBUG_CONDITIONS%%__";
123
+
124
+ if (__%%STATE%%__ === false && _cond) {
125
+ __%%STATE%%__ = true;
126
+ __%%THEN%%__
127
+ } else if (__%%STATE%%__ === true && !_cond) {
128
+ __%%STATE%%__ = false;
129
+ __%%ELSE%%__
130
+ }
131
+ }`,X=`function (_done) {
132
+ void (async () => {
133
+ "__%%DEBUG_TRIGGER%%__";
134
+ __%%CONDITIONS_VARS%%__
135
+ const _cond = __%%CONDITION%%__;
136
+
137
+ "__%%DEBUG_CONDITIONS%%__";
138
+
139
+ if (_cond) {
140
+ __%%THEN%%__
141
+ } else {
142
+ __%%ELSE%%__
143
+ }
144
+ })().catch(e => console.error(e)).finally(_done);
145
+ }`,Qe=`"__%%DEBUG_TRIGGER%%__";
146
+ __%%CONDITIONS_VARS%%__
147
+ const _cond = __%%CONDITION%%__;
148
+
149
+ "__%%DEBUG_CONDITIONS%%__";
150
+
151
+ if (_cond) {
152
+ __%%THEN%%__
153
+ } else {
154
+ __%%ELSE%%__
155
+ }`,Z={triggers:[],conditions:[[]],justCheck:!1,actions:{then:[],else:[]}};function $e(e,t,n){let r=[],i=e.triggers;i.length||(i=[{id:`TriggerScriptSave`}]);let a=[],o=[],s=e.conditions.find(e=>e.find(e=>e.tagCard===`()`));i.forEach((t,i)=>{let c=Q(t.id,n);if(c){var l;let u={trigger:t,condition:{index:0},justCheck:s?!1:e.justCheck||!e.conditions.length||!e.conditions[0].length,conditionsDebug:[],conditionsVars:[],conditionsStates:[]},d=c.compile(t,u),f=et(e.conditions,u,n),p=$(e.actions.then,u,n),m=$(e.actions.else,u,n);a.push(`cond${i}`),(l=u.prelines)!=null&&l.length&&u.prelines.forEach(e=>o.push(e)),d.includes(` __%%CONDITIONS_VARS%%__`)&&(u.conditionsVars=u.conditionsVars.map((e,t)=>t?` ${e}`:e),u.conditionsDebug=u.conditionsDebug.map((e,t)=>t?` ${e}`:e)),r.push(d.replace(`__%%CONDITIONS_VARS%%__`,u.conditionsVars.join(`
156
+ `)).replace(`"__%%DEBUG_CONDITIONS%%__";`,u.conditionsDebug.join(`
157
+ `)).replace(`__%%CONDITION%%__`,f).replace(`__%%THEN%%__`,p||`// ignore`).replace(`__%%ELSE%%__`,m||`// ignore`).replace(/__%%STATE%%__/g,`cond${i}`))}});let c=r.join(`
158
+
159
+ `);return(!e.justCheck||s)&&(c=`${a.map(e=>`let ${e} = false;`).join(`
160
+ `)}\n\n${c}`),o&&(c=`${o.join(`
161
+ `)}\n\n${c}`),c}function Q(e,t){return t.find(t=>t.getStaticData&&t.getStaticData().id===e)}function $(e,t,n){let r=[];return e==null||e.forEach(e=>{let i=Q(e.id,n);i&&r.push(i.compile(e,t))}),`\t\t${r.join(`
162
+
163
+ `)}`}function et(e,t,n){let r=[],i=0;return e==null||e.forEach(e=>{let a=[];e!=null&&e.length&&(e.forEach(e=>{let r=Q(e.id,n);r&&(t.condition.index=i++,a.push(r.compile(e,t)))}),r.push(`(${a.join(`) &&
164
+ (`)})`))}),r.length?r.length===1?r[0]||`true`:`(${r.join(`) || (`)})`:`true`}function tt(e,t){return $e(e,null,t)}function nt(e){if(!e)return Z;let t=e.split(`
165
+ `);try{let e=(t.pop()||``).replace(/^\/\//,``),n=JSON.parse(e);return n.triggers||(n=Z),n}catch{return Z}}function rt(e,t){let n=``,r=tt(e,t);return n+=r,n+=`\n/*\nconst demo = ${JSON.stringify(e,null,2).replace(/\*\//g,`* /`)};\n*/\n`,`${n}\n//${JSON.stringify(e)}`}export{J as _,Ze as a,R as b,Je as c,Ue as d,X as f,Be as g,Ve as h,Xe as i,Ye as l,rt as m,Ke as n,We as o,nt as p,qe as r,Ge as s,Qe as t,He as u,U as v,F as x,V as y};