import{c as e,d as i}from"./chunk-AIHAZUSZ.js";import{e as m}from"./chunk-SZAW6ZBW.js";var u,r=m(()=>{i();u=class t{constructor(a=null){this.gravatar=e.manageDefaultValue(a,"gravatar",null),this.icon=e.manageDefaultValue(a,"icon",null),this.name=e.manageDefaultValue(a,"name",""),this.size=e.manageDefaultValue(a,"size",35),this.imageSrc=e.manageDefaultValue(a,"imageSrc",null),this.globalImageId=e.manageDefaultValue(a,"globalImageId",null),this.imageIcon=e.manageDefaultValue(a,"imageIcon",null),this.username=e.manageDefaultValue(a,"username",null)}static fromUserListItem(a,l=24,n){return new t({gravatar:e.manageDefaultValue(a,"iconUrl",null),username:e.manageDefaultValue(a,"name",null),name:[a.fullName?.trim(),a.name?.trim()].find(Boolean),size:l,icon:n})}static fromUserListItemReport(a,l=24,n){return new t({gravatar:e.manageDefaultValue(a,"iconUrl",null),username:e.manageDefaultValue(a,"name",null),name:[a.fullName?.trim(),a.name?.trim()].find(Boolean),size:l,icon:n})}static fromBaseConnectionInfo(a,l=24,n){return new t({gravatar:e.manageDefaultValue(a,"iconUrl",null),name:e.manageDefaultValue(a,"name",null),size:l,icon:n})}}});export{u as a,r as b};
