UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 1.04 kB
import{n as e,r as t}from"./rolldown-runtime-8BhlS34s.js";import{Cu as n,Tu as r,iu as i,nu as a}from"./control-ui-core-BncvAZjR.js";import{nt as o,ut as s}from"./lit-runtime-B8uOr6OX.js";import{$r as c,ei as l}from"./control-ui-boot-shared-DJkUdZmL.js";import{ii as u}from"./ui-DuRgK6kL.js";import{vi as d,yi as f}from"./control-ui-boot-shared-xfDhIVun.js";var p=t({AgentAvatar:()=>m}),m;function h(){return(h=e((()=>{o(),a(),l(),r(),d(),m=class extends n{constructor(...e){super(...e),this.option={value:``,label:``},this.identity=null,this.avatarLoader=new c(this)}render(){return this.avatarLoader.withActiveRoutes(()=>{let e=this.option.agent?i(this.option.agent,this.identity):null;return f(this.option,this.identity,e?this.avatarLoader.resolve(e):null,e?this.avatarLoader.imageErrorHandler(e):void 0)})}},u([s({attribute:!1})],m.prototype,`option`,void 0),u([s({attribute:!1})],m.prototype,`identity`,void 0),customElements.get(`openclaw-agent-avatar`)||customElements.define(`openclaw-agent-avatar`,m)})))()}export{h as n,p as t};