import{u as s,bN as t,bS as e,l as a,bT as i,a1 as l,a2 as r}from"./utils-lib.js?v=20260328163632";import{S as o}from"./index185.js?v=20260328163632";import{R as n}from"./index186.js?v=20260328163632";import{D as p,B as m}from"./naive-ui.js?v=20260328163632";import{k as c,w as f,o as u,J as x,V as b,W as d,O as h,a3 as _,Y as v,U as w,X as y,j,Z as g,l as k}from"./base-lib.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";const z={class:"w-full h-full pt-[12px]"},C={class:"flex items-center text-[#a94442] min-h-25px"},B={class:"flex items-center"},L={class:"text-14px text-[var(--text-color-2)]"},O=c({__name:"index",setup(c){const{isRefreshSoftList:O}=s(),{isLoading:R}=t(),{BtTable:S,BtPage:T,pageOptions:D,refreshList:E,importOtherEvent:H,$reset:J}=e();return f((()=>O.value),(s=>{s&&(E(0),O.value=!1)})),u((()=>E(0))),x(J),(s,t)=>{const e=m,c=p,f=w("bt-loading");return b(),d("div",z,[h(o),h(n),h(c,{type:"error","show-icon":!1,closable:!1},{default:_((()=>[y("div",C,[j(g(v(a)("安全提醒：第三方插件上架前，宝塔官方进行了安全审计，但可能还存在安全风险，在生产环境使用前请自行甄别"))+" ",1),y("div",B,[h(e,{type:"primary",title:v(a)("免费入驻"),size:"tiny",class:"!ml-[5px]",onClick:t[0]||(t[0]=s=>v(i)("https://www.bt.cn/developer/"))},{default:_((()=>[j(g(v(a)("免费入驻")),1)])),_:1},8,["title"]),h(e,{type:"primary",title:v(a)("获取第三方应用"),size:"tiny",class:"!ml-[5px]",onClick:t[1]||(t[1]=s=>v(i)("https://www.bt.cn/bbs/forum-40-1.html"))},{default:_((()=>[j(g(v(a)("获取第三方应用")),1)])),_:1},8,["title"]),h(e,{title:v(a)("导入插件"),size:"tiny",class:"!ml-[5px]",onClick:v(H),type:"primary"},{default:_((()=>[j(g(v(a)("导入插件")),1)])),_:1},8,["title","onClick"])])])])),_:1}),h(v(r),null,{content:_((()=>[k(h(v(S),{"scroll-x":1e3},null,512),[[f,v(R)],[f,v(a)("正在获取软件列表，请稍候..."),"title"]])])),"footer-right":_((()=>[h(v(T),{"show-size-picker":"","page-sizes":v(l)([6,10,12,16,20,50,200]),onRefresh:t[2]||(t[2]=()=>v(E)())},{suffix:_((()=>[y("span",L,g(v(a)("共 {0} 条",[v(D).itemCount])),1)])),_:1},8,["page-sizes"])])),_:1})])}}});export{O as default};
