import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { GlobalInjector } from '../../../../../../common/services/global-injector';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "../profile-menu/profile-menu.component";
import * as i3 from "../notifications/notifications.component";
import * as i4 from "../../../../../smz-notifications/features/notifications/notifications.component";
import * as i5 from "../../../../features/tenant-switch/tenant-switch.component";
import * as i6 from "../../../../features/localization-switch/localization-switch.component";
export class AthenaTopbarActionsComponent {
    constructor() {
        this.profile = [];
        this.notifications = [];
        this.showLocalizationSwitch = GlobalInjector.config.rbkUtils.uiLocalization.allowLocalizationSwitching;
        this.showTenantSwitch = GlobalInjector.config.rbkUtils.authentication.allowTenantSwitching;
        this.uiConfig = GlobalInjector.config;
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: AthenaTopbarActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: AthenaTopbarActionsComponent, selector: "[smz-ui-athena-topbar-actions]", inputs: { profile: "profile", notifications: "notifications", headerExtrasTemplate: "headerExtrasTemplate" }, ngImport: i0, template: `
      <ng-content></ng-content>

      <div id="smz-ui-topbar"></div>

      <span class="col extras-container justify-end extras-container mr-3">
        <ng-container *ngIf="headerExtrasTemplate != null">
          <ng-container *ngTemplateOutlet="headerExtrasTemplate"></ng-container>
        </ng-container>
      </span>

      <ng-container *ngIf="uiConfig.rbkUtils.notifications.url != null; else modelDrivenNotificationsTemplate">
        <smz-ui-notifications id="smz-ui-notifications" class="mr-5"></smz-ui-notifications>
      </ng-container>

      <ng-template #modelDrivenNotificationsTemplate>
        <span class="notification-container" *ngIf="notifications != null" smz-ui-athena-notifications [items]="notifications"></span>
      </ng-template>

      <smz-localization-switch *ngIf="showLocalizationSwitch" class="mr-3"></smz-localization-switch>

      <smz-tenant-switch *ngIf="showTenantSwitch" class="mr-3"></smz-tenant-switch>

      <span id="smz-ui-profile-menu" *ngIf="profile != null" smz-ui-athena-profile-menu [profile]="profile"></span>

  `, isInline: true, styles: [".notification-container{position:relative;font-weight:700;margin-top:0;margin-right:30px;color:var(--primary-color-text)}.extras-container{position:relative;height:100%;display:flex;align-items:center;color:var(--primary-color-text)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.AthenaProfileMenuComponent, selector: "[smz-ui-athena-profile-menu]", inputs: ["profile"] }, { kind: "component", type: i3.AthenaNotificationsComponent, selector: "[smz-ui-athena-notifications]", inputs: ["items"] }, { kind: "component", type: i4.SmzNotificationsComponent, selector: "smz-ui-notifications" }, { kind: "component", type: i5.SmzTenantSwitchComponent, selector: "smz-tenant-switch" }, { kind: "component", type: i6.SmzLocalizationSwitchComponent, selector: "smz-localization-switch" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: AthenaTopbarActionsComponent, decorators: [{
            type: Component,
            args: [{ selector: '[smz-ui-athena-topbar-actions]', changeDetection: ChangeDetectionStrategy.OnPush, template: `
      <ng-content></ng-content>

      <div id="smz-ui-topbar"></div>

      <span class="col extras-container justify-end extras-container mr-3">
        <ng-container *ngIf="headerExtrasTemplate != null">
          <ng-container *ngTemplateOutlet="headerExtrasTemplate"></ng-container>
        </ng-container>
      </span>

      <ng-container *ngIf="uiConfig.rbkUtils.notifications.url != null; else modelDrivenNotificationsTemplate">
        <smz-ui-notifications id="smz-ui-notifications" class="mr-5"></smz-ui-notifications>
      </ng-container>

      <ng-template #modelDrivenNotificationsTemplate>
        <span class="notification-container" *ngIf="notifications != null" smz-ui-athena-notifications [items]="notifications"></span>
      </ng-template>

      <smz-localization-switch *ngIf="showLocalizationSwitch" class="mr-3"></smz-localization-switch>

      <smz-tenant-switch *ngIf="showTenantSwitch" class="mr-3"></smz-tenant-switch>

      <span id="smz-ui-profile-menu" *ngIf="profile != null" smz-ui-athena-profile-menu [profile]="profile"></span>

  `, styles: [".notification-container{position:relative;font-weight:700;margin-top:0;margin-right:30px;color:var(--primary-color-text)}.extras-container{position:relative;height:100%;display:flex;align-items:center;color:var(--primary-color-text)}\n"] }]
        }], propDecorators: { profile: [{
                type: Input
            }], notifications: [{
                type: Input
            }], headerExtrasTemplate: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9wYmFyLWFjdGlvbnMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXNtei11aS9zcmMvbGliL21vZHVsZXMvc216LWxheW91dHMvbGF5b3V0cy9hdGhlbmEvY29tcG9uZW50cy90b3BiYXItYWN0aW9ucy90b3BiYXItYWN0aW9ucy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQWUsTUFBTSxlQUFlLENBQUM7QUFHdkYsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG1EQUFtRCxDQUFDOzs7Ozs7OztBQWlDbkYsTUFBTSxPQUFPLDRCQUE0QjtJQS9CekM7UUFnQ2tCLFlBQU8sR0FBZSxFQUFFLENBQUM7UUFDekIsa0JBQWEsR0FBc0IsRUFBRSxDQUFDO1FBRS9DLDJCQUFzQixHQUFHLGNBQWMsQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLGNBQWMsQ0FBQywwQkFBMEIsQ0FBQztRQUNsRyxxQkFB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