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ACFA,QAEFA,eAldaA,gCAYoEA,uCAIfA,oCAkBjDA,2CAaAA,8CAaGA,6CAMAA,mDAeAA,2CAA2B,8BAEFA,mCAcqDA,uCAM9CA,wCA4BJA,yCAU9BA,2CAIZA,8EAOYA,0CASgBA,mCACEA,qCACGA,qCACHA,kCAqDwDA,wCAM5CA,kIAUhBA,qDAwBgEA,uCAKhDA,sHASpCA,8BAAkB,cAAlBA,CAAkB,gBAAlBA,CAAkB,eAAlBA,CAAkB,UAAlBA,CAAkB,gBAAlBA,CAAkB,YAAlBA,CAAkB,qBAAlBA,CAAkB,gBAAlBA,CAAkB,mBAAlBA,CAAkB,oBAAlBA,CAAkB,kBAAlBA,CAAkB,UAAlBA,CAAkB,mBAgBoBA,iDAqDgCA,uCAKlCA,yHAQpCA,8BAAkB,cAAlBA,CAAkB,gBAAlBA,CAAkB,eAAlBA,CAAkB,UAAlBA,CAAkB,gBAAlBA,CAAkB,YAAlBA,CAAkB,qBAAlBA,CAAkB,gBAAlBA,CAAkB,mBAAlBA,CAAkB,oBAAlBA,CAAkB,kBAAlBA,CAAkB,UAAlBA,CAAkB,0CAgBmBA,kDAwCvCA,8CAYAA,6CAYAA,oDAoB+DA,uCAKfA,isECza7CwR,GAAb,MCnBO,IAAMG,GAAb,MAAM,sDAAOA,4DAHF,CAACC,cAAsBlK,KACtBkK,QAECD,GAAb,GCOaE,GAAb,MAAM,sDAAOA,4DAXF,CACPC,KACAC,KACAC,KACAL,GACAM,IACAC,KACAC,SAISN,GAAb,+DCjBO,IAAMO,EAAb,MAAM,QASJhS,cANOK,oBAA2C,IAAI4R,KAAyB,GAGxE5R,4BAAkD,IAAI4R,IAAwB,iDAN1ED,gCAAkBE,QAAlBF,EAAkB,qBAFjB,SAEDA,GAAb","names":["i0","ctx_r2","oxw","PopoverListarInscricoesComponent","constructor","popoverController","ngOnInit","find","idInscricao","this","dismiss","selectors","ctx_r3","ctx_r5","HeaderGcComponent","storageService","functionsService","inscricaoService","dataSharingService","usuarioLogado","getUsuarioLogado","location","pathname","indexOf","showNotificacaoNovosDocsEnviados","getMostRecentUpdated","source","interval","subscription","subscribe","val","unsubscribe","tipoDocumentos","findByUltimosDocsInscricaoEnviados","next","resp","inscricoesRecentementeAtualizadas","error","console","log","findByUltimosDocsMatriculaEnviados","ngOnDestroy","hideSubmenu","event","idSubmenu","element","document","getElementById","style","visibility","showSubmenu","showingSubmenu","showHideSubmenu","goToPath","path","logoff","setUsuarioLogado","openPopoverListarInscricoes","popover","create","component","componentProps","inscricoes","translucent","showBackdrop","backdropDismiss","trigger","present","onDidDismiss","then","data","idInscricaoSelecionada","i","length","id","dataUltimaVisualizacaoDocumentacaoInscricao","Date","dataUltimaVisualizacaoDocumentacaoMatricula","update","TIPO_ARQUIVO","IMAGEM","PDF","VIDEO","DOCX","XLSX","PPTX","JPG","PNG","ZIP","ctx_r23","ctx_r25","ctx_r28","ctx_r33","ctx_r37","ctx_r39","ctx_r40","ctx_r48","ctx_r51","ctx_r54","ctx_r60","ctx_r67","ctx_r70","ctx_r73","ctx_r77","ctx_r79","SwiperCore","Autoplay","Keyboard","Pagination","Navigation","Scrollbar","Zoom","EffectFade","EffectCube","EffectCoverflow","EffectFlip","EffectCards","EffectCreative","Lazy","icons","quill","import","routes","Quill","noticiaService","grupoNoticiaService","arquivoService","activatedRoute","sanitizer","permissaoAcessoService","NoticiaDTO","bold","italic","underline","strike","findAll","grupos","ionViewWillEnter","presentLoading","checkAccessControl","noticia","status","STATUS_PUBLICACAO","queryParams","param","resp2","galeriaVideos","safePath","getSafeURL","n","_a","galeriaDownloads","ordemExibicao","sortArrayByOrder","galeriaFotos","dismissLoading","error2","errorParam","arr","sort","a","b","canCreateAndEdit","window","href","canCreateEdit","canPublish","compareGroup","g1","g2","ionViewDidLeave","banner","titulo","subtitulo","grupo","texto","delete","uploadBanner","fileLoader","that","onchange","upload","files","ENTIDADE","DIRETORIO","body","click","uploadPDF","pdf","name","push","setLegendaPDF","removePDF","index","splice","uploadImage","foto","removeImage","getFilePublicURL","fullPath","fileName","getLegendaPDF","indexPDF","legenda","substring","save","mustValidate","showValidationMessage","publish","validate","showConfirmAlert","processTags","showAlert","text","handler","dataCriacao","insert","tagsInput","tagsArray","split","map","tag","trim","filter","self","tags","dataPublicacao","quit","navigate","resumo","preview","url","replace","addVideo","showConfirmAlertGetValue","indexUrlStart","indexUrlEnd","toString","video","ArquivoDTO","dataGravacao","tipo","removeVideo","o","bypassSecurityTrustResourceUrl","setLenght","field","RESUMO","editor","getLength","MAX_LENGTH_RESUMO","deleteText","LENGTH_RESUMO","getMaxSlidesPerView","normalQuantity","screen","width","reorderDownloads","ev","customEvent","toIndex","detail","to","movedItem","from","forEach","complete","editLegendaPDF","fileIndex","arquivo","nome","reorderPhotos","move","aux","vizinho","respAux","respViz","errorViz","errorAux","reorderVideos","GcCadastrarNoticiaPage","IonContent","ctx","GcCadastrarNoticiaPageRoutingModule","RouterModule","GcCadastrarNoticiaPageModule","CommonModule","FormsModule","IonicModule","ComponentsModule","SwiperModule","QuillModule","DataSharingService","BehaviorSubject","factory"],"sources":["./src/app/components/header-gc/components/popover-listar-inscricoes/popover-listar-inscricoes.component.html","./src/app/components/header-gc/components/popover-listar-inscricoes/popover-listar-inscricoes.component.ts","./src/app/components/header-gc/header-gc.component.html","./src/app/components/header-gc/header-gc.component.ts","./src/app/config/tipo-arquivo.config.ts","./src/app/pages/modulo-gc/site/gc-cadastrar-noticia/gc-cadastrar-noticia.page.html","./src/app/pages/modulo-gc/site/gc-cadastrar-noticia/gc-cadastrar-noticia.page.ts","./src/app/pages/modulo-gc/site/gc-cadastrar-noticia/gc-cadastrar-noticia-routing.module.ts","./src/app/pages/modulo-gc/site/gc-cadastrar-noticia/gc-cadastrar-noticia.module.ts","./src/app/services/common/data-sharing.service.ts"],"sourcesContent":["
\n\n
\n \n {{inscricao.candidato.nome}} {{inscricao.candidato.sobrenome}}, inscrição {{inscricao.id}}, enviou nova documentação.\n \n
\n\n
","import { PopoverController } from '@ionic/angular';\nimport { InscricaoDTO } from '../../../../models/vestibular/inscricaoDTO';\nimport { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-popover-listar-inscricoes',\n templateUrl: './popover-listar-inscricoes.component.html',\n styleUrls: ['./popover-listar-inscricoes.component.scss'],\n})\nexport class PopoverListarInscricoesComponent implements OnInit {\n\n constructor( private popoverController: PopoverController ) { }\n\n inscricoes: InscricaoDTO[];\n\n ngOnInit() {}\n\n\n find(idInscricao: number){\n\n //fecha o popover e indica o id da inscrição para disparar o método find do componente header-gc\n this.popoverController.dismiss(idInscricao);\n }\n}\n"," \n\n \n \"logo\"\n\n \n\n 0\">\n {{inscricoesRecentementeAtualizadas.length}}\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","import { DataSharingService } from './../../services/common/data-sharing.service';\nimport { PopoverListarInscricoesComponent } from './components/popover-listar-inscricoes/popover-listar-inscricoes.component';\nimport { PopoverController } from '@ionic/angular';\nimport { InscricaoDTO } from '../../models/vestibular/inscricaoDTO';\nimport { InscricaoService } from './../../services/inscricao/inscricao.service';\nimport { UsuarioDTO } from '../../models/controle-acesso/usuarioDTO';\nimport { StorageService } from './../../services/storage/storage.service';\nimport { FunctionsService } from './../../services/common/functions.service';\nimport { Component, OnInit, ViewChild } from '@angular/core';\nimport { interval, Subscription } from 'rxjs';\n\n@Component({\n selector: 'app-header-gc',\n templateUrl: './header-gc.component.html',\n styleUrls: ['./header-gc.component.scss'],\n})\nexport class HeaderGcComponent implements OnInit {\n\n \n\n showingSubmenu = '';\n menuGCItems = [];\n usuarioLogado: UsuarioDTO = null;\n\n showNotificacaoNovosDocsEnviados: boolean = false;\n inscricoesRecentementeAtualizadas: InscricaoDTO[] = [];\n\n subscription: Subscription;\n\n constructor( private storageService : StorageService\n , private functionsService: FunctionsService\n , private inscricaoService: InscricaoService\n , private popoverController: PopoverController\n , private dataSharingService: DataSharingService ) { \n\n this.usuarioLogado = this.storageService.getUsuarioLogado(); \n \n if(location.pathname.indexOf('modulo-gc/gc-analisar-documentacao-inscricao')>-1){\n this.showNotificacaoNovosDocsEnviados = true;\n \n this.getMostRecentUpdated('inscrição');\n\n //repetir a consulta de inscrições recentemente atualizadas a cada 60 segundos\n const source = interval(60000);\n this.subscription = source.subscribe(val => this.getMostRecentUpdated('inscrição'));\n\n }else if(location.pathname.indexOf('modulo-gc/gc-analisar-documentacao-matricula')>-1){\n \n this.showNotificacaoNovosDocsEnviados = true;\n this.getMostRecentUpdated('matrícula');\n\n //repetir a consulta de inscrições recentemente atualizadas a cada 60 segundos\n const source = interval(60000);\n this.subscription = source.subscribe(val => this.getMostRecentUpdated('matrícula'));\n }else {\n // Cancelar a execução de this.getMostRecentUpdated\n this.showNotificacaoNovosDocsEnviados = false;\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n }\n\n getMostRecentUpdated(tipoDocumentos: string){\n\n if(tipoDocumentos=='inscrição'){\n this.inscricaoService.findByUltimosDocsInscricaoEnviados().subscribe({\n next:(resp)=>{\n this.inscricoesRecentementeAtualizadas = resp;\n \n },\n error:(error)=>{\n console.log(error);\n }\n });\n \n }else if(tipoDocumentos == 'matrícula'){\n\n this.inscricaoService.findByUltimosDocsMatriculaEnviados().subscribe({\n next:(resp)=>{\n this.inscricoesRecentementeAtualizadas = resp;\n \n },\n error:(error)=>{\n console.log(error);\n }\n });\n\n }\n \n\n }\n\n ngOnInit() {\n \n }\n\n ngOnDestroy() {\n \n //mata a repetição das consultas de atualização da tela\n if(this.subscription){\n this.subscription.unsubscribe();\n }\n \n }\n\n /**\n * método disparado pelo evento mouseout \n */\n hideSubmenu(event, idSubmenu: string) { \n \n let element = document.getElementById(idSubmenu);\n //this.showingSubmenu = idSubmenu; \n if(element){\n element.style.visibility = 'hidden';\n }\n \n \n }\n\n /**\n * método disparado pelo evento mouseenter \n */\n showSubmenu(idSubmenu: string){\n \n this.showingSubmenu = idSubmenu;\n\n let element = document.getElementById(idSubmenu);\n \n if(element){\n element.style.visibility = 'visible';\n }\n \n\n }\n\n\n /*\n método usado para tablets, disparado através do click no menu, pois em tablet não tem cursor do mouse\n */\n showHideSubmenu(idSubmenu: string){\n \n this.showingSubmenu = idSubmenu;\n\n let element = document.getElementById(idSubmenu);\n \n if(element){\n\n if(element.style.visibility === 'visible'){\n element.style.visibility = 'hidden';\n }else{\n element.style.visibility = 'visible';\n }\n }\n \n }\n\n\n \n goToPath(path:string){\n\n if(path){\n this.functionsService.goToPath(path);\n }\n }\n \n\n logoff(){\n this.storageService.setUsuarioLogado(null);\n this.functionsService.goToPath('modulo-gc/gc-login');\n\n }\n\n\n async openPopoverListarInscricoes(event) {\n \n let tipoDocumentos = 'inscrição';\n if(location.pathname.indexOf('modulo-gc/gc-analisar-documentacao-matricula')>-1){\n tipoDocumentos = 'matrícula'\n }\n const popover = await this.popoverController.create({\n component: PopoverListarInscricoesComponent,\n componentProps: { 'inscricoes': this.inscricoesRecentementeAtualizadas\n , 'tipoDocumentos': tipoDocumentos},\n translucent: false,\n showBackdrop: true,\n backdropDismiss: true,\n event: event,\n trigger: event,\n //cssClass: 'popover-listar-inscricoes', //definido no global.css \n \n });\n\n await popover.present();\n \n //quando fechar o popover\n await popover.onDidDismiss().then((data)=>{\n\n //se tiver selecionado uma inscrição o campo data.data estará preenchido do contrário será null\n if(data && data.data){\n\n //informa ao serviço de notificação/compartilhamento de dados entre componentes o id da inscrição selecionada\n //este id será utilizado para preencher a tela de análise de docs com a inscrição selecionada\n this.dataSharingService.idInscricaoSelecionada.next( data.data ); \n\n //atualiza a inscrição selecionada para ela sair da lista\n for(var i=0; i{\n\n //atualizar o contador no ícone de notificações\n this.getMostRecentUpdated(tipoDocumentos);\n\n },\n error:(error)=>{\n console.log(error);\n }\n });\n\n }\n }\n \n }\n \n });\n \n }\n}\n","export const TIPO_ARQUIVO = {\r\n \r\n IMAGEM: \"IMAGEM\",\r\n PDF: \"PDF\",\r\n VIDEO: \"VIDEO\" ,\r\n DOCX: \"DOCX\",\r\n XLSX: \"XLSX\",\r\n PPTX: \"PPTX\",\r\n JPG: \"JPG\",\r\n PNG: \"PNG\",\r\n ZIP: \"ZIP\"\r\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 CADASTRO DE NOTÍCIA\n \n \n\n
\n\n \n
Título
\n \n \n \n\n
\n \n
Subtítulo
\n \n \n \n\n
\n\n \n \n \n  Destacar esta notícia\n \n\n \n \n \n  Publicar na home\n \n \n

\n\n \n
Grupo da Notícia
\n \n \n Grupo\n \n {{grupo.nome}}\n \n \n \n\n

\n\n\n \n
\n
Banner Principal
\n\n \n \n \n Upload Banner  \n \n \n
\n\n \n \n \n \n \n \n\n \n \n\n \n\n Legenda do Banner\n \n\n \n \n\n \n \n \n\n \n \n Nenhum Banner\n \n \n\n

\n\n \n
Resumo
\n \n
\n
\n
\n {{LENGTH_RESUMO}} de {{MAX_LENGTH_RESUMO}} caracteres\n
\n\n

\n\n \n
Texto da Notícia
\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 \n \n \n
\n
\n \n\n\n \n \n \n \n

\n\n \n
\n
Lista de PDF's para Download
\n \n \n \n \n Upload PDF  \n \n \n
\n\n \n \n Nenhum PDF para download\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
Galeria de Fotos
\n\n \n \n \n Upload Foto  \n \n \n
\n \n \n A galeria de fotos está vazia\n \n \n\n \n\n \n \n\n \n\n \n \n \n \n \n \n \n
\n 1\" (click)=\"reorderPhotos(i,-1)\"> \n {{foto.ordemExibicao}}\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\n \n
\n
Galeria de Vídeos
\n\n \n Adicionar Vídeo  \n \n \n
\n \n \n A galeria de vídeos está vazia\n \n \n \n\n \n \n\n \n \n\n \n \n \n \n
\n 1\" (click)=\"reorderVideos(i,-1)\"> \n {{video.ordemExibicao}}\n \n
\n
\n
\n \n \n \n \n\n \n
\n
\n \n \n \n
\n
\n
\n\n

\n\n \n
SEO
\n
\n \n \n
Tags
\n \n \n \n \n \n\n
\n\n \n
Title Tag
\n \n \n \n \n\n
\n\n \n
Meta Description
\n \n \n \n \n
\n \n\n
\n\n \n Voltar  \n \n \n\n \n Visualizar  \n \n \n\n \n Salvar  \n \n \n\n \n Publicar  \n \n \n\n
\n
\n\n
","import { PermissaoAcessoService } from '../../../../services/permissao-acesso/permissao-acesso.service';\nimport { TIPO_ARQUIVO } from '../../../../config/tipo-arquivo.config';\nimport { STATUS_PUBLICACAO } from '../../../../config/status-publicacao.config';\nimport { DIRETORIO } from '../../../../config/diretorio.config';\nimport { ENTIDADE } from '../../../../config/entidade.config';\nimport { ActivatedRoute } from '@angular/router';\nimport { GrupoNoticiaService } from '../../../../services/grupo-noticia/grupo-noticia.service';\nimport { GrupoNoticiaDTO } from '../../../../models/site/grupoNoticiaDTO';\nimport { FunctionsService } from '../../../../services/common/functions.service';\nimport { IonContent, IonReorderGroup, ItemReorderEventDetail } from '@ionic/angular';\nimport { ArquivoService } from '../../../../services/arquivo/arquivo.service';\nimport { NoticiaService } from '../../../../services/noticia/noticia.service';\nimport { NoticiaDTO } from '../../../../models/site/noticiaDTO';\nimport { Component, OnInit, ViewChild } from '@angular/core';\n\nimport SwiperCore, { Autoplay, Keyboard, Pagination, Navigation, Scrollbar, Zoom, EffectFade, EffectCube, EffectCoverflow, EffectFlip, EffectCards, EffectCreative, Lazy } from 'swiper';\nimport { ArquivoDTO } from 'src/app/models/arquivoDTO';\n\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\n\n\nSwiperCore.use([Autoplay, Keyboard, Pagination, Navigation, Scrollbar, Zoom, EffectFade, EffectCube, EffectCoverflow, EffectFlip, EffectCards, EffectCreative, Lazy]);\n\nimport * as Quill from 'quill';\nconst quill: any = Quill\nconst icons = quill.import('ui/icons');\nconst fonts = Quill.import(\"attributors/style/font\");\nconst sizes = Quill.import('attributors/style/size');\n\n\n@Component({\n selector: 'app-gc-cadastrar-noticia',\n templateUrl: './gc-cadastrar-noticia.page.html',\n styleUrls: ['./gc-cadastrar-noticia.page.scss'],\n})\nexport class GcCadastrarNoticiaPage implements OnInit {\n\n @ViewChild(IonContent) content: IonContent;\n\n canCreateEdit: boolean;\n canPublish: boolean;\n\n\n noticia: NoticiaDTO = new NoticiaDTO();\n grupos: GrupoNoticiaDTO[] = [];\n\n RESUMO: string = 'RESUMO';\n TEXTO: string = 'TEXTO';\n\n LENGTH_RESUMO: number = 0;\n LENGTH_TEXTO: number = 0;\n \n MAX_LENGTH_RESUMO: number = 240;\n LENGTH_APARENTE_TEXTO = 0;\n LENGTH_REAL_TEXTO = 0;\n \n //safeVideoPaths: any[] = [];\n \n constructor( private noticiaService: NoticiaService\n , private grupoNoticiaService: GrupoNoticiaService\n , private arquivoService: ArquivoService\n , private functionsService: FunctionsService\n , private activatedRoute: ActivatedRoute\n , private sanitizer: DomSanitizer \n , private permissaoAcessoService: PermissaoAcessoService ) { \n\n icons['bold'] = 'N';\n icons['italic'] = 'I';\n icons['underline'] = 'S';\n icons['strike'] = 'ab';\n\n this.grupoNoticiaService.findAll().subscribe(\n resp=>{\n this.grupos = resp;\n },\n error=>{\n console.log(error);\n }\n );\n\n }\n\n ngOnInit() {\n }\n\n\n ionViewWillEnter(){\n \n this.functionsService.presentLoading();\n\n //verificar as permissões de acesso\n this.checkAccessControl();\n\n if(!this.noticia.status){\n this.noticia.status = STATUS_PUBLICACAO.RASCUNHO;\n }\n \n //se for edição de uma notícia então o parâmetro id vem preenchido\n this.activatedRoute.queryParams.subscribe(\n param=>{\n \n if(param.id){\n\n this.noticiaService.find(param.id).subscribe(\n resp2=>{\n\n this.noticia = resp2;\n \n\n //guarda o safepath\n //this.safeVideoPaths = [];\n for(var i=0; i{\n console.log(error2);\n this.functionsService.dismissLoading();\n }\n );\n\n }else{\n this.noticia = new NoticiaDTO();\n this.functionsService.dismissLoading();\n }\n \n },\n \n errorParam=>{\n console.log(errorParam);\n });\n\n\n\n \n\n\n }\n\n\n\n sortArrayByOrder(arr){\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 checkAccessControl(){\n\n this.permissaoAcessoService.canCreateAndEdit(window.location.href).subscribe({\n next:(resp)=>{\n this.canCreateEdit = resp;\n },\n error:(error)=>{\n this.canCreateEdit = false;\n }\n });\n\n \n this.permissaoAcessoService.canPublish(window.location.href).subscribe({\n next:(resp)=>{\n this.canPublish = resp;\n },\n error:(error)=>{\n this.canPublish = false;\n }\n });\n\n\n }\n\n\n compareGroup(g1: GrupoNoticiaDTO, g2: GrupoNoticiaDTO): boolean {\n return g1 && g2 ? g1.id == g2.id : g1 == g2;\n }\n\n ionViewDidLeave(){\n\n if( this.noticia.id && //tem id mas não tem nenhum dado preenchido\n !this.noticia.banner && \n !this.noticia.titulo && \n !this.noticia.subtitulo && \n !this.noticia.grupo &&\n !this.noticia.texto &&\n this.noticia.galeriaDownloads.length===0 &&\n this.noticia.galeriaFotos.length===0 &&\n this.noticia.galeriaVideos.length===0){\n\n this.noticiaService.delete(this.noticia.id);\n \n\n }\n \n }\n\n \n async uploadBanner(fileLoader: HTMLInputElement){\n\n //para fazer upload do arquivo é necessário ter o id da notícia\n if(!this.noticia.id){\n //this.save();\n }\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.NOTICIA\n , that.noticia.id\n , DIRETORIO.BANNER\n , TIPO_ARQUIVO.IMAGEM ).subscribe(\n resp=>{\n \n that.noticia.banner = resp.body;\n //that.save();\n\n },\n error=>{\n console.log(error);\n }\n ); \n \n }\n\n fileLoader.click();\n\n \n }\n\n\n uploadPDF(fileLoader: HTMLInputElement){\n\n \n //para fazer upload do arquivo é necessário ter o id da notícia\n if(!this.noticia.id){\n //this.save();\n }\n\n let that = this;\n fileLoader.onchange = function () {\n\n let pdf = fileLoader.files[0];\n \n if(!that.noticia.galeriaDownloads){\n that.noticia.galeriaDownloads = [];\n }\n\n that.arquivoService.upload( pdf\n , ENTIDADE.NOTICIA\n , that.noticia.id\n , DIRETORIO.GALERIA_DOWNLOADS\n , TIPO_ARQUIVO.PDF\n , pdf.name\n , that.noticia.galeriaDownloads.length + 1 ).subscribe(\n resp=>{\n \n let novoPDF: ArquivoDTO = resp.body;\n //novoPDF.ordemExibicao = that.noticia.galeriaDownloads.length + 1; \n that.noticia.galeriaDownloads.push(novoPDF);\n that.setLegendaPDF(that.noticia.galeriaDownloads.length-1, pdf.name);\n \n //that.save();\n\n \n \n \n },\n error=>{\n console.log(error);\n }\n ); \n \n }\n\n fileLoader.click();\n\n \n }\n\n\n removePDF(index: number){\n \n this.functionsService.presentLoading();\n\n let foto = this.noticia.galeriaDownloads[index];\n this.arquivoService.delete(foto.id).subscribe(\n resp=>{\n for(var i=index+1; i{\n console.log(error);\n this.functionsService.dismissLoading();\n }\n );\n }\n\n\n uploadImage(fileLoader: HTMLInputElement){\n\n //para fazer upload do arquivo é necessário ter o id da notícia\n if(!this.noticia.id){\n //this.save();\n }\n\n let that = this;\n fileLoader.onchange = function () {\n\n let foto = fileLoader.files[0];\n \n if(!that.noticia.galeriaFotos){\n that.noticia.galeriaFotos = [];\n }\n\n that.arquivoService.upload( foto\n , ENTIDADE.NOTICIA\n , that.noticia.id\n , DIRETORIO.GALERIA_FOTOS\n , TIPO_ARQUIVO.IMAGEM\n , \"\"\n , that.noticia.galeriaFotos.length+1 ).subscribe(\n resp=>{\n \n that.noticia.galeriaFotos.push(resp.body);\n\n //that.save();\n \n },\n error=>{\n console.log(error);\n }\n ); \n \n }\n\n fileLoader.click();\n\n \n }\n\n\n removeImage(index: number){\n \n this.functionsService.presentLoading();\n\n let foto = this.noticia.galeriaFotos[index];\n this.arquivoService.delete(foto.id).subscribe(\n resp=>{\n for(var i=index+1; i{\n console.log(error);\n this.functionsService.dismissLoading();\n }\n );\n }\n\n\n \n\n getFilePublicURL(fullPath: string, fileName: string): string{\n return this.arquivoService.getFilePublicURL(fullPath, fileName);\n }\n\n\n \n \n \n getLegendaPDF(indexPDF: number): string{\n\n if(this.noticia.galeriaDownloads[indexPDF].legenda){\n\n if(this.noticia.galeriaDownloads[indexPDF].legenda.length>50){\n return this.noticia.galeriaDownloads[indexPDF].legenda.substring(0,50) + '...' + this.noticia.galeriaDownloads[indexPDF].legenda.substring(this.noticia.galeriaDownloads[indexPDF].legenda.length-4);\n }\n\n return this.noticia.galeriaDownloads[indexPDF].legenda;\n }\n\n return \"Legenda do PDF\";\n }\n\n setLegendaPDF(indexPDF: number, legenda: any){\n\n this.noticia.galeriaDownloads[indexPDF].legenda = legenda;\n \n //this.save();\n }\n\n\n async save(mustValidate:boolean = false, showValidationMessage:boolean = false, publish: boolean = false){\n \n \n //precisa validar?\n if(mustValidate){\n\n \n //valida sem exibir mensagens dos erros\n if(this.validate(showValidationMessage)){\n\n \n if(!publish){\n //se validou então \n this.noticia.status = STATUS_PUBLICACAO.PRONTO_PARA_PUBLICAR;\n const continuar = await this.functionsService.showConfirmAlert( 'Atenção!'\n , \"Todos os campos obrigatórios da notícia estão preenchidos.
Após ser salva, ela estará pronta para ser publicada, porém ainda não será exibida no site até que a opção Publicar seja acionada.\"\n , 'Ok'\n , '' );\n \n \n\n }else{\n this.noticia.status = STATUS_PUBLICACAO.PUBLICADO;\n }\n \n }else{//não validou\n\n if(publish){\n return;\n }\n //se não validar então vira rascunho\n this.noticia.status = STATUS_PUBLICACAO.RASCUNHO;\n }\n \n }else{\n //se não validar então vira rascunho\n this.noticia.status = STATUS_PUBLICACAO.RASCUNHO;\n }\n \n\n this.functionsService.presentLoading();\n\n this.processTags();\n\n if(!this.noticia.id){\n \n this.noticia.dataCriacao = new Date();\n \n this.noticiaService.insert(this.noticia).subscribe(\n resp=>{\n\n \n for(var i=0; i {\n this.functionsService.dismissLoading();\n //this.functionsService.navigate('/modulo-gc/gc-listar-noticias');\n }\n }]);\n }else if(mustValidate){\n\n this.functionsService.showAlert( \"Sucesso!\"\n , \"Dados salvos com sucesso!\"\n , ['Ok']);\n\n }\n },\n error=>{\n console.log(error);\n this.functionsService.dismissLoading();\n }\n );\n\n }else{\n this.noticiaService.update(this.noticia).subscribe(\n resp=>{\n\n console.log(resp.body.galeriaVideos)\n for(var i=0; i {\n this.functionsService.dismissLoading();\n //this.functionsService.navigate('/modulo-gc/gc-listar-noticias');\n }\n }]);\n }else if(mustValidate){\n\n this.functionsService.showAlert( \"Sucesso!\"\n , \"Dados salvos com sucesso!\"\n , ['Ok']);\n\n }\n },\n error=>{\n console.log(error);\n this.functionsService.dismissLoading();\n }\n );\n\n }\n }\n\n\n\n processTags(): void {\n if (this.noticia.tagsInput) {\n // Separa as tags pela vírgula, remove espaços e filtra duplicatas e tags que ultrapassem 50 caracteres\n const tagsArray = this.noticia.tagsInput.split(',')\n .map(tag => tag.trim())\n .filter((tag, index, self) => tag && tag.length <= 50 && self.indexOf(tag) === index);\n this.noticia.tags = tagsArray;\n } else {\n this.noticia.tags = [];\n }\n }\n\n\n async publish(){\n \n const confirma = await this.functionsService.showConfirmAlert(\"Confirma?\",\"Ao publicar esta notícia ela será automaticamente exibida no site da Souza Marques.
Confirma a publicação?\",\"Confirmar\",\"Cancelar\");\n\n if(confirma){\n this.noticia.status = STATUS_PUBLICACAO.PUBLICADO;\n this.noticia.dataPublicacao = new Date();\n this.save(true, true, true);\n } \n\n }\n\n\n async quit(){\n \n if( this.noticia.id && //tem id mas não tem nenhum dado preenchido\n !this.noticia.banner && \n !this.noticia.titulo && \n !this.noticia.subtitulo && \n !this.noticia.grupo &&\n !this.noticia.texto &&\n this.noticia.galeriaDownloads.length===0 &&\n this.noticia.galeriaFotos.length===0 &&\n this.noticia.galeriaVideos.length===0){\n\n const confirma = await this.functionsService.showConfirmAlert( \"Confirma?\"\n , \"Esta notícia está vazia e será descartada?\"\n , \"Confirmar\" \n , \"Cancelar\");\n\n if(confirma){\n this.noticiaService.delete(this.noticia.id).subscribe(\n resp=>{\n this.functionsService.navigate('/modulo-gc/gc-listar-noticias');\n return;\n },\n error=>{\n console.log(error);\n }\n );\n } \n\n }else{\n\n /*\n const confirma = await this.functionsService.showConfirmAlert( \"Confirma?\"\n , \"Todos os dados não salvos serão perdidos.
Confirma?\",\"Confirmar\",\"Cancelar\");\n\n if(confirma){\n this.functionsService.navigate('/modulo-gc/gc-listar-noticias');\n return;\n } \n */\n\n this.functionsService.navigate('/modulo-gc/gc-listar-noticias');\n\n }\n\n \n\n }\n\n validate(showAlert: boolean = true):boolean{\n\n \n if(!this.noticia.banner){\n\n if(showAlert){\n this.functionsService.showAlert('Atenção!','A notícia deve possuir um banner.',['Ok']);\n }\n return false;\n }\n \n if(!this.noticia.titulo){\n if(showAlert){\n this.functionsService.showAlert('Atenção!','A notícia deve possuir um título.',['Ok']);\n }\n return false;\n }\n\n if(!this.noticia.subtitulo){\n if(showAlert){\n this.functionsService.showAlert('Atenção!','A notícia deve possuir um subtítulo.',['Ok']);\n }\n return false;\n }\n\n if(!this.noticia.grupo){\n if(showAlert){\n this.functionsService.showAlert('Atenção!','O grupo da notícia deve ser definido.',['Ok']);\n }\n return false;\n }\n\n if(!this.noticia.resumo){\n\n if(showAlert){\n this.functionsService.showAlert('Atenção!','A notícia deve possuir um resumo com no mínimo 100 caracteres.',['Ok']);\n }\n return false;\n }else if(this.noticia.resumo.length<100){\n \n if(showAlert){\n this.functionsService.showAlert('Atenção!','A notícia deve possuir um resumo com no mínimo 100 caracteres.
Tamanho do texto atual: ' + this.noticia.resumo.length + ' caracter(es).',['Ok']);\n }\n return false;\n }\n\n if(!this.noticia.texto){\n\n if(showAlert){\n this.functionsService.showAlert('Atenção!','A notícia deve possuir um texto com no mínimo 100 caracteres.',['Ok']);\n }\n return false;\n }else if(this.noticia.texto.length<100){\n \n if(showAlert){\n this.functionsService.showAlert('Atenção!','A notícia deve possuir um texto com no mínimo 100 caracteres.
Tamanho do texto atual: ' + this.noticia.texto.length + ' caracter(es).',['Ok']);\n }\n return false;\n }\n \n\n \n return true;\n }\n\n\n preview(){\n \n const url = '/NOTICIA/' + \n this.noticia.id + '/' + \n this.noticia.titulo.replace(/ /g, '_');\n \n this.functionsService.goToPath(url, true);\n\n }\n\n\n addVideo(){\n\n //para gravar o vídeo é necessário ter o id da notícia\n if(!this.noticia.id){\n //this.save();\n }\n\n this.functionsService.showConfirmAlertGetValue( 'Vídeo'\n , 'Informe a URL do vídeo no Youtube.'\n , 'Ok'\n , 'Cancelar'\n , 'URL do vídeo'\n , '' ).then(url=>{\n \n if(url){\n \n const indexUrlStart = url.indexOf('src=\"', 0) + 5;\n const indexUrlEnd = url.indexOf('\"',indexUrlStart);\n\n if(indexUrlStart>0 && indexUrlEnd>indexUrlStart){\n url = url.substring(indexUrlStart,indexUrlEnd);\n }\n \n\n if(url.toString().indexOf('https://www.youtube.com/embed')<0){\n this.functionsService.showAlert('Atenção!', 'A URL informada não é válida.
Uma URL válida é iniciada da seguinte forma: https://www.youtube.com/embed',['Ok']);\n return;\n }else{\n\n if(!this.noticia.galeriaVideos){\n this.noticia.galeriaVideos = [];\n }\n\n let video: ArquivoDTO = new ArquivoDTO();\n video.dataGravacao = new Date();\n video.path = url;\n video.safePath = this.getSafeURL(url);\n video.tipo = TIPO_ARQUIVO.VIDEO;\n video.ordemExibicao = this.noticia.galeriaVideos.length+1;\n this.noticia.galeriaVideos.push(video);\n //this.save();\n \n \n //this.safeVideoPaths.push( this.getSafeURL(video.path) );\n \n }\n }\n });\n\n \n }\n\n\n removeVideo(index: number){\n \n this.functionsService.presentLoading();\n\n let video = this.noticia.galeriaVideos[index];\n\n this.arquivoService.delete(video?.id).subscribe(\n resp=>{\n\n for(var i=index+1; i{\n console.log(error);\n this.functionsService.dismissLoading();\n }\n );\n }\n\n getSafeURL(url: string): SafeResourceUrl{\n return this.sanitizer.bypassSecurityTrustResourceUrl(url);\n }\n\n\n\n setLenght(event, field: string){\n \n if(field === this.RESUMO){\n\n if(event.editor.getLength()-1>this.MAX_LENGTH_RESUMO){\n event.editor.deleteText(this.MAX_LENGTH_RESUMO, event.editor.getLength());\n }else{\n this.LENGTH_RESUMO = event.editor.getLength()-1;\n }\n\n \n }\n \n \n \n }\n\n \n\n getMaxSlidesPerView(normalQuantity:number):number{\n \n if(screen.width<960){\n return 1;\n }else{\n\n return normalQuantity;\n }\n }\n\n\n\n\n \n\n reorderDownloads(ev: Event) {\n\n \n const customEvent = ev as CustomEvent;\n\n // Captura o evento de reordenação\n const fromIndex = customEvent.detail.from;\n const toIndex = customEvent.detail.to;\n\n // Move o item na lista\n const movedItem = this.noticia.galeriaDownloads.splice(fromIndex, 1)[0];\n this.noticia.galeriaDownloads.splice(toIndex, 0, movedItem);\n\n this.noticia.galeriaDownloads.forEach((pdf, index) => {\n pdf.ordemExibicao = index + 1;\n });\n \n \n // Finish the reorder and position the item in the DOM based on\n // where the gesture ended. This method can also be called directly\n // by the reorder group\n customEvent.detail.complete();\n\n \n }\n\n \n\n async editLegendaPDF(fileIndex: number){\n\n let arquivo = this.noticia.galeriaDownloads[fileIndex];\n\n\n const resp = await this.functionsService.showConfirmAlertGetValue( 'Editar'\n , 'Editar nome do arquivo'\n , 'Ok'\n , 'Cancelar'\n , arquivo.nome\n , arquivo.nome\n , 'input-alert-700');\n\n \n this.noticia.galeriaDownloads[fileIndex].nome = resp; \n \n this.setLegendaPDF(fileIndex,resp);\n\n }\n\n\n reorderPhotos(index:number, move: number){\n //move igual a +1 move pra frente, igual a -1 move pra traz\n\n this.functionsService.presentLoading();\n\n //guarda o objeto que está na posição que se deseja movimentar\n let aux = this.noticia.galeriaFotos[index];\n aux.ordemExibicao += (move); //nova ordem de exibição dele\n\n let vizinho = this.noticia.galeriaFotos[index + (move)]; //o vizinho que está em aux + move vai pra posição do objeto movido\n vizinho.ordemExibicao -= (move);\n this.noticia.galeriaFotos[index] = vizinho;\n \n this.noticia.galeriaFotos[index + (move)] = aux; //a posição que era do vizinho recebe o objeto movido\n\n this.arquivoService.update(aux).subscribe(\n respAux=>{\n this.arquivoService.update(vizinho).subscribe(\n respViz=>{\n this.functionsService.dismissLoading();\n },\n errorViz=>{\n this.functionsService.dismissLoading();\n }\n );\n },\n errorAux=>{\n this.functionsService.dismissLoading();\n }\n );\n }\n\n\n reorderVideos(index:number, move: number){\n //move igual a +1 move pra frente, igual a -1 move pra traz\n\n this.functionsService.presentLoading();\n\n //guarda o objeto que está na posição que se deseja movimentar\n let aux = this.noticia.galeriaVideos[index];\n aux.ordemExibicao += (move); //nova ordem de exibição dele\n\n let vizinho = this.noticia.galeriaVideos[index + (move)]; //o vizinho que está em aux + move vai pra posição do objeto movido\n vizinho.ordemExibicao -= (move);\n this.noticia.galeriaVideos[index] = vizinho;\n \n this.noticia.galeriaVideos[index + (move)] = aux; //a posição que era do vizinho recebe o objeto movido\n\n this.arquivoService.update(aux).subscribe(\n respAux=>{\n this.arquivoService.update(vizinho).subscribe(\n respViz=>{\n this.functionsService.dismissLoading();\n },\n errorViz=>{\n this.functionsService.dismissLoading();\n }\n );\n },\n errorAux=>{\n this.functionsService.dismissLoading();\n }\n );\n }\n}\n","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { GcCadastrarNoticiaPage } from './gc-cadastrar-noticia.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: GcCadastrarNoticiaPage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class GcCadastrarNoticiaPageRoutingModule {}\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';\nimport { GcCadastrarNoticiaPageRoutingModule } from './gc-cadastrar-noticia-routing.module';\nimport { GcCadastrarNoticiaPage } from './gc-cadastrar-noticia.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n GcCadastrarNoticiaPageRoutingModule,\n ComponentsModule,\n SwiperModule,\n QuillModule\n ],\n declarations: [GcCadastrarNoticiaPage]\n})\nexport class GcCadastrarNoticiaPageModule {}\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DataSharingService {\n\n //serviço usado para emitir a mensagem para outros componentes que precisem saber quando o usuário está logado ou não\n public isUserLoggedIn: BehaviorSubject = new BehaviorSubject(false);\n \n //serviço usado para emitir a mensagem do header para a página gc-analisar-documentacao\n public idInscricaoSelecionada: BehaviorSubject = new BehaviorSubject(0);\n \n \n constructor() { }\n\n}\n"],"sourceRoot":"webpack:///","file":"334.912509742fdd732e.js"}