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EC,IAAI,EAAE,EAAE;MAAEE,WAAW,EAAE,EAAE;MAAED,KAAK,EAAE;IAAmB,CAAE,CAEpF;EACH;EAAC,QAAAE,CAAA;;;;;;;;;;AApDUhD,aAAa,GAAAM,UAAA,EANzBK,wDAAS,CAAC;EACTsC,QAAQ,EAAE,UAAU;EACpBC,QAAA,EAAAC,4DAAoC;EAEpCC,SAAS,EAAE,CAACnC,qFAAmB,CAAC;;CACjC,CAAC,GACWjB,aAAa,CAsDzB;;;;;;;;;;;ACrED;AACA,4CAA4C,mBAAO,CAAC,8EAAmE;AACvH,kCAAkC,mBAAO,CAAC,uEAA4D;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC,OAAO,6KAA6K,KAAK,YAAY,WAAW,MAAM,UAAU,UAAU,MAAM,KAAK,UAAU,UAAU,MAAM,KAAK,WAAW,UAAU,UAAU,KAAK,KAAK,UAAU,WAAW,UAAU,MAAM,KAAK,UAAU,WAAW,sSAAsS,kCAAkC,mGAAmG,qGAAqG,8BAA8B,kCAAkC,+BAA+B,iEAAiE,WAAW,kBAAkB,kBAAkB,KAAK,gBAAgB,mBAAmB,mBAAmB,KAAK,4BAA4B,yBAAyB,mBAAmB,sBAAsB,uBAAuB,wBAAwB,yBAAyB,qBAAqB,OAAO,KAAK,gDAAgD,kBAAkB,2BAA2B,KAAK,2BAA2B;AACh+C;AACA","sources":["./src/app/management/dashboard/dashboard-routing.module.ts","./src/app/management/dashboard/dashboard.module.ts","./src/app/management/dashboard/home/home.component.ts","./src/app/management/dashboard/home/home.component.scss"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { HomeComponent } from './home/home.component';\r\nimport { MatTableModule } from '@angular/material/table';\r\n\r\nconst routes: Routes = [\r\n {\r\n path: '',\r\n component: HomeComponent\r\n }\r\n]\r\n\r\n@NgModule({\r\n declarations: [HomeComponent],\r\n imports: [\r\n CommonModule,\r\n MatTableModule,\r\n RouterModule.forChild(routes),\r\n ]\r\n})\r\nexport class DashboardRoutingModule { }\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { DashboardRoutingModule } from './dashboard-routing.module';\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule,\r\n DashboardRoutingModule\r\n ]\r\n})\r\nexport class DashboardModule { }\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { RequestPropertyDatasource } from '../../core/datasource/request-property-datasource';\r\nimport { BehaviorSubject } from 'rxjs';\r\nimport { IRequestProperty } from '../../core/interfaces/request-property.interface';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Meta, Title } from '@angular/platform-browser';\r\nimport { LocalStorageService } from '../../core/services/local-storage.service';\r\nimport { LocalStorageKey } from '../../core/constants/user/local-storage-key';\r\n\r\n@Component({\r\n selector: 'app-home',\r\n templateUrl: './home.component.html',\r\n styleUrls: ['./home.component.scss'],\r\n providers: [LocalStorageService]\r\n})\r\nexport class HomeComponent implements OnInit {\r\n public dataSource: RequestPropertyDatasource | null;\r\n public properties: BehaviorSubject = new BehaviorSubject([]);\r\n\r\n public displayedColumns = ['property', 'value', 'description'];\r\n\r\n public fragment: any;\r\n private fragmentDictionary: { [key: string]: boolean } = {\r\n [\"authorization\"]: false\r\n };\r\n\r\n public userRole: string;\r\n\r\n constructor(private route: ActivatedRoute,\r\n private title: Title, private meta:Meta,\r\n private localStorageService: LocalStorageService) {\r\n //this.title.setTitle(\"Dillo Documentation\");\r\n\r\n var role = this.localStorageService.getWithExpiry(LocalStorageKey.UserRole);\r\n this.userRole = role != null ? role : \"customer\";\r\n }\r\n\r\n ngOnInit() {\r\n this.dataSource = new RequestPropertyDatasource(this.properties);\r\n\r\n this.properties.next(this.getHeaders());\r\n\r\n this.route.fragment.subscribe(fragment => { this.fragment = fragment; });\r\n }\r\n\r\n ngAfterViewChecked(): void {\r\n try {\r\n var key = this.fragment;\r\n if (this.fragmentDictionary.hasOwnProperty(key) && this.fragmentDictionary[key] == true) {\r\n return;\r\n }\r\n else {\r\n if (this.fragment) {\r\n document.querySelector('#' + this.fragment).scrollIntoView();\r\n this.fragmentDictionary[key] = true;\r\n }\r\n }\r\n } catch (e) { }\r\n }\r\n\r\n getHeaders(): IRequestProperty[] {\r\n return [\r\n { property: 'CustomerCode', type: ' ', value: 'Get from Console', description: 'Your Customer Code' },\r\n { property: 'ApiKey', type: '', value: 'Get from Console', description: ' Your API key' },\r\n { property: 'Content-Type', type: '', description: \"\", value: \"application/ json\" }\r\n\r\n ]\r\n }\r\n\r\n}\r\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/*\n =================================================================================================\n general layout variables\n =================================================================================================\n*/\n/* main menu that contains the modules: console, sms, email, etc */\n/* secondary menu that contains the menu for each module */\na {\n float: left;\n clear: left;\n}\n\np .link {\n float: none;\n clear: none;\n}\n\n.home.inner-layout {\n position: relative;\n height: 100%;\n padding-left: 0;\n}\n.home.inner-layout-container {\n padding: 2.5rem;\n overflow-y: auto;\n height: 100%;\n}\n\n.mat-column-property, .mat-column-value {\n width: 15%;\n padding-right: 1rem;\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/scss/management/_variables.scss\",\"webpack://./src/app/management/dashboard/home/home.component.scss\"],\"names\":[],\"mappings\":\"AAAA;;;;CAAA;AAM8B,kEAAA;AACF,0DAAA;ACL5B;EACE,WAAA;EACA,WAAA;AAMF;;AAHA;EACI,WAAA;EACA,WAAA;AAMJ;;AAHA;EACE,kBAAA;EACA,YAAA;EACA,eAAA;AAMF;AAJE;EACE,eAAA;EACA,gBAAA;EACA,YAAA;AAMJ;;AAFA;EACI,UAAA;EACA,mBAAA;AAKJ\",\"sourcesContent\":[\"/*\\r\\n =================================================================================================\\r\\n general layout variables\\r\\n =================================================================================================\\r\\n*/\\r\\n$header-height: 60px;\\r\\n$sidenav-modules-width: 5rem; /* main menu that contains the modules: console, sms, email, etc */\\r\\n$sidenav-menu-width: 12rem; /* secondary menu that contains the menu for each module */\\r\\n$sidenav-container-padding: 1rem 0rem;\\r\\n\\r\\n$scrollbar-width: 5px;\\r\\n\\r\\n$breakpoint-tablet: 768px;\\r\\n$breakpoint-laptop: 1024px;\\r\\n\\r\\n\",\"@import '../../../../scss/management/_variables.scss';\\r\\n\\r\\na {\\r\\n float: left;\\r\\n clear: left;\\r\\n}\\r\\n\\r\\np .link{\\r\\n float:none;\\r\\n clear:none;\\r\\n}\\r\\n\\r\\n.home.inner-layout {\\r\\n position: relative;\\r\\n height: 100%;\\r\\n padding-left: 0;\\r\\n\\r\\n &-container {\\r\\n padding: 2.5rem;\\r\\n overflow-y: auto;\\r\\n height: 100%;\\r\\n }\\r\\n}\\r\\n\\r\\n.mat-column-property, .mat-column-value{\\r\\n width:15%;\\r\\n padding-right:1rem;\\r\\n}\\r\\n\\r\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n"],"names":["NgModule","CommonModule","RouterModule","HomeComponent","MatTableModule","routes","path","component","DashboardRoutingModule","__decorate","declarations","imports","forChild","DashboardModule","Component","RequestPropertyDatasource","BehaviorSubject","ActivatedRoute","Meta","Title","LocalStorageService","LocalStorageKey","constructor","route","title","meta","localStorageService","properties","displayedColumns","fragmentDictionary","role","getWithExpiry","UserRole","userRole","ngOnInit","dataSource","next","getHeaders","fragment","subscribe","ngAfterViewChecked","key","hasOwnProperty","document","querySelector","scrollIntoView","e","property","type","value","description","_","selector","template","__NG_CLI_RESOURCE__0","providers"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}