asap-viewer 2.18.1 → 2.18.2

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.
@@ -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/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","elemSidebar","querySelector","PerfectScrollbar","wheelSpeed","suppressScrollX","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","NgxNouisliderModule","declarations","exports","BannerComponent","sanitizer","link","DomSanitizer","BannerModule","SafeUrlPipe","bypassSecurityTrustHtml","bypassSecurityTrustStyle","bypassSecurityTrustScript","bypassSecurityTrustUrl","bypassSecurityTrustResourceUrl","Pipe","StreamPipe","domSanitizer","lu","video","arg","getVideoUri","getVideoThumb","getVideoId","getVideoPoster","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","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","journey_id","routeId","ngOnChanges","changes","trail_id","getStageData","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","fire","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","user_id","answered","ResetPost","reset","collapse","onRemove","showCancelButton","confirmButtonText","cancelButtonText","cancel","onClose","disable","onEdit","setValue","updateForm","number","pontos","getHidden","hidden","EditorForumConfigComponent","_forumClientService","forumArray","EditorAvaliationComponent","isPosting","generateForm","getAnswer","control","arr","lineLength","array","col","patchValue","disableUpdate","Swal","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","confirm","EditorResearchComponent","checkboxClicked","fromCharCode","answer","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","EditorComponentsModule","AsapUploadModule","AsapImagePipeModule","AsapSkeletonModule","NgxSkeletonLoaderModule","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","jornada_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","client_id","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","html","getEtapas","setMaterialURL","from","to","fromIndex","toIndex","trail","etapaArray","getComplements","complementArray","onEtapaChange","name_etapa","ModalStarRatingComponent","showContinueButtom","onRateChange","jump","comment","owner","end","goToCertificate","ViewerComponent","eventRefreshSideBar","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","defineProperty","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","goal","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":";;;;;;;;;;;;;;;AAgBA,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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C,MAAMvwC,KAAKV,wBAnBrBiB,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,+BACVC,SAAA,q9CAIC+N,EAAAA,wBACAA,EAAAA,0BACAA,EAAAA,2BACAC,EAAAA,UAqDH6hD,EA9DA,OCoEMM,GAAmB,CACvBxwD,GACA8gC,GACAiE,GACAe,GACA3H,GACA+I,GACAQ,GACA0B,GACAgD,GACAqB,GACAM,GACAU,GACAmB,GACAC,GACAC,GACAyF,GACAgQ,GACAE,GACAK,GACArQ,GACAQ,GACAiB,GACAG,GACAU,GACAkC,GACAR,GACAc,GACAW,GACAmF,GACAS,GACAN,GACAlE,GACAI,GACAU,GACAyB,GACAjB,GACAqB,GACAO,GACAS,GACAgB,GACAmB,GACAM,GACAqD,GACAvV,GACAK,GACAoE,GACAK,GACApO,GACAqc,GACA2M,GACA7M,IAGFoN,GAAA,WAAA,SAAAA,KAyCgC,2BAzC/Bx7C,EAAAA,SAAQ9U,KAAA,CAAC,CACR+U,QAAS,CACPC,EAAAA,aACAC,EAAAA,aAAaC,SAAS+vC,IACtB9vC,EAAAA,YACAC,EAAAA,oBACAC,EAAAA,oBACA6hB,GACA24B,GACAh7C,GACAyoB,GACA1nB,GACA+H,EAAAA,aACAb,EAAAA,gBACA5D,GACAM,GACA+2C,GAAAA,kBACA/yB,EAAAA,oBACAC,EAAAA,mBACA+yB,GAAAA,yBACA9yB,EAAAA,yBAEFpoB,aAAY5V,GACP2wD,IAEL96C,QAAO7V,GACF2wD,IAELI,gBAAiB,CACf3a,GACAwD,GACA2I,GACA1F,GACAmC,GACA2B,GACAriB,GACAyR,GACA1I,GACAmc,QAG4BoN,EAzChC","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 (_) 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 Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\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","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 PerfectScrollbar from 'perfect-scrollbar';\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 const ps = new PerfectScrollbar(elemSidebar, {wheelSpeed: 2, suppressScrollX: true});\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';\nimport { NgxNouisliderModule } from 'ngx-nouislider';\n\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(AssessmentVisualizadorRoute),\n FormsModule,\n ReactiveFormsModule,\n NgxNouisliderModule\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.url + 'videos/thumb/' + this.getVideoId(video)})`);\n console.log('Stream Thumb',url);\n return url \n }\n return video;\n }\n\n getVideoThumb(url: string): SafeResourceUrl {\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 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\"\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","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\"\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 type=\"button\" class=\"btn\" style=\"color:white\" [disabled]=\"disabled\" (click)=\"goNext()\"\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 { MomentModule } from 'angular2-moment';\nimport { NgxNouisliderModule } from 'ngx-nouislider';\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';\n\nconst components = [\n SharedTitleComponent,\n SharedSubTitleComponent,\n SharedButtonComponent,\n SharedMediaComponent,\n SharedTextComponent\n ];\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n NgxNouisliderModule,\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 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\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 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 }, 1000);\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&amp;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 } 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\";\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\n public feedback: any;\n\n badge: any;\n\n loggedUser: 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 ) {\n this.loading = true;\n this.getLoggedUser();\n this.activatedRoute.params.subscribe(param => {\n if (param.journey_id) {\n this.routeId\n }\n else if (param.id) {\n this.routeId = param.id\n }\n });\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.trail_id) {\n this.getStageData();\n }\n }\n\n ngOnInit() {\n console.log(\"[EditorConclusionComponent] item\", this.item);\n console.log(\"[EditorConclusionComponent] trail_id\", this.trail_id);\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 console.log(\"getPerformance\", 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 console.log(\"rightOrWrong\", this.rightOrWrong, res.data);\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 console.log(\"getStageData\", 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 // this._trilhaRatingService.getResource(this.routeId).subscribe(\n // res => {\n // console.log(\"Rating ->\", res);\n // if (res.data.rating) {\n // console.log('Next Event for Rating');\n // this.onNext();\n // } else {\n // console.log('Open Modal Rating');\n // this.rating.emit();\n // }\n // },\n // error => {\n // this.loadingEvaluate = false;\n // console.log(\"checkEvaluate()\", error);\n // }\n // );\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 // this.service.getResources().subscribe((response: any) => {\n // console.log('[EditorConclusionComponent] checkRequireAvaliation', response);\n // if (response.data.require_avaliation == true) {\n // this._trilhaRatingService.getResource(this.routeId).subscribe((response: any) => {\n // if (response.data.rating) {\n // this.onNext();\n // }\n // else {\n // this.rating.emit(response.data.require_avaliation);\n // }\n // })\n // }\n // else {\n // this.rating.emit(response.data.require_avaliation);\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&amp;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\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}\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.css'],\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 } from '@angular/core';\nimport { FormGroup, FormBuilder, FormArray, FormControl } from '@angular/forms';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport Swal from 'sweetalert2';\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 contentId: any;\n\n form: any;\n\n blocked = false;\n isPosting = false;\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 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 this.blocked = true;\n console.log('onSubmit: _trailContentService.update: res', 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.blocked = true;\n console.log('onSubmit: _trailContentService.save: res', res);\n this.goNext();\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 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}\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})\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\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 }\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']\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 { 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 { MomentModule } from 'angular2-moment';\nimport { NgxNouisliderModule } from 'ngx-nouislider';\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';\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 FeedbackComponent,\n AudioComponent,\n EditorRandomQuestionsComponent,\n TextComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n FileManagerModule,\n FormsModule,\n NgxNouisliderModule,\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 ],\n declarations: [\n ...components\n ],\n exports: [\n ...components\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 { 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 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 private getParams(): void {\n this.activatedRoute.params.subscribe(params => {\n this.id = params['id'];\n this.jornada_id = params['jornada_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\n if ((this.global.loggedUser().client_id == 3) && (this.jornada_id)) {\n let index = this.data.indexOf($event);\n this.location.go('/jornada/' + this.jornada_id + \"/\" + $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 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\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) && (this.jornada_id)) {\n this.router.navigate(['/jornada', this.jornada_id, newCourse.id, this.toSeoUrl(newCourse.nome)]);\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 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 this._router.navigate(['/jornada', this.journey, newCourse.id, this.toSeoUrl(newCourse.nome)]);\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 this._router.navigate([`jornada/${this.journey}`]);\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 this.location.go('/jornada/'+this.journey+\"/\"+this.etapa.item_id+\"/\"+this.toSeoUrl(this.etapa.nome)+\"#material-de-apoio\");\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 this.router.navigate(['/jornada', this.journey, id, this.toSeoUrl(this.name_etapa[0].nome)]);\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 console.log('owner ->', this.data);\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 console.log('Modal Rating Avaliate ->', res);\n if (res) {\n this._trilhaRatingService.getResource(this.data.owner.module).subscribe(\n response => {\n console.log('Response Rating', response)\n if (response.data.end) {\n // this.showCertificateLink = false;\n this.showContinueButtom = true;\n this.dialogRef.close('done');\n }\n else {\n this.showContinueButtom = true;\n this.dialogRef.close('done');\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 error => {\n console.log('Error -> save()', error);\n this.loading = false;\n })\n }\n\n\n onClose() {\n this.dialogRef.close('done');\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\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 console.log(this.step)\n this.getContent(this.step);\n console.log('ITEM ->@@@@@', this.module, this.step, this.id);\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&amp;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.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 console.log('Event updateVideoTime ->', event);\n if (event.progress < 10) {\n this.resetVideoUpdater();\n }\n else if ((event.progress >= 10) && (this.updateAt10)) {\n console.log('updateAt10');\n this.doUpdateVideoTime(event);\n this.updateAt10 = false;\n }\n else if ((event.progress >= 25) && (this.updateAt25)) {\n console.log('updateAt25');\n this.doUpdateVideoTime(event);\n this.updateAt25 = false;\n }\n else if ((event.progress >= 50) && (this.updateAt50)) {\n console.log('updateAt50');\n this.doUpdateVideoTime(event);\n this.updateAt50 = false;\n }\n else if ((event.progress >= 75) && (this.updateAt75)) {\n console.log('updateAt75');\n this.doUpdateVideoTime(event);\n this.updateAt75 = false;\n }\n else if (event.progress >= 100) {\n console.log('updateAt100');\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 const dialogRef = this.dialog.open(ModalStarRatingComponent, {\n width: '380px',\n disableClose: true,\n data: { id: this.id, owner: this, event: event }\n });\n\n dialogRef.afterClosed().subscribe(result => {\n console.log('[ViewerComponente] ratingEvent -> ', result)\n this.eventNavbar.emit(result);\n window.scrollTo(0, 0);\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 console.log('next');\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 console.log('MINI-VISUALIZADOR DATA->', this.data);\n console.log('MINI-VISUALIZADOR PATH', path);\n console.log('MINI-VISUALIZADOR MINISTEP', this.miniStep);\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 console.log('MINI-VISUALIZADOR PLAYER', playlistCounter);\n console.log('MINI-VISUALIZADOR INDEX COUNT', this.index);\n\n if (this.index + 1 === playlistCounter) {\n this._DevelopmentService.getResources().subscribe(\n (res: any) => {\n\n console.log('MINI-VISUALIZADOR RES', res);\n\n const actual = res.find(i => {\n return i.id === +this.id;\n });\n console.log('MINI-VISUALIZADOR ACTUAL', actual);\n\n const index = res.indexOf(actual);\n\n console.log('MINI-VISUALIZADOR ACTUAL INDEX', index);\n\n if (index + 1 === res.length) {\n const newIndex = res[0];\n\n console.log('MINI-VISUALIZADOR NEW INDEX', newIndex);\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 console.log('MINI-VISUALIZADOR NEW INDEX 2', newIndex);\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 PerfectScrollbar from 'perfect-scrollbar';\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 const ps = new PerfectScrollbar(elemSidebar, { wheelSpeed: 2, suppressScrollX: true });\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&amp;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: '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';\nimport PerfectScrollbar from 'perfect-scrollbar';\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 let ps = new PerfectScrollbar(elemSidebar, { wheelSpeed: 2, suppressScrollX: true });\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';\nimport PerfectScrollbar from 'perfect-scrollbar';\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 let ps = new PerfectScrollbar(elemSidebar, { wheelSpeed: 2, suppressScrollX: true });\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 { NgxNouisliderModule } from 'ngx-nouislider';\nimport { AssessmentVisualizadorModule } from './visualizador/assessment-visualizador/assessment-visualizador.module';\nimport { BannerModule } from './banner/banner.module';\nimport { MomentModule } from 'angular2-moment';\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';\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 NgxNouisliderModule,\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/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","elemSidebar","querySelector","PerfectScrollbar","wheelSpeed","suppressScrollX","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","NgxNouisliderModule","declarations","exports","BannerComponent","sanitizer","link","DomSanitizer","BannerModule","SafeUrlPipe","bypassSecurityTrustHtml","bypassSecurityTrustStyle","bypassSecurityTrustScript","bypassSecurityTrustUrl","bypassSecurityTrustResourceUrl","Pipe","StreamPipe","domSanitizer","lu","video","arg","getVideoUri","getVideoThumb","getVideoId","getVideoPoster","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","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","journey_id","routeId","ngOnChanges","changes","trail_id","getStageData","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","fire","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","user_id","answered","ResetPost","reset","collapse","onRemove","showCancelButton","confirmButtonText","cancelButtonText","cancel","onClose","disable","onEdit","setValue","updateForm","number","pontos","getHidden","hidden","EditorForumConfigComponent","_forumClientService","forumArray","EditorAvaliationComponent","isPosting","generateForm","getAnswer","control","arr","lineLength","array","col","patchValue","disableUpdate","Swal","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","confirm","EditorResearchComponent","checkboxClicked","fromCharCode","answer","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","EditorComponentsModule","AsapUploadModule","AsapImagePipeModule","AsapSkeletonModule","NgxSkeletonLoaderModule","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","jornada_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","client_id","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","html","getEtapas","setMaterialURL","from","to","fromIndex","toIndex","trail","etapaArray","getComplements","complementArray","onEtapaChange","name_etapa","ModalStarRatingComponent","showContinueButtom","onRateChange","jump","comment","owner","end","goToCertificate","ViewerComponent","eventRefreshSideBar","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","defineProperty","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","goal","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":";;;;;;;;;;;;;;;AAgBA,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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FpoB,aAAY5V,GACP2wD,IAEL96C,QAAO7V,GACF2wD,IAELI,gBAAiB,CACf3a,GACAwD,GACA2I,GACA1F,GACAmC,GACA2B,GACAriB,GACAyR,GACA1I,GACAmc,QAG4BoN,EAzChC","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 (_) 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 Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\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","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 PerfectScrollbar from 'perfect-scrollbar';\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 const ps = new PerfectScrollbar(elemSidebar, {wheelSpeed: 2, suppressScrollX: true});\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';\nimport { NgxNouisliderModule } from 'ngx-nouislider';\n\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(AssessmentVisualizadorRoute),\n FormsModule,\n ReactiveFormsModule,\n NgxNouisliderModule\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.url + 'videos/thumb/' + this.getVideoId(video)})`);\n console.log('Stream Thumb',url);\n return url \n }\n return video;\n }\n\n getVideoThumb(url: string): SafeResourceUrl {\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 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\"\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","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\"\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 type=\"button\" class=\"btn\" style=\"color:white\" [disabled]=\"disabled\" (click)=\"goNext()\"\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 { MomentModule } from 'angular2-moment';\nimport { NgxNouisliderModule } from 'ngx-nouislider';\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';\n\nconst components = [\n SharedTitleComponent,\n SharedSubTitleComponent,\n SharedButtonComponent,\n SharedMediaComponent,\n SharedTextComponent\n ];\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n NgxNouisliderModule,\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 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\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 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 }, 1000);\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&amp;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 } 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\";\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\n public feedback: any;\n\n badge: any;\n\n loggedUser: 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 ) {\n this.loading = true;\n this.getLoggedUser();\n this.activatedRoute.params.subscribe(param => {\n if (param.journey_id) {\n this.routeId\n }\n else if (param.id) {\n this.routeId = param.id\n }\n });\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.trail_id) {\n this.getStageData();\n }\n }\n\n ngOnInit() {\n console.log(\"[EditorConclusionComponent] item\", this.item);\n console.log(\"[EditorConclusionComponent] trail_id\", this.trail_id);\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 console.log(\"getPerformance\", 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 console.log(\"rightOrWrong\", this.rightOrWrong, res.data);\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 console.log(\"getStageData\", 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 // this._trilhaRatingService.getResource(this.routeId).subscribe(\n // res => {\n // console.log(\"Rating ->\", res);\n // if (res.data.rating) {\n // console.log('Next Event for Rating');\n // this.onNext();\n // } else {\n // console.log('Open Modal Rating');\n // this.rating.emit();\n // }\n // },\n // error => {\n // this.loadingEvaluate = false;\n // console.log(\"checkEvaluate()\", error);\n // }\n // );\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 // this.service.getResources().subscribe((response: any) => {\n // console.log('[EditorConclusionComponent] checkRequireAvaliation', response);\n // if (response.data.require_avaliation == true) {\n // this._trilhaRatingService.getResource(this.routeId).subscribe((response: any) => {\n // if (response.data.rating) {\n // this.onNext();\n // }\n // else {\n // this.rating.emit(response.data.require_avaliation);\n // }\n // })\n // }\n // else {\n // this.rating.emit(response.data.require_avaliation);\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&amp;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\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}\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.css'],\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 } from '@angular/core';\nimport { FormGroup, FormBuilder, FormArray, FormControl } from '@angular/forms';\nimport { TrailContentService } from '../../../@core/services/trail-content.service';\nimport Swal from 'sweetalert2';\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 contentId: any;\n\n form: any;\n\n blocked = false;\n isPosting = false;\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 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 this.blocked = true;\n console.log('onSubmit: _trailContentService.update: res', 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.blocked = true;\n console.log('onSubmit: _trailContentService.save: res', res);\n this.goNext();\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}\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})\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\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 }\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']\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 { 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 { MomentModule } from 'angular2-moment';\nimport { NgxNouisliderModule } from 'ngx-nouislider';\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';\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 FeedbackComponent,\n AudioComponent,\n EditorRandomQuestionsComponent,\n TextComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n FileManagerModule,\n FormsModule,\n NgxNouisliderModule,\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 ],\n declarations: [\n ...components\n ],\n exports: [\n ...components\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 { 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 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 private getParams(): void {\n this.activatedRoute.params.subscribe(params => {\n this.id = params['id'];\n this.jornada_id = params['jornada_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\n if ((this.global.loggedUser().client_id == 3) && (this.jornada_id)) {\n let index = this.data.indexOf($event);\n this.location.go('/jornada/' + this.jornada_id + \"/\" + $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 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\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) && (this.jornada_id)) {\n this.router.navigate(['/jornada', this.jornada_id, newCourse.id, this.toSeoUrl(newCourse.nome)]);\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 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 this._router.navigate(['/jornada', this.journey, newCourse.id, this.toSeoUrl(newCourse.nome)]);\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 this._router.navigate([`jornada/${this.journey}`]);\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 this.location.go('/jornada/'+this.journey+\"/\"+this.etapa.item_id+\"/\"+this.toSeoUrl(this.etapa.nome)+\"#material-de-apoio\");\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 this.router.navigate(['/jornada', this.journey, id, this.toSeoUrl(this.name_etapa[0].nome)]);\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 console.log('owner ->', this.data);\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 console.log('Modal Rating Avaliate ->', res);\n if (res) {\n this._trilhaRatingService.getResource(this.data.owner.module).subscribe(\n response => {\n console.log('Response Rating', response)\n if (response.data.end) {\n // this.showCertificateLink = false;\n this.showContinueButtom = true;\n this.dialogRef.close('done');\n }\n else {\n this.showContinueButtom = true;\n this.dialogRef.close('done');\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 error => {\n console.log('Error -> save()', error);\n this.loading = false;\n })\n }\n\n\n onClose() {\n this.dialogRef.close('done');\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\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 console.log(this.step)\n this.getContent(this.step);\n console.log('ITEM ->@@@@@', this.module, this.step, this.id);\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&amp;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.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 console.log('Event updateVideoTime ->', event);\n if (event.progress < 10) {\n this.resetVideoUpdater();\n }\n else if ((event.progress >= 10) && (this.updateAt10)) {\n console.log('updateAt10');\n this.doUpdateVideoTime(event);\n this.updateAt10 = false;\n }\n else if ((event.progress >= 25) && (this.updateAt25)) {\n console.log('updateAt25');\n this.doUpdateVideoTime(event);\n this.updateAt25 = false;\n }\n else if ((event.progress >= 50) && (this.updateAt50)) {\n console.log('updateAt50');\n this.doUpdateVideoTime(event);\n this.updateAt50 = false;\n }\n else if ((event.progress >= 75) && (this.updateAt75)) {\n console.log('updateAt75');\n this.doUpdateVideoTime(event);\n this.updateAt75 = false;\n }\n else if (event.progress >= 100) {\n console.log('updateAt100');\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 const dialogRef = this.dialog.open(ModalStarRatingComponent, {\n width: '380px',\n disableClose: true,\n data: { id: this.id, owner: this, event: event }\n });\n\n dialogRef.afterClosed().subscribe(result => {\n console.log('[ViewerComponente] ratingEvent -> ', result)\n this.eventNavbar.emit(result);\n window.scrollTo(0, 0);\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 console.log('next');\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 console.log('MINI-VISUALIZADOR DATA->', this.data);\n console.log('MINI-VISUALIZADOR PATH', path);\n console.log('MINI-VISUALIZADOR MINISTEP', this.miniStep);\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 console.log('MINI-VISUALIZADOR PLAYER', playlistCounter);\n console.log('MINI-VISUALIZADOR INDEX COUNT', this.index);\n\n if (this.index + 1 === playlistCounter) {\n this._DevelopmentService.getResources().subscribe(\n (res: any) => {\n\n console.log('MINI-VISUALIZADOR RES', res);\n\n const actual = res.find(i => {\n return i.id === +this.id;\n });\n console.log('MINI-VISUALIZADOR ACTUAL', actual);\n\n const index = res.indexOf(actual);\n\n console.log('MINI-VISUALIZADOR ACTUAL INDEX', index);\n\n if (index + 1 === res.length) {\n const newIndex = res[0];\n\n console.log('MINI-VISUALIZADOR NEW INDEX', newIndex);\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 console.log('MINI-VISUALIZADOR NEW INDEX 2', newIndex);\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 PerfectScrollbar from 'perfect-scrollbar';\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 const ps = new PerfectScrollbar(elemSidebar, { wheelSpeed: 2, suppressScrollX: true });\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&amp;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: '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';\nimport PerfectScrollbar from 'perfect-scrollbar';\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 let ps = new PerfectScrollbar(elemSidebar, { wheelSpeed: 2, suppressScrollX: true });\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';\nimport PerfectScrollbar from 'perfect-scrollbar';\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 let ps = new PerfectScrollbar(elemSidebar, { wheelSpeed: 2, suppressScrollX: true });\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 { NgxNouisliderModule } from 'ngx-nouislider';\nimport { AssessmentVisualizadorModule } from './visualizador/assessment-visualizador/assessment-visualizador.module';\nimport { BannerModule } from './banner/banner.module';\nimport { MomentModule } from 'angular2-moment';\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';\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 NgxNouisliderModule,\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"]}