import "../../../../../../../../node_modules/element-plus/es/index.mjs";
/* empty css                                                                      */
/* empty css                                                                           */
/* empty css                                                                            */
import __vite_glob_0_0 from "../../../../../assets/model-grey/bizTask.svg.mjs";
import __vite_glob_0_1 from "../../../../../assets/model-grey/childProcess.svg.mjs";
import __vite_glob_0_2 from "../../../../../assets/model-grey/end.svg.mjs";
import __vite_glob_0_3 from "../../../../../assets/model-grey/gateway.svg.mjs";
import __vite_glob_0_4 from "../../../../../assets/model-grey/inclusiveGateway.svg.mjs";
import __vite_glob_0_5 from "../../../../../assets/model-grey/mergeGateway.svg.mjs";
import __vite_glob_0_6 from "../../../../../assets/model-grey/parallelGateway.svg.mjs";
import __vite_glob_0_7 from "../../../../../assets/model-grey/rde.svg.mjs";
import __vite_glob_0_8 from "../../../../../assets/model-grey/service.svg.mjs";
import __vite_glob_0_9 from "../../../../../assets/model-grey/signTask.svg.mjs";
import __vite_glob_0_10 from "../../../../../assets/model-grey/start.svg.mjs";
import __vite_glob_0_11 from "../../../../../assets/model-grey/task.svg.mjs";
import __vite_glob_0_12 from "../../../../../assets/model-grey/wait.svg.mjs";
import __vite_glob_0_13 from "../../../../../assets/model/bizTask.svg.mjs";
import __vite_glob_0_14 from "../../../../../assets/model/childProcess.svg.mjs";
import __vite_glob_0_15 from "../../../../../assets/model/end.svg.mjs";
import __vite_glob_0_16 from "../../../../../assets/model/gateway.svg.mjs";
import __vite_glob_0_17 from "../../../../../assets/model/inclusiveGateway.svg.mjs";
import __vite_glob_0_18 from "../../../../../assets/model/mergeGateway.svg.mjs";
import __vite_glob_0_19 from "../../../../../assets/model/parallelGateway.svg.mjs";
import __vite_glob_0_20 from "../../../../../assets/model/rde.svg.mjs";
import __vite_glob_0_21 from "../../../../../assets/model/service.svg.mjs";
import __vite_glob_0_22 from "../../../../../assets/model/signTask.svg.mjs";
import __vite_glob_0_23 from "../../../../../assets/model/start.svg.mjs";
import __vite_glob_0_24 from "../../../../../assets/model/task.svg.mjs";
import __vite_glob_0_25 from "../../../../../assets/model/wait.svg.mjs";
import { ref, computed, createBlock, createElementBlock, openBlock, withCtx, createVNode, unref, createElementVNode, createCommentVNode } from "vue";
import timeline from "./timeline.vue.mjs";
/* empty css               */
import { ElPopover } from "../../../../../../../../node_modules/element-plus/es/components/popover/index.mjs";
const _hoisted_1 = ["src"];
const _hoisted_2 = {
  key: 0,
  class: "custom-node-item-current"
};
const _hoisted_3 = ["src"];
const _sfc_main = {
  __name: "NodeItem",
  props: {
    nodeType: {
      type: String,
      default: ""
    },
    isHighlight: {
      type: Boolean,
      default: false
    },
    isCurrent: {
      type: Boolean,
      default: false
    },
    hisTaskList: {
      type: Array,
      default: []
    },
    taskList: {
      type: Array,
      default: []
    }
  },
  setup(__props) {
    ref("assignee");
    const props = __props;
    const img = computed(() => {
      return getImg(props.nodeType);
    });
    const getImg = (nodeType) => {
      if (nodeType) {
        let path = "model-grey";
        if (props.isHighlight) {
          path = "model";
        }
        const imgPath = new URL((/* @__PURE__ */ Object.assign({ "../../../../../assets/model-grey/bizTask.svg": __vite_glob_0_0, "../../../../../assets/model-grey/childProcess.svg": __vite_glob_0_1, "../../../../../assets/model-grey/end.svg": __vite_glob_0_2, "../../../../../assets/model-grey/gateway.svg": __vite_glob_0_3, "../../../../../assets/model-grey/inclusiveGateway.svg": __vite_glob_0_4, "../../../../../assets/model-grey/mergeGateway.svg": __vite_glob_0_5, "../../../../../assets/model-grey/parallelGateway.svg": __vite_glob_0_6, "../../../../../assets/model-grey/rde.svg": __vite_glob_0_7, "../../../../../assets/model-grey/service.svg": __vite_glob_0_8, "../../../../../assets/model-grey/signTask.svg": __vite_glob_0_9, "../../../../../assets/model-grey/start.svg": __vite_glob_0_10, "../../../../../assets/model-grey/task.svg": __vite_glob_0_11, "../../../../../assets/model-grey/wait.svg": __vite_glob_0_12, "../../../../../assets/model/bizTask.svg": __vite_glob_0_13, "../../../../../assets/model/childProcess.svg": __vite_glob_0_14, "../../../../../assets/model/end.svg": __vite_glob_0_15, "../../../../../assets/model/gateway.svg": __vite_glob_0_16, "../../../../../assets/model/inclusiveGateway.svg": __vite_glob_0_17, "../../../../../assets/model/mergeGateway.svg": __vite_glob_0_18, "../../../../../assets/model/parallelGateway.svg": __vite_glob_0_19, "../../../../../assets/model/rde.svg": __vite_glob_0_20, "../../../../../assets/model/service.svg": __vite_glob_0_21, "../../../../../assets/model/signTask.svg": __vite_glob_0_22, "../../../../../assets/model/start.svg": __vite_glob_0_23, "../../../../../assets/model/task.svg": __vite_glob_0_24, "../../../../../assets/model/wait.svg": __vite_glob_0_25 }))[`../../../../../assets/${path}/${nodeType}.svg`], import.meta.url).href;
        return imgPath;
      }
    };
    ref(false);
    return (_ctx, _cache) => {
      const _component_el_popover = ElPopover;
      return __props.isHighlight ? (openBlock(), createBlock(_component_el_popover, {
        key: 0,
        placement: "right",
        width: 500,
        "popper-style": "z-index:9999;",
        disabled: __props.taskList.length == 0 && __props.hisTaskList.length == 0
      }, {
        reference: withCtx(() => [
          createElementVNode("div", null, [
            createElementVNode("img", { src: unref(img) }, null, 8, _hoisted_1),
            __props.isCurrent ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
          ])
        ]),
        default: withCtx(() => [
          createVNode(unref(timeline), {
            hisTaskList: __props.hisTaskList,
            taskList: __props.taskList
          }, null, 8, ["hisTaskList", "taskList"])
        ]),
        _: 1
      }, 8, ["disabled"])) : (openBlock(), createElementBlock("img", {
        key: 1,
        src: unref(img)
      }, null, 8, _hoisted_3));
    };
  }
};
export {
  _sfc_main as default
};
