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 { EclSiteHeaderStandardisedComponent } from '../../ecl-site-header/ecl-site-header-standardised/ecl-site-header-standardised.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 EclAppStandardisedComponent 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 */ EclAppStandardisedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: EclAppStandardisedComponent, deps: [{ token: GLOBAL_CONFIG_TOKEN, optional: true }, { token: i1.EclLanguageService }, { token: i2.I18nService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ /** @nocollapse */ EclAppStandardisedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: EclAppStandardisedComponent, selector: "ecl-app-standardised", queries: [{ propertyName: "eclSiteHeader", first: true, predicate: EclSiteHeaderStandardisedComponent, 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.6", ngImport: i0, type: EclAppStandardisedComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ecl-app-standardised', 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: [EclSiteHeaderStandardisedComponent]
            }], eclLanguageList: [{
                type: ViewChild,
                args: [EclLanguageListComponent]
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNsLWFwcC1zdGFuZGFyZGlzZWQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL2VjbC1hcHAvZWNsLWFwcC1zdGFuZGFyZGlzZWQvZWNsLWFwcC1zdGFuZGFyZGlzZWQuY29tcG9uZW50Ln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