"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeFocusInListener = makeFocusInListener;
exports.listenFocusIn = listenFocusIn;
function makeFocusInListener(listener) {
    return (component) => {
        return listenFocusIn(component, listener);
    };
}
function listenFocusIn(component, listener) {
    const { $element } = component;
    const focusListener = (_event) => {
        const { relatedTarget } = _event;
        listener({ relatedTarget }, _event);
    };
    $element.addEventListener('focusin', focusListener);
    return () => {
        $element.removeEventListener('focusin', focusListener);
    };
}
//# sourceMappingURL=focusin.js.map