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>\r\n\r\n<div nz-row [nzGutter]=\"10\">\r\n  <div nz-col [nzMd]=\"24\" [nzLg]=\"12\">\r\n    <kg---identity--user--users [(currentUser)]=\"currentUser\"></kg---identity--user--users>\r\n  </div>\r\n\r\n  <div nz-col [nzMd]=\"24\" [nzLg]=\"12\">\r\n    <nz-tabset\r\n      [nzTabBarStyle]=\"{\r\n        margin: '0px'\r\n      }\"\r\n      [nzTabPosition]=\"'top'\"\r\n      [nzType]=\"'card'\"\r\n    >\r\n      <nz-tab [nzTitle]=\"titleTpl4Role\">\r\n        <ng-template #titleTpl4Role>\r\n          <i nz-icon nzTheme=\"outline\" nzType=\"team\"></i>\r\n          <span class=\"ml-sm\">{{ 'app.common.role' | i18n }}</span>\r\n        </ng-template>\r\n\r\n        <kg---identity--user--roles [currentUser]=\"currentUser\"></kg---identity--user--roles>\r\n      </nz-tab>\r\n\r\n      <nz-tab *ngIf=\"enableWorkingGroup\" [nzTitle]=\"titleTpl4WorkingGroup\">\r\n        <ng-template #titleTpl4WorkingGroup>\r\n          <i nz-icon nzTheme=\"outline\" nzType=\"apartment\"></i>\r\n          <span class=\"ml-sm\">{{ 'app.common.working-group' | i18n }}</span>\r\n        </ng-template>\r\n\r\n        <kg---identity--user--working-groups [currentUser]=\"currentUser\"></kg---identity--user--working-groups>\r\n      </nz-tab>\r\n    </nz-tabset>\r\n  </div>\r\n</div>\r\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpdHktLXVzZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGtlbmdpYy9mZS1uZy8iLCJzb3VyY2VzIjpbImxpYi9wYWdlL2lkZW50aXR5L3VzZXIvaWRlbnRpdHktLXVzZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVsRCxPQUFPLEVBQUUsaUNBQWlDLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQU96RjtJQUdFLCtCQUVTLGtCQUEyQjtRQUEzQix1QkFBa0IsR0FBbEIsa0JBQWtCLENBQVM7UUFKN0IsZ0JBQVcsR0FBd0MsSUFBSSxDQUFDO0lBSzVELENBQUM7OzhDQUZELE1BQU0sU0FBQyxpQ0FBaUM7O0lBSmhDLHFCQUFxQjtRQUxqQyxTQUFTLENBQUM7WUFDVCxRQUFRLEVBQUUscUJBQXFCO1lBQy9CLDB5Q0FBOEM7O1NBRS9DLENBQUM7UUFLRyxXQUFBLE1BQU0sQ0FBQyxpQ0FBaUMsQ0FBQyxDQUFBOztPQUpqQyxxQkFBcUIsQ0FPakM7SUFBRCw0QkFBQztDQUFBLEFBUEQsSUFPQztTQVBZLHFCQUFxQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCwgSW5qZWN0IH0gZnJ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