import{_ as e}from"./index105.js?v=1761009159";import{_ as s}from"./index114.js?v=1761009159";import{u as t,l as a}from"./utils-lib.js?v=1761009159";import{c as l,s as o,w as i,q as r,a6 as n,H as m,v as p,x as c,e as d,B as f,z as u,C as g,y as _,I as h,G as w,aY as b}from"./base-lib.js?v=1761009159";import{S as x,x as j,y as v}from"./validator.js?v=1761009159";import{S as C}from"./index380.js?v=1761009159";import{R as y}from"./index381.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const L={class:"w-full h-full"},k={class:"leading-[2.5rem] flex items-center text-danger"},z={class:"flex items-center"},H=l({__name:"index",setup(l){const{mainHeight:H,isRefreshSoftList:S}=t(),{isLoading:E}=o(x()),R=j(),{refreshList:T,importOtherEvent:U,pageChangeEvent:q}=R,{softTableList:B,tablePageConfig:G,TableColumn:I}=o(R);return i(()=>S.value,e=>{e&&(T("0"),S.value=!1)}),r(()=>T("0")),n(R.$reset),(t,l)=>{const o=w,i=b,r=a,n=s,x=e,j=m("bt-loading");return p(),c("div",L,[d(C),d(y),d(i,{type:"error","show-icon":!1,closable:!1},{title:f(()=>[u("div",k,[l[7]||(l[7]=g(" 安全提醒：第三方插件上架前，宝塔官方进行了安全审计，但可能还存在安全风险，在生产环境使用前请自行甄别 ",-1)),u("div",z,[d(o,{type:"primary",title:"免费入驻",size:"small",class:"!ml-[.5rem]",onClick:l[0]||(l[0]=e=>_(v)("https://www.bt.cn/developer/"))},{default:f(()=>l[4]||(l[4]=[g("免费入驻",-1)])),_:1,__:[4]}),d(o,{type:"primary",title:"获取第三方应用",size:"small",class:"!ml-[.5rem]",onClick:l[1]||(l[1]=e=>_(v)("https://www.bt.cn/bbs/forum-40-1.html"))},{default:f(()=>l[5]||(l[5]=[g("获取第三方应用",-1)])),_:1,__:[5]}),d(o,{title:"导入插件",size:"small",class:"!ml-[.5rem]",onClick:_(U),type:"primary"},{default:f(()=>l[6]||(l[6]=[g(" 导入插件 ",-1)])),_:1,__:[6]},8,["onClick"])])])]),_:1}),d(x,null,{content:f(()=>[h(d(r,{class:"soft-table",column:_(I),"min-height":_(H),data:_(B),description:"列表为空"},null,8,["column","min-height","data"]),[[j,_(E)],[j,"正在获取软件列表，请稍候...","title"]])]),"footer-right":f(()=>[d(n,{page:_(G).page,"onUpdate:page":l[2]||(l[2]=e=>_(G).page=e),row:_(G).row,"onUpdate:row":l[3]||(l[3]=e=>_(G).row=e),total:_(G).total,rowList:[10,15,20,30,50,100],onChange:_(q)},null,8,["page","row","total","onChange"])]),_:1})])}}});export{H as default};
