import { Component, HostBinding } from '@angular/core';
import { EclSiteHeaderLoginComponentBase } from '../../common/ecl-site-header-login.component';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "../../../../ecl-icon/ecl-icon.component";
import * as i3 from "@ngx-translate/core";
/**
 * @deprecated
 */
export class EclSiteHeaderCoreLoginComponent extends EclSiteHeaderLoginComponentBase {
    constructor() {
        super(...arguments);
        this.class = 'ecl-site-header-core__login-container';
    }
    getLoginBoxCssClasses() {
        return [
            'ecl-site-header-core__login-box',
            this.isLoginBoxActive ? 'ecl-site-header-core__login-box--active' : ''
        ].join(' ');
    }
}
/** @nocollapse */ EclSiteHeaderCoreLoginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: EclSiteHeaderCoreLoginComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ EclSiteHeaderCoreLoginComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: EclSiteHeaderCoreLoginComponent, selector: "ecl-site-header-core-login", host: { properties: { "class": "this.class" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!isLoggedIn\">\n    <a href=\"#\"\n        variant=\"standalone\" \n        class=\"ecl-button ecl-button--ghost ecl-site-header-core__login-toggle\" \n        [attr.aria-expanded]=\"isLoginBoxActive\"\n        (click)=\"onLoginClick($event)\">\n        <ecl-icon icon=\"log-in\" size=\"s\" class=\"ecl-site-header-core__icon\"></ecl-icon>\n        {{ 'ecl.site-header.LOGIN' | translate }}\n    </a>\n</ng-container>\n<ng-container *ngIf=\"isLoggedIn\">\n    <a href=\"#\"\n        class=\"ecl-button ecl-button--ghost ecl-site-header-core__login-toggle\" \n        aria-controls=\"login-box-id\" \n        [attr.aria-expanded]=\"isLoginBoxActive\"\n        (click)=\"onLoginBoxToggle($event)\">\n        <ecl-icon icon=\"logged-in\" size=\"s\" class=\"ecl-site-header-core__icon\"></ecl-icon>\n        {{ 'ecl.site-header.LOGGED-IN' | translate }}\n        <ecl-icon icon=\"corner-arrow\" size=\"xs\" class=\"ecl-site-header-core__login-arrow\"></ecl-icon>\n    </a>\n    <div class=\"{{ getLoginBoxCssClasses() }}\">\n        <ng-content></ng-content>\n    </div>\n</ng-container>", styles: [".ecl-site-header-core__login-toggle .ecl-site-header-core__login-arrow{display:inline-flex}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "ariaHidden", "focusable"] }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: EclSiteHeaderCoreLoginComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ecl-site-header-core-login', template: "<ng-container *ngIf=\"!isLoggedIn\">\n    <a href=\"#\"\n        variant=\"standalone\" \n        class=\"ecl-button ecl-button--ghost ecl-site-header-core__login-toggle\" \n        [attr.aria-expanded]=\"isLoginBoxActive\"\n        (click)=\"onLoginClick($event)\">\n        <ecl-icon icon=\"log-in\" size=\"s\" class=\"ecl-site-header-core__icon\"></ecl-icon>\n        {{ 'ecl.site-header.LOGIN' | translate }}\n    </a>\n</ng-container>\n<ng-container *ngIf=\"isLoggedIn\">\n    <a href=\"#\"\n        class=\"ecl-button ecl-button--ghost ecl-site-header-core__login-toggle\" \n        aria-controls=\"login-box-id\" \n        [attr.aria-expanded]=\"isLoginBoxActive\"\n        (click)=\"onLoginBoxToggle($event)\">\n        <ecl-icon icon=\"logged-in\" size=\"s\" class=\"ecl-site-header-core__icon\"></ecl-icon>\n        {{ 'ecl.site-header.LOGGED-IN' | translate }}\n        <ecl-icon icon=\"corner-arrow\" size=\"xs\" class=\"ecl-site-header-core__login-arrow\"></ecl-icon>\n    </a>\n    <div class=\"{{ getLoginBoxCssClasses() }}\">\n        <ng-content></ng-content>\n    </div>\n</ng-container>", styles: [".ecl-site-header-core__login-toggle .ecl-site-header-core__login-arrow{display:inline-flex}\n"] }]
        }], propDecorators: { class: [{
                type: HostBinding,
                args: ['class']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNsLXNpdGUtaGVhZGVyLWNvcmUtbG9naW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL2VjbC1zaXRlLWhlYWRlci9kZXByZWNhdGVkL2VjbC1zaXRlLWhlYWRlci1jb3JlL2xvZ2luL2VjbC1zaXRlLWhlYWRlci1jb3JlLWxvZ2luLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9lY2wtc2l0ZS1oZWFkZXIvZGVwcmVjYXRlZC9lY2wtc2l0ZS1oZWFkZXItY29yZS9sb2dpbi9lY2wtc2l0ZS1oZWFkZXItY29yZS1sb2dpbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUVsRSxPQUFPLEVBQUUsK0JBQStCLEVBQUUsTUFBTSw4Q0FBOEMsQ0FBQzs7Ozs7QUFFL0Y7O0dBRUc7QUFVSCxNQUFNLE9BQU8sK0JBQWdDLFNBQVEsK0JBQStCO0lBVHBGOztRQVUwQixVQUFLLEdBQUcsdUNBQXVDLENBQUM7S0FRekU7SUFORyxxQkFBcUI7UUFDakIsT0FBTztZQUNILGlDQUFpQztZQUNqQyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsQ0FBQyxDQUFDLHlDQUF5QyxDQUFDLEN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