import {f,i as i$1}from'./chunk-nUcnDoFZ.js';import {J,c as tS,aM as AD,w as wo,aN as r4,fX as XT}from'./main-WUGO6e7n.js';var A,y,I=J(()=>{f();tS();AD();A={icon:"dvl-icon-account-owner",color:null},y=(()=>{class t{constructor(e){this.serverInformationService=e;}transform(e,i=24,o=[],f="di dvl-icon-entry-SampleUser"){let l=r=>this.serverInformationService.privateServerInformation.dataSourceOwner===r.id,a=r=>r.name===e.replace(/^(?:.*?\\)?(.+)$/,"$1"),v=r=>r.filter(a).map(s=>i$1.fromUserListItem(s,i,null,l(s)?A:null)).find(Boolean);return o.some(a)?v(o):new i$1({username:e,name:e,size:24,icon:f})}static{this.\u0275fac=function(i){return new(i||t)(wo(r4,16))};}static{this.\u0275pipe=XT({name:"getUserAvatarSettings",type:t,pure:!0});}}return t})();});export{A,I,y};