import { withInstall } from '../utils/install.mjs';
import './src/upload.vue.mjs';
import './src/upload.mjs';
import { createVNode, render } from 'vue';
import script from './src/upload.vue2.mjs';

"use strict";
const MeUpload = withInstall(script);
function createMeUpload(options, slots) {
  const container = document.createElement("div");
  container.className = "me-upload";
  document.body.appendChild(container);
  const vnode = createVNode(
    script,
    {
      ...options,
      onClose: () => {
        render(null, container);
        document.body.removeChild(container);
      }
    },
    slots
  );
  render(vnode, container);
}

export { MeUpload, createMeUpload, MeUpload as default };
//# sourceMappingURL=index.mjs.map
