import L$f from "../../../../assets/model-grey/bizTask.svg.mjs";
import L$e from "../../../../assets/model-grey/childProcess.svg.mjs";
import L$d from "../../../../assets/model-grey/end.svg.mjs";
import L$c from "../../../../assets/model-grey/gateway.svg.mjs";
import M$4 from "../../../../assets/model-grey/inclusiveGateway.svg.mjs";
import L$b from "../../../../assets/model-grey/mergeGateway.svg.mjs";
import L$a from "../../../../assets/model-grey/parallelGateway.svg.mjs";
import L$9 from "../../../../assets/model-grey/rde.svg.mjs";
import L$8 from "../../../../assets/model-grey/service.svg.mjs";
import L$7 from "../../../../assets/model-grey/signTask.svg.mjs";
import I$4 from "../../../../assets/model-grey/start.svg.mjs";
import L$6 from "../../../../assets/model-grey/task.svg.mjs";
import L$5 from "../../../../assets/model-grey/wait.svg.mjs";
import L$4 from "../../../../assets/model/bizTask.svg.mjs";
import I$3 from "../../../../assets/model/childProcess.svg.mjs";
import L$3 from "../../../../assets/model/end.svg.mjs";
import M$3 from "../../../../assets/model/gateway.svg.mjs";
import M$2 from "../../../../assets/model/inclusiveGateway.svg.mjs";
import M$1 from "../../../../assets/model/mergeGateway.svg.mjs";
import I$2 from "../../../../assets/model/parallelGateway.svg.mjs";
import I$1 from "../../../../assets/model/rde.svg.mjs";
import L$2 from "../../../../assets/model/service.svg.mjs";
import L$1 from "../../../../assets/model/signTask.svg.mjs";
import I from "../../../../assets/model/start.svg.mjs";
import L from "../../../../assets/model/task.svg.mjs";
import M from "../../../../assets/model/wait.svg.mjs";
import { ref, computed, createBlock, createElementBlock, openBlock, withCtx, createVNode, unref, createElementVNode, createCommentVNode } from "vue";
import Vs from "./timeline.vue.mjs";
import { ElPopover as m } from "../../../../../node_modules/element-plus/es/components/popover/index.mjs";
const F = ["src"], J = {
  key: 0,
  class: "custom-node-item-current"
}, K = ["src"], Pe = {
  __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(e) {
    ref("assignee");
    const i = e, r = computed(() => d(i.nodeType)), d = (s) => {
      if (s) {
        let t = "model-grey";
        return i.isHighlight && (t = "model"), new URL((/* @__PURE__ */ Object.assign({ "../../../../assets/model-grey/bizTask.svg": L$f, "../../../../assets/model-grey/childProcess.svg": L$e, "../../../../assets/model-grey/end.svg": L$d, "../../../../assets/model-grey/gateway.svg": L$c, "../../../../assets/model-grey/inclusiveGateway.svg": M$4, "../../../../assets/model-grey/mergeGateway.svg": L$b, "../../../../assets/model-grey/parallelGateway.svg": L$a, "../../../../assets/model-grey/rde.svg": L$9, "../../../../assets/model-grey/service.svg": L$8, "../../../../assets/model-grey/signTask.svg": L$7, "../../../../assets/model-grey/start.svg": I$4, "../../../../assets/model-grey/task.svg": L$6, "../../../../assets/model-grey/wait.svg": L$5, "../../../../assets/model/bizTask.svg": L$4, "../../../../assets/model/childProcess.svg": I$3, "../../../../assets/model/end.svg": L$3, "../../../../assets/model/gateway.svg": M$3, "../../../../assets/model/inclusiveGateway.svg": M$2, "../../../../assets/model/mergeGateway.svg": M$1, "../../../../assets/model/parallelGateway.svg": I$2, "../../../../assets/model/rde.svg": I$1, "../../../../assets/model/service.svg": L$2, "../../../../assets/model/signTask.svg": L$1, "../../../../assets/model/start.svg": I, "../../../../assets/model/task.svg": L, "../../../../assets/model/wait.svg": M }))[`../../../../assets/${t}/${s}.svg`], self.location).href;
      }
    };
    return ref(false), (s, t) => {
      const m$1 = m;
      return e.isHighlight ? (openBlock(), createBlock(m$1, {
        key: 0,
        placement: "right",
        width: 500,
        "popper-style": "z-index:9999;",
        disabled: e.taskList.length == 0 && e.hisTaskList.length == 0
      }, {
        reference: withCtx(() => [
          createElementVNode("div", null, [
            createElementVNode("img", { src: unref(r) }, null, 8, F),
            e.isCurrent ? (openBlock(), createElementBlock("div", J)) : createCommentVNode("", true)
          ])
        ]),
        default: withCtx(() => [
          createVNode(unref(Vs), {
            hisTaskList: e.hisTaskList,
            taskList: e.taskList
          }, null, 8, ["hisTaskList", "taskList"])
        ]),
        _: 1
      }, 8, ["disabled"])) : (openBlock(), createElementBlock("img", {
        key: 1,
        src: unref(r)
      }, null, 8, K));
    };
  }
};
export {
  Pe as default
};
