'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var install = require('../utils/install.js');
require('./src/upload.vue.js');
require('./src/upload.js');
var vue = require('vue');
var upload_vue_vue_type_script_setup_true_lang = require('./src/upload.vue2.js');

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

exports.MeUpload = MeUpload;
exports.createMeUpload = createMeUpload;
exports.default = MeUpload;
//# sourceMappingURL=index.js.map
