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