1import{d as b,h as p}from"./index-mGgJqOFQ.js";import{d as g,y as w,aU as $,o as h,a as y,w as n,b as t,Z as B,f as C,q as i,t as u,g as k,bl as v}from"./core-Cu1dlvv4.js";import{u as N}from"./useAutoModal-CaK8mTFj.js";const I=g({__name:"ToolPower",setup(S){const{t:_}=w(),d=N(),{tryToReconnect:c}=$();async function a(o){await d(_("confirm_reboot_action_"+o))&&v.put({uri:o+"?force"}).then(()=>{c({origin:o,delay:o==="reboot"?4e3:1e4})})}return(o,e)=>{const l=b,s=C,r=B,m=p;return h(),y(m,{title:o.$t("operations"),icon:"wrench"},{default:n(()=>[t(r,{"label-cols":"5","label-cols-md":"4","label-cols-lg":"3",label:o.$t("tools_reboot"),"label-for":"reboot"},{default:n(()=>[t(s,{id:"reboot",variant:"danger",onClick:e[0]||(e[0]=f=>a("reboot"))},{default:n(()=>[t(l,{iname:"refresh"}),i(" "+u(o.$t("tools_reboot_btn")),1)]),_:1})]),_:1},8,["label"]),e[2]||(e[2]=k("hr",null,null,-1)),t(r,{"label-cols":"5","label-cols-md":"4","label-cols-lg":"3",label:o.$t("tools_shutdown"),"label-for":"shutdown"},{default:n(()=>[t(s,{id:"shutdown",variant:"danger",onClick:e[1]||(e[1]=f=>a("shutdown"))},{default:n(()=>[t(l,{iname:"power-off"}),i(" "+u(o.$t("tools_shutdown_btn")),1)]),_:1})]),_:1},8,["label"])]),_:1},8,["title"])}}});export{I as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.