@blueking/bkflow-canvas-editor 1.1.0-beta.37 → 1.1.0-beta.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { provide as Jt, inject as $e, ref as B, shallowRef as Ct, defineComponent as Ce, useSlots as oa, openBlock as b, createElementBlock as P, normalizeClass as te, renderSlot as Ze, createElementVNode as D, createBlock as ne, unref as p, createCommentVNode as J, toDisplayString as se, watch as Ve, resolveComponent as ye, withCtx as j, createVNode as L, resolveDirective as Qt, withDirectives as st, computed as O, createTextVNode as ze, Fragment as Oe, renderList as dt, withModifiers as wt, onMounted as $t, onBeforeUnmount as an, Teleport as qr, normalizeStyle as qt, resolveDynamicComponent as dn, toRaw as Ud, isRef as eo, withKeys as Fn, vShow as Xt, reactive as Nn, createSlots as al, Transition as er, createApp as If, getCurrentInstance as en, h as Rt, toRefs as Ro, nextTick as Et, mergeProps as wn, defineAsyncComponent as yd, warn as _5, watchEffect as Qr, readonly as _A, getCurrentScope as Tf, onScopeDispose as ju, toValue as pa, hasInjectionContext as fve, shallowReadonly as pve, onBeforeMount as vg, isVNode as Ml, Comment as $r, cloneVNode as x5, Text as xA, toRef as Un, onUnmounted as Of, onDeactivated as S5, markRaw as E5, useAttrs as yi, onActivated as SA, onUpdated as mg, toHandlerKey as EA, vModelCheckbox as IA, vModelRadio as TA, onBeforeUpdate as I5, vModelText as T5, render as xy, TransitionGroup as O5, createStaticVNode as wd, normalizeProps as wa, guardReactiveProps as Aa, useModel as OA, mergeModels as Gd, toHandlers as D5 } from "vue";
1
+ import { provide as Jt, inject as $e, ref as B, shallowRef as Ct, defineComponent as Ce, useSlots as oa, openBlock as b, createElementBlock as P, normalizeClass as te, renderSlot as Ze, createElementVNode as D, createBlock as ne, unref as p, createCommentVNode as J, toDisplayString as se, watch as Ve, resolveComponent as ye, withCtx as j, createVNode as L, resolveDirective as Qt, withDirectives as st, computed as O, createTextVNode as ze, Fragment as Oe, renderList as dt, withModifiers as wt, onMounted as $t, onBeforeUnmount as an, Teleport as qr, normalizeStyle as qt, resolveDynamicComponent as dn, toRaw as Ud, isRef as eo, withKeys as Fn, vShow as Xt, reactive as Nn, createSlots as al, Transition as er, createApp as If, getCurrentInstance as en, h as Rt, toRefs as Ro, nextTick as Et, mergeProps as wn, defineAsyncComponent as yd, warn as _5, watchEffect as Qr, readonly as _A, getCurrentScope as Tf, onScopeDispose as ju, toValue as pa, hasInjectionContext as vve, shallowReadonly as mve, onBeforeMount as vg, isVNode as Ml, Comment as $r, cloneVNode as x5, Text as xA, toRef as Un, onUnmounted as Of, onDeactivated as S5, markRaw as E5, useAttrs as yi, onActivated as SA, onUpdated as mg, toHandlerKey as EA, vModelCheckbox as IA, vModelRadio as TA, onBeforeUpdate as I5, vModelText as T5, render as xy, TransitionGroup as O5, createStaticVNode as wd, normalizeProps as wa, guardReactiveProps as Aa, useModel as OA, mergeModels as Gd, toHandlers as D5 } from "vue";
2
2
  import { Message as Ea, Select as Sy, bkTooltips as gg, Input as M5 } from "bkui-vue";
3
- import { u as P5, b as DA, B as V5, a as hg, c as Pl, g as Mn, S as El, A as MA, d as B5, e as jr, f as N5, h as PA, p as VA, w as BA, n as Ad } from "./context-BGCiN3VZ.js";
3
+ import { u as P5, b as DA, B as V5, a as hg, c as Pl, g as Mn, S as El, A as MA, d as B5, e as jr, f as N5, h as PA, p as VA, w as BA, n as Ad } from "./context-DrPMCAhz.js";
4
4
  import { ArrowsLeft as L5, EditLine as R5, CopyShape as NA, Copy as F5, FilliscreenLine as z5, UnfullScreen as j5, AngleUpFill as H5, Info as LA, AngleDoubleDownLine as W5, Plus as RA, ExclamationCircleShape as U5, Del as G5, InfoLine as Y5, AngleRight as q5, ArrowsRight as Q5, Share as FA } from "bkui-vue/lib/icon";
5
5
  import { Message as bg, InfoBox as Lo } from "bkui-vue/lib";
6
6
  import Pn from "bkui-vue/lib/message";
@@ -8,7 +8,7 @@ import * as Ms from "monaco-editor";
8
8
  import $5 from "bkui-vue/lib/button";
9
9
  import K5 from "bkui-vue/lib/dialog";
10
10
  import "axios";
11
- import { isArray as Nt, isObject as Gn, isString as hn, hasOwn as Mo, capitalize as Cve, camelize as Z5, isFunction as gn, NOOP as cn, isDate as Ey, isPlainObject as sm, isPromise as Iy, hyphenate as X5 } from "@vue/shared";
11
+ import { isArray as Nt, isObject as Gn, isString as hn, hasOwn as Mo, capitalize as xve, camelize as Z5, isFunction as gn, NOOP as cn, isDate as Ey, isPlainObject as sm, isPromise as Iy, hyphenate as X5 } from "@vue/shared";
12
12
  import * as xr from "xlsx";
13
13
  import J5 from "sortablejs";
14
14
  import { createBuiltinEdgeTypes as eO, useCanvasEditor as tO, CanvasLayout as nO, CanvasRuntime as aO, CanvasToolbar as oO, connectionValidatorPlugin as lO, selectionPlugin as sO, snaplinePlugin as rO, searchPlugin as iO, minimapPlugin as uO } from "@blueking/flow-canvas";
@@ -41,10 +41,10 @@ function dO() {
41
41
  }
42
42
  return e;
43
43
  }
44
- function Ive() {
44
+ function Ove() {
45
45
  return ka();
46
46
  }
47
- function Tve() {
47
+ function Dve() {
48
48
  return ka();
49
49
  }
50
50
  function WA(e) {
@@ -243,7 +243,7 @@ function GA(e) {
243
243
  const t = (e ?? []).map((n) => n?.key).filter((n) => !!n);
244
244
  return t.length > 0 && t.every((n) => Mf.has(n));
245
245
  }
246
- function Ove(e, t) {
246
+ function Mve(e, t) {
247
247
  return e && !GA(t);
248
248
  }
249
249
  const hO = {
@@ -1745,7 +1745,7 @@ const Pt = /* @__PURE__ */ Rl(e6), t6 = /* @__PURE__ */ Ce({
1745
1745
  disabled: !n.editable || u(re),
1746
1746
  onClick: W[3] || (W[3] = wt(() => {
1747
1747
  }, ["stop"])),
1748
- onChange: (Ee) => U(re.key, Ee)
1748
+ onChange: (Ee) => U(re, Ee)
1749
1749
  }, null, 8, ["value", "disabled", "onChange"])]),
1750
1750
  _: 1
1751
1751
  })], 64)), n.narrow ? J("", !0) : (b(), ne(X, {
@@ -1813,7 +1813,7 @@ const Pt = /* @__PURE__ */ Rl(e6), t6 = /* @__PURE__ */ Ce({
1813
1813
  }, 8, ["data"])])], 2);
1814
1814
  };
1815
1815
  }
1816
- }), x6 = /* @__PURE__ */ rt(_6, [["__scopeId", "data-v-8fc370f7"]]);
1816
+ }), x6 = /* @__PURE__ */ rt(_6, [["__scopeId", "data-v-254e2461"]]);
1817
1817
  function Ig() {
1818
1818
  if (typeof self > "u")
1819
1819
  return;
@@ -11183,7 +11183,7 @@ function Lz(e, t, n) {
11183
11183
  immediate: !0
11184
11184
  });
11185
11185
  }
11186
- const ec = bn ? window : void 0, Mve = bn ? window.document : void 0;
11186
+ const ec = bn ? window : void 0, Vve = bn ? window.document : void 0;
11187
11187
  function mo(e) {
11188
11188
  var t;
11189
11189
  const n = pa(e);
@@ -15769,7 +15769,7 @@ var DW = /* @__PURE__ */ Ce({
15769
15769
  return (a, o) => (b(), P("div", { class: te([p(n).b("group"), p(n).bm("group", t.direction)]) }, [Ze(a.$slots, "default")], 2));
15770
15770
  }
15771
15771
  }), O_ = DW;
15772
- const pf = ra(TW, { ButtonGroup: O_ }), Pve = ys(O_), w2 = [
15772
+ const pf = ra(TW, { ButtonGroup: O_ }), Bve = ys(O_), w2 = [
15773
15773
  "hours",
15774
15774
  "minutes",
15775
15775
  "seconds"
@@ -19190,7 +19190,7 @@ const RU = /* @__PURE__ */ Rl(LU), e3 = Ft({
19190
19190
  }, i3 = {
19191
19191
  type: Number,
19192
19192
  default: 2
19193
- }, Vve = Ft({
19193
+ }, Nve = Ft({
19194
19194
  columnCache: Ym,
19195
19195
  columnWidth: Um,
19196
19196
  estimatedColumnWidth: Gm,
@@ -38132,7 +38132,7 @@ const Eae = { class: "node-config-basic-info" }, Iae = { class: "plugin-select"
38132
38132
  emits: ["change", "selectPlugin", "versionChange"],
38133
38133
  setup(e, { expose: t, emit: n }) {
38134
38134
  const a = e, o = n, l = B(), r = B(at(a.node)), s = B(!1), u = { disabled: !0 }, d = {}, c = O(() => {
38135
- const S = a.pluginType === "uniform_api" ? a.node.component.api_meta?.alias || a.pluginDetail?.uniformApiName || a.node.component.code : a.pluginDetail?.name || a.node.component.code;
38135
+ const S = a.pluginType === "uniform_api" ? a.node.component.api_meta?.name || a.node.component.api_meta?.alias || a.pluginDetail?.uniformApiName || a.node.component.code : a.pluginDetail?.name || a.node.component.code;
38136
38136
  return Pae({
38137
38137
  pluginName: S,
38138
38138
  displayGroupName: a.pluginDetail?.displayGroupName
@@ -38449,7 +38449,7 @@ const Eae = { class: "node-config-basic-info" }, Iae = { class: "plugin-select"
38449
38449
  ]);
38450
38450
  };
38451
38451
  }
38452
- }), Bae = /* @__PURE__ */ rt(Vae, [["__scopeId", "data-v-b21a25e2"]]), Nae = /* @__PURE__ */ Ce({
38452
+ }), Bae = /* @__PURE__ */ rt(Vae, [["__scopeId", "data-v-980fb19e"]]), Nae = /* @__PURE__ */ Ce({
38453
38453
  __name: "index",
38454
38454
  props: {
38455
38455
  formData: { default: () => ({}) },
@@ -46355,7 +46355,7 @@ const jse = {
46355
46355
  }, 8, ["is-show"]);
46356
46356
  };
46357
46357
  }
46358
- }), Qse = /* @__PURE__ */ rt(qse, [["__scopeId", "data-v-4bbbf505"]]), $se = { class: "node-config-slider-header" }, Kse = {
46358
+ }), Qse = /* @__PURE__ */ rt(qse, [["__scopeId", "data-v-5c6fe2c2"]]), $se = { class: "node-config-slider-header" }, Kse = {
46359
46359
  class: "header-title",
46360
46360
  "data-test": "node-config-title"
46361
46361
  }, Zse = { "data-test": "tab-debug-label" }, Xse = { class: "sideslider-footer-buttons" }, Jse = /* @__PURE__ */ Ce({
@@ -47718,32 +47718,43 @@ function mx(e, t, n) {
47718
47718
  function sue(e) {
47719
47719
  return e.latest_version ? e.latest_version : e.default_version ? e.default_version : e.versions?.[e.versions.length - 1] || "";
47720
47720
  }
47721
- function rue(e, t) {
47722
- const n = e.category || t.activeCategory, a = mx(e, t.categories, t.activeCategory), o = sue(e);
47721
+ function rue(e) {
47722
+ return JSON.parse(JSON.stringify(e));
47723
+ }
47724
+ function iue(e, t) {
47725
+ const n = e.category || t.activeCategory, a = mx(e, t.categories, t.activeCategory), o = sue(e) || "v2.0.0", l = e.wrapper_version || "v2.0.0", r = t.sourceKey || e.source_key;
47726
+ return rue({
47727
+ id: e.id,
47728
+ name: e.name,
47729
+ meta_url: e.meta_url,
47730
+ api_key: t.apiName,
47731
+ plugin_source: e.plugin_source,
47732
+ plugin_code: e.plugin_code,
47733
+ plugin_version: o,
47734
+ wrapper_version: l,
47735
+ category: { id: n, name: a },
47736
+ meta_url_template: e.meta_url_template,
47737
+ versions: e.versions || [],
47738
+ latest_version: e.latest_version,
47739
+ default_version: e.default_version,
47740
+ desc: e.description || "",
47741
+ source_key: r
47742
+ });
47743
+ }
47744
+ function uue(e, t) {
47745
+ const n = e.wrapper_version || "v2.0.0";
47723
47746
  return {
47724
47747
  name: e.name,
47725
47748
  code: "uniform_api",
47726
47749
  data: {},
47727
- version: e.wrapper_version || "v2.0.0",
47728
- api_meta: {
47729
- id: e.id,
47730
- name: e.name,
47731
- alias: e.name,
47732
- meta_url: e.meta_url ?? "",
47733
- api_key: t.apiName,
47734
- category: { id: n, name: a },
47735
- ...e.plugin_code ? { plugin_code: e.plugin_code } : {},
47736
- ...o ? { plugin_version: o } : {},
47737
- ...e.source_key ? { source_key: e.source_key } : {},
47738
- ...e.wrapper_version ? { wrapper_version: e.wrapper_version } : {},
47739
- ...e.versions?.length ? { versions: e.versions } : {}
47740
- }
47750
+ version: n,
47751
+ api_meta: iue(e, t)
47741
47752
  };
47742
47753
  }
47743
- const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue = { class: "plugin-content-wrapper" }, due = { class: "category-list" }, fue = ["onClick"], pue = { class: "plugin-icon-wrapper" }, vue = ["src"], mue = { class: "plugin-info-wrapper" }, gue = { class: "plugin-name" }, hue = ["title"], bue = { class: "plugin-category" }, yue = {
47754
+ const cue = { class: "sops-plugin-group" }, due = { class: "group-header" }, fue = { class: "plugin-content-wrapper" }, pue = { class: "category-list" }, vue = ["onClick"], mue = { class: "plugin-icon-wrapper" }, gue = ["src"], hue = { class: "plugin-info-wrapper" }, bue = { class: "plugin-name" }, yue = ["title"], wue = { class: "plugin-category" }, Aue = {
47744
47755
  key: 0,
47745
47756
  class: "list-more-tip"
47746
- }, wue = /* @__PURE__ */ Ce({
47757
+ }, kue = /* @__PURE__ */ Ce({
47747
47758
  __name: "index",
47748
47759
  props: {
47749
47760
  flowId: {},
@@ -47797,10 +47808,12 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
47797
47808
  }
47798
47809
  }
47799
47810
  }, G = (U) => {
47811
+ const Y = n.sources.find((z) => z.id === s.value);
47800
47812
  a(
47801
47813
  "selectSopsPlugin",
47802
- rue(U, {
47814
+ uue(U, {
47803
47815
  apiName: s.value,
47816
+ sourceKey: Y?.source_key || s.value,
47804
47817
  categories: u.value,
47805
47818
  activeCategory: d.value
47806
47819
  })
@@ -47808,8 +47821,8 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
47808
47821
  };
47809
47822
  return (U, Y) => {
47810
47823
  const z = ye("bk-button"), W = Qt("bk-loading");
47811
- return b(), P("div", iue, [
47812
- D("div", uue, [
47824
+ return b(), P("div", cue, [
47825
+ D("div", due, [
47813
47826
  L(ob, {
47814
47827
  modelValue: C.value,
47815
47828
  "onUpdate:modelValue": Y[0] || (Y[0] = (H) => C.value = H),
@@ -47825,13 +47838,13 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
47825
47838
  onChange: N
47826
47839
  }, null, 8, ["modelValue"])
47827
47840
  ]),
47828
- D("div", cue, [
47829
- st((b(), P("div", due, [
47841
+ D("div", fue, [
47842
+ st((b(), P("div", pue, [
47830
47843
  (b(!0), P(Oe, null, dt(p(u), (H) => (b(), P("div", {
47831
47844
  key: H.id,
47832
47845
  class: te(["category-item", { actived: H.id === p(d) }]),
47833
47846
  onClick: ($) => p(_)(H.id)
47834
- }, se(H.name), 11, fue))), 128)),
47847
+ }, se(H.name), 11, vue))), 128)),
47835
47848
  !p(h) && p(u).length === 0 ? (b(), ne($n, {
47836
47849
  key: 0,
47837
47850
  title: "暂无插件分类"
@@ -47848,19 +47861,19 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
47848
47861
  key: H.id,
47849
47862
  class: "plugin-item"
47850
47863
  }, [
47851
- D("div", pue, [
47864
+ D("div", mue, [
47852
47865
  D("img", {
47853
47866
  src: p(Hd),
47854
47867
  alt: "plugin-icon"
47855
- }, null, 8, vue)
47868
+ }, null, 8, gue)
47856
47869
  ]),
47857
- D("div", mue, [
47858
- D("h4", gue, se(H.name), 1),
47870
+ D("div", hue, [
47871
+ D("h4", bue, se(H.name), 1),
47859
47872
  D("p", {
47860
47873
  class: "plugin-desc",
47861
47874
  title: H.description
47862
- }, se(H.description || "--"), 9, hue),
47863
- D("div", bue, se(V(H)), 1)
47875
+ }, se(H.description || "--"), 9, yue),
47876
+ D("div", wue, se(V(H)), 1)
47864
47877
  ]),
47865
47878
  L(z, {
47866
47879
  theme: "primary",
@@ -47873,7 +47886,7 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
47873
47886
  _: 1
47874
47887
  }, 8, ["onClick"])
47875
47888
  ]))), 128)),
47876
- x.value ? (b(), P("div", yue, "加载中...")) : J("", !0)
47889
+ x.value ? (b(), P("div", Aue, "加载中...")) : J("", !0)
47877
47890
  ], 64)) : p(v) ? J("", !0) : (b(), ne($n, {
47878
47891
  key: 1,
47879
47892
  "is-search": !!p(m),
@@ -47887,10 +47900,10 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
47887
47900
  ]);
47888
47901
  };
47889
47902
  }
47890
- }), Aue = /* @__PURE__ */ rt(wue, [["__scopeId", "data-v-0f870712"]]), kue = { class: "plugin-select-slider" }, Cue = {
47903
+ }), Cue = /* @__PURE__ */ rt(kue, [["__scopeId", "data-v-c48ba486"]]), _ue = { class: "plugin-select-slider" }, xue = {
47891
47904
  key: 0,
47892
47905
  class: "plugin-select-content"
47893
- }, _ue = /* @__PURE__ */ Ce({
47906
+ }, Sue = /* @__PURE__ */ Ce({
47894
47907
  __name: "index",
47895
47908
  props: {
47896
47909
  show: { type: Boolean, default: !1 },
@@ -47911,7 +47924,7 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
47911
47924
  knowledgebase: Pie,
47912
47925
  bkflow: $ie,
47913
47926
  output: Nie,
47914
- [El]: Aue
47927
+ [El]: Cue
47915
47928
  }, a = ["bkflow", El], o = e, l = t, r = B(o.active), s = Ct([]), u = B(!1), d = O(() => n[r.value] || null), c = O(() => o.pluginGroupList.find((C) => C.name === r.value)?.properties || {}), m = O(() => o.pluginGroupList.find((C) => C.name === "bkflow")?.children || []), h = O(() => r.value === "knowledgebase" ? { cancel: y } : {}), v = O(() => {
47916
47929
  if (r.value !== El) return {};
47917
47930
  const C = PA(o.pluginGroupList);
@@ -47953,14 +47966,14 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
47953
47966
  "before-close": k
47954
47967
  }, {
47955
47968
  default: j(() => [
47956
- D("div", kue, [
47969
+ D("div", _ue, [
47957
47970
  L(rre, {
47958
47971
  active: r.value,
47959
47972
  "onUpdate:active": x[0] || (x[0] = (M) => r.value = M),
47960
47973
  groups: o.pluginGroupList,
47961
47974
  onChange: A
47962
47975
  }, null, 8, ["active", "groups"]),
47963
- o.show ? st((b(), P("section", Cue, [
47976
+ o.show ? st((b(), P("section", xue, [
47964
47977
  d.value ? (b(), ne(dn(d.value), wn({
47965
47978
  key: r.value,
47966
47979
  plugins: s.value,
@@ -47983,7 +47996,7 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
47983
47996
  }, 8, ["is-show"]);
47984
47997
  };
47985
47998
  }
47986
- }), xue = /* @__PURE__ */ rt(_ue, [["__scopeId", "data-v-368307a9"]]), Sue = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20class='design-iconfont'%3e%3cpath%20d='M13,1%20C14.1045695,1%2015,1.8954305%2015,3%20L15,13%20C15,14.1045695%2014.1045695,15%2013,15%20L3,15%20C1.8954305,15%201,14.1045695%201,13%20L1,3%20C1,1.8954305%201.8954305,1%203,1%20L13,1%20Z%20M13,3.5%20L10,3.5%20L10,4.5%20L11.3962161,4.50116386%20C9.643609,6.49502964%208.38728573,7.5%207.76574712,7.5%20L2.98331185,7.5%20L2.98331185,8.5%20L7.76574712,8.5%20C8.38739048,8.5%209.64403252,9.50530916%2011.3971023,11.4998444%20L10,11.5%20L10,12.5%20L13,12.5%20L13,9.5%20L12,9.5%20L11.9990374,10.6691668%20C10.8673578,9.39340572%209.92128001,8.50479286%209.13199729,8.00043657%20C9.92138242,7.4953138%2010.8676033,6.60639761%2011.9994779,5.33034326%20L12,6.5%20L13,6.5%20L13,3.5%20Z'%20fill='%236EC3D5'%20fill-rule='evenodd'/%3e%3c/svg%3e", Eue = { class: "option-item" }, Iue = ["src"], Tue = { class: "option-name" }, Oue = /* @__PURE__ */ Ce({
47999
+ }), Eue = /* @__PURE__ */ rt(Sue, [["__scopeId", "data-v-368307a9"]]), Iue = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20class='design-iconfont'%3e%3cpath%20d='M13,1%20C14.1045695,1%2015,1.8954305%2015,3%20L15,13%20C15,14.1045695%2014.1045695,15%2013,15%20L3,15%20C1.8954305,15%201,14.1045695%201,13%20L1,3%20C1,1.8954305%201.8954305,1%203,1%20L13,1%20Z%20M13,3.5%20L10,3.5%20L10,4.5%20L11.3962161,4.50116386%20C9.643609,6.49502964%208.38728573,7.5%207.76574712,7.5%20L2.98331185,7.5%20L2.98331185,8.5%20L7.76574712,8.5%20C8.38739048,8.5%209.64403252,9.50530916%2011.3971023,11.4998444%20L10,11.5%20L10,12.5%20L13,12.5%20L13,9.5%20L12,9.5%20L11.9990374,10.6691668%20C10.8673578,9.39340572%209.92128001,8.50479286%209.13199729,8.00043657%20C9.92138242,7.4953138%2010.8676033,6.60639761%2011.9994779,5.33034326%20L12,6.5%20L13,6.5%20L13,3.5%20Z'%20fill='%236EC3D5'%20fill-rule='evenodd'/%3e%3c/svg%3e", Tue = { class: "option-item" }, Oue = ["src"], Due = { class: "option-name" }, Mue = /* @__PURE__ */ Ce({
47987
48000
  __name: "option-item",
47988
48001
  props: {
47989
48002
  option: {}
@@ -47993,13 +48006,13 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
47993
48006
  const o = a.target;
47994
48007
  o.src !== jr && (o.src = jr);
47995
48008
  };
47996
- return (a, o) => (b(), P("div", Eue, [
48009
+ return (a, o) => (b(), P("div", Tue, [
47997
48010
  D("img", {
47998
48011
  class: "option-img",
47999
48012
  src: t.option.iconUrl || p(jr),
48000
48013
  onError: n
48001
- }, null, 40, Iue),
48002
- D("div", Tue, se(t.option.name), 1),
48014
+ }, null, 40, Oue),
48015
+ D("div", Due, se(t.option.name), 1),
48003
48016
  t.option.type === "group" ? (b(), ne(p(q5), {
48004
48017
  key: 0,
48005
48018
  class: "angle-icon"
@@ -48010,25 +48023,25 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
48010
48023
  })) : J("", !0)
48011
48024
  ]));
48012
48025
  }
48013
- }), dA = /* @__PURE__ */ rt(Oue, [["__scopeId", "data-v-0a4661f8"]]), Due = { class: "quick-edit-popover" }, Mue = { class: "search-input" }, Pue = { class: "plugin-option-list" }, Vue = {
48026
+ }), dA = /* @__PURE__ */ rt(Mue, [["__scopeId", "data-v-0a4661f8"]]), Pue = { class: "quick-edit-popover" }, Vue = { class: "search-input" }, Bue = { class: "plugin-option-list" }, Nue = {
48014
48027
  key: 0,
48015
48028
  class: "logic-node-list"
48016
- }, Bue = ["onClick"], Nue = { class: "logic-node-name" }, Lue = {
48029
+ }, Lue = ["onClick"], Rue = { class: "logic-node-name" }, Fue = {
48017
48030
  key: 1,
48018
48031
  class: "data-plugin-list"
48019
- }, Rue = ["onClick"], Fue = { class: "data-plugin-name" }, zue = {
48032
+ }, zue = ["onClick"], jue = { class: "data-plugin-name" }, Hue = {
48020
48033
  key: 2,
48021
48034
  class: "agent-plugin-list"
48022
- }, jue = { class: "list-wrapper" }, Hue = ["onClick"], Wue = { class: "agent-name" }, Uue = { class: "agent-en-name" }, Gue = {
48035
+ }, Wue = { class: "list-wrapper" }, Uue = ["onClick"], Gue = { class: "agent-name" }, Yue = { class: "agent-en-name" }, que = {
48023
48036
  key: 3,
48024
48037
  class: "agent-plugin-list"
48025
- }, Yue = { class: "list-wrapper" }, que = ["onClick"], Que = { class: "agent-name" }, $ue = {
48038
+ }, Que = { class: "list-wrapper" }, $ue = ["onClick"], Kue = { class: "agent-name" }, Zue = {
48026
48039
  key: 4,
48027
48040
  class: "bkflow-tag-list"
48028
- }, Kue = ["onClick"], Zue = {
48041
+ }, Xue = ["onClick"], Jue = {
48029
48042
  key: 5,
48030
48043
  class: "bkflow-tag-list"
48031
- }, Xue = ["onClick"], Jue = ["onClick"], ece = /* @__PURE__ */ Ce({
48044
+ }, ece = ["onClick"], tce = ["onClick"], nce = /* @__PURE__ */ Ce({
48032
48045
  __name: "index",
48033
48046
  props: {
48034
48047
  pluginGroupList: { default: () => [] }
@@ -48062,7 +48075,7 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
48062
48075
  () => r.pluginGroupList,
48063
48076
  (E) => {
48064
48077
  const k = [
48065
- { id: "logic", name: "逻辑", iconUrl: Sue, type: "group", width: 160, children: a }
48078
+ { id: "logic", name: "逻辑", iconUrl: Iue, type: "group", width: 160, children: a }
48066
48079
  ];
48067
48080
  E.forEach((y) => {
48068
48081
  k.push({
@@ -48130,8 +48143,8 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
48130
48143
  };
48131
48144
  return (E, k) => {
48132
48145
  const y = ye("bk-input"), C = ye("bk-button"), x = ye("bk-popover");
48133
- return b(), P("div", Due, [
48134
- D("div", Mue, [
48146
+ return b(), P("div", Pue, [
48147
+ D("div", Vue, [
48135
48148
  L(y, {
48136
48149
  modelValue: d.value,
48137
48150
  "onUpdate:modelValue": k[0] || (k[0] = (S) => d.value = S),
@@ -48142,7 +48155,7 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
48142
48155
  onInput: h
48143
48156
  }, null, 8, ["modelValue"])
48144
48157
  ]),
48145
- D("div", Pue, [
48158
+ D("div", Bue, [
48146
48159
  (b(!0), P(Oe, null, dt(c.value, (S) => (b(), P(Oe, {
48147
48160
  key: S.id
48148
48161
  }, [
@@ -48157,7 +48170,7 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
48157
48170
  "popover-delay": [0, 100]
48158
48171
  }, {
48159
48172
  content: j(() => [
48160
- S.id === "logic" ? (b(), P("div", Vue, [
48173
+ S.id === "logic" ? (b(), P("div", Nue, [
48161
48174
  (b(!0), P(Oe, null, dt(S.children, (T) => (b(), P("div", {
48162
48175
  key: T.id,
48163
48176
  class: "logic-node-item",
@@ -48166,49 +48179,49 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
48166
48179
  D("i", {
48167
48180
  class: te(["bkflow-canvas-icon", T.icon])
48168
48181
  }, null, 2),
48169
- D("span", Nue, se(T.name), 1)
48170
- ], 8, Bue))), 128))
48171
- ])) : S.id === "data" ? (b(), P("div", Lue, [
48182
+ D("span", Rue, se(T.name), 1)
48183
+ ], 8, Lue))), 128))
48184
+ ])) : S.id === "data" ? (b(), P("div", Fue, [
48172
48185
  (b(!0), P(Oe, null, dt(S.children?.slice(0, 10), (T) => (b(), P("div", {
48173
48186
  class: "data-plugin-item",
48174
48187
  key: T.id,
48175
48188
  onClick: (M) => A(T.id, "data")
48176
48189
  }, [
48177
- D("div", Fue, se(T.name), 1)
48178
- ], 8, Rue))), 128))
48179
- ])) : S.id === "agent" ? (b(), P("div", zue, [
48180
- D("div", jue, [
48190
+ D("div", jue, se(T.name), 1)
48191
+ ], 8, zue))), 128))
48192
+ ])) : S.id === "agent" ? (b(), P("div", Hue, [
48193
+ D("div", Wue, [
48181
48194
  (b(!0), P(Oe, null, dt(S.children?.slice(0, 10), (T) => (b(), P("div", {
48182
48195
  class: "agent-plugin-item",
48183
48196
  key: T.id,
48184
48197
  onClick: (M) => A(T.id, "agent")
48185
48198
  }, [
48186
- D("span", Wue, se(T.name), 1),
48187
- D("span", Uue, "(" + se(T.enName) + ")", 1)
48188
- ], 8, Hue))), 128))
48199
+ D("span", Gue, se(T.name), 1),
48200
+ D("span", Yue, "(" + se(T.enName) + ")", 1)
48201
+ ], 8, Uue))), 128))
48189
48202
  ])
48190
- ])) : S.id === "model" ? (b(), P("div", Gue, [
48191
- D("div", Yue, [
48203
+ ])) : S.id === "model" ? (b(), P("div", que, [
48204
+ D("div", Que, [
48192
48205
  (b(!0), P(Oe, null, dt(S.children?.slice(0, 10), (T) => (b(), P("div", {
48193
48206
  class: "agent-plugin-item",
48194
48207
  key: T.id,
48195
48208
  onClick: (M) => A(T.id, "model")
48196
48209
  }, [
48197
- D("span", Que, se(T.alias || T.enName), 1)
48198
- ], 8, que))), 128))
48210
+ D("span", Kue, se(T.alias || T.enName), 1)
48211
+ ], 8, $ue))), 128))
48199
48212
  ])
48200
- ])) : S.id === "bkflow" ? (b(), P("div", $ue, [
48213
+ ])) : S.id === "bkflow" ? (b(), P("div", Zue, [
48201
48214
  (b(!0), P(Oe, null, dt(S.children?.slice(0, 10), (T) => (b(), P("div", {
48202
48215
  class: "bkflow-tag-item",
48203
48216
  key: T.id,
48204
48217
  onClick: (M) => A(T.id, "bkflow")
48205
- }, se(T.name), 9, Kue))), 128))
48206
- ])) : S.id === p(El) ? (b(), P("div", Zue, [
48218
+ }, se(T.name), 9, Xue))), 128))
48219
+ ])) : S.id === p(El) ? (b(), P("div", Jue, [
48207
48220
  (b(!0), P(Oe, null, dt(S.children, (T) => (b(), P("div", {
48208
48221
  class: "bkflow-tag-item",
48209
48222
  key: T.id,
48210
48223
  onClick: (M) => A(T.id, p(El))
48211
- }, se(T.name), 9, Xue))), 128))
48224
+ }, se(T.name), 9, ece))), 128))
48212
48225
  ])) : J("", !0),
48213
48226
  S.children && S.children.length === 0 ? (b(), ne($n, {
48214
48227
  key: 6,
@@ -48231,7 +48244,7 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
48231
48244
  _: 2
48232
48245
  }, 1024),
48233
48246
  k[1] || (k[1] = D("i", { class: "bkflow-canvas-icon bkflow-canvas-arrow2" }, null, -1))
48234
- ], 8, Jue)) : J("", !0)
48247
+ ], 8, tce)) : J("", !0)
48235
48248
  ]),
48236
48249
  default: j(() => [
48237
48250
  L(dA, { option: S }, null, 8, ["option"])
@@ -48252,7 +48265,7 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
48252
48265
  ]);
48253
48266
  };
48254
48267
  }
48255
- }), fA = /* @__PURE__ */ rt(ece, [["__scopeId", "data-v-fe6d0204"]]), tce = { class: "pipeline-editor-container" }, nce = { class: "dnd-palette-items" }, ace = ["data-dnd-type", "title", "onMouseenter"], oce = { class: "dnd-item-text" }, lce = ["src"], nm = 100, sce = /* @__PURE__ */ Ce({
48268
+ }), fA = /* @__PURE__ */ rt(nce, [["__scopeId", "data-v-fe6d0204"]]), ace = { class: "pipeline-editor-container" }, oce = { class: "dnd-palette-items" }, lce = ["data-dnd-type", "title", "onMouseenter"], sce = { class: "dnd-item-text" }, rce = ["src"], nm = 100, ice = /* @__PURE__ */ Ce({
48256
48269
  __name: "index",
48257
48270
  props: {
48258
48271
  mode: {},
@@ -49073,7 +49086,7 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
49073
49086
  getZoom: nt,
49074
49087
  updatePipelineTree: (be) => l.value?.updatePipelineTree?.(be),
49075
49088
  ...At
49076
- }), (be, K) => (b(), P("div", tce, [
49089
+ }), (be, K) => (b(), P("div", ace, [
49077
49090
  L($h, {
49078
49091
  ref_key: "bkflowCanvasRef",
49079
49092
  ref: l,
@@ -49101,7 +49114,7 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
49101
49114
  ref: s,
49102
49115
  class: "dnd-node-palette"
49103
49116
  }, [
49104
- D("div", nce, [
49117
+ D("div", oce, [
49105
49118
  (b(!0), P(Oe, null, dt(a.dndNodeTypes, (F) => (b(), P("div", {
49106
49119
  key: F.type,
49107
49120
  "data-dnd-type": F.disabled ? void 0 : F.type,
@@ -49113,8 +49126,8 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
49113
49126
  D("i", {
49114
49127
  class: te(["bkflow-canvas-icon", F.icon])
49115
49128
  }, null, 2),
49116
- D("span", oce, se(F.label), 1)
49117
- ], 42, ace))), 128))
49129
+ D("span", sce, se(F.label), 1)
49130
+ ], 42, lce))), 128))
49118
49131
  ]),
49119
49132
  (b(), ne(qr, { to: "body" }, [
49120
49133
  d.value.visible ? (b(), P("div", {
@@ -49124,7 +49137,7 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
49124
49137
  }, [
49125
49138
  D("img", {
49126
49139
  src: d.value.image
49127
- }, null, 8, lce)
49140
+ }, null, 8, rce)
49128
49141
  ], 4)) : J("", !0)
49129
49142
  ]))
49130
49143
  ], 512)) : J("", !0)
@@ -49204,7 +49217,7 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
49204
49217
  ]),
49205
49218
  _: 3
49206
49219
  }, 8, ["show", "flow-id", "node", "editable", "enable-debug", "initial-tab", "system-variables", "constants"])) : J("", !0),
49207
- a.thumbnail ? J("", !0) : (b(), ne(xue, {
49220
+ a.thumbnail ? J("", !0) : (b(), ne(Eue, {
49208
49221
  key: 2,
49209
49222
  show: _.value.show,
49210
49223
  "onUpdate:show": K[4] || (K[4] = (F) => _.value.show = F),
@@ -49220,7 +49233,7 @@ const iue = { class: "sops-plugin-group" }, uue = { class: "group-header" }, cue
49220
49233
  }, null, 8, ["show", "flow-id", "active", "bkflow-tag", "sops-source", "plugin-group-list", "input-data", "is-back"]))
49221
49234
  ]));
49222
49235
  }
49223
- }), xf = /* @__PURE__ */ rt(sce, [["__scopeId", "data-v-9e22ab94"]]);
49236
+ }), xf = /* @__PURE__ */ rt(ice, [["__scopeId", "data-v-9e22ab94"]]);
49224
49237
  function gx(e) {
49225
49238
  return JSON.stringify({
49226
49239
  name: e.name,
@@ -49229,13 +49242,13 @@ function gx(e) {
49229
49242
  additionalTaskParams: e.additionalTaskParams
49230
49243
  });
49231
49244
  }
49232
- function rce(e) {
49245
+ function uce(e) {
49233
49246
  return e.editable ? e.lastSavedSnapshot !== gx(e.currentDraft) : !1;
49234
49247
  }
49235
- const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper" }, cce = { class: "form-params-wrapper" }, dce = {
49248
+ const cce = { class: "execute-flow-slider" }, dce = { class: "flow-name-wrapper" }, fce = { class: "form-params-wrapper" }, pce = {
49236
49249
  key: 0,
49237
49250
  class: "sideslider-footer-buttons"
49238
- }, fce = /* @__PURE__ */ Ce({
49251
+ }, vce = /* @__PURE__ */ Ce({
49239
49252
  __name: "create-task",
49240
49253
  props: {
49241
49254
  flowId: {},
@@ -49373,7 +49386,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
49373
49386
  } finally {
49374
49387
  E.value = !1;
49375
49388
  }
49376
- }, Q = () => rce({
49389
+ }, Q = () => uce({
49377
49390
  editable: !!a.editable,
49378
49391
  lastSavedSnapshot: y,
49379
49392
  currentDraft: {
@@ -49410,7 +49423,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
49410
49423
  "before-close": Q
49411
49424
  }, {
49412
49425
  footer: j(() => [
49413
- u.value ? J("", !0) : (b(), P("div", dce, [
49426
+ u.value ? J("", !0) : (b(), P("div", pce, [
49414
49427
  L($, {
49415
49428
  theme: "primary",
49416
49429
  loading: E.value,
@@ -49430,7 +49443,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
49430
49443
  ]))
49431
49444
  ]),
49432
49445
  default: j(() => [
49433
- st((b(), P("div", ice, [
49446
+ st((b(), P("div", cce, [
49434
49447
  L(H, {
49435
49448
  ref_key: "formRef",
49436
49449
  ref: g,
@@ -49446,7 +49459,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
49446
49459
  required: ""
49447
49460
  }, {
49448
49461
  default: j(() => [
49449
- D("div", uce, [
49462
+ D("div", dce, [
49450
49463
  L(z, {
49451
49464
  readonly: "",
49452
49465
  "model-value": s.value?.name
@@ -49494,7 +49507,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
49494
49507
  description: "流程的入参"
49495
49508
  }, {
49496
49509
  default: j(() => [
49497
- D("div", cce, [
49510
+ D("div", fce, [
49498
49511
  k.value.length > 0 ? (b(), ne(p(Yh), {
49499
49512
  key: 0,
49500
49513
  ref_key: "builtinVariableFormRef",
@@ -49540,13 +49553,13 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
49540
49553
  }, 8, ["is-show"]);
49541
49554
  };
49542
49555
  }
49543
- }), lb = /* @__PURE__ */ rt(fce, [["__scopeId", "data-v-b9f0378f"]]), pce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
49556
+ }), lb = /* @__PURE__ */ rt(vce, [["__scopeId", "data-v-b9f0378f"]]), mce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
49544
49557
  __proto__: null,
49545
49558
  default: lb
49546
- }, Symbol.toStringTag, { value: "Module" })), vce = { class: "execute-flow-slider" }, mce = { class: "flow-name-wrapper" }, gce = { class: "form-params-wrapper" }, hce = {
49559
+ }, Symbol.toStringTag, { value: "Module" })), gce = { class: "execute-flow-slider" }, hce = { class: "flow-name-wrapper" }, bce = { class: "form-params-wrapper" }, yce = {
49547
49560
  key: 0,
49548
49561
  class: "sideslider-footer-buttons"
49549
- }, bce = /* @__PURE__ */ Ce({
49562
+ }, wce = /* @__PURE__ */ Ce({
49550
49563
  __name: "debug",
49551
49564
  props: {
49552
49565
  flowId: {},
@@ -49741,7 +49754,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
49741
49754
  "before-close": V
49742
49755
  }, {
49743
49756
  footer: j(() => [
49744
- s.value ? J("", !0) : (b(), P("div", hce, [
49757
+ s.value ? J("", !0) : (b(), P("div", yce, [
49745
49758
  L(z, {
49746
49759
  theme: "primary",
49747
49760
  loading: A.value,
@@ -49761,7 +49774,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
49761
49774
  ]))
49762
49775
  ]),
49763
49776
  default: j(() => [
49764
- st((b(), P("div", vce, [
49777
+ st((b(), P("div", gce, [
49765
49778
  L(Y, {
49766
49779
  ref_key: "formRef",
49767
49780
  ref: m,
@@ -49777,7 +49790,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
49777
49790
  required: ""
49778
49791
  }, {
49779
49792
  default: j(() => [
49780
- D("div", mce, [
49793
+ D("div", hce, [
49781
49794
  L(G, {
49782
49795
  readonly: "",
49783
49796
  "model-value": r.value?.name
@@ -49819,7 +49832,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
49819
49832
  description: "流程的入参"
49820
49833
  }, {
49821
49834
  default: j(() => [
49822
- D("div", gce, [
49835
+ D("div", bce, [
49823
49836
  w.value.length > 0 ? (b(), ne(p(Yh), {
49824
49837
  key: 0,
49825
49838
  ref_key: "builtinVariableFormRef",
@@ -49869,16 +49882,16 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
49869
49882
  }, 8, ["is-show"]);
49870
49883
  };
49871
49884
  }
49872
- }), Sf = /* @__PURE__ */ rt(bce, [["__scopeId", "data-v-0c437a04"]]), yce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
49885
+ }), Sf = /* @__PURE__ */ rt(wce, [["__scopeId", "data-v-0c437a04"]]), Ace = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
49873
49886
  __proto__: null,
49874
49887
  default: Sf
49875
- }, Symbol.toStringTag, { value: "Module" })), wce = { class: "mock-field-renderer" }, Ace = {
49888
+ }, Symbol.toStringTag, { value: "Module" })), kce = { class: "mock-field-renderer" }, Cce = {
49876
49889
  key: 8,
49877
49890
  class: "mock-field-renderer__code-editor"
49878
- }, kce = {
49891
+ }, _ce = {
49879
49892
  key: 10,
49880
49893
  class: "mock-field-renderer__error"
49881
- }, Cce = /* @__PURE__ */ Ce({
49894
+ }, xce = /* @__PURE__ */ Ce({
49882
49895
  __name: "mock-field-renderer",
49883
49896
  props: {
49884
49897
  field: {},
@@ -49916,7 +49929,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
49916
49929
  };
49917
49930
  return (h, v) => {
49918
49931
  const g = ye("bk-option"), A = ye("bk-select"), w = ye("bk-checkbox"), _ = ye("bk-checkbox-group"), E = ye("bk-radio"), k = ye("bk-radio-group"), y = ye("bk-switcher"), C = ye("bk-date-picker"), x = ye("bk-input");
49919
- return b(), P("div", wce, [
49932
+ return b(), P("div", kce, [
49920
49933
  o.value === "bk-select" ? (b(), ne(A, {
49921
49934
  key: 0,
49922
49935
  "model-value": n.modelValue,
@@ -49994,7 +50007,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
49994
50007
  rows: 3,
49995
50008
  placeholder: "请输入",
49996
50009
  "onUpdate:modelValue": c
49997
- }, null, 8, ["model-value"])) : s.value ? (b(), P("div", Ace, [
50010
+ }, null, 8, ["model-value"])) : s.value ? (b(), P("div", Cce, [
49998
50011
  L(ul, {
49999
50012
  modelValue: d.value,
50000
50013
  "onUpdate:modelValue": v[0] || (v[0] = (S) => d.value = S),
@@ -50005,17 +50018,17 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
50005
50018
  "model-value": n.modelValue,
50006
50019
  "onUpdate:modelValue": c
50007
50020
  }, null, 8, ["model-value"])),
50008
- n.error ? (b(), P("div", kce, se(n.error), 1)) : J("", !0)
50021
+ n.error ? (b(), P("div", _ce, se(n.error), 1)) : J("", !0)
50009
50022
  ]);
50010
50023
  };
50011
50024
  }
50012
- }), pA = /* @__PURE__ */ rt(Cce, [["__scopeId", "data-v-7dc32c6a"]]), _ce = {
50025
+ }), pA = /* @__PURE__ */ rt(xce, [["__scopeId", "data-v-7dc32c6a"]]), Sce = {
50013
50026
  key: 0,
50014
50027
  class: "unchecked-fields-section"
50015
- }, xce = {
50028
+ }, Ece = {
50016
50029
  key: 0,
50017
50030
  class: "unchecked-fields-section__content"
50018
- }, Sce = /* @__PURE__ */ Ce({
50031
+ }, Ice = /* @__PURE__ */ Ce({
50019
50032
  __name: "unchecked-fields-section",
50020
50033
  props: {
50021
50034
  fields: {}
@@ -50024,7 +50037,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
50024
50037
  const t = e, n = B(!1);
50025
50038
  return (a, o) => {
50026
50039
  const l = ye("bk-button");
50027
- return t.fields.length > 0 ? (b(), P("section", _ce, [
50040
+ return t.fields.length > 0 ? (b(), P("section", Sce, [
50028
50041
  L(l, {
50029
50042
  text: "",
50030
50043
  theme: "primary",
@@ -50039,16 +50052,16 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
50039
50052
  ]),
50040
50053
  _: 1
50041
50054
  }),
50042
- n.value ? (b(), P("div", xce, [
50055
+ n.value ? (b(), P("div", Ece, [
50043
50056
  Ze(a.$slots, "default", {}, void 0, !0)
50044
50057
  ])) : J("", !0)
50045
50058
  ])) : J("", !0);
50046
50059
  };
50047
50060
  }
50048
- }), Ece = /* @__PURE__ */ rt(Sce, [["__scopeId", "data-v-768e1d59"]]), Ice = {
50061
+ }), Tce = /* @__PURE__ */ rt(Ice, [["__scopeId", "data-v-768e1d59"]]), Oce = {
50049
50062
  key: 0,
50050
50063
  class: "mock-data-sideslider__title-sep"
50051
- }, Tce = ["title"], Oce = { class: "mock-data-sideslider" }, Dce = { class: "mock-data-sideslider__footer" }, Mce = /* @__PURE__ */ Ce({
50064
+ }, Dce = ["title"], Mce = { class: "mock-data-sideslider" }, Pce = { class: "mock-data-sideslider__footer" }, Vce = /* @__PURE__ */ Ce({
50052
50065
  __name: "index",
50053
50066
  props: {
50054
50067
  show: { type: Boolean },
@@ -50137,15 +50150,15 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
50137
50150
  }, {
50138
50151
  header: j(() => [
50139
50152
  S[0] || (S[0] = D("span", { class: "mock-data-sideslider__title" }, "设置 Mock 数据", -1)),
50140
- n.node?.name ? (b(), P("span", Ice, "-")) : J("", !0),
50153
+ n.node?.name ? (b(), P("span", Oce, "-")) : J("", !0),
50141
50154
  n.node?.name ? (b(), P("span", {
50142
50155
  key: 1,
50143
50156
  class: "mock-data-sideslider__title-node",
50144
50157
  title: n.node.name
50145
- }, se(n.node.name), 9, Tce)) : J("", !0)
50158
+ }, se(n.node.name), 9, Dce)) : J("", !0)
50146
50159
  ]),
50147
50160
  footer: j(() => [
50148
- D("div", Dce, [
50161
+ D("div", Pce, [
50149
50162
  g.value ? (b(), ne(N, {
50150
50163
  key: 0,
50151
50164
  theme: "primary",
@@ -50165,7 +50178,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
50165
50178
  ])
50166
50179
  ]),
50167
50180
  default: j(() => [
50168
- st((b(), P("div", Oce, [
50181
+ st((b(), P("div", Mce, [
50169
50182
  n.node ? (b(), P(Oe, { key: 0 }, [
50170
50183
  r.value.length > 0 ? (b(), ne(V, {
50171
50184
  key: 0,
@@ -50195,7 +50208,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
50195
50208
  ]),
50196
50209
  _: 2
50197
50210
  }, 1032, ["label", "description"]))), 128)),
50198
- L(Ece, { fields: v.value }, {
50211
+ L(Tce, { fields: v.value }, {
50199
50212
  default: j(() => [
50200
50213
  (b(!0), P(Oe, null, dt(v.value, (G) => (b(), ne(M, {
50201
50214
  key: G.key,
@@ -50233,11 +50246,11 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
50233
50246
  }, 8, ["is-show"]);
50234
50247
  };
50235
50248
  }
50236
- }), hx = /* @__PURE__ */ rt(Mce, [["__scopeId", "data-v-aa42b9e7"]]), Pce = { class: "mock-select-all-toolbar" }, Vce = /* @__PURE__ */ Ce({
50249
+ }), hx = /* @__PURE__ */ rt(Vce, [["__scopeId", "data-v-aa42b9e7"]]), Bce = { class: "mock-select-all-toolbar" }, Nce = /* @__PURE__ */ Ce({
50237
50250
  __name: "mock-select-all-toolbar",
50238
50251
  setup(e) {
50239
50252
  const t = Qh(), n = O(() => !!t.simulateDebug?.isAllMockNodesSelected?.());
50240
- return (a, o) => (b(), P("span", Pce, [
50253
+ return (a, o) => (b(), P("span", Bce, [
50241
50254
  D("i", {
50242
50255
  class: te([
50243
50256
  "mock-select-all-toolbar__icon",
@@ -50249,16 +50262,16 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
50249
50262
  }, null, 2)
50250
50263
  ]));
50251
50264
  }
50252
- }), bx = /* @__PURE__ */ rt(Vce, [["__scopeId", "data-v-4f66d077"]]), Bce = {
50265
+ }), bx = /* @__PURE__ */ rt(Nce, [["__scopeId", "data-v-4f66d077"]]), Lce = {
50253
50266
  key: 0,
50254
50267
  class: "operate-area"
50255
- }, Nce = {
50268
+ }, Rce = {
50256
50269
  key: 0,
50257
50270
  class: "operate-btns"
50258
- }, Lce = { class: "flow-view-page-content" }, Rce = {
50271
+ }, Fce = { class: "flow-view-page-content" }, zce = {
50259
50272
  key: 1,
50260
50273
  class: "flow-view-thumbnail"
50261
- }, Fce = /* @__PURE__ */ Ce({
50274
+ }, jce = /* @__PURE__ */ Ce({
50262
50275
  __name: "view",
50263
50276
  props: {
50264
50277
  flowId: {},
@@ -50462,7 +50475,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
50462
50475
  };
50463
50476
  return (Se, Le) => {
50464
50477
  const Je = ye("bk-button"), pt = Qt("bk-tooltips"), ft = Qt("bkloading");
50465
- return o.thumbnail ? st((b(), P("div", Rce, [
50478
+ return o.thumbnail ? st((b(), P("div", zce, [
50466
50479
  d.value ? (b(), ne(xf, {
50467
50480
  key: 0,
50468
50481
  mode: "view",
@@ -50487,7 +50500,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
50487
50500
  onBack: U
50488
50501
  }, al({
50489
50502
  extend: j(() => [
50490
- d.value ? (b(), P("div", Bce, [
50503
+ d.value ? (b(), P("div", Lce, [
50491
50504
  L(tp, {
50492
50505
  editable: !1,
50493
50506
  "flow-data": d.value,
@@ -50499,7 +50512,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
50499
50512
  "hide-trigger": o.hideTrigger,
50500
50513
  onSimulateDebug: pe
50501
50514
  }, null, 8, ["flow-data", "system-variables", "fetch-user-api", "enable-simulate-debug", "simulate-debug-active", "simulate-debug-only", "hide-trigger"]),
50502
- e.showHeaderActions ? (b(), P("div", Nce, [
50515
+ e.showHeaderActions ? (b(), P("div", Rce, [
50503
50516
  E.value ? (b(), P(Oe, { key: 0 }, [
50504
50517
  st((b(), ne(Je, {
50505
50518
  theme: "primary",
@@ -50544,7 +50557,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
50544
50557
  ])) : J("", !0)
50545
50558
  ]),
50546
50559
  default: j(() => [
50547
- st((b(), P("div", Lce, [
50560
+ st((b(), P("div", Fce, [
50548
50561
  d.value ? (b(), ne(xf, {
50549
50562
  key: 0,
50550
50563
  ref_key: "flowCanvasRef",
@@ -50626,13 +50639,13 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
50626
50639
  ]), 1032, ["desc"]));
50627
50640
  };
50628
50641
  }
50629
- }), zce = /* @__PURE__ */ rt(Fce, [["__scopeId", "data-v-d213e85a"]]), jce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
50642
+ }), Hce = /* @__PURE__ */ rt(jce, [["__scopeId", "data-v-d213e85a"]]), Wce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
50630
50643
  __proto__: null,
50631
- default: zce
50632
- }, Symbol.toStringTag, { value: "Module" })), Hce = {
50644
+ default: Hce
50645
+ }, Symbol.toStringTag, { value: "Module" })), Uce = {
50633
50646
  key: 0,
50634
50647
  class: "operate-area"
50635
- }, Wce = { class: "flow-actions" }, Uce = { class: "operate-btns" }, Gce = { class: "flow-edit-page-content" }, Yce = /* @__PURE__ */ Ce({
50648
+ }, Gce = { class: "flow-actions" }, Yce = { class: "operate-btns" }, qce = { class: "flow-edit-page-content" }, Qce = /* @__PURE__ */ Ce({
50636
50649
  __name: "edit",
50637
50650
  props: {
50638
50651
  flowId: {},
@@ -50998,8 +51011,8 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
50998
51011
  Ze(F.$slots, "header", {}, void 0, !0)
50999
51012
  ]),
51000
51013
  extend: j(() => [
51001
- s.value ? (b(), P("div", Hce, [
51002
- D("div", Wce, [
51014
+ s.value ? (b(), P("div", Uce, [
51015
+ D("div", Gce, [
51003
51016
  L(tp, {
51004
51017
  ref_key: "flowInfoSlidersRef",
51005
51018
  ref: d,
@@ -51015,7 +51028,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
51015
51028
  onUpdateOutputs: Ae,
51016
51029
  onSimulateDebug: ft
51017
51030
  }, null, 8, ["flow-data", "system-variables", "fetch-user-api", "enable-simulate-debug", "simulate-debug-active", "simulate-debug-only", "hide-trigger"]),
51018
- D("div", Uce, [
51031
+ D("div", Yce, [
51019
51032
  p(C).stage.value === "edit" ? (b(), P(Oe, { key: 0 }, [
51020
51033
  L(ae, {
51021
51034
  theme: "primary",
@@ -51059,7 +51072,7 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
51059
51072
  ])) : J("", !0)
51060
51073
  ]),
51061
51074
  default: j(() => [
51062
- st((b(), P("div", Gce, [
51075
+ st((b(), P("div", qce, [
51063
51076
  !M.value && s.value ? (b(), ne(xf, {
51064
51077
  key: 0,
51065
51078
  ref_key: "flowCanvasRef",
@@ -51141,10 +51154,10 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
51141
51154
  }, 8, ["desc"]);
51142
51155
  };
51143
51156
  }
51144
- }), qce = /* @__PURE__ */ rt(Yce, [["__scopeId", "data-v-88edb5d0"]]), Qce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
51157
+ }), $ce = /* @__PURE__ */ rt(Qce, [["__scopeId", "data-v-88edb5d0"]]), Kce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
51145
51158
  __proto__: null,
51146
- default: qce
51147
- }, Symbol.toStringTag, { value: "Module" })), am = "#48A397", $ce = 0.82, Kce = 0.94, vA = {
51159
+ default: $ce
51160
+ }, Symbol.toStringTag, { value: "Module" })), am = "#48A397", Zce = 0.82, Xce = 0.94, vA = {
51148
51161
  FAILED: "#FA4E41",
51149
51162
  SUSPENDED: "#F59500",
51150
51163
  // 终止终态与失败同为红色系,入边着色随节点颜色(设计「终止状态」)。
@@ -51158,15 +51171,15 @@ const ice = { class: "execute-flow-slider" }, uce = { class: "flow-name-wrapper"
51158
51171
  type: "linearGradient",
51159
51172
  stops: [
51160
51173
  { offset: 0, color: am },
51161
- { offset: $ce, color: am },
51162
- { offset: Kce, color: t },
51174
+ { offset: Zce, color: am },
51175
+ { offset: Xce, color: t },
51163
51176
  { offset: 1, color: t }
51164
51177
  ]
51165
51178
  },
51166
51179
  targetMarkerColor: t
51167
51180
  } : { strokeColor: am };
51168
51181
  };
51169
- function Zce(e, t) {
51182
+ function Jce(e, t) {
51170
51183
  if (!t) return;
51171
51184
  const n = t[e.source.nodeId];
51172
51185
  if (!n || n.status !== "FINISHED") return;
@@ -51182,11 +51195,11 @@ function sb(e) {
51182
51195
  name: "execution-status",
51183
51196
  priority: 100,
51184
51197
  decorateEdge(t) {
51185
- return Zce(t, e.value);
51198
+ return Jce(t, e.value);
51186
51199
  }
51187
51200
  };
51188
51201
  }
51189
- const Xce = {
51202
+ const ede = {
51190
51203
  ExclusiveGateway: "exclusive-gateway",
51191
51204
  ParallelGateway: "parallel-gateway",
51192
51205
  ConditionalParallelGateway: "conditional-parallel-gateway",
@@ -51217,13 +51230,13 @@ function rb(e, t) {
51217
51230
  end_event: l
51218
51231
  };
51219
51232
  }
51220
- function Jce(e, t) {
51233
+ function tde(e, t) {
51221
51234
  if (!e) return "";
51222
51235
  if (e.activities?.[t]) return "task";
51223
51236
  const n = e.gateways?.[t];
51224
- return n ? Xce[n.type] ?? "" : e.start_event?.id === t ? "start-event" : e.end_event?.id === t ? "end-event" : "";
51237
+ return n ? ede[n.type] ?? "" : e.start_event?.id === t ? "start-event" : e.end_event?.id === t ? "end-event" : "";
51225
51238
  }
51226
- function ede(e, t, n) {
51239
+ function nde(e, t, n) {
51227
51240
  const a = e?.[n];
51228
51241
  if (!a) return;
51229
51242
  const o = t?.activities?.[n];
@@ -51247,12 +51260,12 @@ function ede(e, t, n) {
51247
51260
  actions: a.actions ?? a.action_list
51248
51261
  };
51249
51262
  }
51250
- function tde(e, t) {
51263
+ function ade(e, t) {
51251
51264
  if (!e) return [];
51252
- const n = lde(e);
51253
- return n.taskState === "REVOKED" || n.status === "REVOKED" ? [] : n.actions && n.actions.length > 0 ? n.actions : t === "task" ? nde(n) : ode(t) ? ade(n) : [];
51265
+ const n = rde(e);
51266
+ return n.taskState === "REVOKED" || n.status === "REVOKED" ? [] : n.actions && n.actions.length > 0 ? n.actions : t === "task" ? ode(n) : sde(t) ? lde(n) : [];
51254
51267
  }
51255
- function nde(e) {
51268
+ function ode(e) {
51256
51269
  const t = [];
51257
51270
  if (e.status === "FAILED")
51258
51271
  return (e.retryable || e.errorIgnorable) && t.push("retry"), (e.skippable || e.errorIgnorable) && t.push("skip"), t;
@@ -51262,13 +51275,13 @@ function nde(e) {
51262
51275
  }
51263
51276
  return t;
51264
51277
  }
51265
- function ade(e) {
51278
+ function lde(e) {
51266
51279
  return e.status === "FAILED" ? ["gatewaySkip"] : [];
51267
51280
  }
51268
- function ode(e) {
51281
+ function sde(e) {
51269
51282
  return e === "exclusive-gateway" || e === "parallel-gateway" || e === "conditional-parallel-gateway";
51270
51283
  }
51271
- function lde(e) {
51284
+ function rde(e) {
51272
51285
  return {
51273
51286
  ...e,
51274
51287
  taskState: e.taskState ?? e.task_state,
@@ -51279,7 +51292,7 @@ function lde(e) {
51279
51292
  actions: e.actions ?? e.action_list
51280
51293
  };
51281
51294
  }
51282
- const sde = 150;
51295
+ const ide = 150;
51283
51296
  function yx(e) {
51284
51297
  const t = Nn({
51285
51298
  visible: !1,
@@ -51294,18 +51307,18 @@ function yx(e) {
51294
51307
  function o() {
51295
51308
  a(), n = setTimeout(() => {
51296
51309
  t.visible = !1, n = null;
51297
- }, sde);
51310
+ }, ide);
51298
51311
  }
51299
51312
  function l() {
51300
51313
  a(), t.visible = !1;
51301
51314
  }
51302
51315
  function r(c) {
51303
- const m = e.getPipelineTree(), h = ede(e.getNodeStates(), m, c);
51316
+ const m = e.getPipelineTree(), h = nde(e.getNodeStates(), m, c);
51304
51317
  if (!h) {
51305
51318
  l();
51306
51319
  return;
51307
51320
  }
51308
- const v = Jce(m, c), g = tde(h, v);
51321
+ const v = tde(m, c), g = ade(h, v);
51309
51322
  if (g.length === 0) {
51310
51323
  l();
51311
51324
  return;
@@ -51348,11 +51361,11 @@ function yx(e) {
51348
51361
  handleUiEvent: d
51349
51362
  };
51350
51363
  }
51351
- const rde = { class: "execution-action-popover__actions" }, ide = {
51364
+ const ude = { class: "execution-action-popover__actions" }, cde = {
51352
51365
  key: 0,
51353
51366
  class: "execution-action-popover__divider",
51354
51367
  "aria-hidden": "true"
51355
- }, ude = ["title", "onClick", "onKeydown"], cde = { class: "execution-action-popover__label" }, dde = /* @__PURE__ */ Ce({
51368
+ }, dde = ["title", "onClick", "onKeydown"], fde = { class: "execution-action-popover__label" }, pde = /* @__PURE__ */ Ce({
51356
51369
  __name: "index",
51357
51370
  props: {
51358
51371
  visible: { type: Boolean },
@@ -51395,11 +51408,11 @@ const rde = { class: "execution-action-popover__actions" }, ide = {
51395
51408
  onClick: m[0] || (m[0] = wt(() => {
51396
51409
  }, ["stop"]))
51397
51410
  }, [
51398
- D("div", rde, [
51411
+ D("div", ude, [
51399
51412
  (b(!0), P(Oe, null, dt(l.value, (h, v) => (b(), P(Oe, {
51400
51413
  key: h.key
51401
51414
  }, [
51402
- v > 0 ? (b(), P("span", ide)) : J("", !0),
51415
+ v > 0 ? (b(), P("span", cde)) : J("", !0),
51403
51416
  D("span", {
51404
51417
  class: "execution-action-popover__item",
51405
51418
  title: h.label,
@@ -51414,14 +51427,14 @@ const rde = { class: "execution-action-popover__actions" }, ide = {
51414
51427
  D("i", {
51415
51428
  class: te(["execution-action-popover__icon", h.icon])
51416
51429
  }, null, 2),
51417
- D("span", cde, se(h.label), 1)
51418
- ], 40, ude)
51430
+ D("span", fde, se(h.label), 1)
51431
+ ], 40, dde)
51419
51432
  ], 64))), 128))
51420
51433
  ])
51421
51434
  ], 36)) : J("", !0)
51422
51435
  ]));
51423
51436
  }
51424
- }), wx = /* @__PURE__ */ rt(dde, [["__scopeId", "data-v-868d8e66"]]), fde = { class: "flow-execute-page-content" }, pde = /* @__PURE__ */ Ce({
51437
+ }), wx = /* @__PURE__ */ rt(pde, [["__scopeId", "data-v-868d8e66"]]), vde = { class: "flow-execute-page-content" }, mde = /* @__PURE__ */ Ce({
51425
51438
  __name: "execute",
51426
51439
  props: {
51427
51440
  pipelineTree: {},
@@ -51469,7 +51482,7 @@ const rde = { class: "execution-action-popover__actions" }, ide = {
51469
51482
  Ze(E.$slots, "extend", {}, void 0, !0)
51470
51483
  ]),
51471
51484
  default: j(() => [
51472
- st((b(), P("div", fde, [
51485
+ st((b(), P("div", vde, [
51473
51486
  u.value ? (b(), ne($h, {
51474
51487
  key: 0,
51475
51488
  ref_key: "canvasRef",
@@ -51506,10 +51519,10 @@ const rde = { class: "execution-action-popover__actions" }, ide = {
51506
51519
  ]), 1032, ["show-header"]);
51507
51520
  };
51508
51521
  }
51509
- }), vde = /* @__PURE__ */ rt(pde, [["__scopeId", "data-v-d2ccd1b2"]]), mde = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
51522
+ }), gde = /* @__PURE__ */ rt(mde, [["__scopeId", "data-v-d2ccd1b2"]]), hde = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
51510
51523
  __proto__: null,
51511
- default: vde
51512
- }, Symbol.toStringTag, { value: "Module" })), gde = 3, hde = /* @__PURE__ */ Ce({
51524
+ default: gde
51525
+ }, Symbol.toStringTag, { value: "Module" })), bde = 3, yde = /* @__PURE__ */ Ce({
51513
51526
  __name: "index",
51514
51527
  props: {
51515
51528
  size: { default: 20 },
@@ -51529,13 +51542,13 @@ const rde = { class: "execution-action-popover__actions" }, ide = {
51529
51542
  style: qt(a.value),
51530
51543
  "aria-hidden": "true"
51531
51544
  }, [
51532
- (b(), P(Oe, null, dt(gde, (r) => D("span", {
51545
+ (b(), P(Oe, null, dt(bde, (r) => D("span", {
51533
51546
  key: r,
51534
51547
  class: "bkflow-loading-dots-icon__dot"
51535
51548
  })), 64))
51536
51549
  ], 4));
51537
51550
  }
51538
- }), bde = /* @__PURE__ */ rt(hde, [["__scopeId", "data-v-dd36d9ac"]]), yde = { class: "debug-status-bar__label" }, wde = { class: "debug-status-bar__elapsed" }, Ade = { class: "debug-status-bar__failed-count" }, kde = /* @__PURE__ */ Ce({
51551
+ }), wde = /* @__PURE__ */ rt(yde, [["__scopeId", "data-v-dd36d9ac"]]), Ade = { class: "debug-status-bar__label" }, kde = { class: "debug-status-bar__elapsed" }, Cde = { class: "debug-status-bar__failed-count" }, _de = /* @__PURE__ */ Ce({
51539
51552
  __name: "index",
51540
51553
  props: {
51541
51554
  status: { default: "RUNNING" },
@@ -51586,9 +51599,9 @@ const rde = { class: "execution-action-popover__actions" }, ide = {
51586
51599
  key: 1,
51587
51600
  class: te(["debug-status-bar__icon bkflow-canvas-icon", u.value])
51588
51601
  }, null, 2)),
51589
- D("span", yde, se(s.value), 1),
51602
+ D("span", Ade, se(s.value), 1),
51590
51603
  g[4] || (g[4] = D("span", { class: "debug-status-bar__divider" }, null, -1)),
51591
- D("span", wde, se(c.value), 1),
51604
+ D("span", kde, se(c.value), 1),
51592
51605
  r.value === "RUNNING" ? (b(), ne(A, {
51593
51606
  key: 2,
51594
51607
  text: "",
@@ -51608,7 +51621,7 @@ const rde = { class: "execution-action-popover__actions" }, ide = {
51608
51621
  onClick: g[1] || (g[1] = (_) => a("locate-failed"))
51609
51622
  }, {
51610
51623
  default: j(() => [
51611
- st((b(), P("span", Ade, [
51624
+ st((b(), P("span", Cde, [
51612
51625
  ze(se(n.failedCount), 1)
51613
51626
  ])), [
51614
51627
  [w, "定位错误"]
@@ -51620,17 +51633,17 @@ const rde = { class: "execution-action-popover__actions" }, ide = {
51620
51633
  ], 2);
51621
51634
  };
51622
51635
  }
51623
- }), Cde = /* @__PURE__ */ rt(kde, [["__scopeId", "data-v-dfddc841"]]), _de = { class: "debug-node-list" }, xde = {
51636
+ }), xde = /* @__PURE__ */ rt(_de, [["__scopeId", "data-v-dfddc841"]]), Sde = { class: "debug-node-list" }, Ede = {
51624
51637
  key: 0,
51625
51638
  class: "debug-node-list__items",
51626
51639
  role: "listbox"
51627
- }, Sde = ["aria-selected", "onClick", "onKeydown"], Ede = ["title"], Ide = {
51640
+ }, Ide = ["aria-selected", "onClick", "onKeydown"], Tde = ["title"], Ode = {
51628
51641
  key: 0,
51629
51642
  class: "debug-node-list__mock"
51630
- }, Tde = {
51643
+ }, Dde = {
51631
51644
  key: 1,
51632
51645
  class: "debug-node-list__empty"
51633
- }, Ode = /* @__PURE__ */ Ce({
51646
+ }, Mde = /* @__PURE__ */ Ce({
51634
51647
  __name: "node-list",
51635
51648
  props: {
51636
51649
  nodes: {},
@@ -51666,7 +51679,7 @@ const rde = { class: "execution-action-popover__actions" }, ide = {
51666
51679
  );
51667
51680
  return (h, v) => {
51668
51681
  const g = ye("bk-input");
51669
- return b(), P("aside", _de, [
51682
+ return b(), P("aside", Sde, [
51670
51683
  L(g, {
51671
51684
  modelValue: o.value,
51672
51685
  "onUpdate:modelValue": v[0] || (v[0] = (A) => o.value = A),
@@ -51681,7 +51694,7 @@ const rde = { class: "execution-action-popover__actions" }, ide = {
51681
51694
  class: "debug-node-list__stats",
51682
51695
  items: m.value
51683
51696
  }, null, 8, ["modelValue", "items"]),
51684
- s.value.length > 0 ? (b(), P("div", xde, [
51697
+ s.value.length > 0 ? (b(), P("div", Ede, [
51685
51698
  (b(!0), P(Oe, null, dt(s.value, (A) => (b(), P("div", {
51686
51699
  key: A.id,
51687
51700
  class: te(["debug-node-list__item", { "is-active": A.id === n.modelValue }]),
@@ -51705,10 +51718,10 @@ const rde = { class: "execution-action-popover__actions" }, ide = {
51705
51718
  D("span", {
51706
51719
  class: "debug-node-list__name",
51707
51720
  title: `${A.name} ${A.typeName || ""}`
51708
- }, se(A.name), 9, Ede),
51709
- A.hasMockConfig ? (b(), P("span", Ide, "MOCK")) : J("", !0)
51710
- ], 42, Sde))), 128))
51711
- ])) : (b(), P("div", Tde, [
51721
+ }, se(A.name), 9, Tde),
51722
+ A.hasMockConfig ? (b(), P("span", Ode, "MOCK")) : J("", !0)
51723
+ ], 42, Ide))), 128))
51724
+ ])) : (b(), P("div", Dde, [
51712
51725
  L($n, {
51713
51726
  "is-search": !1,
51714
51727
  title: d.value,
@@ -51718,7 +51731,7 @@ const rde = { class: "execution-action-popover__actions" }, ide = {
51718
51731
  ]);
51719
51732
  };
51720
51733
  }
51721
- }), Dde = /* @__PURE__ */ rt(Ode, [["__scopeId", "data-v-8864ef7f"]]), No = (e) => e && typeof e == "object" && !Array.isArray(e) ? e : void 0, Mde = (e) => {
51734
+ }), Pde = /* @__PURE__ */ rt(Mde, [["__scopeId", "data-v-8864ef7f"]]), No = (e) => e && typeof e == "object" && !Array.isArray(e) ? e : void 0, Vde = (e) => {
51722
51735
  if (e == null) return !0;
51723
51736
  if (typeof e == "string") return e.trim() === "";
51724
51737
  if (Array.isArray(e)) return e.length === 0;
@@ -51732,18 +51745,18 @@ const rde = { class: "execution-action-popover__actions" }, ide = {
51732
51745
  } catch {
51733
51746
  return String(e);
51734
51747
  }
51735
- }, Ef = (e) => e == null || e === "" ? "--" : typeof e == "boolean" ? e ? "true" : "false" : typeof e == "number" ? String(e) : typeof e == "string" ? e : Array.isArray(e) ? "[ ... ]" : "{ ... }", Pde = (e) => {
51748
+ }, Ef = (e) => e == null || e === "" ? "--" : typeof e == "boolean" ? e ? "true" : "false" : typeof e == "number" ? String(e) : typeof e == "string" ? e : Array.isArray(e) ? "[ ... ]" : "{ ... }", Bde = (e) => {
51736
51749
  if (Array.isArray(e)) return e.length > 0 ? "[ ... ]" : "[]";
51737
51750
  const t = No(e);
51738
51751
  return t ? Object.keys(t).length > 0 ? "{ ... }" : "{}" : Ef(e);
51739
- }, Vde = (e, t = {}) => {
51752
+ }, Nde = (e, t = {}) => {
51740
51753
  const n = No(e);
51741
51754
  return n ? Object.entries(n).map(([a, o]) => ({
51742
51755
  name: t[a] || a,
51743
51756
  key: a,
51744
51757
  value: o
51745
51758
  })) : [];
51746
- }, Bde = (e, t = {}) => {
51759
+ }, Lde = (e, t = {}) => {
51747
51760
  if (Array.isArray(e))
51748
51761
  return e.map((a, o) => {
51749
51762
  const l = No(a), r = String(l?.key ?? l?.id ?? o);
@@ -51760,24 +51773,24 @@ const rde = { class: "execution-action-popover__actions" }, ide = {
51760
51773
  key: a,
51761
51774
  value: No(o) && "value" in o ? o.value : o
51762
51775
  })) : [];
51763
- }, Nde = (e, t) => {
51776
+ }, Rde = (e, t) => {
51764
51777
  if (t.length === 0) return e;
51765
51778
  const n = new Map(t.map((a, o) => [a, o]));
51766
51779
  return e.map((a, o) => ({ row: a, index: o })).sort((a, o) => {
51767
51780
  const l = n.get(a.row.key) ?? Number.MAX_SAFE_INTEGER, r = n.get(o.row.key) ?? Number.MAX_SAFE_INTEGER;
51768
51781
  return l === r ? a.index - o.index : l - r;
51769
51782
  }).map(({ row: a }) => a);
51770
- }, Lde = (e) => {
51783
+ }, Fde = (e) => {
51771
51784
  const t = e;
51772
51785
  return typeof t == "string" ? t : fg(t);
51773
- }, Rde = (e) => {
51786
+ }, zde = (e) => {
51774
51787
  if (typeof e != "number") return "--";
51775
51788
  if (e < 1) return "小于 1 秒";
51776
51789
  if (e < 60) return `${e} 秒`;
51777
51790
  const t = Math.floor(e / 60), n = e % 60;
51778
51791
  return n > 0 ? `${t} 分 ${n} 秒` : `${t} 分`;
51779
- }, Ax = /* @__PURE__ */ Symbol("shared-node-detail"), Fde = (e) => typeof e == "string" ? e : e instanceof Error ? e.message : "加载失败", zde = (e, t) => `${e ?? ""}_${t ?? ""}`;
51780
- function jde(e) {
51792
+ }, Ax = /* @__PURE__ */ Symbol("shared-node-detail"), jde = (e) => typeof e == "string" ? e : e instanceof Error ? e.message : "加载失败", Hde = (e, t) => `${e ?? ""}_${t ?? ""}`;
51793
+ function Wde(e) {
51781
51794
  const t = ka(), n = B(!1), a = B(""), o = Ct(), l = /* @__PURE__ */ new Map();
51782
51795
  let r = 0;
51783
51796
  const s = async () => {
@@ -51786,7 +51799,7 @@ function jde(e) {
51786
51799
  n.value = !1, a.value = "", o.value = void 0;
51787
51800
  return;
51788
51801
  }
51789
- const h = zde(d, c), v = l.get(h);
51802
+ const h = Hde(d, c), v = l.get(h);
51790
51803
  if (v) {
51791
51804
  n.value = !1, a.value = "", o.value = v;
51792
51805
  return;
@@ -51806,7 +51819,7 @@ function jde(e) {
51806
51819
  A && l.set(h, A), o.value = A;
51807
51820
  } catch (g) {
51808
51821
  if (m !== r) return;
51809
- console.error(g), a.value = Fde(g), o.value = void 0;
51822
+ console.error(g), a.value = jde(g), o.value = void 0;
51810
51823
  } finally {
51811
51824
  m === r && (n.value = !1);
51812
51825
  }
@@ -51831,30 +51844,30 @@ function ub() {
51831
51844
  throw new Error("useInjectedNodeDetail: shared node detail is not provided");
51832
51845
  return e;
51833
51846
  }
51834
- const Hde = { class: "execution-info-tab" }, Wde = {
51847
+ const Ude = { class: "execution-info-tab" }, Gde = {
51835
51848
  key: 0,
51836
51849
  class: "execution-info-tab__state is-error"
51837
- }, Ude = { class: "execution-info-tab__section" }, Gde = { class: "execution-info-tab__section" }, Yde = { class: "execution-info-tab__table" }, qde = /* @__PURE__ */ Ce({
51850
+ }, Yde = { class: "execution-info-tab__section" }, qde = { class: "execution-info-tab__section" }, Qde = { class: "execution-info-tab__table" }, $de = /* @__PURE__ */ Ce({
51838
51851
  __name: "execution-info",
51839
51852
  setup(e) {
51840
51853
  const { loading: t, error: n, detail: a } = ub(), o = O(() => String(a.value?.ex_data ?? "")), l = O(() => [
51841
51854
  { label: "开始时间", value: Ef(a.value?.start_time) },
51842
51855
  { label: "结束时间", value: Ef(a.value?.finish_time) },
51843
- { label: "耗时", value: Rde(a.value?.elapsed_time) }
51856
+ { label: "耗时", value: zde(a.value?.elapsed_time) }
51844
51857
  ]);
51845
51858
  return (r, s) => {
51846
51859
  const u = Qt("bkloading");
51847
- return st((b(), P("div", Hde, [
51848
- p(n) ? (b(), P("div", Wde, se(p(n)), 1)) : p(a) ? (b(), P(Oe, { key: 1 }, [
51849
- D("section", Ude, [
51860
+ return st((b(), P("div", Ude, [
51861
+ p(n) ? (b(), P("div", Gde, se(p(n)), 1)) : p(a) ? (b(), P(Oe, { key: 1 }, [
51862
+ D("section", Yde, [
51850
51863
  s[0] || (s[0] = D("h3", null, "异常信息", -1)),
51851
51864
  D("div", {
51852
51865
  class: te(["execution-info-tab__exception", { "is-empty": !o.value }])
51853
51866
  }, se(o.value || "暂无异常"), 3)
51854
51867
  ]),
51855
- D("section", Gde, [
51868
+ D("section", qde, [
51856
51869
  s[1] || (s[1] = D("h3", null, "执行信息", -1)),
51857
- D("table", Yde, [
51870
+ D("table", Qde, [
51858
51871
  D("tbody", null, [
51859
51872
  (b(!0), P(Oe, null, dt(l.value, (d) => (b(), P("tr", {
51860
51873
  key: d.label
@@ -51874,19 +51887,19 @@ const Hde = { class: "execution-info-tab" }, Wde = {
51874
51887
  ]);
51875
51888
  };
51876
51889
  }
51877
- }), Qde = /* @__PURE__ */ rt(qde, [["__scopeId", "data-v-43618193"]]), $de = { class: "debug-json-viewer" }, Kde = { class: "debug-json-viewer__line" }, Zde = {
51890
+ }), Kde = /* @__PURE__ */ rt($de, [["__scopeId", "data-v-43618193"]]), Zde = { class: "debug-json-viewer" }, Xde = { class: "debug-json-viewer__line" }, Jde = {
51878
51891
  key: 1,
51879
51892
  class: "debug-json-viewer__key"
51880
- }, Xde = { class: "debug-json-viewer__summary" }, Jde = {
51893
+ }, efe = { class: "debug-json-viewer__summary" }, tfe = {
51881
51894
  key: 0,
51882
51895
  class: "debug-json-viewer__children"
51883
- }, efe = {
51896
+ }, nfe = {
51884
51897
  key: 1,
51885
51898
  class: "debug-json-viewer__line"
51886
- }, tfe = {
51899
+ }, afe = {
51887
51900
  key: 0,
51888
51901
  class: "debug-json-viewer__key"
51889
- }, nfe = /* @__PURE__ */ Ce({
51902
+ }, ofe = /* @__PURE__ */ Ce({
51890
51903
  name: "DebugJsonViewer",
51891
51904
  __name: "debug-json-viewer",
51892
51905
  props: {
@@ -51896,7 +51909,7 @@ const Hde = { class: "execution-info-tab" }, Wde = {
51896
51909
  defaultExpanded: { type: Boolean, default: !1 }
51897
51910
  },
51898
51911
  setup(e) {
51899
- const t = e, n = B(t.defaultExpanded), a = O(() => ib(t.value)), o = O(() => Pde(t.value)), l = O(() => t.value === null ? "null" : typeof t.value), r = O(() => fg(t.value)), s = O(() => {
51912
+ const t = e, n = B(t.defaultExpanded), a = O(() => ib(t.value)), o = O(() => Bde(t.value)), l = O(() => t.value === null ? "null" : typeof t.value), r = O(() => fg(t.value)), s = O(() => {
51900
51913
  if (Array.isArray(t.value))
51901
51914
  return t.value.map((c, m) => ({ key: String(m), value: c }));
51902
51915
  const d = No(t.value);
@@ -51913,16 +51926,16 @@ const Hde = { class: "execution-info-tab" }, Wde = {
51913
51926
  };
51914
51927
  return (d, c) => {
51915
51928
  const m = ye("DebugJsonViewer", !0);
51916
- return b(), P("div", $de, [
51929
+ return b(), P("div", Zde, [
51917
51930
  a.value ? (b(), P(Oe, { key: 0 }, [
51918
- D("div", Kde, [
51931
+ D("div", Xde, [
51919
51932
  s.value.length > 0 ? (b(), P("span", {
51920
51933
  key: 0,
51921
51934
  class: "debug-json-viewer__toggle",
51922
51935
  onClick: c[0] || (c[0] = (h) => n.value = !n.value)
51923
51936
  }, se(n.value ? "▼" : "▶"), 1)) : J("", !0),
51924
- t.label ? (b(), P("span", Zde, se(t.label) + ":", 1)) : J("", !0),
51925
- D("span", Xde, se(o.value), 1),
51937
+ t.label ? (b(), P("span", Jde, se(t.label) + ":", 1)) : J("", !0),
51938
+ D("span", efe, se(o.value), 1),
51926
51939
  s.value.length > 0 ? (b(), P("i", {
51927
51940
  key: 2,
51928
51941
  class: "bkflow-canvas-icon bkflow-canvas-bkflow-copy debug-json-viewer__copy",
@@ -51930,7 +51943,7 @@ const Hde = { class: "execution-info-tab" }, Wde = {
51930
51943
  onClick: c[1] || (c[1] = (h) => u(t.value))
51931
51944
  })) : J("", !0)
51932
51945
  ]),
51933
- n.value && s.value.length > 0 ? (b(), P("div", Jde, [
51946
+ n.value && s.value.length > 0 ? (b(), P("div", tfe, [
51934
51947
  (b(!0), P(Oe, null, dt(s.value, (h) => (b(), ne(m, {
51935
51948
  key: h.key,
51936
51949
  label: h.key,
@@ -51938,8 +51951,8 @@ const Hde = { class: "execution-info-tab" }, Wde = {
51938
51951
  level: t.level + 1
51939
51952
  }, null, 8, ["label", "value", "level"]))), 128))
51940
51953
  ])) : J("", !0)
51941
- ], 64)) : (b(), P("div", efe, [
51942
- t.label ? (b(), P("span", tfe, se(t.label) + ":", 1)) : J("", !0),
51954
+ ], 64)) : (b(), P("div", nfe, [
51955
+ t.label ? (b(), P("span", afe, se(t.label) + ":", 1)) : J("", !0),
51943
51956
  D("span", {
51944
51957
  class: te(["debug-json-viewer__primitive", `is-${l.value}`])
51945
51958
  }, se(r.value), 3)
@@ -51947,19 +51960,19 @@ const Hde = { class: "execution-info-tab" }, Wde = {
51947
51960
  ]);
51948
51961
  };
51949
51962
  }
51950
- }), pg = /* @__PURE__ */ rt(nfe, [["__scopeId", "data-v-32f8c36e"]]), afe = { class: "debug-value-table" }, ofe = {
51963
+ }), pg = /* @__PURE__ */ rt(ofe, [["__scopeId", "data-v-32f8c36e"]]), lfe = { class: "debug-value-table" }, sfe = {
51951
51964
  key: 0,
51952
51965
  class: "debug-value-table__toolbar"
51953
- }, lfe = {
51966
+ }, rfe = {
51954
51967
  key: 1,
51955
51968
  class: "debug-value-table__state is-error"
51956
- }, sfe = {
51969
+ }, ife = {
51957
51970
  key: 0,
51958
51971
  class: "debug-value-table__table"
51959
- }, rfe = ["title"], ife = { class: "debug-value-table__value" }, ufe = { key: 1 }, cfe = {
51972
+ }, ufe = ["title"], cfe = { class: "debug-value-table__value" }, dfe = { key: 1 }, ffe = {
51960
51973
  key: 1,
51961
51974
  class: "debug-value-table__json-mode"
51962
- }, dfe = /* @__PURE__ */ Ce({
51975
+ }, pfe = /* @__PURE__ */ Ce({
51963
51976
  __name: "debug-value-table",
51964
51977
  props: {
51965
51978
  rows: {},
@@ -51976,8 +51989,8 @@ const Hde = { class: "execution-info-tab" }, Wde = {
51976
51989
  );
51977
51990
  return (s, u) => {
51978
51991
  const d = Qt("bkloading");
51979
- return st((b(), P("div", afe, [
51980
- r.value ? (b(), P("div", ofe, [
51992
+ return st((b(), P("div", lfe, [
51993
+ r.value ? (b(), P("div", sfe, [
51981
51994
  t.rows.length > 0 ? (b(), ne(ob, {
51982
51995
  key: 0,
51983
51996
  modelValue: n.value,
@@ -51986,11 +51999,11 @@ const Hde = { class: "execution-info-tab" }, Wde = {
51986
51999
  }, null, 8, ["modelValue"])) : J("", !0),
51987
52000
  Ze(s.$slots, "toolbar", {}, void 0, !0)
51988
52001
  ])) : J("", !0),
51989
- t.error ? (b(), P("div", lfe, se(t.error), 1)) : !t.loading && t.rows.length === 0 ? (b(), ne($n, {
52002
+ t.error ? (b(), P("div", rfe, se(t.error), 1)) : !t.loading && t.rows.length === 0 ? (b(), ne($n, {
51990
52003
  key: 2,
51991
52004
  title: t.emptyText
51992
52005
  }, null, 8, ["title"])) : t.loading ? J("", !0) : (b(), P(Oe, { key: 3 }, [
51993
- n.value === "kv" ? (b(), P("table", sfe, [
52006
+ n.value === "kv" ? (b(), P("table", ife, [
51994
52007
  u[1] || (u[1] = D("thead", null, [
51995
52008
  D("tr", null, [
51996
52009
  D("th", null, "参数名"),
@@ -52004,16 +52017,16 @@ const Hde = { class: "execution-info-tab" }, Wde = {
52004
52017
  D("td", {
52005
52018
  class: "debug-value-table__name",
52006
52019
  title: c.name
52007
- }, se(c.name), 9, rfe),
52008
- D("td", ife, [
52020
+ }, se(c.name), 9, ufe),
52021
+ D("td", cfe, [
52009
52022
  p(ib)(c.value) ? (b(), ne(pg, {
52010
52023
  key: 0,
52011
52024
  value: c.value
52012
- }, null, 8, ["value"])) : (b(), P("span", ufe, se(p(Ef)(c.value)), 1))
52025
+ }, null, 8, ["value"])) : (b(), P("span", dfe, se(p(Ef)(c.value)), 1))
52013
52026
  ])
52014
52027
  ]))), 128))
52015
52028
  ])
52016
- ])) : (b(), P("div", cfe, [
52029
+ ])) : (b(), P("div", ffe, [
52017
52030
  L(pg, {
52018
52031
  value: l.value,
52019
52032
  "default-expanded": ""
@@ -52025,10 +52038,10 @@ const Hde = { class: "execution-info-tab" }, Wde = {
52025
52038
  ]);
52026
52039
  };
52027
52040
  }
52028
- }), kx = /* @__PURE__ */ rt(dfe, [["__scopeId", "data-v-a3fab2dc"]]), hd = { inputs: [], outputs: [] }, om = /* @__PURE__ */ new Map(), gA = (e, t) => Object.prototype.hasOwnProperty.call(e, t), ffe = (e) => {
52041
+ }), kx = /* @__PURE__ */ rt(pfe, [["__scopeId", "data-v-a3fab2dc"]]), hd = { inputs: [], outputs: [] }, om = /* @__PURE__ */ new Map(), gA = (e, t) => Object.prototype.hasOwnProperty.call(e, t), vfe = (e) => {
52029
52042
  const t = e.attrs ?? {};
52030
52043
  return gA(t, "formViewHidden") ? !t.formViewHidden : gA(t, "hidden") ? !t.hidden : !0;
52031
- }, pfe = (e) => {
52044
+ }, mfe = (e) => {
52032
52045
  const { inputs: t, inputParamsFormType: n } = e;
52033
52046
  if (n === "uniformApiForm")
52034
52047
  return t.filter((a) => !!a.key).map((a) => ({ key: a.key, name: a.name || a.key, visible: !0 }));
@@ -52042,10 +52055,10 @@ const Hde = { class: "execution-info-tab" }, Wde = {
52042
52055
  return t.filter((a) => !!a.tag_code).map((a) => ({
52043
52056
  key: a.tag_code,
52044
52057
  name: String(a.attrs?.name || a.name || a.tag_code),
52045
- visible: ffe(a)
52058
+ visible: vfe(a)
52046
52059
  }));
52047
- }, vfe = (e) => ({
52048
- inputs: pfe(e),
52060
+ }, gfe = (e) => ({
52061
+ inputs: mfe(e),
52049
52062
  outputs: (e.outputs ?? []).filter((t) => !!t.key).map((t) => ({ key: t.key, name: t.name || t.key, visible: !0 }))
52050
52063
  }), hA = (e, t) => {
52051
52064
  if (!e?.code) return "";
@@ -52060,14 +52073,14 @@ const Hde = { class: "execution-info-tab" }, Wde = {
52060
52073
  typeof n == "string" ? n : String(n ?? ""),
52061
52074
  typeof a == "string" ? a : String(a ?? "")
52062
52075
  ].join("|");
52063
- }, mfe = (e, t, n) => {
52076
+ }, hfe = (e, t, n) => {
52064
52077
  const a = om.get(n);
52065
52078
  if (a) return a;
52066
- const o = ef(e, t).then(vfe).catch((l) => {
52079
+ const o = ef(e, t).then(gfe).catch((l) => {
52067
52080
  throw om.delete(n), l;
52068
52081
  });
52069
52082
  return om.set(n, o), o;
52070
- }, bA = (e) => Object.fromEntries(e.filter((t) => t.visible).map((t) => [t.key, t.name])), gfe = (e) => typeof e == "string" ? e : e instanceof Error ? e.message : "加载失败";
52083
+ }, bA = (e) => Object.fromEntries(e.filter((t) => t.visible).map((t) => [t.key, t.name])), bfe = (e) => typeof e == "string" ? e : e instanceof Error ? e.message : "加载失败";
52071
52084
  function Cx(e) {
52072
52085
  const t = ka(), n = B(!1), a = B(""), o = Ct(hd);
52073
52086
  let l = 0;
@@ -52079,12 +52092,12 @@ function Cx(e) {
52079
52092
  }
52080
52093
  n.value = !0, a.value = "", o.value = hd;
52081
52094
  try {
52082
- const g = await mfe(t, m, v);
52095
+ const g = await hfe(t, m, v);
52083
52096
  if (h !== l) return;
52084
52097
  o.value = g;
52085
52098
  } catch (g) {
52086
52099
  if (h !== l) return;
52087
- o.value = hd, a.value = `插件参数信息加载失败:${gfe(g)}`;
52100
+ o.value = hd, a.value = `插件参数信息加载失败:${bfe(g)}`;
52088
52101
  } finally {
52089
52102
  h === l && (n.value = !1);
52090
52103
  }
@@ -52100,7 +52113,7 @@ function Cx(e) {
52100
52113
  return { loading: n, error: a, meta: o, visibleInputs: s, visibleOutputs: u, inputNameMap: d, outputNameMap: c };
52101
52114
  }
52102
52115
  const _x = /* @__PURE__ */ Symbol("plugin-param-names");
52103
- function hfe(e) {
52116
+ function yfe(e) {
52104
52117
  const { loading: t, error: n, inputNameMap: a, outputNameMap: o, visibleOutputs: l } = Cx(e), r = {
52105
52118
  loading: t,
52106
52119
  error: n,
@@ -52116,10 +52129,10 @@ function xx() {
52116
52129
  throw new Error("useInjectedPluginParamNames: plugin param names is not provided");
52117
52130
  return e;
52118
52131
  }
52119
- const bfe = /* @__PURE__ */ Ce({
52132
+ const wfe = /* @__PURE__ */ Ce({
52120
52133
  __name: "input-params",
52121
52134
  setup(e) {
52122
- const { loading: t, error: n, detail: a } = ub(), { loading: o, error: l, inputNameMap: r } = xx(), s = O(() => t.value || o.value), u = O(() => n.value || l.value), d = O(() => Vde(a.value?.inputs, r.value).filter(
52135
+ const { loading: t, error: n, detail: a } = ub(), { loading: o, error: l, inputNameMap: r } = xx(), s = O(() => t.value || o.value), u = O(() => n.value || l.value), d = O(() => Nde(a.value?.inputs, r.value).filter(
52123
52136
  (c) => c.key in r.value
52124
52137
  ));
52125
52138
  return (c, m) => (b(), ne(kx, {
@@ -52129,7 +52142,7 @@ const bfe = /* @__PURE__ */ Ce({
52129
52142
  "empty-text": "暂无输入参数"
52130
52143
  }, null, 8, ["loading", "error", "rows"]));
52131
52144
  }
52132
- }), yfe = /* @__PURE__ */ Ce({
52145
+ }), Afe = /* @__PURE__ */ Ce({
52133
52146
  __name: "output-params",
52134
52147
  setup(e) {
52135
52148
  const { loading: t, error: n, detail: a } = ub(), {
@@ -52138,10 +52151,10 @@ const bfe = /* @__PURE__ */ Ce({
52138
52151
  outputNameMap: r,
52139
52152
  outputKeys: s
52140
52153
  } = xx(), u = O(() => t.value || o.value), d = O(() => n.value || l.value), c = O(() => {
52141
- const m = Bde(a.value?.outputs, r.value).filter(
52154
+ const m = Lde(a.value?.outputs, r.value).filter(
52142
52155
  (h) => h.key in r.value && !Mf.has(h.key)
52143
52156
  );
52144
- return Nde(m, s.value);
52157
+ return Rde(m, s.value);
52145
52158
  });
52146
52159
  return (m, h) => (b(), ne(kx, {
52147
52160
  loading: u.value,
@@ -52150,8 +52163,8 @@ const bfe = /* @__PURE__ */ Ce({
52150
52163
  "empty-text": "暂无输出结果"
52151
52164
  }, null, 8, ["loading", "error", "rows"]));
52152
52165
  }
52153
- }), wfe = (e) => typeof e == "string" ? e : e instanceof Error ? e.message : "加载失败";
52154
- function Afe(e) {
52166
+ }), kfe = (e) => typeof e == "string" ? e : e instanceof Error ? e.message : "加载失败";
52167
+ function Cfe(e) {
52155
52168
  const t = B(!1), n = B(""), a = Ct();
52156
52169
  let o = 0;
52157
52170
  const l = async () => {
@@ -52165,7 +52178,7 @@ function Afe(e) {
52165
52178
  const s = await e.load();
52166
52179
  r === o && (a.value = s);
52167
52180
  } catch (s) {
52168
- r === o && (console.error(s), n.value = wfe(s), a.value = void 0);
52181
+ r === o && (console.error(s), n.value = kfe(s), a.value = void 0);
52169
52182
  } finally {
52170
52183
  r === o && (t.value = !1);
52171
52184
  }
@@ -52183,14 +52196,14 @@ function Afe(e) {
52183
52196
  fetchData: l
52184
52197
  };
52185
52198
  }
52186
- const kfe = { class: "call-logs-viewer" }, Cfe = {
52199
+ const _fe = { class: "call-logs-viewer" }, xfe = {
52187
52200
  key: 0,
52188
52201
  class: "call-logs-viewer__state is-error",
52189
52202
  "data-test": "log-error"
52190
- }, _fe = {
52203
+ }, Sfe = {
52191
52204
  key: 2,
52192
52205
  class: "call-logs-viewer__viewer"
52193
- }, xfe = { class: "call-logs-viewer__empty-body" }, Sfe = { class: "call-logs-viewer__sub-tabs" }, Efe = ["onClick"], Ife = /* @__PURE__ */ Ce({
52206
+ }, Efe = { class: "call-logs-viewer__empty-body" }, Ife = { class: "call-logs-viewer__sub-tabs" }, Tfe = ["onClick"], Ofe = /* @__PURE__ */ Ce({
52194
52207
  __name: "call-logs-viewer",
52195
52208
  props: {
52196
52209
  logText: { default: "" },
@@ -52208,12 +52221,12 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52208
52221
  }, l = O(() => (t.logText || "").replace(/\[bk-mark\]|\[\/bk-mark\]/g, ""));
52209
52222
  return (r, s) => {
52210
52223
  const u = Qt("bkloading");
52211
- return st((b(), P("div", kfe, [
52212
- t.error ? (b(), P("div", Cfe, se(t.error), 1)) : !t.loading && !t.logText ? (b(), ne($n, {
52224
+ return st((b(), P("div", _fe, [
52225
+ t.error ? (b(), P("div", xfe, se(t.error), 1)) : !t.loading && !t.logText ? (b(), ne($n, {
52213
52226
  key: 1,
52214
52227
  title: "暂无调用日志",
52215
52228
  "data-test": "log-empty"
52216
- })) : t.logText ? (b(), P("div", _fe, [
52229
+ })) : t.logText ? (b(), P("div", Sfe, [
52217
52230
  n.value === "platform" ? (b(), ne(ul, {
52218
52231
  key: 0,
52219
52232
  "model-value": l.value,
@@ -52221,17 +52234,17 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52221
52234
  "data-test": "log-editor"
52222
52235
  }, null, 8, ["model-value"])) : (b(), P(Oe, { key: 1 }, [
52223
52236
  s[0] || (s[0] = D("div", { class: "call-logs-viewer__empty-header" }, null, -1)),
52224
- D("div", xfe, [
52237
+ D("div", Efe, [
52225
52238
  L($n, { title: "暂无第三方插件日志" })
52226
52239
  ])
52227
52240
  ], 64)),
52228
- D("div", Sfe, [
52241
+ D("div", Ife, [
52229
52242
  (b(), P(Oe, null, dt(a, (d) => D("span", {
52230
52243
  key: d.value,
52231
52244
  class: te(["call-logs-viewer__sub-tab", { "is-active": n.value === d.value }]),
52232
52245
  "data-test": "log-sub-tab",
52233
52246
  onClick: (c) => n.value = d.value
52234
- }, se(d.label), 11, Efe)), 64))
52247
+ }, se(d.label), 11, Tfe)), 64))
52235
52248
  ])
52236
52249
  ])) : J("", !0)
52237
52250
  ])), [
@@ -52239,7 +52252,7 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52239
52252
  ]);
52240
52253
  };
52241
52254
  }
52242
- }), Tfe = /* @__PURE__ */ rt(Ife, [["__scopeId", "data-v-06ddf5de"]]), Ofe = /* @__PURE__ */ Ce({
52255
+ }), Dfe = /* @__PURE__ */ rt(Ofe, [["__scopeId", "data-v-06ddf5de"]]), Mfe = /* @__PURE__ */ Ce({
52243
52256
  __name: "call-logs",
52244
52257
  props: {
52245
52258
  taskId: {},
@@ -52247,7 +52260,7 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52247
52260
  version: {}
52248
52261
  },
52249
52262
  setup(e) {
52250
- const t = e, n = ka(), { loading: a, error: o, data: l } = Afe({
52263
+ const t = e, n = ka(), { loading: a, error: o, data: l } = Cfe({
52251
52264
  dependencies: () => [t.taskId, t.nodeId, t.version],
52252
52265
  isReady: () => !!(t.taskId && t.nodeId && t.version),
52253
52266
  load: async () => {
@@ -52259,14 +52272,14 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52259
52272
  version: t.version
52260
52273
  });
52261
52274
  }
52262
- }), r = O(() => Lde(l.value));
52263
- return (s, u) => (b(), ne(Tfe, {
52275
+ }), r = O(() => Fde(l.value));
52276
+ return (s, u) => (b(), ne(Dfe, {
52264
52277
  "log-text": r.value,
52265
52278
  loading: p(a),
52266
52279
  error: p(o)
52267
52280
  }, null, 8, ["log-text", "loading", "error"]));
52268
52281
  }
52269
- }), Dfe = { class: "debug-result-tabs" }, Mfe = /* @__PURE__ */ Ce({
52282
+ }), Pfe = { class: "debug-result-tabs" }, Vfe = /* @__PURE__ */ Ce({
52270
52283
  __name: "result-tabs",
52271
52284
  props: {
52272
52285
  taskId: {},
@@ -52277,14 +52290,14 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52277
52290
  },
52278
52291
  setup(e) {
52279
52292
  const t = /* @__PURE__ */ new Set(["开始节点", "结束节点", "网关节点"]), n = e, a = B("execution"), o = O(() => t.has(n.activeNodeType));
52280
- return jde({
52293
+ return Wde({
52281
52294
  taskId: () => n.taskId,
52282
52295
  nodeId: () => n.activeNodeId
52283
- }), hfe({
52296
+ }), yfe({
52284
52297
  component: () => n.activeNodeComponent
52285
52298
  }), (l, r) => {
52286
52299
  const s = ye("bk-tab-panel"), u = ye("bk-tab");
52287
- return b(), P("section", Dfe, [
52300
+ return b(), P("section", Pfe, [
52288
52301
  L(u, {
52289
52302
  active: a.value,
52290
52303
  "onUpdate:active": r[0] || (r[0] = (d) => a.value = d),
@@ -52296,7 +52309,7 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52296
52309
  label: "执行信息"
52297
52310
  }, {
52298
52311
  default: j(() => [
52299
- a.value === "execution" ? (b(), ne(Qde, { key: 0 })) : J("", !0)
52312
+ a.value === "execution" ? (b(), ne(Kde, { key: 0 })) : J("", !0)
52300
52313
  ]),
52301
52314
  _: 1
52302
52315
  }),
@@ -52308,7 +52321,7 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52308
52321
  o.value ? (b(), ne($n, {
52309
52322
  key: 0,
52310
52323
  title: "暂无输入参数"
52311
- })) : a.value === "inputs" ? (b(), ne(bfe, { key: 1 })) : J("", !0)
52324
+ })) : a.value === "inputs" ? (b(), ne(wfe, { key: 1 })) : J("", !0)
52312
52325
  ]),
52313
52326
  _: 1
52314
52327
  }),
@@ -52320,7 +52333,7 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52320
52333
  o.value ? (b(), ne($n, {
52321
52334
  key: 0,
52322
52335
  title: "暂无输出结果"
52323
- })) : a.value === "outputs" ? (b(), ne(yfe, { key: 1 })) : J("", !0)
52336
+ })) : a.value === "outputs" ? (b(), ne(Afe, { key: 1 })) : J("", !0)
52324
52337
  ]),
52325
52338
  _: 1
52326
52339
  }),
@@ -52329,7 +52342,7 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52329
52342
  label: "调用日志"
52330
52343
  }, {
52331
52344
  default: j(() => [
52332
- a.value === "logs" ? (b(), ne(Ofe, {
52345
+ a.value === "logs" ? (b(), ne(Mfe, {
52333
52346
  key: 0,
52334
52347
  "task-id": n.taskId,
52335
52348
  "node-id": n.activeNodeId,
@@ -52344,7 +52357,7 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52344
52357
  ]);
52345
52358
  };
52346
52359
  }
52347
- }), Pfe = /* @__PURE__ */ rt(Mfe, [["__scopeId", "data-v-3a013845"]]), Vfe = { class: "debug-result-drawer__header" }, Bfe = { class: "debug-result-drawer__body" }, Nfe = 44, Lfe = /* @__PURE__ */ Ce({
52360
+ }), Bfe = /* @__PURE__ */ rt(Vfe, [["__scopeId", "data-v-3a013845"]]), Nfe = { class: "debug-result-drawer__header" }, Lfe = { class: "debug-result-drawer__body" }, Rfe = 44, Ffe = /* @__PURE__ */ Ce({
52348
52361
  __name: "index",
52349
52362
  props: {
52350
52363
  open: { type: Boolean },
@@ -52359,7 +52372,7 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52359
52372
  const n = e, a = O(() => n.nodes.find((E) => E.id === n.activeNodeId)?.typeName ?? ""), o = t, l = B(420), r = B(!1);
52360
52373
  let s = 0, u = 0, d = "", c = "";
52361
52374
  const m = O(() => ({
52362
- height: `${n.open ? l.value : Nfe}px`
52375
+ height: `${n.open ? l.value : Rfe}px`
52363
52376
  })), h = () => {
52364
52377
  o("update:open", !n.open);
52365
52378
  }, v = (_) => {
@@ -52384,7 +52397,7 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52384
52397
  D("section", {
52385
52398
  class: te(["debug-result-drawer", { "is-collapsed": !n.open }])
52386
52399
  }, [
52387
- D("header", Vfe, [
52400
+ D("header", Nfe, [
52388
52401
  E[0] || (E[0] = D("div", { class: "debug-result-drawer__title" }, "调试结果", -1)),
52389
52402
  D("span", {
52390
52403
  class: "debug-result-drawer__collapse",
@@ -52396,13 +52409,13 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52396
52409
  }, null, 2)
52397
52410
  ])
52398
52411
  ]),
52399
- D("div", Bfe, [
52400
- L(Dde, {
52412
+ D("div", Lfe, [
52413
+ L(Pde, {
52401
52414
  nodes: n.nodes,
52402
52415
  "model-value": n.activeNodeId,
52403
52416
  "onUpdate:modelValue": v
52404
52417
  }, null, 8, ["nodes", "model-value"]),
52405
- L(Pfe, {
52418
+ L(Bfe, {
52406
52419
  "task-id": n.taskId,
52407
52420
  "active-node-id": n.activeNodeId,
52408
52421
  "active-node-version": n.activeNodeVersion,
@@ -52413,10 +52426,10 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52413
52426
  ], 2)
52414
52427
  ], 6));
52415
52428
  }
52416
- }), Rfe = /* @__PURE__ */ rt(Lfe, [["__scopeId", "data-v-c5b0c94f"]]), Ffe = {
52429
+ }), zfe = /* @__PURE__ */ rt(Ffe, [["__scopeId", "data-v-c5b0c94f"]]), jfe = {
52417
52430
  key: 0,
52418
52431
  class: "operate-area"
52419
- }, zfe = { class: "mock-debug-status" }, jfe = { class: "operate-btns" }, Hfe = { class: "flow-mock-debug-content" }, Wfe = { class: "gateway-select-dialog" }, Ufe = { class: "gateway-select-dialog__field" }, Gfe = 3e3, Yfe = /* @__PURE__ */ Ce({
52432
+ }, Hfe = { class: "mock-debug-status" }, Wfe = { class: "operate-btns" }, Ufe = { class: "flow-mock-debug-content" }, Gfe = { class: "gateway-select-dialog" }, Yfe = { class: "gateway-select-dialog__field" }, qfe = 3e3, Qfe = /* @__PURE__ */ Ce({
52420
52433
  __name: "mock",
52421
52434
  props: {
52422
52435
  flowId: {},
@@ -52597,7 +52610,7 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52597
52610
  function ue() {
52598
52611
  q(), N = setTimeout(() => {
52599
52612
  Z();
52600
- }, Gfe);
52613
+ }, qfe);
52601
52614
  }
52602
52615
  async function Z() {
52603
52616
  if (q(), !(!n.taskId || !o.fetchTaskState))
@@ -52819,15 +52832,15 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52819
52832
  Ze(je.$slots, "header", {}, void 0, !0)
52820
52833
  ]),
52821
52834
  extend: j(() => [
52822
- r.value ? (b(), P("div", Ffe, [
52835
+ r.value ? (b(), P("div", jfe, [
52823
52836
  L(tp, {
52824
52837
  "flow-data": r.value,
52825
52838
  editable: !1,
52826
52839
  "enable-simulate-debug": !1,
52827
52840
  "simulate-debug-only": !0
52828
52841
  }, null, 8, ["flow-data"]),
52829
- D("div", zfe, [
52830
- L(bde, {
52842
+ D("div", Hfe, [
52843
+ L(wde, {
52831
52844
  class: "mock-debug-status__icon",
52832
52845
  size: 14,
52833
52846
  width: 20,
@@ -52835,7 +52848,7 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52835
52848
  }),
52836
52849
  Ge[3] || (Ge[3] = D("span", { class: "mock-debug-status__label" }, "调试中", -1))
52837
52850
  ]),
52838
- D("div", jfe, [
52851
+ D("div", Wfe, [
52839
52852
  L(Qe, { onClick: At }, {
52840
52853
  default: j(() => [...Ge[4] || (Ge[4] = [
52841
52854
  ze("退出模拟调试", -1)
@@ -52847,7 +52860,7 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52847
52860
  Ze(je.$slots, "extend", {}, void 0, !0)
52848
52861
  ]),
52849
52862
  default: j(() => [
52850
- st((b(), P("div", Hfe, [
52863
+ st((b(), P("div", Ufe, [
52851
52864
  !A.value && E.value ? (b(), ne($h, {
52852
52865
  key: 0,
52853
52866
  ref_key: "canvasRef",
@@ -52881,8 +52894,8 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52881
52894
  onClosed: pt
52882
52895
  }, {
52883
52896
  default: j(() => [
52884
- D("div", Wfe, [
52885
- D("div", Ufe, [
52897
+ D("div", Gfe, [
52898
+ D("div", Yfe, [
52886
52899
  Ge[5] || (Ge[5] = D("label", { class: "gateway-select-dialog__label" }, "可选执行分支", -1)),
52887
52900
  L(nt, {
52888
52901
  modelValue: he.selectedBranch,
@@ -52907,7 +52920,7 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52907
52920
  _: 1
52908
52921
  }, 8, ["isShow"]),
52909
52922
  !A.value && r.value ? (b(), P(Oe, { key: 1 }, [
52910
- L(Cde, {
52923
+ L(xde, {
52911
52924
  status: u.value,
52912
52925
  "started-at": d.value,
52913
52926
  elapsed: c.value,
@@ -52915,7 +52928,7 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52915
52928
  onStop: Dt,
52916
52929
  onLocateFailed: Vt
52917
52930
  }, null, 8, ["status", "started-at", "elapsed", "failed-count"]),
52918
- L(Rfe, {
52931
+ L(zfe, {
52919
52932
  open: h.value,
52920
52933
  "task-id": n.taskId,
52921
52934
  nodes: x.value,
@@ -52934,13 +52947,13 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52934
52947
  }, 8, ["desc"]);
52935
52948
  };
52936
52949
  }
52937
- }), qfe = /* @__PURE__ */ rt(Yfe, [["__scopeId", "data-v-7ab3f135"]]), Qfe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
52950
+ }), $fe = /* @__PURE__ */ rt(Qfe, [["__scopeId", "data-v-7ab3f135"]]), Kfe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
52938
52951
  __proto__: null,
52939
- default: qfe
52940
- }, Symbol.toStringTag, { value: "Module" })), $fe = {
52952
+ default: $fe
52953
+ }, Symbol.toStringTag, { value: "Module" })), Zfe = {
52941
52954
  waiting: "running",
52942
52955
  paused: "suspended"
52943
- }, Kfe = /* @__PURE__ */ new Set([
52956
+ }, Xfe = /* @__PURE__ */ new Set([
52944
52957
  "not_run",
52945
52958
  "running",
52946
52959
  "suspended",
@@ -52950,14 +52963,14 @@ const kfe = { class: "call-logs-viewer" }, Cfe = {
52950
52963
  "revoked"
52951
52964
  ]);
52952
52965
  function il(e) {
52953
- const t = $fe[e];
52954
- return t || (Kfe.has(e) ? e : "not_run");
52966
+ const t = Zfe[e];
52967
+ return t || (Xfe.has(e) ? e : "not_run");
52955
52968
  }
52956
- function Zfe(e) {
52969
+ function Jfe(e) {
52957
52970
  return e === "failed" || e === "revoked";
52958
52971
  }
52959
52972
  function yA(e) {
52960
- return e === "finished" || Zfe(e);
52973
+ return e === "finished" || Jfe(e);
52961
52974
  }
52962
52975
  function bd(e) {
52963
52976
  if (!e) return null;
@@ -52970,7 +52983,7 @@ function bd(e) {
52970
52983
  }
52971
52984
  return e.active_node_id ? { runType: "step", nodeId: e.active_node_id } : e.last_run_type === "global" ? { runType: "global", nodeId: null } : e.last_run_type === "step" && t.length === 1 ? { runType: "step", nodeId: t[0].node_id } : null;
52972
52985
  }
52973
- const Xfe = {
52986
+ const epe = {
52974
52987
  running: "RUNNING",
52975
52988
  suspended: "SUSPENDED",
52976
52989
  finished: "FINISHED",
@@ -52978,7 +52991,7 @@ const Xfe = {
52978
52991
  skipped: "SKIP",
52979
52992
  revoked: "REVOKED"
52980
52993
  };
52981
- function Jfe(e, t = {}) {
52994
+ function tpe(e, t = {}) {
52982
52995
  if (!e) return null;
52983
52996
  if (t.nodeIdOverride) return t.nodeIdOverride;
52984
52997
  if (e.active_node_id) return e.active_node_id;
@@ -52989,11 +53002,11 @@ function Jfe(e, t = {}) {
52989
53002
  const n = e.nodes.filter((a) => il(a.status) !== "not_run");
52990
53003
  return n.length === 1 ? n[0].node_id : null;
52991
53004
  }
52992
- const epe = {
53005
+ const npe = {
52993
53006
  global: "全流程",
52994
53007
  step: "单节点"
52995
53008
  };
52996
- function tpe(e) {
53009
+ function ape(e) {
52997
53010
  return e ? e.status === "running" || e.status === "terminating" ? {
52998
53011
  taskId: e.active_task_id,
52999
53012
  runType: e.active_run_type,
@@ -53017,19 +53030,19 @@ function tpe(e) {
53017
53030
  hasRecord: !1
53018
53031
  };
53019
53032
  }
53020
- function npe(e, t = {}) {
53033
+ function ope(e, t = {}) {
53021
53034
  const n = {}, a = /* @__PURE__ */ new Set();
53022
53035
  let o = 0;
53023
53036
  const l = [];
53024
53037
  let r = 0, s;
53025
- const u = t.existingNodeIds, d = e?.nodes ?? [], c = e?.status ?? "idle", m = tpe(e), h = t.runStatusOverride ?? m.runStatus, v = t.runTypeOverride ?? m.runType, g = v === "step" ? Jfe(e, t) : null;
53038
+ const u = t.existingNodeIds, d = e?.nodes ?? [], c = e?.status ?? "idle", m = ape(e), h = t.runStatusOverride ?? m.runStatus, v = t.runTypeOverride ?? m.runType, g = v === "step" ? tpe(e, t) : null;
53026
53039
  for (const _ of d) {
53027
53040
  if (u && !u.has(_.node_id))
53028
53041
  continue;
53029
53042
  _.execution_mode === "mock" && a.add(_.node_id);
53030
53043
  const E = il(_.status);
53031
53044
  if (E !== "not_run") {
53032
- const y = Xfe[E];
53045
+ const y = epe[E];
53033
53046
  if (y) {
53034
53047
  const C = _.selected_flow_ids?.filter(Boolean);
53035
53048
  n[_.node_id] = {
@@ -53053,14 +53066,14 @@ function npe(e, t = {}) {
53053
53066
  hasRecord: c !== "idle" || A !== "none",
53054
53067
  resultState: A,
53055
53068
  runType: v,
53056
- typeLabel: v ? epe[v] : void 0,
53069
+ typeLabel: v ? npe[v] : void 0,
53057
53070
  runStatus: h,
53058
53071
  startedAt: void 0,
53059
53072
  durationMs: s
53060
53073
  };
53061
53074
  return { nodeStates: n, mockNodeIds: a, summary: w };
53062
53075
  }
53063
- function ape(e) {
53076
+ function lpe(e) {
53064
53077
  return e.httpStatus === 409 || e.code === "409" ? !0 : /正在被|已被锁定|locked/i.test(e.message);
53065
53078
  }
53066
53079
  function wA(e) {
@@ -53075,13 +53088,13 @@ function wA(e) {
53075
53088
  log_ref: null
53076
53089
  }));
53077
53090
  }
53078
- function ope(e) {
53091
+ function spe(e) {
53079
53092
  if (!e || typeof e != "object") return;
53080
53093
  const t = e.elapsed_time;
53081
53094
  if (!(typeof t != "number" || !Number.isFinite(t)))
53082
53095
  return Math.max(0, t) * 1e3;
53083
53096
  }
53084
- function lpe(e = {}) {
53097
+ function rpe(e = {}) {
53085
53098
  const t = B(void 0);
53086
53099
  let n = null, a = 0, o = null;
53087
53100
  const l = () => {
@@ -53098,7 +53111,7 @@ function lpe(e = {}) {
53098
53111
  const v = e.getFlowTaskDetail;
53099
53112
  if (typeof v == "function")
53100
53113
  try {
53101
- const g = await v({ task_id: m }), A = ope(g);
53114
+ const g = await v({ task_id: m }), A = spe(g);
53102
53115
  return A == null ? void 0 : (h.continueTimer ? s(A) : (l(), n = null, a = A, t.value = A), A);
53103
53116
  } catch {
53104
53117
  return;
@@ -53112,7 +53125,7 @@ function lpe(e = {}) {
53112
53125
  restoreFromTask: c
53113
53126
  };
53114
53127
  }
53115
- const spe = 2500, rpe = 5e3;
53128
+ const ipe = 2500, upe = 5e3;
53116
53129
  function AA(e) {
53117
53130
  return e === "running" ? "running" : e === "failed" ? "failed" : e === "revoked" ? "revoked" : "finished";
53118
53131
  }
@@ -53122,7 +53135,7 @@ function Ds(e, t) {
53122
53135
  throw new Error(`FlowDetail debug API "${String(t)}" is not configured`);
53123
53136
  return n;
53124
53137
  }
53125
- const ipe = [
53138
+ const cpe = [
53126
53139
  "fetchDebugContext",
53127
53140
  "fetchDebugInputSchema",
53128
53141
  "fetchDebugResetImpact",
@@ -53132,13 +53145,13 @@ const ipe = [
53132
53145
  "terminateDebug",
53133
53146
  "resetDebugResult"
53134
53147
  ];
53135
- function upe(e) {
53136
- const t = ipe.filter((n) => typeof e[n] != "function");
53148
+ function dpe(e) {
53149
+ const t = cpe.filter((n) => typeof e[n] != "function");
53137
53150
  if (t.length > 0)
53138
53151
  throw new Error(`FlowDetail debug API is incomplete: ${t.join(", ")}`);
53139
53152
  }
53140
- function cpe(e) {
53141
- const t = e.pollInterval ?? spe, n = e.retryInterval ?? rpe, a = Ct(null), o = B(null), l = Ct(null), r = lpe({
53153
+ function fpe(e) {
53154
+ const t = e.pollInterval ?? ipe, n = e.retryInterval ?? upe, a = Ct(null), o = B(null), l = Ct(null), r = rpe({
53142
53155
  getFlowTaskDetail: e.api.getFlowTaskDetail
53143
53156
  });
53144
53157
  let s = !1, u = null;
@@ -53166,7 +53179,7 @@ function cpe(e) {
53166
53179
  r.durationMs.value == null && u !== fe.taskId && (u = fe.taskId, r.restoreFromTask(fe.taskId));
53167
53180
  }
53168
53181
  }, m = O(() => {
53169
- const le = npe(a.value, {
53182
+ const le = ope(a.value, {
53170
53183
  resultStateOverride: o.value,
53171
53184
  runTypeOverride: l.value?.runType,
53172
53185
  runStatusOverride: l.value?.runStatus,
@@ -53210,7 +53223,7 @@ function cpe(e) {
53210
53223
  }
53211
53224
  async function N(le) {
53212
53225
  const re = Ad(le);
53213
- if (ape(re))
53226
+ if (lpe(re))
53214
53227
  return e.onMessage?.("warning", re.message), await V(), !1;
53215
53228
  throw e.onMessage?.("error", re.message), re;
53216
53229
  }
@@ -53218,7 +53231,7 @@ function cpe(e) {
53218
53231
  if (e.enabled()) {
53219
53232
  h.value = !0;
53220
53233
  try {
53221
- upe(e.api), await V();
53234
+ dpe(e.api), await V();
53222
53235
  } catch (le) {
53223
53236
  k.value = Ad(le).message;
53224
53237
  } finally {
@@ -53456,10 +53469,10 @@ function cpe(e) {
53456
53469
  stopPolling: S
53457
53470
  };
53458
53471
  }
53459
- const dpe = 1e3;
53460
- function fpe(e) {
53472
+ const ppe = 1e3;
53473
+ function vpe(e) {
53461
53474
  if (e == null || !Number.isFinite(e)) return "--";
53462
- const t = Math.max(0, Math.floor(e / dpe)), n = Math.floor(t / 3600), a = Math.floor(t % 3600 / 60), o = t % 60, l = String(o).padStart(2, "0");
53475
+ const t = Math.max(0, Math.floor(e / ppe)), n = Math.floor(t / 3600), a = Math.floor(t % 3600 / 60), o = t % 60, l = String(o).padStart(2, "0");
53463
53476
  return n > 0 ? `${n}:${String(a).padStart(2, "0")}:${l}` : `${a}:${l}`;
53464
53477
  }
53465
53478
  const Xo = {
@@ -53472,8 +53485,8 @@ const Xo = {
53472
53485
  mockCancelWhileDebugging: "当前流程正在调试中,无法取消 Mock",
53473
53486
  skipDebugCancelWhileDebugging: "当前流程正在调试中,无法取消跳过调试"
53474
53487
  };
53475
- function ppe(e) {
53476
- const t = !!e.terminatePending, n = e.isFlowDebugging, a = e.isActiveStep, o = !!(e.systemOnlyOutputs && e.isMock), l = vpe(e, a, n, t, o), r = e.isMock ? "编辑 Mock 输出" : "新建 Mock 输出", s = n, u = s ? e.isMock ? Xo.mockEditWhileDebugging : Xo.mockCreateWhileDebugging : "";
53488
+ function mpe(e) {
53489
+ const t = !!e.terminatePending, n = e.isFlowDebugging, a = e.isActiveStep, o = !!(e.systemOnlyOutputs && e.isMock), l = gpe(e, a, n, t, o), r = e.isMock ? "编辑 Mock 输出" : "新建 Mock 输出", s = n, u = s ? e.isMock ? Xo.mockEditWhileDebugging : Xo.mockCreateWhileDebugging : "";
53477
53490
  return {
53478
53491
  primary: l,
53479
53492
  mock: {
@@ -53494,7 +53507,7 @@ function ppe(e) {
53494
53507
  }
53495
53508
  };
53496
53509
  }
53497
- function vpe(e, t, n, a, o) {
53510
+ function gpe(e, t, n, a, o) {
53498
53511
  if (t)
53499
53512
  return {
53500
53513
  kind: "terminate",
@@ -53525,41 +53538,41 @@ function vpe(e, t, n, a, o) {
53525
53538
  tooltip: ""
53526
53539
  };
53527
53540
  }
53528
- const mpe = "重新调试";
53529
- function gpe(e, t) {
53541
+ const hpe = "重新调试";
53542
+ function bpe(e, t) {
53530
53543
  if (t.status !== "idle" || t.runType !== "step" || t.failedNodeIds.length !== 1 || !e) return null;
53531
53544
  const n = e.nodes;
53532
53545
  if (n.some((l) => il(l.status) === "running")) return null;
53533
53546
  const a = t.failedNodeIds[0];
53534
- return n.find((l) => l.node_id === a)?.execution_mode === "mock" ? { nodeId: a, disabled: !0, tooltip: Xo.realWhileMock } : { nodeId: a, disabled: !1, tooltip: mpe };
53547
+ return n.find((l) => l.node_id === a)?.execution_mode === "mock" ? { nodeId: a, disabled: !0, tooltip: Xo.realWhileMock } : { nodeId: a, disabled: !1, tooltip: hpe };
53535
53548
  }
53536
- const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53549
+ const ype = { class: "debug-trigger" }, wpe = ["disabled", "title"], Ape = {
53537
53550
  key: 1,
53538
53551
  class: "debug-trigger__running-dots",
53539
53552
  "aria-label": "调试中"
53540
- }, wpe = { class: "debug-trigger__label" }, Ape = {
53553
+ }, kpe = { class: "debug-trigger__label" }, Cpe = {
53541
53554
  key: 0,
53542
53555
  class: "debug-summary-card",
53543
53556
  "data-test": "debug-summary"
53544
- }, kpe = { class: "summary-row" }, Cpe = { class: "summary-value summary-value--num" }, _pe = {
53557
+ }, _pe = { class: "summary-row" }, xpe = { class: "summary-value summary-value--num" }, Spe = {
53545
53558
  key: 0,
53546
53559
  class: "summary-row"
53547
- }, xpe = {
53560
+ }, Epe = {
53548
53561
  class: "summary-value",
53549
53562
  "data-test": "debug-node-count"
53550
- }, Spe = { class: "summary-value--num" }, Epe = {
53563
+ }, Ipe = { class: "summary-value--num" }, Tpe = {
53551
53564
  key: 1,
53552
53565
  class: "summary-row"
53553
- }, Ipe = {
53566
+ }, Ope = {
53554
53567
  class: "summary-value",
53555
53568
  "data-test": "failed-node-count"
53556
- }, Tpe = ["tabindex", "onKeydown"], Ope = ["onKeydown"], Dpe = {
53569
+ }, Dpe = ["tabindex", "onKeydown"], Mpe = ["onKeydown"], Ppe = {
53557
53570
  key: 2,
53558
53571
  class: "summary-actions"
53559
- }, Mpe = {
53572
+ }, Vpe = {
53560
53573
  key: 3,
53561
53574
  class: "summary-actions"
53562
- }, Ppe = /* @__PURE__ */ Ce({
53575
+ }, Bpe = /* @__PURE__ */ Ce({
53563
53576
  __name: "index",
53564
53577
  props: {
53565
53578
  context: {},
@@ -53582,7 +53595,7 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53582
53595
  "is-success": h.value,
53583
53596
  "is-failed": r.value === "idle" && c.value,
53584
53597
  "is-revoked": m.value
53585
- })), _ = O(() => w.value), E = O(() => n.syncError ? "bkflow-canvas-circle-alert-filled" : r.value === "terminating" ? "bkflow-canvas-loading" : "bkflow-canvas-debug"), k = O(() => r.value === "running" || r.value === "terminating" ? "bkflow-canvas-loading" : m.value ? "bkflow-canvas-stop-2" : c.value ? "bkflow-canvas-close-circle" : h.value ? "bkflow-canvas-check-circle" : "bkflow-canvas-debug"), y = O(() => d.value ? "全局" : "单步"), C = O(() => r.value === "running" ? "调试中" : r.value === "terminating" ? "终止中" : s.value ? m.value ? `${y.value}调试终止` : c.value ? `${y.value}调试失败` : `${y.value}调试成功` : "调试"), x = O(() => n.summary.active || s.value), S = O(() => r.value === "running" || r.value === "terminating"), T = O(() => r.value === "terminating" || n.terminatePending), M = O(() => r.value === "idle" && s.value), V = O(() => d.value ? "重新调试" : "全局调试"), N = O(() => d.value ? "debug-restart" : "debug-global-entry"), q = O(() => n.summary.active || s.value), Q = O(() => d.value ? n.summary.nodeCount : 1), G = O(() => n.summary.errorNodeCount > 0), U = O(() => n.syncError ? null : gpe(n.context, n.summary)), Y = O(() => fpe(n.summary.durationMs)), z = () => {
53598
+ })), _ = O(() => w.value), E = O(() => n.syncError ? "bkflow-canvas-circle-alert-filled" : r.value === "terminating" ? "bkflow-canvas-loading" : "bkflow-canvas-debug"), k = O(() => r.value === "running" || r.value === "terminating" ? "bkflow-canvas-loading" : m.value ? "bkflow-canvas-stop-2" : c.value ? "bkflow-canvas-close-circle" : h.value ? "bkflow-canvas-check-circle" : "bkflow-canvas-debug"), y = O(() => d.value ? "全局" : "单步"), C = O(() => r.value === "running" ? "调试中" : r.value === "terminating" ? "终止中" : s.value ? m.value ? `${y.value}调试终止` : c.value ? `${y.value}调试失败` : `${y.value}调试成功` : "调试"), x = O(() => n.summary.active || s.value), S = O(() => r.value === "running" || r.value === "terminating"), T = O(() => r.value === "terminating" || n.terminatePending), M = O(() => r.value === "idle" && s.value), V = O(() => d.value ? "重新调试" : "全局调试"), N = O(() => d.value ? "debug-restart" : "debug-global-entry"), q = O(() => n.summary.active || s.value), Q = O(() => d.value ? n.summary.nodeCount : 1), G = O(() => n.summary.errorNodeCount > 0), U = O(() => n.syncError ? null : bpe(n.context, n.summary)), Y = O(() => vpe(n.summary.durationMs)), z = () => {
53586
53599
  if (!n.initializing) {
53587
53600
  if (v.value) {
53588
53601
  a("start");
@@ -53602,7 +53615,7 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53602
53615
  };
53603
53616
  return (ue, Z) => {
53604
53617
  const oe = ye("bk-button"), pe = Qt("bk-tooltips");
53605
- return b(), P("div", hpe, [
53618
+ return b(), P("div", ype, [
53606
53619
  D("button", {
53607
53620
  type: "button",
53608
53621
  "data-test": "debug-trigger",
@@ -53614,7 +53627,7 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53614
53627
  g.value ? (b(), P("span", {
53615
53628
  key: 0,
53616
53629
  class: te(["debug-trigger__badge", `is-${g.value.tone}`])
53617
- }, se(g.value.text), 3)) : r.value === "running" ? (b(), P("span", ype, [...Z[0] || (Z[0] = [
53630
+ }, se(g.value.text), 3)) : r.value === "running" ? (b(), P("span", Ape, [...Z[0] || (Z[0] = [
53618
53631
  D("span", null, null, -1),
53619
53632
  D("span", null, null, -1),
53620
53633
  D("span", null, null, -1)
@@ -53622,9 +53635,9 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53622
53635
  key: 2,
53623
53636
  class: te(["bkflow-canvas-icon", E.value, "debug-trigger__icon"])
53624
53637
  }, null, 2)),
53625
- D("span", wpe, se(A.value), 1)
53626
- ], 10, bpe),
53627
- x.value ? (b(), P("div", Ape, [
53638
+ D("span", kpe, se(A.value), 1)
53639
+ ], 10, wpe),
53640
+ x.value ? (b(), P("div", Cpe, [
53628
53641
  D("div", {
53629
53642
  class: te(["summary-title", w.value]),
53630
53643
  "data-test": "summary-title"
@@ -53634,20 +53647,20 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53634
53647
  }, null, 2),
53635
53648
  D("span", null, se(C.value), 1)
53636
53649
  ], 2),
53637
- D("div", kpe, [
53650
+ D("div", _pe, [
53638
53651
  Z[1] || (Z[1] = D("span", { class: "summary-label" }, "调试用时", -1)),
53639
- D("span", Cpe, se(Y.value), 1)
53652
+ D("span", xpe, se(Y.value), 1)
53640
53653
  ]),
53641
- q.value ? (b(), P("div", _pe, [
53654
+ q.value ? (b(), P("div", Spe, [
53642
53655
  Z[3] || (Z[3] = D("span", { class: "summary-label" }, "调试节点", -1)),
53643
- D("span", xpe, [
53644
- D("span", Spe, se(Q.value), 1),
53656
+ D("span", Epe, [
53657
+ D("span", Ipe, se(Q.value), 1),
53645
53658
  Z[2] || (Z[2] = ze(" 个 ", -1))
53646
53659
  ])
53647
53660
  ])) : J("", !0),
53648
- G.value ? (b(), P("div", Epe, [
53661
+ G.value ? (b(), P("div", Tpe, [
53649
53662
  Z[5] || (Z[5] = D("span", { class: "summary-label" }, "失败节点", -1)),
53650
- D("span", Ipe, [
53663
+ D("span", Ope, [
53651
53664
  U.value ? st((b(), P("i", {
53652
53665
  key: 0,
53653
53666
  class: te([
@@ -53661,7 +53674,7 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53661
53674
  tabindex: U.value.disabled ? -1 : 0,
53662
53675
  onClick: wt(X, ["stop"]),
53663
53676
  onKeydown: Fn(wt(X, ["prevent"]), ["enter", "space"])
53664
- }, null, 42, Tpe)), [
53677
+ }, null, 42, Dpe)), [
53665
53678
  [pe, U.value.tooltip]
53666
53679
  ]) : J("", !0),
53667
53680
  st((b(), P("span", {
@@ -53673,13 +53686,13 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53673
53686
  onKeydown: Fn(wt($, ["prevent"]), ["enter", "space"])
53674
53687
  }, [
53675
53688
  ze(se(e.summary.errorNodeCount), 1)
53676
- ], 40, Ope)), [
53689
+ ], 40, Mpe)), [
53677
53690
  [pe, "定位错误"]
53678
53691
  ]),
53679
53692
  Z[4] || (Z[4] = ze(" 个 ", -1))
53680
53693
  ])
53681
53694
  ])) : J("", !0),
53682
- S.value ? (b(), P("div", Dpe, [
53695
+ S.value ? (b(), P("div", Ppe, [
53683
53696
  L(oe, {
53684
53697
  "data-test": "debug-terminate",
53685
53698
  outline: "",
@@ -53694,7 +53707,7 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53694
53707
  _: 1
53695
53708
  }, 8, ["disabled"])
53696
53709
  ])) : J("", !0),
53697
- M.value ? (b(), P("div", Mpe, [
53710
+ M.value ? (b(), P("div", Vpe, [
53698
53711
  L(oe, {
53699
53712
  "data-test": N.value,
53700
53713
  outline: "",
@@ -53712,27 +53725,27 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53712
53725
  ]);
53713
53726
  };
53714
53727
  }
53715
- }), Vpe = /* @__PURE__ */ rt(Ppe, [["__scopeId", "data-v-10d7e32f"]]), Bpe = {
53728
+ }), Npe = /* @__PURE__ */ rt(Bpe, [["__scopeId", "data-v-10d7e32f"]]), Lpe = {
53716
53729
  class: "node-debug-config",
53717
53730
  "data-test": "node-debug-config"
53718
- }, Npe = { class: "node-debug-config__section" }, Lpe = {
53731
+ }, Rpe = { class: "node-debug-config__section" }, Fpe = {
53719
53732
  class: "node-debug-config__params",
53720
53733
  "data-test": "input-params"
53721
- }, Rpe = { key: 0 }, Fpe = {
53734
+ }, zpe = { key: 0 }, jpe = {
53722
53735
  class: "node-debug-config__error",
53723
53736
  colspan: "2"
53724
- }, zpe = { key: 1 }, jpe = ["title"], Hpe = { class: "col-value" }, Wpe = {
53737
+ }, Hpe = { key: 1 }, Wpe = ["title"], Upe = { class: "col-value" }, Gpe = {
53725
53738
  key: 0,
53726
53739
  class: "node-debug-config__missing-value",
53727
53740
  "data-test": "missing-value"
53728
- }, Upe = {
53741
+ }, Ype = {
53729
53742
  key: 2,
53730
53743
  class: "node-debug-config__value"
53731
- }, Gpe = { class: "node-debug-config__jump-candidates" }, Ype = ["onClick"], qpe = {
53744
+ }, qpe = { class: "node-debug-config__jump-candidates" }, Qpe = ["onClick"], $pe = {
53732
53745
  key: 0,
53733
53746
  class: "node-debug-config__reason",
53734
53747
  "data-test": "missing-reason"
53735
- }, Qpe = { class: "node-debug-config__actions" }, $pe = /* @__PURE__ */ Ce({
53748
+ }, Kpe = { class: "node-debug-config__actions" }, Zpe = /* @__PURE__ */ Ce({
53736
53749
  __name: "index",
53737
53750
  props: {
53738
53751
  node: {},
@@ -53753,7 +53766,7 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53753
53766
  visibleInputs: d,
53754
53767
  meta: c
53755
53768
  } = Cx({ component: () => n.node?.component }), m = O(() => !l.value || o.value.length > 0), h = O(() => GA(c.value.outputs)), v = O(
53756
- () => ppe({
53769
+ () => mpe({
53757
53770
  realBlocked: m.value,
53758
53771
  isMock: r.value,
53759
53772
  isActiveStep: n.isActiveStep,
@@ -53791,10 +53804,10 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53791
53804
  };
53792
53805
  return (k, y) => {
53793
53806
  const C = ye("bk-button"), x = ye("bk-popover"), S = Qt("bkloading"), T = Qt("bk-tooltips");
53794
- return b(), P("div", Bpe, [
53795
- st((b(), P("div", Npe, [
53807
+ return b(), P("div", Lpe, [
53808
+ st((b(), P("div", Rpe, [
53796
53809
  y[10] || (y[10] = D("div", { class: "node-debug-config__section-title" }, "输入参数", -1)),
53797
- D("table", Lpe, [
53810
+ D("table", Fpe, [
53798
53811
  y[9] || (y[9] = D("thead", null, [
53799
53812
  D("tr", null, [
53800
53813
  D("th", { class: "col-name" }, "参数名"),
@@ -53802,9 +53815,9 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53802
53815
  ])
53803
53816
  ], -1)),
53804
53817
  D("tbody", null, [
53805
- p(u) ? (b(), P("tr", Rpe, [
53806
- D("td", Fpe, se(p(u)), 1)
53807
- ])) : !p(s) && w.value.length === 0 ? (b(), P("tr", zpe, [...y[5] || (y[5] = [
53818
+ p(u) ? (b(), P("tr", zpe, [
53819
+ D("td", jpe, se(p(u)), 1)
53820
+ ])) : !p(s) && w.value.length === 0 ? (b(), P("tr", Hpe, [...y[5] || (y[5] = [
53808
53821
  D("td", {
53809
53822
  class: "node-debug-config__empty",
53810
53823
  colspan: "2"
@@ -53817,16 +53830,16 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53817
53830
  D("td", {
53818
53831
  class: "col-name",
53819
53832
  title: M.key
53820
- }, se(M.name), 9, jpe),
53821
- D("td", Hpe, [
53822
- M.missing.length > 0 ? (b(), P("div", Wpe, [...y[6] || (y[6] = [
53833
+ }, se(M.name), 9, Wpe),
53834
+ D("td", Upe, [
53835
+ M.missing.length > 0 ? (b(), P("div", Gpe, [...y[6] || (y[6] = [
53823
53836
  D("i", { class: "bkflow-canvas-icon bkflow-canvas-circle-alert-filled" }, null, -1),
53824
53837
  D("span", null, "暂无参数值", -1)
53825
53838
  ])])) : M.isComplex ? (b(), ne(pg, {
53826
53839
  key: 1,
53827
53840
  value: M.rawValue,
53828
53841
  "data-test": "json-viewer"
53829
- }, null, 8, ["value"])) : (b(), P("pre", Upe, se(M.display), 1)),
53842
+ }, null, 8, ["value"])) : (b(), P("pre", Ype, se(M.display), 1)),
53830
53843
  M.jumpCandidates.length === 1 ? (b(), ne(C, {
53831
53844
  key: 3,
53832
53845
  text: "",
@@ -53846,13 +53859,13 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53846
53859
  placement: "bottom-start"
53847
53860
  }, {
53848
53861
  content: j(() => [
53849
- D("div", Gpe, [
53862
+ D("div", qpe, [
53850
53863
  (b(!0), P(Oe, null, dt(M.jumpCandidates, (V) => (b(), P("div", {
53851
53864
  key: V.source_node_id,
53852
53865
  class: "node-debug-config__jump-candidate",
53853
53866
  "data-test": "jump-candidate",
53854
53867
  onClick: (N) => E(V.source_node_id)
53855
- }, se(_(V.source_node_id)), 9, Ype))), 128))
53868
+ }, se(_(V.source_node_id)), 9, Qpe))), 128))
53856
53869
  ])
53857
53870
  ]),
53858
53871
  default: j(() => [
@@ -53877,8 +53890,8 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53877
53890
  ])), [
53878
53891
  [S, { loading: p(s) }]
53879
53892
  ]),
53880
- m.value && o.value.length > 0 ? (b(), P("div", qpe, se(p(Xo).realBlocked), 1)) : J("", !0),
53881
- D("div", Qpe, [
53893
+ m.value && o.value.length > 0 ? (b(), P("div", $pe, se(p(Xo).realBlocked), 1)) : J("", !0),
53894
+ D("div", Kpe, [
53882
53895
  v.value.primary.kind === "terminate" ? (b(), ne(C, {
53883
53896
  key: 0,
53884
53897
  outline: "",
@@ -53958,7 +53971,7 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53958
53971
  ]);
53959
53972
  };
53960
53973
  }
53961
- }), Kpe = /* @__PURE__ */ rt($pe, [["__scopeId", "data-v-1d567a44"]]), Zpe = (e) => {
53974
+ }), Xpe = /* @__PURE__ */ rt(Zpe, [["__scopeId", "data-v-1d567a44"]]), Jpe = (e) => {
53962
53975
  const t = [
53963
53976
  e.start_event?.id,
53964
53977
  ...Object.keys(e.activities ?? {}),
@@ -53967,9 +53980,9 @@ const hpe = { class: "debug-trigger" }, bpe = ["disabled", "title"], ype = {
53967
53980
  ].filter((n) => !!n);
53968
53981
  return [...new Set(t)];
53969
53982
  };
53970
- function Xpe(e) {
53983
+ function eve(e) {
53971
53984
  if (!e) return [];
53972
- const t = Zpe(e), n = new Set(t), a = new Map(t.map((v, g) => [v, g])), o = new Map((e.location ?? []).map((v) => [v.id, v])), l = new Map(t.map((v) => [v, []])), r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set();
53985
+ const t = Jpe(e), n = new Set(t), a = new Map(t.map((v, g) => [v, g])), o = new Map((e.location ?? []).map((v) => [v.id, v])), l = new Map(t.map((v) => [v, []])), r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set();
53973
53986
  Object.values(e.flows ?? {}).forEach((v, g) => {
53974
53987
  if (!n.has(v.source) || !n.has(v.target)) return;
53975
53988
  const A = `${v.source}\0${v.target}`;
@@ -54014,7 +54027,7 @@ function Xpe(e) {
54014
54027
  }, h = new Set(t.filter((v) => !d.has(v)));
54015
54028
  return [...m(d), ...m(h)];
54016
54029
  }
54017
- const Jpe = {
54030
+ const tve = {
54018
54031
  ExclusiveGateway: "bkflow-canvas-icon bkflow-canvas-fenzhiwangguan",
54019
54032
  ParallelGateway: "bkflow-canvas-icon bkflow-canvas-bingxingwangguan",
54020
54033
  ConditionalParallelGateway: "bkflow-canvas-icon bkflow-canvas-tiaojianbingxingwangguan",
@@ -54027,8 +54040,8 @@ const Jpe = {
54027
54040
  ParallelGateway: "并行网关",
54028
54041
  ConditionalParallelGateway: "条件并行网关",
54029
54042
  ConvergeGateway: "汇聚网关"
54030
- }, eve = (e) => !e || e.includes("bkflow-canvas-icon") ? e : `bkflow-canvas-icon ${e}`;
54031
- function tve(e) {
54043
+ }, nve = (e) => !e || e.includes("bkflow-canvas-icon") ? e : `bkflow-canvas-icon ${e}`;
54044
+ function ave(e) {
54032
54045
  if (!e.component?.code) return "";
54033
54046
  if (e.component.code === "uniform_api") {
54034
54047
  const t = e.component.api_meta?.category?.name ?? "";
@@ -54036,21 +54049,21 @@ function tve(e) {
54036
54049
  }
54037
54050
  return Pl.bkflow;
54038
54051
  }
54039
- function nve(e, t) {
54040
- const n = e?.location?.find((r) => r.id === t), a = eve(n?.icon ?? ""), o = e?.activities?.[t];
54052
+ function ove(e, t) {
54053
+ const n = e?.location?.find((r) => r.id === t), a = nve(n?.icon ?? ""), o = e?.activities?.[t];
54041
54054
  if (o)
54042
54055
  return {
54043
54056
  name: !!o.component?.code ? o.name || n?.name || t : "节点未配置",
54044
54057
  type: o.type || "ServiceActivity",
54045
54058
  typeName: lm[o.type] ?? "任务节点",
54046
- icon: tve(o)
54059
+ icon: ave(o)
54047
54060
  };
54048
54061
  const l = e?.gateways?.[t];
54049
54062
  return l ? {
54050
54063
  name: l.name || n?.name || lm[l.type] || t,
54051
54064
  type: l.type,
54052
54065
  typeName: lm[l.type] ?? "网关",
54053
- icon: a || Jpe[l.type] || ""
54066
+ icon: a || tve[l.type] || ""
54054
54067
  } : e?.start_event?.id === t ? {
54055
54068
  name: e.start_event.name || "开始",
54056
54069
  type: "EmptyStartEvent",
@@ -54069,17 +54082,17 @@ function nve(e, t) {
54069
54082
  } : { name: t, type: "", typeName: "", icon: "" };
54070
54083
  }
54071
54084
  function Wd(e) {
54072
- return e ? Xpe(e).filter(
54085
+ return e ? eve(e).filter(
54073
54086
  (t) => !!(e.activities?.[t] || e.gateways?.[t])
54074
54087
  ) : [];
54075
54088
  }
54076
- function Bve(e, t, n = /* @__PURE__ */ new Set()) {
54089
+ function Lve(e, t, n = /* @__PURE__ */ new Set()) {
54077
54090
  if (!e) return [];
54078
54091
  const a = new Map(
54079
54092
  (t ?? []).map((o) => [o.node_id, il(o.status)])
54080
54093
  );
54081
54094
  return Wd(e).map((o) => {
54082
- const l = e.activities?.[o], r = l ? !!l.component?.code : !0, s = nve(e, o);
54095
+ const l = e.activities?.[o], r = l ? !!l.component?.code : !0, s = ove(e, o);
54083
54096
  return {
54084
54097
  id: o,
54085
54098
  name: s.name,
@@ -54092,7 +54105,7 @@ function Bve(e, t, n = /* @__PURE__ */ new Set()) {
54092
54105
  };
54093
54106
  });
54094
54107
  }
54095
- function ave(e) {
54108
+ function lve(e) {
54096
54109
  if (!e) return {};
54097
54110
  if (e.mock_outputs && Object.keys(e.mock_outputs).length > 0)
54098
54111
  return e.mock_outputs;
@@ -54113,7 +54126,7 @@ function kA(e, t) {
54113
54126
  };
54114
54127
  }
54115
54128
  const CA = (e) => typeof e == "string" ? e : e instanceof Error ? e.message : "加载调试结果失败";
54116
- function ove(e) {
54129
+ function sve(e) {
54117
54130
  const t = B(!1), n = B(!1), a = B(""), o = B(""), l = B(""), r = Ct({ status: "not_run" }), s = Ct({}), u = Ct({}), d = Ct(void 0), c = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
54118
54131
  let h = 0, v = 0;
54119
54132
  const g = (E) => {
@@ -54132,7 +54145,7 @@ function ove(e) {
54132
54145
  durationMs: C?.duration_ms ?? void 0,
54133
54146
  errorDetail: C?.error_detail
54134
54147
  };
54135
- const S = e.fallbackInputs?.() ?? {}, T = ave(C), M = C?.mock_error ?? (typeof C?.error_detail == "string" ? C.error_detail : "");
54148
+ const S = e.fallbackInputs?.() ?? {}, T = lve(C), M = C?.mock_error ?? (typeof C?.error_detail == "string" ? C.error_detail : "");
54136
54149
  if (!C?.log_ref) {
54137
54150
  s.value = S, u.value = T, d.value = void 0, a.value = M, o.value = "", l.value = "", n.value = !1, t.value = !1;
54138
54151
  return;
@@ -54160,7 +54173,7 @@ function ove(e) {
54160
54173
  const W = No(z);
54161
54174
  s.value = No(W?.inputs) ?? {};
54162
54175
  const H = W?.outputs ?? {};
54163
- u.value = Mde(H) ? T : H, G && c.set(Q, {
54176
+ u.value = Vde(H) ? T : H, G && c.set(Q, {
54164
54177
  inputs: s.value,
54165
54178
  outputs: u.value
54166
54179
  });
@@ -54245,7 +54258,7 @@ function ove(e) {
54245
54258
  logs: d.value
54246
54259
  }));
54247
54260
  }
54248
- function lve(e, t) {
54261
+ function rve(e, t) {
54249
54262
  if (e.length < 1) return null;
54250
54263
  const n = (t % e.length + e.length) % e.length;
54251
54264
  return {
@@ -54253,7 +54266,7 @@ function lve(e, t) {
54253
54266
  nextCursor: t + 1
54254
54267
  };
54255
54268
  }
54256
- function sve(e) {
54269
+ function ive(e) {
54257
54270
  const { api: t } = e, n = Ct(null), a = Ct([]), o = Ct({}), l = Ct([]), r = O(() => BA(l.value, { spaceConfig: o.value, api: t })), s = B(!1), u = B(!1), d = B(!1), c = B(!1), m = B(!1), h = O(
54258
54271
  () => d.value || c.value || m.value
54259
54272
  ), v = () => e.flowId(), g = () => e.enableVersion?.() ?? !1, A = () => e.flowVersion?.();
@@ -54355,13 +54368,13 @@ function sve(e) {
54355
54368
  save: T
54356
54369
  };
54357
54370
  }
54358
- const rve = {
54371
+ const uve = {
54359
54372
  key: 0,
54360
54373
  class: "flow-detail-operate-area"
54361
- }, ive = {
54374
+ }, cve = {
54362
54375
  key: 1,
54363
54376
  class: "flow-detail-operate-btns"
54364
- }, uve = { class: "flow-detail-canvas-wrapper" }, cve = /* @__PURE__ */ Ce({
54377
+ }, dve = { class: "flow-detail-canvas-wrapper" }, fve = /* @__PURE__ */ Ce({
54365
54378
  __name: "index",
54366
54379
  props: {
54367
54380
  flowId: {},
@@ -54386,8 +54399,8 @@ const rve = {
54386
54399
  emits: ["save", "saveSuccess", "executeSuccess", "back", "createVariable"],
54387
54400
  setup(e, { expose: t, emit: n }) {
54388
54401
  const a = yd(
54389
- () => import("./index-BNn7pD-q.js")
54390
- ), o = yd(() => import("./index-BS7obrkw.js")), l = yd(() => import("./index-CvhThQOj.js")), r = oa(), s = e, u = n, d = O(() => ({
54402
+ () => import("./index-CoMRlJ6B.js")
54403
+ ), o = yd(() => import("./index-CYYAgUFr.js")), l = yd(() => import("./index-PRLJjFf4.js")), r = oa(), s = e, u = n, d = O(() => ({
54391
54404
  canEdit: s.permissions?.canEdit ?? !1,
54392
54405
  canDebug: s.permissions?.canDebug ?? !1,
54393
54406
  canExecute: s.permissions?.canExecute ?? !1
@@ -54401,7 +54414,7 @@ const rve = {
54401
54414
  defaultCustomType: Re.defaultCustomType
54402
54415
  }), h.value?.openGlobalVariableCreate(Re);
54403
54416
  });
54404
- const w = sve({
54417
+ const w = ive({
54405
54418
  flowId: () => String(s.flowId),
54406
54419
  enableVersion: () => s.enableVersion,
54407
54420
  flowVersion: () => s.flowVersion,
@@ -54414,7 +54427,7 @@ const rve = {
54414
54427
  const E = w.systemVariables, k = w.pluginGroupList, y = w.savePending, C = O(() => w.loading.value), x = O(() => {
54415
54428
  const Re = _.value?.pipeline_tree;
54416
54429
  return Re ? new Set(Wd(Re)) : null;
54417
- }), S = cpe({
54430
+ }), S = fpe({
54418
54431
  templateId: () => String(s.flowId),
54419
54432
  enabled: () => d.value.canDebug,
54420
54433
  api: m,
@@ -54612,7 +54625,7 @@ const rve = {
54612
54625
  }
54613
54626
  );
54614
54627
  const ce = () => {
54615
- const Re = lve(F.value, K.value);
54628
+ const Re = rve(F.value, K.value);
54616
54629
  Re && (K.value = Re.nextCursor, fl(Re.nodeId));
54617
54630
  }, ae = (Re) => {
54618
54631
  S.terminatePending.value || Lo({
@@ -54739,7 +54752,7 @@ const rve = {
54739
54752
  kt.value = Re, xt && aa(Re);
54740
54753
  }, ur = (Re) => {
54741
54754
  (Re.type === "blank.click" || Re.type === "node.click" || Re.type === "edge.click" || Re.type === "edge.label.click") && (fn.value = "");
54742
- }, rc = ove({
54755
+ }, rc = sve({
54743
54756
  api: m,
54744
54757
  context: () => S.context.value,
54745
54758
  nodeId: () => kt.value,
@@ -54844,7 +54857,7 @@ const rve = {
54844
54857
  Ze(Re.$slots, "header", {}, void 0, !0)
54845
54858
  ]),
54846
54859
  extend: j(() => [
54847
- p(_) ? (b(), P("div", rve, [
54860
+ p(_) ? (b(), P("div", uve, [
54848
54861
  L(tp, {
54849
54862
  ref_key: "flowInfoSlidersRef",
54850
54863
  ref: h,
@@ -54856,7 +54869,7 @@ const rve = {
54856
54869
  onUpdateConstants: fe,
54857
54870
  onUpdateOutputs: he
54858
54871
  }, null, 8, ["flow-data", "editable", "system-variables", "hide-trigger"]),
54859
- d.value.canDebug ? (b(), ne(Vpe, {
54872
+ d.value.canDebug ? (b(), ne(Npe, {
54860
54873
  key: 0,
54861
54874
  context: p(S).context.value,
54862
54875
  summary: p(S).canvasState.value.summary,
@@ -54869,7 +54882,7 @@ const rve = {
54869
54882
  onLocateFailed: ce,
54870
54883
  onRetryStep: Di
54871
54884
  }, null, 8, ["context", "summary", "initializing", "sync-error", "terminate-pending"])) : J("", !0),
54872
- d.value.canEdit || d.value.canExecute || r.headerActions ? (b(), P("div", ive, [
54885
+ d.value.canEdit || d.value.canExecute || r.headerActions ? (b(), P("div", cve, [
54873
54886
  d.value.canEdit ? st((b(), ne(kn, {
54874
54887
  key: 0,
54875
54888
  "data-test": "save-flow",
@@ -54901,7 +54914,7 @@ const rve = {
54901
54914
  ])) : J("", !0)
54902
54915
  ]),
54903
54916
  default: j(() => [
54904
- st((b(), P("div", uve, [
54917
+ st((b(), P("div", dve, [
54905
54918
  !C.value && p(_) ? (b(), ne(xf, {
54906
54919
  key: 0,
54907
54920
  ref_key: "flowCanvasRef",
@@ -54923,7 +54936,7 @@ const rve = {
54923
54936
  Ze(Re.$slots, "inputParams", wa(Aa({ ...En, updateNodeInputParams: bt })), void 0, !0)
54924
54937
  ]),
54925
54938
  nodeDebugConfig: j(({ node: En, close: fc }) => [
54926
- L(Kpe, {
54939
+ L(Xpe, {
54927
54940
  node: En,
54928
54941
  "context-node": Pe(En.id),
54929
54942
  stale: U.value,
@@ -55008,40 +55021,40 @@ const rve = {
55008
55021
  }, 8, ["desc"]);
55009
55022
  };
55010
55023
  }
55011
- }), Nve = /* @__PURE__ */ rt(cve, [["__scopeId", "data-v-40c792af"]]), Lve = (e) => "default" in e ? e.default : "", Rve = {
55012
- FlowView: () => Promise.resolve().then(() => jce),
55013
- FlowEdit: () => Promise.resolve().then(() => Qce),
55014
- FlowCreateTask: () => Promise.resolve().then(() => pce),
55015
- FlowExecute: () => Promise.resolve().then(() => mde),
55016
- FlowDebug: () => Promise.resolve().then(() => yce),
55024
+ }), Rve = /* @__PURE__ */ rt(fve, [["__scopeId", "data-v-40c792af"]]), Fve = (e) => "default" in e ? e.default : "", zve = {
55025
+ FlowView: () => Promise.resolve().then(() => Wce),
55026
+ FlowEdit: () => Promise.resolve().then(() => Kce),
55027
+ FlowCreateTask: () => Promise.resolve().then(() => mce),
55028
+ FlowExecute: () => Promise.resolve().then(() => hde),
55029
+ FlowDebug: () => Promise.resolve().then(() => Ace),
55017
55030
  /**
55018
55031
  * @deprecated Use FlowDetail with permissions.canDebug instead.
55019
55032
  * FlowMockDebug will be removed in the next major version.
55020
55033
  */
55021
- FlowMockDebug: () => Promise.resolve().then(() => Qfe)
55034
+ FlowMockDebug: () => Promise.resolve().then(() => Kfe)
55022
55035
  };
55023
55036
  export {
55024
55037
  Hu as $,
55025
- qce as A,
55038
+ $ce as A,
55026
55039
  Yh as B,
55027
- Tfe as C,
55040
+ Dfe as C,
55028
55041
  pg as D,
55029
55042
  $n as E,
55030
55043
  lb as F,
55031
- vde as G,
55032
- qfe as H,
55033
- zce as I,
55044
+ gde as G,
55045
+ $fe as H,
55046
+ Hce as I,
55034
55047
  Xne as J,
55035
55048
  Zne as K,
55036
55049
  wf as L,
55037
55050
  pA as M,
55038
55051
  Hne as N,
55039
55052
  sb as O,
55040
- Rve as P,
55053
+ zve as P,
55041
55054
  Xa as Q,
55042
55055
  ep as R,
55043
55056
  ob as S,
55044
- Lve as T,
55057
+ Fve as T,
55045
55058
  Vy as U,
55046
55059
  Yv as V,
55047
55060
  BO as W,
@@ -55052,35 +55065,35 @@ export {
55052
55065
  xO as a,
55053
55066
  WA as a0,
55054
55067
  Dg as a1,
55055
- tde as a2,
55056
- Ive as a3,
55057
- Tve as a4,
55068
+ ade as a2,
55069
+ Ove as a3,
55070
+ Dve as a4,
55058
55071
  fO as a5,
55059
55072
  Df as a6,
55060
55073
  js as a7,
55061
55074
  ib as b,
55062
55075
  at as c,
55063
55076
  Ef as d,
55064
- fpe as e,
55077
+ vpe as e,
55065
55078
  _O as f,
55066
55079
  qg as g,
55067
55080
  GA as h,
55068
55081
  is as i,
55069
- Zfe as j,
55082
+ Jfe as j,
55070
55083
  Cx as k,
55071
55084
  kx as l,
55072
55085
  wO as m,
55073
- Lde as n,
55074
- Nde as o,
55086
+ Fde as n,
55087
+ Rde as o,
55075
55088
  ef as p,
55076
- Bve as q,
55089
+ Lve as q,
55077
55090
  rm as r,
55078
- Ove as s,
55079
- Bde as t,
55091
+ Mve as s,
55092
+ Lde as t,
55080
55093
  ka as u,
55081
55094
  $h as v,
55082
55095
  G3 as w,
55083
55096
  Kv as x,
55084
55097
  Sf as y,
55085
- Nve as z
55098
+ Rve as z
55086
55099
  };