import{bN as s,bO as e,l as a,v as l,dg as t}from"./utils-lib.js?v=20260328163632";import{B as i,D as p,n}from"./naive-ui.js?v=20260328163632";import{k as o,i as r,o as c,V as m,W as x,X as u,O as d,a3 as f,j as v,Z as y,Y as _,F as j,a1 as b}from"./base-lib.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";const g={class:"w-full p-[20px] text-[12px] max-w-700px"},w={class:"flex items-center"},k={class:"message flex-1 py-[3px] leading-[24px]"},C={class:"leading-[25px] flex items-center whitespace-nowrap flex-wrap"},h={class:"text-[red]"},D={class:"text-[red]"},O={class:"flex items-center justify-center mt-[20px]"},V=o({__name:"index",setup(o){const V=r("popupClose",(()=>{})),{isSpecial:z}=s(),{softData:B,plugin:E,getPluginInfo:F,cutVersionEvent:H}=e(),I=[{content:a("无法修复？请尝试切换下版本。")}],N=async()=>{V(),t(B.value,"repair")};return c(F),(s,e)=>{const t=i,o=p,r=n;return m(),x("div",g,[u("div",w,[u("div",k,[d(o,{"show-icon":!1,closable:!1,type:"success"},{default:f((()=>[u("div",C,[v(y(_(a)("提示：如果当前插件出现")),1),u("span",h,y(_(a)("异常错误")),1),v(y(_(a)("或")),1),u("span",D,y(_(a)("无法使用")),1),v(y(_(a)("，请尝试点击"))+" ",1),d(t,{size:"small",type:"primary",title:_(a)("修复插件"),class:"!ml-[5px]",onClick:N},{default:f((()=>[v(y(_(a)("修复插件")),1)])),_:1},8,["title"])])])),_:1}),_(z)?(m(),x(j,{key:0},[u("div",O,[u("div",null,y(_(a)("选择版本")),1),d(r,{value:_(E).version,"onUpdate:value":e[0]||(e[0]=s=>_(E).version=s),options:_(E).options,class:"!w-[240px] ml-[20px] mr-[10px]"},null,8,["value","options"]),d(t,{type:"primary",title:_(a)("切换版本"),class:"!ml-[5px]",onClick:_(H)},{default:f((()=>[v(y(_(a)("切换版本")),1)])),_:1},8,["title","onClick"])]),d(_(l),{class:"!mt-[20px] ml-[20px]",options:I})],64)):b("",!0)])])])}}});export{V as default};
