import { __exports as e } from "./index-_virtual27.js";
import d from "react";
import { __require as f } from "./index-LexicalComposerContext2.js";
import { __require as _ } from "./index-Lexical.js";
import { __require as m } from "./index-convertHtmlToNodes.js";
var o;
function V() {
  if (o) return e;
  o = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.DefaultValuePlugin = void 0;
  const u = d, a = f(), r = _(), i = m();
  function l(n) {
    const { defaultValue: s } = n, [t] = (0, a.useLexicalComposerContext)();
    return (0, u.useEffect)(() => {
      t.getEditorState().read(() => {
        t.update(() => {
          const c = (0, i.convertHtmlToNodes)(s, t);
          (0, r.$getRoot)().clear(), (0, r.$insertNodes)(c);
        });
      });
    }, []), null;
  }
  return e.DefaultValuePlugin = l, e;
}
export {
  V as __require
};
