import { __exports as a } from "./index-LexicalHashtag.dev2.js";
import { __require as l } from "./index-LexicalUtils.js";
import { __require as h } from "./index-Lexical.js";
var u;
function _() {
  if (u) return a;
  u = 1;
  var c = l(), n = h();
  class r extends n.TextNode {
    static getType() {
      return "hashtag";
    }
    static clone(e) {
      return new r(e.__text, e.__key);
    }
    constructor(e, t) {
      super(e, t);
    }
    createDOM(e) {
      const t = super.createDOM(e);
      return c.addClassNamesToElement(t, e.theme.hashtag), t;
    }
    static importJSON(e) {
      const t = o(e.text);
      return t.setFormat(e.format), t.setDetail(e.detail), t.setMode(e.mode), t.setStyle(e.style), t;
    }
    exportJSON() {
      return {
        ...super.exportJSON(),
        type: "hashtag"
      };
    }
    canInsertTextBefore() {
      return !1;
    }
    isTextEntity() {
      return !0;
    }
  }
  function o(s = "") {
    return n.$applyNodeReplacement(new r(s));
  }
  function i(s) {
    return s instanceof r;
  }
  return a.$createHashtagNode = o, a.$isHashtagNode = i, a.HashtagNode = r, a;
}
export {
  _ as __require
};
