import{a9 as g,aN as w,i as t}from"./index-BTglIPU2.js?v=1773287522785";import{a4 as b,r as s,c as h}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{g as o}from"./naive-ui--dJnpVcV.js?v=1773287522785";const _=b("config",()=>{const r=s(!1),v=e=>{r.value=e},n=s(""),i=s("/www/wwwroot"),l=s(!0),u=s({setup:!1}),f=s({setup:!0,type:"",version:"",status:!1}),c=s({setup:!1,version:"",status:!1}),p=s({setup:!1,version:"",status:!1}),a=s({is_install:0,status:!1,version:""}),m=h(()=>a.value.is_install===1&&g(a.value.version,"4.1.2"));return{getPHPConfig:async()=>{const{message:e}=await w();t(e)&&(n.value=o(e,"webserver",""),i.value=o(e,"sites_path",""),l.value=o(e,"recycle_bin",!1),u.value.setup=!!e.php.length,t(e.web)&&(f.value=e.web),t(e["pure-ftpd"])&&(c.value=e["pure-ftpd"]),t(e.mysql)&&(p.value=e.mysql),t(e.monitor)&&(a.value=e.monitor))},webserver:n,sitePath:i,recycleBin:l,php:u,web:f,ftp:c,mysql:p,isRefresh:r,monitor:a,isMonitorInstall:m,setRefresh:v}});export{_ as u};
