UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 2.04 kB
import{n as e,r as t}from"./rolldown-runtime-CNOWq4Kh.js";import{Cw as n,EC as r,GN as i,JN as a,_v as o,vv as s,ww as c,xC as l}from"./_2_____________________________.js";import{C as u,F as d,O as f,Rt as p,U as m,a as h,d as g,g as _,j as v,l as y,m as b,s as x,u as S,x as C}from"./_6____________________.js";import{i as w,n as T,r as E}from"./chat-details-people-DEdQmhMS.js";var D=t({ChatDetailsPeople:()=>O});function O(e){let t=d(()=>w(e.people)),n=()=>e.ownerIdentity&&r(e.ownerIdentity);var i=A();return g(i,v(u,{get each(){return t()},keyed:e=>r(e.identity),children:t=>{let i=()=>t().label||t().identity.id,o=()=>r(t().identity)===n(),c=()=>t().identity.type===`profile`?s(t().identity.id,e.personActivity,i()):null,l=()=>[(()=>{var e=j();return g(e,v(T,{get person(){return t()}})),e})(),v(k,{get name(){return i()}}),v(f,{get when(){return o()},get children(){return[` `,(()=>{var e=M();return g(e,()=>a(`chat.sessionDetails.owner`)),e})()]}})];var u=N();return g(u,v(f,{get when(){return c()},get fallback(){var e=P();return g(e,l),e},children:e=>(()=>{var t=F(),n=p();return t._$$click=t=>e().open(t),g(t,l),y(()=>({e:o()?`${i()} ${a(`chat.sessionDetails.owner`)}`:i(),t:e().href}),({e,t:r},i)=>{e!==i?.e&&_(t,`aria-label`,e),r!==i?.t&&_(t,`href`,r),h(t,n)}),t})()})),u}})),i}function k(e){let t,r;n(()=>e.name,()=>{let e=t.clientWidth>0&&r.scrollWidth>t.clientWidth;return()=>{t.toggleAttribute(`data-overflow`,e),e?t.title=r.textContent??``:t.removeAttribute(`title`)}},{targets:()=>[t,r]});var i=I(),a=i.firstChild;return b(()=>e=>t=e,i),b(()=>e=>r=e,a),g(a,()=>e.name),i}var A,j,M,N,P,F,I;function L(){return(L=e((()=>{S(),m(),o(),l(),i(),c(),E(),A=C(`<ul class=chat-details-people>`),j=C(`<span class=chat-details-people__avatar aria-hidden=true>`),M=C(`<span class=chat-details-people__role>`),N=C(`<li class=chat-details-people__person>`),P=C(`<span class=chat-details-people__row>`),F=C(`<a class=chat-details-people__row>`),I=C(`<span class=chat-details-people__name><span>`),x([`click`])})))()}export{L as n,D as t};