openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 4.15 kB
JavaScript
import{n as e,r as t}from"./rolldown-runtime-CNOWq4Kh.js";import{ec as n,fN as r,nc as i,pN as a}from"./_2_____________________________.js";import{C as o,O as s,U as c,d as l,f as u,g as d,j as f,l as p,m,s as h,u as g,x as _}from"./_6____________________.js";import{n as v,t as y}from"./_1____________________________________.js";var b=t({ChatMobilePeopleBody:()=>C});function x(e){var t=w(),n=y(()=>e.person.firstName);return(typeof n==`function`||Array.isArray(n))&&m(()=>n,t),l(t,()=>e.person.firstName),p(()=>({e:e.person.label,t:e.person.label}),({e,t:n},r)=>{e!==r?.e&&d(t,`aria-label`,e),n!==r?.t&&d(t,`title`,n)}),t}function S(e){var t=E(),i=t.firstChild,a=i.firstChild,c=a.nextSibling,m=i.nextSibling;return l(i,()=>e.title,a),l(i,f(s,{get when(){return u(()=>!!e.showCount)()?!e.partial:e.showCount},get children(){var t=T();return l(t,()=>e.people.length),t}}),c),l(m,f(o,{get each(){return e.people},keyed:e=>e.key,children:t=>(()=>{var i=D(),a=i.firstChild,o=a.nextSibling,c=o.nextSibling;return l(i,f(n,{get sender(){return t().sender},hideTooltip:!0}),a),l(i,f(x,{get person(){return t()}}),o),l(i,f(s,{get when(){return u(()=>!!e.onMention)()?t().mention:e.onMention},children:n=>(()=>{var i=O(),a=i.firstChild.nextSibling;return i._$$click=()=>e.onMention?.(n()),l(a,()=>e.labels.mention),l(i,f(r,{name:`chevronRight`}),null),p(()=>e.labels.mentionPerson(t().label),e=>{d(i,`aria-label`,e)}),i})()}),c),i})()})),p(()=>e.title,e=>{d(t,`aria-label`,e)}),t}function C(e){var t=j(),r=t.firstChild,i=r.nextSibling,a=i.nextSibling,c=a.nextSibling,m=c.nextSibling,h=m.nextSibling;return l(t,f(s,{get when(){return e.people.viewers.length>0},get children(){var t=k(),r=t.firstChild,i=r.nextSibling;return l(r,()=>e.labels.viewingNow),l(i,f(o,{get each(){return e.people.viewers},keyed:e=>e.key,children:t=>(()=>{var r=M();return l(r,f(s,{get when(){return u(()=>!!e.onMention)()?t().mention:e.onMention},get fallback(){var e=N(),r=e.firstChild,i=r.nextSibling;return l(e,f(n,{get sender(){return t().sender},hideTooltip:!0}),r),l(e,f(x,{get person(){return t()}}),i),e},children:r=>(()=>{var i=P(),a=i.firstChild,o=a.nextSibling;return i._$$click=()=>e.onMention?.(r()),l(i,f(n,{get sender(){return t().sender},hideTooltip:!0}),a),l(i,f(x,{get person(){return t()}}),o),p(()=>e.labels.mentionPerson(t().label),e=>{d(i,`aria-label`,e)}),i})()})),r})()})),p(()=>e.labels.viewingNow,e=>{d(t,`aria-label`,e)}),t}}),r),l(t,()=>e.sharingOptions,i),l(t,f(s,{get when(){return e.people.creator},children:t=>f(S,{get title(){return e.labels.creator},get people(){return[t()]},get labels(){return e.labels},get onMention(){return e.onMention}})}),a),l(t,f(s,{get when(){return e.people.owner},children:t=>f(S,{get title(){return e.labels.owner},get people(){return[t()]},get labels(){return e.labels},get onMention(){return e.onMention}})}),c),l(t,f(s,{get when(){return e.people.participants.length>0},get children(){return f(S,{get title(){return e.labels.participants},get people(){return e.people.participants},get labels(){return e.labels},showCount:!0,get partial(){return!e.people.participantsComplete},get onMention(){return e.onMention}})}}),m),l(t,f(s,{get when(){return e.people.unlistedParticipantCount>0},get children(){var t=A();return l(t,()=>e.labels.morePeople(e.people.unlistedParticipantCount)),t}}),h),p(()=>e.labels.people,e=>{d(t,`aria-label`,e)}),t}var w,T,E,D,O,k,A,j,M,N,P;function F(){return(F=e((()=>{g(),c(),a(),v(),i(),w=_(`<span class=chat-mobile-people__name>`),T=_(`<span>`),E=_(`<section class=chat-mobile-people__section><h3><!><!></h3><ul class=chat-mobile-people__list>`),D=_(`<li class=chat-mobile-people__row><!><!><!>`),O=_(`<button type=button class=chat-mobile-people__mention><span aria-hidden=true>@</span><span>`),k=_(`<section class=chat-mobile-people__section><h3></h3><ul class=chat-mobile-people__viewers>`),A=_(`<p class=chat-mobile-people__unlisted>`),j=_(`<div class=chat-mobile-people role=group><!><!><!><!><!><!>`),M=_(`<li>`),N=_(`<div class=chat-mobile-people__viewer><!><!>`),P=_(`<button type=button class=chat-mobile-people__viewer><!><!>`),h([`click`])})))()}export{b as n,F as r,C as t};