1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[917],{8917:(M,l,s)=>{s.r(l),s.d(l,{BuscarComponent:()=>k});var r=s(177),e=s(4438),_=s(5312),u=s(4341),m=s(408),p=s(5933);function g(a,d){if(1&a&&e.nrm(0,"img",21),2&a){const t=e.XpG().$implicit,n=e.XpG(2);e.Y8G("src",n.url_backend+t.pub_imagen_principal,e.B4B)}}function h(a,d){if(1&a&&e.nrm(0,"img",21),2&a){const t=e.XpG(3);e.Y8G("src",t.no_imagen,e.B4B)}}function f(a,d){if(1&a&&(e.j41(0,"span",22),e.EFF(1),e.k0s()),2&a){const t=e.XpG().$implicit;e.R7$(),e.SpI(" | ",t.fecha_fe," ")}}function b(a,d){if(1&a){const t=e.RV6();e.j41(0,"div",13),e.bIt("click",function(){const i=e.eBV(t).$implicit,o=e.XpG(2);return e.Njj(o.onIrAPagina(i.pubtipo_id,i.pub_id))}),e.j41(1,"div",14),e.DNE(2,g,1,1,"img",15)(3,h,1,1,"img",15),e.k0s(),e.j41(4,"div",16)(5,"p")(6,"span",17),e.EFF(7),e.k0s(),e.DNE(8,f,2,1,"span",18),e.k0s(),e.j41(9,"a",19),e.EFF(10),e.k0s(),e.j41(11,"p",20),e.EFF(12),e.k0s()()()}if(2&a){const t=d.$implicit;e.R7$(2),e.Y8G("ngIf","mp4"!==t.pub_imagen_principal.split(".").pop().toLowerCase()&&""!==t.pub_imagen_principal),e.R7$(),e.Y8G("ngIf","mp4"===t.pub_imagen_principal.split(".").pop().toLowerCase()||""===t.pub_imagen_principal),e.R7$(4),e.JRh(t.pubtipo_i_de),e.R7$(),e.Y8G("ngIf","2000-01-01"!==t.fecha_fe),e.R7$(2),e.JRh(t.pub_titulo_de),e.R7$(2),e.JRh(t.pub_introduccion_de)}}function C(a,d){if(1&a&&(e.j41(0,"div",11),e.DNE(1,b,13,6,"div",12),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.resultado)}}function v(a,d){1&a&&e.nrm(0,"div",23)}let O=(()=>{class a{constructor(t,n,i){this.platformId=t,this.router=n,this.postgreService=i,this.tiposPub="{}",this.idioma="es",this.cantidadMaximaResultados=300,this.cantidadObtenida=0,this.resultadosObtenidos=!1,this.resultado=[],this.ordenamiento=[3,4,5,2,1],this.mensaje="",this.mensajeResultado="",this.cadenaBuscada="",this.url_backend=_.c.API_URL,this.no_imagen="../../../../assets/images/no-image2.png"}ngOnInit(){if((0,r.UE)(this.platformId)){const t=localStorage.getItem("cadbus");null!==t&&(this.cadenaBuscada=t,this.mensaje="\xdaltima b\xfasqueda:",this.realizarBusqueda())}}onIrAPagina(t,n){switch(t){case 1:this.router.navigate(["noticia",n]);break;case 2:this.router.navigate(["evento",n]);break;case 3:this.router.navigate(["carrera",n]);break;case 4:this.router.navigate(["postgrado",n]);break;case 5:this.router.navigate(["programa",n]);break;case 6:this.router.navigate(["libre",n]);break;case 7:this.router.navigate(["curso",n])}}limpiarBusqueda(){this.cadenaBuscada="",(0,r.UE)(this.platformId)&&localStorage.removeItem("cadbus"),this.mensaje="",this.mensajeResultado="",this.realizarBusqueda()}keyBusqueda(t){13===t.keyCode&&this.realizarBusqueda()}realizarBusqueda(){if(""===this.cadenaBuscada)return this.resultado=[],void(this.resultadosObtenidos=!1);(0,r.UE)(this.platformId)&&localStorage.setItem("cadbus",this.cadenaBuscada),this.mensajeResultado="0 resultados encontrados",this.postgreService.getResultadoBusqueda(this.idioma,this.tiposPub,this.cantidadMaximaResultados,this.cadenaBuscada).subscribe(t=>{this.resultado=t[0].resultado.dato_js,null!==this.resultado?(this.ordenarPublicaciones(),this.cantidadObtenida=this.resultado.length):this.cantidadObtenida=0,this.resultadosObtenidos=!0,this.mensajeResultado=this.cantidadObtenida===this.cantidadMaximaResultados?`Por favor, refinar la b\xfasqueda. Se super\xf3 la cantidad de resultados permitidos (${this.cantidadMaximaResultados})`:`${this.cantidadObtenida} resultados encontrados`})}ordenarPublicaciones(){this.resultado.sort((t,n)=>{let i=this.ordenamiento.indexOf(t.pubtipo_id),o=this.ordenamiento.indexOf(n.pubtipo_id);return-1!==i&&-1!==o?i-o:-1===i?1:-1===o?-1:0}),this.resultado.forEach(t=>{"libre"===t.pubtipo_i_de.trim().toLowerCase()&&(t.pubtipo_i_de="Varios");let n=t.pub_introduccion_de.split(" ");n.length>10?(n=n.slice(0,10),t.pub_introduccion_de=n.join(" ")+"..."):t.pub_introduccion_de=n.join(" ")})}static{this.\u0275fac=function(n){return new(n||a)(e.rXU(e.Agw),e.rXU(m.Ix),e.rXU(p.C))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["app-buscador"]],inputs:{tiposPub:"tiposPub"},decls:14,vars:5,consts:[[1,"container"],[1,"buscador__contenedor","animate__animated","animate__fadeIn"],[1,"buscador__mensaje"],[1,"buscador__componente"],["placeholder","Buscar...",1,"buscador__input",3,"ngModelChange","keyup.enter","ngModel"],[1,"buscador__icon",3,"click"],[1,"ri-search-line"],[1,"ri-close-line"],[1,"buscador__mensaje-resultado"],["class","resultado__lista animate__animated animate__fadeIn",4,"ngIf"],["class","resultado__sinresultado",4,"ngIf"],[1,"resultado__lista","animate__animated","animate__fadeIn"],["class","resultado__item",3,"click",4,"ngFor","ngForOf"],[1,"resultado__item",3,"click"],[1,"resultado__imagen"],["alt","Imagen",3,"src",4,"ngIf"],[1,"resultado__contenido"],[1,"resultado__tipo"],["class","resultado__fecha",4,"ngIf"],[1,"resultado__titulo"],[1,"resultado__introduccion"],["alt","Imagen",3,"src"],[1,"resultado__fecha"],[1,"resultado__sinresultado"]],template:function(n,i){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"p",2),e.EFF(3),e.k0s(),e.j41(4,"div",3)(5,"input",4),e.mxI("ngModelChange",function(c){return e.DH7(i.cadenaBuscada,c)||(i.cadenaBuscada=c),c}),e.bIt("keyup.enter",function(c){return i.keyBusqueda(c)}),e.k0s(),e.j41(6,"span",5),e.bIt("click",function(){return i.realizarBusqueda()}),e.nrm(7,"i",6),e.k0s(),e.j41(8,"span",5),e.bIt("click",function(){return i.limpiarBusqueda()}),e.nrm(9,"i",7),e.k0s()(),e.j41(10,"p",8),e.EFF(11),e.k0s()(),e.DNE(12,C,2,1,"div",9)(13,v,1,0,"div",10),e.k0s()),2&n&&(e.R7$(3),e.SpI(" ",i.mensaje," "),e.R7$(2),e.R50("ngModel",i.cadenaBuscada),e.R7$(6),e.SpI(" ",i.mensajeResultado," "),e.R7$(),e.Y8G("ngIf",i.resultadosObtenidos),e.R7$(),e.Y8G("ngIf",!i.resultadosObtenidos))},dependencies:[r.MD,r.Sq,r.bT,u.YN,u.me,u.BC,u.vS],styles:['@charset "UTF-8";.buscador__contenedor[_ngcontent-%COMP%]{padding:5rem 0 1rem;width:100%;display:flex;justify-content:center;flex-direction:column}.buscador__mensaje[_ngcontent-%COMP%]{color:#00385d;font-size:1.2rem}@media (min-width: 768px){.buscador__mensaje[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr;font-size:1.6rem}}.buscador__mensaje-resultado[_ngcontent-%COMP%]{color:#00385d;font-size:1.6rem;text-align:center;padding-top:2rem}@media (min-width: 768px){.buscador__mensaje-resultado[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr;font-size:2.2rem}}.buscador__componente[_ngcontent-%COMP%]{width:100%;background-color:#7c97c5;padding:1rem;display:flex;align-items:center}.buscador__input[_ngcontent-%COMP%]{flex:1;padding:1rem;font-size:1.6rem;border:none;background-color:#fff;color:#424242;outline:none}.buscador__icon[_ngcontent-%COMP%]{font-size:22px;
1cursor:pointer;margin-left:1rem;color:#fff}.resultado__sinresultado[_ngcontent-%COMP%]{height:500px}.resultado__contenedor[_ngcontent-%COMP%]{width:100%;margin:0 auto}.resultado__lista[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:3rem}@media (min-width: 768px){.resultado__lista[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media (min-width: 1024px){.resultado__lista[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr}}.resultado__item[_ngcontent-%COMP%]{display:flex;background-color:#e9e9e9;cursor:pointer;flex-direction:column}@media (min-width: 768px){.resultado__item[_ngcontent-%COMP%]{flex-direction:row}}.resultado__imagen[_ngcontent-%COMP%]{flex:1;max-width:100%;height:17rem;padding:1rem}.resultado__imagen[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:20rem;object-fit:cover;object-position:top}@media (min-width: 768px){.resultado__imagen[_ngcontent-%COMP%]{max-width:20rem;order:-1}.resultado__imagen[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%}}.resultado__video[_ngcontent-%COMP%]{width:100%;aspect-ratio:9/6 auto}.resultado__fecha[_ngcontent-%COMP%]{font-size:1.4rem;padding-bottom:.5rem}.resultado__tipo[_ngcontent-%COMP%]{font-size:1.4rem;color:#fa4747;padding-bottom:.5rem}.resultado__titulo[_ngcontent-%COMP%]{text-decoration:none;font-size:1.6rem;font-weight:800;color:#00385d;line-height:1.4}.resultado__introduccion[_ngcontent-%COMP%]{padding-top:1rem;font-size:1.4rem;line-height:1.9rem}.resultado__contenido[_ngcontent-%COMP%]{padding:1rem}@media (min-width: 768px){.resultado__contenido[_ngcontent-%COMP%]{flex:1;max-width:20rem;order:-1}}']})}}return a})();var B=s(4897);let k=(()=>{class a{constructor(t){this.seoService=t,this.seoService.setMetaTitle("B\xfasquedas - UNSO - Universidad Nacional Ra\xfal Scalabrini Ortiz"),this.seoService.setMetaDescription("B\xfasquedas de la Universidad Nacional Ra\xfal Scalabrini Ortiz. Encuentra las carreras, posgrados y cursos ofrecidos.")}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||a)(e.rXU(B.B))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["app-buscar"]],decls:1,vars:0,template:function(n,i){1&n&&e.nrm(0,"app-buscador")},dependencies:[r.MD,O],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;position:relative}[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:url(UNSO-BK-WEB.d7eb95e302901d77.png);background-repeat:repeat-y;background-position-y:top;background-position-x:left;background-size:300%;opacity:.1;z-index:-1;background-attachment:scroll}@media (min-width: 768px){[_nghost-%COMP%]:before{background-size:200%}}@media (min-width: 1024px){[_nghost-%COMP%]:before{background-size:120%}}']})}}return 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.