UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

8 lines • 1.33 kB
import{n as e}from"./rolldown-runtime-8BhlS34s.js";import{qr as t}from"./control-ui-foundation-ZY_Flbbd.js";import{lu as n,ou as r}from"./control-ui-core-3P365fbR.js";import{$ as i,X as a,Y as o,ct as s,nt as c,ut as l}from"./lit-runtime-P5vbNq6b.js";import{D as u,E as d}from"./control-ui-boot-shared-DoKu-5Ju.js";var f;function p(){return(p=e((()=>{o(),c(),u(),n(),f=class extends r{constructor(...e){super(...e),this.routeUrl=null,this.authTokens=[],this.authReady=!1,this.fallback=a,this.undecodableRouteUrl=null,this.loader=new d(this,{cacheNotFound:!0})}render(){return this.loader.withActiveRoutes(()=>this.renderContent())}renderContent(){let e=this.routeUrl,t=e&&this.authReady&&this.undecodableRouteUrl!==e?this.loader.resolve(e,this.authTokens):null;return t?i`<img class="channel-avatar" src=${t} alt="" aria-hidden="true" decoding="async" @error=${()=>{this.undecodableRouteUrl=e}} />`:this.fallback}},t([l({attribute:!1})],f.prototype,`routeUrl`,void 0),t([l({attribute:!1})],f.prototype,`authTokens`,void 0),t([l({attribute:!1})],f.prototype,`authReady`,void 0),t([l({attribute:!1})],f.prototype,`fallback`,void 0),t([s()],f.prototype,`undecodableRouteUrl`,void 0),customElements.get(`openclaw-channel-avatar`)||customElements.define(`openclaw-channel-avatar`,f)})))()}p();