import{gR as a,c as s,a7 as e,a8 as l}from"./page_layout.js?v=1763625242172";import{d as o}from"./public.js?v=1763625242172";import{k as r,e as t,R as p,S as n,X as m,a3 as c,U as i,a4 as d,V as u}from"./vue.js?v=1763625242172";import"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";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:e}=b;j(!0);const{message:l}=await a({port:e.Port});s(l)&&(f.name=l.process_name,f.pid=l.process_pid,f.command=l.process_cmd)}finally{j(!1)}})(),(a,s)=>{const o=e,r=l;return p(),n("div",_,[m(r,{bordered:"","label-placement":"left",column:1,"label-style":{width:"140px"}},{default:c((()=>[m(o,{label:a.$t("Security.Firewall.Port.process_1")},{default:c((()=>[i("span",null,d(u(y)?"--":u(f).name),1)])),_:1},8,["label"]),m(o,{label:a.$t("Security.Firewall.Port.process_2")},{default:c((()=>[i("span",null,d(u(y)?"--":u(f).pid),1)])),_:1},8,["label"]),m(o,{label:a.$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};
