import{d as k,s as v,e as z,F as T,j as s,f as o,T as p,w as r,z as d,A as u,C as c,E as f,a1 as l}from"./DGA3dmy8.js";import{I as m}from"./CCeWr_SP.js";const y=k({__name:"kill-process",props:{process:{},port:{},size:{},side:{}},setup(_){const t=_,a=i=>{$fetch("/api/process/kill-port",{method:"POST",query:{process:"process"in t?t.process:void 0,port:"port"in t?t.port:void 0,signal:i},onResponse:e=>{e.response.ok&&(i==="SIGKILL"?l.success("Process forcefully terminated"):l.success("Process gracefully terminated"))},onResponseError:e=>{const n=e.response._data.message;l.error(n)}})};return(i,e)=>(z(),v(T,null,[s(o(p),null,{default:r(()=>[s(o(d),null,{default:r(()=>[s(o(u),{onClick:e[0]||(e[0]=n=>a("SIGTERM")),variant:"destructive",size:t.size},{default:r(()=>[s(o(m),{icon:"lucide:heart-off"})]),_:1},8,["size"])]),_:1}),s(o(c),{side:t.side},{default:r(()=>e[2]||(e[2]=[f("Requests a process to terminate gracefully")])),_:1,__:[2]},8,["side"])]),_:1}),s(o(p),null,{default:r(()=>[s(o(d),null,{default:r(()=>[s(o(u),{onClick:e[1]||(e[1]=n=>a("SIGKILL")),variant:"destructive",size:t.size},{default:r(()=>[s(o(m),{icon:"lucide:power-off"})]),_:1},8,["size"])]),_:1}),s(o(c),{side:t.side},{default:r(()=>e[3]||(e[3]=[f("Forces a process to terminate immediately")])),_:1,__:[3]},8,["side"])]),_:1})],64))}}),C=Object.assign(y,{__name:"UtilityKillProcess"});export{C as K};
//# sourceMappingURL=Yw6qBQnC.js.map
