import { __decorate, __metadata, __param } from "tslib";
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;
    }
    KengicLayoutDefaultHeaderComponent.prototype.toggleCollapsedSidebar = function () {
        this.settingsService.setLayout('collapsed', !this.settingsService.layout.collapsed);
    };
    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,] }] }
    ]; };
    KengicLayoutDefaultHeaderComponent = __decorate([
        Component({
            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"
        }),
        __param(1, Inject(KENGIC_TOKEN_LOGO)),
        __param(2, Inject(KENGIC_TOKEN_LOGO_FULL)),
        __metadata("design:paramtypes", [SettingsService, String, String])
    ], KengicLayoutDefaultHeaderComponent);
    return KengicLayoutDefaultHeaderComponent;
}());
export { KengicLayoutDefaultHeaderComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2VuZ2ljLWxheW91dC1kZWZhdWx0LWhlYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Aa2VuZ2ljL2ZlLW5nLyIsInNvdXJjZXMiOlsibGliL3BhZ2UvbGF5b3V0L2RlZmF1bHQvaGVhZGVyL2tlbmdpYy1sYXlvdXQtZGVmYXVsdC1oZWFkZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQy9DLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHlDQUF5QyxDQUFDO0FBTXBHO0lBQ0UsNENBQ1MsZUFBZ0MsRUFFaEMsSUFBWSxFQUVaLFFBQWdCO1FBSmhCLG9CQUFlLEdBQWYsZUFBZSxDQUFpQjtRQUVoQyxTQUFJLEdBQUosSUFBSSxDQUFRO1FBRVosYUFBUSxHQUFSLFFBQVEsQ0FBUTtJQUN0QixDQUFDO0lBRUcsbUVBQXNCLEdBQTdCO1FBQ0UsSUFBSSxDQUFDLGVBQWUsQ0FBQyxTQUFTLENBQUMsV0FB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