UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 4.15 kB
import{n as e,r as t}from"./rolldown-runtime-CNOWq4Kh.js";import{BA as n,gs as r,vs as i,zA as a}from"./control-ui-boot-shared-DFTSUQQ0.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"./solid-runtime-C416s-HC.js";import{n as v,t as y}from"./control-ui-boot-shared-styles-CTDFATjh.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(),n=t.firstChild,i=n.firstChild,c=i.nextSibling,m=n.nextSibling;return l(n,()=>e.title,i),l(n,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 n=D(),i=n.firstChild,o=i.nextSibling,c=o.nextSibling;return l(n,f(r,{get sender(){return t().sender},hideTooltip:!0}),i),l(n,f(x,{get person(){return t()}}),o),l(n,f(s,{get when(){return u(()=>!!e.onMention)()?t().mention:e.onMention},children:n=>(()=>{var r=O(),i=r.firstChild.nextSibling;return r._$$click=()=>e.onMention?.(n()),l(i,()=>e.labels.mention),l(r,f(a,{name:`chevronRight`}),null),p(()=>e.labels.mentionPerson(t().label),e=>{d(r,`aria-label`,e)}),r})()}),c),n})()})),p(()=>e.title,e=>{d(t,`aria-label`,e)}),t}function C(e){var t=j(),n=t.firstChild,i=n.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(),n=t.firstChild,i=n.nextSibling;return l(n,()=>e.labels.viewingNow),l(i,f(o,{get each(){return e.people.viewers},keyed:e=>e.key,children:t=>(()=>{var n=M();return l(n,f(s,{get when(){return u(()=>!!e.onMention)()?t().mention:e.onMention},get fallback(){var e=N(),n=e.firstChild,i=n.nextSibling;return l(e,f(r,{get sender(){return t().sender},hideTooltip:!0}),n),l(e,f(x,{get person(){return t()}}),i),e},children:n=>(()=>{var i=P(),a=i.firstChild,o=a.nextSibling;return i._$$click=()=>e.onMention?.(n()),l(i,f(r,{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})()})),n})()})),p(()=>e.labels.viewingNow,e=>{d(t,`aria-label`,e)}),t}}),n),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(),n(),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};