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