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AAb,MAAM,sDAAOA,4DAHF,CAACC,cAAsBjF,IACtBiF,QAECD,GAAb,GCSaE,EAAb,MAAM,sDAAOA,4DAXF,CACPC,KACAC,KACAC,KACAL,EACAM,IACAC,KACAC,SAISN,GAAb","names":["i0","ctx_r14","ctx_r21","SwiperCore","Autoplay","Keyboard","Pagination","Navigation","Scrollbar","Zoom","EffectFade","EffectCube","EffectCoverflow","EffectFlip","EffectCards","EffectCreative","Lazy","routes","path","component","constructor","headerService","activatedRoute","noticiaService","arquivoService","functionsService","sanitizer","seoService","this","NoticiaDTO","ngOnInit","ionViewWillEnter","params","subscribe","urlParams","find","id","resp","noticia","updateSEO","titleTag","titulo","nome","metaDescription","resumo","tags","length","i","galeriaVideos","getSafeURL","sortArrayByOrder","galeriaDownloads","galeriaFotos","error","errorURLParam","console","log","arr","sort","a","b","ordemExibicao","scrolling","scrollAdjust","content","getFilePublicURL","relativePath","fileName","getLegendaPDF","indexPDF","legenda","open","arquivo","replace","API_CONFIG","goToPath","url","bypassSecurityTrustResourceUrl","getSlidesPerView","screen","width","openPopup","slideIndex","document","getElementById","style","display","swiperPopup","swiperRef","activeIndex","closePopup","goToSlide","slideNext","DetalharNoticiaPage","selectors","IonContent","ctx","DetalharNoticiaPageRoutingModule","RouterModule","DetalharNoticiaPageModule","CommonModule","FormsModule","IonicModule","ComponentsModule","SwiperModule","QuillModule"],"sources":["./src/app/pages/detalhar-noticia/detalhar-noticia.page.html","./src/app/pages/detalhar-noticia/detalhar-noticia.page.ts","./src/app/pages/detalhar-noticia/detalhar-noticia-routing.module.ts","./src/app/pages/detalhar-noticia/detalhar-noticia.module.ts"],"sourcesContent":["\n\n\n\n\n
\n NOTÍCIAS\n \n\n \n \n\n\n
\n < Outras Notícias\n \n\n \n
\n\n
\n
![]()
\n
\n \n
\n\n
\n\n\n \n
\n \n \n\n {{getLegendaPDF(i)}}\n\n \n\n \n\n \n\n \n\n \n \n \n \n \n\n\n \n
1\" \n [scrollbar]=\"true\" \n [zoom]=\"true\" \n [navigation]=\"noticia.galeriaFotos?.length>1\"\n [speed]=\"1000\"\n [longSwipesRatio]=\"0.5\"\n [longSwipes]=\"true\"\n [longSwipesMs]=\"1000\"\n [allowTouchMove]=\"true\"\n [followFinger]=\"false\"\n [loop]=\"false\"\n effect=\"slide\"\n [slidesPerView]=\"getSlidesPerView()\"\n class=\"carrossel-pics\">\n\n \n \n \n
\n \n {{foto.legenda}}\n
\n \n \n \n \n \n \n\n \n
1\" \n [scrollbar]=\"true\" \n [zoom]=\"true\" \n [navigation]=\"noticia.galeriaVideos?.length>1\"\n [speed]=\"1000\"\n [longSwipesRatio]=\"0.5\"\n [longSwipes]=\"true\"\n [longSwipesMs]=\"1000\"\n [allowTouchMove]=\"true\"\n [followFinger]=\"false\"\n [loop]=\"false\"\n effect=\"slide\"\n [slidesPerView]=\"1\"\n class=\"carrossel-videos\">\n\n \n \n \n \n \n \n \n \n\n\n \n\n
\n < Outras Notícias\n
\n
\n\n\n\n\n\n","import { SwiperComponent, SwiperModule } from 'swiper/angular';\nimport { SafeResourceUrl, DomSanitizer } from '@angular/platform-browser';\nimport { API_CONFIG } from './../../config/api.config';\nimport { FunctionsService } from './../../services/common/functions.service';\nimport { ArquivoDTO } from './../../models/arquivoDTO';\nimport { ArquivoService } from './../../services/arquivo/arquivo.service';\nimport { NoticiaDTO } from '../../models/site/noticiaDTO';\nimport { NoticiaService } from './../../services/noticia/noticia.service';\nimport { HeaderService } from './../../services/header/header.service';\nimport { IonContent } from '@ionic/angular';\nimport { Component, OnInit, ViewChild } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport SwiperCore, { Autoplay, Keyboard, Pagination, Navigation, Scrollbar, Zoom, EffectFade, EffectCube, EffectCoverflow, EffectFlip, EffectCards, EffectCreative, Lazy } from 'swiper';\nimport { SeoService } from 'src/app/services/seo/seo.service';\n\nSwiperCore.use([Autoplay, Keyboard, Pagination, Navigation, Scrollbar, Zoom, EffectFade, EffectCube, EffectCoverflow, EffectFlip, EffectCards, EffectCreative, Lazy]);\n\n\n@Component({\n selector: 'app-detalhar-noticia',\n templateUrl: './detalhar-noticia.page.html',\n styleUrls: ['./detalhar-noticia.page.scss'],\n})\nexport class DetalharNoticiaPage implements OnInit {\n\n @ViewChild(IonContent) content: IonContent;\n @ViewChild('swiperPopup', { static: false }) swiperPopup?: SwiperComponent;\n\n noticia: NoticiaDTO = new NoticiaDTO();\n\n constructor( private headerService: HeaderService\n , private activatedRoute: ActivatedRoute\n , private noticiaService: NoticiaService\n , private arquivoService: ArquivoService\n , private functionsService: FunctionsService\n , private sanitizer: DomSanitizer\n , private seoService: SeoService ) { }\n\n ngOnInit() {\n }\n\n ionViewWillEnter(){\n \n this.activatedRoute.params.subscribe(\n urlParams => {\n const id = urlParams['id'];\n \n this.noticiaService.find(id).subscribe(\n resp=>{\n\n this.noticia = resp;\n\n const seoNoticia = {\n titleTag: this.noticia.titleTag ? this.noticia.titleTag : this.noticia.titulo, \n nome: this.noticia.titulo, \n metaDescription: this.noticia.metaDescription ? this.noticia.metaDescription : this.noticia.resumo, \n tags: (this.noticia.tags && this.noticia.tags.length>0) ? this.noticia.tags : [this.noticia.titulo]\n };\n \n this.seoService.updateSEO(seoNoticia);\n \n for(var i=0; i{\n\n }\n );\n \n },\n errorURLParam=>{\n console.log(errorURLParam);\n });\n\n \n\n }\n\n\n sortArrayByOrder(arr){\n \n \n arr.sort(function (a, b) {\n if (a.ordemExibicao > b.ordemExibicao) {\n return 1;\n }\n if (a.ordemExibicao < b.ordemExibicao) {\n return -1;\n }\n // a must be equal to b\n return 0;\n });\n\n }\n\n\n scrolling() {\n\n this.headerService.scrollAdjust(this.content); \n \n }\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\n getLegendaPDF(indexPDF: number): string{\n\n if(this.noticia.galeriaDownloads[indexPDF].legenda){\n return this.noticia.galeriaDownloads[indexPDF].legenda;\n }\n\n return \"Legenda do PDF\";\n }\n\n open(arquivo: ArquivoDTO){\n let path = arquivo.path.replace(API_CONFIG.iisVirtualDirectoryPath, API_CONFIG.iisVirtualDirectoryURL); \n this.functionsService.goToPath(path + '/' + arquivo.nome, true);\n }\n\n\n getSafeURL(url: string): SafeResourceUrl{\n return this.sanitizer.bypassSecurityTrustResourceUrl(url);\n }\n\n\n getSlidesPerView(): number{\n \n if(screen.width>700){\n return 3;\n }else{\n return 1;\n }\n }\n\n openPopup(slideIndex: number){\n\n //o popup contem toda a galeria de slides e o parametro slideIndex indica qual deve ser o slide ativo\n document.getElementById('popup-news-wrapper').style.display = 'block';\n this.swiperPopup.swiperRef.activeIndex = slideIndex;\n }\n\n closePopup(){\n document.getElementById('popup-news-wrapper').style.display = 'none';\n }\n\n goToSlide(){\n this.swiperPopup.swiperRef.slideNext(2);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { DetalharNoticiaPage } from './detalhar-noticia.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: DetalharNoticiaPage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class DetalharNoticiaPageRoutingModule {}\n","import { QuillModule } from 'ngx-quill';\nimport { SwiperModule } from 'swiper/angular';\nimport { ComponentsModule } from './../../components/components.module';\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { IonicModule } from '@ionic/angular';\n\nimport { DetalharNoticiaPageRoutingModule } from './detalhar-noticia-routing.module';\n\nimport { DetalharNoticiaPage } from './detalhar-noticia.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n DetalharNoticiaPageRoutingModule,\n ComponentsModule,\n SwiperModule,\n QuillModule\n ],\n declarations: [DetalharNoticiaPage]\n})\nexport class DetalharNoticiaPageModule {}\n"],"sourceRoot":"webpack:///","file":"8800.f01d134a1df18287.js"}