/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Inject } from '@angular/core';
import { KENGIC_TOKEN_ENABLE_WORKING_GROUP } from '../../../const/injection-token.const';
export class IdentityUserLocalComponent {
    /**
     * @param {?} enableWorkingGroup
     */
    constructor(enableWorkingGroup) {
        this.enableWorkingGroup = enableWorkingGroup;
        this.currentUser = null;
        this.warehouse = undefined;
    }
    /**
     * @param {?} warehouse
     * @return {?}
     */
    onIdentityWarehouseSelectComponentClick(warehouse) {
        this.warehouse = '';
        setTimeout((/**
         * @return {?}
         */
        () => {
            this.warehouse = warehouse;
        }));
    }
}
IdentityUserLocalComponent.decorators = [
    { type: Component, args: [{
                selector: 'kg---identity--user-local',
                template: "<page-header title=\"\"></page-header>\r\n\r\n<kg---identity--warehouse-select\r\n  (kgClick)=\"onIdentityWarehouseSelectComponentClick($event)\"\r\n></kg---identity--warehouse-select>\r\n\r\n<div [nzGutter]=\"10\" nz-row>\r\n  <div [nzLg]=\"12\" [nzMd]=\"24\" nz-col>\r\n    <kg---identity--user-local--users\r\n      [(currentUser)]=\"currentUser\"\r\n      [warehouse]=\"warehouse\"\r\n    ></kg---identity--user-local--users>\r\n  </div>\r\n\r\n  <div [nzLg]=\"12\" [nzMd]=\"24\" nz-col>\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-local--roles\r\n          [currentUser]=\"currentUser\"\r\n          [warehouse]=\"warehouse\"\r\n        ></kg---identity--user-local--roles>\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}"]
            }] }
];
/** @nocollapse */
IdentityUserLocalComponent.ctorParameters = () => [
    { type: Boolean, decorators: [{ type: Inject, args: [KENGIC_TOKEN_ENABLE_WORKING_GROUP,] }] }
];
if (false) {
    /** @type {?} */
    IdentityUserLocalComponent.prototype.currentUser;
    /** @type {?} */
    IdentityUserLocalComponent.prototype.warehouse;
    /** @type {?} */
    IdentityUserLocalComponent.prototype.enableWorkingGroup;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpdHktLXVzZXItbG9jYWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGtlbmdpYy9mZS1uZy8iLCJzb3VyY2VzIjpbImxpYi9wYWdlL2lkZW50aXR5L3VzZXItbG9jYWwvaWRlbnRpdHktLXVzZXItbG9jYWwuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVsRCxPQUFPLEVBQUUsaUNBQWlDLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQU96RixNQUFNLE9BQU8sMEJBQTBCOzs7O0lBSXJDLFlBRVMsa0JBQTJCO1FBQTNCLHVCQUFrQixHQUFsQixrQkFBa0IsQ0FBUztRQUw3QixnQkFBVyxHQUFvQyxJQUFJLENBQUM7UUFDcEQsY0FBUyxHQUF1QixTQUFTLENBQUM7SUFLOUMsQ0FBQzs7Ozs7SUFFRyx1Q0FBdUMsQ0FBQyxTQUE2QjtRQUMxRSxJQUFJLENBQUMsU0FBUyxHQUFHLEVBQUUsQ0FBQztRQUNwQixVQUFVOz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