System.register(["./page_layout-legacy.js?v=1753954525509","./index-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1753954525509","./public-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1753954525509"],(function(a,e){"use strict";var t,s,l,n,i,c,o,d,_,r,u,y,p,b,g,m,h,j,x,f,w,D,v,k;return{setters:[a=>{t=a.gr,s=a.gs,l=a.c,n=a.a},a=>{i=a._},a=>{c=a._},a=>{o=a.b,d=a.h,_=a.d,r=a.c,u=a.e,y=a.f},a=>{p=a.ay,b=a.cD},a=>{g=a.k,m=a.P,h=a.U,j=a.a1,x=a.a2,f=a.Q,w=a.X,D=a.j,v=a.a3,k=a._},null,null,null],execute:function(){a("default",g({__name:"index",props:{data:{}},setup(a){const g=k((()=>n((()=>e.import("./form-legacy10.js?v=1753954525509")),void 0))),q=a,{params:M}=q.data,{t:P}=m(),{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),S()}})}}]})]),{loading:B,setLoading:H}=r(),S=async()=>{try{H(!0);const{message:a}=await s(M);l(a)&&(C.data=a.data)}finally{H(!1),$.value=[]}};S();const U=u(P("Database.Mysql.index_21"),{getList:S,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(U).show=!0)},{default:x((()=>[D(v(a.$t("Database.Mysql.index_21")),1)])),_:1})])),table:x((()=>[f(s,{loading:w(B),data:w(C).data,"max-height":500,columns:w(L)},null,8,["loading","data","columns"])])),_:1}),f(n,{show:w(U).show,"onUpdate:show":e[1]||(e[1]=a=>w(U).show=a),title:w(U).title,data:w(U).data,width:600,"min-height":250,footer:!0,component:w(g)},null,8,["show","title","data","component"])])),_:1})}}}))}}}));
