import { __decorate, __metadata, __param } from "tslib";
import { Component, Inject } from '@angular/core';
import { KENGIC_TOKEN_ENABLE_WORKING_GROUP } from '../../../const/injection-token.const';
let IdentityUserComponent = class IdentityUserComponent {
    constructor(enableWorkingGroup) {
        this.enableWorkingGroup = enableWorkingGroup;
        this.currentUser = null;
    }
};
IdentityUserComponent.ctorParameters = () => [
    { 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);
export { IdentityUserComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpdHktLXVzZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGtlbmdpYy9mZS1uZy8iLCJzb3VyY2VzIjpbImxpYi9wYWdlL2lkZW50aXR5L3VzZXIvaWRlbnRpdHktLXVzZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVsRCxPQUFPLEVBQUUsaUNBQWlDLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQU96RixJQUFhLHFCQUFxQixHQUFsQyxNQUFhLHFCQUFxQjtJQUdoQyxZQUVTLGtCQUEyQjtRQUEzQix1QkFBa0IsR0FBbEIsa0JBQWtCLENBQVM7UUFKN0IsZ0JBQVcsR0FBd0MsSUFBSSxDQUFDO0lBSzVELENBQUM7Q0FDTCxDQUFBOzswQ0FISSxNQUFNLFNBQUMsaUNBQWlDOztBQUpoQyxxQkFBcUI7SUFMakMsU0FBUyxDQUFDO1FBQ1QsUUFBUSxFQUFFLHFCQUFxQjtRQUMvQiwweUNBQThDOztLQUUvQyxDQUFDO0lBS0csV0FBQSxNQUFNLENBQUMsaUNBQWlDLENBQUMsQ0FBQTs7R0FKakMscUJBQXFCLENBT2pDO1NBUFkscUJBQXFCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbmplY3QgfSBmcm9tICdAYW5ndWxhci9jb3J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