asap-viewer 12.5.45 → 12.5.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/asap-viewer.metadata.json +1 -1
- package/bundles/asap-viewer.umd.js +49 -26
- package/bundles/asap-viewer.umd.js.map +1 -1
- package/bundles/asap-viewer.umd.min.js +1 -1
- package/bundles/asap-viewer.umd.min.js.map +1 -1
- package/esm2015/lib/editor/components/conclusion/conclusion.component.js +43 -23
- package/esm2015/lib/visualizador/curso-visualizador/viewer/viewer.component.js +2 -2
- package/esm5/lib/editor/components/conclusion/conclusion.component.js +49 -26
- package/esm5/lib/visualizador/curso-visualizador/viewer/viewer.component.js +2 -2
- package/fesm2015/asap-viewer.js +43 -23
- package/fesm2015/asap-viewer.js.map +1 -1
- package/fesm5/asap-viewer.js +49 -26
- package/fesm5/asap-viewer.js.map +1 -1
- package/lib/editor/components/conclusion/conclusion.component.d.ts +9 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://asap-viewer/lib/asap-viewer.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/detail/detail.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/asessment-report/asessment-report.component.ts","ng://asap-viewer/lib/@core/services/base.service.ts","ng://asap-viewer/lib/@core/services/assessment.service.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/assessment-visualizador.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/assessment-visualizador.routing.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/detail/detail-inner/detail-inner.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/sidebar/sidebar.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/navbar/navbar.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/asessment-report/assessment-report-inner/assessment-report-inner.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/graficos/radar/radar.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/assessment-visualizador.module.ts","ng://asap-viewer/lib/banner/banner.component.ts","ng://asap-viewer/lib/banner/banner.module.ts","ng://asap-viewer/lib/@core/pipes/safe-url.pipe.ts","ng://asap-viewer/lib/@core/pipes/stream.pipe.ts","ng://asap-viewer/lib/@core/pipes/asap-client.pipe.ts","ng://asap-viewer/lib/@core/pipes/youtube-embed.pipe.ts","ng://asap-viewer/lib/@core/pipes/checktype.pipe.ts","ng://asap-viewer/lib/@core/pipes/vimeo-embed.pipe.ts","ng://asap-viewer/lib/@core/pipes/pipe.module.ts","ng://asap-viewer/lib/shared/spinner/spinner.component.ts","ng://asap-viewer/lib/shared/spinner/spinner.module.ts","ng://asap-viewer/lib/shared/file-manager/models/file-manager.model.ts","ng://asap-viewer/lib/shared/file-manager/services/file-manager.service.ts","ng://asap-viewer/lib/shared/file-manager/containers/file-manager/file-manager.component.ts","ng://asap-viewer/lib/shared/file-manager/containers/file-manager-directive/file-manager.directive.ts","ng://asap-viewer/lib/shared/file-manager/file-manager.module.ts","ng://asap-viewer/lib/editor/components/shared/title.component.ts","ng://asap-viewer/lib/editor/components/shared/subtitle.component.ts","ng://asap-viewer/lib/editor/components/shared/button.component.ts","ng://asap-viewer/lib/editor/components/shared/media.component.ts","ng://asap-viewer/lib/editor/components/shared/text.component.ts","ng://asap-viewer/lib/editor/components/shared/shared.module.ts","ng://asap-viewer/lib/editor/components/dynamic-input/dynamic-input.component.ts","ng://asap-viewer/lib/@core/services/trail-content.service.ts","ng://asap-viewer/lib/editor/components/video/video.component.ts","ng://asap-viewer/lib/editor/components/image/image.component.ts","ng://asap-viewer/lib/@core/helpers/string.helper.ts","ng://asap-viewer/lib/@core/models/item-component.ts","ng://asap-viewer/lib/editor/components/image/config/image-config.component.ts","ng://asap-viewer/lib/@core/services/vimeo.service.ts","ng://asap-viewer/lib/@core/helpers/sanitizer.helper.ts","ng://asap-viewer/lib/editor/components/challenge/challenge.component.ts","ng://asap-viewer/lib/editor/components/challenge/config/challenge-config.component.ts","ng://asap-viewer/lib/@core/services/trilha/trilha-performance.service.ts","ng://asap-viewer/lib/@core/services/trilha/trilha.service.ts","ng://asap-viewer/lib/@core/services/trilha/trilha-rating.service.ts","ng://asap-viewer/lib/asap-viewer.service.ts","ng://asap-viewer/lib/editor/components/conclusion/conclusion.component.ts","ng://asap-viewer/lib/editor/components/conclusion/config/conclusion-config.component.ts","ng://asap-viewer/lib/editor/components/star-point/star-point.component.ts","ng://asap-viewer/lib/editor/components/star-point/config/star-point-config.component.ts","ng://asap-viewer/lib/editor/components/dynamic-table/dynamic-table.component.ts","ng://asap-viewer/lib/editor/components/dynamic-table/config/dynamic-table-config.component.ts","ng://asap-viewer/lib/editor/components/intro/intro.component.ts","ng://asap-viewer/lib/editor/components/intro/config/intro-config.component.ts","ng://asap-viewer/lib/editor/components/long-text/long-text.component.ts","ng://asap-viewer/lib/editor/components/long-text/config/long-text-config.component.ts","ng://asap-viewer/lib/editor/components/multichoice/multichoice.component.ts","ng://asap-viewer/lib/editor/components/multiple-questions/multiple-questions.component.ts","ng://asap-viewer/lib/editor/components/multiple-questions/config/multiple-questions-config.component.ts","ng://asap-viewer/lib/editor/components/sales-channel/sales-channel.component.ts","ng://asap-viewer/lib/editor/components/sales-channel/config/sales-channel-config.component.ts","ng://asap-viewer/lib/editor/components/sheet-correct-incorrect/sheet-correct-incorrect.component.ts","ng://asap-viewer/lib/editor/components/sheet-correct-incorrect/config/sheet-correct-incorrect-config.component.ts","ng://asap-viewer/lib/editor/components/yes-no/yes-no.component.ts","ng://asap-viewer/lib/editor/components/yes-no/config/yes-no-config.component.ts","ng://asap-viewer/lib/editor/components/upload/upload.component.ts","ng://asap-viewer/lib/editor/components/upload/config/upload-config.component.ts","ng://asap-viewer/lib/editor/components/download/download.component.ts","ng://asap-viewer/lib/editor/components/download/config/download-config.component.ts","ng://asap-viewer/lib/editor/components/rating/rating.component.ts","ng://asap-viewer/lib/editor/components/rating/config/rating-config.component.ts","ng://asap-viewer/lib/@core/services/forum/forum.service.ts","ng://asap-viewer/lib/@core/services/forum/response.service.ts","ng://asap-viewer/lib/@core/services/forum/forum-vote.service.ts","ng://asap-viewer/lib/editor/components/forum/forum.component.ts","ng://asap-viewer/lib/editor/components/forum/config/forum-config.component.ts","ng://asap-viewer/lib/editor/components/avaliation/avaliation.component.ts","ng://asap-viewer/lib/editor/components/contract/contract.component.ts","ng://asap-viewer/lib/material.module.ts","ng://asap-viewer/lib/editor/components/form-step/form-step.component.ts","ng://asap-viewer/lib/editor/components/pdf/pdf.component.ts","ng://asap-viewer/lib/editor/components/research/research.component.ts","ng://asap-viewer/lib/@core/services/firebase-notification.service.ts","ng://asap-viewer/lib/editor/components/feedback/feedback.component.ts","ng://asap-viewer/lib/editor/components/audio/audio.component.ts","ng://asap-viewer/lib/editor/components/random-questions/random-questions.component.ts","ng://asap-viewer/lib/editor/components/text/text.component.ts","ng://asap-viewer/lib/editor/components/page/page.component.ts","ng://asap-viewer/lib/editor/components/editor.components.module.ts","ng://asap-viewer/lib/@core/services/trailv2.service.ts","ng://asap-viewer/lib/visualizador/curso-visualizador/banner-modal/banner-modal-component.ts","ng://asap-viewer/lib/@core/services/ambiente-virtual.service.ts","ng://asap-viewer/lib/@core/models/banner.model.ts","ng://asap-viewer/lib/@core/services/banner.service.ts","ng://asap-viewer/lib/visualizador/curso-visualizador/curso-visualizador.component.ts","ng://asap-viewer/lib/visualizador/curso-visualizador/curso-navbar/curso-navbar.component.ts","ng://asap-viewer/lib/visualizador/curso-visualizador/curso-sidebar/curso-sidebar.component.ts","ng://asap-viewer/lib/visualizador/modal-rating/modal-rating.component.ts","ng://asap-viewer/lib/visualizador/curso-visualizador/viewer/viewer.component.ts","ng://asap-viewer/lib/@core/services/minicurso/minicurso.service.ts","ng://asap-viewer/lib/@core/services/development/development.service.ts","ng://asap-viewer/lib/@core/services/articles/articles.service.ts","ng://asap-viewer/lib/@core/services/trilha/trilha-item.service.ts","ng://asap-viewer/lib/@core/services/layout.service.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/mini-curso-visualizador.component.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/curso-sidebar/mini-curso-sidebar.component.ts","ng://asap-viewer/lib/@core/services/area-permission.service.ts","ng://asap-viewer/lib/@core/services/tutor/tutor.service.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/mini-sidemenu/mini-sidemenu.component.ts","ng://asap-viewer/lib/@core/services/notifications/notifications.service.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/curso-navbar/mini-curso-navbar.component.ts","ng://asap-viewer/lib/@core/services/minicurso/minicurso-comments.service.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/viewer/mini-viewer.component.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/banner-modal/mini-banner-modal-component.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/slider/slider.component.ts","ng://asap-viewer/lib/visualizador/modal-rating/star-rating/star-component.ts","ng://asap-viewer/lib/@core/services/comments/comments.service.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/comment/comment.component.ts","ng://asap-viewer/lib/@core/services/forum/forum-trilha.service.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/forum/question.component.ts","ng://asap-viewer/lib/@core/helpers/library.helper.ts","ng://asap-viewer/lib/@core/models/trail.ts","ng://asap-viewer/lib/@core/services/trail.service.ts","ng://asap-viewer/lib/shared/points/points.component.ts","ng://asap-viewer/lib/visualizador/exercicios/exercicios.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/precificacao-visualizador.component.ts","ng://asap-viewer/lib/@core/services/precifica/produtos/produtos.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/produtos.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/novo/novo-produto.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/visualizar/visualizar-produto.component.ts","ng://asap-viewer/lib/@core/services/precifica/material/material.service.ts","ng://asap-viewer/lib/@core/services/precifica/mao-obra/mao-obra.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/visualizar/resumo/visualizar-resumo-produto.component.ts","ng://asap-viewer/lib/@core/services/precifica/fornecedor/fornecedor.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/visualizar/materiais/visualizar-materiais-produto.component.ts","ng://asap-viewer/lib/@core/services/precifica/artesan/artesan.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/visualizar/mao-obra/modal/modal.mao-de-obra.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/visualizar/mao-obra/visualizar-mao-obra-produto.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/visualizar/fornecedor/visualizar-fornecedor-produto.component.ts","ng://asap-viewer/lib/@core/services/precifica/calculadora/calculadora.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/visualizar/calcular/visualizar-calcular-produto.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/pedidos/pedidos.component.ts","ng://asap-viewer/lib/@core/services/precifica/pedido/pedido.service.ts","ng://asap-viewer/lib/@core/services/precifica/pedido/lista-produtos.service.ts","ng://asap-viewer/lib/@core/services/precifica/pedido/valor.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/modal-resumo/modal-resumo.component.ts","ng://asap-viewer/lib/@core/services/loja/pedido.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/pedidos/meus-pedidos/meus-pedidos.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/pedidos/dados-pedido/dados-pedido.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/pedidos/calculo/modal/modal.calculo-pedido.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/pedidos/calculo/calculo-pedido.component.ts","ng://asap-viewer/lib/@core/services/precifica/pedido/transporte.service.ts","ng://asap-viewer/lib/@core/services/precifica/pedido/desc.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/pedidos/custos/custos.component.ts","ng://asap-viewer/lib/@core/services/precifica/pedido/lista.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/pedidos/compras/compras.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/viabilidade/viabilidade.component.ts","ng://asap-viewer/lib/@core/services/precifica/viabilidade/custo.service.ts","ng://asap-viewer/lib/@core/services/precifica/viabilidade/viabilidade.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/viabilidade/custos-fixos/modal/modal.custos-fixos.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/viabilidade/custos-fixos/custos-fixos.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/viabilidade/custos-variaveis/custos-variaveis.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/viabilidade/faturamento-estimado/modal/modal.faturamento-estimado.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/viabilidade/faturamento-estimado/faturamento-estimado.component.ts","ng://asap-viewer/lib/visualizador/studio-visualizador/studio-visualizador.service.ts","ng://asap-viewer/lib/visualizador/studio-visualizador/studio-modal-rating/studio-modal-rating.component.ts","ng://asap-viewer/lib/visualizador/studio-visualizador/studio-visualizador.component.ts","ng://asap-viewer/lib/asap-viewer.routing.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/precificacao-sidebar/precificacao-sidebar.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/precificacao-navbar/precificacao-navbar.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/viewer.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/pipes/material.pipe.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/gestao-visualizador.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/resumo/resumo.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio1/exercicio1.component.ts","ng://asap-viewer/lib/@core/models/balance-sheet.ts","ng://asap-viewer/lib/@core/services/balance-sheet.service.ts","ng://asap-viewer/lib/@core/services/exercises.service.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/calculadora-financeira/calculadora-financeira.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/como-resolver-dividas/como-resolver-dividas.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/trabalhar-pra-ganhar/trabalhar-pra-ganhar.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/meu-cliente/meu-cliente.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/semana/semana.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/aula10-ex1/aula10-ex1.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/aula10-ex3/aula10-ex3.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/aula12-ex6/aula12-ex6.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/production-time/production-time.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/gestao-visualizador.routing.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/gestao-sidebar/gestao-sidebar.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/gestao-navbar/gestao-navbar.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/viewer.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio1/tab1/exercicio1-tab1.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio1/tab2/exercicio1-tab2.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio1/tab3/exercicio1-tab3.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio1/scenario/scenario.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio2/exercicio2.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio2_3/exercicio2_3.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio3/exercicio3.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio4/exercicio4.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio5/exercicio5.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/gestao-visualizador.module.ts","ng://asap-viewer/lib/visualizador/studio-visualizador/studio-modal-rating/star-rating/star-component.ts","ng://asap-viewer/lib/asap-viewer.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__extends","TypeError","String","__","this","constructor","create","__values","o","s","Symbol","iterator","m","i","length","next","value","done","__read","n","r","e","ar","push","error","__spread","arguments","concat","AsapViewerComponent","ngOnInit","Component","args","selector","template","encapsulation","ViewEncapsulation","None","DetailComponent","activatedRoute","getParam","_this","sub","params","subscribe","console","log","formId","goToNextAssessment","event","assessmentSidebar","goToNextAssesment","getAssessmentSelected","assessmentId","assessmentDetail","getAssessment","ActivatedRoute","ViewChild","static","AsessmentReportComponent","BaseService","http","basePath","entityName","host","localStorage","getItem","token","headers","Content-Type","Authorization","Access-Control-Allow-Origin","options","getResources","get","resourceUrl","getResource","id","createResource","data","post","JSON","stringify","updateResource","put","deleteResource","delete","urlParameters","filter","element","join","replace","queryString","placeholder","test","query","router","AssessmentService","httpClient","global","_super","tslib_1.__extends","all","url","apiURL","getHeader","fetch","find","getScore","getReportIndicador","getReportTema","getReportEixo","postConfirmAssessment","banner_id","assessmentBannerViewed","assessment_id","Accept","Injectable","HttpClient","Global","AssessmentVisualizadorComponent","route","_assessmentService","Date","nativeElement","sidebarVisible","navbar","toggleButton","getElementsByClassName","setTimeout","$","removeClass","checkProgressBar","percent","parseInt","increasePercent","increase","increasePercentNav","setItem","sidebarToggle","body","document","getElementsByTagName","classList","add","remove","eventNavBar","$event","providers","ElementRef","Router","AssessmentVisualizadorRoute","path","component","children","DetailInnerComponent","assessmentSendedEvent","EventEmitter","noRegisters","isSubmiting","isFormLocked","assessment","response","Assessment","transform","resposta","err","emit","a","title","subtitle","subTitle","questions","iA","_g","tslib_1.__values","pergunta_tp_a","_h","indA","indicador","nome","pontuacao_indicador","ponderacao","_j","e_2","questoes","_k","q","question","Question","type","form","_l","e_3","opcoes","_m","option","Option","valorA","valor","iB","_o","pergunta_tp_b","_p","indB","_q","e_5","_r","textoUm","textoDois","_s","e_6","_t","valorB1","valorUm","valorB2","valorDois","valorBSelected","onSubmit","valid","answersA","answersB","entity","answers","i2","pergunta_id","res","swal","text","confirmButtonClass","onSubmit__old","formValue","dicToInterable","formValue_1","formValue_1_1","keySplit","key","split","val","indicador_a","indicadorA","indicador_b","indicadorB","PonderacaoAssociadaUm","indicadorPontuacaoA","PonderacaoAssociadaDois","indicadorPontuacaoB","perguntaUm","perguntaDois","answersA_1","answersA_1_1","answerA","assign","answersB_1","answersB_1_1","answerB","dict","Input","Output","SidebarAssessmentComponent","isMobileMenu","window","width","assessmentSelected","getAssessmentList","compare","order","assessmentArray","sort","_b","_c","status","item","indexOf","getNextAction","assessmentArrayLength","unchecked","ass","navigate","index","updatePS","matchMedia","matches","isMac","querySelector","bool","navigator","platform","toUpperCase","Assessment$1","misc","navbar_menu_visible","active_collapse","disabled_collapse_init","NavbarAssessmentComponent","location","renderer","eventNavbar","hasClass","sidebar_mini_active","hide_sidebar_active","click","addClass","simulateWindowResize","setInterval","dispatchEvent","Event","clearInterval","sidebarOpen","sidebarClose","getPath","prepareExternalUrl","goToPrev","goToNext","Location","Renderer2","AssessmentReportInnerComponent","assessmentService","total","icons","themingColor","totalsub","porcentNumber","girls","style","backgroundColor","getUser","result","tema","parseFloat","toFixed","nivel","map","icon","dasharray","color","percentil","name","current","pathLength","Math","PI","loggedUser","parse","loggedInUser","openModal","showModal","closeModal","animations","trigger","transition","animate","group","opacity","RadarComponent","radarChartLabels","radarChartData","label","radarChartType","chartClicked","chartHovered","AssessmentVisualizadorModule","NgModule","imports","CommonModule","RouterModule","forChild","FormsModule","ReactiveFormsModule","declarations","exports","BannerComponent","sanitizer","link","DomSanitizer","BannerModule","SafeUrlPipe","bypassSecurityTrustHtml","bypassSecurityTrustStyle","bypassSecurityTrustScript","bypassSecurityTrustUrl","bypassSecurityTrustResourceUrl","Pipe","StreamPipe","domSanitizer","lu","video","arg","getVideoUri","getVideoThumb","getVideoId","getVideoPoster","isCloudinary","isUrl","includes","isOldServer","AsapClientPipe","setDictionary","dic","dictionary","appName","mainColor","bgSidebar","linkSidebar","bgNavbar","linkNavbar","bgFooter","linkFooter","bgBtn","textBtn","bgSidebarCourse","bgBtnCourse","textBtnCourse","textBtnCourseActive","loginBG","logoLight","logoDark","logoFooter","emblem","bannerHome","bannerPage","intro","YoutubeEmbedPipe","getId","match","CheckTypePipe","isString","string","VimeoEmbedPipe","getVimeoID","PipesModule","SpinnerComponent","translate","message","instant","TranslateService","SpinnerModule","FileManagerModel","apiBaseUrl","populate","uploadFile","formData","FormData","append","file","description","headerOptions","req","HttpRequest","reportProgress","responseType","HttpHeaders","request","getAll","deleteFile","changeFile","FileManagerService","fileManagerModel","serialize","removeFile","findFileCollection","fileManager","FileManagerComponent","_fileManagerService","progress","percentage","loading","findAll","modal","onChange","whiteListUploads","target","files","selectedFile","buttonsStyling","fileType","submit","HttpEventType","UploadProgress","round","loaded","HttpResponse","undefined","fileList","selectFile","deleteFromList","exportAs","FileManagerDirective","Directive","FileManagerModule","TranslateModule","SharedTitleComponent","SharedSubTitleComponent","SharedButtonComponent","button","background","disabled","goNext","SharedMediaComponent","SharedTextComponent","components","ComponentSharedModule","ColorPickerModule","MomentModule","MatSelectModule","MatInputModule","MatStepperModule","MatRadioModule","MatTooltipModule","MatSliderModule","DynamicInputComponent","TrailContentService","getHeaders","updateGrafico","save","update","videoTime","seconds","vote","voto","VideoComponent","_trailContentService","play","timeLapse","disableNextButton","loadYT","YTConfig","l_1","ready","f","setConfig","c","k","createElement","src","async","currentScript","nonce","getAttribute","setAttribute","parentNode","insertBefore","content","check","contentId","notes","source","videoMonitor","idVideo","youtubeParserID","source_path","getElementById","player","YT","Player","videoId","playerVars","autoplay","controls","showinfo","playsinline","enablejsapi","rel","loop","events","onStateChange","timeLapseTimer","getCurrentTime","time","duration","getDuration","videoProgress","iframe","Vimeo","on","ngOnDestroy","showSaved","setCurrentTime","formatTime","currentTime","second","floor","getThumb","changingThisBreaksApplicationSecurity","goPlay","getYoutubeID","urlText","urlResult","ImageComponent","StringHelper","generate","size","possible","charAt","random","ItemComponent","TitleItemComponent","align","italic","bold","underline","VideoItemComponent","mainButton","showVideoControl","allowNext","TextItemComponent","textColor","textSize","textAnimation","textAlign","buttonBgColor","buttonTxtColor","borderWidth","borderStyle","borderRadius","ImageItemComponent","titleSize","PdfItemComponent","ExerciseComponent","exercise","MultiChoiceComponent","feedback","media","PredefinedComponent","ShortTextComponent","ActionAidFormComponent","IntroComponent","animation","image","youtube","vimeo","buttonOptions","settings","layout","ConclusionComponent","featureColor","ChallengeComponent","notes_title","notes_text","medias","button_bg","ChallengeMedia","featured","FormComponent","lines","GroupComponent","GroupForm","selectOptions","subGroups","TableComponent","userActive","countLines","collumns","CollumnTable","MultipleQuestionComponent","MultipleQuestion","MultipleQuestionOption","correct","CorrectIncorrectComponent","feedbackMessage","CorrectIncorrectComponentLines","UploadComponent","titleAnimation","required","StarPointComponent","points","DownloadComponent","iconColor","iconSize","downloadButton","RatingComponent","positive","negative","titleColor","EditorImageConfigComponent","_sanitizer","sendEvent","emitSendEvent","showFileManager","appFileManager","uploadSubmited","getPhoto","VimeoService","vimeoUrl","Promise","resolve","reject","SanitizerHelper","uri","EditorChallengeComponent","_vimeoService","alertShow","btnBlocked","ngAfterViewInit","viewed","setFeatured","videoChanged","checkAllViewed","alert","Sanitizer","thumb","then","sanitize","EditorChallengeConfigComponent","FormControl","notesTitle","notesText","valueChanges","pipe","debounceTime","distinctUntilChanged","setAlign","mediaToManipulate","attr","insertMedia","removeMedia","splice","TrilhaPerformanceService","TrilhaService","TrilhaRatingService","AsapViewerService","providedIn","EditorConclusionComponent","_trilhaService","_trilhaPerformanceService","_trilhaRatingService","viewerService","service","rating","getLoggedUser","param","titulo","routeId","journey_id","ngOnChanges","changes","trail_id","getStageData","metaAtingida","goal_user","goal","retakeCourse","Swal","fire","showCancelButton","confirmButtonText","cancelButtonText","confirm","newRegister","fileRemoved","user_id","certificate","snapshot","routeConfig","miniType","getPerformance","sequence","rightOrWrong","RightOrWrong","CorrectAnswer","WrongAnswer","performance","logo","sessionLoggedUser","badge","arquivo","stageData","onDone","checkEvaluate","loadingEvaluate","checkRequireAvaliation","onNext","require_avaliation","AsapService","display","stagger","animateChild","optional","EditorConclusionConfigComponent","EditorStarPointComponent","toNext","EditorStarPointConfigComponent","EditorDynamicTableComponent","fb","view","generateFormTable","lineArray","arrayControls","_e","_f","FormArray","e_1","_d","FormGroup","items","n_1","e_4","n_1_1","calc","removeView","removeAt","createView","imagePopup","classArray","FormBuilder","EditorDynamicTableConfigComponent","createNewCollumn","removeCollumn","EditorIntroComponent","onLoadError","getUrl","EditorIntroConfigComponent","mediaText","videoUrl","mediaTitle","mediaDescription","EditorLongTextComponent","EditorLongTextConfigComponent","EditorMultiChoiceComponent","listMarkerRoman","listMarkerLetter","listMarkerNumber","blocked","enable","onCheck","selected_1","selected","selectedOption","prop","onSelectionChange","correctOption","verification","feedback_text","messageInError","EditorMultipleQuestionsComponent","storeAnswer","verify","sended","saveAnswer","EditorMultipleQuestionsConfigComponent","insertQuestion","insertOption","questionIndex","removeQuestion","removeOption","indexOption","insertImage","EditorSalesChannelComponent","groups","perguntas","EditorSalesChannelConfigComponent","EditorSheetCorrectIncorrectComponent","EditorSheetCorrectIncorrectConfigComponent","insertLine","removeLine","EditorYesNoComponent","EditorYesNoConfigComponent","EditorUploadComponent","getArchive","EditorUploadConfigComponent","EditorDownloadComponent","download","open","EditorDownloadConfigComponent","EditorRatingComponent","formatLabel","EditorRatingConfigComponent","ForumService","ForumResponseService","ForumVoteService","ForumComponent","formBuilder","_ForumResponseService","_forumService","_forumVoteService","score","displayRatingScore","moment.locale","formUpdate","getForum","getUserLogged","OnChanges","forum","getResponse","answered","ResetPost","reset","collapse","onRemove","cancel","onClose","disable","onEdit","setValue","updateForm","number","pontos","getHidden","hidden","EditorForumConfigComponent","_forumClientService","forumArray","EditorAvaliationComponent","isPosting","generateForm","getAnswer","control","arr","lineLength","array","col","patchValue","disableUpdate","canChange","canShowSave","this_1","answer_1","opt","EditorContractComponent","readed","accept","onScroll","offsetHeight","scrollTop","scrollHeight","MaterialModule","MatAutocompleteModule","MatButtonModule","MatButtonToggleModule","MatCardModule","MatCheckboxModule","MatChipsModule","MatDatepickerModule","MatDialogModule","MatFormFieldModule","MatExpansionModule","MatGridListModule","MatIconModule","MatListModule","MatMenuModule","MatNativeDateModule","MatPaginatorModule","MatProgressBarModule","MatProgressSpinnerModule","MatRippleModule","MatSidenavModule","MatSlideToggleModule","MatSnackBarModule","MatSortModule","MatTableModule","MatTabsModule","MatToolbarModule","FormStepComponent","steps","forEach","step","normalizeStep","inputArray","tableArray","cols","getArray","showFormError","resetForm","onMatRadioGroupChange","input","controlArrayControls","controlArrayControlsLength","line","setValidators","clearValidators","resetFormControlValidation","markAsPristine","markAsUntouched","updateValueAndValidity","toggle","idx","evt","vIdx","enunciated","visibility_control_value","isArray","EditorPdfComponent","innerPDF","encodeURIComponent","getDecodeURL","decodeURIComponent","onSubmitWithWarning","EditorResearchComponent","listMarker","exibirQuestionario","exibirGrafico","atualizarResultadosGraficoApi","graficoV1","graficoV2","graficov3","graficov4","customOptions","mouseDrag","touchDrag","pullDrag","dots","margin","navSpeed","responsive","0","stagePadding","400","740","940","nav","checkboxClicked","conteudo_id","grafico","fromCharCode","answer","slidePrev","slideCarousel","prev","slideNext","slideNextRadio","parentElement","FirebaseNotificationService","clientFirebaseServer","baseUrlAPI","getTutorConversations","sendTutorConversation","answer_id","FeedbackComponent","trailContentService","firebaseNotification","initialRequest","checkUserAnswer","showAnswer","answerList","next_page_url","nextPageUri","CompanyName","getNextPage","_a","apply","votes","up","down","voteRequest","voteLock","AudioComponent","EditorRandomQuestionsComponent","gabarito","cols_1","fill","findIndex","getRandomArbitrary","max","TextComponent","EditorPageComponent","useIFrame","page_id","loadPage","resizeIframe","normalizeHTML","html","startPosition","endPosition","styleHtml","substring","btoa","unescape","EditorComponentsModule","AsapUploadModule","AsapImagePipeModule","AsapSkeletonModule","NgxSkeletonLoaderModule","CarouselModule","SafePipeModule","Trailv2Service","userClassesInfo","trilhaInfoEtapa","trilhaEtapaItem","complement","modalTrilhaBanner","dialogRef","onNoClick","close","MatDialogRef","Inject","MAT_DIALOG_DATA","AmbienteVirtualService","getEtapasByTrail","idCurso","getByUrl","getBannerByTrail","registerNewProgress","subStepTrail","sub_id","getSubEtapa","getContent","header","getFormUrlEncoded","toConvert","formBody","toConvert_1","toConvert_1_1","property","encodedKey","encodedValue","bannerModel","trilha_id","bannerService","collection","arrayModel","fetchAll","monitoraItem","banner","folderAll","folderDelete","folderPost","getTrails","getAssessments","trailView","verifyBanner","verifyBannerTrilha","moment","CursoVisualizadorComponent","ambienteVirtualService","_bannerService","trailService","dialog","loader","queryParams","getParams","defineProperty","jornada_id","client_id","acesso_jornada","getData","getStepData","verificaBanner","origin","pathname","etapa","dates","available","today","format","date_initial","date_final","bannerArray","openDialog","maxWidth","panelClass","afterClosed","module","fragment","currentIndex","getSubEtapaByEvent","getcurrent","notificate","oldCurrent","orientation","checkAsRead","go","etapa_id","toSeoUrl","cursoViewer","cursoNavBar","setIndexes","previous","item_id","read","scrollTo","actualCourse","indexNextCourse","nextCourse","ref","history","back","newCourse","toString","normalize","toLowerCase","newCurrent","urlAfterViewer","sessionStorage","removeItem","getUrlEscola","escolaUri","idSubStep","MatDialog","CursoNavbarComponent","_router","queryParam","origemUrl","referenceUrl","checkIfAllHaveDoneVar","getPlataform","indexes","sub_etapa_id","getSubEtapaTitulo","menuItems","sub_etapa","journey","menuNavigate","obj","CursoSidebarComponent","_ambienteVirtualService","trailv2Service","displayMenu","material","urlEscola","toggleClass","getEtapas","setMaterialURL","name_etapa","from","to","fromIndex","toIndex","trail","etapaArray","getComplements","complementArray","onEtapaChange","ModalStarRatingComponent","showContinueButtom","onRateChange","jump","comment","owner","end","goToRedirect","redirect","navigateByUrl","goToCertificate","ViewerComponent","eventRefreshSideBar","ratingOpened","itensJson","componentArray","itensJson_1","itensJson_1_1","resetVideoUpdater","updateAt10","updateAt25","updateAt50","updateAt75","updateVideoTime","doUpdateVideoTime","goToAnchor","anchor","top","offset","showButton","emitEvent","ratingEvent","disableClose","MiniTrailService","DevelopmentService","ArticlesService","TrilhaItemService","LayoutService","MiniCursoVisualizadorComponent","_MiniTrailService","_DevelopmentService","_ArticlesService","_trilhaItemService","_layoutService","now","loaderList","playlist","playlistPage","bootstrap","getStepListByIdTrail","getDesign","design","getComponent","main","sidebar","full","mini-etapa","etapa-develop","etapa-artigo","miniStep","helperText","getInfoTrail","idTrail","checkModule","subEtapaID","getPlaylistMini","getPlaylistDevelop","getTrilhaItem","getPlaylistArticles","dataLoadError","getPointsStepListByIdTrail","resources","playlistBuffer","insertVideos","actual","newIndex","allowOutsideClick","playlistCounter","setModule","checkDateBetween","date","getTime","checkDate","partial","slice","playlistItemFinal","MiniCursoSidebarComponent","AreaPermissionService","TutorService","profile","tutor","classes","student","class_id","tutorClass","users","search","clearData","saveClass","addStudent","removeStudent","addTutor","removeTutor","studentExtraData","acerto","erro","percentualAcerto","MiniCursoSideMenuComponent","tutorService","_areaPermissionService","isTutor","areas","NotificationService","MiniCursoNavbarComponent","_NotificationService","getNotification","getTitle","markAsDone","notification","goTo","session","onLogout","MiniTrailCommentService","MiniViewerComponent","_CommentsService","comments","Validators","postComment","commentArray","unshift","onDelete","comm","confirmButtonColor","cancelButtonColor","reverse","videoComponent","imageComponent","pdfComponent","showAccept","acceptText","exerciseComponent","multiChoiceComponent","MiniModalTrilhaBanner","MiniSliderComponent","StarRatingComponent","maxScore","forDisplay","rateChanged","range","marked","mark","textNivel","isMarked","CommentsService","CommentsComponent","initForm","getComments","onPosting","ForumTrilhaService","VisualizarForumComponent","_ForumService","_ForumVoteService","_forumTrilhaService","getForums","trilha","updatForm","forums","pagination","meta","nextPage","qtd_like","qtd_unlike","LibraryHelper","removeFromArrayById","inArray","needle","haystack","arraySearch","arrayColumn","columnKey","indexKey","inputValue","newArray","isReturnArray","outputArray","outputObject","inputIndex","inputElement","outputElement","getClient","clientId","urlLogout","Trail","role","tag","findHome","findAllClient","findAllAvatar","findAvatar","findAvatarScore","findTrainingScore","avatarUnlock","aceptChallenge","challengeCloseModal","getChallenge","getChallengeModules","aceptChallengeModules","getVideo","getAllVideo","findLevels","searchLevels","findOneBy","findBy","filterBy","persist","nome_pasta","saveData","setStatus","TrailService","_trailModel","created_at","_this_1","persistTrailConfiguratorByGroupFilter","persistTrailConfiguratorByFilterOnly","persistTrailConfiguratorByUserGroup","persistTrailConfiguratorByUserOnly","folderUserShared","PointsComponent","_trailService","findScore","currentValue","progresso","ExercisesComponent","PrecificacaoVisualizadorComponent","ProdutosService","ProdutosComponent","_ProdutosService","getProducts","produtos","novo","visualizar","deletar","openResumo","NovoProdutoComponent","file_input","errors","_dimensions","largura","cumprimento","peso","foto","dimensions","register","json","onFileChange","reader","FileReader","file_1","readAsDataURL","onload","VisualizarProdutoComponent","MaterialService","MaoObraService","VisualizarResumoProdutoComponent","_MaterialService","_MaoObraService","getMaterial","getMaoObra","materiais","Material","mao_obras","MaoDeObra","FornecedorService","VisualizarMateriaisProdutoComponent","_FornecedorService","produto","inter","float","precision","factor","pow","tempNumber","change","qtd","qtdPecas","preco","precoUn","produto_id","fornecedor_id","unidade","preco_unidade","qtd_pecas","insumo_pecas","parent","getProduto","getMateriais","getFornecedores","fornecedores","ArtesanService","ModalMaoObraProdutoComponent","_ArtesanService","formType","formArtesa","price","formProducao","registerArt","registerProd","VisualizarMaoObraProdutoComponent","calcMobra","checking","results","checkbox","etapas","VisualizarFornecedorProdutoComponent","supplier","supplierCtrl","filteredSupplier","startWith","filterStates","email","phone","cep","adress","CalculadoraService","VisualizarCalcularProdutoComponent","_CalculadoraService","calculated","calcule","Produto","total_isumos","total_mao_de_obra","custo_total","lucro","preco_antes_imposto","impostos","venda_imposto","venda_minimo","referencia_lucro","vinte_porcento","quarenta_porcento","sessenta_porcento","oitenta_porcento","cem_porcento","getCalcule","PedidosComponent","PedidoService","ListaProdutoseService","ValorService","ModalResumoComponent","_PedidoService","_ListaProdutoseService","_ValorService","getOrder","getProductList","getCoasts","dadosPedidos","listas","custos","MeusPedidosComponent","pedidos","getOrders","MY_FORMATS","dateInput","monthYearLabel","dateA11yLabel","monthYearA11yLabel","DadosPedidoComponent","new_register","telefone","cidade","uf","dt_entrega","dt_pedido","id_calculadora","pedido_id","provide","MAT_DATE_LOCALE","useValue","DateAdapter","useClass","MomentDateAdapter","deps","MAT_DATE_FORMATS","ModalEdit","calculadora","qtd_parts","price_parts","CalculoPedidoComponent","name_produto","calculadora_id","getPropsProduct","edit","TransporteService","DescService","CustosComponent","_TransporteService","_DescService","transp","transport","packing","desc","discount","ListaService","ComprasComponent","_ListaService","value_total","getBuyList","ViabilidadeComponent","CustoService","ViabilidadeService","ModalCustosComponent","_CustoService","_ViabilidadeService","getCustos","custo","delClick","CustosFixosComponent","custo_fixo","editar","CustosVariaveisComponent","data_uniformity","getViability","getChartSimple","total_custo_variavel","app","init","cacheDOM","handleCharts","$chart","cssSelectors","chartBar","each","$this","$targetBar","css","Counter","easing","ceil","ModalFaturamentoEstimadoComponent","products","productsCtrl","filteredProducts","selectedId","returnProduct","FaturamentoEstimadoComponent","tables","getQtdProdutos","viabilidade","faturamento_necessario","StudioVisualizadorService","course","lessons","courseId","lessonId","StudioModalStarRatingComponent","studioVisualizadorService","StudioVisualizadorComponent","getLessons","lessonArray","selectLastLesson","lessonViewed","lesson","getFirstUnviewedLesson","selectLesson","lessonSelected","lessonSelectedIndex","hlsPlay","feedbackSended","checkAllLessonViewed","views","lessonArrayLength","fileUri","Hls","isSupported","hlsTimer_1","addSourceToVideo","playHls","hls","loadSource","attachMedia","Events","MANIFEST_PARSED","appendChild","exit","unviewed","AsapViewerRoutes","ROUTES","icontype","PrecificacaoSidebarComponent","menuItem","PrecificacaoNavbarComponent","listTitles","listTitle","titlee","j","ViewerPrecificacaoComponent","MaterialPipe","expression","pure","GestaoVisualizadorComponent","GestaoResumoComponent","Exercicio1Component","BalanceSheet","amount","BalanceSheetService","exerciseId","bs","superCollection","exercises_id","ExercisesService","last","CalculadoraFinanceiraComponent","_balanceSheetService","_exercisesService","maskCellphone","maskLandline","maskCPF","maskCNPJ","maskZipCode","maskDate","output","inputBtnBlock","outputBtnBlock","updateModalSending","transactionSelected","cenarioSelected","balanceArray","calcBalance","dataArray","balancesheet","onInputSubmit","onOutputSubmit","balanceSheetRemove","balanceSheet","balanceSheetUpdate","transactionUpdate","selectCenario","newCenario","resetBalance","LOCALE_ID","ComoResolverDividasComponent","_exerciseService","btnBlock","Debt","debtSelected","debtArray","debt","debtUpdate","plan","TrabalharPraGanharComponent","values","A","B","C","D","E","resultA","resultB","resultC","resultD","isNaN","MeuClienteComponent","cliente","Cliente","ocupation","education","salary","home","age","gender","hobby","SemanaComponent","timeArray","morning","Agenda","afternoon","night","weekArray","report","me","hour","minutes","others","business","insertInMorning","inputDate","toLocaleDateString","insertInAfternoon","insertInNight","meInt","othersInt","businessInt","ag","health","work","intToTime","int","trunc","Number","Aula10Ex1Component","Aula10Ex3Component","_formBuilder","isLinear","contentVisible","objectDisabled","formGroup","editable","questao","img","opcao","opcaoMarcada","resultado","formGroup1","formGroup2","formGroup3","radioChangeHandler","Aula12Ex6Component","ProductionTimeComponent","maskTime","product","Product","productArray","count","totalInteger","mediaInteger","hoursInteger","hours","insert","productSelected","saveUpdate","ExerciciosRoutes","GestaoSidebarComponent","GestaoNavbarComponent","ViewerGestaoComponent","urlArray","Exercicio1Tab1Component","Exercicio1Tab2Component","Exercicio1Tab3Component","channels","note","Exercicio1ScenarioComponent","Exercicio2Component","Exercicio2_3Component","getDebit","Debt$1","Exercicio3Component","getLast","Exercicio4Component","Exercicio5Component","domesticas","viewValue","consulta","trabalho","extras","registerLocaleData","localePt","ExerciciosModule","MatOptionModule","StudioStarRatingComponent","1","2","3","4","5","declareAndExport","AsapViewerModule","AsapLimitToModule","AsapGlobalCommentsModule","entryComponents"],"mappings":"8jJAgBA,IAAIA,GAAgB,SAASC,EAAGC,GAI5B,OAHAF,GAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOC,OAAOK,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,MAC3EN,EAAGC,IAGrB,SAASS,GAAUV,EAAGC,GACzB,GAAiB,mBAANA,GAA0B,OAANA,EAC3B,MAAM,IAAIU,UAAU,uBAAyBC,OAAOX,GAAK,iCAE7D,SAASY,IAAOC,KAAKC,YAAcf,EADnCD,GAAcC,EAAGC,GAEjBD,EAAEO,UAAkB,OAANN,EAAaC,OAAOc,OAAOf,IAAMY,EAAGN,UAAYN,EAAEM,UAAW,IAAIM,GA+EtDX,OAAOc,OAgB7B,SAASC,GAASC,GACrB,IAAIC,EAAsB,mBAAXC,QAAyBA,OAAOC,SAAUC,EAAIH,GAAKD,EAAEC,GAAII,EAAI,EAC5E,GAAID,EAAG,OAAOA,EAAEb,KAAKS,GACrB,GAAIA,GAAyB,iBAAbA,EAAEM,OAAqB,MAAO,CAC1CC,KAAM,WAEF,OADIP,GAAKK,GAAKL,EAAEM,SAAQN,OAAI,GACrB,CAAEQ,MAAOR,GAAKA,EAAEK,KAAMI,MAAOT,KAG5C,MAAM,IAAIP,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IACjCT,KAAKq1C,MAAMl0C,KAAKV,wBAnBrBiB,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,+BACVC,SAAA,q9CAIC+N,EAAAA,wBACAA,EAAAA,0BACAA,EAAAA,2BACAC,EAAAA,UAqDHslD,EA9DA,OCmEMM,GAAmB,CACvBj0D,GACAqkC,GACAkE,GACAe,GACA5H,GACA+I,GACAW,GACA2B,GACAgD,GACAqB,GACAM,GACAU,GACAmB,GACAC,GACAC,GACAyF,GACA+P,GACAE,GACAK,GACApQ,GACAQ,GACAiB,GACAG,GACAU,GACAkC,GACAR,GACAc,GACAW,GACAmF,GACAS,GACAN,GACAlE,GACAI,GACAU,GACAyB,GACAjB,GACAqB,GACAO,GACAS,GACAgB,GACAmB,GACAM,GACAoD,GACAtV,GACAK,GACAoE,GACAK,GACAxO,GACAwc,GACA0M,GACA5M,IAGFmN,GAAA,WAAA,SAAAA,KAwCgC,2BAxC/Br/C,EAAAA,SAAQ1U,KAAA,CAAC,CACR2U,QAAS,CACPC,EAAAA,aACAC,EAAAA,aAAaC,SAAS6zC,IACtB5zC,EAAAA,YACAC,EAAAA,oBACA6iB,GACAy7B,GACA7+C,GACAksB,GACAprB,GACAgI,EAAAA,aACAb,EAAAA,gBACA5D,GACAM,GACA46C,GAAAA,kBACAnzB,EAAAA,oBACAC,EAAAA,mBACAmzB,GAAAA,yBACAlzB,EAAAA,yBAEF9rB,aAAYvV,GACPo0D,IAEL5+C,QAAOxV,GACFo0D,IAELI,gBAAiB,CACfza,GACAwD,GACA2I,GACA1F,GACAmC,GACA2B,GACAziB,GACA6R,GACA9I,GACAsc,QAG4BmN,EAxChC","sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import { Component, OnInit, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'asap-viewer',\n template: `\n <router-outlet></router-outlet> \n `,\n encapsulation: ViewEncapsulation.None\n})\nexport class AsapViewerComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import {Component, OnInit, Input, Output, EventEmitter, ViewChild} from '@angular/core';\nimport {ActivatedRoute} from '@angular/router';\n\ndeclare const swal: any;\n\n@Component({\n selector: 'app-detail-assessment',\n templateUrl: './detail.component.html'\n})\nexport class DetailComponent {\n\n formId: number;\n assessmentId: number;\n private sub: any;\n\n @ViewChild('assessmentDetail',{static:false}) assessmentDetail;\n @ViewChild('assessmentSidebar',{static:false}) assessmentSidebar;\n\n constructor(private activatedRoute: ActivatedRoute) {\n this.getParam();\n }\n\n getParam(): void {\n this.sub = this.activatedRoute.params.subscribe(params => {\n console.log('param', params['id']);\n this.formId = +params['id'];\n });\n }\n\n goToNextAssessment(event): void {\n this.assessmentSidebar.goToNextAssesment(event);\n }\n\n getAssessmentSelected(event) {\n this.assessmentId = event;\n this.assessmentDetail.getAssessment(event);\n }\n\n}\n","import {Component, OnInit, Input, Output, EventEmitter, ViewChild} from '@angular/core';\nimport {ActivatedRoute, Router} from '@angular/router';\n\ndeclare const swal: any;\n\n@Component({\n selector: 'app-report-assessment',\n templateUrl: './asessment-report.component.html'\n})\nexport class AsessmentReportComponent {\n\n formId: number;\n assessmentId: number;\n private sub: any;\n\n @ViewChild('assessmentSidebar',{static:false}) assessmentSidebar;\n\n constructor(private activatedRoute: ActivatedRoute) {\n this.getParam();\n }\n\n getParam(): void {\n this.sub = this.activatedRoute.params.subscribe(params => {\n console.log('param', params['id']);\n this.formId = +params['id'];\n });\n }\n \n goToNextAssessment(event): void {\n this.assessmentSidebar.goToNextAssesment(event);\n }\n\n getAssessmentSelected(event) {\n if (event) {\n this.assessmentId = event;\n }\n }\n\n}\n","\nimport { HttpClient } from '@angular/common/http';\n\n\nexport class BaseService {\n constructor(\n protected http: HttpClient,\n protected basePath: string,\n protected entityName: string) {}\n\n protected host: string = localStorage.getItem('apiURL');\n protected token = localStorage.getItem('token')\n \n protected headers = {\n 'Content-Type': 'application/json',\n 'Authorization': this.token,\n 'Access-Control-Allow-Origin': '*'\n };\n\n protected options = {\n headers: this.headers\n };\n\n getResources(params = {}):any {\n return this.http.get(this.resourceUrl(null, params), this.options);\n }\n\n getResource(id, params = {}):any {\n return this.http.get(this.resourceUrl(id, params), this.options);\n }\n\n createResource(data, params = {}):any {\n return this.http.post(this.resourceUrl(null, params), JSON.stringify(data), this.options);\n }\n \n updateResource(data, params = {}):any {\n return this.http.put(this.resourceUrl(data.id, params), JSON.stringify(data), this.options);\n }\n\n deleteResource(id):any {\n return this.http.delete(this.resourceUrl(id), this.options);\n }\n\n resourceUrl(id = null, params = {}):any {\n\n const endpoint = [\n this.host,\n this.basePath,\n this.urlParameters(params),\n this.entityName,\n id\n ].filter(element => element != false).join('/').replace(/\\/$/, '')\n\n return endpoint + this.queryString(params)\n }\n\n protected urlParameters(params):any {\n var urlParameters = []\n\n for(var placeholder in params)\n if (/.*_id$/.test(placeholder))\n urlParameters.push(`${placeholder}/${params[placeholder]}`)\n\n return urlParameters.join('/')\n }\n\n protected queryString(params):any {\n if(params.query){\n return `?${params.query}`\n }else if(params.router){\n return `/${params.router}` \n }else {\n return ''\n }\n }\n\n\n}\n","import {Injectable} from '@angular/core';\nimport { BaseService } from './base.service';\nimport { Observable } from 'rxjs';\nimport { Global } from 'asap-crud';\nimport { HttpClient } from '@angular/common/http';\n\n@Injectable()\nexport class AssessmentService extends BaseService {\n\n constructor(public httpClient: HttpClient, public global:Global) {\n super(httpClient,'','');\n }\n\n all(): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/client/meu-desempenho';\n return this.httpClient.get(url, {headers: this.getHeader()});\n }\n\n fetch(id: number): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/client/meu-desempenho/' + id;\n return this.httpClient.get(url, {headers: this.getHeader()});\n }\n\n find(id: number): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/client/pasta-assessment/' + id;\n return this.httpClient.get(url, {headers: this.getHeader()});\n }\n\n getScore(data: any) {\n const url = this.global.apiURL() + '/api/v2/client/pasta-assessment/pergunta/post';\n return this.httpClient.post(url, data, {headers: this.getHeader()});\n }\n\n getReportIndicador(): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/report/indicador';\n return this.httpClient.get(url, {headers: this.getHeader()});\n }\n\n getReportTema(): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/report/tema';\n return this.httpClient.get(url, {headers: this.getHeader()});\n }\n\n getReportEixo(): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/report/eixo';\n return this.httpClient.get(url, {headers: this.getHeader()});\n }\n\n postConfirmAssessment(banner_id: number): Observable<any> {\n return this.httpClient.post(this.global.apiURL() + '/api/v2/client/banner/view/post',\n {banner_id: banner_id},\n {headers: this.getHeader()});\n }\n\n assessmentBannerViewed(assessment_id: number): Observable<any> {\n return this.httpClient.post(\n this.global.apiURL() + '/api/v2/client/meu-desempenho/view',\n {assessment_id: assessment_id},\n {headers: this.getHeader()}\n );\n }\n\n getHeader() {\n const token = localStorage.getItem('token');\n const headerOptions = {\n 'Authorization': token,\n 'Accept': 'application/json'\n };\n return headerOptions;\n }\n\n\n}\n","import { Component, OnInit, ElementRef, ViewChild } from '@angular/core';\nimport { Router, ActivatedRoute, ParamMap } from '@angular/router';\nimport { AssessmentService } from '../../@core/services/assessment.service';\n\ndeclare const $: any;\n\n@Component({\n selector: 'app-login-cmp',\n templateUrl: './assessment-visualizador.component.html',\n styleUrls: ['./assessment-visualizador.component.css'],\n providers: [ AssessmentService ]\n})\n\nexport class AssessmentVisualizadorComponent implements OnInit {\n test: Date = new Date();\n private toggleButton: any;\n private sidebarVisible: boolean;\n private nativeElement: Node;\n public percent: any;\n\n formId: number;\n assessmentId: number;\n private sub: any;\n\n @ViewChild('assessmentDetail',{static:false}) assessmentDetail;\n @ViewChild('assessmentSidebar',{static:false}) assessmentSidebar;\n\n constructor(\n private element: ElementRef,\n private route: ActivatedRoute,\n private router: Router,\n private _assessmentService: AssessmentService\n ) {\n this.nativeElement = element.nativeElement;\n this.sidebarVisible = false;\n this.sub = this.route.params.subscribe(params => {\n console.log('param', params['id']);\n this.formId = +params['id'];\n });\n }\n\n ngOnInit() {\n const navbar: HTMLElement = this.element.nativeElement;\n this.toggleButton = navbar.getElementsByClassName('navbar-toggle')[0];\n\n setTimeout(function() {\n $('.card').removeClass('card-hidden');\n }, 700);\n this.checkProgressBar();\n }\n\n getAssessmentSelected(event) {\n this.assessmentId = event;\n this.assessmentDetail.getAssessment(event);\n }\n\n goToNextAssessment(event) {\n this.assessmentSidebar.goToNextAssesment(event);\n }\n\n checkProgressBar() {\n const percent = localStorage.getItem('percent');\n\n if (!percent) {\n this.percent = 0;\n } else {\n this.percent = parseInt(percent);\n }\n }\n\n increasePercent(percent) {\n this.increase(percent);\n }\n\n increasePercentNav() {\n if (this.percent >= 100) {\n this.percent = 100;\n } else {\n this.percent = this.percent + 25;\n }\n this.increase(this.percent);\n }\n\n increase(value) {\n localStorage.setItem('percent', value);\n }\n\n sidebarToggle() {\n const toggleButton = this.toggleButton;\n const body = document.getElementsByTagName('body')[0];\n const sidebar = document.getElementsByClassName('navbar-collapse')[0];\n if (this.sidebarVisible === false) {\n setTimeout(function() {\n toggleButton.classList.add('toggled');\n }, 500);\n body.classList.add('nav-open');\n this.sidebarVisible = true;\n } else {\n this.toggleButton.classList.remove('toggled');\n this.sidebarVisible = false;\n body.classList.remove('nav-open');\n }\n }\n\n public eventNavBar($event): any {\n console.log($event);\n }\n\n}\n","import {Routes} from '@angular/router';\nimport {DetailComponent} from './detail/detail.component';\nimport {AsessmentReportComponent} from './asessment-report/asessment-report.component';\nimport { AssessmentVisualizadorComponent } from './assessment-visualizador.component';\n\nexport const AssessmentVisualizadorRoute: Routes = [\n {\n path: 'assessment',\n component: AssessmentVisualizadorComponent,\n children: [\n {\n path: ':id',\n component: DetailComponent\n }, {\n path: ':id/relatorio',\n component: AsessmentReportComponent\n }\n ]\n }\n];\n","import {Component, OnInit, Input, Output, EventEmitter} from '@angular/core';\nimport {ActivatedRoute} from '@angular/router';\nimport { AssessmentService } from '../../../../@core/services/assessment.service';\n\ndeclare const swal: any;\n\n@Component({\n selector: 'app-detail-assessment-inner',\n templateUrl: './detail-inner.component.html',\n styleUrls: ['./detail-inner.component.scss'],\n providers: [AssessmentService]\n})\nexport class DetailInnerComponent implements OnInit {\n\n @Input() id: number;\n @Output() public assessmentSendedEvent = new EventEmitter<any>();\n\n assessment: Assessment;\n noRegisters: boolean;\n isSubmiting: boolean;\n isFormLocked: boolean;\n post: any;\n\n constructor(private _assessmentService: AssessmentService, private activatedRoute: ActivatedRoute) {\n this.noRegisters = false;\n this.isSubmiting = false;\n this.isFormLocked = false;\n this.getParam();\n }\n\n ngOnInit() {\n if (this.id) {\n this.getAssessment(this.id);\n }\n }\n\n getParam(): void {\n this.activatedRoute.params.subscribe(params => {\n this.id = params['id'];\n });\n }\n\n getAssessment(id: number): void {\n this.assessment = null;\n this.noRegisters = false;\n this.isFormLocked = false;\n this._assessmentService.find(id).subscribe((response:any) => {\n if (response.data.length === 0) {\n this.noRegisters = true;\n this.assessment = new Assessment;\n } else {\n this.assessment = this.transform(response.data);\n if (response.data[0].resposta.length > 0) {\n this.isFormLocked = true;\n }\n }\n }, err => {\n console.log(err);\n });\n }\n\n goToNextAssessment(): void {\n this.assessmentSendedEvent.emit(this.id);\n }\n\n transform(data: Array<any>): Assessment {\n\n if(data.length == 0) {\n return new Assessment;\n }\n\n const a = data[0];\n\n const assessment = new Assessment;\n\n assessment.id = a.id;\n assessment.title = a.title;\n assessment.subtitle = a.subTitle;\n\n assessment.questions = [];\n\n let iA = 0;\n\n for(let indA of a.pergunta_tp_a) {\n let indicador = indA.nome;\n let pontuacao_indicador = indA.ponderacao;\n for (const q of indA.questoes) {\n const question = new Question;\n question.nome = q.nome;\n question.ponderacao = q.ponderacao;\n question.type = 'A';\n question.indicador = indicador;\n question.pontuacao_indicador = pontuacao_indicador;\n\n if (a['resposta'].length > 0) {\n question.value = a['resposta'][0].form.pergunta_tp_a[iA].resposta;\n }\n\n question.options = [];\n\n for (const o of q.opcoes) {\n const option = new Option;\n option.nome = o.nome;\n option.valorA = o.valor;\n\n question.options.push(option);\n }\n\n assessment.questions.push(question);\n iA++;\n }\n\n\n }\n\n let iB = 0;\n\n for(let indB of a.pergunta_tp_b) {\n let indicador = indB.nome;\n let pontuacao_indicador = indB.ponderacao;\n\n for (const q of indB.questoes) {\n const question = new Question;\n question.nome = q.nome;\n question.ponderacao = q.ponderacao;\n question.indicador = indicador;\n question.pontuacao_indicador = pontuacao_indicador;\n question.textoUm = q.textoUm;\n question.textoDois = q.textoDois;\n question.type = 'B';\n\n question.options = [];\n\n for (const o of q.opcoes) {\n const option = new Option;\n option.nome = o.nome;\n option.valorB1 = o.valorUm;\n option.valorB2 = o.valorDois;\n\n if (a['resposta'].length > 0) {\n option.valorBSelected = a['resposta'][0].form.pergunta_tp_b[iB].resposta[o.nome];\n }\n\n question.options.push(option);\n }\n\n console.log(question);\n\n assessment.questions.push(question);\n\n }\n iB++;\n }\n\n return assessment;\n }\n\n onSubmit(form: any) {\n\n const counter = 10;\n\n if (form.valid) {\n\n const value = form.value;\n\n console.log(\"value\", value);\n\n let answersA = [];\n let answersB = [];\n\n for(let i=0; i<counter; i++) {\n if(value['questionA.' + i + '.ponderacao']) {\n answersA.push({\n resposta: value['questionA.' + i + '.resposta'],\n ponderacao: value['questionA.' + i + '.ponderacao'],\n indicador: value['questionA.' + i + '.indicador'],\n pontuacao_indicador: value['questionA.' + i + '.pontuacao_indicador'],\n });\n }\n if(value['questionB.' + i + '.ponderacao']) {\n let entity = {};\n\n entity['ponderacao'] = value['questionB.' + i + '.ponderacao'];\n entity['pontuacao_indicador'] = value['questionB.' + i + '.pontuacao_indicador'];\n entity['indicador'] = value['questionB.' + i + '.indicador'];\n\n let answers = {};\n\n for(let i2=0; i2<counter; i2++) {\n\n if(value['questionB.' + i + '.resposta.' + i2 + '.name']) {\n answers[value['questionB.' + i + '.resposta.' + i2 + '.name']] = value['questionB.' + i + '.resposta.' + i2 + '.value'];\n }\n\n }\n\n entity['resposta'] = answers;\n\n answersB.push(entity);\n }\n }\n\n const body = {\n title: this.assessment.title,\n subTitle: this.assessment.subtitle,\n pergunta_tp_a: answersA,\n pergunta_tp_b: answersB,\n pergunta_id: this.id\n };\n\n console.log(body);\n\n\n this.isSubmiting = true;\n this._assessmentService.getScore(body)\n .subscribe((res:any) => {\n this.goToNextAssessment();\n this.isSubmiting = false;\n swal({\n title: 'Formulário enviado com sucesso',\n text: 'Obrigado por responder a esse questionário',\n type: 'success',\n confirmButtonClass: 'btn btn-success',\n });\n }, err => {\n console.log(err);\n this.isSubmiting = false;\n });\n\n } else {\n swal({\n title: 'Formulário inválido',\n text: 'Por favor, responda todas as respostas',\n type: 'error',\n confirmButtonClass: 'btn btn-success',\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 onSubmit__old(form: any) {\n\n if (form.valid) {\n\n const formValue = this.dicToInterable(form.value);\n\n const answersA = [];\n const answersB = [];\n\n for (const value of formValue) {\n\n const keySplit = value.key.split('.');\n\n if (keySplit[0] === 'questionA') {\n if (!answersA[keySplit[1]]) {\n answersA[keySplit[1]] = []\n }\n answersA[keySplit[1]][keySplit[2]] = value.val;\n }\n\n if (keySplit[0] === 'questionB') {\n if (!answersB[keySplit[1]]) {\n answersB[keySplit[1]] = []\n }\n\n if (keySplit[2] === 'ponderacao') {\n answersB[keySplit[1]]['ponderacao'] = value.val;\n }\n\n if (keySplit[2] === 'resposta') {\n if (!answersB[keySplit[1]]['resposta']) {\n answersB[keySplit[1]]['resposta'] = {};\n }\n answersB[keySplit[1]]['resposta'][keySplit[3]] = value.val;\n }\n\n }\n }\n\n const post = {\n 'pergunta_id': this.assessment.id,\n 'title': this.assessment.title,\n 'subTitle': this.assessment.subtitle,\n 'indicador_a': this.assessment.indicadorA,\n 'indicador_b': this.assessment.indicadorB,\n 'PonderacaoAssociadaUm': this.assessment.indicadorPontuacaoA,\n 'PonderacaoAssociadaDois': this.assessment.indicadorPontuacaoB,\n 'perguntaUm': [],\n 'perguntaDois': []\n };\n\n for (const answerA of answersA) {\n post['perguntaUm'].push(Object.assign({}, answerA));\n }\n\n for (const answerB of answersB) {\n if (answerB) {\n post['perguntaDois'].push(Object.assign({}, answerB));\n }\n }\n\n this.isSubmiting = true;\n this._assessmentService.getScore(post)\n .subscribe((res:any) => {\n this.goToNextAssessment();\n this.isSubmiting = false;\n swal({\n title: 'Formulário enviado com sucesso',\n text: 'Obrigado por responder a esse questionário',\n type: 'success',\n confirmButtonClass: 'btn btn-success',\n });\n }, err => {\n console.log(err);\n this.isSubmiting = false;\n });\n\n } else {\n swal({\n title: 'Formulário inválido',\n text: 'Por favor, responda todas as respostas',\n type: 'error',\n confirmButtonClass: 'btn btn-success',\n });\n }\n\n }\n\n dicToInterable(dict: Object): Array<any> {\n const a = [];\n for (const key in dict) {\n if (dict.hasOwnProperty(key)) {\n a.push({key: key, val: dict[key]});\n }\n }\n return a;\n }\n\n}\n\nclass Assessment {\n\n public id: number;\n public title: string;\n public subtitle: string;\n\n public indicadorA: string;\n public indicadorPontuacaoA: string;\n\n public indicadorB: string;\n public indicadorPontuacaoB: string;\n\n public questions: Array<Question>;\n\n}\n\nclass Question {\n\n public nome: string;\n public ponderacao: string;\n\n public indicador: string;\n public pontuacao_indicador: string;\n\n public textoUm: string;\n public textoDois: string;\n\n public type: string;\n\n public value: any = null;\n\n public options: Array<Option>;\n\n}\n\nclass Option {\n\n public nome: string;\n\n public valorA: string;\n\n public valorB1: string;\n public valorB2: string;\n public valorBSelected: string;\n\n}\n","import {Component, OnInit, Input, Output, EventEmitter} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { AssessmentService } from '../../../@core/services/assessment.service';\n\ndeclare const $: any;\n\n@Component({\n selector: 'app-sidebar-assessment-visualizador',\n templateUrl: './sidebar.component.html',\n styleUrls: ['../assessment-visualizador.component.css'],\n providers: [AssessmentService]\n})\n\nexport class SidebarAssessmentComponent implements OnInit {\n public assessmentArray: Array<Assessment>;\n\n @Input() form;\n @Output() public event = new EventEmitter<any>();\n\n isMobileMenu() {\n if ($(window).width() > 991) {\n return false;\n }\n return true;\n };\n\n constructor(private _assessmentService: AssessmentService, private router: Router) {\n }\n\n assessmentSelected(assessment: Assessment) {\n this.event.emit(assessment.id);\n }\n\n ngOnInit() {\n this.getAssessmentList(this.form);\n }\n\n compare(a,b) {\n if (a.order < b.order)\n return -1;\n if (a.order > b.order)\n return 1;\n return 0;\n }\n\n getAssessmentList(id: number): void {\n this._assessmentService.fetch(id)\n .subscribe((res:any) => {\n this.assessmentArray = [];\n\n res.data.sort(this.compare);\n\n for (let a of res.data) {\n let assessment = new Assessment;\n assessment.id = a.id;\n assessment.title = a.title;\n assessment.status = a.status;\n this.assessmentArray.push(assessment);\n }\n this.assessmentSelected(this.assessmentArray[0]);\n }, err => {\n console.log(err);\n });\n }\n\n goToNextAssesment(id: string) {\n let item = this.assessmentArray.find((item) => {\n return item.id == id\n });\n\n item.status = 1;\n\n let index = this.assessmentArray.indexOf(item);\n\n this.getNextAction();\n }\n\n getNextAction() {\n let assessmentArrayLength = this.assessmentArray.length;\n\n let i = 0;\n\n let unchecked = null;\n\n for (let ass of this.assessmentArray) {\n if (ass.status == 1) {\n i++;\n } else {\n if (unchecked == null) {\n unchecked = ass;\n }\n }\n }\n\n if (assessmentArrayLength == i) {\n this.router.navigate(['/visualizador/assessment/'+ this.form + '/relatorio']);\n } else {\n let index = this.assessmentArray.indexOf(unchecked);\n this.assessmentSelected(this.assessmentArray[index]);\n }\n }\n\n updatePS(): void {\n if (window.matchMedia(`(min-width: 960px)`).matches && !this.isMac()) {\n const elemSidebar = <HTMLElement>document.querySelector('.sidebar .sidebar-wrapper');\n }\n }\n\n isMac(): boolean {\n let bool = false;\n if (navigator.platform.toUpperCase().indexOf('MAC') >= 0 || navigator.platform.toUpperCase().indexOf('IPAD') >= 0) {\n bool = true;\n }\n return bool;\n }\n}\n\nclass Assessment {\n public id: string;\n public title: string;\n public status: number;\n}\n","import { Component, OnInit, ViewChild, ElementRef, Directive, EventEmitter, Output, Renderer2 } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { Location, LocationStrategy, PathLocationStrategy } from '@angular/common';\nconst misc: any = {\n navbar_menu_visible: 0,\n active_collapse: true,\n disabled_collapse_init: 0,\n};\n\ndeclare var $: any;\n@Component({\n selector: 'app-navbar-assessment',\n templateUrl: './navbar.component.html',\n styleUrls: ['../assessment-visualizador.component.css']\n})\n\nexport class NavbarAssessmentComponent implements OnInit {\n private listTitles: any[];\n location: Location;\n private nativeElement: Node;\n private toggleButton: any;\n private sidebarVisible: boolean;\n\n @ViewChild('app-navbar-assessment',{static:false}) button: any;\n\n indexes: any;\n // ASAP\n @Output()\n public eventNavbar = new EventEmitter<any>();\n\n\n constructor(location: Location, private renderer: Renderer2, private element: ElementRef) {\n this.location = location;\n this.nativeElement = element.nativeElement;\n this.sidebarVisible = false;\n }\n\n ngOnInit() {\n const navbar: HTMLElement = this.element.nativeElement;\n this.toggleButton = navbar.getElementsByClassName('navbar-toggle')[0];\n if ($('body').hasClass('sidebar-mini')) {\n misc.sidebar_mini_active = true;\n }\n if ($('body').hasClass('hide-sidebar')) {\n misc.hide_sidebar_active = true;\n }\n $('#minimizeSidebar').click(function() {\n if (misc.sidebar_mini_active === true) {\n $('body').removeClass('sidebar-mini');\n misc.sidebar_mini_active = false;\n\n } else {\n setTimeout(function() {\n $('body').addClass('sidebar-mini');\n\n misc.sidebar_mini_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function() {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function() {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n $('#hideSidebar').click(function() {\n if (misc.hide_sidebar_active === true) {\n setTimeout(function() {\n $('body').removeClass('hide-sidebar');\n misc.hide_sidebar_active = false;\n }, 300);\n setTimeout(function() {\n $('.sidebar').removeClass('animation');\n }, 600);\n $('.sidebar').addClass('animation');\n\n } else {\n setTimeout(function() {\n $('body').addClass('hide-sidebar');\n // $('.sidebar').addClass('animation');\n misc.hide_sidebar_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function() {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function() {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n }\n isMobileMenu() {\n if ($(window).width() < 991) {\n return false;\n }\n return true;\n };\n sidebarOpen() {\n const toggleButton = this.toggleButton;\n const body = document.getElementsByTagName('body')[0];\n setTimeout(function() {\n toggleButton.classList.add('toggled');\n }, 500);\n body.classList.add('nav-open');\n\n this.sidebarVisible = true;\n };\n sidebarClose() {\n const body = document.getElementsByTagName('body')[0];\n this.toggleButton.classList.remove('toggled');\n this.sidebarVisible = false;\n body.classList.remove('nav-open');\n };\n sidebarToggle() {\n // const toggleButton = this.toggleButton;\n // const body = document.getElementsByTagName('body')[0];\n if (this.sidebarVisible === false) {\n this.sidebarOpen();\n } else {\n this.sidebarClose();\n }\n };\n\n getPath() {\n return this.location.prepareExternalUrl(this.location.path());\n }\n\n goToPrev() {\n console.log(\"proximo\");\n this.eventNavbar.emit('previous');\n }\n\n goToNext() {\n console.log(\"antes\");\n this.eventNavbar.emit('next');\n }\n\n}\n","import {Component, OnInit, Input, Output, EventEmitter} from '@angular/core';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport { trigger, style, transition, animate, group } from '@angular/animations';\nimport { AssessmentService } from '../../../../@core/services/assessment.service';\n\ndeclare const swal: any;\n\n@Component({\n selector: 'app-report-assessment-inner',\n templateUrl: './assessment-report-inner.component.html',\n styleUrls: ['./assessment-report-inner.component.scss'],\n providers: [AssessmentService],\n animations: [\n trigger('itemAnim', [\n transition(':enter', [\n style({transform: 'translateY(-100%)'}),\n animate(350)\n ]),\n transition(':leave', [\n group([\n animate('0.2s ease', style({\n transform: 'translate(150px,25px)'\n })),\n animate('0.5s 0.2s ease', style({\n opacity: 0\n }))\n ])\n ])\n ])\n]\n})\nexport class AssessmentReportInnerComponent implements OnInit {\n total:number=0;\n showModal: boolean;\n icons:any=[];\n data:any={};\n themingColor:string=\"#fff\";\n totalsub:number=0;\n porcentNumber:number=57;\n loggedInUser : string;\n public dashArray: string;\n public nivel: string;\n girls:any=[];\n constructor(\n private activatedRoute: ActivatedRoute,\n private router: Router,\n private assessmentService: AssessmentService\n ) {\n document.body.style.backgroundColor = \"white\";\n }\n\n ngOnInit() {\n this.getUser();\n this.assessmentService.getReportIndicador().subscribe(result=>{\n console.log(result.data.total);\n this.icons = result.data.tema;\n //this.total = result.data.total;\n this.total = parseFloat(result.data.total.toFixed(1));\n this.nivel = result.data.total < 33 ? 'basic' : (result.data.total < 66 ? 'intermediary' : 'advanced');\n this.themingColor = result.data.total < 33 ? '#f27173' : (result.data.total < 66 ? '#f99e49' : '#83c1a1');\n this.icons.map((icon)=>{\n icon.dasharray = \"0,100\";\n icon.color = icon.percentil < 33 ? '#f27173' : (icon.percentil < 66 ? '#f99e49' : '#83c1a1');\n icon.done=false;\n });\n this.girls = [\n {name:'Básico', color: '#f27173',current:this.nivel=='basic' ? true : false},\n {name:'Intermediário', color: '#f99e49',current:this.nivel=='intermediary' ? true : false},\n {name:'Avançado', color: '#83c1a1',current:this.nivel=='advanced' ? true : false}\n ];\n console.log(this.girls);\n setTimeout(() => {\n this.icons.map((icon)=>{\n let total = icon.percentil / 140 * 100;\n let radius = 9;\n let totalLength = ( Math.PI * 3.2 * radius );\n let pathLength = ( total * 80 / 100 );\n icon.dasharray = `${ pathLength },100`;\n icon.done=true;\n });\n }, 1000);\n\n },error=>{\n console.log(error);\n })\n\n }\n\n\n getUser(){\n let loggedUser = JSON.parse(localStorage.getItem('loggedUser'));\n this.loggedInUser = loggedUser.data.name;\n }\n\n\n openModal(item){\n this.showModal=true;\n this.data=item;\n console.log(this.data)\n }\n closeModal(){\n this.showModal=false;\n this.data={};\n }\n\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-radar',\n templateUrl: './radar.component.html',\n //styleUrls: ['../../relatorios.component.css']\n})\nexport class RadarComponent {\n\n public radarChartLabels:string[] = ['COMERCIALIZAÇÃO', 'FORMALIZAÇÃO', 'GESTÃO ADMINISTRATIVA', 'GESTÃO DE PESSOAS', 'GESTÃO FINANCEIRA', 'PRODUÇÃO', 'SEGURANÇA E QUALIDADE DE VIDA'];\n\n public radarChartData:any = [\n {data: [65, 59, 90, 81, 56, 55, 40], label: 'Series A'},\n {data: [28, 48, 40, 19, 96, 27, 100], label: 'Series B'}\n ];\n public radarChartType:string = 'radar';\n\n // events\n public chartClicked(e:any):void {\n console.log(e);\n }\n\n public chartHovered(e:any):void {\n console.log(e);\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {RouterModule} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {AssessmentVisualizadorRoute} from './assessment-visualizador.routing';\nimport {DetailInnerComponent} from './detail/detail-inner/detail-inner.component';\nimport {DetailComponent} from './detail/detail.component';\nimport {SidebarAssessmentComponent} from './sidebar/sidebar.component';\nimport {NavbarAssessmentComponent} from './navbar/navbar.component';\nimport {AsessmentReportComponent} from './asessment-report/asessment-report.component';\nimport {AssessmentReportInnerComponent} from './asessment-report/assessment-report-inner/assessment-report-inner.component';\nimport {AssessmentVisualizadorComponent} from './assessment-visualizador.component';\nimport {RadarComponent} from './graficos/radar/radar.component';\n\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(AssessmentVisualizadorRoute),\n FormsModule,\n ReactiveFormsModule\n ],\n declarations: [\n DetailComponent,\n DetailInnerComponent,\n SidebarAssessmentComponent,\n NavbarAssessmentComponent,\n AsessmentReportComponent,\n AssessmentReportInnerComponent,\n RadarComponent,\n AssessmentVisualizadorComponent\n ],\n exports: [\n DetailComponent,\n DetailInnerComponent,\n SidebarAssessmentComponent,\n NavbarAssessmentComponent,\n AsessmentReportComponent,\n AssessmentReportInnerComponent,\n RadarComponent,\n AssessmentVisualizadorComponent\n ]\n})\n\nexport class AssessmentVisualizadorModule {\n}\n","import { Component, Input } from '@angular/core';\nimport { DomSanitizer, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';\n\n@Component({\n selector: 'app-banner',\n templateUrl: './banner.component.html',\n styleUrls: ['./banner-editor.component.css']\n})\n\nexport class BannerComponent {\n @Input() item: any;\n\n constructor(\n private sanitizer: DomSanitizer\n ) {\n \n }\n\n link() {\n console.log('lnk');\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\nimport { BannerComponent } from './banner.component';\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule\n ],\n declarations: [\n BannerComponent,\n ],\n exports: [\n BannerComponent\n ]\n})\n\nexport class BannerModule { }\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n@Pipe({name: 'safeUrl'})\nexport class SafeUrlPipe implements PipeTransform {\n constructor(private sanitizer: DomSanitizer) {}\n\n transform(url: string, type: string) {\n switch (type) {\n case 'html': return this.sanitizer.bypassSecurityTrustHtml(url);\n case 'style': return this.sanitizer.bypassSecurityTrustStyle(url);\n case 'script': return this.sanitizer.bypassSecurityTrustScript(url);\n case 'url': return this.sanitizer.bypassSecurityTrustUrl(url);\n case 'resourceUrl': return this.sanitizer.bypassSecurityTrustResourceUrl(url);\n default: return this.sanitizer.bypassSecurityTrustResourceUrl(url);\n }\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\n\n@Pipe({name: 'stream'})\nexport class StreamPipe implements PipeTransform {\n\n public url: string;\n\n constructor(private domSanitizer: DomSanitizer) {\n const lu = JSON.parse(localStorage.getItem('loggedUser')).data;\n this.url = lu.link;\n }\n\n transform(video: string, arg?: string): SafeResourceUrl | string {\n if (arg === 'link') {\n return this.getVideoUri(video);\n }\n if (arg === 'thumb') {\n return this.getVideoThumb(video);\n }\n if (arg === 'id') {\n return this.getVideoId(video);\n }\n if (arg === 'poster') {\n return this.getVideoPoster(video);\n }\n if (arg === 'styleThumbUrl') {\n let url = this.domSanitizer.bypassSecurityTrustStyle(`url(${this.getVideoThumb(video)})`);\n console.log('Stream Thumb',url);\n return url \n }\n return video;\n }\n\n getVideoThumb(url: string): SafeResourceUrl {\n if (this.isCloudinary(url)) {\n return url.split('.mp4').join('.png');\n }\n if (this.isUrl(url)) return url;\n if (url.includes('http')) {\n return this.domSanitizer.bypassSecurityTrustResourceUrl(url);\n }\n else {\n return this.domSanitizer.bypassSecurityTrustResourceUrl(this.url + 'videos/thumb/' + this.getVideoId(url));\n }\n }\n\n getVideoPoster(url: string): SafeResourceUrl {\n if (url.includes('http')) {\n return this.domSanitizer.bypassSecurityTrustResourceUrl(url);\n }\n else {\n return this.domSanitizer.bypassSecurityTrustResourceUrl(this.url + 'videos/thumb/' + this.getVideoId(url));\n }\n }\n\n getVideoUri(url: string): SafeResourceUrl {\n // if (url.includes('http')) {\n return this.domSanitizer.bypassSecurityTrustResourceUrl(url);\n // }\n // else {\n // return this.domSanitizer.bypassSecurityTrustResourceUrl(this.url + 'videos/' + this.getVideoId(url) + '/480');\n // }\n }\n\n getVideoId(url: string): string {\n console.log(url);\n if (this.isUrl(url)) {\n const split = url.split('/');\n return split[4];\n }\n return url;\n }\n\n isCloudinary(url) {\n if (url.indexOf('cloudinary.com') >= 0) return true;\n return false;\n }\n\n isUrl(s: string): boolean {\n const regexp = /[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)/;\n return regexp.test(s);\n }\n\n isOldServer(url) {\n if (url.indexOf('api-dev.sr02.twcreativs.stream') >= 0) return true;\n return false;\n }\n\n\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'asapClient'\n})\nexport class AsapClientPipe implements PipeTransform {\n\n public static dictionary = {\n appName: 'Sistema EAD/ASAP',\n mainColor: \"maroon\",\n bgSidebar: \"green\",\n linkSidebar: \"black\",\n bgNavbar: \"green\",\n linkNavbar: \"black\",\n bgFooter: \"green\",\n linkFooter: \"black\",\n bgBtn: \"green\",\n textBtn: \"black\",\n bgSidebarCourse: \"black\",\n bgBtnCourse: \"black\",\n textBtnCourse: \"black\",\n textBtnCourseActive: \"black\",\n loginBG: 'https://images.pexels.com/photos/531880/pexels-photo-531880.jpeg?cs=srgb&dl=background-blur-clean-531880.jpg&fm=jpg',\n logoLight: 'https://va.medcom.id/2018/default/images/main/logo.png',\n logoDark: 'https://media.avvosites.com/upload/sites/3145/2018/03/thrift-mclemore-logo.png',\n logoFooter: 'https://www.shsu.edu/global/images/shsu.svg',\n emblem: 'https://rcpsg.ac.uk/images/svg/icon-graduation-cap.svg',\n bannerHome: 'https://static1.squarespace.com/static/54f87ad5e4b064cc65123213/t/54fb4747e4b03e45c6388dac/1425753930819/sursumcorda_porto.png?format=1500w',\n bannerPage: 'https://static1.squarespace.com/static/54f87ad5e4b064cc65123213/t/54fb4747e4b03e45c6388dac/1425753930819/sursumcorda_porto.png?format=1500w',\n\n intro: 'Você está no Sistema EAD/ASAP',\n };\n\n public static setDictionary(dic) {\n for (const key in dic) {\n AsapClientPipe.dictionary[key] = dic[key];\n }\n }\n\n transform(value: any, args?: any): any {\n if (AsapClientPipe.dictionary[value]) {\n return AsapClientPipe.dictionary[value];\n }\n return value;\n }\n\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({name: 'youtubeEmbed'})\nexport class YoutubeEmbedPipe implements PipeTransform {\n constructor() {}\n\n transform(url: any): string {\n return '//www.youtube.com/embed/' + this.getId(url);\n }\n\n getId(url) {\n var regExp = /^.*(youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=|\\&v=)([^#\\&\\?]*).*/;\n var match = url.match(regExp);\n\n if (match && match[2].length == 11) {\n return match[2];\n } else {\n return 'error';\n }\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({ name: 'checktype' })\nexport class CheckTypePipe implements PipeTransform {\n\n transform(value: string, type: string) {\n if (type === 'string') {\n return this.isString(value);\n }\n }\n\n isString(string: any): boolean {\n return typeof string === 'string' || string instanceof String;\n }\n\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({ name: 'vimeoEmbed' })\nexport class VimeoEmbedPipe implements PipeTransform {\n constructor() { }\n\n transform(url: any): string {\n return 'https://player.vimeo.com/video/' + this.getVimeoID(url);\n }\n\n getVimeoID(url: string): string {\n // tslint:disable-next-line:max-line-length\n const regExp = /https?:\\/\\/(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)?|groups\\/([^\\/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|video\\/|)(\\d+)(?:$|\\/|\\?)/;\n const match = url.match(regExp);\n return (match && match[3]) ? match[3] : '';\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\nimport { SafeUrlPipe } from './safe-url.pipe';\nimport { StreamPipe } from './stream.pipe';\nimport { AsapClientPipe } from './asap-client.pipe';\nimport { YoutubeEmbedPipe } from './youtube-embed.pipe';\nimport { CheckTypePipe } from './checktype.pipe';\nimport { VimeoEmbedPipe } from './vimeo-embed.pipe';\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule\n ],\n declarations: [\n SafeUrlPipe,\n StreamPipe,\n AsapClientPipe,\n YoutubeEmbedPipe,\n CheckTypePipe,\n VimeoEmbedPipe\n ],\n exports: [\n SafeUrlPipe,\n StreamPipe,\n AsapClientPipe,\n YoutubeEmbedPipe,\n CheckTypePipe,\n VimeoEmbedPipe\n ]\n})\n\nexport class PipesModule { }\n","import { Component, Input } from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\n\n@Component({\n selector: 'app-clientes-spinner',\n templateUrl: './spinner.component.html',\n styleUrls: ['./spinner.component.css']\n})\n\nexport class SpinnerComponent { \n\n @Input() radius;\n @Input() message = this.translate.instant('Loading...');\n\n constructor( private translate: TranslateService ) {}\n\n}\n","/* ==== Imports Módulos === */\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { SpinnerComponent } from './spinner.component';\n\n/* ==== Decorators === */\n@NgModule({\n imports: [\n CommonModule,\n ],\n declarations: [\n SpinnerComponent\n ], \n exports: [\n SpinnerComponent\n ]\n})\n\n\nexport class SpinnerModule { }\n","import {FileManagerInterface} from './file-manager.interface';\nimport { Observable } from 'rxjs';\nimport {HttpClient, HttpEvent, HttpHeaders, HttpRequest} from '@angular/common/http';\nimport {Injectable} from '@angular/core';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class FileManagerModel implements FileManagerInterface {\n\n file: any;\n name: string;\n description: string;\n apiBaseUrl: string;\n\n constructor(private http: HttpClient, public global: Global) {\n this.apiBaseUrl = this.global.apiURL();\n }\n\n populate(data: FileManagerInterface): FileManagerInterface {\n return undefined;\n }\n\n uploadFile(data: FileManagerModel): Observable<HttpEvent<{}>> {\n\n const formData: FormData = new FormData();\n formData.append('file', data.file);\n formData.append('name', data.name);\n formData.append('description', data.description);\n\n const headerOptions = {\n 'Authorization': localStorage.getItem('token'),\n 'Accept': 'application/json'\n };\n\n const req = new HttpRequest('POST', this.apiBaseUrl + '/api/v2/admin/file', formData, {\n reportProgress: true,\n responseType: 'json',\n headers: new HttpHeaders(headerOptions)\n });\n\n return this.http.request(req);\n\n\n // return this.http.post(this.apiBaseUrl + '/api/v2/admin/file', data, {headers: new HttpHeaders(headerOptions)});\n }\n\n getAll(): Observable<any> {\n return this.http.get(this.apiBaseUrl + '/api/v2/admin/file/all', {headers: this.getHeader()});\n }\n\n deleteFile(id: number): Observable<any> {\n return this.http.delete(this.apiBaseUrl + '/api/v2/admin/file/' + id, {headers: this.getHeader()});\n }\n\n changeFile(): Observable<any> {\n return undefined;\n }\n\n getHeader(): any {\n const token = localStorage.getItem('token');\n if (token) {\n const headerOptions = {\n 'Authorization': token,\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Accept': 'application/json'\n };\n return new HttpHeaders(headerOptions);\n }\n }\n}\n","import {Injectable} from '@angular/core';\nimport {FileManagerModel} from '../models/file-manager.model';\nimport { Observable } from 'rxjs';\nimport {HttpClient} from '@angular/common/http';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class FileManagerService {\n\n constructor(private fileManagerModel: FileManagerModel, private httpClient: HttpClient, public global: Global) {\n }\n\n public uploadFile(data: any): Observable<any> {\n return this.fileManagerModel.uploadFile(this.serialize(data));\n }\n\n public removeFile(id: number): Observable<any> {\n if (id) {\n return this.fileManagerModel.deleteFile(id);\n } else {\n return null;\n }\n }\n\n public findFileCollection(): Observable<any> {\n return this.fileManagerModel.getAll();\n }\n\n public serialize(data: any): FileManagerModel {\n const fileManager = new FileManagerModel(this.httpClient, this.global);\n fileManager.name = data.name;\n fileManager.file = data;\n fileManager.description = data.type;\n return fileManager;\n }\n}\n","import { Component, EventEmitter, OnInit, Output } from '@angular/core';\nimport { FileManagerModel } from '../../models/file-manager.model';\nimport { HttpEventType, HttpResponse } from '@angular/common/http';\nimport { FileManagerService } from '../../services/file-manager.service';\nimport { TranslateService } from '@ngx-translate/core';\n\ndeclare const $: any;\ndeclare const swal: any;\n@Component({\n selector: 'app-file-manager',\n exportAs: 'appFileManager',\n templateUrl: './file-manager.component.html',\n providers: [FileManagerService, FileManagerModel],\n styleUrls: ['file-manager.component.scss']\n})\n\nexport class FileManagerComponent implements OnInit {\n\n @Output()\n event: EventEmitter<any> = new EventEmitter<any>();\n\n public selectedFile: any;\n public progress: { percentage: number } = {percentage: 0};\n public loading: boolean;\n public fileList: any[];\n\n constructor(\n private _fileManagerService: FileManagerService,\n private translate: TranslateService ) {\n this.loading = false;\n }\n\n ngOnInit(): void {\n this.findAll();\n }\n\n showModal(): void {\n $('#appFileManager').modal('show');\n }\n\n closeModal(): void {\n $('#appFileManager').modal('hide');\n }\n\n public onChange($event): void {\n if ($event && this.whiteListUploads($event.target.files[0].type)) {\n this.selectedFile = $event.target.files[0];\n } else {\n swal({\n type: 'error',\n title: this.translate.instant('ErrorLoadingFile'),\n text: this.translate.instant('MakeSureTheFileHasTheAllowedFormat'),\n buttonsStyling: false,\n confirmButtonClass: 'btn btn-success'\n });\n $('#file').val('');\n }\n }\n\n private whiteListUploads(fileType: any): boolean {\n switch (fileType) {\n case 'image/png':\n return true;\n case 'image/jpeg':\n return true;\n case 'image/jpg':\n return true;\n case 'image/gif':\n return true;\n case 'image/png':\n return true;\n case 'application/msword':\n return true;\n case 'application/pdf':\n return true;\n case 'application/zip':\n return true;\n case 'video/x-flv':\n return true;\n case 'video/mp4':\n return true;\n case 'application/x-mpegURL':\n return true;\n case 'video/MP2T':\n return true;\n case 'video/3gpp':\n return true;\n case 'video/quicktime':\n return true;\n case 'video/x-msvideo':\n return true;\n case 'video/x-ms-wmv':\n return true;\n default:\n return false;\n }\n }\n\n public submit() {\n this.progress.percentage = 0;\n this.loading = true;\n this._fileManagerService.uploadFile(this.selectedFile)\n .subscribe(event => {\n if (event.type === HttpEventType.UploadProgress) {\n this.progress.percentage = Math.round(100 * event.loaded / event.total);\n } else if (event instanceof HttpResponse) {\n this.event.emit(event.body.data);\n this.loading = false;\n this.closeModal();\n }\n });\n this.selectedFile = undefined;\n }\n\n public findAll(): void {\n this._fileManagerService.findFileCollection()\n .subscribe(\n (res:any) => {\n this.fileList = res.data;\n }\n )\n }\n\n public selectFile(item: any): void {\n this.event.emit(item);\n this.closeModal();\n }\n\n public deleteFromList(item: any): void {\n this._fileManagerService.removeFile(item.id)\n .subscribe((res:any) => {\n swal({\n type: 'success',\n title: this.translate.instant('SuccessfullyRemoved'),\n text: this.translate.instant('TheSelectedFileHasBeenRemovedFromTheSystem'),\n buttonsStyling: true,\n confirmButtonClass: 'btn btn-success'\n });\n this.findAll();\n }, err => {\n swal({\n type: 'error',\n title: this.translate.instant('ErrorRemovingFile'),\n text: this.translate.instant('TryAgainLater'),\n buttonsStyling: true,\n confirmButtonClass: 'btn btn-success'\n });\n });\n }\n\n}\n","import {Directive} from '@angular/core';\n\n@Directive({\n selector: '[appFileManager]'\n})\nexport class FileManagerDirective {\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {RouterModule} from '@angular/router';\nimport {FileManagerComponent} from './containers/file-manager/file-manager.component';\nimport {FileManagerDirective} from './containers/file-manager-directive/file-manager.directive';\nimport { TranslateModule } from '@ngx-translate/core';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n RouterModule,\n FormsModule,\n TranslateModule\n ],\n declarations: [\n FileManagerComponent,\n FileManagerDirective\n ],\n exports: [\n FileManagerComponent\n ],\n})\nexport class FileManagerModule {\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-shared-title',\n template: `\n <h2\n class=\"mb-4 animated shared-title px-4\"\n [ngClass]=\"title?.animation\"\n [style.fontSize.px]=\"title?.size\"\n [style.textAlign]=\"title?.align\"\n [style.color]=\"title.color\" *ngIf=\"title?.text !== ''\">\n {{ title?.text || '' }}\n </h2>\n `\n})\nexport class SharedTitleComponent {\n @Input() title: any;\n\n public item: any;\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-shared-subtitle',\n template: `\n <p\n *ngIf=\"subtitle?.enable\"\n class=\"mb-4 animated shared-subtitle\"\n [ngClass]=\"subtitle?.animation\"\n [style.fontSize.px]=\"subtitle?.size\"\n [style.textAlign]=\"subtitle?.align\"\n [style.color]=\"subtitle?.color\">\n {{ subtitle.text || '' }}\n </p>\n `\n})\nexport class SharedSubTitleComponent {\n @Input() subtitle: any;\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\ninterface Button {\n background: String;\n color: String;\n text: String;\n}\n@Component({\n selector: 'app-editor-component-shared-button',\n template: `\n <div *ngIf=\"(button.text) && (button.text != '')\" class=\"row\">\n <div class=\"col-md-12 text-center mt-4\">\n <button (click)=\"goNext()\" [disabled]=\"disabled\" type=\"button\" class=\"btn\" style=\"color:white\" \n [ngStyle]=\"{'color': button.color, 'background': button.background}\">\n {{ button.text }}\n </button>\n </div>\n </div>\n `\n})\n\nexport class SharedButtonComponent {\n \n @Input() button: Button = {\n background: '#3C4858',\n color: '#FFFFF',\n text: this.translate.instant('Next'),\n };\n\n @Input() disabled = false;\n\n @Output() event = new EventEmitter<any>();\n\n constructor( private translate: TranslateService ) { }\n\n goNext() {\n this.event.emit();\n }\n\n ngOnInit(): void {\n\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-shared-media',\n template: `\n <div class=\"row\" *ngIf=\"media.type == 'image' || media.type == 'IMAGE'\">\n <div class=\"col-sm-11 mx-auto mb-4\">\n <img height=\"320\" style=\"width: 100%; object-fit: scale-down; max-height: 320px;\" *ngIf=\"media.url != ''\"\n [src]=\"media.url\" />\n </div>\n </div>\n <div class=\"row\" *ngIf=\"media.type == 'youtube' || media.type == 'YOUTUBE'\">\n <div class=\"col-sm-11 mx-auto mb-4\" *ngIf=\"media.url !== ''\">\n <iframe [src]=\"media.url | youtubeEmbed | safeUrl:'resourceUrl'\" width=\"100%\" height=\"500px\" frameborder=\"0\"\n allowfullscreen></iframe>\n </div>\n </div>\n <div class=\"row\" *ngIf=\"media.type == 'vimeo' || media.type == 'VIMEO'\">\n <div class=\"col-sm-11 mx-auto mb-4\" *ngIf=\"media.url !== ''\">\n <iframe [src]=\"media.url | vimeoEmbed | safeUrl:'resourceUrl'\" width=\"100%\" height=\"500px\" frameborder=\"0\"\n allowfullscreen></iframe>\n </div>\n </div>\n `\n})\nexport class SharedMediaComponent {\n @Input() media: any;\n}\n","import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-shared-text',\n template: `\n <p\n class=\"mb-4 animated\"\n [ngClass]=\"text?.animation\"\n [style.fontSize.px]=\"text?.size\"\n [style.textAlign]=\"text?.align\"\n [style.color]=\"text.color\" *ngIf=\"text?.text !== ''\">\n {{ text.text || '' }}\n </p>\n `\n})\nexport class SharedTextComponent {\n @Input() text: any;\n}\n","import { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NgModule } from '@angular/core';\nimport { ColorPickerModule } from 'ngx-color-picker';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { PipesModule } from '../../../@core/pipes/pipe.module';\n\nimport { SharedTitleComponent } from './title.component';\nimport { SharedSubTitleComponent } from './subtitle.component';\nimport { SharedButtonComponent } from './button.component';\nimport { SharedMediaComponent } from './media.component';\nimport { SharedTextComponent } from './text.component';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatRadioModule } from '@angular/material/radio';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatSliderModule } from '@angular/material/slider';\nimport { MomentModule } from 'ngx-moment';\n\nconst components = [\n SharedTitleComponent,\n SharedSubTitleComponent,\n SharedButtonComponent,\n SharedMediaComponent,\n SharedTextComponent\n ];\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n ColorPickerModule,\n MomentModule,\n MatSelectModule,\n TranslateModule,\n MatInputModule,\n MatStepperModule,\n MatRadioModule,\n MatTooltipModule,\n MatSliderModule,\n PipesModule\n ],\n declarations: [\n ...components\n ],\n exports: [\n ...components\n ]\n})\n\nexport class ComponentSharedModule { }\n","import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-dynamic-input',\n templateUrl: 'dynamic-input.component.html',\n styleUrls: ['../../editor.component.css', 'dynamic-input.component.css']\n})\n\nexport class DynamicInputComponent {\n @Input() input: any;\n\n constructor(\n ){ }\n\n}\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { Injectable } from '@angular/core';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class TrailContentService {\n\n constructor(public http: HttpClient, public global: Global) {\n\n }\n\n all(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/conteudo/multiple/' + id, this.getHeaders());\n }\n\n updateGrafico(id: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/conteudo/multiple/assessment/' + id, this.getHeaders());\n }\n\n save(id: number, data: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/trilha/conteudo/multiple/' + id, { value: data }, this.getHeaders());\n }\n\n update(id: number, data: any): Observable<any> {\n return this.http.put(this.global.apiURL() + '/api/v2/client/trilha/conteudo/multiple/' + id, { value: data }, this.getHeaders());\n }\n\n delete(id: number): Observable<any> {\n return this.http.delete(this.global.apiURL() + '/api/v2/client/exercises/' + id, this.getHeaders());\n }\n\n videoTime(id, seconds) {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/conteudo/tempo/' + id + '/' + seconds, this.getHeaders());\n }\n\n vote(id: number, vote: number) {\n return this.http.post(this.global.apiURL() + '/api/v2/client/trilha/conteudo/vote/' + id, {voto: vote}, this.getHeaders());\n }\n\n getHeaders(): { headers: HttpHeaders } {\n const token = localStorage.getItem('token');\n const headerOptions = {\n 'Authorization': token,\n 'Accept': 'application/json'\n };\n return { headers: new HttpHeaders(headerOptions) };\n }\n\n}\n","import { Component, Input, Output, EventEmitter, ViewChild, OnInit, OnDestroy } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { VideoItemComponent } from '../../../@core/models/item-component';\n\n\ndeclare var Vimeo: any;\n\n@Component({\n selector: 'app-editor-component-video',\n templateUrl: 'video.component.html',\n styleUrls: ['../../editor.component.css', '../../../visualizador/curso-visualizador/curso-visualizador.component.scss', './video.component.scss'],\n providers: [TrailContentService]\n})\n\nexport class VideoComponent implements OnInit, OnDestroy {\n\n @Input() item: any;\n @Input() id: number;\n @Input() content;\n @Output() public event = new EventEmitter<any>();\n @Output() public videoTime = new EventEmitter<any>();\n @ViewChild('video', { static: false }) video: any;\n\n play = false;\n contentId: number;\n\n showSaved: boolean;\n notes: string;\n\n currentTime: number;\n seconds: number;\n\n // Youtube\n public player: any;\n public videoMonitor;\n public playerStatus;\n public idVideo;\n public timeLapse = 0;\n public timeLapseTimer;\n public disableNextButton = true;\n\n constructor(\n private sanitizer: DomSanitizer,\n public _trailContentService: TrailContentService\n ) {\n this.loadYT();\n console.log(\"ITEM:\", this.item);\n }\n\n loadYT() {\n let YTConfig: any;\n if (!window['YT']) {\n window['YT'] = {\n loading: 0,\n loaded: 0\n };\n }\n if (!window['YTConfig']) {\n YTConfig = {\n 'host': 'http://www.youtube.com'\n };\n }\n if (!window['YT'].loading) {\n window['YT'].loading = 1;\n const l = [];\n window['YT'].ready = function (f) {\n if (window['YT'].loaded) {\n f();\n } else {\n l.push(f);\n }\n };\n window['onYTReady'] = function () {\n window['YT'].loaded = 1;\n for (let i = 0; i < l.length; i++) {\n try {\n l[i]();\n } catch (e) { }\n }\n };\n window['YT'].setConfig = function (c) {\n for (const k in c) {\n if (c.hasOwnProperty(k)) {\n YTConfig[k] = c[k];\n }\n }\n };\n const a = document.createElement('script');\n a.type = 'text/javascript';\n a.id = 'www-widgetapi-script';\n a.src = 'https://s.ytimg.com/yts/jsbin/www-widgetapi-vflPBjLfx/www-widgetapi.js';\n a.async = true;\n const c = document.currentScript;\n if (c) {\n const n = c.nonce || c.getAttribute('nonce');\n if (n) {\n a.setAttribute('nonce', n);\n }\n }\n const b = document.getElementsByTagName('script')[0];\n b.parentNode.insertBefore(a, b);\n }\n return window['YT'];\n }\n\n ngOnInit() {\n \n console.log('VideoComponent: CONTENT ->', this.content);\n console.log('VideoComponent: ITEM ->', this.item);\n\n if (this.id) {\n this._trailContentService.all(this.id).subscribe((res: any) => {\n console.log('RESPONSE', res);\n const check = res.data.find((item: any) => {\n return item.value.type === 'video';\n });\n if (check) {\n this.contentId = check.id;\n this.notes = check.value.notes;\n }\n });\n }\n\n if (this.item.source !== 'stream') {\n this.videoMonitor = setInterval(() => {\n this.idVideo = this.youtubeParserID(this.item.source_path || this.item.link);\n const divPlayer = document.getElementById('video_player');\n\n\n if (divPlayer && !this.player) {\n\n clearInterval(this.videoMonitor);\n\n if (this.item.source === 'youtube') {\n this.disableNextButton = true;\n console.log('Type -> Youtube');\n const YT: any = window['YT'];\n this.player = new YT.Player('video_player', {\n videoId: this.idVideo,\n playerVars: {\n 'autoplay': 0,\n 'controls': (this.item.showVideoControl) ? 1 : 0,\n 'showinfo': 0, // <- This part here\n 'playsinline': 1,\n 'enablejsapi': 1,\n 'rel': 0,\n 'loop': 1\n },\n events: {\n 'onStateChange': (event) => {\n if (event.data === 1) {\n this.timeLapseTimer = setInterval(() => {\n this.timeLapse = event.target.getCurrentTime();\n const time = {\n current: this.timeLapse,\n duration: event.target.getDuration(),\n progress: (this.timeLapse / event.target.getDuration()) * 100,\n id: this.id\n };\n\n const videoProgress = (time.current / time.duration) * 100;\n\n this.disableNextButton = (videoProgress < 90);\n this.videoTime.emit(time);\n if (videoProgress >= 100) {\n clearInterval(this.timeLapseTimer);\n }\n }, 1000);\n }\n if (event.data === 2) {\n clearInterval(this.timeLapseTimer);\n }\n }\n }\n });\n } else if (this.item.source === 'vimeo') {\n this.disableNextButton = true;\n console.log('VideoComponent: Type -> Vimeo');\n var iframe = document.querySelector('#iframe_vimeo');\n // this.idVideo = this.getVimeoID(this.item.source_path);\n\n this.player = new Vimeo.Player(iframe);\n\n this.player.on('timeupdate', ((event) => {\n\n console.log('timeupdate', event);\n\n const time = {\n current: event.seconds,\n duration: event.duration,\n progress: (event.seconds / event.duration) * 100\n };\n const videoProgress = (time.current / time.duration) * 100;\n console.log(time, videoProgress);\n this.disableNextButton = (videoProgress < 90);\n this.videoTime.emit(time);\n if (videoProgress >= 100) {\n clearInterval(this.timeLapseTimer);\n }\n }));\n }\n }\n }, 2000);\n }\n }\n\n ngOnDestroy() {\n if (this.timeLapseTimer) {\n clearInterval(this.timeLapseTimer);\n }\n }\n\n onSubmit() {\n const data = {\n 'type': 'video',\n 'notes': this.notes\n };\n this.showSaved = true;\n\n setInterval(() => {\n this.showSaved = false;\n }, 1000);\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res: any) => {\n console.log(res);\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe((res: any) => {\n this.contentId = res.data.id;\n console.log(res);\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n setCurrentTime(data) {\n console.log(data);\n const seconds = this.formatTime(data.target.currentTime);\n this.currentTime = data.target.currentTime;\n const time = {\n current: Math.round(data.target.currentTime),\n duration: Math.round(data.target.duration),\n progress: Math.round((data.target.currentTime / data.target.duration) * 100)\n };\n const videoProgress = Math.round((time.current / time.duration) * 100);\n this.disableNextButton = (videoProgress < 90);\n this.videoTime.emit(time);\n this.seconds = seconds;\n }\n\n formatTime(seconds) {\n let second: any = Math.floor(seconds % 60);\n second = (second >= 10) ? second : '0' + second;\n return seconds.toFixed(0);\n }\n\n getThumb(item): any {\n const url = item.changingThisBreaksApplicationSecurity.split('/');\n return this.sanitizer.bypassSecurityTrustResourceUrl('https://api.sr02.twcreativs.stream/videos/thumb/' + url[4]);\n }\n\n goPlay() {\n console.log('PLAY');\n this.play = true;\n setTimeout(() => {\n this.video.nativeElement.play();\n }, 1);\n }\n\n getYoutubeID(url) {\n console.log('getYoutubeID url', url);\n if (url) {\n const urlText = url.changingThisBreaksApplicationSecurity;\n let urlResult = '';\n if (urlText.indexOf('embed') >= 0) {\n urlResult = urlText.split('embed/')[1].split('?')[0];\n } else {\n urlResult = url.changingThisBreaksApplicationSecurity.split('=')[1];\n }\n\n console.log('getYoutubeID ->', urlResult);\n return urlResult;\n }\n }\n\n youtubeParserID(url) {\n var regExp = /^.*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?([^#&?]*).*/;\n var match = url.match(regExp);\n return (match && match[7].length == 11) ? match[7] : false;\n }\n\n getVimeoID(url) {\n const urlText = url;\n let urlResult = '';\n\n urlResult = urlText.split('/');\n console.log(urlResult[4]);\n return urlResult[4];\n }\n}\n","import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';\nimport { ImageItemComponent } from '../../../@core/models/item-component';\n@Component({\n selector: 'app-editor-component-image',\n templateUrl: 'image.component.html',\n styleUrls: ['../../editor.component.css', './image.component.scss']\n})\n\nexport class ImageComponent {\n @Input() item: any;\n @Output() event = new EventEmitter<any>();\n\n goNext() {\n this.event.emit();\n }\n\n}\n","export class StringHelper {\n\n public static generate(size: number): string {\n var text = \"\";\n var possible = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n\n for (var i = 0; i < size; i++) {\n text += possible.charAt(Math.floor(Math.random() * possible.length));\n }\n\n return text;\n }\n\n}\n\n","import { SafeResourceUrl } from '@angular/platform-browser';\n\nimport { StringHelper } from '../helpers/string.helper';\n\nexport class ItemComponent {\n public type: string;\n public button: string;\n public active: boolean;\n}\n\nexport class TitleItemComponent extends ItemComponent {\n public text: string;\n public size: string;\n public align: string;\n public color: string;\n public italic: boolean;\n public bold: boolean;\n public underline: boolean;\n\n public type = 'title';\n\n constructor(\n text: string,\n size: string,\n align: string,\n color: string,\n italic: boolean,\n bold: boolean,\n underline: boolean\n ) {\n super();\n\n this.text = text;\n this.size = size;\n this.align = align;\n this.color = color;\n this.italic = italic;\n this.bold = bold;\n this.underline = underline;\n\n }\n\n}\n\nexport class VideoItemComponent extends ItemComponent {\n public source: string;\n public source_path: string;\n public title: any;\n public link: SafeResourceUrl;\n public mainButton: { color: string, background: string, text: string };\n public showVideoControl;\n public allowNext;\n public type = 'video';\n public poster: string;\n\n constructor(\n source: string,\n source_path: string,\n link: SafeResourceUrl,\n title: string,\n button: string,\n mainButton: any,\n showVideoControl: boolean,\n allowNext: boolean,\n // type:string\n ) {\n super();\n\n this.source = source;\n this.source_path = source_path;\n this.link = link;\n this.title = title;\n this.button = button;\n this.mainButton = mainButton;\n this.showVideoControl = showVideoControl;\n this.allowNext = allowNext;\n // this.type = type;\n }\n\n\n}\n\n// Componente: Paragraph (Parágrafo)\nexport class TextItemComponent extends ItemComponent {\n public text: string;\n public textColor: string;\n public textSize: number;\n public textAnimation: string;\n public textAlign: string;\n public background: string;\n public buttonBgColor: string;\n public buttonTxtColor: string;\n public borderWidth: string;\n public borderStyle: string;\n public borderRadius: string;\n\n\n public type = 'text';\n\n constructor(\n text: string,\n button: string\n ) {\n super();\n\n this.text = text;\n this.button = button;\n this.textColor = '#333333';\n this.textSize = 14;\n this.textAnimation = '';\n this.textAlign = 'left';\n this.background = '';\n this.buttonBgColor = '#595959';\n this.buttonTxtColor = '#FFFFFF';\n this.borderWidth = '3px';\n this.borderStyle = 'solid';\n this.borderRadius = '0px';\n }\n}\n\nexport class ImageItemComponent extends ItemComponent {\n public url: string;\n\n public type = 'image';\n public title: any;\n public titleSize: number;\n public mainButton: { color: string, background: string, text: string };\n\n\n constructor(\n url: string,\n button: string\n ) {\n super();\n\n this.title = 'Título Aqui';\n this.button = button;\n this.url = url;\n this.titleSize = 16;\n this.mainButton = { color: '#FFFFFF', background: '#333333', text: 'Próximo' };\n }\n\n}\n\nexport class PdfItemComponent extends ItemComponent {\n public url: string;\n public title: string;\n public mainButton: any;\n public link: SafeResourceUrl;\n public showAccept: any;\n public acceptText: any;\n public subTitle: any = {}\n\n public type = 'pdf';\n\n constructor(\n url: string,\n link: SafeResourceUrl,\n title: string,\n button: string,\n subtitle: {}\n ) {\n super();\n\n this.url = url;\n this.link = link;\n this.title = title;\n this.button = button;\n this.subTitle = {}\n }\n\n}\n\nexport class ExerciseComponent extends ItemComponent {\n public exercise: number;\n public type = 'exercise';\n\n constructor(\n exercise: number\n ) {\n super();\n\n this.exercise = exercise;\n }\n\n}\n\nexport class MultiChoiceComponent extends ItemComponent {\n public type = 'multi-choice';\n public title: string;\n public titleAnimation: string;\n public titleSize: string;\n public titleAlign: string;\n public titleColor: string;\n public url: string;\n public feedback: string;\n public feedback_text: string;\n public options: Array<MultiChoiceOptions>;\n public link: any;\n public answersAlign: string;\n public marketType: string;\n public verification: string;\n public color: string;\n public media: string;\n public mediaTitle: string;\n public mediaUrl: any;\n\n public constructor() {\n super();\n this.feedback = 'GENERAL';\n this.media = 'NONE';\n this.options = [];\n }\n}\n\nexport class MultiChoiceOptions {\n public label: string;\n public correct: boolean;\n public selected: boolean;\n public value: string;\n public messageInError: string;\n\n public constructor() {\n this.label = '';\n this.correct = false;\n this.selected = false;\n this.value = StringHelper.generate(12);\n this.messageInError = '';\n }\n}\n\nexport class PredefinedComponent extends ItemComponent {\n public type = 'predefined';\n\n public constructor() {\n super();\n }\n}\n\nexport class ShortTextComponent extends ItemComponent {\n public type = 'short-text';\n public label: string;\n\n constructor() {\n super();\n this.label = 'Label';\n }\n}\n\nexport class ActionAidFormComponent extends ItemComponent {\n public type;\n public form;\n public label: string;\n\n constructor() {\n super();\n this.type = 'action-aid-form';\n this.label = 'Label';\n }\n}\n\nexport class IntroComponent extends ItemComponent {\n public title: { text: string, align: string, size: number, color: string, animation: string };\n public media: { type: string, text: string, align: string, size: number, color: string, animation: string, image: string, youtube: string, vimeo: string, title: string, description: string };\n public link: any;\n public button: string;\n public buttonOptions: { background: string };\n public buttonColor: string;\n public settings: { background: string, color: string, size: number };\n\n public title_animation;\n public text_animation;\n public layout: string;\n\n public borderWidth: string;\n public borderStyle: string;\n public borderRadius: string;\n\n constructor() {\n super();\n this.type = 'intro';\n\n this.title = { text: '', align: 'center', size: 32, color: '#595959', animation: '' };\n this.media = { type: 'none', text: '', align: 'center', size: 12, color: '#595959', animation: '', image: '', youtube: '', vimeo: '', title: '', description: '' };\n this.button = '';\n this.buttonOptions = { background: '' };\n this.settings = { background: '#f9f9f9', color: '', size: 14, };\n this.layout = '1';\n\n this.borderWidth = '3px';\n this.borderStyle = 'solid';\n this.borderRadius = '0px';\n }\n}\n\nexport class ConclusionComponent extends ItemComponent {\n public bg: string;\n public title: { text: string, align: string, size?: string };\n public text: { text: string, align: string, size?: string };\n public button: string;\n public background: string;\n public textColor: string;\n public featureColor: string;\n public icon_animation;\n public title_animation;\n public text_animation;\n public button_animation;\n public feedback: string;\n public mainButton: any;\n\n constructor() {\n super();\n this.type = 'conclusion';\n\n this.title = { text: '', align: 'left', size: '32' };\n this.text = { text: '', align: 'left', size: '16' };\n this.textColor = '';\n this.background = '';\n this.featureColor = '';\n this.button = 'concluir';\n this.feedback = 'n';\n }\n}\n\nexport class ChallengeComponent extends ItemComponent {\n public title: { text: string, align: string };\n public notes_title: { text: string, align: string };\n public notes_text: { text: string, align: string };\n public medias: Array<ChallengeMedia>;\n public button_bg;\n\n constructor() {\n super();\n this.type = 'challenge';\n this.title = { text: '', align: 'left' };\n this.notes_title = { text: '', align: 'left' };\n this.notes_text = { text: '', align: 'left' };\n this.medias = [];\n this.button_bg = ''\n }\n}\n\nexport class ChallengeMedia {\n public type: string;\n public text: { text: string, align: string };\n public link: SafeResourceUrl;\n public url: string;\n public thumb: string;\n public image: string;\n public video: string;\n public title: string;\n public description: string;\n public featured: boolean;\n\n constructor() {\n this.featured = false;\n this.text = { text: '', align: 'left' };\n }\n}\n\nexport class FormComponent extends ItemComponent {\n public title: string;\n public lines: Array<LineForm>;\n\n constructor() {\n super();\n this.type = 'form';\n this.lines = [];\n }\n}\n\nexport class LineForm {\n public title: string;\n public showCols: boolean;\n public cols;\n public multiplier: string;\n public extraCols: Array<Array<ColOfLineForm>>;\n\n constructor() {\n this.title = '';\n this.showCols = true;\n this.cols = [];\n this.extraCols = [];\n this.multiplier = '1';\n }\n}\n\nexport class ColOfLineForm {\n public placeholder: string;\n public format: string;\n public size: string;\n public type: string;\n public required: string;\n public minLength: number;\n public maxLength: number;\n public selectType: string;\n public multiple: string;\n\n constructor() {\n this.type = 'text';\n this.format = 'text';\n this.size = 'col-xs-12';\n this.required = '0';\n }\n}\n\nexport class GroupComponent extends ItemComponent {\n public title: string;\n public group: GroupForm;\n\n constructor() {\n super();\n this.type = 'group';\n this.title = '';\n this.group = new GroupForm;\n }\n}\n\nexport class GroupForm {\n public title: string;\n public type: string;\n public selectOptions: Array<any>;\n public subGroups: Array<GroupForm>;\n\n constructor() {\n this.title = '';\n this.type = 'text-short'\n this.selectOptions = [];\n this.subGroups = [];\n }\n}\n\nexport class TableComponent extends ItemComponent {\n public title: string;\n public type: string;\n public userActive: boolean;\n public countLines: number;\n public collumns: Array<CollumnTable>;\n public media: string;\n public mediaTitle: string;\n public mediaUrl: string;\n\n constructor() {\n super();\n this.type = 'table';\n this.title = 'Tabela';\n this.userActive = false;\n this.countLines = 1;\n this.collumns = [];\n }\n}\n\nexport class CollumnTable {\n public type: string;\n public title: string;\n public align: string;\n public placeholder: string;\n public selectOptions: Array<any>;\n\n constructor() {\n this.title = '';\n this.placeholder = '';\n this.align = 'left';\n this.selectOptions = [];\n }\n}\n\nexport class MultipleQuestionComponent extends ItemComponent {\n public questions: Array<MultipleQuestion>;\n\n constructor() {\n super();\n this.type = 'multiple-questions';\n this.questions = [];\n }\n}\n\nexport class MultipleQuestion {\n public title: string;\n public options: Array<MultipleQuestionOption>;\n\n constructor() {\n this.title = '';\n this.options = [];\n }\n}\n\nexport class MultipleQuestionOption {\n public image: string;\n public text: string;\n public correct: boolean;\n\n constructor() {\n this.image = '';\n this.text = '';\n this.correct = false;\n }\n}\n\nexport class CorrectIncorrectComponent extends ItemComponent {\n public title: { text: string; align: string };\n public lines: Array<CorrectIncorrectComponentLines>;\n public feedback: string;\n public feedbackMessage: string;\n\n constructor() {\n super();\n this.type = 'correct-incorrect';\n this.title = { text: 'Título aqui', align: 'left' };\n this.feedback = 'GENERAL';\n this.feedbackMessage = 'Feedback aqui'\n this.lines = [];\n }\n}\n\nexport class CorrectIncorrectComponentLines {\n public title: string;\n public feedback: string;\n public correct: boolean;\n\n constructor() {\n this.title = 'Título aqui';\n this.feedback = 'left';\n this.correct = false;\n }\n}\n\nexport class UploadComponent extends ItemComponent {\n public title: { text: string; align: string, color: string };\n public titleAnimation: string;\n public titleSize: number;\n\n public text: { text: string; align: string, color: string };\n public textAnimation: string;\n public textSize: number;\n\n public background: string;\n\n public mainButton: { text: string, color: string, background: string, required: string };\n\n public file: any;\n public button_bg;\n\n //public titleColor;\n //public size;\n\n constructor() {\n super();\n this.type = 'upload';\n\n this.title = { text: 'Título aqui', align: 'center', color: '#333333' };\n this.titleAnimation = '';\n this.titleSize = 14;\n\n\n this.text = { text: 'Título aqui', align: 'center', color: '#333333' };\n this.textAnimation = '';\n this.textSize = 14;\n\n this.background = '#FFFFFF';\n\n this.mainButton = { text: 'Próximo', color: '#FFFFFF', background: '#333333', required: 'false' };\n this.file = [];\n\n }\n}\n\nexport class StarPointComponent extends ItemComponent {\n public title: { text: string, align: string, size: string, animation: string, color: string };\n public text: { text: string, align: string, size: string, animation: string, color: string };\n public mainButton: { color: string, background: string, text: string };\n public background: string;\n public points: number;\n\n constructor() {\n super();\n this.type = 'star-point';\n\n this.title = { text: 'Título aqui', align: 'left', size: '32', animation: '', color: \"#333333\" };\n this.text = { text: 'Texto aqui', align: 'left', size: '16', animation: '', color: \"#333333\" };\n this.mainButton = { color: '#FFFFFF', background: '#333333', text: 'Próximo' };\n this.background = '#FFFFFF';\n this.points = 0;\n }\n}\n\nexport class DownloadComponent extends ItemComponent {\n public layout: string;\n public title: { text: string, align: string, size?: string, animation: string, color: string };\n public text: { text: string, align: string, size?: string, animation: string, color: string };\n public background: string;\n public file: string;\n public icon: string;\n public iconColor: string;\n public iconSize: number;\n public downloadButton: { color: string, background: string, text: string };\n public mainButton: { color: string, background: string, text: string };\n\n constructor() {\n super();\n this.type = 'download';\n\n this.layout = '1';\n this.title = { text: 'Título aqui', align: 'left', size: '32', animation: '', color: '#333333' };\n this.text = { text: 'Texto aqui', align: 'left', size: '18', animation: '', color: '#333333' };\n this.icon = 'insert';\n this.iconColor = '#333333';\n this.iconSize = 13;\n this.downloadButton = { color: '#FFFFFF', background: '#333333', text: 'Baixar' };\n this.mainButton = { color: '#FFFFFF', background: '#333333', text: 'Próximo' };\n this.background = '#FFFFFF';\n }\n}\n\nexport class RatingComponent extends ItemComponent {\n public title: { text: string, align: string, size?: string, animation: string };\n public mainButton: { color: string, background: string, text: string };\n public positive: string;\n public negative: string;\n public titleColor: string;\n public background: string;\n\n constructor() {\n super();\n this.type = 'rating';\n\n this.title = { text: 'Título aqui', align: 'left', size: '32', animation: '' };\n this.mainButton = { color: '#FFFFFF', background: '#333333', text: 'Próximo' };\n this.positive = 'Gostei';\n this.negative = 'Não gostei';\n this.titleColor = '#333333';\n this.background = '#FFFFFF';\n }\n}\n","import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\nimport { FormControl } from '@angular/forms';\n\nimport { FileManagerComponent } from '../../../../shared/file-manager/containers/file-manager/file-manager.component';\nimport { ImageItemComponent } from '../../../../@core/models/item-component';\n\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-image-config',\n templateUrl: 'image-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\nexport class EditorImageConfigComponent {\n @Input() item: ImageItemComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n @ViewChild(FileManagerComponent,{static:false}) appFileManager: FileManagerComponent;\n\n constructor(\n private _sanitizer: DomSanitizer\n ){\n\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n showFileManager(): void {\n this.appFileManager.showModal();\n }\n\n uploadSubmited($event) {\n this.item.url = ($event.data) ? $event.data.url : $event.url; \n }\n\n getPhoto($event) {\n this.item.url = $event.path;\n }\n\n}\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class VimeoService {\n\n constructor(public http: HttpClient) {\n\n }\n\n getThumb(vimeoUrl: string): Promise<string> {\n const url = 'https://vimeo.com/api/oembed.json?url=' + vimeoUrl;\n return new Promise<string>((resolve, reject) => {\n this.http.get(url).subscribe((res:any) => {\n resolve(res['thumbnail_url_with_play_button']);\n });\n });\n }\n\n\n}\n","import { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\n\nexport class SanitizerHelper {\n\n constructor(\n private _sanitizer: DomSanitizer\n ){}\n\n public sanitizer(url: string, type: string): SafeResourceUrl {\n\n let uri;\n\n if (!url) {\n return null;\n }\n\n if (type === 'youtube') {\n const code = this.getYoutubeID(url);\n uri = 'https://www.youtube.com/embed/' + code + '?rel=0&showinfo=0';\n }\n\n if (type === 'vimeo') {\n const code = this.getVimeoID(url);\n uri = 'https://player.vimeo.com/video/' + code;\n }\n\n if (type === 'file') {\n uri = url\n }\n\n return this._sanitizer.bypassSecurityTrustResourceUrl(uri);\n }\n\n getYoutubeID(url: string): string {\n var regExp = /^.*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?([^#\\&\\?]*).*/;\n var match = url.match(regExp);\n return (match && match[7].length==11) ? match[7] : '';\n }\n\n getVimeoID(url: string): string {\n var regExp = /https?:\\/\\/(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)?|groups\\/([^\\/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|video\\/|)(\\d+)(?:$|\\/|\\?)/;\n var match = url.match(regExp);\n return (match && match[3]) ? match[3] : '';\n }\n\n}\n\n","import { Component, Input, OnInit, AfterViewInit, Output, EventEmitter } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { VimeoService } from '../../../@core/services/vimeo.service';\nimport { SanitizerHelper } from '../../../@core/helpers/sanitizer.helper';\nimport { TranslateService } from '@ngx-translate/core';\nimport { Global } from 'asap-crud';\n\n@Component({\n selector: 'app-editor-component-challenge',\n templateUrl: 'challenge.component.html',\n styleUrls: [ './challenge.component.css' ],\n providers: [ VimeoService ]\n})\nexport class EditorChallengeComponent implements OnInit, AfterViewInit {\n @Input() item: any;\n @Output() public sendEvent = new EventEmitter<any>();\n @Output() event = new EventEmitter<any>();\n\n alertShow: boolean = false;\n btnBlocked: boolean = true;\n\n constructor(\n private global: Global,\n private sanitizer: DomSanitizer,\n private _vimeoService: VimeoService,\n private translate: TranslateService\n ) {\n }\n\n ngOnInit() {\n }\n\n ngAfterViewInit() {\n for(let i of this.item.medias) {\n i.viewed = false;\n }\n if(this.item.medias.length > 0) {\n this.setFeatured(this.item.medias[0]);\n }\n }\n\n setFeatured(media: any) {\n for(let i of this.item.medias) {\n i.featured = false;\n }\n this.videoChanged(media);\n this.checkAllViewed();\n\n media.featured = true;\n media.viewed = true;\n }\n\n checkAllViewed() {\n let viewedCounter = this.item.medias.filter(item => {\n return item.viewed === true;\n })\n if(viewedCounter.length === this.item.medias.length) {\n if(!this.alertShow) {\n this.global.alert(\n this.translate.instant('Congratulations'),\n this.translate.instant('YouCanNowGoToTheNextStep'),\n 'success');\n this.alertShow = true;\n }\n this.btnBlocked = false;\n }\n }\n\n videoChanged(data: any) {\n const Sanitizer = new SanitizerHelper(this.sanitizer);\n if(data.type == 'youtube') {\n const videoID = Sanitizer.getYoutubeID(data.url);\n data.thumb = 'https://img.youtube.com/vi/' + Sanitizer.getYoutubeID(data.url) + '/hqdefault.jpg';\n data.link = Sanitizer.sanitizer(data.url, 'youtube');\n }\n if(data.type == 'vimeo') {\n data.thumb = 'https://i.vimeocdn.com/video/default_295x166.webp';\n this._vimeoService.getThumb(data.url).then((res:any) => {\n data.thumb = res;\n });\n data.link = Sanitizer.sanitizer(data.url, 'vimeo');\n }\n }\n\n sanitize(url: string):any {\n return this.sanitizer.bypassSecurityTrustResourceUrl(url);\n }\n\n goNext() {\n this.event.emit();\n }\n}\n","import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { FormControl } from '@angular/forms';\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators'; \nimport { VimeoService } from '../../../../@core/services/vimeo.service';\nimport { ChallengeComponent, ChallengeMedia } from '../../../../@core/models/item-component';\nimport { FileManagerComponent } from '../../../../shared/file-manager/containers/file-manager/file-manager.component';\nimport { SanitizerHelper } from '../../../../@core/helpers/sanitizer.helper';\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-challenge-config',\n templateUrl: 'challenge-config.component.html',\n styleUrls: ['../../../editor.component.css'],\n providers: [ VimeoService ]\n})\nexport class EditorChallengeConfigComponent {\n @Input() item: ChallengeComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n @ViewChild(FileManagerComponent,{static:false}) appFileManager: FileManagerComponent;\n\n mediaToManipulate: ChallengeMedia;\n\n title = new FormControl();\n notesTitle = new FormControl();\n notesText = new FormControl();\n button = new FormControl();\n\n constructor(\n private _sanitizer: DomSanitizer,\n private _vimeoService: VimeoService\n ){\n this.title.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((text: string) => {\n this.emitSendEvent();\n });\n this.notesTitle.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((text: string) => {\n this.emitSendEvent();\n });\n this.notesText.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((text: string) => {\n this.emitSendEvent();\n });\n this.button.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((text: string) => {\n this.emitSendEvent();\n });\n }\n\n setAlign(element: any, align: string) {\n element.align = align;\n this.emitSendEvent();\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n showFileManager(media: ChallengeMedia): void {\n this.mediaToManipulate = media;\n this.appFileManager.showModal();\n }\n\n uploadSubmited($event) {\n if($event.data) {\n this.mediaToManipulate.image = $event.data.url;\n }else{\n this.mediaToManipulate.image = $event.url; \n }\n this.mediaToManipulate = null;\n this.emitSendEvent();\n }\n\n getPhoto(media: ChallengeMedia, $event) {\n media.image = $event.path;\n this.emitSendEvent();\n }\n\n videoChanged(data: any) {\n const Sanitizer = new SanitizerHelper(this._sanitizer);\n if(data.type == 'youtube') {\n const videoID = Sanitizer.getYoutubeID(data.url);\n data.thumb = 'https://img.youtube.com/vi/' + Sanitizer.getYoutubeID(data.url) + '/hqdefault.jpg';\n data.link = Sanitizer.sanitizer(data.url, 'youtube');\n }\n if(data.type == 'vimeo') {\n data.thumb = 'https://i.vimeocdn.com/video/default_295x166.webp';\n this._vimeoService.getThumb(data.url).then((res:any) => {\n data.thumb = res;\n });\n data.link = Sanitizer.sanitizer(data.url, 'vimeo');\n }\n\n this.emitSendEvent();\n \n $('iframe').attr('src', $('iframe').attr('src'));\n }\n\n insertMedia() {\n this.item.medias.push(new ChallengeMedia);\n this.emitSendEvent();\n }\n\n removeMedia(media: ChallengeMedia) {\n let index = this.item.medias.indexOf(media);\n this.item.medias.splice(index, 1);\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class TrilhaPerformanceService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'trilha/performance')\n }\n\n}","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class TrilhaService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'trilha/detalhe')\n }\n\n}","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class TrilhaRatingService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'trilha/rating')\n }\n\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AsapViewerService {\n \n public options: any = {};\n\n constructor() { }\n}\n","import { Component, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges } from \"@angular/core\";\nimport { trigger, style, transition, animate, keyframes, query, stagger, animateChild } from \"@angular/animations\";\nimport { ActivatedRoute, Router } from \"@angular/router\";\nimport { TrilhaPerformanceService } from \"../../../@core/services/trilha/trilha-performance.service\";\nimport { TrilhaService } from \"../../../@core/services/trilha/trilha.service\";\nimport { TrilhaRatingService } from \"../../../@core/services/trilha/trilha-rating.service\";\nimport { ConclusionComponent } from \"../../../@core/models/item-component\";\nimport { AsapViewerService } from '../../../asap-viewer.service';\nimport { HttpParams } from \"@angular/common/http\";\nimport { AsapService } from \"asap-crud\";\nimport Swal from \"sweetalert2\";\n\n@Component({\n selector: \"app-editor-component-conclusion\",\n templateUrl: \"conclusion.component.html\",\n styleUrls: [\n \"../../../editor-desafios/editor-desafios.component.css\",\n \"./conclusion.component.css\"\n ],\n providers: [TrilhaPerformanceService, TrilhaService, TrilhaRatingService, AsapService],\n animations: [\n trigger(\"icon\", [\n transition(\":enter\", [\n style({ transform: \"scale(0.5)\", display: \"none\", opacity: 0 }),\n animate(\n \"500ms cubic-bezier(.8, -0.6, 0.2, 1.5)\",\n style({ transform: \"scale(1.3)\", display: \"block\", opacity: 1 })\n ),\n animate(\n \"300ms cubic-bezier(.8, -0.6, 0.2, 1.5)\",\n style({ transform: \"scale(1)\" })\n )\n ])\n ]),\n trigger(\"icons\", [\n transition(\":enter\", [\n query(\"@icon\", stagger(500, animateChild()), { optional: true })\n ])\n ])\n ]\n})\n\nexport class EditorConclusionComponent implements OnInit, OnChanges {\n @Input() id: number;\n @Input() item: any;\n @Input() trail_id: any;\n @Output() public event = new EventEmitter<any>();\n @Output() public rating = new EventEmitter<any>();\n\n routeId: number;\n\n // 0 == mini-etapa; 1 == etapa-develop; 2 == etapa-articles;\n miniType: number;\n public performance: any;\n public rightOrWrong: any;\n public WrongAnswer: any;\n public CorrectAnswer: any;\n public sequence: any;\n public loading: boolean;\n public loadingEvaluate: boolean;\n public correctAnswer: number;\n public stageData: any;\n public logo;\n public goal;\n public goal_user;\n public feedback: any;\n public badge: any;\n public loggedUser: any;\n public newRegister: any;\n public fileRemoved: boolean;\n public entity: any;\n public global: any;\n\n constructor(\n private activatedRoute: ActivatedRoute,\n private _trilhaService: TrilhaService,\n private _trilhaPerformanceService: TrilhaPerformanceService,\n private _trilhaRatingService: TrilhaRatingService,\n public viewerService: AsapViewerService,\n public service: AsapService,\n public router: Router,\n ) {\n this.loading = true;\n this.getLoggedUser();\n this.activatedRoute.params.subscribe(param => {\n if (param.titulo) {\n this.routeId = param.titulo.split('-')[0];\n }\n else if (param.journey_id) {\n this.routeId = param.journey_id;\n }\n else if (param.id) {\n this.routeId = param.id;\n }\n\n });\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.trail_id) {\n this.getStageData();\n }\n }\n\n metaAtingida(item) {\n if (item.goal_user < item.goal) {\n return false;\n }\n return true;\n }\n\n retakeCourse() {\n Swal.fire({\n title: 'Você quer realmente refazer o curso?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: \"warning\",\n showCancelButton: true,\n confirmButtonText: \"Sim\",\n cancelButtonText: \"Não\"\n }).then(\n confirm => {\n if (confirm.value) {\n if (!this.newRegister) {\n this.fileRemoved = true;\n }\n this.service.basePath = 'api/v2/admin';\n this.service.entityName = `trail/config/students/${this.trail_id}`;\n this.service.getResource(this.item.user_id).subscribe((response: any) => {\n this.router.navigate([`/training`,this.trail_id]);\n })\n }\n },\n\n )\n }\n\n certificate() {\n this.router.navigate([`/training`,this.trail_id]);\n }\n\n ngOnInit() {\n this.getLoggedUser();\n const path = this.activatedRoute.snapshot.routeConfig.path.split(\"/\");\n if (path[0] === \"mini-etapa\") {\n this.miniType = 0;\n }\n else if (path[0] === \"etapa-develop\") {\n this.miniType = 1;\n }\n else if (path[0] === \"etapa-artigo\") {\n this.miniType = 2;\n }\n else if (path[0] === \"etapa\") {\n this.id = this.routeId;\n }\n\n this.getPerformance();\n }\n\n getPerformance() {\n if (this.id) {\n this.sequence = [];\n this._trilhaPerformanceService.getResource(this.id).subscribe(res => {\n\n this.feedback = res.data;\n\n this.rightOrWrong = res.data.RightOrWrong;\n this.CorrectAnswer = res.data.CorrectAnswer;\n this.WrongAnswer = res.data.WrongAnswer;\n this.performance = res.data.performance.toFixed(0);\n this.logo = res.data.logo;\n\n res.data.sequence.map(item => {\n if (typeof item.value.value.correct !== \"undefined\") {\n this.sequence.push(item.value.value.correct);\n } else {\n this.sequence.push(false);\n }\n });\n\n this.loading = false;\n });\n }\n }\n\n getLoggedUser() {\n const sessionLoggedUser = JSON.parse(localStorage.getItem(\"loggedUser\"));\n this.loggedUser = sessionLoggedUser.data;\n }\n\n getStageData(): void {\n this._trilhaService.getResource(this.trail_id).subscribe(res => {\n if (res.data.length > 0) {\n this.badge = res.data[0].arquivo;\n this.stageData = res.data[0];\n }\n\n });\n }\n\n onDone() {\n this.checkEvaluate();\n }\n\n checkEvaluate() {\n this.loadingEvaluate = true;\n this.checkRequireAvaliation();\n }\n\n onNext() {\n\n this.event.emit();\n }\n\n checkRequireAvaliation() {\n this.service.basePath = 'api/v2/admin';\n this.service.entityName = `trail/config/require-avaliation/${this.trail_id}`;\n this._trilhaRatingService.getResource(this.routeId).subscribe((response: any) => {\n if (!response.data.rating) {\n this.service.getResources().subscribe((response: any) => {\n this.rating.emit(response.data.require_avaliation);\n })\n }\n else {\n this.onNext();\n }\n })\n }\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { ConclusionComponent } from '../../../../@core/models/item-component';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-conclusion-config',\n templateUrl: 'conclusion-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\nexport class EditorConclusionConfigComponent {\n @Input() item: ConclusionComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n\n setAlign(element: any, align: string) {\n element.align = align;\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { StarPointComponent } from '../../../@core/models/item-component';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-star-point',\n templateUrl: 'star-point.component.html',\n styleUrls: ['./star-point.component.css']\n})\n\nexport class EditorStarPointComponent {\n @Input() item: StarPointComponent;\n @Output() public event = new EventEmitter<any>();\n\n toNext() {\n this.event.emit();\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { StarPointComponent } from '../../../../@core/models/item-component';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-star-point-config',\n templateUrl: 'star-point-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\n\nexport class EditorStarPointConfigComponent {\n @Input() item: StarPointComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n\n setAlign(element: any, align: string) {\n element.align = align;\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n}\n","import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';\nimport { FormGroup, FormControl, FormArray, FormBuilder } from '@angular/forms';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { TableComponent } from '../../../@core/models/item-component';\nimport { TranslateService } from '@ngx-translate/core';\n\ndeclare var swal: any;\n\n@Component({\n selector: 'app-editor-component-dynamic-table',\n templateUrl: 'dynamic-table.component.html',\n styleUrls: ['../../editor.component.css', './dynamic-table.component.css'],\n providers: [TrailContentService]\n})\n\nexport class EditorDynamicTableComponent implements OnInit {\n @Input() item: TableComponent;\n @Input() id: number;\n\n @Output() event = new EventEmitter<any>();\n\n responseValue: any;\n\n contentId: number;\n\n public view: Array<any>;\n\n form: FormGroup;\n\n showSaved: boolean;\n\n constructor(\n public _trailContentService: TrailContentService,\n private fb: FormBuilder,\n private translate: TranslateService\n ) {\n this.view = [];\n }\n\n generateFormTable() {\n\n const lineArray = [];\n\n if (!this.item.userActive) {\n for (let i = 0; i < this.item.countLines; i++){\n const arrayControls = [];\n\n for (const col of this.item.collumns) {\n arrayControls.push(new FormControl(''));\n }\n\n lineArray.push(new FormArray(arrayControls));\n }\n } else {\n const arrayControls = [];\n\n for (const col of this.item.collumns) {\n arrayControls.push(new FormControl(''));\n }\n\n lineArray.push(new FormArray(arrayControls));\n }\n\n this.form = new FormGroup({\n items: new FormArray(lineArray)\n });\n\n }\n\n ngOnInit() {\n this.generateFormTable();\n\n if (this.id) {\n this._trailContentService.all(this.id).subscribe((res: any) => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'dynamic-table';\n });\n if (check) {\n this.contentId = check.id;\n\n const lineArray = [];\n\n for (const n of check.value.notes) {\n const arrayControls = [];\n\n for (const c of n) {\n arrayControls.push(new FormControl(c));\n }\n\n lineArray.push(new FormArray(arrayControls));\n }\n\n this.form = new FormGroup({\n items: new FormArray(lineArray)\n });\n\n }\n });\n }\n }\n\n calc() {\n }\n\n removeView(index: number) {\n console.log(index);\n const itemsArray = this.form.get('items') as FormArray;\n itemsArray.removeAt(index);\n }\n\n createView() {\n const arrayControls = [];\n\n for (const col of this.item.collumns) {\n arrayControls.push(new FormControl(''));\n }\n\n const itemsArray = this.form.get('items') as FormArray;\n itemsArray.push(new FormArray(arrayControls));\n }\n\n onSubmit() {\n\n const data = {\n 'type': 'dynamic-table',\n 'notes': this.form.value.items\n };\n\n swal.fire({ \n title: this.translate.instant('Success'),\n message: this.translate.instant('SavedSuccessfully'),\n type: 'success'\n });\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res:any) => {\n console.log(res);\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe((res:any) => {\n this.contentId = res.data.id;\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n imagePopup(element: any) {\n const classList = element.target.classList;\n const classArray = classList.value.split(' ');\n\n if (classArray.indexOf('image-modal-item') > -1) {\n classList.remove('image-modal-item');\n classList.add('image-modal-full');\n }\n\n if (classArray.indexOf('image-modal-full') > -1) {\n classList.remove('image-modal-full');\n classList.add('image-modal-item');\n }\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { FormControl } from '@angular/forms';\nimport { TableComponent, CollumnTable } from '../../../../@core/models/item-component';\n\n@Component({\n selector: 'app-editor-component-dynamic-table-config',\n templateUrl: 'dynamic-table-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\n\nexport class EditorDynamicTableConfigComponent {\n @Input() item: TableComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n\n title = new FormControl();\n \n setAlign(element: any, align: string) {\n element.align = align;\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n \n createNewCollumn() {\n if(!this.item.collumns) {\n this.item.collumns = [];\n }\n this.item.collumns.push(new CollumnTable);\n }\n\n removeCollumn(index: number) {\n this.item.collumns.splice(index, 1);\n }\n}\n","import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';\nimport { IntroComponent } from '../../../@core/models/item-component';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n@Component({\n selector: 'app-editor-component-intro',\n templateUrl: 'intro.component.html',\n styleUrls: ['../../editor.component.css', 'intro.component.scss']\n})\n\nexport class EditorIntroComponent implements OnInit {\n @Input() item: any;\n @Output() event = new EventEmitter<any>();\n public videoUrl;\n\n client: string;\n loggedUser: any;\n onLoadError = false;\n\n constructor(public sanitizer: DomSanitizer) {\n\n }\n\n ngOnInit() {\n this.loggedUser = JSON.parse(localStorage.getItem('loggedUser'));\n console.log('item ->', this.item)\n if (this.item) {\n if (this.item.link) {\n\n }\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n getUrl(media) {\n if (media.type == 'youtube') {\n if (media.youtube) {\n const url = media.youtube.replace('watch?v=', 'embed/');\n return this.sanitizer.bypassSecurityTrustResourceUrl(url);\n }\n else {\n this.onLoadError = true;\n }\n }\n else if (media.type == 'vimeo') {\n if (media.vimeo) {\n return this.sanitizer.bypassSecurityTrustResourceUrl(media.vimeo);\n }\n else {\n this.onLoadError = true;\n }\n }\n else {\n this.onLoadError = true;\n }\n // else if (media.type == 'spotify') {\n // return this.sanitizer.bypassSecurityTrustResourceUrl(media.);\n // }\n // else {\n // return this.sanitizer.bypassSecurityTrustResourceUrl(video);\n // }\n }\n\n}\n","import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\nimport { FormControl } from '@angular/forms';\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators'; \nimport { IntroComponent } from '../../../../@core/models/item-component';\nimport { FileManagerComponent } from '../../../../shared/file-manager/containers/file-manager/file-manager.component';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-intro-config',\n templateUrl: 'intro-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\nexport class EditorIntroConfigComponent {\n @Input() item: IntroComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n @ViewChild(FileManagerComponent,{static:false}) appFileManager: FileManagerComponent;\n\n title = new FormControl();\n mediaText = new FormControl();\n videoUrl = new FormControl();\n mediaTitle = new FormControl();\n mediaDescription = new FormControl();\n button = new FormControl();\n\n constructor(\n private _sanitizer: DomSanitizer\n ){\n this.title.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((title: string) => {\n this.emitSendEvent();\n });\n this.mediaText.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((mediaText: string) => {\n this.emitSendEvent();\n });\n this.videoUrl.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((videoUrl: string) => {\n this.emitSendEvent();\n });\n this.mediaTitle.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((videoUrl: string) => {\n this.emitSendEvent();\n });\n this.mediaDescription.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((videoUrl: string) => {\n this.emitSendEvent();\n });\n this.button.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((videoUrl: string) => {\n this.emitSendEvent();\n });\n }\n\n setAlign(element: any, align: string) {\n element.align = align;\n this.emitSendEvent();\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n showFileManager(): void {\n this.appFileManager.showModal();\n }\n\n uploadSubmited($event) {\n if($event.data) {\n this.item.media.image = $event.data.url;\n }else{\n this.item.media.image = $event.url;\n }\n this.emitSendEvent();\n }\n\n videoChanged() {\n if(this.item.media.type == 'youtube'){\n this.item.link = this.sanitizer(this.item.media.youtube, 'youtube');\n }\n if(this.item.media.type == 'vimeo'){\n this.item.link = this.sanitizer(this.item.media.vimeo, 'vimeo');\n }\n\n $('iframe').attr('src', $('iframe').attr('src'));\n }\n\n private sanitizer(url: string, type: string): SafeResourceUrl {\n\n let uri;\n\n if (!url) {\n return null;\n }\n\n if (type === 'youtube') {\n const code = this.getYoutubeID(url);\n uri = 'https://www.youtube.com/embed/' + code + '?rel=0&showinfo=0';\n }\n\n if (type === 'vimeo') {\n const code = this.getVimeoID(url);\n uri = 'https://player.vimeo.com/video/' + code;\n }\n\n if (type === 'file') {\n uri = url\n }\n\n return this._sanitizer.bypassSecurityTrustResourceUrl(uri);\n }\n\n getYoutubeID(url: string): string {\n var regExp = /^.*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?([^#\\&\\?]*).*/;\n var match = url.match(regExp);\n return (match && match[7].length==11) ? match[7] : '';\n }\n\n getVimeoID(url: string): string {\n var regExp = /https?:\\/\\/(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)?|groups\\/([^\\/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|video\\/|)(\\d+)(?:$|\\/|\\?)/;\n var match = url.match(regExp);\n return (match && match[3]) ? match[3] : '';\n }\n\n getPhoto($event) {\n this.item.media.image = $event.path;\n }\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-long-text',\n templateUrl: 'long-text.component.html',\n styleUrls: ['../../editor.component.css']\n})\n\nexport class EditorLongTextComponent {\n \n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-long-text-config',\n templateUrl: 'long-text-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\n\nexport class EditorLongTextConfigComponent {\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { MultiChoiceComponent, MultiChoiceOptions } from '../../../@core/models/item-component';\nimport { TranslateService } from '@ngx-translate/core';\nimport { Global } from 'asap-crud';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-multichoice',\n templateUrl: 'multichoice.component.html',\n styleUrls: ['../../editor.component.css', './multichoice.component.scss'],\n providers: [TrailContentService]\n})\n\nexport class EditorMultiChoiceComponent implements OnInit {\n @Input() id: number;\n @Input() item: any;\n @Output() public event = new EventEmitter<any>();\n\n listMarkerRoman = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII', 'XIII', 'XIV', 'XV', 'XVI', 'XVII', 'XVIII', 'XIX', 'XX'];\n listMarkerLetter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'x', 'z'];\n listMarkerNumber = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20'];\n\n blocked = false;\n onCheck: boolean;\n contentId: number;\n loading: boolean = true;\n\n constructor(\n private global: Global,\n private translate: TranslateService,\n private _trailContentService: TrailContentService\n ) {\n if (this.item && !this.item.button) {\n this.item.button = {\n text: this.translate.instant('Next'),\n enable: true\n }\n }\n }\n\n ngOnInit() {\n this.loading = true;\n if (this.id) {\n this.onCheck = true;\n this._trailContentService.all(this.id).subscribe((res: any) => {\n const check = res.data.find(item => {\n return item.value.type === 'multichoice';\n });\n if (check) {\n console.log('ngOnInit: check', check);\n const selected = check.value.value.value;\n for (const opt of this.item.options) {\n opt.selected = false;\n }\n const selectedOption = this.item.options.find(item => {\n return item.value === selected;\n });\n if (selectedOption) {\n selectedOption.selected = true;\n }\n $('#radio-' + selected).prop('checked', true);\n this.blocked = true;\n this.onCheck = false;\n this.loading = false;\n }\n else {\n this.loading = false;\n this.onCheck = false;\n }\n });\n }\n }\n\n onSelectionChange(option: MultiChoiceOptions): void {\n for (const opt of this.item.options) {\n opt.selected = false;\n }\n option.selected = true;\n\n this.onSubmit();\n }\n\n onSubmit() {\n\n const correctOption = this.item.options.find(item => {\n return item.correct === true;\n });\n\n const selectedOption = this.item.options.find(item => {\n return item.selected === true;\n });\n\n if (!selectedOption) {\n this.global.alert(\n this.translate.instant('Ops!'),\n this.translate.instant('SelectOption'),\n 'error'\n );\n return;\n }\n\n if (this.item.verification === 'single') {\n this.blocked = true;\n }\n\n this.save();\n\n if (correctOption.selected) {\n this.global.alert(\n this.translate.instant('Congratulations!'),\n this.translate.instant('SelectedCorrectOption'),\n 'success'\n )\n this.blocked = true;\n } else {\n if (this.item.feedback === 'GENERAL') {\n this.global.alert(\n this.translate.instant('IncorrectOption!'),\n this.item.feedback_text,\n 'error'\n );\n } else {\n this.global.alert(\n this.translate.instant('IncorrectOption!'),\n selectedOption.messageInError,\n 'error'\n );\n }\n }\n\n }\n\n save() {\n const selectedOption = this.item.options.find(item => {\n return item.selected === true;\n });\n\n const data = {\n 'type': 'multichoice',\n 'value': selectedOption\n };\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res: any) => {\n console.log(res);\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe((res: any) => {\n this.contentId = res.data.id;\n console.log(res);\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n imagePopup(element: any) {\n const classList = element.target.classList;\n const classArray = classList.value.split(' ');\n\n if (classArray.indexOf('image-modal-item') > -1) {\n classList.remove('image-modal-item');\n classList.add('image-modal-full');\n }\n\n if (classArray.indexOf('image-modal-full') > -1) {\n classList.remove('image-modal-full');\n classList.add('image-modal-item');\n }\n }\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { Global } from 'asap-crud';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { TranslateService } from '@ngx-translate/core';\n@Component({\n selector: 'app-editor-component-multiple-questions',\n templateUrl: 'multiple-questions.component.html',\n styleUrls: ['../../editor.component.css'],\n providers: [TrailContentService]\n})\n\nexport class EditorMultipleQuestionsComponent implements OnInit {\n\n @Input() item: any;\n @Input() id: number;\n @Output() public event = new EventEmitter<any>();\n contentId: any;\n\n constructor(\n public global: Global,\n public _trailContentService: TrailContentService,\n private translate: TranslateService\n ) {\n\n }\n\n ngOnInit() {\n if (this.id) {\n this._trailContentService.all(this.id).subscribe((res: any) => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'multiple-questions';\n });\n if (check) {\n console.log(check);\n this.contentId = check.id;\n this.item = check.value.data;\n }\n });\n }\n }\n\n\n storeAnswer(question: any, option: any) {\n question.correct = option.correct;\n option.selected = true;\n this.verify(question);\n\n console.log('storeAnswer', question, option);\n }\n\n verify(question: any) {\n if (question.correct) {\n this.global.alert(\n this.translate.instant('GotItRight'),\n this.translate.instant('TheSelectedOptionIsCorrect!'),\n 'success');\n question.sended = true;\n } else {\n this.global.alert(\n this.translate.instant('Ops!'),\n this.translate.instant('YouDidNotSelectTheCorrectOption'),\n 'error');\n }\n }\n\n imagePopup(element: any) {\n const classList = element.target.classList;\n const classArray = classList.value.split(' ');\n\n if (classArray.indexOf('image-modal-item') > -1) {\n classList.remove('image-modal-item');\n classList.add('image-modal-full');\n }\n\n if (classArray.indexOf('image-modal-full') > -1) {\n classList.remove('image-modal-full');\n classList.add('image-modal-item');\n }\n }\n\n saveAnswer() {\n const data = {\n type: 'multiple-questions',\n data: this.item\n };\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res:any) => {\n console.log(res);\n this.goNext();\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe((res:any) => {\n this.contentId = res.data.id;\n this.goNext();\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { MultipleQuestionComponent, MultipleQuestion, MultipleQuestionOption } from '../../../../@core/models/item-component';\n\n@Component({\n selector: 'app-editor-component-multiple-questions-config',\n templateUrl: 'multiple-questions-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\n\nexport class EditorMultipleQuestionsConfigComponent {\n\n @Input() item: MultipleQuestionComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n\n insertQuestion() {\n this.item.questions.push(new MultipleQuestion);\n }\n\n insertOption(questionIndex: number) {\n this.item.questions[questionIndex].options.push(new MultipleQuestionOption);\n }\n\n removeQuestion(index: number): void {\n this.item.questions.splice(index, 1);\n }\n\n removeOption(index: number, indexOption: number): void {\n this.item.questions[index].options.splice(indexOption, 1);\n }\n\n insertImage(option) {\n // client.pick({\n // fromSources:[\"local_file_system\"],\n // maxFiles:1,\n // lang:\"pt\"\n // }).then(response => {\n // option.image = response.filesUploaded[\"0\"].url\n // });\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n getPhoto(option, $event) {\n option.image = $event.path;\n }\n\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-sales-channel',\n templateUrl: 'sales-channel.component.html',\n styleUrls: ['./sales-channel.component.css'],\n\n})\n\nexport class EditorSalesChannelComponent {\n\n groups = [\n {\n \"name\": \"Feiras Locais e Regionais\",\n \"perguntas\": [\n \"Consegue fazer pesquisa das feiras existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do público que visita essas feiras?\",\n \"Consegue oferecer produtos que esse perfil de cliente gostaria de comprar?\",\n \"Tem capacidade para montar stand de vendas decorado e organizado?\",\n \"Dispõe de vendedora cativante e simpática?\",\n \"Tem recurso para pagar taxa de inscrição ou taxa pelo espaço?\",\n \"Possui máquina de cartão?\",\n \"Possui embalagem bonita que promova o produto?\",\n \"Possui material de divulgação básico como cartão de visita, etiqueta contando a história do produto e folder?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n\n },\n\n {\n \"name\": \"Loja Itinerante (bike, carro ou expositor móvel)\",\n \"perguntas\": [\n \"Tem ou sabe como faz para ter o Alvará de Funcionamento?\",\n \"Possui investimento para comprar, adaptar e decorar o veículo?\",\n \"Sabe onde pesquisar referências para a decoração da loja itinerante, bem como apresentação dos produtos dentro dela?\",\n \"Tem uma pessoa que seja motorista/vendedor que, ao mesmo tempo, pilote o veículo, saiba vender e atender bem aos clientes?\",\n \"Possui controles das vendas (caderno ou um sistema no computador) para saber o que vende, quando produzir e quando repor?\",\n \"Tem capacidade de repor os produtos na loja itinerante, com novidades toda semana?\",\n \"Consegue fazer pesquisa das feiras, eventos, locais de grande circulação existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente, saber onde ele está e ir até o mesmo com produtos que ele gostaria de comprar?\",\n \"Possui máquina de cartão?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n {\n \"name\": \"Display\",\n \"perguntas\": [\n \"Possui investimento para montar e decorar o display?\",\n \"Consegue fazer pesquisa dos principais eventos, com grande circulação, que têm a ver com os seus produtos?\",\n \"Consegue ter acesso aos estabelecimentos para negociar a locação do display?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente que frequenta os lugares de exposição?\",\n \"É capaz de se transportar e repor o estoque nos locais de exposição, constantemente?\",\n \"Consegue adaptar os produtos de acordo com as vendas?\",\n \"Possui peças etiquetadas com preços e história do grupo?\",\n \"Possui embalagens?\",\n \"É organizado para controlar as vendas de cada display?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n { \"name\": \"Sua loja dentro de outra loja\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Visitas de Experiência\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda Direta (sacoleiras ou catálogo)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (produtos exclusivos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (aulas)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (festas e eventos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (cenografia)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Vendas pela Internet ou Shopping Online\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Loja Própria\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Lojas\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Navios Turísticos\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] }\n ]\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-sales-channel-config',\n templateUrl: 'sales-channel-config.component.html',\n styleUrls: ['../../../editor.component.css'],\n})\n\nexport class EditorSalesChannelConfigComponent {\n\n\n groups = [\n {\n \"name\": \"Feiras Locais e Regionais\",\n \"perguntas\": [\n \"Consegue fazer pesquisa das feiras existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do público que visita essas feiras?\",\n \"Consegue oferecer produtos que esse perfil de cliente gostaria de comprar?\",\n \"Tem capacidade para montar stand de vendas decorado e organizado?\",\n \"Dispõe de vendedora cativante e simpática?\",\n \"Tem recurso para pagar taxa de inscrição ou taxa pelo espaço?\",\n \"Possui máquina de cartão?\",\n \"Possui embalagem bonita que promova o produto?\",\n \"Possui material de divulgação básico como cartão de visita, etiqueta contando a história do produto e folder?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n\n },\n\n {\n \"name\": \"Loja Itinerante (bike, carro ou expositor móvel)\",\n \"perguntas\": [\n \"Tem ou sabe como faz para ter o Alvará de Funcionamento?\",\n \"Possui investimento para comprar, adaptar e decorar o veículo?\",\n \"Sabe onde pesquisar referências para a decoração da loja itinerante, bem como apresentação dos produtos dentro dela?\",\n \"Tem uma pessoa que seja motorista/vendedor que, ao mesmo tempo, pilote o veículo, saiba vender e atender bem aos clientes?\",\n \"Possui controles das vendas (caderno ou um sistema no computador) para saber o que vende, quando produzir e quando repor?\",\n \"Tem capacidade de repor os produtos na loja itinerante, com novidades toda semana?\",\n \"Consegue fazer pesquisa das feiras, eventos, locais de grande circulação existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente, saber onde ele está e ir até o mesmo com produtos que ele gostaria de comprar?\",\n \"Possui máquina de cartão?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n {\n \"name\": \"Display\",\n \"perguntas\": [\n \"Possui investimento para montar e decorar o display?\",\n \"Consegue fazer pesquisa dos principais eventos, com grande circulação, que têm a ver com os seus produtos?\",\n \"Consegue ter acesso aos estabelecimentos para negociar a locação do display?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente que frequenta os lugares de exposição?\",\n \"É capaz de se transportar e repor o estoque nos locais de exposição, constantemente?\",\n \"Consegue adaptar os produtos de acordo com as vendas?\",\n \"Possui peças etiquetadas com preços e história do grupo?\",\n \"Possui embalagens?\",\n \"É organizado para controlar as vendas de cada display?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n { \"name\": \"Sua loja dentro de outra loja\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Visitas de Experiência\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda Direta (sacoleiras ou catálogo)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (produtos exclusivos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (aulas)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (festas e eventos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (cenografia)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Vendas pela Internet ou Shopping Online\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Loja Própria\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Lojas\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Navios Turísticos\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] }\n ]\n\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { Global } from 'asap-crud';\nimport { TranslateService } from '@ngx-translate/core';\n@Component({\n selector: 'app-editor-component-sheet-correct-incorrect',\n templateUrl: 'sheet-correct-incorrect.component.html',\n styleUrls: ['../../editor.component.css', './sheet-correct-incorrect.component.css'],\n providers: [TrailContentService]\n})\n\nexport class EditorSheetCorrectIncorrectComponent implements OnInit {\n @Input() item;\n @Input() id: number;\n @Output() public event = new EventEmitter<any>();\n public view;\n\n contentId: number;\n\n public sended: boolean;\n\n constructor(\n public global: Global,\n public _trailContentService: TrailContentService,\n private translate: TranslateService\n ) {\n\n }\n\n ngOnInit() {\n if (this.id) {\n this._trailContentService.all(this.id).subscribe((res: any) => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'correct-incorrect';\n });\n if (check) {\n this.sended = true;\n let i = 0;\n for (const line of this.item.lines) {\n line.selected = check.value.data[i];\n i++;\n }\n }\n });\n }\n\n for (const i of this.item.lines) {\n i.selected = false;\n }\n }\n\n onSubmit() {\n const filter = this.item.lines.filter(item => {\n return item.selected === false;\n });\n\n if (filter.length > 0) {\n this.global.alert(\n this.translate.instant('Ops!'),\n this.translate.instant('AnswerAllQuestions'),\n 'error');\n } else {\n\n const data = [];\n\n for (const i of this.item.lines) {\n data.push(i.selected);\n }\n\n this.sended = true;\n\n this._trailContentService.save(this.id, { type: 'correct-incorrect', data: data }).subscribe((res: any) => {\n this.contentId = res.data.id;\n console.log(res);\n });\n }\n }\n\n goNext() {\n console.log('[EditorSheetCorrectIncorrectComponent] goNext->', this.sended);\n if (this.sended) {\n this.event.emit();\n }\n }\n\n imagePopup(element: any) {\n const classList = element.target.classList;\n const classArray = classList.value.split(' ');\n\n if (classArray.indexOf('image-modal-item') > -1) {\n classList.remove('image-modal-item');\n classList.add('image-modal-full');\n }\n\n if (classArray.indexOf('image-modal-full') > -1) {\n classList.remove('image-modal-full');\n classList.add('image-modal-item');\n }\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { CorrectIncorrectComponentLines } from '../../../../@core/models/item-component';\n\n@Component({\n selector: 'app-editor-sheet-correct-incorrect-config',\n templateUrl: 'sheet-correct-incorrect-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\n\nexport class EditorSheetCorrectIncorrectConfigComponent {\n @Input() item;\n @Output() public sendEvent = new EventEmitter<any>();\n\n setAlign(element: any, align: string) {\n element.align = align;\n }\n\n insertLine() {\n if(!this.item.lines) {\n this.item.lines = [];\n }\n this.item.lines.push(new CorrectIncorrectComponentLines);\n }\n\n removeLine(index: number) {\n this.item.lines.splice(index, 1);\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n}\n","/* ==== Imports Componentes === */\nimport { Component, OnInit } from '@angular/core';\n\n/* ==== Decorators === */\n@Component({\n selector: 'app-editor-component-yes-no',\n templateUrl: 'yes-no.component.html',\n styleUrls: ['../../editor.component.css']\n})\n\nexport class EditorYesNoComponent {\n\n constructor() {\n }\n\n ngOnInit() {\n }\n\n}\n","/* ==== Imports Componentes === */\nimport { Component, OnInit } from '@angular/core';\n\n/* ==== Decorators === */\n@Component({\n selector: 'app-editor-component-yes-no-config',\n templateUrl: 'yes-no-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\n\nexport class EditorYesNoConfigComponent {\n\n constructor() {\n\n }\n\n ngOnInit() {\n\n }\n\n}\n","import { Component, Input, Output, OnInit, EventEmitter, ViewChild } from '@angular/core';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { UploadComponent } from '../../../@core/models/item-component';\n\n@Component({\n selector: 'app-editor-component-upload',\n templateUrl: 'upload.component.html',\n styleUrls: ['./upload.component.css'],\n providers: [TrailContentService]\n})\n\nexport class EditorUploadComponent implements OnInit {\n @Input() item: any;\n @Input() id: number;\n\n @Output() public event = new EventEmitter<any>();\n\n contentId: number;\n\n constructor(\n public _trailContentService: TrailContentService\n ) { }\n\n ngOnInit() {\n this.item.file = [];\n\n if(this.id) {\n this._trailContentService.all(this.id).subscribe((res:any) => {\n const check = res.data.find(item => {\n return item.value.type === 'upload';\n });\n if(check) {\n this.contentId = check.id;\n this.item.file = check.value.file;\n }\n });\n }\n }\n\n onDone() {\n if (this.item.file) {\n this.event.emit();\n }\n }\n\n getArchive($event) {\n this.item.file.push($event);\n this.save();\n }\n\n save() {\n const data = {\n 'type': 'upload',\n 'file': this.item.file\n };\n\n if(this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res:any) => {\n console.log(res); \n });\n }else{\n this._trailContentService.save(this.id, data).subscribe((res:any) => {\n this.contentId = res.data.id;\n });\n }\n }\n\n remove(f: any) {\n const index = this.item.file.indexOf(f);\n this.item.file.splice(index, 1);\n\n this.save();\n }\n \n}\n","import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\nimport { FormControl } from '@angular/forms';\nimport { UploadComponent } from '../../../../@core/models/item-component';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-upload-config',\n templateUrl: 'upload-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\nexport class EditorUploadConfigComponent {\n @Input() item: UploadComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n\n constructor(\n ){\n \n }\n\n setAlign(element: any, align: string) {\n element.align = align;\n this.emitSendEvent();\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n}\n","import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-download',\n templateUrl: 'download.component.html',\n styleUrls: ['../../editor.component.css', './download.component.css']\n})\n\nexport class EditorDownloadComponent implements OnInit {\n\n @Input() item: any;\n @Output() event = new EventEmitter<any>();\n\n public enable = false;\n\n constructor() { }\n\n ngOnInit() {\n console.log(\"item [download]\", this.item);\n \n }\n\n goNext() {\n this.event.emit();\n }\n\n download(url) {\n this.enable = true;\n window.open(url, '_blank');\n }\n\n}\n","import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-download-config',\n templateUrl: 'download-config.component.html',\n styleUrls: ['../../../editor.component.css', '../download.component.css']\n})\n\nexport class EditorDownloadConfigComponent {\n\n @Input() item: any;\n @Output() public sendEvent = new EventEmitter<any>();\n\n setAlign(element: any, align: string) {\n element.align = align;\n }\n\n showFileManager(): void {\n // client.pick({\n // fromSources: [\"local_file_system\"],\n // uploadInBackground: false,\n // maxFiles: 1,\n // lang: \"pt\"\n // }).then(response => {\n // this.item.file = response.filesUploaded[\"0\"].url;\n // });\n }\n\n getArchive($event) {\n this.item.file = $event.path;\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-rating',\n templateUrl: 'rating.component.html',\n styleUrls: ['../../editor.component.css', './rating.component.css']\n})\n\nexport class EditorRatingComponent {\n @Input() item: any;\n @Output() event = new EventEmitter<any>();\n\n constructor() { }\n\n formatLabel(value: number | null) {\n value = (!value) ? 0 : value;\n return (value >= 1000) ? Math.round(value / 1000) + 'k' : value;\n }\n\n goNext() {\n this.event.emit();\n }\n}\n","import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\nimport { FormControl } from '@angular/forms';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-rating-config',\n templateUrl: 'rating-config.component.html',\n styleUrls: ['../../../editor.component.css', '../rating.component.css']\n})\n\nexport class EditorRatingConfigComponent {\n\n @Input() item: any;\n @Output() public sendEvent = new EventEmitter<any>();\n\n constructor() { }\n \n setAlign(element: any, align: string) {\n element.align = align;\n }\n \n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class ForumService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'forum')\n }\n\n}","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class ForumResponseService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'forum/respostas')\n }\n\n}","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class ForumVoteService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'forum/voto')\n }\n\n}","import { Component, Input, OnInit, SimpleChanges, OnChanges, Output, EventEmitter } from '@angular/core';\nimport { FormBuilder, FormGroup } from '@angular/forms';\nimport * as moment from 'moment';\nimport { ForumService } from '../../../@core/services/forum/forum.service';\nimport { ForumResponseService } from '../../../@core/services/forum/response.service';\nimport { ForumVoteService } from '../../../@core/services/forum/forum-vote.service';\nimport { Global } from 'asap-crud';\nimport { TranslateService } from '@ngx-translate/core';\n\ndeclare var $: any;\n@Component({\n selector: 'app-editor-component-forum',\n templateUrl: 'forum.component.html',\n styleUrls: ['../../editor.component.css', './forum.component.scss'],\n providers: [ForumService, ForumResponseService, ForumVoteService]\n})\n\nexport class ForumComponent implements OnInit, OnChanges {\n @Input() item: any;\n @Input() id: any;\n @Output() public event = new EventEmitter<any>();\n\n loading = true;\n\n form: FormGroup;\n formUpdate: FormGroup;\n response: any;\n forum: any;\n loggedUser: any;\n\n answered: boolean;\n\n score = 0;\n displayRatingScore = 0;\n\n constructor(\n private global: Global,\n private formBuilder: FormBuilder,\n private _ForumResponseService: ForumResponseService,\n private _forumService: ForumService,\n private _forumVoteService: ForumVoteService,\n private translate: TranslateService\n ) {\n moment.locale('pt-br');\n\n this.form = this.formBuilder.group({\n id: [''],\n resposta: ['']\n });\n this.formUpdate = this.formBuilder.group({\n id: [''],\n resposta: ['']\n });\n }\n\n ngOnInit() {\n this.getForum();\n this.getUserLogged();\n }\n\n OnChanges(changes: SimpleChanges): void {\n if (changes.item) {\n this.getForum();\n this.getUserLogged();\n }\n }\n\n getUserLogged(): any {\n const loggedUser = JSON.parse(localStorage.getItem('loggedUser'));\n this.loggedUser = loggedUser.data;\n }\n\n getForum() {\n this._forumService.getResource(this.id)\n .subscribe((res: any) => {\n this.forum = res.data[0];\n this.loading = false;\n this.getResponse();\n })\n }\n\n getResponse() {\n this._ForumResponseService.getResource('user/' + this.id)\n .subscribe((res: any) => {\n this.response = res.data.filter(item => {\n return item.user_id === this.loggedUser.id;\n });\n if (this.response.length > 0) {\n this.answered = true;\n }\n this.loading = false;\n })\n }\n\n save() {\n this.loading = true;\n const form = this.form.value;\n this._forumService.createResource(form, { router: this.id })\n .subscribe((res: any) => {\n this.answered = true;\n this.getResponse();\n this.ResetPost();\n this.loading = false;\n })\n }\n\n\n ResetPost() {\n this.form.reset();\n $('#answer').collapse('hide');\n }\n\n onRemove(forum) {\n this.global.swal({\n title: this.translate.instant('DoYouWantToRemoveThisQuestion'),\n text: this.translate.instant('YouWillNotBeAbleToReverseThisAction'),\n type: 'warning',\n showCancelButton: true,\n buttonsStyling: true,\n confirmButtonText: this.translate.instant('Yes'),\n cancelButtonText: this.translate.instant('No'),\n }).then(result => {\n if (result) {\n const index = this.response.indexOf(forum);\n this.response.splice(index, 1);\n this.answered = false;\n this._ForumResponseService.deleteResource(forum.id)\n .subscribe((res: any) => {\n this.getResponse();\n })\n }\n }, cancel => { }\n );\n }\n\n onClose(forum) {\n this.formUpdate.reset();\n return forum.disable = false;\n }\n\n onEdit(forum) {\n this.formUpdate.setValue({ id: forum.id, resposta: forum.resposta })\n return forum.disable = true;\n }\n\n updateForm() {\n const form = this.formUpdate.value;\n this._forumService.updateResource(form)\n .subscribe((res: any) => {\n this.getResponse();\n this.ResetPost();\n })\n }\n\n vote(item, number) {\n const form = { pontos: number }\n this._forumVoteService.createResource(form, { router: item.id })\n .subscribe((res: any) => {\n this.getResponse();\n })\n }\n\n getHidden(item) {\n return item.hidden = !item.hidden;\n }\n\n ngOnChanges(changes: SimpleChanges) {\n this.loading = true;\n // this.getForum();\n }\n\n goNext() {\n this.event.emit();\n }\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { ForumService } from '../../../../@core/services/forum/forum.service';\n\n@Component({\n selector: 'app-editor-component-forum-config',\n templateUrl: 'forum-config.component.html',\n styleUrls: ['../../../editor.component.css'],\n providers: [ForumService]\n})\nexport class EditorForumConfigComponent implements OnInit {\n @Input() item: any;\n @Output() public sendEvent = new EventEmitter<any>();\n\n forumArray: any;\n\n constructor(\n private _forumClientService: ForumService\n ) {\n }\n\n ngOnInit() {\n this._forumClientService.getResources().subscribe((res:any) => {\n this.forumArray = res.data;\n });\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n}\n","import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';\nimport { FormGroup, FormBuilder, FormArray, FormControl } from '@angular/forms';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { TranslateService } from '@ngx-translate/core';\nimport Swal from 'sweetalert2';\n\n@Component({\n selector: 'app-editor-component-avaliation',\n templateUrl: 'avaliation.component.html',\n styleUrls: ['../../editor.component.css', './avaliation.component.scss'],\n providers: [TrailContentService]\n})\n\nexport class EditorAvaliationComponent implements OnInit {\n @Input() item: any;\n @Input() id: any;\n\n @Output() event = new EventEmitter<any>();\n\n contentId: any;\n\n form: any;\n\n loading = true;\n blocked = false;\n isPosting = false;\n listMarkerLetter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'x', 'z'];\n\n constructor(\n public _trailContentService: TrailContentService,\n private translate: TranslateService\n ) {\n this.form = new FormArray([]);\n }\n\n ngOnInit() {\n this.generateForm();\n\n if (this.id) {\n this.getAnswer();\n }\n }\n\n generateForm() {\n this.item.questions.map((i: any) => {\n if (i.type === 'objetiva' || i.type === 'subjetiva') {\n const control = new FormControl('');\n this.form.push(control);\n }\n if (i.type === 'tabela') {\n console.log('EditorAvaliationComponent: generateForm: i', i);\n const arr = new FormArray([]);\n const lineLength = parseInt(i.lines, 10);\n for (let k = 0; k < lineLength; k++) {\n const array = new FormArray([]);\n i.collumns.map((col: any) => {\n array.push(new FormControl(''));\n });\n arr.push(array);\n }\n this.form.push(arr);\n }\n });\n }\n\n getAnswer() {\n this._trailContentService.all(this.id).subscribe((res: any) => {\n this.loading = false;\n const check = res.data.find((item: any) => {\n return item.value.type === 'avaliation';\n });\n if (check) {\n this.contentId = check.id;\n this.form.patchValue(check.value.value);\n if (this.item.disableUpdate) {\n this.blocked = true;\n }\n }\n });\n }\n\n onSubmit() {\n\n const data = {\n type: 'avaliation',\n value: this.form.value\n };\n\n this.isPosting = true;\n\n console.log('onSubmit: data', data);\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res: any) => {\n this.blocked = true;\n console.log('onSubmit: _trailContentService.update: res', res);\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe((res: any) => {\n this.contentId = res.data.id;\n this.blocked = true;\n console.log('onSubmit: _trailContentService.save: res', res);\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n verify(question: {correct: string, feedback: string}) {\n if (question.correct) {\n Swal.fire(\n this.translate.instant('GotItRight'),\n question.feedback,\n 'success');\n } else {\n Swal.fire(\n this.translate.instant('Ops!'),\n question.feedback,\n 'error');\n }\n }\n\n canChange(item) {\n const answer = this.form.get(`${item}`).value;\n\n if (answer != '') {\n if (this.item.verification == 'single') {\n return false;\n }\n }\n\n return true;\n }\n\n canShowSave() {\n if (this.item.verification == 'multiple') {\n if (this.item.questions) {\n for (let i = 0; i < this.item.questions.length; i++) {\n const item = this.item.questions[i];\n if (item.type == 'objetiva') {\n console.log(\"[canShowSave] Pode ser falso...\", item.options);\n if (item.options) {\n const answer = this.form.get(`${i}`).value;\n const option = item.options.find(opt => opt.text == answer);\n console.log(\"[canShowSave] Pode ser verdadeiro...\", option);\n if (option && option.correct) {\n return true;\n }\n }\n return false;\n }\n };\n }\n }\n return true;\n }\n\n}\n","import { Component, Input, Output, EventEmitter, OnInit, HostListener } from '@angular/core';\nimport { TrailContentService } from './../../../@core/services/trail-content.service';\n\n@Component({\n selector: 'app-editor-component-contract',\n templateUrl: 'contract.component.html',\n styleUrls: ['../../editor.component.css', './contract.component.scss'],\n providers: [TrailContentService]\n})\nexport class EditorContractComponent implements OnInit {\n @Input() item: any;\n @Input() id: any;\n\n @Output() event = new EventEmitter<any>();\n\n blocked: boolean;\n readed: boolean;\n contentId: number;\n accept: any;\n \n constructor(\n public _trailContentService: TrailContentService\n ) {\n this.blocked = false;\n this.readed = false;\n this.accept = false;\n }\n\n onScroll(event: any) {\n if (event.target.offsetHeight + event.target.scrollTop >= event.target.scrollHeight) {\n this.readed = true;\n }\n }\n\n ngOnInit() {\n this.getAnswer();\n }\n\n getAnswer() {\n this._trailContentService.all(this.id).subscribe(res => {\n console.log('EditorContractComponent: getAnswer: res', res);\n const check = res.data.find((item: any) => {\n return item.value.type === 'contract';\n });\n console.log('EditorContractComponent: getAnswer: check', check);\n if (check) {\n this.contentId = check.id;\n this.accept = check.value.value;\n this.blocked = true;\n this.readed = true;\n }\n });\n }\n\n onSubmit() {\n\n const data = {\n type: 'contract',\n value: this.accept\n };\n\n console.log('onSubmit: data', data);\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe(res => {\n this.blocked = true;\n this.goNext();\n console.log('onSubmit: _trailContentService.update: res', res);\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe(res => {\n this.contentId = res.data.id;\n this.blocked = true;\n this.goNext();\n console.log('onSubmit: _trailContentService.save: res', res);\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n}\n","\nimport { NgModule } from '@angular/core';\nimport { MatAutocompleteModule } from '@angular/material/autocomplete';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatButtonToggleModule } from '@angular/material/button-toggle';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatNativeDateModule, MatRippleModule } from '@angular/material/core';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatGridListModule } from '@angular/material/grid-list';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatListModule } from '@angular/material/list';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatPaginatorModule } from '@angular/material/paginator';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatRadioModule } from '@angular/material/radio';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatSidenavModule } from '@angular/material/sidenav';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { MatSliderModule } from '@angular/material/slider';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\nimport { MatSortModule } from '@angular/material/sort';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\n@NgModule({\n exports: [\n MatAutocompleteModule,\n MatButtonModule,\n MatButtonToggleModule,\n MatCardModule,\n MatCheckboxModule,\n MatChipsModule,\n MatDatepickerModule,\n MatDialogModule,\n MatFormFieldModule,\n MatExpansionModule,\n MatGridListModule,\n MatIconModule,\n MatInputModule,\n MatListModule,\n MatMenuModule,\n MatNativeDateModule,\n MatPaginatorModule,\n MatProgressBarModule,\n MatProgressSpinnerModule,\n MatRadioModule,\n MatRippleModule,\n MatSelectModule,\n MatSidenavModule,\n MatSliderModule,\n MatSlideToggleModule,\n MatSnackBarModule,\n MatSortModule,\n MatStepperModule,\n MatTableModule,\n MatTabsModule,\n MatToolbarModule,\n MatTooltipModule\n ],\n})\nexport class MaterialModule {\n}\n","import { Component, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';\nimport { FormArray, FormControl, AbstractControl } from '@angular/forms';\n\nimport { TrailContentService } from './../../../@core/services/trail-content.service';\nimport { Global } from 'asap-crud';\nimport { TranslateService } from '@ngx-translate/core';\n\ndeclare var swal: any;\n@Component({\n selector: 'app-editor-component-form-step',\n templateUrl: 'form-step.component.html',\n styleUrls: ['../../editor.component.css', './form-step.component.scss'],\n providers: [TrailContentService]\n})\n\nexport class FormStepComponent implements OnInit, OnChanges {\n @Input() item: any;\n @Input() id: number;\n\n @Output() event = new EventEmitter<any>();\n\n blocked: boolean;\n contentId: number;\n form: FormArray;\n\n constructor(\n private global: Global,\n public _trailContentService: TrailContentService,\n private translate: TranslateService\n ) {\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.item && this.item) {\n if (this.item.steps) {\n this.item.steps.forEach(step => {\n this.normalizeStep(step)\n });\n }\n }\n }\n\n ngOnInit() {\n console.log('ID FORUM -<', this.id);\n this.generateForm();\n\n if (this.id) {\n this.getAnswer();\n }\n }\n\n generateForm() {\n\n this.form = new FormArray([]);\n\n this.item.steps.map((step: any) => {\n\n const array = new FormArray([]);\n\n step.inputArray.map((i: any) => {\n if (i.type === 'text' || i.type === 'select') {\n array.push(new FormControl(''));\n }\n if (i.type === 'research') {\n array.push(new FormControl([]));\n }\n if (i.type === 'table') {\n const arr = new FormArray([]);\n const lineLength = parseInt(i.lines, 10);\n for (let k = 0; k < lineLength; k++) {\n const tableArray = new FormArray([]);\n i.cols.map((col: any) => {\n tableArray.push(new FormControl(''));\n });\n arr.push(tableArray);\n }\n array.push(arr);\n }\n });\n\n this.form.push(array);\n });\n\n console.log('generateForm: this.form', this.form);\n\n }\n\n getAnswer() {\n this._trailContentService.all(this.id).subscribe(res => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'form-step';\n });\n if (check) {\n this.contentId = check.id;\n this.form.patchValue(check.value.value);\n // this.blocked = true;\n }\n });\n }\n\n\n onSubmit() {\n const data = {\n type: 'form-step',\n value: this.form.value\n };\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe(res => {\n this.goNext();\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe(res => {\n this.contentId = res.data.id;\n this.blocked = true;\n\n this.goNext();\n });\n }\n }\n\n getArray(length: number): Array<any> {\n const arr = [];\n for (let i = 0; i < length; i++) {\n arr.push(i);\n }\n return arr;\n }\n\n goNext() {\n this.event.emit();\n }\n\n showFormError() {\n this.global.alert(\n this.translate.instant('Ops!'),\n this.translate.instant('FillAllRequiredFields'),\n 'error'\n );\n }\n\n resetForm(index: number) {\n const controlArray = this.form.controls[index] as FormArray;\n controlArray.reset();\n }\n\n onMatRadioGroupChange($event: any, index: number, input: number) {\n const controlArray = this.form.controls[index] as FormArray;\n const controlArrayControls = controlArray.controls;\n const controlArrayControlsLength = controlArrayControls.length;\n\n let arr = [... this.form.value];\n for (let i = input+1; i < arr[index].length; i++ ) {\n arr[index][i] = \"\";\n }\n\n this.form.setValue(arr);\n\n for (let i = 0; i < controlArrayControlsLength; i++ ) {\n if (i > input) {\n const control = controlArrayControls[i] as FormArray;\n if (control.controls) {\n for (const table of control.controls) {\n const line = table as FormArray;\n if (line.controls) {\n for (const col of line.controls) {\n col.setValidators(null);\n col.clearValidators();\n this.resetFormControlValidation(col);\n }\n }\n }\n }\n }\n }\n\n }\n\n private resetFormControlValidation(control: AbstractControl) {\n control.markAsPristine();\n control.markAsUntouched();\n control.updateValueAndValidity();\n }\n\n toggle(step,idx,value,evt) {\n let vIdx = this.form.value[step][idx].indexOf(value);\n if (vIdx >= 0) {\n this.form.value[step][idx].splice(vIdx,1);\n }\n else {\n this.form.value[step][idx].push(value);\n }\n }\n\n normalizeStep(step) {\n if (!step.enunciated) step.enunciated = {};\n if (step.inputArray) {\n step.inputArray.forEach(input => {\n if (input.visibility_control_value) {\n if (!Array.isArray(input.visibility_control_value)) {\n input.visibility_control_value = [input.visibility_control_value];\n }\n }\n });\n }\n return step;\n }\n\n}\n","import { Component, Input, OnInit, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { FormArray } from '@angular/forms';\nimport { Global } from 'asap-crud';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { TranslateService } from '@ngx-translate/core';\n@Component({\n selector: 'app-editor-component-pdf',\n templateUrl: 'pdf.component.html',\n styleUrls: ['../../editor.component.css', './pdf.component.css'],\n providers: [TrailContentService]\n})\n\nexport class EditorPdfComponent implements OnInit {\n @Input() item: any;\n @Input() id: any;\n @Output() event = new EventEmitter<any>();\n public innerPDF;\n\n contentId: any;\n\n form: FormArray;\n\n blocked: boolean;\n listMarkerLetter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'x', 'z'];\n\n accept: boolean;\n\n constructor(\n private global: Global,\n public _trailContentService: TrailContentService,\n private translate: TranslateService,\n public sanitizer: DomSanitizer\n ) {\n this.form = new FormArray([]);\n }\n\n ngOnInit() {\n if (this.id) { \n this.getAnswer(this.id);\n let url = (this.item.url);\n this.innerPDF = this.sanitizer.bypassSecurityTrustHtml(\n `<object style=\"height:600px;width:100%\" data=\"${url}#toolbar=0&navpanes=0&scrollbar=0\" type=\"application/pdf\" class=\"embed-responsive-item\">\n <iframe frameborder=\"0\" style=\"height:600px;width:100%\" src=\"https://drive.google.com/viewerng/viewer?embedded=true&url=${encodeURIComponent(url)}\" class=\"embed-responsive-item\"></iframe>\n </object> \n `\n );\n } \n }\n\n generateForm() {\n this.blocked = false;\n this.accept = false;\n }\n\n getAnswer(id) {\n this._trailContentService.all(id).subscribe(res => {\n console.log('EditorPdfComponent: getAnswer: res', res);\n\n const check = res.data.find((item: any) => {\n return item.value.type === 'pdf';\n });\n\n console.log('EditorPdfComponent: getAnswer: check', check);\n if (check) {\n\n this.contentId = check.id;\n this.accept = check.value;\n this.blocked = true;\n }\n });\n }\n\n getDecodeURL(url) {\n return decodeURIComponent(url);\n }\n\n onSubmit() {\n\n const data = {\n type: 'pdf',\n value: this.accept\n };\n\n console.log('onSubmit: data', data);\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe(res => {\n this.blocked = true;\n this.goNext();\n console.log('onSubmit: _trailContentService.update: res', res);\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe(res => {\n this.contentId = res.data.id;\n this.blocked = true;\n this.goNext();\n console.log('onSubmit: _trailContentService.save: res', res);\n });\n }\n }\n\n onSubmitWithWarning() {\n this.global.alert({\n title: this.translate.instant('Warning'),\n text: this.translate.instant('YouMustReadTheEntireContentBeforeProceeding'),\n type: 'warning',\n showCancelButton: true,\n confirmButtonText: this.translate.instant('IveFinishedReading'),\n cancelButtonText: this.translate.instant('ReturnAndFinishReading'),\n }).then(\n confirm => {\n if (confirm.value) {\n this.onSubmit();\n }\n },\n cancel => { }\n );\n\n }\n\n goNext() {\n this.event.emit();\n }\n\n}\n","import { Component, Input, OnInit, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { FormGroup, FormBuilder, FormArray, FormControl } from '@angular/forms';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport Swal from 'sweetalert2';\nimport { exit } from 'process';\nimport { data } from 'jquery';\nimport { analyzeAndValidateNgModules } from '@angular/compiler';\nimport { OwlOptions } from 'ngx-owl-carousel-o';\n\n@Component({\n selector: 'app-editor-component-research',\n templateUrl: 'research.component.html',\n styleUrls: ['../../editor.component.css', './research.component.scss'],\n providers: [TrailContentService]\n})\n\nexport class EditorResearchComponent implements OnInit {\n @Input() item: any;\n @Input() id: any;\n\n @Output() event = new EventEmitter<any>();\n\n @ViewChild('slideCarousel', { static: false }) slideCarousel: any;\n\n listMarker: Array<string> = 'abcdefghijklmnopqrstuvwxyz'.split('');\n\n contentId: any;\n\n form: any;\n\n blocked = false;\n isPosting = false;\n\n exibirQuestionario = true;\n exibirGrafico = true;\n atualizarResultadosGraficoApi = false;\n graficoV1 = 0;\n graficoV2 = 0;\n graficov3 = 0;\n graficov4 = 0;\n grafico;\n\n customOptions: OwlOptions = {\n items: 1,\n loop: false,\n mouseDrag: false,\n touchDrag: true,\n pullDrag: false,\n dots: false,\n margin: 0,\n \n navSpeed: 1000,\n responsive: {\n 0: {\n stagePadding: 10,\n },\n 400: {\n stagePadding: 10,\n },\n 740: {\n stagePadding: 50,\n },\n 940: {\n stagePadding: 50,\n }\n },\n nav: false\n }\n\n // listMarkerLetter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'];\n\n constructor(\n public _trailContentService: TrailContentService\n ) {\n this.form = new FormArray([]);\n }\n\n ngOnInit() {\n this.generateForm();\n\n if (this.id) {\n this.getAnswer();\n }\n }\n\n generateForm() {\n this.item.questions.map((i: any) => {\n if (i.type === 'objetiva' || i.type === 'subjetiva') {\n const control = new FormControl('');\n this.form.push(control);\n }\n if (i.type === 'objetiva_multiple') {\n const control = new FormControl('');\n this.form.push(control);\n }\n if (i.type === 'research') {\n const control = new FormArray([]);\n this.form.push(control);\n }\n if (i.type === 'tabela') {\n console.log('EditorResearchComponent: generateForm: i', i);\n const arr = new FormArray([]);\n const lineLength = parseInt(i.lines, 10);\n for (let k = 0; k < lineLength; k++) {\n const array = new FormArray([]);\n i.collumns.map((col: any) => {\n array.push(new FormControl(''));\n });\n arr.push(array);\n }\n this.form.push(arr);\n }\n });\n }\n\n checkboxClicked(question, option, $event) {\n console.log('checkboxClicked', question, option);\n console.log('checkboxClicked', event);\n }\n\n getAnswer() {\n this._trailContentService.all(this.id).subscribe((res: any) => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'research';\n });\n if (check) {\n this.contentId = check.id;\n this.form.patchValue(check.value.value);\n if (this.item.disableUpdate) {\n this.blocked = true;\n }\n }\n });\n }\n\n updateGrafico(conteudo_id) {\n console.log('[updateGrafico] conteudo_id', conteudo_id);\n this._trailContentService.updateGrafico(conteudo_id).subscribe((res: any) => {\n console.log('[updateGrafico] res', res);\n this.grafico = res.data;\n });\n }\n\n onSubmit() {\n\n const data = {\n type: 'research',\n value: this.form.value\n };\n\n this.isPosting = true;\n\n console.log('onSubmit: data', data);\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res: any) => {\n if (this.item.layout == 'assessment' || this.item.layout == 'axle') {\n this.blocked = true;\n console.log('onSubmit: _trailContentService.update: res', res);\n this.exibirQuestionario = false;\n this.exibirGrafico = false;\n this.atualizarResultadosGraficoApi = true;\n this.updateGrafico(res.data.conteudo_id);\n\n }\n else {\n this.goNext();\n }\n\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe((res: any) => {\n if (this.item.layout == 'assessment' || this.item.layout == 'axle') {\n this.contentId = res.data.id;\n this.blocked = true;\n console.log('onSubmit: _trailContentService.save: res', res);\n this.exibirQuestionario = false;\n this.exibirGrafico = false;\n this.atualizarResultadosGraficoApi = true;\n this.updateGrafico(res.data.conteudo_id);\n\n }\n else {\n this.goNext();\n }\n\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n verify(question) {\n if (question.feedback) {\n Swal.fire('', question.feedback);\n }\n }\n\n listMarkerLetter(idx) {\n return String.fromCharCode(97 + idx);\n }\n\n toggle(idx, value) {\n let answer = this.form.value;\n answer[idx] = answer[idx] || [];\n let index = answer[idx].indexOf(value)\n if (index >= 0) {\n answer[idx].splice(index, 1);\n }\n else {\n answer[idx].push(value);\n }\n this.form.setValue(answer);\n }\n\n public slidePrev() {\n this.slideCarousel.prev();\n }\n\n public slideNext() {\n this.slideCarousel.next();\n }\n\n public slideNextRadio(event) {\n event.target.parentElement.classList.add('zoom');\n setTimeout(() => {\n this.slideCarousel.next();\n event.target.parentElement.classList.remove('zoom');\n }, 1000);\n }\n\n getArray(length: number): Array<any> {\n const arr = [];\n for (let i = 0; i < length; i++) {\n arr.push(i);\n }\n return arr;\n }\n\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\n@Injectable()\nexport class FirebaseNotificationService {\n\n public clientFirebaseServer = localStorage.getItem('firebase_server_id');\n private baseUrlAPI;\n constructor(\n private http: HttpClient,\n ) {\n this.baseUrlAPI = `https://us-central1-${this.clientFirebaseServer}.cloudfunctions.net/api`;\n }\n\n // public send(data, user_destination, type) {\n\n // console.log('User Destination', user_destination);\n // console.log('Logged User', this.global.loggedUser());\n\n // if (user_destination.id != this.global.loggedUser().id) {\n // this.sendRequest(user_destination.id, type, data).subscribe(response => {\n // console.log('Response Notification', response);\n // this.global.toastService.show({\n // title:'Pronto!',\n // message:'Notificação enviada com sucesso'\n // })\n // });\n // }\n // }\n\n\n public getTutorConversations(trail_id, user_id) {\n return this.http.get(`${this.baseUrlAPI}/tutor/conversation/${trail_id}/${user_id}`);\n }\n\n public sendTutorConversation(trail_id,answer_id, data) {\n return this.http.post(`${this.baseUrlAPI}/tutor/conversation/${trail_id}/${answer_id}`, data);\n }\n\n \n}","import { Component, Input, OnInit, SimpleChanges, OnChanges, Output, EventEmitter } from '@angular/core';\nimport { FormGroup } from '@angular/forms';\nimport * as moment from 'moment';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { AsapService, Global } from 'asap-crud';\nimport { FirebaseNotificationService } from '../../../@core/services/firebase-notification.service';\nimport { TranslateService } from '@ngx-translate/core';\n\n@Component({\n selector: 'app-editor-component-feedback',\n templateUrl: 'feedback.component.html',\n styleUrls: ['./feedback.component.scss'],\n providers:[FirebaseNotificationService]\n \n})\n\nexport class FeedbackComponent implements OnInit, OnChanges {\n @Input() item: any;\n @Input() id: any;\n @Output() public event = new EventEmitter<any>();\n\n loading: boolean;\n\n form: FormGroup;\n formUpdate: FormGroup;\n response: any;\n forum: any;\n loggedUser: any;\n\n showAnswer: boolean;\n answer: string;\n\n contentId: any;\n\n blocked: boolean;\n\n answerList: any;\n\n voteLock: boolean;\n\n votes: any;\n\n nextPageUri: string;\n token: string;\n\n constructor(\n public trailContentService: TrailContentService,\n public httpClient: HttpClient,\n public global: Global,\n public AsapService: AsapService,\n public firebaseNotification: FirebaseNotificationService,\n private translate: TranslateService\n\n ) {\n moment.locale('pt-br');\n }\n\n ngOnInit() {\n this.getUserLogged();\n this.initialRequest();\n this.get();\n }\n\n get() {\n // this.loading = true;\n // this.firebaseNotification.getTutorConversations(this.contentId, this.loggedUser.id).subscribe((response: any) => {\n // if (response.data) {\n // // this.questionData = response.data.find(item => item.answer_id == this.data.answer_id && item.user_ref == this.data.user_id);\n // console.log(response.data);\n // // if (response.data.answer_id == this.data.answer_id) {\n\n // // }\n // }\n\n // this.loading = false;\n // }); \n }\n\n\n initialRequest() {\n\n if (this.id) {\n this.trailContentService.all(this.id).subscribe((res: any) => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'feedback';\n });\n\n // console.log('[Feedback -> CHECK]', check);\n console.log('[Feedback -> trailContentService]', res.data[0]);\n\n if (check) {\n\n const checkUserAnswer = res.data.find((item: any) => {\n return +item.user_id === +this.loggedUser.id;\n });\n\n // console.log('[Feedback -> checkUserAnswer', checkUserAnswer);\n\n if (checkUserAnswer) {\n this.contentId = checkUserAnswer.id;\n this.answer = checkUserAnswer.value.value;\n this.blocked = true;\n this.showAnswer = true;\n }\n\n this.answerList = check.answers.data;\n\n if (check.answers.next_page_url) {\n this.nextPageUri = check.answers.next_page_url;\n }\n\n this.calc();\n }\n });\n }\n\n }\n\n protected headers(): HttpHeaders {\n let result:any = {\n 'Content-Type': 'application/json',\n 'Access-Control-Allow-Origin': '*',\n 'CompanyName': 'ASAP'\n };\n\n this.token = localStorage.getItem('token');\n\n if (this.token) {\n result.Authorization = this.token;\n }\n \n return new HttpHeaders(result);\n};\n\nprotected options(): any {\n const headerOptions = this.headers();\n return {headers: headerOptions};\n}\n getNextPage() {\n if (!this.nextPageUri) {\n return;\n }\n \n this.httpClient.get(this.nextPageUri.replace('http://','https://'), this.options()).subscribe((res: any) => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'feedback';\n });\n if (check) {\n this.answerList.push(... check.answers.data);\n this.nextPageUri = check.answers.next_page_url;\n }\n });\n }\n\n calc() {\n this.answerList.sort((a: any, b: any) => ((a.value.votes.up - a.value.votes.down) > (b.value.votes.up - b.value.votes.down)) ? -1 : 1);\n }\n\n vote(answer: any, vote: string) {\n\n if (vote === 'up') {\n if (answer.value.votes.voto === 2) {\n answer.value.votes.voto = 1;\n answer.value.votes.up++;\n answer.value.votes.down--;\n } else if (answer.value.votes.voto === 1) {\n answer.value.votes.voto = 0;\n answer.value.votes.up--;\n } else {\n answer.value.votes.voto = 1;\n answer.value.votes.up++;\n }\n }\n\n if (vote === 'down') {\n if (answer.value.votes.voto === 2) {\n answer.value.votes.voto = 0;\n answer.value.votes.down--;\n } else if (answer.value.votes.voto === 1) {\n answer.value.votes.voto = 2;\n answer.value.votes.up--;\n answer.value.votes.down++;\n } else {\n answer.value.votes.voto = 2;\n answer.value.votes.down++;\n }\n }\n\n this.voteRequest(answer.id, answer.value.votes.voto);\n }\n\n voteRequest(id: number, vote: number) {\n this.voteLock = true;\n this.trailContentService.vote(id, vote)\n .subscribe(res => {\n this.voteLock = false;\n this.calc();\n });\n }\n\n OnChanges(changes: SimpleChanges): void {\n if (changes.item) {\n this.getUserLogged();\n }\n }\n\n getUserLogged(): any {\n const loggedUser = JSON.parse(localStorage.getItem('loggedUser'));\n this.loggedUser = loggedUser.data;\n }\n\n onSubmit() {\n\n const data = {\n type: 'feedback',\n value: this.answer,\n votes: this.votes\n };\n\n this.loading = true;\n\n console.log('onSubmit: data', data);\n\n if (this.contentId) {\n this.trailContentService.update(this.contentId, data)\n .subscribe((res: any) => {\n this.initialRequest();\n this.global.swal({\n title: this.translate.instant('Ready'),\n text: this.translate.instant('YourAnswerHasBeenSavedSuccessfully'),\n type: 'info',\n showCancelButton: false\n })\n this.loading = false;\n this.showAnswer = true;\n });\n } else {\n this.trailContentService.save(this.id, data)\n .subscribe((res: any) => {\n this.initialRequest();\n this.global.swal({\n title: this.translate.instant('Ready'),\n text: this.translate.instant('YourAnswerHasBeenSavedSuccessfully'),\n type: 'info',\n showCancelButton: false\n })\n this.loading = false;\n this.showAnswer = true;\n });\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n }\n\n goNext() {\n this.event.emit();\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-audio',\n templateUrl: 'audio.component.html',\n styleUrls: ['./audio.component.scss']\n})\n\nexport class AudioComponent {\n @Input() item: any;\n @Input() id: any;\n @Output() public event = new EventEmitter<any>();\n\n constructor() {\n\n }\n\n goNext() {\n this.event.emit();\n }\n\n}\n","import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';\nimport { FormArray, FormControl } from '@angular/forms';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { TranslateService } from '@ngx-translate/core';\nimport Swal from 'sweetalert2';\n\n@Component({\n selector: 'app-editor-component-random-questions',\n templateUrl: 'random-questions.component.html',\n styleUrls: ['../../editor.component.css', './random-questions.component.scss'],\n providers: [TrailContentService]\n})\n\nexport class EditorRandomQuestionsComponent implements OnInit {\n\n @Input() item: any;\n @Input() id: any;\n\n @Output() event = new EventEmitter<any>();\n\n contentId: any;\n\n blocked = false;\n isPosting = false;\n listMarkerLetter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'x', 'z'];\n onNext = false;\n question: any;\n\n check: any;\n\n gabarito = [];\n answer = [];\n ready = false;\n public disabled; \n\n constructor(\n public _trailContentService: TrailContentService,\n private translate: TranslateService\n ) {\n \n }\n\n ngOnInit() {\n this.getAnswer();\n }\n\n generateForm() {\n console.log('generateForm: this.question', this.question);\n\n if (!this.question) {\n return;\n }\n\n if (this.question.type === 'objetiva' || this.question.type === 'subjetiva') {\n this.answer = [];\n }\n\n if (this.question.type === 'tabela') {\n let lines = parseInt(this.question.lines,10);\n let cols = this.question.collumns.length;\n if (!this.answer) {\n this.answer = new Array(lines).fill(null).map(() => new Array(cols).fill(0));//[];\n }\n this.gabarito = new Array(lines).fill(null).map(() => new Array(cols).fill(0));//[];\n }\n\n if (this.check && this.check.value.value) {\n this.answer = this.check.value.value;\n if (this.item.disableUpdate) {\n this.blocked = true;\n }\n else {\n this.blocked = false;\n }\n }\n else {\n this.blocked = false;\n }\n\n console.log(\"[Answer]\",this.answer);\n }\n\n getAnswer() {\n this.ready = false;\n this._trailContentService.all(this.id).subscribe((res: any) => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'random-questions';\n });\n\n if (check) {\n this.check = check;\n this.contentId = check.id;\n this.onNext = true;\n\n const findIndex = this.item.questions.findIndex((item: any) => item.id === check.value.question);\n\n if (findIndex > -1) {\n this.question = this.item.questions[findIndex];\n } else {\n this.question = this.item.questions[this.getRandomArbitrary(this.item.questions.length)];\n }\n\n if (this.item.disableUpdate) {\n this.blocked = true;\n }\n\n } else {\n this.question = this.item.questions[this.getRandomArbitrary(this.item.questions.length)];\n }\n \n this.generateForm();\n this.ready = true;\n });\n }\n\n getRandomArbitrary(max: number) {\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - 0)) + 0;\n }\n\n onSubmit() {\n\n const data:any = {\n type: 'random-questions',\n question: this.question.id,\n value: this.answer\n };\n\n this.isPosting = true;\n\n console.log('onSubmit: data', data);\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res: any) => {\n this.blocked = false;\n console.log('onSubmit: _trailContentService.update: res', res);\n this.isPosting = false;\n this.check = true;\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe((res: any) => {\n this.contentId = res.data.id;\n this.blocked = false;\n console.log('onSubmit: _trailContentService.save: res', res);\n this.isPosting = false;\n this.check = true;\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n verify(question: { correct: string, feedback: string }) {\n if (question.correct) {\n Swal.fire(this.translate.instant('GotItRight'), question.feedback, 'success');\n } else {\n Swal.fire(this.translate.instant('Ops!'), question.feedback, 'error');\n }\n this.disabled = true;\n }\n\n}\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-text',\n templateUrl: 'text.component.html',\n styleUrls: ['../../editor.component.css', 'text.component.scss']\n})\nexport class TextComponent {\n @Input() item: any;\n @Output() event = new EventEmitter<any>();\n\n goNext() {\n this.event.emit();\n }\n}\n","import { Component, Input, OnInit, Output, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';\nimport { AsapService } from 'asap-crud';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n@Component({\n selector: 'app-editor-component-page',\n templateUrl: 'page.component.html',\n styleUrls: ['../../editor.component.css', './page.component.scss'],\n providers: [ AsapService ]\n})\n\nexport class EditorPageComponent implements OnInit, OnChanges {\n\n @Input() item: any;\n @Input() id: any;\n @Output() event = new EventEmitter<any>();\n\n public loading = true;\n\n public useIFrame = false;\n\n public src;\n\n constructor(\n public service: AsapService,\n public sanitizer: DomSanitizer\n ) {\n\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.item && this.item && this.item.page_id) {\n this.loadPage(this.item.page_id);\n }\n }\n\n ngOnInit() {\n\n }\n\n goNext() {\n this.event.emit();\n }\n\n resizeIframe(event) {\n const obj = event.path[0];\n }\n\n public normalizeHTML(html) {\n const startPosition = html.indexOf(\"body\");\n const endPosition = html.indexOf(\"body\")+8;\n const styleHtml = html.substring(startPosition, endPosition);\n return html.split(styleHtml).join('');\n }\n\n loadPage(id) {\n this.loading = true;\n this.service.basePath = \"api/v2/admin\";\n this.service.entityName = \"static-page\";\n this.service.getResource(id).subscribe(\n (response) => {\n console.log(\"[EditorPageComponent] loadPage\", response);\n this.item.content.html = this.normalizeHTML(this.item.content.html);\n const content = btoa(unescape(encodeURIComponent(response.data.text)));\n this.src = this.sanitizer.bypassSecurityTrustResourceUrl(`data:text/html;base64,${content}`);\n this.loading = false;\n },\n (error) => {\n const content = btoa(unescape(encodeURIComponent(this.item.content.html)));\n this.src = this.sanitizer.bypassSecurityTrustResourceUrl(`data:text/html;base64,${content}`);\n this.loading = false;\n }\n );\n }\n\n}\n","import { CommonModule } from '@angular/common';\nimport { FileManagerModule } from '../../shared/file-manager/file-manager.module';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NgModule } from '@angular/core';\nimport { ColorPickerModule } from 'ngx-color-picker';\n\nimport { ComponentSharedModule } from '../components/shared/shared.module';\n\nimport { DynamicInputComponent } from './dynamic-input/dynamic-input.component';\nimport { VideoComponent } from './video/video.component';\nimport { ImageComponent } from './image/image.component';\nimport { EditorImageConfigComponent } from './image/config/image-config.component';\n\nimport { EditorChallengeComponent } from './challenge/challenge.component';\nimport { EditorChallengeConfigComponent } from './challenge/config/challenge-config.component';\n\nimport { EditorConclusionComponent } from './conclusion/conclusion.component';\nimport { EditorConclusionConfigComponent } from './conclusion/config/conclusion-config.component';\n\nimport { EditorStarPointComponent } from './star-point/star-point.component';\nimport { EditorStarPointConfigComponent } from './star-point/config/star-point-config.component';\n\nimport { EditorDynamicTableComponent } from './dynamic-table/dynamic-table.component';\nimport { EditorDynamicTableConfigComponent } from './dynamic-table/config/dynamic-table-config.component';\n\nimport { EditorIntroComponent } from './intro/intro.component';\nimport { EditorIntroConfigComponent } from './intro/config/intro-config.component';\n\nimport { EditorLongTextComponent } from './long-text/long-text.component';\nimport { EditorLongTextConfigComponent } from './long-text/config/long-text-config.component';\n\nimport { EditorMultiChoiceComponent } from './multichoice/multichoice.component';\n\nimport { EditorMultipleQuestionsComponent } from './multiple-questions/multiple-questions.component';\nimport { EditorMultipleQuestionsConfigComponent } from './multiple-questions/config/multiple-questions-config.component';\n\nimport { EditorSalesChannelComponent } from './sales-channel/sales-channel.component';\nimport { EditorSalesChannelConfigComponent } from './sales-channel/config/sales-channel-config.component';\n\nimport { EditorSheetCorrectIncorrectComponent } from './sheet-correct-incorrect/sheet-correct-incorrect.component';\nimport { EditorSheetCorrectIncorrectConfigComponent } from './sheet-correct-incorrect/config/sheet-correct-incorrect-config.component';\n\nimport { EditorYesNoComponent } from './yes-no/yes-no.component';\nimport { EditorYesNoConfigComponent } from './yes-no/config/yes-no-config.component';\n\nimport { EditorUploadComponent } from './upload/upload.component';\nimport { EditorUploadConfigComponent } from './upload/config/upload-config.component';\n\nimport { EditorDownloadComponent } from './download/download.component';\nimport { EditorDownloadConfigComponent } from './download/config/download-config.component';\n\nimport { EditorRatingComponent } from './rating/rating.component';\nimport { EditorRatingConfigComponent } from './rating/config/rating-config.component';\n\nimport { ForumComponent } from './forum/forum.component';\nimport { EditorForumConfigComponent } from './forum/config/forum-config.component';\n\nimport { TranslateModule } from '@ngx-translate/core';\nimport { PipesModule } from '../../@core/pipes/pipe.module';\nimport { EditorAvaliationComponent } from './avaliation/avaliation.component';\nimport { AsapUploadModule } from 'asap-upload';\nimport { AsapImagePipeModule } from 'asap-image-pipe';\nimport { EditorContractComponent } from './contract/contract.component';\nimport { MaterialModule } from '../../material.module';\nimport { FormStepComponent } from './form-step/form-step.component';\nimport { EditorPdfComponent } from './pdf/pdf.component';\nimport { AsapSkeletonModule } from 'asap-skeleton';\nimport { EditorResearchComponent } from './research/research.component';\nimport { FeedbackComponent } from './feedback/feedback.component';\nimport { AudioComponent } from './audio/audio.component';\nimport { EditorRandomQuestionsComponent } from './random-questions/random-questions.component';\nimport { TextComponent } from './text/text.component';\nimport { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatRadioModule } from '@angular/material/radio';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatSliderModule } from '@angular/material/slider';\nimport { MomentModule } from 'ngx-moment';\nimport { EditorPageComponent } from './page/page.component';\nimport { CarouselModule } from 'ngx-owl-carousel-o';\nimport { SafePipeModule } from 'safe-pipe';\n\nconst components = [\n DynamicInputComponent,\n EditorChallengeComponent,\n EditorChallengeConfigComponent,\n EditorConclusionComponent,\n EditorConclusionConfigComponent,\n EditorDynamicTableComponent,\n EditorDynamicTableConfigComponent,\n EditorIntroComponent,\n EditorIntroConfigComponent,\n EditorLongTextComponent,\n EditorLongTextConfigComponent,\n EditorMultiChoiceComponent,\n EditorMultipleQuestionsComponent,\n EditorMultipleQuestionsConfigComponent,\n EditorSalesChannelComponent,\n EditorSalesChannelConfigComponent,\n EditorSheetCorrectIncorrectComponent,\n EditorSheetCorrectIncorrectConfigComponent,\n EditorYesNoComponent,\n EditorYesNoConfigComponent,\n VideoComponent,\n ImageComponent,\n EditorImageConfigComponent,\n EditorUploadComponent,\n EditorUploadConfigComponent,\n EditorDownloadComponent,\n EditorDownloadConfigComponent,\n EditorStarPointComponent,\n EditorStarPointConfigComponent,\n EditorRatingComponent,\n EditorRatingConfigComponent,\n ForumComponent,\n EditorForumConfigComponent,\n EditorAvaliationComponent,\n EditorContractComponent,\n FormStepComponent,\n EditorPdfComponent,\n EditorResearchComponent,\n EditorPageComponent,\n FeedbackComponent,\n AudioComponent,\n EditorRandomQuestionsComponent,\n TextComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n FileManagerModule,\n FormsModule,\n ReactiveFormsModule,\n ColorPickerModule,\n MomentModule,\n MatSelectModule,\n TranslateModule,\n AsapUploadModule,\n MatInputModule,\n MatStepperModule,\n MatRadioModule,\n MatTooltipModule,\n MatSliderModule,\n PipesModule,\n AsapUploadModule,\n AsapImagePipeModule,\n MaterialModule,\n AsapSkeletonModule,\n NgxSkeletonLoaderModule,\n PipesModule,\n ComponentSharedModule,\n CarouselModule,\n SafePipeModule\n ],\n declarations: [\n ...components\n ],\n exports: [\n ...components,\n CarouselModule\n ]\n})\n\nexport class EditorComponentsModule { }\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Global } from 'asap-crud';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\n\n@Injectable()\nexport class Trailv2Service {\n\n constructor(\n public http: HttpClient,\n public global: Global\n ) {\n }\n userClassesInfo(id: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/admin/trail/config/classes/user/' + id, {headers: this.getHeader()});\n }\n trilhaInfoEtapa(id: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/info/etapa/' + id, {headers: this.getHeader()});\n }\n\n trilhaEtapaItem(id: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/etapa/item/' + id, {headers: this.getHeader()});\n }\n\n complement(id: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/admin/complement/' + id, {headers: this.getHeader()});\n }\n\n\n getHeader(): any {\n const token = localStorage.getItem('token');\n if (token) {\n const headerOptions = {\n 'Authorization': token,\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Accept': 'application/json'\n };\n return new HttpHeaders(headerOptions);\n }\n }\n\n}\n","import {Component, Inject} from '@angular/core';\nimport {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog';\n\n\n@Component({\n selector: 'banner-modal-component',\n templateUrl: 'banner-modal.html',\n})\nexport class modalTrilhaBanner {\n\n constructor(\n public dialogRef: MatDialogRef<modalTrilhaBanner>,\n @Inject(MAT_DIALOG_DATA) public data: any) { }\n\n onNoClick(): void {\n this.dialogRef.close();\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Global } from 'asap-crud';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\n\n@Injectable()\nexport class AmbienteVirtualService {\n\n constructor(\n public http: HttpClient,\n public global: Global\n ) {\n }\n\n getEtapasByTrail(idCurso: number): Observable<any> {\n return this.getByUrl(this.global.apiURL() + '/api/v2/client/trilha/etapa/item/' + idCurso);\n }\n\n getBannerByTrail(idCurso: number): Observable<any> {\n return this.getByUrl(this.global.apiURL() + '/api/v2/client/banner/trilha/' + idCurso);\n }\n\n getByUrl(url: string): Observable<any> {\n return this.http.get(url, {headers: this.getHeader()});\n }\n\n registerNewProgress(subStepTrail: number): Observable<any> {\n return this.http.post(\n this.global.apiURL() + '/api/v2/client/progresso/sub/post?sub_id=' + subStepTrail,\n {\n sub_id: subStepTrail\n },\n {headers: this.getHeader()}\n );\n }\n\n getSubEtapa(subStepTrail: number): Observable<any> {\n console.log(\"getSubEtapa\",this.global.apiURL() + '/api/v2/client/trilha/sub-etapa/etapa/' + subStepTrail);\n return this.http.get(\n this.global.apiURL() + '/api/v2/client/trilha/sub-etapa/etapa/' + subStepTrail,\n {headers: this.getHeader()}\n );\n }\n\n getContent(id: number): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/client/trilha/conteudo/' + id;\n const header = {headers: this.getHeader()};\n return this.http.get(url, header);\n }\n\n getHeader(): any {\n const token = localStorage.getItem('token');\n if (token) {\n const headerOptions = {\n 'Authorization': token,\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Accept': 'application/json'\n };\n return new HttpHeaders(headerOptions);\n }\n }\n\n getFormUrlEncoded(toConvert) {\n const formBody = [];\n for (const property of toConvert) {\n const encodedKey = encodeURIComponent(property);\n const encodedValue = encodeURIComponent(toConvert[property]);\n formBody.push(encodedKey + '=' + encodedValue);\n }\n return formBody.join('&');\n }\n}\n","export class bannerModel {\n\n public id: number;\n public name: string;\n public assessment_id: number;\n public trilha_id: number;\n public value: BannerValue;\n\n constructor(\n id: number,\n name: string,\n value: any,\n assessment_id: number,\n trilha_id: number\n ) {\n this.id = id;\n this.name = name;\n this.value = value;\n this.assessment_id = assessment_id;\n this.trilha_id = trilha_id;\n }\n\n\n}\n\nexport class BannerValue {\n\n public title: {text: string, align: string};\n public subtitle: {text: string, align: string};\n public description: {text: string, align: string};\n public button: {text: string, size: string, align: string};\n public text_color: string;\n public size: string;\n public background: {type: string, colorPrimary: string, colorSecondary: string, image: string};\n public target: string;\n\n constructor() {\n this.title = {text: 'Título aqui', align: 'center'};\n this.subtitle = {text: 'Sub-título aqui', align: 'center'};\n this.description = {text: 'Texto aqui', align: 'center'};\n this.button = {text: 'Botão', size: 'medium', align: 'center'};\n this.text_color = '#FFFFFF';\n this.size = 'medium';\n this.background = {type: 'color', colorPrimary: '#fc36fd', colorSecondary: '#5d3fda', image: ''};\n this.target = '';\n }\n\n}","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { bannerModel } from '../models/banner.model';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class bannerService {\n\n constructor(public http: HttpClient, public global: Global) {\n\n }\n\n collection(id: number): Promise<Array<bannerModel>> {\n let arrayModel: bannerModel[] = [];\n\n return new Promise<Array<bannerModel>>((resolve, reject) => {\n this.fetchAll(id).subscribe((res: any) => {\n for (const monitoraItem of res.data) {\n arrayModel.push(this.populate(monitoraItem));\n }\n resolve(arrayModel);\n }, err => {\n reject(err);\n })\n })\n }\n\n populate(data: any): bannerModel {\n return new bannerModel(data.id, data.name, data.value, data.assessment_id, data.trilha_id);\n }\n\n fetchAll(id: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/banner/folder/' + id, this.getHeaders());\n }\n\n save(banner: any, id: number): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/banner/folder/' + id, banner, this.getHeaders());\n }\n\n delete(id: number): Observable<any> {\n return this.http.delete(this.global.apiURL() + '/api/v2/client/banner/folder/' + id, this.getHeaders());\n }\n\n folderAll(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/banner/folder', this.getHeaders());\n }\n\n folderDelete(params: number): Observable<any> {\n return this.http.delete(this.global.apiURL() + '/api/v2/client/banner/folder/delete/' +params, this.getHeaders());\n }\n\n folderPost(data: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/banner/folder/post', data, this.getHeaders());\n }\n\n getItem(params: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/banner/folder/' +params, this.getHeaders());\n }\n\n update(banner: any): Observable<any> {\n return this.http.put(this.global.apiURL() + '/api/v2/client/banner/folder/item/' + banner.id, banner, this.getHeaders());\n }\n\n getTrails(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/banner/trilha', this.getHeaders());\n }\n\n getAssessments(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/banner/assessment', this.getHeaders());\n }\n\n trailView(id: number): Observable<any> {\n const data = {\n trilha_id: id\n }\n return this.http.post(this.global.apiURL() + '/api/v2/client/trilha/view', data, this.getHeaders());\n }\n\n verifyBanner(data: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/banner/verify?link=' + data, this.getHeaders());\n }\n\n verifyBannerTrilha(data: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/banner?etapaId=' + data, this.getHeaders());\n }\n\n getHeaders(): {headers: HttpHeaders} {\n const token = localStorage.getItem('token');\n const headerOptions = {\n 'Authorization': token,\n 'Accept': 'application/json'\n };\n return {headers: new HttpHeaders(headerOptions)};\n }\n\n}\n","import { Trailv2Service } from './../../@core/services/trailv2.service';\nimport { Component, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { modalTrilhaBanner } from './banner-modal/banner-modal-component';\nimport { MatDialog } from '@angular/material/dialog';\nimport { AmbienteVirtualService } from '../../@core/services/ambiente-virtual.service';\nimport { bannerService } from '../../@core/services/banner.service';\nimport { AsapClientPipe, Global } from 'asap-crud';\nimport * as m from 'moment';\nimport Swal from 'sweetalert2';\nimport { Location } from '@angular/common';\n\ndeclare const $: any;\ndeclare var swal: any;\n\nconst moment = m;\n\n@Component({\n selector: 'app-curso-visualizador',\n templateUrl: './curso-visualizador.component.html',\n styleUrls: ['./curso-visualizador.component.scss'],\n providers: [AmbienteVirtualService, bannerService, Trailv2Service],\n encapsulation: ViewEncapsulation.None\n})\n\nexport class CursoVisualizadorComponent implements OnInit {\n\n public id: number;\n public loader: boolean;\n public bannerArray: any;\n\n @ViewChild('cursoViewer', { static: false }) cursoViewer;\n @ViewChild('cursoNavBar', { static: false }) cursoNavBar;\n\n public data: any[] = [];\n\n public current: any;\n public module: number;\n public queryParams;\n\n\n etapa: any;\n jornada_id: any;\n name_etapa: any;\n activeSubetapa: any;\n acesso_jornada: any;\n\n constructor(\n private ambienteVirtualService: AmbienteVirtualService,\n private activatedRoute: ActivatedRoute,\n private router: Router,\n private _bannerService: bannerService,\n public trailService: Trailv2Service,\n public dialog: MatDialog,\n public global: Global,\n private location: Location\n ) {\n this.loader = true;\n $('.image-modal-item').click(() => {\n console.log('click');\n });\n\n this.activatedRoute.queryParams.subscribe(params => {\n this.queryParams = params;\n });\n\n }\n\n ngOnInit() {\n this.getParams()\n }\n\n public get themeConfig() {\n return AsapClientPipe.dictionary;\n }\n\n private getParams(): void {\n this.activatedRoute.params.subscribe(params => {\n this.id = params['id'];\n this.jornada_id = params['jornada_id'];\n if (this.global.loggedUser().client_id == 3 && !this.jornada_id) {\n this.id = params['titulo'].split('-')[0];\n }\n // this.id = params['id'];\n\n if (this.global.loggedUser()) {\n if (this.jornada_id) {\n this.trailService.userClassesInfo(this.global.loggedUser().id).subscribe((res: any) => {\n\n this.acesso_jornada = res.filter(item => {\n return (item.journey_id == this.jornada_id);\n });\n\n console.log('Acesso a jornada', this.acesso_jornada);\n if (this.acesso_jornada.length) {\n this.getData();\n this.getStepData();\n this.verificaBanner();\n } else {\n Swal.fire({\n title: 'Atenção',\n type: 'warning',\n text: 'Você não tem permissão para visualizar esse conteúdo',\n confirmButtonText: 'Retornar'\n }).then(confirm => {\n const url = `${window.location.origin}/school`;\n window.location.replace(url);\n })\n }\n })\n }\n else {\n this.getData();\n this.getStepData();\n this.verificaBanner();\n }\n\n }\n else {\n Swal.fire({\n title: 'Atenção',\n type: 'warning',\n text: 'Para que você acesse o curso é necessário que você faça login',\n confirmButtonText: 'Fazer Login'\n }).then(confirm => {\n const url = `${window.location.origin}/login?redirect_url=${window.location.pathname}`;\n window.location.replace(url);\n })\n }\n\n });\n\n }\n\n getData() {\n this.trailService.trilhaInfoEtapa(this.id).subscribe((res: any) => {\n console.log(\"[CursoVisualizadorComponent.getData]\", res);\n if (res.data.length > 0) {\n let etapa = res.data[0];\n if (etapa.dates) {\n etapa.available = false;\n let today = moment().format(\"YYYY-MM-DD\");\n if ((today >= etapa.dates.date_initial) && (today <= etapa.dates.date_final)) {\n etapa.available = true;\n }\n }\n else {\n etapa.available = true;\n }\n this.etapa = etapa;\n }\n });\n }\n\n verificaBanner(): void {\n this._bannerService.verifyBannerTrilha(this.id)\n .subscribe((res: any) => {\n this.bannerArray = res.data;\n if (this.bannerArray.length > 0 && this.bannerArray[0].status === 0) {\n this.openDialog(this.bannerArray);\n }\n });\n }\n\n openDialog(data: any): void {\n\n const dialogRef = this.dialog.open(modalTrilhaBanner, {\n maxWidth: '100%',\n data: data,\n panelClass: 'modalBanner'\n });\n\n dialogRef.afterClosed().subscribe(result => {\n });\n }\n\n compare(a, b) {\n if (a.order < b.order) {\n return -1;\n }\n if (a.order > b.order) {\n return 1;\n }\n return 0;\n }\n\n private getStepData(): void {\n this.loader = true;\n this.module = this.id;\n this.ambienteVirtualService.getSubEtapa(this.id).subscribe(\n (res: any) => {\n res.data.sort(this.compare);\n\n if (res.data.length > 0) {\n this.data = res.data;\n this.activatedRoute.fragment.subscribe((fragment: string) => {\n if (fragment && (fragment != 'material-de-apoio')) {\n if (fragment.indexOf('etapa') != -1) {\n console.log('subetapas data', this.data);\n //const activeSubetapa = this.data.filter(function(subetapa){return subetapa.id == ;} );\n console.log('activeSubetapa', fragment.split('-')[1])\n //this.current = activeSubetapa;\n const currentIndex = parseInt(fragment.split('-')[1]) - 1;\n console.log('currentIndex', currentIndex)\n console.log('data currentindex', this.data[currentIndex].id)\n this.getSubEtapaByEvent(this.data[currentIndex]);\n //this.cursoViewer.getContent(this.data[currentIndex].id);\n //this.cursoNavBar.setIndexes(this.data, this.current);\n }\n } else {\n this.getcurrent();\n console.log(this.data[0])\n this.getSubEtapaByEvent(this.data[0]);\n }\n })\n\n }\n this.loader = false;\n }, err => {\n console.log(\"Erro\", err);\n this.notificate();\n }\n );\n\n }\n\n\n getSubEtapaByEvent($event): void {\n const oldCurrent = this.current;\n\n if ($event.orientation == 'next') {\n this.checkAsRead(oldCurrent.id);\n }\n\n console.log('getSubEtapaByEvent() oldCurrent', oldCurrent)\n console.log('getSubEtapaByEvent() event', $event)\n console.log('getSubEtapaByEvent() this.data', this.data)\n console.log('getSubEtapaByEvent() this.current', this.current)\n\n if (this.global.loggedUser().client_id == 3) {\n const index = this.data.indexOf($event);\n if ((this.global.loggedUser().client_id == 3) && (this.jornada_id)) {\n this.location.go('/jornada/' + this.jornada_id + '/' + $event.etapa_id + '/' + this.toSeoUrl($event.title) + '#etapa-' + (index + 1));\n } else {\n this.location.go('/visualizador/curso/' + $event.etapa_id + '-' + this.toSeoUrl($event.title) + '#etapa-' + (index + 1));\n }\n }\n\n\n this.current = $event;\n if (this.cursoViewer) {\n this.cursoViewer.getContent(this.current.id);\n this.cursoNavBar.setIndexes(this.data, this.current);\n }\n\n }\n\n\n public getcurrent(): void {\n this.current = this.data.find(item => {\n return item.status === 0;\n });\n if (!this.current) {\n this.current = this.data[0];\n }\n }\n\n private notificate(): any {\n swal({\n title: 'Erro',\n text: 'Erro ao carregar conteúdo. Recarregue sua página.',\n type: 'warning',\n confirmButtonClass: 'btn btn-success',\n });\n }\n\n public eventNavBar($event): any {\n console.log(\"[CursoVisualizadorComponent] eventNavBar\", $event);\n if ($event == 'next') {\n this.next();\n } else if ($event == 'previous') {\n this.previous();\n } else if ($event == 'done') {\n this.onDone(this.etapa.item_id);\n } else if ($event == 'read') {\n this.read();\n }\n window.scrollTo(0, 0);\n }\n\n public currentIndex(): number {\n return this.data.indexOf(this.current);\n }\n\n public onDone(etapa_id) {\n this.trailService.trilhaEtapaItem(etapa_id).subscribe(response => {\n console.log('OnNextModule ->', response);\n\n const actualCourse = response.data.find(i => {\n return i.id === this.etapa.id;\n });\n\n const indexNextCourse = response.data.indexOf(actualCourse);\n console.log('actualCourse', actualCourse);\n console.log('indexNextCourse', indexNextCourse);\n const nextCourse = response.data[indexNextCourse];\n // if ()\n // console.log('onDone', indexNextCourse, actualCourse)\n // this.done();\n console.log(nextCourse);\n\n //Registrar o progresso na etapa;\n this.checkAsRead(this.data[this.currentIndex()].id);\n\n if (indexNextCourse + 1 === response.data.length) {\n if (this.global.loggedUser().client_id == 3) {\n // console.log(this.etapaArray);\n //console.log(this.name_etapa);\n this.router.navigate(['/jornada', this.jornada_id]);\n\n } else {\n if (this.queryParams.origin == 'journey' && this.queryParams.ref) {\n\n this.router.navigate(['/journey', this.queryParams.ref], { queryParams: this.queryParams });\n }\n else {\n console.log('NAVIGATE ESCOLA');\n // this.router.navigate(['/']);\n window.history.back();\n }\n }\n }\n else {\n const newCourse = response.data[indexNextCourse + 1];\n\n if (this.global.loggedUser().client_id == 3) {\n if (this.jornada_id) {\n this.router.navigate(['/jornada', this.jornada_id, newCourse.id, this.toSeoUrl(newCourse.nome)]);\n } else {\n this.router.navigate(['/visualizador/curso/' + newCourse.id + '-' + this.toSeoUrl(newCourse.nome)]);\n }\n } else {\n if (this.queryParams.origin == 'journey' && this.queryParams.ref) {\n this.router.navigate([`visualizador/etapa/${newCourse.id}`], { queryParams: this.queryParams });\n }\n else {\n console.log('NewCourse', newCourse);\n this.router.navigate([`visualizador/etapa/${newCourse.id}`]);\n }\n }\n\n }\n })\n }\n\n public toSeoUrl(url) {\n return url.toString() // Convert to string\n .normalize('NFD') // Change diacritics\n .replace(/[\\u0300-\\u036f]/g, '') // Remove illegal characters\n .replace(/\\s+/g, '-') // Change whitespace to dashes\n .toLowerCase() // Change to lowercase\n .replace(/&/g, '-and-') // Replace ampersand\n .replace(/[^a-z0-9\\-]/g, '') // Remove anything that is not a letter, number or dash\n .replace(/-+/g, '-') // Remove duplicate dashes\n .replace(/^-*/, '') // Remove starting dashes\n .replace(/-*$/, ''); // Remove trailing dashes\n }\n\n public next(): any {\n console.log(`NEXT LOG 1 ->`, this.currentIndex());\n console.log(`NEXT LOG 1 ->`, this.data.length);\n\n\n if ((this.currentIndex() + 1) === this.data.length) {\n this.done();\n } else {\n this.data[this.currentIndex()].status = 1;\n const newCurrent = this.data[this.currentIndex() + 1];\n newCurrent.orientation = 'next';\n this.getSubEtapaByEvent(newCurrent);\n }\n }\n\n public previous(): void {\n const newCurrent = this.data[this.currentIndex() - 1];\n this.getSubEtapaByEvent(newCurrent);\n }\n\n public done(): any {\n console.log('Done ->', this.data[this.currentIndex()].id);\n this.checkAsRead(this.data[this.currentIndex()].id);\n console.log('-> DATA', this.data)\n window.history.back();\n console.log('BACK');\n }\n\n public read(): any {\n console.log('Read ->', this.data[this.currentIndex()].id);\n this.checkAsRead(this.data[this.currentIndex()].id);\n }\n\n back(): void {\n const urlAfterViewer = sessionStorage.getItem('urlAfterViewer') || '/';\n sessionStorage.removeItem('urlAfterViewer');\n this.router.navigate([urlAfterViewer]);\n }\n\n getUrlEscola() {\n const uris = [\n {\n platform: 'asta',\n uri: '/painel/escola',\n client_id: '000'\n },\n {\n platform: 'fitness-link',\n uri: '/painel/meus-cursos',\n client_id: '000'\n },\n {\n platform: 'lele',\n uri: '/trilhas',\n client_id: '000'\n },\n {\n platform: 'universidadesmart',\n uri: `/training/${this.etapa.item_id}`,\n client_id: '20'\n }];\n\n const escolaUri = uris.find(item => {\n return item.client_id === this.global.loggedUser().client_id;\n })\n\n return (escolaUri) ? escolaUri.uri : false;\n }\n\n\n\n public checkAsRead(idSubStep: number): void {\n if (idSubStep !== undefined) {\n this.ambienteVirtualService.registerNewProgress(idSubStep).subscribe(\n response => {\n console.log('checkAsRead', response);\n },\n error => {\n }\n );\n }\n }\n\n}\n","import { Component, OnInit, ViewChild, ElementRef, Directive, Input, Output, EventEmitter, Renderer2 } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { Location, LocationStrategy, PathLocationStrategy } from '@angular/common';\nimport { AmbienteVirtualService } from '../../../@core/services/ambiente-virtual.service';\nimport { Global } from 'asap-crud';\nimport { Trailv2Service } from '../../../@core/services/trailv2.service';\n\nconst misc: any = {\n navbar_menu_visible: 0,\n active_collapse: true,\n disabled_collapse_init: 0,\n};\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-navbar-curso',\n templateUrl: 'curso-navbar.component.html',\n styleUrls: ['../curso-visualizador.component.scss']\n})\n\nexport class CursoNavbarComponent implements OnInit {\n public location: Location;\n platform: string;\n urlEscola: string;\n\n @Input() public data: any;\n @Input() public current: any;\n @Input() public etapa: any;\n @Input() public journey: any;\n @Input() public sub_etapa: any;\n @Input() public sub_etapa_id: any;\n indexes: any;\n\n // ASAP\n @Output()\n public eventNavbar = new EventEmitter<any>();\n public event = new EventEmitter<any>();\n public checkIfAllHaveDoneVar: boolean;\n\n public menuItems: any[];\n\n public origemUrl: any;\n public referenceUrl: any;\n\n @ViewChild('app-navbar-curso', { static: false }) button: any;\n\n constructor(\n location: Location,\n private renderer: Renderer2,\n private element: ElementRef,\n private ambienteVirtualService: AmbienteVirtualService,\n private _router: Router,\n private global: Global,\n private trailService: Trailv2Service,\n private route: ActivatedRoute,\n ) {\n\n this.route.queryParams.subscribe(queryParam => {\n this.origemUrl = queryParam['origin'];\n this.referenceUrl = queryParam['ref'];\n });\n\n this.location = location;\n this.checkIfAllHaveDoneVar = false;\n this.platform = this.global.getPlataform();\n console.log('Plataform ->', this.platform);\n }\n\n public setIndexes(data, current) {\n this.indexes = {\n current: data.indexOf(current) + 1,\n total: data.length\n }\n }\n\n getUrlEscola() {\n const uris = [\n {\n platform: 'asta',\n uri: '/painel/escola',\n client_id: '000'\n },\n {\n platform: 'fitness-link',\n uri: '/painel/meus-cursos',\n client_id: '000'\n },\n {\n platform: 'lele',\n uri: '/trilhas',\n client_id: '000'\n },\n {\n platform: 'universidadesmart',\n uri: `/training/${this.etapa.item_id}`,\n client_id: '20'\n }];\n\n const escolaUri = uris.find(item => {\n return item.client_id === this.global.loggedUser().client_id;\n })\n\n return (escolaUri) ? escolaUri.uri : false;\n }\n\n ngOnChanges(sub_etapa_id: any) {\n this.getSubEtapaTitulo(this.sub_etapa_id)\n }\n\n ngOnInit() {\n this.menuItems = this.data;\n this.setIndexes(this.data, this.current);\n console.log('EVENT NAVBAR', this.eventNavbar);\n this.getSubEtapaTitulo(this.sub_etapa_id)\n }\n\n getSubEtapaTitulo(etapa_id) {\n this.sub_etapa = this.data.filter(function(item) {\n return item.id == etapa_id;\n })[0];\n console.log('subetapa',this.sub_etapa)\n }\n\n onNext(etapa_id) {\n this.getSubEtapaTitulo(etapa_id)\n this.trailService.trilhaEtapaItem(etapa_id).subscribe(response => {\n console.log('OnNextModule ->', response);\n const actualCourse = response.data.find(i => {\n return i.id === this.etapa.id;\n });\n\n const indexNextCourse = response.data.indexOf(actualCourse);\n\n if (indexNextCourse + 1 === response.data.length) {\n this._router.navigate([this.getUrlEscola()]);\n }\n else {\n const newCourse = response.data[indexNextCourse + 1];\n if(this.global.loggedUser().client_id == 3) {\n if(this.journey) {\n this._router.navigate(['/jornada', this.journey, newCourse.id, this.toSeoUrl(newCourse.nome)]);\n } else {\n this._router.navigate(['/visualizador/curso/' + newCourse.id + '-' + this.toSeoUrl(newCourse.nome)]);\n }\n } else {\n console.log('NewCourse', newCourse);\n this._router.navigate([`visualizador/etapa/${newCourse.id}`]);\n }\n }\n })\n }\n\n public toSeoUrl(url) {\n return url.toString() // Convert to string\n .normalize('NFD') // Change diacritics\n .replace(/[\\u0300-\\u036f]/g,'') // Remove illegal characters\n .replace(/\\s+/g,'-') // Change whitespace to dashes\n .toLowerCase() // Change to lowercase\n .replace(/&/g,'-and-') // Replace ampersand\n .replace(/[^a-z0-9\\-]/g,'') // Remove anything that is not a letter, number or dash\n .replace(/-+/g,'-') // Remove duplicate dashes\n .replace(/^-*/,'') // Remove starting dashes\n .replace(/-*$/,''); // Remove trailing dashes\n}\n\n back(): void {\n if (this.origemUrl) {\n this._router.navigate([this.origemUrl, this.referenceUrl]);\n }\n else {\n if (this.global.loggedUser().client_id == 3) {\n console.log('current', this.data, this.current, this.etapa, this.sub_etapa, this.sub_etapa_id);\n if (this.journey) {\n this._router.navigate([`jornada/${this.journey}`]);\n } else {\n this._router.navigate([`/school/timeline/${this.etapa.item_id}`]);\n }\n } else {\n this._router.navigate(['/universidade']);\n }\n }\n }\n\n\n public menuNavigate(obj: any): void {\n console.log('Menu Navigate ->', obj, this.menuItems[0]);\n\n if (this.current === obj) {\n //return;\n }\n\n this.current.status = '1';\n this.event.emit(this.menuItems[1]);\n window.scrollTo(0, 0);\n }\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\n\nimport { AmbienteVirtualService } from '../../../@core/services/ambiente-virtual.service';\nimport { Trailv2Service } from '../../../@core/services/trailv2.service';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { AsapViewerService } from '../../../asap-viewer.service';\nimport { Global } from 'asap-crud';\nimport { Location } from '@angular/common';\n\ndeclare const $: any;\n\n// Metadata\nexport interface RouteInfo {\n path?: string;\n title: string;\n type: string;\n icontype: string;\n collapse?: string;\n done?: boolean;\n children?: ChildrenItems[];\n}\n\nexport interface ChildrenItems {\n path: string;\n title: string;\n ab?: string;\n icontype?: string;\n done?: boolean;\n type?: string;\n}\n\n@Component({\n selector: 'app-sidebar-curso-visualizador',\n templateUrl: 'curso-sidebar.component.html',\n styleUrls: ['../curso-visualizador.component.scss'],\n providers: [Trailv2Service]\n})\n\nexport class CursoSidebarComponent implements OnInit {\n\n @Input() public data: any;\n @Input() public current: any;\n @Input() public trail: any;\n\n @Input() public etapa: any;\n @Input() public journey: any;\n\n @Output() public event = new EventEmitter<any>();\n\n public menuItems: any[];\n urlEscola: string;\n platform: string;\n logo: string;\n\n public etapaArray: any[];\n public complementArray: any[];\n\n displayMenu = true;\n\n id: number;\n name_etapa: any;\n active_etapa: any[];\n material = false;\n\n constructor(\n private _ambienteVirtualService: AmbienteVirtualService,\n public trailv2Service: Trailv2Service,\n public router: Router,\n private activatedRoute: ActivatedRoute,\n public viewerService: AsapViewerService,\n private global: Global,\n private location: Location\n ) {\n this.platform = localStorage.getItem('platform');\n this.urlEscola = this.getUrlEscola();\n\n if (this.platform === 'asta') {\n this.logo = '/assets/img/clientes/asta/logo.png';\n } else if (this.platform === 'fitness-link') {\n this.logo = '/assets/img/fitness-link-logo.png';\n }\n\n }\n\n getUrlEscola(): string {\n if (this.platform === 'asta') {\n return '/painel/escola';\n } else if (this.platform === 'fitness-link') {\n return '/painel/curso';\n } else if (this.platform === 'lele') {\n return '/trilhas';\n }\n return '/';\n }\n\n ngOnInit() {\n this.menuItems = this.data;\n\n this.activatedRoute.fragment.subscribe((fragment: string) => {\n if (fragment == 'material-de-apoio') {\n this.material = true;\n }\n });\n\n $(document).ready(function () {\n\n $('.sidebarCollapse').on('click', function () {\n $('#sidemenu-viewer, #content').toggleClass('active');\n });\n\n $('.sidebarMobileClose').on('click', function () {\n $('#sidemenu-viewer, #content').removeClass('active');\n });\n\n });\n\n $(document).on('click', '#btn-h', function () {\n $(this).attr('id', 'btn-v').html('<i class=\\'fa fa-bars\\'></i>');\n });\n\n $(document).on('click', '#btn-v', function () {\n $(this).attr('id', 'btn-h').html('<i class=\\'fa fa-bars\\'></i>');\n });\n\n this.getEtapas();\n\n }\n\n setMaterialURL() {\n if (this.journey) {\n this.location.go('/jornada/' + this.journey + '/' + this.etapa.item_id + '/' + this.toSeoUrl(this.etapa.nome) + '#material-de-apoio');\n } else {\n this.location.go('/visualizador/curso/' + this.etapa.item_id + '-' + this.toSeoUrl(this.name_etapa[0].nome) + '#material-de-apoio');\n }\n }\n\n public orientation(from: any, to: any) {\n const fromIndex = this.menuItems.indexOf(from);\n const toIndex = this.menuItems.indexOf(to);\n\n if (toIndex > fromIndex) {\n return 'next';\n } else if (fromIndex > toIndex) {\n return 'prev';\n } else {\n return 'stay';\n }\n }\n\n public menuNavigate(obj: any): void {\n console.log('Menu Navigate ->', obj, this.current);\n\n obj.orientation = this.orientation(this.current, obj);\n\n if (this.current === obj) {\n return;\n }\n\n this.current.status = '1';\n this.event.emit(obj);\n window.scrollTo(0, 0);\n }\n\n getEtapas() {\n this.trailv2Service.trilhaEtapaItem(this.trail)\n .subscribe((res: any) => {\n this.etapaArray = res.data;\n this.getComplements();\n\n\n });\n }\n\n getComplements() {\n this.trailv2Service.complement(this.trail)\n .subscribe((res: any) => {\n if (res.data.length > 0) {\n this.complementArray = res.data[0].value;\n }\n });\n }\n public toSeoUrl(url) {\n return url.toString() // Convert to string\n .normalize('NFD') // Change diacritics\n .replace(/[\\u0300-\\u036f]/g, '') // Remove illegal characters\n .replace(/\\s+/g, '-') // Change whitespace to dashes\n .toLowerCase() // Change to lowercase\n .replace(/&/g, '-and-') // Replace ampersand\n .replace(/[^a-z0-9\\-]/g, '') // Remove anything that is not a letter, number or dash\n .replace(/-+/g, '-') // Remove duplicate dashes\n .replace(/^-*/, '') // Remove starting dashes\n .replace(/-*$/, ''); // Remove trailing dashes\n }\n onEtapaChange(id: any) {\n\n if (this.id !== id) {\n if (this.global.loggedUser().client_id == 3) {\n // console.log(this.etapaArray);\n this.name_etapa = this.etapaArray.filter(function (etapa) { return etapa.id == id; });\n //console.log(this.name_etapa);\n if (this.journey) {\n this.router.navigate(['/jornada', this.journey, id, this.toSeoUrl(this.name_etapa[0].nome)]);\n } else {\n this.router.navigate(['/visualizador/curso/' + id + '-' + this.toSeoUrl(this.name_etapa[0].nome)]);\n }\n } else {\n this.router.navigate(['/visualizador/etapa', id]);\n }\n }\n }\n}\n","import { Component, Inject, EventEmitter, Output } from '@angular/core';\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { TrilhaRatingService } from '../../@core/services/trilha/trilha-rating.service';\nimport { Router } from '@angular/router';\nimport { Global } from 'asap-crud';\n\n// Start Rating Component\n@Component({\n selector: 'app-mini-visualizador-modal-rating',\n templateUrl: './modal-rating.component.html',\n styleUrls: ['./modal-rating.component.css', '../../asap-viewer.css'],\n providers: [TrilhaRatingService, Global]\n})\nexport class ModalStarRatingComponent {\n\n score: number = 0;\n showCertificateLink: boolean;\n showContinueButtom: boolean = false;\n loading: boolean;\n comment;\n\n constructor(\n private _trilhaRatingService: TrilhaRatingService,\n public dialogRef: MatDialogRef<ModalStarRatingComponent>,\n public router: Router,\n public global: Global,\n @Inject(MAT_DIALOG_DATA) public data: any\n ) { }\n\n ngOnInit() {\n }\n\n jump(): void {\n this.dialogRef.close(true);\n }\n\n onRateChange = (score) => {\n this.score = score;\n }\n\n save() {\n this.loading = true;\n const form = { rating: this.score, comment: this.comment }\n this._trilhaRatingService.createResource(form, { router: this.data.owner.module }).subscribe(res => {\n if (res) {\n this._trilhaRatingService.getResource(this.data.owner.module).subscribe(\n response => {\n if (response.data.end) {\n // this.showCertificateLink = false;\n this.goToRedirect('save');\n this.showContinueButtom = true;\n }\n else {\n this.showContinueButtom = true;\n }\n },\n error => {\n this.global.alert('Ops!', 'Ocorreu um problema ao processar sua requisição', 'error');\n })\n }\n else {\n this.showContinueButtom = true;\n this.dialogRef.close('done');\n\n }\n },\n error => {\n this.loading = false;\n })\n }\n\n onClose() {\n this.goToRedirect('onClose');\n }\n \n goToRedirect(source: string) {\n if (this.data.redirect) {\n this.router.navigateByUrl(this.data.redirect);\n this.dialogRef.close('redirecting');\n }\n else {\n this.dialogRef.close('done');\n }\n }\n \n goToCertificate() {\n this.dialogRef.close(true);\n // this.router.navigate(['/my-page'], {queryParams: {certificate: 'certificate'}});\n }\n}\n","import { Component, OnInit, Input, EventEmitter, Output, ViewChild } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\nimport { MatDialog } from '@angular/material/dialog';\nimport { ModalStarRatingComponent } from '../../modal-rating/modal-rating.component';\nimport { VimeoService } from '../../../@core/services/vimeo.service';\nimport { AmbienteVirtualService } from '../../../@core/services/ambiente-virtual.service';\nimport { VideoItemComponent, ImageItemComponent, PdfItemComponent, ExerciseComponent, MultiChoiceComponent } from '../../../@core/models/item-component';\nimport { Global } from 'asap-crud';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\n\ndeclare var swal: any;\ndeclare var $: any;\n\n@Component({\n selector: 'app-viewer',\n templateUrl: './viewer.component.html',\n styleUrls: ['../curso-visualizador.component.scss', './viewer.component.scss'],\n providers: [VimeoService, TrailContentService]\n})\nexport class ViewerComponent implements OnInit {\n @Input() module: any;\n @Input() step: any;\n @Input() id;\n @Input() etapa: any;\n @Output() eventRefreshSideBar = new EventEmitter<any>();\n @Output() eventNavbar = new EventEmitter<any>();\n\n\n @ViewChild('conclusion', { static: false }) conclusion: any;\n\n public updateAt10;\n public updateAt25;\n public updateAt50;\n public updateAt75;\n public content;\n public redirect;\n\n public ratingOpened = false;\n\n componentArray: Array<any>;\n loader: boolean;\n\n constructor(\n private _ambienteVirtualService: AmbienteVirtualService,\n private _sanitizer: DomSanitizer,\n private _vimeoService: VimeoService,\n public dialog: MatDialog,\n public global: Global,\n public trailContentService: TrailContentService\n ) {\n }\n\n ngOnInit() {\n this.getContent(this.step);\n }\n\n private sanitizer(url: string, type: string): SafeResourceUrl {\n\n let uri;\n\n if (!url) {\n return null;\n }\n\n if (type === 'youtube') {\n const code = this.getYoutubeID(url);\n uri = 'https://www.youtube.com/embed/' + code + '?rel=0&showinfo=0';\n }\n\n if (type === 'vimeo') {\n const code = this.getVimeoID(url);\n uri = 'https://player.vimeo.com/video/' + code;\n }\n\n if (type === 'file') {\n uri = url;\n }\n\n if (type === 'stream') {\n uri = url;\n }\n\n if (type === 'image') {\n uri = url;\n }\n\n return this._sanitizer.bypassSecurityTrustResourceUrl(uri);\n }\n\n getYoutubeID(url: string): string {\n const regExp = /^.*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?([^#\\&\\?]*).*/;\n const match = url.match(regExp);\n return (match && match[7].length === 11) ? match[7] : '';\n }\n\n getVimeoID(url: string): string {\n // tslint:disable-next-line:max-line-length\n const regExp = /https?:\\/\\/(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)?|groups\\/([^\\/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|video\\/|)(\\d+)(?:$|\\/|\\?)/;\n const match = url.match(regExp);\n return (match && match[3]) ? match[3] : '';\n }\n\n getContent(step: number) {\n this.loader = true;\n this._ambienteVirtualService.getContent(step)\n .subscribe((res: any) => {\n const data = res.data[0].value;\n this.redirect = res.redirect;\n this.content = res.data[0];\n\n if (res['data'][0].value) {\n const itensJson = res['data'][0].value;\n\n this.componentArray = [];\n\n for (const item of itensJson) {\n this.componentArray.push(item);\n }\n\n }\n\n this.loader = false;\n }, err => {\n console.log(err);\n });\n }\n\n resetVideoUpdater() {\n this.updateAt10 = true;\n this.updateAt25 = true;\n this.updateAt50 = true;\n this.updateAt75 = true;\n }\n\n updateVideoTime(event) {\n if (event.progress < 10) {\n this.resetVideoUpdater();\n }\n else if ((event.progress >= 10) && (this.updateAt10)) {\n this.doUpdateVideoTime(event);\n this.updateAt10 = false;\n }\n else if ((event.progress >= 25) && (this.updateAt25)) {\n this.doUpdateVideoTime(event);\n this.updateAt25 = false;\n }\n else if ((event.progress >= 50) && (this.updateAt50)) {\n this.doUpdateVideoTime(event);\n this.updateAt50 = false;\n }\n else if ((event.progress >= 75) && (this.updateAt75)) {\n this.doUpdateVideoTime(event);\n this.updateAt75 = false;\n }\n else if (event.progress >= 100) {\n this.doUpdateVideoTime(event);\n }\n }\n\n doUpdateVideoTime(time) {\n this.trailContentService.videoTime(this.content.id, time.current).subscribe(\n (result) => {\n console.log('doUpdateVideoTime ->', result);\n },\n (error: any) => {\n console.log('Error updateVideoTime', error);\n }\n )\n }\n\n\n private notificate(): any {\n this.global.swal({\n title: 'Erro',\n text: 'Erro ao carregar conteúdo. Recarregue sua página.',\n type: 'warning',\n confirmButtonClass: 'btn btn-success',\n });\n }\n\n goToAnchor(anchor: string) {\n const $div = $('#' + anchor);\n const top = $div.offset().top + 48;\n\n $('html, body').animate({ scrollTop: top }, 1000);\n }\n\n showButton(item: any) {\n return (\n item.button &&\n item.button !== '' &&\n item.type !== 'intro' &&\n item.type !== 'conclusion' &&\n item.type !== 'challenge'\n );\n }\n\n emitEvent(event: string) {\n this.eventNavbar.emit(event);\n window.scrollTo(0, 0);\n }\n\n ratingEvent(event = 'next') {\n if (!this.ratingOpened) {\n this.ratingOpened = true;\n const dialogRef = this.dialog.open(ModalStarRatingComponent, {\n width: '380px',\n disableClose: true,\n data: { id: this.id, owner: this, event: event, redirect: this.redirect }\n });\n \n dialogRef.afterClosed().subscribe(result => {\n this.ratingOpened = false;\n console.log('[ViewerComponente] ratingEvent -> ', result)\n this.eventNavbar.emit(result);\n window.scrollTo(0, 0);\n });\n }\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class MiniTrailService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'trilha/minicurso')\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class DevelopmentService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'trilha/des')\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class ArticlesService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'trilha/articles')\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class TrilhaItemService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'trilha/etapa/item');\n }\n\n}\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { AgendaModel } from '../models/agenda.model';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class LayoutService {\n\n constructor(public http: HttpClient, public global: Global) {\n\n }\n\n data(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/type/layout', this.getHeaders());\n }\n\n getHeaders(): {headers: HttpHeaders} {\n const token = localStorage.getItem('token');\n const headerOptions = {\n 'Authorization': token,\n 'Accept': 'application/json'\n };\n return {headers: new HttpHeaders(headerOptions)};\n }\n\n}\n","import { Component, ViewChild, OnInit } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { MatDialog } from '@angular/material/dialog';\nimport { AmbienteVirtualService } from '../../@core/services/ambiente-virtual.service';\nimport { bannerService } from '../../@core/services/banner.service';\nimport { MiniTrailService } from '../../@core/services/minicurso/minicurso.service';\nimport { DevelopmentService } from '../../@core/services/development/development.service';\nimport { ArticlesService } from '../../@core/services/articles/articles.service';\nimport { TrilhaService } from '../../@core/services/trilha/trilha.service';\nimport { TrilhaItemService } from '../../@core/services/trilha/trilha-item.service';\nimport { Global } from 'asap-crud';\nimport { LayoutService } from '../../@core/services/layout.service';\n\ndeclare const $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-mini-curso-visualizador',\n templateUrl: './mini-curso-visualizador.component.html',\n styleUrls: ['./scss/styles.component.scss'],\n providers: [\n AmbienteVirtualService,\n bannerService,\n MiniTrailService,\n DevelopmentService,\n ArticlesService,\n TrilhaService,\n TrilhaItemService,\n LayoutService\n ]\n})\n\nexport class MiniCursoVisualizadorComponent implements OnInit {\n\n public id: number;\n public subEtapaID: number;\n public loader: boolean;\n public loaderList: boolean;\n public bannerArray: any;\n public playlist: any;\n public playlistBuffer: any;\n public playlistPage: number;\n public playlistItemFinal: number;\n public score: any;\n public title: string;\n public checkModule;\n public now: Date = new Date();\n // miniStep - 0 == mini-etapa; 1 == etapa-develop; 2 == etapa-articles;\n public miniStep: any;\n @ViewChild('cursoViewer', { static: false }) cursoViewer;\n @ViewChild('cursoNavBar', { static: false }) cursoNavBar;\n public data: any[] = [];\n public trail: any;\n public module: number;\n public current: any;\n public index: number;\n public helperText: string;\n public dataLoadError;\n\n public design: any;\n public component: any;\n\n constructor(\n private ambienteVirtualService: AmbienteVirtualService,\n private activatedRoute: ActivatedRoute,\n private router: Router,\n private _trilhaService: TrilhaService,\n public dialog: MatDialog,\n private _MiniTrailService: MiniTrailService,\n private _DevelopmentService: DevelopmentService,\n private _ArticlesService: ArticlesService,\n private _trilhaItemService: TrilhaItemService,\n public _layoutService: LayoutService,\n public global: Global\n ) {\n this.loader = true;\n this.loaderList = true;\n this.index = 0;\n this.playlist = [];\n this.playlistPage = 0;\n this.activatedRoute.params\n .subscribe(params => {\n this.id = params['id'];\n this.bootstrap();\n this.getStepListByIdTrail(this.id);\n });\n }\n\n ngOnInit() {\n this.getDesign();\n }\n\n getDesign() {\n if (localStorage.getItem('layout_home')) {\n this.design = JSON.parse(localStorage.getItem('layout_home'));\n this.getComponent();\n } else {\n this._layoutService.data().subscribe((res: any) => {\n this.design = (res.data) ? res.data.value : { main: [], sidebar: [], full: [], top: [] };\n this.getComponent();\n });\n }\n }\n\n getComponent() {\n const path = this.activatedRoute.snapshot.routeConfig.path.split('/');\n\n const component = {\n 'mini-etapa': 'influenciadores',\n 'etapa-develop': 'mini',\n 'etapa-artigo': 'artigos'\n };\n\n if (!component[path[0]]) {\n this.component = false;\n return;\n }\n\n this.component = this.design.main.find((item: any) => {\n return item.type === component[path[0]];\n });\n }\n\n bootstrap() {\n const path = this.activatedRoute.snapshot.routeConfig.path.split('/');\n if (path[0] === 'mini-etapa') {\n this.title = 'influenciadores';\n this.miniStep = 0;\n } else if (path[0] === 'etapa-develop') {\n this.title = 'reflexões e experiências';\n this.miniStep = 1;\n } else if (path[0] === 'etapa-artigo') {\n this.title = 'Leitura e conhecimento ';\n this.miniStep = 2;\n }\n this.helperText = 'Este painel apresenta o total de pontos do ambiente ' + this.title + '. Clique em relatórios para visualizar seu progresso em todos os ambientes da Universidade Smart Fit.'\n\n }\n\n getInfoTrail(id: number): void {\n this._trilhaService.getResource(id)\n .subscribe((res: any) => {\n if (res.data.length > 0) {\n this.trail = res.data[0];\n }\n });\n }\n\n getStepListByIdTrail(idTrail: number): void {\n console.log('getStepListByIdTrail: idTrail', idTrail);\n this.ambienteVirtualService.getEtapasByTrail(idTrail)\n .subscribe(\n (res: any) => {\n if (res && res.data) {\n if (res.data.length === 0) {\n swal('Ops...', 'Esse curso ainda não tem conteúdo', 'warning').then(() => {\n this.router.navigate(['/home']);\n });\n return;\n }\n else {\n this.checkModule = res.data[0];\n if (res.data[this.index]) {\n this.subEtapaID = res.data[this.index].id;\n this.getStepData(res.data[this.index].id);\n } else {\n console.log(res.data);\n }\n if (this.miniStep === 0) {\n this.getPlaylistMini(this.id)\n } else if (this.miniStep === 1) {\n this.getPlaylistDevelop(this.id)\n this.getTrilhaItem(this.id);\n } else if (this.miniStep === 2) {\n this.getPlaylistArticles(this.id);\n }\n this.getInfoTrail(this.id);\n }\n }\n else {\n this.dataLoadError = 'not-exists';\n }\n },\n (error) => {\n this.global.alert('Ops', 'Ocorreu um erro ao processar sua solicitação, entre em contato com o suporte.', 'error');\n });\n }\n\n getPointsStepListByIdTrail(idTrail: number): void {\n let resources;\n if (this.miniStep === 0) {\n resources = this._MiniTrailService.getResource(idTrail);\n } else if (this.miniStep === 1) {\n resources = this._DevelopmentService.getResource(idTrail);\n } else if (this.miniStep === 2) {\n resources = this._ArticlesService.getResource(idTrail);\n }\n console.log('getPointsStepListByIdTrail: this.score', this.score);\n resources.subscribe(response => {\n console.log('getPointsStepListByIdTrail: response.pontos', response.pontos);\n this.score = response.pontos;\n this.loader = false;\n });\n }\n\n getTrilhaItem(id: number): void {\n this._trilhaItemService.getResource(id)\n .subscribe((res: any) => {\n this.playlist = res.data;\n this.loaderList = false;\n });\n }\n\n compare(a, b) {\n if (a.order < b.order) {\n return -1;\n }\n if (a.order > b.order) {\n return 1;\n }\n return 0;\n }\n\n getStepData(id): void {\n console.log('MINI VISUALIZADOR getStepData() ID', id);\n this.loader = true;\n this.module = id;\n this.ambienteVirtualService.getSubEtapa(id)\n .subscribe((res: any) => {\n if (res && res.data.length > 0) {\n console.log('MINI VISUALIZADOR getStepData() res', res);\n console.log('MINI VISUALIZADOR getStepData() compare', this.compare);\n console.log('MINI VISUALIZADOR getStepData() sort', res.data.sort(this.compare));\n res.data.sort(this.compare);\n\n if (res.data.length > 0) {\n this.data = res.data;\n this.getcurrent();\n }\n }\n else {\n this.dataLoadError = 'empty';\n }\n\n this.loader = false;\n\n }, err => {\n this.notificate();\n });\n }\n\n getcurrent(): void {\n this.current = this.data.find(item => {\n return item.status === 0;\n });\n\n console.log('CURRENT ->', this.current);\n\n if (!this.current) {\n this.current = this.data[0];\n }\n }\n\n getPlaylistMini(id) {\n this.playlist = [];\n this.playlistPage = 0;\n\n this._MiniTrailService.getResource(id)\n .subscribe((res: any) => {\n this.playlistBuffer = res.data;\n this.insertVideos();\n this.score = res.pontos;\n this.loaderList = false;\n })\n }\n\n getPlaylistDevelop(id) {\n this._DevelopmentService.getResource(id)\n .subscribe((res: any) => {\n this.score = res.pontos;\n })\n }\n\n getPlaylistArticles(id) {\n this.playlist = [];\n this.playlistPage = 0;\n\n this._ArticlesService.getResource(id)\n .subscribe((res: any) => {\n this.playlistBuffer = res.data;\n this.insertVideos();\n this.score = res.pontos;\n this.loaderList = false;\n })\n }\n\n notificate(): any {\n swal({\n title: 'Erro',\n text: 'Erro ao carregar conteúdo. Recarregue sua página.',\n type: 'warning',\n confirmButtonClass: 'btn btn-success',\n });\n }\n\n eventNavBar($event): any {\n console.log('EVENT NAVBAR (MINI CURSO) ->', $event);\n if ($event === 'next') {\n this.next();\n } else if ($event === 'previous') {\n this.previous();\n } else if ($event === 'done') {\n this.done();\n }\n }\n\n currentIndex(): number {\n return this.data.indexOf(this.current);\n }\n\n next(): any {\n this.loader = true;\n this.data[this.currentIndex()].status = 1;\n if (this.data.length === this.currentIndex() + 1) {\n this.done();\n\n } else {\n const newCurrent = this.data[this.currentIndex() + 1];\n this.getSubEtapaByEvent(newCurrent);\n\n }\n }\n\n previous(): void {\n const newCurrent = this.data[this.currentIndex() - 1];\n this.getSubEtapaByEvent(newCurrent);\n }\n\n done(): any {\n this.checkAsRead(this.data[this.currentIndex()].id);\n const path = this.activatedRoute.snapshot.routeConfig.path.split('/');\n\n\n if (this.miniStep == '0') {\n this._MiniTrailService.getResources().subscribe((res: any) => {\n const actual = res.data.find(i => {\n return (i.id == +this.id);\n });\n console.log('Response MiniCurso ->', res);\n console.log('Response ActualCourse ->', actual);\n const index = res.data.indexOf(actual);\n if (index + 1 === res.data.length) {\n const newIndex = res.data[0];\n this.router.navigate(['/visualizador/' + path[0], newIndex.id]);\n this.global.swal({\n title: 'Parabéns!',\n text: 'Você já concluiu todos os Mini cursos e será redirecionado para a Universidade.',\n type: \"success\",\n showCancelButton: false,\n confirmButtonText: \"Ok\",\n cancelButtonText: \"Não\",\n allowOutsideClick: false,\n }).then(confirm => {\n this.router.navigate(['/universidade']);\n });\n this.loader = false;\n } else {\n const newIndex = res.data[0];\n this.loader = false;\n this.router.navigate(['/visualizador/' + path[0], newIndex.id]);\n }\n }, err => {\n })\n } else if (this.miniStep == '1') {\n const playlistCounter = this.playlist.length;\n\n\n if (this.index + 1 === playlistCounter) {\n this._DevelopmentService.getResources().subscribe(\n (res: any) => {\n\n\n const actual = res.find(i => {\n return i.id === +this.id;\n });\n\n const index = res.indexOf(actual);\n\n\n if (index + 1 === res.length) {\n const newIndex = res[0];\n\n this.router.navigate(['/visualizador/' + path[0], newIndex.id]);\n this.loader = false;\n this.global.swal({\n title: 'Parabéns!',\n text: 'Você já concluiu todos os Mini cursos e será redirecionado para a Universidade.',\n type: \"success\",\n showCancelButton: false,\n confirmButtonText: \"Ok\",\n cancelButtonText: \"Não\",\n allowOutsideClick: false,\n }).then(confirm => {\n this.router.navigate(['/universidade']);\n });\n } else {\n const newIndex = res[index + 1];\n this.router.navigate(['/visualizador/' + path[0], newIndex.id]);\n }\n },\n err => {\n }\n )\n } else {\n\n this.index++;\n this.getStepData(this.playlist[this.index].id);\n }\n } else if (this.miniStep == '2') {\n this._ArticlesService.getResources().subscribe(\n (res: any) => {\n console.log('miniStep-2', res);\n if (res.data.length > 0) {\n const actual = res.data.find(i => {\n return i.id === +this.id;\n });\n const index = res.data.indexOf(actual);\n if (index + 1 === res.data.length) {\n const newIndex = res.data[0];\n this.router.navigate(['/visualizador/' + path[0], newIndex.id]);\n } else {\n const newIndex = res.data[index + 1];\n this.router.navigate(['/visualizador/' + path[0], newIndex.id]);\n this.loader = false;\n }\n }\n else {\n this.router.navigate(['/home']);\n }\n },\n (err) => {\n\n }\n );\n }\n\n this.loader = false;\n\n }\n\n getTrails() {\n }\n\n back(): void {\n window.history.back();\n }\n\n getUrlEscola(): string {\n const platform = localStorage.getItem('platform');\n\n const uris = [\n {\n platform: 'asta',\n uri: '/painel/escola'\n },\n {\n platform: 'fitness-link',\n uri: '/painel/cursos'\n },\n {\n platform: 'lele',\n uri: '/trilhas'\n }];\n\n const escolaUri = uris.find(item => {\n return item.platform === platform;\n })\n\n return (escolaUri) ? escolaUri.uri : '/';\n }\n\n getSubEtapaByEvent($event): void {\n const oldCurrent = this.current;\n\n this.checkAsRead(oldCurrent.id);\n\n this.current = $event;\n this.cursoViewer.getContent(this.current.id);\n this.cursoNavBar.setIndexes(this.data, this.current);\n }\n\n checkAsRead(idSubStep: number): void {\n if (idSubStep !== undefined) {\n this.ambienteVirtualService.registerNewProgress(idSubStep)\n .subscribe(\n (res: any) => {\n this.getPointsStepListByIdTrail(this.id);\n this.getInfoTrail(this.id);\n },\n err => {\n });\n }\n }\n\n setModule(index: number) {\n this.index = index;\n this.getStepData(this.playlist[index].id);\n }\n\n checkDateBetween(date) {\n date = new Date(date);\n const result = this.now.getTime() >= date.getTime();\n return result;\n }\n\n checkDate(date) {\n date = new Date(date);\n const result = this.now.getTime() > date.getTime();\n return result;\n }\n\n insertVideos() {\n const offset = this.playlistPage * 3;\n const end = offset + 3;\n const partial = this.playlistBuffer.slice(offset, end);\n\n this.playlistItemFinal = end;\n\n this.playlist.push(...partial);\n this.playlistPage++;\n }\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { AmbienteVirtualService } from '../../../@core/services/ambiente-virtual.service';\n\ndeclare const $: any;\n\n// Metadata\nexport interface RouteInfo {\n path?: string;\n title: string;\n type: string;\n icontype: string;\n collapse?: string;\n done?: boolean;\n children?: ChildrenItems[];\n}\n\nexport interface ChildrenItems {\n path: string;\n title: string;\n ab?: string;\n icontype?: string;\n done?: boolean;\n type?: string;\n}\n\n@Component({\n selector: 'app-sidebar-mini-curso-visualizador',\n templateUrl: 'mini-curso-sidebar.component.html',\n styleUrls: ['../scss/styles.component.scss']\n})\n\nexport class MiniCursoSidebarComponent implements OnInit {\n\n @Input() public data: any;\n @Input() public current: any;\n\n @Output() public event = new EventEmitter<any>();\n\n public menuItems: any[];\n urlEscola: string;\n platform: string;\n logo: string;\n\n constructor(private _ambienteVirtualService: AmbienteVirtualService) {\n this.platform = localStorage.getItem('platform');\n this.urlEscola = this.getUrlEscola();\n\n if (this.platform == 'asta') {\n this.logo = '/assets/img/clientes/asta/logo.png';\n } else if (this.platform == 'fitness-link') {\n this.logo = '/assets/img/fitness-link-logo.png';\n }\n\n }\n\n getUrlEscola(): string {\n if (this.platform == 'asta') {\n return '/painel/escola';\n } else if (this.platform == 'fitness-link') {\n return '/painel/curso';\n } else if (this.platform == 'lele') {\n return '/trilhas';\n }\n return '/';\n }\n\n ngOnInit() {\n this.menuItems = this.data;\n }\n\n public menuNavigate(obj, disable): void {\n if (!disable) {\n if (this.current === obj) {\n return;\n }\n this.current.status = '1';\n this.event.emit(obj);\n }\n }\n\n isMobileMenu() {\n if ($(window).width() > 991) {\n return false;\n }\n return true;\n };\n\n updatePS(): void {\n if (window.matchMedia(`(min-width: 960px)`).matches && !this.isMac()) {\n const elemSidebar = <HTMLElement>document.querySelector('.sidebar .sidebar-wrapper');\n }\n }\n\n isMac(): boolean {\n let bool = false;\n if (navigator.platform.toUpperCase().indexOf('MAC') >= 0 || navigator.platform.toUpperCase().indexOf('IPAD') >= 0) {\n bool = true;\n }\n return bool;\n }\n}\n","import { Injectable } from '@angular/core';\nimport { BaseService } from './base.service';\nimport { HttpClient } from '@angular/common/http';\n\n@Injectable()\nexport class AreaPermissionService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/admin', 'acervo/pasta/abre/permission')\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { Global } from 'asap-crud';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class TutorService extends BaseService {\n\n constructor(protected http: HttpClient, public global: Global) {\n super(http, 'api', 'v2')\n }\n\n public profile():any {\n return this.getResources({router:'client/home/verify/profile'});\n }\n\n public tutor():any {\n return this.getResources({router:'client/painel/tutor'});\n }\n\n public classes(trail_id):any {\n return this.getResources({router:'client/painel/class/' + trail_id});\n }\n\n public student(class_id):any {\n return this.getResources({router:'client/painel/student/' + class_id});\n }\n\n public tutorClass(class_id):any {\n return this.getResources({router:'admin/trail/config/class/tutor/' + class_id});\n }\n\n public users(search):any {\n let data = {\n search: search\n }\n return this.createResource(data,{router:'admin/trail/user/search'});\n }\n\n public clearData(item_id,user_id):any {\n return this.getResources({router:'admin/trail/config/students/' + item_id + '/' + user_id});\n }\n\n public saveClass(class_id,data):any {\n return this.createResource(data, {router:'admin/trail/config/class/' + class_id});\n }\n\n public addStudent(class_id,user_id):any {\n let data = {\n \"user_id\":user_id\n }\n return this.createResource(data, {router:'admin/trail/config/class/user/' + class_id});\n }\n\n public removeStudent(id):any {\n return this.http.delete(this.global.apiURL() + '/api/v2/admin/trail/config/class/user/' + id,this.options);\n }\n\n \n\n public addTutor(class_id,user_id):any {\n let data = {\n \"user_id\":user_id\n }\n return this.createResource(data, {router:'admin/trail/config/class/tutor/' + class_id});\n }\n\n public removeTutor(id):any {\n return this.http.delete(this.global.apiURL() + '/api/v2/admin/trail/config/class/tutor/' + id,this.options);\n }\n\n public studentExtraData(trail_id,student):any {\n let result = this.getResources({router:'client/trilha/performance/trail/' + trail_id + '/' + student.user_id});\n return new Promise((resolve) => {\n result.subscribe((response:any) => {\n student.acerto = response.data.CorrectAnswer;\n student.erro = response.data.WrongAnswer;\n student.questions = response.data.sequence;\n let perguntas = student.acerto+student.erro;\n student.percentualAcerto = 0;\n if (perguntas != 0) {\n student.percentualAcerto = 100*(student.acerto/perguntas);\n }\n resolve(student);\n });\n });\n }\n\n public videoTime(trail_id,user_id):any {\n return this.getResources({router:'client/trilha/performance/trail/video/' + trail_id + '/' + user_id});\n } \n\n}","import { Component, OnInit } from '@angular/core';\nimport { AreaPermissionService } from '../../../@core/services/area-permission.service';\nimport { TutorService } from '../../../@core/services/tutor/tutor.service';\nimport { AsapViewerService } from '../../../asap-viewer.service';\n\ndeclare const $: any;\n\n@Component({\n selector: 'app-mini-sidemenu',\n templateUrl: './mini-sidemenu.component.html',\n styleUrls: ['../scss/styles.component.scss'],\n providers: [ AreaPermissionService, TutorService ]\n})\n\nexport class MiniCursoSideMenuComponent implements OnInit {\n\n public isTutor = false;\n public areas;\n\n constructor(\n public tutorService:TutorService,\n private _areaPermissionService: AreaPermissionService,\n public viewerService: AsapViewerService\n ) {\n this.tutorService.profile().subscribe((response:any) => {\n this.isTutor = response.tutor;\n })\n this._areaPermissionService.getResources().subscribe((res:any) => {\n this.areas = res.data;\n })\n }\n\n ngOnInit() {\n\n $(document).ready(function () {\n\n $('#sidemenuCollapse').on('click', function () {\n $('.sidemenu, .content, .overlay').toggleClass('active');\n });\n\n $('.overlay').on('click', function () {\n $('.sidemenu, .content, .overlay').removeClass('active');\n });\n\n $('.components').on('click', function () {\n $('.sidemenu, .content, .overlay').removeClass('active');\n });\n\n $('.navbar-brand').on('click', function () {\n $('.sidemenu, .content, .overlay').removeClass('active');\n });\n\n $('.triangle').on('click', function () {\n $('.sidemenu, .content, .overlay').removeClass('active');\n });\n\n });\n\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class NotificationService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'home/notifica')\n }\n\n}","import { Component, OnInit, ViewChild, ElementRef, Directive, Input, Output, EventEmitter, Renderer2 } from '@angular/core';\nimport {Router, ActivatedRoute} from '@angular/router';\nimport {Location, LocationStrategy, PathLocationStrategy} from '@angular/common';\nimport { NotificationService } from '../../../@core/services/notifications/notifications.service';\nimport { AmbienteVirtualService } from '../../../@core/services/ambiente-virtual.service';\nimport { Global } from 'asap-crud';\nimport { HttpClient } from '@angular/common/http';\nimport { AsapViewerService } from '../../../asap-viewer.service';\n\nconst misc: any = {\n navbar_menu_visible: 0,\n active_collapse: true,\n disabled_collapse_init: 0,\n};\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-navbar-mini-curso',\n templateUrl: 'mini-curso-navbar.component.html',\n styleUrls: ['../scss/styles.component.scss'],\n providers: [ NotificationService ]\n})\n\nexport class MiniCursoNavbarComponent implements OnInit {\n private listTitles: any[];\n location: Location;\n private nativeElement: Node;\n private toggleButton: any;\n private sidebarVisible: boolean;\n platform: string;\n urlEscola: string;\n\n public notification: any;\n public total: number;\n public loggedUser: any;\n public token;\n\n @Input() private data: any;\n @Input() private current: any;\n @Input() private etapa: any;\n\n indexes: any;\n\n // ASAP\n @Output()\n public eventNavbar = new EventEmitter<any>();\n\n public checkIfAllHaveDoneVar: boolean;\n\n @ViewChild('app-navbar-curso',{static:false}) button: any;\n\n constructor(\n location: Location,\n private renderer: Renderer2,\n private element: ElementRef,\n private ambienteVirtualService: AmbienteVirtualService,\n private router: Router,\n private _NotificationService: NotificationService,\n public global: Global,\n public http: HttpClient,\n public viewerService: AsapViewerService\n\n ) {\n this.location = location;\n this.nativeElement = element.nativeElement;\n this.sidebarVisible = false;\n this.checkIfAllHaveDoneVar = false;\n this.platform = localStorage.getItem('platform');\n }\n\n public setIndexes(data, current) {\n this.indexes = {\n current: data.indexOf(current)+1,\n total: data.length\n }\n }\n\n getUrlEscola() {\n const uris = [\n {\n platform: 'asta',\n uri: '/painel/escola',\n client_id:'000'\n },\n {\n platform: 'fitness-link',\n uri: '/painel/meus-cursos',\n client_id:'000'\n },\n {\n platform: 'lele',\n uri: '/trilhas',\n client_id:'000'\n },\n {\n platform: 'universidadesmart',\n uri: `/training/${this.etapa.item_id}`,\n client_id:'20'\n }];\n\n const escolaUri = uris.find(item => {\n return item.client_id === this.global.loggedUser().client_id;\n })\n\n return (escolaUri) ? escolaUri.uri : false;\n }\n\n ngOnInit() {\n this.token = localStorage.getItem(\"tokenLogin\");\n console.log('ETAPA ->', this.etapa);\n this.getLoggedUser();\n this.getNotification();\n\n setInterval(() => {\n this.getNotification();\n }, 300000)\n\n this.setIndexes(this.data, this.current);\n\n const navbar: HTMLElement = this.element.nativeElement;\n this.toggleButton = navbar.getElementsByClassName('navbar-toggle')[0];\n if ($('body').hasClass('sidebar-mini')) {\n misc.sidebar_mini_active = true;\n }\n if ($('body').hasClass('hide-sidebar')) {\n misc.hide_sidebar_active = true;\n }\n $('#minimizeSidebar').click(function () {\n if (misc.sidebar_mini_active === true) {\n $('body').removeClass('sidebar-mini');\n misc.sidebar_mini_active = false;\n\n } else {\n setTimeout(function () {\n $('body').addClass('sidebar-mini');\n\n misc.sidebar_mini_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function () {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function () {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n $('#hideSidebar').click(function () {\n if (misc.hide_sidebar_active === true) {\n setTimeout(function () {\n $('body').removeClass('hide-sidebar');\n misc.hide_sidebar_active = false;\n }, 300);\n setTimeout(function () {\n $('.sidebar').removeClass('animation');\n }, 600);\n $('.sidebar').addClass('animation');\n\n } else {\n setTimeout(function () {\n $('body').addClass('hide-sidebar');\n // $('.sidebar').addClass('animation');\n misc.hide_sidebar_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function () {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function () {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n }\n\n isMobileMenu() {\n if ($(window).width() < 991) {\n return false;\n }\n return true;\n };\n\n sidebarOpen() {\n const toggleButton = this.toggleButton;\n const body = document.getElementsByTagName('body')[0];\n setTimeout(function () {\n toggleButton.classList.add('toggled');\n }, 500);\n body.classList.add('nav-open');\n\n this.sidebarVisible = true;\n };\n\n sidebarClose() {\n const body = document.getElementsByTagName('body')[0];\n this.toggleButton.classList.remove('toggled');\n this.sidebarVisible = false;\n body.classList.remove('nav-open');\n };\n\n sidebarToggle() {\n if (this.sidebarVisible === false) {\n this.sidebarOpen();\n } else {\n this.sidebarClose();\n }\n };\n\n getTitle() {\n return 'Cursos';\n }\n\n getPath() {\n return this.location.prepareExternalUrl(this.location.path());\n }\n\n goToPrev() {\n this.eventNavbar.emit('previous');\n }\n\n goToNext() {\n this.eventNavbar.emit('next');\n }\n\n markAsDone() {\n this.eventNavbar.emit('done');\n }\n\n back(): void {\n window.history.back();\n }\n\n getNotification() {\n this._NotificationService.getResources().subscribe((res:any) => {\n this.notification = res.data;\n this.total = res.total;\n })\n }\n\n goTo(item) {\n this._NotificationService.createResource({id: item.id}, {router: item.id}).subscribe( (res:any) => {\n if(item.type === 0) {\n this.router.navigate(['/training', item.id]);\n } else if(item.type === 2) {\n this.router.navigate(['/visualizador/mini-etapa', item.id]);\n } else if(item.type === 3) {\n this.router.navigate(['/visualizador/etapa-develop', item.id]);\n }\n })\n }\n\n getLoggedUser(): any {\n const session = JSON.parse(localStorage.getItem('loggedUser'));\n this.loggedUser = session.data;\n }\n onLogout() {\n localStorage.removeItem('loggedUser');\n localStorage.removeItem('token');\n localStorage.removeItem('tokenLogin');\n this.router.navigate(['/active-directory']);\n this.http.get('http://intranet.bioritmo.com.br/sign_out?app=asap').subscribe(response => {\n console.log('Logout', response);\n });\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class MiniTrailCommentService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'comment/video')\n }\n\n}\n","import { Component, OnInit, Input, EventEmitter, Output, ViewChild, OnChanges, SimpleChanges } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { MatDialog } from '@angular/material/dialog';\nimport { ModalStarRatingComponent } from '../../modal-rating/modal-rating.component';\nimport { SafeUrlPipe } from '../../../@core/pipes/safe-url.pipe';\nimport { VimeoService } from '../../../@core/services/vimeo.service';\nimport { MiniTrailCommentService } from '../../../@core/services/minicurso/minicurso-comments.service';\nimport { AmbienteVirtualService } from '../../../@core/services/ambiente-virtual.service';\nimport { VideoItemComponent, ImageItemComponent, PdfItemComponent, ExerciseComponent, MultiChoiceComponent } from '../../../@core/models/item-component';\nimport { Global } from 'asap-crud';\n\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-mini-viewer',\n templateUrl: './mini-viewer.component.html',\n styleUrls: ['../scss/styles.component.scss'],\n providers: [ VimeoService, MiniTrailCommentService, SafeUrlPipe ]\n})\nexport class MiniViewerComponent implements OnInit, OnChanges {\n\n @Input() module: any;\n @Input() step: any;\n @Input() id;\n @Input() points;\n @Output() eventRefreshSideBar = new EventEmitter<any>();\n @Output() eventNavbar = new EventEmitter<any>();\n\n @ViewChild('conclusion',{static:false}) conclusion: any;\n\n componentArray: Array<any>;\n loader: boolean;\n form: FormGroup;\n comment: any[];\n commentArray: any;\n loggedUser: any;\n\n constructor(\n private _ambienteVirtualService: AmbienteVirtualService,\n private _sanitizer: DomSanitizer,\n private _vimeoService: VimeoService,\n private formBuilder: FormBuilder,\n private _CommentsService: MiniTrailCommentService,\n public dialog: MatDialog,\n public global: Global\n ) {\n this.form = this.formBuilder.group({\n comments: ['', Validators.required]\n })\n }\n\n ngOnInit() {\n\n const lu = JSON.parse(localStorage.getItem('loggedUser'));\n this.loggedUser = lu.data;\n\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.step) {\n this.getContent(this.step);\n }\n if (changes.id) {\n console.log(\"[MiniViewerComponent] - Change ID:\",changes.id);\n }\n }\n\n postComment() {\n const form = this.form.value;\n this._CommentsService.createResource(form, {router: this.step})\n .subscribe((res:any) => {\n this.commentArray.unshift(res.data);\n this.form.reset();\n });\n }\n\n onDelete(comm) {\n\n this.global.swal({\n title: 'Você quer apagar esse comentário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n const index = this.commentArray.indexOf(comm);\n this.commentArray.splice(index, 1);\n\n this._CommentsService.deleteResource(comm.id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n }\n\n private sanitizer(url: string, type: string): SafeResourceUrl {\n\n let uri;\n\n if (!url) {\n return null;\n }\n\n if (type === 'youtube') {\n const code = this.getYoutubeID(url);\n uri = 'https://www.youtube.com/embed/' + code + '?rel=0&showinfo=0';\n }\n\n if (type === 'vimeo') {\n const code = this.getVimeoID(url);\n uri = 'https://player.vimeo.com/video/' + code;\n }\n\n if (type === 'file') {\n uri = url;\n }\n\n if (type === 'stream') {\n uri = url;\n }\n\n if (type === 'image') {\n uri = url;\n }\n\n return this._sanitizer.bypassSecurityTrustResourceUrl(uri);\n }\n\n getYoutubeID(url: string): string {\n const regExp = /^.*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?([^#\\&\\?]*).*/;\n const match = url.match(regExp);\n return (match && match[7].length === 11) ? match[7] : '';\n }\n\n getVimeoID(url: string): string {\n // tslint:disable-next-line:max-line-length\n const regExp = /https?:\\/\\/(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)?|groups\\/([^\\/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|video\\/|)(\\d+)(?:$|\\/|\\?)/;\n const match = url.match(regExp);\n return (match && match[3]) ? match[3] : '';\n }\n\n getContent(step: number) {\n console.log('GetContent ->', step);\n this.loader = true;\n this._ambienteVirtualService.getContent(step)\n .subscribe((res:any) => {\n const data = res.data[0].value;\n this.commentArray = res.data[0].comments.data.reverse();\n\n if (res['data'][0].value) {\n const itensJson = res['data'][0].value;\n\n this.componentArray = [];\n\n for (const item of itensJson) {\n if (item.type === 'video') {\n const videoComponent = new VideoItemComponent(\n item.source,\n item.source_path,\n this.sanitizer(item.source_path, item.source),\n item.title,\n item.button,\n item.mainButton,\n item.showVideoControl,\n item.allowNext\n );\n this.componentArray.push(videoComponent);\n }\n if (item.type === 'text') {\n this.componentArray.push(item);\n }\n if (item.type === 'image') {\n const imageComponent = new ImageItemComponent(item.url, item.button);\n imageComponent.title = item.title;\n imageComponent.titleSize = (item.titleSize) ? item.titleSize : 16;\n const mainButtonDefault = { color: '#FFFFFF', background: '#333333', text: 'Próximo' };\n imageComponent.mainButton = (item.mainButton) ? item.mainButton : mainButtonDefault;\n this.componentArray.push(imageComponent);\n }\n if (item.type === 'pdf') {\n const pdfComponent = new PdfItemComponent(item.url, this.sanitizer(item.url + '&output=embed', 'file'), item.title, item.button, item.subTitle);\n pdfComponent.showAccept = item.showAccept;\n pdfComponent.acceptText = item.acceptText;\n pdfComponent.subTitle = item.subTitle;\n this.componentArray.push(pdfComponent);\n }\n if (item.type === 'exercise') {\n const exerciseComponent = new ExerciseComponent(item.exercise);\n this.componentArray.push(exerciseComponent);\n }\n if (item.type === 'multi-choice') {\n let multiChoiceComponent = new MultiChoiceComponent();\n multiChoiceComponent = item;\n\n if (item.media) {\n multiChoiceComponent.media = item.media;\n multiChoiceComponent.link = this.sanitizer(item.url, item.media.toLowerCase());\n }\n\n this.componentArray.push(multiChoiceComponent);\n }\n if (item.type === 'intro') {\n this.componentArray.push(item);\n }\n if (item.type === 'conclusion') {\n this.componentArray.push(item);\n }\n if (item.type === 'challenge') {\n for (const m of item.medias) {\n if (m.type === 'youtube') {\n m.link = this.sanitizer(m.url, 'youtube');\n m.thumb = 'https://img.youtube.com/vi/' + this.getYoutubeID(m.url) + '/hqdefault.jpg';\n }\n if (m.type === 'vimeo') {\n m.link = this.sanitizer(m.url, 'vimeo');\n\n m.thumb = 'https://i.vimeocdn.com/video/default_295x166.webp';\n this._vimeoService.getThumb(m.url).then(response => {\n m.thumb = response;\n });\n }\n }\n\n this.componentArray.push(item);\n }\n\n if (item.type === 'correct-incorrect') {\n this.componentArray.push(item);\n }\n if (item.type === 'multiple-questions') {\n this.componentArray.push(item);\n }\n if (item.type === 'table') {\n this.componentArray.push(item);\n }\n\n if (item.type === 'star-point') {\n item.points = this.points;\n this.componentArray.push(item);\n }\n if (item.type === 'download') {\n this.componentArray.push(item);\n }\n if (item.type === 'upload') {\n this.componentArray.push(item);\n }\n if (item.type === 'rating') {\n this.componentArray.push(item);\n }\n\n if (item.type === 'forum') {\n console.log(item);\n this.componentArray.push(item);\n }\n\n }\n\n }\n\n this.loader = false;\n }, err => {\n console.log(err);\n });\n }\n\n private notificate(): any {\n this.global.swal({\n title: 'Erro',\n text: 'Erro ao carregar conteúdo. Recarregue sua página.',\n type: 'warning',\n confirmButtonClass: 'btn btn-success',\n });\n }\n\n goToAnchor(anchor: string) {\n const $div = $('#' + anchor);\n const top = $div.offset().top + 48;\n\n $('html, body').animate({ scrollTop: top }, 1000);\n }\n\n showButton(item: any) {\n return (\n item.button &&\n item.button !== '' &&\n item.type !== 'intro' &&\n item.type !== 'conclusion' &&\n item.type !== 'challenge'\n );\n }\n\n emitEvent(event: string) {\n this.eventNavbar.emit(event);\n this.loader = true;\n }\n\n ratingEvent() {\n const dialogRef = this.dialog.open(ModalStarRatingComponent, {\n width: '380px',\n disableClose: true,\n data: {id:this.id, owner:this}\n });\n\n dialogRef.afterClosed().subscribe(result => {\n this.eventNavbar.emit('next');\n });\n }\n}\n","import {Component, Inject} from '@angular/core';\nimport {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog';\n\n\n@Component({\n selector: 'banner-modal-component',\n templateUrl: 'mini-banner-modal.html',\n})\nexport class MiniModalTrilhaBanner {\n\n constructor(\n public dialogRef: MatDialogRef<MiniModalTrilhaBanner>,\n @Inject(MAT_DIALOG_DATA) public data: any) { }\n\n onNoClick(): void {\n this.dialogRef.close();\n }\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-mini-slider',\n templateUrl: 'slider.component.html',\n styleUrls: ['../scss/styles.component.scss'],\n})\n\nexport class MiniSliderComponent implements OnInit {\n\n @Input() data: any;\n @Input() current: any;\n\n indexes: any;\n\n // ASAP\n @Output()\n public eventNavbar = new EventEmitter<any>();\n\n public setIndexes(data, current) {\n this.indexes = {\n current: data.indexOf(current) + 1,\n total: data.length\n }\n }\n\n ngOnInit() {\n this.setIndexes(this.data, this.current);\n console.log(this.indexes.current)\n }\n\n goToPrev() {\n this.eventNavbar.emit('previous');\n }\n\n goToNext() {\n this.eventNavbar.emit('next');\n }\n\n markAsDone() {\n this.eventNavbar.emit('done');\n }\n\n back(): void {\n window.history.back();\n }\n}\n","import { Component, Inject, Input, Output, EventEmitter, OnInit } from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\n@Component({\n\tselector: 'app-mini-visualizador-modal-rating-star',\n\ttemplateUrl: './star-component.html',\n styleUrls: ['../modal-rating.component.css']\n})\n\nexport class StarRatingComponent implements OnInit {\n\t@Input() score;\n\t@Input() maxScore = 5;\n\t@Input() forDisplay = false;\n\t@Output() rateChanged = new EventEmitter();\n \n textNivel;\n range = [];\n marked = -1;\n\n\tconstructor( private translate: TranslateService ) { }\n\n\tngOnInit() {\n for (var i = 0; i < this.maxScore; i++) {\n this.range.push(i);\n }\n }\n \n public mark = (index) => {\n this.marked = this.marked == index ? index - 1 : index;\n this.score = this.marked + 1;\n console.log(this.score)\n this.rateChanged.next(this.score);\n switch (this.score) {\n case 1:\n return this.textNivel = this.translate.instant('Hated')\n case 2:\n return this.textNivel = this.translate.instant('DidNotLike')\n case 3:\n return this.textNivel = this.translate.instant('Reasonable')\n case 4:\n return this.textNivel = this.translate.instant('LikedIt')\n case 5:\n return this.textNivel = this.translate.instant('Incredible')\n default:\n return this.textNivel = ''\n }\n }\n\n public isMarked = (index) => {\n if (!this.forDisplay) {\n if (index <= this.marked) {\n return 'selected-start';\n }\n else {\n return 'no-selected-start';\n }\n }\n else {\n if (this.score >= index + 1) {\n return 'selected-start';\n }\n else if (this.score > index && this.score < index + 1) {\n return 'no-selected-start';\n }\n else {\n return 'no-selected-start';\n }\n }\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class CommentsService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'comment/full')\n }\n\n}","import { Component, Input, OnInit } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { CommentsService } from '../../../@core/services/comments/comments.service';\nimport { Global } from 'asap-crud';\n\ndeclare var swal: any;\n\n@Component({\n selector: 'app-modules-visualizar-mini-curso-comments',\n templateUrl: './comment.component.html',\n styleUrls: ['./comment.component.css', '../scss/styles.component.scss'],\n providers: [ CommentsService ]\n})\nexport class CommentsComponent implements OnInit {\n\n @Input() id;\n\n comment: any;\n onPosting: boolean;\n comments:any = [];\n\n constructor(\n private _CommentsService: CommentsService,\n private global: Global\n\n ) {\n this.initForm();\n }\n\n ngOnInit() {\n this.getComments(this.id);\n }\n\n initForm() {\n \n }\n\n getComments(id) {\n this._CommentsService.getResource(id)\n .subscribe((res:any) => {\n this.comments = res.data;\n })\n }\n\n postComment() {\n this.onPosting = true;\n let data:any = {}\n data.comment = this.comment;\n data.type = 'desenvolvimento';\n console.log('Form ->', data);\n this._CommentsService.createResource(data, {router: this.id})\n .subscribe((response:any) => {\n this.comment = ''\n this.onPosting = false;\n this.comments.unshift(response.data);\n console.log('response -<', response);\n })\n }\n\n onRemove(item) {\n\n this.global.swal({\n title: 'Você quer apagar esse comentário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n const index = this.comments.indexOf(item);\n this.comments.splice(index, 1);\n\n this._CommentsService.deleteResource(item.id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n\n\n\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class ForumTrilhaService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'forum/curso')\n }\n\n}","import { Component, OnInit, Input, OnChanges, SimpleChanges } from '@angular/core';\nimport { Router, ActivatedRoute, Params } from '@angular/router';\nimport { FormGroup, FormBuilder } from '@angular/forms';\n\nimport * as moment from 'moment';\nimport { ForumService } from '../../../@core/services/forum/forum.service';\nimport { ForumResponseService } from '../../../@core/services/forum/response.service';\nimport { ForumVoteService } from '../../../@core/services/forum/forum-vote.service';\nimport { ForumTrilhaService } from '../../../@core/services/forum/forum-trilha.service';\n\ndeclare var $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-modules-visualizar-mini-curso-forum',\n templateUrl: './question.component.html',\n styleUrls: ['./question.component.scss'],\n providers: [ForumService, ForumResponseService, ForumVoteService, ForumTrilhaService]\n})\nexport class VisualizarForumComponent implements OnInit, OnChanges {\n\n @Input() trilha: number;\n @Input() module;\n @Input() etapa_id;\n @Input() step;\n id: number;\n public forums;\n\n form: FormGroup;\n formUpdate: FormGroup;\n loading = true;\n response: any;\n forum: any;\n loggedUser: any;\n pagination: any;\n\n score = 0;\n displayRatingScore = 0;\n\n constructor(\n private formBuilder: FormBuilder,\n private _ForumService: ForumService,\n private _ForumResponseService: ForumResponseService,\n private _ForumVoteService: ForumVoteService,\n private _forumTrilhaService: ForumTrilhaService\n ) {\n moment.locale('pt-br');\n this.initForm();\n }\n\n ngOnChanges(changes: SimpleChanges) {\n console.log('CHANGES =>>>>>', changes);\n if (changes.module) {\n this.getUserLogged();\n this.getForum(this.module);\n }\n }\n\n ngOnInit() {\n this.getForums(this.trilha);\n this.getUserLogged();\n }\n\n getUserLogged(): any {\n const loggedUser = JSON.parse(localStorage.getItem('loggedUser'));\n this.loggedUser = loggedUser.data;\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n id: [''],\n resposta: ['']\n })\n }\n\n updatForm() {\n this.formUpdate = this.formBuilder.group({\n id: [''],\n resposta: ['']\n })\n }\n\n getForums(id) {\n this._forumTrilhaService.getResource(id).subscribe((res: any) => {\n if (res.data.length > 0) {\n this.forums = res.data;\n this.forum = res.data.find((item: any) => item.etapa_id == this.etapa_id);\n\n this.id = this.forum.id;\n this.getResponse(this.forum.id);\n this.loading = false;\n } else {\n this.loading = false;\n }\n })\n }\n\n public getForum(id) {\n this.loading = true;\n this.forum = this.forums.find((item: any) => item.etapa_id == this.module);\n if (this.forum) {\n this.getResponse(this.forum.id);\n }\n }\n\n getResponse(id) {\n this.loading = true;\n this.response = [];\n this._ForumResponseService.getResource(id).subscribe((res: any) => {\n this.response = res.data;\n this.loading = false;\n this.pagination = res.meta.pagination\n this.updatForm();\n this.loading = false;\n })\n }\n\n save() {\n const form = this.form.value;\n this._ForumService.createResource(form, { router: this.id }).subscribe((res: any) => {\n this.getResponse(this.id);\n this.ResetPost();\n })\n }\n\n ResetPost() {\n this.form.reset();\n $('#answer').collapse('hide');\n }\n\n onRemove(forum) {\n swal({\n title: 'Você quer remover esta pergunta?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n this._ForumResponseService.deleteResource(forum.id).subscribe((res: any) => {\n this.getResponse(this.id);\n })\n },\n (cancel) => { }\n );\n }\n\n nextPage(event) {\n let number = event + 1\n this._ForumResponseService.getResource(this.id, { query: 'page=' + number }).subscribe(\n (res: any) => {\n console.log('EOEWE', res.data);\n\n for (let item of res.data) {\n this.response.push(item);\n }\n\n this.pagination = res.meta.pagination;\n }\n )\n }\n\n onClose(forum) {\n this.formUpdate.reset();\n return forum.disable = false;\n }\n\n onEdit(forum) {\n this.formUpdate.setValue({ id: forum.id, resposta: forum.resposta })\n return forum.disable = true;\n }\n\n updateForm() {\n const form = this.formUpdate.value;\n this._ForumService.updateResource(form).subscribe((res: any) => {\n this.getResponse(this.id);\n this.ResetPost();\n })\n }\n\n vote(item, number) {\n console.log('VOTE ->', item, number);\n if (number == 1) {\n item.qtd_like = item.qtd_like + 1;\n item.voto = 1;\n }\n else if (number == 2) {\n item.qtd_unlike = item.qtd_unlike + 1;\n item.voto = 2;\n }\n\n const form = { pontos: number }\n this._ForumVoteService.createResource(form, { router: item.id }).subscribe((res: any) => {\n this.getResponse(this.id);\n })\n }\n\n getHidden(item) {\n return item.hidden = !item.hidden;\n }\n}\n","import { HttpHeaders } from '@angular/common/http';\n\nexport class LibraryHelper {\n\n static getHeaders(): any {\n const token = localStorage.getItem('token');\n const headerOptions = {\n 'Authorization': token,\n 'Accept': 'application/json'\n };\n return {headers: new HttpHeaders(headerOptions)};\n }\n\n static removeFromArrayById(data,id):any {\n let result:any = data.filter((item:any) => {\n return (item.id !== id)\n });\n return result;\n }\n\n static inArray(needle, haystack) {\n const result = this.arraySearch(needle, haystack);\n if (result !== false) {\n return true;\n }\n return result;\n }\n\n static arraySearch(needle, haystack) {\n for (const i in haystack) {\n if (haystack[i] === needle) {\n return i;\n }\n }\n return false;\n }\n\n static arrayColumn(inputArray, columnKey, indexKey = null) {\n \n function isArray(inputValue) {\n return Object.prototype.toString.call(inputValue) === '[object Array]';\n }\n\n // If input array is an object instead of an array,\n // convert it to an array.\n if (!isArray(inputArray)) {\n const newArray = [];\n for (const key in inputArray) {\n if (!inputArray.hasOwnProperty(key)) {\n continue;\n }\n newArray.push(inputArray[key]);\n }\n inputArray = newArray;\n }\n\n // Process the input array.\n const isReturnArray = (typeof indexKey === 'undefined' || indexKey === null);\n const outputArray = [];\n const outputObject = {};\n\n for (let inputIndex = 0; inputIndex < inputArray.length; inputIndex++) {\n const inputElement = inputArray[inputIndex];\n\n let outputElement;\n if (columnKey === null) {\n outputElement = inputElement;\n } \n else {\n if (isArray(inputElement)) {\n if (columnKey < 0 || columnKey >= inputElement.length) {\n continue;\n }\n } else {\n if (!inputElement.hasOwnProperty(columnKey)) {\n continue;\n }\n }\n outputElement = inputElement[columnKey];\n }\n\n if (isReturnArray) {\n outputArray.push(outputElement);\n } \n else {\n outputObject[inputElement[indexKey]] = outputElement;\n }\n }\n return (isReturnArray ? outputArray : outputObject);\n }\n\n static getClient(clientId: number) {\n const arrClient = [\n {\n id: 3,\n name: 'Asta',\n url: '/asta/login',\n urlLogout: '/asta/admin'\n }, {\n id: 6,\n name: 'Fitness Link',\n url: '/fitness-link/login',\n urlLogout: '/fitness-link/admin'\n }, {\n id: 8,\n name: 'Smart Fit',\n url: '/smartfit/login',\n urlLogout: '/smartfit/admin'\n }, {\n id: 9,\n name: 'Action Aid',\n url: '/action-aid/login',\n urlLogout: '/action-aid/admin'\n }, {\n id: 15,\n name: 'Lele',\n url: '/lele/login',\n urlLogout: '/lele/admin'\n },{\n id: 16,\n name: 'Admin',\n url: '/auth/login',\n urlLogout: '/auth/login'\n },{\n id: 18,\n name: 'Nova Terra',\n url: '/nova-terra/login',\n urlLogout: '/nova-terra/admin'\n }\n ];\n return arrClient.filter(item => item.id === clientId);\n }\n\n}\n","import {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport {ModelsInterface} from '../interfaces/models.interface';\nimport {LibraryHelper} from '../helpers/library.helper';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class Trail implements ModelsInterface {\n public id: string;\n public name: string;\n public date: string;\n public titulo?: string;\n public descricao?: string;\n public arquivo?: string;\n public pasta_id?: number;\n public role: string;\n public tag: string;\n\n constructor(private http: HttpClient, public global: Global) {\n }\n\n populate(data: any): Trail {\n const trail = new Trail(this.http,this.global);\n trail.id = data.id;\n trail.name = data.name;\n trail.date = data.date;\n trail.role = data.role;\n trail.tag = data.tag;\n return trail;\n }\n\n findHome(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/home', LibraryHelper.getHeaders());\n }\n\n findAll(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/admin/trail/folder', LibraryHelper.getHeaders());\n }\n\n findAllClient(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha', LibraryHelper.getHeaders());\n }\n\n findAllAvatar(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar', LibraryHelper.getHeaders());\n }\n\n findAvatar(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar/' + id , LibraryHelper.getHeaders());\n }\n\n findAvatarScore(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar/pontos/gerais/' + id , LibraryHelper.getHeaders());\n }\n\n findTrainingScore(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar/pontos/modulos/gerais/' + id , LibraryHelper.getHeaders());\n }\n\n avatarUnlock(id: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/trilha/avatar/unlock/' + id , {}, LibraryHelper.getHeaders());\n }\n\n aceptChallenge(id: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/trilha/avatar/desafio/' + id , {}, LibraryHelper.getHeaders());\n }\n\n challengeCloseModal(id: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/trilha/avatar/modal/' + id , {}, LibraryHelper.getHeaders());\n }\n\n getChallenge(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar/desafio/' + id, LibraryHelper.getHeaders());\n }\n\n getChallengeModules(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar/desafio/modulos/' + id, LibraryHelper.getHeaders());\n }\n\n aceptChallengeModules(id: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/trilha/avatar/desafio/modulos/' + id , {}, LibraryHelper.getHeaders());\n }\n\n getVideo(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/videos/' + id, LibraryHelper.getHeaders());\n }\n\n getAllVideo(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/videos/' + id, LibraryHelper.getHeaders());\n }\n\n findLevels(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar/niveis/' + id , LibraryHelper.getHeaders());\n }\n\n searchLevels(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar/busca/' + id , LibraryHelper.getHeaders());\n }\n\n findOneBy(data: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/admin/trail/item/' + data.id + '/edit', LibraryHelper.getHeaders());\n }\n\n findBy(id: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/admin/trail/item/' + id + '/edit', LibraryHelper.getHeaders());\n }\n\n filterBy(data: any[]): Observable<any> {\n return this.http.get(this.global.apiURL()\n + '/api/v2/admin/trail/config/filter/group?nome=&cpf=&sexo=&localidade=&uf=&unidades=&cargos=&unidade='\n + data[1] + '&cargo=' + data[0], LibraryHelper.getHeaders());\n }\n\n update(trail: Trail): Observable<any> {\n return this.http.put(this.global.apiURL() + '/api/v2/admin/trail/item/' + trail.id + '/update', trail, LibraryHelper.getHeaders());\n }\n\n persist(trail: Trail): Observable<any> {\n const body = {\n nome_pasta: trail.name,\n role: trail.role\n };\n\n if (trail.id) {\n return this.http.put(this.global.apiURL() + '/api/v2/admin/trail/folder/' + trail.id + '/update', body, LibraryHelper.getHeaders());\n } else {\n return this.http.post(this.global.apiURL() + '/api/v2/admin/trail/folder/post', body, LibraryHelper.getHeaders());\n }\n }\n\n saveData(trail: Trail): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/admin/trail/item/post', trail, LibraryHelper.getHeaders());\n }\n\n delete(id: number): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/admin/trail/folder/' + id + '/delete';\n return this.http.delete(url, LibraryHelper.getHeaders());\n }\n\n setStatus(data: {status: number}, id: number): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/client/trilha/published/' + id;\n return this.http.post(url, data, LibraryHelper.getHeaders());\n }\n\n}\n","import {Injectable} from '@angular/core';\nimport {ServicesInterface} from '../interfaces/services.interface';\nimport { Observable } from 'rxjs';\nimport {Trail} from '../models/trail';\nimport {HttpClient} from '@angular/common/http';\nimport {LibraryHelper} from '../helpers/library.helper';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class TrailService implements ServicesInterface {\n\n protected arrayModel: Trail[] = [];\n\n constructor(protected _trailModel: Trail, private http: HttpClient, public global: Global) {\n }\n\n collection(): Promise<any> {\n const _this = this;\n this.arrayModel = [];\n return new Promise<any>((resolve, reject) => {\n _this.findAll().subscribe((res:any) => {\n for (const trail of res.data) {\n _this.arrayModel.push(_this._trailModel.populate({\n id: trail.id,\n name: trail.nome_pasta,\n role: trail.role,\n date: trail.created_at.date,\n tag: trail.tag,\n }));\n }\n resolve(_this.arrayModel);\n }, err => {\n reject(err);\n })\n })\n }\n\n findHome(): Observable<any> {\n return this._trailModel.findHome();\n }\n\n findAll(): Observable<any> {\n return this._trailModel.findAll();\n }\n\n findAllClient(): Observable<any> {\n return this._trailModel.findAllClient();\n }\n\n findAllAvatar(): Observable<any> {\n return this._trailModel.findAllAvatar();\n }\n\n findAvatar(data: any): Observable<any> {\n return this._trailModel.findAvatar(data);\n }\n\n avatarUnlock(data: any): Observable<any> {\n return this._trailModel.avatarUnlock(data);\n }\n\n findLevels(data: any): Observable<any> {\n return this._trailModel.findLevels(data);\n }\n\n findAvatarScore(data: any): Observable<any> {\n return this._trailModel.findAvatarScore(data);\n }\n\n findTrainingScore(data: any): Observable<any> {\n return this._trailModel.findTrainingScore(data);\n }\n\n aceptChallenge(data: any): Observable<any> {\n return this._trailModel.aceptChallenge(data);\n }\n\n getChallenge(data: any): Observable<any> {\n return this._trailModel.getChallenge(data);\n }\n\n aceptChallengeModules(data: any): Observable<any> {\n return this._trailModel.aceptChallengeModules(data);\n }\n\n getChallengeModules(data: any): Observable<any> {\n return this._trailModel.getChallengeModules(data);\n }\n\n getVideo(data: any): Observable<any> {\n return this._trailModel.getVideo(data);\n }\n\n getAllVideo(data: any): Observable<any> {\n return this._trailModel.getAllVideo(data);\n }\n\n challengeCloseModal(data: any): Observable<any> {\n return this._trailModel.challengeCloseModal(data);\n }\n\n searchLevels(data: any): Observable<any> {\n return this._trailModel.searchLevels(data);\n }\n\n findOneBy(data: any): Observable<any> {\n return undefined;\n }\n\n findBy(id: number): Promise<any> {\n return new Promise<any>((resolve, reject) => {\n this._trailModel.findBy(id)\n .subscribe((res:any) => {\n resolve(res);\n }, err => {\n reject(err);\n })\n })\n }\n\n filterBy(data: any[]): Observable<any> {\n return this._trailModel.filterBy(data);\n }\n\n persist(trail: Trail): Observable<any> {\n return this._trailModel.persist(trail);\n }\n\n delete(id: number): Observable<any> {\n return this._trailModel.delete(id);\n }\n\n setStatus(status: number, id: number): Observable<any> {\n return this._trailModel.setStatus({status: status}, id);\n }\n\n saveData(trail: Trail): Observable<any> {\n return this._trailModel.saveData(trail);\n }\n\n update(trail: Trail): Observable<any> {\n return this._trailModel.update(trail);\n }\n\n persistTrailConfiguratorByGroupFilter(data: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/admin/grupo/has/trail/filter', data, LibraryHelper.getHeaders());\n }\n\n persistTrailConfiguratorByFilterOnly(data: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/admin/trail/has/filter', data, LibraryHelper.getHeaders());\n }\n\n persistTrailConfiguratorByUserGroup(data: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/admin/trail/config/users', data, LibraryHelper.getHeaders());\n }\n\n persistTrailConfiguratorByUserOnly(data: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/admin/trail/has/user', data, LibraryHelper.getHeaders());\n }\n\n folderUserShared(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/admin/shared/folder/admin', LibraryHelper.getHeaders());\n }\n\n}\n","import { Component, Input, OnInit, OnChanges, SimpleChanges, EventEmitter, Output } from '@angular/core';\nimport { TrailService } from '../../@core/services/trail.service';\nimport { Trail } from '../../@core/models/trail';\n\n@Component({\n selector: 'app-points',\n templateUrl: './points.component.html',\n styleUrls: ['../../visualizador/mini-curso-visualizador/mini-curso-visualizador.component.scss','./points.component.css'],\n providers: [ TrailService, Trail ]\n})\n\nexport class PointsComponent implements OnInit, OnChanges {\n\n @Input() idTrail;\n @Input() points: number;\n @Input() textHelper: string;\n @Output() title: EventEmitter<any> = new EventEmitter\n public score: any;\n public progress: any;\n\n constructor(\n private _trailService: TrailService,\n ) { }\n\n ngOnInit() {\n this.score = this.points;\n if (this.idTrail) {\n this.findScore(this.idTrail);\n }\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if(changes.points) {\n this.score = changes.points.currentValue;\n }\n }\n\n findScore(id): void {\n this._trailService.findTrainingScore(id)\n .subscribe(\n (res:any) => {\n this.title.emit(res)\n this.score = res.data.pontos;\n this.progress = res.data.progresso;\n }\n )\n }\n\n}\n","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-exercicios',\n templateUrl: './exercicios.component.html',\n styleUrls: ['./exercicios.component.css']\n})\n\nexport class ExercisesComponent implements OnInit {\n\n ngOnInit() {\n }\n\n}\n","import {Component, OnInit, ElementRef, ViewChild} from '@angular/core';\n\ndeclare const $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-precificacao-visualizador',\n templateUrl: './precificacao-visualizador.component.html',\n styleUrls: ['./precificacao-visualizador.component.css'],\n})\n\nexport class PrecificacaoVisualizadorComponent implements OnInit {\n\n ngOnInit(){\n \n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class ProdutosService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'produtos') \n }\n\n}\n","import { Component } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { ProdutosService } from '../../../../@core/services/precifica/produtos/produtos.service';\n\n@Component({\n selector: 'app-precificacao-produtos',\n templateUrl: './produtos.component.html',\n styleUrls: ['../../precificacao-visualizador.component.css','./produtos.component.css'],\n providers: [ ProdutosService ]\n})\n\nexport class ProdutosComponent {\n\n public produtos;\n public pedido;\n\n constructor(\n private route: ActivatedRoute, \n private router: Router,\n public _ProdutosService: ProdutosService) {}\n \n getProducts() {\n this._ProdutosService.getResources().subscribe(\n (data:any) => { \n this.produtos = data.data\n console.log(data)\n } \n );\n }\n\n ngOnInit(){\n this.getProducts();\n }\n\n novo(){\n this.router.navigate(['/visualizador/precificacao/novo']);\n }\n\n visualizar(id){\n console.log(id)\n this.router.navigate(['/visualizador/precificacao/visualizar/'+id]);\n }\n\n deletar(id){\n this._ProdutosService.deleteResource(id).subscribe(\n (data:any) => { \n this.getProducts();\n return true;\n } \n );\n }\n\n openResumo(id) {\n\n }\n\n delete(id) {\n\n }\n\n}\n","import { Component, ElementRef, ViewChild } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { ProdutosService } from '../../../../../@core/services/precifica/produtos/produtos.service';\n\n@Component({\n selector: 'app-precificacao-produtos-novo',\n templateUrl: './novo-produto.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ ProdutosService ]\n})\n\nexport class NovoProdutoComponent {\n\n //variables\n form:FormGroup;\n private image;\n public file_input: string = 'Selecionar Imagem';\n public errors:string = \"\";\n\n @ViewChild('fileInput',{static:false}) fileInput: ElementRef;\n\n constructor(\n private formBuilder: FormBuilder, \n public _ProdutosService: ProdutosService) {\n this.initForm();\n }\n \n initForm() {\n let _dimensions = this.formBuilder.group({\n largura: [''],\n cumprimento: [''],\n peso: ['']\n })\n\n this.form = this.formBuilder.group({\n id: [''],\n name: [''],\n description: [''],\n foto: [this.image],\n type: [''],\n dimensions: _dimensions\n })\n }\n\n register(){\n const form = this.form.value\n this._ProdutosService.createResource(form).subscribe(\n (data:any) => {\n return true;\n },\n error => { \n this.errors = error.json().error; \n }\n );\n console.log('register')\n }\n\n onFileChange(event) {\n let reader:any = new FileReader();\n if(event.target.files && event.target.files.length > 0) {\n let file = event.target.files[0];\n reader.readAsDataURL(file);\n reader.onload = () => {\n this.file_input = file.name;\n //this.form.get('foto').setValue(reader.result.split(',')[1]);\n this.image = reader.result.split(',')[1];\n };\n }\n \n }\n}\n","import { Component, ViewChild, AfterViewInit } from '@angular/core';\n\n@Component({\n selector: 'app-precificacao-produtos-visualizar',\n templateUrl: './visualizar-produto.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css']\n})\n\nexport class VisualizarProdutoComponent {\n\n ngOnInit() {\n \n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class MaterialService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'material') \n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class MaoObraService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'mObra') \n }\n\n}\n","import { Component, ViewChild, AfterViewInit } from '@angular/core';\nimport { Router, ActivatedRoute, Params } from '@angular/router';\nimport { MaterialService } from '../../../../../../@core/services/precifica/material/material.service';\nimport { MaoObraService } from '../../../../../../@core/services/precifica/mao-obra/mao-obra.service';\n\n@Component({\n selector: 'app-precificacao-produtos-visualizar-resumo',\n templateUrl: './visualizar-resumo-produto.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css'],\n providers: [ MaterialService, MaoObraService ]\n})\n\nexport class VisualizarResumoProdutoComponent {\n\n id:any;\n materiais:any;\n mao_obras:any;\n\n constructor(\n private route: ActivatedRoute, \n private router: Router,\n private _MaterialService: MaterialService,\n private _MaoObraService: MaoObraService\n ) {\n\n }\n\n\n ngOnInit() {\n\n this.route.params.forEach((params: Params) => {\n this.getMaterial(params['id']);\n this.getMaoObra(params['id'])\n });\n }\n\n getMaterial(id){\n this._MaterialService.getResource(id).subscribe(\n (res:any) => {\n this.materiais = res.Material.data;\n console.log(res)\n }\n )\n }\n\n getMaoObra(id){\n this._MaoObraService.getResource(id).subscribe(\n (res:any) => {\n this.mao_obras = res.MaoDeObra;\n console.log(res)\n }\n )\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class FornecedorService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'fornecedor') \n }\n\n}\n","import { Component, ViewChild, DoCheck, ElementRef } from '@angular/core';\nimport { Router, ActivatedRoute, Params } from '@angular/router';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { MaterialService } from '../../../../../../@core/services/precifica/material/material.service';\nimport { ProdutosService } from '../../../../../../@core/services/precifica/produtos/produtos.service';\nimport { FornecedorService } from '../../../../../../@core/services/precifica/fornecedor/fornecedor.service';\n\n@Component({\n selector: 'app-precificacao-produtos-visualizar-resumo',\n templateUrl: './visualizar-materiais-produto.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css'],\n providers: [ MaterialService, FornecedorService, ProdutosService ]\n})\n\nexport class VisualizarMateriaisProdutoComponent {\n\n //variables\n form:FormGroup;\n public produto_id;\n public produto = [{name: ''}];\n public materiais = [];\n public fornecedores;\n public total = { inter:\"0\", float:\"00\" };\n public errors;\n\n @ViewChild('qtdPecas',{static:false}) qtdPecas: ElementRef;\n @ViewChild('precoUn',{static:false}) precoUn: ElementRef;\n \n constructor(\n private formBuilder: FormBuilder,\n private route: ActivatedRoute, \n private router: Router,\n private _MaterialService: MaterialService,\n private _FornecedorService: FornecedorService,\n private _ProdutosService: ProdutosService) {\n this.initForm();\n }\n \n round(number:number, precision:number) {\n let factor = Math.pow(10, precision);\n let tempNumber = number * factor;\n let roundedTempNumber = Math.round(tempNumber);\n return roundedTempNumber / factor;\n };\n\n change(){\n let qtd = parseFloat(this.qtdPecas.nativeElement.value);\n let preco = parseFloat(this.precoUn.nativeElement.value);\n let total;\n console.log(qtd)\n qtd != undefined ? total = qtd / preco : total = preco\n let round = this.round(total, 2).toFixed(2).split('.');\n let result = {inter: round[0], float: round[1]}\n this.total = result\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n id: [''], \n produto_id: [''],\n fornecedor_id: [''],\n material: [''],\n unidade: [''],\n preco_unidade: [''],\n qtd_pecas: [''],\n insumo_pecas: ['']\n })\n }\n\n ngOnInit() {\n this.route.parent.params.forEach((params: Params) => {\n this.produto_id = params['id'];\n this.getProduto(this.produto_id);\n this.getMateriais(this.produto_id);\n this.getFornecedores();\n });\n }\n\n getProduto(id){\n this._ProdutosService.getResource(id).subscribe(\n (data:any) => {\n this.produto = data.data[0]\n console.log(data.data)\n }\n )\n }\n\n getMateriais(id){\n this._MaterialService.getResource(id).subscribe( (data:any) => {\n console.log(data)\n this.materiais = data.Material.data\n })\n }\n\n getFornecedores(){\n this._FornecedorService.getResources().subscribe( (data:any) => {\n this.fornecedores = data.data\n })\n }\n\n register() {\n let fornecedor = this.form.controls['fornecedor_id'].value;\n if(fornecedor == 0){\n this.form.get('fornecedor_id').patchValue(null)\n }\n \n this.form.get('produto_id').patchValue(this.produto_id)\n const form = this.form.value\n console.log(form)\n this._MaterialService.createResource(form, {router: this.produto_id }).subscribe(\n (data:any) => {\n this.getMateriais(this.produto_id);\n this.form.reset();\n this.total = { inter:\"0\", float:\"00\" };\n return true;\n },\n error => { \n this.errors = error.json().error; \n }\n );\n }\n\n deletar(material){\n this._MaterialService.deleteResource(material).subscribe(\n (data:any) => {\n this.getMateriais(this.produto_id);\n return true;\n }\n )\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class ArtesanService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'artisan') \n }\n\n}\n","import { Component, ViewChild, AfterViewInit, Inject } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { MaoObraService } from '../../../../../../../@core/services/precifica/mao-obra/mao-obra.service';\nimport { ArtesanService } from '../../../../../../../@core/services/precifica/artesan/artesan.service';\nimport { ProdutosService } from '../../../../../../../@core/services/precifica/produtos/produtos.service';\n\n@Component({\n selector: 'app-precificacao-produtos-visualizar-modal',\n templateUrl: './modal.mao-de-obra.component.html',\n styleUrls: ['../../../../../precificacao-visualizador.component.css'],\n providers: [ MaoObraService, ArtesanService, ProdutosService ]\n})\n\nexport class ModalMaoObraProdutoComponent {\n\n //variables\n formProducao:FormGroup;\n formArtesa:FormGroup;\n formType:boolean = false;\n\n constructor(\n public dialogRef: MatDialogRef<ModalMaoObraProdutoComponent>,\n private formBuilder: FormBuilder,\n @Inject(MAT_DIALOG_DATA) public data: any,\n private _MaoObraService: MaoObraService,\n private _ArtesanService: ArtesanService,\n private _ProdutosService: ProdutosService) {\n this.initForm();\n }\n\n initForm() { \n this.formArtesa = this.formBuilder.group({\n price: [''],\n type: ['', Validators.required]\n })\n\n this.formProducao = this.formBuilder.group({\n service: [''],\n time: [''],\n type: ['', Validators.required]\n })\n } \n \n onNoClick(): void {\n this.dialogRef.close();\n }\n\n ngOnInit(){\n if(this.data.type == \"producao\"){\n this.formType = true;\n }else {\n this.formType = false;\n }\n }\n\n registerArt(){\n const form = this.formArtesa.value\n this._ArtesanService.createResource(form, {router: this.data.id }).subscribe(\n (data:any) => {\n this.dialogRef.close(this.formType);\n return true;\n }\n );\n }\n\n registerProd(){\n const form = this.formProducao.value\n this._MaoObraService.createResource(form, {router: this.data.id }).subscribe(\n (data:any) => {\n this.dialogRef.close(this.data.type);\n return true;\n }\n );\n }\n}\n","import { Component, ViewChild, AfterViewInit } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { Router, ActivatedRoute, Params } from '@angular/router';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { ModalMaoObraProdutoComponent } from './modal/modal.mao-de-obra.component';\nimport { MaoObraService } from '../../../../../../@core/services/precifica/mao-obra/mao-obra.service';\nimport { ArtesanService } from '../../../../../../@core/services/precifica/artesan/artesan.service';\nimport { ProdutosService } from '../../../../../../@core/services/precifica/produtos/produtos.service';\n\n@Component({\n selector: 'app-precificacao-produtos-visualizar-resumo',\n templateUrl: './visualizar-mao-obra-produto.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css'],\n providers: [ MaoObraService, ArtesanService, ProdutosService ]\n})\n\nexport class VisualizarMaoObraProdutoComponent {\n\n //variables\n form:FormGroup;\n produto_id:number;\n value: number;\n type: string;\n calcMobra: boolean = false;\n checkType: boolean;\n public produto:any = [{name: ''}];\n etapas:any;\n\n checking(value){\n this.type = value;\n }\n\n constructor(\n private route: ActivatedRoute, \n private router: Router,\n private formBuilder: FormBuilder, \n public dialog: MatDialog,\n private _MaoObraService: MaoObraService,\n private _ArtesanService: ArtesanService,\n private _ProdutosService: ProdutosService) {\n this.initForm();\n }\n\n openDialog(): void {\n let dialogRef = this.dialog.open(ModalMaoObraProdutoComponent, {\n width: '350px',\n data: { id: this.produto_id, type: this.type }\n });\n\n dialogRef.afterClosed().subscribe(result => {\n console.log('The dialog was closed');\n let results = result;\n console.log(results)\n if(results == \"producao\") {\n this.calcMobra = true;\n this.getMaoObra(this.produto_id)\n }else {\n this.router.navigate(['/visualizador/precificacao/visualizar/'+this.produto_id+'/calcular']);\n }\n });\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n id: [''],\n name: [''],\n checkbox: ['']\n })\n }\n \n ngOnInit() {\n this.route.parent.params.forEach((params: Params) => {\n this.produto_id = params['id'];\n this. getProduto(this.produto_id);\n });\n }\n\n getProduto(id){\n this._ProdutosService.getResource(id).subscribe(\n (data:any) => {\n this.produto = data.data[0]\n }\n )\n }\n\n getMaoObra(id){\n this._MaoObraService.getResource(id).subscribe((data:any) => {\n this.etapas = data.MaoDeObra.data;\n console.log(data)\n })\n }\n\n}\n","import { Component, ViewChild, AfterViewInit } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { Observable } from 'rxjs';\nimport { startWith, map } from 'rxjs/operators';\n\n\n@Component({\n selector: 'app-precificacao-produtos-visualizar-resumo',\n templateUrl: './visualizar-fornecedor-produto.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css']\n})\n\nexport class VisualizarFornecedorProdutoComponent {\n\n //variables\n form:FormGroup;\n supplierCtrl: FormControl;\n filteredSupplier: Observable<any[]>;\n\n constructor(private formBuilder: FormBuilder) {\n this.initForm();\n }\n\n initForm() {\n this.supplierCtrl = new FormControl();\n this.filteredSupplier = this.supplierCtrl.valueChanges\n .pipe(\n startWith(''),\n map(supplier => supplier ? this.filterStates(supplier) : this.supplier.slice())\n );\n\n this.form = this.formBuilder.group({\n id: [''],\n name: [''],\n email: [''],\n phone: [''],\n cep: [''],\n adress: ['']\n })\n }\n\n ngOnInit() {\n \n }\n\n register() {\n \n }\n\n supplier = [{ name: 'Fornecedor 1' },{ name: 'Fornecedor 2' },{ name: 'Fornecedor 3' }];\n\n\n filterStates(name: string) {\n return this.supplier.filter((data:any) =>\n data.name.toLowerCase().indexOf(name.toLowerCase()) === 0);\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class CalculadoraService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'calculadora') \n }\n\n}\n","import { Component, ViewChild, AfterViewInit } from '@angular/core';\nimport { Router, ActivatedRoute, Params } from '@angular/router';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { CalculadoraService } from '../../../../../../@core/services/precifica/calculadora/calculadora.service';\n\n@Component({\n selector: 'app-precificacao-produtos-visualizar-resumo',\n templateUrl: './visualizar-calcular-produto.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css'],\n providers: [ CalculadoraService ]\n})\n\nexport class VisualizarCalcularProdutoComponent {\n\n //variables\n form:FormGroup;\n calculated:boolean = false;\n produto_id:number;\n calcule:any = {\n Produto: {\n data: [\n {\n name: ''\n }\n ]\n },\n total_isumos: '',\n total_mao_de_obra: '',\n custo_total: '',\n lucro: '',\n preco_antes_imposto: '',\n impostos: '',\n venda_imposto: '',\n venda_minimo: '',\n referencia_lucro: {\n vinte_porcento: '',\n quarenta_porcento: '',\n sessenta_porcento: '',\n oitenta_porcento: '',\n cem_porcento: ''\n }\n }\n\n constructor(\n private formBuilder: FormBuilder,\n private route: ActivatedRoute, \n private router: Router,\n private _CalculadoraService: CalculadoraService) {\n this.initForm();\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n lucro: [''],\n impostos: ['']\n })\n }\n\n \n ngOnInit() {\n this.route.parent.params.forEach((params: Params) => {\n this.produto_id = params['id'];\n this.getCalcule(this.produto_id)\n });\n }\n\n getCalcule(id){\n this._CalculadoraService.getResource(id).subscribe(\n (data:any) => {\n this.calcule = data;\n }\n )\n }\n\n update(){\n const form = this.form.value\n this._CalculadoraService.updateResource(form, {router: this.produto_id }).subscribe(\n (data:any) => {\n this.calculated = true;\n return true;\n }\n )\n }\n}\n","import { Component } from '@angular/core';\nimport {Router, ActivatedRoute} from '@angular/router';\n\n@Component({\n selector: 'app-precificacao-pedidos',\n templateUrl: './pedidos.component.html',\n styleUrls: ['../../precificacao-visualizador.component.css']\n})\n\nexport class PedidosComponent {\n\n constructor(private route: ActivatedRoute, private router: Router) {}\n\n novo(){\n this.router.navigate(['/painel/precificacao/home/novo']);\n }\n\n visualizar(id){\n console.log(id)\n this.router.navigate(['/painel/precificacao/home/visualizar/'+id]);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class PedidoService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'pedido') \n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class ListaProdutoseService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'listaProdutos') \n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class ValorService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'valor') \n }\n\n}\n","import { Component, ViewChild, AfterViewInit, Inject } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { PedidoService } from '../../../../@core/services/precifica/pedido/pedido.service';\nimport { ListaProdutoseService } from '../../../../@core/services/precifica/pedido/lista-produtos.service';\nimport { ValorService } from '../../../../@core/services/precifica/pedido/valor.service';\n\n@Component({\n selector: 'app-precificacao-modal-resumo',\n templateUrl: './modal-resumo.component.html',\n styleUrls: ['../../precificacao-visualizador.component.css'],\n providers: [ PedidoService, ListaProdutoseService, ValorService ]\n})\n\nexport class ModalResumoComponent {\n\n dadosPedidos;\n listas;\n custos;\n\n constructor(\n public dialogRef: MatDialogRef<ModalResumoComponent>,\n @Inject(MAT_DIALOG_DATA) public data: any,\n private _PedidoService: PedidoService,\n private _ListaProdutoseService: ListaProdutoseService,\n private _ValorService: ValorService\n ) { }\n \n onNoClick(): void {\n this.dialogRef.close();\n }\n\n ngOnInit(){\n this.getOrder();\n this.getProductList();\n this.getCoasts();\n }\n\n getOrder(){\n this._PedidoService.getResource(this.data.id).subscribe(\n (data:any) => {\n this.dadosPedidos = data.data[0]\n }\n )\n }\n\n getProductList(){\n this._ListaProdutoseService.getResource(this.data.id).subscribe(\n (data:any) => {\n this.listas = data.data;\n }\n )\n }\n\n getCoasts(){\n this._ValorService.getResource(this.data.id).subscribe(\n (data:any) => {\n this.custos = data.data\n }\n )\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class PedidoService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/loja', 'orders')\n }\n\n}\n","import { Component } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { ModalResumoComponent } from '../../modal-resumo/modal-resumo.component';\nimport { PedidoService } from '../../../../../@core/services/loja/pedido.service';\n\n@Component({\n selector: 'app-precificacao-meus-pedidos',\n templateUrl: './meus-pedidos.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css', './meus-pedidos.component.css'],\n providers: [ PedidoService ]\n \n})\n\nexport class MeusPedidosComponent {\n\n //variables\n pedidos:any = []\n\n constructor(\n private route: ActivatedRoute, \n private router: Router, \n private formBuilder: FormBuilder,\n public dialog: MatDialog,\n private _PedidoService: PedidoService\n ) {}\n\n ngOnInit(){\n this.getOrders()\n }\n\n getOrders(){\n this._PedidoService.getResources().subscribe(\n (data:any) => {\n this.pedidos = data.data\n }\n )\n }\n\n visualizar(id){\n this.router.navigate(['/visualizador/precificacao/pedidos/']);\n localStorage.setItem('calculadora', id);\n console.log(localStorage)\n }\n\n\n\n openResumo(id) {\n let dialogRef = this.dialog.open(ModalResumoComponent, {\n width: '800px',\n\n data: {id: id}\n });\n }\n\n novo(){\n localStorage.removeItem('calculadora');\n this.router.navigate(['/visualizador/precificacao/pedidos/']);\n }\n\n delete(id){\n this._PedidoService.deleteResource(id).subscribe(\n (data:any) => {\n this.getOrders();\n return true;\n }\n )\n }\n\n}\t\n","import { Component } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { Router, ActivatedRoute, Params } from '@angular/router';\nimport {MAT_MOMENT_DATE_FORMATS, MomentDateAdapter} from '@angular/material-moment-adapter';\nimport {DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE} from '@angular/material/core';\nimport { PedidoService } from '../../../../../@core/services/precifica/pedido/pedido.service';\n\nexport const MY_FORMATS = {\n parse: {\n dateInput: 'L',\n },\n display: {\n dateInput: 'L',\n monthYearLabel: 'MMM YYYY',\n dateA11yLabel: 'L',\n monthYearA11yLabel: 'MMMM YYYY',\n },\n};\n\n@Component({\n selector: 'app-precificacao-dados-pedido',\n templateUrl: './dados-pedido.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ PedidoService,\n {provide: MAT_DATE_LOCALE, useValue: 'pt-BR'},\n {provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]},\n {provide: MAT_DATE_FORMATS, useValue: MY_FORMATS} ]\n \n})\n\nexport class DadosPedidoComponent {\n\n //variables\n form:FormGroup;\n pedido_id;\n new_register:boolean = false;\n\n constructor(\n private route: ActivatedRoute, \n private router: Router, \n private formBuilder: FormBuilder,\n private _PedidoService:PedidoService) {\n this.initForm();\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n id: [''],\n name: [''],\n email: [''],\n telefone: [''],\n end: [''],\n cidade: [''],\n uf: [''],\n dt_entrega: [''],\n user_id: [''],\n dt_pedido: ['']\n })\n }\n\n register(){\n localStorage.removeItem('calculadora');\n const form = this.form.value;\n this._PedidoService.createResource(form).subscribe(\n (data:any) => {\n localStorage.setItem('calculadora', data.data.id_calculadora);\n }\n )\n }\n\n update(){\n const form = this.form.value;\n this._PedidoService.updateResource(form, {router: this.pedido_id}).subscribe(\n (data:any) => {\n return true;\n }\n )\n }\n\n ngOnInit(){\n this.route.params.forEach((params: Params) => {\n if(params['id']){\n console.log('parametro de rota');\n this.pedido_id = params['id'];\n this.new_register = false;\n this.getOrder();\n }else if (localStorage.getItem(\"calculadora\") !== null) {\n console.log('local storage');\n this.pedido_id = localStorage.getItem('calculadora');\n this.new_register = false;\n this.getOrder();\n }else{\n console.log('sem id');\n this.new_register = true;\n }\n\n });\n }\n\n getOrder(){\n this._PedidoService.getResource(this.pedido_id).subscribe(\n (data:any) => {\n console.log(data)\n this.initForm();\n this.form.setValue(data.data[0]);\n }\n )\n }\n\n}\t\n","import {Component, Inject} from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog';\nimport { ValorService } from '../../../../../../@core/services/precifica/pedido/valor.service';\nimport { ProdutosService } from '../../../../../../@core/services/precifica/produtos/produtos.service';\n\n@Component({\n selector: 'modal-edit',\n templateUrl: 'modal.calculo-pedido.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css'],\n providers: [ ValorService, ProdutosService ]\n})\nexport class ModalEdit{\n\n form:FormGroup;\n produtos:any;\n\n constructor(\n @Inject(MAT_DIALOG_DATA) public data: any,\n private formBuilder: FormBuilder, \n private _ValorService:ValorService,\n private _ProdutosService:ProdutosService\n ) {\n this.initForm()\n }\n\n ngOnInit(){\n this.data.calculadora\n console.log(this.data.id)\n this._ValorService.getResource(this.data.id).subscribe(\n (data:any) => {\n this.initForm()\n this.form.setValue(data.produtos) \n })\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n qtd_parts: [''],\n price_parts: ['']\n })\n }\n\n update(){\n const form = this.form.value;\n this._ValorService.updateResource(form, {router: this.data.calculadora}).subscribe(\n (data:any) => {\n\n }\n )\n }\n\n onNoClick() {\n \n }\n}","import { Component } from '@angular/core';\nimport { FormBuilder, FormGroup } from '@angular/forms';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { MatDialog } from '@angular/material/dialog';\nimport { ModalEdit } from './modal/modal.calculo-pedido.component';\nimport { ValorService } from '../../../../../@core/services/precifica/pedido/valor.service';\nimport { ListaProdutoseService } from '../../../../../@core/services/precifica/pedido/lista-produtos.service';\nimport { ProdutosService } from '../../../../../@core/services/precifica/produtos/produtos.service';\n\n@Component({\n selector: 'app-precificacao-calculo-pedido',\n templateUrl: './calculo-pedido.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ ValorService, ListaProdutoseService, ProdutosService ]\n})\n\nexport class CalculoPedidoComponent {\n\n //variables\n form:FormGroup;\n produtos:any;\n listas:any = [];\n calculadora_id:any;\n\n constructor(\n private route: ActivatedRoute, \n private router: Router, \n private formBuilder: FormBuilder, \n private _ValorService: ValorService,\n private _ListaProdutoseService: ListaProdutoseService,\n private _ProdutosService: ProdutosService,\n public dialog: MatDialog\n ) {\n this.initForm();\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n id: [''],\n produto_id:'' ,\n name_produto: '',\n qtd_parts: [''],\n price_parts: ['']\n })\n }\n\n ngOnInit(){\n this.calculadora_id = localStorage.getItem('calculadora');\n this.getProducts();\n this.getProductList();\n }\n\n getProducts(){\n this._ProdutosService.getResources().subscribe(\n (data:any) => {\n this.produtos = data.data\n }\n )\n }\n \n getPropsProduct(id, name){\n this.form.patchValue({\n produto_id: id, \n name_produto: name\n });\n }\n\n register(){\n const form = this.form.value;\n this._ValorService.createResource(form, {router: this.calculadora_id}).subscribe(\n (data:any) => {\n this.getProductList();\n return true;\n }\n )\n }\n\n getProductList(){\n this._ListaProdutoseService.getResource(this.calculadora_id).subscribe(\n (data:any) => {\n this.listas = data.data;\n }\n )\n }\n\n edit(id){\n let dialogRef = this.dialog.open(ModalEdit, {\n width: '500px',\n data: { id: id, calculadora: this.calculadora_id }\n });\n\n dialogRef.afterClosed().subscribe(result => {\n this.getProductList();\n });\n }\n\n delete(id) {\n\n }\n\n}\t\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class TransporteService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'transp') \n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class DescService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'desc') \n }\n\n}\n","import { Component } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { ValorService } from '../../../../../@core/services/precifica/pedido/valor.service';\nimport { TransporteService } from '../../../../../@core/services/precifica/pedido/transporte.service';\nimport { DescService } from '../../../../../@core/services/precifica/pedido/desc.service';\n\n@Component({\n selector: 'app-precificacao-custos',\n templateUrl: './custos.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ ValorService, TransporteService, DescService ]\n})\n\nexport class CustosComponent {\n\n //variables\n transp:FormGroup;\n desc:FormGroup;\n calculadora_id:any;\n custos;\n\n constructor(\n private route: ActivatedRoute, \n private router: Router, \n private formBuilder: FormBuilder,\n private _ValorService: ValorService,\n private _TransporteService: TransporteService,\n private _DescService: DescService) {\n this.initForm();\n }\n\n initForm() {\n this.transp = this.formBuilder.group({\n transport: [''],\n packing: ['']\n })\n\n this.desc = this.formBuilder.group({\n discount: ['']\n })\n }\n\n ngOnInit(){\n this.calculadora_id = localStorage.getItem('calculadora');\n this.getCoasts();\n }\n\n getCoasts(){\n this._ValorService.getResource(this.calculadora_id).subscribe(\n (data:any) => {\n this.custos = data.data\n }\n )\n }\n\n update(){\n const transp = this.transp.value;\n const desc = this.desc.value;\n if(transp.transport != \"\" && transp.packing != \"\"){\n this._TransporteService.updateResource(transp, {router: this.calculadora_id}).subscribe(\n (data:any) => {\n return true;\n }\n )\n }\n\n if(desc.discount != \"\"){\n this._DescService.updateResource(desc, {router: this.calculadora_id}).subscribe(\n (data:any) => {\n return true;\n }\n )\n }\n \n this.getCoasts();\n \n }\n}\t\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class ListaService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'lista') \n }\n\n}\n","import { Component } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { ModalResumoComponent } from '../../modal-resumo/modal-resumo.component';\nimport { ListaService } from '../../../../../@core/services/precifica/pedido/lista.service';\n\n@Component({\n selector: 'app-precificacao-compras',\n templateUrl: './compras.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ ListaService ]\n})\n\nexport class ComprasComponent {\n\n //variables\n form:FormGroup;\n calculadora_id:any;\n listas = [];\n value_total = 0.00\n\n constructor(\n private route: ActivatedRoute, \n private router: Router, \n private formBuilder: FormBuilder, \n public dialog: MatDialog,\n private _ListaService: ListaService\n ) { }\n\n ngOnInit(){\n console.log('aquiokk')\n this.calculadora_id = localStorage.getItem('calculadora');\n this.getBuyList();\n }\n\n getBuyList(){\n this._ListaService.getResource(this.calculadora_id).subscribe(\n (data:any) => {\n this.listas.push(data[0].data)\n let total = 0\n for(let i = 0; i < this.listas.length; i++){\n let value = parseFloat(this.listas[i]['valor_a_ser_gasto'])\n total += value;\n }\n this.value_total = total;\n }\n )\n }\n\n openResumo() {\n let dialogRef = this.dialog.open(ModalResumoComponent, {\n width: '800px',\n data: {id: this.calculadora_id}\n });\n }\n \n}\t\n","import { Component } from '@angular/core';\nimport {Router, ActivatedRoute} from '@angular/router';\n\n@Component({\n selector: 'app-precificacao-viabilidade',\n templateUrl: './viabilidade.component.html',\n styleUrls: ['../../precificacao-visualizador.component.css']\n})\n\nexport class ViabilidadeComponent {\n\n constructor(private route: ActivatedRoute, private router: Router) {}\n\n novo(){\n this.router.navigate(['/painel/precificacao/home/novo']);\n }\n\n visualizar(id){\n console.log(id)\n this.router.navigate(['/painel/precificacao/home/visualizar/'+id]);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class CustoService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'custo') \n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class ViabilidadeService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'viabilidade') \n }\n\n}\n","import { Component, ViewChild, AfterViewInit, Inject } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { CustoService } from '../../../../../../@core/services/precifica/viabilidade/custo.service';\nimport { ViabilidadeService } from '../../../../../../@core/services/precifica/viabilidade/viabilidade.service';\n\n@Component({\n selector: 'app-precificacao-modal-custos',\n templateUrl: './modal.custos-fixos.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css'],\n providers: [ CustoService, ViabilidadeService ]\n})\n\nexport class ModalCustosComponent {\n\n form:FormGroup;\n custos:any = [];\n delete:boolean = false;\n\n constructor(\n private formBuilder: FormBuilder, \n public dialogRef: MatDialogRef<ModalCustosComponent>,\n @Inject(MAT_DIALOG_DATA) public data: any,\n private _CustoService: CustoService,\n private _ViabilidadeService: ViabilidadeService\n ) {\n this.initForm()\n }\n \n ngOnInit(){\n if(this.data.type == \"delete\"){\n this.getCustos(this.data.id);\n this.delete = true;\n }else if(this.data.type == \"update\") {\n this.getCustos(this.data.id);\n this.delete = false;\n }\n }\n\n getCustos(id){\n this._CustoService.getResource(id).subscribe(\n (data:any) => {\n this.custos = data\n this.initForm();\n console.log(this.custos)\n this.form.setValue(data);\n \n \n }\n )\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n custo: [''],\n valor: ['']\n })\n }\n\n register(){\n const form = this.form.value;\n this._ViabilidadeService.createResource(form).subscribe(\n (data:any) => {\n this.cancel();\n return true;\n }\n )\n }\n\n cancel(): void {\n this.dialogRef.close();\n }\n\n onNoClick() {\n this.dialogRef.close();\n }\n\n delClick(){\n this._CustoService.deleteResource(this.data.id).subscribe(\n (data:any) => {\n this.cancel();\n return true;\n }\n )\n }\n\n}\n","import { Component } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { CustoService } from '../../../../../@core/services/precifica/viabilidade/custo.service';\nimport { ModalCustosComponent } from './modal/modal.custos-fixos.component';\n\n@Component({\n selector: 'app-precificacao-viabilidade-custos-fixos',\n templateUrl: './custos-fixos.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ CustoService ]\n})\n\nexport class CustosFixosComponent {\n\n custos:any = [];\n\n constructor(\n private route: ActivatedRoute, \n private router: Router,\n public dialog: MatDialog,\n private _CustoService: CustoService\n ) {}\n\n ngOnInit(){\n this.getCoasts();\n }\n\n getCoasts(){\n this._CustoService.getResources().subscribe(\n (data:any) => {\n console.log(data.data)\n this.custos = data.data.custo_fixo;\n }\n )\n }\n\n novo() {\n let dialogRef = this.dialog.open(ModalCustosComponent, {\n width: '400px',\n data: { type: 'register'}\n });\n\n dialogRef.afterClosed().subscribe(result => {\n this.getCoasts();\n });\n }\n\n delete(id) {\n let dialogRef = this.dialog.open(ModalCustosComponent, {\n width: '500px',\n data: { type: 'delete', id: id}\n });\n\n dialogRef.afterClosed().subscribe(result => {\n this.getCoasts();\n });\n }\n\n editar(id){\n let dialogRef = this.dialog.open(ModalCustosComponent, {\n width: '500px',\n data: { type: 'update', id: id}\n });\n\n dialogRef.afterClosed().subscribe(result => {\n this.getCoasts();\n });\n }\n}\n","import { Component } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { ViabilidadeService } from '../../../../../@core/services/precifica/viabilidade/viabilidade.service';\n\ndeclare var $:any;\n\n@Component({\n selector: 'app-precificacao-viabilidade-custos-variaveis',\n templateUrl: './custos-variaveis.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ ViabilidadeService ]\n})\n\nexport class CustosVariaveisComponent {\n\n constructor(\n private route: ActivatedRoute, \n private router: Router,\n private _ViabilidadeService: ViabilidadeService) {}\n\n public data_uniformity = [0];\n\n ngOnInit(){ \n this.getViability().then((data:any) => {\n this.data_uniformity = data\n this.getChartSimple();\n })\n }\n\n getViability(): Promise<any> {\n return new Promise((resolve, reject) => {\n this._ViabilidadeService.getResources().subscribe(\n (res:any) => {\n resolve(res.total_custo_variavel)\n }, err => {\n reject(err);\n }\n )\n })\n }\n\n getChartSimple(){\n setTimeout(() => {\n var app = {\n init: function(){\n this.cacheDOM();\n this.handleCharts();\n },\n cacheDOM: function(){\n this.$chart = $(\".bar-chart\");\n },\n cssSelectors: {\n chartBar: \"bar-chart--inner\"\n },\n handleCharts: function(){\n /* \n iterate through charts and grab total value\n then apply that to the width of the inner bar\n */\n $.each(this.$chart, function(){\n var $this = $(this),\n total = $this.data(\"total\"),\n $targetBar = $this.find(\".\"+app.cssSelectors.chartBar);\n $targetBar.css(\"width\",\"0%\"); // zero out for animation\n setTimeout(function(){\n $targetBar.css(\"width\",total+\"%\");\n },400); \n });\n } \n }\n\n $('.bar-chart--text').each(function() {\n $(this).prop('Counter', 0).animate({\n Counter: $(this).text()\n }, {\n duration: 1500,\n easing: 'swing',\n step: function(now) {\n $(this).text(Math.ceil(now)+\"%\");\n }\n });\n });\n\n app.init();\n },1)\n } \n}\n","import { Component, ViewChild, AfterViewInit, Inject } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { Observable } from 'rxjs';\nimport { startWith, map } from 'rxjs/operators';\nimport { ProdutosService } from '../../../../../../@core/services/precifica/produtos/produtos.service';\n\n@Component({\n selector: 'app-precificacao-faturamento-estimado-modal',\n templateUrl: './modal.faturamento-estimado.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css'],\n providers: [ ProdutosService ]\n})\n\nexport class ModalFaturamentoEstimadoComponent {\n\n productsCtrl: FormControl;\n filteredProducts: any;\n selectedId:number;\n\n products = [];\n\n constructor(\n public dialogRef: MatDialogRef<ModalFaturamentoEstimadoComponent>,\n private _ProdutosService: ProdutosService,\n private formBuilder: FormBuilder,\n @Inject(MAT_DIALOG_DATA) public data: any) {\n this.filter();\n }\n \n onNoClick(): void {\n this.dialogRef.close();\n }\n\n filterStates(name: string) {\n return this.products.filter((data:any) =>\n data.name.toLowerCase().indexOf(name.toLowerCase()) === 0);\n }\n\n ngOnInit(){\n this.getProducts()\n }\n\n getProducts(){\n this._ProdutosService.getResources().subscribe(\n (data:any) => {\n console.log(data)\n this.products = data.data\n this.filter();\n }\n )\n }\n\n filter(){\n this.productsCtrl = new FormControl();\n this.filteredProducts = this.productsCtrl.valueChanges\n .pipe(\n startWith(''),\n map((data:any) => data ? this.filterStates(data) : this.products.slice())\n );\n }\n\n selected(id) {\n this.selectedId = id;\n }\n\n returnProduct(){\n this.dialogRef.close(this.selectedId)\n }\n}\n","import { Component } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { ModalFaturamentoEstimadoComponent } from './modal/modal.faturamento-estimado.component';\nimport { ViabilidadeService } from '../../../../../@core/services/precifica/viabilidade/viabilidade.service';\n\n@Component({\n selector: 'app-precificacao-viabilidade-faturamento-estimado',\n templateUrl: './faturamento-estimado.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ ViabilidadeService ]\n})\n\nexport class FaturamentoEstimadoComponent {\n\n //variables\n value: string;\n viabilidade: any;\n tables = [];\n\n constructor(\n private route: ActivatedRoute, \n private router: Router, \n private dialog: MatDialog,\n private _ViabilidadeService: ViabilidadeService\n ) {}\n\n openDialog(): void {\n let dialogRef = this.dialog.open(ModalFaturamentoEstimadoComponent, {\n width: '500px'\n });\n\n dialogRef.afterClosed().subscribe(result => {\n this.value = result;\n this.tables = [];\n this.getQtdProdutos()\n });\n }\n\n getQtdProdutos(){\n this._ViabilidadeService.getResource('qtd', {router: this.value}).subscribe(\n (data:any) => {\n this.tables.push(data.data)\n console.log(this.tables)\n }\n )\n }\n\n ngOnInit(){\n this.getViability();\n }\n\n getViability(){\n this._ViabilidadeService.getResources().subscribe(\n (data:any) => {\n this.viabilidade = data.faturamento_necessario;\n }\n )\n }\n \n}\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\n\nimport { Observable } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class StudioVisualizadorService {\n constructor(public http: HttpClient) {\n }\n\n course(id: number) {\n return this.http.get(`https://api.tecnologiaasap.com.br/api/v2/client/course/${id}`, this.header);\n }\n\n lessons(courseId: number) {\n return this.http.get(`https://api.tecnologiaasap.com.br/api/v2/client/course/${courseId}/lesson`, this.header);\n }\n\n view(lessonId: number) {\n return this.http.post('https://api.tecnologiaasap.com.br/api/v2/client/lesson/view/' + lessonId, {}, this.header);\n }\n\n feedback(data: any, lessonId: number) {\n return this.http.post('https://api.tecnologiaasap.com.br/api/v2/client/lesson/feedback/' + lessonId, { feedback: data }, this.header);\n }\n\n rating(data: any, courseId: number) {\n return this.http.post('https://api.tecnologiaasap.com.br/api/v2/client/course/feedback/' + courseId, { feedback: data }, this.header);\n }\n\n get host(): string {\n return localStorage.getItem('apiURL');\n }\n\n get header(): { headers: HttpHeaders } {\n const token = localStorage.getItem('token');\n const headerOptions = {\n Authorization: token,\n Accept: 'application/json'\n };\n return { headers: new HttpHeaders(headerOptions) };\n }\n\n}\n","import { Component, Inject, EventEmitter, Output } from '@angular/core';\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { Router } from '@angular/router';\nimport { Global } from 'asap-crud';\nimport { StudioVisualizadorService } from '../studio-visualizador.service';\n\n// Start Rating Component\n@Component({\n selector: 'app-studio-modal-rating',\n templateUrl: './studio-modal-rating.component.html',\n styleUrls: ['./studio-modal-rating.component.css', '../../../asap-viewer.css'],\n providers: [Global]\n})\nexport class StudioModalStarRatingComponent {\n\n id: number;\n\n score: number;\n showCertificateLink: boolean;\n showContinueButtom: boolean;\n loading: boolean;\n comment: string;\n\n constructor(\n public studioVisualizadorService: StudioVisualizadorService,\n public dialogRef: MatDialogRef<StudioModalStarRatingComponent>,\n public router: Router,\n public global: Global,\n @Inject(MAT_DIALOG_DATA) public data: any\n ) {\n this.score = 0;\n this.id = +data.id;\n }\n\n ngOnInit() {\n console.log('owner ->', this.data);\n }\n\n onNoClick(): void {\n this.dialogRef.close(false);\n }\n\n onRateChange = (score: number) => {\n this.score = score;\n }\n\n save() {\n this.loading = true;\n const form = { rating: this.score, comment: this.comment };\n\n console.log(form);\n\n this.studioVisualizadorService.rating(form, this.id)\n .subscribe(res => {\n this.dialogRef.close(true);\n }, err => {\n this.loading = false;\n });\n }\n\n}\n","import { Component, OnInit, ViewEncapsulation } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { Global } from 'asap-crud';\nimport { StudioVisualizadorService } from './studio-visualizador.service';\nimport { MatDialog } from '@angular/material/dialog';\nimport { StudioModalStarRatingComponent } from './studio-modal-rating/studio-modal-rating.component';\nimport { AsapViewerService } from '../../asap-viewer.service';\n\ndeclare var swal: any;\ndeclare var Hls: any;\n\n@Component({\n selector: 'app-studio-visualizador',\n templateUrl: './studio-visualizador.component.html',\n styleUrls: ['./studio-visualizador.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\n\nexport class StudioVisualizadorComponent implements OnInit {\n\n public id: number;\n public loader: boolean;\n public loading: boolean;\n\n course: any;\n lessonArray: any;\n lessonSelected: any;\n lessonSelectedIndex: number;\n\n answer: any;\n\n constructor(\n private activatedRoute: ActivatedRoute,\n public global: Global,\n public dialog: MatDialog,\n public studioVisualizadorService: StudioVisualizadorService,\n public viewerService: AsapViewerService\n ) {\n this.loader = true;\n }\n\n ngOnInit() {\n this.getParams();\n }\n\n private getParams(): void {\n this.activatedRoute.params.subscribe(params => {\n this.id = +params['id'];\n this.getData();\n });\n }\n\n getData() {\n this.studioVisualizadorService.course(this.id)\n .subscribe((res: any) => {\n this.course = res.data;\n this.getLessons();\n });\n }\n\n getLessons() {\n this.studioVisualizadorService.lessons(this.id)\n .subscribe((res: any) => {\n this.lessonArray = res.sort((a: any, b: any) => (a.id > b.id) ? -1 : 1);\n this.lessonArray = this.lessonArray.sort((a: any, b: any) => (a.order > b.order) ? 1 : -1);\n this.loader = false;\n this.selectLastLesson();\n });\n }\n\n lessonViewed(lesson: any) {\n lesson.feedback = true;\n\n this.studioVisualizadorService.view(lesson.id)\n .subscribe(res => {\n console.log(res);\n });\n }\n\n selectLastLesson() {\n const index = this.getFirstUnviewedLesson();\n this.selectLesson(this.lessonArray[index]);\n }\n\n selectLesson(lesson: any): void {\n this.loading = true;\n\n this.lessonSelected = lesson;\n this.lessonSelectedIndex = this.lessonArray.indexOf(lesson);\n\n setTimeout(() => {\n this.loading = false;\n if (lesson.type === 'studio') {\n if (lesson.content !== '') {\n this.hlsPlay(lesson.content);\n }\n }\n\n if (lesson.type === 'quiz') {\n this.answer = null;\n if (lesson.feedback && lesson.feedback.feedback) {\n this.lessonSelected.feedbackSended = true;\n this.answer = lesson.feedback.feedback.value;\n }\n }\n\n }, 500);\n }\n\n checkAllLessonViewed(): boolean {\n // const check = !this.lessonArray.some((item: any) => item.viewed === false);\n\n let check = false;\n let views = 0;\n const lessonArrayLength = this.lessonArray.length;\n\n this.lessonArray.forEach((item: any) => {\n if (item.feedback) {\n views++;\n }\n });\n\n if (views === lessonArrayLength) {\n check = true;\n }\n\n console.log('checkAllLessonViewed: check', check);\n\n return check;\n }\n\n hlsPlay(fileUri: string) {\n if (!fileUri) {\n return;\n }\n if (Hls.isSupported()) {\n console.log('hls: isSupported');\n\n const hlsTimer = setInterval(() => {\n\n const video: any = document.getElementById('studio-video');\n\n if (video) {\n if (fileUri.indexOf('mp4') > -1) {\n this.addSourceToVideo(video, fileUri, 'video/mp4');\n } else {\n this.playHls(video, fileUri);\n }\n clearInterval(hlsTimer);\n }\n }, 500);\n\n } else {\n console.log('[statusChange] HLS not supported!');\n }\n }\n\n playHls(element: any, uri: string) {\n const hls = new Hls();\n hls.loadSource(uri);\n hls.attachMedia(element);\n hls.on(Hls.Events.MANIFEST_PARSED, function () {\n element.play();\n });\n }\n\n addSourceToVideo(element: any, src: string, type: string) {\n const source = document.createElement('source');\n source.src = src;\n source.type = type;\n element.appendChild(source);\n element.play();\n }\n\n onSubmit() {\n\n this.lessonSelected.feedbackSended = true;\n\n const data = {\n type: 'quiz',\n value: this.answer\n };\n\n this.studioVisualizadorService.feedback(data, this.lessonSelected.id)\n .subscribe(res => {\n console.log(res);\n });\n }\n\n onSelectionChange(option: any) {\n this.answer = option.id;\n }\n\n exit(): void {\n if (this.checkAllLessonViewed()) {\n this.rating();\n } else {\n this.close();\n }\n }\n\n close() {\n window.history.back();\n }\n\n rating() {\n if (this.course.feedback) {\n console.log('pode sair');\n this.close();\n return;\n }\n\n const dialogRef = this.dialog.open(StudioModalStarRatingComponent, {\n width: '380px',\n disableClose: true,\n data: { id: this.id, owner: this }\n });\n\n dialogRef.afterClosed().subscribe(result => {\n if (result) {\n this.close();\n }\n });\n }\n\n next(): void {\n const current = this.lessonSelectedIndex;\n const lessonArrayLength = this.lessonArray.length;\n\n if (!this.lessonSelected.feedback) {\n this.lessonViewed(this.lessonSelected);\n }\n\n if ((current + 1) === lessonArrayLength) {\n if (this.checkAllLessonViewed()) {\n this.rating();\n } else {\n const unviewed = this.getFirstUnviewedLesson();\n this.selectLesson(this.lessonArray[unviewed]);\n }\n } else {\n this.selectLesson(this.lessonArray[current + 1]);\n }\n }\n\n getFirstUnviewedLesson(): number {\n let index = 0;\n for (const item of this.lessonArray) {\n if (!item.feedback) {\n console.log('getFirstUnviewedLesson', index);\n return index;\n }\n index++;\n }\n return 0;\n }\n\n}\n","import { Routes } from '@angular/router';\nimport { AsapViewerComponent } from './asap-viewer.component';\nimport { CursoVisualizadorComponent } from './visualizador/curso-visualizador/curso-visualizador.component';\nimport { MiniCursoVisualizadorComponent } from './visualizador/mini-curso-visualizador/mini-curso-visualizador.component';\nimport { ExercisesComponent } from './visualizador/exercicios/exercicios.component';\nimport { PrecificacaoVisualizadorComponent } from './visualizador/precificacao-visualizador/precificacao-visualizador.component';\nimport { ProdutosComponent } from './visualizador/precificacao-visualizador/viewer/produtos/produtos.component';\nimport { NovoProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/novo/novo-produto.component';\nimport { VisualizarProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/visualizar-produto.component';\nimport { VisualizarResumoProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/resumo/visualizar-resumo-produto.component';\nimport { VisualizarMateriaisProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/materiais/visualizar-materiais-produto.component';\nimport { VisualizarMaoObraProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/mao-obra/visualizar-mao-obra-produto.component';\nimport { VisualizarFornecedorProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/fornecedor/visualizar-fornecedor-produto.component';\nimport { VisualizarCalcularProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/calcular/visualizar-calcular-produto.component';\nimport { PedidosComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/pedidos.component';\nimport { MeusPedidosComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/meus-pedidos/meus-pedidos.component';\nimport { DadosPedidoComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/dados-pedido/dados-pedido.component';\nimport { CalculoPedidoComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/calculo/calculo-pedido.component';\nimport { CustosComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/custos/custos.component';\nimport { ComprasComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/compras/compras.component';\nimport { ViabilidadeComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/viabilidade.component';\nimport { CustosFixosComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/custos-fixos/custos-fixos.component';\nimport { CustosVariaveisComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/custos-variaveis/custos-variaveis.component';\nimport { FaturamentoEstimadoComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/faturamento-estimado/faturamento-estimado.component';\nimport { StudioVisualizadorComponent } from './visualizador/studio-visualizador/studio-visualizador.component';\n\nexport const AsapViewerRoutes: Routes = [\n {\n path: 'jornada',\n component: AsapViewerComponent,\n children: [\n { path: ':jornada_id/:id/:titulo', component: CursoVisualizadorComponent },\n ]\n },\n {\n path: 'visualizador',\n component: AsapViewerComponent,\n children: [\n { path: 'curso/:titulo', component: CursoVisualizadorComponent },\n { path: 'etapa/:id', component: CursoVisualizadorComponent },\n { path: 'studio/:id', component: StudioVisualizadorComponent },\n { path: 'mini-etapa/:id', component: MiniCursoVisualizadorComponent },\n { path: 'etapa-develop/:id', component: MiniCursoVisualizadorComponent },\n { path: 'etapa-artigo/:id', component: MiniCursoVisualizadorComponent },\n { path: 'exercicios', component: ExercisesComponent },\n {\n path: 'precificacao',\n component: PrecificacaoVisualizadorComponent,\n children: [\n { path: 'produtos', component: ProdutosComponent },\n { path: 'novo', component: NovoProdutoComponent },\n { path: 'meus-pedidos', component: MeusPedidosComponent },\n {\n path: 'visualizar/:id', component: VisualizarProdutoComponent,\n children:\n [\n { path: '', component: VisualizarResumoProdutoComponent },\n { path: 'materiais', component: VisualizarMateriaisProdutoComponent },\n { path: 'mao-de-obra', component: VisualizarMaoObraProdutoComponent },\n { path: 'fornecedor', component: VisualizarFornecedorProdutoComponent },\n { path: 'calcular', component: VisualizarCalcularProdutoComponent }\n ]\n },\n {\n path: 'pedidos', component: PedidosComponent,\n children: [\n { path: 'dados-pedido', component: DadosPedidoComponent },\n { path: 'produtos', component: CalculoPedidoComponent },\n { path: 'custos', component: CustosComponent },\n { path: 'compras', component: ComprasComponent }\n ]\n },\n {\n path: 'viabilidade', component: ViabilidadeComponent,\n children: [\n { path: 'custos-fixos', component: CustosFixosComponent },\n { path: 'custos-variaveis', component: CustosVariaveisComponent },\n { path: 'faturamento-estimado', component: FaturamentoEstimadoComponent }\n ]\n }\n\n ]\n }\n ]\n }\n];\n","import { Component, OnInit } from '@angular/core';\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\ndeclare const $: any;\n\n//Metadata\nexport interface RouteInfo {\n path: string;\n title: string;\n type: string;\n icontype: string;\n collapse?: string;\n children?: ChildrenItems[];\n}\n\nexport interface ChildrenItems {\n path: string;\n title: string;\n ab: string;\n type?: string;\n}\n\n//Menu Items\nexport const ROUTES: RouteInfo[] = [\n {\n path: 'produtos',\n title: 'Meus Produtos',\n type: 'link',\n icontype: 'flaticon-tabs'\n },{\n path: 'meus-pedidos',\n title: 'Meus Pedidos',\n type: 'link',\n icontype: 'flaticon-calculator'\n },{\n path: 'viabilidade',\n title: 'Meu Negócio',\n type: 'link',\n icontype: 'flaticon-check'\n }\n];\n\n@Component({\n selector: 'app-precificacao-sidebar',\n templateUrl: 'precificacao-sidebar.component.html',\n styleUrls: ['./precificacao-sidebar.component.css']\n})\n\nexport class PrecificacaoSidebarComponent implements OnInit {\n public menuItems: any[];\n\n isMobileMenu() {\n if ($(window).width() > 991) {\n return false;\n }\n return true;\n };\n\n ngOnInit() {\n this.menuItems = ROUTES.filter(menuItem => menuItem);\n }\n updatePS(): void {\n if (window.matchMedia(`(min-width: 960px)`).matches && !this.isMac()) {\n const elemSidebar = <HTMLElement>document.querySelector('.sidebar .sidebar-wrapper');\n }\n }\n isMac(): boolean {\n let bool = false;\n if (navigator.platform.toUpperCase().indexOf('MAC') >= 0 || navigator.platform.toUpperCase().indexOf('IPAD') >= 0) {\n bool = true;\n }\n return bool;\n }\n\n}\n","import { Component, OnInit, ViewChild, ElementRef, Directive, Renderer2 } from '@angular/core';\nimport { ROUTES } from '../precificacao-sidebar/precificacao-sidebar.component';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { Location, LocationStrategy, PathLocationStrategy } from '@angular/common';\nconst misc: any = {\n navbar_menu_visible: 0,\n active_collapse: true,\n disabled_collapse_init: 0,\n};\n\ndeclare var $: any;\n@Component({\n selector: 'app-precificacao-navbar',\n templateUrl: 'precificacao-navbar.component.html',\n styleUrls: ['./precificacao-navbar.component.css']\n})\n\nexport class PrecificacaoNavbarComponent implements OnInit {\n private listTitles: any[];\n location: Location;\n private nativeElement: Node;\n private toggleButton: any;\n private sidebarVisible: boolean;\n\n @ViewChild('app-precificacao-navbar',{static:false}) button: any;\n\n constructor(location: Location, private renderer: Renderer2, private element: ElementRef) {\n this.location = location;\n this.nativeElement = element.nativeElement;\n this.sidebarVisible = false;\n }\n\n ngOnInit() {\n this.listTitles = ROUTES.filter(listTitle => listTitle);\n\n const navbar: HTMLElement = this.element.nativeElement;\n this.toggleButton = navbar.getElementsByClassName('navbar-toggle')[0];\n if ($('body').hasClass('sidebar-mini')) {\n misc.sidebar_mini_active = true;\n }\n if ($('body').hasClass('hide-sidebar')) {\n misc.hide_sidebar_active = true;\n }\n $('#minimizeSidebar').click(function() {\n if (misc.sidebar_mini_active === true) {\n $('body').removeClass('sidebar-mini');\n misc.sidebar_mini_active = false;\n\n } else {\n setTimeout(function() {\n $('body').addClass('sidebar-mini');\n\n misc.sidebar_mini_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function() {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function() {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n $('#hideSidebar').click(function() {\n if (misc.hide_sidebar_active === true) {\n setTimeout(function() {\n $('body').removeClass('hide-sidebar');\n misc.hide_sidebar_active = false;\n }, 300);\n setTimeout(function () {\n $('.sidebar').removeClass('animation');\n }, 600);\n $('.sidebar').addClass('animation');\n\n } else {\n setTimeout(function() {\n $('body').addClass('hide-sidebar');\n // $('.sidebar').addClass('animation');\n misc.hide_sidebar_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function() {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function() {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n }\n isMobileMenu() {\n if ($(window).width() < 991) {\n return false;\n }\n return true;\n };\n sidebarOpen() {\n const toggleButton = this.toggleButton;\n const body = document.getElementsByTagName('body')[0];\n setTimeout(function(){\n toggleButton.classList.add('toggled');\n }, 500);\n body.classList.add('nav-open');\n\n this.sidebarVisible = true;\n };\n sidebarClose() {\n const body = document.getElementsByTagName('body')[0];\n this.toggleButton.classList.remove('toggled');\n this.sidebarVisible = false;\n body.classList.remove('nav-open');\n };\n sidebarToggle() {\n // const toggleButton = this.toggleButton;\n // const body = document.getElementsByTagName('body')[0];\n if (this.sidebarVisible === false) {\n this.sidebarOpen();\n } else {\n this.sidebarClose();\n }\n };\n\n getTitle() {\n let titlee: any = this.location.prepareExternalUrl(this.location.path());\n for (let i = 0; i < this.listTitles.length; i++) {\n if (this.listTitles[i].type === \"link\" && this.listTitles[i].path === titlee) {\n return this.listTitles[i].title;\n } else if (this.listTitles[i].type === \"sub\") {\n for (let j = 0; j < this.listTitles[i].children.length; j++) {\n let subtitle = this.listTitles[i].path + '/' + this.listTitles[i].children[j].path;\n if (subtitle === titlee) {\n return this.listTitles[i].children[j].title;\n }\n }\n }\n }\n return '';\n }\n getPath() {\n return this.location.prepareExternalUrl(this.location.path());\n }\n}\n","import {Component, OnInit, Input, EventEmitter, Output} from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\n\n@Component({\n selector: 'app-viewer-precification',\n templateUrl: './viewer.component.html',\n styleUrls: ['../precificacao-visualizador.component.css'],\n})\nexport class ViewerPrecificacaoComponent implements OnInit {\n\n ngOnInit() {\n\n }\n\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'material',\n pure: false\n})\nexport class MaterialPipe implements PipeTransform {\n\n transform(value: any, expression:string): any {\n return value.filter(data=> data.material.toLowerCase().indexOf(expression.toLowerCase()) != -1) \n }\n}\n","import {Component, OnInit, ElementRef, ViewChild} from '@angular/core';\n\ndeclare const $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-gestao-visualizador',\n templateUrl: './gestao-visualizador.component.html',\n styleUrls: ['./gestao-visualizador.component.css'],\n})\n\nexport class GestaoVisualizadorComponent implements OnInit {\n\n\ttitle: any;\n\n ngOnInit(){\n \n }\n\n getTitle(event) {\n \tthis.title=event\n }\n}\n","import { Component, ViewChild, AfterViewInit } from '@angular/core';\n\n@Component({\n selector: 'app-gestao-resumo',\n templateUrl: './resumo.component.html',\n styleUrls: ['../../gestao-visualizador.component.css']\n})\n\nexport class GestaoResumoComponent {\n\n ngOnInit() {\n \n }\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicio1',\n templateUrl: './exercicio1.component.html',\n styleUrls: ['../../gestao-visualizador.component.css','./exercicio1.component.css']\n})\n\nexport class Exercicio1Component {\n\n}\n","export class BalanceSheet {\n public id: string;\n public type: string;\n public description: string;\n public amount: number;\n public date: string;\n\n populate(data: any): BalanceSheet {\n this.id = data.id;\n this.type = data.type;\n this.description = data.description;\n this.amount = data.amount;\n this.date = data.date;\n return this;\n }\n\n}","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Global } from 'asap-crud';\nimport { BalanceSheet } from '../models/balance-sheet';\n\n@Injectable()\nexport class BalanceSheetService {\n\n private exerciseId: number = 2;\n\n constructor(public http: HttpClient, public global: Global) {\n }\n\n collection(): Promise<Array<BalanceSheet>> {\n const arrayModel: Array<BalanceSheet> = [];\n\n return new Promise<Array<BalanceSheet>>((resolve, reject) => {\n this.findAll().subscribe((res:any) => {\n if(res.data[0] && res.data[0].value) {\n for (const bs of res.data[0].value) {\n arrayModel.push(new BalanceSheet().populate(bs));\n }\n }\n resolve(arrayModel);\n }, err => {\n reject(err);\n })\n })\n }\n\n superCollection(): Promise<Array<BalanceSheet>[]> {\n const arrayModel: Array<BalanceSheet>[] = [];\n\n return new Promise<Array<BalanceSheet>[]>((resolve, reject) => {\n this.fetchAll().subscribe((res:any) => {\n for (const data of res.data) {\n let array = [];\n for (const bs of data.value) {\n array.push(new BalanceSheet().populate(bs));\n }\n arrayModel.push(array);\n }\n resolve(arrayModel);\n }, err => {\n reject(err);\n })\n })\n }\n\n findAll(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/exercises/' + this.exerciseId + '/last', this.getHeaders());\n }\n\n fetchAll(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/exercises/' + this.exerciseId + '/all', this.getHeaders());\n }\n\n persist(data: any): Observable<any> {\n const post = {\n \"exercises_id\": this.exerciseId,\n \"value\": data\n };\n return this.http.post(this.global.apiURL() + '/api/v2/client/exercises', post, this.getHeaders());\n }\n\n getHeaders(): {headers: HttpHeaders} {\n const token = localStorage.getItem('token');\n const headerOptions = {\n 'Authorization': token,\n 'Accept': 'application/json'\n };\n return {headers: new HttpHeaders(headerOptions)};\n }\n\n}\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { Injectable } from '@angular/core';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class ExercisesService {\n\n constructor(public http: HttpClient, public global: Global) {\n\n }\n\n last(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/exercises/' + id + '/last', this.getHeaders());\n }\n\n all(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/exercises/' + id + '/all', this.getHeaders());\n }\n\n save(data: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/exercises', data, this.getHeaders());\n }\n \n update(id: number, data: any): Observable<any> {\n return this.http.put(this.global.apiURL() + '/api/v2/client/exercises/' + id, data, this.getHeaders());\n }\n \n delete(id: number): Observable<any> {\n return this.http.delete(this.global.apiURL() + '/api/v2/client/exercises/' + id, this.getHeaders());\n }\n\n getHeaders(): {headers: HttpHeaders} {\n const token = localStorage.getItem('token');\n const headerOptions = {\n 'Authorization': token,\n 'Accept': 'application/json'\n };\n return {headers: new HttpHeaders(headerOptions)};\n }\n\n}\n","import { Component, OnInit, Input, LOCALE_ID } from '@angular/core';\nimport { BalanceSheetService } from '../../../../@core/services/balance-sheet.service';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\nimport { BalanceSheet } from '../../../../@core/models/balance-sheet';\nimport { StringHelper } from '../../../../@core/helpers/string.helper';\n\ndeclare var $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-gestao-calculadora-financeira',\n templateUrl: './calculadora-financeira.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', './calculadora-financeira.component.css'],\n providers: [{provide: LOCALE_ID, useValue: \"en-US\"}, BalanceSheetService, ExercisesService]\n})\n\nexport class CalculadoraFinanceiraComponent implements OnInit {\n\n // Máscara para campos do form.\n maskCellphone: any[] = ['(', /[1-9]/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/];\n maskLandline: any[] = ['(', /[1-9]/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/];\n maskCPF: any[] = [/[0-9]/, /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/];\n maskCNPJ: any[] = [/[0-9]/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '/', /[0]/, /[0]/, /[0]/, /[1]/, '-', /\\d/, /\\d/];\n maskZipCode: any[] = ['(', /[1-9]/, /\\d/, ')', ' ', /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/];\n maskDate: any[] = [ /[0-9]/, /\\d/, '/', /[0-9]/, /\\d/, '/', /[0-9]/, /\\d/, /\\d/, /\\d/ ];\n\n @Input() editor: boolean;\n\n public inputArray: Array<BalanceSheet>;\n public outputArray: Array<BalanceSheet>;\n\n public input: BalanceSheet;\n public inputBtnBlock: boolean;\n\n public output: BalanceSheet;\n public outputBtnBlock: boolean;\n\n public transactionSelected: BalanceSheet;\n public updateModalSending: boolean;\n\n public total = {\n input: 0,\n output: 0\n };\n\n public dataArray: any;\n public balanceArray: any;\n\n public cenarioSelected: any;\n\n public exercise: number = 2;\n\n constructor(\n public _balanceSheetService: BalanceSheetService,\n public _exercisesService: ExercisesService\n ) {\n this.input = new BalanceSheet().populate({\n type: 'input',\n });\n this.inputBtnBlock = false;\n\n this.output = new BalanceSheet().populate({\n type: 'output',\n });\n this.outputBtnBlock = false;\n\n this.updateModalSending = false;\n\n this.transactionSelected = new BalanceSheet();\n\n this.cenarioSelected = null;\n }\n\n ngOnInit() {\n this.balanceArray = [];\n this.inputArray = [];\n this.outputArray = [];\n\n this.getData();\n\n this.calcBalance();\n }\n\n getData() {\n this._exercisesService.all(2)\n .subscribe((result) => {\n this.dataArray = result.data;\n });\n }\n\n\n calcBalance() {\n this.inputArray = [];\n this.outputArray = [];\n\n this.total.input = 0;\n this.total.output = 0;\n\n for(let balancesheet of this.balanceArray) {\n if(balancesheet.type === 'input') {\n this.total.input += balancesheet.amount;\n this.inputArray.push(balancesheet);\n }\n if(balancesheet.type === 'output') {\n this.total.output += balancesheet.amount;\n this.outputArray.push(balancesheet);\n }\n }\n }\n\n onInputSubmit(form: any) {\n this.input.id = StringHelper.generate(32);\n\n this.balanceArray.push(this.input);\n\n this.input = new BalanceSheet().populate({\n type: 'input',\n });\n\n form.reset();\n\n this.calcBalance();\n }\n\n onOutputSubmit(form: any) {\n this.output.id = StringHelper.generate(32);\n\n this.balanceArray.push(this.output);\n\n this.output = new BalanceSheet().populate({\n type: 'output',\n });\n\n form.reset();\n\n this.calcBalance();\n }\n\n balanceSheetRemove(balanceSheet: BalanceSheet) {\n\n swal({\n title: 'Você quer apagar essa transação?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n const index = this.balanceArray.indexOf(balanceSheet);\n this.balanceArray.splice(index, 1);\n\n this.calcBalance();\n },\n (cancel) => {}\n );\n }\n\n balanceSheetUpdate(balanceSheet: BalanceSheet) {\n this.transactionSelected = Object.assign({}, balanceSheet);\n $('#updateModal').modal();\n }\n\n transactionUpdate() {\n const item = this.balanceArray.find((item) => {\n return item.id === this.transactionSelected.id\n });\n\n const index = this.balanceArray.indexOf(item);\n\n this.balanceArray[index] = this.transactionSelected;\n\n this.calcBalance();\n\n $('#updateModal').modal('toggle');\n }\n\n selectCenario(index: number) {\n this.cenarioSelected = this.dataArray[index];\n this.balanceArray = this.cenarioSelected.value;\n this.calcBalance();\n }\n\n save() {\n const body = {\n exercises_id: this.exercise,\n value: this.balanceArray,\n }\n if(this.cenarioSelected === null) {\n swal('Sucesso', 'Seu cenário foi salvo com sucesso!', '');\n this._exercisesService.save(body)\n .subscribe((res:any) => {\n this.dataArray.unshift(res.data);\n this.selectCenario(0);\n });\n }else{\n swal('Sucesso', 'Seu cenário foi atualizado com sucesso!', '');\n this._exercisesService.update(this.cenarioSelected.id, body)\n .subscribe((res:any) => {\n console.log(res);\n });\n }\n }\n\n delete(index: any) {\n\n swal({\n title: 'Você quer apagar esse cenário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n swal('Sucesso', 'O cenário foi removido com sucesso!', '');\n\n if(this.cenarioSelected === this.dataArray[index]) {\n this.newCenario();\n }\n\n const id = this.dataArray[index].id;\n \n this.dataArray.splice(index, 1);\n\n this._exercisesService.delete(id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n }\n\n resetBalance() {\n this.getData();\n this.newCenario();\n }\n\n newCenario() {\n this.cenarioSelected = null;\n this.balanceArray = [];\n this.calcBalance();\n }\n\n}\n","import { Component, OnInit } from '@angular/core';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\n\ndeclare var $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-gestao-como-resolver-dividas',\n templateUrl: './como-resolver-dividas.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'como-resolver-dividas.component.css'],\n providers: [ExercisesService]\n})\n\nexport class ComoResolverDividasComponent implements OnInit {\n\n public dataArray: any;\n public cenarioSelected: any;\n\n public debtArray: Array<Debt>;\n public form: Debt;\n public debtSelected: Debt;\n public updateModalSending: boolean;\n public btnBlock: boolean;\n\n public status: string;\n\n public total: number;\n\n public exercise = '3';\n\n constructor(private _exerciseService: ExercisesService) {\n }\n\n ngOnInit() {\n this.updateModalSending = false;\n this.btnBlock = false;\n this.form = new Debt;\n this.debtSelected = new Debt;\n this.status = '';\n this.debtArray = [];\n\n this.getData();\n }\n\n getData() {\n this._exerciseService.all(this.exercise)\n .subscribe((res:any) => {\n this.dataArray = res.data;\n });\n }\n\n update(debt: Debt) {\n this.debtSelected = Object.assign({}, debt);\n $('#updateModal').modal();\n }\n\n calc() {\n this.total = 0;\n this.debtArray.map(item => {\n this.total += +item.amount;\n });\n }\n\n debtUpdate() {\n this.updateModalSending = true;\n\n const item = this.debtArray.find((item) => {\n return item.id == this.debtSelected.id\n });\n\n const index = this.debtArray.indexOf(item);\n\n this.debtArray[index] = this.debtSelected;\n\n this.updateModalSending = false;\n\n this.debtSelected = new Debt;\n\n $('#updateModal').modal('toggle');\n\n this.calc();\n }\n\n onSubmit(form: any) {\n this.form.id = this.debtArray.length + 1;\n\n this.debtArray.push(this.form);\n\n this.form = new Debt;\n\n form.reset();\n\n this.calc();\n }\n\n remove(debt: Debt) {\n swal({\n title: 'Você quer apagar esse débito?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n const index = this.debtArray.indexOf(debt);\n this.debtArray.splice(index, 1);\n\n this.calc();\n },\n (cancel) => {}\n );\n };\n\n selectCenario(index: number) {\n this.cenarioSelected = this.dataArray[index];\n this.debtArray = this.cenarioSelected.value;\n this.calc();\n }\n\n save() {\n const body = {\n exercises_id: this.exercise,\n value: this.debtArray,\n }\n if(!this.cenarioSelected) {\n swal('Sucesso', 'O plano para pagamento de dívidas foi salvo com sucesso', 'success');\n this._exerciseService.save(body)\n .subscribe((res:any) => {\n this.dataArray.unshift(res.data);\n this.selectCenario(0);\n });\n }else{\n swal('Sucesso', 'O plano para pagamento de dívidas foi atualizado com sucesso', 'success');\n this._exerciseService.update(this.cenarioSelected.id, body)\n .subscribe((res:any) => {\n console.log(res);\n });\n }\n }\n\n delete(index: any) {\n\n swal({\n title: 'Você quer apagar esse cenário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n swal('Sucesso', 'O cenário foi removido com sucesso!', '');\n\n if(this.cenarioSelected === this.dataArray[index]) {\n this.newCenario();\n }\n\n const id = this.dataArray[index].id;\n \n this.dataArray.splice(index, 1);\n\n this._exerciseService.delete(id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n }\n\n resetBalance() {\n this.getData();\n this.newCenario();\n }\n\n newCenario() {\n this.cenarioSelected = null;\n this.debtArray = [];\n this.calc();\n }\n\n\n}\n\nclass Debt {\n public id: number;\n public description: string;\n public amount: string;\n public plan: string;\n\n populate(data: any) {\n this.id = data.id;\n this.description = data.description;\n this.amount = data.amount;\n this.plan = data.plan;\n }\n}\n","import { Component, OnInit } from '@angular/core';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\n\ndeclare var swal: any;\n\n@Component({\n selector: 'app-gestao-trabalhar-pra-ganhar',\n templateUrl: './trabalhar-pra-ganhar.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'trabalhar-pra-ganhar.component.css'],\n providers: [ ExercisesService ]\n})\n\nexport class TrabalharPraGanharComponent implements OnInit{\n\n public dataArray: any;\n public cenarioSelected: any;\n\n public values;\n\n public resultA;\n public resultB;\n public resultC;\n public resultD;\n\n public exercise: number = 4;\n\n constructor(public _exercisesService: ExercisesService) {\n this.values = {\n A: 0,\n B: 0,\n C: 0,\n D: 0,\n E: 0\n };\n }\n\n ngOnInit() {\n this.getData();\n this.calc();\n }\n\n getData() {\n this._exercisesService.all(this.exercise)\n .subscribe((res:any) => {\n this.dataArray = res.data;\n });\n }\n\n calc() {\n this.resultA = this.filter(this.values.A * this.values.B);\n this.resultB = this.filter(this.values.C + this.values.D + this.resultA);\n this.resultC = Math.round(this.filter(this.resultB / this.values.E));\n this.resultD = Math.round(this.filter(this.resultC / this.values.A));\n }\n\n filter(value: any): number {\n return isNaN(parseInt(value)) ? 0 : value;\n }\n\n save() {\n const body = {\n exercises_id: this.exercise,\n value: this.values,\n }\n\n if(!this.cenarioSelected) {\n swal('Salvo com sucesso', 'Seu plano foi salvo com sucesso', 'success');\n this._exercisesService.save(body)\n .subscribe((res:any) => {\n this.dataArray.unshift(res.data);\n this.selectCenario(0);\n });\n }else{\n swal('Salvo com sucesso', 'Seu plano foi atualizado com sucesso', 'success');\n this._exercisesService.update(this.cenarioSelected.id, body)\n .subscribe((res:any) => {\n console.log(res);\n });\n }\n }\n\n selectCenario(index: number) {\n this.cenarioSelected = this.dataArray[index];\n this.values = this.cenarioSelected.value;\n this.calc();\n }\n\n delete(index: any) {\n\n swal({\n title: 'Você quer apagar esse cenário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n swal('Sucesso', 'O cenário foi removido com sucesso!', '');\n\n if(this.cenarioSelected === this.dataArray[index]) {\n this.newCenario();\n }\n\n const id = this.dataArray[index].id;\n \n this.dataArray.splice(index, 1);\n\n this._exercisesService.delete(id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n }\n\n newCenario() {\n this.cenarioSelected = null;\n this.values = {\n A: 0,\n B: 0,\n C: 0,\n D: 0,\n E: 0\n }\n this.calc();\n }\n\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\n\ndeclare var $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-gestao-meu-cliente',\n templateUrl: './meu-cliente.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'meu-cliente.component.css'],\n providers: [ ExercisesService ]\n})\n\nexport class MeuClienteComponent implements OnInit {\n\n @Output() public event = new EventEmitter<any>();\n public dataArray: any;\n public cenarioSelected: any;\n\n public cliente: Cliente;\n\n public exercise = '5';\n\n constructor(private _exerciseService: ExercisesService) {\n }\n\n ngOnInit() {\n this.cliente = new Cliente;\n\n this.getData();\n }\n\n getData() {\n this._exerciseService.all(this.exercise)\n .subscribe((res:any) => {\n this.dataArray = res.data;\n });\n }\n\n selectCenario(index: number) {\n this.cenarioSelected = this.dataArray[index];\n this.cliente = this.cenarioSelected.value;\n }\n\n save() {\n const body = {\n exercises_id: this.exercise,\n value: this.cliente,\n }\n if(!this.cenarioSelected) {\n swal.fire('Sucesso', 'O perfil do cliente foi salvo com sucesso', 'success');\n this._exerciseService.save(body)\n .subscribe((res:any) => {\n this.dataArray.unshift(res.data);\n this.selectCenario(0);\n });\n }else{\n swal.fire('Sucesso', 'O perfil do cliente foi atualizado com sucesso', 'success');\n this._exerciseService.update(this.cenarioSelected.id, body)\n .subscribe((res:any) => {\n console.log(res);\n });\n }\n }\n\n delete(index: any) {\n\n swal.fire({\n title: 'Você quer apagar esse cenário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n swal.fire({\n title:'Sucesso', \n text: 'O cenário foi removido com sucesso!', \n type:'success'\n });\n\n if(this.cenarioSelected === this.dataArray[index]) {\n this.newCenario();\n }\n\n const id = this.dataArray[index].id;\n \n this.dataArray.splice(index, 1);\n\n this._exerciseService.delete(id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n }\n\n resetBalance() {\n this.getData();\n this.newCenario();\n }\n\n newCenario() {\n this.cenarioSelected = null;\n this.cliente = new Cliente;\n }\n\n goNext() {\n this.event.emit();\n }\n\n\n}\n\nclass Cliente {\n public id: number;\n public name: string;\n public ocupation: string;\n public education: string;\n public location: string;\n public salary: string;\n public home: string;\n public age: string;\n public gender: string;\n public hobby: string;\n\n populate(data: any) {\n this.id = data.id;\n this.name = data.name;\n this.ocupation = data.ocupation;\n this.education = data.education;\n this.location = data.location;\n this.salary = data.salary;\n this.home = data.home;\n this.age = data.age;\n this.gender = data.gender;\n this.hobby = data.hobby;\n }\n}\n","import { Component, OnInit } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms';\nimport { MAT_MOMENT_DATE_FORMATS, MomentDateAdapter } from '@angular/material-moment-adapter';\nimport { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE } from '@angular/material/core';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\n\ndeclare var $: any;\ndeclare var swal: any;\n\n\nexport const MY_FORMATS = {\n parse: {\n dateInput: 'L',\n },\n display: {\n dateInput: 'L',\n monthYearLabel: 'MMM YYYY',\n dateA11yLabel: 'L',\n monthYearA11yLabel: 'MMMM YYYY',\n },\n};\n\n@Component({\n selector: 'app-gestao-semana',\n templateUrl: './semana.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'semana.component.css'],\n providers: [\n {provide: MAT_DATE_LOCALE, useValue: 'pt-BR'},\n {provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]},\n {provide: MAT_DATE_FORMATS, useValue: MY_FORMATS},\n ExercisesService\n ]\n})\n\nexport class SemanaComponent {\n public dataArray: any;\n public cenarioSelected: any;\n public inputDate: any;\n\n public exercise = '6';\n\n timeArray = [\n { value: 0, label: 'Nenhum Compromisso' },\n { value: 0.5, label: '30 Min.' },\n { value: 1, label: '1 Hora' },\n { value: 2, label: '2 Horas' },\n { value: 3, label: '3 Horas' },\n { value: 4, label: '4 Horas' }\n ];\n\n morning: Agenda;\n afternoon: Agenda;\n night: Agenda;\n\n report: any;\n\n public weekArray: {\n morning: Array<Agenda>,\n afternoon: Array<Agenda>,\n night: Array<Agenda>\n }\n\n constructor(private _exerciseService: ExercisesService) {\n }\n\n ngOnInit() {\n this.morning = new Agenda;\n this.afternoon = new Agenda;\n this.night = new Agenda;\n\n this.weekArray = {\n morning: [],\n afternoon: [],\n night: []\n }\n\n this.report = {\n me: {hour: 0, minutes: 0},\n others: {hour: 0, minutes: 0},\n business: {hour: 0, minutes: 0}\n }\n\n this.getData();\n }\n\n insertInMorning() {\n this.morning.date = new Date(this.inputDate).toLocaleDateString();\n this.weekArray.morning.push(this.morning);\n this.morning = new Agenda;\n this.calc();\n }\n\n insertInAfternoon() {\n this.afternoon.date = new Date(this.inputDate).toLocaleDateString();\n this.weekArray.afternoon.push(this.afternoon);\n this.afternoon = new Agenda;\n this.calc();\n }\n\n insertInNight() {\n this.night.date = new Date(this.inputDate).toLocaleDateString();\n this.weekArray.night.push(this.night);\n this.night = new Agenda;\n this.calc();\n }\n\n calc() {\n this.report = {\n me: {hour: 0, minutes: 0},\n others: {hour: 0, minutes: 0},\n business: {hour: 0, minutes: 0}\n }\n\n let meInt = 0;\n let othersInt = 0;\n let businessInt = 0;\n\n for(let ag of this.weekArray.morning) {\n meInt += ag.health.value;\n othersInt += ag.home.value;\n businessInt += ag.work.value;\n }\n\n for(let ag of this.weekArray.afternoon) {\n meInt += ag.health.value;\n othersInt += ag.home.value;\n businessInt += ag.work.value;\n }\n\n for(let ag of this.weekArray.night) {\n meInt += ag.health.value;\n othersInt += ag.home.value;\n businessInt += ag.work.value;\n }\n\n this.report = {\n me: this.intToTime(meInt),\n others: this.intToTime(othersInt),\n business: this.intToTime(businessInt),\n }\n\n }\n\n getData() {\n this._exerciseService.all(this.exercise)\n .subscribe((res:any) => {\n this.dataArray = res.data;\n });\n }\n\n selectCenario(index: number) {\n this.cenarioSelected = this.dataArray[index];\n this.weekArray = this.cenarioSelected.value;\n this.calc();\n }\n\n save() {\n const body = {\n exercises_id: this.exercise,\n value: this.weekArray\n }\n if(!this.cenarioSelected) {\n swal('Sucesso', 'Os horários foram salvos com sucesso', 'success');\n this._exerciseService.save(body)\n .subscribe((res:any) => {\n this.dataArray.unshift(res.data);\n this.selectCenario(0);\n });\n }else{\n swal('Sucesso', 'Os horários foram atualizados com sucesso', 'success');\n this._exerciseService.update(this.cenarioSelected.id, body)\n .subscribe((res:any) => {\n console.log(res);\n });\n }\n }\n\n delete(index: any) {\n\n swal({\n title: 'Você quer apagar esse cenário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n swal('Sucesso', 'O cenário foi removido com sucesso!', '');\n\n if(this.cenarioSelected === this.dataArray[index]) {\n this.newCenario();\n }\n\n const id = this.dataArray[index].id;\n \n this.dataArray.splice(index, 1);\n\n this._exerciseService.delete(id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n }\n\n newCenario() {\n this.cenarioSelected = null;\n this.weekArray = {\n morning: [],\n afternoon: [],\n night: []\n }\n this.calc();\n }\n\n intToTime(int: number): {hour: number, minutes: number} {\n let obj = {hour: 0, minutes: 0};\n obj.hour = Math.trunc(int);\n obj.minutes = Math.round(Number((int - obj.hour).toFixed(2)) * 60);\n return obj;\n }\n\n}\n\nclass Agenda {\n public date: string;\n public home: AgendaTime;\n public health: AgendaTime;\n public work: AgendaTime;\n public extra: AgendaTime;\n}\n\nclass AgendaTime {\n public value: number;\n public label: string;\n}","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicios-aula10-ex1',\n templateUrl: './aula10-ex1.component.html',\n styleUrls: ['aula10-ex1.component.css']\n})\n\nexport class Aula10Ex1Component {\n\n}\n","import { Component, Input, OnInit } from '@angular/core';\nimport { FormsModule, FormBuilder, FormGroup} from '@angular/forms';\n\n\n@Component({\n selector: 'app-exercicios-aula10-ex3',\n templateUrl: './aula10-ex3.component.html',\n styleUrls: ['aula10-ex3.component.css']\n})\n\nexport class Aula10Ex3Component implements OnInit {\n\n isLinear = false;\n formGroup1: FormGroup;\n formGroup2: FormGroup;\n formGroup3: FormGroup;\n\n constructor(private _formBuilder: FormBuilder) { }\n\n\n ngOnInit() {\n this.formGroup1 = this._formBuilder.group({\n\n //firstCtrl: ['', Validators.required]\n });\n this.formGroup2 = this._formBuilder.group({\n //secondCtrl: ['', Validators.required]\n });\n this.formGroup3 = this._formBuilder.group({\n //secondCtrl: ['', Validators.required]\n });\n }\n\n contentVisible: boolean = false;\n objectDisabled: boolean = false;\n questao1: any;\n\n\n formGroup: any = [\n {\n name:\"formGroup1\",\n label: \"Pergunta 1\",\n editable: \"true\",\n title: 'Selecione a opção que representa um \"Folder\"',\n resposta: \"Opção 2\",\n questao: [\n {\n img:\"https://www.criarcartao.com.br/images/modelos/37.png\",\n opcao:\"Opção 1\"\n },\n {\n img:\"https://img.elo7.com.br/product/zoom/165246A/folder-arte-digital-flyer.jpg\",\n opcao:\"Opção 2\"\n },\n {\n img:\"https://ae01.alicdn.com/kf/HTB1vTPmmPuhSKJjSspaq6xFgFXaW/New-100Pcs-DIY-Blank-price-Hang-tag-Kraft-Gift-Brown-Kraft-Paper-Tags-Label-Luggage-Wedding.jpg_640x640.jpg\",\n opcao:\"Opção 3\"\n }\n ],\n },\n\n {\n name:\"formGroup2\",\n label: \"Pergunta 2\",\n editable: \"true\",\n title: 'Selecione a opção que representa um \"Cartão\"',\n resposta: \"Opção 1\",\n questao: [\n {\n img:\"https://image.freepik.com/vetores-gratis/molde-do-folheto-ondulada-verde_1051-844.jpg\",\n opcao:\"Opção 1\"\n },\n {\n img:\"https://image.freepik.com/vetores-gratis/molde-do-folheto-ondulada-verde_1051-844.jpg\",\n opcao:\"Opção 2\"\n },\n {\n img:\"https://image.freepik.com/vetores-gratis/molde-do-folheto-ondulada-verde_1051-844.jpg\",\n opcao:\"Opção 3\"\n }\n ],\n },\n\n {\n name:\"formGroup3\",\n label: \"Pergunta 3\",\n editable: \"true\",\n title: 'Selecione a opção que representa uma \"Embalagem\"',\n resposta: \"Opção 3\",\n questao: [\n {\n img:\"https://image.freepik.com/vetores-gratis/tag-da-venda-com-textura_23-2147503621.jpg\",\n opcao:\"Opção 1\"\n },\n {\n img:\"https://image.freepik.com/vetores-gratis/tag-da-venda-com-textura_23-2147503621.jpg\",\n opcao:\"Opção 2\"\n },\n {\n img:\"https://image.freepik.com/vetores-gratis/tag-da-venda-com-textura_23-2147503621.jpg\",\n opcao:\"Opção 3\"\n }\n ],\n },\n ];\n\n\n opcaoMarcada: any = [];\n resultado: any = '';\n\n radioChangeHandler(event:any){\n this.opcaoMarcada = event.target.value;\n }\n\n\n\n\n\n\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicios-aula12-ex6',\n templateUrl: './aula12-ex6.component.html',\n styleUrls: ['aula12-ex6.component.css']\n})\n\nexport class Aula12Ex6Component {\n\n}\n","import { Component, OnInit } from '@angular/core';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\nimport { StringHelper } from '../../../../@core/helpers/string.helper';\n\ndeclare var swal: any;\ndeclare var $: any;\n\n@Component({\n selector: 'app-gestao-production-time',\n templateUrl: './production-time.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', './production-time.component.css'],\n providers: [ ExercisesService ]\n})\n\nexport class ProductionTimeComponent implements OnInit {\n public dataArray: any;\n public cenarioSelected: any;\n\n public product: Product;\n public productArray: Array<Product>;\n\n public productSelected: Product;\n\n maskTime: any[] = [/[0-9]/, /\\d/, ':', /\\d/, /\\d/];\n\n report: any;\n\n goal: number;\n\n public exercise = '7';\n\n constructor(private _exerciseService: ExercisesService) {\n }\n\n ngOnInit() {\n this.product = new Product;\n this.productArray = [];\n this.getData();\n this.report = {\n count: 0,\n totalInteger: 0,\n mediaInteger: 0,\n hoursInteger: 0,\n total: {hour: 0, minutes: 0},\n media: {hour: 0, minutes: 0},\n hours: {hour: 0, minutes: 0}\n }\n }\n\n insert(): void {\n this.product.id = StringHelper.generate(12);\n this.productArray.push(this.product);\n this.product = new Product;\n\n this.calc();\n }\n\n remove(index: number) {\n swal({\n title: 'Você quer apagar ' + this.productArray[index].name + '?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n this.productArray.splice(index, 1);\n this.calc();\n },\n (cancel) => {}\n );\n }\n\n calc() {\n\n this.report = {\n count: 0,\n totalInteger: 0,\n mediaInteger: 0,\n hoursInteger: 0,\n total: {hour: 0, minutes: 0},\n media: {hour: 0, minutes: 0},\n hours: {hour: 0, minutes: 0}\n }\n\n this.report.count = this.productArray.length;\n\n for(let prod of this.productArray) {\n let split = prod.time.split(':');\n this.report.totalInteger += +split[0];\n this.report.totalInteger += +split[1]/60;\n\n this.report.mediaInteger = this.report.totalInteger / this.report.count;\n\n this.report.hoursInteger = +this.goal * this.report.mediaInteger;\n }\n\n this.report.total = this.intToTime(this.report.totalInteger);\n this.report.media = this.intToTime(this.report.mediaInteger);\n this.report.hours = this.intToTime(this.report.hoursInteger);\n }\n\n intToTime(int: number): {hour: number, minutes: number} {\n let obj = {hour: 0, minutes: 0};\n obj.hour = Math.trunc(int);\n obj.minutes = Math.round(Number((int - obj.hour).toFixed(2)) * 60);\n return obj;\n }\n\n update(product: Product) {\n this.productSelected = Object.assign({}, product);\n $('#updateModal').modal();\n }\n\n saveUpdate() {\n const item = this.productArray.find((item) => {\n return item.id == this.productSelected.id\n });\n\n const index = this.productArray.indexOf(item);\n\n this.productArray[index] = this.productSelected;\n\n this.calc();\n\n $('#updateModal').modal('toggle');\n }\n\n getData() {\n this._exerciseService.all(this.exercise)\n .subscribe((res:any) => {\n this.dataArray = res.data;\n });\n }\n\n save() {\n const body = {\n exercises_id: this.exercise,\n value: {\n goal: this.goal,\n products: this.productArray\n },\n }\n if(!this.cenarioSelected) {\n swal('Sucesso', 'O perfil do cliente foi salvo com sucesso', 'success');\n this._exerciseService.save(body)\n .subscribe((res:any) => {\n this.dataArray.unshift(res.data);\n this.selectCenario(0);\n });\n }else{\n swal('Sucesso', 'O perfil do cliente foi atualizado com sucesso', 'success');\n this._exerciseService.update(this.cenarioSelected.id, body)\n .subscribe((res:any) => {\n console.log(res);\n });\n }\n }\n\n delete(index: any) {\n\n swal({\n title: 'Você quer apagar esse cenário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n swal('Sucesso', 'O cenário foi removido com sucesso!', '');\n\n if(this.cenarioSelected === this.dataArray[index]) {\n this.newCenario();\n }\n\n const id = this.dataArray[index].id;\n \n this.dataArray.splice(index, 1);\n\n this._exerciseService.delete(id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n }\n\n newCenario() {\n this.cenarioSelected = null;\n this.productArray = [];\n this.goal = null;\n\n this.calc();\n }\n\n selectCenario(index: number) {\n this.cenarioSelected = this.dataArray[index];\n this.productArray = this.cenarioSelected.value.products;\n this.goal = this.cenarioSelected.value.goal;\n\n this.calc();\n }\n\n}\n\nclass Product {\n id: string;\n name: string;\n time: string;\n}","import { Routes } from '@angular/router';\nimport { GestaoVisualizadorComponent } from './gestao-visualizador.component';\nimport { GestaoResumoComponent } from './viewer/resumo/resumo.component';\nimport { Exercicio1Component } from './viewer/exercicio1/exercicio1.component';\nimport { CalculadoraFinanceiraComponent } from './viewer/calculadora-financeira/calculadora-financeira.component';\nimport { ComoResolverDividasComponent } from './viewer/como-resolver-dividas/como-resolver-dividas.component';\nimport { TrabalharPraGanharComponent } from './viewer/trabalhar-pra-ganhar/trabalhar-pra-ganhar.component';\nimport { MeuClienteComponent } from './viewer/meu-cliente/meu-cliente.component';\nimport { SemanaComponent } from './viewer/semana/semana.component';\nimport { Aula10Ex1Component } from './viewer/aula10-ex1/aula10-ex1.component';\nimport { Aula10Ex3Component } from './viewer/aula10-ex3/aula10-ex3.component';\nimport { Aula12Ex6Component } from './viewer/aula12-ex6/aula12-ex6.component';\nimport { ProductionTimeComponent } from './viewer/production-time/production-time.component';\n\n\nexport const ExerciciosRoutes: Routes = [\n {\n path: 'gestao',\n component: GestaoVisualizadorComponent,\n children: [\n // { path: '', redirectTo: 'resumo', component: GestaoResumoComponent },\n { path: 'resumo', component: GestaoResumoComponent },\n { path: 'exercicio1', component: Exercicio1Component },\n { path: 'calculadora-financeira', component: CalculadoraFinanceiraComponent },\n { path: 'como-resolver-dividas', component: ComoResolverDividasComponent },\n { path: 'trabalhar-pra-ganhar', component: TrabalharPraGanharComponent },\n { path: 'meu-cliente', component: MeuClienteComponent },\n { path: 'semana', component: SemanaComponent },\n { path: 'aula10/exercicio1', component: Aula10Ex1Component },\n { path: 'aula10/exercicio3', component: Aula10Ex3Component },\n { path: 'aula12/exercicio6', component: Aula12Ex6Component },\n { path: 'tempo-de-producao', component: ProductionTimeComponent }\n ]\n }\n\n];\n","import { Component, OnInit } from '@angular/core';\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\ndeclare const $: any;\n\n//Metadata\nexport interface RouteInfo {\n path: string;\n title: string;\n type: string;\n icontype: string;\n collapse?: string;\n children?: ChildrenItems[];\n}\n\nexport interface ChildrenItems {\n path: string;\n title: string;\n ab: string;\n type?: string;\n}\n\n//Menu Items\nexport const ROUTES: RouteInfo[] = [\n {\n path: 'resumo',\n title: 'Ínicio',\n type: 'link',\n icontype: 'flaticon-home'\n },\n // desativado a pedido do edu\n /*\n {\n path: 'exercicio1',\n title: 'Ficha de canais de venda',\n type: 'link',\n icontype: 'flaticon-tabs'\n },\n */\n {\n path: 'calculadora-financeira',\n title: 'Calculadora financeira',\n type: 'link',\n icontype: 'flaticon-calculator'\n },{\n path: 'como-resolver-dividas',\n title: 'Como resolver minhas dívidas?',\n type: 'link',\n icontype: 'flaticon-check'\n },{\n path: 'trabalhar-pra-ganhar',\n title: 'Quanto trabalhar para ganhar?',\n type: 'link',\n icontype: 'flaticon-tabs'\n },{\n path: 'meu-cliente',\n title: 'Vamos definir agora quem que é o seu cliente',\n type: 'link',\n icontype: 'flaticon-calculator'\n },{\n path: 'semana',\n title: 'Calculadora da semana',\n type: 'link',\n icontype: 'flaticon-check'\n },{\n path: 'tempo-de-producao',\n title: 'Tempo de Produção',\n type: 'link',\n icontype: 'flaticon-check'\n }\n];\n\n@Component({\n selector: 'app-gestao-sidebar',\n templateUrl: 'gestao-sidebar.component.html',\n styleUrls: ['./gestao-sidebar.component.css']\n})\n\nexport class GestaoSidebarComponent implements OnInit {\n public menuItems: any[];\n\n isMobileMenu() {\n if ($(window).width() > 991) {\n return false;\n }\n return true;\n };\n\n ngOnInit() {\n this.menuItems = ROUTES.filter(menuItem => menuItem);\n }\n updatePS(): void {\n if (window.matchMedia(`(min-width: 960px)`).matches && !this.isMac()) {\n const elemSidebar = <HTMLElement>document.querySelector('.sidebar .sidebar-wrapper');\n }\n }\n isMac(): boolean {\n let bool = false;\n if (navigator.platform.toUpperCase().indexOf('MAC') >= 0 || navigator.platform.toUpperCase().indexOf('IPAD') >= 0) {\n bool = true;\n }\n return bool;\n }\n\n}\n","import { Component, OnInit, ViewChild, ElementRef, Directive, Renderer2 } from '@angular/core';\nimport { ROUTES } from '../gestao-sidebar/gestao-sidebar.component';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { Location, LocationStrategy, PathLocationStrategy } from '@angular/common';\nconst misc: any = {\n navbar_menu_visible: 0,\n active_collapse: true,\n disabled_collapse_init: 0,\n};\n\ndeclare var $: any;\n@Component({\n selector: 'app-gestao-navbar',\n templateUrl: 'gestao-navbar.component.html',\n styleUrls: ['./gestao-navbar.component.css']\n})\n\nexport class GestaoNavbarComponent implements OnInit {\n private listTitles: any[];\n location: Location;\n private nativeElement: Node;\n private toggleButton: any;\n private sidebarVisible: boolean;\n\n @ViewChild('app-gestao-navbar',{static:false}) button: any;\n\n constructor(location: Location, private renderer: Renderer2, private element: ElementRef) {\n this.location = location;\n this.nativeElement = element.nativeElement;\n this.sidebarVisible = false;\n }\n\n ngOnInit() {\n this.listTitles = ROUTES.filter(listTitle => listTitle);\n\n const navbar: HTMLElement = this.element.nativeElement;\n this.toggleButton = navbar.getElementsByClassName('navbar-toggle')[0];\n if ($('body').hasClass('sidebar-mini')) {\n misc.sidebar_mini_active = true;\n }\n if ($('body').hasClass('hide-sidebar')) {\n misc.hide_sidebar_active = true;\n }\n $('#minimizeSidebar').click(function() {\n if (misc.sidebar_mini_active === true) {\n $('body').removeClass('sidebar-mini');\n misc.sidebar_mini_active = false;\n\n } else {\n setTimeout(function() {\n $('body').addClass('sidebar-mini');\n\n misc.sidebar_mini_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function() {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function() {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n $('#hideSidebar').click(function() {\n if (misc.hide_sidebar_active === true) {\n setTimeout(function() {\n $('body').removeClass('hide-sidebar');\n misc.hide_sidebar_active = false;\n }, 300);\n setTimeout(function () {\n $('.sidebar').removeClass('animation');\n }, 600);\n $('.sidebar').addClass('animation');\n\n } else {\n setTimeout(function() {\n $('body').addClass('hide-sidebar');\n // $('.sidebar').addClass('animation');\n misc.hide_sidebar_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function() {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function() {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n }\n isMobileMenu() {\n if ($(window).width() < 991) {\n return false;\n }\n return true;\n };\n sidebarOpen() {\n const toggleButton = this.toggleButton;\n const body = document.getElementsByTagName('body')[0];\n setTimeout(function(){\n toggleButton.classList.add('toggled');\n }, 500);\n body.classList.add('nav-open');\n\n this.sidebarVisible = true;\n };\n sidebarClose() {\n const body = document.getElementsByTagName('body')[0];\n this.toggleButton.classList.remove('toggled');\n this.sidebarVisible = false;\n body.classList.remove('nav-open');\n };\n sidebarToggle() {\n // const toggleButton = this.toggleButton;\n // const body = document.getElementsByTagName('body')[0];\n if (this.sidebarVisible === false) {\n this.sidebarOpen();\n } else {\n this.sidebarClose();\n }\n };\n\n getTitle() {\n let titlee: any = this.location.prepareExternalUrl(this.location.path());\n for (let i = 0; i < this.listTitles.length; i++) {\n if (this.listTitles[i].type === \"link\" && this.listTitles[i].path === titlee) {\n return this.listTitles[i].title;\n } else if (this.listTitles[i].type === \"sub\") {\n for (let j = 0; j < this.listTitles[i].children.length; j++) {\n let subtitle = this.listTitles[i].path + '/' + this.listTitles[i].children[j].path;\n if (subtitle === titlee) {\n return this.listTitles[i].children[j].title;\n }\n }\n }\n }\n return '';\n }\n getPath() {\n return this.location.prepareExternalUrl(this.location.path());\n }\n}\n","import {Component, OnInit, Input, EventEmitter, Output} from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'app-viewer-gestao',\n templateUrl: './viewer.component.html',\n styleUrls: ['../gestao-visualizador.component.css']\n})\n\nexport class ViewerGestaoComponent implements OnInit {\n\n urlArray: Array<string>;\n index: number;\n\n constructor(private _router: Router ) {\n this.urlArray = [\n '/visualizador/gestao/resumo',\n\n // '/visualizador/gestao/exercicio1',\n\n '/visualizador/gestao/calculadora-financeira',\n '/visualizador/gestao/como-resolver-dividas',\n '/visualizador/gestao/trabalhar-pra-ganhar',\n '/visualizador/gestao/meu-cliente',\n '/visualizador/gestao/semana',\n '/visualizador/gestao/tempo-de-producao',\n ]\n }\n\n next() {\n this._router.navigate([this.urlArray[this.index + 1]]);\n this.index++;\n }\n\n previous() {\n this._router.navigate([this.urlArray[this.index - 1]]);\n this.index--;\n }\n\n ngOnInit() {\n this.index = this.urlArray.indexOf(this._router.url);\n }\n\n}\n","import { Component } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\n\n@Component({\n selector: 'app-exercicio1-tab1',\n templateUrl: './exercicio1-tab1.component.html',\n styleUrls: ['../../../gestao-visualizador.component.css', '../exercicio1.component.css']\n})\n\nexport class Exercicio1Tab1Component {\n\n groups = [\n {\n \"name\": \"Feiras Locais e Regionais\",\n \"perguntas\": [\n \"Consegue fazer pesquisa das feiras existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do público que visita essas feiras?\",\n \"Consegue oferecer produtos que esse perfil de cliente gostaria de comprar?\",\n \"Tem capacidade para montar stand de vendas decorado e organizado?\",\n \"Dispõe de vendedora cativante e simpática?\",\n \"Tem recurso para pagar taxa de inscrição ou taxa pelo espaço?\",\n \"Possui máquina de cartão?\",\n \"Possui embalagem bonita que promova o produto?\",\n \"Possui material de divulgação básico como cartão de visita, etiqueta contando a história do produto e folder?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n\n },\n\n {\n \"name\": \"Loja Itinerante (bike, carro ou expositor móvel)\",\n \"perguntas\": [\n \"Tem ou sabe como faz para ter o Alvará de Funcionamento?\",\n \"Possui investimento para comprar, adaptar e decorar o veículo?\",\n \"Sabe onde pesquisar referências para a decoração da loja itinerante, bem como apresentação dos produtos dentro dela?\",\n \"Tem uma pessoa que seja motorista/vendedor que, ao mesmo tempo, pilote o veículo, saiba vender e atender bem aos clientes?\",\n \"Possui controles das vendas (caderno ou um sistema no computador) para saber o que vende, quando produzir e quando repor?\",\n \"Tem capacidade de repor os produtos na loja itinerante, com novidades toda semana?\",\n \"Consegue fazer pesquisa das feiras, eventos, locais de grande circulação existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente, saber onde ele está e ir até o mesmo com produtos que ele gostaria de comprar?\",\n \"Possui máquina de cartão?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n {\n \"name\": \"Display\",\n \"perguntas\": [\n \"Possui investimento para montar e decorar o display?\",\n \"Consegue fazer pesquisa dos principais eventos, com grande circulação, que têm a ver com os seus produtos?\",\n \"Consegue ter acesso aos estabelecimentos para negociar a locação do display?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente que frequenta os lugares de exposição?\",\n \"É capaz de se transportar e repor o estoque nos locais de exposição, constantemente?\",\n \"Consegue adaptar os produtos de acordo com as vendas?\",\n \"Possui peças etiquetadas com preços e história do grupo?\",\n \"Possui embalagens?\",\n \"É organizado para controlar as vendas de cada display?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n { \"name\": \"Sua loja dentro de outra loja\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Visitas de Experiência\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda Direta (sacoleiras ou catálogo)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (produtos exclusivos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (aulas)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (festas e eventos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (cenografia)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Vendas pela Internet ou Shopping Online\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Loja Própria\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Lojas\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Navios Turísticos\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] }\n ]\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicio1-tab2',\n templateUrl: './exercicio1-tab2.component.html',\n styleUrls: ['../../../gestao-visualizador.component.css', '../exercicio1.component.css']\n})\n\nexport class Exercicio1Tab2Component {\n groups = [\n {\n \"name\": \"Feiras Locais e Regionais\",\n \"perguntas\": [\n \"Consegue fazer pesquisa das feiras existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do público que visita essas feiras?\",\n \"Consegue oferecer produtos que esse perfil de cliente gostaria de comprar?\",\n \"Tem capacidade para montar stand de vendas decorado e organizado?\",\n \"Dispõe de vendedora cativante e simpática?\",\n \"Tem recurso para pagar taxa de inscrição ou taxa pelo espaço?\",\n \"Possui máquina de cartão?\",\n \"Possui embalagem bonita que promova o produto?\",\n \"Possui material de divulgação básico como cartão de visita, etiqueta contando a história do produto e folder?\"\n ],\n \"resposta\": [\n \"Sim\",\n \"Sim\",\n \"Não\",\n \"Sim\",\n \"Não\",\n \"Não\",\n \"Sim\",\n \"Sim\",\n \"Sim\"\n ]\n },\n\n {\n \"name\": \"Loja Itinerante (bike, carro ou expositor móvel)\",\n \"perguntas\": [\n \"Tem ou sabe como faz para ter o Alvará de Funcionamento?\",\n \"Possui investimento para comprar, adaptar e decorar o veículo?\",\n \"Sabe onde pesquisar referências para a decoração da loja itinerante, bem como apresentação dos produtos dentro dela?\",\n \"Tem uma pessoa que seja motorista/vendedor que, ao mesmo tempo, pilote o veículo, saiba vender e atender bem aos clientes?\",\n \"Possui controles das vendas (caderno ou um sistema no computador) para saber o que vende, quando produzir e quando repor?\",\n \"Tem capacidade de repor os produtos na loja itinerante, com novidades toda semana?\",\n \"Consegue fazer pesquisa das feiras, eventos, locais de grande circulação existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente, saber onde ele está e ir até o mesmo com produtos que ele gostaria de comprar?\",\n \"Possui máquina de cartão?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n {\n \"name\": \"Display\",\n \"perguntas\": [\n \"Possui investimento para montar e decorar o display?\",\n \"Consegue fazer pesquisa dos principais eventos, com grande circulação, que têm a ver com os seus produtos?\",\n \"Consegue ter acesso aos estabelecimentos para negociar a locação do display?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente que frequenta os lugares de exposição?\",\n \"É capaz de se transportar e repor o estoque nos locais de exposição, constantemente?\",\n \"Consegue adaptar os produtos de acordo com as vendas?\",\n \"Possui peças etiquetadas com preços e história do grupo?\",\n \"Possui embalagens?\",\n \"É organizado para controlar as vendas de cada display?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n { \"name\": \"Sua loja dentro de outra loja\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Visitas de Experiência\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda Direta (sacoleiras ou catálogo)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (produtos exclusivos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (aulas)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (festas e eventos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (cenografia)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Vendas pela Internet ou Shopping Online\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Loja Própria\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Lojas\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Navios Turísticos\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] }\n ]\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicio1-tab3',\n templateUrl: './exercicio1-tab3.component.html',\n styleUrls: ['../../../gestao-visualizador.component.css', '../exercicio1.component.css']\n})\n\nexport class Exercicio1Tab3Component {\n channels = [\n { \"name\":\"Feiras Locais e Regionais\", \"note\":\"8\"},\n { \"name\":\"Loja Itinerante (bike, carro ou expositor móvel)\", \"note\":\"3\" },\n { \"name\":\"Display\", \"note\":\"9\"},\n { \"name\":\"Sua loja dentro de outra loja\", \"note\":\"5\" },\n { \"name\":\"Visitas de Experiência\", \"note\":\"6\" },\n { \"name\":\"Venda Direta (sacoleiras ou catálogo)\", \"note\":\"10\"},\n { \"name\":\"Prestação de Serviços (produtos exclusivos)\", \"note\":\"5\"},\n { \"name\":\"Prestação de Serviços (aulas)\", \"note\":\"5\" },\n { \"name\":\"Prestação de Serviços (festas e eventos)\", \"note\":\"3\"},\n { \"name\":\"Prestação de Serviços (cenografia)\" , \"note\":\"3\" },\n { \"name\":\"Vendas pela Internet ou Shopping Online\", \"note\":\"10\" },\n { \"name\":\"Loja Própria\", \"note\":\"8\" },\n { \"name\":\"Venda para Lojas\", \"note\":\"4\" },\n { \"name\":\"Venda para Navios Turísticos\", \"note\":\"5\" }\n ]\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicio1-scenario',\n templateUrl: './scenario.component.html',\n styleUrls: ['../../../gestao-visualizador.component.css', '../exercicio1.component.css']\n})\n\nexport class Exercicio1ScenarioComponent {\n\n}\n","import { Component, OnInit, Input, LOCALE_ID } from '@angular/core';\nimport { BalanceSheet } from '../../../../@core/models/balance-sheet';\nimport { BalanceSheetService } from '../../../../@core/services/balance-sheet.service';\nimport { StringHelper } from '../../../../@core/helpers/string.helper';\n\ndeclare var $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-exercicio2',\n templateUrl: './exercicio2.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', './exercicio2.component.css'],\n providers: [{provide: LOCALE_ID, useValue: \"en-US\"}, BalanceSheetService]\n})\n\nexport class Exercicio2Component implements OnInit {\n\n // Máscara para campos do form.\n maskCellphone: any[] = ['(', /[1-9]/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/];\n maskLandline: any[] = ['(', /[1-9]/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/];\n maskCPF: any[] = [/[0-9]/, /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/];\n maskCNPJ: any[] = [/[0-9]/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '/', /[0]/, /[0]/, /[0]/, /[1]/, '-', /\\d/, /\\d/];\n maskZipCode: any[] = ['(', /[1-9]/, /\\d/, ')', ' ', /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/];\n maskDate: any[] = [ /[0-9]/, /\\d/, '/', /[0-9]/, /\\d/, '/', /[0-9]/, /\\d/, /\\d/, /\\d/ ];\n\n @Input() editor: boolean;\n\n public inputArray: Array<BalanceSheet>;\n public outputArray: Array<BalanceSheet>;\n\n public input: BalanceSheet;\n public inputBtnBlock: boolean;\n\n public output: BalanceSheet;\n public outputBtnBlock: boolean;\n\n public transactionSelected: BalanceSheet;\n public updateModalSending: boolean;\n\n public total = {\n input: 0,\n output: 0\n };\n\n public balanceArray: Array<BalanceSheet>;\n\n constructor(\n public _balanceSheetService: BalanceSheetService\n ) {\n this.input = new BalanceSheet().populate({\n type: 'input',\n });\n this.inputBtnBlock = false;\n\n this.output = new BalanceSheet().populate({\n type: 'output',\n });\n this.outputBtnBlock = false;\n\n this.updateModalSending = false;\n\n this.transactionSelected = new BalanceSheet();\n }\n\n ngOnInit() {\n this.balanceArray = [];\n this.inputArray = [];\n this.outputArray = [];\n\n this._balanceSheetService.collection()\n .then((result) => {\n this.balanceArray = result;\n this.calcBalance();\n });\n }\n\n calcBalance() {\n this.inputArray = [];\n this.outputArray = [];\n\n this.total.input = 0;\n this.total.output = 0;\n\n for(let balancesheet of this.balanceArray) {\n if(balancesheet.type === 'input') {\n this.total.input += balancesheet.amount;\n this.inputArray.push(balancesheet);\n }\n if(balancesheet.type === 'output') {\n this.total.output += balancesheet.amount;\n this.outputArray.push(balancesheet);\n }\n }\n }\n\n onInputSubmit() {\n this.inputBtnBlock = true;\n\n this.input.id = StringHelper.generate(32);\n\n this.balanceArray.push(this.input);\n\n this.input = new BalanceSheet().populate({\n type: 'input',\n });\n\n this.inputBtnBlock = false;\n\n this.calcBalance();\n }\n\n onOutputSubmit() {\n this.outputBtnBlock = true;\n\n this.output.id = StringHelper.generate(32);\n\n this.balanceArray.push(this.output);\n this.output = new BalanceSheet().populate({\n type: 'output',\n });\n this.outputBtnBlock = false;\n\n this.calcBalance();\n }\n\n balanceSheetRemove(balanceSheet: BalanceSheet) {\n\n swal({\n title: 'Você quer apagar essa transação?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n const index = this.balanceArray.indexOf(balanceSheet);\n this.balanceArray.splice(index, 1);\n\n this.calcBalance();\n },\n (cancel) => {}\n );\n }\n\n balanceSheetUpdate(balanceSheet: BalanceSheet) {\n this.transactionSelected = Object.assign({}, balanceSheet);\n $('#updateModal').modal();\n }\n\n transactionUpdate() {\n this.updateModalSending = true;\n\n const item = this.balanceArray.find((item) => {\n return item.id == this.transactionSelected.id\n });\n\n const index = this.balanceArray.indexOf(item);\n\n this.balanceArray[index] = this.transactionSelected;\n\n this.calcBalance();\n\n this.updateModalSending = false;\n\n $('#updateModal').modal('toggle');\n }\n\n save() {\n this._balanceSheetService.persist(this.balanceArray)\n .subscribe((res) => {\n console.log(res);\n });\n }\n\n}\n","import { Component, OnInit } from '@angular/core';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\n\ndeclare var $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-exercicio2_3',\n templateUrl: './exercicio2_3.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'exercicio2_3.component.css'],\n providers: [ExercisesService]\n})\n\nexport class Exercicio2_3Component implements OnInit {\n\n public debtArray: Array<Debt>;\n public form: Debt;\n public debtSelected: Debt;\n public updateModalSending: boolean;\n public btnBlock: boolean;\n\n public status: string;\n\n public exercise = '2_3';\n\n constructor(private _exerciseService: ExercisesService) {\n }\n\n ngOnInit() {\n this.updateModalSending = false;\n this.btnBlock = false;\n this.form = new Debt;\n this.debtSelected = new Debt;\n this.status = '';\n\n this.getDebit();\n }\n\n getDebit() {\n this._exerciseService.last(this.exercise).subscribe((res:any) => {\n this.debtArray = res.data[0].value;\n });\n }\n\n update(debt: Debt) {\n this.debtSelected = Object.assign({}, debt);\n $('#updateModal').modal();\n }\n\n debtUpdate() {\n this.updateModalSending = true;\n\n const item = this.debtArray.find((item) => {\n return item.id == this.debtSelected.id\n });\n\n const index = this.debtArray.indexOf(item);\n\n this.debtArray[index] = this.debtSelected;\n\n this.updateModalSending = false;\n\n this.debtSelected = new Debt;\n\n $('#updateModal').modal('toggle');\n }\n\n onSubmit() {\n this.btnBlock = true;\n\n this.form.id = this.debtArray.length + 1;\n\n this.debtArray.push(this.form);\n\n this.form = new Debt;\n\n this.btnBlock = false;\n }\n\n remove(debt: Debt) {\n swal({\n title: 'Você quer apagar esse débito?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n const index = this.debtArray.indexOf(debt);\n this.debtArray.splice(index, 1);\n },\n (cancel) => {}\n );\n };\n\n save() {\n\n swal('Salvo com sucesso', 'Seu plano para pagamento de dívidas foi salvo', 'success');\n\n const data = {\n \"exercises_id\": this.exercise,\n \"value\": this.debtArray\n };\n this._exerciseService.save(data)\n .subscribe((res) => {\n console.log(res);\n });\n }\n\n\n}\n\nclass Debt {\n public id: number;\n public description: string;\n public amount: string;\n public plan: string;\n\n populate(data: any) {\n this.id = data.id;\n this.description = data.description;\n this.amount = data.amount;\n this.plan = data.plan;\n }\n}\n","import { Component, OnInit } from '@angular/core';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\n\ndeclare var swal: any;\n\n@Component({\n selector: 'app-exercicio3',\n templateUrl: './exercicio3.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'exercicio3.component.css'],\n providers: [ExercisesService]\n})\n\nexport class Exercicio3Component implements OnInit{\n\n public values;\n\n public resultA;\n public resultB;\n public resultC;\n public resultD;\n\n public exercise: string = '3';\n\n constructor(public _exercisesService: ExercisesService) {\n this.values = {\n A: 0,\n B: 0,\n C: 0,\n D: 0,\n E: 0\n };\n }\n\n ngOnInit() {\n this.getLast();\n this.calc();\n }\n\n getLast() {\n this._exercisesService.last(this.exercise).subscribe((res:any) => {\n if(res.data.length > 0 && res.data[0].value) {\n this.values = res.data[0].value;\n this.calc();\n }\n });\n }\n\n calc() {\n this.resultA = this.filter(this.values.A * this.values.B);\n this.resultB = this.filter(this.values.C + this.values.D + this.resultA);\n this.resultC = Math.round(this.filter(this.resultB / this.values.E));\n this.resultD = Math.round(this.filter(this.resultC / this.values.A));\n }\n\n filter(value: any): number {\n return isNaN(parseInt(value)) ? 0 : value;\n }\n\n save() {\n const data = {\n exercises_id: this.exercise, \n value: this.values\n };\n\n swal('Salvo com sucesso', 'Seu plano foi salvo com sucesso', 'success');\n\n this._exercisesService.save(data).subscribe((res:any) => {\n console.log(res);\n });\n }\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicio4',\n templateUrl: './exercicio4.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'exercicio4.component.css']\n})\n\nexport class Exercicio4Component{\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicio5',\n templateUrl: './exercicio5.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'exercicio5.component.css']\n})\n\nexport class Exercicio5Component{\n domesticas = [\n {value: '30 Min.', viewValue: '30 Min.'},\n {value: '1 Hora', viewValue: '1 Hora'},\n {value: '2 Horas', viewValue: '2 Horas'},\n {value: '3 Horas', viewValue: '3 Horas'}\n ];\n\n consulta = [\n {value: '30 Min.', viewValue: '30 Min.'},\n {value: '1 Hora', viewValue: '1 Hora'},\n {value: '2 Horas', viewValue: '2 Horas'},\n {value: '3 Horas', viewValue: '3 Horas'}\n ];\n\n trabalho = [\n {value: '30 Min.', viewValue: '30 Min.'},\n {value: '1 Hora', viewValue: '1 Hora'},\n {value: '2 Horas', viewValue: '2 Horas'},\n {value: '3 Horas', viewValue: '3 Horas'}\n ];\n\n extras = [\n {value: '30 Min.', viewValue: '30 Min.'},\n {value: '1 Hora', viewValue: '1 Hora'},\n {value: '2 Horas', viewValue: '2 Horas'},\n {value: '3 Horas', viewValue: '3 Horas'}\n ];\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { RouterModule } from '@angular/router';\nimport { registerLocaleData } from '@angular/common';\nimport { ExerciciosRoutes } from './gestao-visualizador.routing';\nimport { GestaoSidebarComponent } from './gestao-sidebar/gestao-sidebar.component';\nimport { GestaoNavbarComponent } from './gestao-navbar/gestao-navbar.component';\nimport { GestaoVisualizadorComponent } from './gestao-visualizador.component';\n\nimport localePt from '@angular/common/locales/pt';\nimport { ViewerGestaoComponent } from './viewer/viewer.component';\nimport { GestaoResumoComponent } from './viewer/resumo/resumo.component';\nimport { Aula10Ex1Component } from './viewer/aula10-ex1/aula10-ex1.component';\nimport { Aula10Ex3Component } from './viewer/aula10-ex3/aula10-ex3.component';\nimport { Aula12Ex6Component } from './viewer/aula12-ex6/aula12-ex6.component';\nimport { Exercicio1Component } from './viewer/exercicio1/exercicio1.component';\nimport { CalculadoraFinanceiraComponent } from './viewer/calculadora-financeira/calculadora-financeira.component';\nimport { ComoResolverDividasComponent } from './viewer/como-resolver-dividas/como-resolver-dividas.component';\nimport { TrabalharPraGanharComponent } from './viewer/trabalhar-pra-ganhar/trabalhar-pra-ganhar.component';\nimport { MeuClienteComponent } from './viewer/meu-cliente/meu-cliente.component';\nimport { SemanaComponent } from './viewer/semana/semana.component';\nimport { Exercicio1Tab1Component } from './viewer/exercicio1/tab1/exercicio1-tab1.component';\nimport { Exercicio1Tab2Component } from './viewer/exercicio1/tab2/exercicio1-tab2.component';\nimport { Exercicio1Tab3Component } from './viewer/exercicio1/tab3/exercicio1-tab3.component';\nimport { Exercicio1ScenarioComponent } from './viewer/exercicio1/scenario/scenario.component';\nimport { ProductionTimeComponent } from './viewer/production-time/production-time.component';\nimport { Exercicio2Component } from './viewer/exercicio2/exercicio2.component';\nimport { Exercicio2_3Component } from './viewer/exercicio2_3/exercicio2_3.component';\nimport { Exercicio3Component } from './viewer/exercicio3/exercicio3.component';\nimport { Exercicio4Component } from './viewer/exercicio4/exercicio4.component';\nimport { Exercicio5Component } from './viewer/exercicio5/exercicio5.component';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatOptionModule } from '@angular/material/core';\nimport { MatSelectModule } from '@angular/material/select';\nregisterLocaleData(localePt);\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(ExerciciosRoutes),\n ReactiveFormsModule,\n FormsModule,\n MatStepperModule,\n MatFormFieldModule,\n MatTooltipModule,\n MatDatepickerModule,\n MatOptionModule,\n MatSelectModule\n ],\n declarations: [\n GestaoVisualizadorComponent,\n GestaoSidebarComponent,\n GestaoNavbarComponent,\n ViewerGestaoComponent,\n GestaoResumoComponent,\n Aula10Ex1Component,\n Aula10Ex3Component,\n Aula12Ex6Component,\n Exercicio1Component,\n CalculadoraFinanceiraComponent,\n ComoResolverDividasComponent,\n TrabalharPraGanharComponent,\n MeuClienteComponent,\n SemanaComponent,\n Exercicio1Tab1Component,\n Exercicio1Tab2Component,\n Exercicio1Tab3Component,\n Exercicio1ScenarioComponent,\n ProductionTimeComponent,\n Exercicio2Component,\n Exercicio2_3Component,\n Exercicio3Component,\n Exercicio4Component,\n Exercicio5Component\n ],\n exports: [\n GestaoVisualizadorComponent,\n GestaoSidebarComponent,\n GestaoNavbarComponent,\n ViewerGestaoComponent,\n GestaoResumoComponent,\n Aula10Ex1Component,\n Aula10Ex3Component,\n Aula12Ex6Component,\n Exercicio1Component,\n CalculadoraFinanceiraComponent,\n ComoResolverDividasComponent,\n TrabalharPraGanharComponent,\n MeuClienteComponent,\n SemanaComponent,\n Exercicio1Tab1Component,\n Exercicio1Tab2Component,\n Exercicio1Tab3Component,\n Exercicio1ScenarioComponent,\n ProductionTimeComponent,\n Exercicio2Component,\n Exercicio2_3Component,\n Exercicio3Component,\n Exercicio4Component,\n Exercicio5Component\n ],\n})\nexport class ExerciciosModule {\n\n}\n","import { Component, Inject, Input, Output, EventEmitter, OnInit } from '@angular/core';\n\n// Start Rating Component\n@Component({\n selector: 'app-studio-modal-rating-star',\n templateUrl: './star-component.html',\n styleUrls: ['../studio-modal-rating.component.css']\n})\nexport class StudioStarRatingComponent implements OnInit {\n @Input() score;\n @Input() maxScore = 5;\n @Input() forDisplay = false;\n @Output() rateChanged = new EventEmitter();\n\n textNivel;\n range = [];\n marked = -1;\n\n constructor() { }\n\n ngOnInit() {\n for (let i = 0; i < this.maxScore; i++) {\n this.range.push(i);\n }\n }\n\n public mark = (index: number) => {\n this.marked = this.marked === index ? index - 1 : index;\n this.score = this.marked + 1;\n this.textNivel = '';\n\n this.rateChanged.next(this.score);\n\n const feedback = {\n 1: 'Detestei',\n 2: 'Não gostei',\n 3: 'Razoável',\n 4: 'Gostei',\n 5: 'Incrível'\n };\n\n if (feedback[this.score]) {\n this.textNivel = feedback[this.score];\n }\n\n }\n\n public isMarked = (index: number) => {\n if (!this.forDisplay) {\n if (index <= this.marked) {\n return 'selected-start';\n } else {\n return 'no-selected-start';\n }\n } else {\n if (this.score >= index + 1) {\n return 'selected-start';\n } else if (this.score > index && this.score < index + 1) {\n return 'no-selected-start';\n } else {\n return 'no-selected-start';\n }\n }\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { AsapViewerComponent } from './asap-viewer.component';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { AssessmentVisualizadorModule } from './visualizador/assessment-visualizador/assessment-visualizador.module';\nimport { BannerModule } from './banner/banner.module';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { PipesModule } from './@core/pipes/pipe.module';\nimport { SpinnerModule } from './shared/spinner/spinner.module';\nimport { EditorComponentsModule } from './editor/components/editor.components.module';\nimport { CursoVisualizadorComponent } from './visualizador/curso-visualizador/curso-visualizador.component';\nimport { CursoNavbarComponent } from './visualizador/curso-visualizador/curso-navbar/curso-navbar.component';\nimport { CursoSidebarComponent } from './visualizador/curso-visualizador/curso-sidebar/curso-sidebar.component';\nimport { ViewerComponent } from './visualizador/curso-visualizador/viewer/viewer.component';\nimport { MiniCursoVisualizadorComponent } from './visualizador/mini-curso-visualizador/mini-curso-visualizador.component';\nimport { MiniCursoSidebarComponent } from './visualizador/mini-curso-visualizador/curso-sidebar/mini-curso-sidebar.component';\nimport { MiniCursoSideMenuComponent } from './visualizador/mini-curso-visualizador/mini-sidemenu/mini-sidemenu.component';\nimport { MiniCursoNavbarComponent } from './visualizador/mini-curso-visualizador/curso-navbar/mini-curso-navbar.component';\nimport { MiniViewerComponent } from './visualizador/mini-curso-visualizador/viewer/mini-viewer.component';\nimport { MiniModalTrilhaBanner } from './visualizador/mini-curso-visualizador/banner-modal/mini-banner-modal-component';\nimport { MiniSliderComponent } from './visualizador/mini-curso-visualizador/slider/slider.component';\nimport { ModalStarRatingComponent } from './visualizador/modal-rating/modal-rating.component';\nimport { StarRatingComponent } from './visualizador/modal-rating/star-rating/star-component';\nimport { modalTrilhaBanner } from './visualizador/curso-visualizador/banner-modal/banner-modal-component';\nimport { CommentsComponent } from './visualizador/mini-curso-visualizador/comment/comment.component';\nimport { VisualizarForumComponent } from './visualizador/mini-curso-visualizador/forum/question.component';\nimport { PointsComponent } from './shared/points/points.component';\nimport { AsapViewerRoutes } from './asap-viewer.routing';\nimport { ExercisesComponent } from './visualizador/exercicios/exercicios.component';\nimport { PrecificacaoVisualizadorComponent } from './visualizador/precificacao-visualizador/precificacao-visualizador.component';\nimport { PrecificacaoSidebarComponent } from './visualizador/precificacao-visualizador/precificacao-sidebar/precificacao-sidebar.component';\nimport { PrecificacaoNavbarComponent } from './visualizador/precificacao-visualizador/precificacao-navbar/precificacao-navbar.component';\nimport { ViewerPrecificacaoComponent } from './visualizador/precificacao-visualizador/viewer/viewer.component';\nimport { ProdutosComponent } from './visualizador/precificacao-visualizador/viewer/produtos/produtos.component';\nimport { NovoProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/novo/novo-produto.component';\nimport { VisualizarProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/visualizar-produto.component';\nimport { VisualizarResumoProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/resumo/visualizar-resumo-produto.component';\nimport { VisualizarMateriaisProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/materiais/visualizar-materiais-produto.component';\nimport { VisualizarMaoObraProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/mao-obra/visualizar-mao-obra-produto.component';\nimport { ModalMaoObraProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/mao-obra/modal/modal.mao-de-obra.component';\nimport { VisualizarFornecedorProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/fornecedor/visualizar-fornecedor-produto.component';\nimport { VisualizarCalcularProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/calcular/visualizar-calcular-produto.component';\nimport { ViabilidadeComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/viabilidade.component';\nimport { CustosFixosComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/custos-fixos/custos-fixos.component';\nimport { ModalCustosComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/custos-fixos/modal/modal.custos-fixos.component';\nimport { PedidosComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/pedidos.component';\nimport { ModalResumoComponent } from './visualizador/precificacao-visualizador/viewer/modal-resumo/modal-resumo.component';\nimport { MeusPedidosComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/meus-pedidos/meus-pedidos.component';\nimport { ModalEdit } from './visualizador/precificacao-visualizador/viewer/pedidos/calculo/modal/modal.calculo-pedido.component';\nimport { DadosPedidoComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/dados-pedido/dados-pedido.component';\nimport { CalculoPedidoComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/calculo/calculo-pedido.component';\nimport { CustosComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/custos/custos.component';\nimport { ComprasComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/compras/compras.component';\nimport { CustosVariaveisComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/custos-variaveis/custos-variaveis.component';\nimport { ModalFaturamentoEstimadoComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/faturamento-estimado/modal/modal.faturamento-estimado.component';\nimport { FaturamentoEstimadoComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/faturamento-estimado/faturamento-estimado.component';\nimport { MaterialPipe } from './visualizador/precificacao-visualizador/pipes/material.pipe';\nimport { ExerciciosModule } from './visualizador/gestao-visualizador/gestao-visualizador.module';\nimport { AsapLimitToModule } from 'asap-limit-to';\nimport { MaterialModule } from './material.module';\nimport { AsapImagePipeModule } from 'asap-image-pipe';\nimport { AsapSkeletonModule } from 'asap-skeleton';\nimport { AsapGlobalCommentsModule } from 'asap-global-comments';\nimport { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';\nimport { StudioVisualizadorComponent } from './visualizador/studio-visualizador/studio-visualizador.component';\nimport { StudioModalStarRatingComponent } from './visualizador/studio-visualizador/studio-modal-rating/studio-modal-rating.component';\nimport { StudioStarRatingComponent } from './visualizador/studio-visualizador/studio-modal-rating/star-rating/star-component';\nimport { MomentModule } from 'ngx-moment';\n\nconst declareAndExport = [\n AsapViewerComponent,\n CursoVisualizadorComponent,\n CursoNavbarComponent,\n CursoSidebarComponent,\n modalTrilhaBanner,\n ModalStarRatingComponent,\n ViewerComponent,\n MiniCursoVisualizadorComponent,\n MiniCursoSidebarComponent,\n MiniCursoSideMenuComponent,\n MiniCursoNavbarComponent,\n MiniViewerComponent,\n MiniModalTrilhaBanner,\n MiniSliderComponent,\n StarRatingComponent,\n PrecificacaoVisualizadorComponent,\n PrecificacaoSidebarComponent,\n PrecificacaoNavbarComponent,\n ViewerPrecificacaoComponent,\n ProdutosComponent,\n NovoProdutoComponent,\n VisualizarProdutoComponent,\n VisualizarResumoProdutoComponent,\n VisualizarMateriaisProdutoComponent,\n VisualizarMaoObraProdutoComponent,\n ModalMaoObraProdutoComponent,\n VisualizarFornecedorProdutoComponent,\n VisualizarCalcularProdutoComponent,\n ViabilidadeComponent,\n CustosFixosComponent,\n ModalCustosComponent,\n PedidosComponent,\n ModalResumoComponent,\n MeusPedidosComponent,\n ModalEdit,\n DadosPedidoComponent,\n CalculoPedidoComponent,\n CustosComponent,\n ComprasComponent,\n CustosVariaveisComponent,\n ModalFaturamentoEstimadoComponent,\n FaturamentoEstimadoComponent,\n MaterialPipe,\n CommentsComponent,\n VisualizarForumComponent,\n PointsComponent,\n ExercisesComponent,\n ModalStarRatingComponent,\n StudioVisualizadorComponent,\n StudioStarRatingComponent,\n StudioModalStarRatingComponent,\n];\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(AsapViewerRoutes),\n FormsModule,\n ReactiveFormsModule,\n MaterialModule,\n ExerciciosModule,\n AssessmentVisualizadorModule,\n EditorComponentsModule,\n BannerModule,\n MomentModule,\n TranslateModule,\n PipesModule,\n SpinnerModule,\n AsapLimitToModule,\n AsapImagePipeModule,\n AsapSkeletonModule,\n AsapGlobalCommentsModule,\n NgxSkeletonLoaderModule\n ],\n declarations: [\n ...declareAndExport\n ],\n exports: [\n ...declareAndExport\n ],\n entryComponents: [\n NovoProdutoComponent,\n ModalMaoObraProdutoComponent,\n ModalFaturamentoEstimadoComponent,\n ModalResumoComponent,\n ModalEdit,\n ModalCustosComponent,\n modalTrilhaBanner,\n MiniModalTrilhaBanner,\n ModalStarRatingComponent,\n StudioModalStarRatingComponent\n ]\n})\nexport class AsapViewerModule { }\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://asap-viewer/lib/asap-viewer.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/detail/detail.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/asessment-report/asessment-report.component.ts","ng://asap-viewer/lib/@core/services/base.service.ts","ng://asap-viewer/lib/@core/services/assessment.service.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/assessment-visualizador.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/assessment-visualizador.routing.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/detail/detail-inner/detail-inner.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/sidebar/sidebar.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/navbar/navbar.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/asessment-report/assessment-report-inner/assessment-report-inner.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/graficos/radar/radar.component.ts","ng://asap-viewer/lib/visualizador/assessment-visualizador/assessment-visualizador.module.ts","ng://asap-viewer/lib/banner/banner.component.ts","ng://asap-viewer/lib/banner/banner.module.ts","ng://asap-viewer/lib/@core/pipes/safe-url.pipe.ts","ng://asap-viewer/lib/@core/pipes/stream.pipe.ts","ng://asap-viewer/lib/@core/pipes/asap-client.pipe.ts","ng://asap-viewer/lib/@core/pipes/youtube-embed.pipe.ts","ng://asap-viewer/lib/@core/pipes/checktype.pipe.ts","ng://asap-viewer/lib/@core/pipes/vimeo-embed.pipe.ts","ng://asap-viewer/lib/@core/pipes/pipe.module.ts","ng://asap-viewer/lib/shared/spinner/spinner.component.ts","ng://asap-viewer/lib/shared/spinner/spinner.module.ts","ng://asap-viewer/lib/shared/file-manager/models/file-manager.model.ts","ng://asap-viewer/lib/shared/file-manager/services/file-manager.service.ts","ng://asap-viewer/lib/shared/file-manager/containers/file-manager/file-manager.component.ts","ng://asap-viewer/lib/shared/file-manager/containers/file-manager-directive/file-manager.directive.ts","ng://asap-viewer/lib/shared/file-manager/file-manager.module.ts","ng://asap-viewer/lib/editor/components/shared/title.component.ts","ng://asap-viewer/lib/editor/components/shared/subtitle.component.ts","ng://asap-viewer/lib/editor/components/shared/button.component.ts","ng://asap-viewer/lib/editor/components/shared/media.component.ts","ng://asap-viewer/lib/editor/components/shared/text.component.ts","ng://asap-viewer/lib/editor/components/shared/shared.module.ts","ng://asap-viewer/lib/editor/components/dynamic-input/dynamic-input.component.ts","ng://asap-viewer/lib/@core/services/trail-content.service.ts","ng://asap-viewer/lib/editor/components/video/video.component.ts","ng://asap-viewer/lib/editor/components/image/image.component.ts","ng://asap-viewer/lib/@core/helpers/string.helper.ts","ng://asap-viewer/lib/@core/models/item-component.ts","ng://asap-viewer/lib/editor/components/image/config/image-config.component.ts","ng://asap-viewer/lib/@core/services/vimeo.service.ts","ng://asap-viewer/lib/@core/helpers/sanitizer.helper.ts","ng://asap-viewer/lib/editor/components/challenge/challenge.component.ts","ng://asap-viewer/lib/editor/components/challenge/config/challenge-config.component.ts","ng://asap-viewer/lib/@core/services/trilha/trilha-performance.service.ts","ng://asap-viewer/lib/@core/services/trilha/trilha.service.ts","ng://asap-viewer/lib/@core/services/trilha/trilha-rating.service.ts","ng://asap-viewer/lib/asap-viewer.service.ts","ng://asap-viewer/lib/editor/components/conclusion/conclusion.component.ts","ng://asap-viewer/lib/editor/components/conclusion/config/conclusion-config.component.ts","ng://asap-viewer/lib/editor/components/star-point/star-point.component.ts","ng://asap-viewer/lib/editor/components/star-point/config/star-point-config.component.ts","ng://asap-viewer/lib/editor/components/dynamic-table/dynamic-table.component.ts","ng://asap-viewer/lib/editor/components/dynamic-table/config/dynamic-table-config.component.ts","ng://asap-viewer/lib/editor/components/intro/intro.component.ts","ng://asap-viewer/lib/editor/components/intro/config/intro-config.component.ts","ng://asap-viewer/lib/editor/components/long-text/long-text.component.ts","ng://asap-viewer/lib/editor/components/long-text/config/long-text-config.component.ts","ng://asap-viewer/lib/editor/components/multichoice/multichoice.component.ts","ng://asap-viewer/lib/editor/components/multiple-questions/multiple-questions.component.ts","ng://asap-viewer/lib/editor/components/multiple-questions/config/multiple-questions-config.component.ts","ng://asap-viewer/lib/editor/components/sales-channel/sales-channel.component.ts","ng://asap-viewer/lib/editor/components/sales-channel/config/sales-channel-config.component.ts","ng://asap-viewer/lib/editor/components/sheet-correct-incorrect/sheet-correct-incorrect.component.ts","ng://asap-viewer/lib/editor/components/sheet-correct-incorrect/config/sheet-correct-incorrect-config.component.ts","ng://asap-viewer/lib/editor/components/yes-no/yes-no.component.ts","ng://asap-viewer/lib/editor/components/yes-no/config/yes-no-config.component.ts","ng://asap-viewer/lib/editor/components/upload/upload.component.ts","ng://asap-viewer/lib/editor/components/upload/config/upload-config.component.ts","ng://asap-viewer/lib/editor/components/download/download.component.ts","ng://asap-viewer/lib/editor/components/download/config/download-config.component.ts","ng://asap-viewer/lib/editor/components/rating/rating.component.ts","ng://asap-viewer/lib/editor/components/rating/config/rating-config.component.ts","ng://asap-viewer/lib/@core/services/forum/forum.service.ts","ng://asap-viewer/lib/@core/services/forum/response.service.ts","ng://asap-viewer/lib/@core/services/forum/forum-vote.service.ts","ng://asap-viewer/lib/editor/components/forum/forum.component.ts","ng://asap-viewer/lib/editor/components/forum/config/forum-config.component.ts","ng://asap-viewer/lib/editor/components/avaliation/avaliation.component.ts","ng://asap-viewer/lib/editor/components/contract/contract.component.ts","ng://asap-viewer/lib/material.module.ts","ng://asap-viewer/lib/editor/components/form-step/form-step.component.ts","ng://asap-viewer/lib/editor/components/pdf/pdf.component.ts","ng://asap-viewer/lib/editor/components/research/research.component.ts","ng://asap-viewer/lib/@core/services/firebase-notification.service.ts","ng://asap-viewer/lib/editor/components/feedback/feedback.component.ts","ng://asap-viewer/lib/editor/components/audio/audio.component.ts","ng://asap-viewer/lib/editor/components/random-questions/random-questions.component.ts","ng://asap-viewer/lib/editor/components/text/text.component.ts","ng://asap-viewer/lib/editor/components/page/page.component.ts","ng://asap-viewer/lib/editor/components/editor.components.module.ts","ng://asap-viewer/lib/@core/services/trailv2.service.ts","ng://asap-viewer/lib/visualizador/curso-visualizador/banner-modal/banner-modal-component.ts","ng://asap-viewer/lib/@core/services/ambiente-virtual.service.ts","ng://asap-viewer/lib/@core/models/banner.model.ts","ng://asap-viewer/lib/@core/services/banner.service.ts","ng://asap-viewer/lib/visualizador/curso-visualizador/curso-visualizador.component.ts","ng://asap-viewer/lib/visualizador/curso-visualizador/curso-navbar/curso-navbar.component.ts","ng://asap-viewer/lib/visualizador/curso-visualizador/curso-sidebar/curso-sidebar.component.ts","ng://asap-viewer/lib/visualizador/modal-rating/modal-rating.component.ts","ng://asap-viewer/lib/visualizador/curso-visualizador/viewer/viewer.component.ts","ng://asap-viewer/lib/@core/services/minicurso/minicurso.service.ts","ng://asap-viewer/lib/@core/services/development/development.service.ts","ng://asap-viewer/lib/@core/services/articles/articles.service.ts","ng://asap-viewer/lib/@core/services/trilha/trilha-item.service.ts","ng://asap-viewer/lib/@core/services/layout.service.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/mini-curso-visualizador.component.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/curso-sidebar/mini-curso-sidebar.component.ts","ng://asap-viewer/lib/@core/services/area-permission.service.ts","ng://asap-viewer/lib/@core/services/tutor/tutor.service.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/mini-sidemenu/mini-sidemenu.component.ts","ng://asap-viewer/lib/@core/services/notifications/notifications.service.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/curso-navbar/mini-curso-navbar.component.ts","ng://asap-viewer/lib/@core/services/minicurso/minicurso-comments.service.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/viewer/mini-viewer.component.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/banner-modal/mini-banner-modal-component.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/slider/slider.component.ts","ng://asap-viewer/lib/visualizador/modal-rating/star-rating/star-component.ts","ng://asap-viewer/lib/@core/services/comments/comments.service.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/comment/comment.component.ts","ng://asap-viewer/lib/@core/services/forum/forum-trilha.service.ts","ng://asap-viewer/lib/visualizador/mini-curso-visualizador/forum/question.component.ts","ng://asap-viewer/lib/@core/helpers/library.helper.ts","ng://asap-viewer/lib/@core/models/trail.ts","ng://asap-viewer/lib/@core/services/trail.service.ts","ng://asap-viewer/lib/shared/points/points.component.ts","ng://asap-viewer/lib/visualizador/exercicios/exercicios.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/precificacao-visualizador.component.ts","ng://asap-viewer/lib/@core/services/precifica/produtos/produtos.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/produtos.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/novo/novo-produto.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/visualizar/visualizar-produto.component.ts","ng://asap-viewer/lib/@core/services/precifica/material/material.service.ts","ng://asap-viewer/lib/@core/services/precifica/mao-obra/mao-obra.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/visualizar/resumo/visualizar-resumo-produto.component.ts","ng://asap-viewer/lib/@core/services/precifica/fornecedor/fornecedor.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/visualizar/materiais/visualizar-materiais-produto.component.ts","ng://asap-viewer/lib/@core/services/precifica/artesan/artesan.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/visualizar/mao-obra/modal/modal.mao-de-obra.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/visualizar/mao-obra/visualizar-mao-obra-produto.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/visualizar/fornecedor/visualizar-fornecedor-produto.component.ts","ng://asap-viewer/lib/@core/services/precifica/calculadora/calculadora.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/produtos/visualizar/calcular/visualizar-calcular-produto.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/pedidos/pedidos.component.ts","ng://asap-viewer/lib/@core/services/precifica/pedido/pedido.service.ts","ng://asap-viewer/lib/@core/services/precifica/pedido/lista-produtos.service.ts","ng://asap-viewer/lib/@core/services/precifica/pedido/valor.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/modal-resumo/modal-resumo.component.ts","ng://asap-viewer/lib/@core/services/loja/pedido.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/pedidos/meus-pedidos/meus-pedidos.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/pedidos/dados-pedido/dados-pedido.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/pedidos/calculo/modal/modal.calculo-pedido.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/pedidos/calculo/calculo-pedido.component.ts","ng://asap-viewer/lib/@core/services/precifica/pedido/transporte.service.ts","ng://asap-viewer/lib/@core/services/precifica/pedido/desc.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/pedidos/custos/custos.component.ts","ng://asap-viewer/lib/@core/services/precifica/pedido/lista.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/pedidos/compras/compras.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/viabilidade/viabilidade.component.ts","ng://asap-viewer/lib/@core/services/precifica/viabilidade/custo.service.ts","ng://asap-viewer/lib/@core/services/precifica/viabilidade/viabilidade.service.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/viabilidade/custos-fixos/modal/modal.custos-fixos.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/viabilidade/custos-fixos/custos-fixos.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/viabilidade/custos-variaveis/custos-variaveis.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/viabilidade/faturamento-estimado/modal/modal.faturamento-estimado.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/viabilidade/faturamento-estimado/faturamento-estimado.component.ts","ng://asap-viewer/lib/visualizador/studio-visualizador/studio-visualizador.service.ts","ng://asap-viewer/lib/visualizador/studio-visualizador/studio-modal-rating/studio-modal-rating.component.ts","ng://asap-viewer/lib/visualizador/studio-visualizador/studio-visualizador.component.ts","ng://asap-viewer/lib/asap-viewer.routing.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/precificacao-sidebar/precificacao-sidebar.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/precificacao-navbar/precificacao-navbar.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/viewer/viewer.component.ts","ng://asap-viewer/lib/visualizador/precificacao-visualizador/pipes/material.pipe.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/gestao-visualizador.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/resumo/resumo.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio1/exercicio1.component.ts","ng://asap-viewer/lib/@core/models/balance-sheet.ts","ng://asap-viewer/lib/@core/services/balance-sheet.service.ts","ng://asap-viewer/lib/@core/services/exercises.service.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/calculadora-financeira/calculadora-financeira.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/como-resolver-dividas/como-resolver-dividas.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/trabalhar-pra-ganhar/trabalhar-pra-ganhar.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/meu-cliente/meu-cliente.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/semana/semana.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/aula10-ex1/aula10-ex1.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/aula10-ex3/aula10-ex3.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/aula12-ex6/aula12-ex6.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/production-time/production-time.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/gestao-visualizador.routing.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/gestao-sidebar/gestao-sidebar.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/gestao-navbar/gestao-navbar.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/viewer.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio1/tab1/exercicio1-tab1.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio1/tab2/exercicio1-tab2.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio1/tab3/exercicio1-tab3.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio1/scenario/scenario.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio2/exercicio2.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio2_3/exercicio2_3.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio3/exercicio3.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio4/exercicio4.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/viewer/exercicio5/exercicio5.component.ts","ng://asap-viewer/lib/visualizador/gestao-visualizador/gestao-visualizador.module.ts","ng://asap-viewer/lib/visualizador/studio-visualizador/studio-modal-rating/star-rating/star-component.ts","ng://asap-viewer/lib/asap-viewer.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__extends","TypeError","String","__","this","constructor","create","__values","o","s","Symbol","iterator","m","i","length","next","value","done","__read","n","r","e","ar","push","error","__spread","arguments","concat","AsapViewerComponent","ngOnInit","Component","args","selector","template","encapsulation","ViewEncapsulation","None","DetailComponent","activatedRoute","getParam","_this","sub","params","subscribe","console","log","formId","goToNextAssessment","event","assessmentSidebar","goToNextAssesment","getAssessmentSelected","assessmentId","assessmentDetail","getAssessment","ActivatedRoute","ViewChild","static","AsessmentReportComponent","BaseService","http","basePath","entityName","host","localStorage","getItem","token","headers","Content-Type","Authorization","Access-Control-Allow-Origin","options","getResources","get","resourceUrl","getResource","id","createResource","data","post","JSON","stringify","updateResource","put","deleteResource","delete","urlParameters","filter","element","join","replace","queryString","placeholder","test","query","router","AssessmentService","httpClient","global","_super","tslib_1.__extends","all","url","apiURL","getHeader","fetch","find","getScore","getReportIndicador","getReportTema","getReportEixo","postConfirmAssessment","banner_id","assessmentBannerViewed","assessment_id","Accept","Injectable","HttpClient","Global","AssessmentVisualizadorComponent","route","_assessmentService","Date","nativeElement","sidebarVisible","navbar","toggleButton","getElementsByClassName","setTimeout","$","removeClass","checkProgressBar","percent","parseInt","increasePercent","increase","increasePercentNav","setItem","sidebarToggle","body","document","getElementsByTagName","classList","add","remove","eventNavBar","$event","providers","ElementRef","Router","AssessmentVisualizadorRoute","path","component","children","DetailInnerComponent","assessmentSendedEvent","EventEmitter","noRegisters","isSubmiting","isFormLocked","assessment","response","Assessment","transform","resposta","err","emit","a","title","subtitle","subTitle","questions","iA","_g","tslib_1.__values","pergunta_tp_a","_h","indA","indicador","nome","pontuacao_indicador","ponderacao","_j","e_2","questoes","_k","q","question","Question","type","form","_l","e_3","opcoes","_m","option","Option","valorA","valor","iB","_o","pergunta_tp_b","_p","indB","_q","e_5","_r","textoUm","textoDois","_s","e_6","_t","valorB1","valorUm","valorB2","valorDois","valorBSelected","onSubmit","valid","answersA","answersB","entity","answers","i2","pergunta_id","res","swal","text","confirmButtonClass","onSubmit__old","formValue","dicToInterable","formValue_1","formValue_1_1","keySplit","key","split","val","indicador_a","indicadorA","indicador_b","indicadorB","PonderacaoAssociadaUm","indicadorPontuacaoA","PonderacaoAssociadaDois","indicadorPontuacaoB","perguntaUm","perguntaDois","answersA_1","answersA_1_1","answerA","assign","answersB_1","answersB_1_1","answerB","dict","Input","Output","SidebarAssessmentComponent","isMobileMenu","window","width","assessmentSelected","getAssessmentList","compare","order","assessmentArray","sort","_b","_c","status","item","indexOf","getNextAction","assessmentArrayLength","unchecked","ass","navigate","index","updatePS","matchMedia","matches","isMac","querySelector","bool","navigator","platform","toUpperCase","Assessment$1","misc","navbar_menu_visible","active_collapse","disabled_collapse_init","NavbarAssessmentComponent","location","renderer","eventNavbar","hasClass","sidebar_mini_active","hide_sidebar_active","click","addClass","simulateWindowResize","setInterval","dispatchEvent","Event","clearInterval","sidebarOpen","sidebarClose","getPath","prepareExternalUrl","goToPrev","goToNext","Location","Renderer2","AssessmentReportInnerComponent","assessmentService","total","icons","themingColor","totalsub","porcentNumber","girls","style","backgroundColor","getUser","result","tema","parseFloat","toFixed","nivel","map","icon","dasharray","color","percentil","name","current","pathLength","Math","PI","loggedUser","parse","loggedInUser","openModal","showModal","closeModal","animations","trigger","transition","animate","group","opacity","RadarComponent","radarChartLabels","radarChartData","label","radarChartType","chartClicked","chartHovered","AssessmentVisualizadorModule","NgModule","imports","CommonModule","RouterModule","forChild","FormsModule","ReactiveFormsModule","declarations","exports","BannerComponent","sanitizer","link","DomSanitizer","BannerModule","SafeUrlPipe","bypassSecurityTrustHtml","bypassSecurityTrustStyle","bypassSecurityTrustScript","bypassSecurityTrustUrl","bypassSecurityTrustResourceUrl","Pipe","StreamPipe","domSanitizer","lu","video","arg","getVideoUri","getVideoThumb","getVideoId","getVideoPoster","isCloudinary","isUrl","includes","isOldServer","AsapClientPipe","setDictionary","dic","dictionary","appName","mainColor","bgSidebar","linkSidebar","bgNavbar","linkNavbar","bgFooter","linkFooter","bgBtn","textBtn","bgSidebarCourse","bgBtnCourse","textBtnCourse","textBtnCourseActive","loginBG","logoLight","logoDark","logoFooter","emblem","bannerHome","bannerPage","intro","YoutubeEmbedPipe","getId","match","CheckTypePipe","isString","string","VimeoEmbedPipe","getVimeoID","PipesModule","SpinnerComponent","translate","message","instant","TranslateService","SpinnerModule","FileManagerModel","apiBaseUrl","populate","uploadFile","formData","FormData","append","file","description","headerOptions","req","HttpRequest","reportProgress","responseType","HttpHeaders","request","getAll","deleteFile","changeFile","FileManagerService","fileManagerModel","serialize","removeFile","findFileCollection","fileManager","FileManagerComponent","_fileManagerService","progress","percentage","loading","findAll","modal","onChange","whiteListUploads","target","files","selectedFile","buttonsStyling","fileType","submit","HttpEventType","UploadProgress","round","loaded","HttpResponse","undefined","fileList","selectFile","deleteFromList","exportAs","FileManagerDirective","Directive","FileManagerModule","TranslateModule","SharedTitleComponent","SharedSubTitleComponent","SharedButtonComponent","button","background","disabled","goNext","SharedMediaComponent","SharedTextComponent","components","ComponentSharedModule","ColorPickerModule","MomentModule","MatSelectModule","MatInputModule","MatStepperModule","MatRadioModule","MatTooltipModule","MatSliderModule","DynamicInputComponent","TrailContentService","getHeaders","updateGrafico","save","update","videoTime","seconds","vote","voto","VideoComponent","_trailContentService","play","timeLapse","disableNextButton","loadYT","YTConfig","l_1","ready","f","setConfig","c","k","createElement","src","async","currentScript","nonce","getAttribute","setAttribute","parentNode","insertBefore","content","check","contentId","notes","source","videoMonitor","idVideo","youtubeParserID","source_path","getElementById","player","YT","Player","videoId","playerVars","autoplay","controls","showinfo","playsinline","enablejsapi","rel","loop","events","onStateChange","timeLapseTimer","getCurrentTime","time","duration","getDuration","videoProgress","iframe","Vimeo","on","ngOnDestroy","showSaved","setCurrentTime","formatTime","currentTime","second","floor","getThumb","changingThisBreaksApplicationSecurity","goPlay","getYoutubeID","urlText","urlResult","ImageComponent","StringHelper","generate","size","possible","charAt","random","ItemComponent","TitleItemComponent","align","italic","bold","underline","VideoItemComponent","mainButton","showVideoControl","allowNext","TextItemComponent","textColor","textSize","textAnimation","textAlign","buttonBgColor","buttonTxtColor","borderWidth","borderStyle","borderRadius","ImageItemComponent","titleSize","PdfItemComponent","ExerciseComponent","exercise","MultiChoiceComponent","feedback","media","PredefinedComponent","ShortTextComponent","ActionAidFormComponent","IntroComponent","animation","image","youtube","vimeo","buttonOptions","settings","layout","ConclusionComponent","featureColor","ChallengeComponent","notes_title","notes_text","medias","button_bg","ChallengeMedia","featured","FormComponent","lines","GroupComponent","GroupForm","selectOptions","subGroups","TableComponent","userActive","countLines","collumns","CollumnTable","MultipleQuestionComponent","MultipleQuestion","MultipleQuestionOption","correct","CorrectIncorrectComponent","feedbackMessage","CorrectIncorrectComponentLines","UploadComponent","titleAnimation","required","StarPointComponent","points","DownloadComponent","iconColor","iconSize","downloadButton","RatingComponent","positive","negative","titleColor","EditorImageConfigComponent","_sanitizer","sendEvent","emitSendEvent","showFileManager","appFileManager","uploadSubmited","getPhoto","VimeoService","vimeoUrl","Promise","resolve","reject","SanitizerHelper","uri","EditorChallengeComponent","_vimeoService","alertShow","btnBlocked","ngAfterViewInit","viewed","setFeatured","videoChanged","checkAllViewed","alert","Sanitizer","thumb","then","sanitize","EditorChallengeConfigComponent","FormControl","notesTitle","notesText","valueChanges","pipe","debounceTime","distinctUntilChanged","setAlign","mediaToManipulate","attr","insertMedia","removeMedia","splice","TrilhaPerformanceService","TrilhaService","TrilhaRatingService","AsapViewerService","providedIn","EditorConclusionComponent","_trilhaService","_trilhaPerformanceService","_trilhaRatingService","viewerService","service","rating","certificateButton","hide","getLoggedUser","param","titulo","routeId","journey_id","snapshot","routeConfig","miniType","getPerformance","ngOnChanges","changes","trail_id","getStageData","metaAtingida","goal_user","goal","retakeCourse","Swal","fire","showCancelButton","confirmButtonText","cancelButtonText","confirm","newRegister","fileRemoved","user_id","certificate","sequence","rightOrWrong","RightOrWrong","CorrectAnswer","WrongAnswer","performance","logo","sessionLoggedUser","badge","arquivo","stageData","onDone","checkEvaluate","loadingEvaluate","checkRequireAvaliation","onNext","require_avaliation","goToUrlCertificate","open","AsapService","display","stagger","animateChild","optional","EditorConclusionConfigComponent","EditorStarPointComponent","toNext","EditorStarPointConfigComponent","EditorDynamicTableComponent","fb","view","generateFormTable","lineArray","arrayControls","_e","_f","FormArray","e_1","_d","FormGroup","items","n_1","e_4","n_1_1","calc","removeView","removeAt","createView","imagePopup","classArray","FormBuilder","EditorDynamicTableConfigComponent","createNewCollumn","removeCollumn","EditorIntroComponent","onLoadError","getUrl","EditorIntroConfigComponent","mediaText","videoUrl","mediaTitle","mediaDescription","EditorLongTextComponent","EditorLongTextConfigComponent","EditorMultiChoiceComponent","listMarkerRoman","listMarkerLetter","listMarkerNumber","blocked","enable","onCheck","selected_1","selected","selectedOption","prop","onSelectionChange","correctOption","verification","feedback_text","messageInError","EditorMultipleQuestionsComponent","storeAnswer","verify","sended","saveAnswer","EditorMultipleQuestionsConfigComponent","insertQuestion","insertOption","questionIndex","removeQuestion","removeOption","indexOption","insertImage","EditorSalesChannelComponent","groups","perguntas","EditorSalesChannelConfigComponent","EditorSheetCorrectIncorrectComponent","EditorSheetCorrectIncorrectConfigComponent","insertLine","removeLine","EditorYesNoComponent","EditorYesNoConfigComponent","EditorUploadComponent","getArchive","EditorUploadConfigComponent","EditorDownloadComponent","download","EditorDownloadConfigComponent","EditorRatingComponent","formatLabel","EditorRatingConfigComponent","ForumService","ForumResponseService","ForumVoteService","ForumComponent","formBuilder","_ForumResponseService","_forumService","_forumVoteService","score","displayRatingScore","moment.locale","formUpdate","getForum","getUserLogged","OnChanges","forum","getResponse","answered","ResetPost","reset","collapse","onRemove","cancel","onClose","disable","onEdit","setValue","updateForm","number","pontos","getHidden","hidden","EditorForumConfigComponent","_forumClientService","forumArray","EditorAvaliationComponent","isPosting","generateForm","getAnswer","control","arr","lineLength","array","col","patchValue","disableUpdate","canChange","canShowSave","this_1","answer_1","opt","EditorContractComponent","readed","accept","onScroll","offsetHeight","scrollTop","scrollHeight","MaterialModule","MatAutocompleteModule","MatButtonModule","MatButtonToggleModule","MatCardModule","MatCheckboxModule","MatChipsModule","MatDatepickerModule","MatDialogModule","MatFormFieldModule","MatExpansionModule","MatGridListModule","MatIconModule","MatListModule","MatMenuModule","MatNativeDateModule","MatPaginatorModule","MatProgressBarModule","MatProgressSpinnerModule","MatRippleModule","MatSidenavModule","MatSlideToggleModule","MatSnackBarModule","MatSortModule","MatTableModule","MatTabsModule","MatToolbarModule","FormStepComponent","steps","forEach","step","normalizeStep","inputArray","tableArray","cols","getArray","showFormError","resetForm","onMatRadioGroupChange","input","controlArrayControls","controlArrayControlsLength","line","setValidators","clearValidators","resetFormControlValidation","markAsPristine","markAsUntouched","updateValueAndValidity","toggle","idx","evt","vIdx","enunciated","visibility_control_value","isArray","EditorPdfComponent","innerPDF","encodeURIComponent","getDecodeURL","decodeURIComponent","onSubmitWithWarning","EditorResearchComponent","listMarker","exibirQuestionario","exibirGrafico","atualizarResultadosGraficoApi","graficoV1","graficoV2","graficov3","graficov4","customOptions","mouseDrag","touchDrag","pullDrag","dots","margin","navSpeed","responsive","0","stagePadding","400","740","940","nav","checkboxClicked","conteudo_id","grafico","fromCharCode","answer","slidePrev","slideCarousel","prev","slideNext","slideNextRadio","parentElement","FirebaseNotificationService","clientFirebaseServer","baseUrlAPI","getTutorConversations","sendTutorConversation","answer_id","FeedbackComponent","trailContentService","firebaseNotification","initialRequest","checkUserAnswer","showAnswer","answerList","next_page_url","nextPageUri","CompanyName","getNextPage","_a","apply","votes","up","down","voteRequest","voteLock","AudioComponent","EditorRandomQuestionsComponent","gabarito","cols_1","fill","findIndex","getRandomArbitrary","max","TextComponent","EditorPageComponent","useIFrame","page_id","loadPage","resizeIframe","normalizeHTML","html","startPosition","endPosition","styleHtml","substring","btoa","unescape","EditorComponentsModule","AsapUploadModule","AsapImagePipeModule","AsapSkeletonModule","NgxSkeletonLoaderModule","CarouselModule","SafePipeModule","Trailv2Service","userClassesInfo","trilhaInfoEtapa","trilhaEtapaItem","complement","modalTrilhaBanner","dialogRef","onNoClick","close","MatDialogRef","Inject","MAT_DIALOG_DATA","AmbienteVirtualService","getEtapasByTrail","idCurso","getByUrl","getBannerByTrail","registerNewProgress","subStepTrail","sub_id","getSubEtapa","getContent","header","getFormUrlEncoded","toConvert","formBody","toConvert_1","toConvert_1_1","property","encodedKey","encodedValue","bannerModel","trilha_id","bannerService","collection","arrayModel","fetchAll","monitoraItem","banner","folderAll","folderDelete","folderPost","getTrails","getAssessments","trailView","verifyBanner","verifyBannerTrilha","moment","CursoVisualizadorComponent","ambienteVirtualService","_bannerService","trailService","dialog","loader","queryParams","getParams","defineProperty","jornada_id","client_id","acesso_jornada","getData","getStepData","verificaBanner","origin","pathname","etapa","dates","available","today","format","date_initial","date_final","bannerArray","openDialog","maxWidth","panelClass","afterClosed","module","fragment","currentIndex","getSubEtapaByEvent","getcurrent","notificate","oldCurrent","orientation","checkAsRead","go","etapa_id","toSeoUrl","cursoViewer","cursoNavBar","setIndexes","previous","item_id","read","scrollTo","actualCourse","indexNextCourse","nextCourse","ref","history","back","newCourse","toString","normalize","toLowerCase","newCurrent","urlAfterViewer","sessionStorage","removeItem","getUrlEscola","escolaUri","idSubStep","MatDialog","CursoNavbarComponent","_router","queryParam","origemUrl","referenceUrl","checkIfAllHaveDoneVar","getPlataform","indexes","sub_etapa_id","getSubEtapaTitulo","menuItems","sub_etapa","journey","menuNavigate","obj","CursoSidebarComponent","_ambienteVirtualService","trailv2Service","displayMenu","material","urlEscola","toggleClass","getEtapas","setMaterialURL","name_etapa","from","to","fromIndex","toIndex","trail","etapaArray","getComplements","complementArray","onEtapaChange","ModalStarRatingComponent","showContinueButtom","onRateChange","jump","comment","owner","end","goToRedirect","redirect","navigateByUrl","goToCertificate","ViewerComponent","eventRefreshSideBar","ratingOpened","itensJson","componentArray","itensJson_1","itensJson_1_1","resetVideoUpdater","updateAt10","updateAt25","updateAt50","updateAt75","updateVideoTime","doUpdateVideoTime","goToAnchor","anchor","top","offset","showButton","emitEvent","ratingEvent","disableClose","MiniTrailService","DevelopmentService","ArticlesService","TrilhaItemService","LayoutService","MiniCursoVisualizadorComponent","_MiniTrailService","_DevelopmentService","_ArticlesService","_trilhaItemService","_layoutService","now","loaderList","playlist","playlistPage","bootstrap","getStepListByIdTrail","getDesign","design","getComponent","main","sidebar","full","mini-etapa","etapa-develop","etapa-artigo","miniStep","helperText","getInfoTrail","idTrail","checkModule","subEtapaID","getPlaylistMini","getPlaylistDevelop","getTrilhaItem","getPlaylistArticles","dataLoadError","getPointsStepListByIdTrail","resources","playlistBuffer","insertVideos","actual","newIndex","allowOutsideClick","playlistCounter","setModule","checkDateBetween","date","getTime","checkDate","partial","slice","playlistItemFinal","MiniCursoSidebarComponent","AreaPermissionService","TutorService","profile","tutor","classes","student","class_id","tutorClass","users","search","clearData","saveClass","addStudent","removeStudent","addTutor","removeTutor","studentExtraData","acerto","erro","percentualAcerto","MiniCursoSideMenuComponent","tutorService","_areaPermissionService","isTutor","areas","NotificationService","MiniCursoNavbarComponent","_NotificationService","getNotification","getTitle","markAsDone","notification","goTo","session","onLogout","MiniTrailCommentService","MiniViewerComponent","_CommentsService","comments","Validators","postComment","commentArray","unshift","onDelete","comm","confirmButtonColor","cancelButtonColor","reverse","videoComponent","imageComponent","pdfComponent","showAccept","acceptText","exerciseComponent","multiChoiceComponent","MiniModalTrilhaBanner","MiniSliderComponent","StarRatingComponent","maxScore","forDisplay","rateChanged","range","marked","mark","textNivel","isMarked","CommentsService","CommentsComponent","initForm","getComments","onPosting","ForumTrilhaService","VisualizarForumComponent","_ForumService","_ForumVoteService","_forumTrilhaService","getForums","trilha","updatForm","forums","pagination","meta","nextPage","qtd_like","qtd_unlike","LibraryHelper","removeFromArrayById","inArray","needle","haystack","arraySearch","arrayColumn","columnKey","indexKey","inputValue","newArray","isReturnArray","outputArray","outputObject","inputIndex","inputElement","outputElement","getClient","clientId","urlLogout","Trail","role","tag","findHome","findAllClient","findAllAvatar","findAvatar","findAvatarScore","findTrainingScore","avatarUnlock","aceptChallenge","challengeCloseModal","getChallenge","getChallengeModules","aceptChallengeModules","getVideo","getAllVideo","findLevels","searchLevels","findOneBy","findBy","filterBy","persist","nome_pasta","saveData","setStatus","TrailService","_trailModel","created_at","_this_1","persistTrailConfiguratorByGroupFilter","persistTrailConfiguratorByFilterOnly","persistTrailConfiguratorByUserGroup","persistTrailConfiguratorByUserOnly","folderUserShared","PointsComponent","_trailService","findScore","currentValue","progresso","ExercisesComponent","PrecificacaoVisualizadorComponent","ProdutosService","ProdutosComponent","_ProdutosService","getProducts","produtos","novo","visualizar","deletar","openResumo","NovoProdutoComponent","file_input","errors","_dimensions","largura","cumprimento","peso","foto","dimensions","register","json","onFileChange","reader","FileReader","file_1","readAsDataURL","onload","VisualizarProdutoComponent","MaterialService","MaoObraService","VisualizarResumoProdutoComponent","_MaterialService","_MaoObraService","getMaterial","getMaoObra","materiais","Material","mao_obras","MaoDeObra","FornecedorService","VisualizarMateriaisProdutoComponent","_FornecedorService","produto","inter","float","precision","factor","pow","tempNumber","change","qtd","qtdPecas","preco","precoUn","produto_id","fornecedor_id","unidade","preco_unidade","qtd_pecas","insumo_pecas","parent","getProduto","getMateriais","getFornecedores","fornecedores","ArtesanService","ModalMaoObraProdutoComponent","_ArtesanService","formType","formArtesa","price","formProducao","registerArt","registerProd","VisualizarMaoObraProdutoComponent","calcMobra","checking","results","checkbox","etapas","VisualizarFornecedorProdutoComponent","supplier","supplierCtrl","filteredSupplier","startWith","filterStates","email","phone","cep","adress","CalculadoraService","VisualizarCalcularProdutoComponent","_CalculadoraService","calculated","calcule","Produto","total_isumos","total_mao_de_obra","custo_total","lucro","preco_antes_imposto","impostos","venda_imposto","venda_minimo","referencia_lucro","vinte_porcento","quarenta_porcento","sessenta_porcento","oitenta_porcento","cem_porcento","getCalcule","PedidosComponent","PedidoService","ListaProdutoseService","ValorService","ModalResumoComponent","_PedidoService","_ListaProdutoseService","_ValorService","getOrder","getProductList","getCoasts","dadosPedidos","listas","custos","MeusPedidosComponent","pedidos","getOrders","MY_FORMATS","dateInput","monthYearLabel","dateA11yLabel","monthYearA11yLabel","DadosPedidoComponent","new_register","telefone","cidade","uf","dt_entrega","dt_pedido","id_calculadora","pedido_id","provide","MAT_DATE_LOCALE","useValue","DateAdapter","useClass","MomentDateAdapter","deps","MAT_DATE_FORMATS","ModalEdit","calculadora","qtd_parts","price_parts","CalculoPedidoComponent","name_produto","calculadora_id","getPropsProduct","edit","TransporteService","DescService","CustosComponent","_TransporteService","_DescService","transp","transport","packing","desc","discount","ListaService","ComprasComponent","_ListaService","value_total","getBuyList","ViabilidadeComponent","CustoService","ViabilidadeService","ModalCustosComponent","_CustoService","_ViabilidadeService","getCustos","custo","delClick","CustosFixosComponent","custo_fixo","editar","CustosVariaveisComponent","data_uniformity","getViability","getChartSimple","total_custo_variavel","app","init","cacheDOM","handleCharts","$chart","cssSelectors","chartBar","each","$this","$targetBar","css","Counter","easing","ceil","ModalFaturamentoEstimadoComponent","products","productsCtrl","filteredProducts","selectedId","returnProduct","FaturamentoEstimadoComponent","tables","getQtdProdutos","viabilidade","faturamento_necessario","StudioVisualizadorService","course","lessons","courseId","lessonId","StudioModalStarRatingComponent","studioVisualizadorService","StudioVisualizadorComponent","getLessons","lessonArray","selectLastLesson","lessonViewed","lesson","getFirstUnviewedLesson","selectLesson","lessonSelected","lessonSelectedIndex","hlsPlay","feedbackSended","checkAllLessonViewed","views","lessonArrayLength","fileUri","Hls","isSupported","hlsTimer_1","addSourceToVideo","playHls","hls","loadSource","attachMedia","Events","MANIFEST_PARSED","appendChild","exit","unviewed","AsapViewerRoutes","ROUTES","icontype","PrecificacaoSidebarComponent","menuItem","PrecificacaoNavbarComponent","listTitles","listTitle","titlee","j","ViewerPrecificacaoComponent","MaterialPipe","expression","pure","GestaoVisualizadorComponent","GestaoResumoComponent","Exercicio1Component","BalanceSheet","amount","BalanceSheetService","exerciseId","bs","superCollection","exercises_id","ExercisesService","last","CalculadoraFinanceiraComponent","_balanceSheetService","_exercisesService","maskCellphone","maskLandline","maskCPF","maskCNPJ","maskZipCode","maskDate","output","inputBtnBlock","outputBtnBlock","updateModalSending","transactionSelected","cenarioSelected","balanceArray","calcBalance","dataArray","balancesheet","onInputSubmit","onOutputSubmit","balanceSheetRemove","balanceSheet","balanceSheetUpdate","transactionUpdate","selectCenario","newCenario","resetBalance","LOCALE_ID","ComoResolverDividasComponent","_exerciseService","btnBlock","Debt","debtSelected","debtArray","debt","debtUpdate","plan","TrabalharPraGanharComponent","values","A","B","C","D","E","resultA","resultB","resultC","resultD","isNaN","MeuClienteComponent","cliente","Cliente","ocupation","education","salary","home","age","gender","hobby","SemanaComponent","timeArray","morning","Agenda","afternoon","night","weekArray","report","me","hour","minutes","others","business","insertInMorning","inputDate","toLocaleDateString","insertInAfternoon","insertInNight","meInt","othersInt","businessInt","ag","health","work","intToTime","int","trunc","Number","Aula10Ex1Component","Aula10Ex3Component","_formBuilder","isLinear","contentVisible","objectDisabled","formGroup","editable","questao","img","opcao","opcaoMarcada","resultado","formGroup1","formGroup2","formGroup3","radioChangeHandler","Aula12Ex6Component","ProductionTimeComponent","maskTime","product","Product","productArray","count","totalInteger","mediaInteger","hoursInteger","hours","insert","productSelected","saveUpdate","ExerciciosRoutes","GestaoSidebarComponent","GestaoNavbarComponent","ViewerGestaoComponent","urlArray","Exercicio1Tab1Component","Exercicio1Tab2Component","Exercicio1Tab3Component","channels","note","Exercicio1ScenarioComponent","Exercicio2Component","Exercicio2_3Component","getDebit","Debt$1","Exercicio3Component","getLast","Exercicio4Component","Exercicio5Component","domesticas","viewValue","consulta","trabalho","extras","registerLocaleData","localePt","ExerciciosModule","MatOptionModule","StudioStarRatingComponent","1","2","3","4","5","declareAndExport","AsapViewerModule","AsapLimitToModule","AsapGlobalCommentsModule","entryComponents"],"mappings":"8jJAgBA,IAAIA,GAAgB,SAASC,EAAGC,GAI5B,OAHAF,GAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOC,OAAOK,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,MAC3EN,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D,GACAtV,GACAK,GACAoE,GACAK,GACAxO,GACAwc,GACA0M,GACA5M,IAGFmN,GAAA,WAAA,SAAAA,KAwCgC,2BAxC/Bx/C,EAAAA,SAAQ1U,KAAA,CAAC,CACR2U,QAAS,CACPC,EAAAA,aACAC,EAAAA,aAAaC,SAASg0C,IACtB/zC,EAAAA,YACAC,EAAAA,oBACAgjB,GACAy7B,GACAh/C,GACAqsB,GACAvrB,GACAgI,EAAAA,aACAb,EAAAA,gBACA5D,GACAM,GACA+6C,GAAAA,kBACAnzB,EAAAA,oBACAC,EAAAA,mBACAmzB,GAAAA,yBACAlzB,EAAAA,yBAEFjsB,aAAYvV,GACPu0D,IAEL/+C,QAAOxV,GACFu0D,IAELI,gBAAiB,CACfza,GACAwD,GACA2I,GACA1F,GACAmC,GACA2B,GACAziB,GACA6R,GACA9I,GACAsc,QAG4BmN,EAxChC","sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import { Component, OnInit, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'asap-viewer',\n template: `\n <router-outlet></router-outlet> \n `,\n encapsulation: ViewEncapsulation.None\n})\nexport class AsapViewerComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import {Component, OnInit, Input, Output, EventEmitter, ViewChild} from '@angular/core';\nimport {ActivatedRoute} from '@angular/router';\n\ndeclare const swal: any;\n\n@Component({\n selector: 'app-detail-assessment',\n templateUrl: './detail.component.html'\n})\nexport class DetailComponent {\n\n formId: number;\n assessmentId: number;\n private sub: any;\n\n @ViewChild('assessmentDetail',{static:false}) assessmentDetail;\n @ViewChild('assessmentSidebar',{static:false}) assessmentSidebar;\n\n constructor(private activatedRoute: ActivatedRoute) {\n this.getParam();\n }\n\n getParam(): void {\n this.sub = this.activatedRoute.params.subscribe(params => {\n console.log('param', params['id']);\n this.formId = +params['id'];\n });\n }\n\n goToNextAssessment(event): void {\n this.assessmentSidebar.goToNextAssesment(event);\n }\n\n getAssessmentSelected(event) {\n this.assessmentId = event;\n this.assessmentDetail.getAssessment(event);\n }\n\n}\n","import {Component, OnInit, Input, Output, EventEmitter, ViewChild} from '@angular/core';\nimport {ActivatedRoute, Router} from '@angular/router';\n\ndeclare const swal: any;\n\n@Component({\n selector: 'app-report-assessment',\n templateUrl: './asessment-report.component.html'\n})\nexport class AsessmentReportComponent {\n\n formId: number;\n assessmentId: number;\n private sub: any;\n\n @ViewChild('assessmentSidebar',{static:false}) assessmentSidebar;\n\n constructor(private activatedRoute: ActivatedRoute) {\n this.getParam();\n }\n\n getParam(): void {\n this.sub = this.activatedRoute.params.subscribe(params => {\n console.log('param', params['id']);\n this.formId = +params['id'];\n });\n }\n \n goToNextAssessment(event): void {\n this.assessmentSidebar.goToNextAssesment(event);\n }\n\n getAssessmentSelected(event) {\n if (event) {\n this.assessmentId = event;\n }\n }\n\n}\n","\nimport { HttpClient } from '@angular/common/http';\n\n\nexport class BaseService {\n constructor(\n protected http: HttpClient,\n protected basePath: string,\n protected entityName: string) {}\n\n protected host: string = localStorage.getItem('apiURL');\n protected token = localStorage.getItem('token')\n \n protected headers = {\n 'Content-Type': 'application/json',\n 'Authorization': this.token,\n 'Access-Control-Allow-Origin': '*'\n };\n\n protected options = {\n headers: this.headers\n };\n\n getResources(params = {}):any {\n return this.http.get(this.resourceUrl(null, params), this.options);\n }\n\n getResource(id, params = {}):any {\n return this.http.get(this.resourceUrl(id, params), this.options);\n }\n\n createResource(data, params = {}):any {\n return this.http.post(this.resourceUrl(null, params), JSON.stringify(data), this.options);\n }\n \n updateResource(data, params = {}):any {\n return this.http.put(this.resourceUrl(data.id, params), JSON.stringify(data), this.options);\n }\n\n deleteResource(id):any {\n return this.http.delete(this.resourceUrl(id), this.options);\n }\n\n resourceUrl(id = null, params = {}):any {\n\n const endpoint = [\n this.host,\n this.basePath,\n this.urlParameters(params),\n this.entityName,\n id\n ].filter(element => element != false).join('/').replace(/\\/$/, '')\n\n return endpoint + this.queryString(params)\n }\n\n protected urlParameters(params):any {\n var urlParameters = []\n\n for(var placeholder in params)\n if (/.*_id$/.test(placeholder))\n urlParameters.push(`${placeholder}/${params[placeholder]}`)\n\n return urlParameters.join('/')\n }\n\n protected queryString(params):any {\n if(params.query){\n return `?${params.query}`\n }else if(params.router){\n return `/${params.router}` \n }else {\n return ''\n }\n }\n\n\n}\n","import {Injectable} from '@angular/core';\nimport { BaseService } from './base.service';\nimport { Observable } from 'rxjs';\nimport { Global } from 'asap-crud';\nimport { HttpClient } from '@angular/common/http';\n\n@Injectable()\nexport class AssessmentService extends BaseService {\n\n constructor(public httpClient: HttpClient, public global:Global) {\n super(httpClient,'','');\n }\n\n all(): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/client/meu-desempenho';\n return this.httpClient.get(url, {headers: this.getHeader()});\n }\n\n fetch(id: number): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/client/meu-desempenho/' + id;\n return this.httpClient.get(url, {headers: this.getHeader()});\n }\n\n find(id: number): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/client/pasta-assessment/' + id;\n return this.httpClient.get(url, {headers: this.getHeader()});\n }\n\n getScore(data: any) {\n const url = this.global.apiURL() + '/api/v2/client/pasta-assessment/pergunta/post';\n return this.httpClient.post(url, data, {headers: this.getHeader()});\n }\n\n getReportIndicador(): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/report/indicador';\n return this.httpClient.get(url, {headers: this.getHeader()});\n }\n\n getReportTema(): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/report/tema';\n return this.httpClient.get(url, {headers: this.getHeader()});\n }\n\n getReportEixo(): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/report/eixo';\n return this.httpClient.get(url, {headers: this.getHeader()});\n }\n\n postConfirmAssessment(banner_id: number): Observable<any> {\n return this.httpClient.post(this.global.apiURL() + '/api/v2/client/banner/view/post',\n {banner_id: banner_id},\n {headers: this.getHeader()});\n }\n\n assessmentBannerViewed(assessment_id: number): Observable<any> {\n return this.httpClient.post(\n this.global.apiURL() + '/api/v2/client/meu-desempenho/view',\n {assessment_id: assessment_id},\n {headers: this.getHeader()}\n );\n }\n\n getHeader() {\n const token = localStorage.getItem('token');\n const headerOptions = {\n 'Authorization': token,\n 'Accept': 'application/json'\n };\n return headerOptions;\n }\n\n\n}\n","import { Component, OnInit, ElementRef, ViewChild } from '@angular/core';\nimport { Router, ActivatedRoute, ParamMap } from '@angular/router';\nimport { AssessmentService } from '../../@core/services/assessment.service';\n\ndeclare const $: any;\n\n@Component({\n selector: 'app-login-cmp',\n templateUrl: './assessment-visualizador.component.html',\n styleUrls: ['./assessment-visualizador.component.css'],\n providers: [ AssessmentService ]\n})\n\nexport class AssessmentVisualizadorComponent implements OnInit {\n test: Date = new Date();\n private toggleButton: any;\n private sidebarVisible: boolean;\n private nativeElement: Node;\n public percent: any;\n\n formId: number;\n assessmentId: number;\n private sub: any;\n\n @ViewChild('assessmentDetail',{static:false}) assessmentDetail;\n @ViewChild('assessmentSidebar',{static:false}) assessmentSidebar;\n\n constructor(\n private element: ElementRef,\n private route: ActivatedRoute,\n private router: Router,\n private _assessmentService: AssessmentService\n ) {\n this.nativeElement = element.nativeElement;\n this.sidebarVisible = false;\n this.sub = this.route.params.subscribe(params => {\n console.log('param', params['id']);\n this.formId = +params['id'];\n });\n }\n\n ngOnInit() {\n const navbar: HTMLElement = this.element.nativeElement;\n this.toggleButton = navbar.getElementsByClassName('navbar-toggle')[0];\n\n setTimeout(function() {\n $('.card').removeClass('card-hidden');\n }, 700);\n this.checkProgressBar();\n }\n\n getAssessmentSelected(event) {\n this.assessmentId = event;\n this.assessmentDetail.getAssessment(event);\n }\n\n goToNextAssessment(event) {\n this.assessmentSidebar.goToNextAssesment(event);\n }\n\n checkProgressBar() {\n const percent = localStorage.getItem('percent');\n\n if (!percent) {\n this.percent = 0;\n } else {\n this.percent = parseInt(percent);\n }\n }\n\n increasePercent(percent) {\n this.increase(percent);\n }\n\n increasePercentNav() {\n if (this.percent >= 100) {\n this.percent = 100;\n } else {\n this.percent = this.percent + 25;\n }\n this.increase(this.percent);\n }\n\n increase(value) {\n localStorage.setItem('percent', value);\n }\n\n sidebarToggle() {\n const toggleButton = this.toggleButton;\n const body = document.getElementsByTagName('body')[0];\n const sidebar = document.getElementsByClassName('navbar-collapse')[0];\n if (this.sidebarVisible === false) {\n setTimeout(function() {\n toggleButton.classList.add('toggled');\n }, 500);\n body.classList.add('nav-open');\n this.sidebarVisible = true;\n } else {\n this.toggleButton.classList.remove('toggled');\n this.sidebarVisible = false;\n body.classList.remove('nav-open');\n }\n }\n\n public eventNavBar($event): any {\n console.log($event);\n }\n\n}\n","import {Routes} from '@angular/router';\nimport {DetailComponent} from './detail/detail.component';\nimport {AsessmentReportComponent} from './asessment-report/asessment-report.component';\nimport { AssessmentVisualizadorComponent } from './assessment-visualizador.component';\n\nexport const AssessmentVisualizadorRoute: Routes = [\n {\n path: 'assessment',\n component: AssessmentVisualizadorComponent,\n children: [\n {\n path: ':id',\n component: DetailComponent\n }, {\n path: ':id/relatorio',\n component: AsessmentReportComponent\n }\n ]\n }\n];\n","import {Component, OnInit, Input, Output, EventEmitter} from '@angular/core';\nimport {ActivatedRoute} from '@angular/router';\nimport { AssessmentService } from '../../../../@core/services/assessment.service';\n\ndeclare const swal: any;\n\n@Component({\n selector: 'app-detail-assessment-inner',\n templateUrl: './detail-inner.component.html',\n styleUrls: ['./detail-inner.component.scss'],\n providers: [AssessmentService]\n})\nexport class DetailInnerComponent implements OnInit {\n\n @Input() id: number;\n @Output() public assessmentSendedEvent = new EventEmitter<any>();\n\n assessment: Assessment;\n noRegisters: boolean;\n isSubmiting: boolean;\n isFormLocked: boolean;\n post: any;\n\n constructor(private _assessmentService: AssessmentService, private activatedRoute: ActivatedRoute) {\n this.noRegisters = false;\n this.isSubmiting = false;\n this.isFormLocked = false;\n this.getParam();\n }\n\n ngOnInit() {\n if (this.id) {\n this.getAssessment(this.id);\n }\n }\n\n getParam(): void {\n this.activatedRoute.params.subscribe(params => {\n this.id = params['id'];\n });\n }\n\n getAssessment(id: number): void {\n this.assessment = null;\n this.noRegisters = false;\n this.isFormLocked = false;\n this._assessmentService.find(id).subscribe((response:any) => {\n if (response.data.length === 0) {\n this.noRegisters = true;\n this.assessment = new Assessment;\n } else {\n this.assessment = this.transform(response.data);\n if (response.data[0].resposta.length > 0) {\n this.isFormLocked = true;\n }\n }\n }, err => {\n console.log(err);\n });\n }\n\n goToNextAssessment(): void {\n this.assessmentSendedEvent.emit(this.id);\n }\n\n transform(data: Array<any>): Assessment {\n\n if(data.length == 0) {\n return new Assessment;\n }\n\n const a = data[0];\n\n const assessment = new Assessment;\n\n assessment.id = a.id;\n assessment.title = a.title;\n assessment.subtitle = a.subTitle;\n\n assessment.questions = [];\n\n let iA = 0;\n\n for(let indA of a.pergunta_tp_a) {\n let indicador = indA.nome;\n let pontuacao_indicador = indA.ponderacao;\n for (const q of indA.questoes) {\n const question = new Question;\n question.nome = q.nome;\n question.ponderacao = q.ponderacao;\n question.type = 'A';\n question.indicador = indicador;\n question.pontuacao_indicador = pontuacao_indicador;\n\n if (a['resposta'].length > 0) {\n question.value = a['resposta'][0].form.pergunta_tp_a[iA].resposta;\n }\n\n question.options = [];\n\n for (const o of q.opcoes) {\n const option = new Option;\n option.nome = o.nome;\n option.valorA = o.valor;\n\n question.options.push(option);\n }\n\n assessment.questions.push(question);\n iA++;\n }\n\n\n }\n\n let iB = 0;\n\n for(let indB of a.pergunta_tp_b) {\n let indicador = indB.nome;\n let pontuacao_indicador = indB.ponderacao;\n\n for (const q of indB.questoes) {\n const question = new Question;\n question.nome = q.nome;\n question.ponderacao = q.ponderacao;\n question.indicador = indicador;\n question.pontuacao_indicador = pontuacao_indicador;\n question.textoUm = q.textoUm;\n question.textoDois = q.textoDois;\n question.type = 'B';\n\n question.options = [];\n\n for (const o of q.opcoes) {\n const option = new Option;\n option.nome = o.nome;\n option.valorB1 = o.valorUm;\n option.valorB2 = o.valorDois;\n\n if (a['resposta'].length > 0) {\n option.valorBSelected = a['resposta'][0].form.pergunta_tp_b[iB].resposta[o.nome];\n }\n\n question.options.push(option);\n }\n\n console.log(question);\n\n assessment.questions.push(question);\n\n }\n iB++;\n }\n\n return assessment;\n }\n\n onSubmit(form: any) {\n\n const counter = 10;\n\n if (form.valid) {\n\n const value = form.value;\n\n console.log(\"value\", value);\n\n let answersA = [];\n let answersB = [];\n\n for(let i=0; i<counter; i++) {\n if(value['questionA.' + i + '.ponderacao']) {\n answersA.push({\n resposta: value['questionA.' + i + '.resposta'],\n ponderacao: value['questionA.' + i + '.ponderacao'],\n indicador: value['questionA.' + i + '.indicador'],\n pontuacao_indicador: value['questionA.' + i + '.pontuacao_indicador'],\n });\n }\n if(value['questionB.' + i + '.ponderacao']) {\n let entity = {};\n\n entity['ponderacao'] = value['questionB.' + i + '.ponderacao'];\n entity['pontuacao_indicador'] = value['questionB.' + i + '.pontuacao_indicador'];\n entity['indicador'] = value['questionB.' + i + '.indicador'];\n\n let answers = {};\n\n for(let i2=0; i2<counter; i2++) {\n\n if(value['questionB.' + i + '.resposta.' + i2 + '.name']) {\n answers[value['questionB.' + i + '.resposta.' + i2 + '.name']] = value['questionB.' + i + '.resposta.' + i2 + '.value'];\n }\n\n }\n\n entity['resposta'] = answers;\n\n answersB.push(entity);\n }\n }\n\n const body = {\n title: this.assessment.title,\n subTitle: this.assessment.subtitle,\n pergunta_tp_a: answersA,\n pergunta_tp_b: answersB,\n pergunta_id: this.id\n };\n\n console.log(body);\n\n\n this.isSubmiting = true;\n this._assessmentService.getScore(body)\n .subscribe((res:any) => {\n this.goToNextAssessment();\n this.isSubmiting = false;\n swal({\n title: 'Formulário enviado com sucesso',\n text: 'Obrigado por responder a esse questionário',\n type: 'success',\n confirmButtonClass: 'btn btn-success',\n });\n }, err => {\n console.log(err);\n this.isSubmiting = false;\n });\n\n } else {\n swal({\n title: 'Formulário inválido',\n text: 'Por favor, responda todas as respostas',\n type: 'error',\n confirmButtonClass: 'btn btn-success',\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 onSubmit__old(form: any) {\n\n if (form.valid) {\n\n const formValue = this.dicToInterable(form.value);\n\n const answersA = [];\n const answersB = [];\n\n for (const value of formValue) {\n\n const keySplit = value.key.split('.');\n\n if (keySplit[0] === 'questionA') {\n if (!answersA[keySplit[1]]) {\n answersA[keySplit[1]] = []\n }\n answersA[keySplit[1]][keySplit[2]] = value.val;\n }\n\n if (keySplit[0] === 'questionB') {\n if (!answersB[keySplit[1]]) {\n answersB[keySplit[1]] = []\n }\n\n if (keySplit[2] === 'ponderacao') {\n answersB[keySplit[1]]['ponderacao'] = value.val;\n }\n\n if (keySplit[2] === 'resposta') {\n if (!answersB[keySplit[1]]['resposta']) {\n answersB[keySplit[1]]['resposta'] = {};\n }\n answersB[keySplit[1]]['resposta'][keySplit[3]] = value.val;\n }\n\n }\n }\n\n const post = {\n 'pergunta_id': this.assessment.id,\n 'title': this.assessment.title,\n 'subTitle': this.assessment.subtitle,\n 'indicador_a': this.assessment.indicadorA,\n 'indicador_b': this.assessment.indicadorB,\n 'PonderacaoAssociadaUm': this.assessment.indicadorPontuacaoA,\n 'PonderacaoAssociadaDois': this.assessment.indicadorPontuacaoB,\n 'perguntaUm': [],\n 'perguntaDois': []\n };\n\n for (const answerA of answersA) {\n post['perguntaUm'].push(Object.assign({}, answerA));\n }\n\n for (const answerB of answersB) {\n if (answerB) {\n post['perguntaDois'].push(Object.assign({}, answerB));\n }\n }\n\n this.isSubmiting = true;\n this._assessmentService.getScore(post)\n .subscribe((res:any) => {\n this.goToNextAssessment();\n this.isSubmiting = false;\n swal({\n title: 'Formulário enviado com sucesso',\n text: 'Obrigado por responder a esse questionário',\n type: 'success',\n confirmButtonClass: 'btn btn-success',\n });\n }, err => {\n console.log(err);\n this.isSubmiting = false;\n });\n\n } else {\n swal({\n title: 'Formulário inválido',\n text: 'Por favor, responda todas as respostas',\n type: 'error',\n confirmButtonClass: 'btn btn-success',\n });\n }\n\n }\n\n dicToInterable(dict: Object): Array<any> {\n const a = [];\n for (const key in dict) {\n if (dict.hasOwnProperty(key)) {\n a.push({key: key, val: dict[key]});\n }\n }\n return a;\n }\n\n}\n\nclass Assessment {\n\n public id: number;\n public title: string;\n public subtitle: string;\n\n public indicadorA: string;\n public indicadorPontuacaoA: string;\n\n public indicadorB: string;\n public indicadorPontuacaoB: string;\n\n public questions: Array<Question>;\n\n}\n\nclass Question {\n\n public nome: string;\n public ponderacao: string;\n\n public indicador: string;\n public pontuacao_indicador: string;\n\n public textoUm: string;\n public textoDois: string;\n\n public type: string;\n\n public value: any = null;\n\n public options: Array<Option>;\n\n}\n\nclass Option {\n\n public nome: string;\n\n public valorA: string;\n\n public valorB1: string;\n public valorB2: string;\n public valorBSelected: string;\n\n}\n","import {Component, OnInit, Input, Output, EventEmitter} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { AssessmentService } from '../../../@core/services/assessment.service';\n\ndeclare const $: any;\n\n@Component({\n selector: 'app-sidebar-assessment-visualizador',\n templateUrl: './sidebar.component.html',\n styleUrls: ['../assessment-visualizador.component.css'],\n providers: [AssessmentService]\n})\n\nexport class SidebarAssessmentComponent implements OnInit {\n public assessmentArray: Array<Assessment>;\n\n @Input() form;\n @Output() public event = new EventEmitter<any>();\n\n isMobileMenu() {\n if ($(window).width() > 991) {\n return false;\n }\n return true;\n };\n\n constructor(private _assessmentService: AssessmentService, private router: Router) {\n }\n\n assessmentSelected(assessment: Assessment) {\n this.event.emit(assessment.id);\n }\n\n ngOnInit() {\n this.getAssessmentList(this.form);\n }\n\n compare(a,b) {\n if (a.order < b.order)\n return -1;\n if (a.order > b.order)\n return 1;\n return 0;\n }\n\n getAssessmentList(id: number): void {\n this._assessmentService.fetch(id)\n .subscribe((res:any) => {\n this.assessmentArray = [];\n\n res.data.sort(this.compare);\n\n for (let a of res.data) {\n let assessment = new Assessment;\n assessment.id = a.id;\n assessment.title = a.title;\n assessment.status = a.status;\n this.assessmentArray.push(assessment);\n }\n this.assessmentSelected(this.assessmentArray[0]);\n }, err => {\n console.log(err);\n });\n }\n\n goToNextAssesment(id: string) {\n let item = this.assessmentArray.find((item) => {\n return item.id == id\n });\n\n item.status = 1;\n\n let index = this.assessmentArray.indexOf(item);\n\n this.getNextAction();\n }\n\n getNextAction() {\n let assessmentArrayLength = this.assessmentArray.length;\n\n let i = 0;\n\n let unchecked = null;\n\n for (let ass of this.assessmentArray) {\n if (ass.status == 1) {\n i++;\n } else {\n if (unchecked == null) {\n unchecked = ass;\n }\n }\n }\n\n if (assessmentArrayLength == i) {\n this.router.navigate(['/visualizador/assessment/'+ this.form + '/relatorio']);\n } else {\n let index = this.assessmentArray.indexOf(unchecked);\n this.assessmentSelected(this.assessmentArray[index]);\n }\n }\n\n updatePS(): void {\n if (window.matchMedia(`(min-width: 960px)`).matches && !this.isMac()) {\n const elemSidebar = <HTMLElement>document.querySelector('.sidebar .sidebar-wrapper');\n }\n }\n\n isMac(): boolean {\n let bool = false;\n if (navigator.platform.toUpperCase().indexOf('MAC') >= 0 || navigator.platform.toUpperCase().indexOf('IPAD') >= 0) {\n bool = true;\n }\n return bool;\n }\n}\n\nclass Assessment {\n public id: string;\n public title: string;\n public status: number;\n}\n","import { Component, OnInit, ViewChild, ElementRef, Directive, EventEmitter, Output, Renderer2 } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { Location, LocationStrategy, PathLocationStrategy } from '@angular/common';\nconst misc: any = {\n navbar_menu_visible: 0,\n active_collapse: true,\n disabled_collapse_init: 0,\n};\n\ndeclare var $: any;\n@Component({\n selector: 'app-navbar-assessment',\n templateUrl: './navbar.component.html',\n styleUrls: ['../assessment-visualizador.component.css']\n})\n\nexport class NavbarAssessmentComponent implements OnInit {\n private listTitles: any[];\n location: Location;\n private nativeElement: Node;\n private toggleButton: any;\n private sidebarVisible: boolean;\n\n @ViewChild('app-navbar-assessment',{static:false}) button: any;\n\n indexes: any;\n // ASAP\n @Output()\n public eventNavbar = new EventEmitter<any>();\n\n\n constructor(location: Location, private renderer: Renderer2, private element: ElementRef) {\n this.location = location;\n this.nativeElement = element.nativeElement;\n this.sidebarVisible = false;\n }\n\n ngOnInit() {\n const navbar: HTMLElement = this.element.nativeElement;\n this.toggleButton = navbar.getElementsByClassName('navbar-toggle')[0];\n if ($('body').hasClass('sidebar-mini')) {\n misc.sidebar_mini_active = true;\n }\n if ($('body').hasClass('hide-sidebar')) {\n misc.hide_sidebar_active = true;\n }\n $('#minimizeSidebar').click(function() {\n if (misc.sidebar_mini_active === true) {\n $('body').removeClass('sidebar-mini');\n misc.sidebar_mini_active = false;\n\n } else {\n setTimeout(function() {\n $('body').addClass('sidebar-mini');\n\n misc.sidebar_mini_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function() {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function() {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n $('#hideSidebar').click(function() {\n if (misc.hide_sidebar_active === true) {\n setTimeout(function() {\n $('body').removeClass('hide-sidebar');\n misc.hide_sidebar_active = false;\n }, 300);\n setTimeout(function() {\n $('.sidebar').removeClass('animation');\n }, 600);\n $('.sidebar').addClass('animation');\n\n } else {\n setTimeout(function() {\n $('body').addClass('hide-sidebar');\n // $('.sidebar').addClass('animation');\n misc.hide_sidebar_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function() {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function() {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n }\n isMobileMenu() {\n if ($(window).width() < 991) {\n return false;\n }\n return true;\n };\n sidebarOpen() {\n const toggleButton = this.toggleButton;\n const body = document.getElementsByTagName('body')[0];\n setTimeout(function() {\n toggleButton.classList.add('toggled');\n }, 500);\n body.classList.add('nav-open');\n\n this.sidebarVisible = true;\n };\n sidebarClose() {\n const body = document.getElementsByTagName('body')[0];\n this.toggleButton.classList.remove('toggled');\n this.sidebarVisible = false;\n body.classList.remove('nav-open');\n };\n sidebarToggle() {\n // const toggleButton = this.toggleButton;\n // const body = document.getElementsByTagName('body')[0];\n if (this.sidebarVisible === false) {\n this.sidebarOpen();\n } else {\n this.sidebarClose();\n }\n };\n\n getPath() {\n return this.location.prepareExternalUrl(this.location.path());\n }\n\n goToPrev() {\n console.log(\"proximo\");\n this.eventNavbar.emit('previous');\n }\n\n goToNext() {\n console.log(\"antes\");\n this.eventNavbar.emit('next');\n }\n\n}\n","import {Component, OnInit, Input, Output, EventEmitter} from '@angular/core';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport { trigger, style, transition, animate, group } from '@angular/animations';\nimport { AssessmentService } from '../../../../@core/services/assessment.service';\n\ndeclare const swal: any;\n\n@Component({\n selector: 'app-report-assessment-inner',\n templateUrl: './assessment-report-inner.component.html',\n styleUrls: ['./assessment-report-inner.component.scss'],\n providers: [AssessmentService],\n animations: [\n trigger('itemAnim', [\n transition(':enter', [\n style({transform: 'translateY(-100%)'}),\n animate(350)\n ]),\n transition(':leave', [\n group([\n animate('0.2s ease', style({\n transform: 'translate(150px,25px)'\n })),\n animate('0.5s 0.2s ease', style({\n opacity: 0\n }))\n ])\n ])\n ])\n]\n})\nexport class AssessmentReportInnerComponent implements OnInit {\n total:number=0;\n showModal: boolean;\n icons:any=[];\n data:any={};\n themingColor:string=\"#fff\";\n totalsub:number=0;\n porcentNumber:number=57;\n loggedInUser : string;\n public dashArray: string;\n public nivel: string;\n girls:any=[];\n constructor(\n private activatedRoute: ActivatedRoute,\n private router: Router,\n private assessmentService: AssessmentService\n ) {\n document.body.style.backgroundColor = \"white\";\n }\n\n ngOnInit() {\n this.getUser();\n this.assessmentService.getReportIndicador().subscribe(result=>{\n console.log(result.data.total);\n this.icons = result.data.tema;\n //this.total = result.data.total;\n this.total = parseFloat(result.data.total.toFixed(1));\n this.nivel = result.data.total < 33 ? 'basic' : (result.data.total < 66 ? 'intermediary' : 'advanced');\n this.themingColor = result.data.total < 33 ? '#f27173' : (result.data.total < 66 ? '#f99e49' : '#83c1a1');\n this.icons.map((icon)=>{\n icon.dasharray = \"0,100\";\n icon.color = icon.percentil < 33 ? '#f27173' : (icon.percentil < 66 ? '#f99e49' : '#83c1a1');\n icon.done=false;\n });\n this.girls = [\n {name:'Básico', color: '#f27173',current:this.nivel=='basic' ? true : false},\n {name:'Intermediário', color: '#f99e49',current:this.nivel=='intermediary' ? true : false},\n {name:'Avançado', color: '#83c1a1',current:this.nivel=='advanced' ? true : false}\n ];\n console.log(this.girls);\n setTimeout(() => {\n this.icons.map((icon)=>{\n let total = icon.percentil / 140 * 100;\n let radius = 9;\n let totalLength = ( Math.PI * 3.2 * radius );\n let pathLength = ( total * 80 / 100 );\n icon.dasharray = `${ pathLength },100`;\n icon.done=true;\n });\n }, 1000);\n\n },error=>{\n console.log(error);\n })\n\n }\n\n\n getUser(){\n let loggedUser = JSON.parse(localStorage.getItem('loggedUser'));\n this.loggedInUser = loggedUser.data.name;\n }\n\n\n openModal(item){\n this.showModal=true;\n this.data=item;\n console.log(this.data)\n }\n closeModal(){\n this.showModal=false;\n this.data={};\n }\n\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-radar',\n templateUrl: './radar.component.html',\n //styleUrls: ['../../relatorios.component.css']\n})\nexport class RadarComponent {\n\n public radarChartLabels:string[] = ['COMERCIALIZAÇÃO', 'FORMALIZAÇÃO', 'GESTÃO ADMINISTRATIVA', 'GESTÃO DE PESSOAS', 'GESTÃO FINANCEIRA', 'PRODUÇÃO', 'SEGURANÇA E QUALIDADE DE VIDA'];\n\n public radarChartData:any = [\n {data: [65, 59, 90, 81, 56, 55, 40], label: 'Series A'},\n {data: [28, 48, 40, 19, 96, 27, 100], label: 'Series B'}\n ];\n public radarChartType:string = 'radar';\n\n // events\n public chartClicked(e:any):void {\n console.log(e);\n }\n\n public chartHovered(e:any):void {\n console.log(e);\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {RouterModule} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {AssessmentVisualizadorRoute} from './assessment-visualizador.routing';\nimport {DetailInnerComponent} from './detail/detail-inner/detail-inner.component';\nimport {DetailComponent} from './detail/detail.component';\nimport {SidebarAssessmentComponent} from './sidebar/sidebar.component';\nimport {NavbarAssessmentComponent} from './navbar/navbar.component';\nimport {AsessmentReportComponent} from './asessment-report/asessment-report.component';\nimport {AssessmentReportInnerComponent} from './asessment-report/assessment-report-inner/assessment-report-inner.component';\nimport {AssessmentVisualizadorComponent} from './assessment-visualizador.component';\nimport {RadarComponent} from './graficos/radar/radar.component';\n\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(AssessmentVisualizadorRoute),\n FormsModule,\n ReactiveFormsModule\n ],\n declarations: [\n DetailComponent,\n DetailInnerComponent,\n SidebarAssessmentComponent,\n NavbarAssessmentComponent,\n AsessmentReportComponent,\n AssessmentReportInnerComponent,\n RadarComponent,\n AssessmentVisualizadorComponent\n ],\n exports: [\n DetailComponent,\n DetailInnerComponent,\n SidebarAssessmentComponent,\n NavbarAssessmentComponent,\n AsessmentReportComponent,\n AssessmentReportInnerComponent,\n RadarComponent,\n AssessmentVisualizadorComponent\n ]\n})\n\nexport class AssessmentVisualizadorModule {\n}\n","import { Component, Input } from '@angular/core';\nimport { DomSanitizer, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';\n\n@Component({\n selector: 'app-banner',\n templateUrl: './banner.component.html',\n styleUrls: ['./banner-editor.component.css']\n})\n\nexport class BannerComponent {\n @Input() item: any;\n\n constructor(\n private sanitizer: DomSanitizer\n ) {\n \n }\n\n link() {\n console.log('lnk');\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\nimport { BannerComponent } from './banner.component';\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule\n ],\n declarations: [\n BannerComponent,\n ],\n exports: [\n BannerComponent\n ]\n})\n\nexport class BannerModule { }\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n@Pipe({name: 'safeUrl'})\nexport class SafeUrlPipe implements PipeTransform {\n constructor(private sanitizer: DomSanitizer) {}\n\n transform(url: string, type: string) {\n switch (type) {\n case 'html': return this.sanitizer.bypassSecurityTrustHtml(url);\n case 'style': return this.sanitizer.bypassSecurityTrustStyle(url);\n case 'script': return this.sanitizer.bypassSecurityTrustScript(url);\n case 'url': return this.sanitizer.bypassSecurityTrustUrl(url);\n case 'resourceUrl': return this.sanitizer.bypassSecurityTrustResourceUrl(url);\n default: return this.sanitizer.bypassSecurityTrustResourceUrl(url);\n }\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\n\n@Pipe({name: 'stream'})\nexport class StreamPipe implements PipeTransform {\n\n public url: string;\n\n constructor(private domSanitizer: DomSanitizer) {\n const lu = JSON.parse(localStorage.getItem('loggedUser')).data;\n this.url = lu.link;\n }\n\n transform(video: string, arg?: string): SafeResourceUrl | string {\n if (arg === 'link') {\n return this.getVideoUri(video);\n }\n if (arg === 'thumb') {\n return this.getVideoThumb(video);\n }\n if (arg === 'id') {\n return this.getVideoId(video);\n }\n if (arg === 'poster') {\n return this.getVideoPoster(video);\n }\n if (arg === 'styleThumbUrl') {\n let url = this.domSanitizer.bypassSecurityTrustStyle(`url(${this.getVideoThumb(video)})`);\n console.log('Stream Thumb',url);\n return url \n }\n return video;\n }\n\n getVideoThumb(url: string): SafeResourceUrl {\n if (this.isCloudinary(url)) {\n return url.split('.mp4').join('.png');\n }\n if (this.isUrl(url)) return url;\n if (url.includes('http')) {\n return this.domSanitizer.bypassSecurityTrustResourceUrl(url);\n }\n else {\n return this.domSanitizer.bypassSecurityTrustResourceUrl(this.url + 'videos/thumb/' + this.getVideoId(url));\n }\n }\n\n getVideoPoster(url: string): SafeResourceUrl {\n if (url.includes('http')) {\n return this.domSanitizer.bypassSecurityTrustResourceUrl(url);\n }\n else {\n return this.domSanitizer.bypassSecurityTrustResourceUrl(this.url + 'videos/thumb/' + this.getVideoId(url));\n }\n }\n\n getVideoUri(url: string): SafeResourceUrl {\n // if (url.includes('http')) {\n return this.domSanitizer.bypassSecurityTrustResourceUrl(url);\n // }\n // else {\n // return this.domSanitizer.bypassSecurityTrustResourceUrl(this.url + 'videos/' + this.getVideoId(url) + '/480');\n // }\n }\n\n getVideoId(url: string): string {\n console.log(url);\n if (this.isUrl(url)) {\n const split = url.split('/');\n return split[4];\n }\n return url;\n }\n\n isCloudinary(url) {\n if (url.indexOf('cloudinary.com') >= 0) return true;\n return false;\n }\n\n isUrl(s: string): boolean {\n const regexp = /[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)/;\n return regexp.test(s);\n }\n\n isOldServer(url) {\n if (url.indexOf('api-dev.sr02.twcreativs.stream') >= 0) return true;\n return false;\n }\n\n\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'asapClient'\n})\nexport class AsapClientPipe implements PipeTransform {\n\n public static dictionary = {\n appName: 'Sistema EAD/ASAP',\n mainColor: \"maroon\",\n bgSidebar: \"green\",\n linkSidebar: \"black\",\n bgNavbar: \"green\",\n linkNavbar: \"black\",\n bgFooter: \"green\",\n linkFooter: \"black\",\n bgBtn: \"green\",\n textBtn: \"black\",\n bgSidebarCourse: \"black\",\n bgBtnCourse: \"black\",\n textBtnCourse: \"black\",\n textBtnCourseActive: \"black\",\n loginBG: 'https://images.pexels.com/photos/531880/pexels-photo-531880.jpeg?cs=srgb&dl=background-blur-clean-531880.jpg&fm=jpg',\n logoLight: 'https://va.medcom.id/2018/default/images/main/logo.png',\n logoDark: 'https://media.avvosites.com/upload/sites/3145/2018/03/thrift-mclemore-logo.png',\n logoFooter: 'https://www.shsu.edu/global/images/shsu.svg',\n emblem: 'https://rcpsg.ac.uk/images/svg/icon-graduation-cap.svg',\n bannerHome: 'https://static1.squarespace.com/static/54f87ad5e4b064cc65123213/t/54fb4747e4b03e45c6388dac/1425753930819/sursumcorda_porto.png?format=1500w',\n bannerPage: 'https://static1.squarespace.com/static/54f87ad5e4b064cc65123213/t/54fb4747e4b03e45c6388dac/1425753930819/sursumcorda_porto.png?format=1500w',\n\n intro: 'Você está no Sistema EAD/ASAP',\n };\n\n public static setDictionary(dic) {\n for (const key in dic) {\n AsapClientPipe.dictionary[key] = dic[key];\n }\n }\n\n transform(value: any, args?: any): any {\n if (AsapClientPipe.dictionary[value]) {\n return AsapClientPipe.dictionary[value];\n }\n return value;\n }\n\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({name: 'youtubeEmbed'})\nexport class YoutubeEmbedPipe implements PipeTransform {\n constructor() {}\n\n transform(url: any): string {\n return '//www.youtube.com/embed/' + this.getId(url);\n }\n\n getId(url) {\n var regExp = /^.*(youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=|\\&v=)([^#\\&\\?]*).*/;\n var match = url.match(regExp);\n\n if (match && match[2].length == 11) {\n return match[2];\n } else {\n return 'error';\n }\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({ name: 'checktype' })\nexport class CheckTypePipe implements PipeTransform {\n\n transform(value: string, type: string) {\n if (type === 'string') {\n return this.isString(value);\n }\n }\n\n isString(string: any): boolean {\n return typeof string === 'string' || string instanceof String;\n }\n\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({ name: 'vimeoEmbed' })\nexport class VimeoEmbedPipe implements PipeTransform {\n constructor() { }\n\n transform(url: any): string {\n return 'https://player.vimeo.com/video/' + this.getVimeoID(url);\n }\n\n getVimeoID(url: string): string {\n // tslint:disable-next-line:max-line-length\n const regExp = /https?:\\/\\/(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)?|groups\\/([^\\/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|video\\/|)(\\d+)(?:$|\\/|\\?)/;\n const match = url.match(regExp);\n return (match && match[3]) ? match[3] : '';\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\nimport { SafeUrlPipe } from './safe-url.pipe';\nimport { StreamPipe } from './stream.pipe';\nimport { AsapClientPipe } from './asap-client.pipe';\nimport { YoutubeEmbedPipe } from './youtube-embed.pipe';\nimport { CheckTypePipe } from './checktype.pipe';\nimport { VimeoEmbedPipe } from './vimeo-embed.pipe';\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule\n ],\n declarations: [\n SafeUrlPipe,\n StreamPipe,\n AsapClientPipe,\n YoutubeEmbedPipe,\n CheckTypePipe,\n VimeoEmbedPipe\n ],\n exports: [\n SafeUrlPipe,\n StreamPipe,\n AsapClientPipe,\n YoutubeEmbedPipe,\n CheckTypePipe,\n VimeoEmbedPipe\n ]\n})\n\nexport class PipesModule { }\n","import { Component, Input } from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\n\n@Component({\n selector: 'app-clientes-spinner',\n templateUrl: './spinner.component.html',\n styleUrls: ['./spinner.component.css']\n})\n\nexport class SpinnerComponent { \n\n @Input() radius;\n @Input() message = this.translate.instant('Loading...');\n\n constructor( private translate: TranslateService ) {}\n\n}\n","/* ==== Imports Módulos === */\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { SpinnerComponent } from './spinner.component';\n\n/* ==== Decorators === */\n@NgModule({\n imports: [\n CommonModule,\n ],\n declarations: [\n SpinnerComponent\n ], \n exports: [\n SpinnerComponent\n ]\n})\n\n\nexport class SpinnerModule { }\n","import {FileManagerInterface} from './file-manager.interface';\nimport { Observable } from 'rxjs';\nimport {HttpClient, HttpEvent, HttpHeaders, HttpRequest} from '@angular/common/http';\nimport {Injectable} from '@angular/core';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class FileManagerModel implements FileManagerInterface {\n\n file: any;\n name: string;\n description: string;\n apiBaseUrl: string;\n\n constructor(private http: HttpClient, public global: Global) {\n this.apiBaseUrl = this.global.apiURL();\n }\n\n populate(data: FileManagerInterface): FileManagerInterface {\n return undefined;\n }\n\n uploadFile(data: FileManagerModel): Observable<HttpEvent<{}>> {\n\n const formData: FormData = new FormData();\n formData.append('file', data.file);\n formData.append('name', data.name);\n formData.append('description', data.description);\n\n const headerOptions = {\n 'Authorization': localStorage.getItem('token'),\n 'Accept': 'application/json'\n };\n\n const req = new HttpRequest('POST', this.apiBaseUrl + '/api/v2/admin/file', formData, {\n reportProgress: true,\n responseType: 'json',\n headers: new HttpHeaders(headerOptions)\n });\n\n return this.http.request(req);\n\n\n // return this.http.post(this.apiBaseUrl + '/api/v2/admin/file', data, {headers: new HttpHeaders(headerOptions)});\n }\n\n getAll(): Observable<any> {\n return this.http.get(this.apiBaseUrl + '/api/v2/admin/file/all', {headers: this.getHeader()});\n }\n\n deleteFile(id: number): Observable<any> {\n return this.http.delete(this.apiBaseUrl + '/api/v2/admin/file/' + id, {headers: this.getHeader()});\n }\n\n changeFile(): Observable<any> {\n return undefined;\n }\n\n getHeader(): any {\n const token = localStorage.getItem('token');\n if (token) {\n const headerOptions = {\n 'Authorization': token,\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Accept': 'application/json'\n };\n return new HttpHeaders(headerOptions);\n }\n }\n}\n","import {Injectable} from '@angular/core';\nimport {FileManagerModel} from '../models/file-manager.model';\nimport { Observable } from 'rxjs';\nimport {HttpClient} from '@angular/common/http';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class FileManagerService {\n\n constructor(private fileManagerModel: FileManagerModel, private httpClient: HttpClient, public global: Global) {\n }\n\n public uploadFile(data: any): Observable<any> {\n return this.fileManagerModel.uploadFile(this.serialize(data));\n }\n\n public removeFile(id: number): Observable<any> {\n if (id) {\n return this.fileManagerModel.deleteFile(id);\n } else {\n return null;\n }\n }\n\n public findFileCollection(): Observable<any> {\n return this.fileManagerModel.getAll();\n }\n\n public serialize(data: any): FileManagerModel {\n const fileManager = new FileManagerModel(this.httpClient, this.global);\n fileManager.name = data.name;\n fileManager.file = data;\n fileManager.description = data.type;\n return fileManager;\n }\n}\n","import { Component, EventEmitter, OnInit, Output } from '@angular/core';\nimport { FileManagerModel } from '../../models/file-manager.model';\nimport { HttpEventType, HttpResponse } from '@angular/common/http';\nimport { FileManagerService } from '../../services/file-manager.service';\nimport { TranslateService } from '@ngx-translate/core';\n\ndeclare const $: any;\ndeclare const swal: any;\n@Component({\n selector: 'app-file-manager',\n exportAs: 'appFileManager',\n templateUrl: './file-manager.component.html',\n providers: [FileManagerService, FileManagerModel],\n styleUrls: ['file-manager.component.scss']\n})\n\nexport class FileManagerComponent implements OnInit {\n\n @Output()\n event: EventEmitter<any> = new EventEmitter<any>();\n\n public selectedFile: any;\n public progress: { percentage: number } = {percentage: 0};\n public loading: boolean;\n public fileList: any[];\n\n constructor(\n private _fileManagerService: FileManagerService,\n private translate: TranslateService ) {\n this.loading = false;\n }\n\n ngOnInit(): void {\n this.findAll();\n }\n\n showModal(): void {\n $('#appFileManager').modal('show');\n }\n\n closeModal(): void {\n $('#appFileManager').modal('hide');\n }\n\n public onChange($event): void {\n if ($event && this.whiteListUploads($event.target.files[0].type)) {\n this.selectedFile = $event.target.files[0];\n } else {\n swal({\n type: 'error',\n title: this.translate.instant('ErrorLoadingFile'),\n text: this.translate.instant('MakeSureTheFileHasTheAllowedFormat'),\n buttonsStyling: false,\n confirmButtonClass: 'btn btn-success'\n });\n $('#file').val('');\n }\n }\n\n private whiteListUploads(fileType: any): boolean {\n switch (fileType) {\n case 'image/png':\n return true;\n case 'image/jpeg':\n return true;\n case 'image/jpg':\n return true;\n case 'image/gif':\n return true;\n case 'image/png':\n return true;\n case 'application/msword':\n return true;\n case 'application/pdf':\n return true;\n case 'application/zip':\n return true;\n case 'video/x-flv':\n return true;\n case 'video/mp4':\n return true;\n case 'application/x-mpegURL':\n return true;\n case 'video/MP2T':\n return true;\n case 'video/3gpp':\n return true;\n case 'video/quicktime':\n return true;\n case 'video/x-msvideo':\n return true;\n case 'video/x-ms-wmv':\n return true;\n default:\n return false;\n }\n }\n\n public submit() {\n this.progress.percentage = 0;\n this.loading = true;\n this._fileManagerService.uploadFile(this.selectedFile)\n .subscribe(event => {\n if (event.type === HttpEventType.UploadProgress) {\n this.progress.percentage = Math.round(100 * event.loaded / event.total);\n } else if (event instanceof HttpResponse) {\n this.event.emit(event.body.data);\n this.loading = false;\n this.closeModal();\n }\n });\n this.selectedFile = undefined;\n }\n\n public findAll(): void {\n this._fileManagerService.findFileCollection()\n .subscribe(\n (res:any) => {\n this.fileList = res.data;\n }\n )\n }\n\n public selectFile(item: any): void {\n this.event.emit(item);\n this.closeModal();\n }\n\n public deleteFromList(item: any): void {\n this._fileManagerService.removeFile(item.id)\n .subscribe((res:any) => {\n swal({\n type: 'success',\n title: this.translate.instant('SuccessfullyRemoved'),\n text: this.translate.instant('TheSelectedFileHasBeenRemovedFromTheSystem'),\n buttonsStyling: true,\n confirmButtonClass: 'btn btn-success'\n });\n this.findAll();\n }, err => {\n swal({\n type: 'error',\n title: this.translate.instant('ErrorRemovingFile'),\n text: this.translate.instant('TryAgainLater'),\n buttonsStyling: true,\n confirmButtonClass: 'btn btn-success'\n });\n });\n }\n\n}\n","import {Directive} from '@angular/core';\n\n@Directive({\n selector: '[appFileManager]'\n})\nexport class FileManagerDirective {\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {RouterModule} from '@angular/router';\nimport {FileManagerComponent} from './containers/file-manager/file-manager.component';\nimport {FileManagerDirective} from './containers/file-manager-directive/file-manager.directive';\nimport { TranslateModule } from '@ngx-translate/core';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n RouterModule,\n FormsModule,\n TranslateModule\n ],\n declarations: [\n FileManagerComponent,\n FileManagerDirective\n ],\n exports: [\n FileManagerComponent\n ],\n})\nexport class FileManagerModule {\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-shared-title',\n template: `\n <h2\n class=\"mb-4 animated shared-title px-4\"\n [ngClass]=\"title?.animation\"\n [style.fontSize.px]=\"title?.size\"\n [style.textAlign]=\"title?.align\"\n [style.color]=\"title.color\" *ngIf=\"title?.text !== ''\">\n {{ title?.text || '' }}\n </h2>\n `\n})\nexport class SharedTitleComponent {\n @Input() title: any;\n\n public item: any;\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-shared-subtitle',\n template: `\n <p\n *ngIf=\"subtitle?.enable\"\n class=\"mb-4 animated shared-subtitle\"\n [ngClass]=\"subtitle?.animation\"\n [style.fontSize.px]=\"subtitle?.size\"\n [style.textAlign]=\"subtitle?.align\"\n [style.color]=\"subtitle?.color\">\n {{ subtitle.text || '' }}\n </p>\n `\n})\nexport class SharedSubTitleComponent {\n @Input() subtitle: any;\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\ninterface Button {\n background: String;\n color: String;\n text: String;\n}\n@Component({\n selector: 'app-editor-component-shared-button',\n template: `\n <div *ngIf=\"(button.text) && (button.text != '')\" class=\"row\">\n <div class=\"col-md-12 text-center mt-4\">\n <button (click)=\"goNext()\" [disabled]=\"disabled\" type=\"button\" class=\"btn\" style=\"color:white\" \n [ngStyle]=\"{'color': button.color, 'background': button.background}\">\n {{ button.text }}\n </button>\n </div>\n </div>\n `\n})\n\nexport class SharedButtonComponent {\n \n @Input() button: Button = {\n background: '#3C4858',\n color: '#FFFFF',\n text: this.translate.instant('Next'),\n };\n\n @Input() disabled = false;\n\n @Output() event = new EventEmitter<any>();\n\n constructor( private translate: TranslateService ) { }\n\n goNext() {\n this.event.emit();\n }\n\n ngOnInit(): void {\n\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-shared-media',\n template: `\n <div class=\"row\" *ngIf=\"media.type == 'image' || media.type == 'IMAGE'\">\n <div class=\"col-sm-11 mx-auto mb-4\">\n <img height=\"320\" style=\"width: 100%; object-fit: scale-down; max-height: 320px;\" *ngIf=\"media.url != ''\"\n [src]=\"media.url\" />\n </div>\n </div>\n <div class=\"row\" *ngIf=\"media.type == 'youtube' || media.type == 'YOUTUBE'\">\n <div class=\"col-sm-11 mx-auto mb-4\" *ngIf=\"media.url !== ''\">\n <iframe [src]=\"media.url | youtubeEmbed | safeUrl:'resourceUrl'\" width=\"100%\" height=\"500px\" frameborder=\"0\"\n allowfullscreen></iframe>\n </div>\n </div>\n <div class=\"row\" *ngIf=\"media.type == 'vimeo' || media.type == 'VIMEO'\">\n <div class=\"col-sm-11 mx-auto mb-4\" *ngIf=\"media.url !== ''\">\n <iframe [src]=\"media.url | vimeoEmbed | safeUrl:'resourceUrl'\" width=\"100%\" height=\"500px\" frameborder=\"0\"\n allowfullscreen></iframe>\n </div>\n </div>\n `\n})\nexport class SharedMediaComponent {\n @Input() media: any;\n}\n","import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-shared-text',\n template: `\n <p\n class=\"mb-4 animated\"\n [ngClass]=\"text?.animation\"\n [style.fontSize.px]=\"text?.size\"\n [style.textAlign]=\"text?.align\"\n [style.color]=\"text.color\" *ngIf=\"text?.text !== ''\">\n {{ text.text || '' }}\n </p>\n `\n})\nexport class SharedTextComponent {\n @Input() text: any;\n}\n","import { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NgModule } from '@angular/core';\nimport { ColorPickerModule } from 'ngx-color-picker';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { PipesModule } from '../../../@core/pipes/pipe.module';\n\nimport { SharedTitleComponent } from './title.component';\nimport { SharedSubTitleComponent } from './subtitle.component';\nimport { SharedButtonComponent } from './button.component';\nimport { SharedMediaComponent } from './media.component';\nimport { SharedTextComponent } from './text.component';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatRadioModule } from '@angular/material/radio';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatSliderModule } from '@angular/material/slider';\nimport { MomentModule } from 'ngx-moment';\n\nconst components = [\n SharedTitleComponent,\n SharedSubTitleComponent,\n SharedButtonComponent,\n SharedMediaComponent,\n SharedTextComponent\n ];\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n ColorPickerModule,\n MomentModule,\n MatSelectModule,\n TranslateModule,\n MatInputModule,\n MatStepperModule,\n MatRadioModule,\n MatTooltipModule,\n MatSliderModule,\n PipesModule\n ],\n declarations: [\n ...components\n ],\n exports: [\n ...components\n ]\n})\n\nexport class ComponentSharedModule { }\n","import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-dynamic-input',\n templateUrl: 'dynamic-input.component.html',\n styleUrls: ['../../editor.component.css', 'dynamic-input.component.css']\n})\n\nexport class DynamicInputComponent {\n @Input() input: any;\n\n constructor(\n ){ }\n\n}\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { Injectable } from '@angular/core';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class TrailContentService {\n\n constructor(public http: HttpClient, public global: Global) {\n\n }\n\n all(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/conteudo/multiple/' + id, this.getHeaders());\n }\n\n updateGrafico(id: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/conteudo/multiple/assessment/' + id, this.getHeaders());\n }\n\n save(id: number, data: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/trilha/conteudo/multiple/' + id, { value: data }, this.getHeaders());\n }\n\n update(id: number, data: any): Observable<any> {\n return this.http.put(this.global.apiURL() + '/api/v2/client/trilha/conteudo/multiple/' + id, { value: data }, this.getHeaders());\n }\n\n delete(id: number): Observable<any> {\n return this.http.delete(this.global.apiURL() + '/api/v2/client/exercises/' + id, this.getHeaders());\n }\n\n videoTime(id, seconds) {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/conteudo/tempo/' + id + '/' + seconds, this.getHeaders());\n }\n\n vote(id: number, vote: number) {\n return this.http.post(this.global.apiURL() + '/api/v2/client/trilha/conteudo/vote/' + id, {voto: vote}, this.getHeaders());\n }\n\n getHeaders(): { headers: HttpHeaders } {\n const token = localStorage.getItem('token');\n const headerOptions = {\n 'Authorization': token,\n 'Accept': 'application/json'\n };\n return { headers: new HttpHeaders(headerOptions) };\n }\n\n}\n","import { Component, Input, Output, EventEmitter, ViewChild, OnInit, OnDestroy } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { VideoItemComponent } from '../../../@core/models/item-component';\n\n\ndeclare var Vimeo: any;\n\n@Component({\n selector: 'app-editor-component-video',\n templateUrl: 'video.component.html',\n styleUrls: ['../../editor.component.css', '../../../visualizador/curso-visualizador/curso-visualizador.component.scss', './video.component.scss'],\n providers: [TrailContentService]\n})\n\nexport class VideoComponent implements OnInit, OnDestroy {\n\n @Input() item: any;\n @Input() id: number;\n @Input() content;\n @Output() public event = new EventEmitter<any>();\n @Output() public videoTime = new EventEmitter<any>();\n @ViewChild('video', { static: false }) video: any;\n\n play = false;\n contentId: number;\n\n showSaved: boolean;\n notes: string;\n\n currentTime: number;\n seconds: number;\n\n // Youtube\n public player: any;\n public videoMonitor;\n public playerStatus;\n public idVideo;\n public timeLapse = 0;\n public timeLapseTimer;\n public disableNextButton = true;\n\n constructor(\n private sanitizer: DomSanitizer,\n public _trailContentService: TrailContentService\n ) {\n this.loadYT();\n console.log(\"ITEM:\", this.item);\n }\n\n loadYT() {\n let YTConfig: any;\n if (!window['YT']) {\n window['YT'] = {\n loading: 0,\n loaded: 0\n };\n }\n if (!window['YTConfig']) {\n YTConfig = {\n 'host': 'http://www.youtube.com'\n };\n }\n if (!window['YT'].loading) {\n window['YT'].loading = 1;\n const l = [];\n window['YT'].ready = function (f) {\n if (window['YT'].loaded) {\n f();\n } else {\n l.push(f);\n }\n };\n window['onYTReady'] = function () {\n window['YT'].loaded = 1;\n for (let i = 0; i < l.length; i++) {\n try {\n l[i]();\n } catch (e) { }\n }\n };\n window['YT'].setConfig = function (c) {\n for (const k in c) {\n if (c.hasOwnProperty(k)) {\n YTConfig[k] = c[k];\n }\n }\n };\n const a = document.createElement('script');\n a.type = 'text/javascript';\n a.id = 'www-widgetapi-script';\n a.src = 'https://s.ytimg.com/yts/jsbin/www-widgetapi-vflPBjLfx/www-widgetapi.js';\n a.async = true;\n const c = document.currentScript;\n if (c) {\n const n = c.nonce || c.getAttribute('nonce');\n if (n) {\n a.setAttribute('nonce', n);\n }\n }\n const b = document.getElementsByTagName('script')[0];\n b.parentNode.insertBefore(a, b);\n }\n return window['YT'];\n }\n\n ngOnInit() {\n \n console.log('VideoComponent: CONTENT ->', this.content);\n console.log('VideoComponent: ITEM ->', this.item);\n\n if (this.id) {\n this._trailContentService.all(this.id).subscribe((res: any) => {\n console.log('RESPONSE', res);\n const check = res.data.find((item: any) => {\n return item.value.type === 'video';\n });\n if (check) {\n this.contentId = check.id;\n this.notes = check.value.notes;\n }\n });\n }\n\n if (this.item.source !== 'stream') {\n this.videoMonitor = setInterval(() => {\n this.idVideo = this.youtubeParserID(this.item.source_path || this.item.link);\n const divPlayer = document.getElementById('video_player');\n\n\n if (divPlayer && !this.player) {\n\n clearInterval(this.videoMonitor);\n\n if (this.item.source === 'youtube') {\n this.disableNextButton = true;\n console.log('Type -> Youtube');\n const YT: any = window['YT'];\n this.player = new YT.Player('video_player', {\n videoId: this.idVideo,\n playerVars: {\n 'autoplay': 0,\n 'controls': (this.item.showVideoControl) ? 1 : 0,\n 'showinfo': 0, // <- This part here\n 'playsinline': 1,\n 'enablejsapi': 1,\n 'rel': 0,\n 'loop': 1\n },\n events: {\n 'onStateChange': (event) => {\n if (event.data === 1) {\n this.timeLapseTimer = setInterval(() => {\n this.timeLapse = event.target.getCurrentTime();\n const time = {\n current: this.timeLapse,\n duration: event.target.getDuration(),\n progress: (this.timeLapse / event.target.getDuration()) * 100,\n id: this.id\n };\n\n const videoProgress = (time.current / time.duration) * 100;\n\n this.disableNextButton = (videoProgress < 90);\n this.videoTime.emit(time);\n if (videoProgress >= 100) {\n clearInterval(this.timeLapseTimer);\n }\n }, 1000);\n }\n if (event.data === 2) {\n clearInterval(this.timeLapseTimer);\n }\n }\n }\n });\n } else if (this.item.source === 'vimeo') {\n this.disableNextButton = true;\n console.log('VideoComponent: Type -> Vimeo');\n var iframe = document.querySelector('#iframe_vimeo');\n // this.idVideo = this.getVimeoID(this.item.source_path);\n\n this.player = new Vimeo.Player(iframe);\n\n this.player.on('timeupdate', ((event) => {\n\n console.log('timeupdate', event);\n\n const time = {\n current: event.seconds,\n duration: event.duration,\n progress: (event.seconds / event.duration) * 100\n };\n const videoProgress = (time.current / time.duration) * 100;\n console.log(time, videoProgress);\n this.disableNextButton = (videoProgress < 90);\n this.videoTime.emit(time);\n if (videoProgress >= 100) {\n clearInterval(this.timeLapseTimer);\n }\n }));\n }\n }\n }, 2000);\n }\n }\n\n ngOnDestroy() {\n if (this.timeLapseTimer) {\n clearInterval(this.timeLapseTimer);\n }\n }\n\n onSubmit() {\n const data = {\n 'type': 'video',\n 'notes': this.notes\n };\n this.showSaved = true;\n\n setInterval(() => {\n this.showSaved = false;\n }, 1000);\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res: any) => {\n console.log(res);\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe((res: any) => {\n this.contentId = res.data.id;\n console.log(res);\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n setCurrentTime(data) {\n console.log(data);\n const seconds = this.formatTime(data.target.currentTime);\n this.currentTime = data.target.currentTime;\n const time = {\n current: Math.round(data.target.currentTime),\n duration: Math.round(data.target.duration),\n progress: Math.round((data.target.currentTime / data.target.duration) * 100)\n };\n const videoProgress = Math.round((time.current / time.duration) * 100);\n this.disableNextButton = (videoProgress < 90);\n this.videoTime.emit(time);\n this.seconds = seconds;\n }\n\n formatTime(seconds) {\n let second: any = Math.floor(seconds % 60);\n second = (second >= 10) ? second : '0' + second;\n return seconds.toFixed(0);\n }\n\n getThumb(item): any {\n const url = item.changingThisBreaksApplicationSecurity.split('/');\n return this.sanitizer.bypassSecurityTrustResourceUrl('https://api.sr02.twcreativs.stream/videos/thumb/' + url[4]);\n }\n\n goPlay() {\n console.log('PLAY');\n this.play = true;\n setTimeout(() => {\n this.video.nativeElement.play();\n }, 1);\n }\n\n getYoutubeID(url) {\n console.log('getYoutubeID url', url);\n if (url) {\n const urlText = url.changingThisBreaksApplicationSecurity;\n let urlResult = '';\n if (urlText.indexOf('embed') >= 0) {\n urlResult = urlText.split('embed/')[1].split('?')[0];\n } else {\n urlResult = url.changingThisBreaksApplicationSecurity.split('=')[1];\n }\n\n console.log('getYoutubeID ->', urlResult);\n return urlResult;\n }\n }\n\n youtubeParserID(url) {\n var regExp = /^.*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?([^#&?]*).*/;\n var match = url.match(regExp);\n return (match && match[7].length == 11) ? match[7] : false;\n }\n\n getVimeoID(url) {\n const urlText = url;\n let urlResult = '';\n\n urlResult = urlText.split('/');\n console.log(urlResult[4]);\n return urlResult[4];\n }\n}\n","import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';\nimport { ImageItemComponent } from '../../../@core/models/item-component';\n@Component({\n selector: 'app-editor-component-image',\n templateUrl: 'image.component.html',\n styleUrls: ['../../editor.component.css', './image.component.scss']\n})\n\nexport class ImageComponent {\n @Input() item: any;\n @Output() event = new EventEmitter<any>();\n\n goNext() {\n this.event.emit();\n }\n\n}\n","export class StringHelper {\n\n public static generate(size: number): string {\n var text = \"\";\n var possible = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n\n for (var i = 0; i < size; i++) {\n text += possible.charAt(Math.floor(Math.random() * possible.length));\n }\n\n return text;\n }\n\n}\n\n","import { SafeResourceUrl } from '@angular/platform-browser';\n\nimport { StringHelper } from '../helpers/string.helper';\n\nexport class ItemComponent {\n public type: string;\n public button: string;\n public active: boolean;\n}\n\nexport class TitleItemComponent extends ItemComponent {\n public text: string;\n public size: string;\n public align: string;\n public color: string;\n public italic: boolean;\n public bold: boolean;\n public underline: boolean;\n\n public type = 'title';\n\n constructor(\n text: string,\n size: string,\n align: string,\n color: string,\n italic: boolean,\n bold: boolean,\n underline: boolean\n ) {\n super();\n\n this.text = text;\n this.size = size;\n this.align = align;\n this.color = color;\n this.italic = italic;\n this.bold = bold;\n this.underline = underline;\n\n }\n\n}\n\nexport class VideoItemComponent extends ItemComponent {\n public source: string;\n public source_path: string;\n public title: any;\n public link: SafeResourceUrl;\n public mainButton: { color: string, background: string, text: string };\n public showVideoControl;\n public allowNext;\n public type = 'video';\n public poster: string;\n\n constructor(\n source: string,\n source_path: string,\n link: SafeResourceUrl,\n title: string,\n button: string,\n mainButton: any,\n showVideoControl: boolean,\n allowNext: boolean,\n // type:string\n ) {\n super();\n\n this.source = source;\n this.source_path = source_path;\n this.link = link;\n this.title = title;\n this.button = button;\n this.mainButton = mainButton;\n this.showVideoControl = showVideoControl;\n this.allowNext = allowNext;\n // this.type = type;\n }\n\n\n}\n\n// Componente: Paragraph (Parágrafo)\nexport class TextItemComponent extends ItemComponent {\n public text: string;\n public textColor: string;\n public textSize: number;\n public textAnimation: string;\n public textAlign: string;\n public background: string;\n public buttonBgColor: string;\n public buttonTxtColor: string;\n public borderWidth: string;\n public borderStyle: string;\n public borderRadius: string;\n\n\n public type = 'text';\n\n constructor(\n text: string,\n button: string\n ) {\n super();\n\n this.text = text;\n this.button = button;\n this.textColor = '#333333';\n this.textSize = 14;\n this.textAnimation = '';\n this.textAlign = 'left';\n this.background = '';\n this.buttonBgColor = '#595959';\n this.buttonTxtColor = '#FFFFFF';\n this.borderWidth = '3px';\n this.borderStyle = 'solid';\n this.borderRadius = '0px';\n }\n}\n\nexport class ImageItemComponent extends ItemComponent {\n public url: string;\n\n public type = 'image';\n public title: any;\n public titleSize: number;\n public mainButton: { color: string, background: string, text: string };\n\n\n constructor(\n url: string,\n button: string\n ) {\n super();\n\n this.title = 'Título Aqui';\n this.button = button;\n this.url = url;\n this.titleSize = 16;\n this.mainButton = { color: '#FFFFFF', background: '#333333', text: 'Próximo' };\n }\n\n}\n\nexport class PdfItemComponent extends ItemComponent {\n public url: string;\n public title: string;\n public mainButton: any;\n public link: SafeResourceUrl;\n public showAccept: any;\n public acceptText: any;\n public subTitle: any = {}\n\n public type = 'pdf';\n\n constructor(\n url: string,\n link: SafeResourceUrl,\n title: string,\n button: string,\n subtitle: {}\n ) {\n super();\n\n this.url = url;\n this.link = link;\n this.title = title;\n this.button = button;\n this.subTitle = {}\n }\n\n}\n\nexport class ExerciseComponent extends ItemComponent {\n public exercise: number;\n public type = 'exercise';\n\n constructor(\n exercise: number\n ) {\n super();\n\n this.exercise = exercise;\n }\n\n}\n\nexport class MultiChoiceComponent extends ItemComponent {\n public type = 'multi-choice';\n public title: string;\n public titleAnimation: string;\n public titleSize: string;\n public titleAlign: string;\n public titleColor: string;\n public url: string;\n public feedback: string;\n public feedback_text: string;\n public options: Array<MultiChoiceOptions>;\n public link: any;\n public answersAlign: string;\n public marketType: string;\n public verification: string;\n public color: string;\n public media: string;\n public mediaTitle: string;\n public mediaUrl: any;\n\n public constructor() {\n super();\n this.feedback = 'GENERAL';\n this.media = 'NONE';\n this.options = [];\n }\n}\n\nexport class MultiChoiceOptions {\n public label: string;\n public correct: boolean;\n public selected: boolean;\n public value: string;\n public messageInError: string;\n\n public constructor() {\n this.label = '';\n this.correct = false;\n this.selected = false;\n this.value = StringHelper.generate(12);\n this.messageInError = '';\n }\n}\n\nexport class PredefinedComponent extends ItemComponent {\n public type = 'predefined';\n\n public constructor() {\n super();\n }\n}\n\nexport class ShortTextComponent extends ItemComponent {\n public type = 'short-text';\n public label: string;\n\n constructor() {\n super();\n this.label = 'Label';\n }\n}\n\nexport class ActionAidFormComponent extends ItemComponent {\n public type;\n public form;\n public label: string;\n\n constructor() {\n super();\n this.type = 'action-aid-form';\n this.label = 'Label';\n }\n}\n\nexport class IntroComponent extends ItemComponent {\n public title: { text: string, align: string, size: number, color: string, animation: string };\n public media: { type: string, text: string, align: string, size: number, color: string, animation: string, image: string, youtube: string, vimeo: string, title: string, description: string };\n public link: any;\n public button: string;\n public buttonOptions: { background: string };\n public buttonColor: string;\n public settings: { background: string, color: string, size: number };\n\n public title_animation;\n public text_animation;\n public layout: string;\n\n public borderWidth: string;\n public borderStyle: string;\n public borderRadius: string;\n\n constructor() {\n super();\n this.type = 'intro';\n\n this.title = { text: '', align: 'center', size: 32, color: '#595959', animation: '' };\n this.media = { type: 'none', text: '', align: 'center', size: 12, color: '#595959', animation: '', image: '', youtube: '', vimeo: '', title: '', description: '' };\n this.button = '';\n this.buttonOptions = { background: '' };\n this.settings = { background: '#f9f9f9', color: '', size: 14, };\n this.layout = '1';\n\n this.borderWidth = '3px';\n this.borderStyle = 'solid';\n this.borderRadius = '0px';\n }\n}\n\nexport class ConclusionComponent extends ItemComponent {\n public bg: string;\n public title: { text: string, align: string, size?: string };\n public text: { text: string, align: string, size?: string };\n public button: string;\n public background: string;\n public textColor: string;\n public featureColor: string;\n public icon_animation;\n public title_animation;\n public text_animation;\n public button_animation;\n public feedback: string;\n public mainButton: any;\n\n constructor() {\n super();\n this.type = 'conclusion';\n\n this.title = { text: '', align: 'left', size: '32' };\n this.text = { text: '', align: 'left', size: '16' };\n this.textColor = '';\n this.background = '';\n this.featureColor = '';\n this.button = 'concluir';\n this.feedback = 'n';\n }\n}\n\nexport class ChallengeComponent extends ItemComponent {\n public title: { text: string, align: string };\n public notes_title: { text: string, align: string };\n public notes_text: { text: string, align: string };\n public medias: Array<ChallengeMedia>;\n public button_bg;\n\n constructor() {\n super();\n this.type = 'challenge';\n this.title = { text: '', align: 'left' };\n this.notes_title = { text: '', align: 'left' };\n this.notes_text = { text: '', align: 'left' };\n this.medias = [];\n this.button_bg = ''\n }\n}\n\nexport class ChallengeMedia {\n public type: string;\n public text: { text: string, align: string };\n public link: SafeResourceUrl;\n public url: string;\n public thumb: string;\n public image: string;\n public video: string;\n public title: string;\n public description: string;\n public featured: boolean;\n\n constructor() {\n this.featured = false;\n this.text = { text: '', align: 'left' };\n }\n}\n\nexport class FormComponent extends ItemComponent {\n public title: string;\n public lines: Array<LineForm>;\n\n constructor() {\n super();\n this.type = 'form';\n this.lines = [];\n }\n}\n\nexport class LineForm {\n public title: string;\n public showCols: boolean;\n public cols;\n public multiplier: string;\n public extraCols: Array<Array<ColOfLineForm>>;\n\n constructor() {\n this.title = '';\n this.showCols = true;\n this.cols = [];\n this.extraCols = [];\n this.multiplier = '1';\n }\n}\n\nexport class ColOfLineForm {\n public placeholder: string;\n public format: string;\n public size: string;\n public type: string;\n public required: string;\n public minLength: number;\n public maxLength: number;\n public selectType: string;\n public multiple: string;\n\n constructor() {\n this.type = 'text';\n this.format = 'text';\n this.size = 'col-xs-12';\n this.required = '0';\n }\n}\n\nexport class GroupComponent extends ItemComponent {\n public title: string;\n public group: GroupForm;\n\n constructor() {\n super();\n this.type = 'group';\n this.title = '';\n this.group = new GroupForm;\n }\n}\n\nexport class GroupForm {\n public title: string;\n public type: string;\n public selectOptions: Array<any>;\n public subGroups: Array<GroupForm>;\n\n constructor() {\n this.title = '';\n this.type = 'text-short'\n this.selectOptions = [];\n this.subGroups = [];\n }\n}\n\nexport class TableComponent extends ItemComponent {\n public title: string;\n public type: string;\n public userActive: boolean;\n public countLines: number;\n public collumns: Array<CollumnTable>;\n public media: string;\n public mediaTitle: string;\n public mediaUrl: string;\n\n constructor() {\n super();\n this.type = 'table';\n this.title = 'Tabela';\n this.userActive = false;\n this.countLines = 1;\n this.collumns = [];\n }\n}\n\nexport class CollumnTable {\n public type: string;\n public title: string;\n public align: string;\n public placeholder: string;\n public selectOptions: Array<any>;\n\n constructor() {\n this.title = '';\n this.placeholder = '';\n this.align = 'left';\n this.selectOptions = [];\n }\n}\n\nexport class MultipleQuestionComponent extends ItemComponent {\n public questions: Array<MultipleQuestion>;\n\n constructor() {\n super();\n this.type = 'multiple-questions';\n this.questions = [];\n }\n}\n\nexport class MultipleQuestion {\n public title: string;\n public options: Array<MultipleQuestionOption>;\n\n constructor() {\n this.title = '';\n this.options = [];\n }\n}\n\nexport class MultipleQuestionOption {\n public image: string;\n public text: string;\n public correct: boolean;\n\n constructor() {\n this.image = '';\n this.text = '';\n this.correct = false;\n }\n}\n\nexport class CorrectIncorrectComponent extends ItemComponent {\n public title: { text: string; align: string };\n public lines: Array<CorrectIncorrectComponentLines>;\n public feedback: string;\n public feedbackMessage: string;\n\n constructor() {\n super();\n this.type = 'correct-incorrect';\n this.title = { text: 'Título aqui', align: 'left' };\n this.feedback = 'GENERAL';\n this.feedbackMessage = 'Feedback aqui'\n this.lines = [];\n }\n}\n\nexport class CorrectIncorrectComponentLines {\n public title: string;\n public feedback: string;\n public correct: boolean;\n\n constructor() {\n this.title = 'Título aqui';\n this.feedback = 'left';\n this.correct = false;\n }\n}\n\nexport class UploadComponent extends ItemComponent {\n public title: { text: string; align: string, color: string };\n public titleAnimation: string;\n public titleSize: number;\n\n public text: { text: string; align: string, color: string };\n public textAnimation: string;\n public textSize: number;\n\n public background: string;\n\n public mainButton: { text: string, color: string, background: string, required: string };\n\n public file: any;\n public button_bg;\n\n //public titleColor;\n //public size;\n\n constructor() {\n super();\n this.type = 'upload';\n\n this.title = { text: 'Título aqui', align: 'center', color: '#333333' };\n this.titleAnimation = '';\n this.titleSize = 14;\n\n\n this.text = { text: 'Título aqui', align: 'center', color: '#333333' };\n this.textAnimation = '';\n this.textSize = 14;\n\n this.background = '#FFFFFF';\n\n this.mainButton = { text: 'Próximo', color: '#FFFFFF', background: '#333333', required: 'false' };\n this.file = [];\n\n }\n}\n\nexport class StarPointComponent extends ItemComponent {\n public title: { text: string, align: string, size: string, animation: string, color: string };\n public text: { text: string, align: string, size: string, animation: string, color: string };\n public mainButton: { color: string, background: string, text: string };\n public background: string;\n public points: number;\n\n constructor() {\n super();\n this.type = 'star-point';\n\n this.title = { text: 'Título aqui', align: 'left', size: '32', animation: '', color: \"#333333\" };\n this.text = { text: 'Texto aqui', align: 'left', size: '16', animation: '', color: \"#333333\" };\n this.mainButton = { color: '#FFFFFF', background: '#333333', text: 'Próximo' };\n this.background = '#FFFFFF';\n this.points = 0;\n }\n}\n\nexport class DownloadComponent extends ItemComponent {\n public layout: string;\n public title: { text: string, align: string, size?: string, animation: string, color: string };\n public text: { text: string, align: string, size?: string, animation: string, color: string };\n public background: string;\n public file: string;\n public icon: string;\n public iconColor: string;\n public iconSize: number;\n public downloadButton: { color: string, background: string, text: string };\n public mainButton: { color: string, background: string, text: string };\n\n constructor() {\n super();\n this.type = 'download';\n\n this.layout = '1';\n this.title = { text: 'Título aqui', align: 'left', size: '32', animation: '', color: '#333333' };\n this.text = { text: 'Texto aqui', align: 'left', size: '18', animation: '', color: '#333333' };\n this.icon = 'insert';\n this.iconColor = '#333333';\n this.iconSize = 13;\n this.downloadButton = { color: '#FFFFFF', background: '#333333', text: 'Baixar' };\n this.mainButton = { color: '#FFFFFF', background: '#333333', text: 'Próximo' };\n this.background = '#FFFFFF';\n }\n}\n\nexport class RatingComponent extends ItemComponent {\n public title: { text: string, align: string, size?: string, animation: string };\n public mainButton: { color: string, background: string, text: string };\n public positive: string;\n public negative: string;\n public titleColor: string;\n public background: string;\n\n constructor() {\n super();\n this.type = 'rating';\n\n this.title = { text: 'Título aqui', align: 'left', size: '32', animation: '' };\n this.mainButton = { color: '#FFFFFF', background: '#333333', text: 'Próximo' };\n this.positive = 'Gostei';\n this.negative = 'Não gostei';\n this.titleColor = '#333333';\n this.background = '#FFFFFF';\n }\n}\n","import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\nimport { FormControl } from '@angular/forms';\n\nimport { FileManagerComponent } from '../../../../shared/file-manager/containers/file-manager/file-manager.component';\nimport { ImageItemComponent } from '../../../../@core/models/item-component';\n\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-image-config',\n templateUrl: 'image-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\nexport class EditorImageConfigComponent {\n @Input() item: ImageItemComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n @ViewChild(FileManagerComponent,{static:false}) appFileManager: FileManagerComponent;\n\n constructor(\n private _sanitizer: DomSanitizer\n ){\n\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n showFileManager(): void {\n this.appFileManager.showModal();\n }\n\n uploadSubmited($event) {\n this.item.url = ($event.data) ? $event.data.url : $event.url; \n }\n\n getPhoto($event) {\n this.item.url = $event.path;\n }\n\n}\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class VimeoService {\n\n constructor(public http: HttpClient) {\n\n }\n\n getThumb(vimeoUrl: string): Promise<string> {\n const url = 'https://vimeo.com/api/oembed.json?url=' + vimeoUrl;\n return new Promise<string>((resolve, reject) => {\n this.http.get(url).subscribe((res:any) => {\n resolve(res['thumbnail_url_with_play_button']);\n });\n });\n }\n\n\n}\n","import { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\n\nexport class SanitizerHelper {\n\n constructor(\n private _sanitizer: DomSanitizer\n ){}\n\n public sanitizer(url: string, type: string): SafeResourceUrl {\n\n let uri;\n\n if (!url) {\n return null;\n }\n\n if (type === 'youtube') {\n const code = this.getYoutubeID(url);\n uri = 'https://www.youtube.com/embed/' + code + '?rel=0&showinfo=0';\n }\n\n if (type === 'vimeo') {\n const code = this.getVimeoID(url);\n uri = 'https://player.vimeo.com/video/' + code;\n }\n\n if (type === 'file') {\n uri = url\n }\n\n return this._sanitizer.bypassSecurityTrustResourceUrl(uri);\n }\n\n getYoutubeID(url: string): string {\n var regExp = /^.*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?([^#\\&\\?]*).*/;\n var match = url.match(regExp);\n return (match && match[7].length==11) ? match[7] : '';\n }\n\n getVimeoID(url: string): string {\n var regExp = /https?:\\/\\/(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)?|groups\\/([^\\/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|video\\/|)(\\d+)(?:$|\\/|\\?)/;\n var match = url.match(regExp);\n return (match && match[3]) ? match[3] : '';\n }\n\n}\n\n","import { Component, Input, OnInit, AfterViewInit, Output, EventEmitter } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { VimeoService } from '../../../@core/services/vimeo.service';\nimport { SanitizerHelper } from '../../../@core/helpers/sanitizer.helper';\nimport { TranslateService } from '@ngx-translate/core';\nimport { Global } from 'asap-crud';\n\n@Component({\n selector: 'app-editor-component-challenge',\n templateUrl: 'challenge.component.html',\n styleUrls: [ './challenge.component.css' ],\n providers: [ VimeoService ]\n})\nexport class EditorChallengeComponent implements OnInit, AfterViewInit {\n @Input() item: any;\n @Output() public sendEvent = new EventEmitter<any>();\n @Output() event = new EventEmitter<any>();\n\n alertShow: boolean = false;\n btnBlocked: boolean = true;\n\n constructor(\n private global: Global,\n private sanitizer: DomSanitizer,\n private _vimeoService: VimeoService,\n private translate: TranslateService\n ) {\n }\n\n ngOnInit() {\n }\n\n ngAfterViewInit() {\n for(let i of this.item.medias) {\n i.viewed = false;\n }\n if(this.item.medias.length > 0) {\n this.setFeatured(this.item.medias[0]);\n }\n }\n\n setFeatured(media: any) {\n for(let i of this.item.medias) {\n i.featured = false;\n }\n this.videoChanged(media);\n this.checkAllViewed();\n\n media.featured = true;\n media.viewed = true;\n }\n\n checkAllViewed() {\n let viewedCounter = this.item.medias.filter(item => {\n return item.viewed === true;\n })\n if(viewedCounter.length === this.item.medias.length) {\n if(!this.alertShow) {\n this.global.alert(\n this.translate.instant('Congratulations'),\n this.translate.instant('YouCanNowGoToTheNextStep'),\n 'success');\n this.alertShow = true;\n }\n this.btnBlocked = false;\n }\n }\n\n videoChanged(data: any) {\n const Sanitizer = new SanitizerHelper(this.sanitizer);\n if(data.type == 'youtube') {\n const videoID = Sanitizer.getYoutubeID(data.url);\n data.thumb = 'https://img.youtube.com/vi/' + Sanitizer.getYoutubeID(data.url) + '/hqdefault.jpg';\n data.link = Sanitizer.sanitizer(data.url, 'youtube');\n }\n if(data.type == 'vimeo') {\n data.thumb = 'https://i.vimeocdn.com/video/default_295x166.webp';\n this._vimeoService.getThumb(data.url).then((res:any) => {\n data.thumb = res;\n });\n data.link = Sanitizer.sanitizer(data.url, 'vimeo');\n }\n }\n\n sanitize(url: string):any {\n return this.sanitizer.bypassSecurityTrustResourceUrl(url);\n }\n\n goNext() {\n this.event.emit();\n }\n}\n","import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { FormControl } from '@angular/forms';\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators'; \nimport { VimeoService } from '../../../../@core/services/vimeo.service';\nimport { ChallengeComponent, ChallengeMedia } from '../../../../@core/models/item-component';\nimport { FileManagerComponent } from '../../../../shared/file-manager/containers/file-manager/file-manager.component';\nimport { SanitizerHelper } from '../../../../@core/helpers/sanitizer.helper';\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-challenge-config',\n templateUrl: 'challenge-config.component.html',\n styleUrls: ['../../../editor.component.css'],\n providers: [ VimeoService ]\n})\nexport class EditorChallengeConfigComponent {\n @Input() item: ChallengeComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n @ViewChild(FileManagerComponent,{static:false}) appFileManager: FileManagerComponent;\n\n mediaToManipulate: ChallengeMedia;\n\n title = new FormControl();\n notesTitle = new FormControl();\n notesText = new FormControl();\n button = new FormControl();\n\n constructor(\n private _sanitizer: DomSanitizer,\n private _vimeoService: VimeoService\n ){\n this.title.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((text: string) => {\n this.emitSendEvent();\n });\n this.notesTitle.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((text: string) => {\n this.emitSendEvent();\n });\n this.notesText.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((text: string) => {\n this.emitSendEvent();\n });\n this.button.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((text: string) => {\n this.emitSendEvent();\n });\n }\n\n setAlign(element: any, align: string) {\n element.align = align;\n this.emitSendEvent();\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n showFileManager(media: ChallengeMedia): void {\n this.mediaToManipulate = media;\n this.appFileManager.showModal();\n }\n\n uploadSubmited($event) {\n if($event.data) {\n this.mediaToManipulate.image = $event.data.url;\n }else{\n this.mediaToManipulate.image = $event.url; \n }\n this.mediaToManipulate = null;\n this.emitSendEvent();\n }\n\n getPhoto(media: ChallengeMedia, $event) {\n media.image = $event.path;\n this.emitSendEvent();\n }\n\n videoChanged(data: any) {\n const Sanitizer = new SanitizerHelper(this._sanitizer);\n if(data.type == 'youtube') {\n const videoID = Sanitizer.getYoutubeID(data.url);\n data.thumb = 'https://img.youtube.com/vi/' + Sanitizer.getYoutubeID(data.url) + '/hqdefault.jpg';\n data.link = Sanitizer.sanitizer(data.url, 'youtube');\n }\n if(data.type == 'vimeo') {\n data.thumb = 'https://i.vimeocdn.com/video/default_295x166.webp';\n this._vimeoService.getThumb(data.url).then((res:any) => {\n data.thumb = res;\n });\n data.link = Sanitizer.sanitizer(data.url, 'vimeo');\n }\n\n this.emitSendEvent();\n \n $('iframe').attr('src', $('iframe').attr('src'));\n }\n\n insertMedia() {\n this.item.medias.push(new ChallengeMedia);\n this.emitSendEvent();\n }\n\n removeMedia(media: ChallengeMedia) {\n let index = this.item.medias.indexOf(media);\n this.item.medias.splice(index, 1);\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class TrilhaPerformanceService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'trilha/performance')\n }\n\n}","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class TrilhaService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'trilha/detalhe')\n }\n\n}","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class TrilhaRatingService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'trilha/rating')\n }\n\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AsapViewerService {\n \n public options: any = {};\n\n constructor() { }\n}\n","import { Component, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges } from \"@angular/core\";\nimport { trigger, style, transition, animate, keyframes, query, stagger, animateChild } from \"@angular/animations\";\nimport { ActivatedRoute, Router } from \"@angular/router\";\nimport { TrilhaPerformanceService } from \"../../../@core/services/trilha/trilha-performance.service\";\nimport { TrilhaService } from \"../../../@core/services/trilha/trilha.service\";\nimport { TrilhaRatingService } from \"../../../@core/services/trilha/trilha-rating.service\";\nimport { ConclusionComponent } from \"../../../@core/models/item-component\";\nimport { AsapViewerService } from '../../../asap-viewer.service';\nimport { HttpParams } from \"@angular/common/http\";\nimport { AsapService } from \"asap-crud\";\nimport Swal from \"sweetalert2\";\n\n@Component({\n selector: \"app-editor-component-conclusion\",\n templateUrl: \"conclusion.component.html\",\n styleUrls: [\n \"../../../editor-desafios/editor-desafios.component.css\",\n \"./conclusion.component.css\"\n ],\n providers: [TrilhaPerformanceService, TrilhaService, TrilhaRatingService, AsapService],\n animations: [\n trigger(\"icon\", [\n transition(\":enter\", [\n style({ transform: \"scale(0.5)\", display: \"none\", opacity: 0 }),\n animate(\n \"500ms cubic-bezier(.8, -0.6, 0.2, 1.5)\",\n style({ transform: \"scale(1.3)\", display: \"block\", opacity: 1 })\n ),\n animate(\n \"300ms cubic-bezier(.8, -0.6, 0.2, 1.5)\",\n style({ transform: \"scale(1)\" })\n )\n ])\n ]),\n trigger(\"icons\", [\n transition(\":enter\", [\n query(\"@icon\", stagger(500, animateChild()), { optional: true })\n ])\n ])\n ]\n})\n\nexport class EditorConclusionComponent implements OnInit, OnChanges {\n @Input() id: number;\n @Input() item: any;\n @Input() content: any;\n @Input() trail_id: any;\n @Output() public event = new EventEmitter<any>();\n @Output() public rating = new EventEmitter<any>();\n\n routeId: number;\n\n // 0 == mini-etapa; 1 == etapa-develop; 2 == etapa-articles;\n miniType: number;\n public certificateButton = {\n text: \"Certificado\",\n color: \"#fff\",\n background: \"#0d0d80\",\n hide: false\n}\n public performance: any;\n public rightOrWrong: any;\n public WrongAnswer: any;\n public CorrectAnswer: any;\n public sequence: any;\n public loading: boolean;\n public loadingEvaluate: boolean;\n public correctAnswer: number;\n public stageData: any;\n public logo;\n public goal;\n public goal_user;\n public feedback: any;\n public badge: any;\n public loggedUser: any;\n public newRegister: any;\n public fileRemoved: boolean;\n public entity: any;\n public global: any;\n\n constructor(\n private activatedRoute: ActivatedRoute,\n private _trilhaService: TrilhaService,\n private _trilhaPerformanceService: TrilhaPerformanceService,\n private _trilhaRatingService: TrilhaRatingService,\n public viewerService: AsapViewerService,\n public service: AsapService,\n public router: Router,\n ) {\n this.loading = true;\n this.getLoggedUser();\n console.log(\"[Constructor] Conclusion, o Certo e não o outro componente com o mesmo nome.\");\n this.activatedRoute.params.subscribe(param => {\n if (param.titulo) {\n this.routeId = param.titulo.split('-')[0];\n }\n else if (param.journey_id) {\n this.routeId = param.journey_id;\n }\n else if (param.id) {\n this.routeId = param.id;\n }\n\n });\n }\n\n ngOnInit() {\n this.getLoggedUser();\n const path = this.activatedRoute.snapshot.routeConfig.path.split(\"/\");\n if (path[0] === \"mini-etapa\") {\n this.miniType = 0;\n }\n else if (path[0] === \"etapa-develop\") {\n this.miniType = 1;\n }\n else if (path[0] === \"etapa-artigo\") {\n this.miniType = 2;\n }\n else if (path[0] === \"etapa\") {\n this.id = this.routeId;\n }\n\n this.getPerformance();\n console.log(\"[ngOnint] item: \", this.item);\n console.log(\"[ngOnint] content: \", this.content);\n \n }\n\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.trail_id) {\n this.getStageData();\n }\n }\n\n metaAtingida(item) {\n if (item.goal_user < item.goal) {\n return false;\n }\n return true;\n }\n\n retakeCourse() {\n Swal.fire({\n title: 'Você quer realmente refazer o curso?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: \"warning\",\n showCancelButton: true,\n confirmButtonText: \"Sim\",\n cancelButtonText: \"Não\"\n }).then(\n confirm => {\n if (confirm.value) {\n if (!this.newRegister) {\n this.fileRemoved = true;\n }\n this.service.basePath = 'api/v2/admin';\n this.service.entityName = `trail/config/students/${this.trail_id}`;\n this.service.getResource(this.item.user_id).subscribe((response: any) => {\n this.router.navigate([`/training`,this.trail_id]);\n })\n }\n },\n\n )\n }\n\n certificate() {\n this.router.navigate([`/training`,this.trail_id]);\n }\n\n\n getPerformance() {\n if (this.id) {\n this.sequence = [];\n this._trilhaPerformanceService.getResource(this.id).subscribe(res => {\n\n this.feedback = res.data;\n\n this.rightOrWrong = res.data.RightOrWrong;\n this.CorrectAnswer = res.data.CorrectAnswer;\n this.WrongAnswer = res.data.WrongAnswer;\n this.performance = res.data.performance.toFixed(0);\n this.logo = res.data.logo;\n\n res.data.sequence.map(item => {\n if (typeof item.value.value.correct !== \"undefined\") {\n this.sequence.push(item.value.value.correct);\n } else {\n this.sequence.push(false);\n }\n });\n\n this.loading = false;\n });\n }\n }\n\n getLoggedUser() {\n const sessionLoggedUser = JSON.parse(localStorage.getItem(\"loggedUser\"));\n this.loggedUser = sessionLoggedUser.data;\n }\n\n getStageData(): void {\n this._trilhaService.getResource(this.trail_id).subscribe(res => {\n if (res.data.length > 0) {\n this.badge = res.data[0].arquivo;\n this.stageData = res.data[0];\n }\n\n });\n }\n\n onDone() {\n this.checkEvaluate();\n }\n\n checkEvaluate() {\n this.loadingEvaluate = true;\n this.checkRequireAvaliation();\n }\n\n onNext() {\n\n this.event.emit();\n }\n\n checkRequireAvaliation() {\n this.service.basePath = 'api/v2/admin';\n this.service.entityName = `trail/config/require-avaliation/${this.trail_id}`;\n this._trilhaRatingService.getResource(this.routeId).subscribe((response: any) => {\n if (!response.data.rating) {\n this.service.getResources().subscribe((response: any) => {\n this.rating.emit(response.data.require_avaliation);\n })\n }\n else {\n this.onNext();\n }\n })\n }\n\n public goToUrlCertificate(): void {\n window.open(this.content.certificate, \"_blank\");\n }\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { ConclusionComponent } from '../../../../@core/models/item-component';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-conclusion-config',\n templateUrl: 'conclusion-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\nexport class EditorConclusionConfigComponent {\n @Input() item: ConclusionComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n\n setAlign(element: any, align: string) {\n element.align = align;\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { StarPointComponent } from '../../../@core/models/item-component';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-star-point',\n templateUrl: 'star-point.component.html',\n styleUrls: ['./star-point.component.css']\n})\n\nexport class EditorStarPointComponent {\n @Input() item: StarPointComponent;\n @Output() public event = new EventEmitter<any>();\n\n toNext() {\n this.event.emit();\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { StarPointComponent } from '../../../../@core/models/item-component';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-star-point-config',\n templateUrl: 'star-point-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\n\nexport class EditorStarPointConfigComponent {\n @Input() item: StarPointComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n\n setAlign(element: any, align: string) {\n element.align = align;\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n}\n","import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';\nimport { FormGroup, FormControl, FormArray, FormBuilder } from '@angular/forms';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { TableComponent } from '../../../@core/models/item-component';\nimport { TranslateService } from '@ngx-translate/core';\n\ndeclare var swal: any;\n\n@Component({\n selector: 'app-editor-component-dynamic-table',\n templateUrl: 'dynamic-table.component.html',\n styleUrls: ['../../editor.component.css', './dynamic-table.component.css'],\n providers: [TrailContentService]\n})\n\nexport class EditorDynamicTableComponent implements OnInit {\n @Input() item: TableComponent;\n @Input() id: number;\n\n @Output() event = new EventEmitter<any>();\n\n responseValue: any;\n\n contentId: number;\n\n public view: Array<any>;\n\n form: FormGroup;\n\n showSaved: boolean;\n\n constructor(\n public _trailContentService: TrailContentService,\n private fb: FormBuilder,\n private translate: TranslateService\n ) {\n this.view = [];\n }\n\n generateFormTable() {\n\n const lineArray = [];\n\n if (!this.item.userActive) {\n for (let i = 0; i < this.item.countLines; i++){\n const arrayControls = [];\n\n for (const col of this.item.collumns) {\n arrayControls.push(new FormControl(''));\n }\n\n lineArray.push(new FormArray(arrayControls));\n }\n } else {\n const arrayControls = [];\n\n for (const col of this.item.collumns) {\n arrayControls.push(new FormControl(''));\n }\n\n lineArray.push(new FormArray(arrayControls));\n }\n\n this.form = new FormGroup({\n items: new FormArray(lineArray)\n });\n\n }\n\n ngOnInit() {\n this.generateFormTable();\n\n if (this.id) {\n this._trailContentService.all(this.id).subscribe((res: any) => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'dynamic-table';\n });\n if (check) {\n this.contentId = check.id;\n\n const lineArray = [];\n\n for (const n of check.value.notes) {\n const arrayControls = [];\n\n for (const c of n) {\n arrayControls.push(new FormControl(c));\n }\n\n lineArray.push(new FormArray(arrayControls));\n }\n\n this.form = new FormGroup({\n items: new FormArray(lineArray)\n });\n\n }\n });\n }\n }\n\n calc() {\n }\n\n removeView(index: number) {\n console.log(index);\n const itemsArray = this.form.get('items') as FormArray;\n itemsArray.removeAt(index);\n }\n\n createView() {\n const arrayControls = [];\n\n for (const col of this.item.collumns) {\n arrayControls.push(new FormControl(''));\n }\n\n const itemsArray = this.form.get('items') as FormArray;\n itemsArray.push(new FormArray(arrayControls));\n }\n\n onSubmit() {\n\n const data = {\n 'type': 'dynamic-table',\n 'notes': this.form.value.items\n };\n\n swal.fire({ \n title: this.translate.instant('Success'),\n message: this.translate.instant('SavedSuccessfully'),\n type: 'success'\n });\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res:any) => {\n console.log(res);\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe((res:any) => {\n this.contentId = res.data.id;\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n imagePopup(element: any) {\n const classList = element.target.classList;\n const classArray = classList.value.split(' ');\n\n if (classArray.indexOf('image-modal-item') > -1) {\n classList.remove('image-modal-item');\n classList.add('image-modal-full');\n }\n\n if (classArray.indexOf('image-modal-full') > -1) {\n classList.remove('image-modal-full');\n classList.add('image-modal-item');\n }\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { FormControl } from '@angular/forms';\nimport { TableComponent, CollumnTable } from '../../../../@core/models/item-component';\n\n@Component({\n selector: 'app-editor-component-dynamic-table-config',\n templateUrl: 'dynamic-table-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\n\nexport class EditorDynamicTableConfigComponent {\n @Input() item: TableComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n\n title = new FormControl();\n \n setAlign(element: any, align: string) {\n element.align = align;\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n \n createNewCollumn() {\n if(!this.item.collumns) {\n this.item.collumns = [];\n }\n this.item.collumns.push(new CollumnTable);\n }\n\n removeCollumn(index: number) {\n this.item.collumns.splice(index, 1);\n }\n}\n","import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';\nimport { IntroComponent } from '../../../@core/models/item-component';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n@Component({\n selector: 'app-editor-component-intro',\n templateUrl: 'intro.component.html',\n styleUrls: ['../../editor.component.css', 'intro.component.scss']\n})\n\nexport class EditorIntroComponent implements OnInit {\n @Input() item: any;\n @Output() event = new EventEmitter<any>();\n public videoUrl;\n\n client: string;\n loggedUser: any;\n onLoadError = false;\n\n constructor(public sanitizer: DomSanitizer) {\n\n }\n\n ngOnInit() {\n this.loggedUser = JSON.parse(localStorage.getItem('loggedUser'));\n console.log('item ->', this.item)\n if (this.item) {\n if (this.item.link) {\n\n }\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n getUrl(media) {\n if (media.type == 'youtube') {\n if (media.youtube) {\n const url = media.youtube.replace('watch?v=', 'embed/');\n return this.sanitizer.bypassSecurityTrustResourceUrl(url);\n }\n else {\n this.onLoadError = true;\n }\n }\n else if (media.type == 'vimeo') {\n if (media.vimeo) {\n return this.sanitizer.bypassSecurityTrustResourceUrl(media.vimeo);\n }\n else {\n this.onLoadError = true;\n }\n }\n else {\n this.onLoadError = true;\n }\n // else if (media.type == 'spotify') {\n // return this.sanitizer.bypassSecurityTrustResourceUrl(media.);\n // }\n // else {\n // return this.sanitizer.bypassSecurityTrustResourceUrl(video);\n // }\n }\n\n}\n","import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\nimport { FormControl } from '@angular/forms';\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators'; \nimport { IntroComponent } from '../../../../@core/models/item-component';\nimport { FileManagerComponent } from '../../../../shared/file-manager/containers/file-manager/file-manager.component';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-intro-config',\n templateUrl: 'intro-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\nexport class EditorIntroConfigComponent {\n @Input() item: IntroComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n @ViewChild(FileManagerComponent,{static:false}) appFileManager: FileManagerComponent;\n\n title = new FormControl();\n mediaText = new FormControl();\n videoUrl = new FormControl();\n mediaTitle = new FormControl();\n mediaDescription = new FormControl();\n button = new FormControl();\n\n constructor(\n private _sanitizer: DomSanitizer\n ){\n this.title.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((title: string) => {\n this.emitSendEvent();\n });\n this.mediaText.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((mediaText: string) => {\n this.emitSendEvent();\n });\n this.videoUrl.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((videoUrl: string) => {\n this.emitSendEvent();\n });\n this.mediaTitle.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((videoUrl: string) => {\n this.emitSendEvent();\n });\n this.mediaDescription.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((videoUrl: string) => {\n this.emitSendEvent();\n });\n this.button.valueChanges.pipe(\n debounceTime(1000),\n distinctUntilChanged())\n .subscribe((videoUrl: string) => {\n this.emitSendEvent();\n });\n }\n\n setAlign(element: any, align: string) {\n element.align = align;\n this.emitSendEvent();\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n showFileManager(): void {\n this.appFileManager.showModal();\n }\n\n uploadSubmited($event) {\n if($event.data) {\n this.item.media.image = $event.data.url;\n }else{\n this.item.media.image = $event.url;\n }\n this.emitSendEvent();\n }\n\n videoChanged() {\n if(this.item.media.type == 'youtube'){\n this.item.link = this.sanitizer(this.item.media.youtube, 'youtube');\n }\n if(this.item.media.type == 'vimeo'){\n this.item.link = this.sanitizer(this.item.media.vimeo, 'vimeo');\n }\n\n $('iframe').attr('src', $('iframe').attr('src'));\n }\n\n private sanitizer(url: string, type: string): SafeResourceUrl {\n\n let uri;\n\n if (!url) {\n return null;\n }\n\n if (type === 'youtube') {\n const code = this.getYoutubeID(url);\n uri = 'https://www.youtube.com/embed/' + code + '?rel=0&showinfo=0';\n }\n\n if (type === 'vimeo') {\n const code = this.getVimeoID(url);\n uri = 'https://player.vimeo.com/video/' + code;\n }\n\n if (type === 'file') {\n uri = url\n }\n\n return this._sanitizer.bypassSecurityTrustResourceUrl(uri);\n }\n\n getYoutubeID(url: string): string {\n var regExp = /^.*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?([^#\\&\\?]*).*/;\n var match = url.match(regExp);\n return (match && match[7].length==11) ? match[7] : '';\n }\n\n getVimeoID(url: string): string {\n var regExp = /https?:\\/\\/(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)?|groups\\/([^\\/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|video\\/|)(\\d+)(?:$|\\/|\\?)/;\n var match = url.match(regExp);\n return (match && match[3]) ? match[3] : '';\n }\n\n getPhoto($event) {\n this.item.media.image = $event.path;\n }\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-long-text',\n templateUrl: 'long-text.component.html',\n styleUrls: ['../../editor.component.css']\n})\n\nexport class EditorLongTextComponent {\n \n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-long-text-config',\n templateUrl: 'long-text-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\n\nexport class EditorLongTextConfigComponent {\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { MultiChoiceComponent, MultiChoiceOptions } from '../../../@core/models/item-component';\nimport { TranslateService } from '@ngx-translate/core';\nimport { Global } from 'asap-crud';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-multichoice',\n templateUrl: 'multichoice.component.html',\n styleUrls: ['../../editor.component.css', './multichoice.component.scss'],\n providers: [TrailContentService]\n})\n\nexport class EditorMultiChoiceComponent implements OnInit {\n @Input() id: number;\n @Input() item: any;\n @Output() public event = new EventEmitter<any>();\n\n listMarkerRoman = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII', 'XIII', 'XIV', 'XV', 'XVI', 'XVII', 'XVIII', 'XIX', 'XX'];\n listMarkerLetter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'x', 'z'];\n listMarkerNumber = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20'];\n\n blocked = false;\n onCheck: boolean;\n contentId: number;\n loading: boolean = true;\n\n constructor(\n private global: Global,\n private translate: TranslateService,\n private _trailContentService: TrailContentService\n ) {\n if (this.item && !this.item.button) {\n this.item.button = {\n text: this.translate.instant('Next'),\n enable: true\n }\n }\n }\n\n ngOnInit() {\n this.loading = true;\n if (this.id) {\n this.onCheck = true;\n this._trailContentService.all(this.id).subscribe((res: any) => {\n const check = res.data.find(item => {\n return item.value.type === 'multichoice';\n });\n if (check) {\n console.log('ngOnInit: check', check);\n const selected = check.value.value.value;\n for (const opt of this.item.options) {\n opt.selected = false;\n }\n const selectedOption = this.item.options.find(item => {\n return item.value === selected;\n });\n if (selectedOption) {\n selectedOption.selected = true;\n }\n $('#radio-' + selected).prop('checked', true);\n this.blocked = true;\n this.onCheck = false;\n this.loading = false;\n }\n else {\n this.loading = false;\n this.onCheck = false;\n }\n });\n }\n }\n\n onSelectionChange(option: MultiChoiceOptions): void {\n for (const opt of this.item.options) {\n opt.selected = false;\n }\n option.selected = true;\n\n this.onSubmit();\n }\n\n onSubmit() {\n\n const correctOption = this.item.options.find(item => {\n return item.correct === true;\n });\n\n const selectedOption = this.item.options.find(item => {\n return item.selected === true;\n });\n\n if (!selectedOption) {\n this.global.alert(\n this.translate.instant('Ops!'),\n this.translate.instant('SelectOption'),\n 'error'\n );\n return;\n }\n\n if (this.item.verification === 'single') {\n this.blocked = true;\n }\n\n this.save();\n\n if (correctOption.selected) {\n this.global.alert(\n this.translate.instant('Congratulations!'),\n this.translate.instant('SelectedCorrectOption'),\n 'success'\n )\n this.blocked = true;\n } else {\n if (this.item.feedback === 'GENERAL') {\n this.global.alert(\n this.translate.instant('IncorrectOption!'),\n this.item.feedback_text,\n 'error'\n );\n } else {\n this.global.alert(\n this.translate.instant('IncorrectOption!'),\n selectedOption.messageInError,\n 'error'\n );\n }\n }\n\n }\n\n save() {\n const selectedOption = this.item.options.find(item => {\n return item.selected === true;\n });\n\n const data = {\n 'type': 'multichoice',\n 'value': selectedOption\n };\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res: any) => {\n console.log(res);\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe((res: any) => {\n this.contentId = res.data.id;\n console.log(res);\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n imagePopup(element: any) {\n const classList = element.target.classList;\n const classArray = classList.value.split(' ');\n\n if (classArray.indexOf('image-modal-item') > -1) {\n classList.remove('image-modal-item');\n classList.add('image-modal-full');\n }\n\n if (classArray.indexOf('image-modal-full') > -1) {\n classList.remove('image-modal-full');\n classList.add('image-modal-item');\n }\n }\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { Global } from 'asap-crud';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { TranslateService } from '@ngx-translate/core';\n@Component({\n selector: 'app-editor-component-multiple-questions',\n templateUrl: 'multiple-questions.component.html',\n styleUrls: ['../../editor.component.css'],\n providers: [TrailContentService]\n})\n\nexport class EditorMultipleQuestionsComponent implements OnInit {\n\n @Input() item: any;\n @Input() id: number;\n @Output() public event = new EventEmitter<any>();\n contentId: any;\n\n constructor(\n public global: Global,\n public _trailContentService: TrailContentService,\n private translate: TranslateService\n ) {\n\n }\n\n ngOnInit() {\n if (this.id) {\n this._trailContentService.all(this.id).subscribe((res: any) => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'multiple-questions';\n });\n if (check) {\n console.log(check);\n this.contentId = check.id;\n this.item = check.value.data;\n }\n });\n }\n }\n\n\n storeAnswer(question: any, option: any) {\n question.correct = option.correct;\n option.selected = true;\n this.verify(question);\n\n console.log('storeAnswer', question, option);\n }\n\n verify(question: any) {\n if (question.correct) {\n this.global.alert(\n this.translate.instant('GotItRight'),\n this.translate.instant('TheSelectedOptionIsCorrect!'),\n 'success');\n question.sended = true;\n } else {\n this.global.alert(\n this.translate.instant('Ops!'),\n this.translate.instant('YouDidNotSelectTheCorrectOption'),\n 'error');\n }\n }\n\n imagePopup(element: any) {\n const classList = element.target.classList;\n const classArray = classList.value.split(' ');\n\n if (classArray.indexOf('image-modal-item') > -1) {\n classList.remove('image-modal-item');\n classList.add('image-modal-full');\n }\n\n if (classArray.indexOf('image-modal-full') > -1) {\n classList.remove('image-modal-full');\n classList.add('image-modal-item');\n }\n }\n\n saveAnswer() {\n const data = {\n type: 'multiple-questions',\n data: this.item\n };\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res:any) => {\n console.log(res);\n this.goNext();\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe((res:any) => {\n this.contentId = res.data.id;\n this.goNext();\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { MultipleQuestionComponent, MultipleQuestion, MultipleQuestionOption } from '../../../../@core/models/item-component';\n\n@Component({\n selector: 'app-editor-component-multiple-questions-config',\n templateUrl: 'multiple-questions-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\n\nexport class EditorMultipleQuestionsConfigComponent {\n\n @Input() item: MultipleQuestionComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n\n insertQuestion() {\n this.item.questions.push(new MultipleQuestion);\n }\n\n insertOption(questionIndex: number) {\n this.item.questions[questionIndex].options.push(new MultipleQuestionOption);\n }\n\n removeQuestion(index: number): void {\n this.item.questions.splice(index, 1);\n }\n\n removeOption(index: number, indexOption: number): void {\n this.item.questions[index].options.splice(indexOption, 1);\n }\n\n insertImage(option) {\n // client.pick({\n // fromSources:[\"local_file_system\"],\n // maxFiles:1,\n // lang:\"pt\"\n // }).then(response => {\n // option.image = response.filesUploaded[\"0\"].url\n // });\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n getPhoto(option, $event) {\n option.image = $event.path;\n }\n\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-sales-channel',\n templateUrl: 'sales-channel.component.html',\n styleUrls: ['./sales-channel.component.css'],\n\n})\n\nexport class EditorSalesChannelComponent {\n\n groups = [\n {\n \"name\": \"Feiras Locais e Regionais\",\n \"perguntas\": [\n \"Consegue fazer pesquisa das feiras existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do público que visita essas feiras?\",\n \"Consegue oferecer produtos que esse perfil de cliente gostaria de comprar?\",\n \"Tem capacidade para montar stand de vendas decorado e organizado?\",\n \"Dispõe de vendedora cativante e simpática?\",\n \"Tem recurso para pagar taxa de inscrição ou taxa pelo espaço?\",\n \"Possui máquina de cartão?\",\n \"Possui embalagem bonita que promova o produto?\",\n \"Possui material de divulgação básico como cartão de visita, etiqueta contando a história do produto e folder?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n\n },\n\n {\n \"name\": \"Loja Itinerante (bike, carro ou expositor móvel)\",\n \"perguntas\": [\n \"Tem ou sabe como faz para ter o Alvará de Funcionamento?\",\n \"Possui investimento para comprar, adaptar e decorar o veículo?\",\n \"Sabe onde pesquisar referências para a decoração da loja itinerante, bem como apresentação dos produtos dentro dela?\",\n \"Tem uma pessoa que seja motorista/vendedor que, ao mesmo tempo, pilote o veículo, saiba vender e atender bem aos clientes?\",\n \"Possui controles das vendas (caderno ou um sistema no computador) para saber o que vende, quando produzir e quando repor?\",\n \"Tem capacidade de repor os produtos na loja itinerante, com novidades toda semana?\",\n \"Consegue fazer pesquisa das feiras, eventos, locais de grande circulação existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente, saber onde ele está e ir até o mesmo com produtos que ele gostaria de comprar?\",\n \"Possui máquina de cartão?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n {\n \"name\": \"Display\",\n \"perguntas\": [\n \"Possui investimento para montar e decorar o display?\",\n \"Consegue fazer pesquisa dos principais eventos, com grande circulação, que têm a ver com os seus produtos?\",\n \"Consegue ter acesso aos estabelecimentos para negociar a locação do display?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente que frequenta os lugares de exposição?\",\n \"É capaz de se transportar e repor o estoque nos locais de exposição, constantemente?\",\n \"Consegue adaptar os produtos de acordo com as vendas?\",\n \"Possui peças etiquetadas com preços e história do grupo?\",\n \"Possui embalagens?\",\n \"É organizado para controlar as vendas de cada display?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n { \"name\": \"Sua loja dentro de outra loja\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Visitas de Experiência\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda Direta (sacoleiras ou catálogo)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (produtos exclusivos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (aulas)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (festas e eventos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (cenografia)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Vendas pela Internet ou Shopping Online\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Loja Própria\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Lojas\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Navios Turísticos\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] }\n ]\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-sales-channel-config',\n templateUrl: 'sales-channel-config.component.html',\n styleUrls: ['../../../editor.component.css'],\n})\n\nexport class EditorSalesChannelConfigComponent {\n\n\n groups = [\n {\n \"name\": \"Feiras Locais e Regionais\",\n \"perguntas\": [\n \"Consegue fazer pesquisa das feiras existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do público que visita essas feiras?\",\n \"Consegue oferecer produtos que esse perfil de cliente gostaria de comprar?\",\n \"Tem capacidade para montar stand de vendas decorado e organizado?\",\n \"Dispõe de vendedora cativante e simpática?\",\n \"Tem recurso para pagar taxa de inscrição ou taxa pelo espaço?\",\n \"Possui máquina de cartão?\",\n \"Possui embalagem bonita que promova o produto?\",\n \"Possui material de divulgação básico como cartão de visita, etiqueta contando a história do produto e folder?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n\n },\n\n {\n \"name\": \"Loja Itinerante (bike, carro ou expositor móvel)\",\n \"perguntas\": [\n \"Tem ou sabe como faz para ter o Alvará de Funcionamento?\",\n \"Possui investimento para comprar, adaptar e decorar o veículo?\",\n \"Sabe onde pesquisar referências para a decoração da loja itinerante, bem como apresentação dos produtos dentro dela?\",\n \"Tem uma pessoa que seja motorista/vendedor que, ao mesmo tempo, pilote o veículo, saiba vender e atender bem aos clientes?\",\n \"Possui controles das vendas (caderno ou um sistema no computador) para saber o que vende, quando produzir e quando repor?\",\n \"Tem capacidade de repor os produtos na loja itinerante, com novidades toda semana?\",\n \"Consegue fazer pesquisa das feiras, eventos, locais de grande circulação existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente, saber onde ele está e ir até o mesmo com produtos que ele gostaria de comprar?\",\n \"Possui máquina de cartão?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n {\n \"name\": \"Display\",\n \"perguntas\": [\n \"Possui investimento para montar e decorar o display?\",\n \"Consegue fazer pesquisa dos principais eventos, com grande circulação, que têm a ver com os seus produtos?\",\n \"Consegue ter acesso aos estabelecimentos para negociar a locação do display?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente que frequenta os lugares de exposição?\",\n \"É capaz de se transportar e repor o estoque nos locais de exposição, constantemente?\",\n \"Consegue adaptar os produtos de acordo com as vendas?\",\n \"Possui peças etiquetadas com preços e história do grupo?\",\n \"Possui embalagens?\",\n \"É organizado para controlar as vendas de cada display?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n { \"name\": \"Sua loja dentro de outra loja\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Visitas de Experiência\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda Direta (sacoleiras ou catálogo)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (produtos exclusivos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (aulas)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (festas e eventos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (cenografia)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Vendas pela Internet ou Shopping Online\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Loja Própria\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Lojas\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Navios Turísticos\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] }\n ]\n\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { Global } from 'asap-crud';\nimport { TranslateService } from '@ngx-translate/core';\n@Component({\n selector: 'app-editor-component-sheet-correct-incorrect',\n templateUrl: 'sheet-correct-incorrect.component.html',\n styleUrls: ['../../editor.component.css', './sheet-correct-incorrect.component.css'],\n providers: [TrailContentService]\n})\n\nexport class EditorSheetCorrectIncorrectComponent implements OnInit {\n @Input() item;\n @Input() id: number;\n @Output() public event = new EventEmitter<any>();\n public view;\n\n contentId: number;\n\n public sended: boolean;\n\n constructor(\n public global: Global,\n public _trailContentService: TrailContentService,\n private translate: TranslateService\n ) {\n\n }\n\n ngOnInit() {\n if (this.id) {\n this._trailContentService.all(this.id).subscribe((res: any) => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'correct-incorrect';\n });\n if (check) {\n this.sended = true;\n let i = 0;\n for (const line of this.item.lines) {\n line.selected = check.value.data[i];\n i++;\n }\n }\n });\n }\n\n for (const i of this.item.lines) {\n i.selected = false;\n }\n }\n\n onSubmit() {\n const filter = this.item.lines.filter(item => {\n return item.selected === false;\n });\n\n if (filter.length > 0) {\n this.global.alert(\n this.translate.instant('Ops!'),\n this.translate.instant('AnswerAllQuestions'),\n 'error');\n } else {\n\n const data = [];\n\n for (const i of this.item.lines) {\n data.push(i.selected);\n }\n\n this.sended = true;\n\n this._trailContentService.save(this.id, { type: 'correct-incorrect', data: data }).subscribe((res: any) => {\n this.contentId = res.data.id;\n console.log(res);\n });\n }\n }\n\n goNext() {\n console.log('[EditorSheetCorrectIncorrectComponent] goNext->', this.sended);\n if (this.sended) {\n this.event.emit();\n }\n }\n\n imagePopup(element: any) {\n const classList = element.target.classList;\n const classArray = classList.value.split(' ');\n\n if (classArray.indexOf('image-modal-item') > -1) {\n classList.remove('image-modal-item');\n classList.add('image-modal-full');\n }\n\n if (classArray.indexOf('image-modal-full') > -1) {\n classList.remove('image-modal-full');\n classList.add('image-modal-item');\n }\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { CorrectIncorrectComponentLines } from '../../../../@core/models/item-component';\n\n@Component({\n selector: 'app-editor-sheet-correct-incorrect-config',\n templateUrl: 'sheet-correct-incorrect-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\n\nexport class EditorSheetCorrectIncorrectConfigComponent {\n @Input() item;\n @Output() public sendEvent = new EventEmitter<any>();\n\n setAlign(element: any, align: string) {\n element.align = align;\n }\n\n insertLine() {\n if(!this.item.lines) {\n this.item.lines = [];\n }\n this.item.lines.push(new CorrectIncorrectComponentLines);\n }\n\n removeLine(index: number) {\n this.item.lines.splice(index, 1);\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n}\n","/* ==== Imports Componentes === */\nimport { Component, OnInit } from '@angular/core';\n\n/* ==== Decorators === */\n@Component({\n selector: 'app-editor-component-yes-no',\n templateUrl: 'yes-no.component.html',\n styleUrls: ['../../editor.component.css']\n})\n\nexport class EditorYesNoComponent {\n\n constructor() {\n }\n\n ngOnInit() {\n }\n\n}\n","/* ==== Imports Componentes === */\nimport { Component, OnInit } from '@angular/core';\n\n/* ==== Decorators === */\n@Component({\n selector: 'app-editor-component-yes-no-config',\n templateUrl: 'yes-no-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\n\nexport class EditorYesNoConfigComponent {\n\n constructor() {\n\n }\n\n ngOnInit() {\n\n }\n\n}\n","import { Component, Input, Output, OnInit, EventEmitter, ViewChild } from '@angular/core';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { UploadComponent } from '../../../@core/models/item-component';\n\n@Component({\n selector: 'app-editor-component-upload',\n templateUrl: 'upload.component.html',\n styleUrls: ['./upload.component.css'],\n providers: [TrailContentService]\n})\n\nexport class EditorUploadComponent implements OnInit {\n @Input() item: any;\n @Input() id: number;\n\n @Output() public event = new EventEmitter<any>();\n\n contentId: number;\n\n constructor(\n public _trailContentService: TrailContentService\n ) { }\n\n ngOnInit() {\n this.item.file = [];\n\n if(this.id) {\n this._trailContentService.all(this.id).subscribe((res:any) => {\n const check = res.data.find(item => {\n return item.value.type === 'upload';\n });\n if(check) {\n this.contentId = check.id;\n this.item.file = check.value.file;\n }\n });\n }\n }\n\n onDone() {\n if (this.item.file) {\n this.event.emit();\n }\n }\n\n getArchive($event) {\n this.item.file.push($event);\n this.save();\n }\n\n save() {\n const data = {\n 'type': 'upload',\n 'file': this.item.file\n };\n\n if(this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res:any) => {\n console.log(res); \n });\n }else{\n this._trailContentService.save(this.id, data).subscribe((res:any) => {\n this.contentId = res.data.id;\n });\n }\n }\n\n remove(f: any) {\n const index = this.item.file.indexOf(f);\n this.item.file.splice(index, 1);\n\n this.save();\n }\n \n}\n","import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\nimport { FormControl } from '@angular/forms';\nimport { UploadComponent } from '../../../../@core/models/item-component';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-upload-config',\n templateUrl: 'upload-config.component.html',\n styleUrls: ['../../../editor.component.css']\n})\nexport class EditorUploadConfigComponent {\n @Input() item: UploadComponent;\n @Output() public sendEvent = new EventEmitter<any>();\n\n constructor(\n ){\n \n }\n\n setAlign(element: any, align: string) {\n element.align = align;\n this.emitSendEvent();\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n}\n","import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-download',\n templateUrl: 'download.component.html',\n styleUrls: ['../../editor.component.css', './download.component.css']\n})\n\nexport class EditorDownloadComponent implements OnInit {\n\n @Input() item: any;\n @Output() event = new EventEmitter<any>();\n\n public enable = false;\n\n constructor() { }\n\n ngOnInit() {\n console.log(\"item [download]\", this.item);\n \n }\n\n goNext() {\n this.event.emit();\n }\n\n download(url) {\n this.enable = true;\n window.open(url, '_blank');\n }\n\n}\n","import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-download-config',\n templateUrl: 'download-config.component.html',\n styleUrls: ['../../../editor.component.css', '../download.component.css']\n})\n\nexport class EditorDownloadConfigComponent {\n\n @Input() item: any;\n @Output() public sendEvent = new EventEmitter<any>();\n\n setAlign(element: any, align: string) {\n element.align = align;\n }\n\n showFileManager(): void {\n // client.pick({\n // fromSources: [\"local_file_system\"],\n // uploadInBackground: false,\n // maxFiles: 1,\n // lang: \"pt\"\n // }).then(response => {\n // this.item.file = response.filesUploaded[\"0\"].url;\n // });\n }\n\n getArchive($event) {\n this.item.file = $event.path;\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-rating',\n templateUrl: 'rating.component.html',\n styleUrls: ['../../editor.component.css', './rating.component.css']\n})\n\nexport class EditorRatingComponent {\n @Input() item: any;\n @Output() event = new EventEmitter<any>();\n\n constructor() { }\n\n formatLabel(value: number | null) {\n value = (!value) ? 0 : value;\n return (value >= 1000) ? Math.round(value / 1000) + 'k' : value;\n }\n\n goNext() {\n this.event.emit();\n }\n}\n","import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\nimport { FormControl } from '@angular/forms';\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-editor-component-rating-config',\n templateUrl: 'rating-config.component.html',\n styleUrls: ['../../../editor.component.css', '../rating.component.css']\n})\n\nexport class EditorRatingConfigComponent {\n\n @Input() item: any;\n @Output() public sendEvent = new EventEmitter<any>();\n\n constructor() { }\n \n setAlign(element: any, align: string) {\n element.align = align;\n }\n \n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class ForumService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'forum')\n }\n\n}","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class ForumResponseService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'forum/respostas')\n }\n\n}","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class ForumVoteService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'forum/voto')\n }\n\n}","import { Component, Input, OnInit, SimpleChanges, OnChanges, Output, EventEmitter } from '@angular/core';\nimport { FormBuilder, FormGroup } from '@angular/forms';\nimport * as moment from 'moment';\nimport { ForumService } from '../../../@core/services/forum/forum.service';\nimport { ForumResponseService } from '../../../@core/services/forum/response.service';\nimport { ForumVoteService } from '../../../@core/services/forum/forum-vote.service';\nimport { Global } from 'asap-crud';\nimport { TranslateService } from '@ngx-translate/core';\n\ndeclare var $: any;\n@Component({\n selector: 'app-editor-component-forum',\n templateUrl: 'forum.component.html',\n styleUrls: ['../../editor.component.css', './forum.component.scss'],\n providers: [ForumService, ForumResponseService, ForumVoteService]\n})\n\nexport class ForumComponent implements OnInit, OnChanges {\n @Input() item: any;\n @Input() id: any;\n @Output() public event = new EventEmitter<any>();\n\n loading = true;\n\n form: FormGroup;\n formUpdate: FormGroup;\n response: any;\n forum: any;\n loggedUser: any;\n\n answered: boolean;\n\n score = 0;\n displayRatingScore = 0;\n\n constructor(\n private global: Global,\n private formBuilder: FormBuilder,\n private _ForumResponseService: ForumResponseService,\n private _forumService: ForumService,\n private _forumVoteService: ForumVoteService,\n private translate: TranslateService\n ) {\n moment.locale('pt-br');\n\n this.form = this.formBuilder.group({\n id: [''],\n resposta: ['']\n });\n this.formUpdate = this.formBuilder.group({\n id: [''],\n resposta: ['']\n });\n }\n\n ngOnInit() {\n this.getForum();\n this.getUserLogged();\n }\n\n OnChanges(changes: SimpleChanges): void {\n if (changes.item) {\n this.getForum();\n this.getUserLogged();\n }\n }\n\n getUserLogged(): any {\n const loggedUser = JSON.parse(localStorage.getItem('loggedUser'));\n this.loggedUser = loggedUser.data;\n }\n\n getForum() {\n this._forumService.getResource(this.id)\n .subscribe((res: any) => {\n this.forum = res.data[0];\n this.loading = false;\n this.getResponse();\n })\n }\n\n getResponse() {\n this._ForumResponseService.getResource('user/' + this.id)\n .subscribe((res: any) => {\n this.response = res.data.filter(item => {\n return item.user_id === this.loggedUser.id;\n });\n if (this.response.length > 0) {\n this.answered = true;\n }\n this.loading = false;\n })\n }\n\n save() {\n this.loading = true;\n const form = this.form.value;\n this._forumService.createResource(form, { router: this.id })\n .subscribe((res: any) => {\n this.answered = true;\n this.getResponse();\n this.ResetPost();\n this.loading = false;\n })\n }\n\n\n ResetPost() {\n this.form.reset();\n $('#answer').collapse('hide');\n }\n\n onRemove(forum) {\n this.global.swal({\n title: this.translate.instant('DoYouWantToRemoveThisQuestion'),\n text: this.translate.instant('YouWillNotBeAbleToReverseThisAction'),\n type: 'warning',\n showCancelButton: true,\n buttonsStyling: true,\n confirmButtonText: this.translate.instant('Yes'),\n cancelButtonText: this.translate.instant('No'),\n }).then(result => {\n if (result) {\n const index = this.response.indexOf(forum);\n this.response.splice(index, 1);\n this.answered = false;\n this._ForumResponseService.deleteResource(forum.id)\n .subscribe((res: any) => {\n this.getResponse();\n })\n }\n }, cancel => { }\n );\n }\n\n onClose(forum) {\n this.formUpdate.reset();\n return forum.disable = false;\n }\n\n onEdit(forum) {\n this.formUpdate.setValue({ id: forum.id, resposta: forum.resposta })\n return forum.disable = true;\n }\n\n updateForm() {\n const form = this.formUpdate.value;\n this._forumService.updateResource(form)\n .subscribe((res: any) => {\n this.getResponse();\n this.ResetPost();\n })\n }\n\n vote(item, number) {\n const form = { pontos: number }\n this._forumVoteService.createResource(form, { router: item.id })\n .subscribe((res: any) => {\n this.getResponse();\n })\n }\n\n getHidden(item) {\n return item.hidden = !item.hidden;\n }\n\n ngOnChanges(changes: SimpleChanges) {\n this.loading = true;\n // this.getForum();\n }\n\n goNext() {\n this.event.emit();\n }\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { ForumService } from '../../../../@core/services/forum/forum.service';\n\n@Component({\n selector: 'app-editor-component-forum-config',\n templateUrl: 'forum-config.component.html',\n styleUrls: ['../../../editor.component.css'],\n providers: [ForumService]\n})\nexport class EditorForumConfigComponent implements OnInit {\n @Input() item: any;\n @Output() public sendEvent = new EventEmitter<any>();\n\n forumArray: any;\n\n constructor(\n private _forumClientService: ForumService\n ) {\n }\n\n ngOnInit() {\n this._forumClientService.getResources().subscribe((res:any) => {\n this.forumArray = res.data;\n });\n }\n\n emitSendEvent() {\n this.sendEvent.emit();\n }\n\n}\n","import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';\nimport { FormGroup, FormBuilder, FormArray, FormControl } from '@angular/forms';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { TranslateService } from '@ngx-translate/core';\nimport Swal from 'sweetalert2';\n\n@Component({\n selector: 'app-editor-component-avaliation',\n templateUrl: 'avaliation.component.html',\n styleUrls: ['../../editor.component.css', './avaliation.component.scss'],\n providers: [TrailContentService]\n})\n\nexport class EditorAvaliationComponent implements OnInit {\n @Input() item: any;\n @Input() id: any;\n\n @Output() event = new EventEmitter<any>();\n\n contentId: any;\n\n form: any;\n\n loading = true;\n blocked = false;\n isPosting = false;\n listMarkerLetter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'x', 'z'];\n\n constructor(\n public _trailContentService: TrailContentService,\n private translate: TranslateService\n ) {\n this.form = new FormArray([]);\n }\n\n ngOnInit() {\n this.generateForm();\n\n if (this.id) {\n this.getAnswer();\n }\n }\n\n generateForm() {\n this.item.questions.map((i: any) => {\n if (i.type === 'objetiva' || i.type === 'subjetiva') {\n const control = new FormControl('');\n this.form.push(control);\n }\n if (i.type === 'tabela') {\n console.log('EditorAvaliationComponent: generateForm: i', i);\n const arr = new FormArray([]);\n const lineLength = parseInt(i.lines, 10);\n for (let k = 0; k < lineLength; k++) {\n const array = new FormArray([]);\n i.collumns.map((col: any) => {\n array.push(new FormControl(''));\n });\n arr.push(array);\n }\n this.form.push(arr);\n }\n });\n }\n\n getAnswer() {\n this._trailContentService.all(this.id).subscribe((res: any) => {\n this.loading = false;\n const check = res.data.find((item: any) => {\n return item.value.type === 'avaliation';\n });\n if (check) {\n this.contentId = check.id;\n this.form.patchValue(check.value.value);\n if (this.item.disableUpdate) {\n this.blocked = true;\n }\n }\n });\n }\n\n onSubmit() {\n\n const data = {\n type: 'avaliation',\n value: this.form.value\n };\n\n this.isPosting = true;\n\n console.log('onSubmit: data', data);\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res: any) => {\n this.blocked = true;\n console.log('onSubmit: _trailContentService.update: res', res);\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe((res: any) => {\n this.contentId = res.data.id;\n this.blocked = true;\n console.log('onSubmit: _trailContentService.save: res', res);\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n verify(question: {correct: string, feedback: string}) {\n if (question.correct) {\n Swal.fire(\n this.translate.instant('GotItRight'),\n question.feedback,\n 'success');\n } else {\n Swal.fire(\n this.translate.instant('Ops!'),\n question.feedback,\n 'error');\n }\n }\n\n canChange(item) {\n const answer = this.form.get(`${item}`).value;\n\n if (answer != '') {\n if (this.item.verification == 'single') {\n return false;\n }\n }\n\n return true;\n }\n\n canShowSave() {\n if (this.item.verification == 'multiple') {\n if (this.item.questions) {\n for (let i = 0; i < this.item.questions.length; i++) {\n const item = this.item.questions[i];\n if (item.type == 'objetiva') {\n console.log(\"[canShowSave] Pode ser falso...\", item.options);\n if (item.options) {\n const answer = this.form.get(`${i}`).value;\n const option = item.options.find(opt => opt.text == answer);\n console.log(\"[canShowSave] Pode ser verdadeiro...\", option);\n if (option && option.correct) {\n return true;\n }\n }\n return false;\n }\n };\n }\n }\n return true;\n }\n\n}\n","import { Component, Input, Output, EventEmitter, OnInit, HostListener } from '@angular/core';\nimport { TrailContentService } from './../../../@core/services/trail-content.service';\n\n@Component({\n selector: 'app-editor-component-contract',\n templateUrl: 'contract.component.html',\n styleUrls: ['../../editor.component.css', './contract.component.scss'],\n providers: [TrailContentService]\n})\nexport class EditorContractComponent implements OnInit {\n @Input() item: any;\n @Input() id: any;\n\n @Output() event = new EventEmitter<any>();\n\n blocked: boolean;\n readed: boolean;\n contentId: number;\n accept: any;\n \n constructor(\n public _trailContentService: TrailContentService\n ) {\n this.blocked = false;\n this.readed = false;\n this.accept = false;\n }\n\n onScroll(event: any) {\n if (event.target.offsetHeight + event.target.scrollTop >= event.target.scrollHeight) {\n this.readed = true;\n }\n }\n\n ngOnInit() {\n this.getAnswer();\n }\n\n getAnswer() {\n this._trailContentService.all(this.id).subscribe(res => {\n console.log('EditorContractComponent: getAnswer: res', res);\n const check = res.data.find((item: any) => {\n return item.value.type === 'contract';\n });\n console.log('EditorContractComponent: getAnswer: check', check);\n if (check) {\n this.contentId = check.id;\n this.accept = check.value.value;\n this.blocked = true;\n this.readed = true;\n }\n });\n }\n\n onSubmit() {\n\n const data = {\n type: 'contract',\n value: this.accept\n };\n\n console.log('onSubmit: data', data);\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe(res => {\n this.blocked = true;\n this.goNext();\n console.log('onSubmit: _trailContentService.update: res', res);\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe(res => {\n this.contentId = res.data.id;\n this.blocked = true;\n this.goNext();\n console.log('onSubmit: _trailContentService.save: res', res);\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n}\n","\nimport { NgModule } from '@angular/core';\nimport { MatAutocompleteModule } from '@angular/material/autocomplete';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatButtonToggleModule } from '@angular/material/button-toggle';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatNativeDateModule, MatRippleModule } from '@angular/material/core';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatGridListModule } from '@angular/material/grid-list';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatListModule } from '@angular/material/list';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatPaginatorModule } from '@angular/material/paginator';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatRadioModule } from '@angular/material/radio';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatSidenavModule } from '@angular/material/sidenav';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { MatSliderModule } from '@angular/material/slider';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\nimport { MatSortModule } from '@angular/material/sort';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\n@NgModule({\n exports: [\n MatAutocompleteModule,\n MatButtonModule,\n MatButtonToggleModule,\n MatCardModule,\n MatCheckboxModule,\n MatChipsModule,\n MatDatepickerModule,\n MatDialogModule,\n MatFormFieldModule,\n MatExpansionModule,\n MatGridListModule,\n MatIconModule,\n MatInputModule,\n MatListModule,\n MatMenuModule,\n MatNativeDateModule,\n MatPaginatorModule,\n MatProgressBarModule,\n MatProgressSpinnerModule,\n MatRadioModule,\n MatRippleModule,\n MatSelectModule,\n MatSidenavModule,\n MatSliderModule,\n MatSlideToggleModule,\n MatSnackBarModule,\n MatSortModule,\n MatStepperModule,\n MatTableModule,\n MatTabsModule,\n MatToolbarModule,\n MatTooltipModule\n ],\n})\nexport class MaterialModule {\n}\n","import { Component, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';\nimport { FormArray, FormControl, AbstractControl } from '@angular/forms';\n\nimport { TrailContentService } from './../../../@core/services/trail-content.service';\nimport { Global } from 'asap-crud';\nimport { TranslateService } from '@ngx-translate/core';\n\ndeclare var swal: any;\n@Component({\n selector: 'app-editor-component-form-step',\n templateUrl: 'form-step.component.html',\n styleUrls: ['../../editor.component.css', './form-step.component.scss'],\n providers: [TrailContentService]\n})\n\nexport class FormStepComponent implements OnInit, OnChanges {\n @Input() item: any;\n @Input() id: number;\n\n @Output() event = new EventEmitter<any>();\n\n blocked: boolean;\n contentId: number;\n form: FormArray;\n\n constructor(\n private global: Global,\n public _trailContentService: TrailContentService,\n private translate: TranslateService\n ) {\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.item && this.item) {\n if (this.item.steps) {\n this.item.steps.forEach(step => {\n this.normalizeStep(step)\n });\n }\n }\n }\n\n ngOnInit() {\n console.log('ID FORUM -<', this.id);\n this.generateForm();\n\n if (this.id) {\n this.getAnswer();\n }\n }\n\n generateForm() {\n\n this.form = new FormArray([]);\n\n this.item.steps.map((step: any) => {\n\n const array = new FormArray([]);\n\n step.inputArray.map((i: any) => {\n if (i.type === 'text' || i.type === 'select') {\n array.push(new FormControl(''));\n }\n if (i.type === 'research') {\n array.push(new FormControl([]));\n }\n if (i.type === 'table') {\n const arr = new FormArray([]);\n const lineLength = parseInt(i.lines, 10);\n for (let k = 0; k < lineLength; k++) {\n const tableArray = new FormArray([]);\n i.cols.map((col: any) => {\n tableArray.push(new FormControl(''));\n });\n arr.push(tableArray);\n }\n array.push(arr);\n }\n });\n\n this.form.push(array);\n });\n\n console.log('generateForm: this.form', this.form);\n\n }\n\n getAnswer() {\n this._trailContentService.all(this.id).subscribe(res => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'form-step';\n });\n if (check) {\n this.contentId = check.id;\n this.form.patchValue(check.value.value);\n // this.blocked = true;\n }\n });\n }\n\n\n onSubmit() {\n const data = {\n type: 'form-step',\n value: this.form.value\n };\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe(res => {\n this.goNext();\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe(res => {\n this.contentId = res.data.id;\n this.blocked = true;\n\n this.goNext();\n });\n }\n }\n\n getArray(length: number): Array<any> {\n const arr = [];\n for (let i = 0; i < length; i++) {\n arr.push(i);\n }\n return arr;\n }\n\n goNext() {\n this.event.emit();\n }\n\n showFormError() {\n this.global.alert(\n this.translate.instant('Ops!'),\n this.translate.instant('FillAllRequiredFields'),\n 'error'\n );\n }\n\n resetForm(index: number) {\n const controlArray = this.form.controls[index] as FormArray;\n controlArray.reset();\n }\n\n onMatRadioGroupChange($event: any, index: number, input: number) {\n const controlArray = this.form.controls[index] as FormArray;\n const controlArrayControls = controlArray.controls;\n const controlArrayControlsLength = controlArrayControls.length;\n\n let arr = [... this.form.value];\n for (let i = input+1; i < arr[index].length; i++ ) {\n arr[index][i] = \"\";\n }\n\n this.form.setValue(arr);\n\n for (let i = 0; i < controlArrayControlsLength; i++ ) {\n if (i > input) {\n const control = controlArrayControls[i] as FormArray;\n if (control.controls) {\n for (const table of control.controls) {\n const line = table as FormArray;\n if (line.controls) {\n for (const col of line.controls) {\n col.setValidators(null);\n col.clearValidators();\n this.resetFormControlValidation(col);\n }\n }\n }\n }\n }\n }\n\n }\n\n private resetFormControlValidation(control: AbstractControl) {\n control.markAsPristine();\n control.markAsUntouched();\n control.updateValueAndValidity();\n }\n\n toggle(step,idx,value,evt) {\n let vIdx = this.form.value[step][idx].indexOf(value);\n if (vIdx >= 0) {\n this.form.value[step][idx].splice(vIdx,1);\n }\n else {\n this.form.value[step][idx].push(value);\n }\n }\n\n normalizeStep(step) {\n if (!step.enunciated) step.enunciated = {};\n if (step.inputArray) {\n step.inputArray.forEach(input => {\n if (input.visibility_control_value) {\n if (!Array.isArray(input.visibility_control_value)) {\n input.visibility_control_value = [input.visibility_control_value];\n }\n }\n });\n }\n return step;\n }\n\n}\n","import { Component, Input, OnInit, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { FormArray } from '@angular/forms';\nimport { Global } from 'asap-crud';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { TranslateService } from '@ngx-translate/core';\n@Component({\n selector: 'app-editor-component-pdf',\n templateUrl: 'pdf.component.html',\n styleUrls: ['../../editor.component.css', './pdf.component.css'],\n providers: [TrailContentService]\n})\n\nexport class EditorPdfComponent implements OnInit {\n @Input() item: any;\n @Input() id: any;\n @Output() event = new EventEmitter<any>();\n public innerPDF;\n\n contentId: any;\n\n form: FormArray;\n\n blocked: boolean;\n listMarkerLetter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'x', 'z'];\n\n accept: boolean;\n\n constructor(\n private global: Global,\n public _trailContentService: TrailContentService,\n private translate: TranslateService,\n public sanitizer: DomSanitizer\n ) {\n this.form = new FormArray([]);\n }\n\n ngOnInit() {\n if (this.id) { \n this.getAnswer(this.id);\n let url = (this.item.url);\n this.innerPDF = this.sanitizer.bypassSecurityTrustHtml(\n `<object style=\"height:600px;width:100%\" data=\"${url}#toolbar=0&navpanes=0&scrollbar=0\" type=\"application/pdf\" class=\"embed-responsive-item\">\n <iframe frameborder=\"0\" style=\"height:600px;width:100%\" src=\"https://drive.google.com/viewerng/viewer?embedded=true&url=${encodeURIComponent(url)}\" class=\"embed-responsive-item\"></iframe>\n </object> \n `\n );\n } \n }\n\n generateForm() {\n this.blocked = false;\n this.accept = false;\n }\n\n getAnswer(id) {\n this._trailContentService.all(id).subscribe(res => {\n console.log('EditorPdfComponent: getAnswer: res', res);\n\n const check = res.data.find((item: any) => {\n return item.value.type === 'pdf';\n });\n\n console.log('EditorPdfComponent: getAnswer: check', check);\n if (check) {\n\n this.contentId = check.id;\n this.accept = check.value;\n this.blocked = true;\n }\n });\n }\n\n getDecodeURL(url) {\n return decodeURIComponent(url);\n }\n\n onSubmit() {\n\n const data = {\n type: 'pdf',\n value: this.accept\n };\n\n console.log('onSubmit: data', data);\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe(res => {\n this.blocked = true;\n this.goNext();\n console.log('onSubmit: _trailContentService.update: res', res);\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe(res => {\n this.contentId = res.data.id;\n this.blocked = true;\n this.goNext();\n console.log('onSubmit: _trailContentService.save: res', res);\n });\n }\n }\n\n onSubmitWithWarning() {\n this.global.alert({\n title: this.translate.instant('Warning'),\n text: this.translate.instant('YouMustReadTheEntireContentBeforeProceeding'),\n type: 'warning',\n showCancelButton: true,\n confirmButtonText: this.translate.instant('IveFinishedReading'),\n cancelButtonText: this.translate.instant('ReturnAndFinishReading'),\n }).then(\n confirm => {\n if (confirm.value) {\n this.onSubmit();\n }\n },\n cancel => { }\n );\n\n }\n\n goNext() {\n this.event.emit();\n }\n\n}\n","import { Component, Input, OnInit, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { FormGroup, FormBuilder, FormArray, FormControl } from '@angular/forms';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport Swal from 'sweetalert2';\nimport { exit } from 'process';\nimport { data } from 'jquery';\nimport { analyzeAndValidateNgModules } from '@angular/compiler';\nimport { OwlOptions } from 'ngx-owl-carousel-o';\n\n@Component({\n selector: 'app-editor-component-research',\n templateUrl: 'research.component.html',\n styleUrls: ['../../editor.component.css', './research.component.scss'],\n providers: [TrailContentService]\n})\n\nexport class EditorResearchComponent implements OnInit {\n @Input() item: any;\n @Input() id: any;\n\n @Output() event = new EventEmitter<any>();\n\n @ViewChild('slideCarousel', { static: false }) slideCarousel: any;\n\n listMarker: Array<string> = 'abcdefghijklmnopqrstuvwxyz'.split('');\n\n contentId: any;\n\n form: any;\n\n blocked = false;\n isPosting = false;\n\n exibirQuestionario = true;\n exibirGrafico = true;\n atualizarResultadosGraficoApi = false;\n graficoV1 = 0;\n graficoV2 = 0;\n graficov3 = 0;\n graficov4 = 0;\n grafico;\n\n customOptions: OwlOptions = {\n items: 1,\n loop: false,\n mouseDrag: false,\n touchDrag: true,\n pullDrag: false,\n dots: false,\n margin: 0,\n \n navSpeed: 1000,\n responsive: {\n 0: {\n stagePadding: 10,\n },\n 400: {\n stagePadding: 10,\n },\n 740: {\n stagePadding: 50,\n },\n 940: {\n stagePadding: 50,\n }\n },\n nav: false\n }\n\n // listMarkerLetter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'];\n\n constructor(\n public _trailContentService: TrailContentService\n ) {\n this.form = new FormArray([]);\n }\n\n ngOnInit() {\n this.generateForm();\n\n if (this.id) {\n this.getAnswer();\n }\n }\n\n generateForm() {\n this.item.questions.map((i: any) => {\n if (i.type === 'objetiva' || i.type === 'subjetiva') {\n const control = new FormControl('');\n this.form.push(control);\n }\n if (i.type === 'objetiva_multiple') {\n const control = new FormControl('');\n this.form.push(control);\n }\n if (i.type === 'research') {\n const control = new FormArray([]);\n this.form.push(control);\n }\n if (i.type === 'tabela') {\n console.log('EditorResearchComponent: generateForm: i', i);\n const arr = new FormArray([]);\n const lineLength = parseInt(i.lines, 10);\n for (let k = 0; k < lineLength; k++) {\n const array = new FormArray([]);\n i.collumns.map((col: any) => {\n array.push(new FormControl(''));\n });\n arr.push(array);\n }\n this.form.push(arr);\n }\n });\n }\n\n checkboxClicked(question, option, $event) {\n console.log('checkboxClicked', question, option);\n console.log('checkboxClicked', event);\n }\n\n getAnswer() {\n this._trailContentService.all(this.id).subscribe((res: any) => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'research';\n });\n if (check) {\n this.contentId = check.id;\n this.form.patchValue(check.value.value);\n if (this.item.disableUpdate) {\n this.blocked = true;\n }\n }\n });\n }\n\n updateGrafico(conteudo_id) {\n console.log('[updateGrafico] conteudo_id', conteudo_id);\n this._trailContentService.updateGrafico(conteudo_id).subscribe((res: any) => {\n console.log('[updateGrafico] res', res);\n this.grafico = res.data;\n });\n }\n\n onSubmit() {\n\n const data = {\n type: 'research',\n value: this.form.value\n };\n\n this.isPosting = true;\n\n console.log('onSubmit: data', data);\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res: any) => {\n if (this.item.layout == 'assessment' || this.item.layout == 'axle') {\n this.blocked = true;\n console.log('onSubmit: _trailContentService.update: res', res);\n this.exibirQuestionario = false;\n this.exibirGrafico = false;\n this.atualizarResultadosGraficoApi = true;\n this.updateGrafico(res.data.conteudo_id);\n\n }\n else {\n this.goNext();\n }\n\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe((res: any) => {\n if (this.item.layout == 'assessment' || this.item.layout == 'axle') {\n this.contentId = res.data.id;\n this.blocked = true;\n console.log('onSubmit: _trailContentService.save: res', res);\n this.exibirQuestionario = false;\n this.exibirGrafico = false;\n this.atualizarResultadosGraficoApi = true;\n this.updateGrafico(res.data.conteudo_id);\n\n }\n else {\n this.goNext();\n }\n\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n verify(question) {\n if (question.feedback) {\n Swal.fire('', question.feedback);\n }\n }\n\n listMarkerLetter(idx) {\n return String.fromCharCode(97 + idx);\n }\n\n toggle(idx, value) {\n let answer = this.form.value;\n answer[idx] = answer[idx] || [];\n let index = answer[idx].indexOf(value)\n if (index >= 0) {\n answer[idx].splice(index, 1);\n }\n else {\n answer[idx].push(value);\n }\n this.form.setValue(answer);\n }\n\n public slidePrev() {\n this.slideCarousel.prev();\n }\n\n public slideNext() {\n this.slideCarousel.next();\n }\n\n public slideNextRadio(event) {\n event.target.parentElement.classList.add('zoom');\n setTimeout(() => {\n this.slideCarousel.next();\n event.target.parentElement.classList.remove('zoom');\n }, 1000);\n }\n\n getArray(length: number): Array<any> {\n const arr = [];\n for (let i = 0; i < length; i++) {\n arr.push(i);\n }\n return arr;\n }\n\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\n@Injectable()\nexport class FirebaseNotificationService {\n\n public clientFirebaseServer = localStorage.getItem('firebase_server_id');\n private baseUrlAPI;\n constructor(\n private http: HttpClient,\n ) {\n this.baseUrlAPI = `https://us-central1-${this.clientFirebaseServer}.cloudfunctions.net/api`;\n }\n\n // public send(data, user_destination, type) {\n\n // console.log('User Destination', user_destination);\n // console.log('Logged User', this.global.loggedUser());\n\n // if (user_destination.id != this.global.loggedUser().id) {\n // this.sendRequest(user_destination.id, type, data).subscribe(response => {\n // console.log('Response Notification', response);\n // this.global.toastService.show({\n // title:'Pronto!',\n // message:'Notificação enviada com sucesso'\n // })\n // });\n // }\n // }\n\n\n public getTutorConversations(trail_id, user_id) {\n return this.http.get(`${this.baseUrlAPI}/tutor/conversation/${trail_id}/${user_id}`);\n }\n\n public sendTutorConversation(trail_id,answer_id, data) {\n return this.http.post(`${this.baseUrlAPI}/tutor/conversation/${trail_id}/${answer_id}`, data);\n }\n\n \n}","import { Component, Input, OnInit, SimpleChanges, OnChanges, Output, EventEmitter } from '@angular/core';\nimport { FormGroup } from '@angular/forms';\nimport * as moment from 'moment';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { AsapService, Global } from 'asap-crud';\nimport { FirebaseNotificationService } from '../../../@core/services/firebase-notification.service';\nimport { TranslateService } from '@ngx-translate/core';\n\n@Component({\n selector: 'app-editor-component-feedback',\n templateUrl: 'feedback.component.html',\n styleUrls: ['./feedback.component.scss'],\n providers:[FirebaseNotificationService]\n \n})\n\nexport class FeedbackComponent implements OnInit, OnChanges {\n @Input() item: any;\n @Input() id: any;\n @Output() public event = new EventEmitter<any>();\n\n loading: boolean;\n\n form: FormGroup;\n formUpdate: FormGroup;\n response: any;\n forum: any;\n loggedUser: any;\n\n showAnswer: boolean;\n answer: string;\n\n contentId: any;\n\n blocked: boolean;\n\n answerList: any;\n\n voteLock: boolean;\n\n votes: any;\n\n nextPageUri: string;\n token: string;\n\n constructor(\n public trailContentService: TrailContentService,\n public httpClient: HttpClient,\n public global: Global,\n public AsapService: AsapService,\n public firebaseNotification: FirebaseNotificationService,\n private translate: TranslateService\n\n ) {\n moment.locale('pt-br');\n }\n\n ngOnInit() {\n this.getUserLogged();\n this.initialRequest();\n this.get();\n }\n\n get() {\n // this.loading = true;\n // this.firebaseNotification.getTutorConversations(this.contentId, this.loggedUser.id).subscribe((response: any) => {\n // if (response.data) {\n // // this.questionData = response.data.find(item => item.answer_id == this.data.answer_id && item.user_ref == this.data.user_id);\n // console.log(response.data);\n // // if (response.data.answer_id == this.data.answer_id) {\n\n // // }\n // }\n\n // this.loading = false;\n // }); \n }\n\n\n initialRequest() {\n\n if (this.id) {\n this.trailContentService.all(this.id).subscribe((res: any) => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'feedback';\n });\n\n // console.log('[Feedback -> CHECK]', check);\n console.log('[Feedback -> trailContentService]', res.data[0]);\n\n if (check) {\n\n const checkUserAnswer = res.data.find((item: any) => {\n return +item.user_id === +this.loggedUser.id;\n });\n\n // console.log('[Feedback -> checkUserAnswer', checkUserAnswer);\n\n if (checkUserAnswer) {\n this.contentId = checkUserAnswer.id;\n this.answer = checkUserAnswer.value.value;\n this.blocked = true;\n this.showAnswer = true;\n }\n\n this.answerList = check.answers.data;\n\n if (check.answers.next_page_url) {\n this.nextPageUri = check.answers.next_page_url;\n }\n\n this.calc();\n }\n });\n }\n\n }\n\n protected headers(): HttpHeaders {\n let result:any = {\n 'Content-Type': 'application/json',\n 'Access-Control-Allow-Origin': '*',\n 'CompanyName': 'ASAP'\n };\n\n this.token = localStorage.getItem('token');\n\n if (this.token) {\n result.Authorization = this.token;\n }\n \n return new HttpHeaders(result);\n};\n\nprotected options(): any {\n const headerOptions = this.headers();\n return {headers: headerOptions};\n}\n getNextPage() {\n if (!this.nextPageUri) {\n return;\n }\n \n this.httpClient.get(this.nextPageUri.replace('http://','https://'), this.options()).subscribe((res: any) => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'feedback';\n });\n if (check) {\n this.answerList.push(... check.answers.data);\n this.nextPageUri = check.answers.next_page_url;\n }\n });\n }\n\n calc() {\n this.answerList.sort((a: any, b: any) => ((a.value.votes.up - a.value.votes.down) > (b.value.votes.up - b.value.votes.down)) ? -1 : 1);\n }\n\n vote(answer: any, vote: string) {\n\n if (vote === 'up') {\n if (answer.value.votes.voto === 2) {\n answer.value.votes.voto = 1;\n answer.value.votes.up++;\n answer.value.votes.down--;\n } else if (answer.value.votes.voto === 1) {\n answer.value.votes.voto = 0;\n answer.value.votes.up--;\n } else {\n answer.value.votes.voto = 1;\n answer.value.votes.up++;\n }\n }\n\n if (vote === 'down') {\n if (answer.value.votes.voto === 2) {\n answer.value.votes.voto = 0;\n answer.value.votes.down--;\n } else if (answer.value.votes.voto === 1) {\n answer.value.votes.voto = 2;\n answer.value.votes.up--;\n answer.value.votes.down++;\n } else {\n answer.value.votes.voto = 2;\n answer.value.votes.down++;\n }\n }\n\n this.voteRequest(answer.id, answer.value.votes.voto);\n }\n\n voteRequest(id: number, vote: number) {\n this.voteLock = true;\n this.trailContentService.vote(id, vote)\n .subscribe(res => {\n this.voteLock = false;\n this.calc();\n });\n }\n\n OnChanges(changes: SimpleChanges): void {\n if (changes.item) {\n this.getUserLogged();\n }\n }\n\n getUserLogged(): any {\n const loggedUser = JSON.parse(localStorage.getItem('loggedUser'));\n this.loggedUser = loggedUser.data;\n }\n\n onSubmit() {\n\n const data = {\n type: 'feedback',\n value: this.answer,\n votes: this.votes\n };\n\n this.loading = true;\n\n console.log('onSubmit: data', data);\n\n if (this.contentId) {\n this.trailContentService.update(this.contentId, data)\n .subscribe((res: any) => {\n this.initialRequest();\n this.global.swal({\n title: this.translate.instant('Ready'),\n text: this.translate.instant('YourAnswerHasBeenSavedSuccessfully'),\n type: 'info',\n showCancelButton: false\n })\n this.loading = false;\n this.showAnswer = true;\n });\n } else {\n this.trailContentService.save(this.id, data)\n .subscribe((res: any) => {\n this.initialRequest();\n this.global.swal({\n title: this.translate.instant('Ready'),\n text: this.translate.instant('YourAnswerHasBeenSavedSuccessfully'),\n type: 'info',\n showCancelButton: false\n })\n this.loading = false;\n this.showAnswer = true;\n });\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n }\n\n goNext() {\n this.event.emit();\n }\n\n}\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-audio',\n templateUrl: 'audio.component.html',\n styleUrls: ['./audio.component.scss']\n})\n\nexport class AudioComponent {\n @Input() item: any;\n @Input() id: any;\n @Output() public event = new EventEmitter<any>();\n\n constructor() {\n\n }\n\n goNext() {\n this.event.emit();\n }\n\n}\n","import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';\nimport { FormArray, FormControl } from '@angular/forms';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport { TranslateService } from '@ngx-translate/core';\nimport Swal from 'sweetalert2';\n\n@Component({\n selector: 'app-editor-component-random-questions',\n templateUrl: 'random-questions.component.html',\n styleUrls: ['../../editor.component.css', './random-questions.component.scss'],\n providers: [TrailContentService]\n})\n\nexport class EditorRandomQuestionsComponent implements OnInit {\n\n @Input() item: any;\n @Input() id: any;\n\n @Output() event = new EventEmitter<any>();\n\n contentId: any;\n\n blocked = false;\n isPosting = false;\n listMarkerLetter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'x', 'z'];\n onNext = false;\n question: any;\n\n check: any;\n\n gabarito = [];\n answer = [];\n ready = false;\n public disabled; \n\n constructor(\n public _trailContentService: TrailContentService,\n private translate: TranslateService\n ) {\n \n }\n\n ngOnInit() {\n this.getAnswer();\n }\n\n generateForm() {\n console.log('generateForm: this.question', this.question);\n\n if (!this.question) {\n return;\n }\n\n if (this.question.type === 'objetiva' || this.question.type === 'subjetiva') {\n this.answer = [];\n }\n\n if (this.question.type === 'tabela') {\n let lines = parseInt(this.question.lines,10);\n let cols = this.question.collumns.length;\n if (!this.answer) {\n this.answer = new Array(lines).fill(null).map(() => new Array(cols).fill(0));//[];\n }\n this.gabarito = new Array(lines).fill(null).map(() => new Array(cols).fill(0));//[];\n }\n\n if (this.check && this.check.value.value) {\n this.answer = this.check.value.value;\n if (this.item.disableUpdate) {\n this.blocked = true;\n }\n else {\n this.blocked = false;\n }\n }\n else {\n this.blocked = false;\n }\n\n console.log(\"[Answer]\",this.answer);\n }\n\n getAnswer() {\n this.ready = false;\n this._trailContentService.all(this.id).subscribe((res: any) => {\n const check = res.data.find((item: any) => {\n return item.value.type === 'random-questions';\n });\n\n if (check) {\n this.check = check;\n this.contentId = check.id;\n this.onNext = true;\n\n const findIndex = this.item.questions.findIndex((item: any) => item.id === check.value.question);\n\n if (findIndex > -1) {\n this.question = this.item.questions[findIndex];\n } else {\n this.question = this.item.questions[this.getRandomArbitrary(this.item.questions.length)];\n }\n\n if (this.item.disableUpdate) {\n this.blocked = true;\n }\n\n } else {\n this.question = this.item.questions[this.getRandomArbitrary(this.item.questions.length)];\n }\n \n this.generateForm();\n this.ready = true;\n });\n }\n\n getRandomArbitrary(max: number) {\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - 0)) + 0;\n }\n\n onSubmit() {\n\n const data:any = {\n type: 'random-questions',\n question: this.question.id,\n value: this.answer\n };\n\n this.isPosting = true;\n\n console.log('onSubmit: data', data);\n\n if (this.contentId) {\n this._trailContentService.update(this.contentId, data).subscribe((res: any) => {\n this.blocked = false;\n console.log('onSubmit: _trailContentService.update: res', res);\n this.isPosting = false;\n this.check = true;\n });\n } else {\n this._trailContentService.save(this.id, data).subscribe((res: any) => {\n this.contentId = res.data.id;\n this.blocked = false;\n console.log('onSubmit: _trailContentService.save: res', res);\n this.isPosting = false;\n this.check = true;\n });\n }\n }\n\n goNext() {\n this.event.emit();\n }\n\n verify(question: { correct: string, feedback: string }) {\n if (question.correct) {\n Swal.fire(this.translate.instant('GotItRight'), question.feedback, 'success');\n } else {\n Swal.fire(this.translate.instant('Ops!'), question.feedback, 'error');\n }\n this.disabled = true;\n }\n\n}\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\n\n@Component({\n selector: 'app-editor-component-text',\n templateUrl: 'text.component.html',\n styleUrls: ['../../editor.component.css', 'text.component.scss']\n})\nexport class TextComponent {\n @Input() item: any;\n @Output() event = new EventEmitter<any>();\n\n goNext() {\n this.event.emit();\n }\n}\n","import { Component, Input, OnInit, Output, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';\nimport { AsapService } from 'asap-crud';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n@Component({\n selector: 'app-editor-component-page',\n templateUrl: 'page.component.html',\n styleUrls: ['../../editor.component.css', './page.component.scss'],\n providers: [ AsapService ]\n})\n\nexport class EditorPageComponent implements OnInit, OnChanges {\n\n @Input() item: any;\n @Input() id: any;\n @Output() event = new EventEmitter<any>();\n\n public loading = true;\n\n public useIFrame = false;\n\n public src;\n\n constructor(\n public service: AsapService,\n public sanitizer: DomSanitizer\n ) {\n\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.item && this.item && this.item.page_id) {\n this.loadPage(this.item.page_id);\n }\n }\n\n ngOnInit() {\n\n }\n\n goNext() {\n this.event.emit();\n }\n\n resizeIframe(event) {\n const obj = event.path[0];\n }\n\n public normalizeHTML(html) {\n const startPosition = html.indexOf(\"body\");\n const endPosition = html.indexOf(\"body\")+8;\n const styleHtml = html.substring(startPosition, endPosition);\n return html.split(styleHtml).join('');\n }\n\n loadPage(id) {\n this.loading = true;\n this.service.basePath = \"api/v2/admin\";\n this.service.entityName = \"static-page\";\n this.service.getResource(id).subscribe(\n (response) => {\n console.log(\"[EditorPageComponent] loadPage\", response);\n this.item.content.html = this.normalizeHTML(this.item.content.html);\n const content = btoa(unescape(encodeURIComponent(response.data.text)));\n this.src = this.sanitizer.bypassSecurityTrustResourceUrl(`data:text/html;base64,${content}`);\n this.loading = false;\n },\n (error) => {\n const content = btoa(unescape(encodeURIComponent(this.item.content.html)));\n this.src = this.sanitizer.bypassSecurityTrustResourceUrl(`data:text/html;base64,${content}`);\n this.loading = false;\n }\n );\n }\n\n}\n","import { CommonModule } from '@angular/common';\nimport { FileManagerModule } from '../../shared/file-manager/file-manager.module';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NgModule } from '@angular/core';\nimport { ColorPickerModule } from 'ngx-color-picker';\n\nimport { ComponentSharedModule } from '../components/shared/shared.module';\n\nimport { DynamicInputComponent } from './dynamic-input/dynamic-input.component';\nimport { VideoComponent } from './video/video.component';\nimport { ImageComponent } from './image/image.component';\nimport { EditorImageConfigComponent } from './image/config/image-config.component';\n\nimport { EditorChallengeComponent } from './challenge/challenge.component';\nimport { EditorChallengeConfigComponent } from './challenge/config/challenge-config.component';\n\nimport { EditorConclusionComponent } from './conclusion/conclusion.component';\nimport { EditorConclusionConfigComponent } from './conclusion/config/conclusion-config.component';\n\nimport { EditorStarPointComponent } from './star-point/star-point.component';\nimport { EditorStarPointConfigComponent } from './star-point/config/star-point-config.component';\n\nimport { EditorDynamicTableComponent } from './dynamic-table/dynamic-table.component';\nimport { EditorDynamicTableConfigComponent } from './dynamic-table/config/dynamic-table-config.component';\n\nimport { EditorIntroComponent } from './intro/intro.component';\nimport { EditorIntroConfigComponent } from './intro/config/intro-config.component';\n\nimport { EditorLongTextComponent } from './long-text/long-text.component';\nimport { EditorLongTextConfigComponent } from './long-text/config/long-text-config.component';\n\nimport { EditorMultiChoiceComponent } from './multichoice/multichoice.component';\n\nimport { EditorMultipleQuestionsComponent } from './multiple-questions/multiple-questions.component';\nimport { EditorMultipleQuestionsConfigComponent } from './multiple-questions/config/multiple-questions-config.component';\n\nimport { EditorSalesChannelComponent } from './sales-channel/sales-channel.component';\nimport { EditorSalesChannelConfigComponent } from './sales-channel/config/sales-channel-config.component';\n\nimport { EditorSheetCorrectIncorrectComponent } from './sheet-correct-incorrect/sheet-correct-incorrect.component';\nimport { EditorSheetCorrectIncorrectConfigComponent } from './sheet-correct-incorrect/config/sheet-correct-incorrect-config.component';\n\nimport { EditorYesNoComponent } from './yes-no/yes-no.component';\nimport { EditorYesNoConfigComponent } from './yes-no/config/yes-no-config.component';\n\nimport { EditorUploadComponent } from './upload/upload.component';\nimport { EditorUploadConfigComponent } from './upload/config/upload-config.component';\n\nimport { EditorDownloadComponent } from './download/download.component';\nimport { EditorDownloadConfigComponent } from './download/config/download-config.component';\n\nimport { EditorRatingComponent } from './rating/rating.component';\nimport { EditorRatingConfigComponent } from './rating/config/rating-config.component';\n\nimport { ForumComponent } from './forum/forum.component';\nimport { EditorForumConfigComponent } from './forum/config/forum-config.component';\n\nimport { TranslateModule } from '@ngx-translate/core';\nimport { PipesModule } from '../../@core/pipes/pipe.module';\nimport { EditorAvaliationComponent } from './avaliation/avaliation.component';\nimport { AsapUploadModule } from 'asap-upload';\nimport { AsapImagePipeModule } from 'asap-image-pipe';\nimport { EditorContractComponent } from './contract/contract.component';\nimport { MaterialModule } from '../../material.module';\nimport { FormStepComponent } from './form-step/form-step.component';\nimport { EditorPdfComponent } from './pdf/pdf.component';\nimport { AsapSkeletonModule } from 'asap-skeleton';\nimport { EditorResearchComponent } from './research/research.component';\nimport { FeedbackComponent } from './feedback/feedback.component';\nimport { AudioComponent } from './audio/audio.component';\nimport { EditorRandomQuestionsComponent } from './random-questions/random-questions.component';\nimport { TextComponent } from './text/text.component';\nimport { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatRadioModule } from '@angular/material/radio';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatSliderModule } from '@angular/material/slider';\nimport { MomentModule } from 'ngx-moment';\nimport { EditorPageComponent } from './page/page.component';\nimport { CarouselModule } from 'ngx-owl-carousel-o';\nimport { SafePipeModule } from 'safe-pipe';\n\nconst components = [\n DynamicInputComponent,\n EditorChallengeComponent,\n EditorChallengeConfigComponent,\n EditorConclusionComponent,\n EditorConclusionConfigComponent,\n EditorDynamicTableComponent,\n EditorDynamicTableConfigComponent,\n EditorIntroComponent,\n EditorIntroConfigComponent,\n EditorLongTextComponent,\n EditorLongTextConfigComponent,\n EditorMultiChoiceComponent,\n EditorMultipleQuestionsComponent,\n EditorMultipleQuestionsConfigComponent,\n EditorSalesChannelComponent,\n EditorSalesChannelConfigComponent,\n EditorSheetCorrectIncorrectComponent,\n EditorSheetCorrectIncorrectConfigComponent,\n EditorYesNoComponent,\n EditorYesNoConfigComponent,\n VideoComponent,\n ImageComponent,\n EditorImageConfigComponent,\n EditorUploadComponent,\n EditorUploadConfigComponent,\n EditorDownloadComponent,\n EditorDownloadConfigComponent,\n EditorStarPointComponent,\n EditorStarPointConfigComponent,\n EditorRatingComponent,\n EditorRatingConfigComponent,\n ForumComponent,\n EditorForumConfigComponent,\n EditorAvaliationComponent,\n EditorContractComponent,\n FormStepComponent,\n EditorPdfComponent,\n EditorResearchComponent,\n EditorPageComponent,\n FeedbackComponent,\n AudioComponent,\n EditorRandomQuestionsComponent,\n TextComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n FileManagerModule,\n FormsModule,\n ReactiveFormsModule,\n ColorPickerModule,\n MomentModule,\n MatSelectModule,\n TranslateModule,\n AsapUploadModule,\n MatInputModule,\n MatStepperModule,\n MatRadioModule,\n MatTooltipModule,\n MatSliderModule,\n PipesModule,\n AsapUploadModule,\n AsapImagePipeModule,\n MaterialModule,\n AsapSkeletonModule,\n NgxSkeletonLoaderModule,\n PipesModule,\n ComponentSharedModule,\n CarouselModule,\n SafePipeModule\n ],\n declarations: [\n ...components\n ],\n exports: [\n ...components,\n CarouselModule\n ]\n})\n\nexport class EditorComponentsModule { }\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Global } from 'asap-crud';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\n\n@Injectable()\nexport class Trailv2Service {\n\n constructor(\n public http: HttpClient,\n public global: Global\n ) {\n }\n userClassesInfo(id: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/admin/trail/config/classes/user/' + id, {headers: this.getHeader()});\n }\n trilhaInfoEtapa(id: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/info/etapa/' + id, {headers: this.getHeader()});\n }\n\n trilhaEtapaItem(id: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/etapa/item/' + id, {headers: this.getHeader()});\n }\n\n complement(id: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/admin/complement/' + id, {headers: this.getHeader()});\n }\n\n\n getHeader(): any {\n const token = localStorage.getItem('token');\n if (token) {\n const headerOptions = {\n 'Authorization': token,\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Accept': 'application/json'\n };\n return new HttpHeaders(headerOptions);\n }\n }\n\n}\n","import {Component, Inject} from '@angular/core';\nimport {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog';\n\n\n@Component({\n selector: 'banner-modal-component',\n templateUrl: 'banner-modal.html',\n})\nexport class modalTrilhaBanner {\n\n constructor(\n public dialogRef: MatDialogRef<modalTrilhaBanner>,\n @Inject(MAT_DIALOG_DATA) public data: any) { }\n\n onNoClick(): void {\n this.dialogRef.close();\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Global } from 'asap-crud';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\n\n@Injectable()\nexport class AmbienteVirtualService {\n\n constructor(\n public http: HttpClient,\n public global: Global\n ) {\n }\n\n getEtapasByTrail(idCurso: number): Observable<any> {\n return this.getByUrl(this.global.apiURL() + '/api/v2/client/trilha/etapa/item/' + idCurso);\n }\n\n getBannerByTrail(idCurso: number): Observable<any> {\n return this.getByUrl(this.global.apiURL() + '/api/v2/client/banner/trilha/' + idCurso);\n }\n\n getByUrl(url: string): Observable<any> {\n return this.http.get(url, {headers: this.getHeader()});\n }\n\n registerNewProgress(subStepTrail: number): Observable<any> {\n return this.http.post(\n this.global.apiURL() + '/api/v2/client/progresso/sub/post?sub_id=' + subStepTrail,\n {\n sub_id: subStepTrail\n },\n {headers: this.getHeader()}\n );\n }\n\n getSubEtapa(subStepTrail: number): Observable<any> {\n console.log(\"getSubEtapa\",this.global.apiURL() + '/api/v2/client/trilha/sub-etapa/etapa/' + subStepTrail);\n return this.http.get(\n this.global.apiURL() + '/api/v2/client/trilha/sub-etapa/etapa/' + subStepTrail,\n {headers: this.getHeader()}\n );\n }\n\n getContent(id: number): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/client/trilha/conteudo/' + id;\n const header = {headers: this.getHeader()};\n return this.http.get(url, header);\n }\n\n getHeader(): any {\n const token = localStorage.getItem('token');\n if (token) {\n const headerOptions = {\n 'Authorization': token,\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Accept': 'application/json'\n };\n return new HttpHeaders(headerOptions);\n }\n }\n\n getFormUrlEncoded(toConvert) {\n const formBody = [];\n for (const property of toConvert) {\n const encodedKey = encodeURIComponent(property);\n const encodedValue = encodeURIComponent(toConvert[property]);\n formBody.push(encodedKey + '=' + encodedValue);\n }\n return formBody.join('&');\n }\n}\n","export class bannerModel {\n\n public id: number;\n public name: string;\n public assessment_id: number;\n public trilha_id: number;\n public value: BannerValue;\n\n constructor(\n id: number,\n name: string,\n value: any,\n assessment_id: number,\n trilha_id: number\n ) {\n this.id = id;\n this.name = name;\n this.value = value;\n this.assessment_id = assessment_id;\n this.trilha_id = trilha_id;\n }\n\n\n}\n\nexport class BannerValue {\n\n public title: {text: string, align: string};\n public subtitle: {text: string, align: string};\n public description: {text: string, align: string};\n public button: {text: string, size: string, align: string};\n public text_color: string;\n public size: string;\n public background: {type: string, colorPrimary: string, colorSecondary: string, image: string};\n public target: string;\n\n constructor() {\n this.title = {text: 'Título aqui', align: 'center'};\n this.subtitle = {text: 'Sub-título aqui', align: 'center'};\n this.description = {text: 'Texto aqui', align: 'center'};\n this.button = {text: 'Botão', size: 'medium', align: 'center'};\n this.text_color = '#FFFFFF';\n this.size = 'medium';\n this.background = {type: 'color', colorPrimary: '#fc36fd', colorSecondary: '#5d3fda', image: ''};\n this.target = '';\n }\n\n}","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { bannerModel } from '../models/banner.model';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class bannerService {\n\n constructor(public http: HttpClient, public global: Global) {\n\n }\n\n collection(id: number): Promise<Array<bannerModel>> {\n let arrayModel: bannerModel[] = [];\n\n return new Promise<Array<bannerModel>>((resolve, reject) => {\n this.fetchAll(id).subscribe((res: any) => {\n for (const monitoraItem of res.data) {\n arrayModel.push(this.populate(monitoraItem));\n }\n resolve(arrayModel);\n }, err => {\n reject(err);\n })\n })\n }\n\n populate(data: any): bannerModel {\n return new bannerModel(data.id, data.name, data.value, data.assessment_id, data.trilha_id);\n }\n\n fetchAll(id: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/banner/folder/' + id, this.getHeaders());\n }\n\n save(banner: any, id: number): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/banner/folder/' + id, banner, this.getHeaders());\n }\n\n delete(id: number): Observable<any> {\n return this.http.delete(this.global.apiURL() + '/api/v2/client/banner/folder/' + id, this.getHeaders());\n }\n\n folderAll(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/banner/folder', this.getHeaders());\n }\n\n folderDelete(params: number): Observable<any> {\n return this.http.delete(this.global.apiURL() + '/api/v2/client/banner/folder/delete/' +params, this.getHeaders());\n }\n\n folderPost(data: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/banner/folder/post', data, this.getHeaders());\n }\n\n getItem(params: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/banner/folder/' +params, this.getHeaders());\n }\n\n update(banner: any): Observable<any> {\n return this.http.put(this.global.apiURL() + '/api/v2/client/banner/folder/item/' + banner.id, banner, this.getHeaders());\n }\n\n getTrails(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/banner/trilha', this.getHeaders());\n }\n\n getAssessments(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/banner/assessment', this.getHeaders());\n }\n\n trailView(id: number): Observable<any> {\n const data = {\n trilha_id: id\n }\n return this.http.post(this.global.apiURL() + '/api/v2/client/trilha/view', data, this.getHeaders());\n }\n\n verifyBanner(data: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/banner/verify?link=' + data, this.getHeaders());\n }\n\n verifyBannerTrilha(data: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/banner?etapaId=' + data, this.getHeaders());\n }\n\n getHeaders(): {headers: HttpHeaders} {\n const token = localStorage.getItem('token');\n const headerOptions = {\n 'Authorization': token,\n 'Accept': 'application/json'\n };\n return {headers: new HttpHeaders(headerOptions)};\n }\n\n}\n","import { Trailv2Service } from './../../@core/services/trailv2.service';\nimport { Component, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { modalTrilhaBanner } from './banner-modal/banner-modal-component';\nimport { MatDialog } from '@angular/material/dialog';\nimport { AmbienteVirtualService } from '../../@core/services/ambiente-virtual.service';\nimport { bannerService } from '../../@core/services/banner.service';\nimport { AsapClientPipe, Global } from 'asap-crud';\nimport * as m from 'moment';\nimport Swal from 'sweetalert2';\nimport { Location } from '@angular/common';\n\ndeclare const $: any;\ndeclare var swal: any;\n\nconst moment = m;\n\n@Component({\n selector: 'app-curso-visualizador',\n templateUrl: './curso-visualizador.component.html',\n styleUrls: ['./curso-visualizador.component.scss'],\n providers: [AmbienteVirtualService, bannerService, Trailv2Service],\n encapsulation: ViewEncapsulation.None\n})\n\nexport class CursoVisualizadorComponent implements OnInit {\n\n public id: number;\n public loader: boolean;\n public bannerArray: any;\n\n @ViewChild('cursoViewer', { static: false }) cursoViewer;\n @ViewChild('cursoNavBar', { static: false }) cursoNavBar;\n\n public data: any[] = [];\n\n public current: any;\n public module: number;\n public queryParams;\n\n\n etapa: any;\n jornada_id: any;\n name_etapa: any;\n activeSubetapa: any;\n acesso_jornada: any;\n\n constructor(\n private ambienteVirtualService: AmbienteVirtualService,\n private activatedRoute: ActivatedRoute,\n private router: Router,\n private _bannerService: bannerService,\n public trailService: Trailv2Service,\n public dialog: MatDialog,\n public global: Global,\n private location: Location\n ) {\n this.loader = true;\n $('.image-modal-item').click(() => {\n console.log('click');\n });\n\n this.activatedRoute.queryParams.subscribe(params => {\n this.queryParams = params;\n });\n\n }\n\n ngOnInit() {\n this.getParams()\n }\n\n public get themeConfig() {\n return AsapClientPipe.dictionary;\n }\n\n private getParams(): void {\n this.activatedRoute.params.subscribe(params => {\n this.id = params['id'];\n this.jornada_id = params['jornada_id'];\n if (this.global.loggedUser().client_id == 3 && !this.jornada_id) {\n this.id = params['titulo'].split('-')[0];\n }\n // this.id = params['id'];\n\n if (this.global.loggedUser()) {\n if (this.jornada_id) {\n this.trailService.userClassesInfo(this.global.loggedUser().id).subscribe((res: any) => {\n\n this.acesso_jornada = res.filter(item => {\n return (item.journey_id == this.jornada_id);\n });\n\n console.log('Acesso a jornada', this.acesso_jornada);\n if (this.acesso_jornada.length) {\n this.getData();\n this.getStepData();\n this.verificaBanner();\n } else {\n Swal.fire({\n title: 'Atenção',\n type: 'warning',\n text: 'Você não tem permissão para visualizar esse conteúdo',\n confirmButtonText: 'Retornar'\n }).then(confirm => {\n const url = `${window.location.origin}/school`;\n window.location.replace(url);\n })\n }\n })\n }\n else {\n this.getData();\n this.getStepData();\n this.verificaBanner();\n }\n\n }\n else {\n Swal.fire({\n title: 'Atenção',\n type: 'warning',\n text: 'Para que você acesse o curso é necessário que você faça login',\n confirmButtonText: 'Fazer Login'\n }).then(confirm => {\n const url = `${window.location.origin}/login?redirect_url=${window.location.pathname}`;\n window.location.replace(url);\n })\n }\n\n });\n\n }\n\n getData() {\n this.trailService.trilhaInfoEtapa(this.id).subscribe((res: any) => {\n console.log(\"[CursoVisualizadorComponent.getData]\", res);\n if (res.data.length > 0) {\n let etapa = res.data[0];\n if (etapa.dates) {\n etapa.available = false;\n let today = moment().format(\"YYYY-MM-DD\");\n if ((today >= etapa.dates.date_initial) && (today <= etapa.dates.date_final)) {\n etapa.available = true;\n }\n }\n else {\n etapa.available = true;\n }\n this.etapa = etapa;\n }\n });\n }\n\n verificaBanner(): void {\n this._bannerService.verifyBannerTrilha(this.id)\n .subscribe((res: any) => {\n this.bannerArray = res.data;\n if (this.bannerArray.length > 0 && this.bannerArray[0].status === 0) {\n this.openDialog(this.bannerArray);\n }\n });\n }\n\n openDialog(data: any): void {\n\n const dialogRef = this.dialog.open(modalTrilhaBanner, {\n maxWidth: '100%',\n data: data,\n panelClass: 'modalBanner'\n });\n\n dialogRef.afterClosed().subscribe(result => {\n });\n }\n\n compare(a, b) {\n if (a.order < b.order) {\n return -1;\n }\n if (a.order > b.order) {\n return 1;\n }\n return 0;\n }\n\n private getStepData(): void {\n this.loader = true;\n this.module = this.id;\n this.ambienteVirtualService.getSubEtapa(this.id).subscribe(\n (res: any) => {\n res.data.sort(this.compare);\n\n if (res.data.length > 0) {\n this.data = res.data;\n this.activatedRoute.fragment.subscribe((fragment: string) => {\n if (fragment && (fragment != 'material-de-apoio')) {\n if (fragment.indexOf('etapa') != -1) {\n console.log('subetapas data', this.data);\n //const activeSubetapa = this.data.filter(function(subetapa){return subetapa.id == ;} );\n console.log('activeSubetapa', fragment.split('-')[1])\n //this.current = activeSubetapa;\n const currentIndex = parseInt(fragment.split('-')[1]) - 1;\n console.log('currentIndex', currentIndex)\n console.log('data currentindex', this.data[currentIndex].id)\n this.getSubEtapaByEvent(this.data[currentIndex]);\n //this.cursoViewer.getContent(this.data[currentIndex].id);\n //this.cursoNavBar.setIndexes(this.data, this.current);\n }\n } else {\n this.getcurrent();\n console.log(this.data[0])\n this.getSubEtapaByEvent(this.data[0]);\n }\n })\n\n }\n this.loader = false;\n }, err => {\n console.log(\"Erro\", err);\n this.notificate();\n }\n );\n\n }\n\n\n getSubEtapaByEvent($event): void {\n const oldCurrent = this.current;\n\n if ($event.orientation == 'next') {\n this.checkAsRead(oldCurrent.id);\n }\n\n console.log('getSubEtapaByEvent() oldCurrent', oldCurrent)\n console.log('getSubEtapaByEvent() event', $event)\n console.log('getSubEtapaByEvent() this.data', this.data)\n console.log('getSubEtapaByEvent() this.current', this.current)\n\n if (this.global.loggedUser().client_id == 3) {\n const index = this.data.indexOf($event);\n if ((this.global.loggedUser().client_id == 3) && (this.jornada_id)) {\n this.location.go('/jornada/' + this.jornada_id + '/' + $event.etapa_id + '/' + this.toSeoUrl($event.title) + '#etapa-' + (index + 1));\n } else {\n this.location.go('/visualizador/curso/' + $event.etapa_id + '-' + this.toSeoUrl($event.title) + '#etapa-' + (index + 1));\n }\n }\n\n\n this.current = $event;\n if (this.cursoViewer) {\n this.cursoViewer.getContent(this.current.id);\n this.cursoNavBar.setIndexes(this.data, this.current);\n }\n\n }\n\n\n public getcurrent(): void {\n this.current = this.data.find(item => {\n return item.status === 0;\n });\n if (!this.current) {\n this.current = this.data[0];\n }\n }\n\n private notificate(): any {\n swal({\n title: 'Erro',\n text: 'Erro ao carregar conteúdo. Recarregue sua página.',\n type: 'warning',\n confirmButtonClass: 'btn btn-success',\n });\n }\n\n public eventNavBar($event): any {\n console.log(\"[CursoVisualizadorComponent] eventNavBar\", $event);\n if ($event == 'next') {\n this.next();\n } else if ($event == 'previous') {\n this.previous();\n } else if ($event == 'done') {\n this.onDone(this.etapa.item_id);\n } else if ($event == 'read') {\n this.read();\n }\n window.scrollTo(0, 0);\n }\n\n public currentIndex(): number {\n return this.data.indexOf(this.current);\n }\n\n public onDone(etapa_id) {\n this.trailService.trilhaEtapaItem(etapa_id).subscribe(response => {\n console.log('OnNextModule ->', response);\n\n const actualCourse = response.data.find(i => {\n return i.id === this.etapa.id;\n });\n\n const indexNextCourse = response.data.indexOf(actualCourse);\n console.log('actualCourse', actualCourse);\n console.log('indexNextCourse', indexNextCourse);\n const nextCourse = response.data[indexNextCourse];\n // if ()\n // console.log('onDone', indexNextCourse, actualCourse)\n // this.done();\n console.log(nextCourse);\n\n //Registrar o progresso na etapa;\n this.checkAsRead(this.data[this.currentIndex()].id);\n\n if (indexNextCourse + 1 === response.data.length) {\n if (this.global.loggedUser().client_id == 3) {\n // console.log(this.etapaArray);\n //console.log(this.name_etapa);\n this.router.navigate(['/jornada', this.jornada_id]);\n\n } else {\n if (this.queryParams.origin == 'journey' && this.queryParams.ref) {\n\n this.router.navigate(['/journey', this.queryParams.ref], { queryParams: this.queryParams });\n }\n else {\n console.log('NAVIGATE ESCOLA');\n // this.router.navigate(['/']);\n window.history.back();\n }\n }\n }\n else {\n const newCourse = response.data[indexNextCourse + 1];\n\n if (this.global.loggedUser().client_id == 3) {\n if (this.jornada_id) {\n this.router.navigate(['/jornada', this.jornada_id, newCourse.id, this.toSeoUrl(newCourse.nome)]);\n } else {\n this.router.navigate(['/visualizador/curso/' + newCourse.id + '-' + this.toSeoUrl(newCourse.nome)]);\n }\n } else {\n if (this.queryParams.origin == 'journey' && this.queryParams.ref) {\n this.router.navigate([`visualizador/etapa/${newCourse.id}`], { queryParams: this.queryParams });\n }\n else {\n console.log('NewCourse', newCourse);\n this.router.navigate([`visualizador/etapa/${newCourse.id}`]);\n }\n }\n\n }\n })\n }\n\n public toSeoUrl(url) {\n return url.toString() // Convert to string\n .normalize('NFD') // Change diacritics\n .replace(/[\\u0300-\\u036f]/g, '') // Remove illegal characters\n .replace(/\\s+/g, '-') // Change whitespace to dashes\n .toLowerCase() // Change to lowercase\n .replace(/&/g, '-and-') // Replace ampersand\n .replace(/[^a-z0-9\\-]/g, '') // Remove anything that is not a letter, number or dash\n .replace(/-+/g, '-') // Remove duplicate dashes\n .replace(/^-*/, '') // Remove starting dashes\n .replace(/-*$/, ''); // Remove trailing dashes\n }\n\n public next(): any {\n console.log(`NEXT LOG 1 ->`, this.currentIndex());\n console.log(`NEXT LOG 1 ->`, this.data.length);\n\n\n if ((this.currentIndex() + 1) === this.data.length) {\n this.done();\n } else {\n this.data[this.currentIndex()].status = 1;\n const newCurrent = this.data[this.currentIndex() + 1];\n newCurrent.orientation = 'next';\n this.getSubEtapaByEvent(newCurrent);\n }\n }\n\n public previous(): void {\n const newCurrent = this.data[this.currentIndex() - 1];\n this.getSubEtapaByEvent(newCurrent);\n }\n\n public done(): any {\n console.log('Done ->', this.data[this.currentIndex()].id);\n this.checkAsRead(this.data[this.currentIndex()].id);\n console.log('-> DATA', this.data)\n window.history.back();\n console.log('BACK');\n }\n\n public read(): any {\n console.log('Read ->', this.data[this.currentIndex()].id);\n this.checkAsRead(this.data[this.currentIndex()].id);\n }\n\n back(): void {\n const urlAfterViewer = sessionStorage.getItem('urlAfterViewer') || '/';\n sessionStorage.removeItem('urlAfterViewer');\n this.router.navigate([urlAfterViewer]);\n }\n\n getUrlEscola() {\n const uris = [\n {\n platform: 'asta',\n uri: '/painel/escola',\n client_id: '000'\n },\n {\n platform: 'fitness-link',\n uri: '/painel/meus-cursos',\n client_id: '000'\n },\n {\n platform: 'lele',\n uri: '/trilhas',\n client_id: '000'\n },\n {\n platform: 'universidadesmart',\n uri: `/training/${this.etapa.item_id}`,\n client_id: '20'\n }];\n\n const escolaUri = uris.find(item => {\n return item.client_id === this.global.loggedUser().client_id;\n })\n\n return (escolaUri) ? escolaUri.uri : false;\n }\n\n\n\n public checkAsRead(idSubStep: number): void {\n if (idSubStep !== undefined) {\n this.ambienteVirtualService.registerNewProgress(idSubStep).subscribe(\n response => {\n console.log('checkAsRead', response);\n },\n error => {\n }\n );\n }\n }\n\n}\n","import { Component, OnInit, ViewChild, ElementRef, Directive, Input, Output, EventEmitter, Renderer2 } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { Location, LocationStrategy, PathLocationStrategy } from '@angular/common';\nimport { AmbienteVirtualService } from '../../../@core/services/ambiente-virtual.service';\nimport { Global } from 'asap-crud';\nimport { Trailv2Service } from '../../../@core/services/trailv2.service';\n\nconst misc: any = {\n navbar_menu_visible: 0,\n active_collapse: true,\n disabled_collapse_init: 0,\n};\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-navbar-curso',\n templateUrl: 'curso-navbar.component.html',\n styleUrls: ['../curso-visualizador.component.scss']\n})\n\nexport class CursoNavbarComponent implements OnInit {\n public location: Location;\n platform: string;\n urlEscola: string;\n\n @Input() public data: any;\n @Input() public current: any;\n @Input() public etapa: any;\n @Input() public journey: any;\n @Input() public sub_etapa: any;\n @Input() public sub_etapa_id: any;\n indexes: any;\n\n // ASAP\n @Output()\n public eventNavbar = new EventEmitter<any>();\n public event = new EventEmitter<any>();\n public checkIfAllHaveDoneVar: boolean;\n\n public menuItems: any[];\n\n public origemUrl: any;\n public referenceUrl: any;\n\n @ViewChild('app-navbar-curso', { static: false }) button: any;\n\n constructor(\n location: Location,\n private renderer: Renderer2,\n private element: ElementRef,\n private ambienteVirtualService: AmbienteVirtualService,\n private _router: Router,\n private global: Global,\n private trailService: Trailv2Service,\n private route: ActivatedRoute,\n ) {\n\n this.route.queryParams.subscribe(queryParam => {\n this.origemUrl = queryParam['origin'];\n this.referenceUrl = queryParam['ref'];\n });\n\n this.location = location;\n this.checkIfAllHaveDoneVar = false;\n this.platform = this.global.getPlataform();\n console.log('Plataform ->', this.platform);\n }\n\n public setIndexes(data, current) {\n this.indexes = {\n current: data.indexOf(current) + 1,\n total: data.length\n }\n }\n\n getUrlEscola() {\n const uris = [\n {\n platform: 'asta',\n uri: '/painel/escola',\n client_id: '000'\n },\n {\n platform: 'fitness-link',\n uri: '/painel/meus-cursos',\n client_id: '000'\n },\n {\n platform: 'lele',\n uri: '/trilhas',\n client_id: '000'\n },\n {\n platform: 'universidadesmart',\n uri: `/training/${this.etapa.item_id}`,\n client_id: '20'\n }];\n\n const escolaUri = uris.find(item => {\n return item.client_id === this.global.loggedUser().client_id;\n })\n\n return (escolaUri) ? escolaUri.uri : false;\n }\n\n ngOnChanges(sub_etapa_id: any) {\n this.getSubEtapaTitulo(this.sub_etapa_id)\n }\n\n ngOnInit() {\n this.menuItems = this.data;\n this.setIndexes(this.data, this.current);\n console.log('EVENT NAVBAR', this.eventNavbar);\n this.getSubEtapaTitulo(this.sub_etapa_id)\n }\n\n getSubEtapaTitulo(etapa_id) {\n this.sub_etapa = this.data.filter(function(item) {\n return item.id == etapa_id;\n })[0];\n console.log('subetapa',this.sub_etapa)\n }\n\n onNext(etapa_id) {\n this.getSubEtapaTitulo(etapa_id)\n this.trailService.trilhaEtapaItem(etapa_id).subscribe(response => {\n console.log('OnNextModule ->', response);\n const actualCourse = response.data.find(i => {\n return i.id === this.etapa.id;\n });\n\n const indexNextCourse = response.data.indexOf(actualCourse);\n\n if (indexNextCourse + 1 === response.data.length) {\n this._router.navigate([this.getUrlEscola()]);\n }\n else {\n const newCourse = response.data[indexNextCourse + 1];\n if(this.global.loggedUser().client_id == 3) {\n if(this.journey) {\n this._router.navigate(['/jornada', this.journey, newCourse.id, this.toSeoUrl(newCourse.nome)]);\n } else {\n this._router.navigate(['/visualizador/curso/' + newCourse.id + '-' + this.toSeoUrl(newCourse.nome)]);\n }\n } else {\n console.log('NewCourse', newCourse);\n this._router.navigate([`visualizador/etapa/${newCourse.id}`]);\n }\n }\n })\n }\n\n public toSeoUrl(url) {\n return url.toString() // Convert to string\n .normalize('NFD') // Change diacritics\n .replace(/[\\u0300-\\u036f]/g,'') // Remove illegal characters\n .replace(/\\s+/g,'-') // Change whitespace to dashes\n .toLowerCase() // Change to lowercase\n .replace(/&/g,'-and-') // Replace ampersand\n .replace(/[^a-z0-9\\-]/g,'') // Remove anything that is not a letter, number or dash\n .replace(/-+/g,'-') // Remove duplicate dashes\n .replace(/^-*/,'') // Remove starting dashes\n .replace(/-*$/,''); // Remove trailing dashes\n}\n\n back(): void {\n if (this.origemUrl) {\n this._router.navigate([this.origemUrl, this.referenceUrl]);\n }\n else {\n if (this.global.loggedUser().client_id == 3) {\n console.log('current', this.data, this.current, this.etapa, this.sub_etapa, this.sub_etapa_id);\n if (this.journey) {\n this._router.navigate([`jornada/${this.journey}`]);\n } else {\n this._router.navigate([`/school/timeline/${this.etapa.item_id}`]);\n }\n } else {\n this._router.navigate(['/universidade']);\n }\n }\n }\n\n\n public menuNavigate(obj: any): void {\n console.log('Menu Navigate ->', obj, this.menuItems[0]);\n\n if (this.current === obj) {\n //return;\n }\n\n this.current.status = '1';\n this.event.emit(this.menuItems[1]);\n window.scrollTo(0, 0);\n }\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\n\nimport { AmbienteVirtualService } from '../../../@core/services/ambiente-virtual.service';\nimport { Trailv2Service } from '../../../@core/services/trailv2.service';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { AsapViewerService } from '../../../asap-viewer.service';\nimport { Global } from 'asap-crud';\nimport { Location } from '@angular/common';\n\ndeclare const $: any;\n\n// Metadata\nexport interface RouteInfo {\n path?: string;\n title: string;\n type: string;\n icontype: string;\n collapse?: string;\n done?: boolean;\n children?: ChildrenItems[];\n}\n\nexport interface ChildrenItems {\n path: string;\n title: string;\n ab?: string;\n icontype?: string;\n done?: boolean;\n type?: string;\n}\n\n@Component({\n selector: 'app-sidebar-curso-visualizador',\n templateUrl: 'curso-sidebar.component.html',\n styleUrls: ['../curso-visualizador.component.scss'],\n providers: [Trailv2Service]\n})\n\nexport class CursoSidebarComponent implements OnInit {\n\n @Input() public data: any;\n @Input() public current: any;\n @Input() public trail: any;\n\n @Input() public etapa: any;\n @Input() public journey: any;\n\n @Output() public event = new EventEmitter<any>();\n\n public menuItems: any[];\n urlEscola: string;\n platform: string;\n logo: string;\n\n public etapaArray: any[];\n public complementArray: any[];\n\n displayMenu = true;\n\n id: number;\n name_etapa: any;\n active_etapa: any[];\n material = false;\n\n constructor(\n private _ambienteVirtualService: AmbienteVirtualService,\n public trailv2Service: Trailv2Service,\n public router: Router,\n private activatedRoute: ActivatedRoute,\n public viewerService: AsapViewerService,\n private global: Global,\n private location: Location\n ) {\n this.platform = localStorage.getItem('platform');\n this.urlEscola = this.getUrlEscola();\n\n if (this.platform === 'asta') {\n this.logo = '/assets/img/clientes/asta/logo.png';\n } else if (this.platform === 'fitness-link') {\n this.logo = '/assets/img/fitness-link-logo.png';\n }\n\n }\n\n getUrlEscola(): string {\n if (this.platform === 'asta') {\n return '/painel/escola';\n } else if (this.platform === 'fitness-link') {\n return '/painel/curso';\n } else if (this.platform === 'lele') {\n return '/trilhas';\n }\n return '/';\n }\n\n ngOnInit() {\n this.menuItems = this.data;\n\n this.activatedRoute.fragment.subscribe((fragment: string) => {\n if (fragment == 'material-de-apoio') {\n this.material = true;\n }\n });\n\n $(document).ready(function () {\n\n $('.sidebarCollapse').on('click', function () {\n $('#sidemenu-viewer, #content').toggleClass('active');\n });\n\n $('.sidebarMobileClose').on('click', function () {\n $('#sidemenu-viewer, #content').removeClass('active');\n });\n\n });\n\n $(document).on('click', '#btn-h', function () {\n $(this).attr('id', 'btn-v').html('<i class=\\'fa fa-bars\\'></i>');\n });\n\n $(document).on('click', '#btn-v', function () {\n $(this).attr('id', 'btn-h').html('<i class=\\'fa fa-bars\\'></i>');\n });\n\n this.getEtapas();\n\n }\n\n setMaterialURL() {\n if (this.journey) {\n this.location.go('/jornada/' + this.journey + '/' + this.etapa.item_id + '/' + this.toSeoUrl(this.etapa.nome) + '#material-de-apoio');\n } else {\n this.location.go('/visualizador/curso/' + this.etapa.item_id + '-' + this.toSeoUrl(this.name_etapa[0].nome) + '#material-de-apoio');\n }\n }\n\n public orientation(from: any, to: any) {\n const fromIndex = this.menuItems.indexOf(from);\n const toIndex = this.menuItems.indexOf(to);\n\n if (toIndex > fromIndex) {\n return 'next';\n } else if (fromIndex > toIndex) {\n return 'prev';\n } else {\n return 'stay';\n }\n }\n\n public menuNavigate(obj: any): void {\n console.log('Menu Navigate ->', obj, this.current);\n\n obj.orientation = this.orientation(this.current, obj);\n\n if (this.current === obj) {\n return;\n }\n\n this.current.status = '1';\n this.event.emit(obj);\n window.scrollTo(0, 0);\n }\n\n getEtapas() {\n this.trailv2Service.trilhaEtapaItem(this.trail)\n .subscribe((res: any) => {\n this.etapaArray = res.data;\n this.getComplements();\n\n\n });\n }\n\n getComplements() {\n this.trailv2Service.complement(this.trail)\n .subscribe((res: any) => {\n if (res.data.length > 0) {\n this.complementArray = res.data[0].value;\n }\n });\n }\n public toSeoUrl(url) {\n return url.toString() // Convert to string\n .normalize('NFD') // Change diacritics\n .replace(/[\\u0300-\\u036f]/g, '') // Remove illegal characters\n .replace(/\\s+/g, '-') // Change whitespace to dashes\n .toLowerCase() // Change to lowercase\n .replace(/&/g, '-and-') // Replace ampersand\n .replace(/[^a-z0-9\\-]/g, '') // Remove anything that is not a letter, number or dash\n .replace(/-+/g, '-') // Remove duplicate dashes\n .replace(/^-*/, '') // Remove starting dashes\n .replace(/-*$/, ''); // Remove trailing dashes\n }\n onEtapaChange(id: any) {\n\n if (this.id !== id) {\n if (this.global.loggedUser().client_id == 3) {\n // console.log(this.etapaArray);\n this.name_etapa = this.etapaArray.filter(function (etapa) { return etapa.id == id; });\n //console.log(this.name_etapa);\n if (this.journey) {\n this.router.navigate(['/jornada', this.journey, id, this.toSeoUrl(this.name_etapa[0].nome)]);\n } else {\n this.router.navigate(['/visualizador/curso/' + id + '-' + this.toSeoUrl(this.name_etapa[0].nome)]);\n }\n } else {\n this.router.navigate(['/visualizador/etapa', id]);\n }\n }\n }\n}\n","import { Component, Inject, EventEmitter, Output } from '@angular/core';\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { TrilhaRatingService } from '../../@core/services/trilha/trilha-rating.service';\nimport { Router } from '@angular/router';\nimport { Global } from 'asap-crud';\n\n// Start Rating Component\n@Component({\n selector: 'app-mini-visualizador-modal-rating',\n templateUrl: './modal-rating.component.html',\n styleUrls: ['./modal-rating.component.css', '../../asap-viewer.css'],\n providers: [TrilhaRatingService, Global]\n})\nexport class ModalStarRatingComponent {\n\n score: number = 0;\n showCertificateLink: boolean;\n showContinueButtom: boolean = false;\n loading: boolean;\n comment;\n\n constructor(\n private _trilhaRatingService: TrilhaRatingService,\n public dialogRef: MatDialogRef<ModalStarRatingComponent>,\n public router: Router,\n public global: Global,\n @Inject(MAT_DIALOG_DATA) public data: any\n ) { }\n\n ngOnInit() {\n }\n\n jump(): void {\n this.dialogRef.close(true);\n }\n\n onRateChange = (score) => {\n this.score = score;\n }\n\n save() {\n this.loading = true;\n const form = { rating: this.score, comment: this.comment }\n this._trilhaRatingService.createResource(form, { router: this.data.owner.module }).subscribe(res => {\n if (res) {\n this._trilhaRatingService.getResource(this.data.owner.module).subscribe(\n response => {\n if (response.data.end) {\n // this.showCertificateLink = false;\n this.goToRedirect('save');\n this.showContinueButtom = true;\n }\n else {\n this.showContinueButtom = true;\n }\n },\n error => {\n this.global.alert('Ops!', 'Ocorreu um problema ao processar sua requisição', 'error');\n })\n }\n else {\n this.showContinueButtom = true;\n this.dialogRef.close('done');\n\n }\n },\n error => {\n this.loading = false;\n })\n }\n\n onClose() {\n this.goToRedirect('onClose');\n }\n \n goToRedirect(source: string) {\n if (this.data.redirect) {\n this.router.navigateByUrl(this.data.redirect);\n this.dialogRef.close('redirecting');\n }\n else {\n this.dialogRef.close('done');\n }\n }\n \n goToCertificate() {\n this.dialogRef.close(true);\n // this.router.navigate(['/my-page'], {queryParams: {certificate: 'certificate'}});\n }\n}\n","import { Component, OnInit, Input, EventEmitter, Output, ViewChild } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\nimport { MatDialog } from '@angular/material/dialog';\nimport { ModalStarRatingComponent } from '../../modal-rating/modal-rating.component';\nimport { VimeoService } from '../../../@core/services/vimeo.service';\nimport { AmbienteVirtualService } from '../../../@core/services/ambiente-virtual.service';\nimport { VideoItemComponent, ImageItemComponent, PdfItemComponent, ExerciseComponent, MultiChoiceComponent } from '../../../@core/models/item-component';\nimport { Global } from 'asap-crud';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\n\ndeclare var swal: any;\ndeclare var $: any;\n\n@Component({\n selector: 'app-viewer',\n templateUrl: './viewer.component.html',\n styleUrls: ['../curso-visualizador.component.scss', './viewer.component.scss'],\n providers: [VimeoService, TrailContentService]\n})\nexport class ViewerComponent implements OnInit {\n @Input() module: any;\n @Input() step: any;\n @Input() id;\n @Input() etapa: any;\n @Output() eventRefreshSideBar = new EventEmitter<any>();\n @Output() eventNavbar = new EventEmitter<any>();\n\n\n @ViewChild('conclusion', { static: false }) conclusion: any;\n\n public updateAt10;\n public updateAt25;\n public updateAt50;\n public updateAt75;\n public content;\n public redirect;\n\n public ratingOpened = false;\n\n componentArray: Array<any>;\n loader: boolean;\n\n constructor(\n private _ambienteVirtualService: AmbienteVirtualService,\n private _sanitizer: DomSanitizer,\n private _vimeoService: VimeoService,\n public dialog: MatDialog,\n public global: Global,\n public trailContentService: TrailContentService\n ) {\n }\n\n ngOnInit() {\n this.getContent(this.step);\n }\n\n private sanitizer(url: string, type: string): SafeResourceUrl {\n\n let uri;\n\n if (!url) {\n return null;\n }\n\n if (type === 'youtube') {\n const code = this.getYoutubeID(url);\n uri = 'https://www.youtube.com/embed/' + code + '?rel=0&showinfo=0';\n }\n\n if (type === 'vimeo') {\n const code = this.getVimeoID(url);\n uri = 'https://player.vimeo.com/video/' + code;\n }\n\n if (type === 'file') {\n uri = url;\n }\n\n if (type === 'stream') {\n uri = url;\n }\n\n if (type === 'image') {\n uri = url;\n }\n\n return this._sanitizer.bypassSecurityTrustResourceUrl(uri);\n }\n\n getYoutubeID(url: string): string {\n const regExp = /^.*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?([^#\\&\\?]*).*/;\n const match = url.match(regExp);\n return (match && match[7].length === 11) ? match[7] : '';\n }\n\n getVimeoID(url: string): string {\n // tslint:disable-next-line:max-line-length\n const regExp = /https?:\\/\\/(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)?|groups\\/([^\\/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|video\\/|)(\\d+)(?:$|\\/|\\?)/;\n const match = url.match(regExp);\n return (match && match[3]) ? match[3] : '';\n }\n\n getContent(step: number) {\n this.loader = true;\n this._ambienteVirtualService.getContent(step)\n .subscribe((res: any) => {\n const data = res.data[0].value;\n this.redirect = res.redirect;\n this.content = res.data[0];\n\n if (res['data'][0].value) {\n const itensJson = res['data'][0].value;\n\n this.componentArray = [];\n\n for (const item of itensJson) {\n this.componentArray.push(item);\n }\n\n }\n\n this.loader = false;\n }, err => {\n console.log(err);\n });\n }\n\n resetVideoUpdater() {\n this.updateAt10 = true;\n this.updateAt25 = true;\n this.updateAt50 = true;\n this.updateAt75 = true;\n }\n\n updateVideoTime(event) {\n if (event.progress < 10) {\n this.resetVideoUpdater();\n }\n else if ((event.progress >= 10) && (this.updateAt10)) {\n this.doUpdateVideoTime(event);\n this.updateAt10 = false;\n }\n else if ((event.progress >= 25) && (this.updateAt25)) {\n this.doUpdateVideoTime(event);\n this.updateAt25 = false;\n }\n else if ((event.progress >= 50) && (this.updateAt50)) {\n this.doUpdateVideoTime(event);\n this.updateAt50 = false;\n }\n else if ((event.progress >= 75) && (this.updateAt75)) {\n this.doUpdateVideoTime(event);\n this.updateAt75 = false;\n }\n else if (event.progress >= 100) {\n this.doUpdateVideoTime(event);\n }\n }\n\n doUpdateVideoTime(time) {\n this.trailContentService.videoTime(this.content.id, time.current).subscribe(\n (result) => {\n console.log('doUpdateVideoTime ->', result);\n },\n (error: any) => {\n console.log('Error updateVideoTime', error);\n }\n )\n }\n\n\n private notificate(): any {\n this.global.swal({\n title: 'Erro',\n text: 'Erro ao carregar conteúdo. Recarregue sua página.',\n type: 'warning',\n confirmButtonClass: 'btn btn-success',\n });\n }\n\n goToAnchor(anchor: string) {\n const $div = $('#' + anchor);\n const top = $div.offset().top + 48;\n\n $('html, body').animate({ scrollTop: top }, 1000);\n }\n\n showButton(item: any) {\n return (\n item.button &&\n item.button !== '' &&\n item.type !== 'intro' &&\n item.type !== 'conclusion' &&\n item.type !== 'challenge'\n );\n }\n\n emitEvent(event: string) {\n this.eventNavbar.emit(event);\n window.scrollTo(0, 0);\n }\n\n ratingEvent(event = 'next') {\n if (!this.ratingOpened) {\n this.ratingOpened = true;\n const dialogRef = this.dialog.open(ModalStarRatingComponent, {\n width: '380px',\n disableClose: true,\n data: { id: this.id, owner: this, event: event, redirect: this.redirect }\n });\n \n dialogRef.afterClosed().subscribe(result => {\n this.ratingOpened = false;\n console.log('[ViewerComponente] ratingEvent -> ', result)\n this.eventNavbar.emit(result);\n window.scrollTo(0, 0);\n });\n }\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class MiniTrailService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'trilha/minicurso')\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class DevelopmentService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'trilha/des')\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class ArticlesService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'trilha/articles')\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class TrilhaItemService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'trilha/etapa/item');\n }\n\n}\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { AgendaModel } from '../models/agenda.model';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class LayoutService {\n\n constructor(public http: HttpClient, public global: Global) {\n\n }\n\n data(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/type/layout', this.getHeaders());\n }\n\n getHeaders(): {headers: HttpHeaders} {\n const token = localStorage.getItem('token');\n const headerOptions = {\n 'Authorization': token,\n 'Accept': 'application/json'\n };\n return {headers: new HttpHeaders(headerOptions)};\n }\n\n}\n","import { Component, ViewChild, OnInit } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { MatDialog } from '@angular/material/dialog';\nimport { AmbienteVirtualService } from '../../@core/services/ambiente-virtual.service';\nimport { bannerService } from '../../@core/services/banner.service';\nimport { MiniTrailService } from '../../@core/services/minicurso/minicurso.service';\nimport { DevelopmentService } from '../../@core/services/development/development.service';\nimport { ArticlesService } from '../../@core/services/articles/articles.service';\nimport { TrilhaService } from '../../@core/services/trilha/trilha.service';\nimport { TrilhaItemService } from '../../@core/services/trilha/trilha-item.service';\nimport { Global } from 'asap-crud';\nimport { LayoutService } from '../../@core/services/layout.service';\n\ndeclare const $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-mini-curso-visualizador',\n templateUrl: './mini-curso-visualizador.component.html',\n styleUrls: ['./scss/styles.component.scss'],\n providers: [\n AmbienteVirtualService,\n bannerService,\n MiniTrailService,\n DevelopmentService,\n ArticlesService,\n TrilhaService,\n TrilhaItemService,\n LayoutService\n ]\n})\n\nexport class MiniCursoVisualizadorComponent implements OnInit {\n\n public id: number;\n public subEtapaID: number;\n public loader: boolean;\n public loaderList: boolean;\n public bannerArray: any;\n public playlist: any;\n public playlistBuffer: any;\n public playlistPage: number;\n public playlistItemFinal: number;\n public score: any;\n public title: string;\n public checkModule;\n public now: Date = new Date();\n // miniStep - 0 == mini-etapa; 1 == etapa-develop; 2 == etapa-articles;\n public miniStep: any;\n @ViewChild('cursoViewer', { static: false }) cursoViewer;\n @ViewChild('cursoNavBar', { static: false }) cursoNavBar;\n public data: any[] = [];\n public trail: any;\n public module: number;\n public current: any;\n public index: number;\n public helperText: string;\n public dataLoadError;\n\n public design: any;\n public component: any;\n\n constructor(\n private ambienteVirtualService: AmbienteVirtualService,\n private activatedRoute: ActivatedRoute,\n private router: Router,\n private _trilhaService: TrilhaService,\n public dialog: MatDialog,\n private _MiniTrailService: MiniTrailService,\n private _DevelopmentService: DevelopmentService,\n private _ArticlesService: ArticlesService,\n private _trilhaItemService: TrilhaItemService,\n public _layoutService: LayoutService,\n public global: Global\n ) {\n this.loader = true;\n this.loaderList = true;\n this.index = 0;\n this.playlist = [];\n this.playlistPage = 0;\n this.activatedRoute.params\n .subscribe(params => {\n this.id = params['id'];\n this.bootstrap();\n this.getStepListByIdTrail(this.id);\n });\n }\n\n ngOnInit() {\n this.getDesign();\n }\n\n getDesign() {\n if (localStorage.getItem('layout_home')) {\n this.design = JSON.parse(localStorage.getItem('layout_home'));\n this.getComponent();\n } else {\n this._layoutService.data().subscribe((res: any) => {\n this.design = (res.data) ? res.data.value : { main: [], sidebar: [], full: [], top: [] };\n this.getComponent();\n });\n }\n }\n\n getComponent() {\n const path = this.activatedRoute.snapshot.routeConfig.path.split('/');\n\n const component = {\n 'mini-etapa': 'influenciadores',\n 'etapa-develop': 'mini',\n 'etapa-artigo': 'artigos'\n };\n\n if (!component[path[0]]) {\n this.component = false;\n return;\n }\n\n this.component = this.design.main.find((item: any) => {\n return item.type === component[path[0]];\n });\n }\n\n bootstrap() {\n const path = this.activatedRoute.snapshot.routeConfig.path.split('/');\n if (path[0] === 'mini-etapa') {\n this.title = 'influenciadores';\n this.miniStep = 0;\n } else if (path[0] === 'etapa-develop') {\n this.title = 'reflexões e experiências';\n this.miniStep = 1;\n } else if (path[0] === 'etapa-artigo') {\n this.title = 'Leitura e conhecimento ';\n this.miniStep = 2;\n }\n this.helperText = 'Este painel apresenta o total de pontos do ambiente ' + this.title + '. Clique em relatórios para visualizar seu progresso em todos os ambientes da Universidade Smart Fit.'\n\n }\n\n getInfoTrail(id: number): void {\n this._trilhaService.getResource(id)\n .subscribe((res: any) => {\n if (res.data.length > 0) {\n this.trail = res.data[0];\n }\n });\n }\n\n getStepListByIdTrail(idTrail: number): void {\n console.log('getStepListByIdTrail: idTrail', idTrail);\n this.ambienteVirtualService.getEtapasByTrail(idTrail)\n .subscribe(\n (res: any) => {\n if (res && res.data) {\n if (res.data.length === 0) {\n swal('Ops...', 'Esse curso ainda não tem conteúdo', 'warning').then(() => {\n this.router.navigate(['/home']);\n });\n return;\n }\n else {\n this.checkModule = res.data[0];\n if (res.data[this.index]) {\n this.subEtapaID = res.data[this.index].id;\n this.getStepData(res.data[this.index].id);\n } else {\n console.log(res.data);\n }\n if (this.miniStep === 0) {\n this.getPlaylistMini(this.id)\n } else if (this.miniStep === 1) {\n this.getPlaylistDevelop(this.id)\n this.getTrilhaItem(this.id);\n } else if (this.miniStep === 2) {\n this.getPlaylistArticles(this.id);\n }\n this.getInfoTrail(this.id);\n }\n }\n else {\n this.dataLoadError = 'not-exists';\n }\n },\n (error) => {\n this.global.alert('Ops', 'Ocorreu um erro ao processar sua solicitação, entre em contato com o suporte.', 'error');\n });\n }\n\n getPointsStepListByIdTrail(idTrail: number): void {\n let resources;\n if (this.miniStep === 0) {\n resources = this._MiniTrailService.getResource(idTrail);\n } else if (this.miniStep === 1) {\n resources = this._DevelopmentService.getResource(idTrail);\n } else if (this.miniStep === 2) {\n resources = this._ArticlesService.getResource(idTrail);\n }\n console.log('getPointsStepListByIdTrail: this.score', this.score);\n resources.subscribe(response => {\n console.log('getPointsStepListByIdTrail: response.pontos', response.pontos);\n this.score = response.pontos;\n this.loader = false;\n });\n }\n\n getTrilhaItem(id: number): void {\n this._trilhaItemService.getResource(id)\n .subscribe((res: any) => {\n this.playlist = res.data;\n this.loaderList = false;\n });\n }\n\n compare(a, b) {\n if (a.order < b.order) {\n return -1;\n }\n if (a.order > b.order) {\n return 1;\n }\n return 0;\n }\n\n getStepData(id): void {\n console.log('MINI VISUALIZADOR getStepData() ID', id);\n this.loader = true;\n this.module = id;\n this.ambienteVirtualService.getSubEtapa(id)\n .subscribe((res: any) => {\n if (res && res.data.length > 0) {\n console.log('MINI VISUALIZADOR getStepData() res', res);\n console.log('MINI VISUALIZADOR getStepData() compare', this.compare);\n console.log('MINI VISUALIZADOR getStepData() sort', res.data.sort(this.compare));\n res.data.sort(this.compare);\n\n if (res.data.length > 0) {\n this.data = res.data;\n this.getcurrent();\n }\n }\n else {\n this.dataLoadError = 'empty';\n }\n\n this.loader = false;\n\n }, err => {\n this.notificate();\n });\n }\n\n getcurrent(): void {\n this.current = this.data.find(item => {\n return item.status === 0;\n });\n\n console.log('CURRENT ->', this.current);\n\n if (!this.current) {\n this.current = this.data[0];\n }\n }\n\n getPlaylistMini(id) {\n this.playlist = [];\n this.playlistPage = 0;\n\n this._MiniTrailService.getResource(id)\n .subscribe((res: any) => {\n this.playlistBuffer = res.data;\n this.insertVideos();\n this.score = res.pontos;\n this.loaderList = false;\n })\n }\n\n getPlaylistDevelop(id) {\n this._DevelopmentService.getResource(id)\n .subscribe((res: any) => {\n this.score = res.pontos;\n })\n }\n\n getPlaylistArticles(id) {\n this.playlist = [];\n this.playlistPage = 0;\n\n this._ArticlesService.getResource(id)\n .subscribe((res: any) => {\n this.playlistBuffer = res.data;\n this.insertVideos();\n this.score = res.pontos;\n this.loaderList = false;\n })\n }\n\n notificate(): any {\n swal({\n title: 'Erro',\n text: 'Erro ao carregar conteúdo. Recarregue sua página.',\n type: 'warning',\n confirmButtonClass: 'btn btn-success',\n });\n }\n\n eventNavBar($event): any {\n console.log('EVENT NAVBAR (MINI CURSO) ->', $event);\n if ($event === 'next') {\n this.next();\n } else if ($event === 'previous') {\n this.previous();\n } else if ($event === 'done') {\n this.done();\n }\n }\n\n currentIndex(): number {\n return this.data.indexOf(this.current);\n }\n\n next(): any {\n this.loader = true;\n this.data[this.currentIndex()].status = 1;\n if (this.data.length === this.currentIndex() + 1) {\n this.done();\n\n } else {\n const newCurrent = this.data[this.currentIndex() + 1];\n this.getSubEtapaByEvent(newCurrent);\n\n }\n }\n\n previous(): void {\n const newCurrent = this.data[this.currentIndex() - 1];\n this.getSubEtapaByEvent(newCurrent);\n }\n\n done(): any {\n this.checkAsRead(this.data[this.currentIndex()].id);\n const path = this.activatedRoute.snapshot.routeConfig.path.split('/');\n\n\n if (this.miniStep == '0') {\n this._MiniTrailService.getResources().subscribe((res: any) => {\n const actual = res.data.find(i => {\n return (i.id == +this.id);\n });\n console.log('Response MiniCurso ->', res);\n console.log('Response ActualCourse ->', actual);\n const index = res.data.indexOf(actual);\n if (index + 1 === res.data.length) {\n const newIndex = res.data[0];\n this.router.navigate(['/visualizador/' + path[0], newIndex.id]);\n this.global.swal({\n title: 'Parabéns!',\n text: 'Você já concluiu todos os Mini cursos e será redirecionado para a Universidade.',\n type: \"success\",\n showCancelButton: false,\n confirmButtonText: \"Ok\",\n cancelButtonText: \"Não\",\n allowOutsideClick: false,\n }).then(confirm => {\n this.router.navigate(['/universidade']);\n });\n this.loader = false;\n } else {\n const newIndex = res.data[0];\n this.loader = false;\n this.router.navigate(['/visualizador/' + path[0], newIndex.id]);\n }\n }, err => {\n })\n } else if (this.miniStep == '1') {\n const playlistCounter = this.playlist.length;\n\n\n if (this.index + 1 === playlistCounter) {\n this._DevelopmentService.getResources().subscribe(\n (res: any) => {\n\n\n const actual = res.find(i => {\n return i.id === +this.id;\n });\n\n const index = res.indexOf(actual);\n\n\n if (index + 1 === res.length) {\n const newIndex = res[0];\n\n this.router.navigate(['/visualizador/' + path[0], newIndex.id]);\n this.loader = false;\n this.global.swal({\n title: 'Parabéns!',\n text: 'Você já concluiu todos os Mini cursos e será redirecionado para a Universidade.',\n type: \"success\",\n showCancelButton: false,\n confirmButtonText: \"Ok\",\n cancelButtonText: \"Não\",\n allowOutsideClick: false,\n }).then(confirm => {\n this.router.navigate(['/universidade']);\n });\n } else {\n const newIndex = res[index + 1];\n this.router.navigate(['/visualizador/' + path[0], newIndex.id]);\n }\n },\n err => {\n }\n )\n } else {\n\n this.index++;\n this.getStepData(this.playlist[this.index].id);\n }\n } else if (this.miniStep == '2') {\n this._ArticlesService.getResources().subscribe(\n (res: any) => {\n console.log('miniStep-2', res);\n if (res.data.length > 0) {\n const actual = res.data.find(i => {\n return i.id === +this.id;\n });\n const index = res.data.indexOf(actual);\n if (index + 1 === res.data.length) {\n const newIndex = res.data[0];\n this.router.navigate(['/visualizador/' + path[0], newIndex.id]);\n } else {\n const newIndex = res.data[index + 1];\n this.router.navigate(['/visualizador/' + path[0], newIndex.id]);\n this.loader = false;\n }\n }\n else {\n this.router.navigate(['/home']);\n }\n },\n (err) => {\n\n }\n );\n }\n\n this.loader = false;\n\n }\n\n getTrails() {\n }\n\n back(): void {\n window.history.back();\n }\n\n getUrlEscola(): string {\n const platform = localStorage.getItem('platform');\n\n const uris = [\n {\n platform: 'asta',\n uri: '/painel/escola'\n },\n {\n platform: 'fitness-link',\n uri: '/painel/cursos'\n },\n {\n platform: 'lele',\n uri: '/trilhas'\n }];\n\n const escolaUri = uris.find(item => {\n return item.platform === platform;\n })\n\n return (escolaUri) ? escolaUri.uri : '/';\n }\n\n getSubEtapaByEvent($event): void {\n const oldCurrent = this.current;\n\n this.checkAsRead(oldCurrent.id);\n\n this.current = $event;\n this.cursoViewer.getContent(this.current.id);\n this.cursoNavBar.setIndexes(this.data, this.current);\n }\n\n checkAsRead(idSubStep: number): void {\n if (idSubStep !== undefined) {\n this.ambienteVirtualService.registerNewProgress(idSubStep)\n .subscribe(\n (res: any) => {\n this.getPointsStepListByIdTrail(this.id);\n this.getInfoTrail(this.id);\n },\n err => {\n });\n }\n }\n\n setModule(index: number) {\n this.index = index;\n this.getStepData(this.playlist[index].id);\n }\n\n checkDateBetween(date) {\n date = new Date(date);\n const result = this.now.getTime() >= date.getTime();\n return result;\n }\n\n checkDate(date) {\n date = new Date(date);\n const result = this.now.getTime() > date.getTime();\n return result;\n }\n\n insertVideos() {\n const offset = this.playlistPage * 3;\n const end = offset + 3;\n const partial = this.playlistBuffer.slice(offset, end);\n\n this.playlistItemFinal = end;\n\n this.playlist.push(...partial);\n this.playlistPage++;\n }\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { AmbienteVirtualService } from '../../../@core/services/ambiente-virtual.service';\n\ndeclare const $: any;\n\n// Metadata\nexport interface RouteInfo {\n path?: string;\n title: string;\n type: string;\n icontype: string;\n collapse?: string;\n done?: boolean;\n children?: ChildrenItems[];\n}\n\nexport interface ChildrenItems {\n path: string;\n title: string;\n ab?: string;\n icontype?: string;\n done?: boolean;\n type?: string;\n}\n\n@Component({\n selector: 'app-sidebar-mini-curso-visualizador',\n templateUrl: 'mini-curso-sidebar.component.html',\n styleUrls: ['../scss/styles.component.scss']\n})\n\nexport class MiniCursoSidebarComponent implements OnInit {\n\n @Input() public data: any;\n @Input() public current: any;\n\n @Output() public event = new EventEmitter<any>();\n\n public menuItems: any[];\n urlEscola: string;\n platform: string;\n logo: string;\n\n constructor(private _ambienteVirtualService: AmbienteVirtualService) {\n this.platform = localStorage.getItem('platform');\n this.urlEscola = this.getUrlEscola();\n\n if (this.platform == 'asta') {\n this.logo = '/assets/img/clientes/asta/logo.png';\n } else if (this.platform == 'fitness-link') {\n this.logo = '/assets/img/fitness-link-logo.png';\n }\n\n }\n\n getUrlEscola(): string {\n if (this.platform == 'asta') {\n return '/painel/escola';\n } else if (this.platform == 'fitness-link') {\n return '/painel/curso';\n } else if (this.platform == 'lele') {\n return '/trilhas';\n }\n return '/';\n }\n\n ngOnInit() {\n this.menuItems = this.data;\n }\n\n public menuNavigate(obj, disable): void {\n if (!disable) {\n if (this.current === obj) {\n return;\n }\n this.current.status = '1';\n this.event.emit(obj);\n }\n }\n\n isMobileMenu() {\n if ($(window).width() > 991) {\n return false;\n }\n return true;\n };\n\n updatePS(): void {\n if (window.matchMedia(`(min-width: 960px)`).matches && !this.isMac()) {\n const elemSidebar = <HTMLElement>document.querySelector('.sidebar .sidebar-wrapper');\n }\n }\n\n isMac(): boolean {\n let bool = false;\n if (navigator.platform.toUpperCase().indexOf('MAC') >= 0 || navigator.platform.toUpperCase().indexOf('IPAD') >= 0) {\n bool = true;\n }\n return bool;\n }\n}\n","import { Injectable } from '@angular/core';\nimport { BaseService } from './base.service';\nimport { HttpClient } from '@angular/common/http';\n\n@Injectable()\nexport class AreaPermissionService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/admin', 'acervo/pasta/abre/permission')\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { Global } from 'asap-crud';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class TutorService extends BaseService {\n\n constructor(protected http: HttpClient, public global: Global) {\n super(http, 'api', 'v2')\n }\n\n public profile():any {\n return this.getResources({router:'client/home/verify/profile'});\n }\n\n public tutor():any {\n return this.getResources({router:'client/painel/tutor'});\n }\n\n public classes(trail_id):any {\n return this.getResources({router:'client/painel/class/' + trail_id});\n }\n\n public student(class_id):any {\n return this.getResources({router:'client/painel/student/' + class_id});\n }\n\n public tutorClass(class_id):any {\n return this.getResources({router:'admin/trail/config/class/tutor/' + class_id});\n }\n\n public users(search):any {\n let data = {\n search: search\n }\n return this.createResource(data,{router:'admin/trail/user/search'});\n }\n\n public clearData(item_id,user_id):any {\n return this.getResources({router:'admin/trail/config/students/' + item_id + '/' + user_id});\n }\n\n public saveClass(class_id,data):any {\n return this.createResource(data, {router:'admin/trail/config/class/' + class_id});\n }\n\n public addStudent(class_id,user_id):any {\n let data = {\n \"user_id\":user_id\n }\n return this.createResource(data, {router:'admin/trail/config/class/user/' + class_id});\n }\n\n public removeStudent(id):any {\n return this.http.delete(this.global.apiURL() + '/api/v2/admin/trail/config/class/user/' + id,this.options);\n }\n\n \n\n public addTutor(class_id,user_id):any {\n let data = {\n \"user_id\":user_id\n }\n return this.createResource(data, {router:'admin/trail/config/class/tutor/' + class_id});\n }\n\n public removeTutor(id):any {\n return this.http.delete(this.global.apiURL() + '/api/v2/admin/trail/config/class/tutor/' + id,this.options);\n }\n\n public studentExtraData(trail_id,student):any {\n let result = this.getResources({router:'client/trilha/performance/trail/' + trail_id + '/' + student.user_id});\n return new Promise((resolve) => {\n result.subscribe((response:any) => {\n student.acerto = response.data.CorrectAnswer;\n student.erro = response.data.WrongAnswer;\n student.questions = response.data.sequence;\n let perguntas = student.acerto+student.erro;\n student.percentualAcerto = 0;\n if (perguntas != 0) {\n student.percentualAcerto = 100*(student.acerto/perguntas);\n }\n resolve(student);\n });\n });\n }\n\n public videoTime(trail_id,user_id):any {\n return this.getResources({router:'client/trilha/performance/trail/video/' + trail_id + '/' + user_id});\n } \n\n}","import { Component, OnInit } from '@angular/core';\nimport { AreaPermissionService } from '../../../@core/services/area-permission.service';\nimport { TutorService } from '../../../@core/services/tutor/tutor.service';\nimport { AsapViewerService } from '../../../asap-viewer.service';\n\ndeclare const $: any;\n\n@Component({\n selector: 'app-mini-sidemenu',\n templateUrl: './mini-sidemenu.component.html',\n styleUrls: ['../scss/styles.component.scss'],\n providers: [ AreaPermissionService, TutorService ]\n})\n\nexport class MiniCursoSideMenuComponent implements OnInit {\n\n public isTutor = false;\n public areas;\n\n constructor(\n public tutorService:TutorService,\n private _areaPermissionService: AreaPermissionService,\n public viewerService: AsapViewerService\n ) {\n this.tutorService.profile().subscribe((response:any) => {\n this.isTutor = response.tutor;\n })\n this._areaPermissionService.getResources().subscribe((res:any) => {\n this.areas = res.data;\n })\n }\n\n ngOnInit() {\n\n $(document).ready(function () {\n\n $('#sidemenuCollapse').on('click', function () {\n $('.sidemenu, .content, .overlay').toggleClass('active');\n });\n\n $('.overlay').on('click', function () {\n $('.sidemenu, .content, .overlay').removeClass('active');\n });\n\n $('.components').on('click', function () {\n $('.sidemenu, .content, .overlay').removeClass('active');\n });\n\n $('.navbar-brand').on('click', function () {\n $('.sidemenu, .content, .overlay').removeClass('active');\n });\n\n $('.triangle').on('click', function () {\n $('.sidemenu, .content, .overlay').removeClass('active');\n });\n\n });\n\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class NotificationService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'home/notifica')\n }\n\n}","import { Component, OnInit, ViewChild, ElementRef, Directive, Input, Output, EventEmitter, Renderer2 } from '@angular/core';\nimport {Router, ActivatedRoute} from '@angular/router';\nimport {Location, LocationStrategy, PathLocationStrategy} from '@angular/common';\nimport { NotificationService } from '../../../@core/services/notifications/notifications.service';\nimport { AmbienteVirtualService } from '../../../@core/services/ambiente-virtual.service';\nimport { Global } from 'asap-crud';\nimport { HttpClient } from '@angular/common/http';\nimport { AsapViewerService } from '../../../asap-viewer.service';\n\nconst misc: any = {\n navbar_menu_visible: 0,\n active_collapse: true,\n disabled_collapse_init: 0,\n};\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-navbar-mini-curso',\n templateUrl: 'mini-curso-navbar.component.html',\n styleUrls: ['../scss/styles.component.scss'],\n providers: [ NotificationService ]\n})\n\nexport class MiniCursoNavbarComponent implements OnInit {\n private listTitles: any[];\n location: Location;\n private nativeElement: Node;\n private toggleButton: any;\n private sidebarVisible: boolean;\n platform: string;\n urlEscola: string;\n\n public notification: any;\n public total: number;\n public loggedUser: any;\n public token;\n\n @Input() private data: any;\n @Input() private current: any;\n @Input() private etapa: any;\n\n indexes: any;\n\n // ASAP\n @Output()\n public eventNavbar = new EventEmitter<any>();\n\n public checkIfAllHaveDoneVar: boolean;\n\n @ViewChild('app-navbar-curso',{static:false}) button: any;\n\n constructor(\n location: Location,\n private renderer: Renderer2,\n private element: ElementRef,\n private ambienteVirtualService: AmbienteVirtualService,\n private router: Router,\n private _NotificationService: NotificationService,\n public global: Global,\n public http: HttpClient,\n public viewerService: AsapViewerService\n\n ) {\n this.location = location;\n this.nativeElement = element.nativeElement;\n this.sidebarVisible = false;\n this.checkIfAllHaveDoneVar = false;\n this.platform = localStorage.getItem('platform');\n }\n\n public setIndexes(data, current) {\n this.indexes = {\n current: data.indexOf(current)+1,\n total: data.length\n }\n }\n\n getUrlEscola() {\n const uris = [\n {\n platform: 'asta',\n uri: '/painel/escola',\n client_id:'000'\n },\n {\n platform: 'fitness-link',\n uri: '/painel/meus-cursos',\n client_id:'000'\n },\n {\n platform: 'lele',\n uri: '/trilhas',\n client_id:'000'\n },\n {\n platform: 'universidadesmart',\n uri: `/training/${this.etapa.item_id}`,\n client_id:'20'\n }];\n\n const escolaUri = uris.find(item => {\n return item.client_id === this.global.loggedUser().client_id;\n })\n\n return (escolaUri) ? escolaUri.uri : false;\n }\n\n ngOnInit() {\n this.token = localStorage.getItem(\"tokenLogin\");\n console.log('ETAPA ->', this.etapa);\n this.getLoggedUser();\n this.getNotification();\n\n setInterval(() => {\n this.getNotification();\n }, 300000)\n\n this.setIndexes(this.data, this.current);\n\n const navbar: HTMLElement = this.element.nativeElement;\n this.toggleButton = navbar.getElementsByClassName('navbar-toggle')[0];\n if ($('body').hasClass('sidebar-mini')) {\n misc.sidebar_mini_active = true;\n }\n if ($('body').hasClass('hide-sidebar')) {\n misc.hide_sidebar_active = true;\n }\n $('#minimizeSidebar').click(function () {\n if (misc.sidebar_mini_active === true) {\n $('body').removeClass('sidebar-mini');\n misc.sidebar_mini_active = false;\n\n } else {\n setTimeout(function () {\n $('body').addClass('sidebar-mini');\n\n misc.sidebar_mini_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function () {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function () {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n $('#hideSidebar').click(function () {\n if (misc.hide_sidebar_active === true) {\n setTimeout(function () {\n $('body').removeClass('hide-sidebar');\n misc.hide_sidebar_active = false;\n }, 300);\n setTimeout(function () {\n $('.sidebar').removeClass('animation');\n }, 600);\n $('.sidebar').addClass('animation');\n\n } else {\n setTimeout(function () {\n $('body').addClass('hide-sidebar');\n // $('.sidebar').addClass('animation');\n misc.hide_sidebar_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function () {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function () {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n }\n\n isMobileMenu() {\n if ($(window).width() < 991) {\n return false;\n }\n return true;\n };\n\n sidebarOpen() {\n const toggleButton = this.toggleButton;\n const body = document.getElementsByTagName('body')[0];\n setTimeout(function () {\n toggleButton.classList.add('toggled');\n }, 500);\n body.classList.add('nav-open');\n\n this.sidebarVisible = true;\n };\n\n sidebarClose() {\n const body = document.getElementsByTagName('body')[0];\n this.toggleButton.classList.remove('toggled');\n this.sidebarVisible = false;\n body.classList.remove('nav-open');\n };\n\n sidebarToggle() {\n if (this.sidebarVisible === false) {\n this.sidebarOpen();\n } else {\n this.sidebarClose();\n }\n };\n\n getTitle() {\n return 'Cursos';\n }\n\n getPath() {\n return this.location.prepareExternalUrl(this.location.path());\n }\n\n goToPrev() {\n this.eventNavbar.emit('previous');\n }\n\n goToNext() {\n this.eventNavbar.emit('next');\n }\n\n markAsDone() {\n this.eventNavbar.emit('done');\n }\n\n back(): void {\n window.history.back();\n }\n\n getNotification() {\n this._NotificationService.getResources().subscribe((res:any) => {\n this.notification = res.data;\n this.total = res.total;\n })\n }\n\n goTo(item) {\n this._NotificationService.createResource({id: item.id}, {router: item.id}).subscribe( (res:any) => {\n if(item.type === 0) {\n this.router.navigate(['/training', item.id]);\n } else if(item.type === 2) {\n this.router.navigate(['/visualizador/mini-etapa', item.id]);\n } else if(item.type === 3) {\n this.router.navigate(['/visualizador/etapa-develop', item.id]);\n }\n })\n }\n\n getLoggedUser(): any {\n const session = JSON.parse(localStorage.getItem('loggedUser'));\n this.loggedUser = session.data;\n }\n onLogout() {\n localStorage.removeItem('loggedUser');\n localStorage.removeItem('token');\n localStorage.removeItem('tokenLogin');\n this.router.navigate(['/active-directory']);\n this.http.get('http://intranet.bioritmo.com.br/sign_out?app=asap').subscribe(response => {\n console.log('Logout', response);\n });\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class MiniTrailCommentService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'comment/video')\n }\n\n}\n","import { Component, OnInit, Input, EventEmitter, Output, ViewChild, OnChanges, SimpleChanges } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { MatDialog } from '@angular/material/dialog';\nimport { ModalStarRatingComponent } from '../../modal-rating/modal-rating.component';\nimport { SafeUrlPipe } from '../../../@core/pipes/safe-url.pipe';\nimport { VimeoService } from '../../../@core/services/vimeo.service';\nimport { MiniTrailCommentService } from '../../../@core/services/minicurso/minicurso-comments.service';\nimport { AmbienteVirtualService } from '../../../@core/services/ambiente-virtual.service';\nimport { VideoItemComponent, ImageItemComponent, PdfItemComponent, ExerciseComponent, MultiChoiceComponent } from '../../../@core/models/item-component';\nimport { Global } from 'asap-crud';\n\n\ndeclare var $: any;\n\n@Component({\n selector: 'app-mini-viewer',\n templateUrl: './mini-viewer.component.html',\n styleUrls: ['../scss/styles.component.scss'],\n providers: [ VimeoService, MiniTrailCommentService, SafeUrlPipe ]\n})\nexport class MiniViewerComponent implements OnInit, OnChanges {\n\n @Input() module: any;\n @Input() step: any;\n @Input() id;\n @Input() points;\n @Output() eventRefreshSideBar = new EventEmitter<any>();\n @Output() eventNavbar = new EventEmitter<any>();\n\n @ViewChild('conclusion',{static:false}) conclusion: any;\n\n componentArray: Array<any>;\n loader: boolean;\n form: FormGroup;\n comment: any[];\n commentArray: any;\n loggedUser: any;\n\n constructor(\n private _ambienteVirtualService: AmbienteVirtualService,\n private _sanitizer: DomSanitizer,\n private _vimeoService: VimeoService,\n private formBuilder: FormBuilder,\n private _CommentsService: MiniTrailCommentService,\n public dialog: MatDialog,\n public global: Global\n ) {\n this.form = this.formBuilder.group({\n comments: ['', Validators.required]\n })\n }\n\n ngOnInit() {\n\n const lu = JSON.parse(localStorage.getItem('loggedUser'));\n this.loggedUser = lu.data;\n\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.step) {\n this.getContent(this.step);\n }\n if (changes.id) {\n console.log(\"[MiniViewerComponent] - Change ID:\",changes.id);\n }\n }\n\n postComment() {\n const form = this.form.value;\n this._CommentsService.createResource(form, {router: this.step})\n .subscribe((res:any) => {\n this.commentArray.unshift(res.data);\n this.form.reset();\n });\n }\n\n onDelete(comm) {\n\n this.global.swal({\n title: 'Você quer apagar esse comentário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n const index = this.commentArray.indexOf(comm);\n this.commentArray.splice(index, 1);\n\n this._CommentsService.deleteResource(comm.id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n }\n\n private sanitizer(url: string, type: string): SafeResourceUrl {\n\n let uri;\n\n if (!url) {\n return null;\n }\n\n if (type === 'youtube') {\n const code = this.getYoutubeID(url);\n uri = 'https://www.youtube.com/embed/' + code + '?rel=0&showinfo=0';\n }\n\n if (type === 'vimeo') {\n const code = this.getVimeoID(url);\n uri = 'https://player.vimeo.com/video/' + code;\n }\n\n if (type === 'file') {\n uri = url;\n }\n\n if (type === 'stream') {\n uri = url;\n }\n\n if (type === 'image') {\n uri = url;\n }\n\n return this._sanitizer.bypassSecurityTrustResourceUrl(uri);\n }\n\n getYoutubeID(url: string): string {\n const regExp = /^.*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?([^#\\&\\?]*).*/;\n const match = url.match(regExp);\n return (match && match[7].length === 11) ? match[7] : '';\n }\n\n getVimeoID(url: string): string {\n // tslint:disable-next-line:max-line-length\n const regExp = /https?:\\/\\/(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)?|groups\\/([^\\/]*)\\/videos\\/|album\\/(\\d+)\\/video\\/|video\\/|)(\\d+)(?:$|\\/|\\?)/;\n const match = url.match(regExp);\n return (match && match[3]) ? match[3] : '';\n }\n\n getContent(step: number) {\n console.log('GetContent ->', step);\n this.loader = true;\n this._ambienteVirtualService.getContent(step)\n .subscribe((res:any) => {\n const data = res.data[0].value;\n this.commentArray = res.data[0].comments.data.reverse();\n\n if (res['data'][0].value) {\n const itensJson = res['data'][0].value;\n\n this.componentArray = [];\n\n for (const item of itensJson) {\n if (item.type === 'video') {\n const videoComponent = new VideoItemComponent(\n item.source,\n item.source_path,\n this.sanitizer(item.source_path, item.source),\n item.title,\n item.button,\n item.mainButton,\n item.showVideoControl,\n item.allowNext\n );\n this.componentArray.push(videoComponent);\n }\n if (item.type === 'text') {\n this.componentArray.push(item);\n }\n if (item.type === 'image') {\n const imageComponent = new ImageItemComponent(item.url, item.button);\n imageComponent.title = item.title;\n imageComponent.titleSize = (item.titleSize) ? item.titleSize : 16;\n const mainButtonDefault = { color: '#FFFFFF', background: '#333333', text: 'Próximo' };\n imageComponent.mainButton = (item.mainButton) ? item.mainButton : mainButtonDefault;\n this.componentArray.push(imageComponent);\n }\n if (item.type === 'pdf') {\n const pdfComponent = new PdfItemComponent(item.url, this.sanitizer(item.url + '&output=embed', 'file'), item.title, item.button, item.subTitle);\n pdfComponent.showAccept = item.showAccept;\n pdfComponent.acceptText = item.acceptText;\n pdfComponent.subTitle = item.subTitle;\n this.componentArray.push(pdfComponent);\n }\n if (item.type === 'exercise') {\n const exerciseComponent = new ExerciseComponent(item.exercise);\n this.componentArray.push(exerciseComponent);\n }\n if (item.type === 'multi-choice') {\n let multiChoiceComponent = new MultiChoiceComponent();\n multiChoiceComponent = item;\n\n if (item.media) {\n multiChoiceComponent.media = item.media;\n multiChoiceComponent.link = this.sanitizer(item.url, item.media.toLowerCase());\n }\n\n this.componentArray.push(multiChoiceComponent);\n }\n if (item.type === 'intro') {\n this.componentArray.push(item);\n }\n if (item.type === 'conclusion') {\n this.componentArray.push(item);\n }\n if (item.type === 'challenge') {\n for (const m of item.medias) {\n if (m.type === 'youtube') {\n m.link = this.sanitizer(m.url, 'youtube');\n m.thumb = 'https://img.youtube.com/vi/' + this.getYoutubeID(m.url) + '/hqdefault.jpg';\n }\n if (m.type === 'vimeo') {\n m.link = this.sanitizer(m.url, 'vimeo');\n\n m.thumb = 'https://i.vimeocdn.com/video/default_295x166.webp';\n this._vimeoService.getThumb(m.url).then(response => {\n m.thumb = response;\n });\n }\n }\n\n this.componentArray.push(item);\n }\n\n if (item.type === 'correct-incorrect') {\n this.componentArray.push(item);\n }\n if (item.type === 'multiple-questions') {\n this.componentArray.push(item);\n }\n if (item.type === 'table') {\n this.componentArray.push(item);\n }\n\n if (item.type === 'star-point') {\n item.points = this.points;\n this.componentArray.push(item);\n }\n if (item.type === 'download') {\n this.componentArray.push(item);\n }\n if (item.type === 'upload') {\n this.componentArray.push(item);\n }\n if (item.type === 'rating') {\n this.componentArray.push(item);\n }\n\n if (item.type === 'forum') {\n console.log(item);\n this.componentArray.push(item);\n }\n\n }\n\n }\n\n this.loader = false;\n }, err => {\n console.log(err);\n });\n }\n\n private notificate(): any {\n this.global.swal({\n title: 'Erro',\n text: 'Erro ao carregar conteúdo. Recarregue sua página.',\n type: 'warning',\n confirmButtonClass: 'btn btn-success',\n });\n }\n\n goToAnchor(anchor: string) {\n const $div = $('#' + anchor);\n const top = $div.offset().top + 48;\n\n $('html, body').animate({ scrollTop: top }, 1000);\n }\n\n showButton(item: any) {\n return (\n item.button &&\n item.button !== '' &&\n item.type !== 'intro' &&\n item.type !== 'conclusion' &&\n item.type !== 'challenge'\n );\n }\n\n emitEvent(event: string) {\n this.eventNavbar.emit(event);\n this.loader = true;\n }\n\n ratingEvent() {\n const dialogRef = this.dialog.open(ModalStarRatingComponent, {\n width: '380px',\n disableClose: true,\n data: {id:this.id, owner:this}\n });\n\n dialogRef.afterClosed().subscribe(result => {\n this.eventNavbar.emit('next');\n });\n }\n}\n","import {Component, Inject} from '@angular/core';\nimport {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog';\n\n\n@Component({\n selector: 'banner-modal-component',\n templateUrl: 'mini-banner-modal.html',\n})\nexport class MiniModalTrilhaBanner {\n\n constructor(\n public dialogRef: MatDialogRef<MiniModalTrilhaBanner>,\n @Inject(MAT_DIALOG_DATA) public data: any) { }\n\n onNoClick(): void {\n this.dialogRef.close();\n }\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-mini-slider',\n templateUrl: 'slider.component.html',\n styleUrls: ['../scss/styles.component.scss'],\n})\n\nexport class MiniSliderComponent implements OnInit {\n\n @Input() data: any;\n @Input() current: any;\n\n indexes: any;\n\n // ASAP\n @Output()\n public eventNavbar = new EventEmitter<any>();\n\n public setIndexes(data, current) {\n this.indexes = {\n current: data.indexOf(current) + 1,\n total: data.length\n }\n }\n\n ngOnInit() {\n this.setIndexes(this.data, this.current);\n console.log(this.indexes.current)\n }\n\n goToPrev() {\n this.eventNavbar.emit('previous');\n }\n\n goToNext() {\n this.eventNavbar.emit('next');\n }\n\n markAsDone() {\n this.eventNavbar.emit('done');\n }\n\n back(): void {\n window.history.back();\n }\n}\n","import { Component, Inject, Input, Output, EventEmitter, OnInit } from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\n@Component({\n\tselector: 'app-mini-visualizador-modal-rating-star',\n\ttemplateUrl: './star-component.html',\n styleUrls: ['../modal-rating.component.css']\n})\n\nexport class StarRatingComponent implements OnInit {\n\t@Input() score;\n\t@Input() maxScore = 5;\n\t@Input() forDisplay = false;\n\t@Output() rateChanged = new EventEmitter();\n \n textNivel;\n range = [];\n marked = -1;\n\n\tconstructor( private translate: TranslateService ) { }\n\n\tngOnInit() {\n for (var i = 0; i < this.maxScore; i++) {\n this.range.push(i);\n }\n }\n \n public mark = (index) => {\n this.marked = this.marked == index ? index - 1 : index;\n this.score = this.marked + 1;\n console.log(this.score)\n this.rateChanged.next(this.score);\n switch (this.score) {\n case 1:\n return this.textNivel = this.translate.instant('Hated')\n case 2:\n return this.textNivel = this.translate.instant('DidNotLike')\n case 3:\n return this.textNivel = this.translate.instant('Reasonable')\n case 4:\n return this.textNivel = this.translate.instant('LikedIt')\n case 5:\n return this.textNivel = this.translate.instant('Incredible')\n default:\n return this.textNivel = ''\n }\n }\n\n public isMarked = (index) => {\n if (!this.forDisplay) {\n if (index <= this.marked) {\n return 'selected-start';\n }\n else {\n return 'no-selected-start';\n }\n }\n else {\n if (this.score >= index + 1) {\n return 'selected-start';\n }\n else if (this.score > index && this.score < index + 1) {\n return 'no-selected-start';\n }\n else {\n return 'no-selected-start';\n }\n }\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class CommentsService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'comment/full')\n }\n\n}","import { Component, Input, OnInit } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { CommentsService } from '../../../@core/services/comments/comments.service';\nimport { Global } from 'asap-crud';\n\ndeclare var swal: any;\n\n@Component({\n selector: 'app-modules-visualizar-mini-curso-comments',\n templateUrl: './comment.component.html',\n styleUrls: ['./comment.component.css', '../scss/styles.component.scss'],\n providers: [ CommentsService ]\n})\nexport class CommentsComponent implements OnInit {\n\n @Input() id;\n\n comment: any;\n onPosting: boolean;\n comments:any = [];\n\n constructor(\n private _CommentsService: CommentsService,\n private global: Global\n\n ) {\n this.initForm();\n }\n\n ngOnInit() {\n this.getComments(this.id);\n }\n\n initForm() {\n \n }\n\n getComments(id) {\n this._CommentsService.getResource(id)\n .subscribe((res:any) => {\n this.comments = res.data;\n })\n }\n\n postComment() {\n this.onPosting = true;\n let data:any = {}\n data.comment = this.comment;\n data.type = 'desenvolvimento';\n console.log('Form ->', data);\n this._CommentsService.createResource(data, {router: this.id})\n .subscribe((response:any) => {\n this.comment = ''\n this.onPosting = false;\n this.comments.unshift(response.data);\n console.log('response -<', response);\n })\n }\n\n onRemove(item) {\n\n this.global.swal({\n title: 'Você quer apagar esse comentário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n const index = this.comments.indexOf(item);\n this.comments.splice(index, 1);\n\n this._CommentsService.deleteResource(item.id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n\n\n\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class ForumTrilhaService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/client', 'forum/curso')\n }\n\n}","import { Component, OnInit, Input, OnChanges, SimpleChanges } from '@angular/core';\nimport { Router, ActivatedRoute, Params } from '@angular/router';\nimport { FormGroup, FormBuilder } from '@angular/forms';\n\nimport * as moment from 'moment';\nimport { ForumService } from '../../../@core/services/forum/forum.service';\nimport { ForumResponseService } from '../../../@core/services/forum/response.service';\nimport { ForumVoteService } from '../../../@core/services/forum/forum-vote.service';\nimport { ForumTrilhaService } from '../../../@core/services/forum/forum-trilha.service';\n\ndeclare var $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-modules-visualizar-mini-curso-forum',\n templateUrl: './question.component.html',\n styleUrls: ['./question.component.scss'],\n providers: [ForumService, ForumResponseService, ForumVoteService, ForumTrilhaService]\n})\nexport class VisualizarForumComponent implements OnInit, OnChanges {\n\n @Input() trilha: number;\n @Input() module;\n @Input() etapa_id;\n @Input() step;\n id: number;\n public forums;\n\n form: FormGroup;\n formUpdate: FormGroup;\n loading = true;\n response: any;\n forum: any;\n loggedUser: any;\n pagination: any;\n\n score = 0;\n displayRatingScore = 0;\n\n constructor(\n private formBuilder: FormBuilder,\n private _ForumService: ForumService,\n private _ForumResponseService: ForumResponseService,\n private _ForumVoteService: ForumVoteService,\n private _forumTrilhaService: ForumTrilhaService\n ) {\n moment.locale('pt-br');\n this.initForm();\n }\n\n ngOnChanges(changes: SimpleChanges) {\n console.log('CHANGES =>>>>>', changes);\n if (changes.module) {\n this.getUserLogged();\n this.getForum(this.module);\n }\n }\n\n ngOnInit() {\n this.getForums(this.trilha);\n this.getUserLogged();\n }\n\n getUserLogged(): any {\n const loggedUser = JSON.parse(localStorage.getItem('loggedUser'));\n this.loggedUser = loggedUser.data;\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n id: [''],\n resposta: ['']\n })\n }\n\n updatForm() {\n this.formUpdate = this.formBuilder.group({\n id: [''],\n resposta: ['']\n })\n }\n\n getForums(id) {\n this._forumTrilhaService.getResource(id).subscribe((res: any) => {\n if (res.data.length > 0) {\n this.forums = res.data;\n this.forum = res.data.find((item: any) => item.etapa_id == this.etapa_id);\n\n this.id = this.forum.id;\n this.getResponse(this.forum.id);\n this.loading = false;\n } else {\n this.loading = false;\n }\n })\n }\n\n public getForum(id) {\n this.loading = true;\n this.forum = this.forums.find((item: any) => item.etapa_id == this.module);\n if (this.forum) {\n this.getResponse(this.forum.id);\n }\n }\n\n getResponse(id) {\n this.loading = true;\n this.response = [];\n this._ForumResponseService.getResource(id).subscribe((res: any) => {\n this.response = res.data;\n this.loading = false;\n this.pagination = res.meta.pagination\n this.updatForm();\n this.loading = false;\n })\n }\n\n save() {\n const form = this.form.value;\n this._ForumService.createResource(form, { router: this.id }).subscribe((res: any) => {\n this.getResponse(this.id);\n this.ResetPost();\n })\n }\n\n ResetPost() {\n this.form.reset();\n $('#answer').collapse('hide');\n }\n\n onRemove(forum) {\n swal({\n title: 'Você quer remover esta pergunta?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n this._ForumResponseService.deleteResource(forum.id).subscribe((res: any) => {\n this.getResponse(this.id);\n })\n },\n (cancel) => { }\n );\n }\n\n nextPage(event) {\n let number = event + 1\n this._ForumResponseService.getResource(this.id, { query: 'page=' + number }).subscribe(\n (res: any) => {\n console.log('EOEWE', res.data);\n\n for (let item of res.data) {\n this.response.push(item);\n }\n\n this.pagination = res.meta.pagination;\n }\n )\n }\n\n onClose(forum) {\n this.formUpdate.reset();\n return forum.disable = false;\n }\n\n onEdit(forum) {\n this.formUpdate.setValue({ id: forum.id, resposta: forum.resposta })\n return forum.disable = true;\n }\n\n updateForm() {\n const form = this.formUpdate.value;\n this._ForumService.updateResource(form).subscribe((res: any) => {\n this.getResponse(this.id);\n this.ResetPost();\n })\n }\n\n vote(item, number) {\n console.log('VOTE ->', item, number);\n if (number == 1) {\n item.qtd_like = item.qtd_like + 1;\n item.voto = 1;\n }\n else if (number == 2) {\n item.qtd_unlike = item.qtd_unlike + 1;\n item.voto = 2;\n }\n\n const form = { pontos: number }\n this._ForumVoteService.createResource(form, { router: item.id }).subscribe((res: any) => {\n this.getResponse(this.id);\n })\n }\n\n getHidden(item) {\n return item.hidden = !item.hidden;\n }\n}\n","import { HttpHeaders } from '@angular/common/http';\n\nexport class LibraryHelper {\n\n static getHeaders(): any {\n const token = localStorage.getItem('token');\n const headerOptions = {\n 'Authorization': token,\n 'Accept': 'application/json'\n };\n return {headers: new HttpHeaders(headerOptions)};\n }\n\n static removeFromArrayById(data,id):any {\n let result:any = data.filter((item:any) => {\n return (item.id !== id)\n });\n return result;\n }\n\n static inArray(needle, haystack) {\n const result = this.arraySearch(needle, haystack);\n if (result !== false) {\n return true;\n }\n return result;\n }\n\n static arraySearch(needle, haystack) {\n for (const i in haystack) {\n if (haystack[i] === needle) {\n return i;\n }\n }\n return false;\n }\n\n static arrayColumn(inputArray, columnKey, indexKey = null) {\n \n function isArray(inputValue) {\n return Object.prototype.toString.call(inputValue) === '[object Array]';\n }\n\n // If input array is an object instead of an array,\n // convert it to an array.\n if (!isArray(inputArray)) {\n const newArray = [];\n for (const key in inputArray) {\n if (!inputArray.hasOwnProperty(key)) {\n continue;\n }\n newArray.push(inputArray[key]);\n }\n inputArray = newArray;\n }\n\n // Process the input array.\n const isReturnArray = (typeof indexKey === 'undefined' || indexKey === null);\n const outputArray = [];\n const outputObject = {};\n\n for (let inputIndex = 0; inputIndex < inputArray.length; inputIndex++) {\n const inputElement = inputArray[inputIndex];\n\n let outputElement;\n if (columnKey === null) {\n outputElement = inputElement;\n } \n else {\n if (isArray(inputElement)) {\n if (columnKey < 0 || columnKey >= inputElement.length) {\n continue;\n }\n } else {\n if (!inputElement.hasOwnProperty(columnKey)) {\n continue;\n }\n }\n outputElement = inputElement[columnKey];\n }\n\n if (isReturnArray) {\n outputArray.push(outputElement);\n } \n else {\n outputObject[inputElement[indexKey]] = outputElement;\n }\n }\n return (isReturnArray ? outputArray : outputObject);\n }\n\n static getClient(clientId: number) {\n const arrClient = [\n {\n id: 3,\n name: 'Asta',\n url: '/asta/login',\n urlLogout: '/asta/admin'\n }, {\n id: 6,\n name: 'Fitness Link',\n url: '/fitness-link/login',\n urlLogout: '/fitness-link/admin'\n }, {\n id: 8,\n name: 'Smart Fit',\n url: '/smartfit/login',\n urlLogout: '/smartfit/admin'\n }, {\n id: 9,\n name: 'Action Aid',\n url: '/action-aid/login',\n urlLogout: '/action-aid/admin'\n }, {\n id: 15,\n name: 'Lele',\n url: '/lele/login',\n urlLogout: '/lele/admin'\n },{\n id: 16,\n name: 'Admin',\n url: '/auth/login',\n urlLogout: '/auth/login'\n },{\n id: 18,\n name: 'Nova Terra',\n url: '/nova-terra/login',\n urlLogout: '/nova-terra/admin'\n }\n ];\n return arrClient.filter(item => item.id === clientId);\n }\n\n}\n","import {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport {ModelsInterface} from '../interfaces/models.interface';\nimport {LibraryHelper} from '../helpers/library.helper';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class Trail implements ModelsInterface {\n public id: string;\n public name: string;\n public date: string;\n public titulo?: string;\n public descricao?: string;\n public arquivo?: string;\n public pasta_id?: number;\n public role: string;\n public tag: string;\n\n constructor(private http: HttpClient, public global: Global) {\n }\n\n populate(data: any): Trail {\n const trail = new Trail(this.http,this.global);\n trail.id = data.id;\n trail.name = data.name;\n trail.date = data.date;\n trail.role = data.role;\n trail.tag = data.tag;\n return trail;\n }\n\n findHome(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/home', LibraryHelper.getHeaders());\n }\n\n findAll(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/admin/trail/folder', LibraryHelper.getHeaders());\n }\n\n findAllClient(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha', LibraryHelper.getHeaders());\n }\n\n findAllAvatar(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar', LibraryHelper.getHeaders());\n }\n\n findAvatar(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar/' + id , LibraryHelper.getHeaders());\n }\n\n findAvatarScore(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar/pontos/gerais/' + id , LibraryHelper.getHeaders());\n }\n\n findTrainingScore(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar/pontos/modulos/gerais/' + id , LibraryHelper.getHeaders());\n }\n\n avatarUnlock(id: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/trilha/avatar/unlock/' + id , {}, LibraryHelper.getHeaders());\n }\n\n aceptChallenge(id: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/trilha/avatar/desafio/' + id , {}, LibraryHelper.getHeaders());\n }\n\n challengeCloseModal(id: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/trilha/avatar/modal/' + id , {}, LibraryHelper.getHeaders());\n }\n\n getChallenge(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar/desafio/' + id, LibraryHelper.getHeaders());\n }\n\n getChallengeModules(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar/desafio/modulos/' + id, LibraryHelper.getHeaders());\n }\n\n aceptChallengeModules(id: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/trilha/avatar/desafio/modulos/' + id , {}, LibraryHelper.getHeaders());\n }\n\n getVideo(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/videos/' + id, LibraryHelper.getHeaders());\n }\n\n getAllVideo(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/videos/' + id, LibraryHelper.getHeaders());\n }\n\n findLevels(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar/niveis/' + id , LibraryHelper.getHeaders());\n }\n\n searchLevels(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/avatar/busca/' + id , LibraryHelper.getHeaders());\n }\n\n findOneBy(data: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/admin/trail/item/' + data.id + '/edit', LibraryHelper.getHeaders());\n }\n\n findBy(id: number): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/admin/trail/item/' + id + '/edit', LibraryHelper.getHeaders());\n }\n\n filterBy(data: any[]): Observable<any> {\n return this.http.get(this.global.apiURL()\n + '/api/v2/admin/trail/config/filter/group?nome=&cpf=&sexo=&localidade=&uf=&unidades=&cargos=&unidade='\n + data[1] + '&cargo=' + data[0], LibraryHelper.getHeaders());\n }\n\n update(trail: Trail): Observable<any> {\n return this.http.put(this.global.apiURL() + '/api/v2/admin/trail/item/' + trail.id + '/update', trail, LibraryHelper.getHeaders());\n }\n\n persist(trail: Trail): Observable<any> {\n const body = {\n nome_pasta: trail.name,\n role: trail.role\n };\n\n if (trail.id) {\n return this.http.put(this.global.apiURL() + '/api/v2/admin/trail/folder/' + trail.id + '/update', body, LibraryHelper.getHeaders());\n } else {\n return this.http.post(this.global.apiURL() + '/api/v2/admin/trail/folder/post', body, LibraryHelper.getHeaders());\n }\n }\n\n saveData(trail: Trail): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/admin/trail/item/post', trail, LibraryHelper.getHeaders());\n }\n\n delete(id: number): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/admin/trail/folder/' + id + '/delete';\n return this.http.delete(url, LibraryHelper.getHeaders());\n }\n\n setStatus(data: {status: number}, id: number): Observable<any> {\n const url = this.global.apiURL() + '/api/v2/client/trilha/published/' + id;\n return this.http.post(url, data, LibraryHelper.getHeaders());\n }\n\n}\n","import {Injectable} from '@angular/core';\nimport {ServicesInterface} from '../interfaces/services.interface';\nimport { Observable } from 'rxjs';\nimport {Trail} from '../models/trail';\nimport {HttpClient} from '@angular/common/http';\nimport {LibraryHelper} from '../helpers/library.helper';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class TrailService implements ServicesInterface {\n\n protected arrayModel: Trail[] = [];\n\n constructor(protected _trailModel: Trail, private http: HttpClient, public global: Global) {\n }\n\n collection(): Promise<any> {\n const _this = this;\n this.arrayModel = [];\n return new Promise<any>((resolve, reject) => {\n _this.findAll().subscribe((res:any) => {\n for (const trail of res.data) {\n _this.arrayModel.push(_this._trailModel.populate({\n id: trail.id,\n name: trail.nome_pasta,\n role: trail.role,\n date: trail.created_at.date,\n tag: trail.tag,\n }));\n }\n resolve(_this.arrayModel);\n }, err => {\n reject(err);\n })\n })\n }\n\n findHome(): Observable<any> {\n return this._trailModel.findHome();\n }\n\n findAll(): Observable<any> {\n return this._trailModel.findAll();\n }\n\n findAllClient(): Observable<any> {\n return this._trailModel.findAllClient();\n }\n\n findAllAvatar(): Observable<any> {\n return this._trailModel.findAllAvatar();\n }\n\n findAvatar(data: any): Observable<any> {\n return this._trailModel.findAvatar(data);\n }\n\n avatarUnlock(data: any): Observable<any> {\n return this._trailModel.avatarUnlock(data);\n }\n\n findLevels(data: any): Observable<any> {\n return this._trailModel.findLevels(data);\n }\n\n findAvatarScore(data: any): Observable<any> {\n return this._trailModel.findAvatarScore(data);\n }\n\n findTrainingScore(data: any): Observable<any> {\n return this._trailModel.findTrainingScore(data);\n }\n\n aceptChallenge(data: any): Observable<any> {\n return this._trailModel.aceptChallenge(data);\n }\n\n getChallenge(data: any): Observable<any> {\n return this._trailModel.getChallenge(data);\n }\n\n aceptChallengeModules(data: any): Observable<any> {\n return this._trailModel.aceptChallengeModules(data);\n }\n\n getChallengeModules(data: any): Observable<any> {\n return this._trailModel.getChallengeModules(data);\n }\n\n getVideo(data: any): Observable<any> {\n return this._trailModel.getVideo(data);\n }\n\n getAllVideo(data: any): Observable<any> {\n return this._trailModel.getAllVideo(data);\n }\n\n challengeCloseModal(data: any): Observable<any> {\n return this._trailModel.challengeCloseModal(data);\n }\n\n searchLevels(data: any): Observable<any> {\n return this._trailModel.searchLevels(data);\n }\n\n findOneBy(data: any): Observable<any> {\n return undefined;\n }\n\n findBy(id: number): Promise<any> {\n return new Promise<any>((resolve, reject) => {\n this._trailModel.findBy(id)\n .subscribe((res:any) => {\n resolve(res);\n }, err => {\n reject(err);\n })\n })\n }\n\n filterBy(data: any[]): Observable<any> {\n return this._trailModel.filterBy(data);\n }\n\n persist(trail: Trail): Observable<any> {\n return this._trailModel.persist(trail);\n }\n\n delete(id: number): Observable<any> {\n return this._trailModel.delete(id);\n }\n\n setStatus(status: number, id: number): Observable<any> {\n return this._trailModel.setStatus({status: status}, id);\n }\n\n saveData(trail: Trail): Observable<any> {\n return this._trailModel.saveData(trail);\n }\n\n update(trail: Trail): Observable<any> {\n return this._trailModel.update(trail);\n }\n\n persistTrailConfiguratorByGroupFilter(data: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/admin/grupo/has/trail/filter', data, LibraryHelper.getHeaders());\n }\n\n persistTrailConfiguratorByFilterOnly(data: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/admin/trail/has/filter', data, LibraryHelper.getHeaders());\n }\n\n persistTrailConfiguratorByUserGroup(data: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/admin/trail/config/users', data, LibraryHelper.getHeaders());\n }\n\n persistTrailConfiguratorByUserOnly(data: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/admin/trail/has/user', data, LibraryHelper.getHeaders());\n }\n\n folderUserShared(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/admin/shared/folder/admin', LibraryHelper.getHeaders());\n }\n\n}\n","import { Component, Input, OnInit, OnChanges, SimpleChanges, EventEmitter, Output } from '@angular/core';\nimport { TrailService } from '../../@core/services/trail.service';\nimport { Trail } from '../../@core/models/trail';\n\n@Component({\n selector: 'app-points',\n templateUrl: './points.component.html',\n styleUrls: ['../../visualizador/mini-curso-visualizador/mini-curso-visualizador.component.scss','./points.component.css'],\n providers: [ TrailService, Trail ]\n})\n\nexport class PointsComponent implements OnInit, OnChanges {\n\n @Input() idTrail;\n @Input() points: number;\n @Input() textHelper: string;\n @Output() title: EventEmitter<any> = new EventEmitter\n public score: any;\n public progress: any;\n\n constructor(\n private _trailService: TrailService,\n ) { }\n\n ngOnInit() {\n this.score = this.points;\n if (this.idTrail) {\n this.findScore(this.idTrail);\n }\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if(changes.points) {\n this.score = changes.points.currentValue;\n }\n }\n\n findScore(id): void {\n this._trailService.findTrainingScore(id)\n .subscribe(\n (res:any) => {\n this.title.emit(res)\n this.score = res.data.pontos;\n this.progress = res.data.progresso;\n }\n )\n }\n\n}\n","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-exercicios',\n templateUrl: './exercicios.component.html',\n styleUrls: ['./exercicios.component.css']\n})\n\nexport class ExercisesComponent implements OnInit {\n\n ngOnInit() {\n }\n\n}\n","import {Component, OnInit, ElementRef, ViewChild} from '@angular/core';\n\ndeclare const $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-precificacao-visualizador',\n templateUrl: './precificacao-visualizador.component.html',\n styleUrls: ['./precificacao-visualizador.component.css'],\n})\n\nexport class PrecificacaoVisualizadorComponent implements OnInit {\n\n ngOnInit(){\n \n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class ProdutosService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'produtos') \n }\n\n}\n","import { Component } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { ProdutosService } from '../../../../@core/services/precifica/produtos/produtos.service';\n\n@Component({\n selector: 'app-precificacao-produtos',\n templateUrl: './produtos.component.html',\n styleUrls: ['../../precificacao-visualizador.component.css','./produtos.component.css'],\n providers: [ ProdutosService ]\n})\n\nexport class ProdutosComponent {\n\n public produtos;\n public pedido;\n\n constructor(\n private route: ActivatedRoute, \n private router: Router,\n public _ProdutosService: ProdutosService) {}\n \n getProducts() {\n this._ProdutosService.getResources().subscribe(\n (data:any) => { \n this.produtos = data.data\n console.log(data)\n } \n );\n }\n\n ngOnInit(){\n this.getProducts();\n }\n\n novo(){\n this.router.navigate(['/visualizador/precificacao/novo']);\n }\n\n visualizar(id){\n console.log(id)\n this.router.navigate(['/visualizador/precificacao/visualizar/'+id]);\n }\n\n deletar(id){\n this._ProdutosService.deleteResource(id).subscribe(\n (data:any) => { \n this.getProducts();\n return true;\n } \n );\n }\n\n openResumo(id) {\n\n }\n\n delete(id) {\n\n }\n\n}\n","import { Component, ElementRef, ViewChild } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { ProdutosService } from '../../../../../@core/services/precifica/produtos/produtos.service';\n\n@Component({\n selector: 'app-precificacao-produtos-novo',\n templateUrl: './novo-produto.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ ProdutosService ]\n})\n\nexport class NovoProdutoComponent {\n\n //variables\n form:FormGroup;\n private image;\n public file_input: string = 'Selecionar Imagem';\n public errors:string = \"\";\n\n @ViewChild('fileInput',{static:false}) fileInput: ElementRef;\n\n constructor(\n private formBuilder: FormBuilder, \n public _ProdutosService: ProdutosService) {\n this.initForm();\n }\n \n initForm() {\n let _dimensions = this.formBuilder.group({\n largura: [''],\n cumprimento: [''],\n peso: ['']\n })\n\n this.form = this.formBuilder.group({\n id: [''],\n name: [''],\n description: [''],\n foto: [this.image],\n type: [''],\n dimensions: _dimensions\n })\n }\n\n register(){\n const form = this.form.value\n this._ProdutosService.createResource(form).subscribe(\n (data:any) => {\n return true;\n },\n error => { \n this.errors = error.json().error; \n }\n );\n console.log('register')\n }\n\n onFileChange(event) {\n let reader:any = new FileReader();\n if(event.target.files && event.target.files.length > 0) {\n let file = event.target.files[0];\n reader.readAsDataURL(file);\n reader.onload = () => {\n this.file_input = file.name;\n //this.form.get('foto').setValue(reader.result.split(',')[1]);\n this.image = reader.result.split(',')[1];\n };\n }\n \n }\n}\n","import { Component, ViewChild, AfterViewInit } from '@angular/core';\n\n@Component({\n selector: 'app-precificacao-produtos-visualizar',\n templateUrl: './visualizar-produto.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css']\n})\n\nexport class VisualizarProdutoComponent {\n\n ngOnInit() {\n \n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class MaterialService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'material') \n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class MaoObraService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'mObra') \n }\n\n}\n","import { Component, ViewChild, AfterViewInit } from '@angular/core';\nimport { Router, ActivatedRoute, Params } from '@angular/router';\nimport { MaterialService } from '../../../../../../@core/services/precifica/material/material.service';\nimport { MaoObraService } from '../../../../../../@core/services/precifica/mao-obra/mao-obra.service';\n\n@Component({\n selector: 'app-precificacao-produtos-visualizar-resumo',\n templateUrl: './visualizar-resumo-produto.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css'],\n providers: [ MaterialService, MaoObraService ]\n})\n\nexport class VisualizarResumoProdutoComponent {\n\n id:any;\n materiais:any;\n mao_obras:any;\n\n constructor(\n private route: ActivatedRoute, \n private router: Router,\n private _MaterialService: MaterialService,\n private _MaoObraService: MaoObraService\n ) {\n\n }\n\n\n ngOnInit() {\n\n this.route.params.forEach((params: Params) => {\n this.getMaterial(params['id']);\n this.getMaoObra(params['id'])\n });\n }\n\n getMaterial(id){\n this._MaterialService.getResource(id).subscribe(\n (res:any) => {\n this.materiais = res.Material.data;\n console.log(res)\n }\n )\n }\n\n getMaoObra(id){\n this._MaoObraService.getResource(id).subscribe(\n (res:any) => {\n this.mao_obras = res.MaoDeObra;\n console.log(res)\n }\n )\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class FornecedorService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'fornecedor') \n }\n\n}\n","import { Component, ViewChild, DoCheck, ElementRef } from '@angular/core';\nimport { Router, ActivatedRoute, Params } from '@angular/router';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { MaterialService } from '../../../../../../@core/services/precifica/material/material.service';\nimport { ProdutosService } from '../../../../../../@core/services/precifica/produtos/produtos.service';\nimport { FornecedorService } from '../../../../../../@core/services/precifica/fornecedor/fornecedor.service';\n\n@Component({\n selector: 'app-precificacao-produtos-visualizar-resumo',\n templateUrl: './visualizar-materiais-produto.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css'],\n providers: [ MaterialService, FornecedorService, ProdutosService ]\n})\n\nexport class VisualizarMateriaisProdutoComponent {\n\n //variables\n form:FormGroup;\n public produto_id;\n public produto = [{name: ''}];\n public materiais = [];\n public fornecedores;\n public total = { inter:\"0\", float:\"00\" };\n public errors;\n\n @ViewChild('qtdPecas',{static:false}) qtdPecas: ElementRef;\n @ViewChild('precoUn',{static:false}) precoUn: ElementRef;\n \n constructor(\n private formBuilder: FormBuilder,\n private route: ActivatedRoute, \n private router: Router,\n private _MaterialService: MaterialService,\n private _FornecedorService: FornecedorService,\n private _ProdutosService: ProdutosService) {\n this.initForm();\n }\n \n round(number:number, precision:number) {\n let factor = Math.pow(10, precision);\n let tempNumber = number * factor;\n let roundedTempNumber = Math.round(tempNumber);\n return roundedTempNumber / factor;\n };\n\n change(){\n let qtd = parseFloat(this.qtdPecas.nativeElement.value);\n let preco = parseFloat(this.precoUn.nativeElement.value);\n let total;\n console.log(qtd)\n qtd != undefined ? total = qtd / preco : total = preco\n let round = this.round(total, 2).toFixed(2).split('.');\n let result = {inter: round[0], float: round[1]}\n this.total = result\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n id: [''], \n produto_id: [''],\n fornecedor_id: [''],\n material: [''],\n unidade: [''],\n preco_unidade: [''],\n qtd_pecas: [''],\n insumo_pecas: ['']\n })\n }\n\n ngOnInit() {\n this.route.parent.params.forEach((params: Params) => {\n this.produto_id = params['id'];\n this.getProduto(this.produto_id);\n this.getMateriais(this.produto_id);\n this.getFornecedores();\n });\n }\n\n getProduto(id){\n this._ProdutosService.getResource(id).subscribe(\n (data:any) => {\n this.produto = data.data[0]\n console.log(data.data)\n }\n )\n }\n\n getMateriais(id){\n this._MaterialService.getResource(id).subscribe( (data:any) => {\n console.log(data)\n this.materiais = data.Material.data\n })\n }\n\n getFornecedores(){\n this._FornecedorService.getResources().subscribe( (data:any) => {\n this.fornecedores = data.data\n })\n }\n\n register() {\n let fornecedor = this.form.controls['fornecedor_id'].value;\n if(fornecedor == 0){\n this.form.get('fornecedor_id').patchValue(null)\n }\n \n this.form.get('produto_id').patchValue(this.produto_id)\n const form = this.form.value\n console.log(form)\n this._MaterialService.createResource(form, {router: this.produto_id }).subscribe(\n (data:any) => {\n this.getMateriais(this.produto_id);\n this.form.reset();\n this.total = { inter:\"0\", float:\"00\" };\n return true;\n },\n error => { \n this.errors = error.json().error; \n }\n );\n }\n\n deletar(material){\n this._MaterialService.deleteResource(material).subscribe(\n (data:any) => {\n this.getMateriais(this.produto_id);\n return true;\n }\n )\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class ArtesanService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'artisan') \n }\n\n}\n","import { Component, ViewChild, AfterViewInit, Inject } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { MaoObraService } from '../../../../../../../@core/services/precifica/mao-obra/mao-obra.service';\nimport { ArtesanService } from '../../../../../../../@core/services/precifica/artesan/artesan.service';\nimport { ProdutosService } from '../../../../../../../@core/services/precifica/produtos/produtos.service';\n\n@Component({\n selector: 'app-precificacao-produtos-visualizar-modal',\n templateUrl: './modal.mao-de-obra.component.html',\n styleUrls: ['../../../../../precificacao-visualizador.component.css'],\n providers: [ MaoObraService, ArtesanService, ProdutosService ]\n})\n\nexport class ModalMaoObraProdutoComponent {\n\n //variables\n formProducao:FormGroup;\n formArtesa:FormGroup;\n formType:boolean = false;\n\n constructor(\n public dialogRef: MatDialogRef<ModalMaoObraProdutoComponent>,\n private formBuilder: FormBuilder,\n @Inject(MAT_DIALOG_DATA) public data: any,\n private _MaoObraService: MaoObraService,\n private _ArtesanService: ArtesanService,\n private _ProdutosService: ProdutosService) {\n this.initForm();\n }\n\n initForm() { \n this.formArtesa = this.formBuilder.group({\n price: [''],\n type: ['', Validators.required]\n })\n\n this.formProducao = this.formBuilder.group({\n service: [''],\n time: [''],\n type: ['', Validators.required]\n })\n } \n \n onNoClick(): void {\n this.dialogRef.close();\n }\n\n ngOnInit(){\n if(this.data.type == \"producao\"){\n this.formType = true;\n }else {\n this.formType = false;\n }\n }\n\n registerArt(){\n const form = this.formArtesa.value\n this._ArtesanService.createResource(form, {router: this.data.id }).subscribe(\n (data:any) => {\n this.dialogRef.close(this.formType);\n return true;\n }\n );\n }\n\n registerProd(){\n const form = this.formProducao.value\n this._MaoObraService.createResource(form, {router: this.data.id }).subscribe(\n (data:any) => {\n this.dialogRef.close(this.data.type);\n return true;\n }\n );\n }\n}\n","import { Component, ViewChild, AfterViewInit } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { Router, ActivatedRoute, Params } from '@angular/router';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { ModalMaoObraProdutoComponent } from './modal/modal.mao-de-obra.component';\nimport { MaoObraService } from '../../../../../../@core/services/precifica/mao-obra/mao-obra.service';\nimport { ArtesanService } from '../../../../../../@core/services/precifica/artesan/artesan.service';\nimport { ProdutosService } from '../../../../../../@core/services/precifica/produtos/produtos.service';\n\n@Component({\n selector: 'app-precificacao-produtos-visualizar-resumo',\n templateUrl: './visualizar-mao-obra-produto.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css'],\n providers: [ MaoObraService, ArtesanService, ProdutosService ]\n})\n\nexport class VisualizarMaoObraProdutoComponent {\n\n //variables\n form:FormGroup;\n produto_id:number;\n value: number;\n type: string;\n calcMobra: boolean = false;\n checkType: boolean;\n public produto:any = [{name: ''}];\n etapas:any;\n\n checking(value){\n this.type = value;\n }\n\n constructor(\n private route: ActivatedRoute, \n private router: Router,\n private formBuilder: FormBuilder, \n public dialog: MatDialog,\n private _MaoObraService: MaoObraService,\n private _ArtesanService: ArtesanService,\n private _ProdutosService: ProdutosService) {\n this.initForm();\n }\n\n openDialog(): void {\n let dialogRef = this.dialog.open(ModalMaoObraProdutoComponent, {\n width: '350px',\n data: { id: this.produto_id, type: this.type }\n });\n\n dialogRef.afterClosed().subscribe(result => {\n console.log('The dialog was closed');\n let results = result;\n console.log(results)\n if(results == \"producao\") {\n this.calcMobra = true;\n this.getMaoObra(this.produto_id)\n }else {\n this.router.navigate(['/visualizador/precificacao/visualizar/'+this.produto_id+'/calcular']);\n }\n });\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n id: [''],\n name: [''],\n checkbox: ['']\n })\n }\n \n ngOnInit() {\n this.route.parent.params.forEach((params: Params) => {\n this.produto_id = params['id'];\n this. getProduto(this.produto_id);\n });\n }\n\n getProduto(id){\n this._ProdutosService.getResource(id).subscribe(\n (data:any) => {\n this.produto = data.data[0]\n }\n )\n }\n\n getMaoObra(id){\n this._MaoObraService.getResource(id).subscribe((data:any) => {\n this.etapas = data.MaoDeObra.data;\n console.log(data)\n })\n }\n\n}\n","import { Component, ViewChild, AfterViewInit } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { Observable } from 'rxjs';\nimport { startWith, map } from 'rxjs/operators';\n\n\n@Component({\n selector: 'app-precificacao-produtos-visualizar-resumo',\n templateUrl: './visualizar-fornecedor-produto.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css']\n})\n\nexport class VisualizarFornecedorProdutoComponent {\n\n //variables\n form:FormGroup;\n supplierCtrl: FormControl;\n filteredSupplier: Observable<any[]>;\n\n constructor(private formBuilder: FormBuilder) {\n this.initForm();\n }\n\n initForm() {\n this.supplierCtrl = new FormControl();\n this.filteredSupplier = this.supplierCtrl.valueChanges\n .pipe(\n startWith(''),\n map(supplier => supplier ? this.filterStates(supplier) : this.supplier.slice())\n );\n\n this.form = this.formBuilder.group({\n id: [''],\n name: [''],\n email: [''],\n phone: [''],\n cep: [''],\n adress: ['']\n })\n }\n\n ngOnInit() {\n \n }\n\n register() {\n \n }\n\n supplier = [{ name: 'Fornecedor 1' },{ name: 'Fornecedor 2' },{ name: 'Fornecedor 3' }];\n\n\n filterStates(name: string) {\n return this.supplier.filter((data:any) =>\n data.name.toLowerCase().indexOf(name.toLowerCase()) === 0);\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class CalculadoraService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'calculadora') \n }\n\n}\n","import { Component, ViewChild, AfterViewInit } from '@angular/core';\nimport { Router, ActivatedRoute, Params } from '@angular/router';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { CalculadoraService } from '../../../../../../@core/services/precifica/calculadora/calculadora.service';\n\n@Component({\n selector: 'app-precificacao-produtos-visualizar-resumo',\n templateUrl: './visualizar-calcular-produto.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css'],\n providers: [ CalculadoraService ]\n})\n\nexport class VisualizarCalcularProdutoComponent {\n\n //variables\n form:FormGroup;\n calculated:boolean = false;\n produto_id:number;\n calcule:any = {\n Produto: {\n data: [\n {\n name: ''\n }\n ]\n },\n total_isumos: '',\n total_mao_de_obra: '',\n custo_total: '',\n lucro: '',\n preco_antes_imposto: '',\n impostos: '',\n venda_imposto: '',\n venda_minimo: '',\n referencia_lucro: {\n vinte_porcento: '',\n quarenta_porcento: '',\n sessenta_porcento: '',\n oitenta_porcento: '',\n cem_porcento: ''\n }\n }\n\n constructor(\n private formBuilder: FormBuilder,\n private route: ActivatedRoute, \n private router: Router,\n private _CalculadoraService: CalculadoraService) {\n this.initForm();\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n lucro: [''],\n impostos: ['']\n })\n }\n\n \n ngOnInit() {\n this.route.parent.params.forEach((params: Params) => {\n this.produto_id = params['id'];\n this.getCalcule(this.produto_id)\n });\n }\n\n getCalcule(id){\n this._CalculadoraService.getResource(id).subscribe(\n (data:any) => {\n this.calcule = data;\n }\n )\n }\n\n update(){\n const form = this.form.value\n this._CalculadoraService.updateResource(form, {router: this.produto_id }).subscribe(\n (data:any) => {\n this.calculated = true;\n return true;\n }\n )\n }\n}\n","import { Component } from '@angular/core';\nimport {Router, ActivatedRoute} from '@angular/router';\n\n@Component({\n selector: 'app-precificacao-pedidos',\n templateUrl: './pedidos.component.html',\n styleUrls: ['../../precificacao-visualizador.component.css']\n})\n\nexport class PedidosComponent {\n\n constructor(private route: ActivatedRoute, private router: Router) {}\n\n novo(){\n this.router.navigate(['/painel/precificacao/home/novo']);\n }\n\n visualizar(id){\n console.log(id)\n this.router.navigate(['/painel/precificacao/home/visualizar/'+id]);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class PedidoService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'pedido') \n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class ListaProdutoseService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'listaProdutos') \n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class ValorService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'valor') \n }\n\n}\n","import { Component, ViewChild, AfterViewInit, Inject } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { PedidoService } from '../../../../@core/services/precifica/pedido/pedido.service';\nimport { ListaProdutoseService } from '../../../../@core/services/precifica/pedido/lista-produtos.service';\nimport { ValorService } from '../../../../@core/services/precifica/pedido/valor.service';\n\n@Component({\n selector: 'app-precificacao-modal-resumo',\n templateUrl: './modal-resumo.component.html',\n styleUrls: ['../../precificacao-visualizador.component.css'],\n providers: [ PedidoService, ListaProdutoseService, ValorService ]\n})\n\nexport class ModalResumoComponent {\n\n dadosPedidos;\n listas;\n custos;\n\n constructor(\n public dialogRef: MatDialogRef<ModalResumoComponent>,\n @Inject(MAT_DIALOG_DATA) public data: any,\n private _PedidoService: PedidoService,\n private _ListaProdutoseService: ListaProdutoseService,\n private _ValorService: ValorService\n ) { }\n \n onNoClick(): void {\n this.dialogRef.close();\n }\n\n ngOnInit(){\n this.getOrder();\n this.getProductList();\n this.getCoasts();\n }\n\n getOrder(){\n this._PedidoService.getResource(this.data.id).subscribe(\n (data:any) => {\n this.dadosPedidos = data.data[0]\n }\n )\n }\n\n getProductList(){\n this._ListaProdutoseService.getResource(this.data.id).subscribe(\n (data:any) => {\n this.listas = data.data;\n }\n )\n }\n\n getCoasts(){\n this._ValorService.getResource(this.data.id).subscribe(\n (data:any) => {\n this.custos = data.data\n }\n )\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../base.service';\n\n@Injectable()\nexport class PedidoService extends BaseService {\n\n constructor(protected http: HttpClient) {\n super(http, 'api/v2/loja', 'orders')\n }\n\n}\n","import { Component } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { ModalResumoComponent } from '../../modal-resumo/modal-resumo.component';\nimport { PedidoService } from '../../../../../@core/services/loja/pedido.service';\n\n@Component({\n selector: 'app-precificacao-meus-pedidos',\n templateUrl: './meus-pedidos.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css', './meus-pedidos.component.css'],\n providers: [ PedidoService ]\n \n})\n\nexport class MeusPedidosComponent {\n\n //variables\n pedidos:any = []\n\n constructor(\n private route: ActivatedRoute, \n private router: Router, \n private formBuilder: FormBuilder,\n public dialog: MatDialog,\n private _PedidoService: PedidoService\n ) {}\n\n ngOnInit(){\n this.getOrders()\n }\n\n getOrders(){\n this._PedidoService.getResources().subscribe(\n (data:any) => {\n this.pedidos = data.data\n }\n )\n }\n\n visualizar(id){\n this.router.navigate(['/visualizador/precificacao/pedidos/']);\n localStorage.setItem('calculadora', id);\n console.log(localStorage)\n }\n\n\n\n openResumo(id) {\n let dialogRef = this.dialog.open(ModalResumoComponent, {\n width: '800px',\n\n data: {id: id}\n });\n }\n\n novo(){\n localStorage.removeItem('calculadora');\n this.router.navigate(['/visualizador/precificacao/pedidos/']);\n }\n\n delete(id){\n this._PedidoService.deleteResource(id).subscribe(\n (data:any) => {\n this.getOrders();\n return true;\n }\n )\n }\n\n}\t\n","import { Component } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { Router, ActivatedRoute, Params } from '@angular/router';\nimport {MAT_MOMENT_DATE_FORMATS, MomentDateAdapter} from '@angular/material-moment-adapter';\nimport {DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE} from '@angular/material/core';\nimport { PedidoService } from '../../../../../@core/services/precifica/pedido/pedido.service';\n\nexport const MY_FORMATS = {\n parse: {\n dateInput: 'L',\n },\n display: {\n dateInput: 'L',\n monthYearLabel: 'MMM YYYY',\n dateA11yLabel: 'L',\n monthYearA11yLabel: 'MMMM YYYY',\n },\n};\n\n@Component({\n selector: 'app-precificacao-dados-pedido',\n templateUrl: './dados-pedido.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ PedidoService,\n {provide: MAT_DATE_LOCALE, useValue: 'pt-BR'},\n {provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]},\n {provide: MAT_DATE_FORMATS, useValue: MY_FORMATS} ]\n \n})\n\nexport class DadosPedidoComponent {\n\n //variables\n form:FormGroup;\n pedido_id;\n new_register:boolean = false;\n\n constructor(\n private route: ActivatedRoute, \n private router: Router, \n private formBuilder: FormBuilder,\n private _PedidoService:PedidoService) {\n this.initForm();\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n id: [''],\n name: [''],\n email: [''],\n telefone: [''],\n end: [''],\n cidade: [''],\n uf: [''],\n dt_entrega: [''],\n user_id: [''],\n dt_pedido: ['']\n })\n }\n\n register(){\n localStorage.removeItem('calculadora');\n const form = this.form.value;\n this._PedidoService.createResource(form).subscribe(\n (data:any) => {\n localStorage.setItem('calculadora', data.data.id_calculadora);\n }\n )\n }\n\n update(){\n const form = this.form.value;\n this._PedidoService.updateResource(form, {router: this.pedido_id}).subscribe(\n (data:any) => {\n return true;\n }\n )\n }\n\n ngOnInit(){\n this.route.params.forEach((params: Params) => {\n if(params['id']){\n console.log('parametro de rota');\n this.pedido_id = params['id'];\n this.new_register = false;\n this.getOrder();\n }else if (localStorage.getItem(\"calculadora\") !== null) {\n console.log('local storage');\n this.pedido_id = localStorage.getItem('calculadora');\n this.new_register = false;\n this.getOrder();\n }else{\n console.log('sem id');\n this.new_register = true;\n }\n\n });\n }\n\n getOrder(){\n this._PedidoService.getResource(this.pedido_id).subscribe(\n (data:any) => {\n console.log(data)\n this.initForm();\n this.form.setValue(data.data[0]);\n }\n )\n }\n\n}\t\n","import {Component, Inject} from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog';\nimport { ValorService } from '../../../../../../@core/services/precifica/pedido/valor.service';\nimport { ProdutosService } from '../../../../../../@core/services/precifica/produtos/produtos.service';\n\n@Component({\n selector: 'modal-edit',\n templateUrl: 'modal.calculo-pedido.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css'],\n providers: [ ValorService, ProdutosService ]\n})\nexport class ModalEdit{\n\n form:FormGroup;\n produtos:any;\n\n constructor(\n @Inject(MAT_DIALOG_DATA) public data: any,\n private formBuilder: FormBuilder, \n private _ValorService:ValorService,\n private _ProdutosService:ProdutosService\n ) {\n this.initForm()\n }\n\n ngOnInit(){\n this.data.calculadora\n console.log(this.data.id)\n this._ValorService.getResource(this.data.id).subscribe(\n (data:any) => {\n this.initForm()\n this.form.setValue(data.produtos) \n })\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n qtd_parts: [''],\n price_parts: ['']\n })\n }\n\n update(){\n const form = this.form.value;\n this._ValorService.updateResource(form, {router: this.data.calculadora}).subscribe(\n (data:any) => {\n\n }\n )\n }\n\n onNoClick() {\n \n }\n}","import { Component } from '@angular/core';\nimport { FormBuilder, FormGroup } from '@angular/forms';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { MatDialog } from '@angular/material/dialog';\nimport { ModalEdit } from './modal/modal.calculo-pedido.component';\nimport { ValorService } from '../../../../../@core/services/precifica/pedido/valor.service';\nimport { ListaProdutoseService } from '../../../../../@core/services/precifica/pedido/lista-produtos.service';\nimport { ProdutosService } from '../../../../../@core/services/precifica/produtos/produtos.service';\n\n@Component({\n selector: 'app-precificacao-calculo-pedido',\n templateUrl: './calculo-pedido.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ ValorService, ListaProdutoseService, ProdutosService ]\n})\n\nexport class CalculoPedidoComponent {\n\n //variables\n form:FormGroup;\n produtos:any;\n listas:any = [];\n calculadora_id:any;\n\n constructor(\n private route: ActivatedRoute, \n private router: Router, \n private formBuilder: FormBuilder, \n private _ValorService: ValorService,\n private _ListaProdutoseService: ListaProdutoseService,\n private _ProdutosService: ProdutosService,\n public dialog: MatDialog\n ) {\n this.initForm();\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n id: [''],\n produto_id:'' ,\n name_produto: '',\n qtd_parts: [''],\n price_parts: ['']\n })\n }\n\n ngOnInit(){\n this.calculadora_id = localStorage.getItem('calculadora');\n this.getProducts();\n this.getProductList();\n }\n\n getProducts(){\n this._ProdutosService.getResources().subscribe(\n (data:any) => {\n this.produtos = data.data\n }\n )\n }\n \n getPropsProduct(id, name){\n this.form.patchValue({\n produto_id: id, \n name_produto: name\n });\n }\n\n register(){\n const form = this.form.value;\n this._ValorService.createResource(form, {router: this.calculadora_id}).subscribe(\n (data:any) => {\n this.getProductList();\n return true;\n }\n )\n }\n\n getProductList(){\n this._ListaProdutoseService.getResource(this.calculadora_id).subscribe(\n (data:any) => {\n this.listas = data.data;\n }\n )\n }\n\n edit(id){\n let dialogRef = this.dialog.open(ModalEdit, {\n width: '500px',\n data: { id: id, calculadora: this.calculadora_id }\n });\n\n dialogRef.afterClosed().subscribe(result => {\n this.getProductList();\n });\n }\n\n delete(id) {\n\n }\n\n}\t\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class TransporteService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'transp') \n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class DescService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'desc') \n }\n\n}\n","import { Component } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { ValorService } from '../../../../../@core/services/precifica/pedido/valor.service';\nimport { TransporteService } from '../../../../../@core/services/precifica/pedido/transporte.service';\nimport { DescService } from '../../../../../@core/services/precifica/pedido/desc.service';\n\n@Component({\n selector: 'app-precificacao-custos',\n templateUrl: './custos.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ ValorService, TransporteService, DescService ]\n})\n\nexport class CustosComponent {\n\n //variables\n transp:FormGroup;\n desc:FormGroup;\n calculadora_id:any;\n custos;\n\n constructor(\n private route: ActivatedRoute, \n private router: Router, \n private formBuilder: FormBuilder,\n private _ValorService: ValorService,\n private _TransporteService: TransporteService,\n private _DescService: DescService) {\n this.initForm();\n }\n\n initForm() {\n this.transp = this.formBuilder.group({\n transport: [''],\n packing: ['']\n })\n\n this.desc = this.formBuilder.group({\n discount: ['']\n })\n }\n\n ngOnInit(){\n this.calculadora_id = localStorage.getItem('calculadora');\n this.getCoasts();\n }\n\n getCoasts(){\n this._ValorService.getResource(this.calculadora_id).subscribe(\n (data:any) => {\n this.custos = data.data\n }\n )\n }\n\n update(){\n const transp = this.transp.value;\n const desc = this.desc.value;\n if(transp.transport != \"\" && transp.packing != \"\"){\n this._TransporteService.updateResource(transp, {router: this.calculadora_id}).subscribe(\n (data:any) => {\n return true;\n }\n )\n }\n\n if(desc.discount != \"\"){\n this._DescService.updateResource(desc, {router: this.calculadora_id}).subscribe(\n (data:any) => {\n return true;\n }\n )\n }\n \n this.getCoasts();\n \n }\n}\t\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class ListaService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'lista') \n }\n\n}\n","import { Component } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { ModalResumoComponent } from '../../modal-resumo/modal-resumo.component';\nimport { ListaService } from '../../../../../@core/services/precifica/pedido/lista.service';\n\n@Component({\n selector: 'app-precificacao-compras',\n templateUrl: './compras.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ ListaService ]\n})\n\nexport class ComprasComponent {\n\n //variables\n form:FormGroup;\n calculadora_id:any;\n listas = [];\n value_total = 0.00\n\n constructor(\n private route: ActivatedRoute, \n private router: Router, \n private formBuilder: FormBuilder, \n public dialog: MatDialog,\n private _ListaService: ListaService\n ) { }\n\n ngOnInit(){\n console.log('aquiokk')\n this.calculadora_id = localStorage.getItem('calculadora');\n this.getBuyList();\n }\n\n getBuyList(){\n this._ListaService.getResource(this.calculadora_id).subscribe(\n (data:any) => {\n this.listas.push(data[0].data)\n let total = 0\n for(let i = 0; i < this.listas.length; i++){\n let value = parseFloat(this.listas[i]['valor_a_ser_gasto'])\n total += value;\n }\n this.value_total = total;\n }\n )\n }\n\n openResumo() {\n let dialogRef = this.dialog.open(ModalResumoComponent, {\n width: '800px',\n data: {id: this.calculadora_id}\n });\n }\n \n}\t\n","import { Component } from '@angular/core';\nimport {Router, ActivatedRoute} from '@angular/router';\n\n@Component({\n selector: 'app-precificacao-viabilidade',\n templateUrl: './viabilidade.component.html',\n styleUrls: ['../../precificacao-visualizador.component.css']\n})\n\nexport class ViabilidadeComponent {\n\n constructor(private route: ActivatedRoute, private router: Router) {}\n\n novo(){\n this.router.navigate(['/painel/precificacao/home/novo']);\n }\n\n visualizar(id){\n console.log(id)\n this.router.navigate(['/painel/precificacao/home/visualizar/'+id]);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class CustoService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'custo') \n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { BaseService } from '../../base.service';\n\n@Injectable()\nexport class ViabilidadeService extends BaseService {\n\n constructor(protected http: HttpClient) { \n super(http, 'api/v2/precifica', 'viabilidade') \n }\n\n}\n","import { Component, ViewChild, AfterViewInit, Inject } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { CustoService } from '../../../../../../@core/services/precifica/viabilidade/custo.service';\nimport { ViabilidadeService } from '../../../../../../@core/services/precifica/viabilidade/viabilidade.service';\n\n@Component({\n selector: 'app-precificacao-modal-custos',\n templateUrl: './modal.custos-fixos.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css'],\n providers: [ CustoService, ViabilidadeService ]\n})\n\nexport class ModalCustosComponent {\n\n form:FormGroup;\n custos:any = [];\n delete:boolean = false;\n\n constructor(\n private formBuilder: FormBuilder, \n public dialogRef: MatDialogRef<ModalCustosComponent>,\n @Inject(MAT_DIALOG_DATA) public data: any,\n private _CustoService: CustoService,\n private _ViabilidadeService: ViabilidadeService\n ) {\n this.initForm()\n }\n \n ngOnInit(){\n if(this.data.type == \"delete\"){\n this.getCustos(this.data.id);\n this.delete = true;\n }else if(this.data.type == \"update\") {\n this.getCustos(this.data.id);\n this.delete = false;\n }\n }\n\n getCustos(id){\n this._CustoService.getResource(id).subscribe(\n (data:any) => {\n this.custos = data\n this.initForm();\n console.log(this.custos)\n this.form.setValue(data);\n \n \n }\n )\n }\n\n initForm() {\n this.form = this.formBuilder.group({\n custo: [''],\n valor: ['']\n })\n }\n\n register(){\n const form = this.form.value;\n this._ViabilidadeService.createResource(form).subscribe(\n (data:any) => {\n this.cancel();\n return true;\n }\n )\n }\n\n cancel(): void {\n this.dialogRef.close();\n }\n\n onNoClick() {\n this.dialogRef.close();\n }\n\n delClick(){\n this._CustoService.deleteResource(this.data.id).subscribe(\n (data:any) => {\n this.cancel();\n return true;\n }\n )\n }\n\n}\n","import { Component } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { CustoService } from '../../../../../@core/services/precifica/viabilidade/custo.service';\nimport { ModalCustosComponent } from './modal/modal.custos-fixos.component';\n\n@Component({\n selector: 'app-precificacao-viabilidade-custos-fixos',\n templateUrl: './custos-fixos.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ CustoService ]\n})\n\nexport class CustosFixosComponent {\n\n custos:any = [];\n\n constructor(\n private route: ActivatedRoute, \n private router: Router,\n public dialog: MatDialog,\n private _CustoService: CustoService\n ) {}\n\n ngOnInit(){\n this.getCoasts();\n }\n\n getCoasts(){\n this._CustoService.getResources().subscribe(\n (data:any) => {\n console.log(data.data)\n this.custos = data.data.custo_fixo;\n }\n )\n }\n\n novo() {\n let dialogRef = this.dialog.open(ModalCustosComponent, {\n width: '400px',\n data: { type: 'register'}\n });\n\n dialogRef.afterClosed().subscribe(result => {\n this.getCoasts();\n });\n }\n\n delete(id) {\n let dialogRef = this.dialog.open(ModalCustosComponent, {\n width: '500px',\n data: { type: 'delete', id: id}\n });\n\n dialogRef.afterClosed().subscribe(result => {\n this.getCoasts();\n });\n }\n\n editar(id){\n let dialogRef = this.dialog.open(ModalCustosComponent, {\n width: '500px',\n data: { type: 'update', id: id}\n });\n\n dialogRef.afterClosed().subscribe(result => {\n this.getCoasts();\n });\n }\n}\n","import { Component } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { ViabilidadeService } from '../../../../../@core/services/precifica/viabilidade/viabilidade.service';\n\ndeclare var $:any;\n\n@Component({\n selector: 'app-precificacao-viabilidade-custos-variaveis',\n templateUrl: './custos-variaveis.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ ViabilidadeService ]\n})\n\nexport class CustosVariaveisComponent {\n\n constructor(\n private route: ActivatedRoute, \n private router: Router,\n private _ViabilidadeService: ViabilidadeService) {}\n\n public data_uniformity = [0];\n\n ngOnInit(){ \n this.getViability().then((data:any) => {\n this.data_uniformity = data\n this.getChartSimple();\n })\n }\n\n getViability(): Promise<any> {\n return new Promise((resolve, reject) => {\n this._ViabilidadeService.getResources().subscribe(\n (res:any) => {\n resolve(res.total_custo_variavel)\n }, err => {\n reject(err);\n }\n )\n })\n }\n\n getChartSimple(){\n setTimeout(() => {\n var app = {\n init: function(){\n this.cacheDOM();\n this.handleCharts();\n },\n cacheDOM: function(){\n this.$chart = $(\".bar-chart\");\n },\n cssSelectors: {\n chartBar: \"bar-chart--inner\"\n },\n handleCharts: function(){\n /* \n iterate through charts and grab total value\n then apply that to the width of the inner bar\n */\n $.each(this.$chart, function(){\n var $this = $(this),\n total = $this.data(\"total\"),\n $targetBar = $this.find(\".\"+app.cssSelectors.chartBar);\n $targetBar.css(\"width\",\"0%\"); // zero out for animation\n setTimeout(function(){\n $targetBar.css(\"width\",total+\"%\");\n },400); \n });\n } \n }\n\n $('.bar-chart--text').each(function() {\n $(this).prop('Counter', 0).animate({\n Counter: $(this).text()\n }, {\n duration: 1500,\n easing: 'swing',\n step: function(now) {\n $(this).text(Math.ceil(now)+\"%\");\n }\n });\n });\n\n app.init();\n },1)\n } \n}\n","import { Component, ViewChild, AfterViewInit, Inject } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { Observable } from 'rxjs';\nimport { startWith, map } from 'rxjs/operators';\nimport { ProdutosService } from '../../../../../../@core/services/precifica/produtos/produtos.service';\n\n@Component({\n selector: 'app-precificacao-faturamento-estimado-modal',\n templateUrl: './modal.faturamento-estimado.component.html',\n styleUrls: ['../../../../precificacao-visualizador.component.css'],\n providers: [ ProdutosService ]\n})\n\nexport class ModalFaturamentoEstimadoComponent {\n\n productsCtrl: FormControl;\n filteredProducts: any;\n selectedId:number;\n\n products = [];\n\n constructor(\n public dialogRef: MatDialogRef<ModalFaturamentoEstimadoComponent>,\n private _ProdutosService: ProdutosService,\n private formBuilder: FormBuilder,\n @Inject(MAT_DIALOG_DATA) public data: any) {\n this.filter();\n }\n \n onNoClick(): void {\n this.dialogRef.close();\n }\n\n filterStates(name: string) {\n return this.products.filter((data:any) =>\n data.name.toLowerCase().indexOf(name.toLowerCase()) === 0);\n }\n\n ngOnInit(){\n this.getProducts()\n }\n\n getProducts(){\n this._ProdutosService.getResources().subscribe(\n (data:any) => {\n console.log(data)\n this.products = data.data\n this.filter();\n }\n )\n }\n\n filter(){\n this.productsCtrl = new FormControl();\n this.filteredProducts = this.productsCtrl.valueChanges\n .pipe(\n startWith(''),\n map((data:any) => data ? this.filterStates(data) : this.products.slice())\n );\n }\n\n selected(id) {\n this.selectedId = id;\n }\n\n returnProduct(){\n this.dialogRef.close(this.selectedId)\n }\n}\n","import { Component } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { ModalFaturamentoEstimadoComponent } from './modal/modal.faturamento-estimado.component';\nimport { ViabilidadeService } from '../../../../../@core/services/precifica/viabilidade/viabilidade.service';\n\n@Component({\n selector: 'app-precificacao-viabilidade-faturamento-estimado',\n templateUrl: './faturamento-estimado.component.html',\n styleUrls: ['../../../precificacao-visualizador.component.css'],\n providers: [ ViabilidadeService ]\n})\n\nexport class FaturamentoEstimadoComponent {\n\n //variables\n value: string;\n viabilidade: any;\n tables = [];\n\n constructor(\n private route: ActivatedRoute, \n private router: Router, \n private dialog: MatDialog,\n private _ViabilidadeService: ViabilidadeService\n ) {}\n\n openDialog(): void {\n let dialogRef = this.dialog.open(ModalFaturamentoEstimadoComponent, {\n width: '500px'\n });\n\n dialogRef.afterClosed().subscribe(result => {\n this.value = result;\n this.tables = [];\n this.getQtdProdutos()\n });\n }\n\n getQtdProdutos(){\n this._ViabilidadeService.getResource('qtd', {router: this.value}).subscribe(\n (data:any) => {\n this.tables.push(data.data)\n console.log(this.tables)\n }\n )\n }\n\n ngOnInit(){\n this.getViability();\n }\n\n getViability(){\n this._ViabilidadeService.getResources().subscribe(\n (data:any) => {\n this.viabilidade = data.faturamento_necessario;\n }\n )\n }\n \n}\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\n\nimport { Observable } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class StudioVisualizadorService {\n constructor(public http: HttpClient) {\n }\n\n course(id: number) {\n return this.http.get(`https://api.tecnologiaasap.com.br/api/v2/client/course/${id}`, this.header);\n }\n\n lessons(courseId: number) {\n return this.http.get(`https://api.tecnologiaasap.com.br/api/v2/client/course/${courseId}/lesson`, this.header);\n }\n\n view(lessonId: number) {\n return this.http.post('https://api.tecnologiaasap.com.br/api/v2/client/lesson/view/' + lessonId, {}, this.header);\n }\n\n feedback(data: any, lessonId: number) {\n return this.http.post('https://api.tecnologiaasap.com.br/api/v2/client/lesson/feedback/' + lessonId, { feedback: data }, this.header);\n }\n\n rating(data: any, courseId: number) {\n return this.http.post('https://api.tecnologiaasap.com.br/api/v2/client/course/feedback/' + courseId, { feedback: data }, this.header);\n }\n\n get host(): string {\n return localStorage.getItem('apiURL');\n }\n\n get header(): { headers: HttpHeaders } {\n const token = localStorage.getItem('token');\n const headerOptions = {\n Authorization: token,\n Accept: 'application/json'\n };\n return { headers: new HttpHeaders(headerOptions) };\n }\n\n}\n","import { Component, Inject, EventEmitter, Output } from '@angular/core';\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { Router } from '@angular/router';\nimport { Global } from 'asap-crud';\nimport { StudioVisualizadorService } from '../studio-visualizador.service';\n\n// Start Rating Component\n@Component({\n selector: 'app-studio-modal-rating',\n templateUrl: './studio-modal-rating.component.html',\n styleUrls: ['./studio-modal-rating.component.css', '../../../asap-viewer.css'],\n providers: [Global]\n})\nexport class StudioModalStarRatingComponent {\n\n id: number;\n\n score: number;\n showCertificateLink: boolean;\n showContinueButtom: boolean;\n loading: boolean;\n comment: string;\n\n constructor(\n public studioVisualizadorService: StudioVisualizadorService,\n public dialogRef: MatDialogRef<StudioModalStarRatingComponent>,\n public router: Router,\n public global: Global,\n @Inject(MAT_DIALOG_DATA) public data: any\n ) {\n this.score = 0;\n this.id = +data.id;\n }\n\n ngOnInit() {\n console.log('owner ->', this.data);\n }\n\n onNoClick(): void {\n this.dialogRef.close(false);\n }\n\n onRateChange = (score: number) => {\n this.score = score;\n }\n\n save() {\n this.loading = true;\n const form = { rating: this.score, comment: this.comment };\n\n console.log(form);\n\n this.studioVisualizadorService.rating(form, this.id)\n .subscribe(res => {\n this.dialogRef.close(true);\n }, err => {\n this.loading = false;\n });\n }\n\n}\n","import { Component, OnInit, ViewEncapsulation } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { Global } from 'asap-crud';\nimport { StudioVisualizadorService } from './studio-visualizador.service';\nimport { MatDialog } from '@angular/material/dialog';\nimport { StudioModalStarRatingComponent } from './studio-modal-rating/studio-modal-rating.component';\nimport { AsapViewerService } from '../../asap-viewer.service';\n\ndeclare var swal: any;\ndeclare var Hls: any;\n\n@Component({\n selector: 'app-studio-visualizador',\n templateUrl: './studio-visualizador.component.html',\n styleUrls: ['./studio-visualizador.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\n\nexport class StudioVisualizadorComponent implements OnInit {\n\n public id: number;\n public loader: boolean;\n public loading: boolean;\n\n course: any;\n lessonArray: any;\n lessonSelected: any;\n lessonSelectedIndex: number;\n\n answer: any;\n\n constructor(\n private activatedRoute: ActivatedRoute,\n public global: Global,\n public dialog: MatDialog,\n public studioVisualizadorService: StudioVisualizadorService,\n public viewerService: AsapViewerService\n ) {\n this.loader = true;\n }\n\n ngOnInit() {\n this.getParams();\n }\n\n private getParams(): void {\n this.activatedRoute.params.subscribe(params => {\n this.id = +params['id'];\n this.getData();\n });\n }\n\n getData() {\n this.studioVisualizadorService.course(this.id)\n .subscribe((res: any) => {\n this.course = res.data;\n this.getLessons();\n });\n }\n\n getLessons() {\n this.studioVisualizadorService.lessons(this.id)\n .subscribe((res: any) => {\n this.lessonArray = res.sort((a: any, b: any) => (a.id > b.id) ? -1 : 1);\n this.lessonArray = this.lessonArray.sort((a: any, b: any) => (a.order > b.order) ? 1 : -1);\n this.loader = false;\n this.selectLastLesson();\n });\n }\n\n lessonViewed(lesson: any) {\n lesson.feedback = true;\n\n this.studioVisualizadorService.view(lesson.id)\n .subscribe(res => {\n console.log(res);\n });\n }\n\n selectLastLesson() {\n const index = this.getFirstUnviewedLesson();\n this.selectLesson(this.lessonArray[index]);\n }\n\n selectLesson(lesson: any): void {\n this.loading = true;\n\n this.lessonSelected = lesson;\n this.lessonSelectedIndex = this.lessonArray.indexOf(lesson);\n\n setTimeout(() => {\n this.loading = false;\n if (lesson.type === 'studio') {\n if (lesson.content !== '') {\n this.hlsPlay(lesson.content);\n }\n }\n\n if (lesson.type === 'quiz') {\n this.answer = null;\n if (lesson.feedback && lesson.feedback.feedback) {\n this.lessonSelected.feedbackSended = true;\n this.answer = lesson.feedback.feedback.value;\n }\n }\n\n }, 500);\n }\n\n checkAllLessonViewed(): boolean {\n // const check = !this.lessonArray.some((item: any) => item.viewed === false);\n\n let check = false;\n let views = 0;\n const lessonArrayLength = this.lessonArray.length;\n\n this.lessonArray.forEach((item: any) => {\n if (item.feedback) {\n views++;\n }\n });\n\n if (views === lessonArrayLength) {\n check = true;\n }\n\n console.log('checkAllLessonViewed: check', check);\n\n return check;\n }\n\n hlsPlay(fileUri: string) {\n if (!fileUri) {\n return;\n }\n if (Hls.isSupported()) {\n console.log('hls: isSupported');\n\n const hlsTimer = setInterval(() => {\n\n const video: any = document.getElementById('studio-video');\n\n if (video) {\n if (fileUri.indexOf('mp4') > -1) {\n this.addSourceToVideo(video, fileUri, 'video/mp4');\n } else {\n this.playHls(video, fileUri);\n }\n clearInterval(hlsTimer);\n }\n }, 500);\n\n } else {\n console.log('[statusChange] HLS not supported!');\n }\n }\n\n playHls(element: any, uri: string) {\n const hls = new Hls();\n hls.loadSource(uri);\n hls.attachMedia(element);\n hls.on(Hls.Events.MANIFEST_PARSED, function () {\n element.play();\n });\n }\n\n addSourceToVideo(element: any, src: string, type: string) {\n const source = document.createElement('source');\n source.src = src;\n source.type = type;\n element.appendChild(source);\n element.play();\n }\n\n onSubmit() {\n\n this.lessonSelected.feedbackSended = true;\n\n const data = {\n type: 'quiz',\n value: this.answer\n };\n\n this.studioVisualizadorService.feedback(data, this.lessonSelected.id)\n .subscribe(res => {\n console.log(res);\n });\n }\n\n onSelectionChange(option: any) {\n this.answer = option.id;\n }\n\n exit(): void {\n if (this.checkAllLessonViewed()) {\n this.rating();\n } else {\n this.close();\n }\n }\n\n close() {\n window.history.back();\n }\n\n rating() {\n if (this.course.feedback) {\n console.log('pode sair');\n this.close();\n return;\n }\n\n const dialogRef = this.dialog.open(StudioModalStarRatingComponent, {\n width: '380px',\n disableClose: true,\n data: { id: this.id, owner: this }\n });\n\n dialogRef.afterClosed().subscribe(result => {\n if (result) {\n this.close();\n }\n });\n }\n\n next(): void {\n const current = this.lessonSelectedIndex;\n const lessonArrayLength = this.lessonArray.length;\n\n if (!this.lessonSelected.feedback) {\n this.lessonViewed(this.lessonSelected);\n }\n\n if ((current + 1) === lessonArrayLength) {\n if (this.checkAllLessonViewed()) {\n this.rating();\n } else {\n const unviewed = this.getFirstUnviewedLesson();\n this.selectLesson(this.lessonArray[unviewed]);\n }\n } else {\n this.selectLesson(this.lessonArray[current + 1]);\n }\n }\n\n getFirstUnviewedLesson(): number {\n let index = 0;\n for (const item of this.lessonArray) {\n if (!item.feedback) {\n console.log('getFirstUnviewedLesson', index);\n return index;\n }\n index++;\n }\n return 0;\n }\n\n}\n","import { Routes } from '@angular/router';\nimport { AsapViewerComponent } from './asap-viewer.component';\nimport { CursoVisualizadorComponent } from './visualizador/curso-visualizador/curso-visualizador.component';\nimport { MiniCursoVisualizadorComponent } from './visualizador/mini-curso-visualizador/mini-curso-visualizador.component';\nimport { ExercisesComponent } from './visualizador/exercicios/exercicios.component';\nimport { PrecificacaoVisualizadorComponent } from './visualizador/precificacao-visualizador/precificacao-visualizador.component';\nimport { ProdutosComponent } from './visualizador/precificacao-visualizador/viewer/produtos/produtos.component';\nimport { NovoProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/novo/novo-produto.component';\nimport { VisualizarProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/visualizar-produto.component';\nimport { VisualizarResumoProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/resumo/visualizar-resumo-produto.component';\nimport { VisualizarMateriaisProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/materiais/visualizar-materiais-produto.component';\nimport { VisualizarMaoObraProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/mao-obra/visualizar-mao-obra-produto.component';\nimport { VisualizarFornecedorProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/fornecedor/visualizar-fornecedor-produto.component';\nimport { VisualizarCalcularProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/calcular/visualizar-calcular-produto.component';\nimport { PedidosComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/pedidos.component';\nimport { MeusPedidosComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/meus-pedidos/meus-pedidos.component';\nimport { DadosPedidoComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/dados-pedido/dados-pedido.component';\nimport { CalculoPedidoComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/calculo/calculo-pedido.component';\nimport { CustosComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/custos/custos.component';\nimport { ComprasComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/compras/compras.component';\nimport { ViabilidadeComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/viabilidade.component';\nimport { CustosFixosComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/custos-fixos/custos-fixos.component';\nimport { CustosVariaveisComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/custos-variaveis/custos-variaveis.component';\nimport { FaturamentoEstimadoComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/faturamento-estimado/faturamento-estimado.component';\nimport { StudioVisualizadorComponent } from './visualizador/studio-visualizador/studio-visualizador.component';\n\nexport const AsapViewerRoutes: Routes = [\n {\n path: 'jornada',\n component: AsapViewerComponent,\n children: [\n { path: ':jornada_id/:id/:titulo', component: CursoVisualizadorComponent },\n ]\n },\n {\n path: 'visualizador',\n component: AsapViewerComponent,\n children: [\n { path: 'curso/:titulo', component: CursoVisualizadorComponent },\n { path: 'etapa/:id', component: CursoVisualizadorComponent },\n { path: 'studio/:id', component: StudioVisualizadorComponent },\n { path: 'mini-etapa/:id', component: MiniCursoVisualizadorComponent },\n { path: 'etapa-develop/:id', component: MiniCursoVisualizadorComponent },\n { path: 'etapa-artigo/:id', component: MiniCursoVisualizadorComponent },\n { path: 'exercicios', component: ExercisesComponent },\n {\n path: 'precificacao',\n component: PrecificacaoVisualizadorComponent,\n children: [\n { path: 'produtos', component: ProdutosComponent },\n { path: 'novo', component: NovoProdutoComponent },\n { path: 'meus-pedidos', component: MeusPedidosComponent },\n {\n path: 'visualizar/:id', component: VisualizarProdutoComponent,\n children:\n [\n { path: '', component: VisualizarResumoProdutoComponent },\n { path: 'materiais', component: VisualizarMateriaisProdutoComponent },\n { path: 'mao-de-obra', component: VisualizarMaoObraProdutoComponent },\n { path: 'fornecedor', component: VisualizarFornecedorProdutoComponent },\n { path: 'calcular', component: VisualizarCalcularProdutoComponent }\n ]\n },\n {\n path: 'pedidos', component: PedidosComponent,\n children: [\n { path: 'dados-pedido', component: DadosPedidoComponent },\n { path: 'produtos', component: CalculoPedidoComponent },\n { path: 'custos', component: CustosComponent },\n { path: 'compras', component: ComprasComponent }\n ]\n },\n {\n path: 'viabilidade', component: ViabilidadeComponent,\n children: [\n { path: 'custos-fixos', component: CustosFixosComponent },\n { path: 'custos-variaveis', component: CustosVariaveisComponent },\n { path: 'faturamento-estimado', component: FaturamentoEstimadoComponent }\n ]\n }\n\n ]\n }\n ]\n }\n];\n","import { Component, OnInit } from '@angular/core';\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\ndeclare const $: any;\n\n//Metadata\nexport interface RouteInfo {\n path: string;\n title: string;\n type: string;\n icontype: string;\n collapse?: string;\n children?: ChildrenItems[];\n}\n\nexport interface ChildrenItems {\n path: string;\n title: string;\n ab: string;\n type?: string;\n}\n\n//Menu Items\nexport const ROUTES: RouteInfo[] = [\n {\n path: 'produtos',\n title: 'Meus Produtos',\n type: 'link',\n icontype: 'flaticon-tabs'\n },{\n path: 'meus-pedidos',\n title: 'Meus Pedidos',\n type: 'link',\n icontype: 'flaticon-calculator'\n },{\n path: 'viabilidade',\n title: 'Meu Negócio',\n type: 'link',\n icontype: 'flaticon-check'\n }\n];\n\n@Component({\n selector: 'app-precificacao-sidebar',\n templateUrl: 'precificacao-sidebar.component.html',\n styleUrls: ['./precificacao-sidebar.component.css']\n})\n\nexport class PrecificacaoSidebarComponent implements OnInit {\n public menuItems: any[];\n\n isMobileMenu() {\n if ($(window).width() > 991) {\n return false;\n }\n return true;\n };\n\n ngOnInit() {\n this.menuItems = ROUTES.filter(menuItem => menuItem);\n }\n updatePS(): void {\n if (window.matchMedia(`(min-width: 960px)`).matches && !this.isMac()) {\n const elemSidebar = <HTMLElement>document.querySelector('.sidebar .sidebar-wrapper');\n }\n }\n isMac(): boolean {\n let bool = false;\n if (navigator.platform.toUpperCase().indexOf('MAC') >= 0 || navigator.platform.toUpperCase().indexOf('IPAD') >= 0) {\n bool = true;\n }\n return bool;\n }\n\n}\n","import { Component, OnInit, ViewChild, ElementRef, Directive, Renderer2 } from '@angular/core';\nimport { ROUTES } from '../precificacao-sidebar/precificacao-sidebar.component';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { Location, LocationStrategy, PathLocationStrategy } from '@angular/common';\nconst misc: any = {\n navbar_menu_visible: 0,\n active_collapse: true,\n disabled_collapse_init: 0,\n};\n\ndeclare var $: any;\n@Component({\n selector: 'app-precificacao-navbar',\n templateUrl: 'precificacao-navbar.component.html',\n styleUrls: ['./precificacao-navbar.component.css']\n})\n\nexport class PrecificacaoNavbarComponent implements OnInit {\n private listTitles: any[];\n location: Location;\n private nativeElement: Node;\n private toggleButton: any;\n private sidebarVisible: boolean;\n\n @ViewChild('app-precificacao-navbar',{static:false}) button: any;\n\n constructor(location: Location, private renderer: Renderer2, private element: ElementRef) {\n this.location = location;\n this.nativeElement = element.nativeElement;\n this.sidebarVisible = false;\n }\n\n ngOnInit() {\n this.listTitles = ROUTES.filter(listTitle => listTitle);\n\n const navbar: HTMLElement = this.element.nativeElement;\n this.toggleButton = navbar.getElementsByClassName('navbar-toggle')[0];\n if ($('body').hasClass('sidebar-mini')) {\n misc.sidebar_mini_active = true;\n }\n if ($('body').hasClass('hide-sidebar')) {\n misc.hide_sidebar_active = true;\n }\n $('#minimizeSidebar').click(function() {\n if (misc.sidebar_mini_active === true) {\n $('body').removeClass('sidebar-mini');\n misc.sidebar_mini_active = false;\n\n } else {\n setTimeout(function() {\n $('body').addClass('sidebar-mini');\n\n misc.sidebar_mini_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function() {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function() {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n $('#hideSidebar').click(function() {\n if (misc.hide_sidebar_active === true) {\n setTimeout(function() {\n $('body').removeClass('hide-sidebar');\n misc.hide_sidebar_active = false;\n }, 300);\n setTimeout(function () {\n $('.sidebar').removeClass('animation');\n }, 600);\n $('.sidebar').addClass('animation');\n\n } else {\n setTimeout(function() {\n $('body').addClass('hide-sidebar');\n // $('.sidebar').addClass('animation');\n misc.hide_sidebar_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function() {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function() {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n }\n isMobileMenu() {\n if ($(window).width() < 991) {\n return false;\n }\n return true;\n };\n sidebarOpen() {\n const toggleButton = this.toggleButton;\n const body = document.getElementsByTagName('body')[0];\n setTimeout(function(){\n toggleButton.classList.add('toggled');\n }, 500);\n body.classList.add('nav-open');\n\n this.sidebarVisible = true;\n };\n sidebarClose() {\n const body = document.getElementsByTagName('body')[0];\n this.toggleButton.classList.remove('toggled');\n this.sidebarVisible = false;\n body.classList.remove('nav-open');\n };\n sidebarToggle() {\n // const toggleButton = this.toggleButton;\n // const body = document.getElementsByTagName('body')[0];\n if (this.sidebarVisible === false) {\n this.sidebarOpen();\n } else {\n this.sidebarClose();\n }\n };\n\n getTitle() {\n let titlee: any = this.location.prepareExternalUrl(this.location.path());\n for (let i = 0; i < this.listTitles.length; i++) {\n if (this.listTitles[i].type === \"link\" && this.listTitles[i].path === titlee) {\n return this.listTitles[i].title;\n } else if (this.listTitles[i].type === \"sub\") {\n for (let j = 0; j < this.listTitles[i].children.length; j++) {\n let subtitle = this.listTitles[i].path + '/' + this.listTitles[i].children[j].path;\n if (subtitle === titlee) {\n return this.listTitles[i].children[j].title;\n }\n }\n }\n }\n return '';\n }\n getPath() {\n return this.location.prepareExternalUrl(this.location.path());\n }\n}\n","import {Component, OnInit, Input, EventEmitter, Output} from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\n\n@Component({\n selector: 'app-viewer-precification',\n templateUrl: './viewer.component.html',\n styleUrls: ['../precificacao-visualizador.component.css'],\n})\nexport class ViewerPrecificacaoComponent implements OnInit {\n\n ngOnInit() {\n\n }\n\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'material',\n pure: false\n})\nexport class MaterialPipe implements PipeTransform {\n\n transform(value: any, expression:string): any {\n return value.filter(data=> data.material.toLowerCase().indexOf(expression.toLowerCase()) != -1) \n }\n}\n","import {Component, OnInit, ElementRef, ViewChild} from '@angular/core';\n\ndeclare const $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-gestao-visualizador',\n templateUrl: './gestao-visualizador.component.html',\n styleUrls: ['./gestao-visualizador.component.css'],\n})\n\nexport class GestaoVisualizadorComponent implements OnInit {\n\n\ttitle: any;\n\n ngOnInit(){\n \n }\n\n getTitle(event) {\n \tthis.title=event\n }\n}\n","import { Component, ViewChild, AfterViewInit } from '@angular/core';\n\n@Component({\n selector: 'app-gestao-resumo',\n templateUrl: './resumo.component.html',\n styleUrls: ['../../gestao-visualizador.component.css']\n})\n\nexport class GestaoResumoComponent {\n\n ngOnInit() {\n \n }\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicio1',\n templateUrl: './exercicio1.component.html',\n styleUrls: ['../../gestao-visualizador.component.css','./exercicio1.component.css']\n})\n\nexport class Exercicio1Component {\n\n}\n","export class BalanceSheet {\n public id: string;\n public type: string;\n public description: string;\n public amount: number;\n public date: string;\n\n populate(data: any): BalanceSheet {\n this.id = data.id;\n this.type = data.type;\n this.description = data.description;\n this.amount = data.amount;\n this.date = data.date;\n return this;\n }\n\n}","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Global } from 'asap-crud';\nimport { BalanceSheet } from '../models/balance-sheet';\n\n@Injectable()\nexport class BalanceSheetService {\n\n private exerciseId: number = 2;\n\n constructor(public http: HttpClient, public global: Global) {\n }\n\n collection(): Promise<Array<BalanceSheet>> {\n const arrayModel: Array<BalanceSheet> = [];\n\n return new Promise<Array<BalanceSheet>>((resolve, reject) => {\n this.findAll().subscribe((res:any) => {\n if(res.data[0] && res.data[0].value) {\n for (const bs of res.data[0].value) {\n arrayModel.push(new BalanceSheet().populate(bs));\n }\n }\n resolve(arrayModel);\n }, err => {\n reject(err);\n })\n })\n }\n\n superCollection(): Promise<Array<BalanceSheet>[]> {\n const arrayModel: Array<BalanceSheet>[] = [];\n\n return new Promise<Array<BalanceSheet>[]>((resolve, reject) => {\n this.fetchAll().subscribe((res:any) => {\n for (const data of res.data) {\n let array = [];\n for (const bs of data.value) {\n array.push(new BalanceSheet().populate(bs));\n }\n arrayModel.push(array);\n }\n resolve(arrayModel);\n }, err => {\n reject(err);\n })\n })\n }\n\n findAll(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/exercises/' + this.exerciseId + '/last', this.getHeaders());\n }\n\n fetchAll(): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/exercises/' + this.exerciseId + '/all', this.getHeaders());\n }\n\n persist(data: any): Observable<any> {\n const post = {\n \"exercises_id\": this.exerciseId,\n \"value\": data\n };\n return this.http.post(this.global.apiURL() + '/api/v2/client/exercises', post, this.getHeaders());\n }\n\n getHeaders(): {headers: HttpHeaders} {\n const token = localStorage.getItem('token');\n const headerOptions = {\n 'Authorization': token,\n 'Accept': 'application/json'\n };\n return {headers: new HttpHeaders(headerOptions)};\n }\n\n}\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { Injectable } from '@angular/core';\nimport { Global } from 'asap-crud';\n\n@Injectable()\nexport class ExercisesService {\n\n constructor(public http: HttpClient, public global: Global) {\n\n }\n\n last(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/exercises/' + id + '/last', this.getHeaders());\n }\n\n all(id: any): Observable<any> {\n return this.http.get(this.global.apiURL() + '/api/v2/client/exercises/' + id + '/all', this.getHeaders());\n }\n\n save(data: any): Observable<any> {\n return this.http.post(this.global.apiURL() + '/api/v2/client/exercises', data, this.getHeaders());\n }\n \n update(id: number, data: any): Observable<any> {\n return this.http.put(this.global.apiURL() + '/api/v2/client/exercises/' + id, data, this.getHeaders());\n }\n \n delete(id: number): Observable<any> {\n return this.http.delete(this.global.apiURL() + '/api/v2/client/exercises/' + id, this.getHeaders());\n }\n\n getHeaders(): {headers: HttpHeaders} {\n const token = localStorage.getItem('token');\n const headerOptions = {\n 'Authorization': token,\n 'Accept': 'application/json'\n };\n return {headers: new HttpHeaders(headerOptions)};\n }\n\n}\n","import { Component, OnInit, Input, LOCALE_ID } from '@angular/core';\nimport { BalanceSheetService } from '../../../../@core/services/balance-sheet.service';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\nimport { BalanceSheet } from '../../../../@core/models/balance-sheet';\nimport { StringHelper } from '../../../../@core/helpers/string.helper';\n\ndeclare var $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-gestao-calculadora-financeira',\n templateUrl: './calculadora-financeira.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', './calculadora-financeira.component.css'],\n providers: [{provide: LOCALE_ID, useValue: \"en-US\"}, BalanceSheetService, ExercisesService]\n})\n\nexport class CalculadoraFinanceiraComponent implements OnInit {\n\n // Máscara para campos do form.\n maskCellphone: any[] = ['(', /[1-9]/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/];\n maskLandline: any[] = ['(', /[1-9]/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/];\n maskCPF: any[] = [/[0-9]/, /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/];\n maskCNPJ: any[] = [/[0-9]/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '/', /[0]/, /[0]/, /[0]/, /[1]/, '-', /\\d/, /\\d/];\n maskZipCode: any[] = ['(', /[1-9]/, /\\d/, ')', ' ', /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/];\n maskDate: any[] = [ /[0-9]/, /\\d/, '/', /[0-9]/, /\\d/, '/', /[0-9]/, /\\d/, /\\d/, /\\d/ ];\n\n @Input() editor: boolean;\n\n public inputArray: Array<BalanceSheet>;\n public outputArray: Array<BalanceSheet>;\n\n public input: BalanceSheet;\n public inputBtnBlock: boolean;\n\n public output: BalanceSheet;\n public outputBtnBlock: boolean;\n\n public transactionSelected: BalanceSheet;\n public updateModalSending: boolean;\n\n public total = {\n input: 0,\n output: 0\n };\n\n public dataArray: any;\n public balanceArray: any;\n\n public cenarioSelected: any;\n\n public exercise: number = 2;\n\n constructor(\n public _balanceSheetService: BalanceSheetService,\n public _exercisesService: ExercisesService\n ) {\n this.input = new BalanceSheet().populate({\n type: 'input',\n });\n this.inputBtnBlock = false;\n\n this.output = new BalanceSheet().populate({\n type: 'output',\n });\n this.outputBtnBlock = false;\n\n this.updateModalSending = false;\n\n this.transactionSelected = new BalanceSheet();\n\n this.cenarioSelected = null;\n }\n\n ngOnInit() {\n this.balanceArray = [];\n this.inputArray = [];\n this.outputArray = [];\n\n this.getData();\n\n this.calcBalance();\n }\n\n getData() {\n this._exercisesService.all(2)\n .subscribe((result) => {\n this.dataArray = result.data;\n });\n }\n\n\n calcBalance() {\n this.inputArray = [];\n this.outputArray = [];\n\n this.total.input = 0;\n this.total.output = 0;\n\n for(let balancesheet of this.balanceArray) {\n if(balancesheet.type === 'input') {\n this.total.input += balancesheet.amount;\n this.inputArray.push(balancesheet);\n }\n if(balancesheet.type === 'output') {\n this.total.output += balancesheet.amount;\n this.outputArray.push(balancesheet);\n }\n }\n }\n\n onInputSubmit(form: any) {\n this.input.id = StringHelper.generate(32);\n\n this.balanceArray.push(this.input);\n\n this.input = new BalanceSheet().populate({\n type: 'input',\n });\n\n form.reset();\n\n this.calcBalance();\n }\n\n onOutputSubmit(form: any) {\n this.output.id = StringHelper.generate(32);\n\n this.balanceArray.push(this.output);\n\n this.output = new BalanceSheet().populate({\n type: 'output',\n });\n\n form.reset();\n\n this.calcBalance();\n }\n\n balanceSheetRemove(balanceSheet: BalanceSheet) {\n\n swal({\n title: 'Você quer apagar essa transação?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n const index = this.balanceArray.indexOf(balanceSheet);\n this.balanceArray.splice(index, 1);\n\n this.calcBalance();\n },\n (cancel) => {}\n );\n }\n\n balanceSheetUpdate(balanceSheet: BalanceSheet) {\n this.transactionSelected = Object.assign({}, balanceSheet);\n $('#updateModal').modal();\n }\n\n transactionUpdate() {\n const item = this.balanceArray.find((item) => {\n return item.id === this.transactionSelected.id\n });\n\n const index = this.balanceArray.indexOf(item);\n\n this.balanceArray[index] = this.transactionSelected;\n\n this.calcBalance();\n\n $('#updateModal').modal('toggle');\n }\n\n selectCenario(index: number) {\n this.cenarioSelected = this.dataArray[index];\n this.balanceArray = this.cenarioSelected.value;\n this.calcBalance();\n }\n\n save() {\n const body = {\n exercises_id: this.exercise,\n value: this.balanceArray,\n }\n if(this.cenarioSelected === null) {\n swal('Sucesso', 'Seu cenário foi salvo com sucesso!', '');\n this._exercisesService.save(body)\n .subscribe((res:any) => {\n this.dataArray.unshift(res.data);\n this.selectCenario(0);\n });\n }else{\n swal('Sucesso', 'Seu cenário foi atualizado com sucesso!', '');\n this._exercisesService.update(this.cenarioSelected.id, body)\n .subscribe((res:any) => {\n console.log(res);\n });\n }\n }\n\n delete(index: any) {\n\n swal({\n title: 'Você quer apagar esse cenário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n swal('Sucesso', 'O cenário foi removido com sucesso!', '');\n\n if(this.cenarioSelected === this.dataArray[index]) {\n this.newCenario();\n }\n\n const id = this.dataArray[index].id;\n \n this.dataArray.splice(index, 1);\n\n this._exercisesService.delete(id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n }\n\n resetBalance() {\n this.getData();\n this.newCenario();\n }\n\n newCenario() {\n this.cenarioSelected = null;\n this.balanceArray = [];\n this.calcBalance();\n }\n\n}\n","import { Component, OnInit } from '@angular/core';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\n\ndeclare var $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-gestao-como-resolver-dividas',\n templateUrl: './como-resolver-dividas.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'como-resolver-dividas.component.css'],\n providers: [ExercisesService]\n})\n\nexport class ComoResolverDividasComponent implements OnInit {\n\n public dataArray: any;\n public cenarioSelected: any;\n\n public debtArray: Array<Debt>;\n public form: Debt;\n public debtSelected: Debt;\n public updateModalSending: boolean;\n public btnBlock: boolean;\n\n public status: string;\n\n public total: number;\n\n public exercise = '3';\n\n constructor(private _exerciseService: ExercisesService) {\n }\n\n ngOnInit() {\n this.updateModalSending = false;\n this.btnBlock = false;\n this.form = new Debt;\n this.debtSelected = new Debt;\n this.status = '';\n this.debtArray = [];\n\n this.getData();\n }\n\n getData() {\n this._exerciseService.all(this.exercise)\n .subscribe((res:any) => {\n this.dataArray = res.data;\n });\n }\n\n update(debt: Debt) {\n this.debtSelected = Object.assign({}, debt);\n $('#updateModal').modal();\n }\n\n calc() {\n this.total = 0;\n this.debtArray.map(item => {\n this.total += +item.amount;\n });\n }\n\n debtUpdate() {\n this.updateModalSending = true;\n\n const item = this.debtArray.find((item) => {\n return item.id == this.debtSelected.id\n });\n\n const index = this.debtArray.indexOf(item);\n\n this.debtArray[index] = this.debtSelected;\n\n this.updateModalSending = false;\n\n this.debtSelected = new Debt;\n\n $('#updateModal').modal('toggle');\n\n this.calc();\n }\n\n onSubmit(form: any) {\n this.form.id = this.debtArray.length + 1;\n\n this.debtArray.push(this.form);\n\n this.form = new Debt;\n\n form.reset();\n\n this.calc();\n }\n\n remove(debt: Debt) {\n swal({\n title: 'Você quer apagar esse débito?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n const index = this.debtArray.indexOf(debt);\n this.debtArray.splice(index, 1);\n\n this.calc();\n },\n (cancel) => {}\n );\n };\n\n selectCenario(index: number) {\n this.cenarioSelected = this.dataArray[index];\n this.debtArray = this.cenarioSelected.value;\n this.calc();\n }\n\n save() {\n const body = {\n exercises_id: this.exercise,\n value: this.debtArray,\n }\n if(!this.cenarioSelected) {\n swal('Sucesso', 'O plano para pagamento de dívidas foi salvo com sucesso', 'success');\n this._exerciseService.save(body)\n .subscribe((res:any) => {\n this.dataArray.unshift(res.data);\n this.selectCenario(0);\n });\n }else{\n swal('Sucesso', 'O plano para pagamento de dívidas foi atualizado com sucesso', 'success');\n this._exerciseService.update(this.cenarioSelected.id, body)\n .subscribe((res:any) => {\n console.log(res);\n });\n }\n }\n\n delete(index: any) {\n\n swal({\n title: 'Você quer apagar esse cenário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n swal('Sucesso', 'O cenário foi removido com sucesso!', '');\n\n if(this.cenarioSelected === this.dataArray[index]) {\n this.newCenario();\n }\n\n const id = this.dataArray[index].id;\n \n this.dataArray.splice(index, 1);\n\n this._exerciseService.delete(id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n }\n\n resetBalance() {\n this.getData();\n this.newCenario();\n }\n\n newCenario() {\n this.cenarioSelected = null;\n this.debtArray = [];\n this.calc();\n }\n\n\n}\n\nclass Debt {\n public id: number;\n public description: string;\n public amount: string;\n public plan: string;\n\n populate(data: any) {\n this.id = data.id;\n this.description = data.description;\n this.amount = data.amount;\n this.plan = data.plan;\n }\n}\n","import { Component, OnInit } from '@angular/core';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\n\ndeclare var swal: any;\n\n@Component({\n selector: 'app-gestao-trabalhar-pra-ganhar',\n templateUrl: './trabalhar-pra-ganhar.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'trabalhar-pra-ganhar.component.css'],\n providers: [ ExercisesService ]\n})\n\nexport class TrabalharPraGanharComponent implements OnInit{\n\n public dataArray: any;\n public cenarioSelected: any;\n\n public values;\n\n public resultA;\n public resultB;\n public resultC;\n public resultD;\n\n public exercise: number = 4;\n\n constructor(public _exercisesService: ExercisesService) {\n this.values = {\n A: 0,\n B: 0,\n C: 0,\n D: 0,\n E: 0\n };\n }\n\n ngOnInit() {\n this.getData();\n this.calc();\n }\n\n getData() {\n this._exercisesService.all(this.exercise)\n .subscribe((res:any) => {\n this.dataArray = res.data;\n });\n }\n\n calc() {\n this.resultA = this.filter(this.values.A * this.values.B);\n this.resultB = this.filter(this.values.C + this.values.D + this.resultA);\n this.resultC = Math.round(this.filter(this.resultB / this.values.E));\n this.resultD = Math.round(this.filter(this.resultC / this.values.A));\n }\n\n filter(value: any): number {\n return isNaN(parseInt(value)) ? 0 : value;\n }\n\n save() {\n const body = {\n exercises_id: this.exercise,\n value: this.values,\n }\n\n if(!this.cenarioSelected) {\n swal('Salvo com sucesso', 'Seu plano foi salvo com sucesso', 'success');\n this._exercisesService.save(body)\n .subscribe((res:any) => {\n this.dataArray.unshift(res.data);\n this.selectCenario(0);\n });\n }else{\n swal('Salvo com sucesso', 'Seu plano foi atualizado com sucesso', 'success');\n this._exercisesService.update(this.cenarioSelected.id, body)\n .subscribe((res:any) => {\n console.log(res);\n });\n }\n }\n\n selectCenario(index: number) {\n this.cenarioSelected = this.dataArray[index];\n this.values = this.cenarioSelected.value;\n this.calc();\n }\n\n delete(index: any) {\n\n swal({\n title: 'Você quer apagar esse cenário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n swal('Sucesso', 'O cenário foi removido com sucesso!', '');\n\n if(this.cenarioSelected === this.dataArray[index]) {\n this.newCenario();\n }\n\n const id = this.dataArray[index].id;\n \n this.dataArray.splice(index, 1);\n\n this._exercisesService.delete(id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n }\n\n newCenario() {\n this.cenarioSelected = null;\n this.values = {\n A: 0,\n B: 0,\n C: 0,\n D: 0,\n E: 0\n }\n this.calc();\n }\n\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\n\ndeclare var $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-gestao-meu-cliente',\n templateUrl: './meu-cliente.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'meu-cliente.component.css'],\n providers: [ ExercisesService ]\n})\n\nexport class MeuClienteComponent implements OnInit {\n\n @Output() public event = new EventEmitter<any>();\n public dataArray: any;\n public cenarioSelected: any;\n\n public cliente: Cliente;\n\n public exercise = '5';\n\n constructor(private _exerciseService: ExercisesService) {\n }\n\n ngOnInit() {\n this.cliente = new Cliente;\n\n this.getData();\n }\n\n getData() {\n this._exerciseService.all(this.exercise)\n .subscribe((res:any) => {\n this.dataArray = res.data;\n });\n }\n\n selectCenario(index: number) {\n this.cenarioSelected = this.dataArray[index];\n this.cliente = this.cenarioSelected.value;\n }\n\n save() {\n const body = {\n exercises_id: this.exercise,\n value: this.cliente,\n }\n if(!this.cenarioSelected) {\n swal.fire('Sucesso', 'O perfil do cliente foi salvo com sucesso', 'success');\n this._exerciseService.save(body)\n .subscribe((res:any) => {\n this.dataArray.unshift(res.data);\n this.selectCenario(0);\n });\n }else{\n swal.fire('Sucesso', 'O perfil do cliente foi atualizado com sucesso', 'success');\n this._exerciseService.update(this.cenarioSelected.id, body)\n .subscribe((res:any) => {\n console.log(res);\n });\n }\n }\n\n delete(index: any) {\n\n swal.fire({\n title: 'Você quer apagar esse cenário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n swal.fire({\n title:'Sucesso', \n text: 'O cenário foi removido com sucesso!', \n type:'success'\n });\n\n if(this.cenarioSelected === this.dataArray[index]) {\n this.newCenario();\n }\n\n const id = this.dataArray[index].id;\n \n this.dataArray.splice(index, 1);\n\n this._exerciseService.delete(id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n }\n\n resetBalance() {\n this.getData();\n this.newCenario();\n }\n\n newCenario() {\n this.cenarioSelected = null;\n this.cliente = new Cliente;\n }\n\n goNext() {\n this.event.emit();\n }\n\n\n}\n\nclass Cliente {\n public id: number;\n public name: string;\n public ocupation: string;\n public education: string;\n public location: string;\n public salary: string;\n public home: string;\n public age: string;\n public gender: string;\n public hobby: string;\n\n populate(data: any) {\n this.id = data.id;\n this.name = data.name;\n this.ocupation = data.ocupation;\n this.education = data.education;\n this.location = data.location;\n this.salary = data.salary;\n this.home = data.home;\n this.age = data.age;\n this.gender = data.gender;\n this.hobby = data.hobby;\n }\n}\n","import { Component, OnInit } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms';\nimport { MAT_MOMENT_DATE_FORMATS, MomentDateAdapter } from '@angular/material-moment-adapter';\nimport { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE } from '@angular/material/core';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\n\ndeclare var $: any;\ndeclare var swal: any;\n\n\nexport const MY_FORMATS = {\n parse: {\n dateInput: 'L',\n },\n display: {\n dateInput: 'L',\n monthYearLabel: 'MMM YYYY',\n dateA11yLabel: 'L',\n monthYearA11yLabel: 'MMMM YYYY',\n },\n};\n\n@Component({\n selector: 'app-gestao-semana',\n templateUrl: './semana.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'semana.component.css'],\n providers: [\n {provide: MAT_DATE_LOCALE, useValue: 'pt-BR'},\n {provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]},\n {provide: MAT_DATE_FORMATS, useValue: MY_FORMATS},\n ExercisesService\n ]\n})\n\nexport class SemanaComponent {\n public dataArray: any;\n public cenarioSelected: any;\n public inputDate: any;\n\n public exercise = '6';\n\n timeArray = [\n { value: 0, label: 'Nenhum Compromisso' },\n { value: 0.5, label: '30 Min.' },\n { value: 1, label: '1 Hora' },\n { value: 2, label: '2 Horas' },\n { value: 3, label: '3 Horas' },\n { value: 4, label: '4 Horas' }\n ];\n\n morning: Agenda;\n afternoon: Agenda;\n night: Agenda;\n\n report: any;\n\n public weekArray: {\n morning: Array<Agenda>,\n afternoon: Array<Agenda>,\n night: Array<Agenda>\n }\n\n constructor(private _exerciseService: ExercisesService) {\n }\n\n ngOnInit() {\n this.morning = new Agenda;\n this.afternoon = new Agenda;\n this.night = new Agenda;\n\n this.weekArray = {\n morning: [],\n afternoon: [],\n night: []\n }\n\n this.report = {\n me: {hour: 0, minutes: 0},\n others: {hour: 0, minutes: 0},\n business: {hour: 0, minutes: 0}\n }\n\n this.getData();\n }\n\n insertInMorning() {\n this.morning.date = new Date(this.inputDate).toLocaleDateString();\n this.weekArray.morning.push(this.morning);\n this.morning = new Agenda;\n this.calc();\n }\n\n insertInAfternoon() {\n this.afternoon.date = new Date(this.inputDate).toLocaleDateString();\n this.weekArray.afternoon.push(this.afternoon);\n this.afternoon = new Agenda;\n this.calc();\n }\n\n insertInNight() {\n this.night.date = new Date(this.inputDate).toLocaleDateString();\n this.weekArray.night.push(this.night);\n this.night = new Agenda;\n this.calc();\n }\n\n calc() {\n this.report = {\n me: {hour: 0, minutes: 0},\n others: {hour: 0, minutes: 0},\n business: {hour: 0, minutes: 0}\n }\n\n let meInt = 0;\n let othersInt = 0;\n let businessInt = 0;\n\n for(let ag of this.weekArray.morning) {\n meInt += ag.health.value;\n othersInt += ag.home.value;\n businessInt += ag.work.value;\n }\n\n for(let ag of this.weekArray.afternoon) {\n meInt += ag.health.value;\n othersInt += ag.home.value;\n businessInt += ag.work.value;\n }\n\n for(let ag of this.weekArray.night) {\n meInt += ag.health.value;\n othersInt += ag.home.value;\n businessInt += ag.work.value;\n }\n\n this.report = {\n me: this.intToTime(meInt),\n others: this.intToTime(othersInt),\n business: this.intToTime(businessInt),\n }\n\n }\n\n getData() {\n this._exerciseService.all(this.exercise)\n .subscribe((res:any) => {\n this.dataArray = res.data;\n });\n }\n\n selectCenario(index: number) {\n this.cenarioSelected = this.dataArray[index];\n this.weekArray = this.cenarioSelected.value;\n this.calc();\n }\n\n save() {\n const body = {\n exercises_id: this.exercise,\n value: this.weekArray\n }\n if(!this.cenarioSelected) {\n swal('Sucesso', 'Os horários foram salvos com sucesso', 'success');\n this._exerciseService.save(body)\n .subscribe((res:any) => {\n this.dataArray.unshift(res.data);\n this.selectCenario(0);\n });\n }else{\n swal('Sucesso', 'Os horários foram atualizados com sucesso', 'success');\n this._exerciseService.update(this.cenarioSelected.id, body)\n .subscribe((res:any) => {\n console.log(res);\n });\n }\n }\n\n delete(index: any) {\n\n swal({\n title: 'Você quer apagar esse cenário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n swal('Sucesso', 'O cenário foi removido com sucesso!', '');\n\n if(this.cenarioSelected === this.dataArray[index]) {\n this.newCenario();\n }\n\n const id = this.dataArray[index].id;\n \n this.dataArray.splice(index, 1);\n\n this._exerciseService.delete(id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n }\n\n newCenario() {\n this.cenarioSelected = null;\n this.weekArray = {\n morning: [],\n afternoon: [],\n night: []\n }\n this.calc();\n }\n\n intToTime(int: number): {hour: number, minutes: number} {\n let obj = {hour: 0, minutes: 0};\n obj.hour = Math.trunc(int);\n obj.minutes = Math.round(Number((int - obj.hour).toFixed(2)) * 60);\n return obj;\n }\n\n}\n\nclass Agenda {\n public date: string;\n public home: AgendaTime;\n public health: AgendaTime;\n public work: AgendaTime;\n public extra: AgendaTime;\n}\n\nclass AgendaTime {\n public value: number;\n public label: string;\n}","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicios-aula10-ex1',\n templateUrl: './aula10-ex1.component.html',\n styleUrls: ['aula10-ex1.component.css']\n})\n\nexport class Aula10Ex1Component {\n\n}\n","import { Component, Input, OnInit } from '@angular/core';\nimport { FormsModule, FormBuilder, FormGroup} from '@angular/forms';\n\n\n@Component({\n selector: 'app-exercicios-aula10-ex3',\n templateUrl: './aula10-ex3.component.html',\n styleUrls: ['aula10-ex3.component.css']\n})\n\nexport class Aula10Ex3Component implements OnInit {\n\n isLinear = false;\n formGroup1: FormGroup;\n formGroup2: FormGroup;\n formGroup3: FormGroup;\n\n constructor(private _formBuilder: FormBuilder) { }\n\n\n ngOnInit() {\n this.formGroup1 = this._formBuilder.group({\n\n //firstCtrl: ['', Validators.required]\n });\n this.formGroup2 = this._formBuilder.group({\n //secondCtrl: ['', Validators.required]\n });\n this.formGroup3 = this._formBuilder.group({\n //secondCtrl: ['', Validators.required]\n });\n }\n\n contentVisible: boolean = false;\n objectDisabled: boolean = false;\n questao1: any;\n\n\n formGroup: any = [\n {\n name:\"formGroup1\",\n label: \"Pergunta 1\",\n editable: \"true\",\n title: 'Selecione a opção que representa um \"Folder\"',\n resposta: \"Opção 2\",\n questao: [\n {\n img:\"https://www.criarcartao.com.br/images/modelos/37.png\",\n opcao:\"Opção 1\"\n },\n {\n img:\"https://img.elo7.com.br/product/zoom/165246A/folder-arte-digital-flyer.jpg\",\n opcao:\"Opção 2\"\n },\n {\n img:\"https://ae01.alicdn.com/kf/HTB1vTPmmPuhSKJjSspaq6xFgFXaW/New-100Pcs-DIY-Blank-price-Hang-tag-Kraft-Gift-Brown-Kraft-Paper-Tags-Label-Luggage-Wedding.jpg_640x640.jpg\",\n opcao:\"Opção 3\"\n }\n ],\n },\n\n {\n name:\"formGroup2\",\n label: \"Pergunta 2\",\n editable: \"true\",\n title: 'Selecione a opção que representa um \"Cartão\"',\n resposta: \"Opção 1\",\n questao: [\n {\n img:\"https://image.freepik.com/vetores-gratis/molde-do-folheto-ondulada-verde_1051-844.jpg\",\n opcao:\"Opção 1\"\n },\n {\n img:\"https://image.freepik.com/vetores-gratis/molde-do-folheto-ondulada-verde_1051-844.jpg\",\n opcao:\"Opção 2\"\n },\n {\n img:\"https://image.freepik.com/vetores-gratis/molde-do-folheto-ondulada-verde_1051-844.jpg\",\n opcao:\"Opção 3\"\n }\n ],\n },\n\n {\n name:\"formGroup3\",\n label: \"Pergunta 3\",\n editable: \"true\",\n title: 'Selecione a opção que representa uma \"Embalagem\"',\n resposta: \"Opção 3\",\n questao: [\n {\n img:\"https://image.freepik.com/vetores-gratis/tag-da-venda-com-textura_23-2147503621.jpg\",\n opcao:\"Opção 1\"\n },\n {\n img:\"https://image.freepik.com/vetores-gratis/tag-da-venda-com-textura_23-2147503621.jpg\",\n opcao:\"Opção 2\"\n },\n {\n img:\"https://image.freepik.com/vetores-gratis/tag-da-venda-com-textura_23-2147503621.jpg\",\n opcao:\"Opção 3\"\n }\n ],\n },\n ];\n\n\n opcaoMarcada: any = [];\n resultado: any = '';\n\n radioChangeHandler(event:any){\n this.opcaoMarcada = event.target.value;\n }\n\n\n\n\n\n\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicios-aula12-ex6',\n templateUrl: './aula12-ex6.component.html',\n styleUrls: ['aula12-ex6.component.css']\n})\n\nexport class Aula12Ex6Component {\n\n}\n","import { Component, OnInit } from '@angular/core';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\nimport { StringHelper } from '../../../../@core/helpers/string.helper';\n\ndeclare var swal: any;\ndeclare var $: any;\n\n@Component({\n selector: 'app-gestao-production-time',\n templateUrl: './production-time.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', './production-time.component.css'],\n providers: [ ExercisesService ]\n})\n\nexport class ProductionTimeComponent implements OnInit {\n public dataArray: any;\n public cenarioSelected: any;\n\n public product: Product;\n public productArray: Array<Product>;\n\n public productSelected: Product;\n\n maskTime: any[] = [/[0-9]/, /\\d/, ':', /\\d/, /\\d/];\n\n report: any;\n\n goal: number;\n\n public exercise = '7';\n\n constructor(private _exerciseService: ExercisesService) {\n }\n\n ngOnInit() {\n this.product = new Product;\n this.productArray = [];\n this.getData();\n this.report = {\n count: 0,\n totalInteger: 0,\n mediaInteger: 0,\n hoursInteger: 0,\n total: {hour: 0, minutes: 0},\n media: {hour: 0, minutes: 0},\n hours: {hour: 0, minutes: 0}\n }\n }\n\n insert(): void {\n this.product.id = StringHelper.generate(12);\n this.productArray.push(this.product);\n this.product = new Product;\n\n this.calc();\n }\n\n remove(index: number) {\n swal({\n title: 'Você quer apagar ' + this.productArray[index].name + '?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n this.productArray.splice(index, 1);\n this.calc();\n },\n (cancel) => {}\n );\n }\n\n calc() {\n\n this.report = {\n count: 0,\n totalInteger: 0,\n mediaInteger: 0,\n hoursInteger: 0,\n total: {hour: 0, minutes: 0},\n media: {hour: 0, minutes: 0},\n hours: {hour: 0, minutes: 0}\n }\n\n this.report.count = this.productArray.length;\n\n for(let prod of this.productArray) {\n let split = prod.time.split(':');\n this.report.totalInteger += +split[0];\n this.report.totalInteger += +split[1]/60;\n\n this.report.mediaInteger = this.report.totalInteger / this.report.count;\n\n this.report.hoursInteger = +this.goal * this.report.mediaInteger;\n }\n\n this.report.total = this.intToTime(this.report.totalInteger);\n this.report.media = this.intToTime(this.report.mediaInteger);\n this.report.hours = this.intToTime(this.report.hoursInteger);\n }\n\n intToTime(int: number): {hour: number, minutes: number} {\n let obj = {hour: 0, minutes: 0};\n obj.hour = Math.trunc(int);\n obj.minutes = Math.round(Number((int - obj.hour).toFixed(2)) * 60);\n return obj;\n }\n\n update(product: Product) {\n this.productSelected = Object.assign({}, product);\n $('#updateModal').modal();\n }\n\n saveUpdate() {\n const item = this.productArray.find((item) => {\n return item.id == this.productSelected.id\n });\n\n const index = this.productArray.indexOf(item);\n\n this.productArray[index] = this.productSelected;\n\n this.calc();\n\n $('#updateModal').modal('toggle');\n }\n\n getData() {\n this._exerciseService.all(this.exercise)\n .subscribe((res:any) => {\n this.dataArray = res.data;\n });\n }\n\n save() {\n const body = {\n exercises_id: this.exercise,\n value: {\n goal: this.goal,\n products: this.productArray\n },\n }\n if(!this.cenarioSelected) {\n swal('Sucesso', 'O perfil do cliente foi salvo com sucesso', 'success');\n this._exerciseService.save(body)\n .subscribe((res:any) => {\n this.dataArray.unshift(res.data);\n this.selectCenario(0);\n });\n }else{\n swal('Sucesso', 'O perfil do cliente foi atualizado com sucesso', 'success');\n this._exerciseService.update(this.cenarioSelected.id, body)\n .subscribe((res:any) => {\n console.log(res);\n });\n }\n }\n\n delete(index: any) {\n\n swal({\n title: 'Você quer apagar esse cenário?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n swal('Sucesso', 'O cenário foi removido com sucesso!', '');\n\n if(this.cenarioSelected === this.dataArray[index]) {\n this.newCenario();\n }\n\n const id = this.dataArray[index].id;\n \n this.dataArray.splice(index, 1);\n\n this._exerciseService.delete(id)\n .subscribe((res:any) => {\n console.log(res);\n });\n },\n (cancel) => {}\n );\n\n }\n\n newCenario() {\n this.cenarioSelected = null;\n this.productArray = [];\n this.goal = null;\n\n this.calc();\n }\n\n selectCenario(index: number) {\n this.cenarioSelected = this.dataArray[index];\n this.productArray = this.cenarioSelected.value.products;\n this.goal = this.cenarioSelected.value.goal;\n\n this.calc();\n }\n\n}\n\nclass Product {\n id: string;\n name: string;\n time: string;\n}","import { Routes } from '@angular/router';\nimport { GestaoVisualizadorComponent } from './gestao-visualizador.component';\nimport { GestaoResumoComponent } from './viewer/resumo/resumo.component';\nimport { Exercicio1Component } from './viewer/exercicio1/exercicio1.component';\nimport { CalculadoraFinanceiraComponent } from './viewer/calculadora-financeira/calculadora-financeira.component';\nimport { ComoResolverDividasComponent } from './viewer/como-resolver-dividas/como-resolver-dividas.component';\nimport { TrabalharPraGanharComponent } from './viewer/trabalhar-pra-ganhar/trabalhar-pra-ganhar.component';\nimport { MeuClienteComponent } from './viewer/meu-cliente/meu-cliente.component';\nimport { SemanaComponent } from './viewer/semana/semana.component';\nimport { Aula10Ex1Component } from './viewer/aula10-ex1/aula10-ex1.component';\nimport { Aula10Ex3Component } from './viewer/aula10-ex3/aula10-ex3.component';\nimport { Aula12Ex6Component } from './viewer/aula12-ex6/aula12-ex6.component';\nimport { ProductionTimeComponent } from './viewer/production-time/production-time.component';\n\n\nexport const ExerciciosRoutes: Routes = [\n {\n path: 'gestao',\n component: GestaoVisualizadorComponent,\n children: [\n // { path: '', redirectTo: 'resumo', component: GestaoResumoComponent },\n { path: 'resumo', component: GestaoResumoComponent },\n { path: 'exercicio1', component: Exercicio1Component },\n { path: 'calculadora-financeira', component: CalculadoraFinanceiraComponent },\n { path: 'como-resolver-dividas', component: ComoResolverDividasComponent },\n { path: 'trabalhar-pra-ganhar', component: TrabalharPraGanharComponent },\n { path: 'meu-cliente', component: MeuClienteComponent },\n { path: 'semana', component: SemanaComponent },\n { path: 'aula10/exercicio1', component: Aula10Ex1Component },\n { path: 'aula10/exercicio3', component: Aula10Ex3Component },\n { path: 'aula12/exercicio6', component: Aula12Ex6Component },\n { path: 'tempo-de-producao', component: ProductionTimeComponent }\n ]\n }\n\n];\n","import { Component, OnInit } from '@angular/core';\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\ndeclare const $: any;\n\n//Metadata\nexport interface RouteInfo {\n path: string;\n title: string;\n type: string;\n icontype: string;\n collapse?: string;\n children?: ChildrenItems[];\n}\n\nexport interface ChildrenItems {\n path: string;\n title: string;\n ab: string;\n type?: string;\n}\n\n//Menu Items\nexport const ROUTES: RouteInfo[] = [\n {\n path: 'resumo',\n title: 'Ínicio',\n type: 'link',\n icontype: 'flaticon-home'\n },\n // desativado a pedido do edu\n /*\n {\n path: 'exercicio1',\n title: 'Ficha de canais de venda',\n type: 'link',\n icontype: 'flaticon-tabs'\n },\n */\n {\n path: 'calculadora-financeira',\n title: 'Calculadora financeira',\n type: 'link',\n icontype: 'flaticon-calculator'\n },{\n path: 'como-resolver-dividas',\n title: 'Como resolver minhas dívidas?',\n type: 'link',\n icontype: 'flaticon-check'\n },{\n path: 'trabalhar-pra-ganhar',\n title: 'Quanto trabalhar para ganhar?',\n type: 'link',\n icontype: 'flaticon-tabs'\n },{\n path: 'meu-cliente',\n title: 'Vamos definir agora quem que é o seu cliente',\n type: 'link',\n icontype: 'flaticon-calculator'\n },{\n path: 'semana',\n title: 'Calculadora da semana',\n type: 'link',\n icontype: 'flaticon-check'\n },{\n path: 'tempo-de-producao',\n title: 'Tempo de Produção',\n type: 'link',\n icontype: 'flaticon-check'\n }\n];\n\n@Component({\n selector: 'app-gestao-sidebar',\n templateUrl: 'gestao-sidebar.component.html',\n styleUrls: ['./gestao-sidebar.component.css']\n})\n\nexport class GestaoSidebarComponent implements OnInit {\n public menuItems: any[];\n\n isMobileMenu() {\n if ($(window).width() > 991) {\n return false;\n }\n return true;\n };\n\n ngOnInit() {\n this.menuItems = ROUTES.filter(menuItem => menuItem);\n }\n updatePS(): void {\n if (window.matchMedia(`(min-width: 960px)`).matches && !this.isMac()) {\n const elemSidebar = <HTMLElement>document.querySelector('.sidebar .sidebar-wrapper');\n }\n }\n isMac(): boolean {\n let bool = false;\n if (navigator.platform.toUpperCase().indexOf('MAC') >= 0 || navigator.platform.toUpperCase().indexOf('IPAD') >= 0) {\n bool = true;\n }\n return bool;\n }\n\n}\n","import { Component, OnInit, ViewChild, ElementRef, Directive, Renderer2 } from '@angular/core';\nimport { ROUTES } from '../gestao-sidebar/gestao-sidebar.component';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { Location, LocationStrategy, PathLocationStrategy } from '@angular/common';\nconst misc: any = {\n navbar_menu_visible: 0,\n active_collapse: true,\n disabled_collapse_init: 0,\n};\n\ndeclare var $: any;\n@Component({\n selector: 'app-gestao-navbar',\n templateUrl: 'gestao-navbar.component.html',\n styleUrls: ['./gestao-navbar.component.css']\n})\n\nexport class GestaoNavbarComponent implements OnInit {\n private listTitles: any[];\n location: Location;\n private nativeElement: Node;\n private toggleButton: any;\n private sidebarVisible: boolean;\n\n @ViewChild('app-gestao-navbar',{static:false}) button: any;\n\n constructor(location: Location, private renderer: Renderer2, private element: ElementRef) {\n this.location = location;\n this.nativeElement = element.nativeElement;\n this.sidebarVisible = false;\n }\n\n ngOnInit() {\n this.listTitles = ROUTES.filter(listTitle => listTitle);\n\n const navbar: HTMLElement = this.element.nativeElement;\n this.toggleButton = navbar.getElementsByClassName('navbar-toggle')[0];\n if ($('body').hasClass('sidebar-mini')) {\n misc.sidebar_mini_active = true;\n }\n if ($('body').hasClass('hide-sidebar')) {\n misc.hide_sidebar_active = true;\n }\n $('#minimizeSidebar').click(function() {\n if (misc.sidebar_mini_active === true) {\n $('body').removeClass('sidebar-mini');\n misc.sidebar_mini_active = false;\n\n } else {\n setTimeout(function() {\n $('body').addClass('sidebar-mini');\n\n misc.sidebar_mini_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function() {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function() {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n $('#hideSidebar').click(function() {\n if (misc.hide_sidebar_active === true) {\n setTimeout(function() {\n $('body').removeClass('hide-sidebar');\n misc.hide_sidebar_active = false;\n }, 300);\n setTimeout(function () {\n $('.sidebar').removeClass('animation');\n }, 600);\n $('.sidebar').addClass('animation');\n\n } else {\n setTimeout(function() {\n $('body').addClass('hide-sidebar');\n // $('.sidebar').addClass('animation');\n misc.hide_sidebar_active = true;\n }, 300);\n }\n\n // we simulate the window Resize so the charts will get updated in realtime.\n const simulateWindowResize = setInterval(function() {\n window.dispatchEvent(new Event('resize'));\n }, 180);\n\n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function() {\n clearInterval(simulateWindowResize);\n }, 1000);\n });\n }\n isMobileMenu() {\n if ($(window).width() < 991) {\n return false;\n }\n return true;\n };\n sidebarOpen() {\n const toggleButton = this.toggleButton;\n const body = document.getElementsByTagName('body')[0];\n setTimeout(function(){\n toggleButton.classList.add('toggled');\n }, 500);\n body.classList.add('nav-open');\n\n this.sidebarVisible = true;\n };\n sidebarClose() {\n const body = document.getElementsByTagName('body')[0];\n this.toggleButton.classList.remove('toggled');\n this.sidebarVisible = false;\n body.classList.remove('nav-open');\n };\n sidebarToggle() {\n // const toggleButton = this.toggleButton;\n // const body = document.getElementsByTagName('body')[0];\n if (this.sidebarVisible === false) {\n this.sidebarOpen();\n } else {\n this.sidebarClose();\n }\n };\n\n getTitle() {\n let titlee: any = this.location.prepareExternalUrl(this.location.path());\n for (let i = 0; i < this.listTitles.length; i++) {\n if (this.listTitles[i].type === \"link\" && this.listTitles[i].path === titlee) {\n return this.listTitles[i].title;\n } else if (this.listTitles[i].type === \"sub\") {\n for (let j = 0; j < this.listTitles[i].children.length; j++) {\n let subtitle = this.listTitles[i].path + '/' + this.listTitles[i].children[j].path;\n if (subtitle === titlee) {\n return this.listTitles[i].children[j].title;\n }\n }\n }\n }\n return '';\n }\n getPath() {\n return this.location.prepareExternalUrl(this.location.path());\n }\n}\n","import {Component, OnInit, Input, EventEmitter, Output} from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'app-viewer-gestao',\n templateUrl: './viewer.component.html',\n styleUrls: ['../gestao-visualizador.component.css']\n})\n\nexport class ViewerGestaoComponent implements OnInit {\n\n urlArray: Array<string>;\n index: number;\n\n constructor(private _router: Router ) {\n this.urlArray = [\n '/visualizador/gestao/resumo',\n\n // '/visualizador/gestao/exercicio1',\n\n '/visualizador/gestao/calculadora-financeira',\n '/visualizador/gestao/como-resolver-dividas',\n '/visualizador/gestao/trabalhar-pra-ganhar',\n '/visualizador/gestao/meu-cliente',\n '/visualizador/gestao/semana',\n '/visualizador/gestao/tempo-de-producao',\n ]\n }\n\n next() {\n this._router.navigate([this.urlArray[this.index + 1]]);\n this.index++;\n }\n\n previous() {\n this._router.navigate([this.urlArray[this.index - 1]]);\n this.index--;\n }\n\n ngOnInit() {\n this.index = this.urlArray.indexOf(this._router.url);\n }\n\n}\n","import { Component } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\n\n@Component({\n selector: 'app-exercicio1-tab1',\n templateUrl: './exercicio1-tab1.component.html',\n styleUrls: ['../../../gestao-visualizador.component.css', '../exercicio1.component.css']\n})\n\nexport class Exercicio1Tab1Component {\n\n groups = [\n {\n \"name\": \"Feiras Locais e Regionais\",\n \"perguntas\": [\n \"Consegue fazer pesquisa das feiras existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do público que visita essas feiras?\",\n \"Consegue oferecer produtos que esse perfil de cliente gostaria de comprar?\",\n \"Tem capacidade para montar stand de vendas decorado e organizado?\",\n \"Dispõe de vendedora cativante e simpática?\",\n \"Tem recurso para pagar taxa de inscrição ou taxa pelo espaço?\",\n \"Possui máquina de cartão?\",\n \"Possui embalagem bonita que promova o produto?\",\n \"Possui material de divulgação básico como cartão de visita, etiqueta contando a história do produto e folder?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n\n },\n\n {\n \"name\": \"Loja Itinerante (bike, carro ou expositor móvel)\",\n \"perguntas\": [\n \"Tem ou sabe como faz para ter o Alvará de Funcionamento?\",\n \"Possui investimento para comprar, adaptar e decorar o veículo?\",\n \"Sabe onde pesquisar referências para a decoração da loja itinerante, bem como apresentação dos produtos dentro dela?\",\n \"Tem uma pessoa que seja motorista/vendedor que, ao mesmo tempo, pilote o veículo, saiba vender e atender bem aos clientes?\",\n \"Possui controles das vendas (caderno ou um sistema no computador) para saber o que vende, quando produzir e quando repor?\",\n \"Tem capacidade de repor os produtos na loja itinerante, com novidades toda semana?\",\n \"Consegue fazer pesquisa das feiras, eventos, locais de grande circulação existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente, saber onde ele está e ir até o mesmo com produtos que ele gostaria de comprar?\",\n \"Possui máquina de cartão?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n {\n \"name\": \"Display\",\n \"perguntas\": [\n \"Possui investimento para montar e decorar o display?\",\n \"Consegue fazer pesquisa dos principais eventos, com grande circulação, que têm a ver com os seus produtos?\",\n \"Consegue ter acesso aos estabelecimentos para negociar a locação do display?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente que frequenta os lugares de exposição?\",\n \"É capaz de se transportar e repor o estoque nos locais de exposição, constantemente?\",\n \"Consegue adaptar os produtos de acordo com as vendas?\",\n \"Possui peças etiquetadas com preços e história do grupo?\",\n \"Possui embalagens?\",\n \"É organizado para controlar as vendas de cada display?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n { \"name\": \"Sua loja dentro de outra loja\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Visitas de Experiência\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda Direta (sacoleiras ou catálogo)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (produtos exclusivos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (aulas)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (festas e eventos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (cenografia)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Vendas pela Internet ou Shopping Online\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Loja Própria\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Lojas\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Navios Turísticos\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] }\n ]\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicio1-tab2',\n templateUrl: './exercicio1-tab2.component.html',\n styleUrls: ['../../../gestao-visualizador.component.css', '../exercicio1.component.css']\n})\n\nexport class Exercicio1Tab2Component {\n groups = [\n {\n \"name\": \"Feiras Locais e Regionais\",\n \"perguntas\": [\n \"Consegue fazer pesquisa das feiras existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do público que visita essas feiras?\",\n \"Consegue oferecer produtos que esse perfil de cliente gostaria de comprar?\",\n \"Tem capacidade para montar stand de vendas decorado e organizado?\",\n \"Dispõe de vendedora cativante e simpática?\",\n \"Tem recurso para pagar taxa de inscrição ou taxa pelo espaço?\",\n \"Possui máquina de cartão?\",\n \"Possui embalagem bonita que promova o produto?\",\n \"Possui material de divulgação básico como cartão de visita, etiqueta contando a história do produto e folder?\"\n ],\n \"resposta\": [\n \"Sim\",\n \"Sim\",\n \"Não\",\n \"Sim\",\n \"Não\",\n \"Não\",\n \"Sim\",\n \"Sim\",\n \"Sim\"\n ]\n },\n\n {\n \"name\": \"Loja Itinerante (bike, carro ou expositor móvel)\",\n \"perguntas\": [\n \"Tem ou sabe como faz para ter o Alvará de Funcionamento?\",\n \"Possui investimento para comprar, adaptar e decorar o veículo?\",\n \"Sabe onde pesquisar referências para a decoração da loja itinerante, bem como apresentação dos produtos dentro dela?\",\n \"Tem uma pessoa que seja motorista/vendedor que, ao mesmo tempo, pilote o veículo, saiba vender e atender bem aos clientes?\",\n \"Possui controles das vendas (caderno ou um sistema no computador) para saber o que vende, quando produzir e quando repor?\",\n \"Tem capacidade de repor os produtos na loja itinerante, com novidades toda semana?\",\n \"Consegue fazer pesquisa das feiras, eventos, locais de grande circulação existentes e calendário?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente, saber onde ele está e ir até o mesmo com produtos que ele gostaria de comprar?\",\n \"Possui máquina de cartão?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n {\n \"name\": \"Display\",\n \"perguntas\": [\n \"Possui investimento para montar e decorar o display?\",\n \"Consegue fazer pesquisa dos principais eventos, com grande circulação, que têm a ver com os seus produtos?\",\n \"Consegue ter acesso aos estabelecimentos para negociar a locação do display?\",\n \"Consegue fazer pesquisa prévia para entender o perfil do cliente que frequenta os lugares de exposição?\",\n \"É capaz de se transportar e repor o estoque nos locais de exposição, constantemente?\",\n \"Consegue adaptar os produtos de acordo com as vendas?\",\n \"Possui peças etiquetadas com preços e história do grupo?\",\n \"Possui embalagens?\",\n \"É organizado para controlar as vendas de cada display?\"\n ],\n \"resposta\": [\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\"\n ]\n },\n\n { \"name\": \"Sua loja dentro de outra loja\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Visitas de Experiência\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda Direta (sacoleiras ou catálogo)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (produtos exclusivos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (aulas)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (festas e eventos)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Prestação de Serviços (cenografia)\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Vendas pela Internet ou Shopping Online\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Loja Própria\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Lojas\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] },\n\n { \"name\": \"Venda para Navios Turísticos\", \"perguntas\": [\"Pergunta 1\", \"Pergunta 2\", \"Pergunta 3\", \"Pergunta 4\", \"Pergunta 5\", \"Pergunta 6\", \"Pergunta 7\", \"Pergunta 8\", \"Pergunta 9\"] }\n ]\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicio1-tab3',\n templateUrl: './exercicio1-tab3.component.html',\n styleUrls: ['../../../gestao-visualizador.component.css', '../exercicio1.component.css']\n})\n\nexport class Exercicio1Tab3Component {\n channels = [\n { \"name\":\"Feiras Locais e Regionais\", \"note\":\"8\"},\n { \"name\":\"Loja Itinerante (bike, carro ou expositor móvel)\", \"note\":\"3\" },\n { \"name\":\"Display\", \"note\":\"9\"},\n { \"name\":\"Sua loja dentro de outra loja\", \"note\":\"5\" },\n { \"name\":\"Visitas de Experiência\", \"note\":\"6\" },\n { \"name\":\"Venda Direta (sacoleiras ou catálogo)\", \"note\":\"10\"},\n { \"name\":\"Prestação de Serviços (produtos exclusivos)\", \"note\":\"5\"},\n { \"name\":\"Prestação de Serviços (aulas)\", \"note\":\"5\" },\n { \"name\":\"Prestação de Serviços (festas e eventos)\", \"note\":\"3\"},\n { \"name\":\"Prestação de Serviços (cenografia)\" , \"note\":\"3\" },\n { \"name\":\"Vendas pela Internet ou Shopping Online\", \"note\":\"10\" },\n { \"name\":\"Loja Própria\", \"note\":\"8\" },\n { \"name\":\"Venda para Lojas\", \"note\":\"4\" },\n { \"name\":\"Venda para Navios Turísticos\", \"note\":\"5\" }\n ]\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicio1-scenario',\n templateUrl: './scenario.component.html',\n styleUrls: ['../../../gestao-visualizador.component.css', '../exercicio1.component.css']\n})\n\nexport class Exercicio1ScenarioComponent {\n\n}\n","import { Component, OnInit, Input, LOCALE_ID } from '@angular/core';\nimport { BalanceSheet } from '../../../../@core/models/balance-sheet';\nimport { BalanceSheetService } from '../../../../@core/services/balance-sheet.service';\nimport { StringHelper } from '../../../../@core/helpers/string.helper';\n\ndeclare var $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-exercicio2',\n templateUrl: './exercicio2.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', './exercicio2.component.css'],\n providers: [{provide: LOCALE_ID, useValue: \"en-US\"}, BalanceSheetService]\n})\n\nexport class Exercicio2Component implements OnInit {\n\n // Máscara para campos do form.\n maskCellphone: any[] = ['(', /[1-9]/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/];\n maskLandline: any[] = ['(', /[1-9]/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/];\n maskCPF: any[] = [/[0-9]/, /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/];\n maskCNPJ: any[] = [/[0-9]/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '/', /[0]/, /[0]/, /[0]/, /[1]/, '-', /\\d/, /\\d/];\n maskZipCode: any[] = ['(', /[1-9]/, /\\d/, ')', ' ', /\\d/, /\\d/, '.', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/];\n maskDate: any[] = [ /[0-9]/, /\\d/, '/', /[0-9]/, /\\d/, '/', /[0-9]/, /\\d/, /\\d/, /\\d/ ];\n\n @Input() editor: boolean;\n\n public inputArray: Array<BalanceSheet>;\n public outputArray: Array<BalanceSheet>;\n\n public input: BalanceSheet;\n public inputBtnBlock: boolean;\n\n public output: BalanceSheet;\n public outputBtnBlock: boolean;\n\n public transactionSelected: BalanceSheet;\n public updateModalSending: boolean;\n\n public total = {\n input: 0,\n output: 0\n };\n\n public balanceArray: Array<BalanceSheet>;\n\n constructor(\n public _balanceSheetService: BalanceSheetService\n ) {\n this.input = new BalanceSheet().populate({\n type: 'input',\n });\n this.inputBtnBlock = false;\n\n this.output = new BalanceSheet().populate({\n type: 'output',\n });\n this.outputBtnBlock = false;\n\n this.updateModalSending = false;\n\n this.transactionSelected = new BalanceSheet();\n }\n\n ngOnInit() {\n this.balanceArray = [];\n this.inputArray = [];\n this.outputArray = [];\n\n this._balanceSheetService.collection()\n .then((result) => {\n this.balanceArray = result;\n this.calcBalance();\n });\n }\n\n calcBalance() {\n this.inputArray = [];\n this.outputArray = [];\n\n this.total.input = 0;\n this.total.output = 0;\n\n for(let balancesheet of this.balanceArray) {\n if(balancesheet.type === 'input') {\n this.total.input += balancesheet.amount;\n this.inputArray.push(balancesheet);\n }\n if(balancesheet.type === 'output') {\n this.total.output += balancesheet.amount;\n this.outputArray.push(balancesheet);\n }\n }\n }\n\n onInputSubmit() {\n this.inputBtnBlock = true;\n\n this.input.id = StringHelper.generate(32);\n\n this.balanceArray.push(this.input);\n\n this.input = new BalanceSheet().populate({\n type: 'input',\n });\n\n this.inputBtnBlock = false;\n\n this.calcBalance();\n }\n\n onOutputSubmit() {\n this.outputBtnBlock = true;\n\n this.output.id = StringHelper.generate(32);\n\n this.balanceArray.push(this.output);\n this.output = new BalanceSheet().populate({\n type: 'output',\n });\n this.outputBtnBlock = false;\n\n this.calcBalance();\n }\n\n balanceSheetRemove(balanceSheet: BalanceSheet) {\n\n swal({\n title: 'Você quer apagar essa transação?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n const index = this.balanceArray.indexOf(balanceSheet);\n this.balanceArray.splice(index, 1);\n\n this.calcBalance();\n },\n (cancel) => {}\n );\n }\n\n balanceSheetUpdate(balanceSheet: BalanceSheet) {\n this.transactionSelected = Object.assign({}, balanceSheet);\n $('#updateModal').modal();\n }\n\n transactionUpdate() {\n this.updateModalSending = true;\n\n const item = this.balanceArray.find((item) => {\n return item.id == this.transactionSelected.id\n });\n\n const index = this.balanceArray.indexOf(item);\n\n this.balanceArray[index] = this.transactionSelected;\n\n this.calcBalance();\n\n this.updateModalSending = false;\n\n $('#updateModal').modal('toggle');\n }\n\n save() {\n this._balanceSheetService.persist(this.balanceArray)\n .subscribe((res) => {\n console.log(res);\n });\n }\n\n}\n","import { Component, OnInit } from '@angular/core';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\n\ndeclare var $: any;\ndeclare var swal: any;\n\n@Component({\n selector: 'app-exercicio2_3',\n templateUrl: './exercicio2_3.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'exercicio2_3.component.css'],\n providers: [ExercisesService]\n})\n\nexport class Exercicio2_3Component implements OnInit {\n\n public debtArray: Array<Debt>;\n public form: Debt;\n public debtSelected: Debt;\n public updateModalSending: boolean;\n public btnBlock: boolean;\n\n public status: string;\n\n public exercise = '2_3';\n\n constructor(private _exerciseService: ExercisesService) {\n }\n\n ngOnInit() {\n this.updateModalSending = false;\n this.btnBlock = false;\n this.form = new Debt;\n this.debtSelected = new Debt;\n this.status = '';\n\n this.getDebit();\n }\n\n getDebit() {\n this._exerciseService.last(this.exercise).subscribe((res:any) => {\n this.debtArray = res.data[0].value;\n });\n }\n\n update(debt: Debt) {\n this.debtSelected = Object.assign({}, debt);\n $('#updateModal').modal();\n }\n\n debtUpdate() {\n this.updateModalSending = true;\n\n const item = this.debtArray.find((item) => {\n return item.id == this.debtSelected.id\n });\n\n const index = this.debtArray.indexOf(item);\n\n this.debtArray[index] = this.debtSelected;\n\n this.updateModalSending = false;\n\n this.debtSelected = new Debt;\n\n $('#updateModal').modal('toggle');\n }\n\n onSubmit() {\n this.btnBlock = true;\n\n this.form.id = this.debtArray.length + 1;\n\n this.debtArray.push(this.form);\n\n this.form = new Debt;\n\n this.btnBlock = false;\n }\n\n remove(debt: Debt) {\n swal({\n title: 'Você quer apagar esse débito?',\n text: 'Você não poderá reverter essa ação depois de confirmado',\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Sim',\n cancelButtonText: 'Não'\n }).then(\n (result) => {\n const index = this.debtArray.indexOf(debt);\n this.debtArray.splice(index, 1);\n },\n (cancel) => {}\n );\n };\n\n save() {\n\n swal('Salvo com sucesso', 'Seu plano para pagamento de dívidas foi salvo', 'success');\n\n const data = {\n \"exercises_id\": this.exercise,\n \"value\": this.debtArray\n };\n this._exerciseService.save(data)\n .subscribe((res) => {\n console.log(res);\n });\n }\n\n\n}\n\nclass Debt {\n public id: number;\n public description: string;\n public amount: string;\n public plan: string;\n\n populate(data: any) {\n this.id = data.id;\n this.description = data.description;\n this.amount = data.amount;\n this.plan = data.plan;\n }\n}\n","import { Component, OnInit } from '@angular/core';\nimport { ExercisesService } from '../../../../@core/services/exercises.service';\n\ndeclare var swal: any;\n\n@Component({\n selector: 'app-exercicio3',\n templateUrl: './exercicio3.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'exercicio3.component.css'],\n providers: [ExercisesService]\n})\n\nexport class Exercicio3Component implements OnInit{\n\n public values;\n\n public resultA;\n public resultB;\n public resultC;\n public resultD;\n\n public exercise: string = '3';\n\n constructor(public _exercisesService: ExercisesService) {\n this.values = {\n A: 0,\n B: 0,\n C: 0,\n D: 0,\n E: 0\n };\n }\n\n ngOnInit() {\n this.getLast();\n this.calc();\n }\n\n getLast() {\n this._exercisesService.last(this.exercise).subscribe((res:any) => {\n if(res.data.length > 0 && res.data[0].value) {\n this.values = res.data[0].value;\n this.calc();\n }\n });\n }\n\n calc() {\n this.resultA = this.filter(this.values.A * this.values.B);\n this.resultB = this.filter(this.values.C + this.values.D + this.resultA);\n this.resultC = Math.round(this.filter(this.resultB / this.values.E));\n this.resultD = Math.round(this.filter(this.resultC / this.values.A));\n }\n\n filter(value: any): number {\n return isNaN(parseInt(value)) ? 0 : value;\n }\n\n save() {\n const data = {\n exercises_id: this.exercise, \n value: this.values\n };\n\n swal('Salvo com sucesso', 'Seu plano foi salvo com sucesso', 'success');\n\n this._exercisesService.save(data).subscribe((res:any) => {\n console.log(res);\n });\n }\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicio4',\n templateUrl: './exercicio4.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'exercicio4.component.css']\n})\n\nexport class Exercicio4Component{\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-exercicio5',\n templateUrl: './exercicio5.component.html',\n styleUrls: ['../../gestao-visualizador.component.css', 'exercicio5.component.css']\n})\n\nexport class Exercicio5Component{\n domesticas = [\n {value: '30 Min.', viewValue: '30 Min.'},\n {value: '1 Hora', viewValue: '1 Hora'},\n {value: '2 Horas', viewValue: '2 Horas'},\n {value: '3 Horas', viewValue: '3 Horas'}\n ];\n\n consulta = [\n {value: '30 Min.', viewValue: '30 Min.'},\n {value: '1 Hora', viewValue: '1 Hora'},\n {value: '2 Horas', viewValue: '2 Horas'},\n {value: '3 Horas', viewValue: '3 Horas'}\n ];\n\n trabalho = [\n {value: '30 Min.', viewValue: '30 Min.'},\n {value: '1 Hora', viewValue: '1 Hora'},\n {value: '2 Horas', viewValue: '2 Horas'},\n {value: '3 Horas', viewValue: '3 Horas'}\n ];\n\n extras = [\n {value: '30 Min.', viewValue: '30 Min.'},\n {value: '1 Hora', viewValue: '1 Hora'},\n {value: '2 Horas', viewValue: '2 Horas'},\n {value: '3 Horas', viewValue: '3 Horas'}\n ];\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { RouterModule } from '@angular/router';\nimport { registerLocaleData } from '@angular/common';\nimport { ExerciciosRoutes } from './gestao-visualizador.routing';\nimport { GestaoSidebarComponent } from './gestao-sidebar/gestao-sidebar.component';\nimport { GestaoNavbarComponent } from './gestao-navbar/gestao-navbar.component';\nimport { GestaoVisualizadorComponent } from './gestao-visualizador.component';\n\nimport localePt from '@angular/common/locales/pt';\nimport { ViewerGestaoComponent } from './viewer/viewer.component';\nimport { GestaoResumoComponent } from './viewer/resumo/resumo.component';\nimport { Aula10Ex1Component } from './viewer/aula10-ex1/aula10-ex1.component';\nimport { Aula10Ex3Component } from './viewer/aula10-ex3/aula10-ex3.component';\nimport { Aula12Ex6Component } from './viewer/aula12-ex6/aula12-ex6.component';\nimport { Exercicio1Component } from './viewer/exercicio1/exercicio1.component';\nimport { CalculadoraFinanceiraComponent } from './viewer/calculadora-financeira/calculadora-financeira.component';\nimport { ComoResolverDividasComponent } from './viewer/como-resolver-dividas/como-resolver-dividas.component';\nimport { TrabalharPraGanharComponent } from './viewer/trabalhar-pra-ganhar/trabalhar-pra-ganhar.component';\nimport { MeuClienteComponent } from './viewer/meu-cliente/meu-cliente.component';\nimport { SemanaComponent } from './viewer/semana/semana.component';\nimport { Exercicio1Tab1Component } from './viewer/exercicio1/tab1/exercicio1-tab1.component';\nimport { Exercicio1Tab2Component } from './viewer/exercicio1/tab2/exercicio1-tab2.component';\nimport { Exercicio1Tab3Component } from './viewer/exercicio1/tab3/exercicio1-tab3.component';\nimport { Exercicio1ScenarioComponent } from './viewer/exercicio1/scenario/scenario.component';\nimport { ProductionTimeComponent } from './viewer/production-time/production-time.component';\nimport { Exercicio2Component } from './viewer/exercicio2/exercicio2.component';\nimport { Exercicio2_3Component } from './viewer/exercicio2_3/exercicio2_3.component';\nimport { Exercicio3Component } from './viewer/exercicio3/exercicio3.component';\nimport { Exercicio4Component } from './viewer/exercicio4/exercicio4.component';\nimport { Exercicio5Component } from './viewer/exercicio5/exercicio5.component';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatOptionModule } from '@angular/material/core';\nimport { MatSelectModule } from '@angular/material/select';\nregisterLocaleData(localePt);\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(ExerciciosRoutes),\n ReactiveFormsModule,\n FormsModule,\n MatStepperModule,\n MatFormFieldModule,\n MatTooltipModule,\n MatDatepickerModule,\n MatOptionModule,\n MatSelectModule\n ],\n declarations: [\n GestaoVisualizadorComponent,\n GestaoSidebarComponent,\n GestaoNavbarComponent,\n ViewerGestaoComponent,\n GestaoResumoComponent,\n Aula10Ex1Component,\n Aula10Ex3Component,\n Aula12Ex6Component,\n Exercicio1Component,\n CalculadoraFinanceiraComponent,\n ComoResolverDividasComponent,\n TrabalharPraGanharComponent,\n MeuClienteComponent,\n SemanaComponent,\n Exercicio1Tab1Component,\n Exercicio1Tab2Component,\n Exercicio1Tab3Component,\n Exercicio1ScenarioComponent,\n ProductionTimeComponent,\n Exercicio2Component,\n Exercicio2_3Component,\n Exercicio3Component,\n Exercicio4Component,\n Exercicio5Component\n ],\n exports: [\n GestaoVisualizadorComponent,\n GestaoSidebarComponent,\n GestaoNavbarComponent,\n ViewerGestaoComponent,\n GestaoResumoComponent,\n Aula10Ex1Component,\n Aula10Ex3Component,\n Aula12Ex6Component,\n Exercicio1Component,\n CalculadoraFinanceiraComponent,\n ComoResolverDividasComponent,\n TrabalharPraGanharComponent,\n MeuClienteComponent,\n SemanaComponent,\n Exercicio1Tab1Component,\n Exercicio1Tab2Component,\n Exercicio1Tab3Component,\n Exercicio1ScenarioComponent,\n ProductionTimeComponent,\n Exercicio2Component,\n Exercicio2_3Component,\n Exercicio3Component,\n Exercicio4Component,\n Exercicio5Component\n ],\n})\nexport class ExerciciosModule {\n\n}\n","import { Component, Inject, Input, Output, EventEmitter, OnInit } from '@angular/core';\n\n// Start Rating Component\n@Component({\n selector: 'app-studio-modal-rating-star',\n templateUrl: './star-component.html',\n styleUrls: ['../studio-modal-rating.component.css']\n})\nexport class StudioStarRatingComponent implements OnInit {\n @Input() score;\n @Input() maxScore = 5;\n @Input() forDisplay = false;\n @Output() rateChanged = new EventEmitter();\n\n textNivel;\n range = [];\n marked = -1;\n\n constructor() { }\n\n ngOnInit() {\n for (let i = 0; i < this.maxScore; i++) {\n this.range.push(i);\n }\n }\n\n public mark = (index: number) => {\n this.marked = this.marked === index ? index - 1 : index;\n this.score = this.marked + 1;\n this.textNivel = '';\n\n this.rateChanged.next(this.score);\n\n const feedback = {\n 1: 'Detestei',\n 2: 'Não gostei',\n 3: 'Razoável',\n 4: 'Gostei',\n 5: 'Incrível'\n };\n\n if (feedback[this.score]) {\n this.textNivel = feedback[this.score];\n }\n\n }\n\n public isMarked = (index: number) => {\n if (!this.forDisplay) {\n if (index <= this.marked) {\n return 'selected-start';\n } else {\n return 'no-selected-start';\n }\n } else {\n if (this.score >= index + 1) {\n return 'selected-start';\n } else if (this.score > index && this.score < index + 1) {\n return 'no-selected-start';\n } else {\n return 'no-selected-start';\n }\n }\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { AsapViewerComponent } from './asap-viewer.component';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { AssessmentVisualizadorModule } from './visualizador/assessment-visualizador/assessment-visualizador.module';\nimport { BannerModule } from './banner/banner.module';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { PipesModule } from './@core/pipes/pipe.module';\nimport { SpinnerModule } from './shared/spinner/spinner.module';\nimport { EditorComponentsModule } from './editor/components/editor.components.module';\nimport { CursoVisualizadorComponent } from './visualizador/curso-visualizador/curso-visualizador.component';\nimport { CursoNavbarComponent } from './visualizador/curso-visualizador/curso-navbar/curso-navbar.component';\nimport { CursoSidebarComponent } from './visualizador/curso-visualizador/curso-sidebar/curso-sidebar.component';\nimport { ViewerComponent } from './visualizador/curso-visualizador/viewer/viewer.component';\nimport { MiniCursoVisualizadorComponent } from './visualizador/mini-curso-visualizador/mini-curso-visualizador.component';\nimport { MiniCursoSidebarComponent } from './visualizador/mini-curso-visualizador/curso-sidebar/mini-curso-sidebar.component';\nimport { MiniCursoSideMenuComponent } from './visualizador/mini-curso-visualizador/mini-sidemenu/mini-sidemenu.component';\nimport { MiniCursoNavbarComponent } from './visualizador/mini-curso-visualizador/curso-navbar/mini-curso-navbar.component';\nimport { MiniViewerComponent } from './visualizador/mini-curso-visualizador/viewer/mini-viewer.component';\nimport { MiniModalTrilhaBanner } from './visualizador/mini-curso-visualizador/banner-modal/mini-banner-modal-component';\nimport { MiniSliderComponent } from './visualizador/mini-curso-visualizador/slider/slider.component';\nimport { ModalStarRatingComponent } from './visualizador/modal-rating/modal-rating.component';\nimport { StarRatingComponent } from './visualizador/modal-rating/star-rating/star-component';\nimport { modalTrilhaBanner } from './visualizador/curso-visualizador/banner-modal/banner-modal-component';\nimport { CommentsComponent } from './visualizador/mini-curso-visualizador/comment/comment.component';\nimport { VisualizarForumComponent } from './visualizador/mini-curso-visualizador/forum/question.component';\nimport { PointsComponent } from './shared/points/points.component';\nimport { AsapViewerRoutes } from './asap-viewer.routing';\nimport { ExercisesComponent } from './visualizador/exercicios/exercicios.component';\nimport { PrecificacaoVisualizadorComponent } from './visualizador/precificacao-visualizador/precificacao-visualizador.component';\nimport { PrecificacaoSidebarComponent } from './visualizador/precificacao-visualizador/precificacao-sidebar/precificacao-sidebar.component';\nimport { PrecificacaoNavbarComponent } from './visualizador/precificacao-visualizador/precificacao-navbar/precificacao-navbar.component';\nimport { ViewerPrecificacaoComponent } from './visualizador/precificacao-visualizador/viewer/viewer.component';\nimport { ProdutosComponent } from './visualizador/precificacao-visualizador/viewer/produtos/produtos.component';\nimport { NovoProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/novo/novo-produto.component';\nimport { VisualizarProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/visualizar-produto.component';\nimport { VisualizarResumoProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/resumo/visualizar-resumo-produto.component';\nimport { VisualizarMateriaisProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/materiais/visualizar-materiais-produto.component';\nimport { VisualizarMaoObraProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/mao-obra/visualizar-mao-obra-produto.component';\nimport { ModalMaoObraProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/mao-obra/modal/modal.mao-de-obra.component';\nimport { VisualizarFornecedorProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/fornecedor/visualizar-fornecedor-produto.component';\nimport { VisualizarCalcularProdutoComponent } from './visualizador/precificacao-visualizador/viewer/produtos/visualizar/calcular/visualizar-calcular-produto.component';\nimport { ViabilidadeComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/viabilidade.component';\nimport { CustosFixosComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/custos-fixos/custos-fixos.component';\nimport { ModalCustosComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/custos-fixos/modal/modal.custos-fixos.component';\nimport { PedidosComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/pedidos.component';\nimport { ModalResumoComponent } from './visualizador/precificacao-visualizador/viewer/modal-resumo/modal-resumo.component';\nimport { MeusPedidosComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/meus-pedidos/meus-pedidos.component';\nimport { ModalEdit } from './visualizador/precificacao-visualizador/viewer/pedidos/calculo/modal/modal.calculo-pedido.component';\nimport { DadosPedidoComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/dados-pedido/dados-pedido.component';\nimport { CalculoPedidoComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/calculo/calculo-pedido.component';\nimport { CustosComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/custos/custos.component';\nimport { ComprasComponent } from './visualizador/precificacao-visualizador/viewer/pedidos/compras/compras.component';\nimport { CustosVariaveisComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/custos-variaveis/custos-variaveis.component';\nimport { ModalFaturamentoEstimadoComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/faturamento-estimado/modal/modal.faturamento-estimado.component';\nimport { FaturamentoEstimadoComponent } from './visualizador/precificacao-visualizador/viewer/viabilidade/faturamento-estimado/faturamento-estimado.component';\nimport { MaterialPipe } from './visualizador/precificacao-visualizador/pipes/material.pipe';\nimport { ExerciciosModule } from './visualizador/gestao-visualizador/gestao-visualizador.module';\nimport { AsapLimitToModule } from 'asap-limit-to';\nimport { MaterialModule } from './material.module';\nimport { AsapImagePipeModule } from 'asap-image-pipe';\nimport { AsapSkeletonModule } from 'asap-skeleton';\nimport { AsapGlobalCommentsModule } from 'asap-global-comments';\nimport { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';\nimport { StudioVisualizadorComponent } from './visualizador/studio-visualizador/studio-visualizador.component';\nimport { StudioModalStarRatingComponent } from './visualizador/studio-visualizador/studio-modal-rating/studio-modal-rating.component';\nimport { StudioStarRatingComponent } from './visualizador/studio-visualizador/studio-modal-rating/star-rating/star-component';\nimport { MomentModule } from 'ngx-moment';\n\nconst declareAndExport = [\n AsapViewerComponent,\n CursoVisualizadorComponent,\n CursoNavbarComponent,\n CursoSidebarComponent,\n modalTrilhaBanner,\n ModalStarRatingComponent,\n ViewerComponent,\n MiniCursoVisualizadorComponent,\n MiniCursoSidebarComponent,\n MiniCursoSideMenuComponent,\n MiniCursoNavbarComponent,\n MiniViewerComponent,\n MiniModalTrilhaBanner,\n MiniSliderComponent,\n StarRatingComponent,\n PrecificacaoVisualizadorComponent,\n PrecificacaoSidebarComponent,\n PrecificacaoNavbarComponent,\n ViewerPrecificacaoComponent,\n ProdutosComponent,\n NovoProdutoComponent,\n VisualizarProdutoComponent,\n VisualizarResumoProdutoComponent,\n VisualizarMateriaisProdutoComponent,\n VisualizarMaoObraProdutoComponent,\n ModalMaoObraProdutoComponent,\n VisualizarFornecedorProdutoComponent,\n VisualizarCalcularProdutoComponent,\n ViabilidadeComponent,\n CustosFixosComponent,\n ModalCustosComponent,\n PedidosComponent,\n ModalResumoComponent,\n MeusPedidosComponent,\n ModalEdit,\n DadosPedidoComponent,\n CalculoPedidoComponent,\n CustosComponent,\n ComprasComponent,\n CustosVariaveisComponent,\n ModalFaturamentoEstimadoComponent,\n FaturamentoEstimadoComponent,\n MaterialPipe,\n CommentsComponent,\n VisualizarForumComponent,\n PointsComponent,\n ExercisesComponent,\n ModalStarRatingComponent,\n StudioVisualizadorComponent,\n StudioStarRatingComponent,\n StudioModalStarRatingComponent,\n];\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(AsapViewerRoutes),\n FormsModule,\n ReactiveFormsModule,\n MaterialModule,\n ExerciciosModule,\n AssessmentVisualizadorModule,\n EditorComponentsModule,\n BannerModule,\n MomentModule,\n TranslateModule,\n PipesModule,\n SpinnerModule,\n AsapLimitToModule,\n AsapImagePipeModule,\n AsapSkeletonModule,\n AsapGlobalCommentsModule,\n NgxSkeletonLoaderModule\n ],\n declarations: [\n ...declareAndExport\n ],\n exports: [\n ...declareAndExport\n ],\n entryComponents: [\n NovoProdutoComponent,\n ModalMaoObraProdutoComponent,\n ModalFaturamentoEstimadoComponent,\n ModalResumoComponent,\n ModalEdit,\n ModalCustosComponent,\n modalTrilhaBanner,\n MiniModalTrilhaBanner,\n ModalStarRatingComponent,\n StudioModalStarRatingComponent\n ]\n})\nexport class AsapViewerModule { }\n"]}
|