import { createApp as p } from "vue";
import { _ as a } from "../../Shared/Index.vue_vue_type_script_setup_true_lang-DlCXpiu6.js";
import { C as r } from "../../Shared/base-PQGakkrl.js";
const w = (n = {}) => {
  const m = p(a, n), i = document.createElement("div"), o = m.mount(i);
  return {
    image: (e, t = {}) => {
      const s = r.getJsonMerge(t, { type: "image", src: e });
      o.show(s);
    },
    video: (e, t = {}) => {
      const s = r.getJsonMerge(t, { type: "video", src: e });
      o.show(s);
    },
    show: (e) => {
      o.show(e);
    },
    destroy: () => {
      o.destroy();
    }
  };
};
export {
  w as default
};
//# sourceMappingURL=Preview.js.map
