1"use strict";(self.webpackChunkven_frontend=self.webpackChunkven_frontend||[]).push([[337],{6337:(Le,v,i)=>{i.r(v),i.d(v,{ReportsDashboardModule:()=>ke});var h=i(8583),c=i(3679),T=i(845),b=i(5652),Z=i(4036),f=i(1424),C=i(6526),D=i(4132),A=i(1881),m=i(3725),_=i(2072),N=i(6828),y=i(2340),x=i(7139),g=i(4952),e=i(7716),U=i(1841),p=i(3775);let I=(()=>{class a{constructor(t){this.http=t,this.urlEndPoint=y.N.GET_HOST_REPORTS}getUsersReport(t){return this.http.post(`${this.urlEndPoint}${p.T.POST_REPORTS_USERS_SEARCH}`,t,{headers:this.loadHeaders()})}getUsersRolesCatalog(){return this.http.get(`${this.urlEndPoint}${p.T.GET_REPORTS_USERS_CATALOG_ROLES}`,{headers:this.loadHeaders()})}getUsersStatusCatalog(){return this.http.get(`${this.urlEndPoint}${p.T.GET_REPORTS_USERS_CATALOG_STATUS}`,{headers:this.loadHeaders()})}getUsersDependenciesCatalog(){return this.http.get(`${this.urlEndPoint}${p.T.GET_REPORTS_USERS_CATALOG_DEPENDENCIES}`,{headers:this.loadHeaders()})}getDependenciesReport(t){return this.http.post(`${this.urlEndPoint}${p.T.POST_REPORTS_DEPENDENCIES_SEARCH}`,t,{headers:this.loadHeaders()})}getDependenciesByEventType(t){return this.http.get(`${this.urlEndPoint}${p.T.GET_REPORTS_DEPENDENCIES_BY_EVENT_TYPE}${t}`,{headers:this.loadHeaders()})}getDependenciesCatalog(){return this.http.get(`${this.urlEndPoint}${p.T.GET_REPORTS_DEPENDENCIES_CATALOG_DEPENDENCIES}`,{headers:this.loadHeaders()})}getDependenciesStatusCatalog(){return this.http.get(`${this.urlEndPoint}${p.T.GET_REPORTS_DEPENDENCIES_CATALOG_STATUS}`,{headers:this.loadHeaders()})}getDependenciesConceptTypesCatalog(){return this.http.get(`${this.urlEndPoint}${p.T.GET_REPORTS_DEPENDENCIES_CATALOG_CONCEPT_TYPES}`,{headers:this.loadHeaders()})}getDependenciesEventTypesCatalog(){return this.http.get(`${this.urlEndPoint}${p.T.GET_REPORTS_DEPENDENCIES_CATALOG_EVENT_TYPES}`,{headers:this.loadHeaders()})}getDependenciesManagementTypesCatalog(){return this.http.get(`${this.urlEndPoint}${p.T.GET_REPORTS_DEPENDENCIES_CATALOG_MANAGEMENT_TYPES}`,{headers:this.loadHeaders()})}countUsersByRole(t){const n=new Map;return t.forEach(r=>{const o=r.roleName||"Sin rol";n.set(o,(n.get(o)||0)+1)}),Array.from(n.entries()).map(([r,o])=>({name:r,total:o}))}countUsersByStatus(t){const n=new Map;return t.forEach(r=>{const o=r.statusName||"Sin estado";n.set(o,(n.get(o)||0)+1)}),Array.from(n.entries()).map(([r,o])=>({name:r,total:o}))}countDependenciesByEventType(t){const n=new Map;return t.forEach(r=>{const o=r.eventTypeName||"Sin tipo";n.set(o,(n.get(o)||0)+1)}),Array.from(n.entries()).map(([r,o])=>({name:r,total:o}))}countDependenciesByStatus(t){const n=new Map;return t.forEach(r=>{const o=r.dependencyStatusName||"Sin estado";n.set(o,(n.get(o)||0)+1)}),Array.from(n.entries()).map(([r,o])=>({name:r,total:o}))}buildTrendByDate(t){const n=new Map;return t.forEach(r=>{if(!r.createdAt)return;const o=r.createdAt.substring(0,10);n.set(o,(n.get(o)||0)+1)}),Array.from(n.entries()).map(([r,o])=>({date:r,total:o})).sort((r,o)=>r.date.localeCompare(o.date))}loadHeaders(){const t=sessionStorage.getItem("token");return new U.WM({Authorization:"Bearer "+t,"Content-Type":"application/json",Accept:"application/json"})}}return a.\u0275fac=function(t){return new(t||a)(e.LFG(U.eN))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();var w=i(9783);const O=["usersRoleChartCanvas"],F=["usersStatusChartCanvas"],J=["usersTrendChartCanvas"],B=["dependenciesEventTypeChartCanvas"],Q=["dependenciesStatusChartCanvas"],k=["dependenciesTrendChartCanvas"];function Y(a,s){if(1&a&&(e.TgZ(0,"div",15),e.TgZ(1,"label",16),e._uU(2,"Dependencia"),e.qZA(),e._UZ(3,"p-multiSelect",52),e.qZA()),2&a){const t=e.oxw();e.xp6(3),e.Q6J("options",t.usersDependenciesCatalog)}}function L(a,s){if(1&a&&(e.TgZ(0,"span",53),e._uU(1),e.qZA()),2&a){const t=e.oxw();e.xp6(1),e.Oqu(t.usersTotal)}}function H(a,s){1&a&&e._UZ(0,"div",54)}function G(a,s){if(1&a&&(e.TgZ(0,"span",53),e._uU(1),e.qZA()),2&a){const t=e.oxw();e.xp6(1),e.Oqu(t.usersByRoleMetrics.length)}}function $(a,s){1&a&&e._UZ(0,"div",54)}function j(a,s){if(1&a&&(e.TgZ(0,"span",53),e._uU(1),e.qZA()),2&a){const t=e.oxw();e.xp6(1),e.Oqu(t.usersByStatusMetrics.length)}}function V(a,s){1&a&&e._UZ(0,"div",54)}function W(a,s){1&a&&(e.TgZ(0,"div",55),e.TgZ(1,"span"),e._uU(2,"Cargando gr\xe1fica..."),e.qZA(),e.qZA())}function z(a,s){1&a&&(e.TgZ(0,"div",56),e._uU(1," Sin datos para graficar "),e.qZA())}function X(a,s){1&a&&e._UZ(0,"canvas",null,57)}function K(a,s){1&a&&(e.TgZ(0,"div",55),e.TgZ(1,"span"),e._uU(2,"Cargando gr\xe1fica..."),e.qZA(),e.qZA())}function ee(a,s){1&a&&(e.TgZ(0,"div",56),e._uU(1," Sin datos para graficar "),e.qZA())}function te(a,s){1&a&&e._UZ(0,"canvas",null,58)}function ne(a,s){1&a&&(e.TgZ(0,"div",55),e.TgZ(1,"span"),e._uU(2,"Cargando gr\xe1fica..."),e.qZA(),e.qZA())}function ae(a,s){1&a&&(e.TgZ(0,"div",56),e._uU(1," Sin datos para graficar "),e.qZA())}function re(a,s){1&a&&e._UZ(0,"canvas",null,59)}function oe(a,s){1&a&&(e.TgZ(0,"div",67),e._uU(1," Cargando resultados... "),e.qZA())}function se(a,s){1&a&&(e.TgZ(0,"div",68),e._uU(1," No se encontraron usuarios con los filtros aplicad
1os. "),e.qZA())}function ie(a,s){1&a&&(e.TgZ(0,"tr"),e.TgZ(1,"th"),e._uU(2,"Nombre completo"),e.qZA(),e.TgZ(3,"th"),e._uU(4,"Documento"),e.qZA(),e.TgZ(5,"th"),e._uU(6,"Correo"),e.qZA(),e.TgZ(7,"th"),e._uU(8,"Estado"),e.qZA(),e.TgZ(9,"th"),e._uU(10,"Dependencia"),e.qZA(),e.TgZ(11,"th"),e._uU(12,"Rol"),e.qZA(),e.TgZ(13,"th"),e._uU(14,"Fecha creaci\xf3n"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"\xdaltimo login"),e.qZA(),e.qZA())}function de(a,s){if(1&a&&(e.TgZ(0,"tr"),e.TgZ(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.ALo(15,"date"),e.qZA(),e.TgZ(16,"td"),e._uU(17),e.ALo(18,"date"),e.qZA(),e.qZA()),2&a){const t=s.$implicit;e.xp6(2),e.Oqu(t.fullName),e.xp6(2),e.Oqu(t.document),e.xp6(2),e.Oqu(t.email),e.xp6(2),e.Oqu(t.statusName||"Sin estado"),e.xp6(2),e.Oqu(t.dependencyName||"Sin dependencia"),e.xp6(2),e.Oqu(t.roleName||"Sin rol"),e.xp6(2),e.Oqu(e.Dn7(15,8,t.createdAt,"dd/MM/yyyy","es-CO")),e.xp6(3),e.Oqu(t.lastLoginAt?e.Dn7(18,12,t.lastLoginAt,"dd/MM/yyyy HH:mm","es-CO"):"Sin ingreso")}}function pe(a,s){if(1&a){const t=e.EpF();e.TgZ(0,"div",69),e.TgZ(1,"p-table",70),e.YNc(2,ie,17,0,"ng-template",71),e.YNc(3,de,19,16,"ng-template",72),e.qZA(),e.TgZ(4,"div",73),e.TgZ(5,"div",74),e.TgZ(6,"span",75),e._uU(7,"Registros por p\xe1gina:"),e.qZA(),e.TgZ(8,"p-dropdown",76),e.NdJ("onChange",function(r){return e.CHM(t),e.oxw(2).changeUsersRows(r.value)}),e.qZA(),e.qZA(),e.TgZ(9,"p-paginator",77),e.NdJ("onPageChange",function(r){return e.CHM(t),e.oxw(2).changeUsersPage(r)}),e.qZA(),e.qZA(),e.qZA()}if(2&a){const t=e.oxw(2);e.xp6(1),e.Q6J("value",t.usersData)("scrollable",!0),e.xp6(7),e.Q6J("options",t.rowsPerPageOptions)("ngModel",t.usersPerPage)("autoWidth",!1),e.xp6(1),e.Q6J("showFirstLastIcon",!1)("rows",t.usersPerPage)("first",t.usersFirst)("totalRecords",t.usersTotal)("alwaysShow",!0)}}function ce(a,s){if(1&a&&(e.TgZ(0,"div",60),e.TgZ(1,"div",39),e.TgZ(2,"div"),e._uU(3,"Resultados usuarios"),e.qZA(),e.TgZ(4,"div",61),e.TgZ(5,"span"),e._uU(6,"Total de resultados: "),e.qZA(),e.TgZ(7,"span",62),e._uU(8),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",63),e.YNc(10,oe,2,0,"div",64),e.YNc(11,se,2,0,"div",65),e.YNc(12,pe,10,10,"div",66),e.qZA(),e.qZA()),2&a){const t=e.oxw();e.xp6(8),e.Oqu(t.usersTotal),e.xp6(2),e.Q6J("ngIf",t.loadingUsers),e.xp6(1),e.Q6J("ngIf",!t.loadingUsers&&!t.usersHasData),e.xp6(1),e.Q6J("ngIf",!t.loadingUsers&&t.usersHasData)}}function le(a,s){if(1&a&&(e.TgZ(0,"div",15),e.TgZ(1,"label",16),e._uU(2,"Dependencia"),e.qZA(),e._UZ(3,"p-multiSelect",52),e.qZA()),2&a){const t=e.oxw();e.xp6(3),e.Q6J("options",t.dependenciesCatalog)}}function ge(a,s){if(1&a&&(e.TgZ(0,"span",53),e._uU(1),e.qZA()),2&a){const t=e.oxw();e.xp6(1),e.Oqu(t.dependenciesTotal)}}function ue(a,s){1&a&&e._UZ(0,"div",54)}function he(a,s){if(1&a&&(e.TgZ(0,"span",53),e._uU(1),e.qZA()),2&a){const t=e.oxw();e.xp6(1),e.Oqu(t.dependenciesByEventTypeMetrics.length)}}function me(a,s){1&a&&e._UZ(0,"div",54)}function _e(a,s){if(1&a&&(e.TgZ(0,"span",53),e._uU(1),e.qZA()),2&a){const t=e.oxw();e.xp6(1),e.Oqu(t.dependenciesByStatusMetrics.length)}}function ve(a,s){1&a&&e._UZ(0,"div",54)}function Te(a,s){1&a&&(e.TgZ(0,"div",55),e.TgZ(1,"span"),e._uU(2,"Cargando gr\xe1fica..."),e.qZA(),e.qZA())}function be(a,s){1&a&&(e.TgZ(0,"div",56),e._uU(1," Sin datos para graficar "),e.qZA())}function Ze(a,s){1&a&&e._UZ(0,"canvas",null,78)}function fe(a,s){1&a&&(e.TgZ(0,"div",55),e.TgZ(1,"span"),e._uU(2,"Cargando gr\xe1fica..."),e.qZA(),e.qZA())}function Ce(a,s){1&a&&(e.TgZ(0,"div",56),e._uU(1," Sin datos para graficar "),e.qZA())}function De(a,s){1&a&&e._UZ(0,"canvas",null,79)}function Ae(a,s){1&a&&(e.TgZ(0,"div",55),e.TgZ(1,"span"),e._uU(2,"Cargando gr\xe1fica..."),e.qZA(),e.qZA())}function ye(a,s){1&a&&(e.TgZ(0,"div",56),e._uU(1," Sin datos para graficar "),e.qZA())}function xe(a,s){1&a&&e._UZ(0,"canvas",null,80)}function Ue(a,s){1&a&&(e.TgZ(0,"div",67),e._uU(1," Cargando resultados... "),e.qZA())}function qe(a,s){1&a&&(e.TgZ(0,"div",68),e._uU(1," No se encontraron asignaciones con los filtros aplicad
1os. "),e.qZA())}function Se(a,s){1&a&&(e.TgZ(0,"tr"),e.TgZ(1,"th"),e._uU(2,"Id asignaci\xf3n"),e.qZA(),e.TgZ(3,"th"),e._uU(4,"Id evento"),e.qZA(),e.TgZ(5,"th"),e._uU(6,"Tipo evento"),e.qZA(),e.TgZ(7,"th"),e._uU(8,"Dependencia"),e.qZA(),e.TgZ(9,"th"),e._uU(10,"Estado dependencia"),e.qZA(),e.TgZ(11,"th"),e._uU(12,"Tipo gesti\xf3n"),e.qZA(),e.TgZ(13,"th"),e._uU(14,"Tipo concepto"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Fecha creaci\xf3n"),e.qZA(),e.qZA())}function Pe(a,s){if(1&a&&(e.TgZ(0,"tr"),e.TgZ(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.qZA(),e.TgZ(15,"td"),e._uU(16),e.ALo(17,"date"),e.qZA(),e.qZA()),2&a){const t=s.$implicit;e.xp6(2),e.Oqu(t.assignmentId),e.xp6(2),e.Oqu(t.eventId),e.xp6(2),e.Oqu(t.eventTypeName||"Sin tipo"),e.xp6(2),e.Oqu(t.dependencyName),e.xp6(2),e.Oqu(t.dependencyStatusName||"Sin estado"),e.xp6(2),e.Oqu(t.managementType||"Sin gesti\xf3n"),e.xp6(2),e.Oqu(t.conceptTypeName||"Sin concepto"),e.xp6(2),e.Oqu(e.Dn7(17,8,t.createdAt,"dd/MM/yyyy","es-CO"))}}function Re(a,s){if(1&a){const t=e.EpF();e.TgZ(0,"div",69),e.TgZ(1,"p-table",70),e.YNc(2,Se,17,0,"ng-template",71),e.YNc(3,Pe,18,12,"ng-template",72),e.qZA(),e.TgZ(4,"div",73),e.TgZ(5,"div",74),e.TgZ(6,"span",75),e._uU(7,"Registros por p\xe1gina:"),e.qZA(),e.TgZ(8,"p-dropdown",76),e.NdJ("onChange",function(r){return e.CHM(t),e.oxw(2).changeDependenciesRows(r.value)}),e.qZA(),e.qZA(),e.TgZ(9,"p-paginator",77),e.NdJ("onPageChange",function(r){return e.CHM(t),e.oxw(2).changeDependenciesPage(r)}),e.qZA(),e.qZA(),e.qZA()}if(2&a){const t=e.oxw(2);e.xp6(1),e.Q6J("value",t.dependenciesData)("scrollable",!0),e.xp6(7),e.Q6J("options",t.rowsPerPageOptions)("ngModel",t.dependenciesPerPage)("autoWidth",!1),e.xp6(1),e.Q6J("showFirstLastIcon",!1)("rows",t.dependenciesPerPage)("first",t.dependenciesFirst)("totalRecords",t.dependenciesTotal)("alwaysShow",!0)}}function Me(a,s){if(1&a&&(e.TgZ(0,"div",60),e.TgZ(1,"div",39),e.TgZ(2,"div"),e._uU(3,"Resultados dependencias"),e.qZA(),e.TgZ(4,"div",61),e.TgZ(5,"span"),e._uU(6,"Total de resultados: "),e.qZA(),e.TgZ(7,"span",62),e._uU(8),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",63),e.YNc(10,Ue,2,0,"div",64),e.YNc(11,qe,2,0,"div",65),e.YNc(12,Re,10,10,"div",66),e.qZA(),e.qZA()),2&a){const t=e.oxw();e.xp6(8),e.Oqu(t.dependenciesTotal),e.xp6(2),e.Q6J("ngIf",t.loadingDependencies),e.xp6(1),e.Q6J("ngIf",!t.loadingDependencies&&!t.dependenciesHasData),e.xp6(1),e.Q6J("ngIf",!t.loadingDependencies&&t.dependenciesHasData)}}const q=function(){return{label:"Fecha creaci\xf3n",value:"createdAt"}},Ee=function(){return{label:"Nombre",value:"name"}},Ne=function(){return{label:"Documento",value:"document"}},Ie=function(){return{label:"Correo",value:"email"}},we=function(a,s,t,n){return[a,s,t,n]},S=function(){return{label:"Descendente",value:"desc"}},P=function(){return{label:"Ascendente",value:"asc"}},R=function(a,s){return[a,s]},Oe=function(){return{label:"Dependencia",value:"dependencyName"}},Fe=function(){return{label:"Id evento",value:"eventId"}},Je=function(a,s,t){return[a,s,t]};g.kL.register(...g.zX);const Be=[{path:"",component:(()=>{class a{constructor(t,n){var r;this.fb=t,this.reportsDashboardService=n,this.urlBase=y.N.urlBase,this.authUser=(0,N.a)((null===(r=sessionStorage.getItem("token"))||void 0===r?void 0:r.toString())||""),this.loadingUsers=!1,this.loadingDependencies=!1,this.usersData=[],this.dependenciesData=[],this.maxDate=new Date,this.usersTotal=0,this.usersPerPage=100,this.usersCurrentPage=1,this.usersFirst=0,this.dependenciesTotal=0,this.dependenciesPerPage=100,this.dependenciesCurrentPage=1,this.dependenciesFirst=0,this.rowsPerPageOptions=[{label:"10",value:10},{label:"20",value:20},{label:"30",value:30},{label:"50",value:50},{label:"100",value:100},{label:"Todos",value:999999999}],this.rolesCatalog=[],this.usersStatusCatalog=[],this.usersDependenciesCatalog=[],this.dependenciesCatalog=[],this.dependenciesStatusCatalog=[],this.conceptTypesCatalog=[],this.eventTypesCatalog=[],this.managementTypesCatalog=[],this.usersByRoleMetrics=[],this.usersByStatusMetrics=[],this.usersTrendMetrics=[],this.dependenciesByEventTypeMetrics=[],this.dependenciesByStatusMetrics=[],this.dependenciesTrendMetrics=[],this.activeTabIndex=0,this.chartPalette={usersRole:{background:"rgba(84, 160, 255, 0.35)",border:"rgba(84, 160, 255, 1)"},usersStatus:{background:"rgba(38, 222, 129, 0.35)",border:"rgba(38, 222, 129, 1)"},usersTrend:{background:"rgba(111, 66, 193, 0.15)",border:"rgba(111, 66, 193, 0.9)"},dependenciesEventType:{background:"rgba(255, 159, 67, 0.35)",border:"rgba(255, 159, 67, 1)"},dependenciesStatus:{background:"rgba(0, 184, 148, 0.35)",border:"rgba(0, 184, 148, 1)"},dependenciesTrend:{background:"rgba(232, 67, 147, 0.15)",border:"rgba(232, 67, 147, 0.9)"}}}ngOnInit(){this.createForms(),this.loadCatalogs(),this.searchUsers(1),this.searchDependencies(1)}ngAfterViewInit(){setTimeout(()=>{this.renderActiveTabCharts()},0)}ngOnDestroy(){this.destroyAllCharts()}get isAdmin(){var t,n,r;return 1===(null===(n=null===(t=this.authUser)||void 0===t?void 0:t.role)||void 0===n?void 0:n.code)||!!Array.isArray(null===(r=this.authUser)||void 0===r?void 0:r.roles)&&this.authUser.roles.some(o=>1===Number(null==o?void 0:o.code))}get isDependency(){var t,n,r;return 2===(null===(n=null===(t=this.authUser)||void 0===t?void 0:t.role)||void 0===n?void 0:n.code)||!!Array.isArray(null===(r=this.authUser)||void 0===r?void 0:r.roles)&&this.authUser.roles.some(o=>2===Number(null==o?void 0:o.code))}get canSelectUsersDependency(){return this.isAdmin}get canSelectDependenciesDependency(){return this.isAdmin}get usersHasData(){return this.usersData.length>0}get dependenciesHasData(){return this.dependenciesData.length>0}get usersShowingAll(){return this.usersPerPage>=999999999}get dependenciesShowingAll(){return this.dependenciesPerPage>=999999999}onTabChange(t){this.activeTabIndex=t.index||0,setTimeout(()=>{this.renderActiveTabCharts()},50)}createForms(){var t,n;const r=new Date,o=new Date;o.setFullYear(o.getFullYear()-1),this.usersForm=this.fb.group({search:[""],dateFrom:[o],dateTo:[r],statusId:[[]],roleId:[[]],dependencyId:[[]],orderBy:["createdAt"],orderDirection:["desc"]}),this.dependenciesForm=this.fb.group({search:[""],dateFrom:[o],dateTo:[r],eventTypeId:[[]],dependencyId:[[]],dependencyStatusId:[[]],conceptTypeId:[[]],managementType:[[]],orderBy:["createdAt"],orderDirection:["desc"]}),this.isDependency&&(null===(n=null===(t=this.authUser)||void 0===t?void 0:t.dependency)||void 0===n?void 0:n.id)&&(this.usersForm.patchValue({dependencyId:[this.authUser.depen
1dency.id]}),this.dependenciesForm.patchValue({dependencyId:[this.authUser.dependency.id]}))}loadCatalogs(){this.reportsDashboardService.getUsersRolesCatalog().subscribe(t=>{this.rolesCatalog=(null==t?void 0:t.data)||[]}),this.reportsDashboardService.getUsersStatusCatalog().subscribe(t=>{this.usersStatusCatalog=(null==t?void 0:t.data)||[]}),this.reportsDashboardService.getUsersDependenciesCatalog().subscribe(t=>{this.usersDependenciesCatalog=(null==t?void 0:t.data)||[]}),this.reportsDashboardService.getDependenciesCatalog().subscribe(t=>{this.dependenciesCatalog=(null==t?void 0:t.data)||[]}),this.reportsDashboardService.getDependenciesStatusCatalog().subscribe(t=>{this.dependenciesStatusCatalog=(null==t?void 0:t.data)||[]}),this.reportsDashboardService.getDependenciesConceptTypesCatalog().subscribe(t=>{this.conceptTypesCatalog=(null==t?void 0:t.data)||[]}),this.reportsDashboardService.getDependenciesEventTypesCatalog().subscribe(t=>{this.eventTypesCatalog=(null==t?void 0:t.data)||[]}),this.reportsDashboardService.getDependenciesManagementTypesCatalog().subscribe(t=>{this.managementTypesCatalog=(null==t?void 0:t.data)||[]})}searchUsers(t=1){this.loadingUsers=!0,this.usersCurrentPage=t,this.usersFirst=(this.usersCurrentPage-1)*this.usersPerPage;const n=this.usersForm.value,r={page:this.usersCurrentPage,perPage:this.usersPerPage,search:n.search||null,dateFrom:this.formatDateForApi(n.dateFrom),dateTo:this.formatDateForApi(n.dateTo),statusId:this.extractIds(n.statusId),roleId:this.extractIds(n.roleId),dependencyId:this.extractIds(n.dependencyId),orderBy:n.orderBy||"createdAt",orderDirection:n.orderDirection||"desc"};this.reportsDashboardService.getUsersReport(r).subscribe({next:o=>{var d;this.usersData=(null==o?void 0:o.data)||[],this.usersTotal=(null===(d=null==o?void 0:o.meta)||void 0===d?void 0:d.total)||0,this.usersByRoleMetrics=this.reportsDashboardService.countUsersByRole(this.usersData),this.usersByStatusMetrics=this.reportsDashboardService.countUsersByStatus(this.usersData),this.usersTrendMetrics=this.reportsDashboardService.buildTrendByDate(this.usersData),this.loadingUsers=!1,0===this.activeTabIndex&&setTimeout(()=>this.renderUsersCharts(),50)},error:()=>{this.usersData=[],this.usersTotal=0,this.usersByRoleMetrics=[],this.usersByStatusMetrics=[],this.usersTrendMetrics=[],this.loadingUsers=!1,0===this.activeTabIndex&&setTimeout(()=>this.renderUsersCharts(),50)}})}searchDependencies(t=1){this.loadingDependencies=!0,this.dependenciesCurrentPage=t,this.dependenciesFirst=(this.dependenciesCurrentPage-1)*this.dependenciesPerPage;const n=this.dependenciesForm.value,r={page:this.dependenciesCurrentPage,perPage:this.dependenciesPerPage,search:n.search||null,dateFrom:this.formatDateForApi(n.dateFrom),dateTo:this.formatDateForApi(n.dateTo),eventTypeId:this.extractIds(n.eventTypeId),dependencyId:this.extractIds(n.dependencyId),dependencyStatusId:this.extractIds(n.dependencyStatusId),conceptTypeId:this.extractIds(n.conceptTypeId),managementType:this.extractCatalogNames(n.managementType),orderBy:n.orderBy||"createdAt",orderDirection:n.orderDirection||"desc"};this.reportsDashboardService.getDependenciesReport(r).subscribe({next:o=>{var d;this.dependenciesData=(null==o?void 0:o.data)||[],this.dependenciesTotal=(null===(d=null==o?void 0:o.meta)||void 0===d?void 0:d.total)||0,this.dependenciesByEventTypeMetrics=this.reportsDashboardService.countDependenciesByEventType(this.dependenciesData),this.dependenciesByStatusMetrics=this.reportsDashboardService.countDependenciesByStatus(this.dependenciesData),this.dependenciesTrendMetrics=this.reportsDashboardService.buildTrendByDate(this.dependenciesData),this.loadingDependencies=!1,1===this.activeTabIndex&&setTimeout(()=>this.renderDependenciesCharts(),50)},error:()=>{this.dependenciesData=[],this.dependenciesTotal=0,this.dependenciesByEventTypeMetrics=[],this.dependenciesByStatusMetrics=[],this.dependenciesTrendMetrics=[],this.loadingDependencies=!1,1===this.activeTabIndex&&setTimeout(()=>this.renderDependenciesCharts(),50)}})}resetUsersFilters(){var t,n;this.usersPerPage=100,this.usersCurrentPage=1,this.usersFirst=0;const r=new Date,o=new Date;o.setFullYear(o.getFullYear()-1),this.usersForm.reset({search:"",dateFrom:o,dateTo:r,statusId:[],roleId:[],dependencyId:this.isDependency&&(null===(n=null===(t=this.authUser)||void 0===t?void 0:t.dependency)||void 0===n?void 0:n.id)?[this.authUser.depen
1dency.id]:[],orderBy:"createdAt",orderDirection:"desc"}),this.searchUsers(1)}resetDependenciesFilters(){var t,n;this.dependenciesPerPage=100,this.dependenciesCurrentPage=1,this.dependenciesFirst=0;const r=new Date,o=new Date;o.setFullYear(o.getFullYear()-1),this.dependenciesForm.reset({search:"",dateFrom:o,dateTo:r,eventTypeId:[],dependencyId:this.isDependency&&(null===(n=null===(t=this.authUser)||void 0===t?void 0:t.dependency)||void 0===n?void 0:n.id)?[this.authUser.dependency.id]:[],dependencyStatusId:[],conceptTypeId:[],managementType:[],orderBy:"createdAt",orderDirection:"desc"}),this.searchDependencies(1)}changeUsersPage(t){this.usersPerPage=Number(t.rows||this.usersPerPage),this.usersFirst=Number(t.first||0),this.searchUsers(Number(t.page||0)+1)}changeDependenciesPage(t){this.dependenciesPerPage=Number(t.rows||this.dependenciesPerPage),this.dependenciesFirst=Number(t.first||0),this.searchDependencies(Number(t.page||0)+1)}changeUsersRows(t){this.usersPerPage=Number(t||100),this.usersCurrentPage=1,this.usersFirst=0,this.searchUsers(1)}changeDependenciesRows(t){this.dependenciesPerPage=Number(t||100),this.dependenciesCurrentPage=1,this.dependenciesFirst=0,this.searchDependencies(1)}exportUsersReport(){const t=this.usersData.map(n=>({"Nombre completo":n.fullName||"",Documento:n.document||"",Correo:n.email||"",Estado:n.statusName||"Sin estado",Depen
1dencia:n.dependencyName||"Sin dependencia",Rol:n.roleName||"Sin rol","Fecha creaci\xf3n":this.formatDateTimeForExport(n.createdAt),"\xdaltimo login":this.formatDateTimeForExport(n.lastLoginAt)}));t.length>0&&(0,x.y)(t,`Reporte_Usuarios_${this.buildExportDateSuffix()}`)}exportDependenciesReport(){const t=this.dependenciesData.map(n=>({"Id asignaci\xf3n":n.assignmentId,"Id evento":n.eventId,"Tipo evento":n.eventTypeName||"Sin tipo",Dependencia:n.dependencyName||"","Estado dependencia":n.dependencyStatusName||"Sin estado","Tipo gesti\xf3n":n.managementType||"Sin gesti\xf3n","Tipo concepto":n.conceptTypeName||"Sin concepto","Fecha creaci\xf3n":this.formatDateTimeForExport(n.createdAt)}));t.length>0&&(0,x.y)(t,`Reporte_Dependencias_${this.buildExportDateSuffix()}`)}extractIds(t){if(!t||!Array.isArray(t)||0===t.length)return;const n=t.map(r=>{var o;return Number(null!==(o=null==r?void 0:r.id)&&void 0!==o?o:r)}).filter(r=>!isNaN(r));return n.length?n:void 0}extractCatalogNames(t){if(!t||!Array.isArray(t)||0===t.length)return;const n=t.map(r=>{var o;return String(null!==(o=null==r?void 0:r.name)&&void 0!==o?o:r).trim()}).filter(r=>!!r);return n.length?n:void 0}renderActiveTabCharts(){0!==this.activeTabIndex?this.renderDependenciesCharts():this.renderUsersCharts()}renderUsersCharts(){this.usersRoleChart=this.buildBarChart(this.usersRoleChart,this.usersRoleChartCanvas,"bar",this.usersByRoleMetrics.map(t=>t.name),this.usersByRoleMetrics.map(t=>t.total),"Usuarios por rol",this.chartPalette.usersRole.background,this.chartPalette.usersRole.border),this.usersStatusChart=this.buildBarChart(this.usersStatusChart,this.usersStatusChartCanvas,"bar",this.usersByStatusMetrics.map(t=>t.name),this.usersByStatusMetrics.map(t=>t.total),"Usuarios por estado",this.chartPalette.usersStatus.background,this.chartPalette.usersStatus.border),this.usersTrendChart=this.buildLineChart(this.usersTrendChart,this.usersTrendChartCanvas,this.usersTrendMetrics.map(t=>this.formatChartDateLabel(t.date)),this.usersTrendMetrics.map(t=>t.total),"Tendencia por fecha",this.chartPalette.usersTrend.background,this.chartPalette.usersTrend.border)}renderDependenciesCharts(){this.dependenciesEventTypeChart=this.buildBarChart(this.dependenciesEventTypeChart,this.dependenciesEventTypeChartCanvas,"bar",this.dependenciesByEventTypeMetrics.map(t=>t.name),this.dependenciesByEventTypeMetrics.map(t=>t.total),"Asignaciones por tipo de evento",this.chartPalette.dependenciesEventType.background,this.chartPalette.dependenciesEventType.border),this.dependenciesStatusChart=this.buildBarChart(this.dependenciesStatusChart,this.dependenciesStatusChartCanvas,"bar",this.dependenciesByStatusMetrics.map(t=>t.name),this.dependenciesByStatusMetrics.map(t=>t.total),"Asignaciones por estado",this.chartPalette.dependenciesStatus.background,this.chartPalette.dependenciesStatus.border),this.dependenciesTrendChart=this.buildLineChart(this.dependenciesTrendChart,this.dependenciesTrendChartCanvas,this.dependenciesTrendMetrics.map(t=>this.formatChartDateLabel(t.date)),this.dependenciesTrendMetrics.map(t=>t.total),"Tendencia por fecha",this.chartPalette.dependenciesTrend.background,this.chartPalette.dependenciesTrend.border)}buildBarChart(t,n,r,o,d,l,u,M){return(null==n?void 0:n.nativeElement)?(t&&t.destroy(),o.length&&d.length?new g.kL(n.nativeElement,{type:r,data:{labels:o,datasets:[{label:l,data:d,borderWidth:1,backgroundColor:u,borderColor:M,borderRadius:8,maxBarThickness:48}]},options:{responsive:!0,maintainAspectRatio:!1,animation:{duration:700},plugins:{legend:{display:!1},tooltip:{backgroundColor:"#ffffff",titleColor:"#333333",bodyColor:"#333333",borderColor:"#d9e2ec",borderWidth:1}},scales:{x:{grid:{display:!1},ticks:{color:"#5c5c5c"}},y:{beginAtZero:!0,ticks:{precision:0,color:"#5c5c5c"},grid:{color:"rgba(0, 0, 0, 0.06)"}}}}}):void 0):t}buildLineChart(t,n,r,o,d,l,u){return(null==n?void 0:n.nativeElement)?(t&&t.destroy(),r.length&&o.length?new g.kL(n.nativeElement,{type:"line",data:{labels:r,datasets:[{label:d,data:o,fill:!0,tension:.35,borderWidth:2,backgroundColor:l,borderColor:u,pointRadius:4,pointHoverRadius:6,pointBackgroun
1dColor:u}]},options:{responsive:!0,maintainAspectRatio:!1,animation:{duration:700},plugins:{legend:{display:!1},tooltip:{backgroundColor:"#ffffff",titleColor:"#333333",bodyColor:"#333333",borderColor:"#d9e2ec",borderWidth:1}},scales:{x:{grid:{display:!1},ticks:{color:"#5c5c5c",maxRotation:0,minRotation:0}},y:{beginAtZero:!0,ticks:{precision:0,color:"#5c5c5c"},grid:{color:"rgba(0, 0, 0, 0.06)"}}}}}):void 0):t}formatDateForApi(t){return t&&t instanceof Date&&!isNaN(t.getTime())?`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`:null}formatChartDateLabel(t){if(!t)return"";const n=new Date(t+"T00:00:00");return isNaN(n.getTime())?t:n.toLocaleDateString("es-CO",{day:"2-digit",month:"short"})}formatDateTimeForExport(t){if(!t)return"";const n=new Date(t);return isNaN(n.getTime())?t:n.toLocaleString("es-CO")}buildExportDateSuffix(){const t=new Date;return`${t.getFullYear()}${String(t.getMonth()+1).padStart(2,"0")}${String(t.getDate()).padStart(2,"0")}`}destroyAllCharts(){var t,n,r,o,d,l;null===(t=this.usersRoleChart)||void 0===t||t.destroy(),null===(n=this.usersStatusChart)||void 0===n||n.destroy(),null===(r=this.usersTrendChart)||void 0===r||r.destroy(),null===(o=this.dependenciesEventTypeChart)||void 0===o||o.destroy(),null===(d=this.dependenciesStatusChart)||void 0===d||d.destroy(),null===(l=this.dependenciesTrendChart)||void 0===l||l.destroy()}}return a.\u0275fac=function(t){return new(t||a)(e.Y36(c.qu),e.Y36(I))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-reports-dashboard"]],viewQuery:function(t,n){if(1&t&&(e.Gf(O,5),e.Gf(F,5),e.Gf(J,5),e.Gf(B,5),e.Gf(Q,5),e.Gf(k,5)),2&t){let r;e.iGM(r=e.CRH())&&(n.usersRoleChartCanvas=r.first),e.iGM(r=e.CRH())&&(n.usersStatusChartCanvas=r.first),e.iGM(r=e.CRH())&&(n.usersTrendChartCanvas=r.first),e.iGM(r=e.CRH())&&(n.dependenciesEventTypeChartCanvas=r.first),e.iGM(r=e.CRH())&&(n.dependenciesStatusChartCanvas=r.first),e.iGM(r=e.CRH())&&(n.dependenciesTrendChartCanvas=r.first)}},decls:182,vars:86,consts:[[1,"containerbreadcrumbs"],[1,"containerbc"],["routerLink","/main/homeprincipal",1,"home"],[1,"p-mr-2",3,"src"],[1,"containerbcBtn"],[1,"barLink"],[1,"position-initial"],[1,"tabview-pt"],[1,"dashboard-tabview",3,"activeIndex","activeIndexChange","onChange"],[1,"root-card-title-container",2,"padding","42px 0px 0px"],[1,"root-card-title--black"],["header","Reporte de usuarios"],[1,"card-container-a","dashboard-filter-card"],["novalidate","",1,"card-body","flex-grid","needs-validation",3,"formGroup"],[1,"p-fluid","p-formgrid","p-grid","dashboard-form-grid"],[1,"p-col-12","p-md-6"],[1,"p-label","label-font"],["type","text","pInputText","","formControlName","search","placeholder","Nombre, documento o correo",1,"p-input"],[1,"p-col-12","p-md-3"],["formControlName","dateFrom","dateFormat","dd/mm/yy","placeholder","DD/MM/AAAA",3,"showIcon","maxDate"],["formControlName","dateTo","dateFormat","dd/mm/yy","placeholder","DD/MM/AAAA",3,"showIcon","maxDate"],["formControlName","statusId","optionLabel","name","defaultLabel","Seleccionar","display","chip",3,"options"],["formControlName","roleId","optionLabel","name","defaultLabel","Seleccionar","display","chip",3,"options"],["class","p-col-12 p-md-6",4,"ngIf"],["formControlName","orderBy","optionLabel","label","optionValue","value","placeholder","Seleccionar",3,"options"],["formControlName","orderDirection","optionLabel","label","optionValue","value","placeholder","Seleccionar",3,"options"],[1,"card-footer","card-footer-jc-end"],[1,"actions"],["pButton","","type","button","label","Limpiar campos",1,"btn","btn-simple-c",3,"click"],["pButton","","type","button","label","Exportar",1,"btn","btn-secondary-c",3,"disabled","click"],["pButton","","type","button","label","Buscar",1,"btn","btn-primary-c",3,"loading","click"],[1,"metrics-grid"],[1,"metric-card","metric-card--trend"],[1,"metric-card__label"],["class","metric-card__value",4,"ngIf"],["class","dashboard-loading-line",4,"ngIf"],[1,"metric-card"],[1,"charts-grid"],[1,"card-container-a","chart-card"],[1,"card_header"],[1,"card-body","chart-card__body"],["class","chart-loading",4,"ngIf"],["class","chart-empty",4,"ngIf"],[4,"ngIf"],[1,"card-container-a","chart-card","chart-card--trend"],["class","card-container-a",4,"ngIf"],["header","Reporte de dependencias"],["type","text","pInputText","","formControlName","search","placeholder","Depen
1dencia, tipo evento o id evento",1,"p-input"],["formControlName","eventTypeId","optionLabel","name","defaultLabel","Seleccionar","display","chip",3,"options"],["formControlName","dependencyStatusId","optionLabel","name","defaultLabel","Seleccionar","display","chip",3,"options"],["formControlName","conceptTypeId","optionLabel","name","defaultLabel","Seleccionar","display","chip",3,"options"],["formControlName","managementType","optionLabel","name","defaultLabel","Seleccionar","display","chip",3,"options"],["formControlName","dependencyId","optionLabel","name","defaultLabel","Seleccionar","display","chip",3,"options"],[1,"metric-card__value"],[1,"dashboard-loading-line"],[1,"chart-loading"],[1,"chart-empty"],["usersRoleChartCanvas",""],["usersStatusChartCanvas",""],["usersTrendChartCanvas",""],[1,"card-container-a"],[1,"total-results-container-black"],[1,"total-results-text-green"],[1,"card-body","card-body--pt-0","flex-grid"],["class","table-loading",4,"ngIf"],["class","table-empty",4,"ngIf"],["class","table-container table-container-no-border table-container--mb-0",4,"ngIf"],[1,"table-loading"],[1,"table-empty"],[1,"table-container","table-container-no-border","table-container--mb-0"],["styleClass","p-datatable-striped","scrollDirection","horizontal",3,"value","scrollable"],["pTemplate","header"],["pTemplate","body"],[1,"container-nav-paginator","container-nav-paginator--jc-between","container-nav-paginator--pb-0"],[1,"reports-rows-selector"],[1,"reports-rows-selector__label"],["optionLabel","label","optionValue","value",1,"reports-rows-selector__dropdown",3,"options","ngModel","autoWidth","onChange"],[3,"showFirstLastIcon","rows","first","totalRecords","alwaysShow","onPageChange"],["dependenciesEventTypeChartCanvas",""],["dependenciesStatusChartCanvas",""],["dependenciesTrendChartCanvas",""]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e._UZ(3,"img",3),e.qZA(),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"span",5),e._uU(6,"/"),e.qZA(),e.TgZ(7,"span",6),e._uU(8,"Dashboard de reportes"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",7),e.TgZ(10,"p-tabView",8),e.NdJ("activeIndexChange",function(o){return n.activeTabIndex=o})("onChange",function(o){return n.onTabChange(o)}),e.TgZ(11,"div",9),e.TgZ(12,"h2",10),e._uU(13,"Dashboard de reportes"),e.qZA(),e.qZA(),e.TgZ(14,"p-tabPanel",11),e.TgZ(15,"div",12),e.TgZ(16,"form",13),e.TgZ(17,"div",14),e.TgZ(18,"div",15),e.TgZ(19,"label",16),e._uU(20,"B\xfasqueda"),e.qZA(),e._UZ(21,"input",17),e.qZA(),e.TgZ(22,"div",18),e.TgZ(23,"label",16),e._uU(24,"Fecha desde"),e.qZA(),e._UZ(25,"p-calendar",19),e.qZA(),e.TgZ(26,"div",18),e.TgZ(27,"label",16),e._uU(28,"Fecha hasta"),e.qZA(),e._UZ(29,"p-calendar",20),e.qZA(),e.TgZ(30,"div",15),e.TgZ(31,"label",16),e._uU(32,"Estado"),e.qZA(),e._UZ(33,"p-multiSelect",21),e.qZA(),e.TgZ(34,"div",15),e.TgZ(35,"label",16),e._uU(36,"Rol"),e.qZA(),e._UZ(37,"p-multiSelect",22),e.qZA(),e.YNc(38,Y,4,1,"div",23),e.TgZ(39,"div",18),e.TgZ(40,"label",16),e._uU(41,"Ordenar por"),e.qZA(),e._UZ(42,"p-dropdown",24),e.qZA(),e.TgZ(43,"div",18),e.TgZ(44,"label",16),e._uU(45,"Direcci\xf3n"),e.qZA(),e._UZ(46,"p-dropdown",25),e.qZA(),e.qZA(),e.qZA(),e.TgZ(47,"div",26),e.TgZ(48,"div",27),e.TgZ(49,"button",28),e.NdJ("click",function(){return n.resetUsersFilters()}),e.qZA(),e.TgZ(50,"button",29),e.NdJ("click",function(){return n.exportUsersReport()}),e.qZA(),e.TgZ(51,"button",30),e.NdJ("click",function(){return n.searchUsers(1)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"div",31),e.TgZ(53,"div",32),e.TgZ(54,"span",33),e._uU(55,"Total usuarios"),e.qZA(),e.YNc(56,L,2,1,"span",34),e.YNc(57,H,1,0,"div",35),e.qZA(),e.TgZ(58,"div",36),e.TgZ(59,"span",33),e._uU(60,"Roles encontrados"),e.qZA(),e.YNc(61,G,2,1,"span",34),e.YNc(62,$,1,0,"div",35),e.qZA(),e.TgZ(63,"div",36),e.TgZ(64,"span",33),e._uU(65,"Estados encontrados"),e.qZA(),e.YNc(66,j,2,1,"span",34),e.YNc(67,V,1,0,"div",35),e.qZA(),e.qZA(),e.TgZ(68,"div",37),e.TgZ(69,"div",38),e.TgZ(70,"div",39),e.TgZ(71,"div"),e._uU(72,"Conteo por rol"),e.qZA(),e.qZA(),e.TgZ(73,"div",40),e.YNc(74,W,3,0,"div",41),e.YNc(75,z,2,0,"div",42),e.YNc(76,X,2,0,"canvas",43),e.qZA(),e.qZA(),e.TgZ(77,"div",38),e.TgZ(78,"div",39),e.TgZ(79,"div"),e._uU(80,"Conteo por estado"),e.qZA(),e.qZA(),e.TgZ(81,"div",40),e.YNc(82,K,3,0,"div",41),e.YNc(83,ee,2,0,"div",42),e.YNc(84,te,2,0,"canvas",43),e.qZA(),e.qZA(),e.TgZ(85,"div",44),e.TgZ(86,"div",39),e.TgZ(87,"div"),e._uU(88,"Tendencia por fecha"),e.qZA(),e.qZA(),e.TgZ(89,"div",40),e.YNc(90,ne,3,0,"div",41),e.YNc(91,ae,2,0,"div",42),e.YNc(92,re,2,0,"canvas",43),e.qZA(),e.qZA(),e.qZA(),e.YNc(93,ce,13,4,"div",45),e.qZA(),e.TgZ(94,"p-tabPanel",46),e.TgZ(95,"div",12),e.TgZ(96,"form",13),e.TgZ(97,"div",14),e.TgZ(98,"div",15),e.TgZ(99,"label",16),e._uU(100,"B\xfasqueda"),e.qZA(),e._UZ(101,"input",47),e.qZA(),e.TgZ(102,"div",18),e.TgZ(103,"label",16),e._uU(104,"Fecha desde"),e.qZA(),e._UZ(105,"p-calendar",19),e.qZA(),e.TgZ(106,"div",18),e.TgZ(107,"label",16),e._uU(108,"Fecha hasta"),e.qZA(),e._UZ(109,"p-calendar",20),e.qZA(),e.TgZ(110,"div",15),e.TgZ(111,"label",16),e._uU(112,"Tipo de evento"),e.qZA(),e._UZ(113,"p-multiSelect",48),e.qZA(),e.YNc(114,le,4,1,"div",23),e.TgZ(115,"div",15),e.TgZ(116,"label",16),e._uU(117,"Estado depen
1dencia"),e.qZA(),e._UZ(118,"p-multiSelect",49),e.qZA(),e.TgZ(119,"div",15),e.TgZ(120,"label",16),e._uU(121,"Tipo de concepto"),e.qZA(),e._UZ(122,"p-multiSelect",50),e.qZA(),e.TgZ(123,"div",15),e.TgZ(124,"label",16),e._uU(125,"Tipo de gesti\xf3n"),e.qZA(),e._UZ(126,"p-multiSelect",51),e.qZA(),e.TgZ(127,"div",18),e.TgZ(128,"label",16),e._uU(129,"Ordenar por"),e.qZA(),e._UZ(130,"p-dropdown",24),e.qZA(),e.TgZ(131,"div",18),e.TgZ(132,"label",16),e._uU(133,"Direcci\xf3n"),e.qZA(),e._UZ(134,"p-dropdown",25),e.qZA(),e.qZA(),e.qZA(),e.TgZ(135,"div",26),e.TgZ(136,"div",27),e.TgZ(137,"button",28),e.NdJ("click",function(){return n.resetDependenciesFilters()}),e.qZA(),e.TgZ(138,"button",29),e.NdJ("click",function(){return n.exportDependenciesReport()}),e.qZA(),e.TgZ(139,"button",30),e.NdJ("click",function(){return n.searchDependencies(1)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(140,"div",31),e.TgZ(141,"div",32),e.TgZ(142,"span",33),e._uU(143,"Total asignaciones"),e.qZA(),e.YNc(144,ge,2,1,"span",34),e.YNc(145,ue,1,0,"div",35),e.qZA(),e.TgZ(146,"div",36),e.TgZ(147,"span",33),e._uU(148,"Tipos de evento"),e.qZA(),e.YNc(149,he,2,1,"span",34),e.YNc(150,me,1,0,"div",35),e.qZA(),e.TgZ(151,"div",36),e.TgZ(152,"span",33),e._uU(153,"Estados dependencia"),e.qZA(),e.YNc(154,_e,2,1,"span",34),e.YNc(155,ve,1,0,"div",35),e.qZA(),e.qZA(),e.TgZ(156,"div",37),e.TgZ(157,"div",38),e.TgZ(158,"div",39),e.TgZ(159,"div"),e._uU(160,"Conteo por tipo de evento"),e.qZA(),e.qZA(),e.TgZ(161,"div",40),e.YNc(162,Te,3,0,"div",41),e.YNc(163,be,2,0,"div",42),e.YNc(164,Ze,2,0,"canvas",43),e.qZA(),e.qZA(),e.TgZ(165,"div",38),e.TgZ(166,"div",39),e.TgZ(167,"div"),e._uU(168,"Conteo por estado"),e.qZA(),e.qZA(),e.TgZ(169,"div",40),e.YNc(170,fe,3,0,"div",41),e.YNc(171,Ce,2,0,"div",42),e.YNc(172,De,2,0,"canvas",43),e.qZA(),e.qZA(),e.TgZ(173,"div",44),e.TgZ(174,"div",39),e.TgZ(175,"div"),e._uU(176,"Tendencia por fecha"),e.qZA(),e.qZA(),e.TgZ(177,"div",40),e.YNc(178,Ae,3,0,"div",41),e.YNc(179,ye,2,0,"div",42),e.YNc(180,xe,2,0,"canvas",43),e.qZA(),e.qZA(),e.qZA(),e.YNc(181,Me,13,4,"div",45),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.MGl("src","",n.urlBase,"/assets/images/inicio.svg",e.LSH),e.xp6(7),e.Q6J("activeIndex",n.activeTabIndex),e.xp6(6),e.Q6J("formGroup",n.usersForm),e.xp6(9),e.Q6J("showIcon",!0)("maxDate",n.maxDate),e.xp6(4),e.Q6J("showIcon",!0)("maxDate",n.maxDate),e.xp6(4),e.Q6J("options",n.usersStatusCatalog),e.xp6(4),e.Q6J("options",n.rolesCatalog),e.xp6(1),e.Q6J("ngIf",n.canSelectUsersDependency),e.xp6(4),e.Q6J("options",e.l5B(64,we,e.DdM(60,q),e.DdM(61,Ee),e.DdM(62,Ne),e.DdM(63,Ie))),e.xp6(4),e.Q6J("options",e.WLB(71,R,e.DdM(69,S),e.DdM(70,P))),e.xp6(4),e.Q6J("disabled",!n.usersHasData),e.xp6(1),e.Q6J("loading",n.loadingUsers),e.xp6(5),e.Q6J("ngIf",!n.loadingUsers),e.xp6(1),e.Q6J("ngIf",n.loadingUsers),e.xp6(4),e.Q6J("ngIf",!n.loadingUsers),e.xp6(1),e.Q6J("ngIf",n.loadingUsers),e.xp6(4),e.Q6J("ngIf",!n.loadingUsers),e.xp6(1),e.Q6J("ngIf",n.loadingUsers),e.xp6(7),e.Q6J("ngIf",n.loadingUsers),e.xp6(1),e.Q6J("ngIf",!n.loadingUsers&&0===n.usersByRoleMetrics.length),e.xp6(1),e.Q6J("ngIf",!n.loadingUsers&&n.usersByRoleMetrics.length>0),e.xp6(6),e.Q6J("ngIf",n.loadingUsers),e.xp6(1),e.Q6J("ngIf",!n.loadingUsers&&0===n.usersByStatusMetrics.length),e.xp6(1),e.Q6J("ngIf",!n.loadingUsers&&n.usersByStatusMetrics.length>0),e.xp6(6),e.Q6J("ngIf",n.loadingUsers),e.xp6(1),e.Q6J("ngIf",!n.loadingUsers&&0===n.usersTrendMetrics.length),e.xp6(1),e.Q6J("ngIf",!n.loadingUsers&&n.usersTrendMetrics.length>0),e.xp6(1),e.Q6J("ngIf",n.usersHasData||n.loadingUsers),e.xp6(3),e.Q6J("formGroup",n.dependenciesForm),e.xp6(9),e.Q6J("showIcon",!0)("maxDate",n.maxDate),e.xp6(4),e.Q6J("showIcon",!0)("maxDate",n.maxDate),e.xp6(4),e.Q6J("options",n.eventTypesCatalog),e.xp6(1),e.Q6J("ngIf",n.canSelectDependenciesDependency),e.xp6(4),e.Q6J("options",n.dependenciesStatusCatalog),e.xp6(4),e.Q6J("options",n.conceptTypesCatalog),e.xp6(4),e.Q6J("options",n.managementTypesCatalog),e.xp6(4),e.Q6J("options",e.kEZ(77,Je,e.DdM(74,q),e.DdM(75,Oe),e.DdM(76,Fe))),e.xp6(4),e.Q6J("options",e.WLB(83,R,e.DdM(81,S),e.DdM(82,P))),e.xp6(4),e.Q6J("disabled",!n.dependenciesHasData),e.xp6(1),e.Q6J("loading",n.loadingDependencies),e.xp6(
15),e.Q6J("ngIf",!n.loadingDependencies),e.xp6(1),e.Q6J("ngIf",n.loadingDependencies),e.xp6(4),e.Q6J("ngIf",!n.loadingDependencies),e.xp6(1),e.Q6J("ngIf",n.loadingDependencies),e.xp6(4),e.Q6J("ngIf",!n.loadingDependencies),e.xp6(1),e.Q6J("ngIf",n.loadingDependencies),e.xp6(7),e.Q6J("ngIf",n.loadingDependencies),e.xp6(1),e.Q6J("ngIf",!n.loadingDependencies&&0===n.dependenciesByEventTypeMetrics.length),e.xp6(1),e.Q6J("ngIf",!n.loadingDependencies&&n.dependenciesByEventTypeMetrics.length>0),e.xp6(6),e.Q6J("ngIf",n.loadingDependencies),e.xp6(1),e.Q6J("ngIf",!n.loadingDependencies&&0===n.dependenciesByStatusMetrics.length),e.xp6(1),e.Q6J("ngIf",!n.loadingDependencies&&n.dependenciesByStatusMetrics.length>0),e.xp6(6),e.Q6J("ngIf",n.loadingDependencies),e.xp6(1),e.Q6J("ngIf",!n.loadingDependencies&&0===n.dependenciesTrendMetrics.length),e.xp6(1),e.Q6J("ngIf",!n.loadingDependencies&&n.dependenciesTrendMetrics.length>0),e.xp6(1),e.Q6J("ngIf",n.dependenciesHasData||n.loadingDependencies))},directives:[_.rH,m.xf,m.x4,c._Y,c.JL,c.sg,c.Fj,f.o,c.JJ,c.u,b.f,C.NU,h.O5,Z.Lt,T.Hq,A.iA,w.jx,c.On,D.D],pipes:[h.uU],styles:[".tabview-pt[_ngcontent-%COMP%]{padding-top:17px}.dashboard-main-title[_ngcontent-%COMP%]{margin-bottom:4px}.dashboard-filter-card[_ngcontent-%COMP%]{margin-bottom:16px}.dashboard-form-grid[_ngcontent-%COMP%]{grid-row-gap:10px;row-gap:10px}.metrics-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:16px;gap:16px;margin:16px 0}.metric-card--trend[_ngcontent-%COMP%]{grid-column:1/-1}.metric-card[_ngcontent-%COMP%]{background:#ffffff;border-radius:15px;box-shadow:0 3px 6px #00000029;padding:14px 20px;display:flex;flex-direction:column;min-height:86px}.metric-card__label[_ngcontent-%COMP%]{font:normal normal 13px/18px MontserratSemiBold;color:#535353;margin-bottom:6px}.metric-card__value[_ngcontent-%COMP%]{font:normal normal 700 20px/24px MontserratSemiBold;color:#00b5ae}.charts-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:16px;gap:16px;margin-bottom:16px}.charts-grid[_ngcontent-%COMP%] .card-container-a[_ngcontent-%COMP%]{margin-bottom:16px}.chart-card--trend[_ngcontent-%COMP%]{grid-column:1/-1}.chart-card--trend[_ngcontent-%COMP%] .chart-card__body[_ngcontent-%COMP%]{height:320px}.chart-card[_ngcontent-%COMP%]{min-height:auto}.chart-card__body[_ngcontent-%COMP%]{height:280px;position:relative}.chart-card__body[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%]{width:100%!important;height:100%!important}.chart-loading[_ngcontent-%COMP%], .chart-empty[_ngcontent-%COMP%], .table-loading[_ngcontent-%COMP%], .table-empty[_ngcontent-%COMP%]{width:100%;min-height:180px;display:flex;align-items:center;justify-content:center;text-align:center;color:#656565;font:normal normal 12px/14px WorkSansRegular}.table-loading[_ngcontent-%COMP%], .table-empty[_ngcontent-%COMP%]{min-height:120px}.dashboard-loading-line[_ngcontent-%COMP%]{width:120px;height:14px;border-radius:999px;background:linear-gradient(90deg,#eef2f7 25%,#dfe8f1 50%,#eef2f7 75%);background-size:200% 100%;animation:dashboard-loading 1.2s infinite linear;margin-top:8px}@keyframes dashboard-loading{0%{background-position:200% 0}to{background-position:-200% 0}}.dashboard-placeholder[_ngcontent-%COMP%]{width:100%;padding:24px;text-align:center}.dashboard-placeholder__title[_ngcontent-%COMP%]{font:normal normal 14px var(--font-montserratSemiBold);margin-bottom:8px}.dashboard-placeholder__text[_ngcontent-%COMP%]{font:normal normal 12px/14px WorkSansRegular;color:#656565}.reports-rows-selector[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:10px;gap:10px}.reports-rows-selector__label[_ngcontent-%COMP%]{font:normal normal 12px MontserratRegular;color:#484848}.reports-rows-selector__dropdown[_ngcontent-%COMP%]{width:140px}.container-nav-paginator--jc-between[_ngcontent-%COMP%]{justify-content:space-between}[_nghost-%COMP%] .dashboard-tabview .p-tabview-nav-container{position:fixed!important;width:calc(100% - 241px)!important;left:241px!important;z-index:2!important;padding:0!important;background:#21b5ad!important;overflow-x:hidden!important;overflow-y:hidden!important}[_nghost-%COMP%] .dashboard-tabview .p-tabview-nav-content{overflow-x:hidden!important;overflow-y:hidden!important}[_nghost-%COMP%] .dashboard-tabview .p-tabview-nav{background:#21b5ad;border:none;flex-wrap:wrap}[_nghost-%COMP%] .dashboard-tabview .p-tabview-nav li .p-tabview-nav-link{background:transparent;color:#fff;border:none;font:normal normal 14px var(--font-montserratRegular)}[_nghost-%COMP%] .dashboard-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link{background:transparent;color:#fff;border-bottom:solid 4px #b5cc43;font:normal normal 14px var(--font-montserratBold)}[_nghost-%COMP%] .dashboard-tabview .p-tabview-nav li:not(.p-highlight):not(.p-disabled):hover .p-tabview-nav-link{background:transparent;color:#fff;font:normal normal 14px var(--font-montserratRegular)}[_nghost-%COMP%] .dashboard-tabview .p-tabview-panels{background:transparent;padding:1px 20px 20px}[_nghost-%COMP%] .p-datatable-scrollable .p-datatable-wrapper{max-height:400px}[_nghost-%COMP%] .p-multiselect, [_nghost-%COMP%] .p-dropdown, [_nghost-%COMP%] .p-calendar, [_nghost-%COMP%] .p-inputtext{width:100%}[_nghost-%COMP%] .p-calendar .p-button{background-color:transparent!important;border-color:transparent!important;color:#21ba45!important;box-shadow:none!important}[_nghost-%COMP%] .p-calendar .p-button:hover{background-color:transparent!important;border-color:transparent!important;
1color:#1a9b39!important}[_nghost-%COMP%] .p-calendar .p-button:focus{box-shadow:none!important;outline:none!important}[_nghost-%COMP%] .p-datepicker .p-datepicker-calendar td>span.p-highlight, [_nghost-%COMP%] .p-datepicker table td>span.p-highlight{background:#21ba45!important;color:#fff!important}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today>span{background:rgba(33,186,69,.15)!important;color:#1a9b39!important;font-weight:700}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover{background:rgba(33,186,69,.12)!important}@media screen and (max-width: 1200px){.charts-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media screen and (max-width: 992px){.metrics-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.chart-card[_ngcontent-%COMP%]{min-height:320px}.chart-card__body[_ngcontent-%COMP%]{height:240px}.container-nav-paginator--jc-between[_ngcontent-%COMP%]{flex-direction:column;grid-gap:12px;gap:12px;align-items:flex-start}.reports-rows-selector[_ngcontent-%COMP%]{width:100%}.reports-rows-selector__dropdown[_ngcontent-%COMP%]{width:160px}}"]}),a})()}];let Qe=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[_.Bz.forChild(Be)],_.Bz]}),a})(),ke=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[h.ez,c.UX,Qe,T.hJ,b._8,Z.kW,f.j,C.q4,D.U,A.U$,m.LU]]}),a})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.