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\">\n  <a [routerLink]=\"['/']\" class=\"alain-default__header-logo-link\">\n    <img [src]=\"logoFull\" alt=\"{{ settingsService.app.name }}\" class=\"alain-default__header-logo-expanded\" style=\"max-height: 40px;\" />\n    <img [src]=\"logo\" alt=\"{{ settingsService.app.name }}\" class=\"alain-default__header-logo-collapsed\" style=\"max-height: 30px;\" />\n  </a>\n</div>\n<div class=\"alain-default__nav-wrap\">\n  <ul class=\"alain-default__nav\">\n    <li>\n      <div (click)=\"toggleCollapsedSidebar()\" class=\"alain-default__nav-item\">\n        <i nz-icon nzType=\"menu-{{ settingsService.layout.collapsed ? 'unfold' : 'fold' }}\"></i>\n      </div>\n    </li>\n  </ul>\n  <ul class=\"alain-default__nav\">\n    <li class=\"hidden-mobile\">\n      <kengic-layout-default-header-setting></kengic-layout-default-header-setting>\n    </li>\n    <li>\n      <kengic-layout-default-header-user></kengic-layout-default-header-user>\n    </li>\n    <li>\n      <kengic-layout-default-header-i18n></kengic-layout-default-header-i18n>\n    </li>\n  </ul>\n</div>\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2VuZ2ljLWxheW91dC1kZWZhdWx0LWhlYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Aa2VuZ2ljL2ZlLW5nLyIsInNvdXJjZXMiOlsibGliL3BhZ2UvbGF5b3V0L2RlZmF1bHQvaGVhZGVyL2tlbmdpYy1sYXlvdXQtZGVmYXVsdC1oZWFkZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQy9DLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHlDQUF5QyxDQUFDO0FBTXBHO0lBQ0UsNENBQ1MsZUFBZ0MsRUFFaEMsSUFBWSxFQUVaLFFBQWdCO1FBSmhCLG9CQUFlLEdBQWYsZUFBZSxDQUFpQjtRQUVoQyxTQUFJLEdBQUosSUFBSSxDQUFRO1FBRVosYUFBUSxHQUFSLFFBQVEsQ0FBUTtJQUN0QixDQUFDO0lBRUcsbUVBQXNCLEdBQTdCO1FBQ0UsSUFBSSxDQUFDLGVBQWUsQ0FBQyxTQUFTLENBQUMsV0FBVyxFQUFFLENBQUMsSUFBSSxDQUFDLGVBQWUsQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDLENBQUM7SUFDdEYsQ0FBQzs7Z0JBVHlC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