1import{g as p,f as b,T as g,j as w}from"./index-DBfQQE4T.js";import{k as $,a4 as y,al as B,l as h,m as C,x as n,E as t,A as i,B as u,P as k,ay as v}from"./core-DO2AKXU2.js";import{u as I}from"./useAutoModal-CLywkUbs.js";const P=$({__name:"ToolPower",setup(T){const{t:_}=y(),m=I(),{tryToReconnect:c}=B();async function a(o){await m(_("confirm_reboot_action_"+o))&&v.put({uri:o+"?force",humanKey:o}).then(()=>{c({attemps:1/0,origin:o,delay:o==="reboot"?4e3:1e4})})}return(o,e)=>{const l=p,s=b,r=g,d=w;return h(),C(d,{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{P 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.