"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AadKillSwitches = void 0;
var sp_core_library_1 = require("@microsoft/sp-core-library");
var AadKillSwitches = /** @class */ (function () {
    function AadKillSwitches() {
    }
    AadKillSwitches.isAdditionalMsalTelemetryEnabled = function () {
        return !sp_core_library_1._SPKillSwitch.isActivated(sp_core_library_1.Guid.parse('0f83cdbf-a595-48d6-a1b5-ff70e5daf777'), '03/26/20', 'Add additional telemetry for MSAL calls');
    };
    AadKillSwitches.isLogAadAdditionalTelemetryEnabled = function () {
        return !sp_core_library_1._SPKillSwitch.isActivated(sp_core_library_1.Guid.parse('d6619064-d4fc-4659-8306-7e9edb59d871'), '04/13/20', 'Add additional logging for the time it takes to fetch Aad tokens');
    };
    AadKillSwitches.isUpdateTokenForImplicitTokenProviderEnabled = function () {
        return !sp_core_library_1._SPKillSwitch.isActivated(sp_core_library_1.Guid.parse('d4f4cc58-9fc2-47f1-a5df-66add6851f7c'), '09/08/20', 'Allow ImplicitTokenProvider update token');
    };
    AadKillSwitches.isRetryTimeoutsEnabled = function () {
        return !sp_core_library_1._SPKillSwitch.isActivated('8677b99c-f245-43dd-8e78-a6f512170c24'
        /* '10/20/20',
        'Retry on timeout failures' */
        );
    };
    AadKillSwitches.isRetryWithLoginHintEnabled = function () {
        return !sp_core_library_1._SPKillSwitch.isActivated('a7bec1ab-8f5f-43dc-8723-b7160b9430b5'
        /* '10/23/20',
        'Retry with login hint' */
        );
    };
    AadKillSwitches.isRetryIdTokenWithLoginHintEnabled = function () {
        return !sp_core_library_1._SPKillSwitch.isActivated('343c4c23-c2a0-4fb5-8e8a-334c8bad48e5'
        /* '11/06/20',
        'Retry with login hint' */
        );
    };
    AadKillSwitches.isRetryOnResolveEndpointsFailureEnabled = function () {
        return !sp_core_library_1._SPKillSwitch.isActivated('d156f602-a884-45d4-817b-afb6405eb98d'
        /* '11/05/20',
          'Retry on resolve endpoints failure' */
        );
    };
    AadKillSwitches.isReturnTokenDataEnabled = function () {
        return !sp_core_library_1._SPKillSwitch.isActivated(sp_core_library_1.Guid.parse('0a135eef-868e-4f30-9876-5c06736f4d6a'), '02/26/21', 'Add new api to return token response');
    };
    AadKillSwitches.isBlockLoginHintForGuestsEnabled = function () {
        return !sp_core_library_1._SPKillSwitch.isActivated(sp_core_library_1.Guid.parse('e9d6178f-673d-4440-9463-0ba7c6f4d1f9'), '03/11/2021', 'Block login hint for guests');
    };
    AadKillSwitches.isRemoveDuplicateHandleAuthErrorsCallEnabled = function () {
        return !sp_core_library_1._SPKillSwitch.isActivated(sp_core_library_1.Guid.parse('c907e22b-ea94-450f-b7fb-4997f62582e1'), '04/21/2021', 'Remove duplicate handleAuthErrors() call');
    };
    return AadKillSwitches;
}());
exports.AadKillSwitches = AadKillSwitches;
//# sourceMappingURL=AadKillSwitches.js.map