System.register(["./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","./file-legacy-Bt6Hxu9s.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-DAbalqq3.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,t){"use strict";var a,s,i,n,l,o,d,r,c,u,_,p,x,g,m,y,b,D,v,h,f,k,j,w,C;return{setters:[e=>{a=e._},e=>{s=e.C,i=e.dI,n=e.i,l=e.gy,o=e.n,d=e.p,r=e.fa},e=>{c=e.u},e=>{u=e.u},e=>{_=e.c},e=>{p=e.a,x=e._},e=>{g=e.k,m=e.R,y=e.r,b=e.a0,D=e.$,v=e.Z,h=e.a9,f=e._,k=e.aa,j=e.S,w=e.ak},e=>{C=e.ad},null,null],execute:function(){const t={class:"px-20px py-24px"},L={class:"font-bold"},$={class:"mt-16px text-error"},R={key:0,class:"mt-4px"};e("default",g({__name:"index",props:{data:{}},emits:["close"],setup(e,{expose:g,emit:S}){const{t:F}=m(),I=e,{ids:U}=I.data,Z=S,q=c(),z=y(!0),A=y([]),B=e=>{let t="--";for(let a=0;as(e.total)},{key:"position",title:F("Database.index_19")},{key:"addtime",title:F("Docker.Container.config.status.index_11"),width:160,render:e=>e.addtime},{key:"result",title:F("Database.tools.index_24"),align:"right",width:140,render:e=>e.position!==q.remoteList[0].ps?b("div",{class:"text-error"},[F("Database.tools.index_25")]):b("div",{class:z.value?"":"text-error"},[z.value?F("Database.tools.index_26"):F("Database.tools.index_25")])}]),{loading:G,setLoading:H}=u(),J=async e=>await r(q.type,{name:e.name,id:e.id}),K=()=>{d({title:F("Database.index_30"),hideClose:!0,data:{title:F("Database.index_30"),api:J,data:A.value,callback:M},component:p})},M=e=>{Z("close"),q.setRefresh(!0),d({title:F("Database.tools.index_30"),width:440,footer:!0,component:x,data:{title:F("Database.index_30"),data:e,status:"done",columns:[{key:"name",title:F("Database.index_12"),ellipsis:{tooltip:{width:"trigger"}}}]}})};return(async()=>{await(async()=>{const{message:e}=await _();n(e)&&(z.value=e.status_db)})(),(async()=>{try{H(!0);const{message:e}=await l({ids:U});n(e)?A.value=o(e.data)?e.data.map((e=>({...e,position:B(e.sid)}))):[]:A.value=[]}finally{H(!1)}})()})(),g({onConfirm:()=>{const e=F("Database.tools.index_27"),t=F("Database.tools.index_28");i({text:F("Database.index_30"),title:F("Database.tools.index_29"),content:z.value?e:t,onConfirm:async({hide:e})=>{K(),e()}})}}),(e,s)=>{const i=C,n=a;return D(),v("div",t,[b(i,{type:"warning"},{default:h((()=>[f("span",L,k(e.$t("Database.tools.index_20"))+": ",1),f("span",null,k(e.$t("Database.tools.index_21")),1)])),_:1}),b(n,{class:"mt-16px",loading:j(G),"loading-num":j(U).length,"max-height":300,data:j(A),columns:j(E)},null,8,["loading","loading-num","data","columns"]),f("div",$,[f("p",null,k(e.$t("Database.tools.index_21")),1),j(z)?w("",!0):(D(),v("p",R,k(e.$t("Database.tools.index_22")),1))])])}}}))}}}));