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