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qBAAOA,QACxCA,QACFA,QAGFA,QACFA,QACFA,QAKAA,yBACEA,qBACEA,qBACEA,2BACEA,8BACAA,wBACFA,QACFA,QAEAA,+BAOFA,QACFA,QAGFA,cAveoBA,yCAImBA,uCA6BlBA,qDAaAA,qDAesCA,sDASxCA,mDAMaA,0EAoCdA,8GAAwD,0FAEhEA,kDAoB+BA,8CAsCjBA,+EAEAA,+BAmBEA,2DAIAA,2DAeAA,uDAIAA,wDAyBAA,8EAIAA,8EAgBFA,0EAIAA,2EAgBAA,6EAOXA,qFAA0E,4DAQjEA,qFAA0E,4DAOpEA,0DAIAA,2DAUTA,0EAQGA,qFAA0E,4DAOtEA,uDAIAA,wDAUTA,0EAmB8BA,sDAQAA,wDAQAA,oDAQAA,oDAQAA,mDAQAA,oDAQAA,oDAQAA,qDAQAA,uDAQAA,sDAQAA,uDAQAA,uDAgBhCA,+CAAoC,oCAChBA,yCAM2DA,wyGEtbnFoS,GAAb,KD3BO,IAAMG,GAAb,MAAM,sDAAOA,4DAHF,CAACC,cAAsB/R,KACtB+R,QAECD,GAAb,+BESO,IAAME,GAAb,MAAM,sDAAOA,4DAXF,CACPC,KACAC,KACAC,KACAC,KACAC,KACAC,MACAR,OAISE,GAAb","names":["i0","ctx_r22","ctx_r24","ctx_r26","ctx_r30","oxw","ctx_r32","ctx_r34","ctx_r36","routes","path","component","constructor","arquivoService","popoverController","functionsService","cursoService","formaIngressoService","inscricaoService","permissaoAcessoService","vestibularService","storageService","activatedRoute","configuracaoPagamentoService","tipoPagamentoService","padService","this","VestibularDTO","FormaIngressoDTO","findAll","subscribe","next","resp","configuracoesPgto","error","console","log","respPAD","length","padMatricula","getPadByName","TIPO_DOCUMENTACAO","sortDocuments","errorPAD","ngOnInit","arrDocs","arrImpeditivos","i","configuracoesDocumentos","impeditivo","push","splice","sort","a","b","nomeDocumento","arrObrigatorios","concat","getMandatoryText","configuracaoDocumento","obrigatorio","getNomeTipoPagamento","tipo","getName","paymentTypeNotImplemented","tipoPagamento","TIPO_PAGAMENTO","disablePaymentType","cp","disponivelTodasAgendas","forEach","checkPaymentType","event","target","checked","vtp","VestibularTipoPagamentoDTO","vestibular","vestibularTiposPagamento","ionViewWillEnter","checkAccessControl","presentLoading","posGraduacao","TIPO_FORMA_INGRESSO","findByStatus","STATUS","cursos","queryParams","param","id","find","respVest","setTextoCursosSelecionados","formasIngresso","cont","dismissLoading","errorVest","vagasJaneiro","vagasFevereiro","vagasMarco","vagasAbril","vagasMaio","vagasJunho","vagasJulho","vagasAgosto","vagasSetembro","vagasOutubro","vagasNovembro","vagasDezembro","habilitarEnvioDocumentacaoMatricula","errorParam","paymentTypeChecked","o","_a","canCreateAndEdit","window","location","href","canCreateEdit","canRemove","uploadEdital","fileLoader","that","onchange","upload","files","ENTIDADE","DIRETORIO","TIPO_ARQUIVO","arquivoEdital","body","value","click","openPopoverSelecionarCurso","popover","create","PopoverSelecionarCursosVestibularComponent","componentProps","graduacao","extensao","vestibularCursosSelecionados","vestibularCursos","translucent","showBackdrop","backdropDismiss","cssClass","present","onDidDismiss","then","data","cursosUnicos","reduce","acc","vcAtual","some","curso","textoCursosSelecionados","map","habilitacao","nome","modalidade","join","primeirosCursosTexto","slice","validate","codigoEdital","showAlert","fi","valorTaxaInscricao","dataInicioInscricao","Date","dataFimInscricao","getTime","getNomeFormatado","dataInicioEntregaDocumentacaoInscricao","dataFimEntregaDocumentacaoInscricao","dataInicioMatricula","dataFimMatricula","totalVagas","save","update","text","handler","showErrorAlert","usuarioLogado","getUsuarioLogado","criador","dataCriacao","ultimoEditor","dataUltimaEdicao","insert","openPopoverSelecionarData","formaIngresso","dataAtualmenteSelecionada","titulo","objetivo","horaAtualmenteSelecionada","hora","getHours","min","getMinutes","toString","PopoverSelecionarDataComponent","selectedDate","hour","hourMandatory","title","t","toLocaleLowerCase","indexOf","dataLimiteProvaSemAgendamento","dataLimiteCursoOnlineMoodle","openPopoverSelecionarPeriodo","selectedRanges","PopoverSelecionarPeriodoComponent","startHour","endHour","_b","vacanciesMandatory","vacanciesPerDate","n","_c","vacancies","rangesSelecionados","g","j","dates","prova","ProvaDTO","dataInicio","horaInicio","dataFim","horaFim","local","getDateBrPattern","getDay","existe","indexProva","f","provas","datesEqual","sortArrayProvas","getDayOfWeekName","substring","edit","ranges","getRangesSameHour","provaSelecionada","range","RangeDTO","lastDateRange","nextDate","beforeNextDay","setDate","getDate","start","end","removeProva","dataInicioProva","horaInicioProva","minInicioProva","dataFimProva","horaFimProva","minFimProva","setHours","parseInt","countByDataProva","msg","setTaxaInscricao","valor","replace","valueOf","Number","parseFloat","getCurrencyValue","removeEdital","showConfirmAlert","idArquivoEdital","delete","open","arquivo","newWindow","publicURL","getFilePublicURL","goToPath","fullPath","fileName","API_CONFIG","outOfDate","validateMinDaysInAdvance","input","err","GcAgendarPosGraduacaoPage","selectors","ctx","GcAgendarPosGraduacaoPageRoutingModule","RouterModule","GcAgendarPosGraduacaoPageModule","CommonModule","FormsModule","IonicModule","ComponentsModule","BrMaskerModule","QuillModule"],"sources":["./src/app/pages/modulo-gc/vestibular/gc-agendar-pos-graduacao/gc-agendar-pos-graduacao.page.html","./src/app/pages/modulo-gc/vestibular/gc-agendar-pos-graduacao/gc-agendar-pos-graduacao-routing.module.ts","./src/app/pages/modulo-gc/vestibular/gc-agendar-pos-graduacao/gc-agendar-pos-graduacao.page.ts","./src/app/pages/modulo-gc/vestibular/gc-agendar-pos-graduacao/gc-agendar-pos-graduacao.module.ts"],"sourcesContent":[" \n\n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n AGENDAMENTO PARA PÓS-GRADUAÇÃO\n \n\n \n\n\n \n \n \n \n \n\n \n Dados do Edital \n \n \n
\n\n \n \n Código do Edital\n \n \n\n
\n \n \n \n Período Letivo\n \n \n\n \n \n \n \n  Edital\n \n \n \n Upload Edital  \n \n \n \n \n \n \n \n \n \n Nenhum edital adicionado\n \n \n\n \n \n \n \n \n \n\n
\n
\n\n \n \n \n \n\n \n Cursos \n \n \n
\n\n \n\n Cursos\n Selecionar\n \n \n \n 0\">\n {{textoCursosSelecionados}}\n \n \n
\n
\n \n\n \n \n \n \n\n \n Formas de Pagamento \n \n \n
\n\n \n \n \n \n  {{getNomeTipoPagamento(configPgto.tipoPagamento)}}\n   (não implementada)\n   (obrigatório em todas agendas)\n \n \n
\n
\n\n\n \n \n \n \n\n \n \n Pós Graduação \n \n \n
\n\n \n \n \n \n \n \n Taxa de Inscrição\n \n \n \n \n\n \n \n \n
Período de Inscrição
\n \n \n\n \n \n Início\n \n\n \n \n {{posGraduacao.dataInicioInscricao | date: 'dd/MM/yyyy HH:mm' }}\n \n\n \n Não definido\n \n\n \n \n \n \n\n \n \n Fim\n \n\n \n \n {{posGraduacao.dataFimInscricao | date: 'dd/MM/yyyy HH:mm' }}\n \n\n \n Não definido\n \n\n \n \n\n \n \n\n \n \n \n
\n Período de Entrega de Documentação para Inscrição\n
\n \n \n \n \n \n Início\n \n\n \n \n {{posGraduacao.dataInicioEntregaDocumentacaoInscricao | date: 'dd/MM/yyyy HH:mm' }}\n \n\n \n Não definido\n \n\n \n \n \n \n\n \n \n Fim\n \n\n \n \n {{posGraduacao.dataFimEntregaDocumentacaoInscricao | date: 'dd/MM/yyyy HH:mm' }}\n \n\n \n Não definido\n \n\n \n \n\n \n \n\n\n \n \n \n \n \n  Permitir aos candidatos o envio de documentação para matrícula\n \n\n \n \n \n
\n Período de Matrícula\n
\n \n \n\n \n \n Início\n \n\n \n \n {{posGraduacao.dataInicioMatricula | date: 'dd/MM/yyyy HH:mm' }}\n \n\n \n Não definido\n \n\n \n \n \n\n \n \n\n \n \n Fim\n \n\n \n \n {{posGraduacao.dataFimMatricula | date: 'dd/MM/yyyy HH:mm' }}\n \n\n \n Não definido\n \n\n \n \n \n \n\n \n \n \n \n \n \n
\n Meses Disponíveis para Iniciar o Curso\n
\n \n
\n \n Jan:\n \n \n \n vaga(s)\n \n \n \n Fev:\n \n \n \n vaga(s)\n \n \n \n Mar:\n \n \n \n vaga(s)\n \n \n \n Abr:\n \n \n \n vaga(s)\n \n \n \n Mai:\n \n \n \n vaga(s)\n \n \n \n Jun:\n \n \n \n vaga(s)\n \n \n \n Jul:\n \n \n \n vaga(s)\n \n \n \n Ago:\n \n \n \n vaga(s)\n \n \n \n Set:\n \n \n \n vaga(s)\n \n \n \n Out:\n \n \n \n vaga(s)\n \n \n \n Nov:\n \n \n \n vaga(s)\n \n \n \n Dez:\n \n \n \n vaga(s)\n \n
\n \n\n
\n
\n
\n\n\n\n \n \n \n \n \n Voltar  \n \n \n \n\n \n \n Salvar  \n \n \n \n \n \n \n\n\n
","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { GcAgendarPosGraduacaoPage } from './gc-agendar-pos-graduacao.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: GcAgendarPosGraduacaoPage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class GcAgendarPosGraduacaoPageRoutingModule {}\n","import { PermissaoAcessoService } from './../../../../services/permissao-acesso/permissao-acesso.service';\nimport { InscricaoService } from './../../../../services/inscricao/inscricao.service';\nimport { PopoverSelecionarDataComponent } from '../components/popover-selecionar-data/popover-selecionar-data.component';\nimport { FormaIngressoService } from './../../../../services/forma-ingresso/forma-ingresso.service';\nimport { ProvaDTO } from './../../../../models/vestibular/provaDTO';\nimport { PopoverSelecionarPeriodoComponent } from '../components/popover-selecionar-periodo/popover-selecionar-periodo.component';\nimport { FormaIngressoDTO } from './../../../../models/vestibular/formaIngressoDTO';\nimport { TIPO_FORMA_INGRESSO } from './../../../../config/tipo-forma-ingresso.config';\nimport { STATUS } from './../../../../config/status.config';\nimport { CursoService } from './../../../../services/curso/curso.service';\nimport { VestibularCursoDTO } from './../../../../models/vestibular/vestibularCursoDTO';\nimport { FunctionsService } from './../../../../services/common/functions.service';\nimport { PopoverSelecionarCursosVestibularComponent } from '../components/popover-selecionar-cursos-vestibular/popover-selecionar-cursos-vestibular.component';\nimport { PopoverController, IonToggle, IonAccordion, IonInput } from '@ionic/angular';\nimport { CursoDTO } from './../../../../models/curso/cursoDTO';\nimport { ArquivoService } from './../../../../services/arquivo/arquivo.service';\nimport { TIPO_ARQUIVO } from './../../../../config/tipo-arquivo.config';\nimport { DIRETORIO } from './../../../../config/diretorio.config';\nimport { ENTIDADE } from './../../../../config/entidade.config';\nimport { VestibularDTO } from './../../../../models/vestibular/vestibularDTO';\nimport { Component, OnInit, ViewChild } from '@angular/core';\nimport { RangeDTO } from 'src/app/models/vestibular/rangeDTO';\nimport { VestibularService } from 'src/app/services/vestibular/vestibular.service';\nimport { StorageService } from 'src/app/services/storage/storage.service';\nimport { ArquivoDTO } from 'src/app/models/arquivoDTO';\nimport { API_CONFIG } from 'src/app/config/api.config';\nimport { ActivatedRoute } from '@angular/router';\nimport { ConfiguracaoPagamentoService } from 'src/app/services/configuracao-pagamento/configuracao-pagamento.service';\nimport { ConfiguracaoPagamentoDTO } from 'src/app/models/financeiro/configuracaoPagamentoDTO';\nimport { TipoPagamentoService } from 'src/app/services/tipo-pagamento/tipo-pagamento.service';\nimport { TIPO_PAGAMENTO } from 'src/app/config/tipo-pagamento.config';\nimport { VestibularTipoPagamentoDTO } from 'src/app/models/vestibular/vestibularTipoPagamentoDTO';\nimport { ParametroAnaliseDocumentoService } from 'src/app/services/parametro-analise-documento/parametro-analise-documento.service';\nimport { ParametroAnaliseDocumentoDTO } from 'src/app/models/documentacao/parametroAnaliseDocumentoDTO';\nimport { ConfiguracaoDocumentoDTO } from 'src/app/models/documentacao/configuracaoDocumentoDTO';\nimport { TIPO_DOCUMENTACAO } from 'src/app/config/tipo_documentacao';\nimport { PopoverSelecionarSubstitutosComponent } from '../components/popover-selecionar-substitutos/popover-selecionar-substitutos.component';\n\n@Component({\n selector: 'app-gc-agendar-pos-graduacao',\n templateUrl: './gc-agendar-pos-graduacao.page.html',\n styleUrls: ['./gc-agendar-pos-graduacao.page.scss'],\n})\nexport class GcAgendarPosGraduacaoPage implements OnInit {\n\n \n canCreateEdit: boolean;\n canRemove: boolean;\n\n\n vestibular: VestibularDTO = new VestibularDTO();\n\n cursos: CursoDTO[] = [];\n textoCursosSelecionados: string;\n\n posGraduacao: FormaIngressoDTO = new FormaIngressoDTO();\n \n configuracoesPgto: ConfiguracaoPagamentoDTO[] = [];\n padMatricula: ParametroAnaliseDocumentoDTO;\n\n\n constructor( private arquivoService: ArquivoService \n , private popoverController: PopoverController\n , private functionsService: FunctionsService\n , private cursoService: CursoService\n , private formaIngressoService: FormaIngressoService \n , private inscricaoService: InscricaoService\n , private permissaoAcessoService: PermissaoAcessoService\n , private vestibularService: VestibularService\n , private storageService: StorageService\n , private activatedRoute: ActivatedRoute \n , private configuracaoPagamentoService: ConfiguracaoPagamentoService\n , private tipoPagamentoService: TipoPagamentoService\n , private padService: ParametroAnaliseDocumentoService ) {\n\n \n this.configuracaoPagamentoService.findAll().subscribe({\n next:(resp)=>{\n\n this.configuracoesPgto = resp;\n \n },\n error:(error)=>{\n console.log(error);\n }\n });\n\n //documentos de matricula que serão configurados no benefício de matrícula rápida\n this.padService.findAll().subscribe({\n next:(respPAD)=>{\n\n if(respPAD.length>0){\n this.padMatricula = this.padService.getPadByName(TIPO_DOCUMENTACAO.MATRICULA, respPAD);\n //ordena o array de documentos de acordo com as regras de negócio\n this.sortDocuments();\n }\n \n },\n error:(errorPAD)=>{\n console.log(errorPAD);\n }\n });\n\n\n }\n\n\n\n ngOnInit() {\n }\n\n sortDocuments(){\n //os docs impeditivos devem vir primeiro em ordem alfabética\n //depois os docs obrigatórios em ordem alfabética\n //depois os demais docs\n \n\n let arrDocs: ConfiguracaoDocumentoDTO[] = [];\n \n //add os docs impeditivos\n let arrImpeditivos: ConfiguracaoDocumentoDTO[] = [];\n for(var i=0; i b.nomeDocumento) {\n return 1;\n }\n if (a.nomeDocumento < b.nomeDocumento) {\n return -1;\n }\n // a must be equal to b\n return 0;\n });\n\n\n //add os docs obrigatórios que sobraram no array\n let arrObrigatorios: ConfiguracaoDocumentoDTO[] = [];\n\n for(var i=0; i b.nomeDocumento) {\n return 1;\n }\n if (a.nomeDocumento < b.nomeDocumento) {\n return -1;\n }\n // a must be equal to b\n return 0;\n });\n\n //ordena o que restou do array de docs\n this.padMatricula.configuracoesDocumentos.sort(function (a, b) {\n if (a.nomeDocumento > b.nomeDocumento) {\n return 1;\n }\n if (a.nomeDocumento < b.nomeDocumento) {\n return -1;\n }\n // a must be equal to b\n return 0;\n });\n\n arrDocs = [];\n arrDocs = arrDocs.concat(arrImpeditivos);\n arrDocs = arrDocs.concat(arrObrigatorios);\n arrDocs = arrDocs.concat(this.padMatricula.configuracoesDocumentos);\n\n this.padMatricula.configuracoesDocumentos = arrDocs;\n }\n\n getMandatoryText(configuracaoDocumento: ConfiguracaoDocumentoDTO): string{\n \n if(configuracaoDocumento.impeditivo){\n if(configuracaoDocumento.obrigatorio){\n return 'Impeditivo e Obrigatório';\n }else{\n return 'Impeditivo';\n }\n }else if(configuracaoDocumento.obrigatorio){\n return 'Obrigatório';\n }else{\n return '';\n } \n\n }\n\n \n \n getNomeTipoPagamento(tipo: string): string{\n return this.tipoPagamentoService.getName(tipo);\n }\n\n paymentTypeNotImplemented(tipoPagamento: string): boolean{\n \n if(tipoPagamento!=TIPO_PAGAMENTO.BOLETO && \n tipoPagamento!=TIPO_PAGAMENTO.CREDITO_VISTA && \n tipoPagamento!=TIPO_PAGAMENTO.CHECKOUT_GETNET &&\n tipoPagamento!=TIPO_PAGAMENTO.PIX_QRCODE){\n\n return true; //pq não estão implementados \n }\n\n return false;\n }\n\n disablePaymentType(tipoPagamento: string): boolean{\n\n \n if(tipoPagamento!=TIPO_PAGAMENTO.BOLETO && \n tipoPagamento!=TIPO_PAGAMENTO.CREDITO_VISTA && \n tipoPagamento!=TIPO_PAGAMENTO.CHECKOUT_GETNET &&\n tipoPagamento!=TIPO_PAGAMENTO.PIX_QRCODE){\n\n return true; //pq não estão implementados \n }\n\n\n if(tipoPagamento==TIPO_PAGAMENTO.BOLETO || tipoPagamento==TIPO_PAGAMENTO.CREDITO_VISTA ){\n\n //se checkout getnet estiver obrigatório em todas as agendas então desabilita boleto e crédito\n for(var i=0; i{\n\n for(var i=0; i{\n\n this.cursos = resp;\n \n //se for edição de um vestibular\n this.activatedRoute.queryParams.subscribe(\n param=>{\n \n if(param.id){\n\n this.vestibularService.find(param.id).subscribe({\n next:(respVest)=>{\n this.vestibular = respVest;\n\n this.setTextoCursosSelecionados();\n\n //configura cada forma de ingresso incluída no vestibular\n for(var i=0; i{\n console.log(errorVest);\n this.functionsService.dismissLoading();\n }\n });\n\n }else{\n \n this.vestibular = new VestibularDTO();\n \n this.vestibular.formasIngresso = []; \n \n this.posGraduacao.vagasJaneiro = 0;\n this.posGraduacao.vagasFevereiro = 0;\n this.posGraduacao.vagasMarco = 0;\n this.posGraduacao.vagasAbril = 0;\n this.posGraduacao.vagasMaio = 0;\n this.posGraduacao.vagasJunho = 0;\n this.posGraduacao.vagasJulho = 0;\n this.posGraduacao.vagasAgosto = 0;\n this.posGraduacao.vagasSetembro = 0;\n this.posGraduacao.vagasOutubro = 0;\n this.posGraduacao.vagasNovembro = 0;\n this.posGraduacao.vagasDezembro = 0;\n\n this.posGraduacao.habilitarEnvioDocumentacaoMatricula = true;\n this.vestibular.formasIngresso.push(this.posGraduacao);\n \n this.setTextoCursosSelecionados();\n\n this.vestibular.vestibularTiposPagamento = [];\n let cont = 0;\n //add os tipos de pgto definidos como obrigatórios em todas agendas\n for(var i=0; i{\n console.log(errorParam);\n this.functionsService.dismissLoading();\n });\n \n },\n error:(error)=>{\n\n console.log(error);\n this.functionsService.dismissLoading();\n\n }\n });\n \n\n\n \n\n \n }\n\n paymentTypeChecked(tipoPagamento: string): boolean{\n\n for(var i=0; i{\n this.canCreateEdit = resp;\n },\n error:(error)=>{\n this.canCreateEdit = false;\n }\n });\n\n this.permissaoAcessoService.canRemove(window.location.href).subscribe({\n next:(resp)=>{\n this.canRemove = resp;\n },\n error:(error)=>{\n this.canRemove = false;\n }\n });\n\n\n }\n \n\n uploadEdital(fileLoader: HTMLInputElement){\n\n let that = this;\n\n fileLoader.onchange = function () {\n\n let banner = fileLoader.files[0];\n \n that.arquivoService.upload( banner\n , ENTIDADE.VESTIBULAR\n , that.vestibular.id\n , DIRETORIO.EDITAL\n , TIPO_ARQUIVO.PDF ).subscribe(\n resp=>{\n \n that.vestibular.arquivoEdital = resp.body;\n fileLoader.value = '';\n\n },\n error=>{\n console.log(error);\n }\n ); \n \n }\n\n fileLoader.click();\n\n \n }\n\n\n async openPopoverSelecionarCurso() {\n \n \n const popover = await this.popoverController.create({\n component: PopoverSelecionarCursosVestibularComponent,\n componentProps: {'cursos': this.cursos,\n 'posGraduacao': true,\n 'graduacao': false,\n 'extensao': false,\n 'vestibularCursosSelecionados': this.vestibular.vestibularCursos },\n translucent: false,\n showBackdrop: true,\n backdropDismiss: false,\n //event: event,\n cssClass: 'global-popover', //definido no global.css \n \n });\n\n await popover.present();\n \n await popover.onDidDismiss().then((data)=>{\n\n if(data.data){\n\n if(!this.vestibular.vestibularCursos){\n this.vestibular.vestibularCursos = [];\n }\n\n this.vestibular.vestibularCursos = data.data; \n \n this.setTextoCursosSelecionados();\n\n }\n \n });\n }\n\n\n setTextoCursosSelecionados() {\n\n if(!this.vestibular.vestibularCursos){\n this.vestibular.vestibularCursos = [];\n }\n // Cria um conjunto único de cursos a partir dos cursosSelecionados\n const cursosUnicos = this.vestibular.vestibularCursos.reduce((acc, vcAtual) => {\n\n console.log(acc)\n // Verifica se o curso já está no array de cursos únicos\n if (!acc.some(curso => curso.id === vcAtual.curso.id)) {\n acc.push(vcAtual.curso);\n }\n return acc;\n }, []);\n\n if (cursosUnicos.length === 0) {\n this.textoCursosSelecionados = 'Nenhum curso selecionado';\n } else if (cursosUnicos.length === this.cursos.length) {\n this.textoCursosSelecionados = 'Todos os cursos';\n } else if (cursosUnicos.length < 4) {\n this.textoCursosSelecionados = cursosUnicos.map(curso => {\n const habilitacaoTexto = curso.habilitacao ? `${curso.nome} - ${curso.habilitacao.nome} (${curso.modalidade.nome})` : `${curso.nome} (${curso.modalidade.nome})`;\n return habilitacaoTexto;\n }).join(', ');\n } else {\n const primeirosCursosTexto = cursosUnicos.slice(0, 2).map(curso => {\n const habilitacaoTexto = curso.habilitacao ? `${curso.nome} - ${curso.habilitacao.nome} (${curso.modalidade.nome})` : `${curso.nome} (${curso.modalidade.nome})`;\n return habilitacaoTexto;\n }).join(', ');\n this.textoCursosSelecionados = `${primeirosCursosTexto} e outros ${cursosUnicos.length - 2} cursos`;\n }\n }\n\n\n\n validate(): boolean{\n\n \n\n if(!this.vestibular.codigoEdital){\n this.functionsService.showAlert( 'Atenção!'\n , 'Informe o Código do Edital.'\n , ['Ok']);\n\n return false; \n\n }\n\n if(!this.vestibular.vestibularCursos || this.vestibular.vestibularCursos.length==0){\n this.functionsService.showAlert( 'Atenção!'\n , 'Inclua ao menos um curso no agendamento.'\n , ['Ok']);\n\n return false; \n }\n\n if(!this.vestibular.formasIngresso || this.vestibular.formasIngresso.length==0){\n this.functionsService.showAlert( 'Atenção!'\n , 'Ative ao menos uma forma de ingresso.'\n , ['Ok']);\n\n return false; \n }\n\n //loop em todas as formas de ingresso adicionadas na agenda\n for(var i=0; i {\n this.functionsService.dismissLoading();\n this.functionsService.showAlert('Sucesso!', 'Agendamento criado com sucesso!', [{\n text: 'Ok',\n handler: () => {\n //this.functionsService.navigate('modulo-gc/gc-listar-vestibulares');\n }\n }]);\n },\n error: (error) => {\n console.log(error);\n this.functionsService.dismissLoading();\n this.functionsService.showErrorAlert('Atenção!', 'Ocorreu um erro ao criar o agendamento.', error, ['Ok']);\n }\n });\n } else {\n // Atualiza o vestibular existente\n this.vestibularService.update(this.vestibular).subscribe({\n next: (resp) => {\n this.functionsService.dismissLoading();\n this.functionsService.showAlert('Sucesso!', 'Agendamento atualizado com sucesso!', [{\n text: 'Ok',\n handler: () => {\n //this.functionsService.navigate('modulo-gc/gc-listar-vestibulares');\n }\n }]);\n },\n error: (error) => {\n console.log(error);\n this.functionsService.dismissLoading();\n this.functionsService.showErrorAlert('Atenção!', 'Ocorreu um erro ao atualizar o agendamento.', error, ['Ok']);\n }\n });\n }\n }\n\n\n \n\n async openPopoverSelecionarData(formaIngresso: FormaIngressoDTO, dataAtualmenteSelecionada: Date, titulo: string, objetivo: string) {\n \n let horaAtualmenteSelecionada: string;\n if(dataAtualmenteSelecionada){\n\n dataAtualmenteSelecionada = new Date(dataAtualmenteSelecionada);\n let hora = dataAtualmenteSelecionada.getHours();\n let min = dataAtualmenteSelecionada.getMinutes();\n\n if(hora<10){\n horaAtualmenteSelecionada = '0' + hora.toString() + ':';\n }else{\n horaAtualmenteSelecionada = hora.toString() + ':';\n }\n\n //complementa com os minutos\n if(min<10){\n horaAtualmenteSelecionada += '0' + min.toString();\n }else{\n horaAtualmenteSelecionada += min.toString();\n }\n\n \n }\n \n const popover = await this.popoverController.create({\n component: PopoverSelecionarDataComponent,\n cssClass: 'popover-calendar',\n translucent: false,\n showBackdrop: true,\n backdropDismiss: false,\n componentProps: { selectedDate: dataAtualmenteSelecionada\n , hour: horaAtualmenteSelecionada\n , hourMandatory: true\n , title: titulo }\n });\n\n \n await popover.present();\n \n await popover.onDidDismiss().then((data)=>{\n\n if(data.data){\n\n \n \n dataAtualmenteSelecionada = data.data;\n\n if(objetivo.toLocaleLowerCase().indexOf('início inscrição')>-1){\n formaIngresso.dataInicioInscricao = new Date(dataAtualmenteSelecionada);\n\n if( formaIngresso.dataFimInscricao && \n new Date(formaIngresso.dataFimInscricao).getTime()<=formaIngresso.dataInicioInscricao.getTime()){\n \n this.functionsService.showAlert( 'Atenção!'\n , 'O início do período de inscrição deve ser anterior ao encerramento do período.'\n , ['Ok']);\n }\n\n }else if(objetivo.toLocaleLowerCase().indexOf('fim inscrição')>-1){\n formaIngresso.dataFimInscricao = new Date(dataAtualmenteSelecionada);\n\n if( formaIngresso.dataInicioInscricao && \n new Date(formaIngresso.dataInicioInscricao).getTime()>=formaIngresso.dataFimInscricao.getTime()){\n \n this.functionsService.showAlert( 'Atenção!'\n , 'O encerramento do período de inscrição deve ser posterior ao início do período.'\n , ['Ok']);\n }\n\n }else if(objetivo.toLocaleLowerCase().indexOf('início entrega documentação para inscrição')>-1){\n formaIngresso.dataInicioEntregaDocumentacaoInscricao = new Date(dataAtualmenteSelecionada);\n \n if( formaIngresso.dataFimEntregaDocumentacaoInscricao && \n new Date(formaIngresso.dataFimEntregaDocumentacaoInscricao).getTime()<=formaIngresso.dataInicioEntregaDocumentacaoInscricao.getTime()){\n \n this.functionsService.showAlert( 'Atenção!'\n , 'O início do período de entrega de documentação para inscrição deve ser anterior ao encerramento do período.'\n , ['Ok']);\n }\n \n }else if(objetivo.toLocaleLowerCase().indexOf('fim entrega documentação para inscrição')>-1){\n formaIngresso.dataFimEntregaDocumentacaoInscricao = new Date(dataAtualmenteSelecionada);\n \n if( formaIngresso.dataInicioEntregaDocumentacaoInscricao && \n new Date(formaIngresso.dataInicioEntregaDocumentacaoInscricao).getTime()>=formaIngresso.dataFimEntregaDocumentacaoInscricao.getTime()){\n \n this.functionsService.showAlert( 'Atenção!'\n , 'O encerramento do período de entrega de documentação para inscrição deve ser posterior ao início período.'\n , ['Ok']);\n \n }\n \n \n }else if(objetivo.toLocaleLowerCase().indexOf('início matrícula')>-1){\n formaIngresso.dataInicioMatricula = new Date(dataAtualmenteSelecionada);\n \n if( formaIngresso.dataFimMatricula && \n new Date(formaIngresso.dataFimMatricula).getTime()<=formaIngresso.dataInicioMatricula.getTime()){\n \n this.functionsService.showAlert( 'Atenção!'\n , 'O início do período de matrícula deve ser anterior ao encerramento do período.'\n , ['Ok']);\n }\n \n }else if(objetivo.toLocaleLowerCase().indexOf('fim matrícula')>-1){\n formaIngresso.dataFimMatricula = new Date(dataAtualmenteSelecionada);\n \n if( formaIngresso.dataInicioMatricula && \n new Date(formaIngresso.dataInicioMatricula).getTime()>=formaIngresso.dataFimMatricula.getTime()){\n \n this.functionsService.showAlert( 'Atenção!'\n , 'O encerramento do período de matrícula deve ser posterior ao início período.'\n , ['Ok']);\n \n }\n \n \n }else if(objetivo.toLocaleLowerCase().indexOf('limite prova online')>-1){\n formaIngresso.dataLimiteProvaSemAgendamento = new Date(dataAtualmenteSelecionada);\n \n }else if(objetivo.toLocaleLowerCase().indexOf('limite curso online')>-1){\n formaIngresso.dataLimiteCursoOnlineMoodle = new Date(dataAtualmenteSelecionada);\n \n }\n \n }\n \n });\n \n \n }\n\n\n async openPopoverSelecionarPeriodo(formaIngresso: FormaIngressoDTO, selectedRanges: RangeDTO[] = []) {\n \n \n let title = 'Calendário';\n\n if(formaIngresso.tipo.nome === TIPO_FORMA_INGRESSO.VESTIBULAR_ONLINE){\n title = 'Agendar Prova Online'\n }else if(formaIngresso.tipo.nome === TIPO_FORMA_INGRESSO.VESTIBULAR_PRESENCIAL){\n title = 'Agendar Prova Presencial'\n }\n \n const popover = await this.popoverController.create({\n component: PopoverSelecionarPeriodoComponent,\n cssClass: 'popover-calendar',\n translucent: false,\n showBackdrop: true,\n backdropDismiss: false,\n componentProps: { selectedRanges: selectedRanges\n , startHour: selectedRanges[0]?.startHour\n , endHour: selectedRanges[0]?.endHour\n , hourMandatory: true\n , vacanciesMandatory: true\n , vacanciesPerDate: selectedRanges[0]?.vacancies\n , title: title }\n });\n\n \n await popover.present();\n \n await popover.onDidDismiss().then((data)=>{\n \n //datas que foram selecionadas no calendário\n let rangesSelecionados: RangeDTO[] = data.data;\n\n for(var i=0; iEscolha uma data posterior a ' + this.functionsService.getDateBrPattern(formaIngresso.dataInicioInscricao)\n , [{\n text: 'Ok',\n handler: () => {\n this.openPopoverSelecionarPeriodo(formaIngresso, rangesSelecionados);\n }\n }]);\n \n return; \n \n }\n }\n\n //não add se for domingo\n if(new Date(prova.dataInicio).getDay()!==0){\n\n \n let existe = false;\n //não inserir novamente data que já está agendada\n for(var indexProva=0; indexProva0){\n const lastDateRange = new Date(range.dates[ range.dates.length-1 ]); \n const nextDate = new Date(formaIngresso.provas[i].dataInicio); //próxima data a ser inserida \n \n let beforeNextDay = nextDate;\n beforeNextDay.setDate(nextDate.getDate()-1); //um dia antes da próxima data a ser inserida\n \n //se a próxima data não for 1 dia após a última data então é um novo range \n if(lastDateRange && (lastDateRange.getTime() !== beforeNextDay.getTime())){\n \n //armazena o último range montado\n ranges.push(range);\n //inicia um novo range\n range = new RangeDTO();\n range.dates = [];\n }\n }\n \n //inicializa o range\n if(!range.start){\n range.start = new Date(formaIngresso.provas[i].dataInicio);\n range.startHour = formaIngresso.provas[i].horaInicio;\n range.endHour = formaIngresso.provas[i].horaFim;\n range.vacancies = formaIngresso.provas[i].totalVagas;\n \n }\n \n //depois de inicializado só atualiza a data fim \n range.end = new Date(formaIngresso.provas[i].dataFim);\n range.dates.push( formaIngresso.provas[i].dataInicio );\n \n\n }\n \n i++;\n }\n\n //add o último range trabalhado\n ranges.push(range);\n\n return ranges;\n }\n\n\n\n removeProva(formaIngresso: any, indexProva: number){\n\n this.functionsService.presentLoading('');\n\n //se não tiver salvo no bd ainda, então não precisa validar se já tem inscritos\n if(!formaIngresso.provas[indexProva].id){\n formaIngresso.provas.splice(indexProva,1);\n this.functionsService.dismissLoading();\n return;\n }\n\n\n let dataInicioProva: Date = new Date(formaIngresso.provas[indexProva].dataInicio);\n const horaInicioProva: string = formaIngresso.provas[indexProva].horaInicio.substring(0,2);\n const minInicioProva: string = formaIngresso.provas[indexProva].horaInicio.substring(3,5);\n \n let dataFimProva: Date = new Date(formaIngresso.provas[indexProva].dataFim);\n const horaFimProva: string = formaIngresso.provas[indexProva].horaFim.substring(0,2);\n const minFimProva: string = formaIngresso.provas[indexProva].horaFim.substring(3,5);\n \n dataInicioProva.setHours(parseInt(horaInicioProva), parseInt(minInicioProva), 0);\n dataFimProva.setHours(parseInt(horaFimProva), parseInt(minFimProva), 0);\n\n\n this.inscricaoService.countByDataProva(dataInicioProva,dataFimProva, formaIngresso.id).subscribe(\n resp=>{\n\n //se tiver alguma inscrição agendada na data e hora desta prova então ela não pode ser removida\n if(resp>0){\n \n this.functionsService.dismissLoading();\n \n let msg = 'Não é possível excluir este agendamento, pois há ' + resp + ' inscrições agendadas nesta data.';\n if(resp===1){\n msg = 'Não é possível excluir este agendamento, pois há 1 inscrição agendada nesta data.';\n } \n this.functionsService.showAlert('Atenção!', msg, ['Ok']);\n }else{\n //remove a data\n formaIngresso.provas.splice(indexProva,1);\n this.functionsService.dismissLoading();\n }\n \n },\n error=>{\n this.functionsService.dismissLoading();\n }\n );\n \n \n\n }\n\n\n\n setTaxaInscricao(formaIngresso: FormaIngressoDTO, valor: any){\n valor = valor.replace('R$','').replace('.','').replace(',','.').valueOf();\n \n if(Number.parseFloat(valor)>99999.99){\n this.functionsService.showAlert('Atenção!','Valor inválido.
Máximo: R$ 99.999,99',['Ok']);\n formaIngresso.valorTaxaInscricao = 0;\n return;\n }\n \n formaIngresso.valorTaxaInscricao = Number.parseFloat(valor);\n \n }\n\n getCurrencyValue(valor: any): string{\n return this.functionsService.getCurrencyValue(valor); \n }\n\n\n async removeEdital(){\n \n const confirma = await this.functionsService.showConfirmAlert( \"Confirma?\"\n , \"Confirma a exclusão do edital?\"\n , \"Confirmar\"\n , \"Cancelar\" );\n\n\n if(!confirma){\n return;\n }\n\n this.functionsService.presentLoading();\n\n const idArquivoEdital = this.vestibular.arquivoEdital.id;\n\n this.vestibular.arquivoEdital = null;\n //remove o edital para quebrar a constraint\n this.vestibularService.update(this.vestibular).subscribe({\n next:(resp)=>{\n\n //remove o arquivo do edital\n this.arquivoService.delete(idArquivoEdital).subscribe(\n resp=>{\n this.vestibular.arquivoEdital = null;\n this.functionsService.dismissLoading();\n },\n error=>{\n console.log(error);\n this.functionsService.dismissLoading();\n }\n );\n\n },\n error:(error)=>{\n console.log(error);\n this.functionsService.dismissLoading();\n }\n });\n \n \n }\n\n open(arquivo: ArquivoDTO, newWindow: boolean = true){\n\n const publicURL = this.getFilePublicURL(arquivo.path, arquivo.nome);\n\n this.functionsService.goToPath(publicURL,newWindow);\n }\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 outOfDate(prova: ProvaDTO, formaIngresso: FormaIngressoDTO): boolean{\n\n //prova começa antes do período de inscrição?\n if(new Date(prova.dataInicio).getTime() < new Date(formaIngresso.dataInicioInscricao).getTime() ){\n return true;\n }\n\n return false;\n }\n\n\n\n \n validateMinDaysInAdvance(input: IonInput){\n\n //a antecedência mínima deve ser de 1 dia\n\n let valor;\n try{\n \n valor = parseInt(input.value.toString());\n \n if(valor<1){\n this.functionsService.showAlert( 'Atenção!'\n , 'A antecedência mínima possível é de 1 dia!
Isso equivale a permitir aos candidatos se inscreverem em determinada prova até no máximo as 23:59h do dia anterior à sua realização.'\n , ['Ok']);\n input.value = 1; \n }\n\n }catch(err){\n\n }\n \n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { IonicModule } from '@ionic/angular';\n\nimport { GcAgendarPosGraduacaoPageRoutingModule } from './gc-agendar-pos-graduacao-routing.module';\n\nimport { GcAgendarPosGraduacaoPage } from './gc-agendar-pos-graduacao.page';\nimport { QuillModule } from 'ngx-quill';\nimport { BrMaskerModule } from 'br-mask';\nimport { ComponentsModule } from 'src/app/components/components.module';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n ComponentsModule,\n BrMaskerModule,\n QuillModule,\n GcAgendarPosGraduacaoPageRoutingModule\n ],\n declarations: [GcAgendarPosGraduacaoPage]\n})\nexport class GcAgendarPosGraduacaoPageModule {}\n"],"sourceRoot":"webpack:///","file":"8044.94e2727bc0d95541.js"}