System.register(["./index-legacy246.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./page_layout-legacy.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy17.js?v=1764830988434","./index-legacy260.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy18.js?v=1764830988434","./public-legacy.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./index-legacy102.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434","./common-legacy.js?v=1764830988434","./php-legacy.js?v=1764830988434","./soft-legacy.js?v=1764830988434","./site-legacy.js?v=1764830988434","./alarm-legacy.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy15.js?v=1764830988434","./index-legacy98.js?v=1764830988434","./theme-monokai-legacy.js?v=1764830988434","./file-legacy.js?v=1764830988434","./leader-line-vue-legacy.js?v=1764830988434"],function(e,l){"use strict";var a,n,t,s,u,i,o,c,r,g,d,p,v,_,y,x,m,w,f,j,k,b,h,S,P,U,C,W,N,T,q,z,A,H,L,O,R,F,V;return{setters:[e=>{a=e._},e=>{n=e.k,t=e.P,s=e.R,u=e.V,i=e.W,o=e.U,c=e.r,r=e.a2,g=e.a3,d=e.S,p=e.F,v=e.O,_=e.an,y=e.a4,x=e.j,m=e.a0,w=e.ak},e=>{f=e.ee,j=e.d,k=e.T,b=e.ef,h=e.eg,S=e.x,P=e.eh,U=e.u},e=>{C=e._,W=e.a},e=>{N=e.O},e=>{T=e._},e=>{q=e.c,z=e.d,A=e.h},e=>{H=e.da,L=e.df,O=e.au,R=e.dV,F=e.aC},e=>{V=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}=q([{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:d}=z(),p=async()=>{try{d(!0);const{message:e}=await f();j(e)&&(n.data=Object.keys(e).map(l=>({title:r[l],value:e[l]})))}finally{d(!1)}};return p(),l({init:p}),(e,l)=>{const a=A;return u(),s("div",null,[i(a,{data:o(n).data,columns:o(c),loading:o(g)},null,8,["data","columns","loading"])])}}}),B={class:"w-150px! text-right"},I={class:"w-250px! color-#666"},J={class:"text-center"},M=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 b(e)},{loading:f,setLoading:j}=z(),P=async()=>{try{j(!0);const{message:e}=await h();S(e)&&(n.value=e)}finally{j(!1)}};return P(),l({init:P}),(e,l)=>{const a=L,t=O,c=R,j=H,b=F,h=k;return u(),r(h,{show:o(f)},{default:g(()=>[(u(!0),s(p,null,v(o(n),(e,l)=>(u(),r(j,{class:"items-center flex-nowrap! py-2px mb-16px",key:l},{default:g(()=>[d("div",B,y(e.name),1),"gzip"!==e.name&&"worker_processes"!==e.name?(u(),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"])):_("",!0),"worker_processes"===e.name?(u(),r(t,{key:1,class:"w-150px!",value:e.value,"onUpdate:value":l=>e.value=l},null,8,["value","onUpdate:value"])):_("",!0),"gzip"===e.name?(u(),r(c,{key:2,class:"w-150px!",value:e.value,"onUpdate:value":l=>e.value=l,options:m},null,8,["value","onUpdate:value"])):_("",!0),d("div",I,y(e.ps),1)]),_:2},1024))),128)),d("div",J,[i(b,{type:"primary",onClick:w},{default:g(()=>[x(y(e.$t("Public.Btn.Save")),1)]),_:1})])]),_:1},8,["show"])}}}),$=n({__name:"index",setup(e,{expose:l}){const a=c("None"),{loading:n,setLoading:t}=z(),s=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 s(),l({init:s}),(e,l)=>{const t=V,s=k;return u(),r(s,{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:s}=m(U()),{t:i}=t(),g=c("service"),d=[{key:"service",label:i("Security.History.Index_10"),component:C},{key:"webserver",label:i("Soft.Plugin.index_1"),component:N},{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:T},{key:"load",label:i("Home.index_30"),component:l},{key:"optimization",label:i("Plugin.Mysql.index_27"),component:M},{key:"logs",label:i("Site.Config.index_101"),component:$}];return g.value=n.value||s.value?"webserver":"service",s.value&&(s.value=!1),(e,l)=>{const n=a;return u(),r(n,{value:o(g),"onUpdate:value":l[0]||(l[0]=e=>w(g)?g.value=e:null),data:d},null,8,["value"])}}}))}}});
