import { __decorate, __metadata } from "tslib";
import { Component, Input } from '@angular/core';
import { FormGroup } from '@angular/forms';
var IdentityClientsUpdateBasicComponent = /** @class */ (function () {
    function IdentityClientsUpdateBasicComponent() {
    }
    Object.defineProperty(IdentityClientsUpdateBasicComponent.prototype, "allowedCorsOriginsControl", {
        get: function () {
            return this.formGroup.get('allowedCorsOrigins');
        },
        enumerable: true,
        configurable: true
    });
    IdentityClientsUpdateBasicComponent.prototype.handleSubmit = function () {
    };
    __decorate([
        Input(),
        __metadata("design:type", FormGroup)
    ], IdentityClientsUpdateBasicComponent.prototype, "formGroup", void 0);
    IdentityClientsUpdateBasicComponent = __decorate([
        Component({
            selector: 'kg---identity--clients--update--basic',
            template: "<form (ngSubmit)=\"handleSubmit()\" [formGroup]=\"formGroup\" nz-form nzLayout=\"vertical\">\r\n  <nz-form-item>\r\n    <nz-form-label [nzFor]=\"'clientId'\" [nzRequired]=\"true\">\r\n      {{ 'projects/fe-ng/src/lib/page/identity/clients/identity--clients.client_id' | i18n }}:\r\n    </nz-form-label>\r\n    <nz-form-control [nzErrorTip]=\"'app.common.required' | i18n\">\r\n      <input nz-input [formControlName]=\"'clientId'\" [attr.id]=\"'clientId'\" />\r\n    </nz-form-control>\r\n  </nz-form-item>\r\n\r\n  <nz-form-item>\r\n    <nz-form-label [nzFor]=\"'clientName'\" [nzRequired]=\"true\">\r\n      {{ 'projects/fe-ng/src/lib/page/identity/clients/identity--clients.client_name' | i18n }}:\r\n    </nz-form-label>\r\n    <nz-form-control [nzErrorTip]=\"'app.common.required' | i18n\">\r\n      <input nz-input [formControlName]=\"'clientName'\" [attr.id]=\"'clientName'\" />\r\n    </nz-form-control>\r\n  </nz-form-item>\r\n\r\n  <nz-form-item>\r\n    <nz-form-label [nzFor]=\"'description'\">\r\n      {{\r\n        'projects/fe-ng/src/lib/page/identity/clients/update/basic/identity--clients--update--basic.description'\r\n          | i18n\r\n      }}:\r\n    </nz-form-label>\r\n    <nz-form-control>\r\n      <input nz-input [formControlName]=\"'description'\" [attr.id]=\"'description'\" />\r\n    </nz-form-control>\r\n  </nz-form-item>\r\n\r\n  <nz-form-item>\r\n    <nz-form-label [nzFor]=\"'clientUri'\">\r\n      {{\r\n        'projects/fe-ng/src/lib/page/identity/clients/update/basic/identity--clients--update--basic.client_uri'\r\n          | i18n\r\n      }}:\r\n    </nz-form-label>\r\n    <nz-form-control>\r\n      <input nz-input [formControlName]=\"'clientUri'\" [attr.id]=\"'clientUri'\" />\r\n    </nz-form-control>\r\n  </nz-form-item>\r\n\r\n  <nz-form-item>\r\n    <nz-form-label [nzFor]=\"'logoUri'\">\r\n      {{\r\n        'projects/fe-ng/src/lib/page/identity/clients/update/basic/identity--clients--update--basic.logo_uri'\r\n          | i18n\r\n      }}:\r\n    </nz-form-label>\r\n    <nz-form-control>\r\n      <input nz-input [formControlName]=\"'logoUri'\" [attr.id]=\"'logoUri'\" />\r\n    </nz-form-control>\r\n  </nz-form-item>\r\n\r\n  <nz-form-item>\r\n    <nz-form-label [nzFor]=\"'allowedCorsOrigins'\">\r\n      {{\r\n        'projects/fe-ng/src/lib/page/identity/clients/update/basic/identity--clients--update--basic.allowed_cors_origins'\r\n          | i18n\r\n      }}:\r\n    </nz-form-label>\r\n    <nz-form-control>\r\n      <nz-select [formControlName]=\"'allowedCorsOrigins'\" [attr.id]=\"'allowedCorsOrigins'\" nzMode=\"tags\">\r\n        <nz-option *ngFor=\"let item of allowedCorsOriginsControl.value\" [nzLabel]=\"item\" [nzValue]=\"item\"></nz-option>\r\n      </nz-select>\r\n    </nz-form-control>\r\n  </nz-form-item>\r\n</form>\r\n"
        })
    ], IdentityClientsUpdateBasicComponent);
    return IdentityClientsUpdateBasicComponent;
}());
export { IdentityClientsUpdateBasicComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpdHktLWNsaWVudHMtLXVwZGF0ZS0tYmFzaWMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5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