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AAI,EAAE,CAACpD,sDAAW;MACtB,CAAC;IAAE,CAAC,CAAC;EAAE,CAAC;AAAA;;AAExB;AACA;AACA;;AAEA;AACA;AACA","sources":["./src/app/shared/flags-select/flags-select.component.ts","./src/app/shared/flags-select/flags-select.component.html","./node_modules/ngx-cookie-service/fesm2020/ngx-cookie-service.mjs"],"sourcesContent":["import {Component} from '@angular/core';\nimport {CookieService} from 'ngx-cookie-service';\nimport {environment} from '@env/environment';\n\n@Component({\n selector: 'app-flags-select',\n templateUrl: './flags-select.component.html',\n styleUrls: ['./flags-select.component.scss']\n})\nexport class FlagsSelectComponent {\n locale: string;\n reload: boolean;\n\n constructor(\n private cookieService: CookieService,\n ) {\n\n const locale = this.cookieService.get('.User.Locale');\n if (locale !== '') {\n this.locale = locale;\n } else {\n this.reload = true;\n this.locale = environment.defaultLanguage;\n }\n\n }\n\n changeLang(lang: string, reload = false) {\n\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\n if (reload) {\n\n window.location.reload();\n return;\n }\n }\n}\n","