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EAAwB,CAACE,eAAe,CAACxH,sDAAS,CAAC,CAChDyH,KAAK,CAAC5D,GAAG,IAAInD,OAAO,CAAClE,KAAK,CAACqH,GAAG,CAAC,CAAC","sources":["./src/app/app-routing.module.ts","./src/app/app-service.ts","./src/app/app.component.ts","./src/app/app.component.html","./src/app/app.module.ts","./src/app/shared/alert-dialog/alert-dialog.component.ts","./src/app/shared/alert-dialog/alert-dialog.component.html","./src/app/shared/app-insight.ts","./src/app/shared/app.service.ts","./src/app/shared/authGuard.service.ts","./src/app/shared/custom-error-handler.ts","./src/app/shared/interceptor.ts","./src/app/shared/shared.module.ts","./src/app/shared/shared.service.ts","./src/constants.ts","./src/environments/environment.ts","./src/main.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport { AuthGuard } from './shared/authGuard.service';\r\n\r\nconst routes: Routes = [\r\n{ path: '', redirectTo: 'login', pathMatch: 'full' },\r\n{ path: '**', redirectTo: 'login' }];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forRoot(routes, {})],\r\n exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n","import { Injectable } from '@angular/core';\r\nimport { environment } from '../environments/environment'\r\nimport { Constants } from 'src/constants';\r\nimport { AppService } from './shared/app.service';\r\n\r\n@Injectable()\r\nexport class AuthenticationService {\r\n\r\n constructor(private appService: AppService) { }\r\n\r\n userInfoAPI() {\r\n return this.appService.\r\n getAction(environment.apiUrl + Constants.endpointUrls.me);\r\n }\r\n\r\n authenticateAPI() {\r\n return this.appService.\r\n getAction(environment.apiUrl + Constants.endpointUrls.authenticate);\r\n }\r\n\r\n}\r\n","import { Component } from '@angular/core';\r\nimport { AuthenticationService } from './app-service';\r\nimport { AppInsightService } from './shared/app-insight';\r\nimport { environment } from '../environments/environment'\r\nimport * as _ from 'lodash';\r\nimport { Constants } from 'src/constants';\r\nimport { AlertDialogComponent, AlertTypes } from './shared/alert-dialog/alert-dialog.component';\r\nimport { MatDialog } from '@angular/material/dialog';\r\n\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.sass']\r\n})\r\nexport class AppComponent {\r\n title = 'NEXTSTEP';\r\n\r\n constructor(\r\n private appInsightService: AppInsightService,\r\n private authService: AuthenticationService,\r\n private dialog: MatDialog\r\n ) { }\r\n\r\n redirectURL: any;\r\n isSupportEnabled: any\r\n ngOnInit(): void {\r\n this.isUserAuthenticated();\r\n }\r\n\r\n // check the user is authenticated or not if user is authenticated, call the me API otherwise go to login screen\r\n isUserAuthenticated = (): void => {\r\n this.authService.authenticateAPI().subscribe(response => {\r\n if (response && response.message && response.message == 'User is authenticated') {\r\n this.getUserInfo();\r\n } else if (response && response.message && response.message == 'User is not authenticated') {\r\n window.location.href = environment.apiUrl + Constants.endpointUrls.singlesignon;\r\n }\r\n }, error => {\r\n if (error && error.status === 404) {\r\n this.getUserInfo();\r\n } else {\r\n window.location.href = environment.apiUrl + Constants.endpointUrls.singlesignon;\r\n }\r\n });\r\n }\r\n\r\n // Get user details using '/authentication/me' API\r\n getUserInfo = (): void => {\r\n this.authService.userInfoAPI().subscribe(response => {\r\n if (response) {\r\n this.setLoginData(response);\r\n }\r\n }, error => {\r\n if (error.status === 403) {\r\n const dialogRef = this.dialog.open(AlertDialogComponent, {\r\n panelClass: 'alert-dialog',\r\n disableClose: true,\r\n data: {\r\n msg: Constants.messages[403],\r\n type: AlertTypes.ALERTCONFIRM\r\n }\r\n });\r\n dialogRef.keydownEvents().subscribe(e => {\r\n if (e.keyCode === 27) {\r\n dialogRef.close();\r\n }\r\n });\r\n dialogRef.afterClosed().subscribe(result => {\r\n window.location.href = environment.apiUrl + Constants.endpointUrls.singlesignon;\r\n });\r\n } else {\r\n window.location.href = environment.apiUrl + Constants.endpointUrls.singlesignon;\r\n }\r\n });\r\n }\r\n\r\n // stored on the localstorage for the future purpose /authentication/me API and stored on the localstorage.loggedInUserInfo\r\n setLoginData = (data): void => {\r\n localStorage.setItem('customerNumber', data.accountNumber);\r\n localStorage.setItem('TOKEN', data.token);\r\n localStorage.setItem('loggedInUserInfo', JSON.stringify(data))\r\n if (data && data.roleNames && data.roleNames.length) {\r\n _.forEach(data.roleNames, (item, i) => {\r\n if (item === 'Platform Support') {\r\n localStorage.setItem('supportAccess', 'true');\r\n this.isSupportEnabled = true\r\n }\r\n });\r\n }\r\n if (data.type === 1) {\r\n this.isSupportEnabled ? this.redirectURL = '/support/' : this.redirectURL = '/admin/'\r\n } else if (data.type === 2) {\r\n this.isSupportEnabled ? this.redirectURL = '/support/' : this.redirectURL = '/app/'\r\n }\r\n window.location.assign(this.redirectURL);\r\n }\r\n}\r\n"," ","import { BrowserModule } from '@angular/platform-browser';\r\nimport { NgModule,ErrorHandler } from '@angular/core';\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { LocationStrategy, HashLocationStrategy} from '@angular/common';\r\nimport { AppComponent } from './app.component';\r\nimport { SharedModule } from './shared/shared.module';\r\nimport { AppService } from './shared/app.service';\r\nimport { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';\r\nimport {ErrorInterceptor} from './shared/interceptor';\r\nimport { AuthGuard } from './shared/authGuard.service';\r\nimport {AppInsightService} from './shared/app-insight';\r\nimport {CustomErrorHandler} from './shared/custom-error-handler';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\nimport { NgxSpinnerModule } from 'ngx-spinner';\r\nimport { AuthenticationService } from './app-service';\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent,\r\n ],\r\n imports: [\r\n BrowserModule,\r\n AppRoutingModule,\r\n SharedModule,\r\n HttpClientModule,\r\n BrowserAnimationsModule,\r\n NgxSpinnerModule\r\n\r\n ],\r\n providers: [AppInsightService,AuthenticationService, AppService,\r\n AuthGuard, {provide: LocationStrategy, useClass: HashLocationStrategy},\r\n {\r\n provide: ErrorHandler,\r\n useClass: CustomErrorHandler,\r\n },],\r\n bootstrap: [AppComponent]\r\n})\r\nexport class AppModule { }\r\n","import { Component, OnInit, Inject } from '@angular/core';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport {SharedService} from '../shared.service'\r\nimport { Router } from '@angular/router';\r\n\r\nexport enum AlertTypes {\r\n ALERT = 'alert',\r\n SUCCESS = 'success',\r\n CONFIRM = 'confirm',\r\n INFO = 'info',\r\n WARN = 'warn',\r\n DOWN = 'down',\r\n ALERTCONFIRM = 'alertconfirm',\r\n FIELDALERTCONFIRM = 'fieldalertconfirm',\r\n PROCESSALERTCONFIRM = 'processalertconfirm',\r\n}\r\n\r\n@Component({\r\n selector: 'app-alert-dialog',\r\n templateUrl: './alert-dialog.component.html',\r\n styleUrls: ['./alert-dialog.component.scss']\r\n})\r\nexport class AlertDialogComponent implements OnInit {\r\n checkNow = true;\r\n timer: any;\r\n public types: typeof AlertTypes = AlertTypes;\r\n\r\n constructor(\r\n public sharedService: SharedService,\r\n private router: Router,\r\n public dialogRef: MatDialogRef,\r\n @Inject(MAT_DIALOG_DATA) public data: any\r\n ) { }\r\n\r\n\r\n\r\n ngOnInit() {\r\n console.log(this.data.type);\r\n \r\n }\r\n\r\n\r\n \r\n // On Click Close\r\n onClickClose() {\r\n this.checkNow = false;\r\n this.dialogRef.close();\r\n sessionStorage.removeItem('popUploaded');\r\n }\r\n\r\n // On Click Okay\r\n onClickOk() {\r\n sessionStorage.removeItem('popUploaded');\r\n this.dialogRef.close(true);\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
{{data.msg}}
\r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n
","import {Injectable} from '@angular/core';\r\nimport {environment} from '../../environments/environment';\r\n\r\nimport {AppInsights} from 'applicationinsights-js';\r\n\r\n@Injectable()\r\nexport class AppInsightService {\r\n\r\n private config: Microsoft.ApplicationInsights.IConfig = {\r\n instrumentationKey: environment.appInsights.instrumentationKey\r\n };\r\n\r\n constructor() {\r\n if (!AppInsights.config) {\r\n AppInsights.downloadAndSetup(this.config);\r\n }\r\n }\r\n\r\n logPageView(name?: string, url?: string, properties?: any,\r\n measurements?: any, duration?: number) {\r\n AppInsights.trackPageView(name, url, properties, measurements, duration);\r\n }\r\n\r\n logEvent(name: string, properties?: any, measurements?: any) {\r\n AppInsights.trackEvent(name, properties, measurements);\r\n }\r\n\r\n\r\n logError(error: any) {\r\n AppInsights.trackException(error);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { throwError } from 'rxjs';\r\nimport { map, catchError, timeout } from 'rxjs/operators';\r\nimport { NgxSpinnerService } from 'ngx-spinner';\r\nimport { Router } from '@angular/router';\r\n\r\n@Injectable()\r\nexport class AppService {\r\n private maxTimeout = 80000;\r\n constructor(private http: HttpClient, private spinner: NgxSpinnerService, private router: Router,) {\r\n }\r\n\r\n // Navigate into another page\r\n navigateTo = (path: string): void => {\r\n this.router.navigate([path]);\r\n }\r\n\r\n // Clear local Storage\r\n clearData = (): void => {\r\n localStorage.clear();\r\n }\r\n\r\n // common get method\r\n getAction(path: string) {\r\n this.showLoader();\r\n return this.http.get(path)\r\n .pipe(timeout(this.maxTimeout), map(res => {\r\n this.hideLoader();\r\n return this.extractData(res);\r\n }),\r\n catchError(err => {\r\n this.hideLoader();\r\n return throwError(err);\r\n }));\r\n }\r\n\r\n // common post method\r\n postAction(path: string, body?: any) {\r\n this.spinner.show();\r\n return this.http.post(path, body)\r\n .pipe(timeout(this.maxTimeout), map(res => {\r\n this.hideLoader();\r\n return this.extractData(res);\r\n }),\r\n catchError(err => {\r\n this.hideLoader();\r\n return throwError(err);\r\n }));\r\n }\r\n\r\n errorHandl(error) {\r\n let errorMessage = '';\r\n if(error.error instanceof ErrorEvent) {\r\n // Get client-side error\r\n errorMessage = error.error.message;\r\n } else {\r\n // Get server-side error\r\n errorMessage = `Error Code: ${error.status}\\nMessage: ${error.message}`;\r\n }\r\n console.log(errorMessage);\r\n return throwError(errorMessage);\r\n }\r\n\r\n showLoader() {\r\n this.spinner.show();\r\n }\r\n\r\n hideLoader() {\r\n this.spinner.hide();\r\n }\r\n\r\n private extractData(res: any) {\r\n if (res && res.status === 200) {\r\n return res.json() || {};\r\n } else {\r\n return res || {};\r\n }\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n\r\n@Injectable()\r\nexport class AuthGuard {\r\n constructor(private router: Router) { }\r\n canActivate() {\r\n if (localStorage.getItem('isAuthenticated')) {\r\n return true;\r\n } else {\r\n this.router.navigate(['/login']);\r\n return false;\r\n }\r\n }\r\n}\r\n","import {ErrorHandler, Injectable, inject} from '@angular/core';\r\nimport {AppInsightService} from './app-insight';\r\n\r\n\r\n@Injectable()\r\nexport class CustomErrorHandler implements ErrorHandler {\r\n private appInsightService: AppInsightService;\r\n\r\n constructor() {\r\n this.appInsightService = inject(AppInsightService);\r\n }\r\n\r\n handleError(error) {\r\n const userInfomations: any = JSON.parse(localStorage.getItem('loggedInUserInfo'))\r\n const stackTrace: any = {\r\n name: userInfomations && userInfomations.userName,\r\n type: error.message,\r\n status_description: error.stack || 'No status description provided',\r\n error_message: error || 'No error response was provided',\r\n email_address: userInfomations ? userInfomations.emailAddress : 'No user information provided',\r\n customer_number: userInfomations ? userInfomations.customerNumber : 'No user information provided'\r\n };\r\n // this.appInsightService.logError(error);\r\n }\r\n}\r\n","import { inject } from '@angular/core';\r\nimport { Injectable, } from '@angular/core';\r\nimport { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor, HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, throwError } from 'rxjs';\r\nimport { catchError } from 'rxjs/operators';\r\nimport { Constants } from 'src/constants';\r\nimport { AppInsightService } from './app-insight';\r\nimport { AppInsights } from \"applicationinsights-js\";\r\n\r\n@Injectable()\r\n\r\nexport class ErrorInterceptor implements HttpInterceptor {\r\n private appInsightService: AppInsightService;\r\n constructor() {\r\n this.appInsightService = inject(AppInsightService);\r\n }\r\n\r\n intercept(request: HttpRequest, next: HttpHandler): Observable> {\r\n request = request.clone({\r\n withCredentials: true\r\n });\r\n return next.handle(request).pipe(\r\n catchError(error => {\r\n const requestTimeMS = performance.now();\r\n const userInfomations: any = localStorage.getItem('loggedInUserInfo') && JSON.parse(localStorage.getItem('loggedInUserInfo'))\r\n const stackTrace: any = {\r\n name: userInfomations && userInfomations.userName,\r\n type: 'API-Response-Error',\r\n method: 'GET',\r\n url: request.url,\r\n duration: (performance.now() - requestTimeMS).toFixed(2) + ' ms',\r\n status: error.status,\r\n status_description: error.statusText || 'No status description provided',\r\n error_message: error.error ? JSON.stringify(error.error.message) : 'No error response was provided',\r\n email_address: userInfomations ? userInfomations.emailAddress : 'No user information provided',\r\n customer_number: userInfomations ? userInfomations.customerNumber : 'No user information provided'\r\n };\r\n\r\n // this.appInsightService.logError(JSON.stringify(stackTrace) )\r\n AppInsights.trackException(stackTrace.type, stackTrace.error_response, stackTrace);\r\n\r\n let message = ''\r\n if (error instanceof HttpErrorResponse) {\r\n if (error instanceof ErrorEvent) {\r\n console.error('Error Event');\r\n }\r\n } else {\r\n console.error('Other Errors');\r\n }\r\n return throwError(error);\r\n })\r\n );\r\n }\r\n\r\n handleError(error) {\r\n this.appInsightService.logError(error);\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport {HTTP_INTERCEPTORS} from '@angular/common/http';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\nimport {ErrorInterceptor} from './interceptor';\r\nimport { NgxSpinnerModule } from \"ngx-spinner\";\r\nimport { SharedService } from './shared.service';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\n\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n BrowserModule,\r\n BrowserAnimationsModule,\r\n NgxSpinnerModule,\r\n MatDialogModule\r\n ],\r\n exports: [\r\n FormsModule,\r\n ReactiveFormsModule,\r\n MatDialogModule\r\n ],\r\n providers: [\r\n SharedService, { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }\r\n ]\r\n})\r\nexport class SharedModule { }\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { throwError } from 'rxjs';\r\nimport { map, catchError, timeout } from 'rxjs/operators';\r\nimport { NgxSpinnerService } from 'ngx-spinner';\r\nimport { Router } from '@angular/router';\r\nimport { MatDialog } from '@angular/material/dialog';\r\n\r\n@Injectable()\r\nexport class SharedService {\r\n private maxTimeout = 80000;\r\n constructor(private http: HttpClient, private spinner: NgxSpinnerService, private router: Router, private dialog: MatDialog,) {\r\n }\r\n\r\n // Navigate into another page\r\n navigateTo = (path: string): void => {\r\n this.router.navigate([path]);\r\n }\r\n\r\n // Clear local Storage\r\n clearData = (): void => {\r\n localStorage.clear();\r\n }\r\n\r\n // common get method\r\n getAction(path: string) {\r\n this.showLoader();\r\n return this.http.get(path)\r\n .pipe(timeout(this.maxTimeout), map(res => {\r\n this.hideLoader();\r\n return this.extractData(res);\r\n }),\r\n catchError(err => {\r\n this.hideLoader();\r\n return throwError(err);\r\n }));\r\n }\r\n\r\n // common post method\r\n postAction(path: string, body: any) {\r\n this.spinner.show();\r\n return this.http.post(path, body)\r\n .pipe(timeout(this.maxTimeout), map(res => {\r\n this.hideLoader();\r\n return this.extractData(res);\r\n }),\r\n catchError(err => {\r\n this.hideLoader();\r\n return throwError(err);\r\n }));\r\n }\r\n\r\n errorHandl(error) {\r\n let errorMessage = '';\r\n if(error.error instanceof ErrorEvent) {\r\n // Get client-side error\r\n errorMessage = error.error.message;\r\n } else {\r\n // Get server-side error\r\n errorMessage = `Error Code: ${error.status}\\nMessage: ${error.message}`;\r\n }\r\n console.log(errorMessage);\r\n return throwError(errorMessage);\r\n }\r\n\r\n showLoader() {\r\n this.spinner.show();\r\n }\r\n\r\n hideLoader() {\r\n this.spinner.hide();\r\n }\r\n\r\n private extractData(res: any) {\r\n if (res && res.status === 200) {\r\n return res.json() || {};\r\n } else {\r\n return res || {};\r\n }\r\n }\r\n}\r\n","export const Constants = {\r\n pattern: {\r\n email: /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,\r\n mobile: /^[1-9][0-9]*$/,\r\n onlyNumber: /^[1-9][0-9]*$/,\r\n name: /^[A-Za-z][a-zA-Z ]*$/,\r\n password: /^(?=.*[a-z])(?=.*[A-Z])(?=.*[$@$!%*#?&0-9])[0-9A-Za-z\\d$@$!%*#?&]{8,}$/,\r\n },\r\n messages: {\r\n 400: 'Unable to process this request due to input is not valid, Please contact support.',\r\n 401: 'Unauthorized',\r\n 403: 'An error occurred',\r\n 404: 'The specified api url does not exist, Please contact support.',\r\n 409: 'Unable to process this request due to a conflict, Please contact support.',\r\n 500: 'The execution of the service failed, Please contact support.',\r\n 502: 'Bad Gateway - The execution of the service failed, Please contact support.',\r\n default: 'Service Unavailable, Please contact support.'\r\n\r\n },\r\n endpointUrls: {\r\n me: 'authentication/me',\r\n authenticate: 'authentication/status',\r\n singlesignon: 'authentication/SingleSignOn',\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 //apiUrl: 'https://nsapi-dev.concord.net/api/', // Dev Env\r\n // apiUrl: 'https://nsapi-nse.concord.net/api/', // Stage Env\r\n //apiUrl: 'https://nsapi-qa.concord.net/api/', // QA Env\r\n // apiUrl: 'https://nextstep.concord.net/api/', //PROD Env\r\n apiUrl: '#{ApiUrl}#',\r\n appInsights: {\r\n // instrumentationKey:'92ef91cd-3acd-4589-a7c5-d21ee395720e' /*Dev App Insights Key*/\r\n // instrumentationKey:'c6110e7d-3a8b-43d8-a698-5db4a93f1d5a' /*QA App Insights Key*/\r\n // instrumentationKey: 'c240a666-c258-456c-b967-b96e6f8e7289' /*Stage App Insights Key*/\r\n // instrumentationKey:\"b15c64c7-5f74-4ee4-80aa-acf5b0cd2e8c\" /*Prod App Insights Key*/\r\n instrumentationKey:\"#{ApplicationInsights--InstrumentationKey}#\"\r\n\r\n }\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","routes","path","redirectTo","pathMatch","AppRoutingModule","_","_2","_3","forRoot","imports","i1","exports","environment","Constants","AuthenticationService","constructor","appService","userInfoAPI","getAction","apiUrl","endpointUrls","me","authenticateAPI","authenticate","i0","ɵɵinject","AppService","factory","ɵfac","AlertDialogComponent","AlertTypes","AppComponent","appInsightService","authService","dialog","title","isUserAuthenticated","subscribe","response","message","getUserInfo","window","location","href","singlesignon","error","status","setLoginData","dialogRef","open","panelClass","disableClose","data","msg","messages","type","ALERTCONFIRM","keydownEvents","e","keyCode","close","afterClosed","result","localStorage","setItem","accountNumber","token","JSON","stringify","roleNames","length","forEach","item","i","isSupportEnabled","redirectURL","assign","ngOnInit","ɵɵdirectiveInject","AppInsightService","i2","i3","MatDialog","selectors","decls","vars","template","AppComponent_Template","rf","ctx","ɵɵelement","BrowserModule","ErrorHandler","LocationStrategy","HashLocationStrategy","SharedModule","HttpClientModule","AuthGuard","CustomErrorHandler","BrowserAnimationsModule","NgxSpinnerModule","AppModule","bootstrap","provide","useClass","declarations","MAT_DIALOG_DATA","sharedService","router","checkNow","types","console","log","onClickClose","sessionStorage","removeItem","onClickOk","SharedService","Router","MatDialogRef","consts","AlertDialogComponent_Template","ɵɵelementStart","ɵɵelementEnd","ɵɵtext","ɵɵlistener","AlertDialogComponent_Template_button_click_8_listener","ɵɵadvance","ɵɵtextInterpolate1","AppInsights","config","instrumentationKey","appInsights","downloadAndSetup","logPageView","name","url","properties","measurements","duration","trackPageView","logEvent","trackEvent","logError","trackException","throwError","map","catchError","timeout","http","spinner","maxTimeout","navigateTo","navigate","clearData","clear","showLoader","get","pipe","res","hideLoader","extractData","err","postAction","body","show","post","errorHandl","errorMessage","ErrorEvent","hide","json","HttpClient","NgxSpinnerService","canActivate","getItem","inject","handleError","userInfomations","parse","stackTrace","userName","status_description","stack","error_message","email_address","emailAddress","customer_number","customerNumber","HttpErrorResponse","ErrorInterceptor","intercept","request","next","clone","withCredentials","handle","requestTimeMS","performance","now","method","toFixed","statusText","error_response","CommonModule","FormsModule","ReactiveFormsModule","HTTP_INTERCEPTORS","MatDialogModule","multi","i4","pattern","email","mobile","onlyNumber","password","default","production","enableProdMode","__NgCli_bootstrap_1","platformBrowser","bootstrapModule","catch"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}