!function(){function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,r,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function i(t,o,u,a){var i=o&&o.prototype instanceof l?o:l,f=Object.create(i.prototype);return e(f,"_invoke",function(t,e,o){var u,a,i,l=0,f=o||[],s=!1,p={p:0,n:0,v:n,a:v,f:v.bind(n,4),d:function(t,e){return u=t,a=0,i=n,p.n=e,c}};function v(t,e){for(a=t,i=e,r=0;!s&&l&&!o&&r<f.length;r++){var o,u=f[r],v=p.p,y=u[2];t>3?(o=y===e)&&(i=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=n):u[0]<=v&&((o=t<2&&v<u[1])?(a=0,p.v=e,p.n=u[1]):v<y&&(o=t<3||u[0]>e||e>y)&&(u[4]=t,u[5]=e,p.n=y,a=0))}if(o||t>1)return c;throw s=!0,e}return function(o,f,y){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&v(f,y),a=f,i=y;(r=a<2?n:i)||!s;){u||(a?a<3?(a>1&&(p.n=-1),v(a,i)):p.n=i:p.v=i);try{if(l=2,u){if(a||(o="next"),r=u[o]){if(!(r=r.call(u,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,a<2&&(a=0)}else 1===a&&(r=u.return)&&r.call(u),a<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=n}else if((r=(s=p.n<0)?i:t.call(e,p))!==c)break}catch(r){u=n,a=1,i=r}finally{l=1}}return{value:r,done:s}}}(t,u,a),!0),f}var c={};function l(){}function f(){}function s(){}r=Object.getPrototypeOf;var p=[][u]?r(r([][u]())):(e(r={},u,function(){return this}),r),v=s.prototype=l.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,e(t,a,"GeneratorFunction")),t.prototype=Object.create(v),t}return f.prototype=s,e(v,"constructor",s),e(s,"constructor",f),f.displayName="GeneratorFunction",e(s,a,"GeneratorFunction"),e(v),e(v,a,"Generator"),e(v,u,function(){return this}),e(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:i,m:y}})()}function e(t,n,r,o){var u=Object.defineProperty;try{u({},"",{})}catch(t){u=0}e=function(t,n,r,o){function a(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?u?u(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(a("next",0),a("throw",1),a("return",2))},e(t,n,r,o)}function n(t,e,n,r,o,u,a){try{var i=t[u](a),c=i.value}catch(t){return void n(t)}i.done?e(c):Promise.resolve(c).then(r,o)}System.register(["./base-lib-legacy.js?v=1761009159","./database-legacy.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./useStore-legacy2.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159"],function(e,r){"use strict";var o,u,a,i,c,l,f,s,p,v,y,d,m,b,g,h,j,_,w,x,O,S;return{setters:[function(t){o=t.c,u=t.bP,a=t.r,i=t.q,c=t.v,l=t.x,f=t.e,s=t.B,p=t.z,v=t.y,y=t.N,d=t.F,m=t.b0,b=t.Q,g=t.ae,h=t.ab,j=t.a9,_=t.U},function(t){w=t.clearRedisDb},function(t){x=t.p,O=t.P},function(t){S=t.g},null],execute:function(){var r={class:"p-20px"},k={class:"border border-light p-16px w-[22rem] max-h-[20rem] overflow-auto"},P={key:1,class:"text-tertiary-50 text-small"};e("default",o({__name:"index",props:{compData:{default:function(){return{keyList:[],sid:0}}}},setup:function(e,o){var T=o.expose,G=S().refs.isRefreshTable,D=e,F=u(D.compData,"keyList"),N=u(D.compData,"sid"),E=a(),V=function(){var e,r=(e=t().m(function e(n){var r;return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,x({icon:"warning-filled",title:"提示",content:"此操作将清空选中的数据库, 是否继续?"});case 1:return r=JSON.stringify(F.value.filter(function(t){return E.value.includes(t.name)}).map(function(t){return t.id})),t.n=2,O({loading:"正在清空，请稍后...",request:w({data:JSON.stringify({ids:r,sid:N.value})}),message:!0,success:function(t){t.status&&(G.value=!0)}});case 2:n();case 3:return t.a(2)}},e)}),function(){var t=this,r=arguments;return new Promise(function(o,u){var a=e.apply(t,r);function i(t){n(a,o,u,i,c,"next",t)}function c(t){n(a,o,u,i,c,"throw",t)}i(void 0)})});return function(t){return r.apply(this,arguments)}}();return T({onConfirm:V}),i(function(){E.value=F.value.map(function(t){return t.name})}),function(t,e){var n=_,o=g,u=h,a=j;return c(),l("div",r,[f(a,null,{default:s(function(){return[f(u,{label:"选择数据库"},{default:s(function(){return[p("div",k,[v(F).length?(c(),y(o,{key:0,modelValue:v(E),"onUpdate:modelValue":e[0]||(e[0]=function(t){return b(E)?E.value=t:null})},{default:s(function(){return[(c(!0),l(d,null,m(v(F),function(t,e){return c(),y(n,{class:"w-full !mr-0",label:t.name,key:e},null,8,["label"])}),128))]}),_:1},8,["modelValue"])):(c(),l("span",P,"暂无数据"))])]}),_:1})]}),_:1})])}}}))}}})}();
