import{a4 as b,r as e,c}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a9 as p,aN as y,i as t}from"./index-BTglIPU2.js?v=1773287522785";import{g as v}from"./naive-ui--dJnpVcV.js?v=1773287522785";const S=b("wordpress-toolkit",()=>{const m=e(""),r=e(!1),w=e(""),i=e("/www/wwwroot"),n=e(""),l=e({setup:!1,version:"",status:!1}),u=e({setup:!1}),f=e({setup:!0,type:"",version:"",status:!1}),a=e({is_install:0,status:!1,version:""}),g=c(()=>a.value.is_install===1&&p(a.value.version,"4.1.2")),o=e({is_install:0,status:!1,version:""}),h=c(()=>o.value.is_install===1&&p(o.value.version,"9.6.8"));return{web:f,mysql:l,php:u,siteName:m,sitePath:i,isRefresh:r,phpVersion:w,webserver:n,monitor:a,isMonitorInstall:g,waf:o,isWafInstall:h,setRefresh:s=>{r.value=s},getConfig:async()=>{const{message:s}=await y();t(s)&&(n.value=v(s,"webserver",""),i.value=v(s,"sites_path",""),u.value.setup=!!s.php.length,t(s.web)&&(f.value=s.web),t(s.mysql)&&(l.value=s.mysql),t(s.monitor)&&(a.value=s.monitor),t(s.waf)&&(o.value=s.waf))}}});export{S as u};
