import { ChangeDetectionStrategy, Component, Inject, Input, } from '@angular/core';
import { TOKEN_LOGO_URL } from '../../core/constants/tokens';
import { ProductEntryName } from './common-layout/public-api';
import * as i0 from "@angular/core";
function PageHeaderComponent_a_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "a", 11);
    i0.ɵɵelement(1, "img", 12);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("href", ctx_r0.logoUrl, i0.ɵɵsanitizeUrl);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("src", ctx_r0.logoSrc, i0.ɵɵsanitizeUrl);
} }
function PageHeaderComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "a", 13);
    i0.ɵɵelement(1, "img", 12);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("src", ctx_r2.logoSrc, i0.ɵɵsanitizeUrl);
} }
function PageHeaderComponent_ng_container_10_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelement(1, "acl-header-notify")(2, "acl-help-menu", 14);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("docLink", ctx_r3.docLink || ctx_r3.DEFAULT_DOC_LINK);
} }
function PageHeaderComponent_div_12_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "div", 4);
} }
const _c0 = ["*", [["", "customActions", ""]]];
const _c1 = ["*", "[customActions]"];
export const DEFAULT_PLATFORM_PATH = '/console-platform';
export const DEFAULT_DOC_LINK = 'docs';
export class PageHeaderComponent {
    constructor(logoUrl) {
        this.logoUrl = logoUrl;
        this.DEFAULT_PLATFORM_PATH = DEFAULT_PLATFORM_PATH;
        this.DEFAULT_DOC_LINK = DEFAULT_DOC_LINK;
        this.logoSrc = 'api/v1/cm/ui-logos/logo';
        this.menuActions = true;
        this.menuSeparator = true;
    }
}
PageHeaderComponent.ɵfac = function PageHeaderComponent_Factory(t) { return new (t || PageHeaderComponent)(i0.ɵɵdirectiveInject(TOKEN_LOGO_URL)); };
PageHeaderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PageHeaderComponent, selectors: [["acl-page-header"]], inputs: { title: "title", currentProduct: "currentProduct", docLink: "docLink", isPlatform: "isPlatform", menuActions: "menuActions", menuSeparator: "menuSeparator" }, ngContentSelectors: _c1, decls: 14, vars: 8, consts: [[1, "page-header__left"], [1, "page-header__logo"], [3, "href", 4, "ngIf", "ngIfElse"], ["plainPictureRef", ""], [1, "page-header__separator"], [3, "current", "title", "platformPath"], [1, "page-header__center"], [1, "page-header__right"], [4, "ngIf"], ["class", "page-header__separator", 4, "ngIf"], [3, "platformPath"], [3, "href"], ["alt", "logo", 3, "src"], ["href", "/"], [3, "docLink"]], template: function PageHeaderComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵprojectionDef(_c0);
        i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
        i0.ɵɵtemplate(2, PageHeaderComponent_a_2_Template, 2, 2, "a", 2);
        i0.ɵɵtemplate(3, PageHeaderComponent_ng_template_3_Template, 2, 1, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
        i0.ɵɵelementEnd();
        i0.ɵɵelement(5, "div", 4)(6, "acl-product-select", 5);
        i0.ɵɵelementEnd();
        i0.ɵɵelementStart(7, "div", 6);
        i0.ɵɵprojection(8);
        i0.ɵɵelementEnd();
        i0.ɵɵelementStart(9, "div", 7);
        i0.ɵɵtemplate(10, PageHeaderComponent_ng_container_10_Template, 3, 1, "ng-container", 8);
        i0.ɵɵprojection(11, 1);
        i0.ɵɵtemplate(12, PageHeaderComponent_div_12_Template, 1, 0, "div", 9);
        i0.ɵɵelement(13, "acl-account-menu", 10);
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        const _r1 = i0.ɵɵreference(4);
        i0.ɵɵadvance(2);
        i0.ɵɵproperty("ngIf", ctx.logoUrl)("ngIfElse", _r1);
        i0.ɵɵadvance(4);
        i0.ɵɵproperty("current", ctx.currentProduct)("title", ctx.title)("platformPath", ctx.isPlatform ? "" : ctx.DEFAULT_PLATFORM_PATH);
        i0.ɵɵadvance(4);
        i0.ɵɵproperty("ngIf", ctx.menuActions);
        i0.ɵɵadvance(2);
        i0.ɵɵproperty("ngIf", ctx.menuSeparator);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("platformPath", ctx.isPlatform ? "" : ctx.DEFAULT_PLATFORM_PATH);
    } }, styles: ["[_nghost-%COMP%]{display:flex;flex:1;align-items:center;height:60px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   acl-product-select[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%]   .page-header__left[_ngcontent-%COMP%]{min-width:256px;max-width:400px}[_nghost-%COMP%]   .page-header__center[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%]   .page-header__logo[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:32px;max-width:160px}[_nghost-%COMP%]   .page-header__logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:32px}[_nghost-%COMP%]   .page-header__separator[_ngcontent-%COMP%]{height:32px;width:1px;background-color:rgb(var(--aui-color-n-2));margin:0 8px 0 16px;opacity:.1}[_nghost-%COMP%]   .page-header__title[_ngcontent-%COMP%]{height:24px;line-height:24px;font-size:18px;font-weight:500;color:rgb(var(--aui-color-n-1));white-space:nowrap;word-break:keep-all}[_nghost-%COMP%]   acl-header-notify[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%]   acl-account-menu[_ngcontent-%COMP%]{margin-left:24px}"], changeDetection: 0 });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PageHeaderComponent, [{
        type: Component,
        args: [{ selector: 'acl-page-header', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"page-header__left\">\n  <div class=\"page-header__logo\">\n    <a\n      [href]=\"logoUrl\"\n      *ngIf=\"logoUrl; else plainPictureRef\"\n    >\n      <img\n        [src]=\"logoSrc\"\n        alt=\"logo\"\n      />\n    </a>\n    <ng-template #plainPictureRef>\n      <a href=\"/\">\n        <img\n          [src]=\"logoSrc\"\n          alt=\"logo\"\n        />\n      </a>\n    </ng-template>\n  </div>\n  <div class=\"page-header__separator\"></div>\n  <acl-product-select\n    [current]=\"currentProduct\"\n    [title]=\"title\"\n    [platformPath]=\"isPlatform ? '' : DEFAULT_PLATFORM_PATH\"\n  ></acl-product-select>\n</div>\n<div class=\"page-header__center\">\n  <ng-content></ng-content>\n</div>\n<div class=\"page-header__right\">\n  <ng-container *ngIf=\"menuActions\">\n    <acl-header-notify></acl-header-notify>\n    <acl-help-menu [docLink]=\"docLink || DEFAULT_DOC_LINK\"></acl-help-menu>\n  </ng-container>\n  <ng-content select=\"[customActions]\"></ng-content>\n  <div\n    *ngIf=\"menuSeparator\"\n    class=\"page-header__separator\"\n  ></div>\n  <acl-account-menu\n    [platformPath]=\"isPlatform ? '' : DEFAULT_PLATFORM_PATH\"\n  ></acl-account-menu>\n</div>\n", styles: [":host{display:flex;flex:1;align-items:center;height:60px}:host>div{display:flex;align-items:center}:host acl-product-select{overflow:hidden;text-overflow:ellipsis}:host .page-header__left{min-width:256px;max-width:400px}:host .page-header__center{flex:1}:host .page-header__logo{display:flex;align-items:center;min-width:32px;max-width:160px}:host .page-header__logo img{height:32px}:host .page-header__separator{height:32px;width:1px;background-color:rgb(var(--aui-color-n-2));margin:0 8px 0 16px;opacity:.1}:host .page-header__title{height:24px;line-height:24px;font-size:18px;font-weight:500;color:rgb(var(--aui-color-n-1));white-space:nowrap;word-break:keep-all}:host acl-header-notify{margin-right:8px}:host acl-account-menu{margin-left:24px}\n"] }]
    }], function () { return [{ type: undefined, decorators: [{
                type: Inject,
                args: [TOKEN_LOGO_URL]
            }] }]; }, { title: [{
            type: Input
        }], currentProduct: [{
            type: Input
        }], docLink: [{
            type: Input
        }], isPlatform: [{
            type: Input
        }], menuActions: [{
            type: Input
        }], menuSeparator: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 