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` `; let avatarWithoutImage = x``; if (this.initials) { avatarWithoutImage = x`
${this.initials}
`; } else { avatarWithoutImage = x` `; } return x` `; } }; SlAvatar.styles = avatar_styles_default; SlAvatar.dependencies = { "sl-icon": SlIcon }; __decorateClass([ r() ], SlAvatar.prototype, "hasError", 2); __decorateClass([ n() ], SlAvatar.prototype, "image", 2); __decorateClass([ n() ], SlAvatar.prototype, "label", 2); __decorateClass([ n() ], SlAvatar.prototype, "initials", 2); __decorateClass([ n() ], SlAvatar.prototype, "loading", 2); __decorateClass([ n({ reflect: true }) ], SlAvatar.prototype, "shape", 2); __decorateClass([ watch("image") ], SlAvatar.prototype, "handleImageChange", 1); export { SlAvatar };