System.register(["./public-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./file-legacy2.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy13.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(function(e,t){"use strict";var a,s,i,n,l,o,d,r,c,u,p,_,x,m,g,y,b,D,v,f,h,w,k,j,C;return{setters:[e=>{a=e.c,s=e.al,i=e.u,n=e.f},e=>{l=e.b1,o=e.n,d=e.c,r=e.eY,c=e.w,u=e.ee},e=>{p=e.e},e=>{_=e.a,x=e._},e=>{m=e.k,g=e.P,y=e.r,b=e.Q,D=e.U,v=e.V,f=e.a2,h=e.W,w=e.a3,k=e.X,j=e.al},e=>{C=e.c6},null,null],execute:function(){const t={class:"px-20px py-24px"},L={class:"font-bold"},$={class:"mt-16px text-error"},U={key:0,class:"mt-4px"};e("default",m({__name:"index",props:{data:{}},emits:["close"],setup(e,{expose:m,emit:F}){const{t:H}=g(),P=e,{ids:Q}=P.data,R=F,S=l(),V=y(!0),W=y([]),X=e=>{let t="--";for(let a=0;a<S.remoteList.length;a++){const s=S.remoteList[a];if(s.id===e){t=s.ps||s.db_host;break}}return t},Y=y([{key:"name",title:H("Database.index_12"),ellipsis:{tooltip:{width:"trigger"}}},{key:"total",title:H("Component.UploadFile.index_4"),width:120,render:e=>o(e.total)},{key:"position",title:H("Database.index_19")},{key:"addtime",title:H("Docker.Container.config.status.index_11"),width:160,render:e=>e.addtime},{key:"result",title:H("Database.tools.index_24"),align:"right",width:140,render:e=>e.position!==S.remoteList[0].ps?b("div",{class:"text-error"},[H("Database.tools.index_25")]):b("div",{class:V.value?"":"text-error"},[V.value?H("Database.tools.index_26"):H("Database.tools.index_25")])}]),{loading:q,setLoading:z}=a(),A=async e=>await u(S.type,{name:e.name,id:e.id}),B=()=>{i({title:H("Database.index_30"),hideClose:!0,data:{title:H("Database.index_30"),api:A,data:W.value,callback:E},component:_})},E=e=>{R("close"),S.setRefresh(!0),i({title:H("Database.tools.index_30"),width:440,footer:!0,component:x,data:{title:H("Database.index_30"),data:e,status:"done",columns:[{key:"name",title:H("Database.index_12"),ellipsis:{tooltip:{width:"trigger"}}}]}})};return(async()=>{await(async()=>{const{message:e}=await p();d(e)&&(V.value=e.status_db)})(),(async()=>{try{z(!0);const{message:e}=await r({ids:Q});d(e)?W.value=c(e.data)?e.data.map((e=>({...e,position:X(e.sid)}))):[]:W.value=[]}finally{z(!1)}})()})(),m({onConfirm:()=>{const e=H("Database.tools.index_27"),t=H("Database.tools.index_28");s({text:H("Database.index_30"),title:H("Database.tools.index_29"),content:V.value?e:t,onConfirm:async({hide:e})=>{B(),e()}})}}),(e,a)=>{const s=C,i=n;return D(),v("div",t,[b(s,{type:"warning"},{default:f((()=>[h("span",L,w(e.$t("Database.tools.index_20"))+": ",1),h("span",null,w(e.$t("Database.tools.index_21")),1)])),_:1}),b(i,{class:"mt-16px",loading:k(q),"loading-num":k(Q).length,"max-height":300,data:k(W),columns:k(Y)},null,8,["loading","loading-num","data","columns"]),h("div",$,[h("p",null,w(e.$t("Database.tools.index_21")),1),k(V)?j("",!0):(D(),v("p",U,w(e.$t("Database.tools.index_22")),1))])])}}}))}}}));
