"use strict";(self.webpackChunkadmin_ui_identity_server=self.webpackChunkadmin_ui_identity_server||[]).push([[76],{621(N,l,s){s.d(l,{L:()=>C});var o=s(2734),v=s(2771),c=s(2615),m=s(9330),p=s(9564);let f=(()=>{class r extends o.x{constructor(i,t){super(),this.http=i,this.headersService=t,this.userSubject=new v.m(1),this.actionUrl="users",this.headers=this.headersService.setHeaders()}getAudits(i,t,a,n,u,d,h){throw new Error("AuditUserService doesn't support getAudits method")}getResourceAudits(i,t,a,n,u,d,h,E,j){const D=this.buildParams(a,u,n,d,h,E,j,t);return this.http.get(`${this.actionUrl}/${i}/auditedEvents`,{headers:this.headers,params:D})}static{this.\u0275fac=function(t){return new(t||r)(c.KVO(m.Qq),c.KVO(p.m))}}static{this.\u0275prov=c.jDH({token:r,factory:r.\u0275fac})}}return r})();var g=s(9838),e=s(3664),S=s(5602),U=s(345),y=s(8018),T=s(7883),A=s(2200),I=s(9861);function x(r,X){if(1&r&&e.nrm(0,"app-audits-list",2),2&r){const i=e.XpG();e.Y8G("resourceName",i.userId)}}let C=(()=>{class r{constructor(i,t,a,n){this.userService=i,this.titleService=t,this.translate=a,this.securityService=n}ngOnInit(){this.userService.getCachedUser().subscribe(t=>{this.userId=t.subject,this.username=t.username});const i=this.translate.instant("Users.Singular")+" "+this.username+" "+this.translate.instant("Nav.Audits")+" - "+g.$9.SITE_TITLE;this.titleService.setTitle(i)}static{this.\u0275fac=function(t){return new(t||r)(e.rXU(S.D),e.rXU(U.hE),e.rXU(y.c$),e.rXU(T.i))}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["app-audit-users"]],standalone:!1,features:[e.Jv_([{provide:o.x,useClass:f}])],decls:2,vars:1,consts:[["id","userList",1,"tw-container","tw-mx-auto"],[3,"resourceName",4,"ngIf"],[3,"resourceName"]],template:function(t,a){1&t&&(e.j41(0,"div",0),e.DNE(1,x,1,1,"app-audits-list",1),e.k0s()),2&t&&(e.R7$(),e.Y8G("ngIf",a.userId))},dependencies:[A.bT,I.k],encapsulation:2})}}return r})()}}]);