System.register(["./page_layout-legacy.js?v=1764830988434","./index-legacy.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy9.js?v=1764830988434","./public-legacy.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy8.js?v=1764830988434","./hooks-legacy.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./index-legacy132.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./common-legacy.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1764830988434","./index-legacy133.js?v=1764830988434","./soft-legacy.js?v=1764830988434","./site-legacy.js?v=1764830988434"],function(e,a){"use strict";var t,l,n,s,i,d,o,c,u,_,r,p,y,g,h,m,b,k,x,v,w,f,j,D,C,R,U,S,W,$,B,L,P,z,q,K,H,I,N,O,V,A,E,F,G,J,M,Q;return{setters:[e=>{t=e.i,l=e.aL,n=e.aO,s=e.aP,i=e.aS,d=e.d,o=e.x,c=e.y,u=e.q,_=e.a,r=e.aR},e=>{p=e._},e=>{y=e._},e=>{g=e._},e=>{h=e._},e=>{m=e.s,b=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.W,U=e.k,S=e.P,W=e.e,$=e.w,B=e.a2,L=e.V,P=e.a3,z=e.S,q=e.U,K=e.ak,H=e.j,I=e.a4,N=e._,O=e.N},e=>{V=e.b,A=e.c,E=e._,F=e.d,G=e.e,J=e.g},e=>{M=e.dS,Q=e.aC},null,null,null,null,null,null],execute:function(){const{t:T}=t.global;function X(){return{key:"password",title:T("Database.index_14"),minWidth:150,render:e=>R(m,{value:e.password},null)}}function Y(){return{key:"sid",title:T("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}=S(),m=N(()=>_(()=>a.import("./index-legacy134.js?v=1764830988434"),void 0)),C=l(),U=b(),T=()=>{U.show=!0},ee=()=>{J()},ae=async()=>{await s(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},X(),Y(),x({onBlur:async(e,a)=>{await r({id:a.id,ps:e})}}),v({width:140,options:e=>[{label:"Password",onClick:()=>{V(e)}},{label:t("Public.Btn.Del"),onClick:()=>{A([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 s(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=>n(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=>{A(e)}}],{loading:ie,setLoading:de}=f(),oe=W({p:1,limit:10,sid:-1,search:""}),ce=async()=>{try{de(!0);const{message:e}=await i(C.type,(()=>{const e={...O(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 $(()=>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=Q,l=u,n=D,s=j,i=h,d=g,o=y,c=p,_=M;return L(),B(q(G),null,{default:P(()=>[R(_,null,{default:P(()=>[z("div",Z,[R(o,{feedback:!0},{toolsLeft:P(()=>[R(t,{type:"primary",onClick:T},{default:P(()=>[H(I(e.$t("Database.index_1")),1)]),_:1}),R(t,{onClick:ee},{default:P(()=>[H(I(e.$t("Database.index_4")),1)]),_:1}),R(l,{class:"mx-0!",vertical:""}),R(t,{onClick:ae},{default:P(()=>[H(I(e.$t("Database.index_5")),1)]),_:1}),R(t,{onClick:q(F)},{default:P(()=>[H(I(e.$t("Database.index_6")),1)]),_:1},8,["onClick"])]),toolsRight:P(()=>[R(q(E),{value:q(oe).sid,"onUpdate:value":a[0]||(a[0]=e=>q(oe).sid=e),"store-key":"database-sqlserver-page",onChange:ce},null,8,["value"]),R(n,{value:q(oe).search,"onUpdate:value":a[1]||(a[1]=e=>q(oe).search=e),placeholder:"Database search",onSearch:ce},null,8,["value"])]),table:P(()=>[R(s,{"checked-row-keys":q(te),"onUpdate:checkedRowKeys":a[2]||(a[2]=e=>K(te)?te.value=e:null),loading:q(ie),data:q(le).data,columns:q(ne)},null,8,["checked-row-keys","loading","data","columns"])]),pageLeft:P(()=>[R(i,{"checked-row-keys":q(te),"onUpdate:checkedRowKeys":a[3]||(a[3]=e=>K(te)?te.value=e:null),data:q(le).data,options:se},null,8,["checked-row-keys","data"])]),pageRight:P(()=>[R(d,{page:q(oe).p,"onUpdate:page":a[4]||(a[4]=e=>q(oe).p=e),"page-size":q(oe).limit,"onUpdate:pageSize":a[5]||(a[5]=e=>q(oe).limit=e),"item-count":q(le).total,onRefresh:ce},null,8,["page","page-size","item-count"])]),_:1}),R(c,{show:q(U).show,"onUpdate:show":a[6]||(a[6]=e=>q(U).show=e),title:e.$t("Database.mongo.index_4"),width:540,"min-height":280,footer:!0,component:q(m)},null,8,["show","title","component"])])]),_:1})]),_:1})}}}))}}});
