var a = Object.defineProperty;
var c = (i, t, r) => t in i ? a(i, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[t] = r;
var e = (i, t, r) => c(i, typeof t != "symbol" ? t + "" : t, r);
import { createPlateEditor as d } from "@udecode/plate-core";
import { generateRandomId as o } from "../../../utilities/generateRandomId.es.js";
import { generatePlugins as m } from "../Plugins/GeneratePlugins.es.js";
import { defaultPlugins as g } from "../Plugins/defaultPlugins.es.js";
class s {
  static getInstance() {
    return this.editor === void 0 && this.init(), this.editor;
  }
  static init(t = o(), r = g) {
    const n = m(t, r);
    return this.editor = d({ id: t, plugins: n.plugins }), this;
  }
}
e(s, "editor"), e(s, "editorId", o());
export {
  s as InitPlateEditor
};
//# sourceMappingURL=InitPlateEditor.es.js.map
