import { AlActingAccountResolvedEvent, AlSession, AlSessionEndedEvent, AlSubscriptionGroup, } from '@al/core';
import { Component, } from '@angular/core';
import { AlNavigationService } from '../../services/al-navigation.service';
import * as i0 from "@angular/core";
import * as i1 from "../../services/al-navigation.service";
var _c0 = [[["h1"]], [["", 8, "user-menu-item"]], [["", 8, "application-menu"]]];
var _c1 = ["h1", ".user-menu-item", ".application-menu"];
var AlArchipeligo17HeaderComponent = /** @class */ (function () {
    function AlArchipeligo17HeaderComponent(alNavigation) {
        var _this = this;
        this.alNavigation = alNavigation;
        this.authenticated = false;
        this.subscriptions = new AlSubscriptionGroup();
        this.onSessionEnded = function (event) {
            _this.authenticated = false;
        };
        this.onActingAccountResolved = function (event) {
            _this.authenticated = true;
        };
    }
    AlArchipeligo17HeaderComponent.prototype.ngOnInit = function () {
        this.authenticated = AlSession.isActive();
        this.subscriptions.manage(this.alNavigation.events.attach(AlActingAccountResolvedEvent, this.onActingAccountResolved));
        this.subscriptions.manage(this.alNavigation.events.attach(AlSessionEndedEvent, this.onSessionEnded));
    };
    AlArchipeligo17HeaderComponent.prototype.ngOnDestroy = function () {
        this.subscriptions.cancelAll();
    };
    /** @nocollapse */ AlArchipeligo17HeaderComponent.ɵfac = function AlArchipeligo17HeaderComponent_Factory(t) { return new (t || AlArchipeligo17HeaderComponent)(i0.ɵɵdirectiveInject(i1.AlNavigationService)); };
    /** @nocollapse */ AlArchipeligo17HeaderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AlArchipeligo17HeaderComponent, selectors: [["al-archipeligo17-header"]], ngContentSelectors: _c1, decls: 10, vars: 0, consts: [[1, "al-header", "u-mt-2"], [1, "header-container"], [1, "navbar-left"], ["href", "/#/"], [1, "logo"], [1, "menu"]], template: function AlArchipeligo17HeaderComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵprojectionDef(_c0);
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelementStart(3, "a", 3);
            i0.ɵɵelement(4, "span", 4);
            i0.ɵɵelementEnd();
            i0.ɵɵprojection(5, 0, ["class", "header-title"]);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(6, "div");
            i0.ɵɵprojection(7, 1);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(8, "div", 5);
            i0.ɵɵprojection(9, 2);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } }, styles: [".al-header[_ngcontent-%COMP%]{width:100%}.al-header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;display:flex;align-items:center}.al-header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none}.al-header[_ngcontent-%COMP%]   .selectable-div[_ngcontent-%COMP%]{cursor:pointer}.al-header[_ngcontent-%COMP%]   .navbar-left[_ngcontent-%COMP%], .al-header[_ngcontent-%COMP%]   .navbar-left[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex}.al-header[_ngcontent-%COMP%]   .navbar-left[_ngcontent-%COMP%]   span.logo[_ngcontent-%COMP%]{display:inline-block;width:254px;height:52px;background-image:url(\"data:image/svg+xml,%3Csvg id%3D%22Layer_1%22 data-name%3D%22Layer 1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 496.98 101.14%22%3E  %3Cdefs%3E    %3Cstyle%3E      .cls-1 %7B        fill%3A %23273c57%3B      %7D      .cls-2 %7B        fill%3A %23fe6116%3B      %7D    %3C%2Fstyle%3E  %3C%2Fdefs%3E  %3Ctitle%3EPrimary-RGB%3C%2Ftitle%3E  %3Cg%3E    %3Cg%3E      %3Cg%3E        %3Cpath class%3D%22cls-1%22 d%3D%22M127.37%2C76.29H113.72l-2.28%2C5.92H103.5l14.06-35.4h6.07l14.11%2C35.4H129.6Zm-2.48-6.42L120.6%2C58.54l-4.4%2C11.33Z%22%2F%3E        %3Cpath class%3D%22cls-1%22 d%3D%22M154.77%2C46.81V75H171v7.18H147.29V46.81Z%22%2F%3E        %3Cpath class%3D%22cls-1%22 d%3D%22M204.17%2C46.81V54H190v6.37h12.65v7.18H190V75h14.21v7.18H182.48V46.81Z%22%2F%3E        %3Cpath class%3D%22cls-1%22 d%3D%22M236.68%2C82.21l-8-13.51h-3.84V82.21h-7.48V46.81H231a11.15%2C11.15%2C0%2C0%2C1%2C11.17%2C10.92c0%2C4.55-2.17%2C8.09-5.66%2C9.81l9.26%2C14.67Zm-11.83-20h5.41a4.1%2C4.1%2C0%2C1%2C0%2C0-8.19h-5.41Z%22%2F%3E      %3C%2Fg%3E      %3Cpath class%3D%22cls-1%22 d%3D%22M280.52%2C54H270.16V82.21h-7.49V54H252.36V46.81h28.16Z%22%2F%3E      %3Cpath class%3D%22cls-1%22 d%3D%22M310.2%2C46.81V75h16.23v7.18H302.71V46.81Z%22%2F%3E      %3Cg%3E        %3Cpath class%3D%22cls-2%22 d%3D%22M370.13%2C64.51A17.77%2C17.77%2C0%2C0%2C1%2C352%2C82.71c-10.31%2C0-18-7.84-18-18.2s7.74-18.21%2C18-18.21A17.77%2C17.77%2C0%2C0%2C1%2C370.13%2C64.51Zm-28.47%2C0c0%2C6.22%2C4.45%2C10.92%2C10.36%2C10.92s10.37-4.7%2C10.37-10.92S357.94%2C53.59%2C352%2C53.59%2C341.66%2C58.29%2C341.66%2C64.51Z%22%2F%3E        %3Cpath class%3D%22cls-1%22 d%3D%22M414.33%2C65.67c0%2C10.17-7.13%2C17-17.3%2C17s-18-7.84-18-18.2%2C7.74-18.21%2C18.06-18.21c7.18%2C0%2C14.1%2C3.8%2C15.87%2C9.21l-7.13%2C3.18c-1.26-3.08-4.8-5.1-8.74-5.1-5.92%2C0-10.37%2C4.7-10.37%2C10.92a10.54%2C10.54%2C0%2C0%2C0%2C10.92%2C10.92c5.31%2C0%2C8.55-3.34%2C8.8-7.08v0h-9.91V62.23h17.6A27.62%2C27.62%2C0%2C0%2C1%2C414.33%2C65.67Z%22%2F%3E        %3Cpath class%3D%22cls-1%22 d%3D%22M432.78%2C46.81v35.4H425.3V46.81Z%22%2F%3E        %3Cpath class%3D%22cls-1%22 d%3D%22M461.6%2C82.71c-10.16%2C0-17.85-8-17.85-18.2S451.44%2C46.3%2C461.6%2C46.3c7.18%2C0%2C13.4%2C3.8%2C15.12%2C9.21l-6.67%2C3.18c-1.32-3.08-4.45-5.1-8.45-5.1-6%2C0-10.16%2C4.65-10.16%2C10.92s4.14%2C10.92%2C10.16%2C10.92c4.25%2C0%2C7.54-2.22%2C8.65-5.71l6.87%2C3.13C475.41%2C78.67%2C469%2C82.71%2C461.6%2C82.71Z%22%2F%3E      %3C%2Fg%3E      %3Cpath class%3D%22cls-1%22 d%3D%22M492.25%2C54.18l-1.18-2h-.57v2h-1.11V48.94h2a1.65%2C1.65%2C0%2C0%2C1%2C1.65%2C1.62%2C1.56%2C1.56%2C0%2C0%2C1-.83%2C1.45l1.37%2C2.17Zm-1.75-3h.8a.61.61%2C0%2C1%2C0%2C0-1.21h-.8Z%22%2F%3E      %3Cpath class%3D%22cls-1%22 d%3D%22M491.28%2C57.36a5.71%2C5.71%2C0%2C1%2C1%2C5.7-5.7%2C5.7%2C5.7%2C0%2C0%2C1-5.7%2C5.7m0-10.18a4.48%2C4.48%2C0%2C1%2C0%2C4.48%2C4.48%2C4.49%2C4.49%2C0%2C0%2C0-4.48-4.48%22%2F%3E    %3C%2Fg%3E    %3Cg%3E      %3Cpath class%3D%22cls-1%22 d%3D%22M57.5%2C21.66c5.37-6.5%2C3.57-16.41-2.77-20.17C49.16-1.81%2C40.71%2C0%2C35.79%2C11c-1.14%2C2.6-3.82%2C11.37-6.55%2C21.11-2.19%2C6-7%2C17.71-10.89%2C23.67a9.26%2C9.26%2C0%2C0%2C0-.57%2C1c-7.86%2C11.48-15.27%2C23-16.5%2C26.26-3%2C7.89-.66%2C14.76%2C6.24%2C17.37S23.41%2C98.3%2C25%2C90c1-5.05.78-14.86%2C2.9-27.36%2C1.22-5.26%2C4.67-17.54%2C12.83-25.79%2C5.76-5.58%2C10.72-7.9%2C16.75-15.2ZM88.05%2C78.18C83.84%2C68.36%2C47.78%2C21%2C54.61%2C36%2C69.42%2C68.32%2C62%2C72.07%2C65.53%2C89.48%2C67.24%2C97.9%2C76.09%2C102.7%2C83%2C100c6.05-2.38%2C9.88-10.52%2C5.06-21.81Z%22%2F%3E      %3Cpath class%3D%22cls-2%22 d%3D%22M58.68%2C63.87a12.54%2C12.54%2C0%2C1%2C1-12.57-12.5%2C12.55%2C12.55%2C0%2C0%2C1%2C12.57%2C12.5Z%22%2F%3E    %3C%2Fg%3E  %3C%2Fg%3E%3C%2Fsvg%3E\");background-repeat:no-repeat}.al-header[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin:0 40px;min-height:60px;height:60px;align-items:center;padding-top:12px;padding-bottom:12px;padding-right:25px}.al-header[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.al-header[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]   .header-title[_ngcontent-%COMP%]{margin-left:40px;margin-bottom:0;display:flex;height:100%}.al-header[_ngcontent-%COMP%]   .navbar-right[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex}.al-header[_ngcontent-%COMP%]   .user-menu-container[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-top:5px}.al-header[_ngcontent-%COMP%]   .user-menu-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-top:0}.al-header[_ngcontent-%COMP%]   .cross-application-menu[_ngcontent-%COMP%]{z-index:1000;min-width:407px;margin-left:-170px}.al-header[_ngcontent-%COMP%]   .cross-application-menu[_ngcontent-%COMP%]   .user-navigation-menu[_ngcontent-%COMP%]{width:100%;border:1px solid #000;padding:20px}"] });
    return AlArchipeligo17HeaderComponent;
}());
export { AlArchipeligo17HeaderComponent };
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AlArchipeligo17HeaderComponent, [{
        type: Component,
        args: [{
                selector: 'al-archipeligo17-header',
                templateUrl: './al-archipeligo17-header.component.html',
                styleUrls: ['./al-archipeligo17-header.component.scss']
            }]
    }], function () { return [{ type: i1.AlNavigationService }]; }, null); })();
//# sourceMappingURL=data:application/json;base64, 