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>\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);
export { IdentityUserComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpdHktLXVzZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGtlbmdpYy9mZS1uZy8iLCJzb3VyY2VzIjpbImxpYi9wYWdlL2lkZW50aXR5L3VzZXIvaWRlbnRpdHktLXVzZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVsRCxPQUFPLEVBQUUsaUNBQWlDLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQU96RixJQUFhLHFCQUFxQixHQUFsQyxNQUFhLHFCQUFxQjtJQUdoQyxZQUVTLGtCQUEyQjtRQUEzQix1QkFBa0IsR0FBbEIsa0JBQWtCLENBQVM7UUFKN0IsZ0JBQVcsR0FBd0MsSUFBSSxDQUFDO0lBSzVELENBQUM7Q0FDTCxDQUFBOzswQ0FISSxNQUFNLFNBQUMsaUNBQWlDOztBQUpoQyxxQkFBcUI7SUFMakMsU0FBUyxDQUFDO1FBQ1QsUUFBUSxFQUFFLHFCQUFxQjtRQUMvQix3dENBQThDOztLQUUvQyxDQUFDO0lBS0csV0FBQSxNQUFNLENBQUMsaUNBQWlDLENBQUMsQ0FBQTs7R0FKakMscUJBQXFCLENBT2pDO1NBUFkscUJBQXFCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbmplY3QgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IERFRiB9IGZyb20gJy4uLy4uLy4uL2FwaSc7XG5pbXBvcnQgeyBLRU5HSUN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