import { __decorate, __metadata, __param } from "tslib";
import { Component, Inject } from '@angular/core';
import { KENGIC_TOKEN_ENABLE_WORKING_GROUP } from '../../../const/injection-token.const';
var IdentityUserComponent = /** @class */ (function () {
    function IdentityUserComponent(enableWorkingGroup) {
        this.enableWorkingGroup = enableWorkingGroup;
        this.currentUser = null;
    }
    IdentityUserComponent.ctorParameters = function () { return [
        { type: Boolean, decorators: [{ type: Inject, args: [KENGIC_TOKEN_ENABLE_WORKING_GROUP,] }] }
    ]; };
    IdentityUserComponent = __decorate([
        Component({
            selector: 'kg---identity--user',
            template: "<page-header title=\"\"></page-header>\n\n<div [nzGutter]=\"10\" nz-row>\n  <div [nzLg]=\"12\" [nzMd]=\"24\" nz-col>\n    <kg---identity--user--users [(currentUser)]=\"currentUser\"></kg---identity--user--users>\n  </div>\n\n  <div [nzLg]=\"12\" [nzMd]=\"24\" nz-col>\n    <nz-tabset\n      [nzTabBarStyle]=\"{\n        margin: '0px'\n      }\"\n      [nzTabPosition]=\"'top'\"\n      [nzType]=\"'card'\"\n    >\n      <nz-tab [nzTitle]=\"titleTpl4Role\">\n        <ng-template #titleTpl4Role>\n          <i nz-icon nzTheme=\"outline\" nzType=\"team\"></i>\n          <span class=\"ml-sm\">{{ 'app__role' | i18n }}</span>\n        </ng-template>\n\n        <kg---identity--user--roles [currentUser]=\"currentUser\"></kg---identity--user--roles>\n      </nz-tab>\n\n      <nz-tab *ngIf=\"enableWorkingGroup\" [nzTitle]=\"titleTpl4WorkingGroup\">\n        <ng-template #titleTpl4WorkingGroup>\n          <i nz-icon nzTheme=\"outline\" nzType=\"apartment\"></i>\n          <span class=\"ml-sm\">{{ 'app__working-group' | i18n }}</span>\n        </ng-template>\n\n        <kg---identity--user--working-groups [currentUser]=\"currentUser\"></kg---identity--user--working-groups>\n      </nz-tab>\n    </nz-tabset>\n  </div>\n</div>\n",
            styles: [":host ::ng-deep .ant-card{margin-bottom:10px}:host ::ng-deep .ant-card .ant-card-head{min-height:auto;padding:0 12px}:host ::ng-deep .ant-tabs-top-content{margin-top:-1px}"]
        }),
        __param(0, Inject(KENGIC_TOKEN_ENABLE_WORKING_GROUP)),
        __metadata("design:paramtypes", [Boolean])
    ], IdentityUserComponent);
    return IdentityUserComponent;
}());
export { IdentityUserComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpdHktLXVzZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGtlbmdpYy9mZS1uZy8iLCJzb3VyY2VzIjpbImxpYi9wYWdlL2lkZW50aXR5L3VzZXIvaWRlbnRpdHktLXVzZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVsRCxPQUFPLEVBQUUsaUNBQWlDLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQU96RjtJQUdFLCtCQUVTLGtCQUEyQjtRQUEzQix1QkFBa0IsR0FBbEIsa0JBQWtCLENBQVM7UUFKN0IsZ0JBQVcsR0FBd0MsSUFBSSxDQUFDO0lBSzVELENBQUM7OzhDQUZELE1BQU0sU0FBQyxpQ0FBaUM7O0lBSmhDLHFCQUFxQjtRQUxqQyxTQUFTLENBQUM7WUFDVCxRQUFRLEVBQUUscUJBQXFCO1lBQy9CLHd0Q0FBOEM7O1NBRS9DLENBQUM7UUFLRyxXQUFBLE1BQU0sQ0FBQyxpQ0FBaUMsQ0FBQyxDQUFBOztPQUpqQyxxQkFBcUIsQ0FPakM7SUFBRCw0QkFBQztDQUFBLEFBUEQsSUFPQztTQVBZLHFCQUFxQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCwgSW5qZWN0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBERUYgfSBmcm9tICcuLi8uLi8uLi9hcGknO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