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