1"use strict";(self.webpackChunkportal_ciudad=self.webpackChunkportal_ciudad||[]).push([[284],{4284(O,u,a){a.d(u,{NotificacionesModule:()=>J});var d=a(2200),_=a(8132),s=a(2615),b=a(2395),h=a(2588),m=a(3077),N=a(4222),p=a(5682),C=a(5420),k=a(8614),i=a(3664),I=a(1335);let S=(()=>{class t{constructor(){this._notificaciones=(0,s.WQX)(p.u),this._store=(0,s.WQX)(h.n),this._mes_helper=(0,s.WQX)(I.T),this.lclStorageService=(0,s.WQX)(m.s),this.base64String="",this.fecha_arr=[],this.fecha_arr_hora=[],this.fecha_str="",this.hora=""}ngOnInit(){this.setFecha(),this.user=this.lclStorageService.getValue("currentUser")}getNotificacionPdf(n){this._store.setDownloading("descarga"),this._store.setLoading(!0),this._notificaciones.postNotificacion(n.toString(),this.user.id).subscribe({next:e=>{this.base64String=e.content.documento;const o=atob(this.base64String),r=new Array(o.length);for(let f=0;f<o.length;f++)r[f]=o.charCodeAt(f);const U=new Uint8Array(r),W=new Blob([U],{type:"application/pdf"}),v=URL.createObjectURL(W),l=document.createElement("a");l.href=v,l.target="_blank",l.download="documento.pdf",l.click(),URL.revokeObjectURL(v)},error:e=>{},complete:()=>{this._store.setLoading(!1),this._store.setDownloading("")}})}goToLink(){window.location.href=this.link}setFecha(){let n="",e="";this.fecha_arr=this.item.fecha.split("-"),this.fecha_arr_hora=this.item.fecha.split(" "),n=this._mes_helper.mes_notificacion.find(o=>o.numero===this.fecha_arr[1]).mes,e=this.fecha_arr[0],this.fecha_str=e+" "+n,this.hora=this.fecha_arr_hora[1]}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=i.VBU({type:t,selectors:[["app-notificaciones-card"]],inputs:{item:"item",link:"link"},standalone:!1,decls:22,vars:3,consts:[[1,"card","mb-3"],[1,"card-body"],[1,"notification"],[1,"row","align-items-center","justify-content-between"],[1,"col"],[1,"me-5","me-md-3"],[1,"headline-md","mb-2",3,"click","innerHTML"],["type","button",1,"btn","btn-outline-primary","btn-sm","d-none","d-md-flex",3,"click"],[1,"material-symbols-rounded"],[1,"col-md-auto"],[1,"me-5"],[1,"mb-2"],[1,"headline-sm","d-md-block","me-2","me-md-0"],[1,"d-inline"],[1,"btn","btn-outline-primary","btn-sm","d-flex","d-md-none",3,"click"]],template:function(e,o){1&e&&(i.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"p",6),i.bIt("click",function(){return o.goToLink()}),i.k0s(),i.j41(7,"button",7),i.bIt("click",function(){return o.getNotificacionPdf(o.item.idNotificacion)}),i.j41(8,"span",8),i.EFF(9,"download"),i.k0s(),i.EFF(10," Descargar "),i.k0s()()(),i.j41(11,"div",9)(12,"div",10)(13,"div",11)(14,"span",12),i.EFF(15),i.k0s(),i.j41(16,"span",13),i.EFF(17),i.k0s()(),i.j41(18,"button",14),i.bIt("click",function(){return o.getNotificacionPdf(o.item.idNotificacion)}),i.j41(19,"span",8),i.EFF(20," download "),i.k0s(),i.EFF(21," Descargar "),i.k0s()()()()()()()),2&e&&(i.R7$(6),i.Y8G("innerHTML",o.item.motivo,i.npT),i.R7$(9),i.JRh(o.fecha_str),i.R7$(2),i.JRh(o.hora))},encapsulation:2})}}return t})();var R=a(4420),T=a(7269),g=a(6653),j=a(886);function F(t,c){1&t&&(i.j41(0,"div",8),i.nrm(1,"span",9),i.nI1(2,"transloco"),i.k0s()),2&t&&(i.R7$(),i.Y8G("innerHTML",i.bMT(2,1,"notificaciones.legalidad"),i.npT))}function x(t,c){if(1&t&&(i.j41(0,"div",5),i.nrm(1,"app-bax-banner",10),i.k0s()),2&t){i.XpG();const n=i.r8f(0);i.R7$(),i.Y8G("isActive",n)}}function y(t,c){if(1&t&&(i.j41(0,"a",14),i.EFF(1),i.nI1(2,"transloco"),i.k0s()),2&t){const n=i.XpG(2);i.Y8G("href",i.mNQ(n.link),i.B4B),i.R7$(),i.JRh(i.bMT(2,3,"notificaciones.ver_todo"))}}function G(t,c){if(1&t&&(i.j41(0,"a",14),i.EFF(1),i.nI1(2,"transloco"),i.k0s()),2&t){const n=i.XpG(2);i.Y8G("href",i.mNQ(n.link),i.B4B),i.R7$(),i.JRh(i.bMT(2,3,"notificaciones.ir_bandeja"))}}function P(t,c){if(1&t&&(i.j41(0,"div",11)(1,"h3",12),i.EFF(2),i.nI1(3,"transloco"),i.k0s(),i.j41(4,"div"),i.DNE(5,y,3,5,"a",13)(6,G,3,5,"a",13),i.k0s()()),2&t){const n=i.XpG();i.R7$(2),i.JRh(i.bMT(3,3,"notificaciones.fehacientes")),i.R7$(3),i.Y8G("ngIf",n.notifications&&n.notifications.length>0),i.R7$(),i.Y8G("ngIf",0===n.notifications.length)}}function B(t,c){1&t&&(i.j41(0,"div"),i.nrm(1,"app-skeleton-button",15),i.k0s()),2&t&&(i.R7$(),i.Y8G("amount","3"))}function $(t,c){if(1&t&&i.nrm(0,"app-notificaciones-card",18),2&t){const n=c.$implicit,e=i.XpG(3);i.Y8G("item",n)("link",e.link)}}function E(t,c){if(1&t&&(i.j41(0,"div"),i.DNE(1,$,1,2,"app-notificaciones-card",17),i.k0s()),2&t){const n=i.XpG(2);i.R7$(),i.Y8G("ngForOf",n.notifications)}}function Y(t,c){if(1&t){const n=i.RV6();
1i.j41(0,"app-pagination",19),i.bIt("paginaSeleccionada",function(o){s.eBV(n);const r=i.XpG(2);return s.Njj(r.pageChanged(o))}),i.k0s()}if(2&t){const n=i.XpG(2);i.Y8G("listaNoticias",n.notifications)("datosPaginado",n.InformacionPagina)}}function X(t,c){1&t&&(i.j41(0,"div")(1,"div",20)(2,"span",21),i.EFF(3,"notifications_off"),i.k0s(),i.j41(4,"div",22)(5,"h3",23),i.EFF(6),i.nI1(7,"transloco"),i.k0s(),i.j41(8,"p",24),i.EFF(9),i.nI1(10,"transloco"),i.k0s()()()()),2&t&&(i.R7$(6),i.JRh(i.bMT(7,2,"notificaciones.no_mensajes")),i.R7$(3),i.JRh(i.bMT(10,4,"notificaciones.no_mensaje_descripcion")))}function M(t,c){if(1&t&&(i.j41(0,"div"),i.DNE(1,E,2,1,"div",7)(2,Y,1,2,"app-pagination",16)(3,X,11,6,"div",7),i.k0s()),2&t){const n=i.XpG();i.R7$(),i.Y8G("ngIf",n.notifications.length>0),i.R7$(),i.Y8G("ngIf",n.notifications.length>0&&n.datos),i.R7$(),i.Y8G("ngIf",0===n.notifications.length)}}let L=(()=>{class t{constructor(){this._bannerBaxService=(0,s.WQX)(k.P),this.lclStorageService=(0,s.WQX)(m.s),this._store=(0,s.WQX)(h.n),this.router=(0,s.WQX)(b.Ix),this._notificaciones=(0,s.WQX)(p.u),this.configService=(0,s.WQX)(C.s),this.more=!1,this.notifications=[],this.InformacionPagina=new N.Y("","","",""),this.contenidoCargado=!1,this.link="",this.text_button="",this.datos=!1,this.ver_paginado=!1,this.cantidad_sin_leer="",this.isBaxBannerPerfilActive=(0,s.vPA)(!1),this.configJson=this.configService.getConfig(),window.scrollTo({top:0,behavior:"smooth"})}showMore(){this.more=!this.more}ngOnInit(){this.datos_notificaciones=this.lclStorageService.getValue("notificaciones"),this.link=this.configJson.notificaciones.url,this.getNotificaciones("1"),this._store.setCount(Number.parseInt(this.lclStorageService.getValue("cantidad-notificaciones"))),this.GetPaths(),this.obtenerBannerBax()}verTodo(){this.ver_paginado=!0,this.getNotificaciones("1")}volver(){this.ver_paginado=!1,this.getNotificaciones("1")}getNotificaciones(n){let e=this.lclStorageService.getValue("currentUser");this.contenidoCargado=!1,this._notificaciones.postNotificaciones(e.CUIL,n).subscribe({next:o=>{0!==o.content.length&&(this.lclStorageService.setValue("notificaciones",o.content.notificaciones),this.lclStorageService.setValue("link-notificaciones",o.content.link),this.lclStorageService.setValue("cantidad-notificaciones",o.content.cantidadNotificacionesSinLeer),this._store.setCount(Number.parseInt(this.lclStorageService.getValue("cantidad-notificaciones"))),this.cantidad_sin_leer=o.content.cantidadNotificacionesSinLeer,this.notifications=o.content.notificaciones.data,this.InformacionPagina.current_page=o.content.notificaciones.currentPage,this.InformacionPagina.items_per_page=o.content.notificaciones.itemsPerPage,this.InformacionPagina.total_items=o.content.notificaciones.totalItems,this.InformacionPagina.total_pages=o.content.notificaciones.totalPages,this.datos=!0,this.contenidoCargado=!0),this.datos||(this.InformacionPagina.current_page="0")},error:o=>{},complete:()=>{this.contenidoCargado=!0}})}GetPaths(){this.router.url.split("/").forEach(n=>{n&&this._store.setRoute(n)})}pageChanged(n){this.datos=!1,this.notifications=[];let e=n.toString();window.scrollTo({top:0,behavior:"smooth"}),this.getNotificaciones(e)}obtenerBannerBax(){this._bannerBaxService.getBannerStatus().subscribe({next:n=>{this.isBaxBannerPerfilActive.set(n?.content?.bax_banner_perfil)},error:()=>{this.isBaxBannerPerfilActive.set(!1)}})}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=i.VBU({type:t,selectors:[["app-notificaciones"]],standalone:!1,decls:12,vars:9,consts:[["id","notificaciones"],[1,"container","py-4","py-md-5"],[1,"mb-4","mb-md-5"],[1,"my-4","my-md-5"],["class","alert alert-warning mb-5","role","alert",4,"ngIf"],[1,"py-4"],["class","d-flex align-items-center justify-content-between mb-4",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-warning","mb-5"],[3,"innerHTML"],[3,"isActive"],[1,"d-flex","align-items-center","justify-content-between","mb-4"],[1,"mb-0"],["class","btn btn-outline-secondary btn-sm","rel","noopener noreferrer",3,"href",4,"ngIf"],["rel","noopener noreferrer",1,"btn","btn-outline-secondary","btn-sm",3,"href"],["cols","col-12",3,"amount"],[3,"listaNoticias","datosPaginado","paginaSeleccionad
1a",4,"ngIf"],[3,"item","link",4,"ngFor","ngForOf"],[3,"item","link"],[3,"paginaSeleccionada","listaNoticias","datosPaginado"],[1,"card","card-horizontal"],[1,"card-icon","material-lg","material-symbols-rounded","filled"],[1,"card-body"],[1,"card-title"],[1,"card-text"]],template:function(e,o){if(1&e&&(i.SS7(0),i.j41(1,"section",0)(2,"div",1)(3,"h1",2),i.EFF(4),i.nI1(5,"transloco"),i.k0s(),i.nrm(6,"hr",3),i.DNE(7,F,3,3,"div",4),i.nVh(8,x,2,1,"div",5),i.DNE(9,P,7,5,"div",6)(10,B,2,1,"div",7)(11,M,4,3,"div",7),i.k0s()()),2&e){const r=i.bH3(o.isBaxBannerPerfilActive());i.R7$(4),i.JRh(i.bMT(5,7,"notificaciones.titulo")),i.R7$(3),i.Y8G("ngIf",o.notifications.length>0),i.R7$(),i.vxM(r?8:-1),i.R7$(),i.Y8G("ngIf",o.contenidoCargado),i.R7$(),i.Y8G("ngIf",!o.contenidoCargado),i.R7$(),i.Y8G("ngIf",o.contenidoCargado)}},dependencies:[d.Sq,d.bT,S,R.e,T.R,g.K,j.Kj],encapsulation:2})}}return t})();var A=a(5924),V=a(2464),Q=a(4298),D=a(4500);const w=[{path:"",component:L}];let J=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=i.$C({type:t})}static{this.\u0275inj=s.G2t({imports:[d.MD,_.iI.forChild(w),A.N,V.Y,Q.x,D.k,g.K]})}}return t})()}}]);
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.