System.register(["./index-legacy245.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy18.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy19.js?v=1763625242172","./public-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-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","./__commonjsHelpers__-legacy.js?v=1763625242172","./file-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172"],(function(e,t){"use strict";var n,a,l,s,i,c,u,o,r,p,d,_,m,x,y,g,v,b,h,w,f,j,C,P,M,k,z,E,L,S;return{setters:[e=>{n=e._},e=>{a=e._,l=e.a},e=>{s=e._},e=>{i=e.c,c=e.d,u=e.h},e=>{o=e.f0,r=e.c,p=e.n,d=e.f1,_=e.T},e=>{m=e.k,x=e.P,y=e.R,g=e.S,v=e.X,b=e.V,h=e.e,w=e.a2,f=e.a3,j=e.U,C=e.a4,P=e.j,M=e.r,k=e.aj},e=>{z=e.au,E=e.d9,L=e.df,S=e.aC},null,null,null,null,null,null,null,null,null,null,null],execute:function(){const t=m({__name:"index",setup(e,{expose:t}){const{t:n}=x(),{table:a,columns:l}=i([{key:"title",title:n("Plugin.Apache.index_12")},{key:"value",title:n("Plugin.Apache.index_13")},{key:"ps",title:n("Public.Table.Note")}]),s={bind:"Listening IP",port:"Listening Port",maxconn:"Maximum Connection Limit",cachesize:"Maximum Cache Size",curr_connections:"Current Open Connections",cmd_get:"GET Request Count",get_hits:"GET Hits Count",get_misses:"GET Misses Count",bytes_read:"Bytes Read",bytes_written:"Bytes Written",limit_maxbytes:"Limit Max Bytes",bytes:"Current Memory Usage",curr_items:"Current Cached Items",evictions:"Evicted Items Due to Memory Limit",hit:"GET Hit Rate"},{loading:d,setLoading:_}=c(),m=async()=>{try{_(!0);const{message:e}=await o();if(r(e)){const t=["bytes","bytes_read","bytes_written"];a.data=Object.entries(e).filter((([e])=>"limit_maxbytes"!==e)).map((([e,n])=>({title:e,value:t.includes(e)?p(Number(n)):n,ps:s[e]})))}}finally{_(!1)}};return m(),t({init:m}),(e,t)=>{const n=u;return y(),g("div",null,[v(n,{data:b(a).data,columns:b(l),loading:b(d)},null,8,["data","columns","loading"])])}}}),T={class:"w-350px! color-#666"},U={class:"w-350px! color-#666"},H={class:"w-350px! color-#666"},I={class:"w-350px! color-#666"},B={class:"ml-90px"},R=m({__name:"index",setup(e,{expose:t}){const n=h({bind:"127.0.0.1",port:11211,cachesize:64,maxconn:1024}),a=async()=>{await d(n)},{loading:l,setLoading:s}=c(),i=async()=>{try{s(!0);const{message:e}=await o();r(e)&&(n.bind=e.bind,n.port=e.port,n.cachesize=e.cachesize,n.maxconn=e.maxconn)}finally{s(!1)}};return i(),t({init:i}),(e,t)=>{const s=z,i=E,c=L,u=S,o=_;return y(),w(o,{show:b(l)},{default:f((()=>[v(i,{class:"items-center flex-nowrap! py-2px mb-16px"},{default:f((()=>[t[4]||(t[4]=j("div",{class:"w-80px! text-right"},"BindIp",-1)),v(s,{class:"w-150px!",value:b(n).bind,"onUpdate:value":t[0]||(t[0]=e=>b(n).bind=e)},null,8,["value"]),j("div",T,C(e.$t("Plugin.Mencached.index_1")),1)])),_:1,__:[4]}),v(i,{class:"items-center flex-nowrap! py-2px mb-16px"},{default:f((()=>[t[5]||(t[5]=j("div",{class:"w-80px! text-right"},"PORT",-1)),v(c,{class:"w-150px!",value:b(n).port,"onUpdate:value":t[1]||(t[1]=e=>b(n).port=e),min:0,"show-button":!1},null,8,["value"]),j("div",U,C(e.$t("Plugin.Mencached.index_2")),1)])),_:1,__:[5]}),v(i,{class:"items-center flex-nowrap! py-2px mb-16px"},{default:f((()=>[t[6]||(t[6]=j("div",{class:"w-80px! text-right"},"CACHESIZE",-1)),v(c,{class:"w-150px!",value:b(n).cachesize,"onUpdate:value":t[2]||(t[2]=e=>b(n).cachesize=e),min:0,"show-button":!1},null,8,["value"]),j("div",H,C(e.$t("Plugin.Mencached.index_3")),1)])),_:1,__:[6]}),v(i,{class:"items-center flex-nowrap! py-2px mb-16px"},{default:f((()=>[t[7]||(t[7]=j("div",{class:"w-80px! text-right"},"MAXCONN",-1)),v(c,{class:"w-150px!",value:b(n).maxconn,"onUpdate:value":t[3]||(t[3]=e=>b(n).maxconn=e),min:0,"show-button":!1},null,8,["value"]),j("div",I,C(e.$t("Plugin.Mencached.index_4")),1)])),_:1,__:[7]}),j("div",B,[v(u,{type:"primary",onClick:a},{default:f((()=>[P(C(e.$t("Public.Btn.Save")),1)])),_:1})])])),_:1},8,["show"])}}});e("default",m({__name:"index",setup(e){const{t:i}=x(),c=M("service"),u=[{key:"service",label:i("Security.History.Index_10"),component:a},{key:"file",label:i("Site.Config.index_15"),data:{path:"/etc/init.d/memcached"},component:l},{key:"version",label:i("Plugin.Ftp.index_9"),component:s},{key:"load",label:i("Home.index_30"),component:t},{key:"optimization",label:i("Plugin.Mysql.index_27"),component:R}];return(e,t)=>{const a=n;return y(),w(a,{value:b(c),"onUpdate:value":t[0]||(t[0]=e=>k(c)?c.value=e:null),data:u},null,8,["value"])}}}))}}}));
