import{h4 as s,x as a,e as l,$ as e,j as o}from"./utils-lib.js?v=1761009159";import{c as n,s as t,a6 as i,v as r,x as p,z as d,A as c,y as m,e as u,B as v,C as x,Q as b}from"./base-lib.js?v=1761009159";import{x as f}from"./validator.js?v=1761009159";import h from"./speed-install.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const _={class:"p-20px"},j={class:"p-20px text-base bg-light rounded-base border border-lighter"},g={class:"mt-12px"},C={class:"mt-12px"},V={class:"mt-12px"},y={class:"leading-10"},A={class:"mt-12px"},w={class:"mt-12px"},z={class:"mt-12px"},D=n({__name:"index",setup(n,{expose:D}){const{installThirdPlugin:S,cancelInstall:$,$reset_install:B}=f(),{rowData:H,isShowSpeedVisible:I}=t(f());return D({onConfirm:S}),i(B),(n,t)=>{var i,f,D;const S=l,B=e,P=o;return r(),p("div",_,[d("div",j,[d("div",g,[t[1]||(t[1]=d("span",{class:"font-bold"},"插件名称：",-1)),d("span",null,c(m(H).title),1)]),d("div",C,[t[2]||(t[2]=d("span",{class:"font-bold"},"插件版本：",-1)),d("span",null,c("".concat(Array.isArray(m(H).versions)?(null==(i=m(H).versions[0])?void 0:i.m_version)+"."+(null==(f=m(H).versions[0])?void 0:f.version):m(H).versions)),1)]),d("div",V,[t[3]||(t[3]=d("span",{class:"font-bold"},"插件描述：",-1)),d("span",y,c(m(s)((null==(D=m(H).ps)?void 0:D.replace(/<a\b[^>]*>(.*?)<\/a>/gi,""))||"")),1)]),d("div",A,[t[4]||(t[4]=d("span",{class:"font-bold"},"插件大小：",-1)),d("span",null,c(m(a)(m(H).size)),1)]),d("div",w,[t[5]||(t[5]=d("span",{class:"font-bold"},"插件开发商：",-1)),d("span",null,c(m(H).author),1)]),d("div",z,[t[6]||(t[6]=d("span",{class:"font-bold"},"插件来源：",-1)),u(S,{href:m(H).home,class:"!text-base"},{default:v(()=>[x(c(m(H).home),1)]),_:1},8,["href"])])]),u(B,{class:"ml-20px mt-12px",options:[{content:"安装过程可能需要几分钟时间，请耐心等候！"},{content:"如果已存在此插件，将被替换！"}]}),u(P,{title:"正在执行安装脚本，请稍候...",modelValue:m(I),"onUpdate:modelValue":t[0]||(t[0]=s=>b(I)?I.value=s:null),area:50,onCancel:m($)},{default:v(()=>[u(h,{compData:{}})]),_:1},8,["modelValue","onCancel"])])}}});export{D as default};
