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