Files
linker/cmonitor/web/js/332.4680dff3.js
2023-11-12 17:21:50 +08:00

1 line
147 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(self["webpackChunkcmonitor_web"]=self["webpackChunkcmonitor_web"]||[]).push([[332],{7041:function(e,t,a){"use strict";a.d(t,{$K:function(){return s},Kd:function(){return n},Lb:function(){return c},Oq:function(){return u},PC:function(){return i},XD:function(){return o},fm:function(){return r}});var l=a(2843);const n=e=>(0,l.gQ)("active/get",e),o=e=>(0,l.gQ)("active/windows",e),s=(e,t,a)=>(0,l.gQ)("active/disallow",{usernames:e,filenames:t,ids:a||[]}),i=e=>(0,l.gQ)("active/AddGroup",e),u=(e,t)=>(0,l.gQ)("active/DeleteGroup",{username:e,id:t}),r=e=>(0,l.gQ)("active/add",e),c=(e,t,a)=>(0,l.gQ)("active/del",{username:e,groupid:t,id:a})},9418:function(e,t,a){"use strict";a.d(t,{G:function(){return n}});var l=a(2843);const n=(e,t)=>(0,l.gQ)("command/exec",{names:e,commands:t})},2331:function(e,t,a){"use strict";a.d(t,{$c:function(){return n},Az:function(){return u},Gn:function(){return p},HP:function(){return c},U4:function(){return d},XM:function(){return i},Zz:function(){return o},hG:function(){return m},sz:function(){return r},xc:function(){return s}});var l=a(2843);const n=()=>(0,l.gQ)("hijack/info"),o=e=>(0,l.gQ)("hijack/addName",e),s=e=>(0,l.gQ)("hijack/addProcessGroup",e),i=e=>(0,l.gQ)("hijack/deleteProcessGroup",e),u=e=>(0,l.gQ)("hijack/addProcess",e),r=e=>(0,l.gQ)("hijack/deleteProcess",e),c=e=>(0,l.gQ)("hijack/AddRule",e),d=e=>(0,l.gQ)("hijack/deleteRule",e),m=e=>(0,l.gQ)("hijack/UpdateDevices",e),p=e=>(0,l.gQ)("hijack/setRules",e)},4316:function(e,t,a){"use strict";a.d(t,{P:function(){return o},d:function(){return n}});var l=a(2843);const n=(e,t,a)=>(0,l.gQ)("Keyboard/Keyboard",{names:e,input:{key:t,type:a}}),o=e=>(0,l.gQ)("Keyboard/CtrlAltDelete",e)},3327:function(e,t,a){"use strict";a.d(t,{H:function(){return o},m:function(){return n}});var l=a(2843);const n=(e,t)=>(0,l.gQ)("llock/LockScreen",{names:e,value:t}),o=e=>(0,l.gQ)("llock/LockSystem",e)},2843:function(e,t,a){"use strict";a.d(t,{CU:function(){return k},Ke:function(){return y},c9:function(){return f},gQ:function(){return g},tw:function(){return r}});a(7658);var l=a(7178);let n=0,o=null,s="",i=1;const u={},r={connected:!1},c=()=>{const e=Date.now();for(let t in u){const a=u[t];e-a.time>a.timeout&&(a.reject("超时~"),delete u[t])}setTimeout(c,1e3)};c();const d={subs:{},add:function(e,t){"function"==typeof t&&(this.subs[e]||(this.subs[e]=[]),this.subs[e].push(t))},remove(e,t){let a=this.subs[e]||[];for(let l=a.length-1;l>=0;l--)a[l]==t&&a.splice(l,1)},push(e,t){let a=this.subs[e]||[];for(let l=a.length-1;l>=0;l--)a[l](t)}},m=()=>{r.connected=!0,d.push(w,r.connected)},p=e=>{r.connected=!1,d.push(w,r.connected),f()},h=e=>{if("string"!=typeof e.data)return void e.data.arrayBuffer().then((t=>{const a=new DataView(t).getInt8(),l=new FileReader;l.readAsText(e.data.slice(4,4+a),"utf8"),l.onload=()=>{let n=JSON.parse(l.result);n.Content={Name:n.Content,Img:e.data.slice(4+a,e.data.length),ArrayBuffer:t},v(n)}}));let t=JSON.parse(e.data);v(t)},v=e=>{let t=u[e.RequestId];t?(0==e.Code?t.resolve(e.Content):1==e.Code?t.reject(e.Content):255==e.Code?(t.reject(e.Content),t.errHandle||l.z8.error(`${t.path}:${e.Content}`)):d.push(e.Path,e.Content),delete u[e.RequestId]):d.push(e.Path,e.Content)},f=(e=s)=>{null!=o&&o.close(),s=e,o=new WebSocket(s),o.iddd=++i,o.onopen=m,o.onclose=p,o.onmessage=h},g=(e,t={},a=!1,l=15e3)=>new Promise(((s,i)=>{let c=++n;try{u[c]={resolve:s,reject:i,errHandle:a,path:e,time:Date.now(),timeout:l};let n=JSON.stringify({Path:e,RequestId:c,Content:"string"==typeof t?t:JSON.stringify(t)});r.connected&&1==o.readyState?o.send(n):i("网络错误~")}catch(d){i("网络错误~"),delete u[c]}})),w=Symbol(),k=e=>{d.add(w,e)},y=(e,t)=>{d.add(e,t)}},1468:function(e,t,a){"use strict";a.d(t,{FU:function(){return o},gp:function(){return n}});var l=a(2843);const n=()=>(0,l.gQ)("signin/list"),o=e=>(0,l.gQ)("signin/del",e)},7800:function(e,t,a){"use strict";a.d(t,{z:function(){return n}});var l=a(2843);const n=(e,t,a)=>(0,l.gQ)("system/RegistryOptions",{names:e,registry:{name:t,value:a}})},8048:function(e,t,a){"use strict";a.d(t,{H:function(){return o},j:function(){return n}});var l=a(2843);const n=(e,t)=>(0,l.gQ)("volume/update",{names:e,value:t}),o=(e,t)=>(0,l.gQ)("volume/mute",{names:e,value:t})},9528:function(e,t,a){"use strict";a.d(t,{i:function(){return n}});var l=a(2843);const n=(e,t,a="")=>(0,l.gQ)("wallpaper/update",{names:e,value:t,url:a})},3325:function(e,t,a){"use strict";a.r(t),t["default"]={field(){return{ActiveWindow:{Title:"",FileName:"",Desc:"",Pid:0,DisallowCount:0,WindowCount:0}}},state:{activeWindow:[{showTimes:!1,showWindows:!1,showChoose:!1,devices:[],showAddWindow:!1,showActiveWindows:!1}]},update(e,t){t.ActiveWindow&&(e.ActiveWindow.Title=t.ActiveWindow.Title,e.ActiveWindow.FileName=t.ActiveWindow.FileName,e.ActiveWindow.Desc=t.ActiveWindow.Desc,e.ActiveWindow.Pid=t.ActiveWindow.Pid,e.ActiveWindow.DisallowCount=t.ActiveWindow.DisallowCount,e.ActiveWindow.WindowCount=t.ActiveWindow.WindowCount||0)}}},1459:function(e,t,a){"use strict";a.r(t),t["default"]={field(){return{Command:{}}},state:{command:{showCommand:!1,devices:[]}},init(){},update(e,t){}}},181:function(e,t,a){"use strict";a.r(t),t["default"]={state:{device:{showDevices:!1}}}},1868:function(e,t,a){"use strict";a.r(t);var l=a(2683);t["default"]={field(){return{Hijack:{Upload:0,UploadText:"",Download:0,DownloadText:"",Count:0}}},state:{hijack:{showRules:!1,devices:[],showRuleSetting:!1,showProcessSetting:!1}},timer:0,speedCaches:{},sizeFormat(e){let t=["B","KB","MB","GB","TB"],a=t[0];while((a=t.shift())&&e.toFixed(2)>=1024)e/=1024;return"B"==a?[e,a]:[parseInt(e),a]},globalData:null,init(){this.globalData=(0,l.d)();const e=this.speedCaches,t=this.sizeFormat;this.timer=setInterval((()=>{this.globalData.value.devices.forEach((a=>{let l=e[a.MachineName]||{up:0,down:0};isNaN(l.up)&&(l.up=0),isNaN(l.down)&&(l.down=0),a.Hijack.Upload=a.Hijack.Upload||0,a.Hijack.Download=a.Hijack.Download||0;let n=a.Hijack.Upload-l.up;l.up=a.Hijack.Upload;let o=t(n);a.Hijack.UploadText=`${o[0]}${o[1]}/s`,n=a.Hijack.Download-l.down,l.down=a.Hijack.Download,o=t(n),a.Hijack.DownloadText=`${o[0]}${o[1]}/s`,e[a.MachineName]=l}))}),1e3)},update(e,t){t.Hijack&&(t.Hijack.length>0?(e.Hijack.Upload=t.Hijack[0],e.Hijack.Download=t.Hijack[1],e.Hijack.Count=t.Hijack[2]):(e.Hijack.Upload=t.Hijack.Upload,e.Hijack.Download=t.Hijack.Download,e.Hijack.Count=t.Hijack.Count))}}},7217:function(e,t,a){"use strict";a.r(t),t["default"]={field(){return{Keyboard:{}}},state:{keyboard:{showKeyBoard:!1,devices:[]}},init(){},update(e,t){}}},1958:function(e,t,a){"use strict";a.r(t);var l=a(2683);t["default"]={field(){return{Light:{Value:0}}},state:{light:{showLight:!1,showLightSingle:!1,devices:[]}},globalData:null,init(){this.globalData=(0,l.d)()},update(e,t){t.Light&&(e.Light.Value=Math.floor(+t.Light.Value),isNaN(e.Light.Value)&&(e.Light.Value=0))}}},6458:function(e,t,a){"use strict";a.r(t),t["default"]={field(){return{LLock:{LockScreen:!1}}},update(e,t){t.LLock&&(e.LLock.LockScreen=t.LLock.LockScreen)}}},2852:function(e,t,a){"use strict";a.r(t),t["default"]={state:{message:{showMessage:!1,devices:[]}}}},619:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return i}});var l=a(2843);const n=(e,t)=>(0,l.gQ)("report/update",{names:e,reportType:t},!1,1e3),o=e=>(0,l.gQ)("report/ping",e,!1,1e3);var s=a(2683),i={field(){return{Report:{fps:0,fpsTimes:0,ping:0,updated:!1}}},globalData:null,init(){this.globalData=(0,s.d)(),this.reportInterval(),this.reportPingInterval(),(0,l.Ke)("/notify/report/pong",(e=>{let t=this.globalData.value.devices.filter((t=>t.MachineName==e.Name))[0];t&&(t.Connected=!0,t.Report.ping=e.Time)})),this.fpsInterval()},uninit(){clearTimeout(this.reportTimer),clearTimeout(this.reportPingTimer)},reportTimer:0,reported:!0,reportInterval(){if(this.reported){this.reported=!1;const e=this.globalData.value.reportNames,t=this.globalData.value.devices;let a=2;t.filter((t=>e.indexOf(t.MachineName)>=0)).forEach((e=>{a&&=Number(e.Report.updated)+1,e.Report.updated=!0})),n(e,a).then((()=>{this.reported=!0,this.reportTimer=setTimeout((()=>{this.reportInterval()}),300)})).catch((()=>{this.reported=!0,this.reportTimer=setTimeout((()=>{this.reportInterval()}),300)}))}else this.reportTimer=setTimeout((()=>{this.reportInterval()}),300)},reportPingTimer:0,reportedPing:!0,reportPingInterval(){if(this.reportedPing){this.reportedPing=!1;let e=Date.now();o(this.globalData.value.reportNames).then((()=>{this.reportedPing=!0;let t=1e3-(Date.now()-e);t<10&&(t=10),this.reportPingTimer=setTimeout((()=>{this.reportPingInterval()}),t)})).catch((()=>{this.reportedPing=!0,this.reportPingTimer=setTimeout((()=>{this.reportPingInterval()}),1e3)}))}else this.reportPingTimer=setTimeout((()=>{this.reportPingInterval()}),1e3)},fpsInterval(){this.globalData.value.devices.forEach((e=>{e.Report.fps=e.Report.fpsTimes,e.Report.fpsTimes=0})),setTimeout((()=>{this.fpsInterval()}),1e3)},update(e,t){e.Report.fpsTimes++}}},5908:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return u}});a(7658);var l=a(2683),n=a(2843);const o=(e,t)=>(0,n.gQ)("screen/full",{names:e,type:t},!1,1e3),s=e=>(0,n.gQ)("screen/region",e,!1,1e3),i=(e,t)=>(0,n.gQ)("screen/clip",{name:e,clip:t},!1,1e3);var u={field(){return{Screen:{displays:[],regionImgs:[],fullImg:null,fullUpdated:!1,width:0,height:0,draw(e,t){this.drawFps(e,t),this.drawRectangle(e,t),this.drawTouch(e,t)},lastInput:0,captureTime:0,fps:{value:0,temp:0},drawFps(e,t){t.lineWidth=5,t.font="bold 60px Arial",t.fillStyle="rgba(0,0,0,0.5)",t.fillText(`FPS : ${this.fps.value}${this.captureTime}ms、LT : ${this.lastInput}ms`,50,70),t.lineWidth=2,t.strokeStyle="#fff",t.strokeText(`FPS : ${this.fps.value}${this.captureTime}ms 、LT : ${this.lastInput}ms`,50,70)},rectangles:[],drawRectangle(e,t){const a=this.rectangles||[];if(a.length>0&&1==this.touch.scale){t.lineWidth=5,t.strokeStyle="rgba(255,0,0,1)";for(let e=0;e<a.length;e++){const l=a[e];t.rect(l.X,l.Y,l.Width,l.Height),t.stroke(),t.font="bold 100px Arial",t.fillStyle="rgba(255,0,0,1)",t.fillText(e,l.X+l.Width/2,l.Y+l.Height/2)}}},touch:{lastTouch:{x1:0,y1:0,x2:0,y2:0,dist:0},clip:{x:0,y:0,w:0,h:0},origin:{x:0,y:0,x1:0,y1:0},updated:!1,scale:1,type:0},drawTouch(e,t){2==this.touch.type&&(t.fillStyle="yellow",t.strokeStyle="yellow",t.arc(this.touch.origin.x,this.touch.origin.y,50,0,2*Math.PI),t.fill(),t.lineWidth=5,t.strokeStyle="yellow",t.moveTo(this.touch.lastTouch.x1,this.touch.lastTouch.y1),t.lineTo(this.touch.lastTouch.x2,this.touch.lastTouch.y2),t.stroke())},touchend(e){this.touch.type=0},reset(){this.touch.origin.x=0,this.touch.origin.y=0,this.touch.scale=1,this.touch.clip.x=0,this.touch.clip.y=0,this.touch.clip.w=0,this.touch.clip.h=0,this.touch.type=0,this.touch.updated=!0,this.fullUpdated=!1},getScalePosition(e){const t=e.srcElement.getBoundingClientRect(),a=t.left,l=t.top;return{x1:(e.touches[0].clientX-a)/e.srcElement.offsetWidth*e.srcElement.width,x2:(e.touches[1].clientX-a)/e.srcElement.offsetWidth*e.srcElement.width,y1:(e.touches[0].clientY-l)/e.srcElement.offsetHeight*e.srcElement.height,y2:(e.touches[1].clientY-l)/e.srcElement.offsetHeight*e.srcElement.height}},getPosition(e){const t=e.srcElement.getBoundingClientRect(),a=t.left,l=t.top;return{x1:(e.touches[0].clientX-a)/e.srcElement.offsetWidth*e.srcElement.width,y1:(e.touches[0].clientY-l)/e.srcElement.offsetHeight*e.srcElement.height}},getDist(e,t,a,l){const n=Math.abs(e-a),o=Math.abs(t-l);return Math.sqrt(n*n+o*o)},transPosition(){this.touch.origin.x1=this.touch.clip.x+parseInt(this.touch.origin.x/this.width*(this.touch.clip.w||this.width)),this.touch.origin.y1=this.touch.clip.y+parseInt(this.touch.origin.y/this.height*(this.touch.clip.h||this.height))},touchstart(e){if(2==e.touches.length){this.touch.type=2;const{x1:t,y1:a,x2:l,y2:n}=this.getScalePosition(e),o=this.getDist(t,a,l,n);this.touch.origin.x=parseInt((t+l)/2),this.touch.origin.y=parseInt((a+n)/2),this.transPosition(),this.touch.lastTouch.x1=t,this.touch.lastTouch.y1=a,this.touch.lastTouch.x2=l,this.touch.lastTouch.y2=n,this.touch.lastTouch.dist=o}else if(1==e.touches.length){if(1==this.touch.scale)return;this.touch.type=1;const{x1:t,y1:a}=this.getPosition(e);this.touch.lastTouch.x1=t,this.touch.lastTouch.y1=a}},touchmove(e){if(2==e.touches.length){if(2!=this.touch.type)return;const{x1:t,y1:a,x2:l,y2:n}=this.getScalePosition(e),o=this.getDist(t,a,l,n);this.touch.scale+=(o-this.touch.lastTouch.dist)/500,this.touch.scale=Math.max(this.touch.scale,1),this.touch.lastTouch.x1=t,this.touch.lastTouch.y1=a,this.touch.lastTouch.x2=l,this.touch.lastTouch.y2=n,this.touch.lastTouch.dist=o,this.calcClip(),this.touch.updated=!0}else if(1==e.touches.length){if(1!=this.touch.type||1==this.touch.scale)return;const{x1:t,y1:a}=this.getPosition(e);this.touch.clip.x-=(t-this.touch.lastTouch.x1)/this.touch.scale,this.touch.clip.y-=(a-this.touch.lastTouch.y1)/this.touch.scale,this.touch.lastTouch.x1=t,this.touch.lastTouch.y1=a,this.touch.updated=!0}},calcClip(){const e=this.width,t=this.height,a=this.touch.scale,l=this.touch.origin;if(0==e||0==t)return;const n=(e*a-e)/a,o=(t*a-t)/a,s=n*(l.x1/e),i=o*(l.y1/t);this.touch.clip.x=s,this.touch.clip.y=i,this.touch.clip.w=e-n,this.touch.clip.h=t-o}}}},globalData:null,init(){this.globalData=(0,l.d)(),this.subMessage(),this.reportInterval(),this.fpsInterval(),this.clipInterver(),this.draw()},uninit(){clearTimeout(this.reportTimer),clearTimeout(this.clipTimer)},imgOnload(e,t){return new Promise(((a,l)=>{const n=new Image;n.param=t,n.src=e,n.onload=function(){a(n)}}))},handleScreenFull(e,t){const a=e.Name;if(-1==this.globalData.value.reportNames.indexOf(a))return;let l=this.globalData.value.devices.filter((e=>e.MachineName==a))[0];l&&(l.Screen.fps.temp++,"string"==typeof e.Img?this.imgOnload(`data:image/jpg;base64,${e.Img}`).then((e=>{l.Screen.fullImg=e})):createImageBitmap(e.Img).then((e=>{l.Screen.fullImg=e})))},handleScreenRegion(e,t){const a=e.Name;if(-1==this.globalData.value.reportNames.indexOf(a))return;let l=this.globalData.value.devices.filter((e=>e.MachineName==a))[0];l&&(l.Screen.fps.temp++,e.Img.arrayBuffer().then((t=>{const a=new DataView(t);let n=0;const o=[];while(n<t.byteLength){const t=a.getUint32(n,!0);n+=4;const l=a.getUint32(n,!0);n+=4;const s=a.getUint32(n,!0);n+=4;const i=a.getUint32(n,!0);n+=4;const u=a.getUint32(n,!0);n+=4,o.push(createImageBitmap(e.Img.slice(n,n+t),{x:l,y:i,w:s,h:u})),n+=t}Promise.all(o).then((e=>{l.Screen.regionImgs=e}))})))},handleScreenRectangles(e,t){const a=e.Name;if(-1==this.globalData.value.reportNames.indexOf(a))return;let l=this.globalData.value.devices.filter((e=>e.MachineName==a))[0];l&&(l.Screen.rectangles=e.Rectangles||[])},subMessage(){(0,n.Ke)("/notify/report/screen/full",((e,t)=>this.handleScreenFull(e,t))),(0,n.Ke)("/notify/report/screen/region",((e,t)=>this.handleScreenRegion(e,t))),(0,n.Ke)("/notify/report/screen/rectangles",((e,t)=>this.handleScreenRectangles(e,t)))},draw(){const e=this.globalData.value.devices.filter((e=>this.globalData.value.reportNames.indexOf(e.MachineName)>=0));for(let a=0;a<e.length;a++){const l=e[a];if(!l.canvas&&(l.canvas=document.getElementById(`canvas-${l.MachineName}`),l.canvas))try{l.ctx=l.canvas.getContext("2d")}catch(t){l.canvas=null}if(l.canvas&&(l.infoCanvas||(l.infoCanvas=document.createElement("canvas"),l.infoCanvas.width=l.canvas.width,l.infoCanvas.height=l.canvas.height,l.infoCtx=l.infoCanvas.getContext("2d")),l.ctx)){l.infoCtx.clearRect(0,0,l.infoCanvas.width,l.infoCanvas.height);const e=l.Screen.fullImg;e&&l.ctx.drawImage(e,0,0,e.width,e.height,0,0,l.canvas.width,l.canvas.height);const a=l.Screen.regionImgs;for(let t=0;t<a.length;t++){const{x:e,y:n,w:o,h:s}=a[t].param;l.infoCtx.drawImage(a[t],0,0,a[t].width,a[t].height,e,n,o,s)}for(let n in l)try{l[n]&&l[n].draw&&l[n].draw(l.infoCanvas,l.infoCtx)}catch(t){console.log(t)}l.ctx.drawImage(l.infoCanvas,0,0,l.infoCanvas.width,l.infoCanvas.height,0,0,l.canvas.width,l.canvas.height)}}requestAnimationFrame((()=>{this.draw()}))},fpsInterval(){this.globalData.value.devices.forEach((e=>{e.Screen.fps.value=e.Screen.fps.temp,e.Screen.fps.temp=0})),setTimeout((()=>{this.fpsInterval()}),1e3)},clipTimer:0,clipInterver(){this.globalData.value.devices.forEach((e=>{e.Screen.touch.updated&&i(e.MachineName,{x:parseInt(e.Screen.touch.clip.x),y:parseInt(e.Screen.touch.clip.y),w:parseInt(e.Screen.touch.clip.w),h:parseInt(e.Screen.touch.clip.h)}).then((()=>{e.Screen.touch.updated=!1})).catch((()=>{e.Screen.touch.updated=!1}))})),this.clipTimer=setTimeout((()=>{this.clipInterver()}),16)},reported:!0,reportTimer:0,updateFull(){const e=this.globalData.value.reportNames,t=this.globalData.value.devices;let a=2;return t.filter((t=>e.indexOf(t.MachineName)>=0)).forEach((e=>{a&&=Number(e.Screen.fullUpdated)+1,e.Screen.fullUpdated=!0})),o(e,a)},updateRegion(){const e=this.globalData.value.reportNames;return s(e)},reportInterval(e=0){if(this.reported){this.reported=!1;const t=this.updateFull();t.then((()=>{this.reported=!0,this.reportTimer=setTimeout((()=>{this.reportInterval(++e)}),300)})).catch((t=>{console.log(t),this.reported=!0,this.reportTimer=setTimeout((()=>{this.reportInterval(++e)}),300)}))}else this.reportTimer=setTimeout((()=>{this.reportInterval(++e)}),300)},update(e,t){t.Screen&&(e.Screen.lastInput=t.Screen.LT||0,e.Screen.captureTime=t.Screen.CT||0,e.Screen.width=t.Screen.W||0,e.Screen.height=t.Screen.H||0)}}},4886:function(e,t,a){"use strict";a.r(t),t["default"]={field(){return{}},state:{setting:{showSetting:!1}}}},6194:function(e,t,a){"use strict";a.r(t),t["default"]={field(){return{Share:{KeyBoard:{Index:0,Value:""},UserName:{Index:1,Value:""},Lock:{Index:2,Value:{type:"list",val:"none",star1:0,star2:0,star3:0,notify:!1},TypeText:""},draw(e,t){if(this.KeyBoard.Value){let a=(e.height-100)/2,l=(e.width-50*this.KeyBoard.Value.length)/2;t.font="bold 100px Arial",t.fillStyle="rgba(0,0,0,0.5)",t.fillText(`${this.KeyBoard.Value}`,l,a),t.lineWidth=5,t.strokeStyle="rgba(255,255,255,0.7)",t.strokeText(`${this.KeyBoard.Value}`,l,a)}if("star"==this.Lock.Value.val||"ask"==this.Lock.Value.val){let a="";a=a.padEnd(5,"★");let l=120,n=(e.width-500)/2;t.beginPath(),t.lineWidth=5,t.font="bold 100px Arial",t.strokeStyle="#fff",t.strokeText(a,n,l),t.lineWidth=7,t.strokeStyle="rgba(0,0,0,0.5)",t.strokeText(a,n,l),a="";const o=this.Lock.Value,s=parseInt((o.star1+o.star2+o.star3)/3);a=a.padEnd(s,"☆"),t.lineWidth=2,t.strokeStyle="yellow",t.strokeText(a,n,l),t.closePath()}}}}},init(){},lockTypes:{code:"代码",lock:"锁屏",cmonitor:"班长",flag:"学习目标",class:"课程","remark-block":"图形化点评","remark-cpp":"C++点评"},update(e,t){if(t.Share){if(console.log(t.Share),t.Share.UserName&&(e.Share.UserName.Index=t.Share.UserName.Index,e.Share.UserName.Value=t.Share.UserName.Value),t.Share.Lock&&(e.Share.Lock.Index=t.Share.Lock.Index,t.Share.Lock.Value)){const a=JSON.parse(t.Share.Lock.Value);e.Share.Lock.Value.type=a.type,e.Share.Lock.Value.val=a.val,e.Share.Lock.Value.star1=a.star1||0,e.Share.Lock.Value.star2=a.star2||0,e.Share.Lock.Value.star3=a.star3||0,e.Share.Lock.TypeText=this.lockTypes[a.type]}t.Share.KeyBoard&&(e.Share.KeyBoard.Index=t.Share.KeyBoard.Index,e.Share.KeyBoard.Value=t.Share.KeyBoard.Value)}}}},5817:function(e,t,a){"use strict";a.r(t),t["default"]={field(){return{System:{RegistryValues:[],RegistryKeys:{},RegistrysCount:0,Cpu:0,Memory:0,Disk:0,Drives:[],getColor(e){let t="#0bd10b";return e>=.8?t="#fc0202":e>=.5&&(t="#ff9d1c"),t},draw(e,t){const a=10,l=[{text:"cpu",value:this.Cpu/100},{text:"memory",value:this.Memory/100}].concat(this.Drives.map((e=>({text:e.Name.toLowerCase(),value:(1-e.Free/e.Total).toFixed(2)}))));for(let n=0;n<l.length;n++){const o=1*e.width/l.length,s=n*o,i=l[n];t.beginPath(),t.fillStyle="rgba(255,255,255,0.2)",t.fillRect(s,e.height-10,o-a,10),t.fillStyle=this.getColor(i.value),t.fillRect(s,e.height-10,o*i.value-a,10),t.closePath(),t.lineWidth=5,t.font="bold 60px Arial",t.fillStyle="rgba(0,0,0,0.5)",t.fillText(`${i.text} ${(100*i.value).toFixed(0)}`,s,e.height-20),t.lineWidth=2,t.strokeStyle="#fff",t.strokeText(`${i.text} ${(100*i.value).toFixed(0)}`,s,e.height-20)}this.Cpu<0&&(this.Cpu=0),this.Memory<0&&(this.Memory=0),this.Disk<0&&(this.Disk=0)}}}},state:{system:{showSystemOptions:!1,devices:[]}},init(){},update(e,t){t.System&&(e.System.Cpu=t.System.Cpu,e.System.Memory=t.System.Memory,e.System.Disk=t.System.Disk,t.System.Drives&&(e.System.Drives=t.System.Drives||[]),t.System.RegValues&&(e.System.RegistryValues=t.System.RegValues.split("").map((e=>+e)),e.System.RegistrysCount=e.System.RegistryValues.filter((e=>"1"==e)).length),t.System.RegKeys&&(e.System.RegistryKeys=t.System.RegKeys))}}},5507:function(e,t,a){"use strict";a.r(t),t["default"]={field(){return{Volume:{Value:0,Mute:!1,MasterPeak:0,draw(e,t){this.MasterPeak-=1,this.MasterPeak<0?this.MasterPeak=0:(t.beginPath(),t.fillStyle="#0f0",t.fillRect(0,0,this.MasterPeak/100*e.width,10),t.closePath())}}}},state:{volume:{showVolume:!1,showVolumeSingle:!1,devices:[]}},init(){},update(e,t){t.Volume&&(e.Volume.Value=t.Volume.Value,e.Volume.Mute=t.Volume.Mute,t.Volume.MasterPeak>e.Volume.MasterPeak&&(e.Volume.MasterPeak=t.Volume.MasterPeak))}}},7242:function(e,t,a){"use strict";a.r(t),t["default"]={field(){return{Wallpaper:{Value:!1}}},update(e,t){t.Wallpaper&&(e.Wallpaper.Value=t.Wallpaper.Value)}}},2115:function(e,t,a){"use strict";a.d(t,{$:function(){return i},R:function(){return s}});var l=a(4870),n=a(3396);const o=Symbol(),s=e=>{const t=(0,l.iH)(e);return(0,n.JJ)(o,t),t},i=()=>(0,n.f3)(o)},2683:function(e,t,a){"use strict";a.d(t,{d:function(){return i},e:function(){return s}});var l=a(4870),n=a(3396);const o=Symbol(),s=()=>{const e=(0,l.iH)({username:"",publicUserName:"snltty",usernames:{},connected:!1,updateFlag:0,allDevices:[],devices:(0,n.Fl)((()=>{const t=e.value.usernames[e.value.username];return t?e.value.allDevices.filter((e=>t.Devices.indexOf(e.MachineName)>=0)):[]})),latestReportNames:[],reportNames:[]});return(0,n.JJ)(o,e),e},i=()=>(0,n.f3)(o)},8539:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return we}});var l=a(3396);const n={class:"main-wrap flex flex-column flex-nowrap"},o={class:"head"},s={key:0,class:"body flex-1 scrollbar"};function i(e,t,a,i,u,r){const c=(0,l.up)("Head"),d=(0,l.up)("Device");return(0,l.wg)(),(0,l.iD)("div",n,[(0,l._)("div",o,[(0,l.Wm)(c)]),i.showList?((0,l.wg)(),(0,l.iD)("div",s,[(0,l.Wm)(d)])):(0,l.kq)("",!0)])}const u={class:"username-wrap t-c"},r={class:"port-wrap t-c"};function c(e,t,a,n,o,s){const i=(0,l.up)("el-option"),c=(0,l.up)("el-select"),d=(0,l.up)("el-button"),m=(0,l.up)("el-dialog"),p=(0,l.up)("el-input");return(0,l.wg)(),(0,l.iD)("div",null,[(0,l.Wm)(m,{title:"选择角色","destroy-on-close":"",modelValue:n.showSelectUsername,"onUpdate:modelValue":t[1]||(t[1]=e=>n.showSelectUsername=e),center:"","show-close":!1,"close-on-click-modal":!1,"align-center":"",width:"70%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(d,{type:"success",onClick:n.handleUsername,plain:""},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",u,[(0,l.Wm)(c,{filterable:"","allow-create":"","default-first-option":"",modelValue:n.state.username,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.username=e),onChange:n.handleChange,placeholder:"选择角色",size:"large"},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.state.usernames,(e=>((0,l.wg)(),(0,l.j4)(i,{key:e,label:e,value:e},null,8,["label","value"])))),128))])),_:1},8,["modelValue","onChange"])])])),_:1},8,["modelValue"]),(0,l.Wm)(m,{title:"管理端口","destroy-on-close":"",modelValue:n.showPort,"onUpdate:modelValue":t[3]||(t[3]=e=>n.showPort=e),center:"","show-close":!1,"close-on-click-modal":!1,"align-center":"",width:"70%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(d,{type:"success",onClick:n.handleConnect,plain:""},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",r,[(0,l.Wm)(p,{modelValue:n.state.port,"onUpdate:modelValue":t[2]||(t[2]=e=>n.state.port=e),style:{width:"auto"}},null,8,["modelValue"])])])),_:1},8,["modelValue"])])}var d=a(4870),m=a(2843),p=a(2331),h=a(2483),v=a(2683),f={setup(){const e=(0,v.d)(),t=(0,h.yj)(),a=+(t.query.api||localStorage.getItem("port")||1801);localStorage.setItem("port",a),e.value.username=e.value.username||localStorage.getItem("username")||"";const n=(0,d.qj)({port:a,usernames:[],username:e.value.username,showPort:!1}),o=(0,l.Fl)((()=>!e.value.username&&e.value.connected)),s=(0,l.Fl)((()=>0==e.value.connected&&n.showPort));(0,l.YP)((()=>e.value.updateFlag),(()=>{i()}));const i=()=>{(0,p.$c)().then((t=>{e.value.usernames=t,n.usernames=Object.keys(t)})).catch((()=>{}))};(0,l.bv)((()=>{r(),u(),i(),setTimeout((()=>{n.showPort=!0}),100),(0,m.CU)((e=>{e&&i()}))}));const u=()=>{(0,m.c9)(`ws://${window.location.hostname}:${n.port}`),localStorage.setItem("port",n.port)},r=()=>{e.value.username=n.username||"",localStorage.setItem("username",e.value.username),document.title=`班长-${e.value.username}`},c=t=>{(0,p.Zz)(t).then((()=>{e.value.updateFlag=Date.now()})).catch((()=>{e.value.updateFlag=Date.now()}))};return{state:n,showSelectUsername:o,showPort:s,handleUsername:r,handleConnect:u,handleChange:c}}},g=a(89);const w=(0,g.Z)(f,[["render",c],["__scopeId","data-v-ec4b4422"]]);var k=w;const y={class:"device-list-wrap absolute flex flex-column",id:"device-list-wrap"},_={class:"items flex-1 relative scrollbar-1"},C={class:"foot"},x={class:"foot-options"},W={class:"foot-menu"};function D(e,t,a,n,o,s){const i=(0,l.up)("Items"),u=(0,l.up)("FootOptions"),r=(0,l.up)("FootMenu");return(0,l.wg)(),(0,l.iD)("div",y,[(0,l._)("div",_,[(0,l.Wm)(i)]),(0,l._)("div",C,[(0,l._)("div",x,[(0,l.Wm)(u)]),(0,l._)("div",W,[(0,l.Wm)(r)])]),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.indexModules,((e,t)=>((0,l.wg)(),(0,l.j4)((0,l.LL)(e),{key:t})))),128))])}const b={class:"foot-wrap"},V={class:"flex"};function S(e,t,a,n,o,s){return(0,l.wg)(),(0,l.iD)("div",b,[(0,l._)("ul",V,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.footMenuModules,((e,t)=>((0,l.wg)(),(0,l.iD)("li",{key:t},[((0,l.wg)(),(0,l.j4)((0,l.LL)(e)))])))),128))])])}var I={components:{},setup(){const e=a(8575),t=e.keys().map((t=>e(t).default)).sort(((e,t)=>e.sort-t.sort));return{footMenuModules:t}}};const T=(0,g.Z)(I,[["render",S],["__scopeId","data-v-27826286"]]);var U=T,N=a(7139);const j=e=>((0,l.dD)("data-v-49866454"),e=e(),(0,l.Cn)(),e),z={class:"foot-options-wrap flex"},M=j((()=>(0,l._)("span",{class:"flex-1"},null,-1))),P={class:"options-btn"},L=j((()=>(0,l._)("span",{class:"flex-1"},null,-1)));function R(e,t,a,n,o,s){const i=(0,l.up)("Refresh"),u=(0,l.up)("el-icon"),r=(0,l.up)("el-button");return(0,l.wg)(),(0,l.iD)("div",z,[(0,l.Wm)(r,{size:"default",plain:"",dark:"",onClick:n.handleRefresh},{default:(0,l.w5)((()=>[(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i)])),_:1})])),_:1},8,["onClick"]),M,(0,l._)("div",P,[(0,l._)("p",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.footOptionTopModules,((e,t)=>((0,l.wg)(),(0,l.j4)((0,l.LL)(e),{key:t})))),128))]),(0,l._)("p",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.footOptionBottomModules,((e,t)=>((0,l.wg)(),(0,l.j4)((0,l.LL)(e),{key:t})))),128))])]),L,(0,l.Wm)(r,{size:"default",plain:"",dark:"",onClick:n.handleUpdate},{default:(0,l.w5)((()=>[(0,l.Uk)((0,N.zw)(n.username),1)])),_:1},8,["onClick"])])}var O=a(6e3),E={setup(){const e=a(6736),t=e.keys().map((t=>e(t).default)),n=a(3136),o=n.keys().map((e=>n(e).default)),s=(0,v.d)(),i=(0,l.Fl)((()=>s.value.username)),u=()=>{window.location.reload()},r=()=>{O.T.confirm("是否确定重选角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{s.value.username="",localStorage.setItem("username","")})).catch((()=>{}))};return{footOptionTopModules:t,footOptionBottomModules:o,username:i,handleRefresh:u,handleUpdate:r}}};const F=(0,g.Z)(E,[["render",R],["__scopeId","data-v-49866454"]]);var B=F;function $(e,t,a,n,o,s){const i=(0,l.up)("Item"),u=(0,l.up)("el-empty");return n.devices.length>0?((0,l.wg)(!0),(0,l.iD)(l.HY,{key:0},(0,l.Ko)(n.devices,(e=>((0,l.wg)(),(0,l.j4)(i,{key:e.MachineName,data:e},null,8,["data"])))),128)):((0,l.wg)(),(0,l.j4)(u,{key:1,description:"或许你应该先去选择管理设备"}))}const H=e=>((0,l.dD)("data-v-09c8d4b8"),e=e(),(0,l.Cn)(),e),A=H((()=>(0,l._)("div",{class:"bg"},null,-1))),Z={class:"value flex"},K={class:"machine-mame"},q=H((()=>(0,l._)("span",{class:"flex-1"},null,-1))),Y=H((()=>(0,l._)("span",{class:"flex-1"},null,-1))),Q={class:"img"},G={class:"inner"},J=["width","height","id"],X={class:"btns flex"},ee={class:"left"},te=H((()=>(0,l._)("div",{class:"flex-1"},null,-1))),ae={class:"right"},le={class:"options"};function ne(e,t,a,n,o,s){const i=(0,l.up)("el-row");return(0,l.wg)(),(0,l.iD)("div",{class:"device-item",style:(0,N.j5)(n.data.style)},[(0,l._)("dl",null,[(0,l._)("dt",null,[A,(0,l._)("div",Z,[(0,l._)("span",{class:(0,N.C_)(["name",{connected:n.data.Connected}])},[(0,l._)("span",K,(0,N.zw)(n.data.MachineName),1),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.titleLeftModules,((e,t)=>((0,l.wg)(),(0,l.j4)((0,l.LL)(e),{key:t,data:n.data},null,8,["data"])))),128))],2),q,((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.titleCenterModules,((e,t)=>((0,l.wg)(),(0,l.j4)((0,l.LL)(e),{key:t,data:n.data},null,8,["data"])))),128)),Y,((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.titleRightModules,((e,t)=>((0,l.wg)(),(0,l.j4)((0,l.LL)(e),{key:t,data:n.data},null,8,["data"])))),128))])]),(0,l._)("dd",Q,[(0,l._)("div",G,[n.data.Connected&&n.data.Screen.width>0&&n.data.Screen.height>0?((0,l.wg)(),(0,l.iD)("canvas",{key:0,width:n.data.Screen.width,height:n.data.Screen.height,id:`canvas-${n.data.MachineName}`,onDblclick:t[0]||(t[0]=(...e)=>n.handleCanvasReset&&n.handleCanvasReset(...e)),onTouchstart:t[1]||(t[1]=(...e)=>n.handleCanvasTouchstart&&n.handleCanvasTouchstart(...e)),onTouchend:t[2]||(t[2]=(...e)=>n.handleCanvasTouchend&&n.handleCanvasTouchend(...e)),onTouchmove:t[3]||(t[3]=(...e)=>n.handleCanvasTouchmove&&n.handleCanvasTouchmove(...e))},null,40,J)):(0,l.kq)("",!0),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.screenModules,((e,t)=>((0,l.wg)(),(0,l.j4)((0,l.LL)(e),{key:t,data:n.data},null,8,["data"])))),128)),(0,l._)("div",X,[(0,l._)("div",ee,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.btnLeftModules,((e,t)=>((0,l.wg)(),(0,l.j4)((0,l.LL)(e),{key:t,data:n.data},null,8,["data"])))),128))]),te,(0,l._)("div",ae,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.btnRightModules,((e,t)=>((0,l.wg)(),(0,l.j4)((0,l.LL)(e),{key:t,data:n.data},null,8,["data"])))),128))])])])]),(0,l._)("dd",le,[(0,l.Wm)(i,null,{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.optionModules,((e,t)=>((0,l.wg)(),(0,l.j4)((0,l.LL)(e),{key:t,data:n.data},null,8,["data"])))),128))])),_:1})])])],4)}var oe={props:{data:{type:Object,default:{}}},setup(e,{emit:t}){const l=e.data,n=a(120),o=n.keys().map((e=>n(e).default)),s=a(9091),i=s.keys().map((e=>s(e).default)),u=a(2648),r=u.keys().map((e=>u(e).default)),c=a(7138),d=c.keys().map((e=>c(e).default)),m=a(2681),p=m.keys().map((e=>m(e).default)),h=a(6532),v=h.keys().map((e=>h(e).default)),f=a(345),g=f.keys().map((e=>f(e).default)).sort(((e,t)=>(e.sort||0)-(t.sort||0))),w=e=>{l.Screen.touchstart&&l.Screen.touchstart(e)},k=e=>{l.Screen.touchend&&l.Screen.touchend(e)},y=e=>{l.Screen.touchmove&&l.Screen.touchmove(e)},_=()=>{l.Screen.reset&&l.Screen.reset()};return{data:l,titleLeftModules:o,titleCenterModules:i,titleRightModules:r,screenModules:d,btnLeftModules:p,btnRightModules:v,optionModules:g,handleCanvasTouchstart:w,handleCanvasTouchend:k,handleCanvasTouchmove:y,handleCanvasReset:_}}};const se=(0,g.Z)(oe,[["render",ne],["__scopeId","data-v-09c8d4b8"]]);var ie=se,ue=a(1468),re={components:{Item:ie},setup(){const e=a(4711),t=e.keys().map((t=>e(t).default));t.forEach((e=>{try{e.init&&e.init()}catch(t){console.log(t)}}));const n=(0,v.d)(),o=()=>{(0,ue.gp)().then((e=>{n.value.allDevices=e.map((e=>t.reduce(((e,t,a)=>(t.field&&(e=Object.assign(e,t.field())),e)),e))).sort(((e,t)=>e.MachineName<t.MachineName?-1:1)),(0,l.Y3)((()=>{c()}))})).catch((()=>{}))},s=(0,l.Fl)((()=>((0,l.Y3)((()=>{c()})),n.value.devices))),i=()=>{(0,m.Ke)("/notify/report/report",(e=>{if(-1==n.value.reportNames.indexOf(e.Name))return;"string"==typeof e.Report&&(e.Report=JSON.parse(e.Report));let a=n.value.devices.filter((t=>t.MachineName==e.Name))[0];a&&t.forEach((t=>{t.update&&t.update(a,e.Report)}))}))},u=()=>{(0,l.Y3)((()=>{document.querySelector("#device-list-wrap").querySelector(".items").addEventListener("scroll",c)}))},r=()=>{try{document.querySelector("#device-list-wrap").querySelector(".items").removeEventListener("scroll",c)}catch(e){}},c=()=>{try{const e=document.querySelector("#device-list-wrap").querySelector(".items"),t=e.scrollTop,a=e.querySelectorAll(".device-item");if(0==a.length)return;const l=e.offsetHeight,o=[...a].map(((e,a)=>{const n=e.offsetTop-t,o=n+e.offsetHeight/2,s=Math.abs(o-l/2);return{dom:e,index:a,offset:s}})),s=o.sort(((e,t)=>e.offset-t.offset))[0];for(let n=0;n<a.length;n++){let e="z-index:9;background-color:rgba(255,255,255,1);";const t=Math.abs(s.index-n),l=1-Math.abs(s.index-n)/10*2,o=100+100*t;n<s.index&&s.index>1?(e=`background-color:rgba(255,255,255,${l});z-index:8;transform: translateZ(-${o}px) `,e+="translateY(30px);"):n>s.index&&s.index<a.length-2&&(e=`background-color:rgba(255,255,255,${l});z-index:8;transform: translateZ(-${o}px) `,e+="translateY(-30px);"),a[n].style=e}const i=o.filter((e=>e.index>=s.index-2&&e.index<=s.index+2)).map((e=>e.index));n.value.reportNames=n.value.devices.filter(((e,t)=>i.indexOf(t)>=0)).map((e=>e.MachineName))}catch(e){console.log(e)}};let d=0;const p=()=>{m.tw.connected&&(0,ue.gp)().then((e=>{n.value.allDevices.forEach((t=>{let a=e.filter((e=>e.MachineName==t.MachineName))[0];a&&(t.Connected=a.Connected)}))})).catch((()=>{})),d=setTimeout((()=>{p()}),1e3)};return(0,l.bv)((()=>{o(),u(),c(),i(),p()})),(0,l.Ah)((()=>{r(),clearTimeout(d),t.forEach((e=>{e.uninit&&e.uninit()}))})),{devices:s}}};const ce=(0,g.Z)(re,[["render",$]]);var de=ce,me=a(2115),pe={components:{Items:de,FootMenu:U,FootOptions:B},setup(){const e=a(4711),t=e.keys().map((t=>e(t).default)),l=t.reduce(((e,t,a)=>(t.state&&(e=Object.assign(e,t.state)),e)),{}),n=((0,me.R)(l),a(138)),o=n.keys().map((e=>n(e).default));return{indexModules:o}}};const he=(0,g.Z)(pe,[["render",D],["__scopeId","data-v-041d6b86"]]);var ve=he,fe={components:{Head:k,Device:ve},setup(){const e=(0,v.e)();(0,m.CU)((t=>{e.value.connected=t}));const t=(0,l.Fl)((()=>!!e.value.username&&e.value.connected));return{showList:t}}};const ge=(0,g.Z)(fe,[["render",i],["__scopeId","data-v-6beac69c"]]);var we=ge},1443:function(e,t,a){"use strict";a.d(t,{Z:function(){return f}});var l=a(3396),n=a(7139);const o=e=>((0,l.dD)("data-v-6b36cd30"),e=e(),(0,l.Cn)(),e),s={class:"checkbox-wrap absolute flex flex-column"},i={class:"head flex"},u=o((()=>(0,l._)("span",{class:"flex-1"},null,-1))),r={class:"body flex-1 scrollbar"},c={class:"flex-1"};function d(e,t,a,o,d,m){const p=(0,l.up)("el-checkbox"),h=(0,l.up)("el-checkbox-group");return(0,l.wg)(),(0,l.iD)("div",s,[(0,l._)("div",i,[(0,l._)("span",null,[(0,l.Wm)(p,{indeterminate:o.state.isIndeterminate,modelValue:o.state.checkAll,"onUpdate:modelValue":t[0]||(t[0]=e=>o.state.checkAll=e),onChange:o.handleCheckAllChange,label:o.state.title},null,8,["indeterminate","modelValue","onChange","label"])]),u,(0,l.WI)(e.$slots,"title",{},void 0,!0)]),(0,l._)("div",r,[(0,l.Wm)(h,{modelValue:o.state.checkList,"onUpdate:modelValue":t[1]||(t[1]=e=>o.state.checkList=e),onChange:o.handleChange},{default:(0,l.w5)((()=>[(0,l._)("ul",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(o.state.data,((t,a)=>((0,l.wg)(),(0,l.iD)("li",{key:a,class:"flex"},[(0,l._)("div",c,[(0,l.Wm)(p,{label:t[o.state.label]},{default:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"name",{item:t},(()=>[(0,l.Uk)((0,n.zw)(t[o.state.text]),1)]),!0)])),_:2},1032,["label"])]),(0,l.WI)(e.$slots,"oper",{item:t},void 0,!0)])))),128))])])),_:3},8,["modelValue","onChange"])])])}var m=a(4870),p={props:["title","items","data","label","text"],emits:["change"],setup(e,{emit:t}){const a=(0,m.qj)({title:e.title,label:e.label,text:e.text||e.label,data:(0,l.Fl)((()=>e.data)),checkList:e.items.map((t=>t[e.label])),checkAll:!1,isIndeterminate:!1}),n=e=>{a.checkList=e?a.data.map((e=>e[a.label])):[],s(a.checkList)},o=e=>{s(e)},s=e=>{const l=e.length;a.isIndeterminate=l>0&&l<a.data.length,a.checkAll=l>0&&l==a.data.length,t("change",a.data.filter((e=>a.checkList.indexOf(e[a.label])>=0)))};(0,l.bv)((()=>{s(a.checkList)}));const i=()=>a.data.filter((e=>a.checkList.indexOf(e[a.label])>=0));return{state:a,handleCheckAllChange:n,handleChange:o,getData:i}}},h=a(89);const v=(0,h.Z)(p,[["render",d],["__scopeId","data-v-6b36cd30"]]);var f=v},5291:function(e,t,a){"use strict";a.d(t,{Z:function(){return f}});var l=a(3396),n=a(7139);const o=e=>((0,l.dD)("data-v-3f1c33d0"),e=e(),(0,l.Cn)(),e),s={class:"checkbox-wrap absolute flex flex-column"},i={class:"head flex"},u=o((()=>(0,l._)("span",{class:"flex-1"},null,-1))),r={class:"body flex-1 scrollbar"},c=["onClick"];function d(e,t,a,o,d,m){return(0,l.wg)(),(0,l.iD)("div",s,[(0,l._)("div",i,[(0,l._)("span",null,(0,n.zw)(o.state.title),1),u]),(0,l._)("div",r,[(0,l.WI)(e.$slots,"wrap",{},(()=>[(0,l._)("ul",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(o.state.data,((t,a)=>((0,l.wg)(),(0,l.iD)("li",{key:a,class:"flex"},[(0,l.WI)(e.$slots,"default",{item:t},(()=>[(0,l._)("div",{class:"default",onClick:e=>o.handleClick(t)},(0,n.zw)(t),9,c)]),!0)])))),128))])]),!0)])])}var m=a(4870),p={props:["title","data"],setup(e,{emit:t}){const a=(0,m.qj)({title:e.title,data:(0,l.Fl)((()=>e.data))}),n=e=>{t("prev",e)};return{state:a,handleClick:n}}},h=a(89);const v=(0,h.Z)(p,[["render",d],["__scopeId","data-v-3f1c33d0"]]);var f=v},6657:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return m}});var l=a(3396),n=a(7139);const o={href:"javascript:;"},s={class:"window-value"};function i(e,t,a,i,u,r){const c=(0,l.up)("Monitor"),d=(0,l.up)("el-icon");return(0,l.wg)(),(0,l.iD)("a",o,[(0,l._)("span",{class:"window",onClick:t[0]||(t[0]=(...e)=>i.handleWindow&&i.handleWindow(...e))},[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l.Wm)(c)])),_:1})]),(0,l._)("p",s,(0,n.zw)(i.data.ActiveWindow.DisallowCount),1)])}var u=a(2115),r={props:["data"],setup(e){const t=(0,u.$)(),a=()=>{t.value.activeWindow.devices=[e.data],t.value.activeWindow.showChoose=!0};return{data:e.data,handleWindow:a}}},c=a(89);const d=(0,c.Z)(r,[["render",i],["__scopeId","data-v-6807b74e"]]);var m=d},1737:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return d}});var l=a(3396);const n=e=>((0,l.dD)("data-v-00407dd8"),e=e(),(0,l.Cn)(),e),o=n((()=>(0,l._)("span",null,"窗口",-1)));function s(e,t,a,n,s,i){const u=(0,l.up)("Monitor"),r=(0,l.up)("el-icon");return(0,l.wg)(),(0,l.iD)("a",{href:"javascript:;",onClick:t[0]||(t[0]=(...e)=>n.handleWindows&&n.handleWindows(...e))},[(0,l.Wm)(r,null,{default:(0,l.w5)((()=>[(0,l.Wm)(u)])),_:1}),o])}var i=a(2115),u={sort:1,setup(){const e=(0,i.$)(),t=()=>{e.value.activeWindow.showWindows=!0};return{handleWindows:t}}},r=a(89);const c=(0,r.Z)(u,[["render",s],["__scopeId","data-v-00407dd8"]]);var d=c},4190:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return c}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("Monitor"),u=(0,l.up)("el-icon"),r=(0,l.up)("el-button");return(0,l.wg)(),(0,l.j4)(r,{size:"small",plain:"",dark:"",onClick:n.handleMessage},{default:(0,l.w5)((()=>[(0,l.Uk)("窗口"),(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i)])),_:1})])),_:1},8,["onClick"])}var o=a(2683),s=a(2115),i={setup(){const e=(0,s.$)(),t=(0,o.d)(),a=()=>{e.value.activeWindow.devices=t.value.devices,e.value.activeWindow.showChoose=!0};return{handleMessage:a}}},u=a(89);const r=(0,u.Z)(i,[["render",n]]);var c=r},3616:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return J}});var l=a(3396);const n={class:"active"};function o(e,t,a,o,s,i){const u=(0,l.up)("ActiveTimes"),r=(0,l.up)("Windows"),c=(0,l.up)("ChooseDig"),d=(0,l.up)("AddWindow"),m=(0,l.up)("ActiveWindows");return(0,l.wg)(),(0,l.iD)("div",n,[o.pluginState.activeWindow.showTimes?((0,l.wg)(),(0,l.j4)(u,{key:0,modelValue:o.pluginState.activeWindow.showTimes,"onUpdate:modelValue":t[0]||(t[0]=e=>o.pluginState.activeWindow.showTimes=e)},null,8,["modelValue"])):(0,l.kq)("",!0),o.pluginState.activeWindow.showWindows?((0,l.wg)(),(0,l.j4)(r,{key:1,modelValue:o.pluginState.activeWindow.showWindows,"onUpdate:modelValue":t[1]||(t[1]=e=>o.pluginState.activeWindow.showWindows=e)},null,8,["modelValue"])):(0,l.kq)("",!0),o.pluginState.activeWindow.showChoose?((0,l.wg)(),(0,l.j4)(c,{key:2,modelValue:o.pluginState.activeWindow.showChoose,"onUpdate:modelValue":t[2]||(t[2]=e=>o.pluginState.activeWindow.showChoose=e)},null,8,["modelValue"])):(0,l.kq)("",!0),o.pluginState.activeWindow.showAddWindow?((0,l.wg)(),(0,l.j4)(d,{key:3,modelValue:o.pluginState.activeWindow.showAddWindow,"onUpdate:modelValue":t[3]||(t[3]=e=>o.pluginState.activeWindow.showAddWindow=e)},null,8,["modelValue"])):(0,l.kq)("",!0),o.pluginState.activeWindow.showActiveWindows?((0,l.wg)(),(0,l.j4)(m,{key:4,modelValue:o.pluginState.activeWindow.showActiveWindows,"onUpdate:modelValue":t[4]||(t[4]=e=>o.pluginState.activeWindow.showActiveWindows=e)},null,8,["modelValue"])):(0,l.kq)("",!0)])}var s=a(7139);const i={class:"wrap flex flex-column"},u={class:"inner flex-1 scrollbar"},r={class:"wrap flex flex-column"},c={class:"inner flex-1 scrollbar"};function d(e,t,a,n,o,d){const m=(0,l.up)("el-button"),p=(0,l.up)("el-progress"),h=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(h,{class:"options",title:"窗口使用时间统计","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.show=e),center:"","align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(m,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(m,{type:"success",onClick:n.handleCancel,plain:""},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",i,[(0,l._)("h4",null,(0,s.zw)(n.state.startTime)+" - 至今("+(0,s.zw)((n.state.totalTime/1e3).toFixed(2))+"s)",1),(0,l._)("div",u,[(0,l._)("ul",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.state.list,((e,t)=>((0,l.wg)(),(0,l.iD)("li",{key:t},[(0,l._)("dl",null,[(0,l._)("dt",null,[(0,l.Uk)((0,s.zw)(e.Desc)+" ",1),(0,l.Wm)(m,{onClick:t=>n.showTitles(e),size:"small"},{default:(0,l.w5)((()=>[(0,l.Uk)((0,s.zw)(e.titleLength),1)])),_:2},1032,["onClick"])]),(0,l._)("dd",null,[(0,l.Wm)(p,{percentage:(e.Time/n.state.totalTime*100).toFixed(2)},null,8,["percentage"])])])])))),128))])])])])),_:1},8,["modelValue"]),(0,l.Wm)(h,{class:"options",title:"详细标题","destroy-on-close":"",modelValue:n.state.showTitles,"onUpdate:modelValue":t[1]||(t[1]=e=>n.state.showTitles=e),center:"","align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(m,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(m,{type:"success",onClick:n.handleCancel,plain:""},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",r,[(0,l._)("h5",null,(0,s.zw)(n.state.currentTime/1e3)+"s",1),(0,l._)("div",c,[(0,l._)("ul",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.state.currentTitles,((e,t)=>((0,l.wg)(),(0,l.iD)("li",{key:t},[(0,l._)("dl",null,[(0,l._)("dt",null,(0,s.zw)(e.t),1),(0,l._)("dd",null,[(0,l.Wm)(p,{percentage:(e.v/n.state.currentTime*100).toFixed(2)},null,8,["percentage"])])])])))),128))])])])])),_:1},8,["modelValue"])],64)}a(7658);var m=a(4870),p=a(7041),h=a(2115),v={props:["modelValue"],emits:["update:modelValue"],components:{},setup(e,{emit:t}){const a=(0,h.$)(),n=(0,m.qj)({show:e.modelValue,loading:!1,startTime:new Date,totalTime:1,list:[],showTitles:!1,currentTitles:[],currentTime:1});(0,l.YP)((()=>n.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)}));const o=()=>{(0,p.Kd)(a.value.activeWindow.devices[0].MachineName).then((e=>{n.startTime=e.StartTime,n.totalTime=e.List.reduce(((e,t,a)=>(t.titleLength=Object.keys(t.Titles).length,e+=t.Time,e)),0),n.list=e.List.sort(((e,t)=>t.Time-e.Time))})).catch((e=>{}))},s=e=>{n.showTitles=!0;let t=[],a=0;for(let l in e.Titles)t.push({t:l,v:e.Titles[l]}),a+=e.Titles[l];n.currentTitles=t.sort(((e,t)=>t.v-e.v)),n.currentTime=a};(0,l.bv)((()=>{o()}));const i=()=>{n.show=!1};return{state:n,handleCancel:i,showTitles:s}}},f=a(89);const g=(0,f.Z)(v,[["render",d],["__scopeId","data-v-7407ef56"]]);var w=g;const k={class:"t-c"};function y(e,t,a,n,o,i){const u=(0,l.up)("el-option"),r=(0,l.up)("el-select"),c=(0,l.up)("el-button"),d=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(d,{title:"添加项","append-to-body":"","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[1]||(t[1]=e=>n.state.show=e),center:"","align-center":"",width:"80%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(c,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(c,{type:"success",plain:"",loading:n.state.loading,onClick:n.handleSubmit},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["loading","onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",null,[(0,l._)("p",null,"标题:【"+(0,s.zw)(n.state.title)+"】",1),(0,l._)("p",null,"描述:【"+(0,s.zw)(n.state.desc)+"】",1),(0,l._)("p",null,"文件:【"+(0,s.zw)(n.state.filename)+"】",1),(0,l._)("p",k,[(0,l.Wm)(r,{modelValue:n.state.group,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.group=e),placeholder:"选择一个分组",style:{width:"13rem"}},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.state.groups,(e=>((0,l.wg)(),(0,l.j4)(u,{key:e.ID,label:e.Name,value:e.ID},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])])])),_:1},8,["modelValue"])}var _=a(2683),C=a(7178),x={props:["modelValue"],emits:["update:modelValue"],components:{},setup(e,{emit:t}){const a=(0,h.$)(),n=(0,_.d)(),o=(0,m.qj)({show:e.modelValue,group:0,title:"",desc:"",filename:"",groups:(0,l.Fl)((()=>{let e=n.value.usernames[n.value.username];return e?(e.Windows.length>0&&0==o.group&&(o.group=e.Windows[0].ID),e.Windows):[]}))});(0,l.YP)((()=>o.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)})),(0,l.bv)((()=>{const e=a.value.activeWindow.devices[0];if(!e)return;const t=e.ActiveWindow.FileName.split("\\");let l=t[t.length-1],n=e.ActiveWindow.Desc;const s=e.ActiveWindow.Title;"Application Frame Host"==n&&(l=s,n=s),o.title=s,o.desc=n,o.filename=l,o.showAdd=!0}));const s=()=>{o.show=!1},i=()=>{(0,p.fm)({username:n.value.username,GroupID:o.group,Item:{ID:0,Name:o.filename,Desc:o.desc}}).then((e=>{n.value.updateFlag=Date.now(),e?C.z8.error(`操作失败:${e}`):(C.z8.success("操作成功"),o.show=!1)})).catch((()=>{C.z8.error("操作失败")}))};return{state:o,handleCancel:s,handleSubmit:i}}};const W=(0,f.Z)(x,[["render",y],["__scopeId","data-v-78070154"]]);var D=W;const b={class:"wrap flex flex-column"},V={class:"inner flex-1 scrollbar"},S={class:"flex-1"},I={class:"btns"};function T(e,t,a,n,o,i){const u=(0,l.up)("Delete"),r=(0,l.up)("el-icon"),c=(0,l.up)("el-button"),d=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(d,{class:"options",title:"当前打开窗口","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.show=e),center:"","align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(c,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(c,{type:"success",onClick:n.handleCancel,plain:""},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",b,[(0,l._)("div",V,[(0,l._)("ul",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.state.list,((e,t)=>((0,l.wg)(),(0,l.iD)("li",{key:t,class:"flex"},[(0,l._)("div",S,(0,s.zw)(e.title),1),(0,l._)("div",I,[(0,l.Wm)(c,{type:"danger",plain:"",onClick:t=>n.handleCloseActive(e)},{default:(0,l.w5)((()=>[(0,l.Wm)(r,null,{default:(0,l.w5)((()=>[(0,l.Wm)(u)])),_:1})])),_:2},1032,["onClick"])])])))),128))])])])])),_:1},8,["modelValue"])}var U=a(9418),N=a(6e3),j={props:["modelValue"],emits:["update:modelValue"],components:{},setup(e,{emit:t}){const a=(0,h.$)(),n=(0,m.qj)({show:e.modelValue,list:[]});(0,l.YP)((()=>n.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)}));const o=["Microsoft Text Input Application","DragFileWindowTitle","TrafficMonitor","安装","Program Manager"],s=()=>{(0,p.XD)(a.value.activeWindow.devices[0].MachineName).then((e=>{const t=Object.keys(e).map((t=>({pid:t,title:e[t]}))).filter((e=>-1==o.indexOf(e.title)));n.list=t})).catch((e=>{}))};(0,l.bv)((()=>{s()}));const i=()=>{n.show=!1},u=e=>{const t=e.title,l=e.pid;N.T.confirm(`是否确定关闭焦点窗口?【${t}`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{(0,U.G)([a.value.activeWindow.devices[0].MachineName],[`taskkill /f /pid ${l}`]).then((e=>{e?(C.z8.success("操作成功"),setTimeout((()=>{s()}),1e3)):C.z8.error("操作失败")})).catch((()=>{C.z8.error("操作失败")}))})).catch((()=>{}))};return{state:n,handleCancel:i,handleCloseActive:u}}};const z=(0,f.Z)(j,[["render",T],["__scopeId","data-v-134f3cec"]]);var M=z,P=a(251);const L=e=>((0,l.dD)("data-v-71b3209e"),e=e(),(0,l.Cn)(),e),R={class:"rule-wrap flex"},O={class:"items"},E=L((()=>(0,l._)("div",{class:"flex-1"},null,-1))),F={class:"Exes flex flex-column"},B={class:"private"},$=L((()=>(0,l._)("div",{class:"flex-1"},null,-1))),H={class:"public"};function A(e,t,a,n,o,s){const i=(0,l.up)("CheckBoxWrap"),u=(0,l.up)("el-button"),r=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(r,{class:"options",title:"阻止窗口","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.show=e),center:"","align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(u,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(u,{type:"success",plain:"",loading:n.state.loading,onClick:n.handleSubmit},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["loading","onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",R,[(0,l._)("div",O,[(0,l.Wm)(i,{ref:"devices",data:n.globalData.devices,items:n.state.items,label:"MachineName",title:"选择设备"},null,8,["data","items"])]),E,(0,l._)("div",F,[(0,l._)("div",B,[(0,l.Wm)(i,{ref:"privateExes",data:n.state.privateExes,items:n.state.currentPrivate,label:"ID",text:"Name",title:"私有窗口"},null,8,["data","items"])]),$,(0,l._)("div",H,[(0,l.Wm)(i,{ref:"publicExes",data:n.state.publicExes,items:n.state.currentPublic,label:"ID",text:"Name",title:"公共窗口"},null,8,["data","items"])])])])])),_:1},8,["modelValue"])}var Z=a(1443),K={props:["modelValue"],emits:["update:modelValue"],components:{CheckBoxWrap:Z.Z},setup(e,{emit:t}){const a=(0,_.d)(),n=(0,h.$)(),o=(0,l.Fl)((()=>a.value.usernames[a.value.username])),s=a.value.publicUserName,i=(0,l.Fl)((()=>a.value.usernames[s])),u=i.value&&a.value.username!=s,r=(0,m.qj)({show:e.modelValue,items:(0,l.Fl)((()=>n.value.activeWindow.devices)),privateExes:(0,l.Fl)((()=>o.value?o.value.Windows:[])),publicExes:(0,l.Fl)((()=>u?i.value.Windows:[])),loading:!1,currentPrivate:[],currentPublic:[]});(0,l.YP)((()=>r.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)})),(0,l.bv)((()=>{if(a.value.updateFlag=Date.now(),1==r.items.length){let e=r.items[0];r.currentPrivate=r.privateExes.filter((t=>e.DisallowRunIds.indexOf(t.ID)>=0)),r.currentPublic=r.publicExes.filter((t=>e.DisallowRunIds.indexOf(t.ID)>=0))}}));const c=(0,m.iH)(null),d=(0,m.iH)(null),v=(0,m.iH)(null),f=()=>{const e=d.value.getData().map((e=>e.ID)),t=r.privateExes.filter((t=>e.indexOf(t.ID)>=0)),a=v.value.getData().map((e=>e.ID)),l=r.publicExes.filter((e=>a.indexOf(e.ID)>=0)),n=t.concat(l).reduce(((e,t,a)=>{let l=t.List.reduce(((e,t,a)=>(e=e.concat(t.Name.split(",")),e)),[]);for(let n=0;n<l.length;n++)l[n]&&-1==e.indexOf(l[n])&&e.push(l[n]);return e}),[]);return{ids:e.concat(a),exes:n}},g=()=>{const e=c.value.getData();0!=e.length?N.T.confirm("如果未选择程序,则视为清空程序,是否确定应用?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{r.loading=!0;const t=f();(0,p.$K)(e.map((e=>e.MachineName)),t.exes,t.ids).then((l=>{r.loading=!1,C.z8.success("操作成功!"),a.value.devices.filter((t=>e.indexOf(t.MachineName)>=0)).forEach((e=>{e.DisallowRunIds=t.ids}))})).catch((e=>{r.loading=!1,C.z8.error("操作失败")}))})).catch((e=>{console.log(e)})):C.z8.error("未选择任何设备")},w=()=>{r.show=!1};return{state:r,globalData:a,devices:c,privateExes:d,publicExes:v,handleSubmit:g,handleCancel:w}}};const q=(0,f.Z)(K,[["render",A],["__scopeId","data-v-71b3209e"]]);var Y=q,Q={components:{ActiveTimes:w,Windows:P["default"],ChooseDig:Y,AddWindow:D,ActiveWindows:M},setup(){const e=(0,h.$)();return{pluginState:e}}};const G=(0,f.Z)(Q,[["render",o]]);var J=G},6487:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return g}});var l=a(3396),n=a(7139),o=a(9242);const s={class:"title flex-1"},i={class:"btn"},u={class:"num"};function r(e,t,a,r,c,d){const m=(0,l.up)("CirclePlus"),p=(0,l.up)("el-icon"),h=(0,l.up)("Tickets");return(0,l.wg)(),(0,l.iD)("a",{class:"process flex",href:"javascript:;",onClick:t[2]||(t[2]=(...e)=>r.handleClick&&r.handleClick(...e))},[(0,l._)("span",s,(0,n.zw)(r.data.ActiveWindow.Title),1),(0,l._)("p",i,[(0,l._)("a",{href:"javascript:;",onClick:t[0]||(t[0]=(0,o.iM)(((...e)=>r.handleAddExe&&r.handleAddExe(...e)),["stop"]))},[(0,l.Wm)(p,null,{default:(0,l.w5)((()=>[(0,l.Wm)(m)])),_:1})]),(0,l._)("a",{href:"javascript:;",onClick:t[1]||(t[1]=(0,o.iM)(((...e)=>r.handleShowWindows&&r.handleShowWindows(...e)),["stop"]))},[(0,l.Wm)(p,null,{default:(0,l.w5)((()=>[(0,l.Wm)(h)])),_:1}),(0,l._)("span",u,(0,n.zw)(r.data.ActiveWindow.WindowCount),1)])])])}var c=a(6e3),d=a(7178),m=a(9418),p=a(2115),h={props:["data"],setup(e,{emit:t}){const a=(0,p.$)(),l=()=>{const t=e.data.ActiveWindow.Title,a=e.data.ActiveWindow.Pid;c.T.confirm(`是否确定关闭焦点窗口?【${t}`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{(0,m.G)([e.data.MachineName],[`taskkill /f /pid ${a}`]).then((e=>{e?d.z8.success("操作成功"):d.z8.error("操作失败")})).catch((()=>{d.z8.error("操作失败")}))})).catch((()=>{}))},n=()=>{a.value.activeWindow.devices=[e.data],a.value.activeWindow.showAddWindow=!0},o=()=>{a.value.activeWindow.devices=[e.data],a.value.activeWindow.showActiveWindows=!0},s=()=>{a.value.activeWindow.devices=[e.data],a.value.activeWindow.showTimes=!0};let i=0;const u=()=>{if(i)return clearTimeout(i),i=0,void s();i=setTimeout((()=>{i=0,l()}),300)};return{data:e.data,handleAddExe:n,handleShowWindows:o,handleClick:u}}},v=a(89);const f=(0,v.Z)(h,[["render",r],["__scopeId","data-v-394c2481"]]);var g=f},251:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return U}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("Groups"),u=(0,l.up)("el-tab-pane"),r=(0,l.up)("Items"),c=(0,l.up)("el-tabs"),d=(0,l.up)("el-button"),m=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(m,{class:"options",title:"窗口限制","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.show=e),center:"","close-on-click-modal":!1,"align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(d,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"])])),default:(0,l.w5)((()=>[(0,l.Wm)(c,{type:"border-card"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{label:"窗口分组"},{default:(0,l.w5)((()=>[(0,l.Wm)(i)])),_:1}),(0,l.Wm)(u,{label:"窗口列表"},{default:(0,l.w5)((()=>[(0,l.Wm)(r)])),_:1})])),_:1})])),_:1},8,["modelValue"])}var o=a(4870);const s={class:"window-items-wrap flex flex-nowrap flex-column"},i={class:"head t-c flex"},u={class:"flex-1"},r={class:"prevs-wrap"};function c(e,t,a,n,o,c){const d=(0,l.up)("el-button"),m=(0,l.up)("el-table-column"),p=(0,l.up)("EditPen"),h=(0,l.up)("el-icon"),v=(0,l.up)("Delete"),f=(0,l.up)("el-popconfirm"),g=(0,l.up)("el-table"),w=(0,l.up)("el-input"),k=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.iD)("div",s,[(0,l._)("div",i,[(0,l.Wm)(d,{onClick:t[0]||(t[0]=e=>n.handleAdd())},{default:(0,l.w5)((()=>[(0,l.Uk)("添加项")])),_:1})]),(0,l._)("div",u,[(0,l._)("div",r,[(0,l.Wm)(g,{data:n.state.list,size:"small",border:"",stripe:"",style:{width:"100%"},height:"50vh"},{default:(0,l.w5)((()=>[(0,l.Wm)(m,{prop:"Name",label:"名称"}),(0,l.Wm)(m,{label:"操作",width:"110"},{default:(0,l.w5)((e=>[e.row.ID>1?((0,l.wg)(),(0,l.iD)(l.HY,{key:0},[(0,l.Wm)(d,{size:"small",onClick:t=>n.handleAdd(e.row)},{default:(0,l.w5)((()=>[(0,l.Wm)(h,null,{default:(0,l.w5)((()=>[(0,l.Wm)(p)])),_:1})])),_:2},1032,["onClick"]),(0,l.Wm)(f,{title:"删除不可逆,是否确定?",onConfirm:t=>n.handleDel(e.row)},{reference:(0,l.w5)((()=>[(0,l.Wm)(d,{size:"small",type:"danger"},{default:(0,l.w5)((()=>[(0,l.Wm)(h,null,{default:(0,l.w5)((()=>[(0,l.Wm)(v)])),_:1})])),_:1})])),_:2},1032,["onConfirm"])],64)):(0,l.kq)("",!0)])),_:1})])),_:1},8,["data"])])]),(0,l.Wm)(k,{title:""+(0==n.state.currentItem.ID?"添加项":"修改项"),"destroy-on-close":"",modelValue:n.state.showEdit,"onUpdate:modelValue":t[2]||(t[2]=e=>n.state.showEdit=e),center:"","close-on-click-modal":!1,"align-center":"",width:"80%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(d,{onClick:n.handleEditCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(d,{type:"success",plain:"",loading:n.state.loading,onClick:n.handleEditSubmit},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["loading","onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",null,[(0,l.Wm)(w,{modelValue:n.state.currentItem.Name,"onUpdate:modelValue":t[1]||(t[1]=e=>n.state.currentItem.Name=e),size:"large",placeholder:"分组名称"},null,8,["modelValue"])])])),_:1},8,["title","modelValue"])])}var d=a(7178),m=a(7041),p=a(2683),h={setup(){const e=(0,p.d)(),t=(0,o.qj)({loading:!1,currentItem:{ID:0,Name:""},showEdit:!1,list:(0,l.Fl)((()=>{let a=e.value.usernames[e.value.username];return a?(0==t.group&&a.Windows.length>0&&(t.group=a.Windows[0].ID),a.Windows):[]}))}),a=e=>{e=e||{Name:"",ID:0},t.currentItem.Name=e.Name,t.currentItem.ID=e.ID,t.showEdit=!0},n=a=>{t.loading=!0,(0,m.Oq)(e.value.username,a.ID).then((a=>{t.loading=!1,a?d.z8.error(a):(d.z8.success("操作成功!"),e.value.updateFlag=Date.now())})).catch((e=>{t.loading=!1,d.z8.error("操作失败!")}))},s=()=>{t.showEdit=!1},i=()=>{t.currentItem.Name=t.currentItem.Name.replace(/^\s|\s$/g,""),t.currentItem.Name&&(t.loading=!0,(0,m.PC)({UserName:e.value.username,Group:t.currentItem}).then((a=>{t.loading=!1,a?d.z8.error(a):(d.z8.success("操作成功!"),t.showEdit=!1,e.value.updateFlag=Date.now())})).catch((e=>{t.loading=!1,d.z8.error("操作失败!")})))};return{state:t,handleAdd:a,handleDel:n,handleEditCancel:s,handleEditSubmit:i}}},v=a(89);const f=(0,v.Z)(h,[["render",c],["__scopeId","data-v-66831cde"]]);var g=f;const w=e=>((0,l.dD)("data-v-e5c8f31c"),e=e(),(0,l.Cn)(),e),k={class:"windows-items-wrap flex flex-nowrap flex-column"},y={class:"head t-c flex"},_=w((()=>(0,l._)("span",{class:"flex-1"},null,-1))),C={class:"flex-1"},x={class:"prevs-wrap"},W={style:{"padding-top":"1rem"}};function D(e,t,a,n,o,s){const i=(0,l.up)("el-option"),u=(0,l.up)("el-select"),r=(0,l.up)("el-button"),c=(0,l.up)("el-table-column"),d=(0,l.up)("EditPen"),m=(0,l.up)("el-icon"),p=(0,l.up)("Delete"),h=(0,l.up)("el-popconfirm"),v=(0,l.up)("el-table"),f=(0,l.up)("el-input"),g=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.iD)("div",k,[(0,l._)("div",y,[(0,l.Wm)(u,{modelValue:n.state.group,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.group=e),placeholder:"选择一个分组",style:{width:"13rem"}},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.state.groups,(e=>((0,l.wg)(),(0,l.j4)(i,{key:e.ID,label:e.Name,value:e.ID},null,8,["label","value"])))),128))])),_:1},8,["modelValue"]),_,(0,l.Wm)(r,{onClick:t[1]||(t[1]=e=>n.handleAdd())},{default:(0,l.w5)((()=>[(0,l.Uk)("添加项")])),_:1})]),(0,l._)("div",C,[(0,l._)("div",x,[(0,l.Wm)(v,{data:n.state.list,size:"small",border:"",stripe:"",style:{width:"100%"},height:"50vh"},{default:(0,l.w5)((()=>[(0,l.Wm)(c,{prop:"Name",label:"名称"}),(0,l.Wm)(c,{prop:"Desc",label:"描述"}),(0,l.Wm)(c,{label:"操作",width:"110"},{default:(0,l.w5)((e=>[(0,l.Wm)(r,{size:"small",onClick:t=>n.handleAdd(e.row)},{default:(0,l.w5)((()=>[(0,l.Wm)(m,null,{default:(0,l.w5)((()=>[(0,l.Wm)(d)])),_:1})])),_:2},1032,["onClick"]),(0,l.Wm)(h,{title:"删除不可逆,是否确定?",onConfirm:t=>n.handleDel(e.row)},{reference:(0,l.w5)((()=>[(0,l.Wm)(r,{size:"small",type:"danger"},{default:(0,l.w5)((()=>[(0,l.Wm)(m,null,{default:(0,l.w5)((()=>[(0,l.Wm)(p)])),_:1})])),_:1})])),_:2},1032,["onConfirm"])])),_:1})])),_:1},8,["data"])])]),(0,l.Wm)(g,{title:""+(0==n.state.currentItem.ID?"添加项":"修改项"),"destroy-on-close":"",modelValue:n.state.showEdit,"onUpdate:modelValue":t[4]||(t[4]=e=>n.state.showEdit=e),center:"","close-on-click-modal":!1,"align-center":"",width:"80%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(r,{onClick:n.handleEditCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(r,{type:"success",plain:"",loading:n.state.loading,onClick:n.handleEditSubmit},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["loading","onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",null,[(0,l._)("p",null,[(0,l.Wm)(f,{modelValue:n.state.currentItem.Desc,"onUpdate:modelValue":t[2]||(t[2]=e=>n.state.currentItem.Desc=e),size:"large",placeholder:"名称"},null,8,["modelValue"])]),(0,l._)("p",W,[(0,l.Wm)(f,{modelValue:n.state.currentItem.Name,"onUpdate:modelValue":t[3]||(t[3]=e=>n.state.currentItem.Name=e),size:"large",placeholder:"文件,多个逗号间隔,无后缀则按标题处理"},null,8,["modelValue"])])])])),_:1},8,["title","modelValue"])])}var b={setup(){const e=(0,p.d)(),t=(0,o.qj)({loading:!1,group:0,currentItem:{ID:0,Name:"",Desc:""},showEdit:!1,groups:(0,l.Fl)((()=>{let a=e.value.usernames[e.value.username];return a?(0==t.group&&a.Windows.length>0&&(t.group=a.Windows[0].ID),a.Windows):[]})),list:(0,l.Fl)((()=>{let e=t.groups.filter((e=>e.ID==t.group))[0];return e?e.List:[]}))}),a=e=>{e=e||{Name:"",ID:0,Desc:""},t.currentItem.Name=e.Name,t.currentItem.Desc=e.Desc,t.currentItem.ID=e.ID,t.showEdit=!0},n=a=>{t.loading=!0,(0,m.Lb)(e.value.username,t.group,a.ID).then((a=>{t.loading=!1,a?d.z8.error(a):(d.z8.success("操作成功!"),e.value.updateFlag=Date.now())})).catch((e=>{t.loading=!1,d.z8.error("操作失败!")}))},s=()=>{t.showEdit=!1},i=()=>{t.currentItem.Name=t.currentItem.Name.replace(/^\s|\s$/g,""),t.currentItem.Name&&(t.loading=!0,(0,m.fm)({UserName:e.value.username,GroupID:t.group,Item:t.currentItem}).then((a=>{t.loading=!1,a?d.z8.error(a):(d.z8.success("操作成功!"),t.showEdit=!1,e.value.updateFlag=Date.now())})).catch((e=>{t.loading=!1,d.z8.error("操作失败!")})))};return{state:t,handleAdd:a,handleDel:n,handleEditCancel:s,handleEditSubmit:i}}};const V=(0,v.Z)(b,[["render",D],["__scopeId","data-v-e5c8f31c"]]);var S=V,I={props:["modelValue"],emits:["update:modelValue"],components:{Groups:g,Items:S},setup(e,{emit:t}){const a=(0,o.qj)({show:e.modelValue,loading:!1});(0,l.YP)((()=>a.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)}));const n=(0,p.d)();(0,l.bv)((()=>{n.value.updateFlag=Date.now()}));const s=()=>{a.show=!1};return{state:a,handleCancel:s}}};const T=(0,v.Z)(I,[["render",n]]);var U=T},459:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return r}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("ScaleToOriginal"),u=(0,l.up)("el-icon");return(0,l.wg)(),(0,l.iD)("div",null,[(0,l._)("a",{href:"javascript:;",onClick:t[0]||(t[0]=(...e)=>n.handleCommand&&n.handleCommand(...e))},[(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i)])),_:1})])])}var o=a(2115),s={props:["data"],setup(e){const t=(0,o.$)(),a=()=>{t.value.command.devices=[e.data],t.value.command.showCommand=!0};return{handleCommand:a}}},i=a(89);const u=(0,i.Z)(s,[["render",n],["__scopeId","data-v-28d57024"]]);var r=u},8196:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return c}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("ScaleToOriginal"),u=(0,l.up)("el-icon"),r=(0,l.up)("el-button");return(0,l.wg)(),(0,l.j4)(r,{size:"small",plain:"",dark:"",onClick:n.handleCommand},{default:(0,l.w5)((()=>[(0,l.Uk)("命令"),(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i)])),_:1})])),_:1},8,["onClick"])}var o=a(2683),s=a(2115),i={setup(){const e=(0,s.$)(),t=(0,o.d)(),a=()=>{e.value.command.devices=t.value.devices,e.value.command.showCommand=!0};return{handleCommand:a}}},u=a(89);const r=(0,u.Z)(i,[["render",n]]);var c=r},8754:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return x}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("ChooseDig");return(0,l.wg)(),(0,l.iD)("div",null,[n.pluginState.command.showCommand?((0,l.wg)(),(0,l.j4)(i,{key:0,modelValue:n.pluginState.command.showCommand,"onUpdate:modelValue":t[0]||(t[0]=e=>n.pluginState.command.showCommand=e)},null,8,["modelValue"])):(0,l.kq)("",!0)])}var o=a(2115);const s=e=>((0,l.dD)("data-v-668c193e"),e=e(),(0,l.Cn)(),e),i={class:"command-wrap common-command-wrap flex"},u={class:"items"},r=s((()=>(0,l._)("div",{class:"flex-1"},null,-1))),c={class:"commands"},d={class:"inner absolute scrollbar"};function m(e,t,a,n,o,s){const m=(0,l.up)("CheckBoxWrap"),p=(0,l.up)("el-button"),h=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(h,{class:"options",title:"执行命令","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.show=e),center:"","align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(p,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",i,[(0,l._)("div",u,[(0,l.Wm)(m,{ref:"items",onChange:n.handleDevicesChange,data:n.globalData.devices,items:n.state.items,label:"MachineName",title:"选择设备"},null,8,["onChange","data","items"])]),r,(0,l._)("div",c,[(0,l._)("div",d,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.commandModules,((e,t)=>((0,l.wg)(),(0,l.j4)((0,l.LL)(e),{key:t})))),128))])])])])),_:1},8,["modelValue"])}var p=a(4870),h=a(1443),v=a(5291),f=a(2683),g={props:["modelValue"],emits:["update:modelValue"],components:{CheckBoxWrap:h.Z,PrevBoxWrap:v.Z},setup(e,{emit:t}){const n=a(8023),s=n.keys().map((e=>n(e).default)),i=(0,f.d)(),u=(0,o.$)(),r=(0,p.qj)({show:e.modelValue,items:(0,l.Fl)((()=>u.value.command.devices)),loading:!1});(0,l.YP)((()=>r.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)}));const c=(0,p.iH)(null),d=()=>{r.show=!1},m=e=>{u.value.command.devices=e};return{state:r,globalData:i,items:c,commandModules:s,handleCancel:d,handleDevicesChange:m}}},w=a(89);const k=(0,w.Z)(g,[["render",m],["__scopeId","data-v-668c193e"]]);var y=k,_={components:{ChooseDig:y},setup(){const e=(0,o.$)();return{pluginState:e}}};const C=(0,w.Z)(_,[["render",n]]);var x=C},4718:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return d}});var l=a(3396);const n=e=>((0,l.dD)("data-v-5e5b55e3"),e=e(),(0,l.Cn)(),e),o=n((()=>(0,l._)("span",null,"设备",-1)));function s(e,t,a,n,s,i){const u=(0,l.up)("Grid"),r=(0,l.up)("el-icon");return(0,l.wg)(),(0,l.iD)("a",{href:"javascript:;",onClick:t[0]||(t[0]=(...e)=>n.handleDevices&&n.handleDevices(...e))},[(0,l.Wm)(r,null,{default:(0,l.w5)((()=>[(0,l.Wm)(u)])),_:1}),o])}var i=a(2115),u={sort:0,setup(){const e=(0,i.$)(),t=()=>{e.value.device.showDevices=!0};return{handleDevices:t}}},r=a(89);const c=(0,r.Z)(u,[["render",s],["__scopeId","data-v-5e5b55e3"]]);var d=c},8709:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return _}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("ChooseDig");return(0,l.wg)(),(0,l.iD)("div",null,[n.pluginState.device.showDevices?((0,l.wg)(),(0,l.j4)(i,{key:0,modelValue:n.pluginState.device.showDevices,"onUpdate:modelValue":t[0]||(t[0]=e=>n.pluginState.device.showDevices=e)},null,8,["modelValue"])):(0,l.kq)("",!0)])}var o=a(2115);const s={class:"devices-wrap"},i={class:"del-btn"};function u(e,t,a,n,o,u){const r=(0,l.up)("Delete"),c=(0,l.up)("el-icon"),d=(0,l.up)("el-popconfirm"),m=(0,l.up)("CheckBoxWrap"),p=(0,l.up)("el-button"),h=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(h,{class:"options",title:"选择你的设备","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.show=e),center:"","close-on-click-modal":!1,"align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(p,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(p,{type:"success",plain:"",loading:n.state.loading,onClick:n.handleSubmit},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["loading","onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",s,[(0,l.Wm)(m,{ref:"devices",data:n.state.list,items:n.state.items,label:"MachineName",text:"MachineName",title:"选择设备"},{oper:(0,l.w5)((e=>[(0,l._)("div",null,[(0,l.Wm)(d,{title:"删除不可逆,是否确认?",onConfirm:t=>n.handleDel(e.item.MachineName)},{reference:(0,l.w5)((()=>[(0,l._)("span",i,[(0,l.Wm)(c,null,{default:(0,l.w5)((()=>[(0,l.Wm)(r)])),_:1})])])),_:2},1032,["onConfirm"])])])),_:1},8,["data","items"])])])),_:1},8,["modelValue"])}var r=a(4870),c=a(1443),d=a(2331),m=a(1468),p=a(7178),h=a(2683),v={props:["modelValue"],emits:["update:modelValue"],components:{CheckBoxWrap:c.Z},setup(e,{emit:t}){const a=(0,h.d)(),n=(0,r.qj)({show:e.modelValue,loading:!1,list:(0,l.Fl)((()=>a.value.allDevices)),items:(0,l.Fl)((()=>a.value.devices))});(0,l.YP)((()=>n.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)}));const o=()=>{n.show=!1,a.value.updateFlag=Date.now()},s=e=>{n.loading=!0,(0,m.FU)(e).then((()=>{n.loading=!1,a.value.updateFlag=Date.now()})).catch((()=>{n.loading=!1}))},i=(0,r.iH)(null),u=()=>{const e=i.value.getData();n.loading=!0,(0,d.hG)({username:a.value.username,devices:e.map((e=>e.MachineName))}).then((e=>{n.loading=!1,a.value.updateFlag=Date.now(),e?p.z8.error(e):(p.z8.success("操作成功!"),n.show=!1)})).catch((()=>{n.loading=!1,p.z8.error("操作失败!")}))};return(0,l.bv)((()=>{a.value.updateFlag=Date.now()})),{state:n,devices:i,handleCancel:o,handleSubmit:u,handleDel:s}}},f=a(89);const g=(0,f.Z)(v,[["render",u],["__scopeId","data-v-b7fe3498"]]);var w=g,k={components:{ChooseDig:w},setup(){const e=(0,o.$)();return{pluginState:e}}};const y=(0,f.Z)(k,[["render",n]]);var _=y},116:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return d}});var l=a(3396),n=a(7139);const o={class:"value"};function s(e,t,a,s,i,u){const r=(0,l.up)("Umbrella"),c=(0,l.up)("el-icon");return(0,l.wg)(),(0,l.iD)("a",{href:"javascript:;",onClick:t[0]||(t[0]=(...e)=>s.handleRule&&s.handleRule(...e))},[(0,l.Wm)(c,null,{default:(0,l.w5)((()=>[(0,l.Wm)(r)])),_:1}),(0,l._)("span",o,(0,n.zw)(s.data.Hijack.Count),1)])}var i=a(2115),u={props:["data"],setup(e){const t=(0,i.$)(),a=()=>{t.value.hijack.devices=[e.data],t.value.hijack.showRules=!0};return{data:e.data,handleRule:a}}},r=a(89);const c=(0,r.Z)(u,[["render",s],["__scopeId","data-v-10febbed"]]);var d=c},3213:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return p}});var l=a(3396);const n=e=>((0,l.dD)("data-v-0672e0ec"),e=e(),(0,l.Cn)(),e),o={href:"javascript:;"},s={class:"el-dropdown-link"},i=n((()=>(0,l._)("span",null,"网络",-1)));function u(e,t,a,n,u,r){const c=(0,l.up)("Umbrella"),d=(0,l.up)("el-icon"),m=(0,l.up)("arrow-down"),p=(0,l.up)("el-dropdown-item"),h=(0,l.up)("el-dropdown-menu"),v=(0,l.up)("el-dropdown");return(0,l.wg)(),(0,l.iD)("a",o,[(0,l.Wm)(v,null,{dropdown:(0,l.w5)((()=>[(0,l.Wm)(h,null,{default:(0,l.w5)((()=>[(0,l.Wm)(p,{onClick:n.handleProcess},{default:(0,l.w5)((()=>[(0,l.Uk)("程序配置")])),_:1},8,["onClick"]),(0,l.Wm)(p,{divided:"",onClick:n.handleRule},{default:(0,l.w5)((()=>[(0,l.Uk)("分组配置")])),_:1},8,["onClick"])])),_:1})])),default:(0,l.w5)((()=>[(0,l._)("span",s,[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l.Wm)(c)])),_:1}),i,(0,l.Wm)(d,{class:"el-icon--right"},{default:(0,l.w5)((()=>[(0,l.Wm)(m)])),_:1})])])),_:1})])}var r=a(2115),c={sort:2,setup(){const e=(0,r.$)(),t=()=>{e.value.hijack.showProcessSetting=!0},a=()=>{e.value.hijack.showRuleSetting=!0};return{handleProcess:t,handleRule:a}}},d=a(89);const m=(0,d.Z)(c,[["render",u],["__scopeId","data-v-0672e0ec"]]);var p=m},2546:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return I}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("ChooseDig"),u=(0,l.up)("RuleSetting"),r=(0,l.up)("ProcessSetting");return(0,l.wg)(),(0,l.iD)("div",null,[n.pluginState.hijack.showRules?((0,l.wg)(),(0,l.j4)(i,{key:0,modelValue:n.pluginState.hijack.showRules,"onUpdate:modelValue":t[0]||(t[0]=e=>n.pluginState.hijack.showRules=e)},null,8,["modelValue"])):(0,l.kq)("",!0),n.pluginState.hijack.showRuleSetting?((0,l.wg)(),(0,l.j4)(u,{key:1,modelValue:n.pluginState.hijack.showRuleSetting,"onUpdate:modelValue":t[1]||(t[1]=e=>n.pluginState.hijack.showRuleSetting=e)},null,8,["modelValue"])):(0,l.kq)("",!0),n.pluginState.hijack.showProcessSetting?((0,l.wg)(),(0,l.j4)(r,{key:2,modelValue:n.pluginState.hijack.showProcessSetting,"onUpdate:modelValue":t[2]||(t[2]=e=>n.pluginState.hijack.showProcessSetting=e)},null,8,["modelValue"])):(0,l.kq)("",!0)])}var o=a(2115);const s=e=>((0,l.dD)("data-v-1d10a778"),e=e(),(0,l.Cn)(),e),i={class:"rule-wrap flex"},u={class:"items"},r=s((()=>(0,l._)("div",{class:"flex-1"},null,-1))),c={class:"rules flex flex-column"},d={class:"private"},m=s((()=>(0,l._)("div",{class:"flex-1"},null,-1))),p={class:"public"};function h(e,t,a,n,o,s){const h=(0,l.up)("CheckBoxWrap"),v=(0,l.up)("el-button"),f=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(f,{class:"options",title:"网络限制","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.show=e),center:"","align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(v,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(v,{type:"success",plain:"",loading:n.state.loading,onClick:n.handleSubmit},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["loading","onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",i,[(0,l._)("div",u,[(0,l.Wm)(h,{ref:"devices",data:n.globalData.devices,items:n.state.items,label:"MachineName",title:"选择设备"},null,8,["data","items"])]),r,(0,l._)("div",c,[(0,l._)("div",d,[(0,l.Wm)(h,{ref:"privateRules",data:n.state.privateRules,items:n.state.currentPrivate,label:"ID",text:"Name",title:"私有限制"},null,8,["data","items"])]),m,(0,l._)("div",p,[(0,l.Wm)(h,{ref:"publicRules",data:n.state.publicRules,items:n.state.currentPublic,label:"ID",text:"Name",title:"公共限制"},null,8,["data","items"])])])])])),_:1},8,["modelValue"])}a(7658);var v=a(4870),f=a(1443),g=a(7178),w=a(6e3),k=a(2331),y=a(2683),_={props:["modelValue","items"],emits:["update:modelValue"],components:{CheckBoxWrap:f.Z},setup(e,{emit:t}){const a=(0,y.d)(),n=(0,o.$)(),s=(0,l.Fl)((()=>a.value.usernames[a.value.username])),i=a.value.publicUserName,u=(0,l.Fl)((()=>a.value.usernames[i])),r=u.value&&a.value.username!=i,c=(0,v.qj)({show:e.modelValue,items:(0,l.Fl)((()=>n.value.hijack.devices)),privateRules:(0,l.Fl)((()=>s.value?s.value.Rules:[])),publicRules:(0,l.Fl)((()=>r?u.value.Rules:[])),loading:!1,currentPrivate:[],currentPublic:[]});(0,l.YP)((()=>c.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)})),(0,l.bv)((()=>{if(1==c.items.length){let e=c.items[0];c.currentPrivate=c.privateRules.filter((t=>e.RuleIds.indexOf(t.ID)>=0)),c.currentPublic=c.publicRules.filter((t=>e.RuleIds.indexOf(t.ID)>=0))}}));const d=(0,v.iH)(null),m=(0,v.iH)(null),p=(0,v.iH)(null),h=()=>{const e=m.value.getData().map((e=>e.ID)),t=p.value.getData().map((e=>e.ID)),a=s.value,l=u.value,n=a.Rules.filter((t=>e.indexOf(t.ID)>=0)).map((e=>a.Processs.filter((t=>e.PrivateProcesss.indexOf(t.ID)>=0)))),o=l.Rules.filter((e=>t.indexOf(e.ID)>=0)).map((e=>l.Processs.filter((t=>e.PublicProcesss.indexOf(t.ID)>=0)))),i=n.concat(o).reduce(((e,t,a)=>(e=e.concat(t.reduce(((e,t,a)=>(e=e.concat(t.List),e)),[])),e)),[]),r=[];return i.forEach((e=>{0==r.filter((t=>t.Name==e.Name&&t.DataType==e.DataType&&t.AllowType==e.AllowType)).length&&r.push(e)})),{ids:e.concat(t),list:{AllowProcesss:r.filter((e=>0==e.DataType&&0==e.AllowType)).map((e=>e.Name)),DeniedProcesss:r.filter((e=>0==e.DataType&&1==e.AllowType)).map((e=>e.Name)),AllowDomains:r.filter((e=>1==e.DataType&&0==e.AllowType)).map((e=>e.Name)),DeniedDomains:r.filter((e=>1==e.DataType&&1==e.AllowType)).map((e=>e.Name)),AllowIPs:r.filter((e=>2==e.DataType&&0==e.AllowType)).map((e=>e.Name)),DeniedIPs:r.filter((e=>2==e.DataType&&1==e.AllowType)).map((e=>e.Name))}}},f=()=>{const e=d.value.getData();0!=e.length?w.T.confirm("如果未选择任何限制,则视为清空限制,是否确定应用限制?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{c.loading=!0;const t=h();(0,k.Gn)({Devices:e.map((e=>e.MachineName)),Rules:t.list,ids:t.ids}).then((l=>{c.loading=!1,l&&l.length>0?g.z8.error(`操作失败,失败设备:${l.join(",")}`):(g.z8.success("操作成功!"),a.value.devices.filter((t=>e.indexOf(t.MachineName)>=0)).forEach((e=>{e.RuleIds=t.ids})))})).catch((e=>{c.loading=!1,g.z8.error("操作失败")}))})).catch((()=>{})):g.z8.error("未选择任何设备")},_=()=>{c.show=!1};return{state:c,globalData:a,devices:d,privateRules:m,publicRules:p,handleSubmit:f,handleCancel:_}}},C=a(89);const x=(0,C.Z)(_,[["render",h],["__scopeId","data-v-1d10a778"]]);var W=x,D=a(5914),b=a(1130),V={components:{ChooseDig:W,RuleSetting:D["default"],ProcessSetting:b["default"]},setup(){const e=(0,o.$)();return{pluginState:e}}};const S=(0,C.Z)(V,[["render",n]]);var I=S},3844:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return c}});var l=a(3396),n=a(7139);const o={class:"speed"};function s(e,t,a,s,i,u){const r=(0,l.up)("Upload"),c=(0,l.up)("el-icon"),d=(0,l.up)("Download");return(0,l.wg)(),(0,l.iD)("span",o,[(0,l._)("span",null,[(0,l.Wm)(c,null,{default:(0,l.w5)((()=>[(0,l.Wm)(r)])),_:1}),(0,l.Uk)(" "+(0,n.zw)(s.data.Hijack.UploadText),1)]),(0,l._)("span",null,[(0,l.Wm)(c,null,{default:(0,l.w5)((()=>[(0,l.Wm)(d)])),_:1}),(0,l.Uk)(" "+(0,n.zw)(s.data.Hijack.DownloadText),1)])])}var i={props:["data"],setup(e){return{data:e.data}}},u=a(89);const r=(0,u.Z)(i,[["render",s],["__scopeId","data-v-6a822c73"]]);var c=r},1130:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return M}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("Groups"),u=(0,l.up)("el-tab-pane"),r=(0,l.up)("Items"),c=(0,l.up)("el-tabs"),d=(0,l.up)("el-button"),m=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(m,{class:"options",title:"限制程序配置","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.show=e),center:"","close-on-click-modal":!1,"align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(d,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"])])),default:(0,l.w5)((()=>[(0,l.Wm)(c,{type:"border-card"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{label:"程序分组"},{default:(0,l.w5)((()=>[(0,l.Wm)(i)])),_:1}),(0,l.Wm)(u,{label:"程序列表"},{default:(0,l.w5)((()=>[(0,l.Wm)(r)])),_:1})])),_:1})])),_:1},8,["modelValue"])}var o=a(4870);const s={class:"process-items-wrap flex flex-nowrap flex-column"},i={class:"head t-c flex"},u={class:"flex-1"},r={class:"prevs-wrap"};function c(e,t,a,n,o,c){const d=(0,l.up)("el-button"),m=(0,l.up)("el-table-column"),p=(0,l.up)("EditPen"),h=(0,l.up)("el-icon"),v=(0,l.up)("Delete"),f=(0,l.up)("el-popconfirm"),g=(0,l.up)("el-table"),w=(0,l.up)("el-input"),k=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.iD)("div",s,[(0,l._)("div",i,[(0,l.Wm)(d,{onClick:t[0]||(t[0]=e=>n.handleAdd())},{default:(0,l.w5)((()=>[(0,l.Uk)("添加项")])),_:1})]),(0,l._)("div",u,[(0,l._)("div",r,[(0,l.Wm)(g,{data:n.state.list,size:"small",border:"",stripe:"",style:{width:"100%"},height:"50vh"},{default:(0,l.w5)((()=>[(0,l.Wm)(m,{prop:"Name",label:"名称"}),(0,l.Wm)(m,{label:"操作",width:"110"},{default:(0,l.w5)((e=>[e.row.ID>1?((0,l.wg)(),(0,l.iD)(l.HY,{key:0},[(0,l.Wm)(d,{size:"small",onClick:t=>n.handleAdd(e.row)},{default:(0,l.w5)((()=>[(0,l.Wm)(h,null,{default:(0,l.w5)((()=>[(0,l.Wm)(p)])),_:1})])),_:2},1032,["onClick"]),(0,l.Wm)(f,{title:"删除不可逆,是否确定?",onConfirm:t=>n.handleDel(e.row)},{reference:(0,l.w5)((()=>[(0,l.Wm)(d,{size:"small",type:"danger"},{default:(0,l.w5)((()=>[(0,l.Wm)(h,null,{default:(0,l.w5)((()=>[(0,l.Wm)(v)])),_:1})])),_:1})])),_:2},1032,["onConfirm"])],64)):(0,l.kq)("",!0)])),_:1})])),_:1},8,["data"])])]),(0,l.Wm)(k,{title:""+(0==n.state.currentItem.ID?"添加项":"修改项"),"destroy-on-close":"",modelValue:n.state.showEdit,"onUpdate:modelValue":t[2]||(t[2]=e=>n.state.showEdit=e),center:"","close-on-click-modal":!1,"align-center":"",width:"80%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(d,{onClick:n.handleEditCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(d,{type:"success",plain:"",loading:n.state.loading,onClick:n.handleEditSubmit},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["loading","onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",null,[(0,l.Wm)(w,{modelValue:n.state.currentItem.Name,"onUpdate:modelValue":t[1]||(t[1]=e=>n.state.currentItem.Name=e),size:"large",placeholder:"分组名称"},null,8,["modelValue"])])])),_:1},8,["title","modelValue"])])}var d=a(7178),m=a(2331),p=a(2683),h={setup(){const e=(0,p.d)(),t=(0,o.qj)({loading:!1,currentItem:{ID:0,Name:""},showEdit:!1,list:(0,l.Fl)((()=>{let a=e.value.usernames[e.value.username];return a?(0==t.group&&a.Processs.length>0&&(t.group=a.Processs[0].ID),a.Processs):[]}))}),a=e=>{e=e||{Name:"",ID:0},t.currentItem.Name=e.Name,t.currentItem.ID=e.ID,t.showEdit=!0},n=a=>{t.loading=!0,(0,m.XM)({UserName:e.value.username,ID:a.ID}).then((a=>{t.loading=!1,a?d.z8.error(a):(d.z8.success("操作成功!"),e.value.updateFlag=Date.now())})).catch((e=>{t.loading=!1,d.z8.error("操作失败!")}))},s=()=>{t.showEdit=!1},i=()=>{t.currentItem.Name=t.currentItem.Name.replace(/^\s|\s$/g,""),t.currentItem.Name&&(t.loading=!0,(0,m.xc)({UserName:e.value.username,Group:t.currentItem}).then((a=>{t.loading=!1,a?d.z8.error(a):(d.z8.success("操作成功!"),t.showEdit=!1,e.value.updateFlag=Date.now())})).catch((e=>{t.loading=!1,d.z8.error("操作失败!")})))};return{state:t,handleAdd:a,handleDel:n,handleEditCancel:s,handleEditSubmit:i}}},v=a(89);const f=(0,v.Z)(h,[["render",c],["__scopeId","data-v-817294a2"]]);var g=f,w=a(7139);const k=e=>((0,l.dD)("data-v-72ffbc37"),e=e(),(0,l.Cn)(),e),y={class:"process-items-wrap flex flex-nowrap flex-column"},_={class:"head t-c flex"},C=k((()=>(0,l._)("span",{class:"flex-1"},null,-1))),x={class:"flex-1"},W={class:"prevs-wrap"},D=k((()=>(0,l._)("div",{class:"alert"},[(0,l._)("p",null,"1、黑名单优先"),(0,l._)("p",null,"2、支持进程名域名ip(支持掩码)"),(0,l._)("p",null,"3、进程域名后序截取判断")],-1))),b={style:{"padding-bottom":"1rem"}},V={class:"t-c",style:{"padding-bottom":"1rem"}},S={class:"t-c"};function I(e,t,a,n,o,s){const i=(0,l.up)("el-option"),u=(0,l.up)("el-select"),r=(0,l.up)("el-button"),c=(0,l.up)("el-table-column"),d=(0,l.up)("EditPen"),m=(0,l.up)("el-icon"),p=(0,l.up)("Delete"),h=(0,l.up)("el-popconfirm"),v=(0,l.up)("el-table"),f=(0,l.up)("el-input"),g=(0,l.up)("el-radio"),k=(0,l.up)("el-radio-group"),I=(0,l.up)("el-switch"),T=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.iD)("div",y,[(0,l._)("div",_,[(0,l.Wm)(u,{modelValue:n.state.group,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.group=e),placeholder:"选择一个分组",style:{width:"13rem"}},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.state.groups,(e=>((0,l.wg)(),(0,l.j4)(i,{key:e.ID,label:e.Name,value:e.ID},null,8,["label","value"])))),128))])),_:1},8,["modelValue"]),C,(0,l.Wm)(r,{onClick:t[1]||(t[1]=e=>n.handleAdd())},{default:(0,l.w5)((()=>[(0,l.Uk)("添加项")])),_:1})]),(0,l._)("div",x,[(0,l._)("div",W,[(0,l.Wm)(v,{data:n.state.list,size:"small",border:"",stripe:"",style:{width:"100%"},height:"50vh"},{default:(0,l.w5)((()=>[(0,l.Wm)(c,{prop:"Name",label:"名称"},{default:(0,l.w5)((e=>[(0,l._)("strong",{class:(0,w.C_)(`allow-type-${e.row.AllowType}`)},(0,w.zw)(e.row.Name),3)])),_:1}),(0,l.Wm)(c,{label:"操作",width:"110"},{default:(0,l.w5)((e=>[(0,l.Wm)(r,{size:"small",onClick:t=>n.handleAdd(e.row)},{default:(0,l.w5)((()=>[(0,l.Wm)(m,null,{default:(0,l.w5)((()=>[(0,l.Wm)(d)])),_:1})])),_:2},1032,["onClick"]),(0,l.Wm)(h,{title:"删除不可逆,是否确定?",onConfirm:t=>n.handleDel(e.row)},{reference:(0,l.w5)((()=>[(0,l.Wm)(r,{size:"small",type:"danger"},{default:(0,l.w5)((()=>[(0,l.Wm)(m,null,{default:(0,l.w5)((()=>[(0,l.Wm)(p)])),_:1})])),_:1})])),_:2},1032,["onConfirm"])])),_:1})])),_:1},8,["data"])])]),(0,l.Wm)(T,{title:""+(0==n.state.currentItem.ID?"添加项":"修改项"),"destroy-on-close":"",modelValue:n.state.showEdit,"onUpdate:modelValue":t[5]||(t[5]=e=>n.state.showEdit=e),center:"","close-on-click-modal":!1,"align-center":"",width:"80%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(r,{onClick:n.handleEditCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(r,{type:"success",plain:"",loading:n.state.loading,onClick:n.handleEditSubmit},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["loading","onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",null,[D,(0,l._)("div",b,[(0,l.Wm)(f,{modelValue:n.state.currentItem.Name,"onUpdate:modelValue":t[2]||(t[2]=e=>n.state.currentItem.Name=e),size:"large",placeholder:"进程 | 域名 | ip(支持掩码/32)"},null,8,["modelValue"])]),(0,l._)("div",V,[(0,l.Wm)(k,{modelValue:n.state.currentItem.DataType,"onUpdate:modelValue":t[3]||(t[3]=e=>n.state.currentItem.DataType=e)},{default:(0,l.w5)((()=>[(0,l.Wm)(g,{label:0},{default:(0,l.w5)((()=>[(0,l.Uk)("进程")])),_:1}),(0,l.Wm)(g,{label:1},{default:(0,l.w5)((()=>[(0,l.Uk)("域名")])),_:1}),(0,l.Wm)(g,{label:2},{default:(0,l.w5)((()=>[(0,l.Uk)("IP")])),_:1})])),_:1},8,["modelValue"])]),(0,l._)("div",S,[(0,l.Wm)(I,{modelValue:n.state.currentItem.AllowType,"onUpdate:modelValue":t[4]||(t[4]=e=>n.state.currentItem.AllowType=e),size:"large","active-text":"允许","inactive-text":"阻止","active-value":0,"inactive-value":1},null,8,["modelValue"])])])])),_:1},8,["title","modelValue"])])}var T={setup(){const e=(0,p.d)(),t=(0,o.qj)({loading:!1,group:0,currentItem:{ID:0,Name:"",AllowType:1,DataType:0},showEdit:!1,groups:(0,l.Fl)((()=>{let a=e.value.usernames[e.value.username];return a?(0==t.group&&a.Processs.length>0&&(t.group=a.Processs[0].ID),a.Processs):[]})),list:(0,l.Fl)((()=>{let e=t.groups.filter((e=>e.ID==t.group))[0];return e?e.List:[]}))});(0,l.YP)((()=>t.currentItem.Name),(()=>{a(t.currentItem.Name)}));const a=e=>{const a=/^.{0,}(\.exe)$/.test(e),l=/^((?:(?:25[0-5]|2[0-4]\d|[01]?\d?\d)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d?\d))(\/\d{1,})?$/.test(e);t.currentItem.DataType=a?0:l?2:1,l&&e.indexOf("/")<0&&(t.currentItem.Name=t.currentItem.Name+"/32")},n=e=>{e=e||{Name:"",ID:0,AllowType:1,DataType:0},t.currentItem.Name=e.Name,t.currentItem.ID=e.ID,t.currentItem.AllowType=e.AllowType,t.showEdit=!0},s=a=>{t.loading=!0,(0,m.sz)({UserName:e.value.username,GroupID:t.group,ID:a.ID}).then((a=>{t.loading=!1,a?d.z8.error(a):(d.z8.success("操作成功!"),e.value.updateFlag=Date.now())})).catch((e=>{t.loading=!1,d.z8.error("操作失败!")}))},i=()=>{t.showEdit=!1},u=()=>{t.currentItem.Name=t.currentItem.Name.replace(/^\s|\s$/g,""),t.currentItem.Name&&(t.loading=!0,(0,m.Az)({UserName:e.value.username,GroupID:t.group,Item:t.currentItem}).then((a=>{t.loading=!1,a?d.z8.error(a):(d.z8.success("操作成功!"),t.showEdit=!1,e.value.updateFlag=Date.now())})).catch((e=>{t.loading=!1,d.z8.error("操作失败!")})))};return{state:t,handleNameChange:a,handleAdd:n,handleDel:s,handleEditCancel:i,handleEditSubmit:u}}};const U=(0,v.Z)(T,[["render",I],["__scopeId","data-v-72ffbc37"]]);var N=U,j={props:["modelValue"],emits:["update:modelValue"],components:{Groups:g,Items:N},setup(e,{emit:t}){const a=(0,o.qj)({show:e.modelValue,loading:!1});(0,l.YP)((()=>a.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)}));const n=(0,p.d)();(0,l.bv)((()=>{n.value.updateFlag=Date.now()}));const s=()=>{a.show=!1};return{state:a,handleCancel:s}}};const z=(0,v.Z)(j,[["render",n]]);var M=z},4140:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return c}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("Umbrella"),u=(0,l.up)("el-icon"),r=(0,l.up)("el-button");return(0,l.wg)(),(0,l.j4)(r,{size:"small",plain:"",dark:"",onClick:n.handleRule},{default:(0,l.w5)((()=>[(0,l.Uk)("网络"),(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i)])),_:1})])),_:1},8,["onClick"])}var o=a(2115),s=a(2683),i={setup(){const e=(0,o.$)(),t=(0,s.d)(),a=()=>{e.value.hijack.devices=t.value.devices,e.value.hijack.showRules=!0};return{handleRule:a}}},u=a(89);const r=(0,u.Z)(i,[["render",n]]);var c=r},5914:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return j}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("Groups"),u=(0,l.up)("el-tab-pane"),r=(0,l.up)("Rule"),c=(0,l.up)("el-tabs"),d=(0,l.up)("el-button"),m=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(m,{class:"options",title:"限制组配置","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.show=e),center:"","close-on-click-modal":!1,"align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(d,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"])])),default:(0,l.w5)((()=>[(0,l.Wm)(c,{type:"border-card"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{label:"限制组"},{default:(0,l.w5)((()=>[(0,l.Wm)(i)])),_:1}),(0,l.Wm)(u,{label:"限制内容"},{default:(0,l.w5)((()=>[(0,l.Wm)(r)])),_:1})])),_:1})])),_:1},8,["modelValue"])}var o=a(4870);const s={class:"rule-items-wrap flex flex-nowrap flex-column"},i={class:"head t-c flex"},u={class:"flex-1"},r={class:"prevs-wrap"};function c(e,t,a,n,o,c){const d=(0,l.up)("el-button"),m=(0,l.up)("el-table-column"),p=(0,l.up)("EditPen"),h=(0,l.up)("el-icon"),v=(0,l.up)("Delete"),f=(0,l.up)("el-popconfirm"),g=(0,l.up)("el-table"),w=(0,l.up)("el-input"),k=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.iD)("div",s,[(0,l._)("div",i,[(0,l.Wm)(d,{onClick:t[0]||(t[0]=e=>n.handleAdd())},{default:(0,l.w5)((()=>[(0,l.Uk)("添加项")])),_:1})]),(0,l._)("div",u,[(0,l._)("div",r,[(0,l.Wm)(g,{data:n.state.list,size:"small",border:"",stripe:"",style:{width:"100%"},height:"50vh"},{default:(0,l.w5)((()=>[(0,l.Wm)(m,{prop:"Name",label:"名称"}),(0,l.Wm)(m,{label:"操作",width:"110"},{default:(0,l.w5)((e=>[e.row.ID>1?((0,l.wg)(),(0,l.iD)(l.HY,{key:0},[(0,l.Wm)(d,{size:"small",onClick:t=>n.handleAdd(e.row)},{default:(0,l.w5)((()=>[(0,l.Wm)(h,null,{default:(0,l.w5)((()=>[(0,l.Wm)(p)])),_:1})])),_:2},1032,["onClick"]),(0,l.Wm)(f,{title:"删除不可逆,是否确定?",onConfirm:t=>n.handleDel(e.row)},{reference:(0,l.w5)((()=>[(0,l.Wm)(d,{size:"small",type:"danger"},{default:(0,l.w5)((()=>[(0,l.Wm)(h,null,{default:(0,l.w5)((()=>[(0,l.Wm)(v)])),_:1})])),_:1})])),_:2},1032,["onConfirm"])],64)):(0,l.kq)("",!0)])),_:1})])),_:1},8,["data"])])]),(0,l.Wm)(k,{title:""+(0==n.state.currentItem.ID?"添加项":"修改项"),"destroy-on-close":"",modelValue:n.state.showEdit,"onUpdate:modelValue":t[2]||(t[2]=e=>n.state.showEdit=e),center:"","close-on-click-modal":!1,"align-center":"",width:"80%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(d,{onClick:n.handleEditCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(d,{type:"success",plain:"",loading:n.state.loading,onClick:n.handleEditSubmit},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["loading","onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",null,[(0,l.Wm)(w,{modelValue:n.state.currentItem.Name,"onUpdate:modelValue":t[1]||(t[1]=e=>n.state.currentItem.Name=e),size:"large",placeholder:"分组名称"},null,8,["modelValue"])])])),_:1},8,["title","modelValue"])])}var d=a(7178),m=a(2331),p=a(2683),h={setup(){const e=(0,p.d)(),t=(0,o.qj)({loading:!1,currentItem:{ID:0,Name:""},showEdit:!1,list:(0,l.Fl)((()=>{let a=e.value.usernames[e.value.username];return a?(0==t.group&&a.Rules.length>0&&(t.group=a.Rules[0].ID),a.Rules):[]}))}),a=e=>{e=e||{Name:"",ID:0},t.currentItem.Name=e.Name,t.currentItem.ID=e.ID,t.showEdit=!0},n=a=>{t.loading=!0,(0,m.U4)({UserName:e.value.username,ID:a.ID}).then((a=>{t.loading=!1,a?d.z8.error(a):(d.z8.success("操作成功!"),e.value.updateFlag=Date.now())})).catch((e=>{t.loading=!1,d.z8.error("操作失败!")}))},s=()=>{t.showEdit=!1},i=()=>{t.currentItem.Name=t.currentItem.Name.replace(/^\s|\s$/g,""),t.currentItem.Name&&(t.loading=!0,(0,m.HP)({UserName:e.value.username,Rule:t.currentItem}).then((a=>{t.loading=!1,a?d.z8.error(a):(d.z8.success("操作成功!"),t.showEdit=!1,e.value.updateFlag=Date.now())})).catch((e=>{t.loading=!1,d.z8.error("操作失败!")})))};return{state:t,handleAdd:a,handleDel:n,handleEditCancel:s,handleEditSubmit:i}}},v=a(89);const f=(0,v.Z)(h,[["render",c],["__scopeId","data-v-4ed8d541"]]);var g=f;const w=e=>((0,l.dD)("data-v-726142e4"),e=e(),(0,l.Cn)(),e),k={class:"command-wrap flex flex-column"},y={class:"head t-c flex"},_=w((()=>(0,l._)("div",{class:"flex-1"},null,-1))),C={class:"body flex flex-1"},x={class:"private"},W=w((()=>(0,l._)("div",{class:"flex-1"},null,-1))),D={class:"public"};function b(e,t,a,n,o,s){const i=(0,l.up)("el-option"),u=(0,l.up)("el-select"),r=(0,l.up)("el-button"),c=(0,l.up)("CheckBoxWrap");return(0,l.wg)(),(0,l.iD)("div",k,[(0,l._)("div",y,[(0,l._)("div",null,[(0,l.Wm)(u,{modelValue:n.state.group,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.group=e),placeholder:"选择一个分组",style:{width:"13rem"}},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.state.groups,(e=>((0,l.wg)(),(0,l.j4)(i,{key:e.ID,label:e.Name,value:e.ID},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])]),_,(0,l._)("div",null,[(0,l.Wm)(r,{onClick:t[1]||(t[1]=e=>n.handleSave()),loading:n.state.loading},{default:(0,l.w5)((()=>[(0,l.Uk)("保存选择")])),_:1},8,["loading"])])]),(0,l._)("div",C,[(0,l._)("div",x,[(0,l.Wm)(c,{ref:"privateProcess",data:n.state.privateProcess,items:n.state.privateProcessItems,label:"ID",text:"Name",title:"私有程序组"},null,8,["data","items"])]),W,(0,l._)("div",D,[(0,l.Wm)(c,{ref:"publicProcess",data:n.state.publicProcess,items:n.state.publicProcessItems,label:"ID",text:"Name",title:"公共程序组"},null,8,["data","items"])])])])}var V=a(1443),S={components:{CheckBoxWrap:V.Z},setup(){const e=(0,p.d)(),t=(0,l.Fl)((()=>e.value.usernames[e.value.username])),a=e.value.publicUserName,n=(0,l.Fl)((()=>e.value.usernames[a])),s=n.value&&e.value.username!=a,i=(0,o.qj)({loading:!1,group:0,groups:(0,l.Fl)((()=>t.value?(0==i.group&&t.value.Rules.length>0&&(i.group=t.value.Rules[0].ID),t.value.Rules):[])),rule:(0,l.Fl)((()=>{if(t){let e=t.value.Rules.filter((e=>e.ID==i.group))[0];if(e)return e}return{ID:0,Name:"",PrivateProcesss:[],PublicProcesss:[]}})),privateProcess:(0,l.Fl)((()=>t.value?t.value.Processs:[])),privateProcessItems:(0,l.Fl)((()=>t.value?t.value.Processs.filter((e=>i.rule.PrivateProcesss.indexOf(e.ID)>=0)):[])),publicProcess:(0,l.Fl)((()=>s?n.value.Processs:[])),publicProcessItems:(0,l.Fl)((()=>s?n.value.Processs.filter((e=>i.rule.PublicProcesss.indexOf(e.ID)>=0)):[]))});(0,l.YP)((()=>i.show),(e=>{e||setTimeout((()=>{emit("update:modelValue",e)}),300)}));const u=(0,o.iH)(null),r=(0,o.iH)(null),c=()=>{let a=t.value.Rules.filter((e=>e.ID==i.group))[0];a?(a.PrivateProcesss=u.value.getData().map((e=>e.ID)),a.PublicProcesss=r.value.getData().map((e=>e.ID)),i.loading=!0,(0,m.HP)({UserName:e.value.username,Rule:a}).then((t=>{i.loading=!1,t?d.z8.error(t):(e.value.updateFlag=Date.now(),d.z8.success("操作成功"))})).catch((()=>{i.loading=!1,d.z8.error("操作失败")}))):d.z8.error("未选择任何限制分组")};return{state:i,handleSave:c,privateProcess:u,publicProcess:r}}};const I=(0,v.Z)(S,[["render",b],["__scopeId","data-v-726142e4"]]);var T=I,U={props:["modelValue"],emits:["update:modelValue"],components:{Groups:g,Rule:T},setup(e,{emit:t}){const a=(0,o.qj)({show:e.modelValue});(0,l.YP)((()=>a.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)}));const n=()=>{a.show=!1};return{state:a,handleCancel:n}}};const N=(0,v.Z)(U,[["render",n]]);var j=N},6159:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return p}});var l=a(3396),n=a.p+"img/keyboard.0621787b.svg";const o=e=>((0,l.dD)("data-v-54274fe8"),e=e(),(0,l.Cn)(),e),s=o((()=>(0,l._)("img",{src:n,width:"20"},null,-1))),i=[s];function u(e,t,a,n,o,s){return(0,l.wg)(),(0,l.iD)("div",null,[(0,l._)("a",{href:"javascript:;",onClick:t[0]||(t[0]=(...e)=>n.handleKeyBoard&&n.handleKeyBoard(...e))},i)])}var r=a(2115),c={props:["data"],setup(e){const t=(0,r.$)(),a=()=>{t.value.keyboard.devices=[e.data],t.value.keyboard.showKeyBoard=!0};return{handleKeyBoard:a}}},d=a(89);const m=(0,d.Z)(c,[["render",u],["__scopeId","data-v-54274fe8"]]);var p=m},1296:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return v}});var l=a(3396);const n={class:"item"},o={class:"subitem"},s=(0,l._)("span",{class:"label"},"安全选项",-1);function i(e,t,a,i,u,r){const c=(0,l.up)("el-button");return(0,l.wg)(),(0,l.iD)("div",n,[(0,l._)("div",o,[s,(0,l.Wm)(c,{onClick:i.handleSas},{default:(0,l.w5)((()=>[(0,l.Uk)("Ctrl+Alt+Delete")])),_:1},8,["onClick"])])])}var u=a(6e3),r=a(7178),c=a(2115),d=a(4316),m={setup(){const e=(0,c.$)(),t=()=>{a("确定发送ctrl+alt+delete吗",d.P)},a=(t,a)=>{u.T.confirm(t,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{const t=e.value.command.devices.map((e=>e.MachineName));a(t).then((e=>{e?r.z8.success("操作成功"):r.z8.error("操作失败")})).catch((()=>{r.z8.error("操作失败")}))})).catch((()=>{}))};return{pluginState:e,handleSas:t}}},p=a(89);const h=(0,p.Z)(m,[["render",i]]);var v=h},9815:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return w}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("KeyBoard");return(0,l.wg)(),(0,l.iD)("div",null,[n.pluginState.keyboard.showKeyBoard?((0,l.wg)(),(0,l.j4)(i,{key:0,modelValue:n.pluginState.keyboard.showKeyBoard,"onUpdate:modelValue":t[0]||(t[0]=e=>n.pluginState.keyboard.showKeyBoard=e)},null,8,["modelValue"])):(0,l.kq)("",!0)])}var o=a(2115),s=a(7139);const i={class:"keyboard-wrap"},u=["onTouchstart","onTouchend"];function r(e,t,a,n,o,r){const c=(0,l.up)("Close"),d=(0,l.up)("el-icon");return(0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("a",{href:"javascript:;",class:"close",onClick:t[0]||(t[0]=(...e)=>n.handleClose&&n.handleClose(...e))},[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l.Wm)(c)])),_:1})]),(0,l._)("h3",null,(0,s.zw)(n.state.name),1),(0,l._)("ul",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.state.list,((e,t)=>((0,l.wg)(),(0,l.iD)("li",{key:t,class:"flex"},[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e,((e,t)=>((0,l.wg)(),(0,l.iD)("div",{key:t,class:"flex-1 key",style:(0,s.j5)(e.style)},[(0,l._)("div",{class:"inner",onTouchstart:t=>n.handleKeyDown(e),onTouchend:t=>n.handleKeyUp(e)},(0,s.zw)(e.text),41,u)],4)))),128))])))),128))])])}var c=a(4870),d=a(4316),m={setup(){const e=(0,o.$)(),t=(0,c.qj)({name:(0,l.Fl)((()=>e.value.keyboard.devices.length>0?e.value.keyboard.devices[0].MachineName:"unknow")),names:(0,l.Fl)((()=>e.value.keyboard.devices.map((e=>e.MachineName)))),list:[[{text:"1",key:49},{text:"2",key:50},{text:"3",key:51},{text:"4",key:52},{text:"5",key:53}],[{text:"6",key:54},{text:"7",key:55},{text:"8",key:56},{text:"9",key:57},{text:"0",key:48}],[{text:"Esc",style:"flex:0.8",key:27},{text:"F1",key:112},{text:"F4",key:115},{text:"F5",key:116},{text:"F12",key:123},{text:"-",key:109},{text:"+",key:107}],[{text:"Tab",key:9},{text:"Q",key:81},{text:"W",key:87},{text:"E",key:69},{text:"Y",key:89},{text:"Ins",key:45},{text:"Back",key:8}],[{text:"Cap",key:20},{text:"A",key:65},{text:"S",key:83},{text:"D",key:68},{text:"L",key:76},{text:"Enter",key:13}],[{text:"Shift",style:"flex:1.5",key:160},{text:"Z",key:90},{text:"X",key:88},{text:"C",key:67},{text:"V",key:86},{text:"Num",key:144}],[{text:"Ctrl",key:162},{text:"Win",key:91},{text:"Alt",key:18},{text:"Space",key:32}]]}),a=e=>{(0,d.d)(t.names,e.key,0)},n=e=>{(0,d.d)(t.names,e.key,2)},s=()=>{e.value.keyboard.showKeyBoard=!1};return{state:t,handleKeyDown:a,handleKeyUp:n,handleClose:s}}},p=a(89);const h=(0,p.Z)(m,[["render",r],["__scopeId","data-v-359681c4"]]);var v=h,f={components:{KeyBoard:v},setup(){const e=(0,o.$)();return{pluginState:e}}};const g=(0,p.Z)(f,[["render",n]]);var w=g},1811:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return m}});var l=a(3396),n=a(7139);const o={href:"javascript:;"},s={class:"light-value"};function i(e,t,a,i,u,r){const c=(0,l.up)("Sunny"),d=(0,l.up)("el-icon");return(0,l.wg)(),(0,l.iD)("a",o,[(0,l._)("span",{class:"light",onClick:t[0]||(t[0]=(...e)=>i.handleLight&&i.handleLight(...e))},[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l.Wm)(c)])),_:1}),(0,l._)("div",{class:"light-bg",style:(0,n.j5)({height:`${i.data.Light.Value}%`})},[(0,l.Wm)(d,{class:"value"},{default:(0,l.w5)((()=>[(0,l.Wm)(c)])),_:1})],4)]),(0,l._)("p",s,(0,n.zw)(i.data.Light.Value),1)])}var u=a(2115),r={props:["data"],setup(e){const t=(0,u.$)(),a=()=>{t.value.light.devices=[e.data],t.value.light.showLightSingle=!0};return{data:e.data,handleLight:a}}},c=a(89);const d=(0,c.Z)(r,[["render",i],["__scopeId","data-v-79103ff6"]]);var m=d},1938:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return c}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("Sunny"),u=(0,l.up)("el-icon"),r=(0,l.up)("el-button");return(0,l.wg)(),(0,l.j4)(r,{size:"small",plain:"",dark:"",onClick:n.handleLight},{default:(0,l.w5)((()=>[(0,l.Uk)("亮度 "),(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i)])),_:1})])),_:1},8,["onClick"])}var o=a(2683),s=a(2115),i={setup(){const e=(0,s.$)(),t=(0,o.d)(),a=()=>{e.value.light.devices=t.value.devices,e.value.light.showLight=!0};return{handleLight:a}}},u=a(89);const r=(0,u.Z)(i,[["render",n]]);var c=r},9107:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return O}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("Light"),u=(0,l.up)("LightSingle");return(0,l.wg)(),(0,l.iD)("div",null,[n.pluginState.light.showLight?((0,l.wg)(),(0,l.j4)(i,{key:0,modelValue:n.pluginState.light.showLight,"onUpdate:modelValue":t[0]||(t[0]=e=>n.pluginState.light.showLight=e)},null,8,["modelValue"])):(0,l.kq)("",!0),n.pluginState.light.showLightSingle?((0,l.wg)(),(0,l.j4)(u,{key:1,modelValue:n.pluginState.light.showLightSingle,"onUpdate:modelValue":t[1]||(t[1]=e=>n.pluginState.light.showLightSingle=e)},null,8,["modelValue"])):(0,l.kq)("",!0)])}var o=a(2115),s=a(7139);const i=e=>((0,l.dD)("data-v-244e18ca"),e=e(),(0,l.Cn)(),e),u={class:"command-wrap flex"},r={class:"items"},c={class:"name"},d={class:"light"},m={class:"value"},p=i((()=>(0,l._)("div",{class:"flex-1"},null,-1))),h={class:"commands"},v={class:"slider-wrap flex flex-column"},f={class:"silder flex flex-1"},g={class:"flex-1"};function w(e,t,a,n,o,i){const w=(0,l.up)("Sunny"),k=(0,l.up)("el-icon"),y=(0,l.up)("CheckBoxWrap"),_=(0,l.up)("el-slider"),C=(0,l.up)("PrevBoxWrap"),x=(0,l.up)("el-button"),W=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(W,{class:"options",title:"调节亮度","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[1]||(t[1]=e=>n.state.show=e),center:"","align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(x,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",u,[(0,l._)("div",r,[(0,l.Wm)(y,{ref:"items",data:n.globalData.devices,items:n.state.items,label:"MachineName",title:"全选"},{name:(0,l.w5)((e=>[(0,l._)("span",null,[(0,l._)("span",c,(0,s.zw)(e.item.MachineName),1),(0,l._)("strong",d,[(0,l.Wm)(k,null,{default:(0,l.w5)((()=>[(0,l.Wm)(w)])),_:1}),(0,l._)("strong",m,(0,s.zw)(e.item.Light.Value?Math.floor(e.item.Light.Value):e.item.Light.Value)+"%",1)])])])),_:1},8,["data","items"])]),p,(0,l._)("div",h,[(0,l.Wm)(C,{ref:"commands",title:"调节亮度"},{wrap:(0,l.w5)((()=>[(0,l._)("div",v,[(0,l._)("div",f,[(0,l._)("div",g,[(0,l.Wm)(_,{type:"success",onChange:n.handleChangeLight,modelValue:n.state.light,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.light=e),vertical:"",height:"100%"},null,8,["onChange","modelValue"])])])])])),_:1},512)])])])),_:1},8,["modelValue"])}var k=a(4870),y=a(1443),_=a(5291),C=a(7178),x=a(2843);const W=(e,t)=>(0,x.gQ)("light/update",{names:e,value:t});var D=a(2683),b={props:["modelValue"],emits:["update:modelValue"],components:{CheckBoxWrap:y.Z,PrevBoxWrap:_.Z},setup(e,{emit:t}){const a=(0,D.d)(),n=(0,o.$)(),s=(0,k.qj)({show:e.modelValue,items:(0,l.Fl)((()=>n.value.light.devices)),mute:!1,loading:!1,light:0});(0,l.YP)((()=>s.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)}));const i=()=>{s.show=!1},u=(0,k.iH)(null),r=()=>{let e=u.value.getData();0!=e.length?W(e.map((e=>e.MachineName)),s.light):C.z8.error("未选择任何设备")};return{state:s,globalData:a,devices:u,handleCancel:i,handleChangeLight:r}}},V=a(89);const S=(0,V.Z)(b,[["render",w],["__scopeId","data-v-244e18ca"]]);var I=S;const T={class:"slider-wrap flex flex-column"},U={class:"silder flex flex-1"},N={class:"flex-1"};function j(e,t,a,n,o,s){const i=(0,l.up)("el-slider"),u=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(u,{title:"调节亮度","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[1]||(t[1]=e=>n.state.show=e),center:"","align-center":"",width:"94%"},{default:(0,l.w5)((()=>[(0,l._)("div",T,[(0,l._)("div",U,[(0,l._)("div",N,[(0,l.Wm)(i,{onChange:n.handleChangeLight,modelValue:n.state.light,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.light=e)},null,8,["onChange","modelValue"])])])])])),_:1},8,["modelValue"])}var z={props:["modelValue","items"],emits:["update:modelValue"],components:{},setup(e,{emit:t}){const a=(0,D.d)(),n=(0,o.$)(),s=(0,k.qj)({show:e.modelValue,items:(0,l.Fl)((()=>n.value.light.devices)),loading:!1,light:n.value.light.devices[0].Light.Value});(0,l.YP)((()=>s.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)}));const i=()=>{s.show=!1},u=()=>{W(s.items.map((e=>e.MachineName)),s.light)};return{state:s,globalData:a,handleCancel:i,handleChangeLight:u}}};const M=(0,V.Z)(z,[["render",j],["__scopeId","data-v-6a9d819b"]]);var P=M,L={components:{Light:I,LightSingle:P},setup(){const e=(0,o.$)();return{pluginState:e}}};const R=(0,V.Z)(L,[["render",n]]);var O=R},1622:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return g}});var l=a(3396);const n={class:"item"},o={class:"subitem"},s=(0,l._)("span",{class:"label"},"屏幕锁定",-1),i={class:"subitem"},u=(0,l._)("span",{class:"label"},"系统锁定",-1);function r(e,t,a,r,c,d){const m=(0,l.up)("el-button");return(0,l.wg)(),(0,l.iD)("div",n,[(0,l._)("div",o,[s,(0,l.Wm)(m,{onClick:r.handleLockScreen},{default:(0,l.w5)((()=>[(0,l.Uk)("锁定")])),_:1},8,["onClick"]),(0,l.Wm)(m,{onClick:r.handleUnLockScreen},{default:(0,l.w5)((()=>[(0,l.Uk)("解锁")])),_:1},8,["onClick"])]),(0,l._)("div",i,[u,(0,l.Wm)(m,{onClick:r.handleLockSystem},{default:(0,l.w5)((()=>[(0,l.Uk)("锁定(WIN+L)")])),_:1},8,["onClick"])])])}var c=a(6e3),d=a(7178),m=a(2115),p=a(3327),h={setup(){const e=(0,m.$)(),t=()=>{n("确定锁定屏幕吗?",p.m,!0)},a=()=>{n("确定解锁屏幕吗?",p.m,!1)},l=()=>{n("确定解锁系统吗?",p.H,!0)},n=(t,a,l)=>{c.T.confirm(t,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{const t=e.value.command.devices.map((e=>e.MachineName));a(t,l).then((e=>{e?d.z8.success("操作成功"):d.z8.error("操作失败")})).catch((()=>{d.z8.error("操作失败")}))})).catch((()=>{}))};return{pluginState:e,handleLockScreen:t,handleUnLockScreen:a,handleLockSystem:l}}},v=a(89);const f=(0,v.Z)(h,[["render",r]]);var g=f},3937:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return m}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("el-switch"),u=(0,l.up)("el-col");return(0,l.wg)(),(0,l.j4)(u,{span:3},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{class:"llock",size:"small",onClick:n.handleLock,"model-value":n.data.LLock.LockScreen,"inline-prompt":"","active-text":"锁屏","inactive-text":"锁屏"},null,8,["onClick","model-value"])])),_:1})}var o=a(3327),s=a(2115),i=a(6e3),u=a(7178),r={sort:2,props:["data"],setup(e){(0,s.$)();const t=()=>{let t=e.data.LLock.LockScreen?"确定解除锁屏吗?":"确定开启锁屏吗?";i.T.confirm(t,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{(0,o.m)([e.data.MachineName],!e.data.LLock.LockScreen).then((e=>{e?u.z8.success("操作成功"):u.z8.error("操作失败")})).catch((()=>{u.z8.error("操作失败")}))})).catch((()=>{}))};return{data:e.data,handleLock:t}}},c=a(89);const d=(0,c.Z)(r,[["render",n],["__scopeId","data-v-5b7c10b5"]]);var m=d},6353:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return r}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("Bell"),u=(0,l.up)("el-icon");return(0,l.wg)(),(0,l.iD)("a",{href:"javascript:;",onClick:t[0]||(t[0]=(...e)=>n.handleMessage&&n.handleMessage(...e))},[(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i)])),_:1})])}var o=a(2115),s={props:["data"],setup(e){const t=(0,o.$)(),a=()=>{t.value.message.devices=[e.data],t.value.message.showMessage=!0};return{handleMessage:a}}},i=a(89);const u=(0,i.Z)(s,[["render",n]]);var r=u},6980:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return c}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("Bell"),u=(0,l.up)("el-icon"),r=(0,l.up)("el-button");return(0,l.wg)(),(0,l.j4)(r,{size:"small",plain:"",dark:"",onClick:n.handleMessage},{default:(0,l.w5)((()=>[(0,l.Uk)("提醒"),(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i)])),_:1})])),_:1},8,["onClick"])}var o=a(2683),s=a(2115),i={setup(){const e=(0,s.$)(),t=(0,o.d)(),a=()=>{e.value.message.devices=t.value.devices,e.value.message.showMessage=!0};return{handleMessage:a}}},u=a(89);const r=(0,u.Z)(i,[["render",n]]);var c=r},2571:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return I}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("ChooseDig");return(0,l.wg)(),(0,l.iD)("div",null,[n.pluginState.message.showMessage?((0,l.wg)(),(0,l.j4)(i,{key:0,modelValue:n.pluginState.message.showMessage,"onUpdate:modelValue":t[0]||(t[0]=e=>n.pluginState.message.showMessage=e)},null,8,["modelValue"])):(0,l.kq)("",!0)])}var o=a(2115);const s=e=>((0,l.dD)("data-v-34040146"),e=e(),(0,l.Cn)(),e),i={class:"command-wrap flex"},u={class:"items"},r=s((()=>(0,l._)("div",{class:"flex-1"},null,-1))),c={class:"prevs-wrap flex flex-column flex-nowrap"},d={class:"prevs"},m=s((()=>(0,l._)("div",{class:"flex-1"},null,-1))),p={class:"times"},h={class:"prev"};function v(e,t,a,n,o,s){const v=(0,l.up)("CheckBoxWrap"),f=(0,l.up)("PrevBoxWrap"),g=(0,l.up)("el-input"),w=(0,l.up)("el-button"),k=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(k,{class:"options",title:"发送提醒","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[2]||(t[2]=e=>n.state.show=e),center:"","align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(w,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(w,{type:"success",plain:"",loading:n.state.loading,onClick:n.handleSubmit},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["loading","onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",i,[(0,l._)("div",u,[(0,l.Wm)(v,{ref:"devices",data:n.globalData.devices,items:n.state.items,label:"MachineName",title:"选择设备"},null,8,["data","items"])]),r,(0,l._)("div",c,[(0,l._)("div",d,[(0,l.Wm)(f,{ref:"prevs",data:n.state.prevs,onPrev:n.handlePrev,title:"快捷短语"},null,8,["data","onPrev"])]),m,(0,l._)("div",null,[(0,l._)("div",p,[(0,l.Wm)(g,{modelValue:n.state.sec,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.sec=e),size:"large"},{append:(0,l.w5)((()=>[(0,l.Uk)("秒钟")])),_:1},8,["modelValue"])]),(0,l._)("div",h,[(0,l.Wm)(g,{modelValue:n.state.prev,"onUpdate:modelValue":t[1]||(t[1]=e=>n.state.prev=e),type:"textarea",resize:"none",placeholder:"输入提醒消息"},null,8,["modelValue"])])])])])])),_:1},8,["modelValue"])}a(7658);var f=a(4870),g=a(1443),w=a(5291),k=a(7178),y=a(6e3),_=a(9418),C=a(2683),x={props:["modelValue"],emits:["update:modelValue"],components:{CheckBoxWrap:g.Z,PrevBoxWrap:w.Z},setup(e,{emit:t}){const a=(0,C.d)(),n=(0,o.$)(),s=(0,f.qj)({show:e.modelValue,items:(0,l.Fl)((()=>n.value.message.devices)),prevs:["请注意上课纪律!","请勿玩游戏!","请勿大声喧哗!"],sec:10,prev:"",loading:!1});try{1==n.value.message.devices.length&&n.value.message.devices[0].Share.UserName.Value&&s.prevs.push(`${n.value.message.devices[0].Share.UserName.Value}】请注意上课纪律!`)}catch(m){}(0,l.YP)((()=>s.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)}));const i=e=>{s.prev=e},u=(0,f.iH)(null),r=(0,f.iH)(null),c=()=>{let e=u.value.getData();0!=e.length?0!=s.prev.length?y.T.confirm("是否确定发送消息?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{s.loading=!0,(0,_.G)(e.map((e=>e.MachineName)),[`start message.win.exe "${s.prev}" ${s.sec}`]).then((e=>{e?k.z8.success("操作成功"):k.z8.error("操作失败"),s.loading=!1})).catch((()=>{s.loading=!1,k.z8.error("操作失败")}))})).catch((()=>{})):k.z8.error("未填写消息"):k.z8.error("未选择任何设备")},d=()=>{s.show=!1};return{state:s,globalData:a,devices:u,prevs:r,handleSubmit:c,handleCancel:d,handlePrev:i}}},W=a(89);const D=(0,W.Z)(x,[["render",v],["__scopeId","data-v-34040146"]]);var b=D,V={components:{ChooseDig:b},setup(){const e=(0,o.$)();return{pluginState:e}}};const S=(0,W.Z)(V,[["render",n]]);var I=S},6744:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return r}});var l=a(3396),n=a(7139);function o(e,t,a,o,s,i){const u=(0,l.up)("el-col");return(0,l.wg)(),(0,l.j4)(u,{span:6,class:"time"},{default:(0,l.w5)((()=>[(0,l._)("span",null,"fps : "+(0,n.zw)(o.data.Report.fps)+" 、 "+(0,n.zw)(o.data.Report.ping)+"ms",1)])),_:1})}var s={sort:-1,props:["data"],setup(e){return{data:e.data}}},i=a(89);const u=(0,i.Z)(s,[["render",o],["__scopeId","data-v-51edd8bd"]]);var r=u},1274:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return d}});var l=a(3396);const n=e=>((0,l.dD)("data-v-3ab1cd5b"),e=e(),(0,l.Cn)(),e),o=n((()=>(0,l._)("span",null,"设置",-1)));function s(e,t,a,n,s,i){const u=(0,l.up)("Help"),r=(0,l.up)("el-icon");return(0,l.wg)(),(0,l.iD)("a",{href:"javascript:;",onClick:t[0]||(t[0]=(...e)=>n.handleSetting&&n.handleSetting(...e))},[(0,l.Wm)(r,null,{default:(0,l.w5)((()=>[(0,l.Wm)(u)])),_:1}),o])}var i=a(2115),u={sort:0,setup(){const e=(0,i.$)(),t=()=>{e.value.setting.showSetting=!0};return{handleSetting:t}}},r=a(89);const c=(0,r.Z)(u,[["render",s],["__scopeId","data-v-3ab1cd5b"]]);var d=c},5975:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return y}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("ChooseDig");return(0,l.wg)(),(0,l.iD)("div",null,[n.pluginState.setting.showSetting?((0,l.wg)(),(0,l.j4)(i,{key:0,modelValue:n.pluginState.setting.showSetting,"onUpdate:modelValue":t[0]||(t[0]=e=>n.pluginState.setting.showSetting=e)},null,8,["modelValue"])):(0,l.kq)("",!0)])}var o=a(2115);const s={class:"setting-wrap"};function i(e,t,a,n,o,i){const u=(0,l.up)("el-input-number"),r=(0,l.up)("el-form-item"),c=(0,l.up)("el-checkbox"),d=(0,l.up)("el-form"),m=(0,l.up)("el-button"),p=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(p,{title:"设置","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[6]||(t[6]=e=>n.state.show=e),center:"","close-on-click-modal":!1,"align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(m,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(m,{type:"success",plain:"",loading:n.state.loading,onClick:n.handleSubmit},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["loading","onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",s,[(0,l.Wm)(d,{ref:"ruleFormRef",model:n.state.form,rules:n.state.rules,"label-width":"100px"},{default:(0,l.w5)((()=>[(0,l.Wm)(r,{label:"报告延迟(ms)",prop:"ReportDelay"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{size:"large",modelValue:n.state.form.ReportDelay,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.form.ReportDelay=e),min:17,max:1e3,"controls-position":"right"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(r,{label:"截屏延迟(ms)",prop:"ScreenDelay"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{size:"large",modelValue:n.state.form.ScreenDelay,"onUpdate:modelValue":t[1]||(t[1]=e=>n.state.form.ScreenDelay=e),min:17,max:1e3,"controls-position":"right"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(r,{label:"截屏缩放",prop:"ScreenScale"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{size:"large",modelValue:n.state.form.ScreenScale,"onUpdate:modelValue":t[2]||(t[2]=e=>n.state.form.ScreenScale=e),min:.1,max:1,step:.1,"controls-position":"right"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(r,{label:"保存配置",prop:"SaveSetting"},{default:(0,l.w5)((()=>[(0,l.Wm)(c,{modelValue:n.state.form.SaveSetting,"onUpdate:modelValue":t[3]||(t[3]=e=>n.state.form.SaveSetting=e)},{default:(0,l.w5)((()=>[(0,l.Uk)("保存限制配置")])),_:1},8,["modelValue"])])),_:1}),(0,l.Wm)(r,{label:"黑屏唤醒",prop:"WakeUp"},{default:(0,l.w5)((()=>[(0,l.Wm)(c,{modelValue:n.state.form.WakeUp,"onUpdate:modelValue":t[4]||(t[4]=e=>n.state.form.WakeUp=e)},{default:(0,l.w5)((()=>[(0,l.Uk)("黑屏时唤醒")])),_:1},8,["modelValue"])])),_:1}),(0,l.Wm)(r,{label:"声音峰值",prop:"VolumeMasterPeak"},{default:(0,l.w5)((()=>[(0,l.Wm)(c,{modelValue:n.state.form.VolumeMasterPeak,"onUpdate:modelValue":t[5]||(t[5]=e=>n.state.form.VolumeMasterPeak=e)},{default:(0,l.w5)((()=>[(0,l.Uk)("报告声音峰值")])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model","rules"])])])),_:1},8,["modelValue"])}var u=a(4870),r=a(1443),c=a(2843);const d=()=>(0,c.gQ)("setting/get"),m=e=>(0,c.gQ)("setting/set",e);var p=a(7178),h={props:["modelValue"],emits:["update:modelValue"],components:{CheckBoxWrap:r.Z},setup(e,{emit:t}){const a=(0,u.qj)({show:e.modelValue,loading:!1,rules:[],form:{ReportDelay:0,ScreenDelay:0,ScreenScale:0,SaveSetting:!0,WakeUp:!0,VolumeMasterPeak:!0}});(0,l.YP)((()=>a.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)}));const n=()=>{d().then((e=>{a.form.ReportDelay=e.ReportDelay,a.form.ScreenDelay=e.ScreenDelay,a.form.ScreenScale=e.ScreenScale,a.form.SaveSetting=e.SaveSetting,a.form.WakeUp=e.WakeUp,a.form.VolumeMasterPeak=e.VolumeMasterPeak})).catch((()=>{}))},o=()=>{a.show=!1},s=(0,u.iH)(null),i=()=>{a.loading=!0,m(a.form).then((e=>{a.loading=!1,e?(p.z8.success("操作成功!"),a.show=!1):p.z8.error("操作失败!")})).catch((()=>{a.loading=!1,p.z8.error("操作失败!")}))};return(0,l.bv)((()=>{n()})),{state:a,devices:s,handleCancel:o,handleSubmit:i}}},v=a(89);const f=(0,v.Z)(h,[["render",i],["__scopeId","data-v-398854f9"]]);var g=f,w={components:{ChooseDig:g},setup(){const e=(0,o.$)();return{pluginState:e}}};const k=(0,v.Z)(w,[["render",n]]);var y=k},4704:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return W}});var l=a(3396),n=a(7139);const o=e=>((0,l.dD)("data-v-131f0fcf"),e=e(),(0,l.Cn)(),e),s={key:0,class:"share-lock-wrap"},i={class:"inner"},u={class:"stars"},r={class:"line flex flex-nowrap"},c=o((()=>(0,l._)("span",null,"读题分析",-1))),d={class:"line flex flex-nowrap"},m=o((()=>(0,l._)("span",null,"程序设计",-1))),p={class:"line flex flex-nowrap"},h=o((()=>(0,l._)("span",null,"数据校验",-1)));function v(e,t,a,o,v,f){const g=(0,l.up)("el-checkbox"),w=(0,l.up)("el-rate"),k=(0,l.up)("el-button"),y=(0,l.up)("el-popconfirm");return"ask"==o.data.Share.Lock.Value.val?((0,l.wg)(),(0,l.iD)("div",s,[(0,l._)("div",i,[(0,l._)("h5",null,[(0,l._)("span",null,"【"+(0,n.zw)(o.data.Share.Lock.TypeText)+"】",1),"remark-block"==o.data.Share.Lock.Value.type||"remark-cpp"==o.data.Share.Lock.Value.type?((0,l.wg)(),(0,l.j4)(g,{key:0,modelValue:o.data.Share.Lock.Value.notify,"onUpdate:modelValue":t[0]||(t[0]=e=>o.data.Share.Lock.Value.notify=e),size:"small"},{default:(0,l.w5)((()=>[(0,l.Uk)("广播")])),_:1},8,["modelValue"])):(0,l.kq)("",!0)]),(0,l._)("div",u,["remark-block"==o.data.Share.Lock.Value.type||"remark-cpp"==o.data.Share.Lock.Value.type?((0,l.wg)(),(0,l.iD)(l.HY,{key:0},[(0,l._)("div",r,[c,(0,l.Wm)(w,{onChange:o.handleStarChange,modelValue:o.data.Share.Lock.Value.star1,"onUpdate:modelValue":t[1]||(t[1]=e=>o.data.Share.Lock.Value.star1=e),size:"large"},null,8,["onChange","modelValue"])]),(0,l._)("div",d,[m,(0,l.Wm)(w,{onChange:o.handleStarChange,modelValue:o.data.Share.Lock.Value.star2,"onUpdate:modelValue":t[2]||(t[2]=e=>o.data.Share.Lock.Value.star2=e),size:"large"},null,8,["onChange","modelValue"])]),(0,l._)("div",p,[h,(0,l.Wm)(w,{onChange:o.handleStarChange,modelValue:o.data.Share.Lock.Value.star3,"onUpdate:modelValue":t[3]||(t[3]=e=>o.data.Share.Lock.Value.star3=e),size:"large"},null,8,["onChange","modelValue"])])],64)):(0,l.kq)("",!0)]),(0,l._)("div",null,[(0,l.Wm)(y,{"confirm-button-text":"确认","cancel-button-text":"取消",title:"确认驳回请求吗?",onConfirm:o.handleReject},{reference:(0,l.w5)((()=>[(0,l.Wm)(k,{loading:o.state.loading,type:"danger",plain:"",round:"",size:"small"},{default:(0,l.w5)((()=>[(0,l.Uk)("驳回")])),_:1},8,["loading"])])),_:1},8,["onConfirm"]),(0,l.Wm)(y,{"confirm-button-text":"确认","cancel-button-text":"取消",title:"确认通过请求吗?",onConfirm:o.handleConfirm},{reference:(0,l.w5)((()=>[(0,l.Wm)(k,{loading:o.state.loading,type:"success",plain:"",round:"",size:"small"},{default:(0,l.w5)((()=>[(0,l.Uk)("确认")])),_:1},8,["loading"])])),_:1},8,["onConfirm"])])])])):(0,l.kq)("",!0)}var f=a(4870),g=a(2843);const w=(e,t)=>(0,g.gQ)("share/update",{name:e,item:t}),k=(e,t,a,l,n)=>(0,g.gQ)("notify/update",{speed:e,msg:t,star1:a,star2:l,star3:n});var y=a(7178),_={props:["data"],setup(e){const t=(0,f.qj)({loading:!1}),a=()=>{t.loading=!0;let a=JSON.parse(JSON.stringify(e.data.Share.Lock.Value));a.val="reject",w(e.data.MachineName,{index:e.data.Share.Lock.Index,value:JSON.stringify(a)}).then((e=>{t.loading=!1,e?y.z8.success("操作成功!"):y.z8.error("操作失败!")})).catch((()=>{t.loading=!1,y.z8.error("操作失败!")}))},l=()=>{t.loading=!0;let a=JSON.parse(JSON.stringify(e.data.Share.Lock.Value));a.val="confirm",e.data.Share.Lock.Value.notify=!1,w(e.data.MachineName,{index:e.data.Share.Lock.Index,value:JSON.stringify(a)}).then((l=>{t.loading=!1,l?(y.z8.success("操作成功!"),a.notify&&k(2,e.data.Share.UserName.Value,a.star1,a.star2,a.star3)):y.z8.error("操作失败!")})).catch((()=>{t.loading=!1,y.z8.error("操作失败!")}))},n=()=>{t.loading=!0;let a=JSON.parse(JSON.stringify(e.data.Share.Lock.Value));w(e.data.MachineName,{index:e.data.Share.Lock.Index,value:JSON.stringify(a)}).then((e=>{t.loading=!1})).catch((()=>{t.loading=!1,y.z8.error("操作失败!")}))};return{data:e.data,state:t,handleReject:a,handleConfirm:l,handleStarChange:n}}},C=a(89);const x=(0,C.Z)(_,[["render",v],["__scopeId","data-v-131f0fcf"]]);var W=x},2592:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return c}});var l=a(3396),n=a(7139);const o={key:0,class:"user-name"};function s(e,t,a,s,i,u){return s.data.Share.UserName.Value?((0,l.wg)(),(0,l.iD)("i",o," - "+(0,n.zw)(s.data.Share.UserName.Value),1)):(0,l.kq)("",!0)}var i={props:["data"],setup(e){return{data:e.data}}},u=a(89);const r=(0,u.Z)(i,[["render",s],["__scopeId","data-v-793dbf84"]]);var c=r},5638:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return d}});var l=a(3396),n=a(7139);const o={class:"value"};function s(e,t,a,s,i,u){const r=(0,l.up)("Tools"),c=(0,l.up)("el-icon");return(0,l.wg)(),(0,l.iD)("div",null,[(0,l._)("a",{href:"javascript:;",onClick:t[0]||(t[0]=(...e)=>s.handleSystemOptions&&s.handleSystemOptions(...e))},[(0,l.Wm)(c,null,{default:(0,l.w5)((()=>[(0,l.Wm)(r)])),_:1}),(0,l._)("span",o,(0,n.zw)(a.data.System.RegistrysCount),1)])])}var i=a(2115),u={props:["data"],setup(e){const t=(0,i.$)(),a=()=>{t.value.system.devices=[e.data],t.value.system.showSystemOptions=!0};return{handleSystemOptions:a}}},r=a(89);const c=(0,r.Z)(u,[["render",s],["__scopeId","data-v-53f45bd0"]]);var d=c},313:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return w}});var l=a(3396);const n={class:"item"},o={class:"subitem"},s=(0,l._)("span",{class:"label"},"操作系统",-1),i={class:"subitem"},u=(0,l._)("span",{class:"label"},"系统桌面",-1);function r(e,t,a,r,c,d){const m=(0,l.up)("el-button");return(0,l.wg)(),(0,l.iD)("div",n,[(0,l._)("div",o,[s,(0,l.Wm)(m,{onClick:r.handleRebotSystem},{default:(0,l.w5)((()=>[(0,l.Uk)("重启")])),_:1},8,["onClick"]),(0,l.Wm)(m,{onClick:r.handleCloseSystem},{default:(0,l.w5)((()=>[(0,l.Uk)("关机")])),_:1},8,["onClick"])]),(0,l._)("div",i,[u,(0,l.Wm)(m,{onClick:r.handleOpenDisktop},{default:(0,l.w5)((()=>[(0,l.Uk)("开启")])),_:1},8,["onClick"]),(0,l.Wm)(m,{onClick:r.handleCloseDisktop},{default:(0,l.w5)((()=>[(0,l.Uk)("关闭")])),_:1},8,["onClick"])])])}var c=a(6e3),d=a(7178),m=a(2115),p=a(9418),h=a(2683),v={setup(){const e=(0,m.$)(),t=((0,h.d)(),()=>{o("确定重启系统吗?","shutdown -r -f -t 00")}),a=()=>{o("确定关闭系统吗?","shutdown -s -f -t 00")},l=()=>{o("确定开启桌面吗?","start explorer.exe")},n=()=>{o("确定关闭桌面吗?",'taskkill /f /t /im "explorer.exe"')},o=(t,a,l)=>{c.T.confirm(t,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{const t=e.value.command.devices.map((e=>e.MachineName)),n="string"==typeof a?(0,p.G)(t,[a]):a(t,l);n.then((e=>{e?d.z8.success("操作成功"):d.z8.error("操作失败")})).catch((()=>{d.z8.error("操作失败")}))})).catch((()=>{}))};return{pluginState:e,handleRebotSystem:t,handleCloseSystem:a,handleOpenDisktop:l,handleCloseDisktop:n}}},f=a(89);const g=(0,f.Z)(v,[["render",r]]);var w=g},4994:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return I}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("SystemOptions");return(0,l.wg)(),(0,l.iD)("div",null,[n.pluginState.system.showSystemOptions?((0,l.wg)(),(0,l.j4)(i,{key:0,modelValue:n.pluginState.system.showSystemOptions,"onUpdate:modelValue":t[0]||(t[0]=e=>n.pluginState.system.showSystemOptions=e)},null,8,["modelValue"])):(0,l.kq)("",!0)])}var o=a(2115),s=a(7139);const i=e=>((0,l.dD)("data-v-ede9893e"),e=e(),(0,l.Cn)(),e),u={class:"command-wrap common-command-wrap flex"},r={class:"items"},c=i((()=>(0,l._)("div",{class:"flex-1"},null,-1))),d={class:"commands"},m={class:"inner absolute scrollbar"},p={class:"label"},h=i((()=>(0,l._)("span",{class:"flex-1"},null,-1))),v={class:"options"};function f(e,t,a,n,o,i){const f=(0,l.up)("CheckBoxWrap"),g=(0,l.up)("el-switch"),w=(0,l.up)("el-button"),k=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(k,{class:"options",title:"设备选项","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.show=e),center:"","align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(w,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"]),(0,l.Wm)(w,{type:"success",plain:"",onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("确 定")])),_:1},8,["onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",u,[(0,l._)("div",r,[(0,l.Wm)(f,{ref:"items",onChange:n.handleDevicesChange,data:n.globalData.devices,items:n.state.items,label:"MachineName",title:"选择设备"},null,8,["onChange","data","items"])]),c,(0,l._)("div",d,[(0,l._)("div",m,[(0,l._)("ul",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.state.options,((e,t)=>((0,l.wg)(),(0,l.iD)("li",{key:t,class:"flex"},[(0,l._)("span",p,(0,s.zw)(e.label),1),h,(0,l._)("div",v,[1==n.pluginState.system.devices.length?((0,l.wg)(),(0,l.j4)(g,{key:0,onChange:t=>n.handleOptionChange(e),modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,"inline-prompt":"","active-text":"禁用","inactive-text":"启用",size:"large"},null,8,["onChange","modelValue","onUpdate:modelValue"])):((0,l.wg)(),(0,l.iD)(l.HY,{key:1},[(0,l.Wm)(w,{size:"default",type:"danger",plain:"",onClick:t=>n.handleSubmit(e,!0)},{default:(0,l.w5)((()=>[(0,l.Uk)("禁用")])),_:2},1032,["onClick"]),(0,l.Wm)(w,{size:"default",type:"success",plain:"",onClick:t=>n.handleSubmit(e,!1)},{default:(0,l.w5)((()=>[(0,l.Uk)("开启")])),_:2},1032,["onClick"])],64))])])))),128))])])])])])),_:1},8,["modelValue"])}var g=a(4870),w=a(1443),k=a(5291),y=a(2683),_=a(7800),C=a(7178),x={props:["modelValue"],emits:["update:modelValue"],components:{CheckBoxWrap:w.Z,PrevBoxWrap:k.Z},setup(e,{emit:t}){const a=(0,y.d)(),n=(0,o.$)(),s=(0,g.qj)({show:e.modelValue,items:(0,l.Fl)((()=>n.value.system.devices)),loading:!1,options:[]});(0,l.YP)((()=>s.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)}));const i=(0,g.iH)(null),u=()=>{s.show=!1},r=()=>{const e=n.value.system.devices.map((e=>e.MachineName)),t=a.value.allDevices.filter((t=>e.indexOf(t.MachineName)>=0)).reduce(((e,t,a)=>(e=Object.assign(e,t.System.RegistryKeys),e)),{}),l=Object.keys(t),o=l.map((e=>{const a=t[e];return{key:e,label:a.Desc,index:a.Index,value:!1}})).filter((e=>e.label)).sort(((e,t)=>e.index-t.index));s.options=o},c=e=>{if(n.value.system.devices=e,r(),1==n.value.system.devices.length){const e=n.value.system.devices[0].MachineName,t=a.value.allDevices.filter((t=>t.MachineName==e))[0];if(t){const e=t.System.RegistryValues,a=s.options;if(e&&e.length==a.length){for(let t=0;t<e.length;t++)a[t].value=1==e[t];s.options=a}}}},d=e=>{(0,_.z)(n.value.system.devices.map((e=>e.MachineName)),e.key,e.value).then((()=>{C.z8.success("已执行")})).catch((()=>{C.z8.error("执行失败")}))},m=(e,t)=>{0!=n.value.system.devices.length?(0,_.z)(n.value.system.devices.map((e=>e.MachineName)),e.key,t).then((()=>{C.z8.success("已执行")})).catch((()=>{C.z8.error("执行失败")})):C.z8.error("请选择一个设备")};return{state:s,globalData:a,pluginState:n,items:i,handleCancel:u,handleDevicesChange:c,handleOptionChange:d,handleSubmit:m}}},W=a(89);const D=(0,W.Z)(x,[["render",f],["__scopeId","data-v-ede9893e"]]);var b=D,V={components:{SystemOptions:b},setup(){const e=(0,o.$)();return{pluginState:e}}};const S=(0,W.Z)(V,[["render",n]]);var I=S},6576:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return m}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("el-switch"),u=(0,l.up)("el-col");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(u,{span:3},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{class:"usb",size:"small",onClick:n.handleUSB,disabled:"","model-value":n.usb,"inline-prompt":"","active-text":"U盘","inactive-text":"U盘"},null,8,["onClick","model-value"])])),_:1}),(0,l.Wm)(u,{span:3},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{class:"usb",size:"small",onClick:n.handleSetting,disabled:"","model-value":n.setting,"inline-prompt":"","active-text":"设置","inactive-text":"设置"},null,8,["onClick","model-value"])])),_:1}),(0,l.Wm)(u,{span:3},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{class:"usb",size:"small",onClick:n.handleShutdown,disabled:"","model-value":n.shutdown,"inline-prompt":"","active-text":"关机","inactive-text":"关机"},null,8,["onClick","model-value"])])),_:1})],64)}var o=a(2115),s=a(6e3),i=a(7178),u=a(7800),r={sort:4,props:["data"],setup(e){const t=e.data,a=((0,o.$)(),(0,l.Fl)((()=>!(!t.System.RegistryValues||!t.System.RegistryKeys.USBSTOR)&&"1"==t.System.RegistryValues[t.System.RegistryKeys.USBSTOR.Index]))),n=(0,l.Fl)((()=>!(!t.System.RegistryValues||!t.System.RegistryKeys.NoControlPanel)&&"1"==t.System.RegistryValues[t.System.RegistryKeys.NoControlPanel.Index])),r=(0,l.Fl)((()=>!(!t.System.RegistryValues||!t.System.RegistryKeys.NoClose)&&"1"==t.System.RegistryValues[t.System.RegistryKeys.NoClose.Index])),c=(t,a,l)=>new Promise(((n,o)=>{s.T.confirm(a,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{(0,u.z)([e.data.MachineName],t,l).then((e=>{e?(i.z8.success("操作成功"),n()):(i.z8.error("操作失败"),o())})).catch((()=>{i.z8.error("操作失败"),o()}))})).catch((()=>{o()}))})),d=()=>{c("USBSTOR",a.value?"确定启用USB吗":"确定禁用USB吗",!a.value)},m=()=>{c("NoControlPanel",n.value?"确定启用设置吗?":"确定禁用设置吗?",!n.value)},p=()=>{const t=!r.value;c("NoClose",r.value?"确定启用关机按钮吗?":"确定禁用关机按钮吗?",t).then((()=>{(0,u.z)([e.data.MachineName],"NoLogOff",t),(0,u.z)([e.data.MachineName],"DisableLockWorkstation",t),(0,u.z)([e.data.MachineName],"HideFastUserSwitching",t),(0,u.z)([e.data.MachineName],"DisableChangePassword",t)}))};return{data:t,usb:a,setting:n,shutdown:r,handleUSB:d,handleSetting:m,handleShutdown:p}}},c=a(89);const d=(0,c.Z)(r,[["render",n],["__scopeId","data-v-fa904c9e"]]);var m=d},4647:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return m}});var l=a(3396),n=a(7139);const o={href:"javascript:;"},s={class:"volume-value"};function i(e,t,a,i,u,r){const c=(0,l.up)("Mute"),d=(0,l.up)("el-icon"),m=(0,l.up)("Microphone");return(0,l.wg)(),(0,l.iD)("a",o,[(0,l._)("span",{class:"volume",onClick:t[0]||(t[0]=(...e)=>i.handleVolume&&i.handleVolume(...e))},[i.data.Volume.Mute?((0,l.wg)(),(0,l.j4)(d,{key:0},{default:(0,l.w5)((()=>[(0,l.Wm)(c)])),_:1})):((0,l.wg)(),(0,l.iD)(l.HY,{key:1},[(0,l.Wm)(d,null,{default:(0,l.w5)((()=>[(0,l.Wm)(m)])),_:1}),(0,l._)("div",{class:"volume-bg",style:(0,n.j5)({height:`${i.data.Volume.Value}%`})},[(0,l.Wm)(d,{class:"value"},{default:(0,l.w5)((()=>[(0,l.Wm)(m)])),_:1})],4)],64))]),(0,l._)("p",s,(0,n.zw)(Math.floor(i.data.Volume.Value)),1)])}var u=a(2115),r={props:["data"],setup(e){const t=(0,u.$)(),a=()=>{t.value.volume.devices=[e.data],t.value.volume.showVolumeSingle=!0};return{data:e.data,handleVolume:a}}},c=a(89);const d=(0,c.Z)(r,[["render",i],["__scopeId","data-v-936167e0"]]);var m=d},1708:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return v}});var l=a(3396);const n={class:"item"},o={class:"subitem"},s=(0,l._)("span",{class:"label"},"系统静音",-1);function i(e,t,a,i,u,r){const c=(0,l.up)("el-button");return(0,l.wg)(),(0,l.iD)("div",n,[(0,l._)("div",o,[s,(0,l.Wm)(c,{onClick:i.handleOpenMute},{default:(0,l.w5)((()=>[(0,l.Uk)("静音")])),_:1},8,["onClick"]),(0,l.Wm)(c,{onClick:i.handleCloseMute},{default:(0,l.w5)((()=>[(0,l.Uk)("取消")])),_:1},8,["onClick"])])])}var u=a(6e3),r=a(7178),c=a(2115),d=a(8048),m={setup(){const e=(0,c.$)(),t=()=>{l("确定设置静音吗?",d.H,!0)},a=()=>{l("确定取消静音吗?",d.H,!1)},l=(t,a,l)=>{u.T.confirm(t,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{const t=e.value.command.devices.map((e=>e.MachineName));a(t,l).then((e=>{e?r.z8.success("操作成功"):r.z8.error("操作失败")})).catch((()=>{r.z8.error("操作失败")}))})).catch((()=>{}))};return{pluginState:e,handleOpenMute:t,handleCloseMute:a}}},p=a(89);const h=(0,p.Z)(m,[["render",i]]);var v=h},8029:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return c}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("Microphone"),u=(0,l.up)("el-icon"),r=(0,l.up)("el-button");return(0,l.wg)(),(0,l.j4)(r,{size:"small",plain:"",dark:"",onClick:n.handleVolume},{default:(0,l.w5)((()=>[(0,l.Uk)("音量"),(0,l.Wm)(u,null,{default:(0,l.w5)((()=>[(0,l.Wm)(i)])),_:1})])),_:1},8,["onClick"])}var o=a(2683),s=a(2115),i={setup(){const e=(0,s.$)(),t=(0,o.d)(),a=()=>{e.value.volume.devices=t.value.devices,e.value.volume.showVolume=!0};return{handleVolume:a}}},u=a(89);const r=(0,u.Z)(i,[["render",n]]);var c=r},4214:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return Z}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("Volume"),u=(0,l.up)("VolumeSingle");return(0,l.wg)(),(0,l.iD)("div",null,[n.pluginState.volume.showVolume?((0,l.wg)(),(0,l.j4)(i,{key:0,modelValue:n.pluginState.volume.showVolume,"onUpdate:modelValue":t[0]||(t[0]=e=>n.pluginState.volume.showVolume=e)},null,8,["modelValue"])):(0,l.kq)("",!0),n.pluginState.volume.showVolumeSingle?((0,l.wg)(),(0,l.j4)(u,{key:1,modelValue:n.pluginState.volume.showVolumeSingle,"onUpdate:modelValue":t[1]||(t[1]=e=>n.pluginState.volume.showVolumeSingle=e)},null,8,["modelValue"])):(0,l.kq)("",!0)])}var o=a(2115),s=a(7139);const i=e=>((0,l.dD)("data-v-2cba18e1"),e=e(),(0,l.Cn)(),e),u={class:"command-wrap flex"},r={class:"items"},c={class:"name"},d={class:"volume"},m={class:"value"},p=i((()=>(0,l._)("div",{class:"flex-1"},null,-1))),h={class:"commands"},v={class:"slider-wrap flex flex-column"},f={class:"silder flex flex-1"},g={class:"flex-1"},w={class:"btn"},k={class:"btn"};function y(e,t,a,n,o,i){const y=(0,l.up)("el-button"),_=(0,l.up)("Mute"),C=(0,l.up)("el-icon"),x=(0,l.up)("Microphone"),W=(0,l.up)("CheckBoxWrap"),D=(0,l.up)("el-slider"),b=(0,l.up)("PrevBoxWrap"),V=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(V,{class:"options",title:"调节音量","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[3]||(t[3]=e=>n.state.show=e),center:"","align-center":"",width:"94%"},{footer:(0,l.w5)((()=>[(0,l.Wm)(y,{onClick:n.handleCancel},{default:(0,l.w5)((()=>[(0,l.Uk)("取 消")])),_:1},8,["onClick"])])),default:(0,l.w5)((()=>[(0,l._)("div",u,[(0,l._)("div",r,[(0,l.Wm)(W,{ref:"devices",data:n.globalData.devices,items:n.state.items,label:"MachineName",title:"全选"},{title:(0,l.w5)((()=>[(0,l._)("div",null,[(0,l.Wm)(y,{size:"small",onClick:n.handleSelectMute},{default:(0,l.w5)((()=>[(0,l.Uk)("状态选择")])),_:1},8,["onClick"])])])),name:(0,l.w5)((e=>[(0,l._)("span",null,[(0,l._)("span",c,(0,s.zw)(e.item.MachineName),1),(0,l._)("strong",d,[e.item.VolumeMute?((0,l.wg)(),(0,l.j4)(C,{key:0},{default:(0,l.w5)((()=>[(0,l.Wm)(_)])),_:1})):((0,l.wg)(),(0,l.j4)(C,{key:1},{default:(0,l.w5)((()=>[(0,l.Wm)(x)])),_:1})),(0,l._)("strong",m,(0,s.zw)(e.item.Volume.Value?Math.floor(e.item.Volume.Value):e.item.Volume.Value)+"%",1)])])])),_:1},8,["data","items"])]),p,(0,l._)("div",h,[(0,l.Wm)(b,{ref:"commands",title:"调节音量"},{wrap:(0,l.w5)((()=>[(0,l._)("div",v,[(0,l._)("div",f,[(0,l._)("div",g,[(0,l.Wm)(D,{onChange:n.handleChangeVolume,modelValue:n.state.volume,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.volume=e),vertical:"",height:"100%"},null,8,["onChange","modelValue"])])]),(0,l._)("div",w,[(0,l.Wm)(y,{onClick:t[1]||(t[1]=e=>n.handleMute(!0))},{default:(0,l.w5)((()=>[(0,l.Uk)("设置静音")])),_:1})]),(0,l._)("div",k,[(0,l.Wm)(y,{onClick:t[2]||(t[2]=e=>n.handleMute(!1))},{default:(0,l.w5)((()=>[(0,l.Uk)("取消静音")])),_:1})])])])),_:1},512)])])])),_:1},8,["modelValue"])}var _=a(4870),C=a(1443),x=a(5291),W=a(7178),D=a(8048),b=a(2683),V={props:["modelValue"],emits:["update:modelValue"],components:{CheckBoxWrap:C.Z,PrevBoxWrap:x.Z},setup(e,{emit:t}){const a=(0,b.d)(),n=(0,o.$)(),s=(0,_.qj)({show:e.modelValue,items:(0,l.Fl)((()=>n.value.volume.devices)),mute:!1,loading:!1,volume:0});(0,l.YP)((()=>s.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)}));const i=()=>{s.show=!1},u=()=>{s.items=a.value.devices.filter((e=>e.Volume.Mute==s.mute)),W.z8.success(`已选中${s.mute?"静音":"未静音"}设备`),s.mute=!s.mute},r=(0,_.iH)(null),c=e=>{let t=r.value.getData();0!=_items.length?(0,D.H)(t.map((e=>e.MachineName)),e):W.z8.error("未选择任何设备")},d=()=>{let e=r.value.getData();0!=_items.length?(0,D.j)(e.map((e=>e.MachineName)),s.volume/100):W.z8.error("未选择任何设备")};return{state:s,globalData:a,devices:r,handleCancel:i,handleSelectMute:u,handleMute:c,handleChangeVolume:d}}},S=a(89);const I=(0,S.Z)(V,[["render",y],["__scopeId","data-v-2cba18e1"]]);var T=I,U=a.p+"img/volume.5d8f0803.gif";const N=e=>((0,l.dD)("data-v-3ca473a0"),e=e(),(0,l.Cn)(),e),j={class:"slider-wrap flex flex-column"},z={class:"silder flex flex-1"},M={class:"flex-1"},P={key:0,class:"gif"},L=N((()=>(0,l._)("img",{src:U},null,-1))),R=[L];function O(e,t,a,n,o,s){const i=(0,l.up)("el-slider"),u=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.j4)(u,{class:"volume-dialog",title:"调节音量","destroy-on-close":"",modelValue:n.state.show,"onUpdate:modelValue":t[1]||(t[1]=e=>n.state.show=e),center:"","align-center":"",width:"94%"},{default:(0,l.w5)((()=>[(0,l._)("div",j,[(0,l._)("div",z,[(0,l._)("div",M,[(0,l.Wm)(i,{onChange:n.handleChangeVolume,modelValue:n.state.volume,"onUpdate:modelValue":t[0]||(t[0]=e=>n.state.volume=e)},null,8,["onChange","modelValue"])])]),n.state.showRecord?((0,l.wg)(),(0,l.iD)("div",P,R)):(0,l.kq)("",!0)])])),_:1},8,["modelValue"])}var E=a(2748),F={props:["modelValue","items"],emits:["update:modelValue"],setup(e,{emit:t}){const a=(0,b.d)(),n=(0,o.$)(),s=(0,_.qj)({show:e.modelValue,items:(0,l.Fl)((()=>n.value.volume.devices)),loading:!1,volume:n.value.volume.devices[0].Volume.Value,showRecord:!1});(0,l.YP)((()=>s.show),(e=>{e||setTimeout((()=>{t("update:modelValue",e)}),300)}));const i=()=>{s.show=!1},u=()=>{(0,D.j)(s.items.map((e=>e.MachineName)),s.volume/100)},r=()=>{s.showRecord=!0},c=()=>{s.showRecord=!1};return{Mic:E.uc7,state:s,globalData:a,handleCancel:i,handleChangeVolume:u,handleMicMouseDown:r,handleMicMouseUp:c}}};const B=(0,S.Z)(F,[["render",O],["__scopeId","data-v-3ca473a0"]]);var $=B,H={components:{Volume:T,VolumeSingle:$},setup(){const e=(0,o.$)();return{pluginState:e}}};const A=(0,S.Z)(H,[["render",n]]);var Z=A},4611:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return m}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("el-switch"),u=(0,l.up)("el-col");return(0,l.wg)(),(0,l.j4)(u,{span:3},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{class:"volume",size:"small",onClick:n.handleVolumeMute,"model-value":n.data.Volume.Mute,"inline-prompt":"","active-text":"静音","inactive-text":"静音"},null,8,["onClick","model-value"])])),_:1})}var o=a(8048),s=a(6e3),i=a(7178),u=a(2115),r={sort:0,props:["data"],setup(e){(0,u.$)();const t=()=>{let t=e.data.Volume.Mute?"确定取消静音吗?":"确定静音吗?";s.T.confirm(t,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{(0,o.H)([e.data.MachineName],!e.data.Volume.Mute).then((e=>{e?i.z8.success("操作成功"):i.z8.error("操作失败")})).catch((()=>{i.z8.error("操作失败")}))})).catch((()=>{}))};return{data:e.data,handleVolumeMute:t}}},c=a(89);const d=(0,c.Z)(r,[["render",n],["__scopeId","data-v-87940482"]]);var m=d},3788:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return v}});var l=a(3396);const n={class:"item"},o={class:"subitem"},s=(0,l._)("span",{class:"label"},"屏幕壁纸",-1);function i(e,t,a,i,u,r){const c=(0,l.up)("el-button");return(0,l.wg)(),(0,l.iD)("div",n,[(0,l._)("div",o,[s,(0,l.Wm)(c,{onClick:i.handleOpenWallpaper},{default:(0,l.w5)((()=>[(0,l.Uk)("打开")])),_:1},8,["onClick"]),(0,l.Wm)(c,{onClick:i.handleCloseWallpaper},{default:(0,l.w5)((()=>[(0,l.Uk)("关闭")])),_:1},8,["onClick"])])])}var u=a(6e3),r=a(7178),c=a(2115),d=a(9528),m={setup(){const e=(0,c.$)(),t=()=>{n("确定打开壁纸吗?",l,!0)},a=()=>{n("确定关闭壁纸吗?",l,!1)},l=(e,t)=>(0,d.i)(e,t,`http://${window.location.hostname}:${window.location.port}/bg.jpg`),n=(t,a,l)=>{u.T.confirm(t,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{const t=e.value.command.devices.map((e=>e.MachineName));a(t,l).then((e=>{e?r.z8.success("操作成功"):r.z8.error("操作失败")})).catch((()=>{r.z8.error("操作失败")}))})).catch((()=>{}))};return{pluginState:e,handleOpenWallpaper:t,handleCloseWallpaper:a}}},p=a(89);const h=(0,p.Z)(m,[["render",i]]);var v=h},9846:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return m}});var l=a(3396);function n(e,t,a,n,o,s){const i=(0,l.up)("el-switch"),u=(0,l.up)("el-col");return(0,l.wg)(),(0,l.j4)(u,{span:3},{default:(0,l.w5)((()=>[(0,l.Wm)(i,{class:"wallpaper",size:"small",onClick:n.handleWallpaper,"model-value":n.data.Wallpaper.Value,"inline-prompt":"","active-text":"壁纸","inactive-text":"壁纸"},null,8,["onClick","model-value"])])),_:1})}var o=a(9528),s=a(6e3),i=a(7178),u=a(2115),r={sort:3,props:["data"],setup(e){(0,u.$)();const t=()=>{let t=e.data.Wallpaper.Value?"确定关闭壁纸吗?":"确定开启壁纸吗?";s.T.confirm(t,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{(0,o.i)([e.data.MachineName],!e.data.Wallpaper.Value,`${window.location.origin}/bg.jpg`).then((e=>{e?i.z8.success("操作成功"):i.z8.error("操作失败")})).catch((()=>{i.z8.error("操作失败")}))})).catch((()=>{}))};return{data:e.data,handleWallpaper:t}}},c=a(89);const d=(0,c.Z)(r,[["render",n]]);var m=d},2681:function(e,t,a){var l={"./command/BtnLeft.vue":459,"./keyboard/BtnLeft.vue":6159,"./message/BtnLeft.vue":6353,"./system/BtnLeft.vue":5638};function n(e){var t=o(e);return a(t)}function o(e){if(!a.o(l,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}n.keys=function(){return Object.keys(l)},n.resolve=o,e.exports=n,n.id=2681},6532:function(e,t,a){var l={"./active/BtnRight.vue":6657,"./hijack/BtnRight.vue":116,"./light/BtnRight.vue":1811,"./volume/BtnRight.vue":4647};function n(e){var t=o(e);return a(t)}function o(e){if(!a.o(l,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}n.keys=function(){return Object.keys(l)},n.resolve=o,e.exports=n,n.id=6532},8023:function(e,t,a){var l={"./keyboard/Command.vue":1296,"./llock/Command.vue":1622,"./system/Command.vue":313,"./volume/Command.vue":1708,"./wallpaper/Command.vue":3788};function n(e){var t=o(e);return a(t)}function o(e){if(!a.o(l,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}n.keys=function(){return Object.keys(l)},n.resolve=o,e.exports=n,n.id=8023},8575:function(e,t,a){var l={"./active/FootMenu.vue":1737,"./device/FootMenu.vue":4718,"./hijack/FootMenu.vue":3213,"./setting/FootMenu.vue":1274};function n(e){var t=o(e);return a(t)}function o(e){if(!a.o(l,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}n.keys=function(){return Object.keys(l)},n.resolve=o,e.exports=n,n.id=8575},3136:function(e,t,a){var l={"./command/FootOptionBottom.vue":8196,"./hijack/rules/FootOptionBottom.vue":4140,"./light/FootOptionBottom.vue":1938};function n(e){var t=o(e);return a(t)}function o(e){if(!a.o(l,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}n.keys=function(){return Object.keys(l)},n.resolve=o,e.exports=n,n.id=3136},6736:function(e,t,a){var l={"./active/FootOptionTop.vue":4190,"./message/FootOptionTop.vue":6980,"./volume/FootOptionTop.vue":8029};function n(e){var t=o(e);return a(t)}function o(e){if(!a.o(l,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}n.keys=function(){return Object.keys(l)},n.resolve=o,e.exports=n,n.id=6736},138:function(e,t,a){var l={"./active/Index.vue":3616,"./active/windows/Index.vue":251,"./command/Index.vue":8754,"./device/Index.vue":8709,"./hijack/Index.vue":2546,"./hijack/process/Index.vue":1130,"./hijack/rules/Index.vue":5914,"./keyboard/Index.vue":9815,"./light/Index.vue":9107,"./message/Index.vue":2571,"./setting/Index.vue":5975,"./system/Index.vue":4994,"./volume/Index.vue":4214};function n(e){var t=o(e);return a(t)}function o(e){if(!a.o(l,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}n.keys=function(){return Object.keys(l)},n.resolve=o,e.exports=n,n.id=138},7138:function(e,t,a){var l={"./active/Screen.vue":6487,"./share/Screen.vue":4704};function n(e){var t=o(e);return a(t)}function o(e){if(!a.o(l,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}n.keys=function(){return Object.keys(l)},n.resolve=o,e.exports=n,n.id=7138},9091:function(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=function(){return[]},t.resolve=t,t.id=9091,e.exports=t},120:function(e,t,a){var l={"./share/TitleLeft.vue":2592};function n(e){var t=o(e);return a(t)}function o(e){if(!a.o(l,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}n.keys=function(){return Object.keys(l)},n.resolve=o,e.exports=n,n.id=120},2648:function(e,t,a){var l={"./hijack/TitleRight.vue":3844};function n(e){var t=o(e);return a(t)}function o(e){if(!a.o(l,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}n.keys=function(){return Object.keys(l)},n.resolve=o,e.exports=n,n.id=2648},345:function(e,t,a){var l={"./llock/Option.vue":3937,"./report/Option.vue":6744,"./system/Option.vue":6576,"./volume/Option.vue":4611,"./wallpaper/Option.vue":9846};function n(e){var t=o(e);return a(t)}function o(e){if(!a.o(l,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}n.keys=function(){return Object.keys(l)},n.resolve=o,e.exports=n,n.id=345},4711:function(e,t,a){var l={"./active/index.js":3325,"./command/index.js":1459,"./device/index.js":181,"./hijack/index.js":1868,"./keyboard/index.js":7217,"./light/index.js":1958,"./llock/index.js":6458,"./message/index.js":2852,"./report/index.js":619,"./screen/index.js":5908,"./setting/index.js":4886,"./share/index.js":6194,"./system/index.js":5817,"./volume/index.js":5507,"./wallpaper/index.js":7242};function n(e){var t=o(e);return a(t)}function o(e){if(!a.o(l,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}n.keys=function(){return Object.keys(l)},n.resolve=o,e.exports=n,n.id=4711}}]);