openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 2.17 kB
JavaScript
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{B_ as t,DS as n,L_ as r,MS as i,dj as a,mj as o,pj as s}from"./control-ui-boot-shared-DFTSUQQ0.js";import{C as c,F as l,O as u,U as d,d as f,f as p,g as m,j as h,l as g,u as _,x as v}from"./solid-runtime-C416s-HC.js";import{mc as y,pc as b}from"./control-ui-boot-chat-DewxEbIm.js";import{l as x,u as S}from"./control-ui-boot-chat-styles-CEPkk0Pv.js";import"./chat-details-styles-afRFR3_m.js";function C(e){let t=new Set;return e.filter(({identity:e})=>{let n=i(e);return!t.has(n)&&(t.add(n),!0)})}function w(e){return h(r,{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 t=l(()=>C(e.people)),n=()=>t().slice(0,t().length>3?2:3),r=()=>t().length-n().length;var a=A(),s=a.firstChild,d=s.nextSibling;return f(a,h(u,{get when(){return!e.partial},get children(){var e=E();return f(e,()=>o(`chat.sessionDetails.peopleCount`,{count:String(t().length)})),e}}),s),f(a,h(u,{get when(){return!e.expanded},get children(){return[h(u,{get when(){return p(()=>!e.partial)()&&t().length>3},get children(){var e=D();return e.firstChild,f(e,()=>t().length,null),e}}),(()=>{var e=k(),t=e.firstChild,a=t.nextSibling;return f(e,h(c,{get each(){return n()},keyed:e=>i(e.identity),children:e=>(()=>{var t=j();return f(t,h(w,{get person(){return e()}})),g(()=>e().label||e().identity.id,e=>{m(t,`title`,e)}),t})()}),t),f(e,h(u,{get when(){return r()>0},get children(){var e=O();return e.firstChild,f(e,r,null),e}}),a),e})()]}}),d),a}var E,D,O,k,A,j;function M(){return(M=e((()=>{_(),d(),t(),x(),b(),n(),a(),E=v(`<span class=sr-only>`),D=v(`<span class="chat-details-people__count chat-details-desktop-section__count"aria-hidden=true><span class=chat-details-desktop-section__count-separator>·`),O=v(`<span class=chat-details-people__overflow>+`),k=v(`<span class=chat-details-people__preview aria-hidden=true><!><!>`),A=v(`<span class=chat-details-people__summary><!><!>`),j=v(`<span class=chat-details-people__preview-avatar>`),s(y),s(S)})))()}export{C as i,w as n,M as r,T as t};