import{i as u}from"./index-BTglIPU2.js?v=1773287522785";import{u as f}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{y as b}from"./firewall-jQIxKxfN.js?v=1773287522785";import{k as y,e as g,$ as w,Z as P,a0 as t,a9 as n,_ as i,aa as c,S as o}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{aj as S,ak as h}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const k={class:"p-20px"},L=y({__name:"process",props:{row:{}},setup(m){const _=m,e=g({name:"",pid:"",command:""}),{loading:r,setLoading:p}=f();return(async()=>{try{const{row:a}=_;p(!0);const{message:s}=await b({port:a.Port});u(s)&&(e.name=s.process_name,e.pid=s.process_pid,e.command=s.process_cmd)}finally{p(!1)}})(),(a,s)=>{const l=S,d=h;return w(),P("div",k,[t(d,{bordered:"","label-placement":"left",column:1,"label-style":{width:"140px"}},{default:n(()=>[t(l,{label:a.$t("Security.Firewall.Port.process_1")},{default:n(()=>[i("span",null,c(o(r)?"--":o(e).name),1)]),_:1},8,["label"]),t(l,{label:a.$t("Security.Firewall.Port.process_2")},{default:n(()=>[i("span",null,c(o(r)?"--":o(e).pid),1)]),_:1},8,["label"]),t(l,{label:a.$t("Security.Firewall.Port.process_3")},{default:n(()=>[i("span",null,c(o(r)?"--":o(e).command),1)]),_:1},8,["label"])]),_:1})])}}});export{L as default};
