import{_ as h}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{m as r,h as C,gE as D,c as g}from"./index-BTglIPU2.js?v=1773287522785";import{u as k}from"./index-B5d4M70B.js?v=1773287522785";import{a1 as w,b1 as R}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as B,R as $,r as E,c as I,$ as N,Z as S,a0 as n,a9 as i,_ as V,S as _,X as y}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const L={class:"p-20px"},O={class:"w-220px"},U=B({__name:"index",props:{data:{}},setup(d,{expose:c}){const{t:s}=$(),l=d,{sid:o,databaseList:p}=l.data,m=k(),a=E([]),u=I(()=>p.map(e=>({label:e.name,value:e.id})));return c({onConfirm:({hide:e})=>{if(o===null){r.error(s("Database.redis.index_8"));return}if(a.value.length===0){r.error(s("Database.redis.index_17"));return}C({title:s("Database.redis.index_18"),content:s("Database.redis.index_19"),onConfirm:async({hide:t})=>{await D({sid:o,ids:a.value}),m.setRefresh(!0),t(),e()}})}}),(e,t)=>{const f=R,b=w,x=h;return N(),S("div",L,[n(x,null,{default:i(()=>[n(b,{label:e.$t("Database.redis.index_16"),"show-feedback":!1},{default:i(()=>[V("div",O,[n(f,{value:_(a),"onUpdate:value":t[0]||(t[0]=v=>y(a)?a.value=v:null),options:_(u)},null,8,["value","options"])])]),_:1},8,["label"])]),_:1})])}}}),G=g(U,[["__scopeId","data-v-52f8a71d"]]);export{G as default};
