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;AAAA;AAfnBA,mBAAmB;QAAnBA,mBAAmB;EAAApC;EAAAC;EAAAC;EAAAC;EAAA8C;IAAA;MCdhCrE,4DAAAA,aAAgC;MAE5BA,uDAAAA,mBAA6B;MAC/BA,0DAAAA,EAAM;MACNA,4DAAAA,aAAc;MACZA,wDAAAA,uDAIM;MACNA,uDAAAA,oBAA+B;MACjCA,0DAAAA,EAAM;MAENA,4DAAAA,aAA0B;MACxBA,wDAAAA,uFAAwE;;MAC1EA,0DAAAA,EAAM;;;MAVwBA,uDAAAA,GAAsB;MAAtBA,wDAAAA,8BAAsB;MAS5BA,uDAAAA,GAA0B;MAA1BA,wDAAAA,SAAAA,yDAAAA,yBAA0B","sources":["./src/app/account/_services/collapse-menu.service.ts","./src/app/account/login-menu/login-menu.component.ts","./src/app/account/login-menu/login-menu.component.html","./src/app/user/nav-menu/nav-menu.component.ts","./src/app/user/nav-menu/nav-menu.component.html","./src/app/user/user-layout.component.ts","./src/app/user/user-layout.component.html"],"sourcesContent":["import {Injectable} from '@angular/core';\nimport {BehaviorSubject} from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class CollapseMenuService {\n\n collapseMenu = new BehaviorSubject(false);\n\n constructor() {\n\n }\n}\n","import {Component, OnInit} from '@angular/core';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\nimport {AuthorizeService} from '../_services/authorize.service';\nimport {RoleType} from '../_models/Role';\nimport {CollapseMenuService} from '../_services/collapse-menu.service';\n\n@Component({\n selector: 'app-login-menu',\n templateUrl: './login-menu.component.html',\n styleUrls: ['./login-menu.component.scss']\n})\nexport class LoginMenuComponent implements OnInit {\n public isAuthenticated: Observable;\n public userName: Observable;\n public isAdmin: Observable;\n\n constructor(\n private authorizeService: AuthorizeService,\n private collapseMenu: CollapseMenuService\n ) {\n }\n\n ngOnInit() {\n this.isAuthenticated = this.authorizeService.isAuthenticated();\n this.userName = this.authorizeService.getUser().pipe(map(user => user && user.profile.fullName));\n\n this.isAdmin = this.authorizeService.getRole().pipe(map(role => role.value == RoleType.Admin || role.value == RoleType.Editor));\n }\n\n collapse() {\n this.collapseMenu.collapseMenu.next(true);\n }\n}\n","\n\n\n","import {AfterViewInit, Component, Inject} from '@angular/core';\nimport {CookieService} from 'ngx-cookie-service';\nimport {HttpClient} from '@angular/common/http';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport {LoadingService} from '../../_services/loading.service';\nimport {environment} from '../../../environments/environment';\nimport {CollapseMenuService} from '../../account/_services/collapse-menu.service';\n\n@Component({\n selector: 'app-nav-menu',\n templateUrl: './nav-menu.component.html',\n styleUrls: ['./nav-menu.component.scss']\n})\nexport class NavMenuComponent implements AfterViewInit {\n\n locale: string;\n private reloadLanguage = false;\n isExpanded = false;\n\n constructor(private loading: LoadingService,\n private cookieService: CookieService,\n private _httpClient: HttpClient,\n private router: Router,\n public route: ActivatedRoute,\n @Inject('BASE_URL') private baseUrl: string,\n private collapseMenu: CollapseMenuService\n ) {\n const locale = this.cookieService.get('.User.Locale');\n if (locale !== '') {\n this.locale = locale;\n } else {\n this.reloadLanguage = true;\n this.locale = environment.defaultLanguage;\n }\n\n\n collapseMenu.collapseMenu.subscribe(value => {\n\n if (value) {\n this.collapse();\n }\n\n });\n\n }\n\n\n ngAfterViewInit(): void {\n this.changeLang(this.locale, this.reloadLanguage);\n }\n\n\n //.User.Locale\n changeLang(lang: string, reload = false) {\n\n this.collapse();\n if (lang === 'cs') {\n document.getElementById('flag_cz').classList.add('flag-active');\n document.getElementById('flag_en').classList.remove('flag-active');\n this.cookieService.set('.User.Locale', 'cs', {\n path: '/'\n });\n } else {\n document.getElementById('flag_en').classList.add('flag-active');\n document.getElementById('flag_cz').classList.remove('flag-active');\n this.cookieService.set('.User.Locale', 'en', {\n path: '/'\n });\n }\n\n if (reload) {\n\n window.location.reload();\n return;\n }\n }\n\n\n collapse() {\n this.isExpanded = false;\n }\n\n toggle() {\n this.isExpanded = !this.isExpanded;\n }\n}\n","
\n \n
\n\n
\n
\n \n \n \n
\n Metadata module of the Czech Medieval Sources online database\n
\n
\n\n \n \n \n
\n\n\n \n\n\n \n
\n \n
\n\n
\n \n
\n\n
\n \n \n
\n","import {Component, Inject, OnDestroy, OnInit} from '@angular/core';\nimport {LoadingService} from '../_services/loading.service';\nimport {CookieService} from 'ngx-cookie-service';\nimport {HttpClient} from '@angular/common/http';\nimport {Observable, Subscription} from 'rxjs';\nimport {CookiesBannerService} from '../shared/_services/cookies-banner.service';\nimport {map} from 'rxjs/operators';\nimport {RouteConfigLoadEnd, RouteConfigLoadStart, Router} from '@angular/router';\n\n@Component({\n selector: 'app-user-layout',\n templateUrl: './user-layout.component.html',\n styleUrls: ['./user-layout.component.css']\n})\nexport class UserLayoutComponent implements OnInit, OnDestroy {\n\n isLoadingResults = false;\n opened = true;\n viewIsCreated = false;\n\n locale: string;\n private timeout;\n private loadingSubscription: Subscription;\n public cookiesAgree: Observable;\n\n constructor(private loading: LoadingService,\n private cookieService: CookieService,\n private _httpClient: HttpClient,\n private cookiesBannerService: CookiesBannerService,\n @Inject('BASE_URL') private baseUrl: string,\n private router: Router\n ) {\n\n\n }\n\n ngOnInit(): void {\n\n this.cookiesAgree = this.cookiesBannerService.cookiesAgree.pipe(map(value => !value));\n\n this.loadingSubscription = this.loading.loading.subscribe(value => {\n setTimeout(_ => {\n this.isLoadingResults = value;\n });\n });\n\n this.router.events.subscribe(value => {\n if (value instanceof RouteConfigLoadStart) {\n this.loading.show();\n } else if (value instanceof RouteConfigLoadEnd) {\n this.loading.hide();\n }\n });\n }\n\n ngAfterViewInit(): void {\n this.viewIsCreated = true;\n }\n\n\n ngOnDestroy() {\n this.loadingSubscription.unsubscribe();\n }\n}\n","
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n
\n\n
\n \n
\n
\n\n\n"],"names":["BehaviorSubject","CollapseMenuService","constructor","factory","providedIn","map","RoleType","i0","LoginMenuComponent","authorizeService","collapseMenu","ngOnInit","isAuthenticated","userName","getUser","pipe","user","profile","fullName","isAdmin","getRole","role","value","Admin","Editor","collapse","next","selectors","decls","vars","consts","$localize","environment","NavMenuComponent","loading","cookieService","_httpClient","router","route","baseUrl","locale","get","reloadLanguage","defaultLanguage","subscribe","ngAfterViewInit","changeLang","lang","reload","document","getElementById","classList","add","remove","set","path","window","location","isExpanded","toggle","ctx","RouteConfigLoadEnd","RouteConfigLoadStart","UserLayoutComponent","cookiesBannerService","cookiesAgree","loadingSubscription","setTimeout","_","isLoadingResults","events","show","hide","viewIsCreated","ngOnDestroy","unsubscribe","template"],"sourceRoot":"webpack:///"}