import{r as e,aX as t}from"./utils-lib.js?v=20260328163632";import{ah as a,ai as l,r as n,c as o}from"./base-lib.js?v=20260328163632";const u=l("SITE-STORE",(()=>{const a=n(!1),l=n({}),u=n(!1),i=n(""),r=n(!1),s=o((()=>{var t,a,l;const n=(null==(l=null==(a=null==(t=e)?void 0:t.currentRoute)?void 0:a.value)?void 0:l.name)||"php";return"otherModel"===n?"other":n.replace("site-","")})),p=n({addtime:"",edate:"0000-00-00",id:null,index:null,listen:[],listen_ok:!0,load_info:{},name:"",path:"",project_config:{},project_type:"",ps:"",rname:"",run:!1,ssl:{},status:"",stop:"",type_id:0}),v=n(""),d=o((()=>["go","python","nodejs","proxy","html","other"].includes(v.value))),c=n();return{siteTypeSpe:d,pluginInfo:l,isRefreshList:a,siteInfo:p,isBindExtranet:u,rowData:c,siteType:v,settingTabActive:i,isJump:r,activeType:s,setSiteInfo:(e,a)=>{var l,n,o,r,d,c;if(e){let t=(null==(l=null==e?void 0:e.project_type)?void 0:l.toLowerCase())||"";t||(t=s.value),"node"===t&&(t="nodejs"),"nginx"===t&&(t="proxy"),p.value={...e,project_type:t},v.value=(null==(n=p.value)?void 0:n.project_type)||"",["asp","aspx"].includes(v.value)&&(v.value="php")}return i.value=(t(a)?a:"")||"",u.value=!0,"php"!==v.value&&(u.value=p.value.hasOwnProperty("bind_extranet")?p.value.bind_extranet:!(null==(r=null==(o=p.value)?void 0:o.project_config)?void 0:r.hasOwnProperty("bind_extranet"))||p.value.project_config.bind_extranet,"Tomcat"===(null==(c=null==(d=p.value)?void 0:d.project_config)?void 0:c.project_type)&&(u.value=!0)),p.value},jumpTabEvent:e=>{i.value=e,r.value=!0},resetTab:()=>{i.value="",r.value=!1}}})),i=()=>{const e=u();return{...e,...a(e)}};export{i as u};
