"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
require("../../../../../node_modules/element-plus/es/index.js");
;/* empty css                                                             */
;/* empty css                                                                  */
const Vue = require("vue");
const approvalHistory = require("../../../assets/approvalHistory.png.js");
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/button/index.js");
const _hoisted_1 = { class: "approval-history-container" };
const _hoisted_2 = {
  key: 0,
  style: { "margin-bottom": "12px" }
};
const _sfc_main = {
  __name: "approvalHistory",
  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_el_button = index.ElButton;
      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
          }, {
            default: Vue.withCtx(() => [
              Vue.createVNode(_component_el_button, {
                link: "",
                type: "primary"
              }, {
                default: Vue.withCtx(() => _cache[0] || (_cache[0] = [
                  Vue.createElementVNode("span", null, "时间轴", -1)
                ])),
                _: 1
              }),
              Vue.createVNode(_component_el_button, {
                link: "",
                type: "primary"
              }, {
                default: Vue.withCtx(() => _cache[1] || (_cache[1] = [
                  Vue.createElementVNode("span", null, "流程图", -1)
                ])),
                _: 1
              })
            ]),
            _: 1
          }, 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),
        _cache[2] || (_cache[2] = Vue.createElementVNode("div", { class: "approval-history-preview" }, [
          Vue.createElementVNode("img", {
            src: approvalHistory.default,
            alt: "审批历史",
            class: "approval-history-img"
          })
        ], -1))
      ]);
    };
  }
};
const ApprovalHistory = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-49ded90b"]]);
exports.default = ApprovalHistory;
