import{_ as e}from"./index237.js?v=1753954525509";import{_ as a,a as s}from"./index.vue_vue_type_script_setup_true_lang20.js?v=1753954525509";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang21.js?v=1753954525509";import{ep as n,eq as l,c as i,_ as p,O as o,e as u}from"./page_layout.js?v=1753954525509";import{c as r}from"./public.js?v=1753954525509";import{c1 as _,aq as m,c5 as c,bX as d,bY as v,ay as g}from"./naive.js?v=1753954525509";import{k as x,P as y,r as f,U as j,a1 as b,a2 as k,V as h,F as w,O,X as P,Q as C,W as S,a3 as z,al as U,j as L,ah as q}from"./vue.js?v=1753954525509";import"./php.js?v=1753954525509";import"./soft.js?v=1753954525509";import"./alarm.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang10.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang14.js?v=1753954525509";import"./theme-chrome.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./file2.js?v=1753954525509";import"./common.js?v=1753954525509";const G={class:"w-200px! text-right"},B=u(x({__name:"index",setup(e,{expose:a}){const{t:s}=y(),t={connTimeout:s("Plugin.Openlitespeed.index_1"),enableGzipCompress:s("Plugin.Openlitespeed.index_2"),gzipCompressLevel:s("Plugin.Openlitespeed.index_3"),maxConnections:s("Plugin.Openlitespeed.index_4"),maxKeepAliveReq:s("Plugin.Openlitespeed.index_5"),maxSSLConnections:s("Plugin.Openlitespeed.index_6")},u=f(),x=async()=>{const e=u.value.reduce(((e,a)=>(e[a.name]=a.value,e)),{});await n(e)},{loading:q,setLoading:B}=r(),F=async()=>{try{B(!0);const{message:e}=await l();i(e)&&(u.value=Object.entries(e).map((([e,a])=>({name:e,value:"rollingSize"!==e?Number(a[0]):a[0],ps:t[e]}))))}finally{B(!1)}};return F(),a({init:F}),(e,a)=>{const s=_,t=m,n=c,l=p,i=d,r=v,y=g,f=o;return j(),b(f,{show:P(q)},{default:k((()=>[(j(!0),h(w,null,O(P(u),((e,a)=>(j(),h("div",{key:a},[C(r,{class:"list_box"},{default:k((()=>[S("div",G,z(e.name),1),"enableGzipCompress"!==e.name&&"rollingSize"!==e.name?(j(),b(s,{key:0,class:"w-200px!","show-button":!1,value:e.value,"onUpdate:value":a=>e.value=a},null,8,["value","onUpdate:value"])):U("",!0),"rollingSize"===e.name?(j(),b(t,{key:1,class:"w-200px!",value:e.value,"onUpdate:value":a=>e.value=a},null,8,["value","onUpdate:value"])):U("",!0),"enableGzipCompress"===e.name?(j(),b(n,{key:2,class:"w-200px! justify-start",value:e.value,"onUpdate:value":a=>e.value=a,"checked-value":1,"unchecked-value":0},null,8,["value","onUpdate:value"])):U("",!0),e.ps?(j(),b(i,{key:3,trigger:"hover",placement:"top-start"},{trigger:k((()=>[C(l,{name:"common-ask",class:"color-#fc7938",size:"16"})])),default:k((()=>[L(" "+z(e.ps),1)])),_:2},1024)):U("",!0)])),_:2},1024)])))),128)),C(r,{class:"justify-center!"},{default:k((()=>[C(y,{type:"primary",onClick:F},{default:k((()=>[L(z(e.$t("Public.Btn.Refresh")),1)])),_:1}),C(y,{type:"primary",onClick:x},{default:k((()=>[L(z(e.$t("Public.Btn.Save")),1)])),_:1})])),_:1})])),_:1},8,["show"])}}}),[["__scopeId","data-v-4193d178"]]),F=x({__name:"index",setup(n){const{t:l}=y(),i=f("service"),p=[{key:"service",label:l("Security.History.Index_10"),component:a},{key:"version",label:l("Plugin.Ftp.index_9"),component:t},{key:"file",label:l("Site.Config.index_15"),data:{path:"/usr/local/lsws/conf/httpd_config.conf"},component:s},{key:"config",label:"OpenLiteSpeed",component:B}];return(a,s)=>{const t=e;return j(),b(t,{value:P(i),"onUpdate:value":s[0]||(s[0]=e=>q(i)?i.value=e:null),data:p},null,8,["value"])}}});export{F as default};
