System.register(["./index.vue_vue_type_script_setup_true_lang-legacy4.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,s,n,l,r,d,o,_,c,u,m,y,b,p,g,x,f,h,w,D,j,k,v,L,C;return{setters:[e=>{a=e._},e=>{i=e.b,s=e.h,n=e.al,l=e.d,r=e.c,d=e.f},e=>{o=e.b1,_=e.X,c=e.n,u=e.e_,m=e.e$,y=e.f0,b=e.w,p=e.m,g=e.f1},e=>{x=e.ay},e=>{f=e.k,h=e.P,w=e.U,D=e.V,j=e.Q,k=e.a2,v=e.j,L=e.a3,C=e.X},null,null,null],execute:function(){const t={class:"p-20px"};e("default",f({__name:"index",props:{data:{}},setup(e){const{t:f}=h(),R=e,{sid:S}=R.data,$=o(),z=async()=>{if(null===S)throw p.error(f("Database.redis.index_8")),new Error(f("Database.redis.index_9"));await g({sid:S}),B()},{table:E,columns:P}=i([{key:"name",title:f("Database.redis.index_36"),width:180,ellipsis:{tooltip:{width:"trigger"}}},{key:"filepath",title:f("Database.redis.index_10"),ellipsis:{tooltip:{width:"trigger"}}},{key:"mtime",title:f("Site.TableRow.index_25"),width:150,render:e=>_(e.mtime)},{key:"size",title:f("Site.TableRow.index_23"),width:80,render:e=>c(e.size)},{key:"sid",title:f("Database.redis.index_11"),width:120,render:e=>{let t="--";for(let a=0;a<$.remoteList.length;a++)if(`${$.remoteList[a].id}`===e.sid){t=$.remoteList[a].ps||$.remoteList[a].db_host;break}return t}},s({width:100,options:e=>[{label:f("Database.tools.index_3"),onClick:()=>{n({text:f("Database.redis.index_12"),title:f("Database.redis.index_12"),content:f("Database.redis.index_13",[e.name]),onConfirm:async({hide:t})=>{if(null===S)throw new Error(f("Database.redis.index_9"));await u({file:e.filepath,sid:S}),$.setRefresh(!0),t()}})}},{label:f("Public.Btn.Del"),onClick:()=>{l({title:f("Database.redis.index_14"),content:f("Database.redis.index_15",[e.name]),onConfirm:async({hide:t})=>{await m({file:e.filepath}),B(),t()}})}}]})]),{loading:T,setLoading:X}=r(),B=async()=>{try{X(!0);const{message:e}=await y();E.data=b(e)?e:[]}finally{X(!1)}};return B(),(e,i)=>{const s=x,n=d,l=a;return w(),D("div",t,[j(l,null,{toolsLeft:k((()=>[j(s,{type:"primary",onClick:z},{default:k((()=>[v(L(e.$t("Database.index_16")),1)])),_:1})])),table:k((()=>[j(n,{"max-height":400,loading:C(T),columns:C(P),data:C(E).data},null,8,["loading","columns","data"])])),_:1})])}}}))}}}));
