System.register(["./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1753954525509","./public-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(function(e,t){"use strict";var a,i,l,n,s,o,d,c,p,u,_,r,g,y,m,b,f,x,h,w,j,k,v,C,R,D,z,S,U;return{setters:[e=>{a=e._},e=>{i=e._},e=>{l=e.b,n=e.h,s=e.d,o=e.c,d=e.f},e=>{c=e.b1,p=e.n,u=e.eT,_=e.a_,r=e.eU,g=e.eV,y=e.c,m=e.w,b=e.x,f=e.b5},e=>{x=e.ay},e=>{h=e.k,w=e.P,j=e.e,k=e.N,v=e.U,C=e.V,R=e.Q,D=e.a2,z=e.j,S=e.a3,U=e.X},null,null,null],execute:function(){const t={class:"p-20px"};e("default",h({__name:"index",props:{data:{}},setup(e){const{t:h}=w(),L=e,{row:T}=L.data,B=c(),F=async()=>{await f(B.type,{id:T.id}),X(),B.setRefresh(!0)},P=j({p:1,limit:10,search:T.id}),{table:V,columns:H}=l([{key:"filename",title:h("Component.UploadFile.index_3"),ellipsis:{tooltip:{width:"trigger"}}},{key:"size",title:h("Site.TableRow.index_23"),width:90,render:e=>p(e.size)},{key:"addtime",title:h("Site.TableRow.index_25"),width:146},n({width:180,options:e=>[{label:h("Database.tools.index_3"),onClick:()=>{s({title:h("Database.tools.index_17"),content:h("Database.tools.index_18"),onConfirm:async({hide:t})=>{await u(B.type,{file:e.filename,name:T.name}),B.setRefresh(!0),t()}})}},{label:h("Ftp.Label.index_11"),onClick:()=>{_(e.filename,e.name)}},{label:h("Public.Btn.Del"),onClick:()=>{s({title:h("Site.Batch.index_18"),content:h("Database.tools.index_19"),onConfirm:async({hide:t})=>{await r({id:e.id}),X(),B.setRefresh(!0),t()}})}}]})]),{loading:N,setLoading:Q}=o(),X=async()=>{try{Q(!0);const{message:e}=await g(k(P));y(e)?(V.data=m(e.data)?e.data:[],V.total=b(e.page)):(V.data=[],V.total=0),T.backup_count=V.total}finally{Q(!1)}};return X(),(e,l)=>{const n=x,s=d,o=i,c=a;return v(),C("div",t,[R(c,null,{toolsLeft:D((()=>[R(n,{class:"backup-btn",type:"primary",onClick:F},{default:D((()=>[z(S(e.$t("Database.index_16")),1)])),_:1})])),table:D((()=>[R(s,{loading:U(N),"loading-num":6,data:U(V).data,columns:U(H)},null,8,["loading","data","columns"])])),pageRight:D((()=>[R(o,{page:U(P).p,"onUpdate:page":l[0]||(l[0]=e=>U(P).p=e),"page-size":U(P).limit,"onUpdate:pageSize":l[1]||(l[1]=e=>U(P).limit=e),"item-count":U(V).total,onRefresh:X},null,8,["page","page-size","item-count"])])),_:1})])}}}))}}}));
