import { defineComponent as w, ref as u, onMounted as B, resolveComponent as i, openBlock as f, createBlock as g, mergeProps as y, withCtx as r, createVNode as k, createElementBlock as L, Fragment as M, renderList as W, createElementVNode as o, toDisplayString as c } from "vue";
import { _ as $, W as h, d as C } from "./index.14fbe0a4.js";
const N = w({
  components: { WorkflowStatus: h },
  emits: ["register"],
  setup(s, { emit: a }) {
    const l = u(!1), _ = u({}), d = u([]);
    function v(t = {}) {
      l.value = !0;
      const { data: n = {} } = t;
      _.value = n;
      const { instanceId: e = "" } = n;
      m(e);
    }
    function p() {
      l.value = !1;
    }
    function m(t) {
      !t || C("apis").getBackList({ instanceId: t }).then((n) => {
        const { data: e } = n;
        console.log(e), d.value = e;
      });
    }
    return B(() => {
      a("register", { openModal: v, closeModal: p });
    }), {
      visible: l,
      modalData: _,
      timeLine: d
    };
  }
}), I = { class: "time-title" }, D = { style: { color: "blue" } }, E = { class: "time-content" };
function S(s, a, l, _, d, v) {
  const p = i("a-card"), m = i("a-timeline-item"), t = i("a-timeline"), n = i("a-drawer");
  return f(), g(n, y({
    title: "\u9000\u56DE\u4FE1\u606F",
    visible: s.visible,
    "onUpdate:visible": a[0] || (a[0] = (e) => s.visible = e)
  }, s.$attrs), {
    default: r(() => [
      k(t, null, {
        default: r(() => [
          (f(!0), L(M, null, W(s.timeLine, (e, b) => (f(), g(m, { key: b }, {
            default: r(() => [
              o("div", I, [
                o("span", D, c(e.stepName), 1)
              ]),
              o("div", E, [
                k(p, { size: "small" }, {
                  default: r(() => [
                    o("p", null, "\u53D1\u9001\u4EBA\uFF1A" + c(e.senderName), 1),
                    o("p", null, "\u53D1\u9001\u65F6\u95F4\uFF1A" + c(e.sendTime), 1),
                    o("p", null, "\u9000\u56DE\u539F\u56E0\uFF1A" + c(e.note || ""), 1)
                  ]),
                  _: 2
                }, 1024)
              ])
            ]),
            _: 2
          }, 1024))), 128))
        ]),
        _: 1
      })
    ]),
    _: 1
  }, 16, ["visible"]);
}
const x = /* @__PURE__ */ $(N, [["render", S], ["__scopeId", "data-v-5cfe8046"]]);
export {
  x as W
};
