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');
    }
    openIdentityClientsUpdateClaimComponent(event) {
        event.preventDefault();
        this.identityClientsUpdateClaimComponentProp.visible = true;
    }
    handleSubmit() { }
};
__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);
export { IdentityClientsUpdateTokenComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpdHktLWNsaWVudHMtLXVwZGF0ZS0tdG9rZW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGtlbmdpYy9mZS1uZy8iLCJzb3VyY2VzIjpbImxpYi9wYWdlL2lkZW50aXR5L2NsaWVudHMvdXBkYXRlL3Rva2VuL2lkZW50aXR5LS1jbGllbnRzLS11cGRhdGUtLXRva2VuLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFlLFNBQVMsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0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