@emporix/process-diagram 2.0.0-beta.29 → 2.0.0-beta.30

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.
Files changed (50) hide show
  1. package/dist/App.d.ts.map +1 -1
  2. package/dist/Condition.d.ts +6 -0
  3. package/dist/Condition.d.ts.map +1 -0
  4. package/dist/Curve.d.ts +6 -0
  5. package/dist/Curve.d.ts.map +1 -0
  6. package/dist/Item.d.ts +7 -0
  7. package/dist/Item.d.ts.map +1 -0
  8. package/dist/Items.d.ts +6 -0
  9. package/dist/Items.d.ts.map +1 -0
  10. package/dist/Row.d.ts +6 -0
  11. package/dist/Row.d.ts.map +1 -0
  12. package/dist/Steps.d.ts +13 -0
  13. package/dist/Steps.d.ts.map +1 -0
  14. package/dist/components/curve/Curve.d.ts +3 -3
  15. package/dist/components/curve/Curve.d.ts.map +1 -1
  16. package/dist/components/iterator/Iterator.d.ts +2 -2
  17. package/dist/components/iterator/Iterator.d.ts.map +1 -1
  18. package/dist/components/process-debugger-diagram/DebuggerIterator.d.ts +4 -4
  19. package/dist/components/process-debugger-diagram/DebuggerIterator.d.ts.map +1 -1
  20. package/dist/components/process-debugger-diagram/DebuggerRow.d.ts +2 -2
  21. package/dist/components/process-debugger-diagram/DebuggerRow.d.ts.map +1 -1
  22. package/dist/components/process-debugger-diagram/DebuggerSteps.d.ts +3 -3
  23. package/dist/components/process-debugger-diagram/DebuggerSteps.d.ts.map +1 -1
  24. package/dist/components/process-debugger-diagram/StepConnector.d.ts +3 -3
  25. package/dist/components/process-debugger-diagram/StepConnector.d.ts.map +1 -1
  26. package/dist/components/step/Step.d.ts +1 -1
  27. package/dist/components/step/Step.d.ts.map +1 -1
  28. package/dist/components/triggers/IfStatement.d.ts +5 -0
  29. package/dist/components/triggers/IfStatement.d.ts.map +1 -0
  30. package/dist/helpers/debuggerConnector.helpers.d.ts +1 -1
  31. package/dist/helpers/debuggerConnector.helpers.d.ts.map +1 -1
  32. package/dist/helpers/finishedSequentialLine.helpers.d.ts +8 -8
  33. package/dist/helpers/finishedSequentialLine.helpers.d.ts.map +1 -1
  34. package/dist/helpers/processGraph.helpers.d.ts +3 -3
  35. package/dist/helpers/processGraph.helpers.d.ts.map +1 -1
  36. package/dist/index.cjs +1 -1
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.mjs +563 -563
  39. package/dist/index.mjs.map +1 -1
  40. package/dist/types/index.d.ts +2 -2
  41. package/dist/types/index.d.ts.map +1 -1
  42. package/dist/utils.d.ts +16 -0
  43. package/dist/utils.d.ts.map +1 -0
  44. package/package.json +1 -1
  45. /package/dist/components/{menu → Menu}/Menu.d.ts +0 -0
  46. /package/dist/components/{menu → Menu}/Menu.d.ts.map +0 -0
  47. /package/dist/components/{menu → Menu}/Separator.d.ts +0 -0
  48. /package/dist/components/{menu → Menu}/Separator.d.ts.map +0 -0
  49. /package/dist/components/{menu → Menu}/index.d.ts +0 -0
  50. /package/dist/components/{menu → Menu}/index.d.ts.map +0 -0
package/dist/index.mjs CHANGED
@@ -1,19 +1,19 @@
1
1
  import { jsxs as C, Fragment as tt, jsx as n } from "react/jsx-runtime";
2
2
  import X, { forwardRef as pe, useState as D, useRef as F, useCallback as J, useImperativeHandle as he, useEffect as st, createContext as Yt, useMemo as R, useContext as Gt, useLayoutEffect as fe } from "react";
3
3
  import { createPortal as ge } from "react-dom";
4
- const Ce = "_container_1f7x1_1", me = "_step_1f7x1_7", ve = "_dotsButton_1f7x1_23", _e = "_selected_1f7x1_27", xe = "_selectedInvalid_1f7x1_36", Ie = "_isSet_1f7x1_45", we = "_invalid_1f7x1_52", ye = "_debuggerStatus_1f7x1_60", be = "_title_1f7x1_64", Ne = "_icon_1f7x1_67", Le = "_filterFlag_1f7x1_78", Se = "_content_1f7x1_141", k = {
4
+ const Ce = "_container_1f7x1_1", me = "_step_1f7x1_7", ve = "_dotsButton_1f7x1_23", _e = "_selected_1f7x1_27", xe = "_selectedInvalid_1f7x1_36", we = "_isSet_1f7x1_45", ye = "_invalid_1f7x1_52", be = "_debuggerStatus_1f7x1_60", Ne = "_title_1f7x1_64", Le = "_icon_1f7x1_67", Se = "_filterFlag_1f7x1_78", Ie = "_content_1f7x1_141", k = {
5
5
  container: Ce,
6
6
  step: me,
7
7
  dotsButton: ve,
8
8
  selected: _e,
9
9
  selectedInvalid: xe,
10
- isSet: Ie,
11
- invalid: we,
12
- debuggerStatus: ye,
13
- title: be,
14
- icon: Ne,
15
- filterFlag: Le,
16
- content: Se
10
+ isSet: we,
11
+ invalid: ye,
12
+ debuggerStatus: be,
13
+ title: Ne,
14
+ icon: Le,
15
+ filterFlag: Se,
16
+ content: Ie
17
17
  };
18
18
  var Zt = {
19
19
  color: void 0,
@@ -24,57 +24,57 @@ var Zt = {
24
24
  }, At = X.createContext && /* @__PURE__ */ X.createContext(Zt), Ee = ["attr", "size", "title"];
25
25
  function Te(t, e) {
26
26
  if (t == null) return {};
27
- var o = Pe(t, e), i, s;
27
+ var i = Pe(t, e), o, s;
28
28
  if (Object.getOwnPropertySymbols) {
29
29
  var l = Object.getOwnPropertySymbols(t);
30
30
  for (s = 0; s < l.length; s++)
31
- i = l[s], !(e.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(t, i) && (o[i] = t[i]);
31
+ o = l[s], !(e.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(t, o) && (i[o] = t[o]);
32
32
  }
33
- return o;
33
+ return i;
34
34
  }
35
35
  function Pe(t, e) {
36
36
  if (t == null) return {};
37
- var o = {};
38
- for (var i in t)
39
- if (Object.prototype.hasOwnProperty.call(t, i)) {
40
- if (e.indexOf(i) >= 0) continue;
41
- o[i] = t[i];
37
+ var i = {};
38
+ for (var o in t)
39
+ if (Object.prototype.hasOwnProperty.call(t, o)) {
40
+ if (e.indexOf(o) >= 0) continue;
41
+ i[o] = t[o];
42
42
  }
43
- return o;
43
+ return i;
44
44
  }
45
45
  function gt() {
46
46
  return gt = Object.assign ? Object.assign.bind() : function(t) {
47
47
  for (var e = 1; e < arguments.length; e++) {
48
- var o = arguments[e];
49
- for (var i in o)
50
- Object.prototype.hasOwnProperty.call(o, i) && (t[i] = o[i]);
48
+ var i = arguments[e];
49
+ for (var o in i)
50
+ Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
51
51
  }
52
52
  return t;
53
53
  }, gt.apply(this, arguments);
54
54
  }
55
55
  function jt(t, e) {
56
- var o = Object.keys(t);
56
+ var i = Object.keys(t);
57
57
  if (Object.getOwnPropertySymbols) {
58
- var i = Object.getOwnPropertySymbols(t);
59
- e && (i = i.filter(function(s) {
58
+ var o = Object.getOwnPropertySymbols(t);
59
+ e && (o = o.filter(function(s) {
60
60
  return Object.getOwnPropertyDescriptor(t, s).enumerable;
61
- })), o.push.apply(o, i);
61
+ })), i.push.apply(i, o);
62
62
  }
63
- return o;
63
+ return i;
64
64
  }
65
65
  function Ct(t) {
66
66
  for (var e = 1; e < arguments.length; e++) {
67
- var o = arguments[e] != null ? arguments[e] : {};
68
- e % 2 ? jt(Object(o), !0).forEach(function(i) {
69
- ke(t, i, o[i]);
70
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) : jt(Object(o)).forEach(function(i) {
71
- Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(o, i));
67
+ var i = arguments[e] != null ? arguments[e] : {};
68
+ e % 2 ? jt(Object(i), !0).forEach(function(o) {
69
+ ke(t, o, i[o]);
70
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : jt(Object(i)).forEach(function(o) {
71
+ Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(i, o));
72
72
  });
73
73
  }
74
74
  return t;
75
75
  }
76
- function ke(t, e, o) {
77
- return e = Re(e), e in t ? Object.defineProperty(t, e, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = o, t;
76
+ function ke(t, e, i) {
77
+ return e = Re(e), e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
78
78
  }
79
79
  function Re(t) {
80
80
  var e = Oe(t, "string");
@@ -82,17 +82,17 @@ function Re(t) {
82
82
  }
83
83
  function Oe(t, e) {
84
84
  if (typeof t != "object" || !t) return t;
85
- var o = t[Symbol.toPrimitive];
86
- if (o !== void 0) {
87
- var i = o.call(t, e);
88
- if (typeof i != "object") return i;
85
+ var i = t[Symbol.toPrimitive];
86
+ if (i !== void 0) {
87
+ var o = i.call(t, e);
88
+ if (typeof o != "object") return o;
89
89
  throw new TypeError("@@toPrimitive must return a primitive value.");
90
90
  }
91
91
  return (e === "string" ? String : Number)(t);
92
92
  }
93
93
  function Ut(t) {
94
- return t && t.map((e, o) => /* @__PURE__ */ X.createElement(e.tag, Ct({
95
- key: o
94
+ return t && t.map((e, i) => /* @__PURE__ */ X.createElement(e.tag, Ct({
95
+ key: i
96
96
  }, e.attr), Ut(e.child)));
97
97
  }
98
98
  function et(t) {
@@ -101,27 +101,27 @@ function et(t) {
101
101
  }, e), Ut(t.child));
102
102
  }
103
103
  function Me(t) {
104
- var e = (o) => {
104
+ var e = (i) => {
105
105
  var {
106
- attr: i,
106
+ attr: o,
107
107
  size: s,
108
108
  title: l
109
- } = t, a = Te(t, Ee), p = s || o.size || "1em", c;
110
- return o.className && (c = o.className), t.className && (c = (c ? c + " " : "") + t.className), /* @__PURE__ */ X.createElement("svg", gt({
109
+ } = t, a = Te(t, Ee), p = s || i.size || "1em", c;
110
+ return i.className && (c = i.className), t.className && (c = (c ? c + " " : "") + t.className), /* @__PURE__ */ X.createElement("svg", gt({
111
111
  stroke: "currentColor",
112
112
  fill: "currentColor",
113
113
  strokeWidth: "0"
114
- }, o.attr, i, a, {
114
+ }, i.attr, o, a, {
115
115
  className: c,
116
116
  style: Ct(Ct({
117
- color: t.color || o.color
118
- }, o.style), t.style),
117
+ color: t.color || i.color
118
+ }, i.style), t.style),
119
119
  height: p,
120
120
  width: p,
121
121
  xmlns: "http://www.w3.org/2000/svg"
122
122
  }), l && /* @__PURE__ */ X.createElement("title", null, l), t.children);
123
123
  };
124
- return At !== void 0 ? /* @__PURE__ */ X.createElement(At.Consumer, null, (o) => e(o)) : e(Zt);
124
+ return At !== void 0 ? /* @__PURE__ */ X.createElement(At.Consumer, null, (i) => e(i)) : e(Zt);
125
125
  }
126
126
  function $e(t) {
127
127
  return et({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M5.52.359A.5.5 0 0 1 6 0h4a.5.5 0 0 1 .474.658L8.694 6H12.5a.5.5 0 0 1 .395.807l-7 9a.5.5 0 0 1-.873-.454L6.823 9.5H3.5a.5.5 0 0 1-.48-.641zM6.374 1 4.168 8.5H7.5a.5.5 0 0 1 .478.647L6.78 13.04 11.478 7H8a.5.5 0 0 1-.474-.658L9.306 1z" }, child: [] }] })(t);
@@ -144,57 +144,57 @@ const De = "_panel_19663_1", Be = "_panelExiting_19663_13", Fe = "_menuItem_1966
144
144
  menuItemText: We,
145
145
  overlay: He
146
146
  }, Ve = (t) => {
147
- const o = t.currentTarget ?? t.target;
148
- if (o?.getBoundingClientRect) {
149
- const s = o.getBoundingClientRect();
147
+ const i = t.currentTarget ?? t.target;
148
+ if (i?.getBoundingClientRect) {
149
+ const s = i.getBoundingClientRect();
150
150
  return { top: s.bottom + 2, left: s.left };
151
151
  }
152
- const i = t;
152
+ const o = t;
153
153
  return {
154
- top: (i.clientY ?? 0) + 2,
155
- left: i.clientX ?? 0
154
+ top: (o.clientY ?? 0) + 2,
155
+ left: o.clientX ?? 0
156
156
  };
157
- }, It = pe(function({ model: e, popup: o = !0, onHide: i, onClick: s }, l) {
158
- const [a, p] = D(!1), [c, r] = D(!1), [u, I] = D({ top: 0, left: 0 }), w = F(null), b = J(() => {
157
+ }, wt = pe(function({ model: e, popup: i = !0, onHide: o, onClick: s }, l) {
158
+ const [a, p] = D(!1), [c, r] = D(!1), [u, w] = D({ top: 0, left: 0 }), y = F(null), N = J(() => {
159
159
  c || r(!0);
160
160
  }, [c]), _ = J(
161
161
  (m) => {
162
- c && m.animationName.includes("menuOut") && (p(!1), r(!1), i?.());
162
+ c && m.animationName.includes("menuOut") && (p(!1), r(!1), o?.());
163
163
  },
164
- [c, i]
164
+ [c, o]
165
165
  ), g = J((m) => {
166
- I(Ve(m)), r(!1), p(!0);
166
+ w(Ve(m)), r(!1), p(!0);
167
167
  }, []), f = J(
168
168
  (m) => {
169
- a ? b() : g(m);
169
+ a ? N() : g(m);
170
170
  },
171
- [a, b, g]
171
+ [a, N, g]
172
172
  );
173
173
  he(
174
174
  l,
175
175
  () => ({
176
176
  show: g,
177
- hide: b,
177
+ hide: N,
178
178
  toggle: f
179
179
  }),
180
- [g, b, f]
180
+ [g, N, f]
181
181
  ), st(() => {
182
182
  if (!a) return;
183
183
  const m = (d) => {
184
- d.key === "Escape" && b();
185
- }, N = (d) => {
186
- const x = w.current;
187
- x && !x.contains(d.target) && (d.stopPropagation(), b());
184
+ d.key === "Escape" && N();
185
+ }, L = (d) => {
186
+ const x = y.current;
187
+ x && !x.contains(d.target) && (d.stopPropagation(), N());
188
188
  };
189
- return document.addEventListener("keydown", m), document.addEventListener("mousedown", N), () => {
190
- document.removeEventListener("keydown", m), document.removeEventListener("mousedown", N);
189
+ return document.addEventListener("keydown", m), document.addEventListener("mousedown", L), () => {
190
+ document.removeEventListener("keydown", m), document.removeEventListener("mousedown", L);
191
191
  };
192
- }, [a, b]);
193
- const h = (m, N) => {
194
- N.stopPropagation(), m.command?.({ originalEvent: N, item: m }), b();
195
- }, L = (m, N) => {
192
+ }, [a, N]);
193
+ const h = (m, L) => {
194
+ L.stopPropagation(), m.command?.({ originalEvent: L, item: m }), N();
195
+ }, S = (m, L) => {
196
196
  const d = (x) => h(m, x);
197
- return m.template ? /* @__PURE__ */ n(X.Fragment, { children: m.template(m, { onClick: d }) }, N) : /* @__PURE__ */ C(
197
+ return m.template ? /* @__PURE__ */ n(X.Fragment, { children: m.template(m, { onClick: d }) }, L) : /* @__PURE__ */ C(
198
198
  "button",
199
199
  {
200
200
  type: "button",
@@ -207,24 +207,24 @@ const De = "_panel_19663_1", Be = "_panelExiting_19663_13", Fe = "_menuItem_1966
207
207
  /* @__PURE__ */ n("span", { className: H.menuItemText, children: m.label })
208
208
  ]
209
209
  },
210
- N
210
+ L
211
211
  );
212
212
  };
213
- return !a || !o ? null : ge(
213
+ return !a || !i ? null : ge(
214
214
  /* @__PURE__ */ C(tt, { children: [
215
215
  /* @__PURE__ */ n(
216
216
  "div",
217
217
  {
218
218
  className: H.overlay,
219
219
  "aria-hidden": !0,
220
- onClick: () => b(),
220
+ onClick: () => N(),
221
221
  onMouseDown: (m) => m.stopPropagation()
222
222
  }
223
223
  ),
224
224
  /* @__PURE__ */ n(
225
225
  "div",
226
226
  {
227
- ref: w,
227
+ ref: y,
228
228
  className: `${H.panel} ${c ? H.panelExiting : ""}`,
229
229
  role: "menu",
230
230
  style: { top: u.top, left: u.left },
@@ -232,23 +232,23 @@ const De = "_panel_19663_1", Be = "_panelExiting_19663_13", Fe = "_menuItem_1966
232
232
  onClick: (m) => {
233
233
  m.stopPropagation(), s?.(m);
234
234
  },
235
- children: e.map(L)
235
+ children: e.map(S)
236
236
  }
237
237
  )
238
238
  ] }),
239
239
  document.body
240
240
  );
241
- }), wt = () => (t, e) => /* @__PURE__ */ C(
241
+ }), yt = () => (t, e) => /* @__PURE__ */ C(
242
242
  "button",
243
243
  {
244
244
  className: H.menuItem,
245
- onClick: (o) => e.onClick(o),
245
+ onClick: (i) => e.onClick(i),
246
246
  children: [
247
247
  /* @__PURE__ */ n("span", { className: H.menuItemIcon, children: t.icon }),
248
248
  /* @__PURE__ */ n("span", { className: H.menuItemText, children: t.label })
249
249
  ]
250
250
  }
251
- ), y = {
251
+ ), b = {
252
252
  NAVY: "#3B64A0",
253
253
  FINISHED_GREEN: "#17a34a",
254
254
  ERROR_RED: "#E32012",
@@ -258,21 +258,21 @@ const De = "_panel_19663_1", Be = "_panelExiting_19663_13", Fe = "_menuItem_1966
258
258
  SEPARATOR: "#a1bbdc",
259
259
  SLATE_400: "#94a3b8",
260
260
  ORANGE: "#ff9800"
261
- }, pt = (t) => t?.toLowerCase() === y.FINISHED_GREEN.toLowerCase(), Q = (t) => pt(t) ? `3px dotted ${t}` : `2px solid ${t}`, yt = {
262
- pending: y.NAVY,
263
- running: y.TEAL,
264
- validating: y.ORANGE,
265
- finished: y.FINISHED_GREEN,
266
- failed: y.ERROR_RED,
267
- cancelled: y.ORANGE,
268
- skipped: y.SLATE_400,
269
- invalid: y.ERROR_RED
261
+ }, pt = (t) => t?.toLowerCase() === b.FINISHED_GREEN.toLowerCase(), Q = (t) => pt(t) ? `3px dotted ${t}` : `2px solid ${t}`, bt = {
262
+ pending: b.NAVY,
263
+ running: b.TEAL,
264
+ validating: b.ORANGE,
265
+ finished: b.FINISHED_GREEN,
266
+ failed: b.ERROR_RED,
267
+ cancelled: b.ORANGE,
268
+ skipped: b.SLATE_400,
269
+ invalid: b.ERROR_RED
270
270
  }, ze = {
271
271
  finished: "#DFFFE3"
272
272
  }, Ye = ({
273
273
  width: t = 16,
274
274
  height: e = 16,
275
- color: o = y.NAVY
275
+ color: i = b.NAVY
276
276
  }) => /* @__PURE__ */ C(
277
277
  "svg",
278
278
  {
@@ -291,14 +291,14 @@ const De = "_panel_19663_1", Be = "_panelExiting_19663_13", Fe = "_menuItem_1966
291
291
  height: "11",
292
292
  rx: "1.5",
293
293
  transform: "rotate(45 7.99219 0.222732)",
294
- stroke: o
294
+ stroke: i
295
295
  }
296
296
  ),
297
297
  /* @__PURE__ */ n(
298
298
  "path",
299
299
  {
300
300
  d: "M10.4693 5.52599L5.52513 10.4813M5.52513 5.53151L10.4749 10.4813",
301
- stroke: o,
301
+ stroke: i,
302
302
  strokeLinecap: "round"
303
303
  }
304
304
  )
@@ -307,7 +307,7 @@ const De = "_panel_19663_1", Be = "_panelExiting_19663_13", Fe = "_menuItem_1966
307
307
  ), Ge = ({
308
308
  width: t = 16,
309
309
  height: e = 16,
310
- color: o = y.NAVY
310
+ color: i = b.NAVY
311
311
  }) => /* @__PURE__ */ C(
312
312
  "svg",
313
313
  {
@@ -321,7 +321,7 @@ const De = "_panel_19663_1", Be = "_panelExiting_19663_13", Fe = "_menuItem_1966
321
321
  "path",
322
322
  {
323
323
  d: "M11.5341 7.00002H15.4661C15.5136 7.00004 15.5601 7.01359 15.6002 7.03909C15.6403 7.06459 15.6722 7.10098 15.6924 7.144C15.7125 7.18702 15.72 7.23489 15.7139 7.282C15.7079 7.32912 15.6885 7.37352 15.6581 7.41002L13.6921 9.77002C13.6686 9.79816 13.6393 9.82079 13.6061 9.83633C13.5729 9.85186 13.5367 9.85991 13.5001 9.85991C13.4635 9.85991 13.4273 9.85186 13.3941 9.83633C13.3609 9.82079 13.3315 9.79816 13.3081 9.77002L11.3421 7.41002C11.3117 7.37352 11.2923 7.32912 11.2862 7.282C11.2802 7.23489 11.2876 7.18702 11.3078 7.144C11.3279 7.10098 11.3599 7.06459 11.4 7.03909C11.4401 7.01359 11.4866 7.00004 11.5341 7.00002ZM0.534086 9.00002H4.46609C4.51359 9.00001 4.56011 8.98645 4.60019 8.96096C4.64027 8.93546 4.67225 8.89907 4.6924 8.85605C4.71254 8.81303 4.72002 8.76516 4.71394 8.71804C4.70786 8.67093 4.68849 8.62652 4.65809 8.59002L2.69209 6.23002C2.66862 6.20189 2.63926 6.17925 2.60609 6.16372C2.57291 6.14819 2.53672 6.14014 2.50009 6.14014C2.46345 6.14014 2.42726 6.14819 2.39409 6.16372C2.36091 6.17925 2.33155 6.20189 2.30809 6.23002L0.342086 8.59002C0.311684 8.62652 0.29231 8.67093 0.286234 8.71804C0.280157 8.76516 0.287629 8.81303 0.307775 8.85605C0.327921 8.89907 0.359907 8.93546 0.399987 8.96096C0.440067 8.98645 0.486583 9.00001 0.534086 9.00002Z",
324
- fill: o
324
+ fill: i
325
325
  }
326
326
  ),
327
327
  /* @__PURE__ */ n(
@@ -330,15 +330,15 @@ const De = "_panel_19663_1", Be = "_panelExiting_19663_13", Fe = "_menuItem_1966
330
330
  fillRule: "evenodd",
331
331
  clipRule: "evenodd",
332
332
  d: "M8.00001 3.00023C6.44801 3.00023 5.06001 3.70723 4.14301 4.81823C4.10206 4.87131 4.05086 4.9156 3.99245 4.94849C3.93404 4.98138 3.86961 5.00219 3.803 5.00968C3.73638 5.01717 3.66895 5.01119 3.60469 4.99209C3.54043 4.97299 3.48068 4.94117 3.42897 4.89851C3.37726 4.85586 3.33465 4.80324 3.30368 4.74379C3.27272 4.68434 3.25402 4.61926 3.24871 4.55244C3.24339 4.48562 3.25157 4.41841 3.27275 4.35481C3.29394 4.29121 3.32769 4.23252 3.37201 4.18223C4.1042 3.29576 5.0756 2.63824 6.17067 2.28789C7.26575 1.93753 8.43841 1.90908 9.54918 2.20592C10.66 2.50276 11.6621 3.1124 12.4364 3.96232C13.2107 4.81224 13.7246 5.86668 13.917 7.00023H12.9C12.6691 5.87104 12.0554 4.85623 11.1625 4.12738C10.2697 3.39853 9.15256 3.00037 8.00001 3.00023ZM3.10001 9.00023C3.28932 9.92486 3.73636 10.7771 4.38949 11.4584C5.04261 12.1397 5.87517 12.6223 6.79097 12.8505C7.70677 13.0787 8.66845 13.0431 9.5649 12.7479C10.4613 12.4527 11.256 11.9099 11.857 11.1822C11.898 11.1292 11.9492 11.0849 12.0076 11.052C12.066 11.0191 12.1304 10.9983 12.197 10.9908C12.2636 10.9833 12.3311 10.9893 12.3953 11.0084C12.4596 11.0275 12.5193 11.0593 12.5711 11.102C12.6228 11.1446 12.6654 11.1972 12.6963 11.2567C12.7273 11.3161 12.746 11.3812 12.7513 11.448C12.7566 11.5148 12.7484 11.5821 12.7273 11.6457C12.7061 11.7093 12.6723 11.7679 12.628 11.8182C11.8958 12.7047 10.9244 13.3622 9.82934 13.7126C8.73427 14.0629 7.56161 14.0914 6.45083 13.7945C5.34006 13.4977 4.33791 12.8881 3.5636 12.0381C2.78928 11.1882 2.27538 10.1338 2.08301 9.00023H3.10001Z",
333
- fill: o
333
+ fill: i
334
334
  }
335
335
  )
336
336
  ]
337
337
  }
338
- ), Nt = ({
338
+ ), Lt = ({
339
339
  width: t = 16,
340
340
  height: e = 16,
341
- color: o = y.NAVY
341
+ color: i = b.NAVY
342
342
  }) => /* @__PURE__ */ C(
343
343
  "svg",
344
344
  {
@@ -352,14 +352,14 @@ const De = "_panel_19663_1", Be = "_panelExiting_19663_13", Fe = "_menuItem_1966
352
352
  "path",
353
353
  {
354
354
  d: "M8 15C6.14348 15 4.36301 14.2625 3.05025 12.9497C1.7375 11.637 1 9.85652 1 8C1 6.14348 1.7375 4.36301 3.05025 3.05025C4.36301 1.7375 6.14348 1 8 1C9.85652 1 11.637 1.7375 12.9497 3.05025C14.2625 4.36301 15 6.14348 15 8C15 9.85652 14.2625 11.637 12.9497 12.9497C11.637 14.2625 9.85652 15 8 15ZM8 16C10.1217 16 12.1566 15.1571 13.6569 13.6569C15.1571 12.1566 16 10.1217 16 8C16 5.87827 15.1571 3.84344 13.6569 2.34315C12.1566 0.842855 10.1217 0 8 0C5.87827 0 3.84344 0.842855 2.34315 2.34315C0.842855 3.84344 0 5.87827 0 8C0 10.1217 0.842855 12.1566 2.34315 13.6569C3.84344 15.1571 5.87827 16 8 16Z",
355
- fill: o
355
+ fill: i
356
356
  }
357
357
  ),
358
358
  /* @__PURE__ */ n(
359
359
  "path",
360
360
  {
361
361
  d: "M7 11.5C7 11.3674 7.05268 11.2402 7.14645 11.1464C7.24021 11.0527 7.36739 11 7.5 11H8.5C8.63261 11 8.75979 11.0527 8.85355 11.1464C8.94732 11.2402 9 11.3674 9 11.5C9 11.6326 8.94732 11.7598 8.85355 11.8536C8.75979 11.9473 8.63261 12 8.5 12H7.5C7.36739 12 7.24021 11.9473 7.14645 11.8536C7.05268 11.7598 7 11.6326 7 11.5ZM5 8.5C5 8.36739 5.05268 8.24021 5.14645 8.14645C5.24021 8.05268 5.36739 8 5.5 8H10.5C10.6326 8 10.7598 8.05268 10.8536 8.14645C10.9473 8.24021 11 8.36739 11 8.5C11 8.63261 10.9473 8.75979 10.8536 8.85355C10.7598 8.94732 10.6326 9 10.5 9H5.5C5.36739 9 5.24021 8.94732 5.14645 8.85355C5.05268 8.75979 5 8.63261 5 8.5ZM3 5.5C3 5.36739 3.05268 5.24021 3.14645 5.14645C3.24021 5.05268 3.36739 5 3.5 5H12.5C12.6326 5 12.7598 5.05268 12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5C13 5.63261 12.9473 5.75979 12.8536 5.85355C12.7598 5.94732 12.6326 6 12.5 6H3.5C3.36739 6 3.24021 5.94732 3.14645 5.85355C3.05268 5.75979 3 5.63261 3 5.5Z",
362
- fill: o
362
+ fill: i
363
363
  }
364
364
  )
365
365
  ]
@@ -367,19 +367,19 @@ const De = "_panel_19663_1", Be = "_panelExiting_19663_13", Fe = "_menuItem_1966
367
367
  ), Kt = Yt(
368
368
  void 0
369
369
  ), T1 = ({ children: t }) => {
370
- const [e, o] = D([]), i = J((a, p) => {
371
- o((c) => (c.forEach((r) => {
370
+ const [e, i] = D([]), o = J((a, p) => {
371
+ i((c) => (c.forEach((r) => {
372
372
  r.current && r !== a && r.current.hide(p);
373
- }), [])), a.current?.toggle(p), o([a]);
373
+ }), [])), a.current?.toggle(p), i([a]);
374
374
  }, []), s = J((a) => {
375
- o((p) => p.filter((c) => c !== a));
375
+ i((p) => p.filter((c) => c !== a));
376
376
  }, []), l = R(
377
377
  () => ({
378
378
  openMenus: e,
379
- openMenu: i,
379
+ openMenu: o,
380
380
  closeMenu: s
381
381
  }),
382
- [e, i, s]
382
+ [e, o, s]
383
383
  );
384
384
  return /* @__PURE__ */ n(Kt.Provider, { value: l, children: t });
385
385
  }, Tt = () => {
@@ -387,7 +387,7 @@ const De = "_panel_19663_1", Be = "_panelExiting_19663_13", Fe = "_menuItem_1966
387
387
  if (t === void 0)
388
388
  throw new Error("useMenuProvider must be used within a MenuProvider");
389
389
  return t;
390
- }, Ze = ({ color: t = y.ERROR_RED }) => /* @__PURE__ */ C(
390
+ }, Ze = ({ color: t = b.ERROR_RED }) => /* @__PURE__ */ C(
391
391
  "svg",
392
392
  {
393
393
  xmlns: "http://www.w3.org/2000/svg",
@@ -419,8 +419,8 @@ function Ke(t) {
419
419
  const ht = (t) => {
420
420
  const {
421
421
  isSet: e,
422
- isSelected: o,
423
- isFilter: i,
422
+ isSelected: i,
423
+ isFilter: o,
424
424
  debuggerMode: s = !1,
425
425
  status: l,
426
426
  className: a,
@@ -428,56 +428,56 @@ const ht = (t) => {
428
428
  icon: c,
429
429
  contextMenuItems: r = void 0,
430
430
  onDeleteStep: u,
431
- onUpdateFilter: I,
432
- onSelectStep: w,
433
- onCheckScenario: b,
431
+ onUpdateFilter: w,
432
+ onSelectStep: y,
433
+ onCheckScenario: N,
434
434
  subtitle: _,
435
435
  isInvalid: g,
436
- localId: f
437
- } = t, h = F(null), { openMenu: L, closeMenu: m } = Tt(), N = wt(), [d] = D(!0), x = R(() => {
436
+ id: f
437
+ } = t, h = F(null), { openMenu: S, closeMenu: m } = Tt(), L = yt(), [d] = D(!0), x = R(() => {
438
438
  const v = [];
439
439
  return s || v.push({
440
440
  label: "Add Step Filter",
441
- icon: /* @__PURE__ */ n("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ n(Nt, {}) }),
441
+ icon: /* @__PURE__ */ n("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ n(Lt, {}) }),
442
442
  command: (P) => {
443
- P?.originalEvent?.stopPropagation(), I && I(f);
443
+ P?.originalEvent?.stopPropagation(), w && w(f);
444
444
  },
445
- template: N
445
+ template: L
446
446
  }), u && !s && v.push({
447
447
  label: "Remove",
448
- icon: /* @__PURE__ */ n(xt, { color: y.NAVY, size: 18 }),
448
+ icon: /* @__PURE__ */ n(xt, { color: b.NAVY, size: 18 }),
449
449
  command: (P) => {
450
450
  P?.originalEvent?.stopPropagation(), u(f);
451
451
  },
452
- template: N
452
+ template: L
453
453
  }), d && v.push({
454
454
  label: "Check Scenario",
455
- icon: /* @__PURE__ */ n("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ n(Ue, { color: y.NAVY, size: 18 }) }),
455
+ icon: /* @__PURE__ */ n("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ n(Ue, { color: b.NAVY, size: 18 }) }),
456
456
  command: (P) => {
457
- P?.originalEvent?.stopPropagation(), b(f);
457
+ P?.originalEvent?.stopPropagation(), N(f);
458
458
  },
459
- template: N
459
+ template: L
460
460
  }), v;
461
- }, [I, u, f, N, d, b, s]), E = R(() => r ?? x, [r, x]), T = (v) => {
462
- v.stopPropagation(), L(h, v);
461
+ }, [w, u, f, L, d, N, s]), E = R(() => r ?? x, [r, x]), T = (v) => {
462
+ v.stopPropagation(), S(h, v);
463
463
  }, O = R(() => {
464
464
  if (!(!s || l == null || l === "pending"))
465
465
  return {
466
- "--step-debugger-accent": yt[l]
466
+ "--step-debugger-accent": bt[l]
467
467
  };
468
- }, [s, l]), j = R(() => o && g ? k.step + " " + k.selectedInvalid : s && l != null && l !== "pending" ? k.step + " " + k.debuggerStatus : o ? k.step + " " + k.selected : e ? k.step + " " + k.isSet : g ? k.step + " " + k.invalid : k.step, [e, o, g, l, s]), M = R(() => g ? /* @__PURE__ */ n(Ze, { color: y.ERROR_RED }) : c, [c, g]);
468
+ }, [s, l]), j = R(() => i && g ? k.step + " " + k.selectedInvalid : s && l != null && l !== "pending" ? k.step + " " + k.debuggerStatus : i ? k.step + " " + k.selected : e ? k.step + " " + k.isSet : g ? k.step + " " + k.invalid : k.step, [e, i, g, l, s]), M = R(() => g ? /* @__PURE__ */ n(Ze, { color: b.ERROR_RED }) : c, [c, g]);
469
469
  return /* @__PURE__ */ n(
470
470
  "div",
471
471
  {
472
472
  className: k.container + " " + a,
473
- "data-local-id": void 0,
473
+ "data-id": void 0,
474
474
  children: /* @__PURE__ */ C("div", { children: [
475
475
  /* @__PURE__ */ C(
476
476
  "div",
477
477
  {
478
478
  className: j,
479
479
  style: O,
480
- onClick: () => w(f),
480
+ onClick: () => y(f),
481
481
  children: [
482
482
  /* @__PURE__ */ C("div", { className: k.content, children: [
483
483
  /* @__PURE__ */ n("div", { className: `${k.icon} ${g && k.invalid}`, children: M }),
@@ -495,7 +495,7 @@ const ht = (t) => {
495
495
  }
496
496
  ),
497
497
  /* @__PURE__ */ n(
498
- It,
498
+ wt,
499
499
  {
500
500
  model: E,
501
501
  popup: !0,
@@ -508,26 +508,26 @@ const ht = (t) => {
508
508
  ]
509
509
  }
510
510
  ),
511
- i && /* @__PURE__ */ C(
511
+ o && /* @__PURE__ */ C(
512
512
  "div",
513
513
  {
514
514
  className: k.filterFlag,
515
515
  role: "button",
516
516
  tabIndex: 0,
517
517
  onClick: () => {
518
- I && I(f);
518
+ w && w(f);
519
519
  },
520
520
  onKeyDown: (v) => {
521
- (v.key === "Enter" || v.key === " ") && I && (v.preventDefault(), I(f));
521
+ (v.key === "Enter" || v.key === " ") && w && (v.preventDefault(), w(f));
522
522
  },
523
523
  children: [
524
- /* @__PURE__ */ n(Nt, { color: y.NAVY }),
524
+ /* @__PURE__ */ n(Lt, { color: b.NAVY }),
525
525
  /* @__PURE__ */ n("span", { children: "Filter" }),
526
526
  !s && /* @__PURE__ */ n(
527
527
  mt,
528
528
  {
529
529
  className: k.dots,
530
- color: g ? y.ERROR_RED : y.NAVY,
530
+ color: g ? b.ERROR_RED : b.NAVY,
531
531
  style: { height: "10px" }
532
532
  }
533
533
  )
@@ -540,10 +540,10 @@ const ht = (t) => {
540
540
  );
541
541
  }, qe = () => /* @__PURE__ */ C("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
542
542
  /* @__PURE__ */ C("g", { clipPath: "url(#clip0_6551_9169)", children: [
543
- /* @__PURE__ */ n("rect", { width: "24", height: "24", rx: "12", fill: y.ADD_TRIGGER_FILL }),
543
+ /* @__PURE__ */ n("rect", { width: "24", height: "24", rx: "12", fill: b.ADD_TRIGGER_FILL }),
544
544
  /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11 6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V11H18C18.5523 11 19 11.4477 19 12C19 12.5523 18.5523 13 18 13H13V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H6C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11H11V6Z", fill: "white" })
545
545
  ] }),
546
- /* @__PURE__ */ n("rect", { x: "0.75", y: "0.75", width: "22.5", height: "22.5", rx: "11.25", stroke: y.ADD_TRIGGER_STROKE, strokeWidth: "1.5" }),
546
+ /* @__PURE__ */ n("rect", { x: "0.75", y: "0.75", width: "22.5", height: "22.5", rx: "11.25", stroke: b.ADD_TRIGGER_STROKE, strokeWidth: "1.5" }),
547
547
  /* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_6551_9169", children: /* @__PURE__ */ n("rect", { width: "24", height: "24", rx: "12", fill: "white" }) }) })
548
548
  ] }), Je = "_multipleTriggersIcon_oxhdi_1", Qe = {
549
549
  multipleTriggersIcon: Je
@@ -576,7 +576,7 @@ const ht = (t) => {
576
576
  height: "1px",
577
577
  marginLeft: "4px",
578
578
  marginRight: "4px",
579
- borderTop: `1px solid ${y.SEPARATOR}`
579
+ borderTop: `1px solid ${b.SEPARATOR}`
580
580
  }
581
581
  }
582
582
  ), gn = [
@@ -590,15 +590,15 @@ const ht = (t) => {
590
590
  "pending"
591
591
  ], qt = (t) => {
592
592
  const e = [
593
- ...new Set(t.filter((o) => o != null))
593
+ ...new Set(t.filter((i) => i != null))
594
594
  ];
595
595
  if (e.length !== 0) {
596
- for (const o of gn)
597
- if (e.includes(o)) return o;
596
+ for (const i of gn)
597
+ if (e.includes(i)) return i;
598
598
  return e[0];
599
599
  }
600
- }, Jt = (t, e) => !e || t == null ? y.NAVY : yt[t], Cn = (t, e, o = y.NAVY) => t == null ? o : e?.[t] ?? yt[t], mn = (t, e = y.NAVY) => ({
601
- statusLine: (o) => Cn(o, t, e)
600
+ }, Jt = (t, e) => !e || t == null ? b.NAVY : bt[t], Cn = (t, e, i = b.NAVY) => t == null ? i : e?.[t] ?? bt[t], mn = (t, e = b.NAVY) => ({
601
+ statusLine: (i) => Cn(i, t, e)
602
602
  }), dt = (t) => {
603
603
  if ("status" in t && t.status != null) return t.status;
604
604
  const e = t.steps;
@@ -606,8 +606,8 @@ const ht = (t) => {
606
606
  }, vn = 80, ft = 34, Qt = ({
607
607
  steps: t,
608
608
  title: e,
609
- className: o,
610
- onDeleteTrigger: i,
609
+ className: i,
610
+ onDeleteTrigger: o,
611
611
  onAddTrigger: s,
612
612
  onSelectStep: l,
613
613
  onUpdateFilter: a,
@@ -615,25 +615,25 @@ const ht = (t) => {
615
615
  debuggerMode: c = !1,
616
616
  resolveCurveStrokeColor: r,
617
617
  isEditable: u = !1,
618
- nextStepStatus: I
618
+ nextStepStatus: w
619
619
  }) => {
620
- const w = F(null), b = F([]), [_, g] = D([]), [f, h] = D({ width: 0, height: 0 }), [L, m] = D(!1), [N, d] = D(!1), x = F(null);
620
+ const y = F(null), N = F([]), [_, g] = D([]), [f, h] = D({ width: 0, height: 0 }), [S, m] = D(!1), [L, d] = D(!1), x = F(null);
621
621
  st(() => {
622
622
  const v = () => {
623
- if (!w.current) return;
623
+ if (!y.current) return;
624
624
  const P = [];
625
- if (b.current.forEach(($, z) => {
626
- if ($ && w.current) {
627
- const Y = w.current.getBoundingClientRect(), A = $.getBoundingClientRect();
625
+ if (N.current.forEach(($, z) => {
626
+ if ($ && y.current) {
627
+ const Y = y.current.getBoundingClientRect(), A = $.getBoundingClientRect();
628
628
  P.push({
629
- localId: t[z]?.localId ?? `step-${z}`,
629
+ id: t[z]?.id ?? `step-${z}`,
630
630
  top: A.top - Y.top,
631
631
  right: A.right - Y.left,
632
632
  centerY: A.top - Y.top + A.height / 2
633
633
  });
634
634
  }
635
- }), g(P), w.current && P.length > 0) {
636
- const $ = w.current.getBoundingClientRect(), z = Math.min(...P.map((Z) => Z.top)), Y = b.current.filter(Boolean).map((Z) => Z?.offsetHeight || 68), A = Math.max(
635
+ }), g(P), y.current && P.length > 0) {
636
+ const $ = y.current.getBoundingClientRect(), z = Math.min(...P.map((Z) => Z.top)), Y = N.current.filter(Boolean).map((Z) => Z?.offsetHeight || 68), A = Math.max(
637
637
  ...P.map((Z, ue) => Z.top + (Y[ue] || 68))
638
638
  ), nt = Math.max(...P.map((Z) => Z.right)) + 0, ct = Math.max(
639
639
  $.height,
@@ -648,7 +648,7 @@ const ht = (t) => {
648
648
  return v(), window.addEventListener("resize", v), () => window.removeEventListener("resize", v);
649
649
  }, [t]), st(() => {
650
650
  let v = !0;
651
- if (L) {
651
+ if (S) {
652
652
  x.current && (clearTimeout(x.current), x.current = null);
653
653
  const P = setTimeout(() => {
654
654
  v && d(!0);
@@ -662,14 +662,14 @@ const ht = (t) => {
662
662
  }, 140), () => {
663
663
  v = !1, x.current && (clearTimeout(x.current), x.current = null);
664
664
  };
665
- }, [L]);
665
+ }, [S]);
666
666
  const E = _.length > 0 ? vn : 0, T = R(() => _.length > 1 ? _.reduce((v, P) => v + P.top + ft, 0) / _.length : _.length === 1 ? _[0].top + ft : 0, [_]);
667
667
  st(() => {
668
668
  p?.(T);
669
669
  }, [T, p]);
670
- const O = c && t.some((v) => v.status === "finished") && I === "finished", j = wt();
670
+ const O = c && t.some((v) => v.status === "finished") && w === "finished", j = yt();
671
671
  if (t.length === 0)
672
- return /* @__PURE__ */ C("div", { className: `${B.trigger} ${o || ""}`, children: [
672
+ return /* @__PURE__ */ C("div", { className: `${B.trigger} ${i || ""}`, children: [
673
673
  e && /* @__PURE__ */ n("h3", { className: B.title, children: e }),
674
674
  /* @__PURE__ */ n("div", { className: B.empty, children: "No steps" })
675
675
  ] });
@@ -677,21 +677,21 @@ const ht = (t) => {
677
677
  const Y = $ - v, A = Math.min(Y * 0.6, 60), lt = v + A, nt = P, ct = $ - A;
678
678
  return `M ${v} ${P} C ${lt} ${nt}, ${ct} ${z}, ${$} ${z}`;
679
679
  };
680
- return /* @__PURE__ */ C("div", { className: `${B.trigger} ${o || ""}`, ref: w, children: [
680
+ return /* @__PURE__ */ C("div", { className: `${B.trigger} ${i || ""}`, ref: y, children: [
681
681
  e && /* @__PURE__ */ n("h3", { className: B.title, children: e }),
682
682
  /* @__PURE__ */ C("div", { className: B.triggerContainer, children: [
683
683
  /* @__PURE__ */ n("div", { className: B.stepsContainer, children: t.map((v, P) => /* @__PURE__ */ n(
684
684
  "div",
685
685
  {
686
686
  ref: ($) => {
687
- b.current[P] = $;
687
+ N.current[P] = $;
688
688
  },
689
689
  children: /* @__PURE__ */ n(
690
690
  ht,
691
691
  {
692
692
  title: v.title,
693
693
  className: B.stepItem,
694
- localId: v.localId,
694
+ id: v.id,
695
695
  idx: P,
696
696
  isSet: v.isSet,
697
697
  isSelected: v.isSelected,
@@ -708,17 +708,17 @@ const ht = (t) => {
708
708
  contextMenuItems: u ? [
709
709
  {
710
710
  label: "Add Step Filter",
711
- icon: /* @__PURE__ */ n("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ n(Nt, {}) }),
711
+ icon: /* @__PURE__ */ n("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ n(Lt, {}) }),
712
712
  command: ($) => {
713
- $?.originalEvent?.stopPropagation(), a && a(v.localId);
713
+ $?.originalEvent?.stopPropagation(), a && a(v.id);
714
714
  },
715
715
  template: j
716
716
  },
717
717
  {
718
718
  label: "Delete",
719
- icon: /* @__PURE__ */ n(xt, { className: "mr-2", color: y.NAVY, size: 18 }),
719
+ icon: /* @__PURE__ */ n(xt, { className: "mr-2", color: b.NAVY, size: 18 }),
720
720
  command: () => {
721
- i?.(v.localId);
721
+ o?.(v.id);
722
722
  },
723
723
  disabled: t.length === 1
724
724
  },
@@ -728,7 +728,7 @@ const ht = (t) => {
728
728
  },
729
729
  {
730
730
  label: "Add More Triggers",
731
- icon: /* @__PURE__ */ n($e, { className: "mr-2", color: y.NAVY, size: 18 }),
731
+ icon: /* @__PURE__ */ n($e, { className: "mr-2", color: b.NAVY, size: 18 }),
732
732
  command: () => {
733
733
  s?.();
734
734
  }
@@ -737,7 +737,7 @@ const ht = (t) => {
737
737
  }
738
738
  )
739
739
  },
740
- v.localId
740
+ v.id
741
741
  )) }),
742
742
  /* @__PURE__ */ n("div", { style: { position: "relative" }, children: _.length > 1 && /* @__PURE__ */ n(
743
743
  "svg",
@@ -747,7 +747,7 @@ const ht = (t) => {
747
747
  height: f.height,
748
748
  children: _.map((v) => {
749
749
  const $ = _.length === 1 ? _[0].top + ft : v.top + ft, z = E, Y = T, A = t.find(
750
- (ct) => ct.localId === v.localId
750
+ (ct) => ct.id === v.id
751
751
  )?.status, lt = r != null ? r(A) : Jt(A, c), nt = pt(lt);
752
752
  return /* @__PURE__ */ n(
753
753
  "path",
@@ -759,7 +759,7 @@ const ht = (t) => {
759
759
  strokeLinecap: "round",
760
760
  strokeDasharray: nt ? "0 6" : void 0
761
761
  },
762
- v.localId
762
+ v.id
763
763
  );
764
764
  })
765
765
  }
@@ -777,17 +777,17 @@ const ht = (t) => {
777
777
  pointerEvents: "none"
778
778
  },
779
779
  ...O && {
780
- backgroundColor: y.FINISHED_GREEN
780
+ backgroundColor: b.FINISHED_GREEN
781
781
  }
782
782
  },
783
783
  ...!c && {
784
784
  onMouseEnter: () => m(!0),
785
785
  onMouseLeave: () => m(!1)
786
786
  },
787
- children: !c && N ? /* @__PURE__ */ n(
787
+ children: !c && L ? /* @__PURE__ */ n(
788
788
  "div",
789
789
  {
790
- className: `${B.iconWrapper} ${L ? B.fadeIn : B.fadeOut}`,
790
+ className: `${B.iconWrapper} ${S ? B.fadeIn : B.fadeOut}`,
791
791
  onClick: s,
792
792
  children: /* @__PURE__ */ n(qe, {})
793
793
  }
@@ -802,7 +802,7 @@ const ht = (t) => {
802
802
  "--op-x": `${E + 16}px`,
803
803
  "--op-y": `${T}px`
804
804
  },
805
- children: /* @__PURE__ */ n(tn, { color: O ? y.FINISHED_GREEN : void 0 })
805
+ children: /* @__PURE__ */ n(tn, { color: O ? b.FINISHED_GREEN : void 0 })
806
806
  }
807
807
  )
808
808
  ] }) : null
@@ -821,7 +821,7 @@ const ht = (t) => {
821
821
  "path",
822
822
  {
823
823
  d: "M6 12L18 12",
824
- stroke: y.NAVY,
824
+ stroke: b.NAVY,
825
825
  strokeWidth: "2",
826
826
  strokeLinecap: "round"
827
827
  }
@@ -830,35 +830,35 @@ const ht = (t) => {
830
830
  "path",
831
831
  {
832
832
  d: "M12 6V18",
833
- stroke: y.NAVY,
833
+ stroke: b.NAVY,
834
834
  strokeWidth: "2",
835
835
  strokeLinecap: "round"
836
836
  }
837
837
  )
838
838
  ]
839
839
  }
840
- ), xn = "_stepLinkIcon_b0452_1", In = "_stepLinkLine_b0452_15", wn = "_stepLinkContainer_b0452_39", yn = "_readOnly_b0452_61", bn = "_debuggerIconCollapsed_b0452_66", Nn = "_dashedLine_b0452_75", W = {
840
+ ), xn = "_stepLinkIcon_b0452_1", wn = "_stepLinkLine_b0452_15", yn = "_stepLinkContainer_b0452_39", bn = "_readOnly_b0452_61", Nn = "_debuggerIconCollapsed_b0452_66", Ln = "_dashedLine_b0452_75", W = {
841
841
  stepLinkIcon: xn,
842
- stepLinkLine: In,
843
- stepLinkContainer: wn,
844
- readOnly: yn,
845
- debuggerIconCollapsed: bn,
846
- dashedLine: Nn
847
- }, ot = ({
842
+ stepLinkLine: wn,
843
+ stepLinkContainer: yn,
844
+ readOnly: bn,
845
+ debuggerIconCollapsed: Nn,
846
+ dashedLine: Ln
847
+ }, it = ({
848
848
  onAddStep: t,
849
849
  onAddTrigger: e,
850
- onAddCondition: o,
851
- onAddLoop: i,
852
- lineColor: s = y.NAVY,
850
+ onAddCondition: i,
851
+ onAddLoop: o,
852
+ lineColor: s = b.NAVY,
853
853
  stepId: l,
854
854
  index: a = 0,
855
855
  style: p,
856
856
  pathId: c
857
857
  }) => {
858
- const r = wt(), u = F(null), I = [
858
+ const r = yt(), u = F(null), w = [
859
859
  {
860
860
  label: "Trigger",
861
- icon: /* @__PURE__ */ n(Ke, { color: y.NAVY, size: 18 }),
861
+ icon: /* @__PURE__ */ n(Ke, { color: b.NAVY, size: 18 }),
862
862
  command: () => {
863
863
  e?.(
864
864
  l,
@@ -871,24 +871,24 @@ const ht = (t) => {
871
871
  },
872
872
  {
873
873
  label: "Step",
874
- icon: /* @__PURE__ */ n(Xe, { color: y.NAVY, size: 18 }),
874
+ icon: /* @__PURE__ */ n(Xe, { color: b.NAVY, size: 18 }),
875
875
  command: () => t?.(l, c, a > 0 ? "append" : "prepend"),
876
876
  template: r
877
877
  },
878
878
  {
879
879
  label: "Condition",
880
880
  icon: /* @__PURE__ */ n(Ye, { width: 18, height: 18 }),
881
- command: () => o?.(l, c, a > 0 ? "append" : "prepend"),
881
+ command: () => i?.(l, c, a > 0 ? "append" : "prepend"),
882
882
  template: r
883
883
  },
884
884
  {
885
885
  label: "Loop",
886
886
  icon: /* @__PURE__ */ n(Ge, { width: 18, height: 18 }),
887
- command: () => i?.(l, c, a > 0 ? "append" : "prepend"),
887
+ command: () => o?.(l, c, a > 0 ? "append" : "prepend"),
888
888
  template: r
889
889
  }
890
- ], w = (b) => {
891
- u.current?.show(b);
890
+ ], y = (N) => {
891
+ u.current?.show(N);
892
892
  };
893
893
  return /* @__PURE__ */ C(
894
894
  "div",
@@ -902,31 +902,31 @@ const ht = (t) => {
902
902
  "div",
903
903
  {
904
904
  className: W.stepLinkIcon,
905
- onClick: w,
905
+ onClick: y,
906
906
  "aria-haspopup": !0,
907
907
  children: /* @__PURE__ */ n(_n, {})
908
908
  }
909
909
  ),
910
- /* @__PURE__ */ n(It, { model: I, popup: !0, ref: u }),
910
+ /* @__PURE__ */ n(wt, { model: w, popup: !0, ref: u }),
911
911
  /* @__PURE__ */ n("div", { className: W.stepLinkLine })
912
912
  ]
913
913
  }
914
914
  );
915
- }, Ln = "_steps_yug55_1", Sn = "_stepContainer_yug55_8", En = "_stepContainerWithPaths_yug55_14", rt = {
916
- steps: Ln,
917
- stepContainer: Sn,
915
+ }, Sn = "_steps_yug55_1", In = "_stepContainer_yug55_8", En = "_stepContainerWithPaths_yug55_14", rt = {
916
+ steps: Sn,
917
+ stepContainer: In,
918
918
  stepContainerWithPaths: En
919
- }, Tn = (t, e, o, i) => {
920
- const s = o - t, l = Math.min(s * 0.66, 66), a = t + l, p = e, c = o - l;
921
- return `M ${t} ${e} C ${a} ${p}, ${c} ${i}, ${o} ${i}`;
922
- }, Lt = ({
919
+ }, Tn = (t, e, i, o) => {
920
+ const s = i - t, l = Math.min(s * 0.66, 66), a = t + l, p = e, c = i - l;
921
+ return `M ${t} ${e} C ${a} ${p}, ${c} ${o}, ${i} ${o}`;
922
+ }, St = ({
923
923
  width: t,
924
924
  height: e,
925
- strokeColor: o = y.NAVY,
926
- fromLocalId: i,
927
- toLocalId: s
925
+ strokeColor: i = b.NAVY,
926
+ fromId: o,
927
+ toId: s
928
928
  }) => {
929
- const l = pt(o), u = Tn(0, 1, t, e);
929
+ const l = pt(i), u = Tn(0, 1, t, e);
930
930
  return /* @__PURE__ */ n(
931
931
  "div",
932
932
  {
@@ -944,7 +944,7 @@ const ht = (t) => {
944
944
  "path",
945
945
  {
946
946
  d: u,
947
- stroke: o,
947
+ stroke: i,
948
948
  strokeWidth: l ? 3 : 2,
949
949
  fill: "none",
950
950
  strokeLinecap: "round",
@@ -967,13 +967,13 @@ const ht = (t) => {
967
967
  }, $n = ({
968
968
  content: t,
969
969
  children: e,
970
- maxWidth: o = 500,
971
- className: i
970
+ maxWidth: i = 500,
971
+ className: o
972
972
  }) => /* @__PURE__ */ C(
973
973
  "div",
974
974
  {
975
- className: `${Wt.wrapper} ${i ?? ""}`.trim(),
976
- style: { "--tooltip-max-width": `${o}px` },
975
+ className: `${Wt.wrapper} ${o ?? ""}`.trim(),
976
+ style: { "--tooltip-max-width": `${i}px` },
977
977
  children: [
978
978
  e,
979
979
  t ? /* @__PURE__ */ n("div", { className: Wt.tooltip, role: "tooltip", children: t }) : null
@@ -987,36 +987,36 @@ const ht = (t) => {
987
987
  condition: jn,
988
988
  conditionWrapper: Wn,
989
989
  conditionFits: Hn
990
- }, bt = ({
990
+ }, Nt = ({
991
991
  expression: t,
992
992
  style: e,
993
- status: o,
994
- debuggerMode: i = !1
993
+ status: i,
994
+ debuggerMode: o = !1
995
995
  }) => {
996
996
  const s = F(null), l = F(null), [a, p] = D(!1);
997
997
  fe(() => {
998
998
  const _ = s.current, g = l.current;
999
999
  if (!_ || !g) return;
1000
- const { paddingLeft: f, paddingRight: h } = getComputedStyle(_), L = Number.parseFloat(f) + Number.parseFloat(h);
1001
- p(g.offsetWidth >= _.clientWidth - L);
1000
+ const { paddingLeft: f, paddingRight: h } = getComputedStyle(_), S = Number.parseFloat(f) + Number.parseFloat(h);
1001
+ p(g.offsetWidth >= _.clientWidth - S);
1002
1002
  }, [t]);
1003
- const c = t && a ? t : "", r = i && o === "finished", u = r, I = R(() => {
1003
+ const c = t && a ? t : "", r = o && i === "finished", u = r, w = R(() => {
1004
1004
  if (r)
1005
1005
  return {
1006
- "--condition-accent": yt.finished,
1006
+ "--condition-accent": bt.finished,
1007
1007
  "--condition-bg": ze.finished,
1008
1008
  "--condition-line-width": "3px",
1009
1009
  "--condition-line-style": "dotted"
1010
1010
  };
1011
- }, [r]), w = `${U.condition} ${a ? "" : U.conditionFits}`.trim(), b = `${U.conditionContainer} ${u ? U.debuggerTint : ""}`.trim();
1011
+ }, [r]), y = `${U.condition} ${a ? "" : U.conditionFits}`.trim(), N = `${U.conditionContainer} ${u ? U.debuggerTint : ""}`.trim();
1012
1012
  return /* @__PURE__ */ C(
1013
1013
  "div",
1014
1014
  {
1015
- className: b,
1016
- style: { ...e, ...I },
1015
+ className: N,
1016
+ style: { ...e, ...w },
1017
1017
  children: [
1018
1018
  /* @__PURE__ */ n("div", { className: U.connectorLine }),
1019
- /* @__PURE__ */ n($n, { content: c, className: U.conditionWrapper, children: /* @__PURE__ */ n("div", { ref: s, className: w, children: /* @__PURE__ */ n("span", { ref: l, children: t }) }) }),
1019
+ /* @__PURE__ */ n($n, { content: c, className: U.conditionWrapper, children: /* @__PURE__ */ n("div", { ref: s, className: y, children: /* @__PURE__ */ n("span", { ref: l, children: t }) }) }),
1020
1020
  /* @__PURE__ */ n("div", { className: U.connectorLine }),
1021
1021
  /* @__PURE__ */ n("div", { className: U.connectorDot })
1022
1022
  ]
@@ -1031,7 +1031,7 @@ const ht = (t) => {
1031
1031
  ifdotIcon: Jn
1032
1032
  }, Qn = ({
1033
1033
  style: t,
1034
- color: e = y.NAVY
1034
+ color: e = b.NAVY
1035
1035
  }) => /* @__PURE__ */ n(
1036
1036
  "div",
1037
1037
  {
@@ -1045,41 +1045,41 @@ const ht = (t) => {
1045
1045
  ), te = (t) => {
1046
1046
  const {
1047
1047
  enabled: e = !0,
1048
- onDelete: o,
1049
- onSelect: i,
1048
+ onDelete: i,
1049
+ onSelect: o,
1050
1050
  debuggerMode: s = !1,
1051
1051
  status: l
1052
- } = t, a = F(null), { openMenu: p, closeMenu: c } = Tt(), r = e && !s, u = s && l === "finished", I = u ? Jt("finished", !0) : y.NAVY, w = u ? Yn : Vn, b = u ? Gn : zn, _ = R(
1052
+ } = t, a = F(null), { openMenu: p, closeMenu: c } = Tt(), r = e && !s, u = s && l === "finished", w = u ? Jt("finished", !0) : b.NAVY, y = u ? Yn : Vn, N = u ? Gn : zn, _ = R(
1053
1053
  () => [
1054
1054
  {
1055
1055
  label: "Edit",
1056
- icon: /* @__PURE__ */ n(Xt, { color: y.NAVY, size: 18 }),
1057
- command: () => i?.()
1056
+ icon: /* @__PURE__ */ n(Xt, { color: b.NAVY, size: 18 }),
1057
+ command: () => o?.()
1058
1058
  },
1059
1059
  {
1060
1060
  label: "Delete",
1061
- icon: /* @__PURE__ */ n(xt, { color: y.NAVY, size: 18 }),
1062
- command: () => o?.()
1061
+ icon: /* @__PURE__ */ n(xt, { color: b.NAVY, size: 18 }),
1062
+ command: () => i?.()
1063
1063
  }
1064
1064
  ],
1065
- [i, o]
1065
+ [o, i]
1066
1066
  ), g = (h) => {
1067
1067
  h.stopPropagation(), p(a, h);
1068
1068
  }, f = (h) => {
1069
- h.target.closest(`.${K.menuButton}`) || i?.();
1069
+ h.target.closest(`.${K.menuButton}`) || o?.();
1070
1070
  };
1071
1071
  return /* @__PURE__ */ C("div", { className: K.ifStatementContainer, children: [
1072
1072
  /* @__PURE__ */ n(
1073
1073
  Qn,
1074
1074
  {
1075
- color: I,
1075
+ color: w,
1076
1076
  style: { position: "absolute", top: "22.5px", left: 0, zIndex: 1 }
1077
1077
  }
1078
1078
  ),
1079
1079
  /* @__PURE__ */ n("div", { className: K.ifStatement, children: /* @__PURE__ */ n(
1080
1080
  "img",
1081
1081
  {
1082
- src: w,
1082
+ src: y,
1083
1083
  alt: "condition",
1084
1084
  onClick: (h) => f(h),
1085
1085
  className: K.conditionIcon
@@ -1098,7 +1098,7 @@ const ht = (t) => {
1098
1098
  }
1099
1099
  ),
1100
1100
  /* @__PURE__ */ n(
1101
- It,
1101
+ wt,
1102
1102
  {
1103
1103
  ref: a,
1104
1104
  model: _,
@@ -1107,13 +1107,13 @@ const ht = (t) => {
1107
1107
  }
1108
1108
  )
1109
1109
  ] }),
1110
- /* @__PURE__ */ n("img", { src: b, alt: "ifdot", className: K.ifdotIcon })
1110
+ /* @__PURE__ */ n("img", { src: N, alt: "ifdot", className: K.ifdotIcon })
1111
1111
  ] });
1112
- }, Ht = 34.5, t1 = 33, at = y.NAVY, ee = (t) => {
1112
+ }, Ht = 34.5, t1 = 33, at = b.NAVY, ee = (t) => {
1113
1113
  const {
1114
1114
  items: e,
1115
- pathId: o,
1116
- onAddStep: i,
1115
+ pathId: i,
1116
+ onAddStep: o,
1117
1117
  onAddTrigger: s,
1118
1118
  onAddCondition: l,
1119
1119
  onAddLoop: a,
@@ -1121,23 +1121,23 @@ const ht = (t) => {
1121
1121
  onUpdateFilter: c,
1122
1122
  onSelectStep: r,
1123
1123
  onResize: u,
1124
- onCheckScenario: I
1125
- } = t, w = F(null), b = F([]), [_, g] = D([]);
1124
+ onCheckScenario: w
1125
+ } = t, y = F(null), N = F([]), [_, g] = D([]);
1126
1126
  st(() => {
1127
1127
  const h = () => {
1128
- const N = w.current;
1129
- if (!N || e.length === 0) {
1128
+ const L = y.current;
1129
+ if (!L || e.length === 0) {
1130
1130
  g([]);
1131
1131
  return;
1132
1132
  }
1133
1133
  const d = [], x = Number.parseFloat(
1134
- getComputedStyle(N).zoom || "1"
1134
+ getComputedStyle(L).zoom || "1"
1135
1135
  );
1136
1136
  for (let E = 0; E < e.length; E++) {
1137
- const T = b.current[E];
1137
+ const T = N.current[E];
1138
1138
  if (T)
1139
1139
  if (T.offsetParent == null) {
1140
- const O = N.getBoundingClientRect(), j = T.getBoundingClientRect();
1140
+ const O = L.getBoundingClientRect(), j = T.getBoundingClientRect();
1141
1141
  d.push((j.top - O.top) / x + Ht);
1142
1142
  } else
1143
1143
  d.push(T.offsetTop - t1 + Ht);
@@ -1145,27 +1145,27 @@ const ht = (t) => {
1145
1145
  d.length === e.length && g(d);
1146
1146
  };
1147
1147
  h();
1148
- const L = new ResizeObserver(h), m = w.current;
1149
- return m && L.observe(m), window.addEventListener("resize", h), () => {
1150
- L.disconnect(), window.removeEventListener("resize", h);
1148
+ const S = new ResizeObserver(h), m = y.current;
1149
+ return m && S.observe(m), window.addEventListener("resize", h), () => {
1150
+ S.disconnect(), window.removeEventListener("resize", h);
1151
1151
  };
1152
1152
  }, [e]);
1153
- const f = R(() => _.length !== e.length || e.length <= 1 ? null : e.map((h, L) => L).filter((h) => h > 0).map((h) => {
1154
- const L = _[h];
1155
- return L === void 0 ? null : /* @__PURE__ */ n(Lt, { width: 100, height: L, strokeColor: at }, h);
1153
+ const f = R(() => _.length !== e.length || e.length <= 1 ? null : e.map((h, S) => S).filter((h) => h > 0).map((h) => {
1154
+ const S = _[h];
1155
+ return S === void 0 ? null : /* @__PURE__ */ n(St, { width: 100, height: S, strokeColor: at }, h);
1156
1156
  }), [e, _]);
1157
1157
  return /* @__PURE__ */ C("div", { className: V.row, children: [
1158
1158
  /* @__PURE__ */ n(
1159
1159
  te,
1160
1160
  {
1161
- onDelete: () => o != null && p?.(o),
1162
- onSelect: o != null && r ? () => r(o) : void 0
1161
+ onDelete: () => i != null && p?.(i),
1162
+ onSelect: i != null && r ? () => r(i) : void 0
1163
1163
  }
1164
1164
  ),
1165
1165
  /* @__PURE__ */ C(
1166
1166
  "div",
1167
1167
  {
1168
- ref: w,
1168
+ ref: y,
1169
1169
  className: V.column,
1170
1170
  style: { marginTop: "33px" },
1171
1171
  children: [
@@ -1186,15 +1186,15 @@ const ht = (t) => {
1186
1186
  ]
1187
1187
  }
1188
1188
  ),
1189
- /* @__PURE__ */ n("div", { className: V.column, children: e.map((h, L) => {
1189
+ /* @__PURE__ */ n("div", { className: V.column, children: e.map((h, S) => {
1190
1190
  let m;
1191
1191
  if (h.paths)
1192
1192
  m = /* @__PURE__ */ n(
1193
1193
  ee,
1194
1194
  {
1195
1195
  items: h.paths,
1196
- pathId: o,
1197
- onAddStep: i,
1196
+ pathId: i,
1197
+ onAddStep: o,
1198
1198
  onAddTrigger: s,
1199
1199
  onAddCondition: l,
1200
1200
  onAddLoop: a,
@@ -1202,18 +1202,18 @@ const ht = (t) => {
1202
1202
  onUpdateFilter: c,
1203
1203
  onSelectStep: r,
1204
1204
  onResize: u,
1205
- onCheckScenario: I
1205
+ onCheckScenario: w
1206
1206
  },
1207
- h.localId
1207
+ h.id
1208
1208
  );
1209
1209
  else if (h.steps) {
1210
- const N = h;
1210
+ const L = h;
1211
1211
  m = /* @__PURE__ */ C("div", { className: V.stepsContainer, children: [
1212
1212
  /* @__PURE__ */ n(
1213
- bt,
1213
+ Nt,
1214
1214
  {
1215
- expression: N.condition,
1216
- status: N.status,
1215
+ expression: L.condition,
1216
+ status: L.status,
1217
1217
  style: { marginTop: "25px" }
1218
1218
  }
1219
1219
  ),
@@ -1221,10 +1221,10 @@ const ht = (t) => {
1221
1221
  Pt,
1222
1222
  {
1223
1223
  steps: h.steps,
1224
- pathId: h.localId,
1224
+ pathId: h.id,
1225
1225
  onSelectStep: r ?? (() => {
1226
1226
  }),
1227
- onAddStep: i ?? (() => {
1227
+ onAddStep: o ?? (() => {
1228
1228
  }),
1229
1229
  onAddTrigger: s,
1230
1230
  onAddCondition: l ?? (() => {
@@ -1233,16 +1233,16 @@ const ht = (t) => {
1233
1233
  onDeleteStep: p,
1234
1234
  onUpdateFilter: c,
1235
1235
  onResize: u,
1236
- onCheckScenario: I
1236
+ onCheckScenario: w
1237
1237
  },
1238
- h.localId
1238
+ h.id
1239
1239
  )
1240
1240
  ] });
1241
1241
  } else
1242
1242
  m = /* @__PURE__ */ n(
1243
1243
  ht,
1244
1244
  {
1245
- localId: h.localId,
1245
+ id: h.id,
1246
1246
  title: "title" in h ? h.title : "",
1247
1247
  idx: 1,
1248
1248
  icon: "icon" in h ? h.icon : void 0,
@@ -1250,20 +1250,20 @@ const ht = (t) => {
1250
1250
  onSelectStep: r,
1251
1251
  onDeleteStep: p,
1252
1252
  onUpdateFilter: c,
1253
- onCheckScenario: I
1253
+ onCheckScenario: w
1254
1254
  },
1255
- h.localId
1255
+ h.id
1256
1256
  );
1257
1257
  return /* @__PURE__ */ n(
1258
1258
  "div",
1259
1259
  {
1260
- ref: (N) => {
1261
- b.current[L] = N;
1260
+ ref: (L) => {
1261
+ N.current[S] = L;
1262
1262
  },
1263
1263
  style: { width: "100%" },
1264
1264
  children: m
1265
1265
  },
1266
- h.localId
1266
+ h.id
1267
1267
  );
1268
1268
  }) }),
1269
1269
  /* @__PURE__ */ C("div", { className: V.column, style: { marginTop: "33px" }, children: [
@@ -1284,15 +1284,15 @@ const ht = (t) => {
1284
1284
  f
1285
1285
  ] }),
1286
1286
  /* @__PURE__ */ n(
1287
- ot,
1287
+ it,
1288
1288
  {
1289
- onAddStep: i,
1289
+ onAddStep: o,
1290
1290
  onAddTrigger: s,
1291
1291
  onAddCondition: l,
1292
1292
  onAddLoop: a,
1293
1293
  lineColor: at,
1294
- stepId: o,
1295
- pathId: o,
1294
+ stepId: i,
1295
+ pathId: i,
1296
1296
  index: 1,
1297
1297
  style: {
1298
1298
  marginTop: "34px",
@@ -1313,11 +1313,11 @@ const ht = (t) => {
1313
1313
  }
1314
1314
  )
1315
1315
  ] });
1316
- }, St = 68, q = y.NAVY, Pt = ({
1316
+ }, It = 68, q = b.NAVY, Pt = ({
1317
1317
  pathId: t,
1318
1318
  steps: e,
1319
- centerY: o,
1320
- className: i,
1319
+ centerY: i,
1320
+ className: o,
1321
1321
  onAddStep: s,
1322
1322
  onDeleteStep: l,
1323
1323
  onUpdateFilter: a,
@@ -1325,11 +1325,11 @@ const ht = (t) => {
1325
1325
  onAddCondition: c,
1326
1326
  onAddLoop: r,
1327
1327
  onSelectStep: u,
1328
- onResize: I,
1329
- onCheckScenario: w,
1330
- isDescendent: b = !0
1328
+ onResize: w,
1329
+ onCheckScenario: y,
1330
+ isDescendent: N = !0
1331
1331
  }) => {
1332
- const _ = o === void 0 ? void 0 : { marginTop: Math.max(0, o - St / 2) };
1332
+ const _ = i === void 0 ? void 0 : { marginTop: Math.max(0, i - It / 2) };
1333
1333
  return e.length === 0 ? /* @__PURE__ */ C(
1334
1334
  "div",
1335
1335
  {
@@ -1358,7 +1358,7 @@ const ht = (t) => {
1358
1358
  }
1359
1359
  ),
1360
1360
  /* @__PURE__ */ n(
1361
- ot,
1361
+ it,
1362
1362
  {
1363
1363
  onAddStep: () => {
1364
1364
  s?.(void 0, t);
@@ -1394,7 +1394,7 @@ const ht = (t) => {
1394
1394
  ) : /* @__PURE__ */ n(
1395
1395
  "div",
1396
1396
  {
1397
- className: rt.steps + (i ? " " + i : ""),
1397
+ className: rt.steps + (o ? " " + o : ""),
1398
1398
  style: _,
1399
1399
  children: /* @__PURE__ */ C(
1400
1400
  "div",
@@ -1409,16 +1409,16 @@ const ht = (t) => {
1409
1409
  },
1410
1410
  children: [
1411
1411
  /* @__PURE__ */ n(
1412
- ot,
1412
+ it,
1413
1413
  {
1414
1414
  onAddStep: () => {
1415
- s?.(e[0].localId, t, "prepend");
1415
+ s?.(e[0].id, t, "prepend");
1416
1416
  },
1417
1417
  onAddTrigger: p,
1418
1418
  onAddCondition: c,
1419
1419
  onAddLoop: r,
1420
1420
  lineColor: q,
1421
- stepId: e[0].localId,
1421
+ stepId: e[0].id,
1422
1422
  pathId: t,
1423
1423
  index: 0,
1424
1424
  style: {
@@ -1427,13 +1427,13 @@ const ht = (t) => {
1427
1427
  }
1428
1428
  ),
1429
1429
  e.map((g, f) => {
1430
- const h = !!g.paths, L = "condition" in g && typeof g.condition == "string";
1430
+ const h = !!g.paths, S = "condition" in g && typeof g.condition == "string";
1431
1431
  let m;
1432
1432
  return h && g.paths ? m = /* @__PURE__ */ n(
1433
1433
  ee,
1434
1434
  {
1435
1435
  items: g.paths,
1436
- pathId: g.localId,
1436
+ pathId: g.id,
1437
1437
  onAddStep: s,
1438
1438
  onAddCondition: c,
1439
1439
  onAddLoop: r,
@@ -1441,11 +1441,11 @@ const ht = (t) => {
1441
1441
  onAddTrigger: p,
1442
1442
  onSelectStep: u,
1443
1443
  onUpdateFilter: a,
1444
- onResize: I,
1445
- onCheckScenario: w
1444
+ onResize: w,
1445
+ onCheckScenario: y
1446
1446
  },
1447
1447
  g.title
1448
- ) : L ? m = /* @__PURE__ */ C(tt, { children: [
1448
+ ) : S ? m = /* @__PURE__ */ C(tt, { children: [
1449
1449
  /* @__PURE__ */ n(
1450
1450
  C1,
1451
1451
  {
@@ -1457,20 +1457,20 @@ const ht = (t) => {
1457
1457
  onDeleteStep: l,
1458
1458
  onUpdateFilter: a,
1459
1459
  onSelectStep: u,
1460
- onResize: I,
1461
- onCheckScenario: w
1460
+ onResize: w,
1461
+ onCheckScenario: y
1462
1462
  },
1463
- g.localId
1463
+ g.id
1464
1464
  ),
1465
1465
  /* @__PURE__ */ n(
1466
- ot,
1466
+ it,
1467
1467
  {
1468
1468
  onAddStep: s,
1469
1469
  onAddTrigger: p,
1470
1470
  onAddCondition: c,
1471
1471
  onAddLoop: r,
1472
1472
  lineColor: q,
1473
- stepId: g.localId,
1473
+ stepId: g.id,
1474
1474
  pathId: t,
1475
1475
  index: f + 1,
1476
1476
  style: { marginTop: "34px", height: 0 }
@@ -1480,7 +1480,7 @@ const ht = (t) => {
1480
1480
  /* @__PURE__ */ n(
1481
1481
  ht,
1482
1482
  {
1483
- localId: g.localId,
1483
+ id: g.id,
1484
1484
  title: g.title,
1485
1485
  idx: 1,
1486
1486
  icon: g.icon,
@@ -1491,19 +1491,19 @@ const ht = (t) => {
1491
1491
  onSelectStep: u,
1492
1492
  onDeleteStep: l,
1493
1493
  onUpdateFilter: a,
1494
- onCheckScenario: w
1494
+ onCheckScenario: y
1495
1495
  },
1496
1496
  g.title
1497
1497
  ),
1498
1498
  /* @__PURE__ */ n(
1499
- ot,
1499
+ it,
1500
1500
  {
1501
1501
  onAddStep: s,
1502
1502
  onAddTrigger: p,
1503
1503
  onAddCondition: c,
1504
1504
  onAddLoop: r,
1505
1505
  lineColor: q,
1506
- stepId: g.localId,
1506
+ stepId: g.id,
1507
1507
  pathId: t,
1508
1508
  index: f + 1
1509
1509
  }
@@ -1511,13 +1511,13 @@ const ht = (t) => {
1511
1511
  ] }), /* @__PURE__ */ n(
1512
1512
  "div",
1513
1513
  {
1514
- className: rt.stepContainer + (h || L ? " " + rt.stepContainerWithPaths : ""),
1514
+ className: rt.stepContainer + (h || S ? " " + rt.stepContainerWithPaths : ""),
1515
1515
  children: m
1516
1516
  },
1517
- g.localId
1517
+ g.id
1518
1518
  );
1519
1519
  }),
1520
- b && /* @__PURE__ */ n(
1520
+ N && /* @__PURE__ */ n(
1521
1521
  "div",
1522
1522
  {
1523
1523
  style: {
@@ -1560,11 +1560,11 @@ const ht = (t) => {
1560
1560
  )
1561
1561
  ]
1562
1562
  }
1563
- ), e1 = "_container_18jhr_1", n1 = "_collapsed_18jhr_16", o1 = "_loopNodeWrapper_18jhr_21", i1 = "_loopIconWrapper_18jhr_31", s1 = "_loopBox_18jhr_40", r1 = "_dotsButton_18jhr_57", l1 = "_label_18jhr_77", c1 = "_limit_18jhr_84", a1 = "_expandable_18jhr_90", d1 = "_expandableCollapsed_18jhr_98", u1 = "_connector_18jhr_105", p1 = "_line_18jhr_113", h1 = "_circleDot_18jhr_121", f1 = "_innerDot_18jhr_136", g1 = "_stepsWrapper_18jhr_143", S = {
1563
+ ), e1 = "_container_18jhr_1", n1 = "_collapsed_18jhr_16", i1 = "_loopNodeWrapper_18jhr_21", o1 = "_loopIconWrapper_18jhr_31", s1 = "_loopBox_18jhr_40", r1 = "_dotsButton_18jhr_57", l1 = "_label_18jhr_77", c1 = "_limit_18jhr_84", a1 = "_expandable_18jhr_90", d1 = "_expandableCollapsed_18jhr_98", u1 = "_connector_18jhr_105", p1 = "_line_18jhr_113", h1 = "_circleDot_18jhr_121", f1 = "_innerDot_18jhr_136", g1 = "_stepsWrapper_18jhr_143", I = {
1564
1564
  container: e1,
1565
1565
  collapsed: n1,
1566
- loopNodeWrapper: o1,
1567
- loopIconWrapper: i1,
1566
+ loopNodeWrapper: i1,
1567
+ loopIconWrapper: o1,
1568
1568
  loopBox: s1,
1569
1569
  dotsButton: r1,
1570
1570
  label: l1,
@@ -1579,8 +1579,8 @@ const ht = (t) => {
1579
1579
  }, C1 = ({
1580
1580
  value: t,
1581
1581
  onAddStep: e,
1582
- onAddTrigger: o,
1583
- onAddCondition: i,
1582
+ onAddTrigger: i,
1583
+ onAddCondition: o,
1584
1584
  onAddLoop: s,
1585
1585
  onDeleteStep: l,
1586
1586
  onUpdateFilter: a,
@@ -1588,12 +1588,12 @@ const ht = (t) => {
1588
1588
  onResize: c,
1589
1589
  onCheckScenario: r
1590
1590
  }) => {
1591
- const { localId: u, limit: I, steps: w, condition: b } = t, _ = w ?? [], g = () => {
1592
- }, [f, h] = D(!1), L = F(null), { openMenu: m, closeMenu: N } = Tt(), d = wt(), x = R(
1591
+ const { id: u, limit: w, steps: y, condition: N } = t, _ = y ?? [], g = () => {
1592
+ }, [f, h] = D(!1), S = F(null), { openMenu: m, closeMenu: L } = Tt(), d = yt(), x = R(
1593
1593
  () => [
1594
1594
  {
1595
1595
  label: "Edit",
1596
- icon: /* @__PURE__ */ n(Xt, { color: y.NAVY, size: 18 }),
1596
+ icon: /* @__PURE__ */ n(Xt, { color: b.NAVY, size: 18 }),
1597
1597
  command: (M) => {
1598
1598
  M?.originalEvent?.stopPropagation(), p?.(u);
1599
1599
  },
@@ -1601,7 +1601,7 @@ const ht = (t) => {
1601
1601
  },
1602
1602
  {
1603
1603
  label: "Remove",
1604
- icon: /* @__PURE__ */ n(xt, { color: y.NAVY, size: 18 }),
1604
+ icon: /* @__PURE__ */ n(xt, { color: b.NAVY, size: 18 }),
1605
1605
  command: (M) => {
1606
1606
  M?.originalEvent?.stopPropagation(), l && l(u);
1607
1607
  },
@@ -1610,19 +1610,19 @@ const ht = (t) => {
1610
1610
  ],
1611
1611
  [p, l, u, d]
1612
1612
  ), E = (M) => {
1613
- M.stopPropagation(), m(L, M);
1613
+ M.stopPropagation(), m(S, M);
1614
1614
  }, T = () => {
1615
1615
  h((M) => !M), c?.();
1616
- }, O = S.container + (f ? "" : " " + S.collapsed), j = S.expandable + (f ? "" : " " + S.expandableCollapsed);
1616
+ }, O = I.container + (f ? "" : " " + I.collapsed), j = I.expandable + (f ? "" : " " + I.expandableCollapsed);
1617
1617
  return /* @__PURE__ */ C("div", { className: O, children: [
1618
- /* @__PURE__ */ C("div", { className: S.loopNodeWrapper, children: [
1619
- /* @__PURE__ */ C("div", { className: S.loopBox, children: [
1620
- /* @__PURE__ */ n("div", { onClick: T, className: S.loopIconWrapper, children: /* @__PURE__ */ n(ne, {}) }),
1618
+ /* @__PURE__ */ C("div", { className: I.loopNodeWrapper, children: [
1619
+ /* @__PURE__ */ C("div", { className: I.loopBox, children: [
1620
+ /* @__PURE__ */ n("div", { onClick: T, className: I.loopIconWrapper, children: /* @__PURE__ */ n(ne, {}) }),
1621
1621
  /* @__PURE__ */ n(
1622
1622
  "button",
1623
1623
  {
1624
1624
  type: "button",
1625
- className: S.dotsButton,
1625
+ className: I.dotsButton,
1626
1626
  onClick: E,
1627
1627
  "aria-label": "Open loop menu",
1628
1628
  "aria-haspopup": "menu",
@@ -1630,43 +1630,43 @@ const ht = (t) => {
1630
1630
  }
1631
1631
  ),
1632
1632
  /* @__PURE__ */ n(
1633
- It,
1633
+ wt,
1634
1634
  {
1635
1635
  model: x,
1636
1636
  popup: !0,
1637
- ref: L,
1638
- onHide: () => N(L)
1637
+ ref: S,
1638
+ onHide: () => L(S)
1639
1639
  }
1640
1640
  )
1641
1641
  ] }),
1642
- /* @__PURE__ */ n("div", { className: S.label, children: "Loop" }),
1643
- I != null && /* @__PURE__ */ C("div", { className: S.limit, children: [
1644
- I,
1642
+ /* @__PURE__ */ n("div", { className: I.label, children: "Loop" }),
1643
+ w != null && /* @__PURE__ */ C("div", { className: I.limit, children: [
1644
+ w,
1645
1645
  "x"
1646
1646
  ] })
1647
1647
  ] }),
1648
1648
  /* @__PURE__ */ C("div", { className: j, children: [
1649
- /* @__PURE__ */ C("div", { className: S.connector, children: [
1650
- /* @__PURE__ */ n("div", { className: S.line }),
1651
- /* @__PURE__ */ n("div", { className: S.circleDot, children: /* @__PURE__ */ n("div", { className: S.innerDot }) }),
1652
- /* @__PURE__ */ n("div", { className: S.line })
1649
+ /* @__PURE__ */ C("div", { className: I.connector, children: [
1650
+ /* @__PURE__ */ n("div", { className: I.line }),
1651
+ /* @__PURE__ */ n("div", { className: I.circleDot, children: /* @__PURE__ */ n("div", { className: I.innerDot }) }),
1652
+ /* @__PURE__ */ n("div", { className: I.line })
1653
1653
  ] }),
1654
1654
  /* @__PURE__ */ n(
1655
- bt,
1655
+ Nt,
1656
1656
  {
1657
- expression: b ?? "",
1657
+ expression: N ?? "",
1658
1658
  status: t.status,
1659
1659
  style: { marginTop: "25.5px" }
1660
1660
  }
1661
1661
  ),
1662
- /* @__PURE__ */ n("div", { className: S.stepsWrapper, children: /* @__PURE__ */ n(
1662
+ /* @__PURE__ */ n("div", { className: I.stepsWrapper, children: /* @__PURE__ */ n(
1663
1663
  Pt,
1664
1664
  {
1665
1665
  steps: _,
1666
1666
  pathId: u,
1667
1667
  onAddStep: e ?? g,
1668
- onAddTrigger: o,
1669
- onAddCondition: i ?? g,
1668
+ onAddTrigger: i,
1669
+ onAddCondition: o ?? g,
1670
1670
  onAddLoop: s,
1671
1671
  onDeleteStep: l,
1672
1672
  onUpdateFilter: a ?? g,
@@ -1677,13 +1677,13 @@ const ht = (t) => {
1677
1677
  ) })
1678
1678
  ] })
1679
1679
  ] });
1680
- }, m1 = "_container_kielx_1", oe = {
1680
+ }, m1 = "_container_kielx_1", ie = {
1681
1681
  container: m1
1682
1682
  }, P1 = ({
1683
1683
  process: t,
1684
1684
  addMultipleTriggers: e,
1685
- onAddStep: o,
1686
- onAddTrigger: i,
1685
+ onAddStep: i,
1686
+ onAddTrigger: o,
1687
1687
  onAddCondition: s,
1688
1688
  onAddLoop: l,
1689
1689
  onResize: a,
@@ -1691,10 +1691,10 @@ const ht = (t) => {
1691
1691
  onDeleteStep: c,
1692
1692
  onUpdateFilter: r,
1693
1693
  onSelectStep: u,
1694
- onCheckScenario: I
1694
+ onCheckScenario: w
1695
1695
  }) => {
1696
- const [w, b] = D(0);
1697
- return /* @__PURE__ */ C("div", { className: oe.container, children: [
1696
+ const [y, N] = D(0);
1697
+ return /* @__PURE__ */ C("div", { className: ie.container, children: [
1698
1698
  /* @__PURE__ */ n(
1699
1699
  Qt,
1700
1700
  {
@@ -1703,7 +1703,7 @@ const ht = (t) => {
1703
1703
  onUpdateFilter: r,
1704
1704
  onDeleteTrigger: p,
1705
1705
  onSelectStep: u,
1706
- onCenterYUpdate: b,
1706
+ onCenterYUpdate: N,
1707
1707
  isEditable: !0
1708
1708
  }
1709
1709
  ),
@@ -1711,9 +1711,9 @@ const ht = (t) => {
1711
1711
  Pt,
1712
1712
  {
1713
1713
  steps: t.steps,
1714
- centerY: w,
1715
- onAddStep: o,
1716
- onAddTrigger: i,
1714
+ centerY: y,
1715
+ onAddStep: i,
1716
+ onAddTrigger: o,
1717
1717
  onAddCondition: s,
1718
1718
  onAddLoop: l,
1719
1719
  onResize: a,
@@ -1722,58 +1722,58 @@ const ht = (t) => {
1722
1722
  onSelectStep: u,
1723
1723
  isDescendent: !1,
1724
1724
  pathId: void 0,
1725
- onCheckScenario: I
1725
+ onCheckScenario: w
1726
1726
  }
1727
1727
  ) : /* @__PURE__ */ n(
1728
- ot,
1728
+ it,
1729
1729
  {
1730
- onAddStep: () => o(),
1731
- onAddTrigger: i,
1730
+ onAddStep: () => i(),
1731
+ onAddTrigger: o,
1732
1732
  onAddCondition: s,
1733
1733
  onAddLoop: l,
1734
1734
  index: 0,
1735
1735
  style: {
1736
- height: St,
1737
- marginTop: Math.max(0, w - St / 2)
1736
+ height: It,
1737
+ marginTop: Math.max(0, y - It / 2)
1738
1738
  }
1739
1739
  }
1740
1740
  )
1741
1741
  ] });
1742
- }, kt = (t, e, o) => {
1743
- if (e === o) return !1;
1744
- const i = (r) => {
1742
+ }, kt = (t, e, i) => {
1743
+ if (e === i) return !1;
1744
+ const o = (r) => {
1745
1745
  if ("paths" in r && r.paths && r.paths.length > 0) {
1746
1746
  const u = r.paths[r.paths.length - 1];
1747
1747
  if (u.steps && u.steps.length > 0) {
1748
- const I = u.steps[u.steps.length - 1];
1749
- return i(I);
1748
+ const w = u.steps[u.steps.length - 1];
1749
+ return o(w);
1750
1750
  }
1751
- return u.localId;
1751
+ return u.id;
1752
1752
  }
1753
- return "steps" in r && r.steps && r.steps.length > 0 ? i(
1753
+ return "steps" in r && r.steps && r.steps.length > 0 ? o(
1754
1754
  r.steps[r.steps.length - 1]
1755
- ) : r.localId;
1756
- }, s = (r) => r.steps && r.steps.length > 0 ? i(
1755
+ ) : r.id;
1756
+ }, s = (r) => r.steps && r.steps.length > 0 ? o(
1757
1757
  r.steps[r.steps.length - 1]
1758
- ) : r.paths && r.paths.length > 0 ? s(r.paths[r.paths.length - 1]) : r.localId, l = (r, u) => "paths" in r && r.paths && r.paths.length > 0 ? r.paths.some((w) => s(w) === u) : i(r) === u, a = (r) => {
1758
+ ) : r.paths && r.paths.length > 0 ? s(r.paths[r.paths.length - 1]) : r.id, l = (r, u) => "paths" in r && r.paths && r.paths.length > 0 ? r.paths.some((y) => s(y) === u) : o(r) === u, a = (r) => {
1759
1759
  for (let u = 0; u < r.length - 1; u++) {
1760
- const I = r[u], w = r[u + 1];
1761
- if (I.localId === e && w.localId === o || l(I, e) && w.localId === o)
1760
+ const w = r[u], y = r[u + 1];
1761
+ if (w.id === e && y.id === i || l(w, e) && y.id === i)
1762
1762
  return !0;
1763
1763
  }
1764
1764
  for (const u of r) {
1765
- if (u.localId === e && u.steps?.[0]?.localId === o)
1765
+ if (u.id === e && u.steps?.[0]?.id === i)
1766
1766
  return !0;
1767
1767
  if ("paths" in u && u.paths) {
1768
- for (const I of u.paths)
1769
- if (p(I)) return !0;
1768
+ for (const w of u.paths)
1769
+ if (p(w)) return !0;
1770
1770
  }
1771
1771
  if ("steps" in u && u.steps && a(u.steps))
1772
1772
  return !0;
1773
1773
  }
1774
1774
  return !1;
1775
1775
  }, p = (r) => {
1776
- if (r.localId === e && r.steps?.[0]?.localId === o || r.steps && r.steps.length > 0 && a(r.steps))
1776
+ if (r.id === e && r.steps?.[0]?.id === i || r.steps && r.steps.length > 0 && a(r.steps))
1777
1777
  return !0;
1778
1778
  if (r.paths) {
1779
1779
  for (const u of r.paths)
@@ -1781,75 +1781,75 @@ const ht = (t) => {
1781
1781
  }
1782
1782
  return !1;
1783
1783
  }, c = t.steps;
1784
- return c?.[0] && c[0].localId === e && c[0].steps?.[0]?.localId === o ? !0 : a(c);
1785
- }, ie = (t, e) => {
1786
- if (t.localId === e) return t.status;
1784
+ return c?.[0] && c[0].id === e && c[0].steps?.[0]?.id === i ? !0 : a(c);
1785
+ }, oe = (t, e) => {
1786
+ if (t.id === e) return t.status;
1787
1787
  if (t.steps)
1788
- for (const o of t.steps) {
1789
- const i = Rt(o, e);
1790
- if (i !== void 0) return i;
1788
+ for (const i of t.steps) {
1789
+ const o = Rt(i, e);
1790
+ if (o !== void 0) return o;
1791
1791
  }
1792
1792
  if (t.paths)
1793
- for (const o of t.paths) {
1794
- const i = ie(o, e);
1795
- if (i !== void 0) return i;
1793
+ for (const i of t.paths) {
1794
+ const o = oe(i, e);
1795
+ if (o !== void 0) return o;
1796
1796
  }
1797
1797
  }, Rt = (t, e) => {
1798
- if (t.localId === e) return t.status;
1798
+ if (t.id === e) return t.status;
1799
1799
  if (t.paths)
1800
- for (const o of t.paths) {
1801
- const i = ie(o, e);
1802
- if (i !== void 0) return i;
1800
+ for (const i of t.paths) {
1801
+ const o = oe(i, e);
1802
+ if (o !== void 0) return o;
1803
1803
  }
1804
1804
  if (t.steps)
1805
- for (const o of t.steps) {
1806
- const i = Rt(o, e);
1807
- if (i !== void 0) return i;
1805
+ for (const i of t.steps) {
1806
+ const o = Rt(i, e);
1807
+ if (o !== void 0) return o;
1808
1808
  }
1809
1809
  }, G = (t, e) => {
1810
- for (const o of t.triggers)
1811
- if (o.localId === e) return o.status;
1812
- for (const o of t.steps) {
1813
- const i = Rt(o, e);
1814
- if (i !== void 0) return i;
1810
+ for (const i of t.triggers)
1811
+ if (i.id === e) return i.status;
1812
+ for (const i of t.steps) {
1813
+ const o = Rt(i, e);
1814
+ if (o !== void 0) return o;
1815
1815
  }
1816
1816
  }, v1 = (t, e) => {
1817
- const o = (s) => {
1818
- if (s.localId === e) return !0;
1817
+ const i = (s) => {
1818
+ if (s.id === e) return !0;
1819
1819
  if (s.steps) {
1820
1820
  for (const l of s.steps)
1821
- if (i(l)) return !0;
1821
+ if (o(l)) return !0;
1822
1822
  }
1823
1823
  if (s.paths) {
1824
1824
  for (const l of s.paths)
1825
- if (o(l)) return !0;
1825
+ if (i(l)) return !0;
1826
1826
  }
1827
1827
  return !1;
1828
- }, i = (s) => {
1828
+ }, o = (s) => {
1829
1829
  if (s.paths) {
1830
1830
  for (const l of s.paths)
1831
- if (o(l)) return !0;
1831
+ if (i(l)) return !0;
1832
1832
  }
1833
1833
  if (s.steps) {
1834
1834
  for (const l of s.steps)
1835
- if (i(l)) return !0;
1835
+ if (o(l)) return !0;
1836
1836
  }
1837
1837
  return !1;
1838
1838
  };
1839
1839
  for (const s of t.triggers)
1840
- if (i(s)) return !0;
1840
+ if (o(s)) return !0;
1841
1841
  for (const s of t.steps)
1842
- if (i(s)) return !0;
1842
+ if (o(s)) return !0;
1843
1843
  return !1;
1844
- }, vt = (t, e, o) => {
1845
- if (e === o) return !1;
1846
- const i = G(t, e), s = G(t, o);
1847
- return i !== "finished" || s !== "finished" ? !1 : kt(t, e, o);
1848
- }, Ot = (t, e, o) => e === o || !v1(t, e) || G(t, o) !== "finished" ? !1 : kt(t, e, o), it = ({
1844
+ }, vt = (t, e, i) => {
1845
+ if (e === i) return !1;
1846
+ const o = G(t, e), s = G(t, i);
1847
+ return o !== "finished" || s !== "finished" ? !1 : kt(t, e, i);
1848
+ }, Ot = (t, e, i) => e === i || !v1(t, e) || G(t, i) !== "finished" ? !1 : kt(t, e, i), ot = ({
1849
1849
  lineColor: t,
1850
1850
  style: e,
1851
- fromLocalId: o,
1852
- toLocalId: i
1851
+ fromId: i,
1852
+ toId: o
1853
1853
  }) => {
1854
1854
  const l = pt(t) ? `${W.stepLinkLine} ${W.dashedLine}` : W.stepLinkLine;
1855
1855
  return /* @__PURE__ */ C(
@@ -1873,18 +1873,18 @@ const ht = (t) => {
1873
1873
  ]
1874
1874
  }
1875
1875
  );
1876
- }, Mt = (t) => t.steps && t.steps.length > 0 ? ut(t.steps[t.steps.length - 1]) : t.paths && t.paths.length > 0 ? Mt(t.paths[t.paths.length - 1]) : t.localId, ut = (t) => "paths" in t && t.paths && t.paths.length > 0 ? Mt(t.paths[t.paths.length - 1]) : "steps" in t && t.steps && t.steps.length > 0 ? ut(t.steps[t.steps.length - 1]) : t.localId, _t = (t) => "steps" in t && t.steps && t.steps.length > 0 ? _t(t.steps[t.steps.length - 1]) : "paths" in t && t.paths && t.paths.length > 0 ? _t(t.paths[t.paths.length - 1]) : t.localId, se = (t, e, o, i) => {
1876
+ }, Mt = (t) => t.steps && t.steps.length > 0 ? ut(t.steps[t.steps.length - 1]) : t.paths && t.paths.length > 0 ? Mt(t.paths[t.paths.length - 1]) : t.id, ut = (t) => "paths" in t && t.paths && t.paths.length > 0 ? Mt(t.paths[t.paths.length - 1]) : "steps" in t && t.steps && t.steps.length > 0 ? ut(t.steps[t.steps.length - 1]) : t.id, _t = (t) => "steps" in t && t.steps && t.steps.length > 0 ? _t(t.steps[t.steps.length - 1]) : "paths" in t && t.paths && t.paths.length > 0 ? _t(t.paths[t.paths.length - 1]) : t.id, se = (t, e, i, o) => {
1877
1877
  const s = e.statusLine(void 0);
1878
- if (i == null)
1879
- return o != null && G(t, o) === "finished" ? e.statusLine("finished") : s;
1880
- const l = G(t, i);
1878
+ if (o == null)
1879
+ return i != null && G(t, i) === "finished" ? e.statusLine("finished") : s;
1880
+ const l = G(t, o);
1881
1881
  if (l == null || l !== "finished")
1882
1882
  return s;
1883
- if (o == null) {
1884
- const a = t.steps[0]?.localId;
1885
- return a !== void 0 && i === a ? e.statusLine("finished") : s;
1883
+ if (i == null) {
1884
+ const a = t.steps[0]?.id;
1885
+ return a !== void 0 && o === a ? e.statusLine("finished") : s;
1886
1886
  }
1887
- return Ot(t, o, i) || vt(t, o, i) ? e.statusLine("finished") : s;
1887
+ return Ot(t, i, o) || vt(t, i, o) ? e.statusLine("finished") : s;
1888
1888
  }, re = Yt(
1889
1889
  null
1890
1890
  ), _1 = re.Provider, $t = () => {
@@ -1897,29 +1897,29 @@ const ht = (t) => {
1897
1897
  }, Vt = 34.5, x1 = 33, le = (t) => {
1898
1898
  const {
1899
1899
  items: e,
1900
- pathId: o,
1901
- previousLocalId: i,
1902
- nextLocalId: s,
1900
+ pathId: i,
1901
+ previousId: o,
1902
+ nextId: s,
1903
1903
  onSelectStep: l,
1904
1904
  onResize: a,
1905
1905
  onCheckScenario: p
1906
1906
  } = t, { process: c, lineColors: r } = $t(), u = () => {
1907
- }, I = se(
1907
+ }, w = se(
1908
1908
  c,
1909
1909
  r,
1910
- i,
1910
+ o,
1911
1911
  s
1912
- ), w = F(null), b = F([]), [_, g] = D([]);
1912
+ ), y = F(null), N = F([]), [_, g] = D([]);
1913
1913
  st(() => {
1914
1914
  const d = () => {
1915
- const T = w.current;
1915
+ const T = y.current;
1916
1916
  if (!T || e.length === 0) {
1917
1917
  g([]);
1918
1918
  return;
1919
1919
  }
1920
1920
  const O = [], j = Number.parseFloat(getComputedStyle(T).zoom || "1");
1921
1921
  for (let M = 0; M < e.length; M++) {
1922
- const v = b.current[M];
1922
+ const v = N.current[M];
1923
1923
  if (v)
1924
1924
  if (v.offsetParent == null) {
1925
1925
  const P = T.getBoundingClientRect(), $ = v.getBoundingClientRect();
@@ -1930,7 +1930,7 @@ const ht = (t) => {
1930
1930
  O.length === e.length && g(O);
1931
1931
  };
1932
1932
  d();
1933
- const x = new ResizeObserver(d), E = w.current;
1933
+ const x = new ResizeObserver(d), E = y.current;
1934
1934
  return E && x.observe(E), window.addEventListener("resize", d), () => {
1935
1935
  x.disconnect(), window.removeEventListener("resize", d);
1936
1936
  };
@@ -1943,18 +1943,18 @@ const ht = (t) => {
1943
1943
  }, [e]), h = R(() => {
1944
1944
  const d = r.statusLine(void 0);
1945
1945
  return e.length === 0 ? d : dt(e[0]) === "finished" ? r.statusLine("finished") : d;
1946
- }, [e, r]), L = R(() => _.length !== e.length || e.length <= 1 ? null : e.map((d, x) => x).filter((d) => d > 0).map((d) => {
1946
+ }, [e, r]), S = R(() => _.length !== e.length || e.length <= 1 ? null : e.map((d, x) => x).filter((d) => d > 0).map((d) => {
1947
1947
  const x = _[d];
1948
1948
  if (x === void 0) return null;
1949
1949
  const T = dt(e[d]) === "finished" ? r.statusLine("finished") : r.statusLine(void 0);
1950
1950
  return /* @__PURE__ */ n(
1951
- Lt,
1951
+ St,
1952
1952
  {
1953
1953
  width: 100,
1954
1954
  height: x,
1955
1955
  strokeColor: T,
1956
- fromLocalId: e[d - 1]?.localId,
1957
- toLocalId: e[d]?.localId
1956
+ fromId: e[d - 1]?.id,
1957
+ toId: e[d]?.id
1958
1958
  },
1959
1959
  d
1960
1960
  );
@@ -1976,13 +1976,13 @@ const ht = (t) => {
1976
1976
  ) && (T = r.statusLine("finished"));
1977
1977
  }
1978
1978
  return /* @__PURE__ */ n(
1979
- Lt,
1979
+ St,
1980
1980
  {
1981
1981
  width: 100,
1982
1982
  height: E,
1983
1983
  strokeColor: T,
1984
- fromLocalId: i,
1985
- toLocalId: s
1984
+ fromId: o,
1985
+ toId: s
1986
1986
  },
1987
1987
  x
1988
1988
  );
@@ -1993,8 +1993,8 @@ const ht = (t) => {
1993
1993
  r,
1994
1994
  c,
1995
1995
  s,
1996
- i
1997
- ]), N = R(() => {
1996
+ o
1997
+ ]), L = R(() => {
1998
1998
  const d = r.statusLine(void 0);
1999
1999
  if (e.length === 0 || s == null || G(c, s) !== "finished") return d;
2000
2000
  const E = _t(
@@ -2015,13 +2015,13 @@ const ht = (t) => {
2015
2015
  enabled: !1,
2016
2016
  debuggerMode: !0,
2017
2017
  status: f,
2018
- onSelect: o != null && l ? () => l(o) : void 0
2018
+ onSelect: i != null && l ? () => l(i) : void 0
2019
2019
  }
2020
2020
  ),
2021
2021
  /* @__PURE__ */ C(
2022
2022
  "div",
2023
2023
  {
2024
- ref: w,
2024
+ ref: y,
2025
2025
  className: V.column,
2026
2026
  style: { marginTop: "33px" },
2027
2027
  children: [
@@ -2038,7 +2038,7 @@ const ht = (t) => {
2038
2038
  }
2039
2039
  }
2040
2040
  ),
2041
- L
2041
+ S
2042
2042
  ]
2043
2043
  }
2044
2044
  ),
@@ -2049,29 +2049,29 @@ const ht = (t) => {
2049
2049
  le,
2050
2050
  {
2051
2051
  items: d.paths,
2052
- pathId: o,
2053
- previousLocalId: d.localId,
2054
- nextLocalId: s,
2052
+ pathId: i,
2053
+ previousId: d.id,
2054
+ nextId: s,
2055
2055
  onSelectStep: l,
2056
2056
  onResize: a,
2057
2057
  onCheckScenario: p
2058
2058
  },
2059
- d.localId
2059
+ d.id
2060
2060
  );
2061
2061
  else if (d.steps) {
2062
2062
  const T = d, O = T.status === "finished" || s != null && Ot(
2063
2063
  c,
2064
- T.localId,
2064
+ T.id,
2065
2065
  s
2066
2066
  ) ? "finished" : void 0;
2067
2067
  E = /* @__PURE__ */ C(
2068
2068
  "div",
2069
2069
  {
2070
2070
  className: V.stepsContainer,
2071
- "data-local-id": void 0,
2071
+ "data-id": void 0,
2072
2072
  children: [
2073
2073
  /* @__PURE__ */ n(
2074
- bt,
2074
+ Nt,
2075
2075
  {
2076
2076
  expression: T.condition,
2077
2077
  status: O,
@@ -2083,14 +2083,14 @@ const ht = (t) => {
2083
2083
  Dt,
2084
2084
  {
2085
2085
  steps: d.steps,
2086
- pathId: d.localId,
2087
- previousLocalId: T.localId,
2088
- nextLocalId: s,
2086
+ pathId: d.id,
2087
+ previousId: T.id,
2088
+ nextId: s,
2089
2089
  onSelectStep: l ?? u,
2090
2090
  onResize: a,
2091
2091
  onCheckScenario: p
2092
2092
  },
2093
- d.localId
2093
+ d.id
2094
2094
  )
2095
2095
  ]
2096
2096
  }
@@ -2099,7 +2099,7 @@ const ht = (t) => {
2099
2099
  E = /* @__PURE__ */ n(
2100
2100
  ht,
2101
2101
  {
2102
- localId: d.localId,
2102
+ id: d.id,
2103
2103
  title: "title" in d ? d.title : "",
2104
2104
  idx: 1,
2105
2105
  icon: "icon" in d ? d.icon : void 0,
@@ -2109,19 +2109,19 @@ const ht = (t) => {
2109
2109
  onUpdateFilter: u,
2110
2110
  onCheckScenario: p
2111
2111
  },
2112
- d.localId
2112
+ d.id
2113
2113
  );
2114
2114
  return /* @__PURE__ */ n(
2115
2115
  "div",
2116
2116
  {
2117
2117
  ref: (T) => {
2118
- b.current[x] = T;
2118
+ N.current[x] = T;
2119
2119
  },
2120
2120
  style: { width: "100%" },
2121
- "data-local-id": void 0,
2121
+ "data-id": void 0,
2122
2122
  children: E
2123
2123
  },
2124
- d.localId
2124
+ d.id
2125
2125
  );
2126
2126
  }) }),
2127
2127
  /* @__PURE__ */ C("div", { className: V.column, style: { marginTop: "33px" }, children: [
@@ -2135,18 +2135,18 @@ const ht = (t) => {
2135
2135
  flex: 1,
2136
2136
  width: "100%",
2137
2137
  height: "2px",
2138
- borderTop: Q(N)
2138
+ borderTop: Q(L)
2139
2139
  }
2140
2140
  }
2141
2141
  ),
2142
2142
  m
2143
2143
  ] }),
2144
2144
  /* @__PURE__ */ n(
2145
- it,
2145
+ ot,
2146
2146
  {
2147
- lineColor: I,
2148
- fromLocalId: i,
2149
- toLocalId: s,
2147
+ lineColor: w,
2148
+ fromId: o,
2149
+ toId: s,
2150
2150
  style: {
2151
2151
  marginTop: "34px",
2152
2152
  height: 0
@@ -2160,47 +2160,47 @@ const ht = (t) => {
2160
2160
  flex: 1,
2161
2161
  width: "100%",
2162
2162
  height: "2px",
2163
- borderTop: Q(I),
2163
+ borderTop: Q(w),
2164
2164
  marginTop: "34px"
2165
2165
  }
2166
2166
  }
2167
2167
  )
2168
2168
  ] });
2169
- }, I1 = ({
2169
+ }, w1 = ({
2170
2170
  value: t,
2171
- previousLocalId: e,
2172
- nextLocalId: o,
2173
- onSelectStep: i,
2171
+ previousId: e,
2172
+ nextId: i,
2173
+ onSelectStep: o,
2174
2174
  onResize: s,
2175
2175
  onCheckScenario: l
2176
2176
  }) => {
2177
- const { process: a, lineColors: p } = $t(), { localId: c, limit: r, steps: u, condition: I } = t, w = u ?? [], b = () => {
2177
+ const { process: a, lineColors: p } = $t(), { id: c, limit: r, steps: u, condition: w } = t, y = u ?? [], N = () => {
2178
2178
  }, [_, g] = D(!1), f = () => {
2179
2179
  g((E) => !E), s?.();
2180
- }, h = S.container + (_ ? "" : " " + S.collapsed), L = S.expandable + (_ ? "" : " " + S.expandableCollapsed), m = w[0]?.localId, N = m != null ? G(a, m) : void 0, x = e != null && (Ot(
2180
+ }, h = I.container + (_ ? "" : " " + I.collapsed), S = I.expandable + (_ ? "" : " " + I.expandableCollapsed), m = y[0]?.id, L = m != null ? G(a, m) : void 0, x = e != null && (Ot(
2181
2181
  a,
2182
2182
  e,
2183
2183
  c
2184
- ) || G(a, e) === "finished" && kt(a, e, c) || vt(a, e, c)) && N === "finished" ? p.statusLine("finished") : p.statusLine(void 0);
2184
+ ) || G(a, e) === "finished" && kt(a, e, c) || vt(a, e, c)) && L === "finished" ? p.statusLine("finished") : p.statusLine(void 0);
2185
2185
  return /* @__PURE__ */ C(
2186
2186
  "div",
2187
2187
  {
2188
2188
  className: h,
2189
- "data-local-id": void 0,
2189
+ "data-id": void 0,
2190
2190
  children: [
2191
- /* @__PURE__ */ C("div", { className: S.loopNodeWrapper, children: [
2192
- /* @__PURE__ */ n("div", { className: S.loopBox, children: /* @__PURE__ */ n("div", { onClick: f, className: S.loopIconWrapper, children: /* @__PURE__ */ n(ne, {}) }) }),
2193
- /* @__PURE__ */ n("div", { className: S.label, children: "Loop" }),
2194
- r != null && /* @__PURE__ */ C("div", { className: S.limit, children: [
2191
+ /* @__PURE__ */ C("div", { className: I.loopNodeWrapper, children: [
2192
+ /* @__PURE__ */ n("div", { className: I.loopBox, children: /* @__PURE__ */ n("div", { onClick: f, className: I.loopIconWrapper, children: /* @__PURE__ */ n(ne, {}) }) }),
2193
+ /* @__PURE__ */ n("div", { className: I.label, children: "Loop" }),
2194
+ r != null && /* @__PURE__ */ C("div", { className: I.limit, children: [
2195
2195
  r,
2196
2196
  "x"
2197
2197
  ] })
2198
2198
  ] }),
2199
- /* @__PURE__ */ C("div", { className: L, children: [
2199
+ /* @__PURE__ */ C("div", { className: S, children: [
2200
2200
  /* @__PURE__ */ C(
2201
2201
  "div",
2202
2202
  {
2203
- className: S.connector,
2203
+ className: I.connector,
2204
2204
  style: {
2205
2205
  "--iterator-connector-color": x,
2206
2206
  ...pt(x) && {
@@ -2209,31 +2209,31 @@ const ht = (t) => {
2209
2209
  }
2210
2210
  },
2211
2211
  children: [
2212
- /* @__PURE__ */ n("div", { className: S.line }),
2213
- /* @__PURE__ */ n("div", { className: S.circleDot, children: /* @__PURE__ */ n("div", { className: S.innerDot }) }),
2214
- /* @__PURE__ */ n("div", { className: S.line })
2212
+ /* @__PURE__ */ n("div", { className: I.line }),
2213
+ /* @__PURE__ */ n("div", { className: I.circleDot, children: /* @__PURE__ */ n("div", { className: I.innerDot }) }),
2214
+ /* @__PURE__ */ n("div", { className: I.line })
2215
2215
  ]
2216
2216
  }
2217
2217
  ),
2218
2218
  /* @__PURE__ */ n(
2219
- bt,
2219
+ Nt,
2220
2220
  {
2221
- expression: I ?? "",
2221
+ expression: w ?? "",
2222
2222
  status: t.status,
2223
2223
  debuggerMode: !0,
2224
2224
  style: { marginTop: "25.5px" }
2225
2225
  }
2226
2226
  ),
2227
- /* @__PURE__ */ n("div", { className: S.stepsWrapper, children: /* @__PURE__ */ n(
2227
+ /* @__PURE__ */ n("div", { className: I.stepsWrapper, children: /* @__PURE__ */ n(
2228
2228
  Dt,
2229
2229
  {
2230
- steps: w,
2230
+ steps: y,
2231
2231
  pathId: c,
2232
- previousLocalId: c,
2233
- nextLocalId: o,
2234
- onSelectStep: i ?? (() => {
2232
+ previousId: c,
2233
+ nextId: i,
2234
+ onSelectStep: o ?? (() => {
2235
2235
  }),
2236
- onCheckScenario: l ?? b,
2236
+ onCheckScenario: l ?? N,
2237
2237
  isDescendent: !0
2238
2238
  }
2239
2239
  ) })
@@ -2241,26 +2241,26 @@ const ht = (t) => {
2241
2241
  ]
2242
2242
  }
2243
2243
  );
2244
- }, Et = 68, w1 = (t) => {
2244
+ }, Et = 68, y1 = (t) => {
2245
2245
  if (!t || t.length === 0) return;
2246
2246
  const e = qt(
2247
- t.map((i) => dt(i))
2248
- ), o = t.find((i) => dt(i) === e) ?? t[t.length - 1];
2249
- return Mt(o);
2247
+ t.map((o) => dt(o))
2248
+ ), i = t.find((o) => dt(o) === e) ?? t[t.length - 1];
2249
+ return Mt(i);
2250
2250
  }, Dt = ({
2251
2251
  pathId: t,
2252
2252
  steps: e,
2253
- centerY: o,
2254
- className: i,
2255
- previousLocalId: s,
2256
- nextLocalId: l,
2253
+ centerY: i,
2254
+ className: o,
2255
+ previousId: s,
2256
+ nextId: l,
2257
2257
  onSelectStep: a,
2258
2258
  onResize: p,
2259
2259
  onCheckScenario: c,
2260
2260
  isDescendent: r = !0
2261
2261
  }) => {
2262
- const { process: u, lineColors: I } = $t(), w = () => {
2263
- }, b = o === void 0 ? void 0 : { marginTop: Math.max(0, o - Et / 2) }, _ = (f, h) => se(u, I, f, h), g = (f) => f === e.length - 1 ? l : e[f + 1]?.localId;
2262
+ const { process: u, lineColors: w } = $t(), y = () => {
2263
+ }, N = i === void 0 ? void 0 : { marginTop: Math.max(0, i - Et / 2) }, _ = (f, h) => se(u, w, f, h), g = (f) => f === e.length - 1 ? l : e[f + 1]?.id;
2264
2264
  if (e.length === 0) {
2265
2265
  const f = _(s, l);
2266
2266
  return /* @__PURE__ */ C(
@@ -2274,7 +2274,7 @@ const ht = (t) => {
2274
2274
  flexDirection: "row",
2275
2275
  flex: 1,
2276
2276
  minWidth: 0,
2277
- ...b
2277
+ ...N
2278
2278
  },
2279
2279
  children: [
2280
2280
  /* @__PURE__ */ n(
@@ -2292,11 +2292,11 @@ const ht = (t) => {
2292
2292
  }
2293
2293
  ),
2294
2294
  /* @__PURE__ */ n(
2295
- it,
2295
+ ot,
2296
2296
  {
2297
2297
  lineColor: f,
2298
- fromLocalId: s,
2299
- toLocalId: l,
2298
+ fromId: s,
2299
+ toId: l,
2300
2300
  style: {
2301
2301
  height: "auto",
2302
2302
  marginTop: "2px"
@@ -2325,8 +2325,8 @@ const ht = (t) => {
2325
2325
  "div",
2326
2326
  {
2327
2327
  "data-path-id": t ?? "",
2328
- className: rt.steps + (i ? " " + i : ""),
2329
- style: b,
2328
+ className: rt.steps + (o ? " " + o : ""),
2329
+ style: N,
2330
2330
  children: /* @__PURE__ */ C(
2331
2331
  "div",
2332
2332
  {
@@ -2340,28 +2340,28 @@ const ht = (t) => {
2340
2340
  },
2341
2341
  children: [
2342
2342
  /* @__PURE__ */ n(
2343
- it,
2343
+ ot,
2344
2344
  {
2345
- lineColor: _(s, e[0]?.localId),
2346
- fromLocalId: s,
2347
- toLocalId: e[0]?.localId,
2345
+ lineColor: _(s, e[0]?.id),
2346
+ fromId: s,
2347
+ toId: e[0]?.id,
2348
2348
  style: {
2349
2349
  marginTop: "21.5px"
2350
2350
  }
2351
2351
  }
2352
2352
  ),
2353
2353
  e.map((f, h) => {
2354
- const L = !!f.paths, m = "condition" in f && typeof f.condition == "string";
2355
- let N;
2356
- if (L && f.paths) {
2357
- const d = w1(f.paths);
2358
- N = /* @__PURE__ */ n(
2354
+ const S = !!f.paths, m = "condition" in f && typeof f.condition == "string";
2355
+ let L;
2356
+ if (S && f.paths) {
2357
+ const d = y1(f.paths);
2358
+ L = /* @__PURE__ */ n(
2359
2359
  le,
2360
2360
  {
2361
2361
  items: f.paths,
2362
- pathId: f.localId,
2363
- previousLocalId: d ?? f.localId,
2364
- nextLocalId: g(h),
2362
+ pathId: f.id,
2363
+ previousId: d ?? f.id,
2364
+ nextId: g(h),
2365
2365
  onSelectStep: a,
2366
2366
  onResize: p,
2367
2367
  onCheckScenario: c
@@ -2370,37 +2370,37 @@ const ht = (t) => {
2370
2370
  );
2371
2371
  } else if (m) {
2372
2372
  const d = h === 0 ? s : ut(e[h - 1]), x = ut(f);
2373
- N = /* @__PURE__ */ C(tt, { children: [
2373
+ L = /* @__PURE__ */ C(tt, { children: [
2374
2374
  /* @__PURE__ */ n(
2375
- I1,
2375
+ w1,
2376
2376
  {
2377
2377
  value: f,
2378
- previousLocalId: d,
2379
- nextLocalId: g(h),
2378
+ previousId: d,
2379
+ nextId: g(h),
2380
2380
  onSelectStep: a,
2381
2381
  onResize: p,
2382
2382
  onCheckScenario: c
2383
2383
  }
2384
2384
  ),
2385
2385
  /* @__PURE__ */ n(
2386
- it,
2386
+ ot,
2387
2387
  {
2388
2388
  lineColor: _(
2389
2389
  x,
2390
2390
  g(h)
2391
2391
  ),
2392
- fromLocalId: f.localId,
2393
- toLocalId: g(h),
2392
+ fromId: f.id,
2393
+ toId: g(h),
2394
2394
  style: { marginTop: "34px", height: 0 }
2395
2395
  }
2396
2396
  )
2397
2397
  ] });
2398
2398
  } else
2399
- N = /* @__PURE__ */ C(tt, { children: [
2399
+ L = /* @__PURE__ */ C(tt, { children: [
2400
2400
  /* @__PURE__ */ n(
2401
2401
  ht,
2402
2402
  {
2403
- localId: f.localId,
2403
+ id: f.id,
2404
2404
  title: f.title,
2405
2405
  idx: 1,
2406
2406
  icon: f.icon,
@@ -2410,30 +2410,30 @@ const ht = (t) => {
2410
2410
  status: f.status,
2411
2411
  debuggerMode: !0,
2412
2412
  onSelectStep: a,
2413
- onUpdateFilter: w,
2413
+ onUpdateFilter: y,
2414
2414
  onCheckScenario: c
2415
2415
  },
2416
2416
  f.title
2417
2417
  ),
2418
2418
  /* @__PURE__ */ n(
2419
- it,
2419
+ ot,
2420
2420
  {
2421
2421
  lineColor: _(
2422
- f.localId,
2422
+ f.id,
2423
2423
  g(h)
2424
2424
  ),
2425
- fromLocalId: f.localId,
2426
- toLocalId: g(h)
2425
+ fromId: f.id,
2426
+ toId: g(h)
2427
2427
  }
2428
2428
  )
2429
2429
  ] });
2430
2430
  return /* @__PURE__ */ n(
2431
2431
  "div",
2432
2432
  {
2433
- className: rt.stepContainer + (L || m ? " " + rt.stepContainerWithPaths : ""),
2434
- children: N
2433
+ className: rt.stepContainer + (S || m ? " " + rt.stepContainerWithPaths : ""),
2434
+ children: L
2435
2435
  },
2436
- f.localId
2436
+ f.id
2437
2437
  );
2438
2438
  }),
2439
2439
  r && /* @__PURE__ */ n(
@@ -2457,7 +2457,7 @@ const ht = (t) => {
2457
2457
  )
2458
2458
  }
2459
2459
  );
2460
- }, y1 = ({
2460
+ }, b1 = ({
2461
2461
  centerY: t,
2462
2462
  neutralLineColor: e
2463
2463
  }) => /* @__PURE__ */ C(
@@ -2486,7 +2486,7 @@ const ht = (t) => {
2486
2486
  }
2487
2487
  ),
2488
2488
  /* @__PURE__ */ n(
2489
- it,
2489
+ ot,
2490
2490
  {
2491
2491
  lineColor: e,
2492
2492
  style: { height: "auto" }
@@ -2508,20 +2508,20 @@ const ht = (t) => {
2508
2508
  ), k1 = ({
2509
2509
  process: t,
2510
2510
  statusLineColors: e,
2511
- neutralLineColor: o = y.NAVY,
2512
- onResize: i,
2511
+ neutralLineColor: i = b.NAVY,
2512
+ onResize: o,
2513
2513
  onSelectStep: s,
2514
2514
  onCheckScenario: l = () => {
2515
2515
  }
2516
2516
  }) => {
2517
2517
  const [a, p] = D(0), c = R(
2518
- () => mn(e, o),
2519
- [e, o]
2518
+ () => mn(e, i),
2519
+ [e, i]
2520
2520
  ), r = J(
2521
2521
  (u) => u === "finished" ? c.statusLine("finished") : c.statusLine(void 0),
2522
2522
  [c]
2523
2523
  );
2524
- return /* @__PURE__ */ n("div", { className: oe.container, children: /* @__PURE__ */ C(_1, { value: { process: t, lineColors: c }, children: [
2524
+ return /* @__PURE__ */ n("div", { className: ie.container, children: /* @__PURE__ */ C(_1, { value: { process: t, lineColors: c }, children: [
2525
2525
  /* @__PURE__ */ n(
2526
2526
  Qt,
2527
2527
  {
@@ -2538,14 +2538,14 @@ const ht = (t) => {
2538
2538
  {
2539
2539
  steps: t.steps,
2540
2540
  centerY: a,
2541
- onResize: i,
2541
+ onResize: o,
2542
2542
  onSelectStep: s,
2543
2543
  onCheckScenario: l,
2544
2544
  isDescendent: !1,
2545
2545
  pathId: void 0
2546
2546
  }
2547
2547
  ) : /* @__PURE__ */ n(
2548
- y1,
2548
+ b1,
2549
2549
  {
2550
2550
  centerY: a,
2551
2551
  neutralLineColor: c.statusLine(void 0)
@@ -2553,47 +2553,47 @@ const ht = (t) => {
2553
2553
  )
2554
2554
  ] }) });
2555
2555
  };
2556
- class b1 extends Error {
2556
+ class N1 extends Error {
2557
2557
  constructor(e) {
2558
2558
  super(e), this.name = "AddStepError";
2559
2559
  }
2560
2560
  }
2561
- const zt = (t) => "condition" in t && typeof t.condition == "string", ce = (t, e, o, i) => {
2562
- const s = i === "prepend" ? e : e + 1;
2563
- return [...t.slice(0, s), o, ...t.slice(s)];
2564
- }, Bt = (t, e, o, i) => {
2561
+ const zt = (t) => "condition" in t && typeof t.condition == "string", ce = (t, e, i, o) => {
2562
+ const s = o === "prepend" ? e : e + 1;
2563
+ return [...t.slice(0, s), i, ...t.slice(s)];
2564
+ }, Bt = (t, e, i, o) => {
2565
2565
  for (let s = 0; s < t.length; s++) {
2566
- if (t[s].localId === e)
2567
- return ce(t, s, i, o);
2568
- const l = t[s], a = l.steps?.length && Bt(l.steps, e, o, i);
2566
+ if (t[s].id === e)
2567
+ return ce(t, s, o, i);
2568
+ const l = t[s], a = l.steps?.length && Bt(l.steps, e, i, o);
2569
2569
  if (a)
2570
2570
  return t.map(
2571
2571
  (c, r) => r === s ? { ...c, steps: a } : c
2572
2572
  );
2573
- const p = l.paths?.length && ae(l.paths, e, o, i);
2573
+ const p = l.paths?.length && ae(l.paths, e, i, o);
2574
2574
  if (p)
2575
2575
  return t.map(
2576
2576
  (c, r) => r === s ? { ...c, paths: p } : c
2577
2577
  );
2578
2578
  }
2579
2579
  return null;
2580
- }, N1 = (t, e, o) => {
2581
- const i = t.steps ?? [], s = e === "prepend" ? [o, ...i] : [...i, o];
2580
+ }, L1 = (t, e, i) => {
2581
+ const o = t.steps ?? [], s = e === "prepend" ? [i, ...o] : [...o, i];
2582
2582
  return { ...t, steps: s };
2583
- }, ae = (t, e, o, i) => {
2583
+ }, ae = (t, e, i, o) => {
2584
2584
  for (let s = 0; s < t.length; s++) {
2585
2585
  const l = t[s];
2586
- if (l.localId === e)
2586
+ if (l.id === e)
2587
2587
  return zt(l) ? t.map(
2588
- (a, p) => p === s ? N1(l, o, i) : a
2589
- ) : ce(t, s, i, o);
2588
+ (a, p) => p === s ? L1(l, i, o) : a
2589
+ ) : ce(t, s, o, i);
2590
2590
  if (zt(l)) {
2591
- const a = l.steps?.length && Bt(l.steps, e, o, i);
2591
+ const a = l.steps?.length && Bt(l.steps, e, i, o);
2592
2592
  if (a)
2593
2593
  return t.map(
2594
2594
  (c, r) => r === s ? { ...c, steps: a } : c
2595
2595
  );
2596
- const p = l.paths?.length && ae(l.paths, e, o, i);
2596
+ const p = l.paths?.length && ae(l.paths, e, i, o);
2597
2597
  if (p)
2598
2598
  return t.map(
2599
2599
  (c, r) => r === s ? { ...c, paths: p } : c
@@ -2601,34 +2601,34 @@ const zt = (t) => "condition" in t && typeof t.condition == "string", ce = (t, e
2601
2601
  }
2602
2602
  }
2603
2603
  return null;
2604
- }, R1 = (t, e, o, i) => {
2605
- const s = Bt(t.steps, e, o, i);
2604
+ }, R1 = (t, e, i, o) => {
2605
+ const s = Bt(t.steps, e, i, o);
2606
2606
  if (s)
2607
2607
  return { ...t, steps: s };
2608
- throw new b1(`Step or path with id "${e}" not found`);
2608
+ throw new N1(`Step or path with id "${e}" not found`);
2609
2609
  }, de = (t, e) => ({
2610
2610
  ...t,
2611
2611
  ...t.steps != null && { steps: Ft(t.steps, e) },
2612
2612
  ...t.paths != null && {
2613
- paths: t.paths.map((o) => de(o, e))
2613
+ paths: t.paths.map((i) => de(i, e))
2614
2614
  }
2615
- }), Ft = (t, e) => t.filter((o) => o.localId !== e).map((o) => ({
2616
- ...o,
2617
- ...o.steps != null && { steps: Ft(o.steps, e) },
2618
- ...o.paths != null && {
2619
- paths: o.paths.map((i) => de(i, e))
2615
+ }), Ft = (t, e) => t.filter((i) => i.id !== e).map((i) => ({
2616
+ ...i,
2617
+ ...i.steps != null && { steps: Ft(i.steps, e) },
2618
+ ...i.paths != null && {
2619
+ paths: i.paths.map((o) => de(o, e))
2620
2620
  }
2621
2621
  })), O1 = (t, e) => {
2622
- const o = Ft(t.steps, e);
2622
+ const i = Ft(t.steps, e);
2623
2623
  return {
2624
2624
  ...t,
2625
- steps: o
2625
+ steps: i
2626
2626
  };
2627
2627
  };
2628
2628
  export {
2629
- b1 as AddStepError,
2629
+ N1 as AddStepError,
2630
2630
  C1 as Iterator,
2631
- It as Menu,
2631
+ wt as Menu,
2632
2632
  T1 as MenuProvider,
2633
2633
  k1 as ProcessDebuggerDiagram,
2634
2634
  P1 as ProcessDiagram,