"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.listenDragOver = exports.makeDragOverListener = void 0;
function makeDragOverListener(listener, _global = false) {
    return (component) => {
        return listenDragOver(component, listener, _global);
    };
}
exports.makeDragOverListener = makeDragOverListener;
function listenDragOver(component, listener, _global = false) {
    const { $element } = component;
    const dragOverListener = (_event) => {
        const { detail } = _event;
        listener(detail);
    };
    $element.addEventListener('_dragover', dragOverListener, _global);
    return () => {
        $element.removeEventListener('_dragover', dragOverListener, _global);
    };
}
exports.listenDragOver = listenDragOver;
//# sourceMappingURL=dragover.js.map