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AC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;IAED,eAAe;QACb,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;QAC7B,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;IAED,gBAAgB;QACd,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC;IAC9F,CAAC;IAED,eAAe;QACb,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;IAED,WAAW;QACT,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpD,CAAC;CAGF;;YA1CO,8FAAgB;YAFhB,iGAAiB;;;sBAYtB,oDAAS,SAAC,sDAAU;4BACpB,oDAAS,SAAC,0EAAa;;AAHb,QAAQ;IALpB,wDAAS,CAAC;QACT,QAAQ,EAAE,eAAe;QACzB,iEAA+B;;KAEhC,CAAC;GACW,QAAQ,CAkCpB;AAlCoB","sources":["./src/app/components/home/home.component.ts","./src/app/components/home/home.module.ts","./src/app/components/shared/main-slider/main-slider-item/main-slider-item.component.ts","./src/app/components/shared/main-slider/main-slider-item/main-slider-item.module.ts","./src/app/components/shared/main-slider/main-slider.component.ts","./src/app/components/shared/main-slider/main-slider.module.ts","./src/app/components/shared/main-slider/main-slider.service.ts","./src/app/pages/home/home-routing.module.ts","./src/app/pages/home/home.module.ts","./src/app/pages/home/home.page.ts"],"sourcesContent":["import {AfterViewInit, Component, ElementRef, OnInit, ViewChild} from '@angular/core';\nimport {TvService} from '../internet-tv/tv.service';\n\n@Component({\n selector: 'app-home',\n templateUrl: './home.component.html',\n styleUrls: ['./home.component.scss']\n})\nexport class HomeComponent implements OnInit, AfterViewInit {\n\n @ViewChild('map') map: ElementRef;\n\n sledovaniTvData;\n imgMessage;\n\n constructor(private tvService: TvService) {\n }\n\n ngOnInit() {\n this.tvService.getSledovaniTvData().subscribe((data) => {\n this.sledovaniTvData = data;\n const imgStr: any = Object.values(this.sledovaniTvData.messages)[0];\n const div = document.createElement('div');\n div.innerHTML = imgStr;\n const img = div.querySelector('img');\n this.imgMessage = img?.src;\n });\n }\n\n ngAfterViewInit() {\n this.loadMap();\n }\n\n loadMap() {\n this.map?.nativeElement?.appendChild(document.getElementById('map-services'));\n }\n\n}\n","import {NgModule} from '@angular/core';\n\nimport {HomeComponent} from './home.component';\nimport {HeadLineModule} from '../shared/head-line/head-line.module';\nimport {MainSliderModule} from '../shared/main-slider/main-slider.module';\nimport {MainSliderItemModule} from '../shared/main-slider/main-slider-item/main-slider-item.module';\nimport {MapModule} from '../shared/map/map.module';\nimport {CommonModule} from '@angular/common';\nimport {Heading2Module} from '../shared/heading2/heading2.module';\nimport {RouterModule} from '@angular/router';\n\n@NgModule({\n declarations: [HomeComponent],\n imports: [\n HeadLineModule,\n MainSliderModule,\n MainSliderItemModule,\n MapModule,\n CommonModule,\n Heading2Module,\n RouterModule\n ],\n exports: [HomeComponent]\n})\n\nexport class HomeModule {\n\n}\n","import {Component, Input, OnInit} from \"@angular/core\";\nimport {MainSliderService} from \"../main-slider.service\";\n\n@Component({\n selector: \"app-main-slider-item\",\n templateUrl: \"./main-slider-item.component.html\",\n styleUrls: [\"./main-slider-item.component.scss\"],\n})\nexport class MainSliderItemComponent implements OnInit {\n\n @Input() background: string;\n @Input() header: string;\n @Input() text: string;\n @Input() item: number;\n @Input() link: string = \"/\";\n\n array = Array;\n\n constructor(public mainSliderService: MainSliderService) {\n }\n\n ngOnInit() {\n }\n\n slideForward(event: MouseEvent, showItem: number, itemsCount: number) {\n event.preventDefault();\n this.mainSliderService.slideForward(showItem, itemsCount);\n }\n\n slideBackward(event: MouseEvent, showItem: number, itemsCount: number) {\n event.preventDefault();\n this.mainSliderService.slideBackward(showItem, itemsCount);\n }\n}\n","import {NgModule} from \"@angular/core\";\n\nimport {MainSliderItemComponent} from \"./main-slider-item.component\";\nimport {CommonModule} from \"@angular/common\";\nimport {RouterModule} from \"@angular/router\";\n\n@NgModule({\n declarations: [MainSliderItemComponent],\n imports: [\n CommonModule,\n RouterModule\n ],\n exports: [MainSliderItemComponent]\n})\n\nexport class MainSliderItemModule {\n}\n","import {AfterViewInit, Component, Input, OnInit} from \"@angular/core\";\nimport {MainSliderService} from \"./main-slider.service\";\n\n/** koko */\n@Component({\n selector: \"app-main-slider\",\n templateUrl: \"./main-slider.component.html\",\n styleUrls: [\"./main-slider.component.scss\"],\n})\nexport class MainSliderComponent implements OnInit, AfterViewInit {\n\n @Input() items: number;\n @Input() slideTime: number;\n\n constructor(private mainSliderService: MainSliderService) {\n }\n\n ngOnInit() {\n }\n\n ngAfterViewInit() {\n this.mainSliderService.setItemsCount(this.items);\n this.mainSliderService.setSlideTime(this.slideTime);\n this.mainSliderService.startInterval(this.slideTime, this.items);\n }\n\n}\n","import {NgModule} from \"@angular/core\";\n\nimport {MainSliderComponent} from \"./main-slider.component\";\n\n@NgModule({\n declarations: [MainSliderComponent],\n imports: [],\n exports: [MainSliderComponent],\n})\n\nexport class MainSliderModule {\n}\n","import {Injectable} from \"@angular/core\";\nimport {BehaviorSubject} from \"rxjs\";\n\n@Injectable({\n providedIn: \"root\"\n})\n\nexport class MainSliderService {\n\n interval;\n defaultItem = 2;\n\n constructor() {\n }\n\n private slideTime = new BehaviorSubject(5000);\n slideTime$ = this.slideTime.asObservable();\n\n setSlideTime(slideTime) {\n this.slideTime.next(slideTime);\n }\n\n private itemsCount = new BehaviorSubject(1);\n itemsCount$ = this.itemsCount.asObservable();\n\n setItemsCount(itemsCount) {\n this.itemsCount.next(itemsCount);\n }\n\n private showItem = new BehaviorSubject(1);\n showItem$ = this.showItem.asObservable();\n\n setShowedItems(item) {\n this.showItem.next(item);\n }\n\n //** slide forward */\n slideForward(showItem, itemCount) {\n if (showItem < itemCount) {\n showItem++;\n this.showItem.next(showItem);\n } else {\n this.showItem.next(1);\n }\n }\n\n //** slide backward */\n slideBackward(showItem, itemCount) {\n if (showItem === 1) {\n this.showItem.next(itemCount);\n } else {\n showItem--;\n this.showItem.next(showItem);\n }\n }\n\n /** start sliding */\n startInterval(time, items) {\n this.interval = setInterval(() => {\n this.setShowedItems(this.defaultItem);\n if (this.defaultItem < items) this.defaultItem++;\n else this.defaultItem = 1;\n }, time);\n }\n\n //** stop sliding */\n stopInternval() {\n clearInterval(this.interval);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { HomePage } from './home.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: HomePage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class HomePageRoutingModule {}\n","import {NgModule} from \"@angular/core\";\nimport {CommonModule} from \"@angular/common\";\nimport {FormsModule} from \"@angular/forms\";\n\nimport {IonicModule} from \"@ionic/angular\";\n\nimport {HomePageRoutingModule} from \"./home-routing.module\";\nimport {HomePage} from \"./home.page\";\n\nimport {HomeModule} from \"../../components/home/home.module\";\nimport {HeaderModule} from \"../../components/shared/header/header.module\";\nimport {FooterModule} from \"../../components/shared/footer/footer.module\";\nimport {ScrollTopModule} from \"../../components/shared/scroll-top/scroll-top.module\";\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n HomePageRoutingModule,\n HeaderModule,\n ScrollTopModule,\n HomeModule,\n FooterModule\n ],\n declarations: [HomePage]\n})\nexport class HomePageModule {\n}\n","import {AfterViewInit, Component, OnDestroy, OnInit, ViewChild} from '@angular/core';\nimport {MainSliderService} from '../../components/shared/main-slider/main-slider.service';\nimport {IonContent} from '@ionic/angular';\nimport {ScrollTopService} from '../../components/shared/scroll-top/scroll-top.service';\nimport {HomeComponent} from '../../components/home/home.component';\n\n@Component({\n selector: 'app-home-page',\n templateUrl: './home.page.html',\n styleUrls: ['./home.page.scss'],\n})\nexport class HomePage implements OnInit, AfterViewInit, OnDestroy {\n\n @ViewChild(IonContent) content: IonContent;\n @ViewChild(HomeComponent) homeComponent: HomeComponent;\n\n constructor(private scrollTopService: ScrollTopService,\n private mainSliderService: MainSliderService) {\n }\n\n ngOnInit() {\n }\n\n ngAfterViewInit() {\n this.scrollTopService.registerContent(this.content);\n }\n\n ionViewDidEnter() {\n this.homeComponent.loadMap();\n this.scrollTopService.scrollTop(this.content);\n }\n\n ionViewWillLeave() {\n document.getElementById('map-wrapper').appendChild(document.getElementById('map-services'));\n }\n\n ionViewDidLeave() {\n this.mainSliderService.stopInternval();\n }\n\n ngOnDestroy() {\n this.scrollTopService.removeContent(this.content);\n }\n\n\n}\n"],"names":[],"sourceRoot":"webpack:///","x_google_ignoreList":[]}