import{Z as s,r as e,c as t}from"./vue.js?v=1763625242172";import{at as a,dT as i,c as l}from"./page_layout.js?v=1763625242172";import{d5 as r}from"./naive.js?v=1763625242172";const o=s("SitePhpStore",(()=>{const s=e(!1),o=e("--"),u=e(""),n=e("/www/wwwroot"),v=e(!0),p=e({setup:!0,type:"",version:"",status:!1}),w=e({setup:!1,version:"",status:!1}),m=e({setup:!1,version:"",status:!1}),f=e({is_install:0,status:!1,version:""}),c=e({is_install:0,status:!1,version:""}),h=t((()=>1===f.value.is_install&&a(f.value.version,"4.1.2"))),y=t((()=>1===c.value.is_install&&a(c.value.version,"9.6.8"))),_=e({setup:!1});return{web:p,ftp:w,siteName:o,mysql:m,php:_,sitePath:n,webserver:u,recycleBin:v,isRefresh:s,monitor:f,waf:c,isMonitorInstall:h,isWafInstall:y,getConfig:async()=>{const{message:s}=await i();l(s)&&(u.value=r(s,"webserver",""),n.value=r(s,"sites_path",""),v.value=r(s,"recycle_bin",!1),_.value.setup=!!s.php.length,l(s.web)&&(p.value=s.web),l(s["pure-ftpd"])&&(w.value=s["pure-ftpd"]),l(s.mysql)&&(m.value=s.mysql),l(s.monitor)&&(f.value=s.monitor),l(s.waf)&&(c.value=s.waf))},setRefresh:e=>{s.value=e}}}));export{o as u};
