import{B as a}from"./index97.js?v=20260328163632";import{u as s,l as n,ar as t,au as e,d as i}from"./utils-lib.js?v=20260328163632";import{u as o}from"./store4.js?v=20260328163632";import{g as l}from"./useMethod4.js?v=20260328163632";import{k as r,Y as p,V as c,_ as m,a3 as u,a1 as x,X as d,Z as f,W as k,O as b,F as v}from"./base-lib.js?v=20260328163632";import{A as g}from"./naive-ui.js?v=20260328163632";const y={class:"content-mask"},j=r({__name:"index",setup(r){const j=i(),{isWin:_}=s(),{activeType:h,pluginInfo:w}=o(),I=async a=>{const{data:s}=await t({sName:a.name});if("-1"===s.task)return j.error(n("当前插件正在安装，不可重复安装"));e({name:null==s?void 0:s.name,type:"i",pluginInfo:s,callback:()=>l()})};return(s,t)=>{var e;const i=g;return-1===(null==(e=p(w))?void 0:e.status_code)?(c(),m(a,{key:0,width:"380px"},{content:u((()=>[d("div",y,[t[3]||(t[3]=d("i",{class:"svgtofont-el-warning text-warning !text-[22px] mr-4px"},null,-1)),d("span",null,f(p(n)("未安装运行环境，")),1),p(_)?(c(),k(v,{key:0},[d("span",{onClick:t[0]||(t[0]=a=>I({name:"iis"})),class:"!font-bold !text-14px bt-link"},f(p(n)("安装IIS")),1),b(i,{vertical:""})],64)):x("",!0),d("span",{onClick:t[1]||(t[1]=a=>I({name:"nginx"})),class:"!font-bold !text-[14px] bt-link"},f(p(n)("安装Nginx")),1),"proxy"!==p(h)?(c(),k(v,{key:1},[b(i,{vertical:""}),d("span",{onClick:t[2]||(t[2]=a=>I({name:"apache"})),class:"!font-bold !text-14px bt-link"},f(p(n)("安装Apache")),1)],64)):x("",!0)])])),_:1})):x("",!0)}}});export{j as _};
