import{d as C,r as u,o,A as m,B as s,f as _,E as p,a,k as R,c as B,R as T,F as j,a2 as q,S as D,U as E,V as K,W as P,K as S,Z as W,__tla as Z}from"./index-92ad187a.js";import{_ as z,__tla as G}from"./Dialog-44c9fa34.js";import{u as H,__tla as J}from"./index-ce039456.js";import{g as L,__tla as M}from"./index-343decc0.js";let v,N=Promise.all([(()=>{try{return Z}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return M}catch{}})()]).then(async()=>{v=C({name:"BpmTaskUpdateAssigneeForm",__name:"TaskUpdateAssigneeForm",emits:["success"],setup(O,{expose:y,emit:g}){const l=u(!1),i=u(!1),t=u({id:"",assigneeUserId:void 0}),U=u({assigneeUserId:[{required:!0,message:"\u65B0\u5BA1\u6279\u4EBA\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}]}),n=u(),c=u([]);y({open:async d=>{l.value=!0,b(),t.value.id=d,c.value=await L()}});const h=g,k=async()=>{if(n&&await n.value.validate()){i.value=!0;try{await H(t.value),l.value=!1,h("success")}finally{i.value=!1}}},b=()=>{var d;t.value={id:"",assigneeUserId:void 0},(d=n.value)==null||d.resetFields()};return(d,r)=>{const V=D,w=E,I=K,F=P,f=S,x=z,A=W;return o(),m(x,{modelValue:a(l),"onUpdate:modelValue":r[2]||(r[2]=e=>q(l)?l.value=e:null),title:"\u8F6C\u6D3E\u5BA1\u6279\u4EBA",width:"500"},{footer:s(()=>[_(f,{disabled:a(i),type:"primary",onClick:k},{default:s(()=>[p("\u786E \u5B9A")]),_:1},8,["disabled"]),_(f,{onClick:r[1]||(r[1]=e=>l.value=!1)},{default:s(()=>[p("\u53D6 \u6D88")]),_:1})]),default:s(()=>[R((o(),m(F,{ref_key:"formRef",ref:n,model:a(t),rules:a(U),"label-width":"110px"},{default:s(()=>[_(I,{label:"\u65B0\u5BA1\u6279\u4EBA",prop:"assigneeUserId"},{default:s(()=>[_(w,{modelValue:a(t).assigneeUserId,"onUpdate:modelValue":r[0]||(r[0]=e=>a(t).assigneeUserId=e),clearable:"",style:{width:"100%"}},{default:s(()=>[(o(!0),B(j,null,T(a(c),e=>(o(),m(V,{key:e.id,label:e.nickname,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[A,a(i)]])]),_:1},8,["modelValue"])}}})});export{v as _,N as __tla};
