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,oBAAOA,QAClFA,6BACJA,yBACFA,8BAnBuBA,gCACMA,6BAE2DA,uCAMhFA,qlCEXKI,CAAe,KDLgBiB,MAAO,2BAO5C,IAAMC,EAAmB,MAA1B,MAAOA,YAAmB,oCAAnBA,EAAmB,EAAnBA,EAAmB,sBAAnBA,MAAmB,0BAHpBC,cAAsBtB,GACtBsB,QAECD,CAAmB,mBEMzB,IAAME,EAAY,MAAnB,MAAOA,YAAY,oCAAZA,EAAY,EAAZA,EAAY,sBAAZA,MAAY,0BANrBC,KACAC,KACAJ,EACAK,QAGSH,CAAY","names":["PageTitleComponent","selectors","i0","routes","path","component","NoticeComponent","constructor","location","this","Date","getUTCFullYear","uri","toLowerCase","substring","lastIndexOf","noticeHeader","noticeText","buttonVisible","buttonText","login","back","core","title","NoticeRoutingModule","RouterModule","NoticeModule","CommonModule","SharedModule","FlexLayoutModule"],"sourceRoot":"webpack:///","sources":["./src/app/@shared/components/page-title/page-title.component.ts","./src/app/notice/notice.component.html","./src/app/notice/notice-routing.module.ts","./src/app/notice/notice.component.ts","./src/app/notice/notice.module.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'maas-page-title',\r\n template: ``,\r\n styles: [\r\n `maas-page-title {\r\n font-size: 28px;\r\n line-height: 40px;\r\n color: var(--blue);\r\n }`\r\n ],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class PageTitleComponent {}\r\n","\r\n
\r\n
\r\n
\r\n \r\n \"logo\"\r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n {{noticeHeader}}\r\n

{{noticeText}}

\r\n \r\n \r\n
\r\n
\r\n\r\n \r\n
","import { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { NoticeComponent } from './notice.component';\r\n\r\nconst routes: Routes = [\r\n { path: '**', component: NoticeComponent, title: 'Important announcement' }\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class NoticeRoutingModule {}\r\n","import { Location } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\r\n\r\n\r\n@Component({\r\n selector: 'maas-notice',\r\n templateUrl: './notice.component.html',\r\n styleUrls: ['./notice.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class NoticeComponent {\r\n\r\n public noticeHeader: string;\r\n public noticeText: string;\r\n public currentYear = new Date().getUTCFullYear();\r\n public buttonVisible: boolean = false;\r\n public buttonText!: string;\r\n\r\n\r\n constructor(private location: Location) {\r\n const uri = this.location.path().toLowerCase();\r\n const lastPartOfUri = uri.substring(uri.lastIndexOf('/') + 1);\r\n switch (lastPartOfUri) {\r\n case 'adf':\r\n this.noticeHeader = 'Oh, no!!'\r\n this.noticeText = 'Failed to authenticate. The application is experiencing difficulty logging you in. Please try again or contact an administrator for help.';\r\n break;\r\n\r\n case 'noemp':\r\n case 'noemp1':\r\n case 'noemp2':\r\n case 'noemp3':\r\n this.noticeHeader = 'It\\'s ok, but ...';\r\n this.noticeText = 'You do not have access to any data. Please contact your administrator for access.';\r\n break;\r\n\r\n case 'expired':\r\n this.noticeHeader = 'whoops';\r\n this.noticeText = 'Your session has expired. Please login again.';\r\n this.buttonVisible = true;\r\n this.buttonText=\"login\"\r\n break;\r\n\r\n case 'not-in-app':\r\n this.noticeHeader = 'Sorry to tell you...'\r\n this.noticeText = 'You are not registered in the application or your account was disabled.';\r\n break;\r\n\r\n case 'unauthorized':\r\n this.noticeHeader = 'Tsk, tsk!';\r\n this.noticeText = 'You are not authorized to do that.';\r\n break;\r\n\r\n default:\r\n this.noticeHeader = 'Under construction';\r\n this.noticeText = 'Hit the logo in the top left corner to go to application home page or the back button to return to previous screen.';\r\n }\r\n }\r\n\r\n login() {\r\n this.location.back();\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SharedModule } from '../@shared';\r\nimport { NoticeRoutingModule } from './notice-routing.module';\r\nimport { NoticeComponent } from './notice.component';\r\nimport { FlexLayoutModule } from '@angular/flex-layout';\r\n\r\n@NgModule({\r\n declarations: [\r\n NoticeComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n SharedModule,\r\n NoticeRoutingModule,\r\n FlexLayoutModule\r\n ],\r\n})\r\nexport class NoticeModule {}\r\n"],"x_google_ignoreList":[]}