var i = Object.defineProperty;
var u = (t, r, e) => r in t ? i(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
var n = (t, r, e) => u(t, typeof r != "symbol" ? r + "" : r, e);
import { jsx as p } from "react/jsx-runtime";
import { createPluginFactory as c } from "@udecode/plate-core";
import { createParagraphPlugin as g } from "@udecode/plate-paragraph";
import { merge as P } from "../../../../../utilities/merge.es.js";
import { alignmentClassnames as f } from "../../helper.es.js";
import { TextStyles as s } from "../types.es.js";
import { Plugin as y } from "../../Plugin.es.js";
import { defaultStyles as h } from "../../../utils/defaultStyles.es.js";
import { getColumnBreakClasses as x } from "../../ColumnBreakPlugin/utils/getColumnBreakClasses.es.js";
import { MarkupElement as k } from "../../MarkupElement.es.js";
class G extends y {
  constructor({ styles: e = h.p, ...a } = {}) {
    super(s.p, {
      markupElement: new d(),
      label: "Body Text",
      ...a
    });
    n(this, "styles", {});
    this.styles = e;
  }
  plugins() {
    return [S(this.styles)];
  }
}
const E = "tw-m-0 tw-px-0 tw-py-0", o = ({ element: t, attributes: r, children: e, styles: a }) => {
  const m = t.align, l = P([m && f[m], E, x(t)]);
  return /* @__PURE__ */ p("p", { ...r, className: l, style: a, children: e });
};
class d extends k {
  constructor(r = s.p, e = o) {
    super(r, e);
  }
}
const S = (t) => c({
  ...g(),
  key: s.p,
  isElement: !0,
  component: o
})({
  component: (r) => /* @__PURE__ */ p(o, { ...r, styles: t })
});
export {
  E as PARAGRAPH_CLASSES,
  d as ParagraphMarkupElement,
  o as ParagraphMarkupElementNode,
  G as ParagraphPlugin
};
//# sourceMappingURL=paragraphPlugin.es.js.map
