import{N as t}from"./NcColorPicker-DPqW0WY2.chunk.mjs";import{n as r}from"./_plugin-vue2_normalizer-wd1ZAbRr.chunk.mjs";const i={name:"AvatarWrapper",components:{NcAvatar:t},props:{session:{type:Object,required:!0},size:{type:Number,default:()=>32}},computed:{sessionAvatarStyle(){return{...this.sessionBackgroundStyle,"border-color":this.session.color,"border-width":"2px","border-style":"solid","--size":this.size+"px","--font-size":this.size/2+"px"}},sessionBackgroundStyle(){return{"background-color":this.session.userId?this.session.color+" !important":"#b9b9b9"}},guestInitial(){return this.session.guestName===""?"?":this.session.guestName.slice(0,1).toUpperCase()}}};var o=function(){var s=this,e=s._self._c;return e("div",{staticClass:"avatar-wrapper",style:s.sessionAvatarStyle},[s.session.userId?e("NcAvatar",{attrs:{user:s.session.userId?s.session.userId:s.session.guestName,"is-guest":s.session.userId===null,"disable-menu":!0,"hide-status":"","disable-tooltip":!0,size:s.size}}):e("div",{staticClass:"avatar",style:s.sessionBackgroundStyle},[s._v(" "+s._s(s.guestInitial)+" ")])],1)},a=[],n=r(i,o,a,!1,null,"209fadba");const d=n.exports;export{d as A};
//# sourceMappingURL=AvatarWrapper-DhHFz0g9.chunk.mjs.map
