"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
require("../../../../../../../../node_modules/element-plus/es/index.js");
;/* empty css                                                                      */
;/* empty css                                                                           */
;/* empty css                                                                            */
const bizTask$1 = require("../../../../../assets/model-grey/bizTask.svg.js");
const childProcess$1 = require("../../../../../assets/model-grey/childProcess.svg.js");
const end$1 = require("../../../../../assets/model-grey/end.svg.js");
const gateway$1 = require("../../../../../assets/model-grey/gateway.svg.js");
const inclusiveGateway$1 = require("../../../../../assets/model-grey/inclusiveGateway.svg.js");
const mergeGateway$1 = require("../../../../../assets/model-grey/mergeGateway.svg.js");
const parallelGateway$1 = require("../../../../../assets/model-grey/parallelGateway.svg.js");
const rde$1 = require("../../../../../assets/model-grey/rde.svg.js");
const service$1 = require("../../../../../assets/model-grey/service.svg.js");
const signTask$1 = require("../../../../../assets/model-grey/signTask.svg.js");
const start$1 = require("../../../../../assets/model-grey/start.svg.js");
const task$1 = require("../../../../../assets/model-grey/task.svg.js");
const wait$1 = require("../../../../../assets/model-grey/wait.svg.js");
const bizTask = require("../../../../../assets/model/bizTask.svg.js");
const childProcess = require("../../../../../assets/model/childProcess.svg.js");
const end = require("../../../../../assets/model/end.svg.js");
const gateway = require("../../../../../assets/model/gateway.svg.js");
const inclusiveGateway = require("../../../../../assets/model/inclusiveGateway.svg.js");
const mergeGateway = require("../../../../../assets/model/mergeGateway.svg.js");
const parallelGateway = require("../../../../../assets/model/parallelGateway.svg.js");
const rde = require("../../../../../assets/model/rde.svg.js");
const service = require("../../../../../assets/model/service.svg.js");
const signTask = require("../../../../../assets/model/signTask.svg.js");
const start = require("../../../../../assets/model/start.svg.js");
const task = require("../../../../../assets/model/task.svg.js");
const wait = require("../../../../../assets/model/wait.svg.js");
const Vue = require("vue");
const timeline = require("./timeline.vue.js");
;/* empty css               */
const index = require("../../../../../../../../node_modules/element-plus/es/components/popover/index.js");
var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
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) {
    Vue.ref("assignee");
    const props = __props;
    const img = Vue.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": bizTask$1.default, "../../../../../assets/model-grey/childProcess.svg": childProcess$1.default, "../../../../../assets/model-grey/end.svg": end$1.default, "../../../../../assets/model-grey/gateway.svg": gateway$1.default, "../../../../../assets/model-grey/inclusiveGateway.svg": inclusiveGateway$1.default, "../../../../../assets/model-grey/mergeGateway.svg": mergeGateway$1.default, "../../../../../assets/model-grey/parallelGateway.svg": parallelGateway$1.default, "../../../../../assets/model-grey/rde.svg": rde$1.default, "../../../../../assets/model-grey/service.svg": service$1.default, "../../../../../assets/model-grey/signTask.svg": signTask$1.default, "../../../../../assets/model-grey/start.svg": start$1.default, "../../../../../assets/model-grey/task.svg": task$1.default, "../../../../../assets/model-grey/wait.svg": wait$1.default, "../../../../../assets/model/bizTask.svg": bizTask.default, "../../../../../assets/model/childProcess.svg": childProcess.default, "../../../../../assets/model/end.svg": end.default, "../../../../../assets/model/gateway.svg": gateway.default, "../../../../../assets/model/inclusiveGateway.svg": inclusiveGateway.default, "../../../../../assets/model/mergeGateway.svg": mergeGateway.default, "../../../../../assets/model/parallelGateway.svg": parallelGateway.default, "../../../../../assets/model/rde.svg": rde.default, "../../../../../assets/model/service.svg": service.default, "../../../../../assets/model/signTask.svg": signTask.default, "../../../../../assets/model/start.svg": start.default, "../../../../../assets/model/task.svg": task.default, "../../../../../assets/model/wait.svg": wait.default }))[`../../../../../assets/${path}/${nodeType}.svg`], typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("packages/vue/src/components/bus/flowChart/bpmnjs/component/NodeItem.vue.js", document.baseURI).href).href;
        return imgPath;
      }
    };
    Vue.ref(false);
    return (_ctx, _cache) => {
      const _component_el_popover = index.ElPopover;
      return __props.isHighlight ? (Vue.openBlock(), Vue.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: Vue.withCtx(() => [
          Vue.createElementVNode("div", null, [
            Vue.createElementVNode("img", { src: Vue.unref(img) }, null, 8, _hoisted_1),
            __props.isCurrent ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2)) : Vue.createCommentVNode("", true)
          ])
        ]),
        default: Vue.withCtx(() => [
          Vue.createVNode(Vue.unref(timeline.default), {
            hisTaskList: __props.hisTaskList,
            taskList: __props.taskList
          }, null, 8, ["hisTaskList", "taskList"])
        ]),
        _: 1
      }, 8, ["disabled"])) : (Vue.openBlock(), Vue.createElementBlock("img", {
        key: 1,
        src: Vue.unref(img)
      }, null, 8, _hoisted_3));
    };
  }
};
exports.default = _sfc_main;
