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","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy11.js?v=1753954525509","./public-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1753954525509","./hooks-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./index-legacy126.js?v=1753954525509","./naive-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","./index-legacy127.js?v=1753954525509","./soft-legacy.js?v=1753954525509"],(function(e,a){"use strict";var t,n,l,s,i,d,o,c,u,_,p,r,y,g,h,b,m,k,x,w,v,f,D,j,C,R,U,W,$,B,z,L,P,S,K,q,H,I,N,Q,X,A,E,F,G,J,M,O;return{setters:[e=>{t=e.i,n=e.b1,l=e.b4,s=e.b5,i=e.b8,d=e.c,o=e.w,c=e.x,u=e.b7,_=e.a,p=e.p},e=>{r=e._},e=>{y=e._},e=>{g=e._},e=>{h=e._},e=>{b=e.t,m=e.e,k=e.b,x=e.w,w=e.h,v=e.d,f=e.c,D=e.f},e=>{j=e._},e=>{C=e.g},e=>{R=e.Q,U=e.k,W=e.P,$=e.e,B=e.w,z=e.U,L=e.a1,P=e.a2,S=e.X,K=e.N,q=e.W,H=e.j,I=e.a3,N=e.ah,Q=e._},e=>{X=e.c,A=e.u,E=e.d,F=e._,G=e.e,J=e.g},e=>{M=e.ay,O=e.cD},null,null,null,null,null],execute:function(){const{t:T}=t.global;function V(){return{key:"password",title:T("Database.index_14"),minWidth:150,render:e=>R(b,{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}=W(),b=Q((()=>_((()=>a.import("./index-legacy128.js?v=1753954525509")),void 0))),C=n(),U=m(),T=()=>{U.show=!0},ee=()=>{J()},ae=async()=>{await l(C.type,{ids:[]}),ce()},{keys:te,table:ne,columns:le}=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},V(),Y(),x({onBlur:async(e,a)=>{await u({id:a.id,ps:e})}}),w({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=>{v({title:t("Database.index_25"),content:t("Database.index_26"),onConfirm:async({hide:a})=>{await l(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=$({p:1,limit:10,sid:-1,search:""}),ce=async()=>{try{de(!0);const{message:e}=await i(C.type,(()=>{const e={...K(oe)};return-1===e.sid&&delete e.sid,e})());d(e)?(ne.data=o(e.data)?e.data:[],ne.total=c(e.page)):(ne.data=[],ne.total=0)}finally{te.value=[],de(!1)}};return B((()=>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,n=p,l=j,s=D,i=h,d=g,o=y,c=r,u=O;return z(),L(S(G),null,{default:P((()=>[R(u,null,{default:P((()=>[q("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(n,{class:"mx-0!",vertical:""}),R(t,{onClick:ae},{default:P((()=>[H(I(e.$t("Database.index_5")),1)])),_:1}),R(t,{onClick:S(E)},{default:P((()=>[H(I(e.$t("Database.index_6")),1)])),_:1},8,["onClick"])])),toolsRight:P((()=>[R(S(F),{value:S(oe).sid,"onUpdate:value":a[0]||(a[0]=e=>S(oe).sid=e),"store-key":"database-sqlserver-page",onChange:ce},null,8,["value"]),R(l,{value:S(oe).search,"onUpdate:value":a[1]||(a[1]=e=>S(oe).search=e),placeholder:"Database search",onSearch:ce},null,8,["value"])])),table:P((()=>[R(s,{"checked-row-keys":S(te),"onUpdate:checkedRowKeys":a[2]||(a[2]=e=>N(te)?te.value=e:null),loading:S(ie),data:S(ne).data,columns:S(le)},null,8,["checked-row-keys","loading","data","columns"])])),pageLeft:P((()=>[R(i,{"checked-row-keys":S(te),"onUpdate:checkedRowKeys":a[3]||(a[3]=e=>N(te)?te.value=e:null),data:S(ne).data,options:se},null,8,["checked-row-keys","data"])])),pageRight:P((()=>[R(d,{page:S(oe).p,"onUpdate:page":a[4]||(a[4]=e=>S(oe).p=e),"page-size":S(oe).limit,"onUpdate:pageSize":a[5]||(a[5]=e=>S(oe).limit=e),"item-count":S(ne).total,onRefresh:ce},null,8,["page","page-size","item-count"])])),_:1}),R(c,{show:S(U).show,"onUpdate:show":a[6]||(a[6]=e=>S(U).show=e),title:e.$t("Database.mongo.index_4"),width:540,"min-height":280,footer:!0,component:S(b)},null,8,["show","title","component"])])])),_:1})])),_:1})}}}))}}}));
