/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Inject } from '@angular/core';
import { SettingsService } from '@delon/theme';
import { KENGIC_TOKEN_LOGO, KENGIC_TOKEN_LOGO_FULL } from '../../../../const/injection-token.const';
export class KengicLayoutDefaultHeaderComponent {
    /**
     * @param {?} settingsService
     * @param {?} logo
     * @param {?} logoFull
     */
    constructor(settingsService, logo, logoFull) {
        this.settingsService = settingsService;
        this.logo = logo;
        this.logoFull = logoFull;
    }
    /**
     * @return {?}
     */
    toggleCollapsedSidebar() {
        this.settingsService.setLayout('collapsed', !this.settingsService.layout.collapsed);
    }
}
KengicLayoutDefaultHeaderComponent.decorators = [
    { type: Component, args: [{
                selector: 'kengic-layout-default-header',
                template: "<div class=\"alain-default__header-logo\">\r\n  <a [routerLink]=\"['/']\" class=\"alain-default__header-logo-link\">\r\n    <img\r\n      [src]=\"logoFull\"\r\n      alt=\"{{ settingsService.app.name }}\"\r\n      class=\"alain-default__header-logo-expanded\"\r\n      style=\"max-height:40px;\"\r\n    />\r\n    <img\r\n      [src]=\"logo\"\r\n      alt=\"{{ settingsService.app.name }}\"\r\n      class=\"alain-default__header-logo-collapsed\"\r\n      style=\"max-height:30px;\"\r\n    />\r\n  </a>\r\n</div>\r\n<div class=\"alain-default__nav-wrap\">\r\n  <ul class=\"alain-default__nav\">\r\n    <li>\r\n      <div class=\"alain-default__nav-item\" (click)=\"toggleCollapsedSidebar()\">\r\n        <i nz-icon nzType=\"menu-{{ settingsService.layout.collapsed ? 'unfold' : 'fold' }}\"></i>\r\n      </div>\r\n    </li>\r\n  </ul>\r\n  <ul class=\"alain-default__nav\">\r\n    <li class=\"hidden-mobile\">\r\n      <kengic-layout-default-header-setting></kengic-layout-default-header-setting>\r\n    </li>\r\n    <li>\r\n      <kengic-layout-default-header-user></kengic-layout-default-header-user>\r\n    </li>\r\n    <li>\r\n      <kengic-layout-default-header-i18n></kengic-layout-default-header-i18n>\r\n    </li>\r\n  </ul>\r\n</div>\r\n"
            }] }
];
/** @nocollapse */
KengicLayoutDefaultHeaderComponent.ctorParameters = () => [
    { type: SettingsService },
    { type: String, decorators: [{ type: Inject, args: [KENGIC_TOKEN_LOGO,] }] },
    { type: String, decorators: [{ type: Inject, args: [KENGIC_TOKEN_LOGO_FULL,] }] }
];
if (false) {
    /** @type {?} */
    KengicLayoutDefaultHeaderComponent.prototype.settingsService;
    /** @type {?} */
    KengicLayoutDefaultHeaderComponent.prototype.logo;
    /** @type {?} */
    KengicLayoutDefaultHeaderComponent.prototype.logoFull;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2VuZ2ljLWxheW91dC1kZWZhdWx0LWhlYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Aa2VuZ2ljL2ZlLW5nLyIsInNvdXJjZXMiOlsibGliL3BhZ2UvbGF5b3V0L2RlZmF1bHQvaGVhZGVyL2tlbmdpYy1sYXlvdXQtZGVmYXVsdC1oZWFkZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQy9DLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHlDQUF5QyxDQUFDO0FBTXBHLE1BQU0sT0FBTyxrQ0FBa0M7Ozs7OztJQUM3QyxZQUNTLGVBQWdDLEVBRWhDLElBQVksRUFFWixRQUFnQjtRQUpoQixvQkFBZSxHQUFmLGVBQWUsQ0FBaUI7UUFFaEMsU0FBSSxHQUFKLElBQUksQ0FBUTtRQUVaLGFBQVEsR0FBUixRQUFRLENBQVE7SUFDdEIsQ0FBQzs7Ozt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