import{r as e}from"./rolldown-runtime-DIIn1E2Q.js";import{z as t}from"./vendor-primevue-DGevbYGF.js";import{D as n,R as r,Rt as i,et as a,k as o,kt as s}from"./vendor-vue-core-BdhYaYlO.js";var c=r({__name:`UserAvatar`,props:{photoUrl:{},ariaLabel:{}},setup(e){let r=s(!1),handleImageError=()=>{r.value=!0},c=n(()=>e.photoUrl&&!r.value);return(e,n)=>(a(),o(i(t),{class:`bg-interface-panel-selected-surface`,image:e.photoUrl??void 0,icon:c.value?void 0:`icon-[lucide--user]`,"pt:icon:class":{"size-4":!c.value},shape:`circle`,"aria-label":e.ariaLabel??e.$t(`auth.login.userAvatar`),onError:handleImageError},null,8,[`image`,`icon`,`pt:icon:class`,`aria-label`]))}});export{c as t};
//# sourceMappingURL=UserAvatar-CWMTZklL.js.map