UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 2.11 kB
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{EC as t,GN as n,JN as r,Xs as i,Zs as a,ev as o,qN as s,rv as c,xC as l}from"./_2_____________________________.js";import{C as u,F as d,O as f,U as p,d as m,f as h,g,j as _,l as v,u as y,x as b}from"./_6____________________.js";import{l as x,u as S}from"./control-ui-boot-chat-styles-DMRbEm40.js";import"./chat-details-styles-uJfNiL9z.js";function C(e){let n=new Set;return e.filter(({identity:e})=>{let r=t(e);return!n.has(r)&&(n.add(r),!0)})}function w(e){return _(o,{get user(){return{id:e.person.identity.id,identity:e.person.identity,name:e.person.label||e.person.identity.id,avatarUrl:e.person.avatarUrl,watchedSessions:[]}},markAsViewer:!1})}function T(e){let n=d(()=>C(e.people)),i=()=>n().slice(0,n().length>3?2:3),a=()=>n().length-i().length;var o=A(),s=o.firstChild,c=s.nextSibling;return m(o,_(f,{get when(){return!e.partial},get children(){var e=E();return m(e,()=>r(`chat.sessionDetails.peopleCount`,{count:String(n().length)})),e}}),s),m(o,_(f,{get when(){return!e.expanded},get children(){return[_(f,{get when(){return h(()=>!e.partial)()&&n().length>3},get children(){var e=D();return e.firstChild,m(e,()=>n().length,null),e}}),(()=>{var e=k(),n=e.firstChild,r=n.nextSibling;return m(e,_(u,{get each(){return i()},keyed:e=>t(e.identity),children:e=>(()=>{var t=j();return m(t,_(w,{get person(){return e()}})),v(()=>e().label||e().identity.id,e=>{g(t,`title`,e)}),t})()}),n),m(e,_(f,{get when(){return a()>0},get children(){var e=O();return e.firstChild,m(e,a,null),e}}),r),e})()]}}),c),o}var E,D,O,k,A,j;function M(){return(M=e((()=>{y(),p(),c(),x(),i(),l(),n(),E=b(`<span class=sr-only>`),D=b(`<span class="chat-details-people__count chat-details-desktop-section__count"aria-hidden=true><span class=chat-details-desktop-section__count-separator>·`),O=b(`<span class=chat-details-people__overflow>+`),k=b(`<span class=chat-details-people__preview aria-hidden=true><!><!>`),A=b(`<span class=chat-details-people__summary><!><!>`),j=b(`<span class=chat-details-people__preview-avatar>`),s(a),s(S)})))()}export{C as i,w as n,M as r,T as t};