import {h,l,o,i}from'./chunk-DEU4mwbE.js';import {J,ec as ND,a5 as fh,zn as Yd,zo as yf,zj as Cf,yX as wf,zp as Bd,yM as NS,c as tS,H as ul,b3 as w,ag as lp,ei as I4,aJ as hf,ah as ot,zk as Do,zq as ii,yP as Wl,yY as Io,zr as Co,zs as Zt,aa as ye,N as Sr,bd as K,am as Dh,ad as ce,eo as f$1,eq as r}from'./main-WUGO6e7n.js';var f,x=J(()=>{f$1();o();f=class o extends i{toQueryString(){let a=[];return a.push(super.toQueryString()),this.groupId!==null&&this.groupId.toString()&&a.push("groupId="+encodeURIComponent(this.groupId.toString())),this.hideExistingUsers!==null&&this.hideExistingUsers.toString()&&a.push("hideExistingUsers="+encodeURIComponent(this.hideExistingUsers.toString())),a.join("&")}constructor(a=null){super(a),this.clone=()=>new o(this),this.groupId=r.manageDefaultValue(a,"groupId",""),this.hideExistingUsers=r.manageDefaultValue(a,"hideExistingUsers",!1);}};});var oe,H=J(()=>{ND();fh();Yd();yf();Cf();wf();Bd();h();NS();x();tS();ul();w();lp();oe=(()=>{class o extends I4{constructor(t,e,s){super(t,e),this.assetService=s;}getAdDomains(t){return this.assetService.GetAllDomains(t).pipe(hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data.map(s=>new Do(s)))))}getAdUser(t,e){return this.assetService.GetAdUser(t,e).pipe(hf(s=>this.handleApiResult(s,"UserNotFoundOnDomain")),ot(s=>this.returnWhenSuccessful(s,()=>s.data?new ii(s.data):null)))}getAdUserProfile(t,e){return this.assetService.GetAdUserProfile(t,e).pipe(hf(s=>this.handleApiResult(s,"UserNotFoundOnDomain")),ot(s=>this.returnWhenSuccessful(s,()=>s.data?new Wl(s.data):null)))}getAdUsers(t,e,s){return this.assetService.GetAllDomainUsers(t.join(","),e,s).pipe(hf(n=>this.handleGetApiResult(n)),ot(n=>this.returnWhenSuccessful(n,()=>n.data?n.data.map(c=>new Io(c)):null)))}getAdUserGroup(t,e){return this.assetService.GetAdGroup(t,e).pipe(hf(s=>this.handleApiResult(s,"GroupNotFoundOnDomain")),ot(s=>this.returnWhenSuccessful(s,()=>s.data)))}getAdUserGroups(t,e){return this.assetService.GetAllDomainGroups(t.join(","),e).pipe(hf(s=>this.handleGetApiResult(s)),ot(s=>this.returnWhenSuccessful(s,()=>s.data.map(n=>new Co(n)))))}getAzureDomains(){return this.assetService.GetAllAzureDomains().pipe(hf(t=>this.handleGetApiResult(t)),ot(t=>this.returnWhenSuccessful(t,()=>t.data.map(e=>new Do(e)))))}getAzureUsers(t){return this.assetService.GetAzureDomainUsers(t,null).pipe(hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data?.items?e.data.items.map(s=>new Io(s)):null)))}getPagedAzureUsers(t,e,s,n,c,u){let p=new f;return p.pageSize=e,p.nextPageToken=s||null,p.filter=n,p.sortOrder=c,p.hideExistingUsers=u,this.assetService.GetAzureDomainUsers(t,p)}getAzureUser(t){return this.assetService.GetAzureDomainUser(t).pipe(hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data?new Zt(e.data):null)))}getAzureUserGroups(){return this.assetService.GetAzureDomainGroups(null).pipe(hf(t=>this.handleGetApiResult(t)),ot(t=>this.returnWhenSuccessful(t,()=>t.data?.items.map(e=>new Co(e)))))}getPagedAzureUserGroups(t,e,s,n,c=!1){let u=new l;return u.pageSize=t,u.nextPageToken=e||null,u.filter=s,u.sortOrder=n,u.hideExistingUsers=c,this.assetService.GetAzureDomainGroups(u)}getAzureGroupMembers(t){return this.assetService.GetAzureGroupsMember(t).pipe(hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data.map(s=>new Io(s)))))}getAzureUserMemberOf(t){return this.assetService.GetAzureUserMemberOf(t).pipe(hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data.map(s=>new Co(s)))))}getOktaDomains(){return this.assetService.GetOktaDomain().pipe(hf(t=>this.handleGetApiResult(t)),ot(t=>this.returnWhenSuccessful(t,()=>t.data.map(e=>new Do(e)))))}getOktaUserGroups(){return this.assetService.GetOktaGroups(null).pipe(hf(t=>this.handleGetApiResult(t)),ot(t=>this.returnWhenSuccessful(t,()=>t.data.map(e=>new Co(e)))))}getOktaUsers(t){return this.assetService.GetAllOktaUsers(t).pipe(hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data?e.data.map(s=>new Io(s)):null)))}getPingOneDomains(){return this.assetService.GetPingOneDomain().pipe(hf(t=>this.handleGetApiResult(t)),ot(t=>this.returnWhenSuccessful(t,()=>t.data.map(e=>new Do(e)))))}getPingOneUsers(t,e){return this.assetService.GetAllPingOneUsers(t,e).pipe(hf(s=>this.handleGetApiResult(s)),ot(s=>this.returnWhenSuccessful(s,()=>s.data?s.data.map(n=>new Io(n)):null)))}getPingOneUserGroups(){return this.assetService.GetPingOneGroups(null).pipe(hf(t=>this.handleGetApiResult(t)),ot(t=>this.returnWhenSuccessful(t,()=>t.data.map(e=>new Co(e)))))}static{this.\u0275fac=function(e){return new(e||o)(ye(Sr),ye(K),ye(Dh))};}static{this.\u0275prov=ce({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();});export{H,oe as o};