import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{bn as e,m as s,fZ as t,f_ as i,p as o}from"./page_layout.js?v=1763625242172";import{a as r}from"./public.js?v=1763625242172";import{k as n,P as d,r as l,c as p,R as u,S as _,X as m,a3 as f,U as c,V as v,aj as b}from"./vue.js?v=1763625242172";import{dP as x}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";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:w,databaseList:y}=g.data,k=e(),C=l([]),P=p((()=>y.map((a=>({label:a.name,value:a.id})))));return n({onConfirm:({hide:a})=>{null!==w?0!==C.value.length?r({title:D("Database.redis.index_18"),content:D("Database.redis.index_19"),onConfirm:async({hide:e})=>{await t({sid:w,ids:C.value}),k.setRefresh(!0),e(),a()}}):s.error(D("Database.redis.index_17")):s.error(D("Database.redis.index_8"))}}),(e,s)=>{const t=i,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(t,{value:v(C),"onUpdate:value":s[0]||(s[0]=a=>b(C)?C.value=a:null),options:v(P)},null,8,["value","options"])])])),_:1},8,["label"])])),_:1})])}}}),[["__scopeId","data-v-52f8a71d"]]);export{D as default};
