import {h,l}from'./chunk-DEU4mwbE.js';import {J,a5 as fh,ec as ND,c as tS,b3 as w,H as ul,ag as lp,aZ as Dt,ei as I4,aJ as hf,ah as ot,aa as ye,bd as K,N as Sr,am as Dh,b6 as Yi,ad as ce}from'./main-WUGO6e7n.js';var O,x=J(()=>{fh();h();ND();tS();w();ul();lp();Dt();O=(()=>{class i extends I4{constructor(r,e,t,l){super(e,r),this.assetServices=t,this.messageService=l;}getAzureRoles(r,e){return this.assetServices.GetRoleTemplates(r||null,e.clientId||null,e.tenantId||null,e.secretClientKey||null).pipe(hf(t=>this.handleGetApiResult(t)),ot(t=>this.returnWhenSuccessful(t,()=>t.data)))}getPagedAzureGroups(r,e,t,l$1,v,g){let n=new l;return n.pageSize=l$1,n.nextPageToken=v||null,n.filter=g||null,this.assetServices.GetGroupsPaged(n,t,r||null,e.clientId||null,e.tenantId||null,e.secretClientKey||null,e.linkedCredentialId||null).pipe(hf(o=>this.executeBasedOnResult(o,()=>void 0,()=>this.showErrorToast())),ot(o=>this.returnWhenSuccessful(o,()=>o.data)))}showErrorToast(){this.messageService.add({key:"globalToast",severity:"error",summary:this.translatorService.translate("Failed"),detail:this.translatorService.translate("ConnectionFailed")});}static{this.\u0275fac=function(e){return new(e||i)(ye(K),ye(Sr),ye(Dh),ye(Yi))};}static{this.\u0275prov=ce({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();});export{O,x};