import * as vue from "vue";
import { defineComponent, mergeProps, unref, useSSRContext } from "vue";
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderClass, ssrInterpolate } from "vue/server-renderer";
import "../mount.js";
import "path-browserify";
import "deepmerge";
import "fast-safe-stringify";
import "spark-md5";
import "is-plain-object";
import "js-cookie";
import "events";
import "http";
import "@medv/finder";
import "front-matter";
import "markdown-it";
import "markdown-it-anchor";
import "markdown-it-implicit-figures";
import "markdown-it-link-attributes";
import "markdown-it-video";
import "remove-markdown";
import "./index.2544f8a4.js";
import "body-parser";
import "dotenv";
import "compression";
import "serve-favicon";
import "serve-static";
import "html-minifier";
import "vite";
import "@vue/server-renderer";
import "fs";
import "enquirer";
import "semver";
import "glob";
import "minimist";
import "handlebars";
import "execa";
import "multer";
import "sharp";
import "@vitejs/plugin-vue";
import _sfc_main$1 from "./ElSpinner.1083576f.js";
import "express";
import "axios";
import "knex";
import "dompurify";
import "dayjs";
import "chalk";
import "dayjs/plugin/relativeTime.js";
import "dayjs/plugin/utc.js";
import "dayjs/plugin/timezone.js";
import "dayjs/plugin/updateLocale.js";
import "dayjs/plugin/weekOfYear.js";
import "nanoid";
import "prettyoutput";
import "consola";
import "validator";
import "@vueuse/head";
import "node-fetch";
import "vue-router";
import "jsonwebtoken";
import "fs-extra";
import "bcrypt";
import "knex-stringcase";
import "@sinclair/typebox";
import "nodemailer";
import "nodemailer-html-to-text";
import "@tailwindcss/forms";
import "unocss/vite";
import "@unocss/preset-icons";
import "nodemon";
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "InputMediaUpload",
  __ssrInlineRender: true,
  props: {
    modelValue: { type: [String], default: "" },
    factorMedia: { type: Object, required: true },
    allowedFile: { type: String, default: "PDF, PNG, JPG, GIF up to 10MB" }
  },
  emits: ["update:modelValue"],
  setup(__props, { emit }) {
    vue.ref();
    const uploading = vue.ref(false);
    return (_ctx, _push, _parent, _attrs) => {
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "media-body" }, _attrs))}>`);
      if (unref(uploading)) {
        _push(`<div class="p-12">`);
        _push(ssrRenderComponent(_sfc_main$1, { class: "text-theme-200 m-auto h-12 w-12" }, null, _parent));
        _push(`</div>`);
      } else {
        _push(`<!---->`);
      }
      _push(`<label for="file-upload" class="${ssrRenderClass([[], "border-theme-200 hover:bg-theme-50 hover:border-theme-300 mt-1 flex cursor-pointer justify-center rounded-md border-2 border-dashed px-4 py-6"])}"><div class="space-y-1 text-center"><div class="text-theme-400 text-center"><div class="i-carbon-upload inline-block text-2xl"></div></div><div class="text-theme-500 flex text-sm"><div class="text-theme-700 hover:text-theme-600 relative cursor-pointer rounded-md font-medium"><span>Upload a file</span><input id="file-upload" name="file-upload" type="file" class="sr-only" accept="image/*" multiple></div><p class="pl-1">or drag and drop</p></div><p class="text-theme-500 text-xs">${ssrInterpolate(__props.allowedFile)}</p></div></label></div>`);
    };
  }
});
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../ui/InputMediaUpload.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
export {
  _sfc_main as default
};
