"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
require("../../../../../node_modules/element-plus/es/index.js");
;/* empty css                                                             */
const Vue = require("vue");
const H2Wrapper = require("./H2Wrapper.vue.js");
const SubTitle = require("./SubTitle.vue.js");
;/* empty css               */
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
const index = require("../../../../../node_modules/element-plus/es/components/icon/index.js");
const _hoisted_1 = { class: "document-container" };
const _hoisted_2 = {
  key: 0,
  style: { "margin-bottom": "12px" }
};
const _hoisted_3 = { class: "document-preview" };
const _hoisted_4 = { class: "preview-icon" };
const _hoisted_5 = { class: "preview-info" };
const _hoisted_6 = ["title"];
const _sfc_main = {
  __name: "Document",
  props: {
    componentData: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    const titleMode = Vue.computed(() => {
      var _a;
      const mode = ((_a = props.componentData) == null ? void 0 : _a.titleMode) || "none";
      return mode;
    });
    return (_ctx, _cache) => {
      const _component_FolderAdd = Vue.resolveComponent("FolderAdd");
      const _component_el_icon = index.ElIcon;
      return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
        titleMode.value !== "none" ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
          titleMode.value === "label" ? (Vue.openBlock(), Vue.createBlock(H2Wrapper.default, {
            key: 0,
            componentData: __props.componentData
          }, null, 8, ["componentData"])) : titleMode.value === "subLabel" ? (Vue.openBlock(), Vue.createBlock(SubTitle.default, {
            key: 1,
            componentData: __props.componentData
          }, null, 8, ["componentData"])) : Vue.createCommentVNode("", true)
        ])) : Vue.createCommentVNode("", true),
        Vue.createElementVNode("div", _hoisted_3, [
          Vue.createElementVNode("div", _hoisted_4, [
            Vue.createVNode(_component_el_icon, null, {
              default: Vue.withCtx(() => [
                Vue.createVNode(_component_FolderAdd)
              ]),
              _: 1
            })
          ]),
          Vue.createElementVNode("div", _hoisted_5, [
            Vue.createElementVNode("div", {
              class: "preview-name",
              title: __props.componentData.label
            }, Vue.toDisplayString(__props.componentData.label), 9, _hoisted_6)
          ])
        ])
      ]);
    };
  }
};
const Document = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e42eb4c4"]]);
exports.default = Document;
