import { ax as Node, ay as Mark } from "./chunks/index-DUQPxq05.es.js";
import { ao, au, a9, ab, aw, am, av, aA, an, ak, aq, az, aa, as, aC, aE, aB, ac, aD, ar, at } from "./chunks/index-DUQPxq05.es.js";
import { default as default2 } from "./super-editor/docx-zipper.es.js";
import { createZip } from "./super-editor/file-zipper.es.js";
import { d as defineComponent, E as createElementBlock, G as openBlock, K as createBaseVNode } from "./chunks/vue-BnBKJwCW.es.js";
import { S, r } from "./chunks/SuperConverter-34uUhkLK.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 {
  ao as AIWriter,
  au as AnnotatorHelpers,
  _sfc_main as BasicUpload,
  a9 as CommentsPluginKey,
  default2 as DocxZipper,
  ab as Editor,
  aw as Extensions,
  am as PresentationEditor,
  av as SectionHelpers,
  aA as SlashMenu,
  S as SuperConverter,
  an as SuperEditor,
  ak as SuperInput,
  aq as SuperToolbar,
  az as Toolbar,
  aa as TrackChangesBasePluginKey,
  assertNodeType,
  createZip,
  defineMark,
  defineNode,
  as as fieldAnnotationHelpers,
  aC as getActiveFormatting,
  aE as getAllowedImageDimensions,
  aB as getMarksFromSelection,
  ac as getRichTextExtensions,
  aD as getStarterExtensions,
  ar as helpers,
  isMarkType,
  isNodeType,
  r as registeredHandlers,
  at as trackChangesHelpers
};
