import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1764830988434";import{aL as e,fS as s,m as t,fT as i,p as o}from"./page_layout.js?v=1764830988434";import{a as r}from"./public.js?v=1764830988434";import{k as n,P as d,r as l,c as p,R as u,V as _,W as m,a3 as f,S as c,U as v,ak as b}from"./vue.js?v=1764830988434";import{dR as x}from"./naive.js?v=1764830988434";import"./common.js?v=1764830988434";import"./__commonjsHelpers__.js?v=1764830988434";const j={class:"p-20px"},h={class:"w-220px"},D=o(n({__name:"index",props:{data:{}},setup(o,{expose:n}){const{t:D}=d(),g=o,{sid:k,databaseList:w}=g.data,y=e(),R=l([]),C=p(()=>w.map(a=>({label:a.name,value:a.id})));return n({onConfirm:({hide:a})=>{null!==k?0!==R.value.length?r({title:D("Database.redis.index_18"),content:D("Database.redis.index_19"),onConfirm:async({hide:e})=>{await i({sid:k,ids:R.value}),y.setRefresh(!0),e(),a()}}):t.error(D("Database.redis.index_17")):t.error(D("Database.redis.index_8"))}}),(e,t)=>{const i=s,o=x,r=a;return _(),u("div",j,[m(r,null,{default:f(()=>[m(o,{label:e.$t("Database.redis.index_16"),"show-feedback":!1},{default:f(()=>[c("div",h,[m(i,{value:v(R),"onUpdate:value":t[0]||(t[0]=a=>b(R)?R.value=a:null),options:v(C)},null,8,["value","options"])])]),_:1},8,["label"])]),_:1})])}}}),[["__scopeId","data-v-52f8a71d"]]);export{D as default};
