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