{"version":3,"file":"projects_vr-public-website_src_app_features_newsPageInformation_newsPageInformation_module_ts.fb60b4bfcf86838b.js","mappings":"2XASM,MAAOA,EAAP,MAEFC,YAAmBC,EAAyBC,GAAzBC,YAAyBA,iBAAkC,CAEvEC,sBAAsBC,GACzB,OAAOF,KAAKF,KAAKK,IAAIH,KAAKD,WAAWK,kBAAoB,wCAA0CF,EACvG,CAEOG,8BAA8BH,EAAqBI,GACtD,IAAIC,EAAqBL,EAAc,IAAMM,iBAA4B,IAAMA,iBAA2B,IAAMF,EAChH,OAAGN,KAAKD,WAAWU,oCACfF,EAAYL,EAAc,IAAMM,iBAA4B,IAAMA,qCAA8C,IAAMF,GAEnHN,KAAKF,KAAKK,IAAIH,KAAKD,WAAWW,cAAgB,0BAA4BH,EACrF,GAdE,IAAOX,EAAPe,wCAAOf,GAA0BgB,oDAA1BhB,EAA0BiB,QAA1BjB,EAA0B,qBAFvB,oECCRkB,+BAA2C,+BAA3CA,CAA2C,oBAA3CA,CAA2C,aAGeA,SAAmBA,YAG3EA,iBAA2B,aAC2BA,SAAqBA,4CAJnBA,+BAIFA,2DAR1DA,SACEA,uCAUFA,kCAVwBA,yDAJ5BA,eAAkC,aAC6BA,SAA0BA,QACvFA,yBACEA,gCAYFA,0CAd6DA,+BAEzBA,6EAJxCA,eACEA,uBAiBFA,kCAjBQA,uCCaF,MAAOC,EAAP,MAGJlB,YACUmB,EACDC,EACAC,EACAC,EACAC,EACAC,EACAC,GANCtB,aACDA,kCACAA,eACAA,+BACAA,sBACAA,wBACAA,qBAGT,CACAuB,WACEvB,KAAKwB,YAAcxB,KAAKmB,wBAAwBM,iBAChDzB,KAAK0B,qBACL1B,KAAKsB,eAAeK,YAAYnB,kBAA4BR,KAAKwB,YACnE,CAEAE,qBACM1B,KAAKwB,cACPxB,KAAKkB,QAAQU,MAAK,GACb5B,KAAKmB,wBAAwBU,iBAchC7B,KAAKiB,2BAA2BhB,sBAAsBD,KAAKwB,aAAaM,UAAWC,IAC7EA,GACF/B,KAAKgC,iBAAmBD,EAASE,uBACjCjC,KAAKkB,QAAQU,MAAK,KAElB5B,KAAKoB,eAAec,MAAMlC,KAAKqB,iBAAiBc,QAAQ,4DAA4D,GACpHnC,KAAKkB,QAAQU,MAAK,GAAK,EAExB,KACD5B,KAAKoB,eAAec,MAAMlC,KAAKqB,iBAAiBc,QAAQ,4DAA4D,GACpHnC,KAAKkB,QAAQU,MAAK,EAAK,GAvBzB5B,KAAKiB,2BAA2BZ,8BAA8BL,KAAKwB,YAAahB,mBAA4BsB,UAAWC,IACjHA,GACF/B,KAAKgC,iBAAmBD,EAASE,uBACjCjC,KAAKkB,QAAQU,MAAK,KAElB5B,KAAKoB,eAAec,MAAMlC,KAAKqB,iBAAiBc,QAAQ,4DAA4D,GACpHnC,KAAKkB,QAAQU,MAAK,GAAK,EAExB,KACD5B,KAAKoB,eAAec,MAAMlC,KAAKqB,iBAAiBc,QAAQ,4DAA4D,GACpHnC,KAAKkB,QAAQU,MAAK,EAAK,GAiB/B,GAnDI,IAAOb,EAAPqB,wCAAOrB,GAA4BH,uGAA5BG,EAA4BsB,6UDjBzCvB,iBAEAA,iBACAA,uBAmBAA,eAnByBA,48CEKzB,MAAMwB,EAAiB,CACrB,CACEC,KAAM,GACNC,UAAWzB,IAcF0B,EAAP,YAAOA,EAAPC,EACGA,aAAa,CAClBC,KAAM5B,yCAFG0B,EAAkC,0BAAlCA,gCAPTG,cAAsBN,GACtBO,KACAC,IACAC,IACAC","names":["NewsPageInformationService","constructor","http","appService","this","getLabsiteInformation","labsiteCode","get","baseApiUrlForCore","getLabsiteInformationFromBlob","infoType","urlParams","AppConstants","isPublicWebSiteSyncronizerEnabled","publicFileUrl","_NewsPageInformationService","core","factory","i0","NewsPageInformationComponent","route","newsPageInformationService","spinner","globalRepositoryService","messageService","translateService","loggingService","ngOnInit","labSiteCode","getLabsiteCode","getNewsInformation","logPageView","show","volunteerEmailId","subscribe","response","newsPageSections","newsPageSectionDetails","alert","instant","_NewsPageInformationComponent","selectors","routes","path","component","NewsPageInformationComponentModule","_NewsPageInformationComponentModule","lazy","RouterModule","CommonModule","MaterialModule","SharedModule","TranslateModule"],"sourceRoot":"webpack:///","sources":["./projects/vr-public-website/src/app/features/newsPageInformation/newsPageInformation.service.ts","./projects/vr-public-website/src/app/features/newsPageInformation/newsPageInformation.component.html","./projects/vr-public-website/src/app/features/newsPageInformation/newsPageInformation.component.ts","./projects/vr-public-website/src/app/features/newsPageInformation/newsPageInformation.module.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { AppSettingsService } from '../../core/core.module';\r\nimport { AppConstants } from '../../shared/constants/app-constants';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class NewsPageInformationService { \r\n\r\n constructor(public http: HttpClient, public appService: AppSettingsService) { }\r\n\r\n public getLabsiteInformation(labsiteCode: string): Observable {\r\n return this.http.get(this.appService.baseApiUrlForCore + 'labsites/GetNewsInformationByLabsite/' + labsiteCode);\r\n }\r\n\r\n public getLabsiteInformationFromBlob(labsiteCode: string, infoType:string): Observable { \r\n let urlParams: string = labsiteCode + '/' + AppConstants.Blob.LabSite + '/' + AppConstants.Blob.LabSite+ '/' + infoType;\r\n if(this.appService.isPublicWebSiteSyncronizerEnabled){\r\n urlParams = labsiteCode + '/' + AppConstants.Blob.LabSite + '/' + AppConstants.Blob.LabsiteByPublicSynchronizer+'/' + infoType;\r\n }\r\n return this.http.get(this.appService.publicFileUrl + 'Files/downloadSpecific/' + urlParams ); \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
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
","import { Component, OnInit } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { GlobalRepositoryService } from '../../core/repository/global-repository.service';\r\nimport { SpinnerService } from '../../core/spinner/spinner.service';\r\nimport { LoggingService } from '../../main/services/logging.service';\r\nimport { MessageService } from '../../main/services/message.service';\r\nimport { NewsInformationByLabsiteResponseDto, NewsPageSectionDetails } from './newsPageInformation.model';\r\nimport { NewsPageInformationService } from './newsPageInformation.service';\r\nimport { AppConstants } from '../../shared/constants/app-constants';\r\n\r\n\r\n@Component({\r\n selector: 'anms-news-page-information',\r\n templateUrl: './newsPageInformation.component.html',\r\n styleUrls: ['./newsPageInformation.component.scss'],\r\n})\r\nexport class NewsPageInformationComponent implements OnInit {\r\n labSiteCode?: string;\r\n newsPageSections !: NewsPageSectionDetails[];\r\n constructor(\r\n private route: ActivatedRoute,\r\n public newsPageInformationService: NewsPageInformationService,\r\n public spinner: SpinnerService,\r\n public globalRepositoryService: GlobalRepositoryService,\r\n public messageService: MessageService,\r\n public translateService: TranslateService,\r\n public loggingService: LoggingService\r\n ) {\r\n\r\n }\r\n ngOnInit(): void {\r\n this.labSiteCode = this.globalRepositoryService.getLabsiteCode();\r\n this.getNewsInformation();\r\n this.loggingService.logPageView(AppConstants.Blob.NewsPage, this.labSiteCode);\r\n }\r\n\r\n getNewsInformation() {\r\n if (this.labSiteCode) {\r\n this.spinner.show(true);\r\n if (!this.globalRepositoryService.volunteerEmailId) {\r\n this.newsPageInformationService.getLabsiteInformationFromBlob(this.labSiteCode, AppConstants.Blob.NewsPage).subscribe((response: NewsInformationByLabsiteResponseDto) => {\r\n if (response) {\r\n this.newsPageSections = response.newsPageSectionDetails;\r\n this.spinner.show(false);\r\n } else {\r\n this.messageService.alert(this.translateService.instant('LabsiteInformation.ErrorWhileFetchingLabsiteInformation'), true);\r\n this.spinner.show(false);\r\n }\r\n }, () => {\r\n this.messageService.alert(this.translateService.instant('LabsiteInformation.ErrorWhileFetchingLabsiteInformation'), true);\r\n this.spinner.show(false);\r\n });\r\n } else {\r\n this.newsPageInformationService.getLabsiteInformation(this.labSiteCode).subscribe((response: NewsInformationByLabsiteResponseDto) => {\r\n if (response) {\r\n this.newsPageSections = response.newsPageSectionDetails;\r\n this.spinner.show(false);\r\n } else {\r\n this.messageService.alert(this.translateService.instant('LabsiteInformation.ErrorWhileFetchingLabsiteInformation'), true);\r\n this.spinner.show(false);\r\n }\r\n }, () => {\r\n this.messageService.alert(this.translateService.instant('LabsiteInformation.ErrorWhileFetchingLabsiteInformation'), true);\r\n this.spinner.show(false);\r\n });\r\n }\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MaterialModule } from '../../shared/material.module';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport { SharedModule } from '../../shared/shared.module';\r\nimport { NewsPageInformationComponent } from './newsPageInformation.component';\r\n\r\nconst routes: Routes = [\r\n {\r\n path: '',\r\n component: NewsPageInformationComponent\r\n }\r\n];\r\n\r\n@NgModule({\r\n declarations: [NewsPageInformationComponent],\r\n imports: [\r\n RouterModule.forChild(routes),\r\n CommonModule,\r\n MaterialModule,\r\n SharedModule,\r\n TranslateModule\r\n ]\r\n})\r\nexport class NewsPageInformationComponentModule {\r\n static components = {\r\n lazy: NewsPageInformationComponent\r\n };\r\n}\r\n"],"x_google_ignoreList":[]}