System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./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","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BQ2Kqzbl.js?v=1773287522785","./data-legacy-B9xdUIE5.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,a){"use strict";var t,s,l,n,i,c,u,d,o,_,y,r,g,p,b,j,m,x,h,v,f,w,D,k;return{setters:[e=>{t=e.h,s=e.ig,l=e.ih,n=e.i,i=e.v,c=e.x,u=e.P},e=>{d=e._},e=>{o=e._},e=>{_=e.u},e=>{y=e.u},e=>{r=e.u},e=>{g=e.B,p=e.a2},e=>{b=e.k,j=e.R,m=e.$,x=e.a8,h=e.a9,v=e.a0,f=e.S,w=e.j,D=e.aa,k=e.a3},null,null,null,null,null,null,null,null],execute:function(){e("default",b({__name:"index",props:{data:{}},setup(e){const b=k((()=>u((()=>a.import("./form-legacy-Ts5riT7h.js?v=1773287522785")),void 0))),q=e,{params:M}=q.data,{t:$}=j(),{keys:P,table:C,columns:L}=y([{key:"database",title:$("Site.PHP.add_site_16"),render:e=>"*"===e.database?`* -${$("Database.Mysql.index_22")}`:e.database},{key:"table",title:"Table",render:e=>"*"===e.table?`* -${$("Database.Mysql.index_23")}`:e.table},{key:"user",title:$("Database.index_21"),render:e=>`${$("Database.Mysql.index_24")}: ${e.access.map((e=>e.access)).join(",")}`,ellipsis:{tooltip:!0}},_({width:80,options:e=>[{label:$("Public.Btn.Del"),onClick:async()=>{t({title:$("Public.Btn.Del"),content:$("Database.Mysql.index_25",[e.database]),onConfirm:async()=>{let a={...M,db_name:e.database,tb_name:e.table,access:e.access.map((e=>e.access)).join(","),with_grant:0};await s(a),T()}})}}]})]),{loading:B,setLoading:S}=r(),T=async()=>{try{S(!0);const{message:e}=await l(M);n(e)&&(C.data=e.data)}finally{S(!1),P.value=[]}};T();const H=i($("Database.Mysql.index_21"),{getList:T,params:M});return(e,a)=>{const t=g,s=o,l=d,n=c,i=p;return m(),x(i,{class:"p-16px"},{default:h((()=>[v(l,null,{toolsLeft:h((()=>[v(t,{type:"primary",onClick:a[0]||(a[0]=e=>f(H).show=!0)},{default:h((()=>[w(D(e.$t("Database.Mysql.index_21")),1)])),_:1})])),table:h((()=>[v(s,{loading:f(B),data:f(C).data,"max-height":500,columns:f(L)},null,8,["loading","data","columns"])])),_:1}),v(n,{show:f(H).show,"onUpdate:show":a[1]||(a[1]=e=>f(H).show=e),title:f(H).title,data:f(H).data,width:600,"min-height":250,footer:!0,component:f(b)},null,8,["show","title","data","component"])])),_:1})}}}))}}}));
