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\">\n  <nz-form-item>\n    <nz-form-label [nzFor]=\"'clientId'\" [nzRequired]=\"true\">\n      {{ 'projects/fe-ng/src/lib/page/identity/clients/identity--clients.client_id' | i18n }}:\n    </nz-form-label>\n    <nz-form-control [nzErrorTip]=\"'app__required' | i18n\">\n      <input [attr.id]=\"'clientId'\" [formControlName]=\"'clientId'\" nz-input />\n    </nz-form-control>\n  </nz-form-item>\n\n  <nz-form-item>\n    <nz-form-label [nzFor]=\"'clientName'\" [nzRequired]=\"true\">\n      {{ 'projects/fe-ng/src/lib/page/identity/clients/identity--clients.client_name' | i18n }}:\n    </nz-form-label>\n    <nz-form-control [nzErrorTip]=\"'app__required' | i18n\">\n      <input [attr.id]=\"'clientName'\" [formControlName]=\"'clientName'\" nz-input />\n    </nz-form-control>\n  </nz-form-item>\n\n  <nz-form-item>\n    <nz-form-label [nzFor]=\"'description'\">\n      {{ 'projects/fe-ng/src/lib/page/identity/clients/update/basic/identity--clients--update--basic.description' | i18n }}:\n    </nz-form-label>\n    <nz-form-control>\n      <input [attr.id]=\"'description'\" [formControlName]=\"'description'\" nz-input />\n    </nz-form-control>\n  </nz-form-item>\n\n  <nz-form-item>\n    <nz-form-label [nzFor]=\"'clientUri'\">\n      {{ 'projects/fe-ng/src/lib/page/identity/clients/update/basic/identity--clients--update--basic.client_uri' | i18n }}:\n    </nz-form-label>\n    <nz-form-control>\n      <input [attr.id]=\"'clientUri'\" [formControlName]=\"'clientUri'\" nz-input />\n    </nz-form-control>\n  </nz-form-item>\n\n  <nz-form-item>\n    <nz-form-label [nzFor]=\"'logoUri'\">\n      {{ 'projects/fe-ng/src/lib/page/identity/clients/update/basic/identity--clients--update--basic.logo_uri' | i18n }}:\n    </nz-form-label>\n    <nz-form-control>\n      <input [attr.id]=\"'logoUri'\" [formControlName]=\"'logoUri'\" nz-input />\n    </nz-form-control>\n  </nz-form-item>\n\n  <nz-form-item>\n    <nz-form-label [nzFor]=\"'allowedCorsOrigins'\">\n      {{ 'projects/fe-ng/src/lib/page/identity/clients/update/basic/identity--clients--update--basic.allowed_cors_origins' | i18n }}:\n    </nz-form-label>\n    <nz-form-control>\n      <nz-select [attr.id]=\"'allowedCorsOrigins'\" [formControlName]=\"'allowedCorsOrigins'\" nzMode=\"tags\">\n        <nz-option *ngFor=\"let item of allowedCorsOriginsControl.value\" [nzLabel]=\"item\" [nzValue]=\"item\"></nz-option>\n      </nz-select>\n    </nz-form-control>\n  </nz-form-item>\n</form>\n"
    })
], IdentityClientsUpdateBasicComponent);
export { IdentityClientsUpdateBasicComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpdHktLWNsaWVudHMtLXVwZGF0ZS0tYmFzaWMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGtlbmdpYy9mZS1uZy8iLCJzb3VyY2VzIjpbImxpYi9wYWdlL2lkZW50aXR5L2NsaWVudHMvdXBkYXRlL2Jhc2ljL2lkZW50aXR5LS1jbGllbnRzLS11cGRhdGUtLWJhc2ljLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFlLFNBQVMsRUFBRSxNQUFNLGdCQUFnQix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