import { AlRoute, AlSubscriptionGroup, } from '@al/core';
import { Component, Input, } from '@angular/core';
import { Router } from '@angular/router';
import { AlTemplateIndexService } from '@al/ng-generic-components';
import { AlNavigationService } from '../../services/al-navigation.service';
import { AlNavigationInitializeToggle, AlNavigationNavHeaderMounted, AlNavigationRemoveToggle, AlNavigationTertiarySelected } from '../../types';
import * as i0 from "@angular/core";
import * as i1 from "@angular/router";
import * as i2 from "../../services/al-navigation.service";
import * as i3 from "@al/ng-generic-components";
import * as i4 from "@angular/common";
import * as i5 from "primeng-lts/tooltip";
import * as i6 from "primeng-lts/inputswitch";
import * as i7 from "@angular/forms";
var _c0 = function (a0) { return { "active": a0 }; };
function AlArchipeligo17PrimaryMenuComponent_section_1_nav_2_ng_template_2_li_0_Template(rf, ctx) { if (rf & 1) {
    var _r8 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "li", 8);
    i0.ɵɵlistener("click", function AlArchipeligo17PrimaryMenuComponent_section_1_nav_2_ng_template_2_li_0_Template_li_click_0_listener($event) { i0.ɵɵrestoreView(_r8); var menuItem_r4 = i0.ɵɵnextContext().$implicit; var ctx_r6 = i0.ɵɵnextContext(3); return ctx_r6.onClick(menuItem_r4, $event); })("mouseover", function AlArchipeligo17PrimaryMenuComponent_section_1_nav_2_ng_template_2_li_0_Template_li_mouseover_0_listener($event) { i0.ɵɵrestoreView(_r8); var menuItem_r4 = i0.ɵɵnextContext().$implicit; var ctx_r9 = i0.ɵɵnextContext(3); return ctx_r9.onHoverStart(menuItem_r4, $event); });
    i0.ɵɵelementStart(1, "a", 9);
    i0.ɵɵlistener("click", function AlArchipeligo17PrimaryMenuComponent_section_1_nav_2_ng_template_2_li_0_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r8); var menuItem_r4 = i0.ɵɵnextContext().$implicit; var ctx_r11 = i0.ɵɵnextContext(3); return ctx_r11.onClick(menuItem_r4, $event); });
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var menuItem_r4 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵproperty("ngClass", menuItem_r4.properties.consolidated_css_classes);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0, menuItem_r4.activated))("href", menuItem_r4.href || "", i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(menuItem_r4.caption);
} }
function AlArchipeligo17PrimaryMenuComponent_section_1_nav_2_ng_template_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵtemplate(0, AlArchipeligo17PrimaryMenuComponent_section_1_nav_2_ng_template_2_li_0_Template, 3, 6, "li", 7);
} if (rf & 2) {
    var menuItem_r4 = ctx.$implicit;
    i0.ɵɵproperty("ngIf", menuItem_r4.visible);
} }
function AlArchipeligo17PrimaryMenuComponent_section_1_nav_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "nav", 5);
    i0.ɵɵelementStart(1, "ul");
    i0.ɵɵtemplate(2, AlArchipeligo17PrimaryMenuComponent_section_1_nav_2_ng_template_2_Template, 1, 1, "ng-template", 6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngForOf", ctx_r1.primaryItems);
} }
function AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_ng_template_2_li_0_i_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "i", 15);
    i0.ɵɵtext(1, "launch");
    i0.ɵɵelementEnd();
} }
function AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_ng_template_2_li_0_Template(rf, ctx) { if (rf & 1) {
    var _r22 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "li", 8);
    i0.ɵɵlistener("click", function AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_ng_template_2_li_0_Template_li_click_0_listener($event) { i0.ɵɵrestoreView(_r22); var menuItem_r17 = i0.ɵɵnextContext().$implicit; var ctx_r20 = i0.ɵɵnextContext(3); return ctx_r20.onClick(menuItem_r17, $event); })("mouseover", function AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_ng_template_2_li_0_Template_li_mouseover_0_listener($event) { i0.ɵɵrestoreView(_r22); var menuItem_r17 = i0.ɵɵnextContext().$implicit; var ctx_r23 = i0.ɵɵnextContext(3); return ctx_r23.onHoverStart(menuItem_r17, $event); });
    i0.ɵɵelementStart(1, "a", 13);
    i0.ɵɵlistener("click", function AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_ng_template_2_li_0_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r22); var menuItem_r17 = i0.ɵɵnextContext().$implicit; var ctx_r25 = i0.ɵɵnextContext(3); return ctx_r25.onClick(menuItem_r17, $event); });
    i0.ɵɵtext(2);
    i0.ɵɵtemplate(3, AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_ng_template_2_li_0_i_3_Template, 2, 0, "i", 14);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var menuItem_r17 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵproperty("ngClass", menuItem_r17.properties.consolidated_css_classes);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0, menuItem_r17.activated))("href", menuItem_r17.href || "", i0.ɵɵsanitizeUrl)("target", menuItem_r17.properties.target || "");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1("", menuItem_r17.caption, " ");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", menuItem_r17.properties.target === "_blank");
} }
function AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_ng_template_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵtemplate(0, AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_ng_template_2_li_0_Template, 4, 8, "li", 7);
} if (rf & 2) {
    var menuItem_r17 = ctx.$implicit;
    i0.ɵɵproperty("ngIf", menuItem_r17.visible);
} }
function AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_li_3_Template(rf, ctx) { if (rf & 1) {
    var _r29 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "li", 16);
    i0.ɵɵelementStart(1, "span", 17);
    i0.ɵɵlistener("click", function AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_li_3_Template_span_click_1_listener() { i0.ɵɵrestoreView(_r29); var ctx_r28 = i0.ɵɵnextContext(3); return ctx_r28.experienceToggle.callback(); });
    i0.ɵɵelement(2, "p-inputSwitch", 18);
    i0.ɵɵelementStart(3, "span", 19);
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r15 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("pTooltip", ctx_r15.experienceToggle.tooltip);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngModel", ctx_r15.experienceToggle.checked);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r15.experienceToggle.label);
} }
function AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_li_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainer(0);
} }
function AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_li_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "li");
    i0.ɵɵtemplate(1, AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_li_4_ng_container_1_Template, 1, 0, "ng-container", 20);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r16 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngTemplateOutlet", ctx_r16.contextualActionsTpl);
} }
function AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "nav", 10);
    i0.ɵɵelementStart(1, "ul");
    i0.ɵɵtemplate(2, AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_ng_template_2_Template, 1, 1, "ng-template", 6);
    i0.ɵɵtemplate(3, AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_li_3_Template, 5, 3, "li", 11);
    i0.ɵɵtemplate(4, AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_li_4_Template, 2, 1, "li", 12);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngForOf", ctx_r2.secondaryItems);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.experienceToggle !== undefined);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.contextualActionsTpl);
} }
function AlArchipeligo17PrimaryMenuComponent_section_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "section", 2);
    i0.ɵɵelementStart(1, "aside");
    i0.ɵɵtemplate(2, AlArchipeligo17PrimaryMenuComponent_section_1_nav_2_Template, 3, 1, "nav", 3);
    i0.ɵɵtemplate(3, AlArchipeligo17PrimaryMenuComponent_section_1_nav_3_Template, 5, 3, "nav", 4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r0.menu && ctx_r0.menu.visible && ctx_r0.primaryItems.length);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.menu && ctx_r0.menu.visible && ctx_r0.secondaryItems.length);
} }
var AlArchipeligo17PrimaryMenuComponent = /** @class */ (function () {
    function AlArchipeligo17PrimaryMenuComponent(router, alNavigation, triggerIndex) {
        var _this = this;
        this.router = router;
        this.alNavigation = alNavigation;
        this.triggerIndex = triggerIndex;
        this.navigationScheme = "archipeligo";
        this.menu = null;
        this.externalChild = false;
        this.viewReady = false;
        this.primaryItems = []; //  Primary menu items
        this.secondaryItems = []; //  Subnav menu items
        this.activeSecondaryItem = null; //  Active secondary item
        this.experienceToggle = undefined;
        this.subscriptions = new AlSubscriptionGroup();
        this.onActingAccountResolved = function (event) {
            _this.onContextChanged();
        };
        this.onContextChanged = function () {
            if (!_this.menu) {
                return;
            }
            _this.primaryItems = _this.menu.children;
            _this.onLocationChange();
        };
        this.onLocationChange = function () {
            var activeSecondaryItem = null;
            if (_this.menu) {
                _this.primaryItems = _this.menu.children;
                if (!_this.externalChild) {
                    var activeChild = _this.findActiveChild(_this.primaryItems);
                    if (activeChild && activeChild.getProperty("childOutlet") === "none") {
                        _this.secondaryItems = [];
                    }
                    else {
                        _this.secondaryItems = activeChild ? activeChild.children : [];
                    }
                    _this.checkSecondaryMenu();
                }
                activeSecondaryItem = _this.findActiveChild(_this.secondaryItems);
            }
            if (activeSecondaryItem !== _this.activeSecondaryItem) {
                if (activeSecondaryItem) {
                    if (activeSecondaryItem !== _this.activeSecondaryItem) {
                        if (activeSecondaryItem.children.length > 0) {
                            var event_1 = new AlNavigationTertiarySelected(activeSecondaryItem);
                            _this.alNavigation.events.trigger(event_1);
                        }
                        else {
                            var event_2 = new AlNavigationTertiarySelected(null);
                            _this.alNavigation.events.trigger(event_2);
                        }
                    }
                }
                else {
                    var event_3 = new AlNavigationTertiarySelected(null);
                    _this.alNavigation.events.trigger(event_3);
                }
                _this.activeSecondaryItem = activeSecondaryItem;
            }
            _this.viewReady = true;
        };
        this.onSetSecondaryMenu = function (context) {
            if (context.child) {
                _this.secondaryItems = context.child.children;
                _this.externalChild = true;
            }
            else {
                _this.secondaryItems = [];
                _this.externalChild = false;
            }
            _this.checkSecondaryMenu();
            _this.onContextChanged();
        };
        this.subscriptions.manage(this.alNavigation.events.attach("AlActingAccountResolved", this.onActingAccountResolved), this.alNavigation.events.attach("AlNavigationContextChanged", this.onContextChanged), this.alNavigation.events.attach("AlNavigationSecondarySelected", this.onSetSecondaryMenu), this.alNavigation.events.attach(AlNavigationInitializeToggle, function (event) {
            _this.experienceToggle = {
                label: event.label,
                tooltip: event.tooltip,
                checked: event.checked,
                callback: event.callback
            };
        }), this.alNavigation.events.attach(AlNavigationRemoveToggle, function (event) {
            _this.experienceToggle = undefined;
        }), this.triggerIndex.listen("navigation", function () { return _this.onRefreshTemplates(); }));
    }
    AlArchipeligo17PrimaryMenuComponent.prototype.ngOnInit = function () {
        this.alNavigation.events.trigger(new AlNavigationNavHeaderMounted());
        this.onRefreshTemplates();
    };
    AlArchipeligo17PrimaryMenuComponent.prototype.ngOnChanges = function (changes) {
        if (changes.hasOwnProperty("menu")) {
            this.onLocationChange();
        }
    };
    AlArchipeligo17PrimaryMenuComponent.prototype.ngOnDestroy = function () {
        this.subscriptions.cancelAll();
    };
    AlArchipeligo17PrimaryMenuComponent.prototype.onRefreshTemplates = function () {
        this.contextualActionsTpl = this.triggerIndex.getTemplate("navigation", "contextualActions");
    };
    AlArchipeligo17PrimaryMenuComponent.prototype.onClick = function (menuItem, $event) {
        if (menuItem.properties.hasOwnProperty("target") && menuItem.properties.target === '_blank') {
            return true;
        }
        if ($event) {
            $event.stopPropagation();
            $event.preventDefault();
        }
        // open in a new tab if user using the combo: (CMD + click)  or (Ctrl + click) or (middle click)
        if ($event.metaKey || $event.ctrlKey || $event.button === 1) {
            return window.open(menuItem.href, '_blank');
        }
        menuItem.dispatch();
        return true;
    };
    AlArchipeligo17PrimaryMenuComponent.prototype.onHoverStart = function (menuItem, $event) {
        menuItem.refresh(true);
    };
    AlArchipeligo17PrimaryMenuComponent.prototype.setMenuItemClasses = function (route) {
        var classes = [route.getProperty("css_class", "default")];
        if (route.activated) {
            classes.push('active');
        }
        if (!route.enabled) {
            classes.push("disabled");
        }
        classes.push(route.definition.id ? route.definition.id.replace(/\:/g, "_") : route.caption.replace(/\s/g, "_"));
        route.setProperty("consolidated_css_classes", classes.join(" "));
    };
    /**
     * set menu item classes and returns the activated item or null
     */
    AlArchipeligo17PrimaryMenuComponent.prototype.findActiveChild = function (items) {
        var _this = this;
        var activeItem = null;
        items.forEach(function (item) {
            _this.setMenuItemClasses(item);
            activeItem = item.activated ? item : activeItem;
        });
        return activeItem;
    };
    AlArchipeligo17PrimaryMenuComponent.prototype.checkSecondaryMenu = function () {
        if (this.secondaryItems.length) {
            this.secondaryItems = !this.secondaryItems[0].parent.getProperty("childOutletOnly") ? this.secondaryItems : [];
        }
    };
    /** @nocollapse */ AlArchipeligo17PrimaryMenuComponent.ɵfac = function AlArchipeligo17PrimaryMenuComponent_Factory(t) { return new (t || AlArchipeligo17PrimaryMenuComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i2.AlNavigationService), i0.ɵɵdirectiveInject(i3.AlTemplateIndexService)); };
    /** @nocollapse */ AlArchipeligo17PrimaryMenuComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AlArchipeligo17PrimaryMenuComponent, selectors: [["al-archipeligo17-primary-menu"]], inputs: { navigationScheme: "navigationScheme", menu: "menu" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 1, consts: [[1, "primary-navigation"], ["class", "navigation-bar", 4, "ngIf"], [1, "navigation-bar"], ["class", "mainNav", 4, "ngIf"], ["class", "subNav", 4, "ngIf"], [1, "mainNav"], ["ngFor", "", 3, "ngForOf"], [3, "ngClass", "click", "mouseover", 4, "ngIf"], [3, "ngClass", "click", "mouseover"], [3, "ngClass", "href", "click"], [1, "subNav"], ["class", "experience-toggle", 4, "ngIf"], [4, "ngIf"], [3, "ngClass", "href", "target", "click"], ["class", "material-icons", 4, "ngIf"], [1, "material-icons"], [1, "experience-toggle"], ["tooltipPosition", "bottom", 3, "pTooltip", "click"], [3, "ngModel"], [1, "p-col", "p-col-align-center"], [4, "ngTemplateOutlet"]], template: function AlArchipeligo17PrimaryMenuComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵtemplate(1, AlArchipeligo17PrimaryMenuComponent_section_1_Template, 4, 2, "section", 1);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.viewReady);
        } }, directives: [i4.NgIf, i4.NgForOf, i4.NgClass, i5.Tooltip, i6.InputSwitch, i7.NgControlStatus, i7.NgModel, i4.NgTemplateOutlet], styles: [".primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .mainNav[_ngcontent-%COMP%]{border:0;background:#fff;flex:1 1 auto;border-bottom:1px solid #cbcbcb;z-index:100;padding-left:16px}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .mainNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;margin:0;align-items:center;width:100%;list-style:none;padding:0}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .mainNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{align-items:center;padding:10px 24px 5px;border-bottom:3px solid #fff;cursor:pointer;font-size:90%;line-height:20px}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .mainNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#868686;text-decoration:none;text-transform:uppercase}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .mainNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a.active[_ngcontent-%COMP%]{font-weight:600;color:#535353}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .mainNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a.disabled[_ngcontent-%COMP%]{pointer-events:none;color:#cbcbcb}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .mainNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{padding-left:5px;font-size:80%}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .mainNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .mainNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{border-bottom:3px solid #ffb840}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .mainNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover.disabled{border-color:#fff}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .subNav[_ngcontent-%COMP%]{flex:1 1 auto;text-align:left;background:#ededed;padding-left:16px;box-shadow:0 3px 2px -1px rgba(0,0,0,.2);z-index:100}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .subNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;margin:0;width:100%;list-style:none;padding:0}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .subNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{align-items:center;padding:11px 24px 10px;cursor:pointer;font-size:90%;line-height:20px}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .subNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li.experience-toggle[_ngcontent-%COMP%]{position:absolute;right:120px;padding:11px 0 10px 10px;color:#868686;font-weight:lighter}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .subNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#868686;text-decoration:none;font-weight:lighter}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .subNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a.active[_ngcontent-%COMP%]{font-weight:600;color:#535353}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .subNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a.disabled[_ngcontent-%COMP%]{pointer-events:none;color:#cbcbcb}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .subNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{background:0 0}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .subNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{padding-left:5px;font-size:80%}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .subNav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.5)}.primary-navigation[_ngcontent-%COMP%]   section.navigation-bar[_ngcontent-%COMP%]   .subNav[_ngcontent-%COMP%]   .atTheEnd[_ngcontent-%COMP%]{position:absolute;right:36px}.mat-menu-item[_ngcontent-%COMP%]{line-height:normal}.app-toolbar-filler[_ngcontent-%COMP%]{flex:1 1 auto}.app-toolbar-menu[_ngcontent-%COMP%]{padding:0 14px;color:#fff}.app-icon-button[_ngcontent-%COMP%]{box-shadow:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:0 0;border:none;cursor:pointer;filter:none;font-weight:400;height:auto;line-height:inherit;margin:0;min-width:0;padding:0;text-align:left;text-decoration:none}mat-card[_ngcontent-%COMP%]{margin:20px}mat-card[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-weight:400;font-size:1.5em}mat-card.nav[_ngcontent-%COMP%]{padding:0 0 20px}section.o3-menu.account-menu[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;min-height:120px}section.o3-menu.account-menu[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]{display:flex;flex:2 0 auto}section.o3-menu.account-menu[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin:0;align-items:center;width:100%;list-style:none;padding:0}section.o3-menu.account-menu[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{align-items:center;padding:0 10px;border-left:2px solid #ededed}section.o3-menu.account-menu[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:first-child{border-left:none}section.o3-menu.account-menu[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#a8a8a8;font-size:.7em;text-decoration:none;display:flex;align-items:center}section.o3-menu.account-menu[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#ffa800}section.o3-menu.main[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;padding-bottom:40px;width:100%}section.o3-menu.main[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]{border:0;color:#fff;flex:1 1 auto;border-bottom:1px solid #cbcbcb;padding-left:20px}section.o3-menu.main[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;margin:0;align-items:center;width:100%;list-style:none;padding:0}section.o3-menu.main[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{align-items:center;padding:10px 20px 5px;border-bottom:3px solid #fff;position:relative}section.o3-menu.main[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.activated[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:700;color:#535353}section.o3-menu.main[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.activated[_ngcontent-%COMP%]:hover{border-bottom:3px solid #ffb840}section.o3-menu.main[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.disabled[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:not-allowed;color:#cbcbcb}section.o3-menu.main[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#868686;text-decoration:none;font-weight:300}section.o3-menu.main[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]{position:fixed;left:0;display:flex;flex:1;flex-direction:column;width:100%;padding-top:0;margin-top:10px}section.o3-menu.main[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]{flex:1 1 auto;height:42px;text-align:left;background:#ededed;padding-left:20px;box-shadow:0 3px 2px -1px rgba(0,0,0,.2)}section.o3-menu.main[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;margin:0;align-items:center;width:100%;list-style:none;padding:0}section.o3-menu.main[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{align-items:center;padding:11px 20px 20px;border-bottom:none}section.o3-menu.main[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.activated[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:700;color:#535353}section.o3-menu.main[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.activated[_ngcontent-%COMP%]:hover{border-bottom:none;background:rgba(255,255,255,.5)}section.o3-menu.main[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#868686;text-decoration:none;font-weight:300}"] });
    return AlArchipeligo17PrimaryMenuComponent;
}());
export { AlArchipeligo17PrimaryMenuComponent };
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AlArchipeligo17PrimaryMenuComponent, [{
        type: Component,
        args: [{
                selector: 'al-archipeligo17-primary-menu',
                templateUrl: './al-archipeligo17-primary-menu.component.html',
                styleUrls: ['./al-archipeligo17-primary-menu.component.scss']
            }]
    }], function () { return [{ type: i1.Router }, { type: i2.AlNavigationService }, { type: i3.AlTemplateIndexService }]; }, { navigationScheme: [{
            type: Input
        }], menu: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 