import { __decorate, __metadata } from "tslib";
import { Component, Input } from '@angular/core';
import { FormGroup } from '@angular/forms';
let IdentityClientsUpdateTokenComponent = class IdentityClientsUpdateTokenComponent {
    constructor() {
        this.identityClientsUpdateClaimComponentProp = {
            visible: false,
        };
    }
    get clientIdControl() {
        return this.formGroup.get('clientId');
    }
    handleSubmit() { }
    openIdentityClientsUpdateClaimComponent(event) {
        event.preventDefault();
        this.identityClientsUpdateClaimComponentProp.visible = true;
    }
};
__decorate([
    Input(),
    __metadata("design:type", FormGroup)
], IdentityClientsUpdateTokenComponent.prototype, "formGroup", void 0);
IdentityClientsUpdateTokenComponent = __decorate([
    Component({
        selector: 'kg---identity--clients--update--token',
        template: "<form (ngSubmit)=\"handleSubmit()\" [formGroup]=\"formGroup\" nz-form nzLayout=\"vertical\">\n  <div [nzGutter]=\"32\" nz-row>\n    <div [nzSpan]=\"12\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'identityTokenLifetime'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.identity_token_lifetime' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-input-number\n            [attr.id]=\"'identityTokenLifetime'\"\n            [formControlName]=\"'identityTokenLifetime'\"\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\n    <div [nzSpan]=\"12\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'accessTokenLifetime'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.access_token_lifetime' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-input-number\n            [attr.id]=\"'accessTokenLifetime'\"\n            [formControlName]=\"'accessTokenLifetime'\"\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  <div [nzGutter]=\"32\" nz-row>\n    <div [nzSpan]=\"12\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'accessTokenType'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.access_token_type' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-select [attr.id]=\"'accessTokenType'\" [formControlName]=\"'accessTokenType'\">\n            <nz-option [nzLabel]=\"'Jwt'\" [nzValue]=\"0\"></nz-option>\n            <nz-option [nzLabel]=\"'Reference'\" [nzValue]=\"1\"></nz-option>\n          </nz-select>\n        </nz-form-control>\n      </nz-form-item>\n    </div>\n\n    <div [nzSpan]=\"12\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'authorizationCodeLifetime'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.authorization_code_lifetime' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-input-number\n            [attr.id]=\"'authorizationCodeLifetime'\"\n            [formControlName]=\"'authorizationCodeLifetime'\"\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  <div [nzGutter]=\"32\" nz-row>\n    <div [nzSpan]=\"12\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'absoluteRefreshTokenLifetime'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.absolute_refresh_token_lifetime' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-input-number\n            [attr.id]=\"'absoluteRefreshTokenLifetime'\"\n            [formControlName]=\"'absoluteRefreshTokenLifetime'\"\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\n    <div [nzSpan]=\"12\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'slidingRefreshTokenLifetime'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.sliding_refresh_token_lifetime' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-input-number\n            [attr.id]=\"'slidingRefreshTokenLifetime'\"\n            [formControlName]=\"'slidingRefreshTokenLifetime'\"\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  <div [nzGutter]=\"32\" nz-row>\n    <div [nzSpan]=\"12\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'refreshTokenUsage'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.refresh_token_usage' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-select [attr.id]=\"'refreshTokenUsage'\" [formControlName]=\"'refreshTokenUsage'\">\n            <nz-option [nzLabel]=\"'ReUse'\" [nzValue]=\"0\"></nz-option>\n            <nz-option [nzLabel]=\"'OneTimeOnly'\" [nzValue]=\"1\"></nz-option>\n          </nz-select>\n        </nz-form-control>\n      </nz-form-item>\n    </div>\n    <div [nzSpan]=\"12\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'refreshTokenExpiration'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.refreshTokenExpiration' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-select [attr.id]=\"'refreshTokenExpiration'\" [formControlName]=\"'refreshTokenExpiration'\">\n            <nz-option [nzLabel]=\"'Sliding'\" [nzValue]=\"0\"></nz-option>\n            <nz-option [nzLabel]=\"'Absolute'\" [nzValue]=\"1\"></nz-option>\n          </nz-select>\n        </nz-form-control>\n      </nz-form-item>\n    </div>\n  </div>\n\n  <div [nzGutter]=\"32\" nz-row>\n    <div [nzSpan]=\"6\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'updateAccessTokenClaimsOnRefresh'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.update_access_token_claims_on_refresh' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-switch [attr.id]=\"'updateAccessTokenClaimsOnRefresh'\" [formControlName]=\"'updateAccessTokenClaimsOnRefresh'\"></nz-switch>\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]=\"'includeJwtId'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.include_jwt_id' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-switch [attr.id]=\"'includeJwtId'\" [formControlName]=\"'includeJwtId'\"></nz-switch>\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]=\"'alwaysSendClientClaims'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.always_send_client_claims' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-switch [attr.id]=\"'alwaysSendClientClaims'\" [formControlName]=\"'alwaysSendClientClaims'\"></nz-switch>\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]=\"'alwaysIncludeUserClaimsInIdToken'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.always_include_user_claims_in_id_token' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <nz-switch [attr.id]=\"'alwaysIncludeUserClaimsInIdToken'\" [formControlName]=\"'alwaysIncludeUserClaimsInIdToken'\"></nz-switch>\n        </nz-form-control>\n      </nz-form-item>\n    </div>\n  </div>\n\n  <nz-form-item>\n    <nz-form-label [nzFor]=\"'pairWiseSubjectSalt'\">\n      {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.pair_wise_subject_salt' | i18n }}:\n    </nz-form-label>\n    <nz-form-control>\n      <input [attr.id]=\"'pairWiseSubjectSalt'\" [formControlName]=\"'pairWiseSubjectSalt'\" nz-input />\n    </nz-form-control>\n  </nz-form-item>\n\n  <div [nzGutter]=\"32\" nz-row>\n    <div [nzSpan]=\"12\" nz-col>\n      <nz-form-item>\n        <nz-form-label [nzFor]=\"'clientClaimsPrefix'\">\n          {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.client_claims_prefix' | i18n }}:\n        </nz-form-label>\n        <nz-form-control>\n          <input [attr.id]=\"'clientClaimsPrefix'\" [formControlName]=\"'clientClaimsPrefix'\" nz-input />\n        </nz-form-control>\n      </nz-form-item>\n    </div>\n\n    <div [nzSpan]=\"12\" nz-col>\n      <nz-form-item>\n        <nz-form-label> {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.claims' | i18n }}: </nz-form-label>\n        <nz-form-control>\n          <button (click)=\"openIdentityClientsUpdateClaimComponent($event)\" nz-button nzType=\"primary\" type=\"button\">\n            {{ 'projects/fe-ng/src/lib/page/identity/clients/update/token/identity--clients--update--token.claims' | i18n }}\n          </button>\n        </nz-form-control>\n      </nz-form-item>\n    </div>\n  </div>\n</form>\n\n<kg---identity--clients--update--claim\n  [(visible)]=\"identityClientsUpdateClaimComponentProp.visible\"\n  [clientId]=\"clientIdControl.value\"\n></kg---identity--clients--update--claim>\n"
    })
], IdentityClientsUpdateTokenComponent);
export { IdentityClientsUpdateTokenComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpdHktLWNsaWVudHMtLXVwZGF0ZS0tdG9rZW4u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