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