import{m as t}from"./Bv7jGDQ6.js";import{d as v,f as a,a as n}from"./8V7BUHOp.js";import{p as A,c as u,s as m,r as p,a as _,t as f}from"./CwuLZfOX.js";import{s as B}from"./CaaTB9LM.js";import{i as y}from"./ChcH33Yj.js";function C(s,i){t.publish(`Devices/${s}/Health`,"",!0),t.publish(`Devices/${s}/ActEthIp`,"",!0),t.publish(`Devices/${s}/EthMac`,"",!0),t.publish(`Devices/${s}/InternalFault`,"",!0),t.publish(`Devices/${s}/DmpA/DigitalOutput`,""),t.publish(`Devices/${s}/DmpA/FeedbackClosed`,""),t.publish(`Devices/${s}/DmpA/FeedbackOpen`,""),t.publish(`Devices/${s}/DmpA/Status`,""),t.publish(`Devices/${s}/DmpA/TestStatus`,""),t.publish(`Devices/${s}/DmpB/DigitalOutput`,""),t.publish(`Devices/${s}/DmpB/FeedbackClosed`,""),t.publish(`Devices/${s}/DmpB/FeedbackOpen`,""),t.publish(`Devices/${s}/DmpB/Status`,""),t.publish(`Devices/${s}/DmpB/TestStatus`,""),t.publish(`Devices/${s}/DigitalInput`,""),t.publish(`Devices/${s}/DigitalOutput`,""),t.publish(`Devices/${s}/SerialNumber`,""),t.publish(`Devices/${s}/Settings/Name`,""),t.publish(`Devices/${s}/Settings/Zone`,""),t.publish(`Devices/${s}/Settings/Location`,""),t.publish(`Devices/${s}/Settings/DiName`,""),t.publish(`Devices/${s}/Settings/DiFunc`,""),t.publish(`Devices/${s}/Settings/DoName`,""),t.publish(`Devices/${s}/Settings/DoFunc`,""),t.publish(`Devices/${s}/Settings/DmpDlyAlarm`),t.publish(`Devices/${s}/Settings/DoDelayAlarm`,""),t.publish(`Devices/${s}/Settings/DmpAEn`,""),t.publish(`Devices/${s}/Settings/DmpAFunc`,""),t.publish(`Devices/${s}/Settings/DmpAName`,""),t.publish(`Devices/${s}/Settings/DmpADesc`,""),t.publish(`Devices/${s}/Settings/DmpALocation`,""),t.publish(`Devices/${s}/Settings/DmpASupply`,""),t.publish(`Devices/${s}/Settings/DmpADlyCloseAl`,""),t.publish(`Devices/${s}/Settings/DmpADlyOpenAl`,""),t.publish(`Devices/${s}/Settings/DmpBEn`,""),t.publish(`Devices/${s}/Settings/DmpBFunc`,""),t.publish(`Devices/${s}/Settings/DmpBName`,""),t.publish(`Devices/${s}/Settings/DmpBDesc`,""),t.publish(`Devices/${s}/Settings/DmpBLocation`,""),t.publish(`Devices/${s}/Settings/DmpBSupply`,""),t.publish(`Devices/${s}/Settings/DmpBDlyCloseAl`,""),t.publish(`Devices/${s}/Settings/DmpBDlyOpenAl`,""),t.publish(`Devices/${s}/Settings/EthDhcpEn`,""),t.publish(`Devices/${s}/Settings/EthIp`,""),t.publish(`Devices/${s}/Settings/EthSm`,""),t.publish(`Devices/${s}/Settings/EthGw`,""),t.publish(`Devices/${s}/Settings/DNS1`,""),t.publish(`Devices/${s}/Settings/DNS2`,""),t.publish(`Devices/${s}/Settings/BacEn`,""),t.publish(`Devices/${s}/Settings/BacDevNam`,""),t.publish(`Devices/${s}/Settings/BacId`,""),t.publish(`Devices/${s}/Settings/BacNwk`,""),t.publish(`Devices/${s}/Settings/BacPrt`,""),t.publish(`Devices/${s}/Settings/ModSlvEn`,""),t.publish(`Devices/${s}/Settings/ModSlvEnWrite`,""),t.publish(`Devices/${s}/Settings/ModSlvTcpPort`,""),t.publish(`Devices/${s}/Settings/MqttServer`,""),t.publish(`Devices/${s}/Settings/MqttUser`,""),t.publish(`Devices/${s}/Settings/MqttPass`,""),t.publish(`Devices/${s}/Settings/MqttWdTime`,""),t.publish(`Devices/${s}/Settings/MqttDisVer`,""),t.publish(`Devices/${s}/Settings/HttpDis`,""),t.publish(`Devices/${s}/Settings/NfcReadAllw`,""),t.publish(`Devices/${s}/Settings/NfcSettAllw`,""),t.publish(`Devices/${s}/Settings/TmMode`,""),t.publish(`Devices/${s}/Settings/TmSecKey`,""),t.publish(`Devices/${s}/Settings/TmSyId`,""),t.publish(`Devices/${s}/Settings/TmUnId`,""),t.publish(`Devices/${s}/MainsOk`,"",!0),t.publish(`Devices/${s}/Type`,"",!0),t.publish(`Devices/${s}/Uptime`,"",!0),t.publish(`Zones/${i}/${s}/Status`,"",!0)}var k=a('<h3 class="text-lg font-bold">Are you sure you want to delete marked devices?</h3>'),E=a('<h3 class="text-lg font-bold"> </h3>'),M=(s,i)=>{var e;return(e=i.onClose)==null?void 0:e.call(i)},N=(s,i)=>{var e;return(e=i.onDelete)==null?void 0:e.call(i)},F=a('<div class="modal modal-open"><div class="modal-box"><!> <p class="py-4">You cannot undo this action!</p> <div class="modal-action"><button class="btn">Abort</button> <button class="btn btn-error">Delete</button></div></div></div>');function L(s,i){A(i,!0);var e=F(),b=u(e),h=u(b);{var c=l=>{var D=k();n(l,D)},g=l=>{var D=E(),$=u(D);p(D),f(()=>B($,`Are you sure you want to delete device ${i.deviceId??""}?`)),n(l,D)};y(h,l=>{i.deviceId===0?l(c):l(g,!1)})}var S=m(h,4),o=u(S);o.__click=[M,i];var r=m(o,2);r.__click=[N,i],p(S),p(b),p(e),n(s,e),_()}v(["click"]);export{L as D,C as a};
