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\">\r\n  <div nz-row [nzGutter]=\"32\">\r\n    <div nz-col [nzSpan]=\"6\">\r\n      <nz-form-item>\r\n        <nz-form-label [nzFor]=\"'enableLocalLogin'\">\r\n          {{\r\n            'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.enable_local_login'\r\n              | i18n\r\n          }}:\r\n        </nz-form-label>\r\n        <nz-form-control>\r\n          <nz-switch [formControlName]=\"'enableLocalLogin'\" [attr.id]=\"'enableLocalLogin'\"></nz-switch>\r\n        </nz-form-control>\r\n      </nz-form-item>\r\n    </div>\r\n\r\n    <div nz-col [nzSpan]=\"18\">\r\n      <nz-form-item>\r\n        <nz-form-label [nzFor]=\"'userSsoLifetime'\">\r\n          {{\r\n            'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.user_sso_lifetime'\r\n              | i18n\r\n          }}:\r\n        </nz-form-label>\r\n        <nz-form-control>\r\n          <nz-input-number\r\n            [attr.id]=\"'userSsoLifetime'\"\r\n            [formControlName]=\"'userSsoLifetime'\"\r\n            [ngStyle]=\"{\r\n              width: '100%'\r\n            }\"\r\n            [nzMin]=\"0\"\r\n            [nzStep]=\"1\"\r\n          ></nz-input-number>\r\n        </nz-form-control>\r\n      </nz-form-item>\r\n    </div>\r\n  </div>\r\n\r\n  <nz-form-item>\r\n    <nz-form-label [nzFor]=\"'identityProviderRestrictions'\">\r\n      {{\r\n        'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.identity_provider_restrictions'\r\n          | i18n\r\n      }}:\r\n    </nz-form-label>\r\n    <nz-form-control>\r\n      <nz-select\r\n        [formControlName]=\"'identityProviderRestrictions'\"\r\n        [attr.id]=\"'identityProviderRestrictions'\"\r\n        nzMode=\"tags\"\r\n      >\r\n        <nz-option\r\n          *ngFor=\"let item of identityProviderRestrictionsControl.value\"\r\n          [nzLabel]=\"item\"\r\n          [nzValue]=\"item\"\r\n        ></nz-option>\r\n      </nz-select>\r\n    </nz-form-control>\r\n  </nz-form-item>\r\n\r\n  <nz-form-item>\r\n    <nz-form-label [nzFor]=\"'postLogoutRedirectUris'\">\r\n      {{\r\n        'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.post_logout_redirect_uris'\r\n          | i18n\r\n      }}:\r\n    </nz-form-label>\r\n    <nz-form-control>\r\n      <nz-select [formControlName]=\"'postLogoutRedirectUris'\" [attr.id]=\"'postLogoutRedirectUris'\" nzMode=\"tags\">\r\n        <nz-option\r\n          *ngFor=\"let item of postLogoutRedirectUrisControl.value\"\r\n          [nzLabel]=\"item\"\r\n          [nzValue]=\"item\"\r\n        ></nz-option>\r\n      </nz-select>\r\n    </nz-form-control>\r\n  </nz-form-item>\r\n\r\n  <div nz-row [nzGutter]=\"32\">\r\n    <div nz-col [nzSpan]=\"18\">\r\n      <nz-form-item>\r\n        <nz-form-label [nzFor]=\"'frontChannelLogoutUri'\">\r\n          {{\r\n            'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.front_channel_logout_uri'\r\n              | i18n\r\n          }}:\r\n        </nz-form-label>\r\n        <nz-form-control>\r\n          <input nz-input [formControlName]=\"'frontChannelLogoutUri'\" [attr.id]=\"'frontChannelLogoutUri'\" />\r\n        </nz-form-control>\r\n      </nz-form-item>\r\n    </div>\r\n\r\n    <div nz-col [nzSpan]=\"6\">\r\n      <nz-form-item>\r\n        <nz-form-label [nzFor]=\"'frontChannelLogoutSessionRequired'\">\r\n          {{\r\n            'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.front_channel_logout_session_required'\r\n              | i18n\r\n          }}:\r\n        </nz-form-label>\r\n        <nz-form-control>\r\n          <nz-switch\r\n            [formControlName]=\"'frontChannelLogoutSessionRequired'\"\r\n            [attr.id]=\"'frontChannelLogoutSessionRequired'\"\r\n          ></nz-switch>\r\n        </nz-form-control>\r\n      </nz-form-item>\r\n    </div>\r\n  </div>\r\n\r\n  <div nz-row [nzGutter]=\"32\">\r\n    <div nz-col [nzSpan]=\"18\">\r\n      <nz-form-item>\r\n        <nz-form-label [nzFor]=\"'backChannelLogoutUri'\">\r\n          {{\r\n            'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.back_channel_logout_uri'\r\n              | i18n\r\n          }}:\r\n        </nz-form-label>\r\n        <nz-form-control>\r\n          <input nz-input [formControlName]=\"'backChannelLogoutUri'\" [attr.id]=\"'backChannelLogoutUri'\" />\r\n        </nz-form-control>\r\n      </nz-form-item>\r\n    </div>\r\n\r\n    <div nz-col [nzSpan]=\"6\">\r\n      <nz-form-item>\r\n        <nz-form-label [nzFor]=\"'backChannelLogoutSessionRequired'\">\r\n          {{\r\n            'projects/fe-ng/src/lib/page/identity/clients/update/authentication/identity--clients--update--authentication.back_channel_logout_session_required'\r\n              | i18n\r\n          }}:\r\n        </nz-form-label>\r\n        <nz-form-control>\r\n          <nz-switch\r\n            [formControlName]=\"'backChannelLogoutSessionRequired'\"\r\n            [attr.id]=\"'backChannelLogoutSessionRequired'\"\r\n          ></nz-switch>\r\n        </nz-form-control>\r\n      </nz-form-item>\r\n    </div>\r\n  </div>\r\n</form>\r\n"
    })
], IdentityClientsUpdateAuthenticationComponent);
export { IdentityClientsUpdateAuthenticationCompon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