import { Component, ContentChild, ChangeDetectorRef, Inject, Optional, ViewChild } from '@angular/core';
import { GLOBAL_CONFIG_TOKEN, I18nService } from '@eui/core';
import { EclLanguageService } from '../../../services/ecl-language.service';
import { EclLanguageListComponent } from '../../ecl-language-list';
import { EclSiteHeaderComponent } from '../../ecl-site-header/common/ecl-site-header.component';
import { EclSiteHeaderHarmonisedComponent } from '../../ecl-site-header/ecl-site-header-harmonised/ecl-site-header-harmonised.component';
import { EclAppComponent } from '../common';
import * as i0 from "@angular/core";
import * as i1 from "../../../services/ecl-language.service";
import * as i2 from "@eui/core";
import * as i3 from "../../ecl-language-list/ecl-language-list.component";
import * as i4 from "../../ecl-language-list/ecl-language-list-item.component";
import * as i5 from "@angular/common";
export class EclAppHarmonisedComponent extends EclAppComponent {
    constructor(config, eclLanguageService, i18nService, cd) {
        super(eclLanguageService, eclLanguageService, i18nService, cd);
        this.config = config;
        this.eclLanguageService = eclLanguageService;
        this.i18nService = i18nService;
        this.cd = cd;
    }
}
/** @nocollapse */ /** @nocollapse */ EclAppHarmonisedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: EclAppHarmonisedComponent, deps: [{ token: GLOBAL_CONFIG_TOKEN, optional: true }, { token: i1.EclLanguageService }, { token: i2.I18nService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ /** @nocollapse */ EclAppHarmonisedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: EclAppHarmonisedComponent, selector: "ecl-app-harmonised", queries: [{ propertyName: "eclSiteHeader", first: true, predicate: EclSiteHeaderHarmonisedComponent, descendants: true }], viewQueries: [{ propertyName: "eclLanguageList", first: true, predicate: EclLanguageListComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n\n<ecl-language-list \n    [isHidden]=\"true\"\n    [isOverlay]=\"true\">\n    <ecl-language-list-item \n        *ngFor=\"let lang of languages\" \n        [languageCode]=\"lang.code\" \n        [languageLabel]=\"lang.label\">\n    </ecl-language-list-item>\n</ecl-language-list>", components: [{ type: i3.EclLanguageListComponent, selector: "ecl-language-list", inputs: ["isOverlay", "selectedLanguageCode", "isHidden"], outputs: ["languageSelected", "close"] }, { type: i4.EclLanguageListItemComponent, selector: "ecl-language-list-item", inputs: ["isActive", "languageCode", "languageLabel"], outputs: ["itemClick"] }], directives: [{ type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: EclAppHarmonisedComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ecl-app-harmonised', template: "<ng-content></ng-content>\n\n<ecl-language-list \n    [isHidden]=\"true\"\n    [isOverlay]=\"true\">\n    <ecl-language-list-item \n        *ngFor=\"let lang of languages\" \n        [languageCode]=\"lang.code\" \n        [languageLabel]=\"lang.label\">\n    </ecl-language-list-item>\n</ecl-language-list>" }]
        }], ctorParameters: function () { return [{ type: undefined, decorators: [{
                    type: Optional
                }, {
                    type: Inject,
                    args: [GLOBAL_CONFIG_TOKEN]
                }] }, { type: i1.EclLanguageService }, { type: i2.I18nService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { eclSiteHeader: [{
                type: ContentChild,
                args: [EclSiteHeaderHarmonisedComponent]
            }], eclLanguageList: [{
                type: ViewChild,
                args: [EclLanguageListComponent]
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNsLWFwcC1oYXJtb25pc2VkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9lY2wtYXBwL2VjbC1hcHAtaGFybW9uaXNlZC9lY2wtYXBwLWhhcm1vbmlzZWQuY29tcG9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