,O("div",{key:H.id,class:ge(["invite-cell",{"invite-cell--disabled":E(H.id)}]),onClick:ue=>T(H)},[C(ce,{"model-value":y(H.id),disabled:E(H.id),shape:"square"},null,8,["model-value","disabled"]),_("div",IC,F(g(H.name)),1),_("div",$C,[_("span",OC,F(H.name),1),H.department?(k(),O("span",PC,F(H.department),1)):ie("",!0)]),E(H.id)?(k(),O("span",DC,"已在会话中")):ie("",!0)],10,RC))),128))]))])]),_:1}),C(Re,{title:"组织架构"},{default:rt(()=>[_("div",BC,[d.value?(k(),O("div",LC,[C(re,{type:"spinner",size:"24px"},{default:rt(()=>[...se[6]||(se[6]=[Ue("加载中...",-1)])]),_:1})])):c.value.length===0?(k(),mt(ke,{key:1,description:"暂无组织架构数据",image:"search"})):(k(),O("div",NC,[(k(!0),O(be,null,nt(m.value,H=>(k(),O("div",{key:H.id,class:ge(["org-tree-node",{"org-tree-node--dept":!H.isLeaf,"org-tree-node--emp":H.isLeaf,"invite-cell--disabled":H.isLeaf&&E(H.id)}]),style:zt({paddingLeft:`${H.depth*16+12}px`}),onClick:ue=>H.isLeaf?b(H):R(H.id)},[H.isLeaf?(k(),O(be,{key:1},[C(ce,{"model-value":y(H.id),disabled:E(H.id),shape:"square"},null,8,["model-value","disabled"]),_("div",jC,F(g(H.label)),1),_("div",UC,[_("span",zC,F(H.label),1),H.department?(k(),O("span",HC,F(H.department),1)):ie("",!0)]),E(H.id)?(k(),O("span",qC,"已在会话中")):ie("",!0)],64)):(k(),O(be,{key:0},[C(oe,{name:$(H.id)?"arrow-down":"arrow",class:"org-tree-node__arrow"},null,8,["name"]),_("span",FC,F(H.label),1),_("span",VC,F(H.childCount)+"人",1)],64))],14,MC))),128))]))])]),_:1})]),_:1},8,["active"]),_("div",WC,[_("span",KC,[se[7]||(se[7]=Ue(" 已选 ",-1)),_("strong",null,F(p.value),1),se[8]||(se[8]=Ue(" 人 ",-1))]),C(fe,{type:"success",size:"small",round:"",loading:f.value,disabled:p.value===0||!e.conversationId,onClick:Z},{default:rt(()=>[...se[9]||(se[9]=[Ue(" 确认邀请 ",-1)])]),_:1},8,["loading","disabled"])])])]),_:1},8,["show"])}}}),eh=ot(GC,[["__scopeId","data-v-61086f47"]]),JC={class:"participant-strip__count"},YC={class:"participant-strip__avatars"},XC=["onMouseenter"],QC=["src","alt","onError"],ZC={key:1,class:"participant-strip__avatar-letter"},eE={key:0,class:"participant-strip__overflow"},tE={key:1,class:"participant-strip__badge-dot"},nE={class:"participant-strip__tooltip-name"},sE={key:0,class:"participant-strip__tooltip-dept"},qc=4,oE=we({__name:"ParticipantStrip",setup(e){const t=Ot(),n=Rt(),s=M({}),o=M(null),i=M(!1),{normalizedParticipants:r,totalCount:a,hasPending:c}=Zf(),d=V(()=>r.value.slice(0,qc)),l=V(()=>Math.max(0,r.value.length-qc)),u=V(()=>{const y=t.currentConversation;return y?y.employee_id===n.employeeId?!0:r.value.some(E=>E.id===n.employeeId):!1});function f(y){return y.role==="primary_agent"?"主责坐席":y.role==="collaborator"?"协作坐席":y.role==="owner"?"发起人":y.joined?"已加入":"待加入"}const h=V(()=>r.value.map(y=>y.id).filter(Boolean));async function p(){i.value=!1,await t.fetchCurrentConversation()}function m(y){return(y||"?").charAt(0)}function g(){t.participantPanelVisible=!0}return(y,E)=>{var I;return k(),O("div",{class:ge(["participant-strip",{"participant-strip--has-pending":Ce(c)}]),onClick:g},[_("