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AO,CAAC,WAAW,CAAC,CAAC8F,QAAQ,EAAE;IAE1D,OAAO,IAAI,CAAC3D,IAAI,CAACmV,GAAG,CAAsBnD,GAAG,GAAC,uBAAuB,GAACuE,GAAG,GAAC,SAAS,GAAC/S,KAAK,CAAC4R,EAAE,GAAC,aAAa,GAAC5R,KAAK,CAACwT,IAAI,GAAC,SAAS,GAACxT,KAAK,CAACyT,KAAK,GAAC,QAAQ,GAACE,IAAI,CAAC,CAAC9B,SAAS,EAAE;EACxK;;AA1BWwB,YAAY;mBAAZA,YAAY;AAAA;AAAZA,YAAY;SAAZA,YAAY;EAAA3L,SAAZ2L,YAAY;EAAA1L,YAFX;AAAM;;;;;;;;;;;;;;ACRpB;AACA;AACA;AAEO,MAAMiM,WAAW,GAAG;EACzBC,UAAU,EAAE;CACb;AAED;;;;;;;AAOA;;;;;;;;;;;;;;;;ACf+C;AAGF;AACY;AAEzD,IAAID,6EAAsB,EAAE;EAC1BE,6DAAc,EAAE;;AAGlBC,sEAAAA,EAAwB,CAACC,eAAe,CAACtX,sDAAS,CAAC,CAChDuX,KAAK,CAACC,GAAG,IAAIC,OAAO,CAACC,KAAK,CAACF,GAAG,CAAC,CAAC","sources":["./src/app/app-routing.module.ts","./src/app/app.component.ts","./src/app/app.component.html","./src/app/app.module.ts","./src/app/components/controls/amostras-grupo/amostras-grupo.component.ts","./src/app/components/controls/amostras-grupo/amostras-grupo.component.html","./src/app/components/controls/analise-card/analise-card.component.ts","./src/app/components/controls/analise-card/analise-card.component.html","./src/app/components/controls/analise/analise.component.ts","./src/app/components/controls/analise/analise.component.html","./src/app/components/controls/bottom-sheet/bottom-sheet.component.ts","./src/app/components/controls/bottom-sheet/bottom-sheet.html","./src/app/components/controls/controls.module.ts","./src/app/components/controls/grupo-analises/grupo-analises.component.ts","./src/app/components/controls/grupo-analises/grupo-analises.component.html","./src/app/components/controls/language-switch/language-button.component.ts","./src/app/components/controls/language-switch/language-button.component.html","./src/app/components/controls/loading/loading.component.ts","./src/app/components/controls/loading/loading.component.html","./src/app/components/controls/medico-prescritor/medico-prescritor.component.ts","./src/app/components/controls/medico-prescritor/medico-prescritor.component.html","./src/app/components/controls/perfis/perfis.component.ts","./src/app/components/controls/perfis/perfis.component.html","./src/app/components/controls/tubo/tubo.component.ts","./src/app/components/controls/tubo/tubo.component.html","./src/app/components/modals/general/grupos-boletim-alert/grupos-boletim-alert.component.ts","./src/app/components/modals/general/grupos-boletim-alert/grupos-boletim-alert.component.html","./src/app/helpers/data-objects/_general/app.config.ts","./src/app/helpers/data-objects/_response/amostras/amostras-response.ts","./src/app/helpers/data-objects/_response/processos/analise/analise-processo-response.ts","./src/app/helpers/data-objects/analises/analises.ts","./src/app/helpers/data-objects/categorias_amostras/categorias-amostras.ts","./src/app/helpers/data-objects/grupos_analises/grupos-analises.ts","./src/app/helpers/data-objects/medicos-prescritores/medicos-prescritores.ts","./src/app/helpers/data-objects/perfis/perfis.ts","./src/app/helpers/data-objects/posto/posto.ts","./src/app/helpers/data-objects/tubos/tubos.ts","./src/app/helpers/design/design.module.ts","./src/app/helpers/directives/directives.module.ts","./src/app/helpers/directives/numbers-only-input/numbers-only-input.directive.ts","./src/app/helpers/enums/estado-processo.enum.ts","./src/app/helpers/guards/app-private.guard.ts","./src/app/helpers/guards/guards.module.ts","./src/app/helpers/helpers.module.ts","./src/app/helpers/pipes/amostras/amostras-enviadas-filter.pipe.ts","./src/app/helpers/pipes/amostras/amostras-filter.pipe.ts","./src/app/helpers/pipes/amostras/grupo-amostra-filter.pipe.ts","./src/app/helpers/pipes/analises/filter-analises-processos.pipe.ts","./src/app/helpers/pipes/analises/filter-analises.pipe.ts","./src/app/helpers/pipes/analises/price-analises.pipe.ts","./src/app/helpers/pipes/especie/especie-empty.pipe.ts","./src/app/helpers/pipes/grupos-analises/filter-grupos-analises-processos.pipe.ts","./src/app/helpers/pipes/grupos-analises/filter-grupos-analises.pipe.ts","./src/app/helpers/pipes/medicos-prescritores/filter-medicos-prescritores.pipe.ts","./src/app/helpers/pipes/perfis/list-perfis-filter.pipe.ts","./src/app/helpers/pipes/perfis/list-perfis-selected.pipe.ts","./src/app/helpers/pipes/perfis/perfis-selected.pipe.ts","./src/app/helpers/pipes/pipes.module.ts","./src/app/helpers/pipes/processos/price-analises-finish.pipe.ts","./src/app/helpers/pipes/processos/processo-estado-definition.pipe.ts","./src/app/helpers/providers/analises/analises-provider.service.ts","./src/app/helpers/providers/general/general-provider.service.ts","./src/app/helpers/providers/processos/processos-provider.service.ts","./src/app/helpers/providers/theme/theme-provider.service.ts","./src/app/interceptor/interceptor.module.ts","./src/app/interceptor/language.interceptor.ts","./src/app/services/analises/analises.service.ts","./src/app/services/authentication/authentication.service.ts","./src/app/services/config/config.service.ts","./src/app/services/language-json/language-json.service.ts","./src/app/services/processos/processos.service.ts","./src/app/services/services.module.ts","./src/app/services/tubos/tubos.service.ts","./src/environments/environment.ts","./src/main.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport {AppPrivateGuard} from './helpers/guards/app-private.guard';\r\n\r\nconst routes: Routes = [\r\n { path:'', redirectTo:'login', pathMatch:'full' },\r\n {\r\n path: '',\r\n loadChildren: () => import('./components/public/core-public/core-public.module').then(m => m.CorePublicModule)\r\n },\r\n {\r\n path: '',\r\n loadChildren: () => import('./components/private/core-private/core-private.module').then(m => m.CorePrivateModule),\r\n canActivate: [AppPrivateGuard]\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forRoot(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n","import {Component, OnDestroy, OnInit} from '@angular/core';\r\nimport {GeneralProviderService} from './helpers/providers/general/general-provider.service';\r\nimport {Subscription} from 'rxjs';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.scss']\r\n})\r\nexport class AppComponent implements OnInit, OnDestroy{\r\n showLoading: boolean = false;\r\n\r\n loadingSubscription: Subscription = new Subscription();\r\n\r\n constructor(private generalProvider: GeneralProviderService,\r\n private translate: TranslateService) {\r\n let language = localStorage.getItem(\"language\");\r\n translate.addLangs([\"pt\",\"es\"]);\r\n if(language){\r\n translate.use(language);\r\n }\r\n else{\r\n if(navigator.language.includes(\"es\")){\r\n translate.use(\"es\");\r\n localStorage.setItem(\"language\", \"es\");\r\n }\r\n else{\r\n translate.use(\"pt\");\r\n localStorage.setItem(\"language\", \"pt\");\r\n }\r\n }\r\n }\r\n\r\n ngOnInit() {\r\n this.BackgroundEvents();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.loadingSubscription.unsubscribe();\r\n }\r\n\r\n BackgroundEvents() {\r\n this.loadingSubscription = this.generalProvider.loadingEmitter.subscribe(result => this.showLoading = result);\r\n }\r\n}\r\n","\r\n\r\n\r\n","import {APP_INITIALIZER, NgModule} from '@angular/core';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\n\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { AppComponent } from './app.component';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\nimport {HelpersModule} from './helpers/helpers.module';\r\nimport {ServicesModule} from './services/services.module';\r\nimport {ConfigService} from './services/config/config.service';\r\nimport {HttpClient, HttpClientModule} from '@angular/common/http';\r\nimport { ToastrModule } from 'ngx-toastr';\r\nimport {ControlsModule} from './components/controls/controls.module';\r\nimport { TranslateLoader, TranslateModule } from '@ngx-translate/core';\r\nimport { TranslateHttpLoader } from '@ngx-translate/http-loader';\r\nimport { InterceptorModule } from './interceptor/interceptor.module';\r\n\r\nexport function HttpLoaderFactory(http: HttpClient) {\r\n return new TranslateHttpLoader(http);\r\n}\r\n\r\nexport function createTranslateLoader(http: HttpClient) {\r\n return new TranslateHttpLoader(http, './assets/i18n/', '.json');\r\n}\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent\r\n ],\r\n imports: [\r\n BrowserModule,\r\n HttpClientModule,\r\n AppRoutingModule,\r\n BrowserAnimationsModule,\r\n HelpersModule,\r\n ServicesModule,\r\n ToastrModule.forRoot({\r\n autoDismiss: true,\r\n preventDuplicates: true,\r\n progressBar: true,\r\n enableHtml: true,\r\n easeTime: 5\r\n }),\r\n ControlsModule,\r\n InterceptorModule,\r\n TranslateModule.forRoot({\r\n loader: {\r\n provide: TranslateLoader,\r\n useFactory: (createTranslateLoader),\r\n deps: [HttpClient]\r\n }\r\n })\r\n ],\r\n providers: [\r\n {\r\n provide: APP_INITIALIZER,\r\n multi: true,\r\n deps: [ConfigService],\r\n useFactory: (appConfigService: ConfigService) => {\r\n return () => {\r\n return appConfigService.loadAppConfig();\r\n };\r\n },\r\n }\r\n ],\r\n bootstrap: [AppComponent]\r\n})\r\nexport class AppModule { }\r\n","import {Component, Input, OnInit} from '@angular/core';\r\nimport {AmostrasResponse} from '../../../helpers/data-objects/_response/amostras/amostras-response';\r\nimport {FormBuilder, FormGroup, Validators} from '@angular/forms';\r\nimport {Amostras} from '../../../helpers/data-objects/amostras/amostras';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'amostras-grupo',\r\n templateUrl: './amostras-grupo.component.html',\r\n styleUrls: ['./amostras-grupo.component.scss']\r\n})\r\nexport class AmostrasGrupoComponent implements OnInit {\r\n @Input() grupoAmostra: AmostrasResponse = new AmostrasResponse();\r\n @Input() readonly: boolean = false;\r\n @Input() onlySelected: boolean = false;\r\n\r\n constructor(private translate: TranslateService) { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n checkboxChange(amostra: Amostras){\r\n amostra.Quantity = amostra.Selected ? 1 : 0;\r\n }\r\n\r\n quantityChange(amostra: Amostras){\r\n amostra.Selected = (amostra.Quantity>0);\r\n }\r\n\r\n}\r\n","
\r\n
\r\n

\r\n {{'INSERIRPROCESSO.AMOSTRAS.AMOSTRATITLE'+grupoAmostra.ID | translate}}\r\n

\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n {{'INSERIRPROCESSO.AMOSTRAS.AMOSTRA'+amostra.ID | translate}}\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n","import {Component, Input, OnInit} from '@angular/core';\r\nimport {AnaliseProcessoResponse} from '../../../helpers/data-objects/_response/processos/analise/analise-processo-response';\r\n\r\n@Component({\r\n selector: 'app-analise-card',\r\n templateUrl: './analise-card.component.html',\r\n styleUrls: ['./analise-card.component.scss']\r\n})\r\nexport class AnaliseCardComponent implements OnInit {\r\n @Input() analise: AnaliseProcessoResponse = new AnaliseProcessoResponse();\r\n @Input() showPreco: boolean = true;\r\n\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n}\r\n","\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n","import {Component, Input, OnDestroy, OnInit} from '@angular/core';\r\nimport {Analises} from '../../../helpers/data-objects/analises/analises';\r\nimport {AnalisesProviderService} from '../../../helpers/providers/analises/analises-provider.service';\r\nimport {Subscription} from 'rxjs';\r\nimport {Perfis} from '../../../helpers/data-objects/perfis/perfis';\r\n\r\n@Component({\r\n selector: 'analise',\r\n templateUrl: './analise.component.html',\r\n styleUrls: ['./analise.component.scss']\r\n})\r\nexport class AnaliseComponent implements OnInit, OnDestroy {\r\n @Input() analise: Analises = new Analises();\r\n @Input() listPerfis: Perfis[] = new Array();\r\n\r\n perfisSubscription: Subscription = new Subscription();\r\n isAllowRemove: boolean = true;\r\n\r\n constructor(private analisesProviderService: AnalisesProviderService) { }\r\n\r\n ngOnInit(): void {\r\n this.BackgroundEvents();\r\n this.ManageRemoveAllow();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.perfisSubscription.unsubscribe();\r\n }\r\n\r\n BackgroundEvents(){\r\n this.perfisSubscription = this.analisesProviderService.perfisSelected.subscribe(perfis => {\r\n this.listPerfis = perfis;\r\n this.ManageRemoveAllow();\r\n });\r\n }\r\n\r\n ManageRemoveAllow(){\r\n this.isAllowRemove = !(this.listPerfis.some(perfil => perfil.selected && perfil.Analises.some(ana => ana.ANA_ID.trim() == this.analise.ANA_ID.trim())));\r\n }\r\n\r\n RemoveAnalise(){\r\n this.analise.selected = false;\r\n this.analisesProviderService.emitRemoverAnalises();\r\n }\r\n}\r\n","
\r\n
\r\n {{analise.ANA_ID.trimEnd()}}\r\n
\r\n
\r\n {{analise.ANA_SIGLA.trimEnd()}}\r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n","import { Component, Inject } from \"@angular/core\";\r\nimport { MatBottomSheetRef, MAT_BOTTOM_SHEET_DATA } from \"@angular/material/bottom-sheet\";\r\nimport { Perfis } from \"src/app/helpers/data-objects/perfis/perfis\";\r\nimport { Posto } from \"src/app/helpers/data-objects/posto/posto\";\r\n\r\n@Component({\r\n selector: 'bottom-sheet',\r\n templateUrl: 'bottom-sheet.html',\r\n })\r\n export class BottomSheet {\r\n posto: Posto = new Posto();\r\n \r\n constructor(private _bottomSheetRef: MatBottomSheetRef,\r\n @Inject(MAT_BOTTOM_SHEET_DATA) public data: {list: Perfis[]}\r\n ) {}\r\n \r\n \r\n ngOnInit(): void {\r\n \r\n if(sessionStorage.getItem('posto') != null) {\r\n // @ts-ignore\r\n this.posto = JSON.parse(sessionStorage.getItem('posto').toString()) as Posto;\r\n }\r\n }\r\n \r\n removePerfil(event: MouseEvent, PerfilID: string): void { \r\n this._bottomSheetRef.dismiss(PerfilID);\r\n event.preventDefault();\r\n }\r\n }","\r\n \r\n {{perfil.GRA_DEFINICAO}}\r\n {{perfil.GRA_ID}}\r\n \r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { GrupoAnalisesComponent } from './grupo-analises/grupo-analises.component';\r\nimport {DesignModule} from '../../helpers/design/design.module';\r\nimport {FormsModule} from '@angular/forms';\r\nimport {PipesModule} from '../../helpers/pipes/pipes.module';\r\nimport { AnaliseComponent } from './analise/analise.component';\r\nimport { PerfisComponent } from './perfis/perfis.component';\r\nimport { LoadingComponent } from './loading/loading.component';\r\nimport { AnaliseCardComponent } from './analise-card/analise-card.component';\r\nimport { AmostrasGrupoComponent } from './amostras-grupo/amostras-grupo.component';\r\nimport {DirectivesModule} from '../../helpers/directives/directives.module';\r\nimport { MedicoPrescritorComponent } from './medico-prescritor/medico-prescritor.component';\r\nimport { TuboComponent } from './tubo/tubo.component';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { LanguageButtonComponent } from './language-switch/language-button.component';\r\nimport { InserirProcessoModule } from '../private/inserir-processo/inserir-processo.module';\r\nimport { BottomSheet } from './bottom-sheet/bottom-sheet.component';\r\nimport {MatLegacyListModule as MatListModule} from '@angular/material/legacy-list';\r\n\r\n@NgModule({\r\n declarations: [\r\n GrupoAnalisesComponent,\r\n AnaliseComponent,\r\n PerfisComponent,\r\n LoadingComponent,\r\n AnaliseCardComponent,\r\n AmostrasGrupoComponent,\r\n MedicoPrescritorComponent,\r\n TuboComponent,\r\n LanguageButtonComponent,\r\n BottomSheet\r\n ],\r\n imports: [\r\n CommonModule,\r\n DesignModule,\r\n FormsModule,\r\n PipesModule,\r\n DirectivesModule,\r\n TranslateModule,\r\n MatListModule\r\n ],\r\n exports: [\r\n GrupoAnalisesComponent,\r\n AnaliseComponent,\r\n PerfisComponent,\r\n LoadingComponent,\r\n AnaliseCardComponent,\r\n AmostrasGrupoComponent,\r\n MedicoPrescritorComponent,\r\n TuboComponent,\r\n LanguageButtonComponent,\r\n BottomSheet\r\n ]\r\n})\r\nexport class ControlsModule { }\r\n","import {AfterContentInit, Component, Input, OnDestroy, OnInit} from '@angular/core';\r\nimport {GruposAnalises} from '../../../helpers/data-objects/grupos_analises/grupos-analises';\r\nimport {AnalisesProviderService} from '../../../helpers/providers/analises/analises-provider.service';\r\nimport {Subscription} from 'rxjs';\r\nimport {GeneralProviderService} from '../../../helpers/providers/general/general-provider.service';\r\nimport {AnalisesConfig} from '../../../helpers/data-objects/_general/analises.config';\r\nimport { AnalisesService } from 'src/app/services/analises/analises.service';\r\n\r\n@Component({\r\n selector: 'grupo-analises',\r\n templateUrl: './grupo-analises.component.html',\r\n styleUrls: ['./grupo-analises.component.scss']\r\n})\r\nexport class GrupoAnalisesComponent implements OnInit, AfterContentInit, OnDestroy {\r\n @Input() grupo: GruposAnalises = new GruposAnalises();\r\n @Input() listTopAnalises: AnalisesConfig[] = new Array();\r\n\r\n analiseStr: string = \"\";\r\n\r\n analiseFilteringSubscription: Subscription = new Subscription();\r\n\r\n constructor(private analisesProviderService: AnalisesProviderService,\r\n private generalProviderService: GeneralProviderService) { }\r\n\r\n ngOnInit(): void {\r\n this.BackgroundEvents();\r\n }\r\n\r\n ngAfterContentInit() {\r\n this.generalProviderService.ShowLoading(false); \r\n }\r\n\r\n ngOnDestroy() {\r\n this.analiseFilteringSubscription.unsubscribe();\r\n }\r\n\r\n BackgroundEvents() {\r\n this.grupo.collapsed = true;\r\n this.analisesProviderService.collapseAnalisesGrupo.subscribe(data => { \r\n this.grupo.collapsed = data;\r\n })\r\n this.analiseFilteringSubscription = this.analisesProviderService.analisesFilterEmitter.subscribe(analiseFilter => this.analiseStr = analiseFilter);\r\n }\r\n\r\n collapseClick(){\r\n if(this.grupo.collapsed == true){\r\n this.analisesProviderService.collapseAnalisesGrupoClose()\r\n this.grupo.collapsed = !this.grupo.collapsed;\r\n }\r\n else\r\n this.grupo.collapsed = !this.grupo.collapsed;\r\n }\r\n}\r\n","
\r\n
\r\n

{{grupo.GRB_DEFINICAO.trimEnd()}}

\r\n
\r\n
\r\n
    \r\n
  • \r\n
    \r\n \r\n
    \r\n
    \r\n {{analise.ANA_ID.trimEnd()}}\r\n
    \r\n
    \r\n {{analise.ANA_SIGLA.trimEnd()}}\r\n
    \r\n
  • \r\n
\r\n
\r\n
\r\n","import { Component, EventEmitter, OnInit, Output } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { Posto } from 'src/app/helpers/data-objects/posto/posto';\r\nimport { AnalisesService } from 'src/app/services/analises/analises.service';\r\nimport { LanguageJsonService } from 'src/app/services/language-json/language-json.service';\r\n\r\n@Component({\r\n selector: 'app-language-button',\r\n templateUrl: './language-button.component.html',\r\n styleUrls: ['./language-button.component.scss']\r\n})\r\nexport class LanguageButtonComponent implements OnInit {\r\n posto: Posto = new Posto();\r\n iconSource: string = '';\r\n\r\n constructor(private translate: TranslateService,\r\n private languageSrvc: LanguageJsonService) {\r\n let currentLanguage = this.translate.currentLang;\r\n if(currentLanguage == \"es\") {\r\n this.iconSource = \"assets/images/es.png\";\r\n }\r\n else if(currentLanguage == \"pt\"){\r\n this.iconSource = \"assets/images/pt.png\";\r\n }\r\n\r\n if(sessionStorage.getItem('posto') != null) {\r\n // @ts-ignore\r\n this.posto = JSON.parse(sessionStorage.getItem('posto').toString()) as Posto;\r\n }\r\n\r\n /**\r\n * Existe um bug, que ao mudar o idioma depois de fazer login, não afecta totalmente\r\n * a view e continua a mostrar o valor com iva. \r\n * Depois de clicar novamente (para pt) ao carregar para alterar para es novamente já funciona.\r\n * Basicamente só tem o comportamento correcto após o segundo clique,\r\n * daí estar a forçar logo no ctor os tais 2 cliques que deixam tudo com o comportamento desejado.\r\n */\r\n this.ChangeLanguage();\r\n setTimeout(()=> {\r\n this.ChangeLanguage();\r\n }, 100)\r\n\r\n }\r\n\r\n ngOnInit(): void {}\r\n\r\n ChangeLanguage(){\r\n let currentLanguage = this.translate.currentLang;\r\n if(currentLanguage == \"pt\") {\r\n this.translate.use(\"es\");\r\n localStorage.setItem(\"language\", \"es\");\r\n this.iconSource = \"assets/images/es.png\";\r\n }\r\n else if(currentLanguage == \"es\"){\r\n this.translate.use(\"pt\");\r\n localStorage.setItem(\"language\", \"pt\");\r\n this.iconSource = \"assets/images/pt.png\";\r\n }\r\n \r\n this.languageSrvc.emitLanguageChanged();\r\n }\r\n}\r\n"," \r\n ","import { Component, OnInit } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'app-loading',\r\n templateUrl: './loading.component.html',\r\n styleUrls: ['./loading.component.scss']\r\n})\r\nexport class LoadingComponent implements OnInit {\r\n\r\n constructor(private translate: TranslateService) {}\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n}\r\n","
\r\n \r\n

{{'GERAL.LABELCARREGAR' | translate}}

\r\n
\r\n
\r\n","import {Component, Input, OnInit} from '@angular/core';\r\nimport {MedicosPrescritores} from '../../../helpers/data-objects/medicos-prescritores/medicos-prescritores';\r\n\r\n@Component({\r\n selector: 'medico-prescritor',\r\n templateUrl: './medico-prescritor.component.html',\r\n styleUrls: ['./medico-prescritor.component.scss']\r\n})\r\nexport class MedicoPrescritorComponent implements OnInit {\r\n @Input() medicoPrescritor: MedicosPrescritores = new MedicosPrescritores();\r\n @Input() listMedicosPrescritor: MedicosPrescritores[] = new Array();\r\n\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n SelectMedicoPrescritor(){\r\n this.medicoPrescritor.MED_SELECT = !this.medicoPrescritor.MED_SELECT;\r\n\r\n if(this.medicoPrescritor.MED_SELECT)\r\n this.listMedicosPrescritor.filter(medico => medico.MED_SELECT && medico.MED_ID != this.medicoPrescritor.MED_ID).forEach(medico => medico.MED_SELECT = false);\r\n }\r\n}\r\n","\r\n \r\n
{{medicoPrescritor.MED_ID.trimEnd()}}
\r\n

{{medicoPrescritor.MED_NOME.trimEnd()}}

\r\n
\r\n
\r\n","import {Component, Input, OnInit} from '@angular/core';\r\nimport {Perfis} from '../../../helpers/data-objects/perfis/perfis';\r\nimport {ConfigService} from '../../../services/config/config.service';\r\nimport {ProcessosProviderService} from '../../../helpers/providers/processos/processos-provider.service';\r\nimport {AnalisesProviderService} from '../../../helpers/providers/analises/analises-provider.service';\r\nimport {AnalisesConfig} from '../../../helpers/data-objects/_general/analises.config';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'perfil',\r\n templateUrl: './perfis.component.html',\r\n styleUrls: ['./perfis.component.scss']\r\n})\r\nexport class PerfisComponent implements OnInit {\r\n @Input() listPerfis: Perfis[] = new Array();\r\n @Input() perfil: Perfis = new Perfis();\r\n\r\n AnalisesConfigTop: AnalisesConfig[] = new Array();\r\n\r\n constructor(private configService: ConfigService,\r\n private analisesProviderService: AnalisesProviderService,\r\n private processosProviderService: ProcessosProviderService,\r\n private translate: TranslateService) { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n ToggleAnalises(){\r\n this.perfil.expanded = !this.perfil.expanded;\r\n }\r\n\r\n SelectPerfil(){\r\n this.perfil.selected = !this.perfil.selected;\r\n\r\n if(!this.perfil.selected) {\r\n this.processosProviderService.EmitPerfilUnselected(this.perfil);\r\n return;\r\n }\r\n\r\n this.analisesProviderService.listIdsPerfis.push(this.perfil.GRA_ID.trimEnd());\r\n let perfilEquivalent: Perfis[] = new Array();\r\n const listPerfisLimitations = this.configService.appConfig.perfilLimitations.split(',');\r\n\r\n if(listPerfisLimitations.filter(limitation => limitation == this.perfil.GRA_ID.trimEnd().substring(this.perfil.GRA_ID.trimEnd().length - 1)).length>0){\r\n const id = this.perfil.GRA_ID.trimEnd().slice(0, -1);\r\n\r\n if(this.listPerfis.filter(perfilRow => perfilRow.GRA_ID.trimEnd() == id).length == 0)\r\n return;\r\n\r\n perfilEquivalent.push(this.listPerfis.filter(perfilRow => perfilRow.GRA_ID.trimEnd() == id)[0]);\r\n listPerfisLimitations.forEach(limitation => {\r\n const row = this.listPerfis.filter(perfilRow => perfilRow.GRA_ID.trimEnd() == id+limitation && perfilRow.GRA_ID.trimEnd() != this.perfil.GRA_ID.trimEnd())[0];\r\n\r\n if(row != undefined)\r\n perfilEquivalent.push(row);\r\n });\r\n }\r\n else {\r\n if(this.listPerfis.filter(perfilRow => listPerfisLimitations.filter(limitation => limitation == perfilRow.GRA_ID.trimEnd().substring(perfilRow.GRA_ID.trimEnd().length - 1))).length == 0)\r\n return;\r\n\r\n listPerfisLimitations.forEach(limitation => {\r\n const row = this.listPerfis.filter(perfilRow => perfilRow.GRA_ID.trimEnd() == this.perfil.GRA_ID.trimEnd()+limitation)[0];\r\n perfilEquivalent.push(row);\r\n });\r\n }\r\n\r\n perfilEquivalent.forEach(perfil => {\r\n if(perfil.selected)\r\n perfil.selected = false;\r\n })\r\n }\r\n \r\n getSelectLabel(){\r\n if(this.perfil.selected)\r\n return \"GERAL.BTNREMOVERSELECCAO\";\r\n else\r\n return \"GERAL.BTNSELECIONAR\";\r\n }\r\n}\r\n","
\r\n
\r\n

{{perfil.GRA_ID.trimEnd()}}

\r\n

{{perfil.GRA_DEFINICAO.trimEnd()}}

\r\n
\r\n
3)}\" (click)=\"ToggleAnalises()\">\r\n
\r\n

{{'FINISHPROCESS.TITLEANALISES' | translate}}

\r\n
\r\n \r\n
\r\n

({{analise.ANA_ID.trim()}}) - {{analise.ANA_SIGLA.trim()}}

\r\n
\r\n
\r\n \r\n
\r\n

({{analise.ANA_ID.trim()}}) - {{analise.ANA_SIGLA.trim()}}

\r\n
\r\n
\r\n

3 && !perfil.expanded\">\r\n {{'INSERIRPROCESSO.BUSCAPERFIS.LABELEXISTEMMAIS1' | translate}} {{(perfil.Analises.length - 3)}} {{'INSERIRPROCESSO.BUSCAPERFIS.LABELEXISTEMMAIS2' | translate}}\r\n

\r\n
\r\n
\r\n

\r\n
\r\n","import {Component, Input, OnInit} from '@angular/core';\r\nimport {Tubos} from '../../../helpers/data-objects/tubos/tubos';\r\n\r\n@Component({\r\n selector: 'tubo',\r\n templateUrl: './tubo.component.html',\r\n styleUrls: ['./tubo.component.scss']\r\n})\r\nexport class TuboComponent implements OnInit {\r\n @Input() tubo: Tubos = new Tubos();\r\n\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n}\r\n","\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n","import {Component, Inject, OnInit} from '@angular/core';\r\nimport {MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef} from '@angular/material/legacy-dialog';\r\n\r\n@Component({\r\n selector: 'app-grupos-boletim-alert',\r\n templateUrl: './grupos-boletim-alert.component.html',\r\n styleUrls: ['./grupos-boletim-alert.component.scss']\r\n})\r\nexport class GruposBoletimAlertComponent implements OnInit {\r\n\r\n constructor(public dialogRef: MatDialogRef) {\r\n }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n CloseAlert(){\r\n this.dialogRef.close();\r\n }\r\n\r\n}\r\n","

{{'GERAL.LABELALERTA' | translate}}

\r\n\r\n

{{'ALERTS.GRUPOSBOLETIM.LABELMESSAGEDATAREQUIREMENT' | translate}}

\r\n

{{'ALERTS.GRUPOSBOLETIM.LABELMESSAGECOLHEITALOCAL' | translate}}


\r\n
{{'ALERTS.GRUPOSBOLETIM.LABELMESSAGERESPOSTADELAYED' | translate}}
\r\n
\r\n\r\n \r\n\r\n","export class AppConfig {\r\n name: string = \"\";\r\n clientUrl: string = \"\";\r\n clientUrlMenu: string = \"\";\r\n edeiaUrl: string = \"\";\r\n sliceUrl: string = \"\";\r\n api: string = \"\";\r\n webSiteColor: string = \"\";\r\n webSiteTextColor: string = \"\";\r\n darkContrast: boolean = false;\r\n isVeterinariaWebSite: boolean = false;\r\n showDataEntregaPrevistaResumo: boolean = true;\r\n showPrecosAnalisesResumo: boolean = true;\r\n perfilLimitations: string = \"\";\r\n searchPrescritores: boolean = false;\r\n showCodeVeterinario: boolean = false;\r\n showTodasAnalises: boolean = false;\r\n showNumeroIDExternoInput: boolean = false;\r\n}\r\n","import {CategoriasAmostras} from '../../categorias_amostras/categorias-amostras';\r\nimport {Amostras} from '../../amostras/amostras';\r\n\r\nexport class AmostrasResponse extends CategoriasAmostras{\r\n Amostras: Amostras[] = new Array();\r\n}\r\n","export class AnaliseProcessoResponse {\r\n IdInterno: string = \"\";\r\n VersaoAnalise: number = 0;\r\n IdExterno: string = \"\";\r\n IdTransaccao: string = \"\";\r\n Posicao: number = 0;\r\n Entidade: string = \"\";\r\n NumeroBeneficiario: string = \"\";\r\n Requisicao: string = \"\";\r\n TipoPagamento: number = 0;\r\n Estado: number = 0;\r\n ValorTotal: number = 0;\r\n ValorDoente: number = 0;\r\n ValorEntidade: number = 0;\r\n ValorPosto: number = 0;\r\n FlagEngano: boolean = false;\r\n FlagNaoExecucao: boolean = false;\r\n FlagNaoFacturacao: boolean = false;\r\n FlagNaoRecibo: boolean = false;\r\n FlagNaoSaiBoletim: boolean = false;\r\n DataExecucaoPrevista: Date = new Date();\r\n Sigla: string = \"\";\r\n}\r\n","export class Analises {\r\n ANA_ID: string = \"\";\r\n ANA_SIGLA: string = \"\";\r\n ETA_VALOR: string = \"\";\r\n ENTIDADE: string = \"\";\r\n ANA_NAOEXECUCAO: string = \"\";\r\n ANA_NAOFATURACAO: string = \"\";\r\n ANA_NAORECIBO: string = \"\";\r\n ANA_NAOSAIBOLETIM: string = \"\";\r\n IVA: number = 0;\r\n ANA_COLHEITAESPECIAL: boolean = false;\r\n selected: boolean = false;\r\n}\r\n","export class CategoriasAmostras {\r\n ID: number = -1;\r\n Name: string = \"\";\r\n}\r\n","import {Analises} from '../analises/analises';\r\n\r\nexport class GruposAnalises {\r\n GRB_ID: string = \"\";\r\n GRB_DEFINICAO: string = \"\";\r\n Analises: Analises[] = new Array();\r\n collapsed: boolean = true;\r\n}\r\n","export class MedicosPrescritores {\r\n MED_ID: string = \"\";\r\n MED_NOME: string = \"\";\r\n MED_SIGLA: string = \"\";\r\n MED_SELECT: boolean = false;\r\n}\r\n","import {Analises} from '../analises/analises';\r\n\r\nexport class Perfis {\r\n GRA_ID: string = '';\r\n GRA_DEFINICAO: string = \"\";\r\n TXE_VALOR: string = \"\";\r\n GRA_BLOQUEAR_PROCESSO: boolean = false;\r\n Analises: Analises[] = new Array();\r\n selected: boolean = false;\r\n expanded: boolean = false;\r\n}\r\n","export class Posto {\r\n Id: string = \"\";\r\n Sigla: string = \"\";\r\n Nome: string = \"\";\r\n Morada: string = \"\";\r\n Localidade: string = \"\";\r\n CodigoPostal: string = \"\";\r\n LocalidadeCodigoPostal: string = \"\";\r\n Telefone: string = \"\";\r\n Telefone2: string = \"\";\r\n Telemovel: string = \"\";\r\n EntidadeDefeito: string = \"\";\r\n CodExt: string = \"\";\r\n Email: string = \"\";\r\n}\r\n","export class Tubos {\r\n TuboId: string = \"\";\r\n Descricao: string = \"\";\r\n Estado: string = \"\";\r\n PosicaoCodEtiqueta: string = \"\";\r\n CodEtiqueta: string = \"\";\r\n Produto: string = \"\";\r\n IdTransaccao: string = \"\";\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport {MatLegacyButtonModule as MatButtonModule} from '@angular/material/legacy-button';\r\nimport {MatLegacyCardModule as MatCardModule} from '@angular/material/legacy-card';\r\nimport {MatLegacyFormFieldModule as MatFormFieldModule} from '@angular/material/legacy-form-field';\r\nimport {MatLegacyInputModule as MatInputModule} from '@angular/material/legacy-input';\r\nimport {MatToolbarModule} from '@angular/material/toolbar';\r\nimport {MatLegacyDialogModule as MatDialogModule} from '@angular/material/legacy-dialog';\r\nimport {MatLegacyCheckboxModule as MatCheckboxModule} from '@angular/material/legacy-checkbox';\r\nimport {MatDividerModule} from '@angular/material/divider';\r\nimport {MatButtonToggleModule} from '@angular/material/button-toggle';\r\nimport {MatLegacySelectModule as MatSelectModule} from '@angular/material/legacy-select';\r\nimport {MatLegacyAutocompleteModule as MatAutocompleteModule} from '@angular/material/legacy-autocomplete';\r\nimport {MatLegacyTooltipModule as MatTooltipModule} from '@angular/material/legacy-tooltip';\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule,\r\n MatButtonModule,\r\n MatCardModule,\r\n MatFormFieldModule,\r\n MatInputModule,\r\n MatToolbarModule,\r\n MatDialogModule,\r\n MatCheckboxModule,\r\n MatDividerModule,\r\n MatButtonToggleModule,\r\n MatSelectModule,\r\n MatAutocompleteModule,\r\n MatTooltipModule\r\n ],\r\n exports: [\r\n MatButtonModule,\r\n MatCardModule,\r\n MatFormFieldModule,\r\n MatInputModule,\r\n MatToolbarModule,\r\n MatDialogModule,\r\n MatCheckboxModule,\r\n MatDividerModule,\r\n MatButtonToggleModule,\r\n MatSelectModule,\r\n MatAutocompleteModule,\r\n MatTooltipModule\r\n ]\r\n})\r\nexport class DesignModule { }\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NumbersOnlyInputDirective } from './numbers-only-input/numbers-only-input.directive';\r\n\r\n@NgModule({\r\n declarations: [\r\n NumbersOnlyInputDirective\r\n ],\r\n exports: [\r\n NumbersOnlyInputDirective\r\n ],\r\n imports: [\r\n CommonModule\r\n ]\r\n})\r\nexport class DirectivesModule { }\r\n","import { Directive, ElementRef, HostListener, Input } from '@angular/core';\r\nimport { NgControl } from '@angular/forms';\r\n\r\n@Directive({\r\n selector: 'input[type=number], input[numbersOnly]'\r\n})\r\nexport class NumbersOnlyInputDirective {\r\n\r\n constructor(private elRef: ElementRef) { }\r\n\r\n @HostListener('input', ['$event']) onInputChange(event: any) {\r\n const initalValue = this.elRef.nativeElement.value;\r\n this.elRef.nativeElement.value = initalValue.replace(/[^0-9]*/g, '');\r\n if ( initalValue !== this.elRef.nativeElement.value) {\r\n event.stopPropagation();\r\n }\r\n }\r\n}\r\n","export enum EstadoProcessoEnum {\r\n NaoDefinido = 0,\r\n Pendente,\r\n Incompleto,\r\n Completo,\r\n ImpParcialI,\r\n ImpParcialC,\r\n Impresso,\r\n Validado,\r\n Marcacao\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport {ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree} from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AppPrivateGuard implements CanActivate {\r\n constructor(private router: Router) {\r\n }\r\n\r\n canActivate(\r\n route: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot) {\r\n if(sessionStorage.getItem('posto') == null) {\r\n this.router.navigateByUrl('/login');\r\n return false;\r\n }\r\n else return true;\r\n }\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport {AppPrivateGuard} from './app-private.guard';\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule\r\n ],\r\n providers: [AppPrivateGuard]\r\n})\r\nexport class GuardsModule { }\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport {ThemeProviderService} from './providers/theme/theme-provider.service';\r\nimport {GeneralProviderService} from './providers/general/general-provider.service';\r\nimport {AnalisesProviderService} from './providers/analises/analises-provider.service';\r\nimport {GuardsModule} from './guards/guards.module';\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule,\r\n GuardsModule\r\n ],\r\n providers: [\r\n ThemeProviderService,\r\n GeneralProviderService,\r\n AnalisesProviderService\r\n ]\r\n})\r\nexport class HelpersModule { }\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { AmostrasResponse } from '../../data-objects/_response/amostras/amostras-response';\r\n\r\n@Pipe({\r\n name: 'amostrasEnviadasFilter'\r\n})\r\nexport class AmostrasEnviadasFilterPipe implements PipeTransform {\r\n\r\n transform(list: AmostrasResponse[]) {\r\n return list.some(e => {\r\n return e.Amostras.some(f => {\r\n return f.Quantity>0\r\n })\r\n })\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport {Amostras} from '../../data-objects/amostras/amostras';\r\n\r\n@Pipe({\r\n name: 'amostrasFilter'\r\n})\r\nexport class AmostrasFilterPipe implements PipeTransform {\r\n\r\n transform(list: Amostras[], selected: boolean) {\r\n if(selected){\r\n return list.filter(amostra => amostra.Selected);\r\n }\r\n else {\r\n return list;\r\n }\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { AmostrasResponse } from '../../data-objects/_response/amostras/amostras-response';\r\n\r\n@Pipe({\r\n name: 'amostrasGrupoFilter'\r\n})\r\nexport class GrupoAmostrasFilterPipe implements PipeTransform {\r\n\r\n transform(list: AmostrasResponse) {\r\n return list.Amostras.some(e => {\r\n return e.Quantity>0\r\n })\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport {Analises} from '../../data-objects/analises/analises';\r\n\r\n@Pipe({\r\n name: 'filterAnalisesProcessos'\r\n})\r\nexport class FilterAnalisesProcessosPipe implements PipeTransform {\r\n\r\n transform(list: Analises[], forceUpdate: Date) {\r\n return list.filter(analise => analise.selected && analise.ANA_NAOEXECUCAO == \"Nao\");\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport {Analises} from '../../data-objects/analises/analises';\r\nimport {AnalisesConfig} from '../../data-objects/_general/analises.config';\r\n\r\n@Pipe({\r\n name: 'filterAnalises'\r\n})\r\nexport class FilterAnalisesPipe implements PipeTransform {\r\n\r\n transform(list: Analises[], analiseStr: string, listTopAnalises: AnalisesConfig[]) {\r\n if(analiseStr == \"\" && listTopAnalises.length == 0) {\r\n return list.filter(row => row.ANA_NAOEXECUCAO == \"Nao\");\r\n }\r\n else if(analiseStr == \"\" && listTopAnalises.length > 0) {\r\n return list.filter(row=> listTopAnalises.some(analiseTop => analiseTop.ANA_ID == row.ANA_ID.trimEnd()));\r\n }\r\n\r\n if(listTopAnalises.length == 0) {\r\n return list.filter(row=> row.ANA_SIGLA.toLowerCase().includes(analiseStr.toLowerCase()) && row.ANA_NAOEXECUCAO == \"Nao\");\r\n }\r\n else {\r\n return list.filter(row=> row.ANA_SIGLA.toLowerCase().includes(analiseStr.toLowerCase()) && row.ANA_NAOEXECUCAO == \"Nao\" && listTopAnalises.some(analiseTop => analiseTop.ANA_ID == row.ANA_ID.trimEnd()));\r\n }\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport {GruposAnalises} from '../../data-objects/grupos_analises/grupos-analises';\r\nimport {Perfis} from '../../data-objects/perfis/perfis';\r\n\r\n@Pipe({\r\n name: 'priceAnalises'\r\n})\r\nexport class PriceAnalisesPipe implements PipeTransform {\r\n\r\n transform(listGrupos: GruposAnalises[], listPerfis: Perfis[], typePrice: number, date: Date) {\r\n if(listGrupos.length == 0)\r\n return listGrupos;\r\n\r\n return this.CalculatePrice(listGrupos, listPerfis, typePrice);\r\n }\r\n\r\n CalculatePrice(listGrupos: GruposAnalises[], listPerfis: Perfis[], typePrice: number){\r\n switch (typePrice){\r\n case 1:\r\n return this.CalculateSubTotal(listGrupos);\r\n case 2:\r\n return this.CalculateTaxaExtra(listPerfis);\r\n case 3:\r\n return this.CalculateTotal(listGrupos, listPerfis);\r\n case 4:\r\n return this.CalculateTotalIva(listGrupos, listPerfis);\r\n }\r\n\r\n return 0;\r\n }\r\n\r\n CalculateSubTotal(listGrupos: GruposAnalises[]){\r\n let value = 0;\r\n let grupos = listGrupos.filter(grupo => grupo.Analises.some(analise => analise.selected));\r\n\r\n grupos.forEach(grupo => {\r\n grupo.Analises.filter(analise => analise.selected).forEach(analise => {\r\n value += +analise.ETA_VALOR.toString().replace(',','.').trimEnd();\r\n });\r\n });\r\n\r\n return Math.round(value*100)/100;\r\n }\r\n\r\n\r\n CalculateTaxaExtra(listPerfis: Perfis[]){\r\n let value = 0;\r\n let listPerfisSelected = listPerfis.filter(perfil => perfil.selected);\r\n\r\n listPerfisSelected.forEach(perfil => {\r\n var list = listPerfisSelected.filter(secondary => perfil.GRA_ID != secondary.GRA_ID && secondary.Analises.filter(item => perfil.Analises.indexOf(item)));\r\n \r\n if(list.length == 0)\r\n value += +perfil.TXE_VALOR.toString().replace(',','.').trimEnd();\r\n else {\r\n value += +list.sort((a,b) => ((+a.TXE_VALOR.toString().replace(',','.').trimEnd()) < (+b.TXE_VALOR.toString().replace(',','.').trimEnd()) ? -1 : 1))[list.length-1].TXE_VALOR.toString().replace(',','.').trimEnd();\r\n }\r\n });\r\n\r\n return Math.round(value*100)/100;\r\n }\r\n\r\n CalculateIVA(listGrupos: GruposAnalises[], listPerfis: Perfis[]){\r\n let value = 0;\r\n const subTotal = this.CalculateSubTotal(listGrupos);\r\n const taxaExtra = this.CalculateTaxaExtra(listPerfis);\r\n\r\n value = (subTotal + taxaExtra) * 0.23;\r\n\r\n return Math.round(value*100)/100;\r\n }\r\n\r\n CalculateTotal(listGrupos: GruposAnalises[], listPerfis: Perfis[]){\r\n let total: number = 0;\r\n\r\n const subTotal = this.CalculateSubTotal(listGrupos);\r\n const taxaExtra = this.CalculateTaxaExtra(listPerfis);\r\n\r\n total = subTotal + taxaExtra;\r\n\r\n return Math.round(total*100)/100;\r\n }\r\n\r\n CalculateTotalIva(listGrupos: GruposAnalises[], listPerfis: Perfis[]){\r\n let total: number = 0;\r\n\r\n const subTotal = this.CalculateSubTotal(listGrupos);\r\n const taxaExtra = this.CalculateTaxaExtra(listPerfis);\r\n const IVA = this.CalculateIVA(listGrupos, listPerfis)\r\n\r\n total = subTotal + taxaExtra + IVA;\r\n\r\n return Math.round(total*100)/100;\r\n }\r\n}","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { TiposUtente } from '../../data-objects/tipos-utente/tipos-utente';\r\n\r\n@Pipe({\r\n name: 'emptyEspecie'\r\n})\r\nexport class EmptyEspeciePipe implements PipeTransform {\r\n\r\n transform(list: TiposUtente[]) {\r\n if(list.length > 0)\r\n return list.filter(utente => utente.TipoDescricao.trim() !== '');\r\n else\r\n return list\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport {GruposAnalises} from '../../data-objects/grupos_analises/grupos-analises';\r\n\r\n@Pipe({\r\n name: 'filterGruposAnalisesProcessos'\r\n})\r\nexport class FilterGruposAnalisesProcessosPipe implements PipeTransform {\r\n\r\n transform(list: GruposAnalises[], forceUpdate: Date) {\r\n return list.filter(grupo => grupo.Analises.some(analise => analise.selected));\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport {GruposAnalises} from '../../data-objects/grupos_analises/grupos-analises';\r\nimport {AnalisesConfig} from '../../data-objects/_general/analises.config';\r\n\r\n@Pipe({\r\n name: 'filterGruposAnalises'\r\n})\r\nexport class FilterGruposAnalisesPipe implements PipeTransform {\r\n\r\n transform(list: GruposAnalises[], analiseStr: string, destaque: boolean) {\r\n if(analiseStr == \"\") {\r\n return list.filter(grupo => grupo.Analises.some(analise => analise.ANA_NAOEXECUCAO == \"Nao\"));\r\n }\r\n\r\n return list.filter(grupo => grupo.Analises.some(analise => analise.ANA_SIGLA.toLowerCase().includes(analiseStr.toLowerCase()) && analise.ANA_NAOEXECUCAO == \"Nao\"));\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport {MedicosPrescritores} from '../../data-objects/medicos-prescritores/medicos-prescritores';\r\n\r\n@Pipe({\r\n name: 'filterMedicosPrescritores'\r\n})\r\nexport class FilterMedicosPrescritoresPipe implements PipeTransform {\r\n\r\n transform(list: MedicosPrescritores[], filterStr: string) {\r\n if(filterStr == \"\")\r\n return list;\r\n\r\n return list.filter(medico => medico.MED_ID.trimEnd().toLowerCase().includes(filterStr.toLowerCase()) || medico.MED_NOME.trimEnd().toLowerCase().includes(filterStr.toLowerCase()));\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport {Perfis} from '../../data-objects/perfis/perfis';\r\nimport { PerfisConfig } from '../../data-objects/_general/perfis.config';\r\n\r\n@Pipe({\r\n name: 'listPerfisFilter'\r\n})\r\nexport class ListPerfisFilterPipe implements PipeTransform {\r\n\r\n transform(list: Perfis[], definition: string) {\r\n if(definition == \"\"){\r\n return list;\r\n }\r\n return list.filter(row=> row.GRA_DEFINICAO.toLowerCase().includes(definition.toLowerCase()) || row.GRA_ID.toLowerCase().includes(definition.toLowerCase()));\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport {Perfis} from '../../data-objects/perfis/perfis';\r\n\r\n@Pipe({\r\n name: 'listPerfisSelected'\r\n})\r\nexport class ListPerfisSelectedPipe implements PipeTransform {\r\n\r\n transform(list: Perfis[], date: Date) {\r\n return list.some(perfil => perfil.selected)\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { Perfis } from '../../data-objects/perfis/perfis';\r\n\r\n@Pipe({\r\n name: 'perfisSelected'\r\n})\r\nexport class PerfisSelectedPipe implements PipeTransform {\r\n\r\n transform(list: Perfis[], date: Date) {\r\n return list.filter(perfil => perfil.selected)\r\n}\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FilterGruposAnalisesPipe } from './grupos-analises/filter-grupos-analises.pipe';\r\nimport { FilterAnalisesPipe } from './analises/filter-analises.pipe';\r\nimport { FilterGruposAnalisesProcessosPipe } from './grupos-analises/filter-grupos-analises-processos.pipe';\r\nimport { FilterAnalisesProcessosPipe } from './analises/filter-analises-processos.pipe';\r\nimport { PriceAnalisesPipe } from './analises/price-analises.pipe';\r\nimport { PriceAnalisesFinishPipe } from './processos/price-analises-finish.pipe';\r\nimport { ProcessoEstadoDefinitionPipe } from './processos/processo-estado-definition.pipe';\r\nimport { AmostrasFilterPipe } from './amostras/amostras-filter.pipe';\r\nimport { ListPerfisFilterPipe } from './perfis/list-perfis-filter.pipe';\r\nimport { FilterMedicosPrescritoresPipe } from './medicos-prescritores/filter-medicos-prescritores.pipe';\r\nimport { GrupoAmostrasFilterPipe } from './amostras/grupo-amostra-filter.pipe';\r\nimport { AmostrasEnviadasFilterPipe } from './amostras/amostras-enviadas-filter.pipe';\r\nimport { ListPerfisSelectedPipe } from './perfis/list-perfis-selected.pipe';\r\nimport { PerfisSelectedPipe } from './perfis/perfis-selected.pipe';\r\nimport { EmptyEspeciePipe } from './especie/especie-empty.pipe';\r\n\r\n@NgModule({\r\n declarations: [\r\n FilterGruposAnalisesPipe,\r\n FilterAnalisesPipe,\r\n FilterGruposAnalisesProcessosPipe,\r\n FilterAnalisesProcessosPipe,\r\n PriceAnalisesPipe,\r\n PriceAnalisesFinishPipe,\r\n ProcessoEstadoDefinitionPipe,\r\n AmostrasFilterPipe,\r\n ListPerfisFilterPipe,\r\n FilterMedicosPrescritoresPipe,\r\n GrupoAmostrasFilterPipe,\r\n AmostrasEnviadasFilterPipe,\r\n ListPerfisSelectedPipe,\r\n PerfisSelectedPipe,\r\n EmptyEspeciePipe\r\n ],\r\n imports: [\r\n CommonModule\r\n ],\r\n exports: [\r\n FilterGruposAnalisesPipe,\r\n FilterAnalisesPipe,\r\n FilterGruposAnalisesProcessosPipe,\r\n FilterAnalisesProcessosPipe,\r\n PriceAnalisesPipe,\r\n PriceAnalisesFinishPipe,\r\n ProcessoEstadoDefinitionPipe,\r\n AmostrasFilterPipe,\r\n ListPerfisFilterPipe,\r\n FilterMedicosPrescritoresPipe,\r\n GrupoAmostrasFilterPipe,\r\n AmostrasEnviadasFilterPipe,\r\n ListPerfisSelectedPipe,\r\n PerfisSelectedPipe,\r\n EmptyEspeciePipe\r\n ]\r\n})\r\nexport class PipesModule { }\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport {AnaliseProcessoResponse} from '../../data-objects/_response/processos/analise/analise-processo-response';\r\n\r\n@Pipe({\r\n name: 'priceAnalisesFinish'\r\n})\r\nexport class PriceAnalisesFinishPipe implements PipeTransform {\r\n\r\n transform(list: AnaliseProcessoResponse[]) {\r\n let totalValue: number = 0;\r\n\r\n list.forEach(analise => {\r\n totalValue += analise.ValorDoente;\r\n });\r\n\r\n return totalValue;\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { LanguageJsonService } from 'src/app/services/language-json/language-json.service';\r\nimport {EstadoProcessoEnum} from '../../enums/estado-processo.enum';\r\n\r\n@Pipe({\r\n name: 'processoEstadoDefinition'\r\n})\r\nexport class ProcessoEstadoDefinitionPipe implements PipeTransform {\r\n constructor(private languageJsonService: LanguageJsonService) {}\r\n\r\n async transform(estado: number) {\r\n \r\n const json = await this.languageJsonService.getLanguageJson();\r\n\r\n let estadoDefinition = \"\";\r\n\r\n switch (estado) {\r\n case EstadoProcessoEnum.NaoDefinido:\r\n estadoDefinition = json.FINISHPROCESS.ESTADOS.LABELNAODEFINIDO;\r\n break;\r\n case EstadoProcessoEnum.Pendente:\r\n estadoDefinition = json.FINISHPROCESS.ESTADOS.LABELPENDENTE;\r\n break;\r\n case EstadoProcessoEnum.Incompleto:\r\n estadoDefinition = json.FINISHPROCESS.ESTADOS.LABELINCOMPLETO;\r\n break;\r\n case EstadoProcessoEnum.Completo:\r\n estadoDefinition = json.FINISHPROCESS.ESTADOS.LABELCOMPLETO;\r\n break;\r\n case EstadoProcessoEnum.ImpParcialI:\r\n estadoDefinition = json.FINISHPROCESS.ESTADOS.LABELIMPPARCINC;\r\n break;\r\n case EstadoProcessoEnum.ImpParcialC:\r\n estadoDefinition = json.FINISHPROCESS.ESTADOS.LABELIMPPARCCOMP;\r\n break;\r\n case EstadoProcessoEnum.Impresso:\r\n estadoDefinition = json.FINISHPROCESS.ESTADOS.LABELIMPRESSO;\r\n break;\r\n case EstadoProcessoEnum.Validado:\r\n estadoDefinition = json.FINISHPROCESS.ESTADOS.LABELVALIDADO;\r\n break;\r\n case EstadoProcessoEnum.Marcacao:\r\n estadoDefinition = json.FINISHPROCESS.ESTADOS.LABELMARCACAO;\r\n break;\r\n }\r\n\r\n return estadoDefinition;\r\n }\r\n\r\n}\r\n","import {EventEmitter, Injectable} from '@angular/core';\r\nimport {MatLegacyDialog as MatDialog} from '@angular/material/legacy-dialog';\r\nimport { Subject } from 'rxjs';\r\nimport {GruposBoletimAlertComponent} from '../../../components/modals/general/grupos-boletim-alert/grupos-boletim-alert.component';\r\nimport {Perfis} from '../../data-objects/perfis/perfis';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AnalisesProviderService {\r\n analisesFilterEmitter: EventEmitter = new EventEmitter();\r\n analisesRemoverEmitter: EventEmitter = new EventEmitter();\r\n\r\n perfisSelected: EventEmitter = new EventEmitter();\r\n listIdsPerfis: string[] = new Array();\r\n\r\n public collapseAnalisesGrupo = new Subject();\r\n\r\n constructor(public dialog: MatDialog) { }\r\n\r\n emitFilterAnalises(str: string){\r\n this.analisesFilterEmitter.emit(str);\r\n }\r\n\r\n emitRemoverAnalises(){\r\n this.analisesRemoverEmitter.emit(true);\r\n }\r\n \r\n collapseAnalisesGrupoClose(){\r\n this.collapseAnalisesGrupo.next(true);\r\n }\r\n\r\n async infoAnaliseColheitaEspecial(){\r\n const dialogRef = await this.dialog.open(GruposBoletimAlertComponent, {\r\n disableClose: true,\r\n });\r\n }\r\n}\r\n","import {EventEmitter, Injectable} from '@angular/core';\r\nimport {Router} from '@angular/router';\r\nimport {ConfigService} from '../../../services/config/config.service';\r\nimport {Setup} from '../../data-objects/setup/setup';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class GeneralProviderService {\r\n loadingEmitter: EventEmitter = new EventEmitter();\r\n\r\n constructor(private router: Router,\r\n private configService: ConfigService) { }\r\n\r\n ShowLoading(show: boolean) {\r\n this.loadingEmitter.emit(show);\r\n }\r\n\r\n GetValuePermission(parametro: string){\r\n if(sessionStorage.getItem('campos-obrigatorios') != null) {\r\n // @ts-ignore\r\n const list = JSON.parse(sessionStorage.getItem('campos-obrigatorios').toString()) as Setup[];\r\n const rowParametro = list.filter(row => row.EDS_PARAMETRO == parametro)[0];\r\n\r\n return rowParametro.EDS_VALOR;\r\n }\r\n\r\n return \"Nao\";\r\n }\r\n\r\n OpenUrl(type: number, url: string){\r\n let urlExternal: string = \"\";\r\n\r\n switch (type){\r\n case 1:\r\n urlExternal = this.configService.appConfig.clientUrl;\r\n break;\r\n case 2:\r\n urlExternal = this.configService.appConfig.edeiaUrl;\r\n break;\r\n case 3:\r\n urlExternal = this.configService.appConfig.sliceUrl;\r\n break;\r\n default:\r\n urlExternal = url;\r\n break;\r\n }\r\n\r\n if(type <= 4) {\r\n window.open(urlExternal, '_blank');\r\n }\r\n else {\r\n sessionStorage.clear();\r\n\r\n window.open(urlExternal, '_self');\r\n }\r\n }\r\n\r\n terminateSession() {\r\n sessionStorage.clear();\r\n\r\n this.router.navigateByUrl('/login', {replaceUrl: true})\r\n }\r\n}\r\n","import {EventEmitter, Injectable} from '@angular/core';\r\nimport {Perfis} from '../../data-objects/perfis/perfis';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ProcessosProviderService {\r\n perfisEmitter: EventEmitter = new EventEmitter();\r\n\r\n constructor() { }\r\n\r\n EmitPerfilUnselected(perfil: Perfis) {\r\n this.perfisEmitter.emit(perfil);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\n\r\ndeclare const tinycolor: any;\r\n\r\nexport interface Color {\r\n name: string;\r\n hex: string;\r\n darkContrast: boolean;\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ThemeProviderService {\r\n darkContrast = false;\r\n primaryColor = '#599EC5';\r\n primaryColorPalette: Color[] = [];\r\n\r\n constructor() { }\r\n\r\n loadTheme(color: string, darkContrast: boolean) {\r\n this.primaryColor = color;\r\n this.darkContrast = darkContrast;\r\n\r\n if(color == \"\")\r\n this.primaryColor = '#599EC5';\r\n\r\n this.primaryColorPalette = this.computeColors(this.primaryColor);\r\n this.updateTheme(this.primaryColorPalette, 'primary');\r\n }\r\n\r\n updateTheme(colors: Color[], theme: string) {\r\n colors.forEach(color => {\r\n document.documentElement.style.setProperty(\r\n `--theme-${theme}-${color.name}`,\r\n color.hex\r\n );\r\n document.documentElement.style.setProperty(\r\n `--theme-${theme}-contrast-${color.name}`,\r\n color.darkContrast ? 'rgba(black, 0.87)' : 'white'\r\n );\r\n });\r\n }\r\n\r\n computeColors(hex: string): Color[] {\r\n return [\r\n this.getColorObject(tinycolor(hex).lighten(52), '50'),\r\n this.getColorObject(tinycolor(hex).lighten(37), '100'),\r\n this.getColorObject(tinycolor(hex).lighten(26), '200'),\r\n this.getColorObject(tinycolor(hex).lighten(12), '300'),\r\n this.getColorObject(tinycolor(hex).lighten(6), '400'),\r\n this.getColorObject(tinycolor(hex), '500'),\r\n this.getColorObject(tinycolor(hex).darken(6), '600'),\r\n this.getColorObject(tinycolor(hex).darken(12), '700'),\r\n this.getColorObject(tinycolor(hex).darken(18), '800'),\r\n this.getColorObject(tinycolor(hex).darken(24), '900'),\r\n this.getColorObject(tinycolor(hex).lighten(50).saturate(30), 'A100'),\r\n this.getColorObject(tinycolor(hex).lighten(30).saturate(30), 'A200'),\r\n this.getColorObject(tinycolor(hex).lighten(10).saturate(15), 'A400'),\r\n this.getColorObject(tinycolor(hex).lighten(5).saturate(5), 'A700')\r\n ];\r\n }\r\n\r\n getColorObject(value: any, name: string): Color {\r\n const c = tinycolor(value);\r\n return {\r\n name: name,\r\n hex: c.toHexString(),\r\n darkContrast: this.darkContrast\r\n };\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { HTTP_INTERCEPTORS } from '@angular/common/http';\r\nimport { LanguangeInteceptor } from './language.interceptor';\r\n@NgModule({\r\n providers: [\r\n LanguangeInteceptor,\r\n {\r\n provide: HTTP_INTERCEPTORS,\r\n useClass: LanguangeInteceptor,\r\n multi: true,\r\n },\r\n ],\r\n})\r\nexport class InterceptorModule {}\r\n","import { Injectable } from '@angular/core';\r\nimport {HttpEvent, HttpHandler, HttpHeaders, HttpInterceptor, HttpRequest} from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\n@Injectable()\r\nexport class LanguangeInteceptor implements HttpInterceptor {\r\n\r\n constructor(private translate: TranslateService){}\r\n\r\n intercept(req: HttpRequest, next: HttpHandler): Observable> {\r\n if(req.url.includes(\"api\")){\r\n let newHeaders = []\r\n\r\n //@ts-ignore\r\n const language = localStorage.getItem(\"language\").toString();\r\n if(language !== null)\r\n newHeaders.push([\"Lang\",language]);\r\n else\r\n newHeaders.push([\"Lang\",this.translate.currentLang]);\r\n\r\n\r\n let newHeader = new HttpHeaders();\r\n newHeaders.forEach(header => {\r\n newHeader = newHeader.append(header[0], header[1]); \r\n });\r\n const cloned = req.clone({\r\n headers: newHeader\r\n });\r\n \r\n return next.handle(cloned); \r\n } \r\n \r\n return next.handle(req);\r\n }\r\n\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport {ConfigService} from '../config/config.service';\r\nimport {HttpClient} from '@angular/common/http';\r\nimport {GruposAnalises} from '../../helpers/data-objects/grupos_analises/grupos-analises';\r\nimport {Perfis} from '../../helpers/data-objects/perfis/perfis';\r\nimport {AnalisesConfig} from '../../helpers/data-objects/_general/analises.config';\r\nimport { PerfisConfig } from 'src/app/helpers/data-objects/_general/perfis.config';\r\nimport { Subject } from 'rxjs';\r\nimport { TiposUtente } from 'src/app/helpers/data-objects/tipos-utente/tipos-utente';\r\nimport { Titulos } from 'src/app/helpers/data-objects/titulos/titulos';\r\nimport { BuscaTraducoesResponse } from 'src/app/helpers/data-objects/_response/traducoes/busca-traducoes-response';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AnalisesService {\r\n\r\n constructor(private configService: ConfigService,\r\n private http: HttpClient) { }\r\n\r\n getGruposAnalises(entidade: string){\r\n const url = this.configService.appConfig.api;\r\n // @ts-ignore\r\n let posto = JSON.parse(sessionStorage.getItem('posto').toString()) as Posto;;\r\n\r\n return this.http.get(url+'api/grupos-boletins-analises?entidade='+entidade+'&posId='+posto.Id).toPromise();\r\n }\r\n \r\n getPerfis(entidade: string){\r\n const url = this.configService.appConfig.api;\r\n // @ts-ignore\r\n let posto = JSON.parse(sessionStorage.getItem('posto').toString()) as Posto;;\r\n\r\n return this.http.get(url+'api/perfis-analises?entidade='+entidade+'&posId='+posto.Id).toPromise();\r\n }\r\n\r\n getTraducoes(entidade: string) {\r\n const url = this.configService.appConfig.api;\r\n // @ts-ignore\r\n let posto = JSON.parse(sessionStorage.getItem('posto').toString()) as Posto;;\r\n\r\n return this.http.get(url+'api/buscaTraducoes?entidade='+entidade+'&posId='+posto.Id);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport {ConfigService} from \"../config/config.service\";\r\nimport {HttpClient, HttpHeaders} from '@angular/common/http';\r\nimport {AutenticacaoResponse} from '../../helpers/data-objects/_response/autenticacao/autenticacao-response';\r\nimport {AutenticacaoRequest} from '../../helpers/data-objects/_request/autenticacao/autenticacao-request';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthenticationService {\r\n\r\n constructor(private configService: ConfigService,\r\n private http: HttpClient) { }\r\n\r\n login(body: AutenticacaoRequest){\r\n let _headers = new HttpHeaders().set('Content-Type','application/json')\r\n\r\n const url = this.configService.appConfig.api;\r\n\r\n return this.http.post(url+'api/posto', body, {headers:_headers}).toPromise();\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport {AppConfig} from '../../helpers/data-objects/_general/app.config';\r\nimport {HttpClient} from '@angular/common/http';\r\nimport {retry} from 'rxjs/operators';\r\nimport {ThemeProviderService} from '../../helpers/providers/theme/theme-provider.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ConfigService {\r\n appConfig: AppConfig = new AppConfig();\r\n\r\n constructor(private http: HttpClient,\r\n private themeProviderService: ThemeProviderService) { }\r\n\r\n loadAppConfig() {\r\n this.http.get(\"./assets/config/app.config.json\")\r\n .pipe(\r\n retry(2),\r\n )\r\n .subscribe(\r\n (data: AppConfig) => {\r\n this.appConfig = { ...data };\r\n this.themeProviderService.loadTheme(this.appConfig.webSiteColor, this.appConfig.darkContrast);\r\n });\r\n }\r\n\r\n getConfig(){\r\n return this.appConfig;\r\n }\r\n}\r\n","import { EventEmitter, Injectable, Output } from '@angular/core';\r\nimport {HttpClient, HttpHeaders} from '@angular/common/http';\r\nimport {ProcessoRequest} from '../../helpers/data-objects/_request/processo/processo-request';\r\nimport {ConfigService} from '../config/config.service';\r\nimport {ProcessosResponse} from '../../helpers/data-objects/_response/processos/processos-response';\r\nimport {AmostrasResponse} from '../../helpers/data-objects/_response/amostras/amostras-response';\r\nimport {ProcessoReportRequest} from '../../helpers/data-objects/_request/processo/processo-report-request';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class LanguageJsonService {\r\n @Output('') languageChanged: EventEmitter = new EventEmitter();\r\n\r\n constructor(private http: HttpClient,\r\n private translate: TranslateService) { }\r\n\r\n async getLanguageJson(){\r\n let url = './assets/i18n/'+this.translate.currentLang+'.json';\r\n let json: any;\r\n await this.http.get(url).toPromise().then(data => {\r\n json = data;\r\n });\r\n\r\n return json;\r\n }\r\n\r\n emitLanguageChanged(){\r\n this.languageChanged.emit(\"teste\");\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport {HttpClient, HttpHeaders} from '@angular/common/http';\r\nimport {ProcessoRequest} from '../../helpers/data-objects/_request/processo/processo-request';\r\nimport {ConfigService} from '../config/config.service';\r\nimport {ProcessosResponse} from '../../helpers/data-objects/_response/processos/processos-response';\r\nimport {AmostrasResponse} from '../../helpers/data-objects/_response/amostras/amostras-response';\r\nimport {ProcessoReportRequest} from '../../helpers/data-objects/_request/processo/processo-report-request';\r\nimport { InserirProcessoResponse } from 'src/app/helpers/data-objects/_response/processos/inserir-processo-reponse';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ProcessosService {\r\n\r\n constructor(private http: HttpClient,\r\n private configService: ConfigService) { }\r\n\r\n SaveProcesso(body: ProcessoRequest){\r\n const url: string = this.configService.appConfig.api;\r\n\r\n // @ts-ignore\r\n body.key = sessionStorage.getItem('k-recolha').toString();\r\n\r\n return this.http.post(url+'api/inserir-processo', body).toPromise();\r\n }\r\n\r\n GetProcessoResumoPDF(recolha: boolean, body: ProcessoReportRequest){\r\n const url: string = this.configService.appConfig.api;\r\n\r\n return this.http.post(url+'api/processo-resumo?pedidoRecolha='+recolha, body, { responseType: 'blob' as 'json' }).toPromise();\r\n }\r\n\r\n GetAmostrasForProcesso(){\r\n return this.http.get('assets/config/amostras.data.json').toPromise();\r\n }\r\n\r\n GetResponseTest(){\r\n return this.http.get('assets/data/response.json').toPromise();\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport {ConfigService} from './config/config.service';\r\nimport {ProcessosService} from './processos/processos.service';\r\nimport {AnalisesService} from './analises/analises.service';\r\nimport {AuthenticationService} from './authentication/authentication.service';\r\nimport {TubosService} from './tubos/tubos.service';\r\nimport { LanguageJsonService } from './language-json/language-json.service';\r\nimport { InterceptorModule } from '../interceptor/interceptor.module';\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule\r\n ],\r\n providers: [\r\n ConfigService,\r\n ProcessosService,\r\n AnalisesService,\r\n AuthenticationService,\r\n TubosService,\r\n LanguageJsonService\r\n ]\r\n})\r\nexport class ServicesModule { }\r\n","import { Injectable } from '@angular/core';\r\nimport {ProcessoReportRequest} from '../../helpers/data-objects/_request/processo/processo-report-request';\r\nimport {HttpClient} from '@angular/common/http';\r\nimport {ConfigService} from '../config/config.service';\r\nimport {Posto} from '../../helpers/data-objects/posto/posto';\r\nimport {TubosPedidoResponse} from '../../helpers/data-objects/_request/tubos_pedido/tubos-pedido-response';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class TubosService {\r\n\r\n constructor(private http: HttpClient,\r\n private configService: ConfigService) { }\r\n\r\n InserirPedido(recolha: boolean){\r\n const url: string = this.configService.appConfig.api;\r\n\r\n const tipo = recolha ? 'Recolha': 'Material';\r\n // @ts-ignore\r\n const posto = JSON.parse(sessionStorage.getItem('posto').toString()) as Posto;\r\n // @ts-ignore\r\n const key = sessionStorage.getItem('k-recolha').toString();\r\n\r\n return this.http.get(url+'api/pedidoTubo?key='+key+'&posto='+posto.Id+\"&postoNome=\"+posto.Nome+'&Email='+posto.Email+'&tipo='+tipo).toPromise();\r\n }\r\n\r\n AnularPedido(ppID: number){\r\n const url: string = this.configService.appConfig.api;\r\n\r\n // @ts-ignore\r\n const posto = JSON.parse(sessionStorage.getItem('posto').toString()) as Posto;\r\n // @ts-ignore\r\n const key = sessionStorage.getItem('k-recolha').toString();\r\n\r\n return this.http.get(url+'api/cancelarTubo?key='+key+'&posto='+posto.Id+\"&postoNome=\"+posto.Nome+'&Email='+posto.Email+'&ppID='+ppID).toPromise();\r\n }\r\n}\r\n","// This file can be replaced during build by using the `fileReplacements` array.\r\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\r\n// The list of file replacements can be found in `angular.json`.\r\n\r\nexport const environment = {\r\n production: false\r\n};\r\n\r\n/*\r\n * For easier debugging in development mode, you can import the following file\r\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\r\n *\r\n * This import should be commented out in production mode because it will have a negative impact\r\n * on performance if an error is thrown.\r\n */\r\n// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.\r\n","import { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\n\r\nimport { AppModule } from './app/app.module';\r\nimport { environment } from './environments/environment';\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\nplatformBrowserDynamic().bootstrapModule(AppModule)\r\n .catch(err => console.error(err));\r\n"],"names":["RouterModule","AppPrivateGuard","routes","path","redirectTo","pathMatch","loadChildren","then","m","CorePublicModule","CorePrivateModule","canActivate","AppRoutingModule","forRoot","imports","exports","Subscription","i0","AppComponent","constructor","generalProvider","translate","language","localStorage","getItem","addLangs","use","navigator","includes","setItem","ngOnInit","BackgroundEvents","ngOnDestroy","loadingSubscription","unsubscribe","loadingEmitter","subscribe","result","showLoading","selectors","decls","vars","consts","template","APP_INITIALIZER","BrowserModule","BrowserAnimationsModule","HelpersModule","ServicesModule","ConfigService","HttpClient","HttpClientModule","ToastrModule","ControlsModule","TranslateLoader","TranslateModule","TranslateHttpLoader","InterceptorModule","HttpLoaderFactory","http","createTranslateLoader","AppModule","bootstrap","provide","multi","deps","useFactory","appConfigService","loadAppConfig","autoDismiss","preventDuplicates","progressBar","enableHtml","easeTime","loader","declarations","AmostrasResponse","AmostrasGrupoComponent","checkboxChange","amostra","Quantity","Selected","quantityChange","inputs","grupoAmostra","readonly","onlySelected","AnaliseProcessoResponse","AnaliseCardComponent","analise","showPreco","Analises","AnaliseComponent","analisesProviderService","Array","ManageRemoveAllow","perfisSubscription","perfisSelected","perfis","listPerfis","isAllowRemove","some","perfil","selected","ana","ANA_ID","trim","RemoveAnalise","emitRemoverAnalises","MAT_BOTTOM_SHEET_DATA","Posto","BottomSheet","_bottomSheetRef","data","sessionStorage","posto","JSON","parse","toString","removePerfil","event","PerfilID","dismiss","preventDefault","CommonModule","GrupoAnalisesComponent","DesignModule","FormsModule","PipesModule","PerfisComponent","LoadingComponent","DirectivesModule","MedicoPrescritorComponent","TuboComponent","LanguageButtonComponent","MatLegacyListModule","MatListModule","GruposAnalises","generalProviderService","ngAfterContentInit","ShowLoading","analiseFilteringSubscription","grupo","collapsed","collapseAnalisesGrupo","analisesFilterEmitter","analiseFilter","analiseStr","collapseClick","collapseAnalisesGrupoClose","listTopAnalises","ctx","languageSrvc","currentLanguage","currentLang","iconSource","ChangeLanguage","setTimeout","emitLanguageChanged","MedicosPrescritores","SelectMedicoPrescritor","medicoPrescritor","MED_SELECT","listMedicosPrescritor","filter","medico","MED_ID","forEach","Perfis","configService","processosProviderService","ToggleAnalises","expanded","SelectPerfil","EmitPerfilUnselected","listIdsPerfis","push","GRA_ID","trimEnd","perfilEquivalent","listPerfisLimitations","appConfig","perfilLimitations","split","limitation","substring","length","id","slice","perfilRow","row","undefined","getSelectLabel","Tubos","tubo","GruposBoletimAlertComponent","dialogRef","CloseAlert","close","AppConfig","CategoriasAmostras","Date","MatLegacyButtonModule","MatButtonModule","MatLegacyCardModule","MatCardModule","MatLegacyFormFieldModule","MatFormFieldModule","MatLegacyInputModule","MatInputModule","MatToolbarModule","MatLegacyDialogModule","MatDialogModule","MatLegacyCheckboxModule","MatCheckboxModule","MatDividerModule","MatButtonToggleModule","MatLegacySelectModule","MatSelectModule","MatLegacyAutocompleteModule","MatAutocompleteModule","MatLegacyTooltipModule","MatTooltipModule","NumbersOnlyInputDirective","elRef","onInputChange","initalValue","nativeElement","value","replace","stopPropagation","hostBindings","EstadoProcessoEnum","router","route","state","navigateByUrl","factory","providedIn","GuardsModule","ThemeProviderService","GeneralProviderService","AnalisesProviderService","AmostrasEnviadasFilterPipe","transform","list","e","Amostras","f","pure","AmostrasFilterPipe","GrupoAmostrasFilterPipe","FilterAnalisesProcessosPipe","forceUpdate","ANA_NAOEXECUCAO","FilterAnalisesPipe","analiseTop","ANA_SIGLA","toLowerCase","PriceAnalisesPipe","listGrupos","typePrice","date","CalculatePrice","CalculateSubTotal","CalculateTaxaExtra","CalculateTotal","CalculateTotalIva","grupos","ETA_VALOR","Math","round","listPerfisSelected","secondary","item","indexOf","TXE_VALOR","sort","a","b","CalculateIVA","subTotal","taxaExtra","total","IVA","EmptyEspeciePipe","utente","TipoDescricao","FilterGruposAnalisesProcessosPipe","FilterGruposAnalisesPipe","destaque","FilterMedicosPrescritoresPipe","filterStr","MED_NOME","ListPerfisFilterPipe","definition","GRA_DEFINICAO","ListPerfisSelectedPipe","PerfisSelectedPipe","PriceAnalisesFinishPipe","ProcessoEstadoDefinitionPipe","totalValue","ValorDoente","languageJsonService","estado","json","getLanguageJson","estadoDefinition","NaoDefinido","FINISHPROCESS","ESTADOS","LABELNAODEFINIDO","Pendente","LABELPENDENTE","Incompleto","LABELINCOMPLETO","Completo","LABELCOMPLETO","ImpParcialI","LABELIMPPARCINC","ImpParcialC","LABELIMPPARCCOMP","Impresso","LABELIMPRESSO","Validado","LABELVALIDADO","Marcacao","LABELMARCACAO","EventEmitter","Subject","dialog","emitFilterAnalises","str","emit","analisesRemoverEmitter","next","infoAnaliseColheitaEspecial","open","disableClose","show","GetValuePermission","parametro","rowParametro","EDS_PARAMETRO","EDS_VALOR","OpenUrl","type","url","urlExternal","clientUrl","edeiaUrl","sliceUrl","window","clear","terminateSession","replaceUrl","ProcessosProviderService","perfisEmitter","loadTheme","color","darkContrast","primaryColor","primaryColorPalette","computeColors","updateTheme","colors","theme","document","documentElement","style","setProperty","name","hex","getColorObject","tinycolor","lighten","darken","saturate","c","toHexString","HTTP_INTERCEPTORS","LanguangeInteceptor","useClass","HttpHeaders","intercept","req","newHeaders","newHeader","header","append","cloned","clone","headers","handle","AnalisesService","getGruposAnalises","entidade","api","get","Id","toPromise","getPerfis","getTraducoes","AuthenticationService","login","body","_headers","set","post","retry","themeProviderService","pipe","webSiteColor","getConfig","LanguageJsonService","languageChanged","ProcessosService","SaveProcesso","key","GetProcessoResumoPDF","recolha","responseType","GetAmostrasForProcesso","GetResponseTest","TubosService","InserirPedido","tipo","Nome","Email","AnularPedido","ppID","environment","production","enableProdMode","__NgCli_bootstrap_1","bootstrapModule","catch","err","console","error"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}