import{t as D}from"./member.b42ee60e.js";import{d as h,b as x,r as b,p as y,c as t,e as m,k as C,i as e,h as o,u as i,f as w,j as A,m as c,t as N,F as S,a2 as U,E as j}from"./index.0308b213.js";const L=c("\u63D0\u4EA4"),M=c("\u53D6\u6D88"),z=h({props:{modelValue:{type:Boolean,default:!1},uid:{default:0},members:{default:[]}},emits:["update:modelValue","onClose"],setup(F,{emit:_}){const n=F,a=x({from_uid:"",to_uid:""}),p=b([]);y(()=>n.modelValue,r=>{s.value=r,r&&(a.from_uid=n.uid,p.value=n.members)});const E=()=>{D(a).then(()=>{j.success("\u8BBE\u7F6E\u6210\u529F"),d()})},s=b(!1),d=()=>{_("update:modelValue",!1),_("onClose")};return(r,u)=>{const k=t("el-option"),B=t("el-select"),f=t("el-form-item"),V=t("el-button"),v=t("el-dialog");return m(),C(v,{modelValue:s.value,"onUpdate:modelValue":u[1]||(u[1]=l=>s.value=l),title:"\u8F6C\u79FB\u63A8\u5E7F\u5173\u7CFB",width:"50%",onClose:d},{default:e(()=>[o(i(U),{"label-width":"140px"},{default:e(()=>[o(f,null,{default:e(()=>[o(B,{modelValue:i(a).to_uid,"onUpdate:modelValue":u[0]||(u[0]=l=>i(a).to_uid=l),placeholder:"\u8BF7\u9009\u62E9\u63A8\u5E7F\u5458",filterable:"",clearable:""},{default:e(()=>[(m(!0),w(S,null,A(p.value,(l,g)=>(m(),C(k,{key:g,value:l.id,label:l.nickname},{default:e(()=>[c(N(l.nickname),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(f,null,{default:e(()=>[o(V,{type:"primary",onClick:E},{default:e(()=>[L]),_:1}),o(V,{onClick:d},{default:e(()=>[M]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}});export{z as _};
