\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n\\r\\n\"","import {\r\n Component,\r\n Input,\r\n Output,\r\n EventEmitter,\r\n ElementRef,\r\n ViewChild,\r\n AfterViewInit\r\n} from '@angular/core';\r\nimport { BsModalComponent } from 'ng2-bs3-modal';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport {\r\n faExclamationTriangle,\r\n faCheck\r\n} from '@fortawesome/free-solid-svg-icons';\r\n\r\n@Component({\r\n // tslint:disable-next-line:component-selector\r\n selector: 'ise-status-dialog',\r\n templateUrl: './statusdialog.component.html'\r\n})\r\nexport class StatusComponent implements AfterViewInit {\r\n @ViewChild('StatusDialogModal')\r\n modal: BsModalComponent;\r\n statusText = '';\r\n loading = false;\r\n statusok = true;\r\n retries: number;\r\n faExclamationTriangle = faExclamationTriangle;\r\n faCheck = faCheck;\r\n manualLink = '';\r\n\r\n @Output()\r\n onClose: EventEmitter = new EventEmitter(false);\r\n @Output()\r\n onOpen: EventEmitter = new EventEmitter(false);\r\n\r\n\r\n constructor(\r\n private element: ElementRef,\r\n private translate: TranslateService\r\n ) {\r\n translate.addLangs(['en', 'fr', 'de']);\r\n const browserLang = translate.getBrowserLang();\r\n if (browserLang !== '') {\r\n translate.setDefaultLang(browserLang);\r\n } else {\r\n translate.setDefaultLang('de');\r\n }\r\n translate.use(browserLang.match(/en|fr|de/) ? browserLang : 'en');\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.modal.onClose.subscribe(() => {\r\n this.onClose.emit(undefined);\r\n });\r\n this.modal.onDismiss.subscribe(() => {\r\n this.onClose.emit(undefined);\r\n });\r\n this.modal.onOpen.subscribe(() => {\r\n this.onOpen.emit(undefined);\r\n });\r\n }\r\n dismiss() {\r\n this.modal.dismiss();\r\n }\r\n close() {\r\n this.modal.close();\r\n }\r\n open(text) {\r\n this.statusText = text;\r\n this.modal.open();\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/dist/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"],"sourceRoot":""}