"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var sp_core_library_1 = require("@microsoft/sp-core-library");
var sp_telemetry_1 = require("@ms/sp-telemetry");
/**
 * Class to expose flight checks on sp-loader
 *
 * @internal
 */
var SPLoaderFlights = /** @class */ (function () {
    function SPLoaderFlights() {
    }
    SPLoaderFlights._isSafariAuthPatchEnabled = function () {
        return sp_core_library_1._SPFlight.isEnabled(687 /*SppplatSafariAuthPatch */);
    };
    SPLoaderFlights._isMinimalStartFlightEnabled = function () {
        var status = sp_core_library_1._SPExperiment.getVariantAndLogExposure(90051 /* SppplatTwoPhaseRender */) === 1;
        sp_telemetry_1._PerformanceLogger.trackExperiment(90051, status ? 'Treatment' : 'Control');
        return status;
    };
    SPLoaderFlights._isOptimisticPreloadEnabled = function () {
        return sp_telemetry_1._SPPerfExperiment.getVariantAndTrackExperiment(90009) === 1;
    };
    return SPLoaderFlights;
}());
exports.default = SPLoaderFlights;
//# sourceMappingURL=SPLoaderFlights.js.map