import {J,eo as f$1,eq as r}from'./main-WUGO6e7n.js';var i$1,f=J(()=>{f$1();i$1=class u{constructor(a=null){this.gravatar=r.manageDefaultValue(a,"gravatar",null),this.icon=r.manageDefaultValue(a,"icon",null),this.name=r.manageDefaultValue(a,"name",""),this.size=r.manageDefaultValue(a,"size",35),this.imageSrc=r.manageDefaultValue(a,"imageSrc",null),this.globalImageId=r.manageDefaultValue(a,"globalImageId",null),this.imageIcon=r.manageDefaultValue(a,"imageIcon",null),this.username=r.manageDefaultValue(a,"username",null),this.badge=r.manageDefaultValue(a,"badge",null);}static fromUserListItem(a,l=24,n,t){return new u({gravatar:r.manageDefaultValue(a,"iconUrl",null),username:r.manageDefaultValue(a,"name",null),name:[a.fullName?.trim(),a.name?.trim()].find(Boolean),size:l,icon:n,badge:t})}static fromUserListItemReport(a,l=24,n,t){return new u({gravatar:r.manageDefaultValue(a,"iconUrl",null),username:r.manageDefaultValue(a,"name",null),name:[a.fullName?.trim(),a.name?.trim()].find(Boolean),size:l,icon:n,badge:t})}static fromBaseConnectionInfo(a,l=24,n,t){return new u({gravatar:r.manageDefaultValue(a,"iconUrl",null),name:r.manageDefaultValue(a,"name",null),size:l,icon:n,badge:t})}static fromRepositoryEntity(a,l=24,n,t){let m=a?.imageBytes||a?.image;return new u({name:r.manageDefaultValue(a,"name",null),imageSrc:m?`data:image/png;base64,${m}`:null,size:l,icon:n,badge:t})}};});export{f,i$1 as i};