import { defineComponent as r, createBlock as i, createCommentVNode as s, openBlock as p, unref as c } from "vue";
import { s as d } from "./index-CVEvAPNs.js";
import { u as a } from "./index-BFe8XjpO.js";
const h = /* @__PURE__ */ r({
  __name: "richtext",
  props: {
    content: {},
    disabled: { type: Boolean }
  },
  setup(o) {
    return a(o.content, "richtext", ""), (t, e) => t.content.richtext !== void 0 ? (p(), i(c(d), {
      key: 0,
      ref: "editor",
      style: { "--min-height": "100px" },
      disabled: t.disabled,
      content: t.content.richtext,
      onJson: e[0] || (e[0] = (n) => t.content.richtext = n)
    }, null, 8, ["disabled", "content"])) : s("", !0);
  }
});
export {
  h as default
};
