import{ax as s,$ as e}from"./utils-lib.js?v=1761009159";import{c as l,s as a,q as t,v as i,x as r,z as m,e as n,B as o,C as c,y as p,F as d,D as u,G as f,aY as _}from"./base-lib.js?v=1761009159";import{S as v,w as x}from"./validator.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const y={class:"w-full p-[2rem] text-small"},j={class:"flex items-center"},g={class:"message flex-1 py-[.3rem] leading-[2.4rem]"},w={class:"leading-[2.5rem] flex items-center whitespace-nowrap"},k={class:"flex items-center justify-center mt-[2rem]"},C=l({__name:"index",setup(l){const{isSpecial:C}=a(v()),{plugin:b}=a(x()),{helpList:V,getPluginInfo:h,cutVersionEvent:z,repairPluginEvent:E}=x();return t(h),(l,a)=>{const t=f,v=_,x=s,h=e;return i(),r("div",y,[m("div",j,[m("div",g,[n(v,{"show-icon":!1,closable:!1,type:"info"},{title:o(()=>[m("div",w,[a[2]||(a[2]=c(" 提示：如果当前插件出现",-1)),a[3]||(a[3]=m("span",{class:"text-[red]"},"异常错误",-1)),a[4]||(a[4]=c("或",-1)),a[5]||(a[5]=m("span",{class:"text-[red]"},"无法使用",-1)),a[6]||(a[6]=c("，请尝试点击 ",-1)),n(t,{size:"small",type:"primary",title:"修复插件",class:"!ml-[.5rem]",onClick:p(E)},{default:o(()=>a[1]||(a[1]=[c(" 修复插件 ",-1)])),_:1,__:[1]},8,["onClick"])])]),_:1}),p(C)?(i(),r(d,{key:0},[m("div",k,[a[8]||(a[8]=m("div",null,"选择版本",-1)),n(x,{modelValue:p(b).version,"onUpdate:modelValue":a[0]||(a[0]=s=>p(b).version=s),options:p(b).options,class:"!w-[24rem] ml-[2rem] mr-[1rem]"},null,8,["modelValue","options"]),n(t,{type:"primary",title:"切换版本",class:"!ml-[.5rem]",onClick:p(z)},{default:o(()=>a[7]||(a[7]=[c("切换版本",-1)])),_:1,__:[7]},8,["onClick"])]),n(h,{class:"mt-[2rem] ml-[2rem]",list:p(V)},null,8,["list"])],64)):u("",!0)])])])}}});export{C as default};
