import { Component, EventEmitter, Input, Output } from '@angular/core';
import { EclBaseEvent } from '../../../model/ecl-base.event';
import { ECLBaseDirective } from '../../ecl-base.directive';
import * as i0 from "@angular/core";
import * as i1 from "../../ecl-icon/ecl-icon.component";
import * as i2 from "@ngx-translate/core";
export class EclSiteHeaderLanguageClickEvent extends EclBaseEvent {
}
export class EclSiteHeaderLanguageComponent extends ECLBaseDirective {
    constructor() {
        super(...arguments);
        this.languageCode = 'en';
        this.languageClick = new EventEmitter();
    }
    onLanguageClick(evt) {
        this.languageClick.next(new EclSiteHeaderLanguageClickEvent());
        evt.preventDefault();
    }
}
/** @nocollapse */ EclSiteHeaderLanguageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: EclSiteHeaderLanguageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ EclSiteHeaderLanguageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: EclSiteHeaderLanguageComponent, selector: "ecl-site-header-language", inputs: { languageLabel: "languageLabel", languageCode: "languageCode" }, outputs: { languageClick: "languageClick" }, usesInheritance: true, ngImport: i0, template: "<a href=\"#\"\n   class=\"ecl-button ecl-button--ghost ecl-site-header__language-selector\"\n   aria-controls=\"language-list-overlay\"\n   (click)=\"onLanguageClick($event)\">\n    <span class=\"ecl-site-header__language-icon\">\n        <ecl-icon icon=\"language\"\n                  size=\"s\"\n                  class=\"ecl-site-header__icon\"></ecl-icon>\n        <span class=\"ecl-site-header__language-code\">{{ languageCode }}</span>\n    </span>\n    {{ languageLabel || 'ecl.language-list.ENGLISH' | translate }}\n</a>", styles: [":host{display:flex}\n"], dependencies: [{ kind: "component", type: i1.EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "ariaHidden", "focusable"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: EclSiteHeaderLanguageComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ecl-site-header-language', template: "<a href=\"#\"\n   class=\"ecl-button ecl-button--ghost ecl-site-header__language-selector\"\n   aria-controls=\"language-list-overlay\"\n   (click)=\"onLanguageClick($event)\">\n    <span class=\"ecl-site-header__language-icon\">\n        <ecl-icon icon=\"language\"\n                  size=\"s\"\n                  class=\"ecl-site-header__icon\"></ecl-icon>\n        <span class=\"ecl-site-header__language-code\">{{ languageCode }}</span>\n    </span>\n    {{ languageLabel || 'ecl.language-list.ENGLISH' | translate }}\n</a>", styles: [":host{display:flex}\n"] }]
        }], propDecorators: { languageLabel: [{
                type: Input
            }], languageCode: [{
                type: Input
            }], languageClick: [{
                type: Output
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNsLXNpdGUtaGVhZGVyLWxhbmd1YWdlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9lY2wtc2l0ZS1oZWFkZXIvbGFuZ3VhZ2UvZWNsLXNpdGUtaGVhZGVyLWxhbmd1YWdlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9lY2wtc2l0ZS1oZWFkZXIvbGFuZ3VhZ2UvZWNsLXNpdGUtaGVhZGVyLWxhbmd1YWdlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdkUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQzdELE9BQU8sRUFBRSxnQkFBZ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