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