import { __decorate, __metadata } from "tslib";
import { Component, Input } from "@angular/core";
import { FormGroup } from "@angular/forms";
var IdentityClientsUpdateAuthenticationComponent = /** @class */ (function () {
    function IdentityClientsUpdateAuthenticationComponent() {
    }
    Object.defineProperty(IdentityClientsUpdateAuthenticationComponent.prototype, "identityProviderRestrictionsControl", {
        get: function () {
            return this.formGroup.get('identityProviderRestrictions');
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IdentityClientsUpdateAuthenticationComponent.prototype, "postLogoutRedirectUrisControl", {
        get: function () {
            return this.formGroup.get('postLogoutRedirectUris');
        },
        enumerable: true,
        configurable: true
    });
    IdentityClientsUpdateAuthenticationComponent.prototype.handleSubmit = function () { };
    __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);
    return IdentityClientsUpdateAuthenticationComponent;
}());
export { IdentityClientsUpdateAuthenticationComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpdHktLWNsaWVudHMtLXVwZGF0ZS0tYXV0aGVudGljYXRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGtlbmdpYy9mZS1uZy8iLCJzb3VyY2VzIjpbImxpYi9wYWdlL2lkZW50aXR5L2NsaWVudHMvdXBkYXRlL2F1dGhlbnRpY2F0aW9uL2lkZW50aXR5LS1jbGllbnRzLS11cGRhdGUtLWF1dGhlbnRpY2F0aW9uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFlLFNBQVMsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBTXhEO0lBQUE7SUFjQSxDQUFDO0lBVkMsc0JBQVcsNkZBQW1DO2FBQTlDO1lBQ0UsT0FBTyxJQUFJLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyw4QkFBOEIsQ0FBZ0IsQ0FBQztRQUMzRSxDQUFDOzs7T0FBQTtJQUVELHNCQUFXLHVGQUE2QjthQUF4QztZQUNFLE9BQU8sSUFBSSxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsd0JBQXdCLENBQWdCLENBQUM7UUFDckUsQ0FBQzs7O09BQUE7SUFHTSxtRUFBWSxHQUFuQixjQUF1QixDQUFDO0lBWHhCO1FBREMsS0FBSyxFQUFFO2tDQUNXLFNBQ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