import { __decorate, __metadata } from "tslib";
import { Component, Input } from '@angular/core';
import { FormGroup } from '@angular/forms';
let IdentityClientsUpdateBasicComponent = class IdentityClientsUpdateBasicComponent {
    get allowedCorsOriginsControl() {
        return this.formGroup.get('allowedCorsOrigins');
    }
    handleSubmit() {
    }
};
__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);
export { IdentityClientsUpdateBasicComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpdHktLWNsaWVudHMtLXVwZGF0ZS0tYmFzaWMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGtlbmdpYy9mZS1uZy8iLCJzb3VyY2VzIjpbImxpYi9wYWdlL2lkZW50aXR5L2NsaWVudHMvdXBkYXRlL2Jhc2ljL2lkZW50aXR5LS1jbGllbnRzLS11cGRhdGUtL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