import { __decorate, __metadata } from "tslib";
import { Component, Input } from "@angular/core";
import { FormGroup } from "@angular/forms";
let IdentityClientsUpdateAuthenticationComponent = class IdentityClientsUpdateAuthenticationComponent {
    get identityProviderRestrictionsControl() {
        return this.formGroup.get('identityProviderRestrictions');
    }
    get postLogoutRedirectUrisControl() {
        return this.formGroup.get('postLogoutRedirectUris');
    }
    handleSubmit() { }
};
__decorate([
    Input(),
    __metadata("design:type", FormGroup)
], IdentityClientsUpdateAuthenticationComponent.prototype, "formGroup", void 0);
IdentityClientsUpdateAuthenticationComponent = __decorate([
    Component({
        selector: 'kg---identity--clients--update--authentication',
        template: "<form (ngSubmit)=\"handleSubmit()\" [formGroup]=\"formGroup\" nz-form nzLayout=\"vertical\">\n  <div [nzGutter]=\"32\" nz-row>\n    <div [nzSpan]=\"6\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'enableLocalLogin'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.enable_local_login' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-switch [attr.id]=\"'enableLocalLogin'\" [formControlName]=\"'enableLocalLogin'\"></nz-switch>\n        </nz-form-control>\n      </nz-form-item>\n    </div>\n\n    <div [nzSpan]=\"18\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'userSsoLifetime'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.user_sso_lifetime' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-input-number\n            [attr.id]=\"'userSsoLifetime'\"\n            [formControlName]=\"'userSsoLifetime'\"\n            [ngStyle]=\"{\n              width: '100%'\n            }\"\n            [nzMin]=\"0\"\n            [nzStep]=\"1\"\n          ></nz-input-number>\n        </nz-form-control>\n      </nz-form-item>\n    </div>\n  </div>\n\n  <nz-form-item>\n    <nz-form-label [nzFor]=\"'identityProviderRestrictions'\">\n      {{\n        'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.identity_provider_restrictions' | i18n\n      }}:\n    </nz-form-label>\n    <nz-form-control>\n      <nz-select [attr.id]=\"'identityProviderRestrictions'\" [formControlName]=\"'identityProviderRestrictions'\" nzMode=\"tags\">\n        <nz-option *ngFor=\"let item of identityProviderRestrictionsControl.value\" [nzLabel]=\"item\" [nzValue]=\"item\"></nz-option>\n      </nz-select>\n    </nz-form-control>\n  </nz-form-item>\n\n  <nz-form-item>\n    <nz-form-label [nzFor]=\"'postLogoutRedirectUris'\">\n      {{ 'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.post_logout_redirect_uris' | i18n }}:\n    </nz-form-label>\n    <nz-form-control>\n      <nz-select [attr.id]=\"'postLogoutRedirectUris'\" [formControlName]=\"'postLogoutRedirectUris'\" nzMode=\"tags\">\n        <nz-option *ngFor=\"let item of postLogoutRedirectUrisControl.value\" [nzLabel]=\"item\" [nzValue]=\"item\"></nz-option>\n      </nz-select>\n    </nz-form-control>\n  </nz-form-item>\n\n  <div [nzGutter]=\"32\" nz-row>\n    <div [nzSpan]=\"18\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'frontChannelLogoutUri'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.front_channel_logout_uri' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <input [attr.id]=\"'frontChannelLogoutUri'\" [formControlName]=\"'frontChannelLogoutUri'\" nz-input />\n        </nz-form-control>\n      </nz-form-item>\n    </div>\n\n    <div [nzSpan]=\"6\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'frontChannelLogoutSessionRequired'\">\n          {{\n            'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.front_channel_logout_session_required'\n              | i18n\n          }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-switch [attr.id]=\"'frontChannelLogoutSessionRequired'\" [formControlName]=\"'frontChannelLogoutSessionRequired'\"></nz-switch>\n        </nz-form-control>\n      </nz-form-item>\n    </div>\n  </div>\n\n  <div [nzGutter]=\"32\" nz-row>\n    <div [nzSpan]=\"18\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'backChannelLogoutUri'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.back_channel_logout_uri' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <input [attr.id]=\"'backChannelLogoutUri'\" [formControlName]=\"'backChannelLogoutUri'\" nz-input />\n        </nz-form-control>\n      </nz-form-item>\n    </div>\n\n    <div [nzSpan]=\"6\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'backChannelLogoutSessionRequired'\">\n          {{\n            'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.back_channel_logout_session_required'\n              | i18n\n          }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-switch [attr.id]=\"'backChannelLogoutSessionRequired'\" [formControlName]=\"'backChannelLogoutSessionRequired'\"></nz-switch>\n        </nz-form-control>\n      </nz-form-item>\n    </div>\n  </div>\n</form>\n"
    })
], IdentityClientsUpdateAuthenticationComponent);
export { IdentityClientsUpdateAuthenticationComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpdHktLWNsaWVudHMtLXVwZGF0ZS0tYXV0aGVudGljYXRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGtlbmdpYy9mZS1uZy8iLCJzb3VyY2VzIjpbImxpYi9wYWdlL2lkZW50aXR5L2NsaWVudHMvdXBkYXRlL2F1dGhlbnRpY2F0aW9uL2lkZW50aXR5LS1jbGllbnRzLS11cGRhdGUtLWF1dGhlbnRpY2F0aW9uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxL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