import { __exports as e } from "./index-_virtual31.js";
import O from "react";
import { __require as a } from "./index-LexicalComposerContext2.js";
import { __require as m } from "./index-Lexical.js";
import { __require as f } from "./index-LexicalUtils.js";
var t;
function M() {
  if (t) return e;
  t = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.OnFocusOnBlurPlugin = void 0;
  const i = O, s = a(), r = m(), l = f();
  function c(_) {
    const { onFocus: o, onBlur: n } = _, [u] = (0, s.useLexicalComposerContext)();
    return (0, i.useEffect)(() => (0, l.mergeRegister)(u.registerCommand(r.BLUR_COMMAND, () => (n && n(), !1), r.COMMAND_PRIORITY_LOW), u.registerCommand(r.FOCUS_COMMAND, () => (o && o(), !1), r.COMMAND_PRIORITY_LOW)), [u]), null;
  }
  return e.OnFocusOnBlurPlugin = c, e;
}
export {
  M as __require
};
