openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 1.04 kB
JavaScript
import{n as e,r as t}from"./rolldown-runtime-8BhlS34s.js";import{Nu as n,fu as r,ju as i,uu as a}from"./control-ui-core-CBJ5efDh.js";import{Z as o,at as s}from"./lit-runtime-IOnANfcZ.js";import{Ca as c,Sa as l}from"./control-ui-boot-shared-UG5ko-VG.js";import{Zr as u}from"./ui-CmSP4d14.js";import{Ai as d,ji as f}from"./control-ui-boot-shared-XreXSF7h.js";var p=t({AgentAvatar:()=>m}),m;function h(){return(h=e((()=>{o(),a(),c(),n(),d(),m=class extends i{constructor(...e){super(...e),this.option={value:``,label:``},this.identity=null,this.avatarLoader=new l(this)}render(){return this.avatarLoader.withActiveRoutes(()=>{let e=this.option.agent?r(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};