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 { EclSiteHeaderComponentBase } from '../../../ecl-site-header/deprecated/common/ecl-site-header.component';
import { EclSiteHeaderCoreComponent } from '../../../ecl-site-header/deprecated/ecl-site-header-core/ecl-site-header-core.component';
import { EclAppComponentBase } 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 "@angular/common";
import * as i4 from "../../../ecl-language-list/ecl-language-list.component";
import * as i5 from "../../../ecl-language-list/ecl-language-list-item.component";
/**
 * @deprecated Please use EclAppComponent instead
 */
export class EclAppCoreComponent extends EclAppComponentBase {
    constructor(config, eclLanguageService, i18nService, cd) {
        super(eclLanguageService, eclLanguageService, i18nService, cd);
        this.config = config;
        this.eclLanguageService = eclLanguageService;
        this.i18nService = i18nService;
        this.cd = cd;
    }
}
/** @nocollapse */ EclAppCoreComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: EclAppCoreComponent, deps: [{ token: GLOBAL_CONFIG_TOKEN, optional: true }, { token: i1.EclLanguageService }, { token: i2.I18nService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ EclAppCoreComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: EclAppCoreComponent, selector: "ecl-app-core", queries: [{ propertyName: "eclSiteHeader", first: true, predicate: EclSiteHeaderCoreComponent, 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>", dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i4.EclLanguageListComponent, selector: "ecl-language-list", inputs: ["isOverlay", "selectedLanguageCode", "isHidden"], outputs: ["languageSelected", "close"] }, { kind: "component", type: i5.EclLanguageListItemComponent, selector: "ecl-language-list-item", inputs: ["isActive", "languageCode", "languageLabel"], outputs: ["itemClick"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: EclAppCoreComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ecl-app-core', 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: [EclSiteHeaderCoreComponent]
            }], eclLanguageList: [{
                type: ViewChild,
                args: [EclLanguageListComponent]
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNsLWFwcC1jb3JlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9lY2wtYXBwL2RlcHJlY2F0ZWQvZWNsLWFwcC1jb3JlL2VjbC1hcHAtY29yZS5jb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