import {f,i as i$1}from'./chunk-nUcnDoFZ.js';import {J,a6 as pi,c as tS,bP as he,ad as ce,fz as Im,au as pe,ev as ne,L as w,aE as je,ew as Ie,fB as ka,fX as XT}from'./main-WUGO6e7n.js';var G,I=J(()=>{tS();f();Im();pe();ne();tS();G=(()=>{class e{constructor(){this.repositoryService=w(je),this.userService=w(Ie);}transform(r,t=24,i,s){if(r&&ka.isGuid(r)){if(!i||i==="user"){let n=this.userService.items?.find(h=>h.id===r);if(n)return i$1.fromUserListItem(n,t,null,s)}if(!i||i==="repository"){let n=this.repositoryService.getRepository(r);if(n)return i$1.fromRepositoryEntity(n,t,null,s)}}return new i$1({username:r,name:r,size:t,badge:s})}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275pipe=XT({name:"getAvatarSettings",type:e,pure:!0});}}return e})();});var o,S=J(()=>{o=(function(e){return e[e.AddToExisting=0]="AddToExisting",e[e.ReplaceAllWith=1]="ReplaceAllWith",e[e.FindAndRemoveThese=2]="FindAndRemoveThese",e})(o||{});(function(e){function g(){return "BatchEditAction"}e.getClass=g;let r={[e.AddToExisting]:"lblAddToExisting",[e.ReplaceAllWith]:"lblReplaceAllWith",[e.FindAndRemoveThese]:"lblFindAndRemoveThese"};function t(i){let s=r[i];if(s)return s;let n="";return typeof e.getClass=="function"&&(n=e.getClass()),n+"_"+e[i]}e.getEnumKey=t;})(o||(o={}));});var k,W=J(()=>{pi();S();tS();k=(()=>{class e{constructor(){this.viewRequestSource=new he,this.viewRequest=this.viewRequestSource.asObservable();}view(r){this.viewRequestSource.next(r);}getBatchEditSelectedMembers(r,t,i){switch(t){case o.AddToExisting:return [...new Set([...r,...i])];case o.ReplaceAllWith:return i;case o.FindAndRemoveThese:return r.filter(s=>!i.includes(s));default:return []}}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();});export{G,I,S,W,k,o};