import{t,p as a,H as s,h as e}from"./p-ZGVz1_9H.js";const r=a(class extends s{constructor(t){super(),!1!==t&&this.__registerHost()}render(){return this.senderType?e("div",{class:"rounded-full w-6 h-6 p-2 grid place-content-center"},this.avatarUrl?e("img",{src:this.avatarUrl,class:"w-8 h-8 rounded-full",alt:`${this.senderType} avatar`}):e("i",{class:"block text-body1 default-botAvatar",title:`${this.senderType} avatar`,"aria-label":`${this.senderType} avatar`},"bot"===this.senderType?e("svg",{width:"28",height:"28",viewBox:"0 0 48 48",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M24 2c-3 8-8 13-16 16 8 3 13 8 16 16 3-8 8-13 16-16-8-3-13-8-16-16z"})):e("svg",{class:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e("path",{d:"M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5S7 4.24 7 7s2.24 5 5 5zm0 2c-3.31 0-6 2.69-6 6v1h12v-1c0-3.31-2.69-6-6-6z"})))):null}},[0,"chat-avatar",{senderType:[1,"sender-type"],avatarUrl:[1,"avatar-url"]}]);function l(){"undefined"!=typeof customElements&&["chat-avatar"].forEach((a=>{"chat-avatar"===a&&(customElements.get(t(a))||customElements.define(t(a),r))}))}l();export{r as C,l as d}