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IADLC,QAAc3C,EAAA4C,UAAA","sources":["./src/app/layout/fresh/components/footer/footer-height.directive.ts","./src/app/layout/fresh/components/footer/footer.component.html","./src/app/layout/fresh/components/footer/footer.component.ts"],"sourcesContent":["import { AfterViewInit, Directive, ElementRef } from '@angular/core';\n\n@Directive({\n selector: '[appFooterHeight]',\n standalone: true\n})\nexport class FooterHeightDirective implements AfterViewInit {\n constructor(private elRef: ElementRef) { }\n\n ngAfterViewInit(): void {\n const pageEl = document.querySelector(\".page\");\n pageEl?.style.setProperty(\"--footer-height\", this.elRef.nativeElement.offsetHeight + 'px');\n\n }\n\n}\n\n","
\n
\n \n \n \n\n
\n \n
\n\n \n\n
\n Developed on the platform\n {{ (isIiko$ | async) ? 'iiko' : 'Syrve' }}\n
\n
\n
\n\n\n","import { AsyncPipe, NgFor, NgIf } from '@angular/common';\nimport { AfterViewInit, Component, ViewChild, ViewContainerRef } from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport { Observable } from 'rxjs';\n\nimport { select } from '@ngneat/elf';\nimport { SvgIconComponent } from '../../../../shared/components/svg-icon/svg-icon.component';\nimport { ConfigRepository } from '../../../../shared/repositories/config.repository';\nimport { SocialLink } from '../../../../api/v1/models/social-link';\nimport { SeparateTask } from '../../../../shared/utils/separate-task';\nimport { AdditionalPageShort } from '../../../../api/v1/models/additional-page-short';\nimport { FooterHeightDirective } from './footer-height.directive';\n\n@Component({\n selector: 'app-footer',\n templateUrl: './footer.component.html',\n standalone: true,\n imports: [NgIf, RouterLink, NgFor, SvgIconComponent, AsyncPipe, FooterHeightDirective]\n})\nexport class FooterComponent implements AfterViewInit {\n constructor(\n private configRepository: ConfigRepository,\n ) {}\n\n @ViewChild('metricView', { read: ViewContainerRef }) metricView: ViewContainerRef;\n\n isIiko$: Observable = this.configRepository.isIiko$;\n address$: Observable = this.configRepository.address$;\n socialLinks$: Observable = this.configRepository.socialLinks$;\n\n additionalAbout$: Observable = this.configRepository.additionalAbout$;\n additionalPrivacy$: Observable = this.configRepository.additionalPrivacy$;\n\n noOutlets$: Observable = this.configRepository.outlets$.pipe(select(outlets => !outlets.length));\n footerColor$: Observable = this.configRepository.footerColor$;\n\n ngAfterViewInit(): void {\n void this.loadMetric();\n }\n\n @SeparateTask()\n async loadMetric(): Promise {\n this.metricView.clear();\n const {MetricFooterComponent} = await import('../../../../components/metric-footer/metric-footer.component');\n this.metricView.createComponent(MetricFooterComponent);\n }\n}\n\n"],"names":["FooterHeightDirective","constructor","elRef","this","ngAfterViewInit","document","querySelector","style","setProperty","nativeElement","offsetHeight","static","t","i0","core","lG2","selectors","standalone","_c1","additionalAbout_r6","slug","menuLabel","link_r9","url","name","FooterComponent_div_6_a_2_Template","socialLinks_r7","additionalPrivacy_r10","ctx_r3","isIiko$","FooterComponent","configRepository","address$","socialLinks$","additionalAbout$","additionalPrivacy$","noOutlets$","outlets$","pipe","select","outlets","length","footerColor$","loadMetric","_this","_asyncToGenerator","metricView","clear","MetricFooterComponent","__webpack_require__","e","then","bind","createComponent","i1","Xpm","viewQuery","rf","ctx","ViewContainerRef","$localize","FooterComponent_div_4_Template","FooterComponent_div_6_Template","FooterComponent_div_8_Template","FooterComponent_div_10_Template","FooterComponent_ng_template_12_Template","NgIf","RouterLink","NgFor","SvgIconComponent","AsyncPipe","encapsulation","__decorate","SeparateTask","prototype"],"sourceRoot":"webpack:///"}