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,EACA,CAAEE,QAAS,aAIzCC,OAAOH,GAEL,OAAOvN,KAAKqN,KAAKM,IAAUhH,WAAkB,iBAAmB4G,EAAc/M,GACnD+M,EACA,CAAEE,QAAS,aAKxCxK,UAEE,OAAOjD,KAAKqN,KAAKO,IAAsBjH,WAAkB,iBAI3D9C,aAAckH,EACA8C,EACAC,EACAC,EACAC,EAAe,OAE3B,OAAOhO,KAAKqN,KAAKO,IAAsBjH,WAAkB,0CAA0CoE,EAAc,2BAA2B8C,EAAuB,SAASC,EAAK,SAASC,EAAS,SAASC,GAI9MC,cAAclD,EAAqB8C,GAEjC,OAAO7N,KAAKqN,KAAKO,IAAajH,WAAkB,2CAA2CoE,EAAc,2BAA2B8C,GAItIK,YAAYC,GAEV,OAAOnO,KAAKqN,KAAKO,IAAsBjH,WAAkB,qCAAqCwH,GAIhGpJ,KAAKvE,GAEH,OAAOR,KAAKqN,KAAKO,IAAoBjH,WAAkB,iBAAmBnG,GAI5E4N,eAAeC,GAEb,OAAOrO,KAAKqN,KAAKO,IAAajH,WAAkB,6CAA+C0H,GAMjGC,OAAO9N,GAEL,OAAOR,KAAKqN,KAAKiB,OAAc,GAAG3H,2BAAuCnG,mDAnEhE4M,GAAiB9N,wCAAjB8N,EAAiBmB,QAAjBnB,EAAiB,qBAFhB,SAEDA,GAAb","names":["i0","ctx_r2","oxw","PopoverSaibaMaisComponent","constructor","functionsService","ngOnInit","detail","curso","habilitarInscricao","this","agrupamento","url","formacao","nome","habilitacao","modalidade","replace","id","goToPath","selectors","ctx_r14","ctx_r21","ctx_r26","ctx_r29","ctx_r32","ctx_r35","ctx_r38","ctx_r41","ctx_r51","ctx_r54","SwiperCore","Autoplay","Keyboard","Pagination","Navigation","Scrollbar","Zoom","EffectFade","EffectCube","EffectCoverflow","EffectFlip","EffectCards","EffectCreative","Lazy","routes","path","component","agrupamentoService","headerService","activatedRoute","arquivoService","popoverController","modalidadeService","habilitacaoService","formacaoService","areaConhecimentoService","vestibularService","seoService","findAll","subscribe","resp","modalidades","error","console","log","formacoes","habilitacoes","areasConhecimento","ionViewWillEnter","presentLoading","findByFilter","PERIODO_INSCRICAO","respVest","vestibularesAbertos","now","Date","filter","vestibular","formasIngresso","some","forma","dataInicioInscricao","dataFimInscricao","errorVest","agrupamentos","params","urlParams","idFormacao","find","respFormacao","updateSEO","titleTag","metaDescription","tags","errorFormacao","findPublicadosByFormacao","respArupamento","checkShowAll","checked","agrupamentosFiltrados","sortArray","dismissLoading","errorAgrupamento","queryParams","param","if","parseInt","errorParam","errorURLParam","setMenu","scrolling","scrollAdjust","content","getFilePublicURL","fullPath","fileName","API_CONFIG","getLowestPrice","lowest","Number","MAX_SAFE_INTEGER","n","t","agrupamentosCurso","_a","forEach","agrupamentoCurso","f","r","disponibilidades","_b","disponibilidadeCurso","investimento","habilitarInvestimento","u","investimentoFloat","parseFloat","openListSaibaMais","event","length","o","toLocaleLowerCase","popover","create","componentProps","translucent","showBackdrop","backdropDismiss","reference","side","align","arrow","dismissOnSelect","cssClass","popoverSaibaMaisShown","target","src","present","onDidDismiss","then","data","setFiltroModalidade","filtroModalidades","push","value","index","indexOf","splice","setFiltroHabilitacao","filtroHabilitacoes","setFiltroAreaConhecimento","filtroAreasConhecimento","setFiltroShowAll","arrCheckboxes","document","getElementsByTagName","i","getDeepCopyArray","areaConhecimento","achou","j","_c","showAll","filterName","filtroTexto","includes","add","slice","newWindow","showFilterArea","hideFilterArea","getElementById","style","display","menuBtn","querySelector","nav","lineOne","lineTwo","lineThree","link","addEventListener","classList","toggle","vestibularOpen","a","vestibularCursos","cursoVestibular","k","ListarCursosPage","IonContent","IonCheckbox","ctx","ListarCursosPageRoutingModule","RouterModule","ListarCursosPageModule","CommonModule","FormsModule","IonicModule","ComponentsModule","SwiperModule","VestibularService","http","insert","vestibularDTO","post","observe","update","put","get","statusPeriodoInscricao","page","pageSize","sort","countByFilter","findByCurso","idCurso","countInscritos","idVestibular","delete","factory"],"sources":["./src/app/pages/listar-cursos/components/popover-saiba-mais/popover-saiba-mais.component.html","./src/app/pages/listar-cursos/components/popover-saiba-mais/popover-saiba-mais.component.ts","./src/app/pages/listar-cursos/listar-cursos.page.html","./src/app/pages/listar-cursos/listar-cursos.page.ts","./src/app/pages/listar-cursos/listar-cursos-routing.module.ts","./src/app/pages/listar-cursos/listar-cursos.module.ts","./src/app/services/vestibular/vestibular.service.ts"],"sourcesContent":["\n\n {{agrupamentoCurso.curso.modalidade?.nome}}\n \n","import { CursoDTO } from 'src/app/models/curso/cursoDTO';\nimport { AgrupamentoDTO } from '../../../../models/curso/agrupamentoDTO';\nimport { Component, OnInit } from '@angular/core';\nimport { FunctionsService } from 'src/app/services/common/functions.service';\n\n@Component({\n selector: 'app-popover-saiba-mais',\n templateUrl: './popover-saiba-mais.component.html',\n styleUrls: ['./popover-saiba-mais.component.scss'],\n})\nexport class PopoverSaibaMaisComponent implements OnInit {\n\n agrupamento: AgrupamentoDTO;\n \n constructor( private functionsService: FunctionsService ) { }\n\n ngOnInit() {}\n\n\n detail(curso: CursoDTO){\n\n let habilitarInscricao = this.agrupamento.habilitarInscricao ? this.agrupamento.habilitarInscricao : false;\n \n const url = '/CURSO/' + \n curso.formacao.nome + '/' + \n (curso.habilitacao? curso.habilitacao.nome : '-') + '/' +\n curso.modalidade.nome + '/' + \n curso.nome.replace(/ /g, '_') + '/' +\n curso.id + '/' +\n habilitarInscricao;\n\n this.functionsService.goToPath(url); \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 PESQUISAR CURSO\n \n \n\n \n FILTRAR POR\n \n\n
\n \n  TODOS OS CURSOS\n
\n\n
\n MODALIDADE\n
\n \n  {{modalidade.nome}}\n
\n\n
\n GRAU ACADÊMICO\n
\n \n  {{habilitacao.nome}}\n
\n\n \n\n
\n ÁREA DE CONHECIMENTO\n
\n \n  {{areaConhecimento.nome}}\n
\n\n
\n \n
\n \n \n
\n \n \n \n
CURSOS DE
\n
{{formacao?.nome}}
\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
{{agrupamento.agrupamentosCurso[0]?.curso?.habilitacao?.nome}}0\" >A PARTIR DE:
{{getLowestPrice(agrupamento) | currency}}/mês
A PARTIR DE: .{{agrupamento.textoAlternativoPreco}}
\n {{agrupamento.nome}}\n
\n \n \n
\n
\n \n
\n
\n
\n
\n\n \n \n
\n","import { PERIODO_INSCRICAO } from '../../config/periodo_inscricao.config';\nimport { VestibularDTO } from '../../models/vestibular/vestibularDTO';\nimport { VestibularService } from './../../services/vestibular/vestibular.service';\nimport { AreaConhecimentoDTO } from '../../models/curso/areaConhecimentoDTO';\nimport { AreaConhecimentoService } from './../../services/area-conhecimento/area-conhecimento.service';\nimport { FormacaoDTO } from '../../models/curso/formacaoDTO';\nimport { FormacaoService } from './../../services/formacao/formacao.service';\nimport { HabilitacaoDTO } from '../../models/curso/habilitacaoDTO';\nimport { HabilitacaoService } from './../../services/habilitacao/habilitacao.service';\nimport { ModalidadeDTO } from '../../models/curso/modalidadeDTO';\nimport { ModalidadeService } from './../../services/modalidade/modalidade.service';\nimport { PopoverSaibaMaisComponent } from './components/popover-saiba-mais/popover-saiba-mais.component';\nimport { ArquivoService } from './../../services/arquivo/arquivo.service';\nimport { API_CONFIG } from './../../config/api.config';\nimport { ActivatedRoute } from '@angular/router';\nimport { HeaderService } from './../../services/header/header.service';\nimport { IonCheckbox, IonContent, PopoverController } from '@ionic/angular';\nimport { AgrupamentoService } from './../../services/agrupamento/agrupamento.service';\nimport { AgrupamentoDTO } from '../../models/curso/agrupamentoDTO';\nimport { FunctionsService } from './../../services/common/functions.service';\nimport { Component, OnInit, ViewChild } from '@angular/core';\nimport SwiperCore, { Autoplay, Keyboard, Pagination, Scrollbar, Zoom, EffectFade, EffectCube, EffectCoverflow, EffectFlip, Navigation, EffectCards, EffectCreative, Lazy } from 'swiper';\nimport { Title, Meta } from '@angular/platform-browser';\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@Component({\n selector: 'app-listar-cursos',\n templateUrl: './listar-cursos.page.html',\n styleUrls: ['./listar-cursos.page.scss'],\n})\nexport class ListarCursosPage implements OnInit {\n\n @ViewChild(IonContent) content: IonContent;\n @ViewChild(IonCheckbox) checkShowAll: IonCheckbox;\n\n agrupamentos: AgrupamentoDTO[];\n agrupamentosFiltrados: AgrupamentoDTO[] = [];\n\n popoverSaibaMaisShown: boolean = false;\n\n modalidades: ModalidadeDTO[] = [];\n habilitacoes: HabilitacaoDTO[] = [];\n formacoes: FormacaoDTO[] = [];\n areasConhecimento: AreaConhecimentoDTO[] = [];\n vestibularesAbertos: VestibularDTO[];\n\n filtroModalidades: number[] = [];\n filtroHabilitacoes: number[] = [];\n filtroAreasConhecimento: number[] = [];\n filtroTexto: string;\n\n formacao: FormacaoDTO;\n\n \n\n constructor( private agrupamentoService: AgrupamentoService \n , private functionsService: FunctionsService\n , private headerService: HeaderService\n , private activatedRoute: ActivatedRoute\n , private arquivoService: ArquivoService \n , private popoverController: PopoverController\n , private modalidadeService: ModalidadeService\n , private habilitacaoService: HabilitacaoService\n , private formacaoService: FormacaoService\n , private areaConhecimentoService: AreaConhecimentoService\n , private vestibularService: VestibularService\n , private seoService: SeoService ) { \n\n \n this.modalidadeService.findAll().subscribe(\n resp=>{\n this.modalidades = resp;\n },\n error=>{\n console.log(error);\n }\n );\n\n this.formacaoService.findAll().subscribe(\n resp=>{\n this.formacoes = resp;\n },\n error=>{\n console.log(error);\n }\n );\n\n\n this.habilitacaoService.findAll().subscribe(\n resp=>{\n this.habilitacoes = resp;\n },\n error=>{\n console.log(error);\n }\n );\n\n this.areaConhecimentoService.findAll().subscribe(\n resp=>{\n this.areasConhecimento = resp;\n },\n error=>{\n console.log(error);\n }\n );\n\n }\n\n ngOnInit() {\n \n }\n\n\n ionViewWillEnter(){\n \n this.functionsService.presentLoading();\n\n //busca os vestibulares com inscrições abertas\n this.vestibularService.findByFilter('', PERIODO_INSCRICAO.ABERTO, 0, 1000, 'ASC').subscribe(\n respVest=>{\n this.vestibularesAbertos = respVest;\n\n //garantir que somente os vestibulares com período de inscrição vigente serão mantidos\n const now = new Date();\n this.vestibularesAbertos = this.vestibularesAbertos.filter(vestibular =>\n vestibular.formasIngresso.some(forma =>\n new Date(forma.dataInicioInscricao) <= now &&\n new Date(forma.dataFimInscricao) >= now\n )\n );\n },\n errorVest=>{\n console.log('errorVest');\n //console.log(errorVest);\n //this.functionsService.dismissLoading();\n }\n );\n\n \n this.agrupamentos = [];\n\n this.activatedRoute.params.subscribe(\n urlParams => {\n \n const idFormacao = urlParams['idFormacao'];\n if(idFormacao){\n this.formacaoService.find(idFormacao).subscribe(\n respFormacao=>{\n this.formacao = respFormacao;\n \n\n const seoListarCursos = {\n titleTag: respFormacao.nome, \n nome: respFormacao.nome, \n metaDescription: 'Cursos de ' + respFormacao.nome + ' 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(seoListarCursos);\n },\n errorFormacao=>{\n console.log('errorFormacao');\n //console.log('errorFormacao',errorFormacao);\n }\n );\n\n this.agrupamentoService.findPublicadosByFormacao(idFormacao).subscribe(\n respArupamento=>{\n\n this.agrupamentos = respArupamento;\n //inicialmente exibe todos, sem filtro\n this.checkShowAll.checked = true;\n this.agrupamentosFiltrados = this.agrupamentos;\n\n this.functionsService.sortArray(this.agrupamentosFiltrados);\n \n this.functionsService.dismissLoading();\n\n },\n errorAgrupamento=>{\n \n console.log('errorAgrupamento');\n console.log(errorAgrupamento);\n this.functionsService.dismissLoading();\n\n }\n );\n\n }else{\n\n this.activatedRoute.queryParams.subscribe(\n param=>{\n \n let idFormacao = 0;\n \n if(param.if){ //if == idFormacao\n idFormacao = parseInt(param.if);\n \n this.formacaoService.find(idFormacao).subscribe(\n respFormacao=>{\n this.formacao = respFormacao;\n \n },\n errorFormacao=>{\n console.log('errorFormacao',errorFormacao);\n }\n );\n \n \n }\n \n this.agrupamentoService.findPublicadosByFormacao(idFormacao).subscribe(\n respArupamento=>{\n \n this.agrupamentos = respArupamento;\n \n //inicialmente exibe todos, sem filtro\n this.checkShowAll.checked = true;\n this.agrupamentosFiltrados = this.agrupamentos;\n \n this.functionsService.sortArray(this.agrupamentosFiltrados);\n \n this.functionsService.dismissLoading();\n \n },\n errorAgrupamento=>{\n \n console.log(errorAgrupamento);\n this.functionsService.dismissLoading();\n \n }\n );\n \n \n },\n errorParam=>{\n \n console.log('errorParam',errorParam);\n this.functionsService.dismissLoading();\n \n }\n \n );\n\n }\n \n },\n errorURLParam=>{\n console.log(errorURLParam);\n }); \n\n\n \n \n \n \n this.setMenu();\n }\n\n\n scrolling() {\n\n this.headerService.scrollAdjust(this.content); \n \n }\n\n getFilePublicURL(fullPath: string, fileName: string): string{\n \n if(!fullPath || !fileName){\n return API_CONFIG.iisVirtualDirectoryURL + 'empty_photo.jpg';\n }\n\n return this.arquivoService.getFilePublicURL(fullPath, fileName);\n }\n\n\n getLowestPrice(agrupamento: AgrupamentoDTO): number {\n\n let lowest = Number.MAX_SAFE_INTEGER;\n\n agrupamento?.agrupamentosCurso?.forEach(agrupamentoCurso => {\n\n agrupamentoCurso.curso?.disponibilidades?.forEach(disponibilidadeCurso => {\n\n let investimento = (disponibilidadeCurso.habilitarInvestimento ? disponibilidadeCurso.investimento : 'R$ 0');\n investimento = investimento?.replace('R$', '').replace('.', '').replace(',', '.').replace(' ', '');\n \n const investimentoFloat = parseFloat(investimento || '0');\n if (investimentoFloat < lowest || (investimentoFloat>0 && lowest === 0)) {\n lowest = investimentoFloat;\n }\n });\n\n });\n\n // Se não achou nenhum preço menor, retorna 0\n if (lowest === Number.MAX_SAFE_INTEGER) {\n return 0;\n }\n \n return lowest;\n}\n\n\n\n\n async openListSaibaMais(event, agrupamento: AgrupamentoDTO) {\n \n //se só tem um curso, vai direto pra página deste curso\n if(agrupamento.agrupamentosCurso.length===1){\n \n //o param hi é para indicar quando o botão inscreva-se está habilitado no agrupamento do curso (hi == habilitar inscrição?)\n let habilitarInscricao = (this.vestibularesAbertos?.length>0 && agrupamento.habilitarInscricao) ? 'S' : 'N';\n const curso = agrupamento.agrupamentosCurso[0].curso;\n\n const url = '/curso/' + \n curso.id + '/' +\n habilitarInscricao + '/' +\n curso.formacao.nome.toLocaleLowerCase() + '/' + \n (curso.habilitacao? curso.habilitacao.nome.toLocaleLowerCase() : '-') + '/' +\n curso.modalidade.nome.toLocaleLowerCase() + '/' + \n curso.nome.toLocaleLowerCase().replace(/ /g, '_');\n \n \n this.functionsService.goToPath(url);\n }else{\n\n const popover = await this.popoverController.create({\n component: PopoverSaibaMaisComponent,\n componentProps: {'agrupamento': agrupamento},\n translucent: false,\n showBackdrop: false,\n backdropDismiss: true,\n reference:\"trigger\",\n event: event,\n side: 'bottom',\n align: 'start',\n arrow: true,\n dismissOnSelect: true,\n cssClass: 'popover-saiba-mais', //definido no global.css \n \n });\n \n \n if(!this.popoverSaibaMaisShown){\n this.popoverSaibaMaisShown = true;\n event.target.src = event.target.src.replace('fechado','aberto'); \n await popover.present();\n }\n \n await popover.onDidDismiss().then((data)=>{\n \n event.target.src = event.target.src.replace('aberto','fechado');\n this.popoverSaibaMaisShown = false;\n \n });\n\n }\n \n \n \n \n }\n\n setFiltroModalidade(event){\n\n if(event.target.checked){\n this.checkShowAll.checked = false;\n this.filtroModalidades.push(parseInt(event.target.value));\n \n }else{\n const index = this.filtroModalidades.indexOf(parseInt(event.target.value));\n this.filtroModalidades.splice(index,1);\n }\n\n //executa a consulta com filtro atualizado\n this.filter();\n\n }\n\n\n setFiltroHabilitacao(event){\n\n if(event.target.checked){\n this.checkShowAll.checked = false;\n this.filtroHabilitacoes.push(parseInt(event.target.value));\n }else{\n const index = this.filtroHabilitacoes.indexOf(parseInt(event.target.value));\n this.filtroHabilitacoes.splice(index,1);\n }\n\n //executa a consulta com filtro atualizado\n this.filter();\n\n }\n\n\n \n setFiltroAreaConhecimento(event){\n\n if(event.target.checked){\n this.checkShowAll.checked = false;\n this.filtroAreasConhecimento.push(parseInt(event.target.value));\n }else{\n const index = this.filtroAreasConhecimento.indexOf(parseInt(event.target.value));\n this.filtroAreasConhecimento.splice(index,1);\n }\n\n //executa a consulta com filtro atualizado\n this.filter();\n }\n\n setFiltroShowAll(){\n\n\n if(this.checkShowAll.checked){\n \n this.filtroModalidades = [];\n this.filtroHabilitacoes = [];\n this.filtroAreasConhecimento = [];\n \n //desmarca todos os demais checkboxes\n let arrCheckboxes = document.getElementsByTagName('ion-checkbox')\n \n for(var i=0; i0){\n\n for(var i=0; i0){\n\n for(var i=0; i-1){\n achou = true;\n break;\n }\n }\n \n //se não achou a modalidade no agrupamento\n if(!achou){\n //remove o agrupamento\n this.agrupamentosFiltrados.splice(i,1);\n i--;\n }\n }\n }\n\n\n //filtra as habilitações\n if( this.filtroHabilitacoes.length>0){\n\n for(var i=0; i-1){\n achou = true;\n break;\n }\n }\n \n //se não achou a habilitação no agrupamento\n if(!achou){\n //remove o agrupamento\n this.agrupamentosFiltrados.splice(i,1);\n i--;\n }\n }\n }\n\n\n /*if(this.filtroTexto){\n this.filterName();\n }*/\n \n }\n\n\n filterName(){\n\n if(!this.filtroTexto){\n this.showAll();\n return;\n }\n \n this.agrupamentosFiltrados = this.functionsService.getDeepCopyArray(this.agrupamentos);\n\n for(var i=0; i {\n nav.classList.toggle('nav-open');\n lineOne.classList.toggle('line-cross');\n lineTwo.classList.toggle('line-fade-out');\n lineThree.classList.toggle('line-cross');\n link.classList.toggle('fade-in');\n });\n }\n\n\n vestibularOpen(agrupamento: AgrupamentoDTO): boolean{\n\n \n for(var i=0; i {\n \n \n return this.http.post( API_CONFIG.apiURL+'/vestibulares'\n , vestibularDTO\n , { observe: 'response' });\n\n }\n\n update(vestibularDTO: VestibularDTO) : Observable {\n\n return this.http.put( API_CONFIG.apiURL+'/vestibulares/' + vestibularDTO.id\n , vestibularDTO\n , { observe: 'response' });\n\n }\n\n\n findAll() : Observable {\n\n return this.http.get( API_CONFIG.apiURL+'/vestibulares');\n\n }\n\n findByFilter( filtroTexto: string\n , statusPeriodoInscricao: string\n , page: number\n , pageSize: number\n , sort: string = 'ASC') : Observable {\n\n return this.http.get( API_CONFIG.apiURL+'/vestibulares/findByFilter?filtroTexto='+filtroTexto + '&statusPeriodoInscricao='+statusPeriodoInscricao+'&page='+page+'&size='+pageSize+'&sort='+sort);\n\n }\n\n countByFilter(filtroTexto: string, statusPeriodoInscricao: string) : Observable {\n\n return this.http.get( API_CONFIG.apiURL+'/vestibulares/countByFilter?filtroTexto='+filtroTexto + '&statusPeriodoInscricao='+statusPeriodoInscricao);\n\n }\n\n findByCurso(idCurso: number) : Observable {\n\n return this.http.get( API_CONFIG.apiURL+'/vestibulares/findByCurso?idCurso='+idCurso);\n\n }\n\n find(id: number) : Observable {\n\n return this.http.get( API_CONFIG.apiURL+'/vestibulares/' + id);\n\n }\n\n countInscritos(idVestibular: number) : Observable {\n\n return this.http.get( API_CONFIG.apiURL+'/vestibulares/countInscritos?idVestibular=' + idVestibular);\n\n }\n\n \n\n delete(id: number) : Observable {\n\n return this.http.delete( `${API_CONFIG.apiURL}${'/vestibulares/'}${id}`);\n\n }\n\n}\n"],"sourceRoot":"webpack:///","file":"5041.2e81bd5093d0bb3a.js"}