import { __exports as a } from "./index-LexicalHashtag.prod2.js";
import { __require as c } from "./index-LexicalUtils.js";
import { __require as l } from "./index-Lexical.js";
var n;
function h() {
  if (n) return a;
  n = 1;
  var u = c(), o = l();
  class r extends o.TextNode {
    static getType() {
      return "hashtag";
    }
    static clone(e) {
      return new r(e.__text, e.__key);
    }
    constructor(e, t) {
      super(e, t);
    }
    createDOM(e) {
      let t = super.createDOM(e);
      return u.addClassNamesToElement(t, e.theme.hashtag), t;
    }
    static importJSON(e) {
      let t = i(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 i(s = "") {
    return o.$applyNodeReplacement(new r(s));
  }
  return a.$createHashtagNode = i, a.$isHashtagNode = function(s) {
    return s instanceof r;
  }, a.HashtagNode = r, a;
}
export {
  h as __require
};
