import{R as m,c as p}from"./api.BfKiC2-d.js";import{R as u}from"./RoleUsersStores.DkybGpC2.js";import{e as d}from"./index.lP_uh0LI.js";import{d as _,b as c,h as f,f as i,u as o}from"./vue.BxlDVA1H.js";const $=_({__name:"RoleUsers",setup(R){const r=m(),t=u(),l=(n,e,a)=>{p(r.$state.roleId,{direction:e,movedKeys:a}).then(s=>{r.set_state(s.data),d({message:s.msg,type:"success"})})};return(n,e)=>{const a=c("el-transfer");return i(),f(a,{modelValue:o(t).$state.right_users,"onUpdate:modelValue":e[0]||(e[0]=s=>o(t).$state.right_users=s),filterable:"",titles:["未授权用户","已授权用户"],data:o(t).$state.all_users,props:{key:"id",label:"name"},onChange:l},null,8,["modelValue","data"])}}});export{$ as default};
