System.register(["./index-legacy245.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy18.js?v=1763625242172","./index-legacy259.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy19.js?v=1763625242172","./public-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./index-legacy104.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./php-legacy.js?v=1763625242172","./soft-legacy.js?v=1763625242172","./site-legacy.js?v=1763625242172","./alarm-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy11.js?v=1763625242172","./index-legacy100.js?v=1763625242172","./theme-monokai-legacy.js?v=1763625242172","./file-legacy.js?v=1763625242172","./leader-line-vue-legacy.js?v=1763625242172"],(function(e,l){"use strict";var a,n,t,s,u,i,o,c,r,g,p,d,v,_,y,x,m,w,f,j,k,b,h,S,P,U,C,W,H,N,T,q,z,A,L,O,R,F,I;return{setters:[e=>{a=e._},e=>{n=e.k,t=e.P,s=e.R,u=e.S,i=e.X,o=e.V,c=e.r,r=e.a2,g=e.a3,p=e.F,d=e.O,v=e.U,_=e.a4,y=e.an,x=e.j,m=e.a0,w=e.aj},e=>{f=e.eH,j=e.c,k=e.eI,b=e.eJ,h=e.x,S=e.T,P=e.eK,U=e.u},e=>{C=e._,W=e.a},e=>{H=e.O},e=>{N=e._},e=>{T=e.c,q=e.d,z=e.h},e=>{A=e.df,L=e.au,O=e.dV,R=e.d9,F=e.aC},e=>{I=e._},null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l=n({__name:"index",setup(e,{expose:l}){const{t:a}=t(),{table:n,columns:c}=T([{key:"title",title:a("Plugin.Apache.index_12")},{width:"30%",key:"value",title:a("Plugin.Apache.index_13")}]),r={active:"Active connections",accepts:"Total accepts",handled:"Total handled",requests:"Total requests",Reading:"Reading",Writing:"Writing",Waiting:"Waiting",worker:"Worker process",workercpu:"Nginx CPU usage",workermen:"Nginx memory usage"},{loading:g,setLoading:p}=q(),d=async()=>{try{p(!0);const{message:e}=await f();j(e)&&(n.data=Object.keys(e).map((l=>({title:r[l],value:e[l]}))))}finally{p(!1)}};return d(),l({init:d}),(e,l)=>{const a=z;return s(),u("div",null,[i(a,{data:o(n).data,columns:o(c),loading:o(g)},null,8,["data","columns","loading"])])}}}),J={class:"w-150px! text-right"},V={class:"w-250px! color-#666"},B={class:"text-center"},K=n({__name:"index",setup(e,{expose:l}){const{t:a}=t(),n=c(),m=[{label:a("Config.Panel.index_83_1"),value:"on"},{label:a("Config.Safe.index_84"),value:"off"}],w=async()=>{const e=n.value.reduce(((e,l)=>(e[l.name]=l.value,e)),{});await k(e)},{loading:f,setLoading:j}=q(),P=async()=>{try{j(!0);const{message:e}=await b();h(e)&&(n.value=e)}finally{j(!1)}};return P(),l({init:P}),(e,l)=>{const a=A,t=L,c=O,j=R,k=F,b=S;return s(),r(b,{show:o(f)},{default:g((()=>[(s(!0),u(p,null,d(o(n),((e,l)=>(s(),r(j,{class:"items-center flex-nowrap! py-2px mb-16px",key:l},{default:g((()=>[v("div",J,_(e.name),1),"gzip"!==e.name&&"worker_processes"!==e.name?(s(),r(a,{key:0,class:"w-150px!",value:e.value,"onUpdate:value":l=>e.value=l,min:0,"show-button":!1},null,8,["value","onUpdate:value"])):y("",!0),"worker_processes"===e.name?(s(),r(t,{key:1,class:"w-150px!",value:e.value,"onUpdate:value":l=>e.value=l},null,8,["value","onUpdate:value"])):y("",!0),"gzip"===e.name?(s(),r(c,{key:2,class:"w-150px!",value:e.value,"onUpdate:value":l=>e.value=l,options:m},null,8,["value","onUpdate:value"])):y("",!0),v("div",V,_(e.ps),1)])),_:2},1024)))),128)),v("div",B,[i(k,{type:"primary",onClick:w},{default:g((()=>[x(_(e.$t("Public.Btn.Save")),1)])),_:1})])])),_:1},8,["show"])}}}),M=n({__name:"index",setup(e,{expose:l}){const a=c("None"),{loading:n,setLoading:t}=q(),u=async()=>{try{t(!0);const{message:e}=await P({path:"/www/wwwlogs/nginx_error.log"});j(e)&&(a.value=e.result?e.result:"None")}finally{t(!1)}};return u(),l({init:u}),(e,l)=>{const t=I,u=S;return s(),r(u,{class:"h-580px",show:o(n)},{default:g((()=>[i(t,{log:o(a)},null,8,["log"])])),_:1},8,["show"])}}});e("default",n({__name:"index",setup(e){const{multiService:n,isWebServerJump:u}=m(U()),{t:i}=t(),g=c("service"),p=[{key:"service",label:i("Security.History.Index_10"),component:C},{key:"webserver",label:i("Soft.Plugin.index_1"),component:H},{key:"file",label:i("Site.Config.index_15"),data:{path:"/www/server/nginx/conf/nginx.conf"},component:W},{key:"version",label:i("Plugin.Ftp.index_9"),component:N},{key:"load",label:i("Home.index_30"),component:l},{key:"optimization",label:i("Plugin.Mysql.index_27"),component:K},{key:"logs",label:i("Site.Config.index_101"),component:M}];return g.value=n.value||u.value?"webserver":"service",u.value&&(u.value=!1),(e,l)=>{const n=a;return s(),r(n,{value:o(g),"onUpdate:value":l[0]||(l[0]=e=>w(g)?g.value=e:null),data:p},null,8,["value"])}}}))}}}));
