import{bb as s,l as a,ar as e,au as t,_ as l}from"./utils-lib.js?v=20260328163632";import{k as n,a9 as i,c as o,V as r,W as c,X as p,F as v,L as u,Y as m,a1 as f,q as d,Z as x,_}from"./base-lib.js?v=20260328163632";import{A as k}from"./naive-ui.js?v=20260328163632";const b={class:"software-install"},w={class:"software-view"},g={key:0,class:"flex items-center"},y={class:"flex text-[14px] font-black"},h={class:"mr-[10px]"},j=l(n({__name:"index",props:{options:{default:()=>({name:"",title:""})},icon:{type:Boolean},width:{},height:{}},setup(l){const n=l,{options:j}=i(n),B=o((()=>s(j.value)?j.value:[j.value])),C={"FileZilla Server":"ftpserver",W3SVC:"iis"},F=async()=>{const s=j.value.name||C[j.value.service_name]||j.value.service_name,{data:a}=await e({sName:"pure-ftpd"===s?"pureftpd":s});t({name:s,type:"i",pluginInfo:a})};return(s,e)=>{const t=k;return r(),c("div",null,[e[1]||(e[1]=p("div",{class:"software-mask"},null,-1)),p("div",b,[p("div",w,[s.$slots.content?f("",!0):(r(),c("div",g,[e[0]||(e[0]=p("i",{class:"svgtofont-el-warning text-orange mr-[4px] !text-[20px]"},null,-1)),(r(!0),c(v,null,u(m(B),((s,e)=>(r(),c(v,{key:e},[p("div",y,[p("span",h,x(m(a)("未安装 {0}",[s.title||s.service_name])),1),p("span",{class:"bt-link text-[14px]",onClick:F},x(m(a)("立即安装")),1)]),m(B).length<e?(r(),_(t,{key:0,vertical:""})):f("",!0)],64)))),128))])),d(s.$slots,"content",{},void 0,!0)])])])}}}),[["__scopeId","data-v-6484fe53"]]);export{j as B};
