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