openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 1.02 kB
JavaScript
import{n as e}from"./rolldown-runtime-8BhlS34s.js";import{qr as t}from"./control-ui-foundation-ZY_Flbbd.js";import{Il as n,Rl as r,lu as i,su as a}from"./control-ui-core-3P365fbR.js";import{nt as o,ut as s}from"./lit-runtime-P5vbNq6b.js";import{Jo as c,Yo as l}from"./control-ui-boot-shared-DoKu-5Ju.js";import{Ja as u,qa as d}from"./control-ui-boot-shared-CG9HtEG-.js";var f;function p(){return(p=e((()=>{o(),n(),l(),i(),d(),f=class extends a{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?r(this.option.agent,this.identity):null;return u(this.option,this.identity,e?this.avatarLoader.resolve(e):null,e?this.avatarLoader.imageErrorHandler(e):void 0)})}},t([s({attribute:!1})],f.prototype,`option`,void 0),t([s({attribute:!1})],f.prototype,`identity`,void 0),customElements.get(`openclaw-agent-avatar`)||customElements.define(`openclaw-agent-avatar`,f)})))()}export{p as n,f as t};