System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-BWPgT9-g.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./index-legacy-y1mYB81o.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BQ2Kqzbl.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785"],(function(e,t){"use strict";var a,i,s,l,n,d,r,u,o,_,c,g,y,p,x,b,m,h,j,f,w,D,v,k,C,L;return{setters:[e=>{a=e._},e=>{i=e._},e=>{s=e.w,l=e.C,n=e.dI,d=e.h,r=e.gA,u=e.gB,o=e.n,_=e.m,c=e.gC,g=e.gD},e=>{y=e.u},e=>{p=e.u},e=>{x=e.u},e=>{b=e.u},e=>{m=e.B},e=>{h=e.k,j=e.R,f=e.$,w=e.Z,D=e.a0,v=e.a9,k=e.S,C=e.j,L=e.aa},null,null,null,null,null,null,null,null],execute:function(){const t={class:"p-20px"};e("default",h({__name:"index",props:{data:{}},setup(e){const{t:h}=j(),R=e,{sid:S}=R.data,T=y(),B=async()=>{if(null===S)throw _.error(h("Database.redis.index_8")),new Error(h("Database.redis.index_9"));await c({sid:S}),I()},{table:$,columns:z}=x([{key:"name",title:h("Database.redis.index_36"),width:180,ellipsis:{tooltip:{width:"trigger"}}},{key:"filepath",title:h("Database.redis.index_10"),ellipsis:{tooltip:{width:"trigger"}}},{key:"mtime",title:h("Site.TableRow.index_25"),width:150,render:e=>s(e.mtime)},{key:"size",title:h("Site.TableRow.index_23"),width:80,render:e=>l(e.size)},{key:"sid",title:h("Database.redis.index_11"),width:120,render:e=>{let t="--";for(let a=0;a<T.remoteList.length;a++)if(`${T.remoteList[a].id}`===e.sid){t=T.remoteList[a].ps||T.remoteList[a].db_host;break}return t}},b({width:100,options:e=>[{label:h("Database.tools.index_3"),onClick:()=>{n({text:h("Database.redis.index_12"),title:h("Database.redis.index_12"),content:h("Database.redis.index_13",[e.name]),onConfirm:async({hide:t})=>{if(null===S)throw new Error(h("Database.redis.index_9"));await g({file:e.filepath,sid:S}),T.setRefresh(!0),t()}})}},{label:h("Public.Btn.Del"),onClick:()=>{d({title:h("Database.redis.index_14"),content:h("Database.redis.index_15",[e.name]),onConfirm:async({hide:t})=>{await r({file:e.filepath}),I(),t()}})}}]})]),{loading:E,setLoading:A}=p(),I=async()=>{try{A(!0);const{message:e}=await u();$.data=o(e)?e:[]}finally{A(!1)}};return I(),(e,s)=>{const l=m,n=i,d=a;return f(),w("div",t,[D(d,null,{toolsLeft:v((()=>[D(l,{type:"primary",onClick:B},{default:v((()=>[C(L(e.$t("Database.index_16")),1)])),_:1})])),table:v((()=>[D(n,{"max-height":400,loading:k(E),columns:k(z),data:k($).data},null,8,["loading","columns","data"])])),_:1})])}}}))}}}));
