import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{b1 as e,m as s,f2 as t,f3 as i,e as o}from"./page_layout.js?v=1753954525509";import{d as r}from"./public.js?v=1753954525509";import{k as n,P as d,r as l,c as p,U as u,V as _,Q as m,a2 as c,W as f,X as v,ah as b}from"./vue.js?v=1753954525509";import{cA as x}from"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";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([]),U=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:c((()=>[m(o,{label:e.$t("Database.redis.index_16"),"show-feedback":!1},{default:c((()=>[f("div",h,[m(t,{value:v(C),"onUpdate:value":s[0]||(s[0]=a=>b(C)?C.value=a:null),options:v(U)},null,8,["value","options"])])])),_:1},8,["label"])])),_:1})])}}}),[["__scopeId","data-v-52f8a71d"]]);export{D as default};
