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AAKsB,SAASQ,OAAOC,IAAS,aAAa,QAAbe,IAAQD,aAAKE,eAAEhC,MAAK8B,EAAM9B,KAMjEiC,YAEEhD,KAAKF,cAAcmD,aAAajD,KAAKkD,SAErC,IAAIC,EAAeC,SAASC,eAAe,gBAE3CrD,KAAKkD,QAAQI,mBAAmBC,KAAKC,IAGjCL,EAAaM,MAAMC,QADjBF,EAAKG,UAAY,GACU,QAEA,SAMnCC,cACE5D,KAAKkD,QAAQI,mBAAmBC,KAAKC,IACnCA,EAAKK,SAAS,EAAE,KAIpBC,OAAO/B,GAEL,MAAMgC,EAAM,YACAhC,EAAQhB,GAAK,IACbgB,EAAQiC,OAAOC,oBAAoBC,QAAQ,KAAM,KAE7DlE,KAAKJ,iBAAiBuE,SAASJ,GAIjCK,sBAEE,OAAGC,OAAOC,MAAM,IACP,EAGA,EAKXC,UAAUxC,GACR,OAAOA,EAAQyC,OAAOC,UAAU,EAAE,mDAzKzBC,GAAkBxG,4FAAlBwG,EAAkBC,yEAElBC,KAAU,qrEDzBvB1G,sBAEAA,yBAAwDA,oCAAa2G,gBAEnE3G,sBACEA,qBAAWA,uBAAQA,QACrBA,QAEAA,4BAOAA,uBA6HAA,uBA2FAA,mBAA2DA,gCAAS2G,kBAClE3G,sBACFA,QAEAA,uBAEFA,eA3OaA,gCAAoB,mBAMpBA,6CAOmBA,mDA6HxBA,wiLCrHKwG,GAAb,KCPO,IAAMI,EAAb,MAAM,sDAAOA,4DAHF,CAACC,cAAsBzF,IACtByF,QAECD,GAAb,GCSaE,EAAb,MAAM,sDAAOA,4DAXF,CACPC,KACAC,KACAC,KACAL,EACAM,KACAC,IACAC,SAISN,GAAb","names":["i0","ctx_r9","oxw","ctx_r18","ctx_r32","ctx_r38","SwiperCore","Autoplay","Keyboard","Pagination","Navigation","Scrollbar","Zoom","EffectFade","EffectCube","EffectCoverflow","EffectFlip","EffectCards","EffectCreative","Lazy","routes","path","component","constructor","noticiaService","grupoNoticiaService","functionsService","arquivoService","headerService","seoService","this","ngOnInit","updateSEO","titleTag","nome","metaDescription","tags","ionViewWillEnter","presentLoading","mensagem","grupos","findAll","subscribe","resp","push","id","hidden","i","length","findByStatus","STATUS_PUBLICACAO","resp2","noticias","sort","a","b","Date","dataPublicacao","getTime","noticiasDestaque","filter","noticia","destacar","dismissLoading","error2","console","log","error","showHideGroup","index","getFilePublicURL","relativePath","fileName","getTextoResumido","getNoticias","grupo","o","_a","scrolling","scrollAdjust","content","scrollButton","document","getElementById","getScrollElement","then","data","style","display","scrollTop","scrollToTop","scrollTo","detail","url","titulo","toLocaleLowerCase","replace","goToPath","getMaxSlidesPerView","screen","width","getResumo","resumo","substring","ListarNoticiasPage","selectors","IonContent","ctx","ListarNoticiasPageRoutingModule","RouterModule","ListarNoticiasPageModule","CommonModule","FormsModule","IonicModule","SwiperModule","ComponentsModule","QuillModule"],"sources":["./src/app/pages/listar-noticias/listar-noticias.page.html","./src/app/pages/listar-noticias/listar-noticias.page.ts","./src/app/pages/listar-noticias/listar-noticias-routing.module.ts","./src/app/pages/listar-noticias/listar-noticias.module.ts"],"sourcesContent":["\n\n\n\n \n NOTÍCIAS\n \n\n \n {{mensagem}}\n \n\n \n\n \n 0\">\n
1\" >\n\n \n \n \n \n \n \n \n\n \n
\n \n \n \n \n \n \n {{noticiaDestaque.titulo}}\n \n \n \n \n \n \n \n \n \n \n \n \n Leia mais +\n \n \n \n \n\n \n \n \n \n \n \n DESTAQUE\n \n \n \n \n \n \n \n\n \n
\n\n \n \n \n \n
\n \n \n \n \n \n {{noticiaDestaque.titulo}}\n \n \n \n \n \n \n \n \n \n \n \n \n Leia mais +\n \n \n \n \n \n DESTAQUE\n \n \n \n \n\n\n \n
\n\n 0\" >\n\n \n
\n \n
\n\n \n \n {{grupo.nome}}\n \n \n \n \n \n \n \n
\n \n
1\"\n effect=\"slide\"\n [slidesPerView]=\"getMaxSlidesPerView()\" >\n\n \n \n \n \n \n
\n \n\n \n \n \n {{noticia.dataCriacao | date: 'MMMM dd, yyyy'}}\n \n \n \n {{noticia.titulo}}\n \n \n\n \n \n \n \n\n \n \n\n Leia mais +\n \n \n \n \n \n \n \n \n \n
\n
\n\n
\n \n \n \n
\n \n \n \n\n","import { STATUS_PUBLICACAO } from './../../config/status-publicacao.config';\nimport { IonCard, IonContent } from '@ionic/angular';\nimport { HeaderService } from './../../services/header/header.service';\nimport { GrupoNoticiaDTO } from '../../models/site/grupoNoticiaDTO';\nimport { GrupoNoticiaService } from './../../services/grupo-noticia/grupo-noticia.service';\nimport { ArquivoService } from './../../services/arquivo/arquivo.service';\nimport { FunctionsService } from './../../services/common/functions.service';\nimport { NoticiaDTO } from '../../models/site/noticiaDTO';\nimport { NoticiaService } from './../../services/noticia/noticia.service';\nimport SwiperCore, { Autoplay, Keyboard, Pagination, Navigation, Scrollbar, Zoom, EffectFade, EffectCube, EffectCoverflow, EffectFlip, EffectCards, EffectCreative, Lazy, Thumbs } from 'swiper';\nimport { Component, OnInit, ViewChild } from '@angular/core';\nimport { Title, Meta } from '@angular/platform-browser';\nimport { SeoService } from 'src/app/services/seo/seo.service';\n\n\nSwiperCore.use([Autoplay, Keyboard, Pagination, Navigation, Scrollbar, Zoom, EffectFade, EffectCube, EffectCoverflow, EffectFlip, EffectCards, EffectCreative, Lazy]);\n\n\n@Component({\n selector: 'app-listar-noticias',\n templateUrl: './listar-noticias.page.html',\n styleUrls: ['./listar-noticias.page.scss'],\n})\nexport class ListarNoticiasPage implements OnInit {\n\n @ViewChild(IonContent) content: IonContent;\n\n grupos: any[] = [];\n noticias: NoticiaDTO[] = [];\n noticiasDestaque: NoticiaDTO[] = [];\n mensagem: string = '';\n\n constructor( private noticiaService: NoticiaService \n , private grupoNoticiaService: GrupoNoticiaService \n , private functionsService: FunctionsService \n , private arquivoService: ArquivoService\n , private headerService: HeaderService\n , private seoService: SeoService ) { \n\n \n }\n\n ngOnInit() {\n\n const seoListarNoticias = {\n titleTag: 'Notícias | Fundação Técnico Educacional Souza Marques', \n nome: 'Notícias | Fundação Técnico Educacional Souza Marques', \n metaDescription: 'Descrição (Meta Description): Fique por dentro das últimas notícias da Fundação Técnico Educacional Souza Marques. Acompanhe atualizações sobre cursos, palestras, eventos acadêmicos e muito mais.', \n tags: ['notícias Souza Marques', 'eventos Souza Marques', 'novidades acadêmicas','novidades', 'notícias']\n };\n\n this.seoService.updateSEO(seoListarNoticias);\n }\n\n ionViewWillEnter(){\n \n this.functionsService.presentLoading();\n\n this.mensagem = 'Carregando notícias...'\n this.grupos = [];\n this.grupoNoticiaService.findAll().subscribe(\n resp=>{\n\n //o primeiro grupo é hidden === false\n let grupoShow = {\n id: resp[0].id,\n nome: resp[0].nome,\n hidden: false\n }\n\n this.grupos.push(grupoShow);\n\n //os demais grupos são hidden === false tb (inicialmente era true)\n for(var i=1; i{\n \n this.noticias = resp2;\n \n //ordena em ordem descrescente de data\n this.noticias.sort(function(a,b){\n return new Date(b.dataPublicacao).getTime() - new Date(a.dataPublicacao).getTime();\n });\n\n\n this.noticiasDestaque = this.noticias.filter(noticia=>noticia.destacar===true);\n \n if(this.noticiasDestaque.length===0 && this.noticias[0]){\n //pega a notícia mais recente\n this.noticiasDestaque.push(this.noticias[0]);\n }\n \n if(this.noticias.length===0){\n this.mensagem = 'Ainda não há notícias publicadas.';\n }\n\n this.functionsService.dismissLoading();\n },\n error2=>{\n console.log(error2);\n this.functionsService.dismissLoading();\n }\n );\n },\n error=>{\n console.log(error);\n this.functionsService.dismissLoading();\n });\n\n \n }\n\n showHideGroup(index: number){\n\n this.grupos[index].hidden = !this.grupos[index].hidden; \n }\n\n getFilePublicURL(relativePath: string, fileName: string): string{\n\n if(!relativePath || !fileName){\n return \"/assets/images/empty_photo.jpg\"\n }\n return this.arquivoService.getFilePublicURL(relativePath, fileName);\n }\n\n getTextoResumido(noticia: NoticiaDTO): string{\n return this.noticiaService.getTextoResumido(noticia);\n }\n\n getNoticias(grupo: GrupoNoticiaDTO): NoticiaDTO[]{\n return this.noticias.filter(noticia=>noticia.grupo?.id===grupo.id);\n\n //return this.noticias;\n }\n\n\n scrolling() {\n\n this.headerService.scrollAdjust(this.content); \n\n let scrollButton = document.getElementById(\"scrollButton\");\n \n this.content.getScrollElement().then(data => {\n \n if (data.scrollTop > 80 ) {\n scrollButton.style.display = \"block\";\n }else{\n scrollButton.style.display = \"none\";\n }\n });\n \n }\n\n scrollToTop(){\n this.content.getScrollElement().then(data => {\n data.scrollTo(0,0);\n });\n }\n\n detail(noticia: NoticiaDTO){\n\n const url = '/noticia/' + \n noticia.id + '/' + \n noticia.titulo.toLocaleLowerCase().replace(/ /g, '_');\n \n this.functionsService.goToPath(url);\n\n }\n\n getMaxSlidesPerView():number{\n \n if(screen.width<600){\n return 1;\n }else{\n\n return 3;\n }\n }\n\n\n getResumo(noticia: NoticiaDTO): string{\n return noticia.resumo.substring(0,140);\n }\n \n \n \n}\n","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { ListarNoticiasPage } from './listar-noticias.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: ListarNoticiasPage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class ListarNoticiasPageRoutingModule {}\n","import { QuillModule } from 'ngx-quill';\nimport { ComponentsModule } from './../../components/components.module';\nimport { SwiperModule } from 'swiper/angular';\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { IonicModule } from '@ionic/angular';\n\nimport { ListarNoticiasPageRoutingModule } from './listar-noticias-routing.module';\n\nimport { ListarNoticiasPage } from './listar-noticias.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n ListarNoticiasPageRoutingModule,\n SwiperModule,\n ComponentsModule,\n QuillModule\n ],\n declarations: [ListarNoticiasPage]\n})\nexport class ListarNoticiasPageModule {}\n"],"sourceRoot":"webpack:///","file":"8557.1a5091ac8bf9edc4.js"}