{"version":3,"sources":["webpack:///./src/$_lazy_route_resource lazy namespace object","webpack:///./src/app/app-footer/app-footer.component.css","webpack:///./src/app/app-footer/app-footer.component.html","webpack:///./src/app/app-footer/app-footer.component.ts","webpack:///./src/app/app-routing.module.ts","webpack:///./src/app/app.component.css","webpack:///./src/app/app.component.html","webpack:///./src/app/app.component.ts","webpack:///./src/app/app.module.ts","webpack:///./src/app/enums/pmsEnums.ts","webpack:///./src/app/services/auth-guard.service.ts","webpack:///./src/app/services/auth-interceptor.service.ts","webpack:///./src/app/services/auth-response-interceptor.service.ts","webpack:///./src/app/services/authentication.service.ts","webpack:///./src/app/services/user-profile.service.ts","webpack:///./src/environments/environment.ts","webpack:///./src/main.ts"],"names":[],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;;;;;AC7DA,6BAA6B,wBAAwB,gBAAgB,kBAAkB,oBAAoB,+CAA+C,8CAA8C,gCAAgC,kCAAkC,4BAA4B,yBAAyB,0BAA0B,oCAAoC,2BAA2B,yBAAyB,4BAA4B,KAAK,UAAU,0BAA0B,oBAAoB,4BAA4B,2BAA2B,KAAK,cAAc,0BAA0B,wBAAwB,WAAW,kBAAkB,qCAAqC,sDAAsD,KAAK,C;;;;;;;;;;;ACAnwB,0IAA0I,wIAAwI,2BAA2B,4HAA4H,uIAAuI,8CAA8C,oF;;;;;;;;;;;;;;;;;;;;;;;;ACA5iB;AAOlD;IAEE;QACE,IAAI,CAAC,aAAa,GAAC,IAAI,CAAC,GAAG,EAAE,CAAC;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",\n\t\t\"default~members-members-module~message-center-message-center-module-module~public-public-module~repo~fb634854\",\n\t\t\"default~members-members-module~message-center-message-center-module-module~reports-reports-module~sy~9c3585b3\",\n\t\t\"default~members-members-module~message-center-message-center-module-module~system-settings-system-se~b41e1922\",\n\t\t\"default~members-members-module~reports-reports-module\",\n\t\t\"default~members-members-module~system-settings-system-settings-module\",\n\t\t\"common\",\n\t\t\"members-members-module\"\n\t],\n\t\"./message-center/message-center-module.module\": [\n\t\t\"./src/app/members/message-center/message-center-module.module.ts\",\n\t\t\"default~members-members-module~message-center-message-center-module-module~public-public-module~repo~fb634854\",\n\t\t\"default~members-members-module~message-center-message-center-module-module~reports-reports-module~sy~9c3585b3\",\n\t\t\"default~members-members-module~message-center-message-center-module-module~system-settings-system-se~b41e1922\",\n\t\t\"common\",\n\t\t\"message-center-message-center-module-module\"\n\t],\n\t\"./public/public.module\": [\n\t\t\"./src/app/public/public.module.ts\",\n\t\t\"default~members-members-module~message-center-message-center-module-module~public-public-module~repo~fb634854\",\n\t\t\"common\",\n\t\t\"public-public-module\"\n\t],\n\t\"./reports/reports.module\": [\n\t\t\"./src/app/members/reports/reports.module.ts\",\n\t\t\"default~members-members-module~message-center-message-center-module-module~public-public-module~repo~fb634854\",\n\t\t\"default~members-members-module~message-center-message-center-module-module~reports-reports-module~sy~9c3585b3\",\n\t\t\"default~members-members-module~reports-reports-module\",\n\t\t\"common\",\n\t\t\"reports-reports-module\"\n\t],\n\t\"./system-settings/system-settings.module\": [\n\t\t\"./src/app/members/system-settings/system-settings.module.ts\",\n\t\t\"default~members-members-module~message-center-message-center-module-module~public-public-module~repo~fb634854\",\n\t\t\"default~members-members-module~message-center-message-center-module-module~reports-reports-module~sy~9c3585b3\",\n\t\t\"default~members-members-module~message-center-message-center-module-module~system-settings-system-se~b41e1922\",\n\t\t\"default~members-members-module~system-settings-system-settings-module\",\n\t\t\"common\",\n\t\t\"system-settings-system-settings-module\"\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tvar ids = map[req];\n\tif(!ids) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\tvar id = ids[0];\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = \"./src/$$_lazy_route_resource lazy recursive\";\nmodule.exports = webpackAsyncContext;","module.exports = \".appFooter{\\r\\n position: fixed;\\r\\n left: 0;\\r\\n bottom: 0;\\r\\n width: 100%;\\r\\n /* background-color: rgb(153, 173, 153); */\\r\\n background-color: rgb(153, 173, 153); \\r\\n\\r\\n\\r\\n color: \\twhite;\\r\\n /*\\r\\n padding-top:0px;\\r\\n padding-bottom: 0px;\\r\\n margin-right:0px;\\r\\n padding-right:0px;\\r\\n */\\r\\n padding-left:15px;\\r\\n padding-right:15px;\\r\\n padding-top:10px;\\r\\n padding-bottom:10px;\\r\\n}\\r\\ntable{\\r\\n border-width: 0px; border-style: none;\\r\\n padding-bottom: 0px;\\r\\n margin-bottom: 0px;\\r\\n}\\r\\n.hitsIcon{\\r\\n border-radius: 20px;\\r\\n padding-right:5px;\\r\\n \\r\\n}\\r\\n.hitsIcon img{\\r\\n -webkit-filter: grayscale(60%); /* Safari 6.0 - 9.0 */\\r\\n filter: grayscale(60%);\\r\\n}\"","module.exports = \"\\n
\\n \\n
\\n
\\n \\n \\n \\n ©{{copyrightYear | date: 'y'}} - Department of Personnel Management (PNG)\\n
\\n
\\n Online Performance Monitoring \\n
\\n
\\n Rise Up, Step Up, & Speak Up!\\n
\\n
\\n \\n
\\n\\n \\n\\n\"","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-footer',\n templateUrl: './app-footer.component.html',\n styleUrls: ['./app-footer.component.css']\n})\nexport class AppFooterComponent implements OnInit {\n copyrightYear:number;\n constructor() { \n this.copyrightYear=Date.now();\n }\n ngOnInit() {\n }\n}\n","\nimport { NgModule } from '@angular/core';\n//import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { Routes, RouterModule } from '@angular/router';\nimport{AuthGuardService} from './services/auth-guard.service';\n\n\nconst routes: Routes = [\n \n {path:'login',\n loadChildren:'./public/public.module#PublicModule'\n },\n {\n path:'members',\n canActivate:[AuthGuardService],\n loadChildren:'./members/members.module#MembersModule'\n },\n {\n path:'',\n redirectTo:'login',\n pathMatch:'full'\n },\n \n];\n\n@NgModule({\n imports: [RouterModule.forRoot(routes)],\n exports: [RouterModule]\n \n})\nexport class AppRoutingModule { }\n","module.exports = \"h1x{\\r\\n text-align: center;\\r\\n color:whitesmoke;\\r\\n border-bottom-color: lightgreen;border-width: 1px;\\r\\n border-style: solid;border-top-style: none; \\r\\n border-left-style: none;border-right-style: none;\\r\\n padding-bottom: 4px;margin-top:0px;\\r\\n padding-top:0px;\\r\\n}\\r\\n\\r\\n.appTitle{\\r\\n background-color: rgb(153, 173, 153); /* Color for top App title row */\\r\\n text-align: center;\\r\\n color:rgb(238, 231, 243);\\r\\n /* color:whitesmoke; */\\r\\n /* #C0A545; */\\r\\n\\r\\n padding-bottom: 4px;margin-top:0px;\\r\\n padding-top:0px;\\r\\n font-size: 2em;\\r\\n font-weight: 600;\\r\\n font-style: italic;\\r\\n text-shadow:5px 5px 0 rgb(83, 77, 77); \\r\\n /* text-shadow:5px 5px 0 rgb(83, 77, 77); */\\r\\n}\"","module.exports = \"\\n
\\n Performance Management System\\n
\\n\\n\\n
\\n \\n
\\n\\n\\n \\n\\n\\n\"","import { Component } from '@angular/core';\nimport{Router} from '@angular/router';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n constructor(private router:Router){\n this.router.navigate(['login']); //navigates to Login page at start up\n }\n}\n","import { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { HttpClientModule } from '@angular/common/http';\nimport { HTTP_INTERCEPTORS,HttpClientJsonpModule } from '@angular/common/http';\n\nimport { AppRoutingModule } from './app-routing.module';\nimport { AppComponent } from './app.component';\nimport {MenubarModule} from 'primeng/menubar';\nimport {MenuModule} from 'primeng/menu';\n\n\n//import {ToastModule} from 'primeng/toast';\n\nimport { AngularFontAwesomeModule } from 'angular-font-awesome';\nimport { ButtonsModule } from '@progress/kendo-angular-buttons';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\n\nimport { ButtonGroupModule } from '@progress/kendo-angular-buttons';\n\nimport { LabelModule } from '@progress/kendo-angular-label';\nimport { DateInputsModule } from '@progress/kendo-angular-dateinputs';\nimport { ChartsModule } from '@progress/kendo-angular-charts';\nimport 'hammerjs';\nimport { LayoutModule } from '@progress/kendo-angular-layout';\nimport { AppFooterComponent } from './app-footer/app-footer.component';\nimport { InputsModule } from '@progress/kendo-angular-inputs';\nimport { TreeViewModule } from '@progress/kendo-angular-treeview';\nimport { DialogsModule } from '@progress/kendo-angular-dialog';\n\nimport{AuthInterceptor} from './services/auth-interceptor.service';\nimport{AuthResponseInterceptor} from './services/auth-response-interceptor.service';\n//import { PDFExportModule } from '@progress/kendo-angular-pdf-export';\n//import{DateFormatPipe,DateTimeFormatPipe} from './utilities/custom-pipes';\n\n\n\n\n@NgModule({\n declarations: [\n AppComponent,\n AppFooterComponent,\n ],\n \n imports: [\n BrowserModule,\n AppRoutingModule,MenubarModule,MenuModule,HttpClientModule,\n AngularFontAwesomeModule,\n ButtonsModule,\n ButtonGroupModule, LabelModule, BrowserAnimationsModule,\n DateInputsModule, ChartsModule, LayoutModule, InputsModule, \n TreeViewModule, DialogsModule,\n \n ],\n providers: [HttpClientJsonpModule,\n \n {\n provide: HTTP_INTERCEPTORS,\n useClass: AuthInterceptor,\n multi: true\n },\n {\n provide: HTTP_INTERCEPTORS,\n useClass: AuthResponseInterceptor,\n multi: true\n },\n\n ],\n bootstrap: [AppComponent]\n})\nexport class AppModule { }\n","\r\n\r\nexport enum PmsRoles {\r\n Admin_All, Admin_Department,\r\n Normal,Self,\r\n ViewsReport_Department,\r\n ViewsReport_All\r\n };","import { Injectable } from '@angular/core';\nimport{CanActivate} from '@angular/router';\nimport{AuthenticationService} from './authentication.service';\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AuthGuardService {\n\n constructor(public auth:AuthenticationService) { }\n canActivate():boolean{\n //console.log('CanActivate',this.auth);\n return this.auth.isAuthenticated();\n }\n}\n","import { Injectable, Injector } from \"@angular/core\";\nimport { HttpHandler, HttpEvent, HttpInterceptor, HttpRequest } from \"@angular/common/http\";\nimport{AuthenticationService} from './authentication.service';\n\nimport { Observable } from \"rxjs\";\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AuthInterceptor implements HttpInterceptor {\n constructor(private injector: Injector) {\n }\n intercept(\n request: HttpRequest,\n next: HttpHandler): Observable> {\n\n\n\n var auth = this.injector.get(AuthenticationService);\n var token = (auth.isLoggedIn()) ? auth.getAuth()!.token : null;\n //var token = (auth.isAuthenticated()) ? auth.getAuth()!.token : null;\n\n if (token) {\n\n //console.log('token intercepted',token,'at request: ',request);\n\n request = request.clone({\n setHeaders: {\n Authorization: `Bearer ${token}`\n }\n });\n }else{ //note:added to track\n\n //console.log(\".....no token intercepted..auth-interceptor-servies\");\n\n }\n return next.handle(request);\n }\n}\n","\nimport { Injectable, Injector } from \"@angular/core\";\nimport { Router } from \"@angular/router\";\nimport {\n HttpClient,\n HttpHandler, HttpEvent, HttpInterceptor,\n HttpRequest, HttpResponse, HttpErrorResponse\n} from \"@angular/common/http\";\nimport { AuthenticationService } from \"./authentication.service\";\nimport { Observable } from \"rxjs\";\n\n\nimport { of } from 'rxjs/observable/of';\n\n\nimport { catchError,tap, map,mergeMap} from 'rxjs/operators';\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AuthResponseInterceptor implements HttpInterceptor {\n\n currentRequest: HttpRequest;\n auth: AuthenticationService;\n\n constructor(\n private injector: Injector,\n private router: Router\n )\n { }\n\n intercept(\n request: HttpRequest,\n next: HttpHandler): Observable> {\n\n\n\n\n this.auth = this.injector.get(AuthenticationService);\n var token = (this.auth.isLoggedIn()) ? this.auth.getAuth()!.token : null;\n\n\n\n if (token) {\n // save current request\n this.currentRequest = request;\n\n // console.log('token @ auth.response.intercepter',token);\n // console.log('request @ auth.response.intercepter',request);\n\n return next.handle(request)\n .do((event: HttpEvent) => {\n if (event instanceof HttpResponse) {\n // do nothing\n\n // console.log('next:event @ auth.response.intercepter',event);\n }\n })\n .catch(error => {\n return this.handleError(error, next)\n });\n }\n else {\n return next.handle(request);\n }\n}\n\nhandleError(err: any, next: HttpHandler) {\n if (err instanceof HttpErrorResponse) {\n if (err.status === 401) {\n // JWT token might be expired:\n // try to get a new one using refresh token\n // console.log(\"Token expired. Attempting refresh...\");\n\n // ===[2018.01.05 FIX - BOOK UPDATE]===\n // cfr. https://github.com/PacktPublishing/ASP.NET-Core-2-and-Angular-5/issues/8\n // and https://github.com/PacktPublishing/ASP.NET-Core-2-and-Angular-5/issues/15\n // store current request into a local variable\n var previousRequest = this.currentRequest;\n\n // thanks to @mattjones61 for the following code\n return this.auth.refreshToken()\n .flatMap((refreshed) => {\n var token = (this.auth.isLoggedIn()) ? this.auth.getAuth()!.token : null;\n if (token) {\n previousRequest = previousRequest.clone({\n setHeaders: { Authorization: `Bearer ${token}` }\n });\n // console.log(\"header token reset\");\n }\n return next.handle(previousRequest);\n });\n }\n }\n return Observable.throw(err);\n}\n}\n","import { EventEmitter, Inject, Injectable, PLATFORM_ID } from \"@angular/core\";\nimport { isPlatformBrowser } from '@angular/common';\nimport { HttpClient, HttpHeaders,HttpErrorResponse } from \"@angular/common/http\";\nimport { Observable,throwError, of } from \"rxjs\";\n//import { Observable } from 'rxjs/Observable';//\nimport 'rxjs/Rx';\nimport 'rxjs/add/observable/throw';\nimport 'rxjs/add/operator/catch';\n//import { Observable } from 'rxjs/Observable';\n\nimport { ErrorObservable } from \"rxjs/observable/ErrorObservable\";\nimport 'rxjs/add/operator/map'\nimport { BehaviorSubject } from 'rxjs/BehaviorSubject';\nimport { catchError,map,tap } from \"rxjs/operators\";\nimport{LoginUser} from '../interfaces/helper/login-user';\n\nimport{UserProfileService} from '../services/user-profile.service';\nimport{TokenResponse} from '../interfaces/helper/token-response';\n\nconst TOKEN_KEY='auth-token'; //test only\n\n@Injectable({\n providedIn: 'root'\n })\nexport class AuthenticationService {\n\n loginStatus:string='';\n\n authKey: string = \"auth\";\n clientId: string = \"gopngpms\";\n private loggedIn = new BehaviorSubject(false); // {1}\n\n\n authenticationState=new BehaviorSubject(false);\n unauthorisedUser=new BehaviorSubject(false);\n\n constructor(private userProfileService:UserProfileService,\n private http: HttpClient,\n @Inject(PLATFORM_ID) private platformId: any) { \n\n\n }\n\n /*\n login(user:LoginUser):Observable{\n //include login logic/detail\n \n //TODO : OnSuccess of login\n var url = \"api/token/auth\";\n var data = {\n username: user.loginID,\n password: user.password,\n client_id: this.clientId,\n // required when signing up with username/password\n grant_type: \"password\",\n // space-separated list of scopes for which the token is issued\n scope: \"offline_access profile email\"\n };\n return this.getAuthFromServer(url, data);\n\n\n }\n refreshToken(): Observable {\n var url = \"api/token/auth\";\n var data = {\n client_id: this.clientId,\n // required when signing up with username/password\n grant_type: \"refresh_token\",\n refresh_token: this.getAuth()!.refresh_token,\n // space-separated list of scopes for which the token is issued\n scope: \"offline_access profile email\"\n };\n console.log('calling getauthFromServer for fresh token');\n\n return this.getAuthFromServer(url, data);\n}\n\n logout(){\n //inlcude logout logic\n this.setAuth(null);\n this.authenticationState.next(false);\n this.userProfileService.clearUserProfile();\n //test\n }\n isAuthenticated(){\n return this.authenticationState.value;\n }\n get isLoggedInStatus() {\n return this.authenticationState.asObservable(); \n }\n\n isLoggedIn(): boolean {\n console.log('....calling isLoggedIn:Authentication.services...');\n \n if (isPlatformBrowser(this.platformId)) {\n return localStorage.getItem(this.authKey) != null;\n\n }\n return false;\n}\n\ngetAuth(): TokenResponse | null {\n if (isPlatformBrowser(this.platformId)) {\n var i = localStorage.getItem(this.authKey);\n if (i) {\n return JSON.parse(i);\n }\n }\n\n return null;\n}\n\n\n\n\ngetAuthFromServer(url: string, data: any): Observable {\n console.log('infor passed to the server',data);\n console.log('infor passed to the server --url',url);\n \n return this.http.post(url, data)\n .map((res) => {\n let token = res && res.token;\n // if the token is there, login has been successful\n if (token) {\n // store username and jwt token\n this.setAuth(res);\n // successful login\n console.log('data',data);\n this.authenticationState.next(true);\n return true;\n }\n console.log('error at getAuthFromServer!!!!!');\n // return Observable.throw('Unauthorized');\n })\n .catch(error => {\n console.log('get from server error@@@@@@@@@@@@@@',error);\n this.loggedIn.next(false);\n this.authenticationState.next(false);\n return Observable.of(false);\n // return error as Observable;\n // return new Observable(error);\n }\n ); \n }\n\n\n/*\n\ngetAuthFromServer(url: string, data: any): Observable {\n console.log('infor passed to the server',data);\n console.log('infor passed to the server --url',url);\n \n return this.http.post(url, data)\n .pipe(\n \n map((res) => {\n let token = res && res.token;\n // if the token is there, login has been successful\n if (token) {\n // store username and jwt token\n this.setAuth(res);\n // successful login\n console.log('data..response',data);\n this.authenticationState.next(true);\n return true;\n }\n return false; //Observable.throw('Unauthorized');\n }\n ) //,\n // catchError(this.handleError())\n );\n }\n\n*/\n/*\n setAuth(auth: TokenResponse | null): boolean {\n if (isPlatformBrowser(this.platformId)) {\n if (auth) {\n localStorage.setItem(\n this.authKey,\n JSON.stringify(auth));\n // Todo: write userProfile for global obj here.....\n console.log('localstorage value',localStorage.getItem(this.authKey));\n }\n else {\n localStorage.removeItem(this.authKey);\n //Todo: remove userProile global object\n }\n }\n return true;\n}\n*/\n\n\n\n\n\n \n//login(username: string, password: string): Observable {\n login(user:LoginUser): Observable {\n var url = \"api/token/auth\";\n var data = {\n username: user.loginID,\n password: user.password,\n client_id: this.clientId,\n // required when signing up with username/password\n grant_type: \"password\",\n // space-separated list of scopes for which the token is issued\n scope: \"offline_access profile email\"\n };\n return this.getAuthFromServer(url, data);\n }\n // try to refresh token\n refreshToken(): Observable {\n var url = \"api/token/auth\";\n var data = {\n client_id: this.clientId,\n // required when signing up with username/password\n grant_type: \"refresh_token\",\n refresh_token: this.getAuth()!.refresh_token,\n // space-separated list of scopes for which the token is issued\n scope: \"offline_access profile email\"\n };\n return this.getAuthFromServer(url, data);\n }\n // retrieve the access & refresh tokens from the server\n getAuthFromServer(url: string, data: any): Observable {\n return this.http.post(url, data)\n .map((res) => {\n\n // console.log('...login server response...',res);\n\n let token = res && res.token;\n // if the token is there, login has been successful\n if (token) {\n // store username and jwt token\n this.setAuth(res);\n // successful login\n this.authenticationState.next(true);\n this.loggedIn.next(true);\n return true;\n }\n // console.log('---------XXXXXX----------');\n\n // return Observable.throw('Unauthorized');\n })\n \n \n .catch(error => {\n\n // console.log('get from server error',error);\n\n this.loggedIn.next(false);\n this.authenticationState.next(false);\n\n \n // return error as Observable;\n\n return Observable.of(false);\n // return new Observable(error);\n }\n ); \n }\n \n // performs the logout\n logout(): boolean {\n this.setAuth(null);\n this.authenticationState.next(false);\n this.loggedIn.next(false);\n return true;\n }\n isAuthenticated(){\n return this.authenticationState.value;\n }\n // Persist auth into localStorage or removes it if a NULL argument is given\n setAuth(auth: TokenResponse | null): boolean {\n if (isPlatformBrowser(this.platformId)) {\n if (auth) {\n localStorage.setItem(\n this.authKey,\n JSON.stringify(auth));\n // Todo: write userProfile for global obj here.....\n // console.log('localstorage value',localStorage.getItem(this.authKey));\n }\n else {\n localStorage.removeItem(this.authKey);\n //Todo: remove userProile global object\n }\n }\n return true;\n }\n \n // Retrieves the auth JSON object (or NULL if none)\n getAuth(): TokenResponse | null {\n if (isPlatformBrowser(this.platformId)) {\n var i = localStorage.getItem(this.authKey);\n if (i) {\n return JSON.parse(i);\n }\n }\n return null;\n }\n \n // Returns TRUE if the user is logged in, FALSE otherwise.\n isLoggedIn(): boolean {\n if (isPlatformBrowser(this.platformId)) {\n return localStorage.getItem(this.authKey) != null;\n }\n return false;\n }\n get isLoggedInStatus() {\n return this.loggedIn.asObservable(); // {2}\n }\n\n \n\n //-----------------Error Handler------------------------------\n private handleError(error: HttpErrorResponse) {\n if (error.error instanceof ErrorEvent) {\n // A client-side or network error occurred. Handle it accordingly.\n console.error('An error occurred:', error.error.message);\n } else {\n // The backend returned an unsuccessful response code.\n // The response body may contain clues as to what went wrong,\n console.error(\"Error\");\n //Backend returned code ${error.status};\n }\n // return an observable with a user-facing error message\n return throwError(\"Something bad happened; please try again later.\");\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport{IUserProfile} from '../interfaces/helper/user-profile';\nimport { Observable, observable } from 'rxjs';\nimport { HttpClient, HttpHeaders,HttpParams } from '@angular/common/http';\nimport 'rxjs/add/observable/of';\nimport { BehaviorSubject } from 'rxjs/BehaviorSubject';\nimport { NgSwitch } from '@angular/common';\nimport{PmsRoles} from '../enums/pmsEnums';\n\n//enum PmsRoles {Admin_All, Admin_Department};\n\n@Injectable({\n providedIn: 'root'\n})\n\n//enum PmsRoles {Admin_All, Admin_Department};\n\nexport class UserProfileService {\n\n private userProfile:IUserProfile;\n private getUserProfileUrl='api/pmsUser/getUserProfile';\n profileUpdated=new BehaviorSubject(false);\n logoFullPath:string='';\n public pmsLogo:string='pmsLogoSmall.jpg';\n public generalParamID: any; //to hold any global id\n //Roles Enum\n public currentRole:PmsRoles;\n\n constructor(private http:HttpClient) {\n\n this.resetProfile();\n }\ncurrentUserProfile():Observable{\n //TODO: get from server\n return Observable.of(this.userProfile);\n}\nclearUserProfile():void{\n this.resetProfile();\n}\n\nprivate setUserProfile(userprofile:IUserProfile):void{\n\n\n //TODO: get it from db once and assign it to this.userProfile\n\n //test assign to arbitrary value\n\n\n this.userProfile={\n accessLevel:userprofile.accessLevel,\n isAssessor:userprofile.isAssessor,\n assessorId:userprofile.assessorId,\n assessorLevel:userprofile.assessorLevel,\n departmentId:userprofile.departmentId,\n loginId:userprofile.loginId,\n userName:userprofile.userName,\n userTitle: userprofile.userTitle,\n canViewAll: false,\n isPM: false\n };\n\n //console.log('user profile object set',this.userProfile);\n //set current role\n switch(this.userProfile.accessLevel){\n case 'Admin-All':this.currentRole=PmsRoles.Admin_All;\n break;\n case 'Admin-Department':this.currentRole=PmsRoles.Admin_Department;\n break;\n case 'Normal':this.currentRole=PmsRoles.Normal;\n break;\n case 'Self':this.currentRole=PmsRoles.Self;\n break;\n case 'ViewsReport-All':this.currentRole=PmsRoles.ViewsReport_All;\n break;\n case 'ViewsReport-Department':this.currentRole=PmsRoles.ViewsReport_Department;\n break;\n default:\n console.log('Invalid access level',this.userProfile.accessLevel);\n }\n\n //this.currentRole=PmsRoles.Admin_Department;\n\n}\nprivate resetProfile():void{\n\n this.userProfile = {\n accessLevel: '',\n isAssessor: false,\n assessorId: '',\n assessorLevel: -1,\n departmentId: -1,\n loginId: '',\n userName: '',\n userTitle: '',\n canViewAll: false,\n isPM: false\n };\n}\nprivate getUserProfile(userID:string): Observable {\n const headers = new HttpHeaders().set('content-type', 'application/json');\n const params=new HttpParams().set('userID',userID);\n return this.http.get(this.getUserProfileUrl,{headers,params});\n}\n\n//public...interface\npublic setCurrentUserProfile(userID:string):void\n{\n //1.get user profile from db\n //2. assign to the singleton user profile object\n //3. return complete status\n\n this.getUserProfile(userID).subscribe(profile=>{\n this.setUserProfile(profile); //set the user profile\n\n //console.log('user profile',profile);\n this.profileUpdated.next(true);\n // return Observable.of(true);\n });\n //return Observable.of(false);\n}\npublic getLogo():any{\n this.logoFullPath = \"assets/imgs/\"+ this.pmsLogo;\n return this.logoFullPath;\n}\n}\n","// This file can be replaced during build by using the `fileReplacements` array.\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\n// The list of file replacements can be found in `angular.json`.\n\nexport const environment = {\n production: false\n};\n\n/*\n * For easier debugging in development mode, you can import the following file\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\n *\n * This import should be commented out in production mode because it will have a negative impact\n * on performance if an error is thrown.\n */\n// import 'zone.js/dist/zone-error'; // Included with Angular CLI.\n","import { enableProdMode } from '@angular/core';\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { AppModule } from './app/app.module';\nimport { environment } from './environments/environment';\n\nif (environment.production) {\n enableProdMode();\n}\n\nplatformBrowserDynamic().bootstrapModule(AppModule)\n .catch(err => console.log(err));\n\n"],"sourceRoot":""}