/**
 * @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';
var KengicLayoutDefaultHeaderComponent = /** @class */ (function () {
    function KengicLayoutDefaultHeaderComponent(settingsService, logo, logoFull) {
        this.settingsService = settingsService;
        this.logo = logo;
        this.logoFull = logoFull;
    }
    /**
     * @return {?}
     */
    KengicLayoutDefaultHeaderComponent.prototype.toggleCollapsedSidebar = /**
     * @return {?}
     */
    function () {
        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 = function () { return [
        { type: SettingsService },
        { type: String, decorators: [{ type: Inject, args: [KENGIC_TOKEN_LOGO,] }] },
        { type: String, decorators: [{ type: Inject, args: [KENGIC_TOKEN_LOGO_FULL,] }] }
    ]; };
    return KengicLayoutDefaultHeaderComponent;
}());
export { KengicLayoutDefaultHeaderComponent };
if (false) {
    /** @type {?} */
    KengicLayoutDefaultHeaderComponent.prototype.settingsService;
    /** @type {?} */
    KengicLayoutDefaultHeaderComponent.prototype.logo;
    /** @type {?} */
    KengicLayoutDefaultHeaderComponent.prototype.logoFull;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2VuZ2ljLWxheW91dC1kZWZhdWx0LWhlYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Aa2VuZ2ljL2ZlLW5nLyIsInNvdXJjZXMiOlsibGliL3BhZ2UvbGF5b3V0L2RlZmF1bHQvaGVhZGVyL2tlbmdpYy1sYXlvdXQtZGVmYXVsdC1oZWFkZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQy9DLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHlDQUF5QyxDQUFDO0FBRXBHO0lBS0UsNENBQ1MsZUFBZ0MsRUFFaEMsSUFBWSxFQUVaLFFBQWdCO1FBSmhCLG9CQUFlLEdBQWYsZUFBZSxDQUFpQjtRQUVoQyxTQUFJLEdBQUosSUFBSSxD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