import{fW as a,c as s,V as e,W as l}from"./page_layout.js?v=1753954525509";import{c as o}from"./public.js?v=1753954525509";import{k as r,e as t,U as p,V as n,Q as c,a2 as m,W as i,a3 as d,X as u}from"./vue.js?v=1753954525509";import"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const _={class:"p-20px"},f=r({__name:"process",props:{row:{}},setup(r){const f=r,b=t({name:"",pid:"",command:""}),{loading:y,setLoading:j}=o();return(async()=>{try{const{row:e}=f;j(!0);const{message:l}=await a({port:e.Port});s(l)&&(b.name=l.process_name,b.pid=l.process_pid,b.command=l.process_cmd)}finally{j(!1)}})(),(a,s)=>{const o=e,r=l;return p(),n("div",_,[c(r,{bordered:"","label-placement":"left",column:1,"label-style":{width:"140px"}},{default:m((()=>[c(o,{label:a.$t("Security.Firewall.Port.process_1")},{default:m((()=>[i("span",null,d(u(y)?"--":u(b).name),1)])),_:1},8,["label"]),c(o,{label:a.$t("Security.Firewall.Port.process_2")},{default:m((()=>[i("span",null,d(u(y)?"--":u(b).pid),1)])),_:1},8,["label"]),c(o,{label:a.$t("Security.Firewall.Port.process_3")},{default:m((()=>[i("span",null,d(u(y)?"--":u(b).command),1)])),_:1},8,["label"])])),_:1})])}}});export{f as default};
