import {
avatar_styles_default
} from "./chunk.XYWWNVUH.js";
import {
e
} from "./chunk.UZVKBFXH.js";
import {
SlIcon
} from "./chunk.UZYAV5H6.js";
import {
watch
} from "./chunk.FA5RT4K4.js";
import {
ShoelaceElement,
n,
r
} from "./chunk.SEXBCYCU.js";
import {
x
} from "./chunk.CXZZ2LVK.js";
import {
__decorateClass
} from "./chunk.KIILAQWQ.js";
// src/components/avatar/avatar.component.ts
var SlAvatar = class extends ShoelaceElement {
constructor() {
super(...arguments);
this.hasError = false;
this.image = "";
this.label = "";
this.initials = "";
this.loading = "eager";
this.shape = "circle";
}
handleImageChange() {
this.hasError = false;
}
render() {
const avatarWithImage = x`
this.hasError = true}"
/>
`;
let avatarWithoutImage = x``;
if (this.initials) {
avatarWithoutImage = x`