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A,QAIAA,iBAEEA,oBACEA,qBAEEA,wBAIAA,4BA0HFA,QACFA,QAEFA,QAGAA,kBACEA,mBACAA,uBACFA,QAKFA,eAxOaA,gCAAoB,mBAK4BA,qEAWFA,oEAkC9CA,4CAyBAA,0CAiBCA,0CAUqBA,8tRCtEtB4H,GAAb,KClBO,IAAMI,EAAb,MAAM,sDAAOA,4DAHF,CAACC,cAAsBzG,IACtByG,QAECD,GAAb,GCQaE,EAAb,MAAM,sDAAOA,4DAXF,CACPC,KACAC,KACAC,KACAL,EACAM,KACAC,IACAC,mBAISN,GAAb","names":["i0","ctx_r6","ctx_r8","ctx_r9","ctx_r15","oxw","ctx_r22","ctx_r33","ctx_r36","ctx_r38","SwiperCore","Autoplay","Keyboard","Pagination","Navigation","Scrollbar","Zoom","EffectFade","EffectCube","EffectCoverflow","EffectFlip","EffectCards","EffectCreative","Lazy","routes","path","component","constructor","functionsService","modalCtrl","headerService","noticiaService","grupoService","arquivoService","popupService","seoService","this","srcImage","linkTarget","ngOnInit","updateSEO","titleTag","nome","metaDescription","tags","ionViewWillEnter","findByEntidade","ENTIDADE","subscribe","resp","popups","length","sort","a","b","ordemExibicao","activePopup","splice","error","console","log","findBannersHome","banners","findByStatus","STATUS_PUBLICACAO","noticias","filter","noticia","publicarNaHome","Date","dataPublicacao","getTime","findAll","respG","grupos","indexG","noticiasGrupo","i","grupo","id","push","indexResp","errorG","getNoticiasGrupo","n","_a","c","r","t","getNoticiasGrupoPaginated","totalItems","start","currentPage","end","slice","prevPage","page","totalPages","Math","ceil","nextPage","scrolling","scrollAdjust","content","goToPath","newWindow","closePopup","tipo","imagem","document","getElementById","style","display","getFilePublicURL","relativePath","fileName","setTextHTML","text","innerHTML","detailNews","url","titulo","replace","toLocaleLowerCase","HomePage","selectors","IonContent","ctx","HomePageRoutingModule","RouterModule","HomePageModule","CommonModule","FormsModule","IonicModule","SwiperModule","ComponentsModule","QuillModule"],"sources":["./src/app/pages/home/home.page.html","./src/app/pages/home/home.page.ts","./src/app/pages/home/home-routing.module.ts","./src/app/pages/home/home.module.ts"],"sourcesContent":["\n\n\n\n\n \n \n \n \n \n \n \n\n \n \n \n
\n\n\n \n \n
![]()
\n
\n \n \n \n
1\">\n\n \n \n
![]()
\n
\n \n \n
\n \n \n \n \n\n
\n \n \n \n \n
\n\n \n\n \n \n 1\">\n \n \n \n \n \n \n
\n \n\n \n \n \n {{noticia.titulo}}\n \n \n \n \n \n \n\n Saiba mais +\n \n \n \n \n\n \n \n \n \n \n\n \n\n \n\n \n \n \n \n \n \n \n \n
\n \n\n \n \n \n {{noticia.titulo}}\n \n \n\n \n \n \n \n\n \n \n\n Saiba mais +\n \n \n \n \n\n \n \n\n \n\n \n \n\n
\n\n\n \n \n \n\n\n\n\n","import { ENTIDADE } from './../../config/entidade.config';\nimport { PopupDTO } from '../../models/site/popupDTO';\nimport { PopupService } from './../../services/popup/popup.service';\nimport { ArquivoDTO } from './../../models/arquivoDTO';\nimport { STATUS_PUBLICACAO } from './../../config/status-publicacao.config';\nimport { GrupoNoticiaService } from './../../services/grupo-noticia/grupo-noticia.service';\nimport { GrupoNoticiaDTO } from '../../models/site/grupoNoticiaDTO';\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 { FunctionsService } from './../../services/common/functions.service';\nimport { Component, OnInit, ViewChild } from '@angular/core';\nimport { IonContent, ModalController } from '@ionic/angular';\nimport SwiperCore, { Autoplay, Keyboard, Pagination, Scrollbar, Zoom, EffectFade, EffectCube, EffectCoverflow, EffectFlip, Navigation, EffectCards, EffectCreative, Lazy } from 'swiper';\nimport { SeoService } from 'src/app/services/seo/seo.service';\n\n\n/**\n * para ativar as propriedades de customização do swiper\n * \n * We can install the IonicSlides module by importing it from @ionic/angular and passing it in as the \n * last item in the array provided in SwiperCore.use:\n * \n * https://ionicframework.com/docs/angular/slides\n*/\nSwiperCore.use([Autoplay, Keyboard, Pagination, Navigation, Scrollbar, Zoom, EffectFade, EffectCube, EffectCoverflow, EffectFlip, EffectCards, EffectCreative, Lazy]);\n\n\n\n@Component({\n selector: 'app-home',\n templateUrl: './home.page.html',\n styleUrls: ['./home.page.scss'],\n})\nexport class HomePage implements OnInit {\n\n @ViewChild(IonContent) content: IonContent;\n \n textoGraduacao = 'Conheça os cursos oferecidos pela Souza Marques, escolha o seu e dê o primeiro passo rumo ao seu futuro profissional.';\n textoPosGraduacao = 'Em um mercado cada vez mais exigente, é fundamental estar bem preparado.';\n textoExtensao = 'Os cursos de extensão da FTESM buscam a capacitação e aperfeiçoamento em todos os níveis de ensino.';\n textoAlerta = 'A FTESM não realiza contato por telefone, sms ou e-mail para tratar de assuntos financeiros, incluindo bolsas de estudo. Nunca forneça seus dados pessoais através desse tipo de contato.';\n textoRodape1 = '2022 © Fundação Técnico Educacional Souza Marques.';\n textoRodape2 = 'Informações gerais da IES em cumprimento ao parágrafo único do Artigo 102, do Decreto 9235, de 15 de dezembro de 2017.';\n\n \n \n itensRodape1 = [\n {\n srcImage: '/assets/images/home/rodape-1/1.png',\n linkTarget: 'https://wp.souzamarques.br/a-instituicao/cpa-avaliacao-institucional/'\n },\n {\n srcImage: '/assets/images/home/rodape-1/2.png',\n linkTarget: 'https://wp.souzamarques.br/a-instituicao/enade-2/'\n },\n {\n srcImage: '/assets/images/home/rodape-1/3.png',\n linkTarget: 'https://wp.souzamarques.br/cursos/graduacao/'\n },\n {\n srcImage: '/assets/images/home/rodape-1/4.png',\n linkTarget: 'http://colegiosouzamarques.com/'\n },\n ]\n\n\n modalDataResponse: any;\n popups: PopupDTO[] = [];\n activePopup: PopupDTO;\n\n banners: ArquivoDTO[] = [];\n noticias: NoticiaDTO[] = [];\n grupos: GrupoNoticiaDTO[] = [];\n currentPage: { [grupoId: string]: number } = {};\n \n constructor( private functionsService: FunctionsService \n , public modalCtrl: ModalController \n , private headerService: HeaderService\n , private noticiaService: NoticiaService\n , private grupoService: GrupoNoticiaService\n , private arquivoService: ArquivoService \n , private popupService: PopupService\n , private seoService: SeoService ) {\n\n \n }\n\n ngOnInit() {\n\n const seoHome = {\n titleTag: 'Faculdade Souza Marques - Faculdades de qualidade para todos.', \n nome: 'Faculdade Souza Marques', \n metaDescription: 'FACULDADE SOUZA MARQUES: SUA MELHOR ESCOLHA É AQUI. - Cursos de Graduação, Pós-Graduação e Extensão nas modalidades EAD e Presencial.', \n tags: ['Souzamarques', 'Souza Marques', 'Souza', 'Faculdade', 'Graduação', 'Pósgraduação', 'Pós-graduação', 'Pós graduação', 'Licenciatura', 'Medicina']\n };\n\n this.seoService.updateSEO(seoHome);\n\n }\n\n \n \n\n ionViewWillEnter(){\n\n \n //BUSCA OS POPUPS\n this.popupService.findByEntidade(ENTIDADE.HOME).subscribe(\n resp=>{\n this.popups = resp;\n\n if(this.popups.length>0){\n \n this.popups = this.popups.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 });\n \n //this.popups.splice(0);\n this.activePopup = this.popups[0];\n this.popups.splice(0,1);\n }\n \n //console.log(this.popups);\n },\n error=>{\n console.log(error);\n }\n );\n\n\n //BUSCAR OS BANNERS\n this.arquivoService.findBannersHome().subscribe(\n resp=>{\n this.banners = resp;\n },\n error=>{\n console.log(error);\n }\n );\n \n\n //BUSCAR AS NOTÍCIAS\n this.noticiaService.findByStatus(STATUS_PUBLICACAO.PUBLICADO).subscribe(\n resp=>{\n \n this.noticias = resp.filter(noticia=>noticia.publicarNaHome===true);\n //console.log(this.noticias)\n //ordena o array por data de publicação decrescente\n this.noticias.sort(function(a,b){\n return new Date(b.dataPublicacao).getTime() - new Date(a.dataPublicacao).getTime();\n });\n\n this.grupoService.findAll().subscribe(\n respG=>{\n this.grupos = respG;\n \n //verifica se todos os grupos possuem notícias\n for(var indexG=0; indexG0){\n this.noticias.push(noticiasGrupo[0]);//pega a mais recente, pois o array resp está ordernado da mais recente para mais antiga\n }\n \n }\n }\n\n },\n errorG=>{\n\n });\n\n\n \n\n },\n error=>{\n console.log(error); \n }\n );\n \n }\n\n getNoticiasGrupo(grupo: GrupoNoticiaDTO): NoticiaDTO[]{\n\n let noticiasGrupo = this.noticias?.filter(noticia=>noticia?.grupo?.id===grupo?.id);\n return noticiasGrupo;\n\n }\n\n getNoticiasGrupoPaginated(grupo: GrupoNoticiaDTO): NoticiaDTO[] {\n const noticiasGrupo = this.getNoticiasGrupo(grupo);\n \n const pageSize = 2;\n const page = this.currentPage[grupo.id] || 0;\n const totalItems = noticiasGrupo.length;\n \n // Calcular os índices de início e fim da página\n const start = (page * pageSize) % totalItems;\n let end = start + pageSize;\n \n // Ajuste o índice de fim para não ultrapassar o tamanho do array\n if (end > totalItems) {\n end = totalItems;\n }\n \n // Se a páginação atingir o fim do array, combine o começo do array\n if (end - start < pageSize) {\n return [...noticiasGrupo.slice(start, end), ...noticiasGrupo.slice(0, (pageSize - (end - start)))];\n } else {\n return noticiasGrupo.slice(start, end);\n }\n }\n \n \n\n prevPage(grupo: GrupoNoticiaDTO) {\n const page = this.currentPage[grupo.id] || 0;\n const noticiasGrupo = this.getNoticiasGrupo(grupo);\n const pageSize = 2;\n const totalPages = Math.ceil(noticiasGrupo.length / pageSize);\n \n if (page > 0) {\n this.currentPage[grupo.id] = page - 1;\n } else {\n this.currentPage[grupo.id] = totalPages - 1; // Volta para a última página\n }\n }\n \n nextPage(grupo: GrupoNoticiaDTO) {\n const noticiasGrupo = this.getNoticiasGrupo(grupo);\n const pageSize = 2;\n const page = this.currentPage[grupo.id] || 0;\n const totalPages = Math.ceil(noticiasGrupo.length / pageSize);\n \n if (page < totalPages - 1) {\n this.currentPage[grupo.id] = page + 1;\n } else {\n this.currentPage[grupo.id] = 0; // Volta para a primeira página\n }\n }\n \n \n \n \n scrolling() {\n\n this.headerService.scrollAdjust(this.content); \n \n }\n\n goToPath(path:string, newWindow: boolean = false ){\n if(path){\n this.functionsService.goToPath(path, newWindow);\n }\n }\n\n\n closePopup(tipo: string){\n \n if(this.popups.length>0){\n\n this.activePopup = this.popups[0];\n this.popups.splice(0,1);\n\n if(this.activePopup.imagem){\n\n if(document.getElementById('popup-image-wrapper')){\n document.getElementById('popup-image-wrapper').style.display = 'block';\n }\n\n if(document.getElementById('popup-text-wrapper')){\n document.getElementById('popup-text-wrapper').style.display = 'none';\n }\n \n }else{\n\n if(document.getElementById('popup-text-wrapper')){\n document.getElementById('popup-text-wrapper').style.display = 'block';\n }\n\n if(document.getElementById('popup-image-wrapper')){\n document.getElementById('popup-image-wrapper').style.display = 'none';\n }\n \n }\n\n }else{\n this.activePopup = null;\n \n if(document.getElementById('popup-text-wrapper')){\n document.getElementById('popup-text-wrapper').style.display = 'none';\n }\n \n if(document.getElementById('popup-image-wrapper')){\n document.getElementById('popup-image-wrapper').style.display = 'none';\n }\n \n }\n \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 setTextHTML(text: string){\n document.getElementById('celTextHTML').innerHTML = text;\n }\n \n \n detailNews(noticia: NoticiaDTO){\n\n const url = '/noticia/' + \n noticia.id + '/' + \n noticia.titulo.replace(/ /g, '_').toLocaleLowerCase();\n \n this.functionsService.goToPath(url);\n\n }\n}\n","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { HomePage } from './home.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: HomePage\n },\n \n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class HomePageRoutingModule {}\n","import { QuillModule } from 'ngx-quill';\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 { HomePageRoutingModule } from './home-routing.module';\n\nimport { HomePage } from './home.page';\nimport { SwiperModule } from 'swiper/angular';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n HomePageRoutingModule,\n SwiperModule,\n ComponentsModule,\n QuillModule.forRoot()\n ],\n declarations: [HomePage]\n})\nexport class HomePageModule {}\n"],"sourceRoot":"webpack:///","file":"6140.9d66908083f6b95c.js"}