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