import {J,a5 as fh,fL as x,c as tS,ag as lp,a7 as si,H as ul,b3 as w,fM as F,aJ as hf,ah as ot,aa as ye,am as Dh,ac as Dr,N as Sr,bd as K,ad as ce,eo as f,mp as _a,eq as r,mq as ee}from'./main-WUGO6e7n.js';var o,u=J(()=>{f();_a();o=class{constructor(e=null){this.id=r.manageDefaultValue(e,"id",""),this.name=r.manageDefaultValue(e,"name",""),this.description=r.manageDefaultValue(e,"description",""),this.isAdministrator=r.manageDefaultValue(e,"isAdministrator",!1),this.roleType=r.manageDefaultValue(e,"roleType",ee.ActiveDirectory);}};});var l,R=J(()=>{u();l=class t extends o{constructor(e=null){super(e),this.clone=()=>new t(this),this.isMember=e&&e.isMember?e.isMember:!1;}};});var Q,X,B=J(()=>{fh();u();x();R();tS();lp();si();ul();w();Q=(()=>{class t extends F{constructor(i,s,r,m){super(r,m,s),this.assetServices=i;}getAllRoleSummaries(i=!1){let s=this.assetServices.GetRolesBasic().pipe(hf(r=>this.handleGetApiResult(r)),ot(r=>this.returnWhenSuccessful(r,()=>r.data.map(m=>new o(m)))));return this.getCache(i,s)}getRoleSelections(i=null){return this.getAllRoleSummaries().pipe(ot(s=>s.filter(r=>i===null||r.roleType===i).map(r=>new l(r))))}static{this.\u0275fac=function(s){return new(s||t)(ye(Dh),ye(Dr),ye(Sr),ye(K))};}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})(),X="00000000-0000-0000-eeee-000000000001";});export{B,Q,X};