System.register(["./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1764830988434","./public-legacy.js?v=1764830988434","./page_layout-legacy.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1764830988434","./common-legacy.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434"],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,L,C;return{setters:[e=>{a=e._},e=>{i=e.c,s=e.f,n=e.Z,l=e.a,r=e.d,d=e.h},e=>{o=e.aL,_=e.a9,c=e.n,u=e.fO,m=e.fP,p=e.x,y=e.m,b=e.fQ,f=e.fR},e=>{g=e.aC},e=>{x=e.k,h=e.P,w=e.R,D=e.V,j=e.W,k=e.a3,v=e.U,L=e.j,C=e.a4},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:P}=R.data,S=o(),z=async()=>{if(null===P)throw y.error(x("Database.redis.index_8")),new Error(x("Database.redis.index_9"));await b({sid:P}),H()},{table:E,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<S.remoteList.length;a++)if(`${S.remoteList[a].id}`===e.sid){t=S.remoteList[a].ps||S.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===P)throw new Error(x("Database.redis.index_9"));await f({file:e.filepath,sid:P}),S.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 u({file:e.filepath}),H(),t()}})}}]})]),{loading:$,setLoading:B}=r(),H=async()=>{try{B(!0);const{message:e}=await m();E.data=p(e)?e:[]}finally{B(!1)}};return H(),(e,i)=>{const s=g,n=d,l=a;return D(),w("div",t,[j(l,null,{toolsLeft:k(()=>[j(s,{type:"primary",onClick:z},{default:k(()=>[L(C(e.$t("Database.index_16")),1)]),_:1})]),table:k(()=>[j(n,{"max-height":400,loading:v($),columns:v(T),data:v(E).data},null,8,["loading","columns","data"])]),_:1})])}}}))}}});
