System.register(["./page_layout-legacy.js?v=1764233927359","./index-legacy.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1764233927359","./public-legacy.js?v=1764233927359","./naive-legacy.js?v=1764233927359","./vue-legacy.js?v=1764233927359","./common-legacy.js?v=1764233927359","./__commonjsHelpers__-legacy.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1764233927359"],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.hA,s=a.hB,l=a.d,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.a2,j=a.V,x=a.a3,f=a.W,w=a.U,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=1764233927359"),void 0)),q=a,{params:M}=q.data,{t:P}=g(),{keys:$,table:C,columns:B}=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:L,setLoading:S}=u(),H=async()=>{try{S(!0);const{message:a}=await s(M);l(a)&&(C.data=a.data)}finally{S(!1),$.value=[]}};H();const U=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 j(),h(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(()=>[v(D(a.$t("Database.Mysql.index_21")),1)]),_:1})]),table:x(()=>[f(s,{loading:w(L),data:w(C).data,"max-height":500,columns:w(B)},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(m)},null,8,["show","title","data","component"])]),_:1})}}}))}}});
