import {J,a6 as pi,a5 as fh,ec as ND,c as tS,ag as lp,a7 as si,b3 as w,H as ul,ei as I4,aJ as hf,ah as ot,ay as df,ak as Jd,al as Kv,aa as ye,am as Dh,ac as Dr,bd as K,N as Sr,ad as ce}from'./main-WUGO6e7n.js';var I,y=J(()=>{pi();fh();ND();tS();lp();si();w();ul();I=(()=>{class a extends I4{constructor(t,e,r,n){super(n,r),this.assetServices=t,this.currentUserService=e;}getPagedRoleScopeList(t){return this.assetServices.GetPagedRoleScopeList(t).pipe(hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data)))}getMembers(t,e,r){return this.assetServices.GetMembers(t,e,r).pipe(hf(n=>this.handleGetApiResult(n)),ot(n=>this.returnWhenSuccessful(n,()=>n.data)))}getScopeMembers(t,e=null){return this.assetServices.GetScopeMembers(t,e).pipe(hf(r=>this.handleGetApiResult(r)),ot(r=>this.returnWhenSuccessful(r,()=>r.data)))}addMember(t){return this.assetServices.AddMember(t).pipe(hf(e=>this.handleSaveApiResult(e)),ot(e=>this.isSuccessful(e)))}deleteScope(t,e,r){return this.assetServices.DeleteScope(t,e,r).pipe(hf(n=>this.handleDeleteApiResult(n)),ot(n=>this.isSuccessful(n)))}removeMember(t){return this.assetServices.RemoveMember(t).pipe(hf(e=>this.handleDeleteApiResult(e)),ot(e=>this.isSuccessful(e)))}bulkUpdateMembers(t){return this.assetServices.BulkUpdateMembers(t).pipe(hf(e=>this.handleSaveApiResult(e)),ot(e=>this.isSuccessful(e)))}getValidScopeTypes(t){return this.assetServices.GetValidScopeTypes(t).pipe(hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data)))}getAvailableRoles(){return this.assetServices.GetAvailableRoles().pipe(hf(t=>this.handleGetApiResult(t)),ot(t=>this.returnWhenSuccessful(t,()=>t.data)))}getMyRoleAssignments(t=!1){return t?this.currentUserService.refreshAdministrativePermissions().pipe(df(e=>this.assetServices.GetMyRoleAssignments(t)),hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data))):this.assetServices.GetMyRoleAssignments(t).pipe(hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data)))}getByAssigneeId(t,e=!1){return this.assetServices.GetByAssignee(t,e).pipe(hf(r=>this.handleGetApiResult(r)),ot(r=>this.returnWhenSuccessful(r,()=>r.data)))}getLogs(t){return this.assetServices.GetAdministrativeRoleAssignmentLogs(t).pipe(hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data)))}exportRoleScopeList(t){return this.assetServices.GetAdministrativeRoleAssignmentsExport(t).pipe(ot(e=>new Blob([e],{type:"text/csv"})),Jd(()=>Kv(null)))}getVaultRoleAssignmentReport(t){return this.assetServices.AdministrativeRoleAssignments_GetVaultRoleAssignmentReport(t).pipe(hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data)))}exportVaultRoleAssignmentReport(t){return this.assetServices.AdministrativeRoleAssignments_ExportVaultRoleAssignmentReport(t).pipe(ot(e=>new Blob([e],{type:"text/csv"})),Jd(()=>Kv(null)))}getGlobalRoleAssignmentReport(t){return this.assetServices.AdministrativeRoleAssignments_GetGlobalRoleAssignmentReport(t).pipe(hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data)))}exportGlobalRoleAssignmentReport(t){return this.assetServices.AdministrativeRoleAssignments_ExportGlobalRoleAssignmentReport(t).pipe(ot(e=>new Blob([e],{type:"text/csv"})),Jd(()=>Kv(null)))}getRedundantRoleAssignmentReport(t){return this.assetServices.AdministrativeRoleAssignments_GetRedundantRoleAssignmentReport(t).pipe(hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data)))}exportRedundantRoleAssignmentReport(t){return this.assetServices.AdministrativeRoleAssignments_ExportRedundantRoleAssignmentReport(t).pipe(ot(e=>new Blob([e],{type:"text/csv"})),Jd(()=>Kv(null)))}cleanupRedundantRoleAssignments(t){return this.assetServices.AdministrativeRoleAssignments_CleanupRedundantRoleAssignments(t).pipe(hf(e=>this.handleGetApiResult(e)),ot(e=>this.returnWhenSuccessful(e,()=>e.data)))}static{this.\u0275fac=function(e){return new(e||a)(ye(Dh),ye(Dr),ye(K),ye(Sr))};}static{this.\u0275prov=ce({token:a,factory:a.\u0275fac,providedIn:"root"});}}return a})();});export{I,y};