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';
let KengicLayoutDefaultHeaderComponent = class KengicLayoutDefaultHeaderComponent {
    constructor(settingsService, logo, logoFull) {
        this.settingsService = settingsService;
        this.logo = logo;
        this.logoFull = logoFull;
    }
    toggleCollapsedSidebar() {
        this.settingsService.setLayout('collapsed', !this.settingsService.layout.collapsed);
    }
};
KengicLayoutDefaultHeaderComponent.ctorParameters = () => [
    { 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);
export { KengicLayoutDefaultHeaderComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2VuZ2ljLWxheW91dC1kZWZhdWx0LWhlYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Aa2VuZ2ljL2ZlLW5nLyIsInNvdXJjZXMiOlsibGliL3BhZ2UvbGF5b3V0L2RlZmF1bHQvaGVhZGVyL2tlbmdpYy1sYXlvdXQtZGVmYXVsdC1oZWFkZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQy9DLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHlDQUF5QyxDQUFDO0FBTXBHLElBQWEsa0NBQWtDLEdBQS9DLE1BQWEsa0NBQWtDO0lBQzdDLFlBQ1MsZUFBZ0MsRUFFaEMsSUFBWSxFQUVaLFFBQWdCO1FBSmhCLG9CQUFlLEdBQWYsZUFBZSxDQUFpQjtRQUVoQyxTQUFJLEdBQUosSUFBSSxDQUFRO1FBRVosYUFBUSxHQUFSLFFBQVEsQ0FBUTtJQUN0QixDQUFDO0lBRUcsc0JBQXNCO1FBQzNCLElBQUksQ0FBQyxlQUFlLENBQUMsU0FBUyxDQUFDLFdBQVcsRUFBRSxDQUFDLElBQUksQ0FBQyxlQUFlLENBQUMsTUFBTSxDQUFDLFNBQVMsQ0FBQyxDQUFDO0lBQ3RGLENBQUM7Q0FDRixDQUFBOztZQVYyQixlQUFlO3lDQUN0QyxNQUFNLFN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