import { N as Node, M as Mark } from "./chunks/index-B9Jx-TG0.es.js";
import { A, a, C, E, b, P, S, _, c, d, e, T, f, i, g, h, j, k, l, m, n } from "./chunks/index-B9Jx-TG0.es.js";
import { D } from "./chunks/DocxZipper-D_TE2vfz.es.js";
import { createZip } from "./super-editor/file-zipper.es.js";
import { d as defineComponent, o as openBlock, c as createElementBlock, a as createBaseVNode } from "./chunks/vue-DiPLN5sT.es.js";
import { S as S2, r } from "./chunks/SuperConverter-BfWET8X-.es.js";
function isNodeType(node, name) {
  return node.type.name === name;
}
function assertNodeType(node, name) {
  if (node.type.name !== name) {
    throw new Error(`Expected node type "${name}", got "${node.type.name}"`);
  }
}
function isMarkType(mark, name) {
  return mark.type.name === name;
}
function defineNode(config) {
  return Node.create(config);
}
function defineMark(config) {
  return Mark.create(config);
}
const _hoisted_1 = ["accept"];
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "BasicUpload",
  props: {
    accept: { default: ".docx, .pdf, .html, .md" }
  },
  emits: ["file-change"],
  setup(__props, { emit: __emit }) {
    const emit = __emit;
    const onFileChange = (event) => {
      const target = event.target;
      if (target.files?.[0]) {
        emit("file-change", target.files[0]);
      }
    };
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", null, [
        createBaseVNode("input", {
          type: "file",
          id: "fileInput",
          onChange: onFileChange,
          accept: __props.accept
        }, null, 40, _hoisted_1)
      ]);
    };
  }
});
export {
  A as AIWriter,
  a as AnnotatorHelpers,
  _sfc_main as BasicUpload,
  C as CommentsPluginKey,
  D as DocxZipper,
  E as Editor,
  b as Extensions,
  P as PresentationEditor,
  S as SectionHelpers,
  _ as SlashMenu,
  S2 as SuperConverter,
  c as SuperEditor,
  d as SuperInput,
  e as SuperToolbar,
  T as Toolbar,
  f as TrackChangesBasePluginKey,
  assertNodeType,
  createZip,
  defineMark,
  defineNode,
  i as fieldAnnotationHelpers,
  g as getActiveFormatting,
  h as getAllowedImageDimensions,
  j as getMarksFromSelection,
  k as getRichTextExtensions,
  l as getStarterExtensions,
  m as helpers,
  isMarkType,
  isNodeType,
  r as registeredHandlers,
  n as trackChangesHelpers
};
