"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SNAPSHOT = exports.FOCUS_TRAINER = exports.FOCUS_CONTENT = exports.WALKTHROUGH_MESSAGE = exports.CONTENT_FOCUS_EVENT = exports.DISPATCH_ACTION = exports.CHECK_WALKTHROUGH_STATUS = exports.CHECK_TRAINING_STATUS = exports.FIND_BY_LOCATION = exports.RECORD_SELECTION = exports.RECORD = exports.CONTENT_RELOADED = exports.SET_HOVER_XPATH_TO_INDEX = exports.SET_HOVER_CAPTURE_STATE = exports.SET_REPLAY_STATE = exports.SET_RECORDING_STATE = exports.IFRAME_REQUESTING_TRACKING = exports.INVALIDATE_TRAINING_STATUS = exports.SET_SELECTION_MODE = exports.BLOCKING_OVERLAY = exports.GENERATION_BLOCKING_OVERLAY = exports.QUERY_OVERLAY = exports.FIND_ALL_IFRAMES = exports.INTERACT_WITH_CONTENT = exports.FIND_ELEMENT_AT_LOCATION = exports.SET_WALKTHROUGH_STATE = exports.STOP_LISTENERS = exports.START_LISTENERS = void 0;
exports.findByLocationMessage = findByLocationMessage;
exports.activateSelectionMessage = activateSelectionMessage;
exports.deactivateSelectionMessage = deactivateSelectionMessage;
exports.findScrollableElementsMessage = findScrollableElementsMessage;
exports.findAllIframesMessage = findAllIframesMessage;
const mablscriptFind_1 = require("@mablhq/test-model/mablscriptFind");
exports.START_LISTENERS = 'start_listeners';
exports.STOP_LISTENERS = 'stop_listeners';
exports.SET_WALKTHROUGH_STATE = 'set_walkthrough_state';
exports.FIND_ELEMENT_AT_LOCATION = 'find_element_at_location';
exports.INTERACT_WITH_CONTENT = 'interact_with_content';
exports.FIND_ALL_IFRAMES = 'find_all_iframes';
exports.QUERY_OVERLAY = 'query_overlay';
exports.GENERATION_BLOCKING_OVERLAY = 'generation_blocking_overlay';
exports.BLOCKING_OVERLAY = 'blocking_overlay';
exports.SET_SELECTION_MODE = 'set_selection_mode';
exports.INVALIDATE_TRAINING_STATUS = 'INVALIDATE_TRAINING_STATUS';
exports.IFRAME_REQUESTING_TRACKING = 'IFRAME_REQUESTING_TRACKING';
exports.SET_RECORDING_STATE = 'SET_RECORDING_STATE';
exports.SET_REPLAY_STATE = 'SET_REPLAY_STATE';
exports.SET_HOVER_CAPTURE_STATE = 'SET_HOVER_CAPTURE_STATE';
exports.SET_HOVER_XPATH_TO_INDEX = 'SET_HOVER_XPATH_TO_INDEX';
exports.CONTENT_RELOADED = 'content_reloaded';
exports.RECORD = 'record';
exports.RECORD_SELECTION = 'record-selection';
exports.FIND_BY_LOCATION = 'find-by-location';
exports.CHECK_TRAINING_STATUS = 'check-training-status';
exports.CHECK_WALKTHROUGH_STATUS = 'check-walkthrough-status';
exports.DISPATCH_ACTION = 'DISPATCH_ACTION';
exports.CONTENT_FOCUS_EVENT = 'CONTENT_FOCUS_EVENT';
exports.WALKTHROUGH_MESSAGE = 'WALKTHROUGH_MESSAGE';
exports.FOCUS_CONTENT = 'focus_content';
exports.FOCUS_TRAINER = 'focus_trainer';
exports.SNAPSHOT = 'snapshot';
function findByLocationMessage(boundingBox, targetPoint, toolCall) {
    return {
        action: exports.FIND_ELEMENT_AT_LOCATION,
        selectorTarget: { boundingBox, targetPoint, toolCall },
    };
}
function activateSelectionMessage(stepId, selectionModeCause, overlayHighlightType) {
    return {
        action: exports.SET_SELECTION_MODE,
        active: true,
        selectionModeCause,
        overlayHighlightType,
        stepId,
    };
}
function deactivateSelectionMessage() {
    return { action: exports.SET_SELECTION_MODE, active: false };
}
function findScrollableElementsMessage(maxElements, scrollPoint, scrollBoundingBox, includeElements, pageOnly) {
    return {
        action: mablscriptFind_1.FIND_SCROLLABLE_ELEMENTS,
        maxElements,
        scrollPoint,
        scrollBoundingBox,
        includeElements,
        pageOnly,
    };
}
function findAllIframesMessage() {
    return { action: exports.FIND_ALL_IFRAMES };
}
