import { Component, HostBinding, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
import { UxAppShellService } from '@eui/core';
import * as i0 from "@angular/core";
import * as i1 from "@eui/core";
import * as i2 from "@angular/common";
import * as i3 from "../../eui-sidebar-toggle/sidebar-toggle.component";
import * as i4 from "../../eui-language-selector/language-selector.component";
function EuiAppToolbarComponent_eui_sidebar_toggle_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "eui-sidebar-toggle", 2);
} }
function EuiAppToolbarComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelement(1, "eui-language-selector", 3);
    i0.ɵɵelementContainerEnd();
} }
const _c0 = ["*"];
export class EuiAppToolbarComponent {
    constructor(asService) {
        this.asService = asService;
        this.string = 'eui-app-toolbar';
        this.role = 'banner';
    }
    ngOnInit() {
        this.asService.activateToolbar();
    }
}
/** @nocollapse */ EuiAppToolbarComponent.ɵfac = function EuiAppToolbarComponent_Factory(t) { return new (t || EuiAppToolbarComponent)(i0.ɵɵdirectiveInject(i1.UxAppShellService)); };
/** @nocollapse */ EuiAppToolbarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EuiAppToolbarComponent, selectors: [["eui-app-toolbar"]], hostVars: 3, hostBindings: function EuiAppToolbarComponent_HostBindings(rf, ctx) { if (rf & 2) {
        i0.ɵɵattribute("role", ctx.role);
        i0.ɵɵclassMap(ctx.string);
    } }, ngContentSelectors: _c0, decls: 7, vars: 10, consts: [["styleClass", "eui-app-toolbar__sidebar-toggle", 4, "ngIf"], [4, "ngIf"], ["styleClass", "eui-app-toolbar__sidebar-toggle"], ["styleClass", "eui-app-toolbar__language-selector"]], template: function EuiAppToolbarComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵprojectionDef();
        i0.ɵɵtemplate(0, EuiAppToolbarComponent_eui_sidebar_toggle_0_Template, 1, 0, "eui-sidebar-toggle", 0);
        i0.ɵɵpipe(1, "async");
        i0.ɵɵprojection(2);
        i0.ɵɵtemplate(3, EuiAppToolbarComponent_ng_container_3_Template, 2, 0, "ng-container", 1);
        i0.ɵɵpipe(4, "async");
        i0.ɵɵpipe(5, "async");
        i0.ɵɵpipe(6, "async");
    } if (rf & 2) {
        i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 2, ctx.asService.state$).hasSidebar);
        i0.ɵɵadvance(3);
        i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(4, 4, ctx.asService.state$).hasHeader || i0.ɵɵpipeBind1(5, 6, ctx.asService.state$).hasHeader && i0.ɵɵpipeBind1(6, 8, ctx.asService.breakpoints$).isMobile);
    } }, directives: [i2.NgIf, i3.EuiSidebarToggleComponent, i4.EuiLanguageSelectorComponent], pipes: [i2.AsyncPipe], styles: [".eui-app-toolbar{align-items:center;background:var(--eui-app-toolbar-bg-color);border-bottom:1px solid var(--eui-app-toolbar-border-bottom-color);box-shadow:3px 0 10px 0 rgba(183,192,206,.2);color:var(--eui-app-toolbar-color);display:flex;height:var(--eui-app-toolbar-height);left:0;position:fixed;right:0;top:calc(var(--eui-app-header-height) + var(--eui-app-top-message-height));transition:top .1s ease,left .1s ease-in,width .1s ease-in;width:100%;z-index:var(--eui-z-index-nav)}.eui-app-toolbar__sidebar-toggle{padding:var(--eui-spacing-m) 0 var(--eui-spacing-m) var(--eui-spacing-m)}.eui-app-toolbar__sidebar-toggle .eui-icon{cursor:pointer}.eui-app-toolbar__language-selector{margin-left:auto}.eui-app-toolbar__language-selector .eui-language-selector-link__icon{color:var(--eui-color-white);font-size:var(--eui-spacing-xl)}.eui-app-toolbar__language-selector .eui-language-selector-link__language-code{color:var(--eui-color-primary)}.modal-open .eui-app-toolbar{z-index:auto}.eui-t-ec .eui-app-toolbar__sidebar-toggle{padding-top:calc(var(--eui-spacing-m) + 2px)}"], encapsulation: 2 });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiAppToolbarComponent, [{
        type: Component,
        args: [{
                selector: 'eui-app-toolbar',
                templateUrl: './toolbar.component.html',
                styleUrls: ['./_styles/_index.scss'],
                changeDetection: ChangeDetectionStrategy.Default,
                encapsulation: ViewEncapsulation.None,
            }]
    }], function () { return [{ type: i1.UxAppShellService }]; }, { string: [{
            type: HostBinding,
            args: ['class']
        }], role: [{
            type: HostBinding,
            args: ['attr.role']
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiL2J1aWxkcy9ldWkvY2MtY3Nkci1yb290L3BhY2thZ2VzL2V1aS9wYWNrYWdlcy9jb21wb25lbnRzLW5leHQvc3JjLyIsInNvdXJjZXMiOlsibGliL2xheW91dC9ldWktYXBwL2V1aS1hcHAtdG9vbGJhci90b29sYmFyLmNvbXBvbmVudC50cyIsImxpYi9sYXlvdXQvZXVpLWFwcC9ldWktYXBwLXRvb2xiYXIvdG9vbGJhci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBRSx1QkFBdUIsRUFBRSxpQkFBaUIsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUMzRyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxXQUFXLENBQUM7Ozs7Ozs7SUNEOUMsd0NBRXFCOzs7SUFJckIsNkJBQ0k7SUFBQSwyQ0FDd0I7SUFDNUIsMEJBQWU7OztBRENmLE1BQU0sT0FBTyxzQkFBc0I7SUFJL0IsWUFDVyxTQUE0QjtRQUE1QixjQUFTLEdBQVQsU0FBUyxDQUFtQjtRQUpqQixXQUFNLEdBQUcsaUJBQWlCLENBQUM7UUFDdkIsU0FBSSxHQUFHLFFBQVEsQ0FBQztJQUsxQyxDQUFDO0lBRUQsUUFBUTtRQUNKLElBQUksQ0FBQyxTQUFTLENBQUMsZUFBZSxFQUFFLENBQUM7SUFDckMsQ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