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","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy12.js?v=1763625242172","./public-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy8.js?v=1763625242172","./hooks-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./index-legacy131.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-legacy132.js?v=1763625242172","./soft-legacy.js?v=1763625242172","./site-legacy.js?v=1763625242172"],(function(e,a){"use strict";var t,l,n,s,i,d,o,c,u,_,r,p,y,g,h,b,m,k,x,v,w,f,j,D,C,R,U,$,B,S,W,q,z,L,P,K,H,I,N,V,X,A,E,F,G,J,M,O;return{setters:[e=>{t=e.i,l=e.bn,n=e.bq,s=e.br,i=e.bu,d=e.c,o=e.x,c=e.y,u=e.bt,_=e.a,r=e.q},e=>{p=e._},e=>{y=e._},e=>{g=e._},e=>{h=e._},e=>{b=e.s,m=e.e,k=e.c,x=e.v,v=e.f,w=e.a,f=e.d,j=e.h},e=>{D=e._},e=>{C=e.g},e=>{R=e.X,U=e.k,$=e.P,B=e.e,S=e.w,W=e.R,q=e.a2,z=e.a3,L=e.V,P=e.N,K=e.U,H=e.j,I=e.a4,N=e.aj,V=e._},e=>{X=e.c,A=e.u,E=e.d,F=e._,G=e.e,J=e.g},e=>{M=e.aC,O=e.dS},null,null,null,null,null,null],execute:function(){const{t:Q}=t.global;function T(){return{key:"password",title:Q("Database.index_14"),minWidth:150,render:e=>R(b,{value:e.password},null)}}function Y(){return{key:"sid",title:Q("Database.index_19"),width:"12%",minWidth:120,render:e=>C(e)}}const Z={class:"p-16px"};e("default",U({__name:"index",setup(e){const{t:t}=$(),b=V((()=>_((()=>a.import("./index-legacy133.js?v=1763625242172")),void 0))),C=l(),U=m(),Q=()=>{U.show=!0},ee=()=>{J()},ae=async()=>{await n(C.type,{ids:[]}),ce()},{keys:te,table:le,columns:ne}=k([{type:"selection",width:40},{key:"name",title:t("Database.index_12"),width:"12%",minWidth:120},{key:"username",title:t("Database.index_13"),width:"12%",minWidth:120},T(),Y(),x({onBlur:async(e,a)=>{await u({id:a.id,ps:e})}}),v({width:140,options:e=>[{label:"Password",onClick:()=>{A(e)}},{label:t("Public.Btn.Del"),onClick:()=>{X([e])}}]})]),se=[{key:"sync",label:t("Database.index_24"),onBatch:e=>{w({title:t("Database.index_25"),content:t("Database.index_26"),onConfirm:async({hide:a})=>{await n(C.type,{ids:e.map((e=>e.id))}),a()}})}},{key:"backup",type:"confirm",label:t("Database.index_27"),confirm:{title:t("Database.index_28"),desc:t("Database.index_29"),api:e=>s(C.type,{id:e.id},!1),done:()=>{ce()},columns:[{key:"name",title:t("Database.index_12")}]}},{key:"delete",label:t("Database.index_30"),onBatch:e=>{X(e)}}],{loading:ie,setLoading:de}=f(),oe=B({p:1,limit:10,sid:-1,search:""}),ce=async()=>{try{de(!0);const{message:e}=await i(C.type,(()=>{const e={...P(oe)};return-1===e.sid&&delete e.sid,e})());d(e)?(le.data=o(e.data)?e.data:[],le.total=c(e.page)):(le.data=[],le.total=0)}finally{te.value=[],de(!1)}};return S((()=>C.isRefresh),(e=>{e&&(C.setRefresh(!1),C.delRemoteId===oe.sid&&(oe.sid=-1),ce())})),(async()=>{await C.getRemote(),C.install&&ce()})(),(e,a)=>{const t=M,l=r,n=D,s=j,i=h,d=g,o=y,c=p,u=O;return W(),q(L(G),null,{default:z((()=>[R(u,null,{default:z((()=>[K("div",Z,[R(o,{feedback:!0},{toolsLeft:z((()=>[R(t,{type:"primary",onClick:Q},{default:z((()=>[H(I(e.$t("Database.index_1")),1)])),_:1}),R(t,{onClick:ee},{default:z((()=>[H(I(e.$t("Database.index_4")),1)])),_:1}),R(l,{class:"mx-0!",vertical:""}),R(t,{onClick:ae},{default:z((()=>[H(I(e.$t("Database.index_5")),1)])),_:1}),R(t,{onClick:L(E)},{default:z((()=>[H(I(e.$t("Database.index_6")),1)])),_:1},8,["onClick"])])),toolsRight:z((()=>[R(L(F),{value:L(oe).sid,"onUpdate:value":a[0]||(a[0]=e=>L(oe).sid=e),"store-key":"database-sqlserver-page",onChange:ce},null,8,["value"]),R(n,{value:L(oe).search,"onUpdate:value":a[1]||(a[1]=e=>L(oe).search=e),placeholder:"Database search",onSearch:ce},null,8,["value"])])),table:z((()=>[R(s,{"checked-row-keys":L(te),"onUpdate:checkedRowKeys":a[2]||(a[2]=e=>N(te)?te.value=e:null),loading:L(ie),data:L(le).data,columns:L(ne)},null,8,["checked-row-keys","loading","data","columns"])])),pageLeft:z((()=>[R(i,{"checked-row-keys":L(te),"onUpdate:checkedRowKeys":a[3]||(a[3]=e=>N(te)?te.value=e:null),data:L(le).data,options:se},null,8,["checked-row-keys","data"])])),pageRight:z((()=>[R(d,{page:L(oe).p,"onUpdate:page":a[4]||(a[4]=e=>L(oe).p=e),"page-size":L(oe).limit,"onUpdate:pageSize":a[5]||(a[5]=e=>L(oe).limit=e),"item-count":L(le).total,onRefresh:ce},null,8,["page","page-size","item-count"])])),_:1}),R(c,{show:L(U).show,"onUpdate:show":a[6]||(a[6]=e=>L(U).show=e),title:e.$t("Database.mongo.index_4"),width:540,"min-height":280,footer:!0,component:L(b)},null,8,["show","title","component"])])])),_:1})])),_:1})}}}))}}}));
