import "../../../../../node_modules/element-plus/es/index.mjs";
/* empty css                                                             */
import { computed, resolveComponent, createElementBlock, openBlock, createCommentVNode, createElementVNode, createBlock, createVNode, withCtx, toDisplayString } from "vue";
import H2Wrapper from "./H2Wrapper.vue.mjs";
import SubTitle from "./SubTitle.vue.mjs";
/* empty css               */
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
import { ElIcon } from "../../../../../node_modules/element-plus/es/components/icon/index.mjs";
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 = computed(() => {
      var _a;
      const mode = ((_a = props.componentData) == null ? void 0 : _a.titleMode) || "none";
      return mode;
    });
    return (_ctx, _cache) => {
      const _component_FolderAdd = resolveComponent("FolderAdd");
      const _component_el_icon = ElIcon;
      return openBlock(), createElementBlock("div", _hoisted_1, [
        titleMode.value !== "none" ? (openBlock(), createElementBlock("div", _hoisted_2, [
          titleMode.value === "label" ? (openBlock(), createBlock(H2Wrapper, {
            key: 0,
            componentData: __props.componentData
          }, null, 8, ["componentData"])) : titleMode.value === "subLabel" ? (openBlock(), createBlock(SubTitle, {
            key: 1,
            componentData: __props.componentData
          }, null, 8, ["componentData"])) : createCommentVNode("", true)
        ])) : createCommentVNode("", true),
        createElementVNode("div", _hoisted_3, [
          createElementVNode("div", _hoisted_4, [
            createVNode(_component_el_icon, null, {
              default: withCtx(() => [
                createVNode(_component_FolderAdd)
              ]),
              _: 1
            })
          ]),
          createElementVNode("div", _hoisted_5, [
            createElementVNode("div", {
              class: "preview-name",
              title: __props.componentData.label
            }, toDisplayString(__props.componentData.label), 9, _hoisted_6)
          ])
        ])
      ]);
    };
  }
};
const Document = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e42eb4c4"]]);
export {
  Document as default
};
