"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isReplayActive = exports.isRecordingActive = exports.isCapturingHovers = void 0;
exports.shouldListenForTrainedStep = shouldListenForTrainedStep;
const isCapturingHovers = (state) => state.training?.configuration?.captureHovers ?? false;
exports.isCapturingHovers = isCapturingHovers;
const isRecordingActive = (state) => state.recordingState?.present?.activeRecording ?? false;
exports.isRecordingActive = isRecordingActive;
const isReplayActive = (state) => state.replay?.running ?? false;
exports.isReplayActive = isReplayActive;
const isEditingStep = (state) => !(state.mainUI?.isOnRootPath ?? true);
function shouldListenForTrainedStep(state) {
    return ((0, exports.isRecordingActive)(state) && !isEditingStep(state) && !(0, exports.isReplayActive)(state));
}
