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lBA,CAAkB,qBAAlBA,CAAkB,gBAAlBA,CAAkB,mBAAlBA,CAAkB,oBAAlBA,CAAkB,kBAAlBA,CAAkB,UAAlBA,CAAkB,mBAgBoBA,oCAyF3BA,wCAqBGA,wCASgBA,mCACEA,qCACGA,qCACHA,kCAgCFA,2EAuBRA,wCAQbA,sCAsDaA,kEAQbA,mjGC7SNiM,GAAb,KCLO,IAAME,EAAb,MAAM,sDAAOA,4DAHF,CAACC,cAAsBhF,IACtBgF,QAECD,GAAb,GCSaE,EAAb,MAAM,sDAAOA,4DAXF,CACPC,KACAC,KACAC,KACAL,EACAM,IACAC,KACAC,SAISN,GAAb,+DCnBO,IAAMO,EAAb,MAAM,QASJxM,cANOK,oBAA2C,IAAIoM,KAAyB,GAGxEpM,4BAAkD,IAAIoM,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_r13","ctx_r23","ctx_r26","ctx_r29","ctx_r32","ctx_r36","ctx_r40","ctx_r43","ctx_r53","ctx_r56","ctx_r59","ctx_r61","ctx_r62","SwiperCore","Autoplay","Keyboard","Pagination","Navigation","Scrollbar","Zoom","EffectFade","EffectCube","EffectCoverflow","EffectFlip","EffectCards","EffectCreative","Lazy","routes","arquivoService","popupService","PopupDTO","ionViewWillEnter","presentLoading","findBannersHome","banners","dismissLoading","findPopups","findByEntidade","ENTIDADE","popups","sort","a","b","ordemExibicao","uploadBanner","fileLoader","that","onchange","upload","files","DIRETORIO","push","body","click","uploadPopupImage","popup","imagem","changeBanner","indexOldBanner","newBanner","ordemExibicaoOldBanner","indexNewBanner","changeSortSwiper","removeBanner","index","delete","splice","removePopupImage","addPopup","nome","texto","showAlert","entidadeAssociada","insert","removePopup","getFilePublicURL","fullPath","fileName","move","aux","vizinho","respAux","respViz","errorViz","errorAux","changeSortPopup","saveFile","arquivo","setLenght","editor","getLength","MAX_LENGTH_TEXTO","deleteText","LENGTH_TEXTO","showPopupSection","section","display","n","closePopup","newWindow","openPopup","popupToShow","editPopup","focus","GcHomePage","ctx","GcHomePageRoutingModule","RouterModule","GcHomePageModule","CommonModule","FormsModule","IonicModule","ComponentsModule","QuillModule","SwiperModule","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/models/site/popupDTO.ts","./src/app/pages/modulo-gc/site/gc-home/gc-home.page.html","./src/app/pages/modulo-gc/site/gc-home/gc-home.page.ts","./src/app/pages/modulo-gc/site/gc-home/gc-home-routing.module.ts","./src/app/pages/modulo-gc/site/gc-home/gc-home.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}","import { ArquivoDTO } from 'src/app/models/arquivoDTO';\r\nimport { NoticiaDTO } from './noticiaDTO';\r\n\r\n\r\nexport class PopupDTO{\r\n\r\n \r\n id!: number;\r\n nome!:string;\r\n entidadeAssociada!: string;\r\n texto!:string;\r\n imagem!:ArquivoDTO;\r\n ordemExibicao!:number;\r\n}","\n\n\n \n \n
\n
\n \n
\n X\n
\n\n
\n \n \n \n \n \n
\n
\n \n \n
\n
\n
\n \n
\n
\n\n \n CONTEÚDO DA HOME\n \n \n\n \n \n Banner \n\n \n \n \n Upload Banner  \n \n \n \n
\n altura máxima do banner: 500px\n
\n \n\n \n \n \n Nenhum Banner\n \n \n \n\n \n \n\n \n \n \n \n \n \n \n \n
\n 1\" (click)=\"changeSortSwiper(i,-1)\"> \n {{banner.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 \n \n Popup \n \n\n \n \n \n \n \n \n \n \n Tipo de Conteúdo\n \n \n\n \n  Imagem\n \n \n\n \n  Texto\n \n \n \n \n\n \n \n\n \n \n \n \n\n Nome do Popup\n \n\n \n \n \n \n \n \n \n \n Texto \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 {{LENGTH_TEXTO}} de {{MAX_LENGTH_TEXTO}} caracteres\n
\n \n
\n
\n \n \n \n \n \n Imagem \n \n \n \n \n Upload Imagem  \n \n \n \n
\n altura máxima da imagem: 350px\n
\n\n \n \n \n Nenhuma imagem ainda\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 Salvar Popup  \n \n \n \n \n \n \n \n \n \n Lista de Popup's \n \n\n \n \n \n Nenhum Popup\n \n \n \n\n 0\" class=\"ion-no-margin ion-no-padding\"> \n \n \n \n \n Ordem\n \n \n Nome\n \n \n Tipo\n \n \n Link?\n \n \n \n \n \n\n \n \n \n \n 1\" (click)=\"changeSortPopup(i,-1)\">\n \n \n \n \n {{popup.nome}}\n \n \n \n Texto\n Imagem\n \n \n \n Sim\n Não\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n\n\n\n \n\n
\n","import { PopupDTO } from '../../../../models/site/popupDTO';\nimport { PopupService } from '../../../../services/popup/popup.service';\nimport { ArquivoDTO } from '../../../../models/arquivoDTO';\nimport { FunctionsService } from '../../../../services/common/functions.service';\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 { Component, OnInit } from '@angular/core';\nimport SwiperCore, { Autoplay, Keyboard, Pagination, Navigation, Scrollbar, Zoom, EffectFade, EffectCube, EffectCoverflow, EffectFlip, EffectCards, EffectCreative, Lazy } from 'swiper';\nimport * as Quill from 'quill'\n\n\nSwiperCore.use([Autoplay, Keyboard, Pagination, Navigation, Scrollbar, Zoom, EffectFade, EffectCube, EffectCoverflow, EffectFlip, EffectCards, EffectCreative, Lazy]);\n\n\n@Component({\n selector: 'app-gc-home',\n templateUrl: './gc-home.page.html',\n styleUrls: ['./gc-home.page.scss'],\n})\nexport class GcHomePage implements OnInit {\n\n LENGTH_TEXTO: number = 0;\n MAX_LENGTH_TEXTO: number = 1000;\n\n banners: ArquivoDTO[] = [];\n popups: PopupDTO[] = [];\n popup: PopupDTO = new PopupDTO();\n \n popupToShow: PopupDTO = new PopupDTO();\n\n constructor( private arquivoService: ArquivoService\n , private popupService: PopupService \n , private functionsService: FunctionsService) { }\n\n ngOnInit() {\n }\n\n ionViewWillEnter(){\n \n this.functionsService.presentLoading();\n \n this.arquivoService.findBannersHome().subscribe(\n resp=>{\n this.banners = resp;\n\n this.functionsService.dismissLoading();\n \n },\n error=>{\n this.functionsService.dismissLoading();\n }\n );\n\n this.findPopups();\n\n \n }\n\n findPopups(){\n\n this.popupService.findByEntidade(ENTIDADE.HOME).subscribe(\n resp=>{\n this.popups = resp;\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 console.log(this.popups);\n this.functionsService.dismissLoading();\n },\n error=>{\n this.functionsService.dismissLoading();\n }\n ); \n\n }\n\n\n uploadBanner(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.HOME\n , null\n , DIRETORIO.BANNER\n , TIPO_ARQUIVO.IMAGEM ).subscribe(\n resp=>{\n that.banners.push(resp.body);\n \n },\n error=>{\n console.log(error);\n }\n ); \n \n }\n\n fileLoader.click();\n\n \n }\n\n\n uploadPopupImage(fileLoader: HTMLInputElement){\n\n let that = this;\n\n fileLoader.onchange = function () {\n\n let image = fileLoader.files[0];\n \n that.arquivoService.upload( image\n , ENTIDADE.HOME\n , null\n , DIRETORIO.POPUP\n , TIPO_ARQUIVO.IMAGEM ).subscribe(\n resp=>{\n that.popup.imagem = resp.body;\n \n },\n error=>{\n console.log(error);\n }\n ); \n \n }\n\n fileLoader.click();\n\n \n }\n\n\n changeBanner(fileLoader: HTMLInputElement, indexOldBanner: number){\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.HOME\n , null\n , DIRETORIO.BANNER\n , TIPO_ARQUIVO.IMAGEM ).subscribe(\n resp=>{\n \n let newBanner = resp.body;\n //insere no final do array, pois ele é criado com a maior ordem de exibição\n that.banners.push(newBanner); \n\n //guarda a ordem de exibição do que será removido\n const ordemExibicaoOldBanner = that.banners[indexOldBanner].ordemExibicao;\n \n //anda com o novo banner pra traz até a posição do antigo banner + 1\n while(newBanner.ordemExibicao>ordemExibicaoOldBanner+1){\n const indexNewBanner = that.banners.indexOf(newBanner);\n that.changeSortSwiper(indexNewBanner,-1);\n }\n \n //ao remover o antigo banner todos os posteriores são reordenados uma posição pra traz\n that.removeBanner(indexOldBanner);\n },\n error=>{\n console.log(error);\n }\n ); \n \n }\n\n fileLoader.click();\n\n \n }\n\n\n\n removeBanner(index: number){\n \n this.functionsService.presentLoading();\n\n let banner = this.banners[index];\n\n this.arquivoService.delete(banner.id).subscribe(\n resp=>{\n this.banners.splice(index,1);\n\n //reorganizar a numeração da ordem de exibição\n for(var i=0; i{\n console.log(error);\n this.functionsService.dismissLoading();\n }\n );\n }\n\n\n removePopupImage(){\n \n this.functionsService.presentLoading();\n\n this.arquivoService.delete(this.popup.imagem.id).subscribe(\n resp=>{\n //limpa o buffer\n this.popup.imagem = null;\n this.functionsService.dismissLoading();\n \n\n },\n error=>{\n console.log(error);\n this.functionsService.dismissLoading();\n }\n );\n }\n\n\n addPopup(){\n \n if(!this.popup.nome){\n this.functionsService.showAlert('Atenção!','O nome do popup é obrigatório', ['Ok']);\n return;\n \n }else if(!this.popup.imagem && !this.popup.texto){\n this.functionsService.showAlert('Atenção!','É necessário inserir um texto ou uma imagem no popup', ['Ok']);\n return; \n }else if(this.popup.texto && this.popup.texto.length>20000){\n this.functionsService.showAlert('Atenção!','O texto inserido contém elementos muito grandes.
Por favor, remova imagens e outros possíveis causadores deste problema.', ['Ok']);\n return;\n }\n\n this.popup.entidadeAssociada = ENTIDADE.HOME;\n this.functionsService.presentLoading();\n\n if(!this.popup.id){\n\n this.popupService.insert(this.popup).subscribe(\n resp=>{\n \n this.popup = resp.body;\n this.popups.push(this.popup);\n this.popup = new PopupDTO();\n \n this.functionsService.dismissLoading();\n },\n error=>{\n console.log(error);\n this.functionsService.dismissLoading();\n }\n );\n\n }else{\n\n this.popupService.update(this.popup).subscribe(\n resp=>{\n \n this.popup = resp.body;\n this.popup = new PopupDTO();\n \n this.functionsService.dismissLoading();\n },\n error=>{\n console.log(error);\n this.functionsService.dismissLoading();\n }\n );\n\n }\n \n\n }\n\n\n removePopup(index: number){\n \n this.functionsService.presentLoading();\n\n let popup = this.popups[index];\n\n this.popupService.delete(popup.id).subscribe(\n resp=>{\n\n this.functionsService.dismissLoading();\n\n //atualiza a lista de popups \n this.findPopups();\n },\n error=>{\n console.log(error);\n this.functionsService.dismissLoading();\n }\n );\n }\n\n\n getFilePublicURL(fullPath: string, fileName: string): string{\n return this.arquivoService.getFilePublicURL(fullPath, fileName);\n }\n\n\n changeSortSwiper(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.banners[index];\n aux.ordemExibicao += (move); //nova ordem de exibição dele\n\n let vizinho = this.banners[index + (move)]; //o vizinho que está em aux + move vai pra posição do objeto movido\n vizinho.ordemExibicao -= (move);\n this.banners[index] = vizinho;\n \n this.banners[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 changeSortPopup(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.popups[index];\n aux.ordemExibicao += (move); //nova ordem de exibição dele\n\n let vizinho = this.popups[index + (move)]; //o vizinho que está em aux + move vai pra posição do objeto movido\n vizinho.ordemExibicao -= (move);\n this.popups[index] = vizinho;\n \n this.popups[index + (move)] = aux; //a posição que era do vizinho recebe o objeto movido\n\n this.popupService.update(aux).subscribe(\n respAux=>{\n this.popupService.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 saveFile(arquivo: ArquivoDTO){\n\n this.functionsService.presentLoading();\n \n this.arquivoService.update(arquivo).subscribe(\n resp=>{\n this.functionsService.dismissLoading();\n },\n error=>{\n this.functionsService.dismissLoading();\n }); \n }\n\n\n setLenght(event){\n \n if(event.editor.getLength()-1>this.MAX_LENGTH_TEXTO){\n event.editor.deleteText(this.MAX_LENGTH_TEXTO, event.editor.getLength());\n }else{\n this.LENGTH_TEXTO = event.editor.getLength()-1;\n } \n \n \n }\n\n\n showPopupSection(section: string){\n\n \n document.getElementById('buttonAddPopup').style.display = 'block';\n \n if(section==='text'){\n document.getElementById('popupTextSection').style.display = 'block';\n document.getElementById('popupImageSection').style.display = 'none';\n\n\n if(this.popup.imagem){\n this.functionsService.presentLoading();\n\n this.arquivoService.delete( this.popup.imagem.id ).subscribe(\n resp=>{\n this.popup.imagem = null;\n this.functionsService.dismissLoading();\n },\n error=>{\n console.log(error);\n this.functionsService.dismissLoading();\n }\n );\n }\n\n }else{\n document.getElementById('popupTextSection').style.display = 'none';\n document.getElementById('popupImageSection').style.display = 'block';\n\n this.popup.texto = ''; \n }\n }\n\n\n closePopup(){\n document.getElementById('popup-wrapper').style.display = 'none';\n \n }\n\n\n goToPath(path:string, newWindow: boolean = false ){\n \n if(path){\n this.functionsService.goToPath(path, newWindow);\n }\n }\n\n openPopup(popup: PopupDTO){\n this.popupToShow = popup;\n document.getElementById('popup-wrapper').style.display = 'block';\n }\n\n editPopup(popup: PopupDTO){\n this.popup = popup;\n\n if(this.popup.imagem){\n document.getElementById('checkImage').click();\n document.getElementById('checkImage').focus();\n }else{\n document.getElementById('checkText').click();\n document.getElementById('checkText').focus();\n }\n \n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { GcHomePage } from './gc-home.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: GcHomePage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class GcHomePageRoutingModule {}\n","import { SwiperModule } from 'swiper/angular';\nimport { 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 { GcHomePageRoutingModule } from './gc-home-routing.module';\n\nimport { GcHomePage } from './gc-home.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n GcHomePageRoutingModule,\n ComponentsModule,\n QuillModule,\n SwiperModule\n ],\n declarations: [GcHomePage]\n})\nexport class GcHomePageModule {}\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":"6796.05f6ab9e01ec7b73.js"}