System.register(["./index-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./form.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./index-legacy263.js?v=1763625242172"],(function(e,t){"use strict";var a,l,s,i,n,o,d,_,u,c,r,y,p,b,x,g,m,w,D,f,h,v,j,k,C,$,R,E;return{setters:[e=>{a=e._},e=>{l=e.s,s=e.c,i=e.f,n=e.a,o=e.d,d=e.h,_=e._},e=>{u=e._},e=>{c=e.P,r=e.X,y=e.k,p=e.a0,b=e.e,x=e.c,g=e.R,m=e.S,w=e.a3,D=e.j,f=e.a4,h=e.V,v=e.an,j=e.U},e=>{k=e.bn,C=e.fG,$=e.fH},e=>{R=e._},e=>{E=e.aC},null,null,null,null,null],execute:function(){function t(){const{t:e}=c();return{key:"db_password",title:e("Database.index_14"),width:160,render:e=>r(l,{value:e.db_password},null)}}function q(){const{t:e}=c();return{key:"ps",title:e("Database.tools.index_62")}}const B={class:"p-20px"},L={key:0};e("default",y({__name:"index",setup(e){const{t:l}=c(),y=k(),{type:P,remoteList:G}=p(y),H=b({show:!1,title:l("Database.tools.index_41"),data:{row:void 0,isEdit:!1}}),S=()=>{H.data.row=void 0,H.data.isEdit=!1,H.title=l("Database.tools.index_41"),H.show=!0},U=x((()=>G.value.filter((e=>0!==e.id)))),{columns:I}=s([{key:"db_host",title:l("Database.tools.index_42")},{key:"db_port",title:l("Docker.Container.create.index_7")},{key:"db_type",title:l("Database.tools.index_59")},{key:"db_user",title:l("Database.index_13")},t(),q(),i({width:"mysql"===y.type?150:100,options:e=>[{label:"Get DB",show:"mysql"===e.db_type,onClick:()=>{(async e=>{await C(P.value,{sid:e.id}),y.setRefresh(!0)})(e)}},{label:l("Public.Btn.Edit"),onClick:()=>{(e=>{H.data.row=e,H.data.isEdit=!0,H.title=l("Database.tools.index_58"),H.show=!0})(e)}},{label:l("Public.Btn.Del"),onClick:()=>{n({title:`${l("Database.tools.index_60")} [${e.db_host}]`,content:l("Database.tools.index_61"),onConfirm:async({hide:t})=>{await(async e=>{await $(P.value,{id:e.id}),y.getRemote(),y.setRefresh(!0),y.setDelRemoteId(e.id)})(e),t()}})}}]})]),{loading:V,setLoading:X}=o();return(async()=>{try{X(!0),y.getRemote()}finally{X(!1)}})(),(e,t)=>{const l=E,s=d,i=u,n=_,o=a;return g(),m("div",B,[r(i,null,{toolsLeft:w((()=>[r(l,{type:"primary",onClick:S},{default:w((()=>[D(f(e.$t("Database.tools.index_41")),1)])),_:1})])),table:w((()=>[r(s,{loading:h(V),columns:h(I),data:h(U)},null,8,["loading","columns","data"])])),_:1}),r(n,{class:"mt-24px"},{default:w((()=>["mysql"===h(P)?(g(),m("li",L,f(e.$t("Database.tools.index_49")),1)):v("",!0),j("li",null,f(e.$t("Database.tools.index_50")),1),j("li",null,f(e.$t("Database.tools.index_51")),1),j("li",null,f(e.$t("Database.tools.index_52")),1)])),_:1}),r(o,{show:h(H).show,"onUpdate:show":t[0]||(t[0]=e=>h(H).show=e),title:h(H).title,width:460,footer:!0,data:h(H).data,component:R},null,8,["show","title","data"])])}}}))}}}));
