@emporix/process-diagram 2.0.0-beta.2 → 2.0.0-beta.20

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 (90) 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/{menu → Menu}/Separator.d.ts.map +1 -1
  15. package/dist/components/ProcessDiagram.d.ts +4 -1
  16. package/dist/components/ProcessDiagram.d.ts.map +1 -1
  17. package/dist/components/common/AlertIcon.d.ts.map +1 -1
  18. package/dist/components/common/Line.d.ts +2 -1
  19. package/dist/components/common/Line.d.ts.map +1 -1
  20. package/dist/components/common/icons/ConditionIcon.d.ts.map +1 -1
  21. package/dist/components/common/icons/IteratorIcon.d.ts.map +1 -1
  22. package/dist/components/common/icons/LoopIcon.d.ts.map +1 -1
  23. package/dist/components/common/icons/MenuFilterIcon.d.ts.map +1 -1
  24. package/dist/components/condition/Condition.d.ts +4 -1
  25. package/dist/components/condition/Condition.d.ts.map +1 -1
  26. package/dist/components/curve/Curve.d.ts +4 -1
  27. package/dist/components/curve/Curve.d.ts.map +1 -1
  28. package/dist/components/if-statement/IfStatement.d.ts +5 -2
  29. package/dist/components/if-statement/IfStatement.d.ts.map +1 -1
  30. package/dist/components/iterator/Iterator.d.ts +5 -2
  31. package/dist/components/iterator/Iterator.d.ts.map +1 -1
  32. package/dist/components/plus-button/PlusButton.d.ts +4 -1
  33. package/dist/components/plus-button/PlusButton.d.ts.map +1 -1
  34. package/dist/components/plus-button/PlusIcon.d.ts.map +1 -1
  35. package/dist/components/process-debugger-diagram/DebuggerIterator.d.ts +12 -0
  36. package/dist/components/process-debugger-diagram/DebuggerIterator.d.ts.map +1 -0
  37. package/dist/components/process-debugger-diagram/DebuggerRow.d.ts +13 -0
  38. package/dist/components/process-debugger-diagram/DebuggerRow.d.ts.map +1 -0
  39. package/dist/components/process-debugger-diagram/DebuggerSteps.d.ts +17 -0
  40. package/dist/components/process-debugger-diagram/DebuggerSteps.d.ts.map +1 -0
  41. package/dist/components/process-debugger-diagram/ProcessDebuggerContext.d.ts +10 -0
  42. package/dist/components/process-debugger-diagram/ProcessDebuggerContext.d.ts.map +1 -0
  43. package/dist/components/process-debugger-diagram/ProcessDebuggerDiagram.d.ts +14 -0
  44. package/dist/components/process-debugger-diagram/ProcessDebuggerDiagram.d.ts.map +1 -0
  45. package/dist/components/process-debugger-diagram/StepConnector.d.ts +10 -0
  46. package/dist/components/process-debugger-diagram/StepConnector.d.ts.map +1 -0
  47. package/dist/components/processDiagram.storyFixtures.d.ts +19 -0
  48. package/dist/components/processDiagram.storyFixtures.d.ts.map +1 -0
  49. package/dist/components/row/Row.d.ts +6 -2
  50. package/dist/components/row/Row.d.ts.map +1 -1
  51. package/dist/components/step/Step.d.ts +4 -0
  52. package/dist/components/step/Step.d.ts.map +1 -1
  53. package/dist/components/steps/Steps.d.ts +4 -1
  54. package/dist/components/steps/Steps.d.ts.map +1 -1
  55. package/dist/components/triggers/AddTriggerIcon.d.ts.map +1 -1
  56. package/dist/components/triggers/IfStatement.d.ts +5 -0
  57. package/dist/components/triggers/IfStatement.d.ts.map +1 -0
  58. package/dist/components/triggers/Trigger.d.ts +6 -2
  59. package/dist/components/triggers/Trigger.d.ts.map +1 -1
  60. package/dist/constants/colors.d.ts +23 -0
  61. package/dist/constants/colors.d.ts.map +1 -0
  62. package/dist/helpers/debuggerConnector.helpers.d.ts +4 -0
  63. package/dist/helpers/debuggerConnector.helpers.d.ts.map +1 -0
  64. package/dist/helpers/debuggerStatus.helpers.d.ts +15 -0
  65. package/dist/helpers/debuggerStatus.helpers.d.ts.map +1 -0
  66. package/dist/helpers/finishedSequentialLine.helpers.d.ts +18 -0
  67. package/dist/helpers/finishedSequentialLine.helpers.d.ts.map +1 -0
  68. package/dist/helpers/processGraph.helpers.d.ts +8 -0
  69. package/dist/helpers/processGraph.helpers.d.ts.map +1 -0
  70. package/dist/index.cjs +1 -1
  71. package/dist/index.cjs.map +1 -1
  72. package/dist/index.d.ts +2 -0
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.mjs +2024 -994
  75. package/dist/index.mjs.map +1 -1
  76. package/dist/setupTests.d.ts +1 -1
  77. package/dist/setupTests.d.ts.map +1 -1
  78. package/dist/style.css +1 -1
  79. package/dist/types/index.d.ts +14 -0
  80. package/dist/types/index.d.ts.map +1 -1
  81. package/dist/utils.d.ts +16 -0
  82. package/dist/utils.d.ts.map +1 -0
  83. package/package.json +5 -5
  84. package/dist/components/iterator/LoopBoxIcon.d.ts +0 -8
  85. package/dist/components/iterator/LoopBoxIcon.d.ts.map +0 -1
  86. /package/dist/components/{menu → Menu}/Menu.d.ts +0 -0
  87. /package/dist/components/{menu → Menu}/Menu.d.ts.map +0 -0
  88. /package/dist/components/{menu → Menu}/Separator.d.ts +0 -0
  89. /package/dist/components/{menu → Menu}/index.d.ts +0 -0
  90. /package/dist/components/{menu → Menu}/index.d.ts.map +0 -0
package/dist/index.mjs CHANGED
@@ -1,266 +1,296 @@
1
- import { jsxs as C, Fragment as n1, jsx as t } from "react/jsx-runtime";
2
- import z, { forwardRef as b1, useState as E, useRef as $, useCallback as D, useImperativeHandle as N1, useEffect as q, createContext as k1, useMemo as S, useContext as B1, useLayoutEffect as M1 } from "react";
3
- import { createPortal as P1 } from "react-dom";
4
- const L1 = "_container_8wfnz_1", E1 = "_step_8wfnz_7", $1 = "_selected_8wfnz_23", T1 = "_selectedInvalid_8wfnz_29", O1 = "_isSet_8wfnz_35", S1 = "_invalid_8wfnz_39", H1 = "_filterFlag_8wfnz_45", W1 = "_title_8wfnz_73", z1 = "_icon_8wfnz_90", R1 = "_content_8wfnz_108", j1 = "_dotsButton_8wfnz_114", N = {
5
- container: L1,
6
- step: E1,
7
- selected: $1,
8
- selectedInvalid: T1,
9
- isSet: O1,
10
- invalid: S1,
11
- filterFlag: H1,
12
- title: W1,
13
- icon: z1,
14
- content: R1,
15
- dotsButton: j1
1
+ import { jsxs as v, Fragment as K, jsx as o } from "react/jsx-runtime";
2
+ import G, { forwardRef as de, useState as M, useRef as B, useCallback as Q, useImperativeHandle as ue, useEffect as nt, createContext as Vt, useMemo as $, useContext as zt, useLayoutEffect as pe } from "react";
3
+ import { createPortal as he } from "react-dom";
4
+ const fe = "_container_1f7x1_1", ge = "_step_1f7x1_7", me = "_dotsButton_1f7x1_23", Ce = "_selected_1f7x1_27", ve = "_selectedInvalid_1f7x1_36", _e = "_isSet_1f7x1_45", xe = "_invalid_1f7x1_52", Ie = "_debuggerStatus_1f7x1_60", we = "_title_1f7x1_64", ye = "_icon_1f7x1_67", Ne = "_filterFlag_1f7x1_78", be = "_content_1f7x1_141", R = {
5
+ container: fe,
6
+ step: ge,
7
+ dotsButton: me,
8
+ selected: Ce,
9
+ selectedInvalid: ve,
10
+ isSet: _e,
11
+ invalid: xe,
12
+ debuggerStatus: Ie,
13
+ title: we,
14
+ icon: ye,
15
+ filterFlag: Ne,
16
+ content: be
16
17
  };
17
- var f1 = {
18
+ var Yt = {
18
19
  color: void 0,
19
20
  size: void 0,
20
21
  className: void 0,
21
22
  style: void 0,
22
23
  attr: void 0
23
- }, p1 = z.createContext && /* @__PURE__ */ z.createContext(f1), D1 = ["attr", "size", "title"];
24
- function Z1(e, n) {
25
- if (e == null) return {};
26
- var o = V1(e, n), i, r;
24
+ }, Bt = G.createContext && /* @__PURE__ */ G.createContext(Yt), Le = ["attr", "size", "title"];
25
+ function Se(t, e) {
26
+ if (t == null) return {};
27
+ var n = Te(t, e), i, s;
27
28
  if (Object.getOwnPropertySymbols) {
28
- var c = Object.getOwnPropertySymbols(e);
29
- for (r = 0; r < c.length; r++)
30
- i = c[r], !(n.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(e, i) && (o[i] = e[i]);
29
+ var l = Object.getOwnPropertySymbols(t);
30
+ for (s = 0; s < l.length; s++)
31
+ i = l[s], !(e.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(t, i) && (n[i] = t[i]);
31
32
  }
32
- return o;
33
+ return n;
33
34
  }
34
- function V1(e, n) {
35
- if (e == null) return {};
36
- var o = {};
37
- for (var i in e)
38
- if (Object.prototype.hasOwnProperty.call(e, i)) {
39
- if (n.indexOf(i) >= 0) continue;
40
- o[i] = e[i];
35
+ function Te(t, e) {
36
+ if (t == null) return {};
37
+ var n = {};
38
+ for (var i in t)
39
+ if (Object.prototype.hasOwnProperty.call(t, i)) {
40
+ if (e.indexOf(i) >= 0) continue;
41
+ n[i] = t[i];
41
42
  }
42
- return o;
43
+ return n;
43
44
  }
44
- function X() {
45
- return X = Object.assign ? Object.assign.bind() : function(e) {
46
- for (var n = 1; n < arguments.length; n++) {
47
- var o = arguments[n];
48
- for (var i in o)
49
- Object.prototype.hasOwnProperty.call(o, i) && (e[i] = o[i]);
45
+ function at() {
46
+ return at = Object.assign ? Object.assign.bind() : function(t) {
47
+ for (var e = 1; e < arguments.length; e++) {
48
+ var n = arguments[e];
49
+ for (var i in n)
50
+ Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
50
51
  }
51
- return e;
52
- }, X.apply(this, arguments);
52
+ return t;
53
+ }, at.apply(this, arguments);
53
54
  }
54
- function u1(e, n) {
55
- var o = Object.keys(e);
55
+ function Ft(t, e) {
56
+ var n = Object.keys(t);
56
57
  if (Object.getOwnPropertySymbols) {
57
- var i = Object.getOwnPropertySymbols(e);
58
- n && (i = i.filter(function(r) {
59
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
60
- })), o.push.apply(o, i);
58
+ var i = Object.getOwnPropertySymbols(t);
59
+ e && (i = i.filter(function(s) {
60
+ return Object.getOwnPropertyDescriptor(t, s).enumerable;
61
+ })), n.push.apply(n, i);
61
62
  }
62
- return o;
63
+ return n;
63
64
  }
64
- function G(e) {
65
- for (var n = 1; n < arguments.length; n++) {
66
- var o = arguments[n] != null ? arguments[n] : {};
67
- n % 2 ? u1(Object(o), !0).forEach(function(i) {
68
- F1(e, i, o[i]);
69
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : u1(Object(o)).forEach(function(i) {
70
- Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(o, i));
65
+ function dt(t) {
66
+ for (var e = 1; e < arguments.length; e++) {
67
+ var n = arguments[e] != null ? arguments[e] : {};
68
+ e % 2 ? Ft(Object(n), !0).forEach(function(i) {
69
+ Pe(t, i, n[i]);
70
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ft(Object(n)).forEach(function(i) {
71
+ Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
71
72
  });
72
73
  }
73
- return e;
74
+ return t;
74
75
  }
75
- function F1(e, n, o) {
76
- return n = q1(n), n in e ? Object.defineProperty(e, n, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = o, e;
76
+ function Pe(t, e, n) {
77
+ return e = ke(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
77
78
  }
78
- function q1(e) {
79
- var n = Y1(e, "string");
80
- return typeof n == "symbol" ? n : n + "";
79
+ function ke(t) {
80
+ var e = Ee(t, "string");
81
+ return typeof e == "symbol" ? e : e + "";
81
82
  }
82
- function Y1(e, n) {
83
- if (typeof e != "object" || !e) return e;
84
- var o = e[Symbol.toPrimitive];
85
- if (o !== void 0) {
86
- var i = o.call(e, n);
83
+ function Ee(t, e) {
84
+ if (typeof t != "object" || !t) return t;
85
+ var n = t[Symbol.toPrimitive];
86
+ if (n !== void 0) {
87
+ var i = n.call(t, e);
87
88
  if (typeof i != "object") return i;
88
89
  throw new TypeError("@@toPrimitive must return a primitive value.");
89
90
  }
90
- return (n === "string" ? String : Number)(e);
91
+ return (e === "string" ? String : Number)(t);
91
92
  }
92
- function g1(e) {
93
- return e && e.map((n, o) => /* @__PURE__ */ z.createElement(n.tag, G({
94
- key: o
95
- }, n.attr), g1(n.child)));
93
+ function Gt(t) {
94
+ return t && t.map((e, n) => /* @__PURE__ */ G.createElement(e.tag, dt({
95
+ key: n
96
+ }, e.attr), Gt(e.child)));
96
97
  }
97
- function V(e) {
98
- return (n) => /* @__PURE__ */ z.createElement(A1, X({
99
- attr: G({}, e.attr)
100
- }, n), g1(e.child));
98
+ function J(t) {
99
+ return (e) => /* @__PURE__ */ G.createElement(Re, at({
100
+ attr: dt({}, t.attr)
101
+ }, e), Gt(t.child));
101
102
  }
102
- function A1(e) {
103
- var n = (o) => {
103
+ function Re(t) {
104
+ var e = (n) => {
104
105
  var {
105
106
  attr: i,
106
- size: r,
107
- title: c
108
- } = e, a = Z1(e, D1), d = r || o.size || "1em", s;
109
- return o.className && (s = o.className), e.className && (s = (s ? s + " " : "") + e.className), /* @__PURE__ */ z.createElement("svg", X({
107
+ size: s,
108
+ title: l
109
+ } = t, d = Se(t, Le), p = s || n.size || "1em", c;
110
+ return n.className && (c = n.className), t.className && (c = (c ? c + " " : "") + t.className), /* @__PURE__ */ G.createElement("svg", at({
110
111
  stroke: "currentColor",
111
112
  fill: "currentColor",
112
113
  strokeWidth: "0"
113
- }, o.attr, i, a, {
114
- className: s,
115
- style: G(G({
116
- color: e.color || o.color
117
- }, o.style), e.style),
118
- height: d,
119
- width: d,
114
+ }, n.attr, i, d, {
115
+ className: c,
116
+ style: dt(dt({
117
+ color: t.color || n.color
118
+ }, n.style), t.style),
119
+ height: p,
120
+ width: p,
120
121
  xmlns: "http://www.w3.org/2000/svg"
121
- }), c && /* @__PURE__ */ z.createElement("title", null, c), e.children);
122
+ }), l && /* @__PURE__ */ G.createElement("title", null, l), t.children);
122
123
  };
123
- return p1 !== void 0 ? /* @__PURE__ */ z.createElement(p1.Consumer, null, (o) => n(o)) : n(f1);
124
+ return Bt !== void 0 ? /* @__PURE__ */ G.createElement(Bt.Consumer, null, (n) => e(n)) : e(Yt);
124
125
  }
125
- function X1(e) {
126
- return V({ 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: [] }] })(e);
126
+ function Me(t) {
127
+ return J({ 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);
127
128
  }
128
- function G1(e) {
129
- return V({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325" }, child: [] }] })(e);
129
+ function Zt(t) {
130
+ return J({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325" }, child: [] }] })(t);
130
131
  }
131
- function K(e) {
132
- return V({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" }, child: [] }] })(e);
132
+ function ut(t) {
133
+ return J({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" }, child: [] }] })(t);
133
134
  }
134
- function J(e) {
135
- return V({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z" }, child: [] }, { tag: "path", attr: { d: "M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z" }, child: [] }] })(e);
135
+ function ht(t) {
136
+ return J({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z" }, child: [] }, { tag: "path", attr: { d: "M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z" }, child: [] }] })(t);
136
137
  }
137
- const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_19663_37", U1 = "_disabled_19663_52", ee = "_menuItemIcon_19663_57", te = "_menuItemText_19663_63", ne = "_overlay_19663_69", T = {
138
- panel: K1,
139
- panelExiting: J1,
140
- menuItem: Q1,
141
- disabled: U1,
142
- menuItemIcon: ee,
143
- menuItemText: te,
144
- overlay: ne
145
- }, oe = (e) => {
146
- const o = e.currentTarget ?? e.target;
147
- if (o?.getBoundingClientRect) {
148
- const r = o.getBoundingClientRect();
149
- return { top: r.bottom + 2, left: r.left };
138
+ const Oe = "_panel_19663_1", $e = "_panelExiting_19663_13", De = "_menuItem_19663_37", Be = "_disabled_19663_52", Fe = "_menuItemIcon_19663_57", Ae = "_menuItemText_19663_63", je = "_overlay_19663_69", W = {
139
+ panel: Oe,
140
+ panelExiting: $e,
141
+ menuItem: De,
142
+ disabled: Be,
143
+ menuItemIcon: Fe,
144
+ menuItemText: Ae,
145
+ overlay: je
146
+ }, We = (t) => {
147
+ const n = t.currentTarget ?? t.target;
148
+ if (n?.getBoundingClientRect) {
149
+ const s = n.getBoundingClientRect();
150
+ return { top: s.bottom + 2, left: s.left };
150
151
  }
151
- const i = e;
152
+ const i = t;
152
153
  return {
153
154
  top: (i.clientY ?? 0) + 2,
154
155
  left: i.clientX ?? 0
155
156
  };
156
- }, Q = b1(function({ model: n, popup: o = !0, onHide: i, onClick: r }, c) {
157
- const [a, d] = E(!1), [s, l] = E(!1), [f, b] = E({ top: 0, left: 0 }), x = $(null), v = D(() => {
158
- s || l(!0);
159
- }, [s]), m = D(
157
+ }, ft = de(function({ model: e, popup: n = !0, onHide: i, onClick: s }, l) {
158
+ const [d, p] = M(!1), [c, r] = M(!1), [h, m] = M({ top: 0, left: 0 }), x = B(null), C = Q(() => {
159
+ c || r(!0);
160
+ }, [c]), N = Q(
160
161
  (u) => {
161
- s && u.animationName.includes("menuOut") && (d(!1), l(!1), i?.());
162
+ c && u.animationName.includes("menuOut") && (p(!1), r(!1), i?.());
162
163
  },
163
- [s, i]
164
- ), p = D((u) => {
165
- b(oe(u)), l(!1), d(!0);
166
- }, []), w = D(
164
+ [c, i]
165
+ ), b = Q((u) => {
166
+ m(We(u)), r(!1), p(!0);
167
+ }, []), g = Q(
167
168
  (u) => {
168
- a ? v() : p(u);
169
+ d ? C() : b(u);
169
170
  },
170
- [a, v, p]
171
+ [d, C, b]
171
172
  );
172
- N1(
173
- c,
173
+ ue(
174
+ l,
174
175
  () => ({
175
- show: p,
176
- hide: v,
177
- toggle: w
176
+ show: b,
177
+ hide: C,
178
+ toggle: g
178
179
  }),
179
- [p, v, w]
180
- ), q(() => {
181
- if (!a) return;
182
- const u = (L) => {
183
- L.key === "Escape" && v();
184
- }, I = (L) => {
185
- const h = x.current;
186
- h && !h.contains(L.target) && (L.stopPropagation(), v());
180
+ [b, C, g]
181
+ ), nt(() => {
182
+ if (!d) return;
183
+ const u = (_) => {
184
+ _.key === "Escape" && C();
185
+ }, a = (_) => {
186
+ const I = x.current;
187
+ I && !I.contains(_.target) && (_.stopPropagation(), C());
187
188
  };
188
- return document.addEventListener("keydown", u), document.addEventListener("mousedown", I), () => {
189
- document.removeEventListener("keydown", u), document.removeEventListener("mousedown", I);
189
+ return document.addEventListener("keydown", u), document.addEventListener("mousedown", a), () => {
190
+ document.removeEventListener("keydown", u), document.removeEventListener("mousedown", a);
190
191
  };
191
- }, [a, v]);
192
- const y = (u, I) => {
193
- I.stopPropagation(), u.command?.({ originalEvent: I, item: u }), v();
194
- }, _ = (u, I) => {
195
- const L = (h) => y(u, h);
196
- return u.template ? /* @__PURE__ */ t(z.Fragment, { children: u.template(u, { onClick: L }) }, I) : /* @__PURE__ */ C(
192
+ }, [d, C]);
193
+ const f = (u, a) => {
194
+ a.stopPropagation(), u.command?.({ originalEvent: a, item: u }), C();
195
+ }, E = (u, a) => {
196
+ const _ = (I) => f(u, I);
197
+ return u.template ? /* @__PURE__ */ o(G.Fragment, { children: u.template(u, { onClick: _ }) }, a) : /* @__PURE__ */ v(
197
198
  "button",
198
199
  {
199
200
  type: "button",
200
- className: `${T.menuItem} ${u.disabled && T.disabled}`,
201
- onClick: (h) => {
202
- u.disabled || L(h);
201
+ className: `${W.menuItem} ${u.disabled && W.disabled}`,
202
+ onClick: (I) => {
203
+ u.disabled || _(I);
203
204
  },
204
205
  children: [
205
- u.icon && /* @__PURE__ */ t("span", { className: T.menuItemIcon, children: u.icon }),
206
- /* @__PURE__ */ t("span", { className: T.menuItemText, children: u.label })
206
+ u.icon && /* @__PURE__ */ o("span", { className: W.menuItemIcon, children: u.icon }),
207
+ /* @__PURE__ */ o("span", { className: W.menuItemText, children: u.label })
207
208
  ]
208
209
  },
209
- I
210
+ a
210
211
  );
211
212
  };
212
- return !a || !o ? null : P1(
213
- /* @__PURE__ */ C(n1, { children: [
214
- /* @__PURE__ */ t(
213
+ return !d || !n ? null : he(
214
+ /* @__PURE__ */ v(K, { children: [
215
+ /* @__PURE__ */ o(
215
216
  "div",
216
217
  {
217
- className: T.overlay,
218
+ className: W.overlay,
218
219
  "aria-hidden": !0,
219
- onClick: () => v(),
220
+ onClick: () => C(),
220
221
  onMouseDown: (u) => u.stopPropagation()
221
222
  }
222
223
  ),
223
- /* @__PURE__ */ t(
224
+ /* @__PURE__ */ o(
224
225
  "div",
225
226
  {
226
227
  ref: x,
227
- className: `${T.panel} ${s ? T.panelExiting : ""}`,
228
+ className: `${W.panel} ${c ? W.panelExiting : ""}`,
228
229
  role: "menu",
229
- style: { top: f.top, left: f.left },
230
- onAnimationEnd: m,
230
+ style: { top: h.top, left: h.left },
231
+ onAnimationEnd: N,
231
232
  onClick: (u) => {
232
- u.stopPropagation(), r?.(u);
233
+ u.stopPropagation(), s?.(u);
233
234
  },
234
- children: n.map(_)
235
+ children: e.map(E)
235
236
  }
236
237
  )
237
238
  ] }),
238
239
  document.body
239
240
  );
240
- }), i1 = () => (e, n) => /* @__PURE__ */ C(
241
+ }), gt = () => (t, e) => /* @__PURE__ */ v(
241
242
  "button",
242
243
  {
243
- className: T.menuItem,
244
- onClick: (o) => n.onClick(o),
244
+ className: W.menuItem,
245
+ onClick: (n) => e.onClick(n),
245
246
  children: [
246
- /* @__PURE__ */ t("span", { className: T.menuItemIcon, children: e.icon }),
247
- /* @__PURE__ */ t("span", { className: T.menuItemText, children: e.label })
247
+ /* @__PURE__ */ o("span", { className: W.menuItemIcon, children: t.icon }),
248
+ /* @__PURE__ */ o("span", { className: W.menuItemText, children: t.label })
248
249
  ]
249
250
  }
250
- ), ie = ({
251
- width: e = 16,
252
- height: n = 16,
253
- color: o = "#3B64A0"
254
- }) => /* @__PURE__ */ C(
251
+ ), w = {
252
+ NAVY: "#3B64A0",
253
+ LIGHT_BG: "#fafafa",
254
+ FINISHED_GREEN: "#17a34a",
255
+ ERROR_RED: "#E32012",
256
+ TEAL: "#41B0AC",
257
+ ADD_TRIGGER_FILL: "#0C971F",
258
+ ADD_TRIGGER_STROKE: "#14BC2B",
259
+ SEPARATOR: "#a1bbdc",
260
+ SLATE_400: "#94a3b8",
261
+ ORANGE: "#ff9800"
262
+ }, mt = (t) => t?.toLowerCase() === w.FINISHED_GREEN.toLowerCase(), X = (t) => mt(t) ? `3px dotted ${t}` : `2px solid ${t}`, Ct = {
263
+ pending: w.NAVY,
264
+ running: w.FINISHED_GREEN,
265
+ validating: w.ORANGE,
266
+ finished: w.FINISHED_GREEN,
267
+ failed: w.ERROR_RED,
268
+ cancelled: w.ORANGE,
269
+ skipped: w.SLATE_400,
270
+ invalid: w.ERROR_RED
271
+ }, He = {
272
+ pending: w.LIGHT_BG,
273
+ running: "#e6f7f6",
274
+ validating: "#eff6ff",
275
+ finished: "#DFFFE3",
276
+ failed: "#fde8e6",
277
+ cancelled: "#f1f5f9",
278
+ skipped: "#f1f5f9",
279
+ invalid: "#fffbeb"
280
+ }, Ve = ({
281
+ width: t = 16,
282
+ height: e = 16,
283
+ color: n = w.NAVY
284
+ }) => /* @__PURE__ */ v(
255
285
  "svg",
256
286
  {
257
- width: e,
258
- height: n,
287
+ width: t,
288
+ height: e,
259
289
  viewBox: "0 0 16 16",
260
290
  fill: "none",
261
291
  xmlns: "http://www.w3.org/2000/svg",
262
292
  children: [
263
- /* @__PURE__ */ t(
293
+ /* @__PURE__ */ o(
264
294
  "rect",
265
295
  {
266
296
  x: "7.99219",
@@ -269,103 +299,103 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
269
299
  height: "11",
270
300
  rx: "1.5",
271
301
  transform: "rotate(45 7.99219 0.222732)",
272
- stroke: o
302
+ stroke: n
273
303
  }
274
304
  ),
275
- /* @__PURE__ */ t(
305
+ /* @__PURE__ */ o(
276
306
  "path",
277
307
  {
278
308
  d: "M10.4693 5.52599L5.52513 10.4813M5.52513 5.53151L10.4749 10.4813",
279
- stroke: o,
309
+ stroke: n,
280
310
  strokeLinecap: "round"
281
311
  }
282
312
  )
283
313
  ]
284
314
  }
285
- ), re = ({
286
- width: e = 16,
287
- height: n = 16,
288
- color: o = "#3B64A0"
289
- }) => /* @__PURE__ */ C(
315
+ ), ze = ({
316
+ width: t = 16,
317
+ height: e = 16,
318
+ color: n = w.NAVY
319
+ }) => /* @__PURE__ */ v(
290
320
  "svg",
291
321
  {
292
- width: e,
293
- height: n,
322
+ width: t,
323
+ height: e,
294
324
  viewBox: "0 0 16 16",
295
325
  fill: "none",
296
326
  xmlns: "http://www.w3.org/2000/svg",
297
327
  children: [
298
- /* @__PURE__ */ t(
328
+ /* @__PURE__ */ o(
299
329
  "path",
300
330
  {
301
331
  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",
302
- fill: o
332
+ fill: n
303
333
  }
304
334
  ),
305
- /* @__PURE__ */ t(
335
+ /* @__PURE__ */ o(
306
336
  "path",
307
337
  {
308
338
  fillRule: "evenodd",
309
339
  clipRule: "evenodd",
310
340
  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",
311
- fill: o
341
+ fill: n
312
342
  }
313
343
  )
314
344
  ]
315
345
  }
316
- ), h1 = ({
317
- width: e = 16,
318
- height: n = 16,
319
- color: o = "#3B64A0"
320
- }) => /* @__PURE__ */ C(
346
+ ), It = ({
347
+ width: t = 16,
348
+ height: e = 16,
349
+ color: n = w.NAVY
350
+ }) => /* @__PURE__ */ v(
321
351
  "svg",
322
352
  {
323
- width: e,
324
- height: n,
353
+ width: t,
354
+ height: e,
325
355
  viewBox: "0 0 16 16",
326
356
  fill: "none",
327
357
  xmlns: "http://www.w3.org/2000/svg",
328
358
  children: [
329
- /* @__PURE__ */ t(
359
+ /* @__PURE__ */ o(
330
360
  "path",
331
361
  {
332
362
  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",
333
- fill: o
363
+ fill: n
334
364
  }
335
365
  ),
336
- /* @__PURE__ */ t(
366
+ /* @__PURE__ */ o(
337
367
  "path",
338
368
  {
339
369
  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",
340
- fill: o
370
+ fill: n
341
371
  }
342
372
  )
343
373
  ]
344
374
  }
345
- ), v1 = k1(
375
+ ), Ut = Vt(
346
376
  void 0
347
- ), Lt = ({ children: e }) => {
348
- const [n, o] = E([]), i = D((a, d) => {
349
- o((s) => (s.forEach((l) => {
350
- l.current && l !== a && l.current.hide(d);
351
- }), [])), a.current?.toggle(d), o([a]);
352
- }, []), r = D((a) => {
353
- o((d) => d.filter((s) => s !== a));
354
- }, []), c = S(
377
+ ), Sn = ({ children: t }) => {
378
+ const [e, n] = M([]), i = Q((d, p) => {
379
+ n((c) => (c.forEach((r) => {
380
+ r.current && r !== d && r.current.hide(p);
381
+ }), [])), d.current?.toggle(p), n([d]);
382
+ }, []), s = Q((d) => {
383
+ n((p) => p.filter((c) => c !== d));
384
+ }, []), l = $(
355
385
  () => ({
356
- openMenus: n,
386
+ openMenus: e,
357
387
  openMenu: i,
358
- closeMenu: r
388
+ closeMenu: s
359
389
  }),
360
- [n, i, r]
390
+ [e, i, s]
361
391
  );
362
- return /* @__PURE__ */ t(v1.Provider, { value: c, children: e });
363
- }, r1 = () => {
364
- const e = B1(v1);
365
- if (e === void 0)
392
+ return /* @__PURE__ */ o(Ut.Provider, { value: l, children: t });
393
+ }, Lt = () => {
394
+ const t = zt(Ut);
395
+ if (t === void 0)
366
396
  throw new Error("useMenuProvider must be used within a MenuProvider");
367
- return e;
368
- }, se = ({ color: e = "#E32012" }) => /* @__PURE__ */ C(
397
+ return t;
398
+ }, Ye = ({ color: t = w.ERROR_RED }) => /* @__PURE__ */ v(
369
399
  "svg",
370
400
  {
371
401
  xmlns: "http://www.w3.org/2000/svg",
@@ -374,329 +404,399 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
374
404
  viewBox: "0 0 16 16",
375
405
  fill: "none",
376
406
  children: [
377
- /* @__PURE__ */ t("g", { clipPath: "url(#clip0_3105_5367)", children: /* @__PURE__ */ t(
407
+ /* @__PURE__ */ o("g", { clipPath: "url(#clip0_3105_5367)", children: /* @__PURE__ */ o(
378
408
  "path",
379
409
  {
380
410
  d: "M16 8C16 10.1217 15.1571 12.1566 13.6569 13.6569C12.1566 15.1571 10.1217 16 8 16C5.87827 16 3.84344 15.1571 2.34315 13.6569C0.842855 12.1566 0 10.1217 0 8C0 5.87827 0.842855 3.84344 2.34315 2.34315C3.84344 0.842855 5.87827 0 8 0C10.1217 0 12.1566 0.842855 13.6569 2.34315C15.1571 3.84344 16 5.87827 16 8ZM8 4C7.87361 4.00007 7.74863 4.02662 7.63312 4.07793C7.51761 4.12924 7.41413 4.20418 7.32934 4.29791C7.24456 4.39165 7.18035 4.5021 7.14084 4.62217C7.10134 4.74223 7.08743 4.86923 7.1 4.995L7.45 8.502C7.46176 8.63977 7.5248 8.76811 7.62664 8.86164C7.72849 8.95516 7.86173 9.00705 8 9.00705C8.13827 9.00705 8.27151 8.95516 8.37336 8.86164C8.4752 8.76811 8.53824 8.63977 8.55 8.502L8.9 4.995C8.91257 4.86923 8.89866 4.74223 8.85915 4.62217C8.81965 4.5021 8.75544 4.39165 8.67066 4.29791C8.58587 4.20418 8.48239 4.12924 8.36688 4.07793C8.25137 4.02662 8.12639 4.00007 8 4ZM8.002 10C7.73678 10 7.48243 10.1054 7.29489 10.2929C7.10736 10.4804 7.002 10.7348 7.002 11C7.002 11.2652 7.10736 11.5196 7.29489 11.7071C7.48243 11.8946 7.73678 12 8.002 12C8.26722 12 8.52157 11.8946 8.70911 11.7071C8.89664 11.5196 9.002 11.2652 9.002 11C9.002 10.7348 8.89664 10.4804 8.70911 10.2929C8.52157 10.1054 8.26722 10 8.002 10Z",
381
- fill: e
411
+ fill: t
382
412
  }
383
413
  ) }),
384
- /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_3105_5367", children: /* @__PURE__ */ t("rect", { width: "16", height: "16", fill: "white" }) }) })
414
+ /* @__PURE__ */ o("defs", { children: /* @__PURE__ */ o("clipPath", { id: "clip0_3105_5367", children: /* @__PURE__ */ o("rect", { width: "16", height: "16", fill: "white" }) }) })
385
415
  ]
386
416
  }
387
- ), s1 = (e) => {
417
+ );
418
+ function Ge(t) {
419
+ return J({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }, child: [] }, { tag: "polyline", attr: { points: "15 3 21 3 21 9" }, child: [] }, { tag: "line", attr: { x1: "10", y1: "14", x2: "21", y2: "3" }, child: [] }] })(t);
420
+ }
421
+ function Ze(t) {
422
+ return J({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "12", cy: "12", r: "4" }, child: [] }, { tag: "line", attr: { x1: "1.05", y1: "12", x2: "7", y2: "12" }, child: [] }, { tag: "line", attr: { x1: "17.01", y1: "12", x2: "22.96", y2: "12" }, child: [] }] })(t);
423
+ }
424
+ function Ue(t) {
425
+ return J({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polygon", attr: { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2" }, child: [] }] })(t);
426
+ }
427
+ const rt = (t) => {
388
428
  const {
389
- isSet: n,
390
- isSelected: o,
429
+ isSet: e,
430
+ isSelected: n,
391
431
  isFilter: i,
392
- className: r,
393
- title: c,
394
- icon: a,
395
- contextMenuItems: d = void 0,
396
- onDeleteStep: s,
397
- onUpdateFilter: l,
398
- onSelectStep: f,
399
- subtitle: b,
400
- isInvalid: x,
401
- localId: v
402
- } = e, m = $(null), { openMenu: p, closeMenu: w } = r1(), y = i1(), _ = S(
403
- () => [
404
- {
405
- label: "Add Step Filter",
406
- icon: /* @__PURE__ */ t("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ t(h1, {}) }),
407
- command: (g) => {
408
- g?.originalEvent?.stopPropagation(), l && l(v);
409
- },
410
- template: y
432
+ debuggerMode: s = !1,
433
+ status: l,
434
+ className: d,
435
+ title: p,
436
+ icon: c,
437
+ contextMenuItems: r = void 0,
438
+ onDeleteStep: h,
439
+ onUpdateFilter: m,
440
+ onSelectStep: x,
441
+ onCheckScenario: C,
442
+ subtitle: N,
443
+ isInvalid: b,
444
+ localId: g
445
+ } = t, f = B(null), { openMenu: E, closeMenu: u } = Lt(), a = gt(), [_] = M(!0), I = $(() => {
446
+ const S = [];
447
+ return s || S.push({
448
+ label: "Add Step Filter",
449
+ icon: /* @__PURE__ */ o("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ o(It, {}) }),
450
+ command: (k) => {
451
+ k?.originalEvent?.stopPropagation(), m && m(g);
411
452
  },
412
- {
413
- label: "Remove",
414
- icon: /* @__PURE__ */ t(J, { color: "#3B64A0", size: 18 }),
415
- command: (g) => {
416
- g?.originalEvent?.stopPropagation(), s && s(v);
417
- },
418
- template: y
419
- }
420
- ],
421
- [l, s, v, y]
422
- ), u = S(() => d !== void 0 ? d : _, [d, _]), I = (g) => {
423
- g.stopPropagation(), p(m, g);
424
- }, L = S(() => o && x ? N.step + " " + N.selectedInvalid : o ? N.step + " " + N.selected : n ? N.step + " " + N.isSet : x ? N.step + " " + N.invalid : N.step, [n, o, x]), h = S(() => x ? /* @__PURE__ */ t(se, { color: "#E32012" }) : a, [a, x]);
425
- return /* @__PURE__ */ t("div", { className: N.container + " " + r, children: /* @__PURE__ */ C("div", { children: [
426
- /* @__PURE__ */ C("div", { className: L, onClick: () => f(v), children: [
427
- /* @__PURE__ */ C("div", { className: N.content, children: [
428
- /* @__PURE__ */ t("div", { className: `${N.icon} ${x && N.invalid}`, children: h }),
429
- /* @__PURE__ */ t("div", { className: N.title, children: c })
430
- ] }),
431
- /* @__PURE__ */ t(
432
- "button",
433
- {
434
- className: N.dotsButton,
435
- onClick: I,
436
- "aria-haspopup": !0,
437
- "aria-label": "Step options",
438
- children: /* @__PURE__ */ t(
439
- K,
440
- {
441
- className: N.dots,
442
- color: x ? "#E32012" : "#3B64A0"
443
- }
444
- )
445
- }
446
- ),
447
- /* @__PURE__ */ t(
448
- Q,
449
- {
450
- model: u,
451
- popup: !0,
452
- ref: m,
453
- onClick: (g) => g.stopPropagation(),
454
- onHide: () => w(m)
455
- }
456
- )
457
- ] }),
458
- i && /* @__PURE__ */ C(
459
- "div",
460
- {
461
- className: N.filterFlag,
462
- role: "button",
463
- tabIndex: 0,
464
- onClick: () => {
465
- l && l(v);
466
- },
467
- onKeyDown: (g) => {
468
- (g.key === "Enter" || g.key === " ") && l && (g.preventDefault(), l(v));
469
- },
470
- children: [
471
- /* @__PURE__ */ t(h1, { color: "#3B64A0" }),
472
- /* @__PURE__ */ t("span", { children: "Filter" }),
473
- /* @__PURE__ */ t(
474
- K,
475
- {
476
- className: N.dots,
477
- color: x ? "#E32012" : "#3B64A0",
478
- style: { height: "10px" }
479
- }
480
- )
481
- ]
482
- }
483
- ),
484
- b && /* @__PURE__ */ t("div", { className: N.subtitle, children: b })
485
- ] }) });
486
- }, le = () => /* @__PURE__ */ C("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
487
- /* @__PURE__ */ C("g", { clipPath: "url(#clip0_6551_9169)", children: [
488
- /* @__PURE__ */ t("rect", { width: "24", height: "24", rx: "12", fill: "#0C971F" }),
489
- /* @__PURE__ */ t("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" })
453
+ template: a
454
+ }), _ && S.push({
455
+ label: "Check Scenario",
456
+ icon: /* @__PURE__ */ o("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ o(Ge, { color: w.NAVY, size: 18 }) }),
457
+ command: (k) => {
458
+ k?.originalEvent?.stopPropagation(), C(g);
459
+ },
460
+ template: a
461
+ }), h && !s && S.push({
462
+ label: "Remove",
463
+ icon: /* @__PURE__ */ o(ht, { color: w.NAVY, size: 18 }),
464
+ command: (k) => {
465
+ k?.originalEvent?.stopPropagation(), h(g);
466
+ },
467
+ template: a
468
+ }), S;
469
+ }, [m, h, g, a, _, C, s]), L = $(() => r ?? I, [r, I]), O = (S) => {
470
+ S.stopPropagation(), E(f, S);
471
+ }, F = $(() => {
472
+ if (!(!s || l == null || l === "pending"))
473
+ return {
474
+ "--step-debugger-accent": Ct[l]
475
+ };
476
+ }, [s, l]), y = $(() => n && b ? R.step + " " + R.selectedInvalid : s && l != null && l !== "pending" ? R.step + " " + R.debuggerStatus : n ? R.step + " " + R.selected : e ? R.step + " " + R.isSet : b ? R.step + " " + R.invalid : R.step, [e, n, b, l, s]), P = $(() => b ? /* @__PURE__ */ o(Ye, { color: w.ERROR_RED }) : c, [c, b]);
477
+ return /* @__PURE__ */ o(
478
+ "div",
479
+ {
480
+ className: R.container + " " + d,
481
+ "data-local-id": void 0,
482
+ children: /* @__PURE__ */ v("div", { children: [
483
+ /* @__PURE__ */ v(
484
+ "div",
485
+ {
486
+ className: y,
487
+ style: F,
488
+ onClick: () => x(g),
489
+ children: [
490
+ /* @__PURE__ */ v("div", { className: R.content, children: [
491
+ /* @__PURE__ */ o("div", { className: `${R.icon} ${b && R.invalid}`, children: P }),
492
+ /* @__PURE__ */ o("div", { className: R.title, children: p })
493
+ ] }),
494
+ L.length > 0 && /* @__PURE__ */ v(K, { children: [
495
+ /* @__PURE__ */ o(
496
+ "button",
497
+ {
498
+ className: R.dotsButton,
499
+ onClick: O,
500
+ "aria-haspopup": !0,
501
+ "aria-label": "Step options",
502
+ children: /* @__PURE__ */ o(ut, { className: R.dots, size: 16 })
503
+ }
504
+ ),
505
+ /* @__PURE__ */ o(
506
+ ft,
507
+ {
508
+ model: L,
509
+ popup: !0,
510
+ ref: f,
511
+ onClick: (S) => S.stopPropagation(),
512
+ onHide: () => u(f)
513
+ }
514
+ )
515
+ ] })
516
+ ]
517
+ }
518
+ ),
519
+ i && /* @__PURE__ */ v(
520
+ "div",
521
+ {
522
+ className: R.filterFlag,
523
+ role: "button",
524
+ tabIndex: 0,
525
+ onClick: () => {
526
+ m && m(g);
527
+ },
528
+ onKeyDown: (S) => {
529
+ (S.key === "Enter" || S.key === " ") && m && (S.preventDefault(), m(g));
530
+ },
531
+ children: [
532
+ /* @__PURE__ */ o(It, { color: w.NAVY }),
533
+ /* @__PURE__ */ o("span", { children: "Filter" }),
534
+ !s && /* @__PURE__ */ o(
535
+ ut,
536
+ {
537
+ className: R.dots,
538
+ color: b ? w.ERROR_RED : w.NAVY,
539
+ style: { height: "10px" }
540
+ }
541
+ )
542
+ ]
543
+ }
544
+ ),
545
+ N && /* @__PURE__ */ o("div", { className: R.subtitle, children: N })
546
+ ] })
547
+ }
548
+ );
549
+ }, Xe = () => /* @__PURE__ */ v("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
550
+ /* @__PURE__ */ v("g", { clipPath: "url(#clip0_6551_9169)", children: [
551
+ /* @__PURE__ */ o("rect", { width: "24", height: "24", rx: "12", fill: w.ADD_TRIGGER_FILL }),
552
+ /* @__PURE__ */ o("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" })
490
553
  ] }),
491
- /* @__PURE__ */ t("rect", { x: "0.75", y: "0.75", width: "22.5", height: "22.5", rx: "11.25", stroke: "#14BC2B", strokeWidth: "1.5" }),
492
- /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_6551_9169", children: /* @__PURE__ */ t("rect", { width: "24", height: "24", rx: "12", fill: "white" }) }) })
493
- ] }), ce = "_multipleTriggersIcon_oxhdi_1", ae = {
494
- multipleTriggersIcon: ce
495
- }, de = () => /* @__PURE__ */ t("div", { className: ae.multipleTriggersIcon, children: /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.5 3.75C1.5 3.15326 1.73705 2.58097 2.15901 2.15901C2.58097 1.73705 3.15326 1.5 3.75 1.5H5.25C5.84674 1.5 6.41903 1.73705 6.84099 2.15901C7.26295 2.58097 7.5 3.15326 7.5 3.75L13.701 3.75C13.8661 3.46404 14.1209 3.24054 14.426 3.11418C14.7311 2.98782 15.0693 2.96565 15.3883 3.05111C15.7072 3.13657 15.9891 3.32489 16.1901 3.58686C16.3911 3.84882 16.5 4.1698 16.5 4.5C16.5 4.8302 16.3911 5.15118 16.1901 5.41314C15.9891 5.67511 15.7072 5.86343 15.3883 5.94889C15.0693 6.03435 14.7311 6.01218 14.426 5.88582C14.1209 5.75946 13.8661 5.53596 13.701 5.25H10.686C10.956 5.52 11.196 5.8215 11.412 6.1575C12.369 7.6455 12.75 9.6885 12.75 12C12.75 14.9895 13.1355 16.638 13.8195 17.55C14.3535 18.264 15.162 18.6315 16.5 18.726C16.5063 18.1334 16.7462 17.5673 17.1674 17.1505C17.5887 16.7337 18.1574 16.5 18.75 16.5H20.25C20.8467 16.5 21.419 16.7371 21.841 17.159C22.2629 17.581 22.5 18.1533 22.5 18.75V20.25C22.5 20.8467 22.2629 21.419 21.841 21.841C21.419 22.2629 20.8467 22.5 20.25 22.5H18.75C18.1533 22.5 17.581 22.2629 17.159 21.841C16.7371 21.419 16.5 20.8467 16.5 20.25H10.299C10.1339 20.536 9.87905 20.7595 9.57399 20.8858C9.26892 21.0122 8.93068 21.0344 8.61173 20.9489C8.29278 20.8634 8.01095 20.6751 7.80993 20.4131C7.60892 20.1512 7.49996 19.8302 7.49996 19.5C7.49996 19.1698 7.60892 18.8488 7.80993 18.5869C8.01095 18.3249 8.29278 18.1366 8.61173 18.0511C8.93068 17.9656 9.26892 17.9878 9.57399 18.1142C9.87905 18.2405 10.1339 18.464 10.299 18.75H12.8655C12.7785 18.6538 12.6959 18.5537 12.618 18.45C11.6145 17.1105 11.25 15.0105 11.25 12C11.25 9.81 10.881 8.1045 10.1505 6.9675C9.5655 6.06 8.7225 5.4675 7.5 5.2995C7.48706 5.88762 7.2443 6.44728 6.82374 6.85859C6.40318 7.2699 5.83826 7.50014 5.25 7.5H3.75C3.15326 7.5 2.58097 7.26295 2.15901 6.84099C1.73705 6.41903 1.5 5.84674 1.5 5.25V3.75ZM3.75 3C3.55109 3 3.36032 3.07902 3.21967 3.21967C3.07902 3.36032 3 3.55109 3 3.75V5.25C3 5.44891 3.07902 5.63968 3.21967 5.78033C3.36032 5.92098 3.55109 6 3.75 6H5.25C5.44891 6 5.63968 5.92098 5.78033 5.78033C5.92098 5.63968 6 5.44891 6 5.25V3.75C6 3.55109 5.92098 3.36032 5.78033 3.21967C5.63968 3.07902 5.44891 3 5.25 3H3.75ZM18.75 18C18.5511 18 18.3603 18.079 18.2197 18.2197C18.079 18.3603 18 18.5511 18 18.75V20.25C18 20.4489 18.079 20.6397 18.2197 20.7803C18.3603 20.921 18.5511 21 18.75 21H20.25C20.4489 21 20.6397 20.921 20.7803 20.7803C20.921 20.6397 21 20.4489 21 20.25V18.75C21 18.5511 20.921 18.3603 20.7803 18.2197C20.6397 18.079 20.4489 18 20.25 18H18.75Z", fill: "white" }) }) }), pe = "_trigger_kfg1y_1", ue = "_title_kfg1y_7", he = "_empty_kfg1y_15", Ce = "_triggerContainer_kfg1y_21", me = "_stepsContainer_kfg1y_25", fe = "_stepItem_kfg1y_51", ge = "_curvesSvg_kfg1y_70", ve = "_centralNode_kfg1y_78", _e = "_iconWrapper_kfg1y_104", xe = "_fadeIn_kfg1y_127", we = "_fadeOut_kfg1y_130", ye = "_operationContainer_kfg1y_134", P = {
496
- trigger: pe,
497
- title: ue,
498
- empty: he,
499
- triggerContainer: Ce,
500
- stepsContainer: me,
501
- stepItem: fe,
502
- curvesSvg: ge,
503
- centralNode: ve,
504
- iconWrapper: _e,
505
- fadeIn: xe,
506
- fadeOut: we,
507
- operationContainer: ye
508
- }, Ie = () => /* @__PURE__ */ t(
554
+ /* @__PURE__ */ o("rect", { x: "0.75", y: "0.75", width: "22.5", height: "22.5", rx: "11.25", stroke: w.ADD_TRIGGER_STROKE, strokeWidth: "1.5" }),
555
+ /* @__PURE__ */ o("defs", { children: /* @__PURE__ */ o("clipPath", { id: "clip0_6551_9169", children: /* @__PURE__ */ o("rect", { width: "24", height: "24", rx: "12", fill: "white" }) }) })
556
+ ] }), Ke = "_multipleTriggersIcon_oxhdi_1", qe = {
557
+ multipleTriggersIcon: Ke
558
+ }, Je = () => /* @__PURE__ */ o("div", { className: qe.multipleTriggersIcon, children: /* @__PURE__ */ o("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.5 3.75C1.5 3.15326 1.73705 2.58097 2.15901 2.15901C2.58097 1.73705 3.15326 1.5 3.75 1.5H5.25C5.84674 1.5 6.41903 1.73705 6.84099 2.15901C7.26295 2.58097 7.5 3.15326 7.5 3.75L13.701 3.75C13.8661 3.46404 14.1209 3.24054 14.426 3.11418C14.7311 2.98782 15.0693 2.96565 15.3883 3.05111C15.7072 3.13657 15.9891 3.32489 16.1901 3.58686C16.3911 3.84882 16.5 4.1698 16.5 4.5C16.5 4.8302 16.3911 5.15118 16.1901 5.41314C15.9891 5.67511 15.7072 5.86343 15.3883 5.94889C15.0693 6.03435 14.7311 6.01218 14.426 5.88582C14.1209 5.75946 13.8661 5.53596 13.701 5.25H10.686C10.956 5.52 11.196 5.8215 11.412 6.1575C12.369 7.6455 12.75 9.6885 12.75 12C12.75 14.9895 13.1355 16.638 13.8195 17.55C14.3535 18.264 15.162 18.6315 16.5 18.726C16.5063 18.1334 16.7462 17.5673 17.1674 17.1505C17.5887 16.7337 18.1574 16.5 18.75 16.5H20.25C20.8467 16.5 21.419 16.7371 21.841 17.159C22.2629 17.581 22.5 18.1533 22.5 18.75V20.25C22.5 20.8467 22.2629 21.419 21.841 21.841C21.419 22.2629 20.8467 22.5 20.25 22.5H18.75C18.1533 22.5 17.581 22.2629 17.159 21.841C16.7371 21.419 16.5 20.8467 16.5 20.25H10.299C10.1339 20.536 9.87905 20.7595 9.57399 20.8858C9.26892 21.0122 8.93068 21.0344 8.61173 20.9489C8.29278 20.8634 8.01095 20.6751 7.80993 20.4131C7.60892 20.1512 7.49996 19.8302 7.49996 19.5C7.49996 19.1698 7.60892 18.8488 7.80993 18.5869C8.01095 18.3249 8.29278 18.1366 8.61173 18.0511C8.93068 17.9656 9.26892 17.9878 9.57399 18.1142C9.87905 18.2405 10.1339 18.464 10.299 18.75H12.8655C12.7785 18.6538 12.6959 18.5537 12.618 18.45C11.6145 17.1105 11.25 15.0105 11.25 12C11.25 9.81 10.881 8.1045 10.1505 6.9675C9.5655 6.06 8.7225 5.4675 7.5 5.2995C7.48706 5.88762 7.2443 6.44728 6.82374 6.85859C6.40318 7.2699 5.83826 7.50014 5.25 7.5H3.75C3.15326 7.5 2.58097 7.26295 2.15901 6.84099C1.73705 6.41903 1.5 5.84674 1.5 5.25V3.75ZM3.75 3C3.55109 3 3.36032 3.07902 3.21967 3.21967C3.07902 3.36032 3 3.55109 3 3.75V5.25C3 5.44891 3.07902 5.63968 3.21967 5.78033C3.36032 5.92098 3.55109 6 3.75 6H5.25C5.44891 6 5.63968 5.92098 5.78033 5.78033C5.92098 5.63968 6 5.44891 6 5.25V3.75C6 3.55109 5.92098 3.36032 5.78033 3.21967C5.63968 3.07902 5.44891 3 5.25 3H3.75ZM18.75 18C18.5511 18 18.3603 18.079 18.2197 18.2197C18.079 18.3603 18 18.5511 18 18.75V20.25C18 20.4489 18.079 20.6397 18.2197 20.7803C18.3603 20.921 18.5511 21 18.75 21H20.25C20.4489 21 20.6397 20.921 20.7803 20.7803C20.921 20.6397 21 20.4489 21 20.25V18.75C21 18.5511 20.921 18.3603 20.7803 18.2197C20.6397 18.079 20.4489 18 20.25 18H18.75Z", fill: "white" }) }) }), Qe = "_trigger_kfg1y_1", t1 = "_title_kfg1y_7", e1 = "_empty_kfg1y_15", n1 = "_triggerContainer_kfg1y_21", o1 = "_stepsContainer_kfg1y_25", i1 = "_stepItem_kfg1y_51", s1 = "_curvesSvg_kfg1y_70", r1 = "_centralNode_kfg1y_78", l1 = "_iconWrapper_kfg1y_104", c1 = "_fadeIn_kfg1y_127", a1 = "_fadeOut_kfg1y_130", d1 = "_operationContainer_kfg1y_134", D = {
559
+ trigger: Qe,
560
+ title: t1,
561
+ empty: e1,
562
+ triggerContainer: n1,
563
+ stepsContainer: o1,
564
+ stepItem: i1,
565
+ curvesSvg: s1,
566
+ centralNode: r1,
567
+ iconWrapper: l1,
568
+ fadeIn: c1,
569
+ fadeOut: a1,
570
+ operationContainer: d1
571
+ }, u1 = () => /* @__PURE__ */ o(
509
572
  "div",
510
573
  {
511
574
  style: {
512
575
  height: "1px",
513
576
  marginLeft: "4px",
514
577
  marginRight: "4px",
515
- borderTop: "1px solid #a1bbdc"
578
+ borderTop: `1px solid ${w.SEPARATOR}`
516
579
  }
517
580
  }
518
- ), be = 80, Y = 34, Ne = ({
519
- steps: e,
520
- title: n,
521
- className: o,
581
+ ), p1 = [
582
+ "failed",
583
+ "invalid",
584
+ "cancelled",
585
+ "validating",
586
+ "running",
587
+ "finished",
588
+ "skipped",
589
+ "pending"
590
+ ], Xt = (t) => {
591
+ const e = [
592
+ ...new Set(t.filter((n) => n != null))
593
+ ];
594
+ if (e.length !== 0) {
595
+ for (const n of p1)
596
+ if (e.includes(n)) return n;
597
+ return e[0];
598
+ }
599
+ }, Kt = (t, e) => !e || t == null ? w.NAVY : Ct[t], h1 = (t, e, n = w.NAVY) => t == null ? n : e?.[t] ?? Ct[t], f1 = (t, e = w.NAVY) => ({
600
+ statusLine: (n) => h1(n, t, e)
601
+ }), pt = (t) => {
602
+ if ("status" in t && t.status != null) return t.status;
603
+ const e = t.steps;
604
+ if (e?.[0]?.status != null) return e[0].status;
605
+ }, g1 = 80, ct = 34, qt = ({
606
+ steps: t,
607
+ title: e,
608
+ className: n,
522
609
  onDeleteTrigger: i,
523
- onAddTrigger: r,
524
- onSelectStep: c,
525
- onUpdateFilter: a,
526
- onCenterYUpdate: d
610
+ onAddTrigger: s,
611
+ onSelectStep: l,
612
+ onUpdateFilter: d,
613
+ onCenterYUpdate: p,
614
+ debuggerMode: c = !1,
615
+ resolveCurveStrokeColor: r,
616
+ isAdmin: h = !1
527
617
  }) => {
528
- const s = $(null), l = $([]), [f, b] = E([]), [x, v] = E({ width: 0, height: 0 }), [m, p] = E(!1), [w, y] = E(!1), _ = $(null);
529
- q(() => {
530
- const h = () => {
531
- if (!s.current) return;
532
- const g = [];
533
- if (l.current.forEach((M, B) => {
534
- if (M && s.current) {
535
- const H = s.current.getBoundingClientRect(), O = M.getBoundingClientRect();
536
- g.push({
537
- localId: e[B]?.localId ?? `step-${B}`,
538
- top: O.top - H.top,
539
- right: O.right - H.left,
540
- centerY: O.top - H.top + O.height / 2
618
+ const m = B(null), x = B([]), [C, N] = M([]), [b, g] = M({ width: 0, height: 0 }), [f, E] = M(!1), [u, a] = M(!1), _ = B(null);
619
+ nt(() => {
620
+ const y = () => {
621
+ if (!m.current) return;
622
+ const P = [];
623
+ if (x.current.forEach((S, k) => {
624
+ if (S && m.current) {
625
+ const V = m.current.getBoundingClientRect(), A = S.getBoundingClientRect();
626
+ P.push({
627
+ localId: t[k]?.localId ?? `step-${k}`,
628
+ top: A.top - V.top,
629
+ right: A.right - V.left,
630
+ centerY: A.top - V.top + A.height / 2
541
631
  });
542
632
  }
543
- }), b(g), s.current && g.length > 0) {
544
- const M = s.current.getBoundingClientRect(), B = Math.min(...g.map((W) => W.top)), H = l.current.filter(Boolean).map((W) => W?.offsetHeight || 68), O = Math.max(
545
- ...g.map((W, I1) => W.top + (H[I1] || 68))
546
- ), U = Math.max(...g.map((W) => W.right)) + 0, e1 = Math.max(
547
- M.height,
548
- O - B + 100
633
+ }), N(P), m.current && P.length > 0) {
634
+ const S = m.current.getBoundingClientRect(), k = Math.min(...P.map((z) => z.top)), V = x.current.filter(Boolean).map((z) => z?.offsetHeight || 68), A = Math.max(
635
+ ...P.map((z, ae) => z.top + (V[ae] || 68))
636
+ ), _t = Math.max(...P.map((z) => z.right)) + 0, xt = Math.max(
637
+ S.height,
638
+ A - k + 100
549
639
  );
550
- v({
551
- width: U,
552
- height: e1
640
+ g({
641
+ width: _t,
642
+ height: xt
553
643
  });
554
644
  }
555
645
  };
556
- return h(), window.addEventListener("resize", h), () => window.removeEventListener("resize", h);
557
- }, [e]), q(() => {
558
- let h = !0;
559
- if (m) {
646
+ return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
647
+ }, [t]), nt(() => {
648
+ let y = !0;
649
+ if (f) {
560
650
  _.current && (clearTimeout(_.current), _.current = null);
561
- const g = setTimeout(() => {
562
- h && y(!0);
651
+ const P = setTimeout(() => {
652
+ y && a(!0);
563
653
  }, 0);
564
654
  return () => {
565
- h = !1, clearTimeout(g);
655
+ y = !1, clearTimeout(P);
566
656
  };
567
657
  }
568
658
  return _.current = setTimeout(() => {
569
- h && y(!1);
659
+ y && a(!1);
570
660
  }, 140), () => {
571
- h = !1, _.current && (clearTimeout(_.current), _.current = null);
661
+ y = !1, _.current && (clearTimeout(_.current), _.current = null);
572
662
  };
573
- }, [m]);
574
- const u = f.length > 0 ? be : 0, I = S(() => f.length > 1 ? f.reduce((h, g) => h + g.top + Y, 0) / f.length : f.length === 1 ? f[0].top + Y : 0, [f]);
575
- if (q(() => {
576
- d?.(I);
577
- }, [I, d]), e.length === 0)
578
- return /* @__PURE__ */ C("div", { className: `${P.trigger} ${o || ""}`, children: [
579
- n && /* @__PURE__ */ t("h3", { className: P.title, children: n }),
580
- /* @__PURE__ */ t("div", { className: P.empty, children: "No steps" })
663
+ }, [f]);
664
+ const I = C.length > 0 ? g1 : 0, L = $(() => C.length > 1 ? C.reduce((y, P) => y + P.top + ct, 0) / C.length : C.length === 1 ? C[0].top + ct : 0, [C]);
665
+ nt(() => {
666
+ p?.(L);
667
+ }, [L, p]);
668
+ const O = gt();
669
+ if (t.length === 0)
670
+ return /* @__PURE__ */ v("div", { className: `${D.trigger} ${n || ""}`, children: [
671
+ e && /* @__PURE__ */ o("h3", { className: D.title, children: e }),
672
+ /* @__PURE__ */ o("div", { className: D.empty, children: "No steps" })
581
673
  ] });
582
- const L = (h, g, M, B) => {
583
- const H = M - h, O = Math.min(H * 0.6, 60), d1 = h + O, U = g, e1 = M - O;
584
- return `M ${h} ${g} C ${d1} ${U}, ${e1} ${B}, ${M} ${B}`;
674
+ const F = (y, P, S, k) => {
675
+ const V = S - y, A = Math.min(V * 0.6, 60), lt = y + A, _t = P, xt = S - A;
676
+ return `M ${y} ${P} C ${lt} ${_t}, ${xt} ${k}, ${S} ${k}`;
585
677
  };
586
- return /* @__PURE__ */ C("div", { className: `${P.trigger} ${o || ""}`, ref: s, children: [
587
- n && /* @__PURE__ */ t("h3", { className: P.title, children: n }),
588
- /* @__PURE__ */ C("div", { className: P.triggerContainer, children: [
589
- /* @__PURE__ */ t("div", { className: P.stepsContainer, children: e.map((h, g) => /* @__PURE__ */ t(
678
+ return /* @__PURE__ */ v("div", { className: `${D.trigger} ${n || ""}`, ref: m, children: [
679
+ e && /* @__PURE__ */ o("h3", { className: D.title, children: e }),
680
+ /* @__PURE__ */ v("div", { className: D.triggerContainer, children: [
681
+ /* @__PURE__ */ o("div", { className: D.stepsContainer, children: t.map((y, P) => /* @__PURE__ */ o(
590
682
  "div",
591
683
  {
592
- ref: (M) => {
593
- l.current[g] = M;
684
+ ref: (S) => {
685
+ x.current[P] = S;
594
686
  },
595
- children: /* @__PURE__ */ t(
596
- s1,
687
+ children: /* @__PURE__ */ o(
688
+ rt,
597
689
  {
598
- title: h.title,
599
- className: P.stepItem,
600
- localId: h.localId,
601
- idx: g,
602
- isSet: h.isSet,
603
- isSelected: h.isSelected,
604
- isInvalid: h.isInvalid,
605
- isFilter: h.isFilter,
606
- icon: h.icon,
607
- onSelectStep: c,
608
- onUpdateFilter: a,
609
- contextMenuItems: [
690
+ title: y.title,
691
+ className: D.stepItem,
692
+ localId: y.localId,
693
+ idx: P,
694
+ isSet: y.isSet,
695
+ isSelected: y.isSelected,
696
+ isInvalid: y.isInvalid,
697
+ isFilter: y.isFilter,
698
+ status: y.status,
699
+ debuggerMode: c,
700
+ icon: y.icon,
701
+ onSelectStep: l,
702
+ onUpdateFilter: d,
703
+ onCheckScenario: () => {
704
+ throw new Error("Check scenario not handled in Trigger");
705
+ },
706
+ contextMenuItems: h ? [
707
+ {
708
+ label: "Add Step Filter",
709
+ icon: /* @__PURE__ */ o("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ o(It, {}) }),
710
+ command: (S) => {
711
+ S?.originalEvent?.stopPropagation(), d && d(y.localId);
712
+ },
713
+ template: O
714
+ },
610
715
  {
611
716
  label: "Delete",
612
- icon: /* @__PURE__ */ t(J, { className: "mr-2", color: "#3B64A0", size: 18 }),
717
+ icon: /* @__PURE__ */ o(ht, { className: "mr-2", color: w.NAVY, size: 18 }),
613
718
  command: () => {
614
- i?.(h.localId);
719
+ i?.(y.localId);
615
720
  },
616
- disabled: e.length === 1
721
+ disabled: t.length === 1
617
722
  },
618
723
  {
619
724
  label: "",
620
- template: () => /* @__PURE__ */ t(Ie, {})
725
+ template: () => /* @__PURE__ */ o(u1, {})
621
726
  },
622
727
  {
623
728
  label: "Add More Triggers",
624
- icon: /* @__PURE__ */ t(X1, { className: "mr-2", color: "#3B64A0", size: 18 }),
729
+ icon: /* @__PURE__ */ o(Me, { className: "mr-2", color: w.NAVY, size: 18 }),
625
730
  command: () => {
626
- r?.();
731
+ s?.();
627
732
  }
628
733
  }
629
- ]
734
+ ] : []
630
735
  }
631
736
  )
632
737
  },
633
- h.localId
738
+ y.localId
634
739
  )) }),
635
- /* @__PURE__ */ t("div", { style: { position: "relative" }, children: f.length > 1 && /* @__PURE__ */ t(
740
+ /* @__PURE__ */ o("div", { style: { position: "relative" }, children: C.length > 1 && /* @__PURE__ */ o(
636
741
  "svg",
637
742
  {
638
- className: P.curvesSvg,
639
- width: x.width,
640
- height: x.height,
641
- children: f.map((h) => {
642
- const M = f.length === 1 ? f[0].top + Y : h.top + Y;
643
- return /* @__PURE__ */ t(
743
+ className: D.curvesSvg,
744
+ width: b.width,
745
+ height: b.height,
746
+ children: C.map((y) => {
747
+ const S = C.length === 1 ? C[0].top + ct : y.top + ct, k = I, V = L, A = t.find(
748
+ (lt) => lt.localId === y.localId
749
+ )?.status;
750
+ return /* @__PURE__ */ o(
644
751
  "path",
645
752
  {
646
- d: L(0, M, u, I),
647
- stroke: "#3b64a0",
753
+ d: F(0, S, k, V),
754
+ stroke: r != null ? r(A) : Kt(A, c),
648
755
  strokeWidth: "2",
649
756
  fill: "none",
650
757
  strokeLinecap: "round"
651
758
  },
652
- h.localId
759
+ y.localId
653
760
  );
654
761
  })
655
762
  }
656
763
  ) }),
657
- f.length > 1 ? /* @__PURE__ */ C("div", { style: { position: "relative", marginRight: "140px" }, children: [
658
- /* @__PURE__ */ t(
764
+ C.length > 1 ? /* @__PURE__ */ v("div", { style: { position: "relative", marginRight: "140px" }, children: [
765
+ /* @__PURE__ */ o(
659
766
  "div",
660
767
  {
661
- className: P.centralNode,
768
+ className: D.centralNode,
662
769
  style: {
663
- "--node-x": `${u}px`,
664
- "--node-y": `${I}px`
770
+ "--node-x": `${I}px`,
771
+ "--node-y": `${L}px`
665
772
  },
666
- onMouseEnter: () => p(!0),
667
- onMouseLeave: () => p(!1),
668
- children: w ? /* @__PURE__ */ t(
773
+ onMouseEnter: () => E(!0),
774
+ onMouseLeave: () => E(!1),
775
+ children: u ? /* @__PURE__ */ o(
669
776
  "div",
670
777
  {
671
- className: `${P.iconWrapper} ${m ? P.fadeIn : P.fadeOut}`,
672
- onClick: r,
673
- children: /* @__PURE__ */ t(le, {})
778
+ className: `${D.iconWrapper} ${f ? D.fadeIn : D.fadeOut}`,
779
+ onClick: s,
780
+ children: /* @__PURE__ */ o(Xe, {})
674
781
  }
675
782
  ) : null
676
783
  }
677
784
  ),
678
- /* @__PURE__ */ t(
785
+ /* @__PURE__ */ o(
679
786
  "div",
680
787
  {
681
- className: P.operationContainer,
788
+ className: D.operationContainer,
682
789
  style: {
683
- "--op-x": `${u + 16}px`,
684
- "--op-y": `${I}px`
790
+ "--op-x": `${I + 16}px`,
791
+ "--op-y": `${L}px`
685
792
  },
686
- children: /* @__PURE__ */ t(de, {})
793
+ children: /* @__PURE__ */ o(Je, {})
687
794
  }
688
795
  )
689
796
  ] }) : null
690
797
  ] })
691
798
  ] });
692
- };
693
- function ke(e) {
694
- return V({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "12", cy: "12", r: "4" }, child: [] }, { tag: "line", attr: { x1: "1.05", y1: "12", x2: "7", y2: "12" }, child: [] }, { tag: "line", attr: { x1: "17.01", y1: "12", x2: "22.96", y2: "12" }, child: [] }] })(e);
695
- }
696
- function Be(e) {
697
- return V({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polygon", attr: { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2" }, child: [] }] })(e);
698
- }
699
- const Me = () => /* @__PURE__ */ C(
799
+ }, m1 = () => /* @__PURE__ */ v(
700
800
  "svg",
701
801
  {
702
802
  width: "24",
@@ -705,301 +805,372 @@ const Me = () => /* @__PURE__ */ C(
705
805
  fill: "none",
706
806
  xmlns: "http://www.w3.org/2000/svg",
707
807
  children: [
708
- /* @__PURE__ */ t(
808
+ /* @__PURE__ */ o(
709
809
  "path",
710
810
  {
711
811
  d: "M6 12L18 12",
712
- stroke: "#3B64A0",
812
+ stroke: w.NAVY,
713
813
  strokeWidth: "2",
714
814
  strokeLinecap: "round"
715
815
  }
716
816
  ),
717
- /* @__PURE__ */ t(
817
+ /* @__PURE__ */ o(
718
818
  "path",
719
819
  {
720
820
  d: "M12 6V18",
721
- stroke: "#3B64A0",
821
+ stroke: w.NAVY,
722
822
  strokeWidth: "2",
723
823
  strokeLinecap: "round"
724
824
  }
725
825
  )
726
826
  ]
727
827
  }
728
- ), Pe = "_stepLinkIcon_18u2g_1", Le = "_stepLinkLine_18u2g_15", Ee = "_stepLinkContainer_18u2g_39", A = {
729
- stepLinkIcon: Pe,
730
- stepLinkLine: Le,
731
- stepLinkContainer: Ee
732
- }, Z = ({
733
- onAddStep: e,
734
- onAddTrigger: n,
735
- onAddCondition: o,
828
+ ), C1 = "_stepLinkIcon_b0452_1", v1 = "_stepLinkLine_b0452_15", _1 = "_stepLinkContainer_b0452_39", x1 = "_readOnly_b0452_61", I1 = "_debuggerIconCollapsed_b0452_66", w1 = "_dashedLine_b0452_75", j = {
829
+ stepLinkIcon: C1,
830
+ stepLinkLine: v1,
831
+ stepLinkContainer: _1,
832
+ readOnly: x1,
833
+ debuggerIconCollapsed: I1,
834
+ dashedLine: w1
835
+ }, tt = ({
836
+ onAddStep: t,
837
+ onAddTrigger: e,
838
+ onAddCondition: n,
736
839
  onAddLoop: i,
737
- stepId: r,
840
+ iteratorEnabled: s = !0,
841
+ conditionsEnabled: l = !0,
842
+ lineColor: d = w.NAVY,
843
+ stepId: p,
738
844
  index: c = 0,
739
- style: a,
740
- pathId: d
845
+ style: r,
846
+ pathId: h
741
847
  }) => {
742
- const s = i1(), l = $(null), f = [
848
+ const m = gt(), x = B(null), C = [
743
849
  ...c > 0 ? [
744
850
  {
745
851
  label: "Trigger",
746
- icon: /* @__PURE__ */ t(Be, { color: "#3B64A0", size: 18 }),
852
+ icon: /* @__PURE__ */ o(Ue, { color: w.NAVY, size: 18 }),
747
853
  command: () => {
748
- n?.(r, d, "trigger");
854
+ e?.(p, h, "trigger");
749
855
  },
750
- template: s
856
+ template: m
751
857
  }
752
858
  ] : [],
753
859
  {
754
860
  label: "Step",
755
- icon: /* @__PURE__ */ t(ke, { color: "#3B64A0", size: 18 }),
756
- command: () => e?.(r, d, "append"),
757
- template: s
861
+ icon: /* @__PURE__ */ o(Ze, { color: w.NAVY, size: 18 }),
862
+ command: () => t?.(p, h, c > 0 ? "append" : "prepend"),
863
+ template: m
758
864
  },
759
- ...r ? [
865
+ ...l && p != null ? [
760
866
  {
761
867
  label: "Condition",
762
- icon: /* @__PURE__ */ t(ie, { width: 18, height: 18 }),
763
- command: () => o?.(r, d, "append"),
764
- template: s
765
- },
868
+ icon: /* @__PURE__ */ o(Ve, { width: 18, height: 18 }),
869
+ command: () => n?.(
870
+ p,
871
+ h,
872
+ c > 0 ? "append" : "prepend"
873
+ ),
874
+ template: m
875
+ }
876
+ ] : [],
877
+ ...s ? [
766
878
  {
767
879
  label: "Loop",
768
- icon: /* @__PURE__ */ t(re, { width: 18, height: 18 }),
769
- command: () => i?.(r, d, "append"),
770
- template: s
880
+ icon: /* @__PURE__ */ o(ze, { width: 18, height: 18 }),
881
+ command: () => i?.(p, h, c > 0 ? "append" : "prepend"),
882
+ template: m
771
883
  }
772
884
  ] : []
773
- ], b = (x) => {
774
- l.current?.show(x);
885
+ ], N = (b) => {
886
+ x.current?.show(b);
775
887
  };
776
- return /* @__PURE__ */ C(
888
+ return /* @__PURE__ */ v(
777
889
  "div",
778
890
  {
779
- className: A.stepLinkContainer,
780
- style: { ...a },
891
+ className: j.stepLinkContainer,
892
+ style: { ...r, "--step-link-color": d },
781
893
  "data-plus-index": c,
782
894
  children: [
783
- /* @__PURE__ */ t("div", { className: A.stepLinkLine }),
784
- /* @__PURE__ */ t(
895
+ /* @__PURE__ */ o("div", { className: j.stepLinkLine }),
896
+ /* @__PURE__ */ o(
785
897
  "div",
786
898
  {
787
- className: A.stepLinkIcon,
788
- onClick: b,
899
+ className: j.stepLinkIcon,
900
+ onClick: N,
789
901
  "aria-haspopup": !0,
790
- children: /* @__PURE__ */ t(Me, {})
902
+ children: /* @__PURE__ */ o(m1, {})
791
903
  }
792
904
  ),
793
- /* @__PURE__ */ t(Q, { model: f, popup: !0, ref: l }),
794
- /* @__PURE__ */ t("div", { className: A.stepLinkLine })
905
+ /* @__PURE__ */ o(ft, { model: C, popup: !0, ref: x }),
906
+ /* @__PURE__ */ o("div", { className: j.stepLinkLine })
795
907
  ]
796
908
  }
797
909
  );
798
- }, $e = "_steps_yug55_1", Te = "_stepContainer_yug55_8", Oe = "_stepContainerWithPaths_yug55_14", t1 = {
799
- steps: $e,
800
- stepContainer: Te,
801
- stepContainerWithPaths: Oe
802
- }, Se = (e, n, o, i) => {
803
- const r = o - e, c = Math.min(r * 0.66, 66), a = e + c, d = n, s = o - c;
804
- return `M ${e} ${n} C ${a} ${d}, ${s} ${i}, ${o} ${i}`;
805
- }, He = ({
806
- width: e,
807
- height: n
910
+ }, y1 = "_steps_yug55_1", N1 = "_stepContainer_yug55_8", b1 = "_stepContainerWithPaths_yug55_14", ot = {
911
+ steps: y1,
912
+ stepContainer: N1,
913
+ stepContainerWithPaths: b1
914
+ }, L1 = (t, e, n, i) => {
915
+ const s = n - t, l = Math.min(s * 0.66, 66), d = t + l, p = e, c = n - l;
916
+ return `M ${t} ${e} C ${d} ${p}, ${c} ${i}, ${n} ${i}`;
917
+ }, wt = ({
918
+ width: t,
919
+ height: e,
920
+ strokeColor: n = w.NAVY,
921
+ fromLocalId: i,
922
+ toLocalId: s
808
923
  }) => {
809
- const a = Se(0, 1, e, n);
810
- return /* @__PURE__ */ t("div", { style: { position: "absolute" }, children: /* @__PURE__ */ t(
811
- "svg",
924
+ const l = mt(n), h = L1(0, 1, t, e);
925
+ return /* @__PURE__ */ o(
926
+ "div",
812
927
  {
813
- width: e,
814
- height: n + 1,
815
- viewBox: `0 0 ${e} ${n + 1}`,
816
- xmlns: "http://www.w3.org/2000/svg",
817
- children: /* @__PURE__ */ t(
818
- "path",
928
+ style: { position: "absolute" },
929
+ "data-connector-from": void 0,
930
+ "data-connector-to": void 0,
931
+ children: /* @__PURE__ */ o(
932
+ "svg",
819
933
  {
820
- d: a,
821
- stroke: "#3b64a0",
822
- strokeWidth: "2",
823
- fill: "none",
824
- strokeLinecap: "round"
934
+ width: t,
935
+ height: e + 1,
936
+ viewBox: `0 0 ${t} ${e + 1}`,
937
+ xmlns: "http://www.w3.org/2000/svg",
938
+ children: /* @__PURE__ */ o(
939
+ "path",
940
+ {
941
+ d: h,
942
+ stroke: n,
943
+ strokeWidth: l ? 3 : 2,
944
+ fill: "none",
945
+ strokeLinecap: "round",
946
+ strokeDasharray: l ? "0 6" : void 0,
947
+ "data-connector-from": void 0,
948
+ "data-connector-to": void 0
949
+ }
950
+ )
825
951
  }
826
952
  )
827
953
  }
828
- ) });
829
- }, We = "_column_1uiy3_1", ze = "_row_1uiy3_19", Re = "_stepsContainer_1uiy3_24", F = {
830
- column: We,
831
- row: ze,
832
- stepsContainer: Re
833
- }, je = "_wrapper_1nl2d_1", De = "_tooltip_1nl2d_5", C1 = {
834
- wrapper: je,
835
- tooltip: De
836
- }, Ze = ({
837
- content: e,
838
- children: n,
839
- maxWidth: o = 500,
954
+ );
955
+ }, S1 = "_column_1uiy3_1", T1 = "_row_1uiy3_19", P1 = "_stepsContainer_1uiy3_24", H = {
956
+ column: S1,
957
+ row: T1,
958
+ stepsContainer: P1
959
+ }, k1 = "_wrapper_1nl2d_1", E1 = "_tooltip_1nl2d_5", At = {
960
+ wrapper: k1,
961
+ tooltip: E1
962
+ }, R1 = ({
963
+ content: t,
964
+ children: e,
965
+ maxWidth: n = 500,
840
966
  className: i
841
- }) => /* @__PURE__ */ C(
967
+ }) => /* @__PURE__ */ v(
842
968
  "div",
843
969
  {
844
- className: `${C1.wrapper} ${i ?? ""}`.trim(),
845
- style: { "--tooltip-max-width": `${o}px` },
970
+ className: `${At.wrapper} ${i ?? ""}`.trim(),
971
+ style: { "--tooltip-max-width": `${n}px` },
846
972
  children: [
847
- n,
848
- e ? /* @__PURE__ */ t("div", { className: C1.tooltip, role: "tooltip", children: e }) : null
973
+ e,
974
+ t ? /* @__PURE__ */ o("div", { className: At.tooltip, role: "tooltip", children: t }) : null
849
975
  ]
850
976
  }
851
- ), Ve = "_conditionContainer_5kl8s_1", Fe = "_connectorLine_5kl8s_6", qe = "_conditionWrapper_5kl8s_12", Ye = "_condition_5kl8s_1", Ae = "_connectorDot_5kl8s_43", j = {
852
- conditionContainer: Ve,
853
- connectorLine: Fe,
854
- conditionWrapper: qe,
855
- condition: Ye,
856
- connectorDot: Ae
857
- }, Xe = ({
858
- expression: e,
859
- style: n
977
+ ), M1 = "_conditionContainer_19jfz_1", O1 = "_debuggerTint_19jfz_5", $1 = "_connectorLine_19jfz_5", D1 = "_connectorDot_19jfz_8", B1 = "_condition_19jfz_1", F1 = "_conditionWrapper_19jfz_15", A1 = "_conditionFits_19jfz_67", Y = {
978
+ conditionContainer: M1,
979
+ debuggerTint: O1,
980
+ connectorLine: $1,
981
+ connectorDot: D1,
982
+ condition: B1,
983
+ conditionWrapper: F1,
984
+ conditionFits: A1
985
+ }, vt = ({
986
+ expression: t,
987
+ style: e,
988
+ status: n,
989
+ debuggerMode: i = !1
860
990
  }) => {
861
- const o = $(null), [i, r] = E(!1);
862
- M1(() => {
863
- const a = o.current;
864
- a && r(a.scrollHeight > a.clientHeight);
865
- }, [e]);
866
- const c = e && i ? e : "";
867
- return /* @__PURE__ */ C("div", { className: j.conditionContainer, style: n, children: [
868
- /* @__PURE__ */ t("div", { className: j.connectorLine }),
869
- /* @__PURE__ */ t(Ze, { content: c, className: j.conditionWrapper, children: /* @__PURE__ */ t("div", { ref: o, className: j.condition, children: e }) }),
870
- /* @__PURE__ */ t("div", { className: j.connectorLine }),
871
- /* @__PURE__ */ t("div", { className: j.connectorDot })
872
- ] });
873
- }, Ge = "data:image/svg+xml,%3csvg%20width='44'%20height='44'%20viewBox='0%200%2044%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='21.8125'%20y='-2.52539'%20width='34.4207'%20height='34.4207'%20rx='6.09524'%20transform='rotate(45%2021.8125%20-2.52539)'%20fill='%236B90C0'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M31.3947%2013.0355C31.4679%2013.1085%2031.526%2013.1952%2031.5656%2013.2907C31.6052%2013.3861%2031.6256%2013.4885%2031.6256%2013.5918C31.6256%2013.6952%2031.6052%2013.7975%2031.5656%2013.8929C31.526%2013.9884%2031.4679%2014.0751%2031.3947%2014.1481L14.109%2031.4338C13.9615%2031.5813%2013.7614%2031.6642%2013.5527%2031.6642C13.3441%2031.6642%2013.144%2031.5813%2012.9965%2031.4338C12.8489%2031.2863%2012.766%2031.0862%2012.766%2030.8775C12.766%2030.6689%2012.8489%2030.4688%2012.9965%2030.3212L30.2822%2013.0355C30.3552%2012.9623%2030.4419%2012.9043%2030.5373%2012.8647C30.6328%2012.8251%2030.7351%2012.8047%2030.8385%2012.8047C30.9418%2012.8047%2031.0441%2012.8251%2031.1396%2012.8647C31.2351%2012.9043%2031.3218%2012.9623%2031.3947%2013.0355Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.9965%2013.0355C12.9233%2013.1085%2012.8652%2013.1952%2012.8256%2013.2907C12.786%2013.3861%2012.7656%2013.4885%2012.7656%2013.5918C12.7656%2013.6952%2012.786%2013.7975%2012.8256%2013.8929C12.8652%2013.9884%2012.9233%2014.0751%2012.9965%2014.1481L30.2822%2031.4338C30.4297%2031.5813%2030.6298%2031.6642%2030.8385%2031.6642C31.0471%2031.6642%2031.2472%2031.5813%2031.3947%2031.4338C31.5423%2031.2863%2031.6252%2031.0862%2031.6252%2030.8775C31.6252%2030.6689%2031.5423%2030.4688%2031.3947%2030.3212L14.109%2013.0355C14.036%2012.9623%2013.9493%2012.9043%2013.8539%2012.8647C13.7584%2012.8251%2013.6561%2012.8047%2013.5527%2012.8047C13.4494%2012.8047%2013.3471%2012.8251%2013.2516%2012.8647C13.1561%2012.9043%2013.0694%2012.9623%2012.9965%2013.0355Z'%20fill='white'/%3e%3c/svg%3e", Ke = "data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1'%20y='1'%20width='26'%20height='26'%20rx='13'%20fill='white'/%3e%3crect%20x='1'%20y='1'%20width='26'%20height='26'%20rx='13'%20stroke='%236B90C0'%20stroke-width='2'/%3e%3ccircle%20cx='14'%20cy='14'%20r='6'%20fill='%236B90C0'/%3e%3c/svg%3e", Je = "_ifStatement_1xsn9_1", Qe = "_conditionIcon_1xsn9_7", Ue = "_ifStatementContainer_1xsn9_21", et = "_menuButton_1xsn9_27", tt = "_menuIcon_1xsn9_52", nt = "_ifdotIcon_1xsn9_59", R = {
874
- ifStatement: Je,
875
- conditionIcon: Qe,
876
- ifStatementContainer: Ue,
877
- menuButton: et,
878
- menuIcon: tt,
879
- ifdotIcon: nt
880
- }, ot = ({ style: e }) => /* @__PURE__ */ t(
991
+ const s = B(null), l = B(null), [d, p] = M(!1);
992
+ pe(() => {
993
+ const C = s.current, N = l.current;
994
+ if (!C || !N) return;
995
+ const { paddingLeft: b, paddingRight: g } = getComputedStyle(C), f = Number.parseFloat(b) + Number.parseFloat(g);
996
+ p(N.offsetWidth >= C.clientWidth - f);
997
+ }, [t]);
998
+ const c = t && d ? t : "", r = i && n != null, h = $(() => {
999
+ if (!r || n == null) return;
1000
+ const C = n === "finished";
1001
+ return {
1002
+ "--condition-accent": Ct[n],
1003
+ "--condition-bg": He[n],
1004
+ ...C && {
1005
+ "--condition-line-width": "3px",
1006
+ "--condition-line-style": "dotted"
1007
+ }
1008
+ };
1009
+ }, [r, n]), m = `${Y.condition} ${d ? "" : Y.conditionFits}`.trim(), x = `${Y.conditionContainer} ${r ? Y.debuggerTint : ""}`.trim();
1010
+ return /* @__PURE__ */ v(
1011
+ "div",
1012
+ {
1013
+ className: x,
1014
+ style: { ...e, ...h },
1015
+ children: [
1016
+ /* @__PURE__ */ o("div", { className: Y.connectorLine }),
1017
+ /* @__PURE__ */ o(R1, { content: c, className: Y.conditionWrapper, children: /* @__PURE__ */ o("div", { ref: s, className: m, children: /* @__PURE__ */ o("span", { ref: l, children: t }) }) }),
1018
+ /* @__PURE__ */ o("div", { className: Y.connectorLine }),
1019
+ /* @__PURE__ */ o("div", { className: Y.connectorDot })
1020
+ ]
1021
+ }
1022
+ );
1023
+ }, j1 = "data:image/svg+xml,%3csvg%20width='44'%20height='44'%20viewBox='0%200%2044%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='21.8125'%20y='-2.52539'%20width='34.4207'%20height='34.4207'%20rx='6.09524'%20transform='rotate(45%2021.8125%20-2.52539)'%20fill='%236B90C0'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M31.3947%2013.0355C31.4679%2013.1085%2031.526%2013.1952%2031.5656%2013.2907C31.6052%2013.3861%2031.6256%2013.4885%2031.6256%2013.5918C31.6256%2013.6952%2031.6052%2013.7975%2031.5656%2013.8929C31.526%2013.9884%2031.4679%2014.0751%2031.3947%2014.1481L14.109%2031.4338C13.9615%2031.5813%2013.7614%2031.6642%2013.5527%2031.6642C13.3441%2031.6642%2013.144%2031.5813%2012.9965%2031.4338C12.8489%2031.2863%2012.766%2031.0862%2012.766%2030.8775C12.766%2030.6689%2012.8489%2030.4688%2012.9965%2030.3212L30.2822%2013.0355C30.3552%2012.9623%2030.4419%2012.9043%2030.5373%2012.8647C30.6328%2012.8251%2030.7351%2012.8047%2030.8385%2012.8047C30.9418%2012.8047%2031.0441%2012.8251%2031.1396%2012.8647C31.2351%2012.9043%2031.3218%2012.9623%2031.3947%2013.0355Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.9965%2013.0355C12.9233%2013.1085%2012.8652%2013.1952%2012.8256%2013.2907C12.786%2013.3861%2012.7656%2013.4885%2012.7656%2013.5918C12.7656%2013.6952%2012.786%2013.7975%2012.8256%2013.8929C12.8652%2013.9884%2012.9233%2014.0751%2012.9965%2014.1481L30.2822%2031.4338C30.4297%2031.5813%2030.6298%2031.6642%2030.8385%2031.6642C31.0471%2031.6642%2031.2472%2031.5813%2031.3947%2031.4338C31.5423%2031.2863%2031.6252%2031.0862%2031.6252%2030.8775C31.6252%2030.6689%2031.5423%2030.4688%2031.3947%2030.3212L14.109%2013.0355C14.036%2012.9623%2013.9493%2012.9043%2013.8539%2012.8647C13.7584%2012.8251%2013.6561%2012.8047%2013.5527%2012.8047C13.4494%2012.8047%2013.3471%2012.8251%2013.2516%2012.8647C13.1561%2012.9043%2013.0694%2012.9623%2012.9965%2013.0355Z'%20fill='white'/%3e%3c/svg%3e", W1 = "data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1'%20y='1'%20width='26'%20height='26'%20rx='13'%20fill='white'/%3e%3crect%20x='1'%20y='1'%20width='26'%20height='26'%20rx='13'%20stroke='%236B90C0'%20stroke-width='2'/%3e%3ccircle%20cx='14'%20cy='14'%20r='6'%20fill='%236B90C0'/%3e%3c/svg%3e", H1 = "data:image/svg+xml,%3csvg%20width='44'%20height='44'%20viewBox='0%200%2044%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='21.8125'%20y='-2.52539'%20width='34.4207'%20height='34.4207'%20rx='6.09524'%20transform='rotate(45%2021.8125%20-2.52539)'%20fill='%2317A34A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M31.3947%2013.0355C31.4679%2013.1085%2031.526%2013.1952%2031.5656%2013.2907C31.6052%2013.3861%2031.6256%2013.4885%2031.6256%2013.5918C31.6256%2013.6952%2031.6052%2013.7975%2031.5656%2013.8929C31.526%2013.9884%2031.4679%2014.0751%2031.3947%2014.1481L14.109%2031.4338C13.9615%2031.5813%2013.7614%2031.6642%2013.5527%2031.6642C13.3441%2031.6642%2013.144%2031.5813%2012.9965%2031.4338C12.8489%2031.2863%2012.766%2031.0862%2012.766%2030.8775C12.766%2030.6689%2012.8489%2030.4688%2012.9965%2030.3212L30.2822%2013.0355C30.3552%2012.9623%2030.4419%2012.9043%2030.5373%2012.8647C30.6328%2012.8251%2030.7351%2012.8047%2030.8385%2012.8047C30.9418%2012.8047%2031.0441%2012.8251%2031.1396%2012.8647C31.2351%2012.9043%2031.3218%2012.9623%2031.3947%2013.0355Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.9965%2013.0355C12.9233%2013.1085%2012.8652%2013.1952%2012.8256%2013.2907C12.786%2013.3861%2012.7656%2013.4885%2012.7656%2013.5918C12.7656%2013.6952%2012.786%2013.7975%2012.8256%2013.8929C12.8652%2013.9884%2012.9233%2014.0751%2012.9965%2014.1481L30.2822%2031.4338C30.4297%2031.5813%2030.6298%2031.6642%2030.8385%2031.6642C31.0471%2031.6642%2031.2472%2031.5813%2031.3947%2031.4338C31.5423%2031.2863%2031.6252%2031.0862%2031.6252%2030.8775C31.6252%2030.6689%2031.5423%2030.4688%2031.3947%2030.3212L14.109%2013.0355C14.036%2012.9623%2013.9493%2012.9043%2013.8539%2012.8647C13.7584%2012.8251%2013.6561%2012.8047%2013.5527%2012.8047C13.4494%2012.8047%2013.3471%2012.8251%2013.2516%2012.8647C13.1561%2012.9043%2013.0694%2012.9623%2012.9965%2013.0355Z'%20fill='white'/%3e%3c/svg%3e", V1 = "data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1'%20y='1'%20width='26'%20height='26'%20rx='13'%20fill='white'/%3e%3crect%20x='1'%20y='1'%20width='26'%20height='26'%20rx='13'%20stroke='%2317A34A'%20stroke-width='2'/%3e%3ccircle%20cx='14'%20cy='14'%20r='6'%20fill='%2317A34A'/%3e%3c/svg%3e", z1 = "_ifStatement_xtij3_1", Y1 = "_conditionIcon_xtij3_7", G1 = "_ifStatementContainer_xtij3_21", Z1 = "_menuButton_xtij3_27", U1 = "_menuIcon_xtij3_52", X1 = "_ifdotIcon_xtij3_59", Z = {
1024
+ ifStatement: z1,
1025
+ conditionIcon: Y1,
1026
+ ifStatementContainer: G1,
1027
+ menuButton: Z1,
1028
+ menuIcon: U1,
1029
+ ifdotIcon: X1
1030
+ }, K1 = ({
1031
+ style: t,
1032
+ color: e = w.NAVY
1033
+ }) => /* @__PURE__ */ o(
881
1034
  "div",
882
1035
  {
883
1036
  style: {
884
1037
  width: "100%",
885
1038
  height: "2px",
886
- borderTop: "2px solid #3B64A0",
887
- ...e
1039
+ borderTop: X(e),
1040
+ ...t
888
1041
  }
889
1042
  }
890
- ), it = ({
891
- onEdit: e,
892
- onDelete: n,
893
- onSelect: o
894
- }) => {
895
- const i = $(null), { openMenu: r, closeMenu: c } = r1(), a = S(
1043
+ ), Jt = (t) => {
1044
+ const {
1045
+ enabled: e = !0,
1046
+ onDelete: n,
1047
+ onSelect: i,
1048
+ debuggerMode: s = !1,
1049
+ status: l
1050
+ } = t, d = B(null), { openMenu: p, closeMenu: c } = Lt(), r = e && !s, h = s && l === "finished", m = Kt(l, s), x = h ? H1 : j1, C = h ? V1 : W1, N = $(
896
1051
  () => [
897
1052
  {
898
1053
  label: "Edit",
899
- icon: /* @__PURE__ */ t(G1, { color: "#3B64A0", size: 18 }),
900
- command: () => e?.()
1054
+ icon: /* @__PURE__ */ o(Zt, { color: w.NAVY, size: 18 }),
1055
+ command: () => i?.()
901
1056
  },
902
1057
  {
903
1058
  label: "Delete",
904
- icon: /* @__PURE__ */ t(J, { color: "#3B64A0", size: 18 }),
1059
+ icon: /* @__PURE__ */ o(ht, { color: w.NAVY, size: 18 }),
905
1060
  command: () => n?.()
906
1061
  }
907
1062
  ],
908
- [e, n]
909
- ), d = (l) => {
910
- l.stopPropagation(), r(i, l);
911
- }, s = (l) => {
912
- l.target.closest(`.${R.menuButton}`) || o?.();
1063
+ [i, n]
1064
+ ), b = (f) => {
1065
+ f.stopPropagation(), p(d, f);
1066
+ }, g = (f) => {
1067
+ f.target.closest(`.${Z.menuButton}`) || i?.();
913
1068
  };
914
- return /* @__PURE__ */ C("div", { className: R.ifStatementContainer, children: [
915
- /* @__PURE__ */ t(
916
- ot,
1069
+ return /* @__PURE__ */ v("div", { className: Z.ifStatementContainer, children: [
1070
+ /* @__PURE__ */ o(
1071
+ K1,
917
1072
  {
1073
+ color: m,
918
1074
  style: { position: "absolute", top: "22.5px", left: 0, zIndex: 1 }
919
1075
  }
920
1076
  ),
921
- /* @__PURE__ */ t("div", { className: R.ifStatement, children: /* @__PURE__ */ t(
1077
+ /* @__PURE__ */ o("div", { className: Z.ifStatement, children: /* @__PURE__ */ o(
922
1078
  "img",
923
1079
  {
924
- src: Ge,
1080
+ src: x,
925
1081
  alt: "condition",
926
- onClick: (l) => s(l),
927
- className: R.conditionIcon
1082
+ onClick: (f) => g(f),
1083
+ className: Z.conditionIcon
928
1084
  }
929
1085
  ) }),
930
- /* @__PURE__ */ t(
931
- "button",
932
- {
933
- type: "button",
934
- className: R.menuButton,
935
- onClick: d,
936
- "aria-label": "Open menu",
937
- "aria-haspopup": "menu",
938
- children: /* @__PURE__ */ t(K, { className: R.menuIcon })
939
- }
940
- ),
941
- /* @__PURE__ */ t(
942
- Q,
943
- {
944
- ref: i,
945
- model: a,
946
- popup: !0,
947
- onHide: () => c(i)
948
- }
949
- ),
950
- /* @__PURE__ */ t("img", { src: Ke, alt: "ifdot", className: R.ifdotIcon })
1086
+ r && /* @__PURE__ */ v(K, { children: [
1087
+ /* @__PURE__ */ o(
1088
+ "button",
1089
+ {
1090
+ type: "button",
1091
+ className: Z.menuButton,
1092
+ onClick: b,
1093
+ "aria-label": "Open menu",
1094
+ "aria-haspopup": "menu",
1095
+ children: /* @__PURE__ */ o(ut, { className: Z.menuIcon, size: 16 })
1096
+ }
1097
+ ),
1098
+ /* @__PURE__ */ o(
1099
+ ft,
1100
+ {
1101
+ ref: d,
1102
+ model: N,
1103
+ popup: !0,
1104
+ onHide: () => c(d)
1105
+ }
1106
+ )
1107
+ ] }),
1108
+ /* @__PURE__ */ o("img", { src: C, alt: "ifdot", className: Z.ifdotIcon })
951
1109
  ] });
952
- }, rt = 34.5, _1 = ({
953
- items: e,
954
- pathId: n,
955
- onAddStep: o,
956
- onAddTrigger: i,
957
- onAddCondition: r,
958
- onAddLoop: c,
959
- onDeleteStep: a,
960
- onUpdateFilter: d,
961
- onSelectStep: s,
962
- onResize: l
963
- }) => {
964
- const f = $(null), b = $([]), [x, v] = E([]);
965
- q(() => {
966
- const p = () => {
967
- if (!f.current || e.length === 0) {
968
- v([]);
1110
+ }, jt = 34.5, q1 = 33, it = w.NAVY, Qt = (t) => {
1111
+ const {
1112
+ items: e,
1113
+ pathId: n,
1114
+ onAddStep: i,
1115
+ onAddTrigger: s,
1116
+ onAddCondition: l,
1117
+ onAddLoop: d,
1118
+ onDeleteStep: p,
1119
+ onUpdateFilter: c,
1120
+ onSelectStep: r,
1121
+ onResize: h,
1122
+ onCheckScenario: m,
1123
+ iteratorEnabled: x,
1124
+ conditionsEnabled: C
1125
+ } = t, N = B(null), b = B([]), [g, f] = M([]);
1126
+ nt(() => {
1127
+ const u = () => {
1128
+ const I = N.current;
1129
+ if (!I || e.length === 0) {
1130
+ f([]);
969
1131
  return;
970
1132
  }
971
- const w = f.current.getBoundingClientRect(), y = [];
972
- for (let _ = 0; _ < e.length; _++) {
973
- const u = b.current[_];
974
- if (u) {
975
- const I = u.getBoundingClientRect();
976
- y.push(I.top - w.top + rt);
977
- }
1133
+ const L = [], O = Number.parseFloat(
1134
+ getComputedStyle(I).zoom || "1"
1135
+ );
1136
+ for (let F = 0; F < e.length; F++) {
1137
+ const y = b.current[F];
1138
+ if (y)
1139
+ if (y.offsetParent == null) {
1140
+ const P = I.getBoundingClientRect(), S = y.getBoundingClientRect();
1141
+ L.push((S.top - P.top) / O + jt);
1142
+ } else
1143
+ L.push(y.offsetTop - q1 + jt);
978
1144
  }
979
- y.length === e.length && v(y);
1145
+ L.length === e.length && f(L);
1146
+ };
1147
+ u();
1148
+ const a = new ResizeObserver(u), _ = N.current;
1149
+ return _ && a.observe(_), window.addEventListener("resize", u), () => {
1150
+ a.disconnect(), window.removeEventListener("resize", u);
980
1151
  };
981
- return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
982
1152
  }, [e]);
983
- const m = S(() => x.length !== e.length || e.length <= 1 ? null : e.map((p, w) => w).filter((p) => p > 0).map((p) => {
984
- const w = x[p];
985
- return w === void 0 ? null : /* @__PURE__ */ t(He, { width: 100, height: w }, p);
986
- }), [e, x]);
987
- return /* @__PURE__ */ C("div", { className: F.row, children: [
988
- /* @__PURE__ */ t(
989
- it,
1153
+ const E = $(() => g.length !== e.length || e.length <= 1 ? null : e.map((u, a) => a).filter((u) => u > 0).map((u) => {
1154
+ const a = g[u];
1155
+ return a === void 0 ? null : /* @__PURE__ */ o(wt, { width: 100, height: a, strokeColor: it }, u);
1156
+ }), [e, g]);
1157
+ return /* @__PURE__ */ v("div", { className: H.row, children: [
1158
+ /* @__PURE__ */ o(
1159
+ Jt,
990
1160
  {
991
- onDelete: () => n != null && a?.(n),
992
- onSelect: n != null && s ? () => s(n) : void 0
1161
+ onDelete: () => n != null && p?.(n),
1162
+ enabled: C,
1163
+ onSelect: n != null && r ? () => r(n) : void 0
993
1164
  }
994
1165
  ),
995
- /* @__PURE__ */ C(
1166
+ /* @__PURE__ */ v(
996
1167
  "div",
997
1168
  {
998
- ref: f,
999
- className: F.column,
1169
+ ref: N,
1170
+ className: H.column,
1000
1171
  style: { marginTop: "33px" },
1001
1172
  children: [
1002
- /* @__PURE__ */ t(
1173
+ /* @__PURE__ */ o(
1003
1174
  "div",
1004
1175
  {
1005
1176
  style: {
@@ -1008,91 +1179,100 @@ const Me = () => /* @__PURE__ */ C(
1008
1179
  left: 0,
1009
1180
  width: "100px",
1010
1181
  height: "2px",
1011
- borderTop: "2px solid #3B64A0"
1182
+ borderTop: `2px solid ${it}`
1012
1183
  }
1013
1184
  }
1014
1185
  ),
1015
- m
1186
+ E
1016
1187
  ]
1017
1188
  }
1018
1189
  ),
1019
- /* @__PURE__ */ t("div", { className: F.column, children: e.map((p, w) => {
1020
- let y;
1021
- if (p.paths)
1022
- y = /* @__PURE__ */ t(
1023
- _1,
1190
+ /* @__PURE__ */ o("div", { className: H.column, children: e.map((u, a) => {
1191
+ let _;
1192
+ if (u.paths)
1193
+ _ = /* @__PURE__ */ o(
1194
+ Qt,
1024
1195
  {
1025
- items: p.paths,
1196
+ items: u.paths,
1026
1197
  pathId: n,
1027
- onAddStep: o,
1028
- onAddTrigger: i,
1029
- onAddCondition: r,
1030
- onAddLoop: c,
1031
- onDeleteStep: a,
1032
- onUpdateFilter: d,
1033
- onSelectStep: s,
1034
- onResize: l
1198
+ onAddStep: i,
1199
+ onAddTrigger: s,
1200
+ onAddCondition: l,
1201
+ onAddLoop: d,
1202
+ onDeleteStep: p,
1203
+ onUpdateFilter: c,
1204
+ onSelectStep: r,
1205
+ onResize: h,
1206
+ onCheckScenario: m,
1207
+ iteratorEnabled: x,
1208
+ conditionsEnabled: C
1035
1209
  },
1036
- p.localId
1210
+ u.localId
1037
1211
  );
1038
- else if (p.steps) {
1039
- const _ = p;
1040
- y = /* @__PURE__ */ C("div", { className: F.stepsContainer, children: [
1041
- /* @__PURE__ */ t(
1042
- Xe,
1212
+ else if (u.steps) {
1213
+ const I = u;
1214
+ _ = /* @__PURE__ */ v("div", { className: H.stepsContainer, children: [
1215
+ /* @__PURE__ */ o(
1216
+ vt,
1043
1217
  {
1044
- expression: _.condition,
1218
+ expression: I.condition,
1219
+ status: I.status,
1045
1220
  style: { marginTop: "25px" }
1046
1221
  }
1047
1222
  ),
1048
- /* @__PURE__ */ t(
1049
- l1,
1223
+ /* @__PURE__ */ o(
1224
+ St,
1050
1225
  {
1051
- steps: p.steps,
1052
- pathId: p.localId,
1053
- onSelectStep: s ?? (() => {
1226
+ steps: u.steps,
1227
+ pathId: u.localId,
1228
+ iteratorEnabled: x,
1229
+ conditionsEnabled: C,
1230
+ onSelectStep: r ?? (() => {
1054
1231
  }),
1055
- onAddStep: o ?? (() => {
1232
+ onAddStep: i ?? (() => {
1056
1233
  }),
1057
- onAddTrigger: i,
1058
- onAddCondition: r ?? (() => {
1234
+ onAddTrigger: s,
1235
+ onAddCondition: l ?? (() => {
1059
1236
  }),
1060
- onAddLoop: c,
1061
- onDeleteStep: a,
1062
- onUpdateFilter: d,
1063
- onResize: l
1237
+ onAddLoop: d,
1238
+ onDeleteStep: p,
1239
+ onUpdateFilter: c,
1240
+ onResize: h,
1241
+ onCheckScenario: m
1064
1242
  },
1065
- p.localId
1243
+ u.localId
1066
1244
  )
1067
1245
  ] });
1068
1246
  } else
1069
- y = /* @__PURE__ */ t(
1070
- s1,
1247
+ _ = /* @__PURE__ */ o(
1248
+ rt,
1071
1249
  {
1072
- localId: p.localId,
1073
- title: "title" in p ? p.title : "",
1250
+ localId: u.localId,
1251
+ title: "title" in u ? u.title : "",
1074
1252
  idx: 1,
1075
- icon: "icon" in p ? p.icon : void 0,
1076
- onSelectStep: s,
1077
- onDeleteStep: a,
1078
- onUpdateFilter: d
1253
+ icon: "icon" in u ? u.icon : void 0,
1254
+ status: "status" in u ? u.status : void 0,
1255
+ onSelectStep: r,
1256
+ onDeleteStep: p,
1257
+ onUpdateFilter: c,
1258
+ onCheckScenario: m
1079
1259
  },
1080
- p.localId
1260
+ u.localId
1081
1261
  );
1082
- return /* @__PURE__ */ t(
1262
+ return /* @__PURE__ */ o(
1083
1263
  "div",
1084
1264
  {
1085
- ref: (_) => {
1086
- b.current[w] = _;
1265
+ ref: (I) => {
1266
+ b.current[a] = I;
1087
1267
  },
1088
1268
  style: { width: "100%" },
1089
- children: y
1269
+ children: _
1090
1270
  },
1091
- p.localId
1271
+ u.localId
1092
1272
  );
1093
1273
  }) }),
1094
- /* @__PURE__ */ C("div", { className: F.column, style: { marginTop: "33px" }, children: [
1095
- /* @__PURE__ */ t(
1274
+ /* @__PURE__ */ v("div", { className: H.column, style: { marginTop: "33px" }, children: [
1275
+ /* @__PURE__ */ o(
1096
1276
  "div",
1097
1277
  {
1098
1278
  style: {
@@ -1102,19 +1282,22 @@ const Me = () => /* @__PURE__ */ C(
1102
1282
  flex: 1,
1103
1283
  width: "100%",
1104
1284
  height: "2px",
1105
- borderTop: "2px solid #3B64A0"
1285
+ borderTop: `2px solid ${it}`
1106
1286
  }
1107
1287
  }
1108
1288
  ),
1109
- m
1289
+ E
1110
1290
  ] }),
1111
- /* @__PURE__ */ t(
1112
- Z,
1291
+ /* @__PURE__ */ o(
1292
+ tt,
1113
1293
  {
1114
- onAddStep: o,
1115
- onAddTrigger: i,
1116
- onAddCondition: r,
1117
- onAddLoop: c,
1294
+ onAddStep: i,
1295
+ onAddTrigger: s,
1296
+ onAddCondition: l,
1297
+ onAddLoop: d,
1298
+ iteratorEnabled: x,
1299
+ conditionsEnabled: C,
1300
+ lineColor: it,
1118
1301
  stepId: n,
1119
1302
  pathId: n,
1120
1303
  index: 1,
@@ -1124,36 +1307,39 @@ const Me = () => /* @__PURE__ */ C(
1124
1307
  }
1125
1308
  }
1126
1309
  ),
1127
- /* @__PURE__ */ t(
1310
+ /* @__PURE__ */ o(
1128
1311
  "div",
1129
1312
  {
1130
1313
  style: {
1131
1314
  flex: 1,
1132
1315
  width: "100%",
1133
1316
  height: "2px",
1134
- borderTop: "2px solid #3B64A0",
1317
+ borderTop: `2px solid ${it}`,
1135
1318
  marginTop: "34px"
1136
1319
  }
1137
1320
  }
1138
1321
  )
1139
1322
  ] });
1140
- }, o1 = 68, l1 = ({
1141
- pathId: e,
1142
- steps: n,
1143
- centerY: o,
1323
+ }, yt = 68, U = w.NAVY, St = ({
1324
+ pathId: t,
1325
+ steps: e,
1326
+ centerY: n,
1144
1327
  className: i,
1145
- onAddStep: r,
1146
- onDeleteStep: c,
1147
- onUpdateFilter: a,
1148
- onAddTrigger: d,
1149
- onAddCondition: s,
1150
- onAddLoop: l,
1151
- onSelectStep: f,
1152
- onResize: b,
1153
- isDescendent: x = !0
1328
+ iteratorEnabled: s,
1329
+ conditionsEnabled: l,
1330
+ onAddStep: d,
1331
+ onDeleteStep: p,
1332
+ onUpdateFilter: c,
1333
+ onAddTrigger: r,
1334
+ onAddCondition: h,
1335
+ onAddLoop: m,
1336
+ onSelectStep: x,
1337
+ onResize: C,
1338
+ onCheckScenario: N,
1339
+ isDescendent: b = !0
1154
1340
  }) => {
1155
- const v = o === void 0 ? void 0 : { marginTop: Math.max(0, o - o1 / 2) };
1156
- return n.length === 0 ? /* @__PURE__ */ C(
1341
+ const g = n === void 0 ? void 0 : { marginTop: Math.max(0, n - yt / 2) };
1342
+ return e.length === 0 ? /* @__PURE__ */ v(
1157
1343
  "div",
1158
1344
  {
1159
1345
  style: {
@@ -1163,10 +1349,10 @@ const Me = () => /* @__PURE__ */ C(
1163
1349
  flexDirection: "row",
1164
1350
  flex: 1,
1165
1351
  minWidth: 0,
1166
- ...v
1352
+ ...g
1167
1353
  },
1168
1354
  children: [
1169
- /* @__PURE__ */ t(
1355
+ /* @__PURE__ */ o(
1170
1356
  "div",
1171
1357
  {
1172
1358
  style: {
@@ -1176,27 +1362,31 @@ const Me = () => /* @__PURE__ */ C(
1176
1362
  minWidth: 0,
1177
1363
  height: "2px",
1178
1364
  marginTop: "13.5px",
1179
- borderTop: "2px solid #3B64A0"
1365
+ borderTop: `2px solid ${U}`
1180
1366
  }
1181
1367
  }
1182
1368
  ),
1183
- /* @__PURE__ */ t(
1184
- Z,
1369
+ /* @__PURE__ */ o(
1370
+ tt,
1185
1371
  {
1186
1372
  onAddStep: () => {
1187
- r?.(void 0, e);
1373
+ d?.(void 0, t);
1188
1374
  },
1189
- onAddTrigger: d,
1190
- onAddCondition: s,
1191
- onAddLoop: l,
1192
- stepId: e,
1375
+ onAddTrigger: r,
1376
+ onAddCondition: h,
1377
+ onAddLoop: m,
1378
+ iteratorEnabled: s,
1379
+ conditionsEnabled: l,
1380
+ lineColor: U,
1381
+ stepId: t,
1193
1382
  index: 0,
1194
1383
  style: {
1195
- height: "auto"
1384
+ height: "auto",
1385
+ marginTop: "0"
1196
1386
  }
1197
1387
  }
1198
1388
  ),
1199
- /* @__PURE__ */ t(
1389
+ /* @__PURE__ */ o(
1200
1390
  "div",
1201
1391
  {
1202
1392
  style: {
@@ -1206,18 +1396,18 @@ const Me = () => /* @__PURE__ */ C(
1206
1396
  minWidth: 0,
1207
1397
  height: "2px",
1208
1398
  marginTop: "13.5px",
1209
- borderTop: "2px solid #3B64A0"
1399
+ borderTop: `2px solid ${U}`
1210
1400
  }
1211
1401
  }
1212
1402
  )
1213
1403
  ]
1214
1404
  }
1215
- ) : /* @__PURE__ */ t(
1405
+ ) : /* @__PURE__ */ o(
1216
1406
  "div",
1217
1407
  {
1218
- className: t1.steps + (i ? " " + i : ""),
1219
- style: v,
1220
- children: /* @__PURE__ */ C(
1408
+ className: ot.steps + (i ? " " + i : ""),
1409
+ style: g,
1410
+ children: /* @__PURE__ */ v(
1221
1411
  "div",
1222
1412
  {
1223
1413
  style: {
@@ -1229,115 +1419,132 @@ const Me = () => /* @__PURE__ */ C(
1229
1419
  alignItems: "flex-start"
1230
1420
  },
1231
1421
  children: [
1232
- /* @__PURE__ */ t(
1233
- Z,
1422
+ /* @__PURE__ */ o(
1423
+ tt,
1234
1424
  {
1235
1425
  onAddStep: () => {
1236
- r?.(n[0].localId, e, "prepend");
1426
+ d?.(e[0].localId, t, "prepend");
1237
1427
  },
1238
- onAddTrigger: d,
1239
- onAddCondition: s,
1240
- onAddLoop: l,
1241
- stepId: n[0].localId,
1242
- pathId: e,
1428
+ onAddTrigger: r,
1429
+ onAddCondition: h,
1430
+ onAddLoop: m,
1431
+ iteratorEnabled: s,
1432
+ conditionsEnabled: l,
1433
+ lineColor: U,
1434
+ stepId: e[0].localId,
1435
+ pathId: t,
1243
1436
  index: 0,
1244
1437
  style: {
1245
1438
  marginTop: "20px"
1246
1439
  }
1247
1440
  }
1248
1441
  ),
1249
- n.map((m, p) => {
1250
- const w = !!m.paths, y = "condition" in m && typeof m.condition == "string";
1442
+ e.map((f, E) => {
1443
+ const u = !!f.paths, a = "condition" in f && typeof f.condition == "string";
1251
1444
  let _;
1252
- return w && m.paths ? _ = /* @__PURE__ */ t(
1253
- _1,
1445
+ return u && f.paths ? _ = /* @__PURE__ */ o(
1446
+ Qt,
1254
1447
  {
1255
- items: m.paths,
1256
- pathId: m.localId,
1257
- onAddStep: r,
1258
- onAddCondition: s,
1259
- onAddLoop: l,
1260
- onDeleteStep: c,
1261
- onAddTrigger: d,
1262
- onSelectStep: f,
1263
- onUpdateFilter: a,
1264
- onResize: b
1448
+ items: f.paths,
1449
+ pathId: f.localId,
1450
+ iteratorEnabled: s,
1451
+ conditionsEnabled: l,
1452
+ onAddStep: d,
1453
+ onAddCondition: h,
1454
+ onAddLoop: m,
1455
+ onDeleteStep: p,
1456
+ onAddTrigger: r,
1457
+ onSelectStep: x,
1458
+ onUpdateFilter: c,
1459
+ onResize: C,
1460
+ onCheckScenario: N
1265
1461
  },
1266
- m.title
1267
- ) : y ? _ = /* @__PURE__ */ C(n1, { children: [
1268
- /* @__PURE__ */ t(
1269
- yt,
1462
+ f.title
1463
+ ) : a ? _ = /* @__PURE__ */ v(K, { children: [
1464
+ /* @__PURE__ */ o(
1465
+ fn,
1270
1466
  {
1271
- value: m,
1272
- onAddStep: r,
1273
- onAddTrigger: d,
1274
- onAddCondition: s,
1275
- onAddLoop: l,
1276
- onDeleteStep: c,
1277
- onUpdateFilter: a,
1278
- onSelectStep: f,
1279
- onResize: b
1467
+ value: f,
1468
+ iteratorEnabled: s,
1469
+ conditionsEnabled: l,
1470
+ onAddStep: d,
1471
+ onAddTrigger: r,
1472
+ onAddCondition: h,
1473
+ onAddLoop: m,
1474
+ onDeleteStep: p,
1475
+ onUpdateFilter: c,
1476
+ onSelectStep: x,
1477
+ onResize: C,
1478
+ onCheckScenario: N
1280
1479
  },
1281
- m.localId
1480
+ f.localId
1282
1481
  ),
1283
- /* @__PURE__ */ t(
1284
- Z,
1482
+ /* @__PURE__ */ o(
1483
+ tt,
1285
1484
  {
1286
- onAddStep: r,
1287
- onAddTrigger: d,
1288
- onAddCondition: s,
1289
- onAddLoop: l,
1290
- stepId: m.localId,
1291
- pathId: e,
1292
- index: p + 1,
1485
+ onAddStep: d,
1486
+ onAddTrigger: r,
1487
+ onAddCondition: h,
1488
+ onAddLoop: m,
1489
+ iteratorEnabled: s,
1490
+ conditionsEnabled: l,
1491
+ lineColor: U,
1492
+ stepId: f.localId,
1493
+ pathId: t,
1494
+ index: E + 1,
1293
1495
  style: { marginTop: "34px", height: 0 }
1294
1496
  }
1295
1497
  )
1296
- ] }) : _ = /* @__PURE__ */ C(n1, { children: [
1297
- /* @__PURE__ */ t(
1298
- s1,
1498
+ ] }) : _ = /* @__PURE__ */ v(K, { children: [
1499
+ /* @__PURE__ */ o(
1500
+ rt,
1299
1501
  {
1300
- localId: m.localId,
1301
- title: m.title,
1502
+ localId: f.localId,
1503
+ title: f.title,
1302
1504
  idx: 1,
1303
- icon: m.icon,
1304
- isSet: m.isSet,
1305
- isInvalid: m.isInvalid,
1306
- isFilter: m.isFilter,
1307
- onSelectStep: f,
1308
- onDeleteStep: c,
1309
- onUpdateFilter: a
1505
+ icon: f.icon,
1506
+ isSet: f.isSet,
1507
+ isInvalid: f.isInvalid,
1508
+ isFilter: f.isFilter,
1509
+ status: f.status,
1510
+ onSelectStep: x,
1511
+ onDeleteStep: p,
1512
+ onUpdateFilter: c,
1513
+ onCheckScenario: N
1310
1514
  },
1311
- m.title
1515
+ f.title
1312
1516
  ),
1313
- /* @__PURE__ */ t(
1314
- Z,
1517
+ /* @__PURE__ */ o(
1518
+ tt,
1315
1519
  {
1316
- onAddStep: r,
1317
- onAddTrigger: d,
1318
- onAddCondition: s,
1319
- onAddLoop: l,
1320
- stepId: m.localId,
1321
- pathId: e,
1322
- index: p + 1
1520
+ onAddStep: d,
1521
+ onAddTrigger: r,
1522
+ onAddCondition: h,
1523
+ onAddLoop: m,
1524
+ iteratorEnabled: s,
1525
+ conditionsEnabled: l,
1526
+ lineColor: U,
1527
+ stepId: f.localId,
1528
+ pathId: t,
1529
+ index: E + 1
1323
1530
  }
1324
1531
  )
1325
- ] }), /* @__PURE__ */ t(
1532
+ ] }), /* @__PURE__ */ o(
1326
1533
  "div",
1327
1534
  {
1328
- className: t1.stepContainer + (w || y ? " " + t1.stepContainerWithPaths : ""),
1535
+ className: ot.stepContainer + (u || a ? " " + ot.stepContainerWithPaths : ""),
1329
1536
  children: _
1330
1537
  },
1331
- m.localId
1538
+ f.localId
1332
1539
  );
1333
1540
  }),
1334
- x && /* @__PURE__ */ t(
1541
+ b && /* @__PURE__ */ o(
1335
1542
  "div",
1336
1543
  {
1337
1544
  style: {
1338
1545
  flexGrow: 1,
1339
1546
  minWidth: 0,
1340
- borderTop: "2px solid #3B64A0",
1547
+ borderTop: `2px solid ${U}`,
1341
1548
  marginTop: "33.5px"
1342
1549
  }
1343
1550
  }
@@ -1347,7 +1554,7 @@ const Me = () => /* @__PURE__ */ C(
1347
1554
  )
1348
1555
  }
1349
1556
  );
1350
- }, st = () => /* @__PURE__ */ C(
1557
+ }, te = () => /* @__PURE__ */ v(
1351
1558
  "svg",
1352
1559
  {
1353
1560
  width: "24",
@@ -1356,255 +1563,1078 @@ const Me = () => /* @__PURE__ */ C(
1356
1563
  fill: "none",
1357
1564
  xmlns: "http://www.w3.org/2000/svg",
1358
1565
  children: [
1359
- /* @__PURE__ */ t(
1566
+ /* @__PURE__ */ o(
1360
1567
  "path",
1361
1568
  {
1362
1569
  d: "M17.3006 10.5H23.1986C23.2699 10.5001 23.3397 10.5204 23.3998 10.5586C23.4599 10.5969 23.5079 10.6515 23.5381 10.716C23.5683 10.7805 23.5795 10.8523 23.5704 10.923C23.5613 10.9937 23.5322 11.0603 23.4866 11.115L20.5376 14.655C20.5024 14.6972 20.4584 14.7312 20.4086 14.7545C20.3589 14.7778 20.3046 14.7899 20.2496 14.7899C20.1947 14.7899 20.1404 14.7778 20.0906 14.7545C20.0409 14.7312 19.9968 14.6972 19.9616 14.655L17.0126 11.115C16.967 11.0603 16.938 10.9937 16.9289 10.923C16.9197 10.8523 16.931 10.7805 16.9612 10.716C16.9914 10.6515 17.0394 10.5969 17.0995 10.5586C17.1596 10.5204 17.2294 10.5001 17.3006 10.5ZM0.800641 13.5H6.69864C6.7699 13.5 6.83967 13.4797 6.89979 13.4414C6.95991 13.4032 7.00789 13.3486 7.03811 13.2841C7.06833 13.2195 7.07953 13.1477 7.07042 13.0771C7.06131 13.0064 7.03224 12.9398 6.98664 12.885L4.03764 9.34504C4.00245 9.30283 3.95841 9.26888 3.90864 9.24558C3.85887 9.22228 3.80459 9.21021 3.74964 9.21021C3.69469 9.21021 3.64041 9.22228 3.59064 9.24558C3.54087 9.26888 3.49683 9.30283 3.46164 9.34504L0.512641 12.885C0.467037 12.9398 0.437977 13.0064 0.428862 13.0771C0.419747 13.1477 0.430956 13.2195 0.461175 13.2841C0.491394 13.3486 0.539372 13.4032 0.599493 13.4414C0.659613 13.4797 0.729386 13.5 0.800641 13.5Z",
1363
- fill: "#41B0AC"
1570
+ fill: w.TEAL
1364
1571
  }
1365
1572
  ),
1366
- /* @__PURE__ */ t(
1573
+ /* @__PURE__ */ o(
1367
1574
  "path",
1368
1575
  {
1369
1576
  fillRule: "evenodd",
1370
1577
  clipRule: "evenodd",
1371
1578
  d: "M11.9995 4.50011C9.67152 4.50011 7.58952 5.5606 6.21402 7.2271C6.1526 7.30671 6.0758 7.37316 5.98819 7.42249C5.90057 7.47183 5.80393 7.50304 5.70401 7.51427C5.60409 7.52551 5.50293 7.51653 5.40655 7.48789C5.31016 7.45924 5.22052 7.41151 5.14296 7.34753C5.06539 7.28354 5.00149 7.20462 4.95504 7.11544C4.90859 7.02626 4.88054 6.92865 4.87257 6.82842C4.8646 6.72819 4.87687 6.62737 4.90864 6.53198C4.94041 6.43658 4.99104 6.34854 5.05752 6.27311C6.15581 4.9434 7.61291 3.95712 9.25552 3.43159C10.8981 2.90606 12.6571 2.86338 14.3233 3.30864C15.9895 3.7539 17.4927 4.66835 18.6541 5.94324C19.8156 7.21812 20.5865 8.79978 20.875 10.5001L19.3495 10.5001C19.0032 8.80632 18.0826 7.28409 16.7433 6.19082C15.4041 5.09755 13.7284 4.50032 11.9995 4.50011ZM4.64952 13.5001C4.93349 14.887 5.60405 16.1653 6.58374 17.1873C7.56343 18.2093 8.81226 18.9332 10.186 19.2755C11.5597 19.6178 13.0022 19.5645 14.3469 19.1217C15.6915 18.6789 16.8835 17.8646 17.785 16.7731C17.8464 16.6935 17.9232 16.627 18.0109 16.5777C18.0985 16.5284 18.1951 16.4972 18.295 16.4859C18.395 16.4747 18.4961 16.4837 18.5925 16.5123C18.6889 16.541 18.7785 16.5887 18.8561 16.6527C18.9337 16.7167 18.9976 16.7956 19.044 16.8848C19.0905 16.974 19.1185 17.0716 19.1265 17.1718C19.1344 17.272 19.1222 17.3728 19.0904 17.4682C19.0586 17.5636 19.008 17.6517 18.9415 17.7271C17.8432 19.0568 16.3861 20.0431 14.7435 20.5686C13.1009 21.0942 11.3419 21.1368 9.67576 20.6916C8.0096 20.2463 6.50638 19.3319 5.34491 18.057C4.18343 16.7821 3.41258 15.2004 3.12402 13.5001H4.64952Z",
1372
- fill: "#41B0AC"
1579
+ fill: w.TEAL
1373
1580
  }
1374
1581
  )
1375
1582
  ]
1376
1583
  }
1377
- ), lt = "_container_3aqee_1", ct = "_collapsed_3aqee_16", at = "_loopNodeWrapper_3aqee_20", dt = "_loopIconWrapper_3aqee_30", pt = "_loopBox_3aqee_39", ut = "_dotsButton_3aqee_56", ht = "_label_3aqee_76", Ct = "_limit_3aqee_83", mt = "_expandable_3aqee_89", ft = "_expandableCollapsed_3aqee_98", gt = "_connector_3aqee_104", vt = "_line_3aqee_112", _t = "_circleDot_3aqee_120", xt = "_innerDot_3aqee_135", wt = "_stepsWrapper_3aqee_142", k = {
1378
- container: lt,
1379
- collapsed: ct,
1380
- loopNodeWrapper: at,
1381
- loopIconWrapper: dt,
1382
- loopBox: pt,
1383
- dotsButton: ut,
1384
- label: ht,
1385
- limit: Ct,
1386
- expandable: mt,
1387
- expandableCollapsed: ft,
1388
- connector: gt,
1389
- line: vt,
1390
- circleDot: _t,
1391
- innerDot: xt,
1392
- stepsWrapper: wt
1393
- }, yt = ({
1394
- value: e,
1395
- onAddStep: n,
1396
- onAddTrigger: o,
1397
- onAddCondition: i,
1398
- onAddLoop: r,
1399
- onDeleteStep: c,
1400
- onUpdateFilter: a,
1401
- onSelectStep: d,
1402
- onResize: s
1584
+ ), J1 = "_container_18jhr_1", Q1 = "_collapsed_18jhr_16", tn = "_loopNodeWrapper_18jhr_21", en = "_loopIconWrapper_18jhr_31", nn = "_loopBox_18jhr_40", on = "_dotsButton_18jhr_57", sn = "_label_18jhr_77", rn = "_limit_18jhr_84", ln = "_expandable_18jhr_90", cn = "_expandableCollapsed_18jhr_98", an = "_connector_18jhr_105", dn = "_line_18jhr_113", un = "_circleDot_18jhr_121", pn = "_innerDot_18jhr_136", hn = "_stepsWrapper_18jhr_143", T = {
1585
+ container: J1,
1586
+ collapsed: Q1,
1587
+ loopNodeWrapper: tn,
1588
+ loopIconWrapper: en,
1589
+ loopBox: nn,
1590
+ dotsButton: on,
1591
+ label: sn,
1592
+ limit: rn,
1593
+ expandable: ln,
1594
+ expandableCollapsed: cn,
1595
+ connector: an,
1596
+ line: dn,
1597
+ circleDot: un,
1598
+ innerDot: pn,
1599
+ stepsWrapper: hn
1600
+ }, fn = ({
1601
+ value: t,
1602
+ iteratorEnabled: e = !0,
1603
+ conditionsEnabled: n = !0,
1604
+ onAddStep: i,
1605
+ onAddTrigger: s,
1606
+ onAddCondition: l,
1607
+ onAddLoop: d,
1608
+ onDeleteStep: p,
1609
+ onUpdateFilter: c,
1610
+ onSelectStep: r,
1611
+ onResize: h,
1612
+ onCheckScenario: m
1403
1613
  }) => {
1404
- const { localId: l, limit: f, steps: b } = e, x = b ?? [], v = () => {
1405
- }, [m, p] = E(!1), w = $(null), { openMenu: y, closeMenu: _ } = r1(), u = i1(), I = S(
1614
+ const { localId: x, limit: C, steps: N, condition: b } = t, g = N ?? [], f = () => {
1615
+ }, [E, u] = M(!1), a = B(null), { openMenu: _, closeMenu: I } = Lt(), L = gt(), O = $(
1406
1616
  () => [
1617
+ {
1618
+ label: "Edit",
1619
+ icon: /* @__PURE__ */ o(Zt, { color: w.NAVY, size: 18 }),
1620
+ command: (k) => {
1621
+ k?.originalEvent?.stopPropagation(), r?.(x);
1622
+ },
1623
+ template: L
1624
+ },
1407
1625
  {
1408
1626
  label: "Remove",
1409
- icon: /* @__PURE__ */ t(J, { color: "#3B64A0", size: 18 }),
1410
- command: (B) => {
1411
- B?.originalEvent?.stopPropagation(), c && c(l);
1627
+ icon: /* @__PURE__ */ o(ht, { color: w.NAVY, size: 18 }),
1628
+ command: (k) => {
1629
+ k?.originalEvent?.stopPropagation(), p && p(x);
1412
1630
  },
1413
- template: u
1631
+ template: L
1414
1632
  }
1415
1633
  ],
1416
- [c, l, u]
1417
- ), L = (B) => {
1418
- B.stopPropagation(), y(w, B);
1419
- }, h = () => {
1420
- p((B) => !B), s?.();
1421
- }, g = k.container + (m ? "" : " " + k.collapsed), M = k.expandable + (m ? "" : " " + k.expandableCollapsed);
1422
- return /* @__PURE__ */ C("div", { className: g, children: [
1423
- /* @__PURE__ */ C("div", { className: k.loopNodeWrapper, children: [
1424
- /* @__PURE__ */ C("div", { className: k.loopBox, children: [
1425
- /* @__PURE__ */ t("div", { onClick: h, className: k.loopIconWrapper, children: /* @__PURE__ */ t(st, {}) }),
1426
- /* @__PURE__ */ t("button", { className: k.dotsButton, onClick: L, children: /* @__PURE__ */ t(K, { size: 16 }) }),
1427
- /* @__PURE__ */ t(
1428
- Q,
1634
+ [r, p, x, L]
1635
+ ), F = (k) => {
1636
+ k.stopPropagation(), _(a, k);
1637
+ }, y = () => {
1638
+ u((k) => !k), h?.();
1639
+ }, P = T.container + (E ? "" : " " + T.collapsed), S = T.expandable + (E ? "" : " " + T.expandableCollapsed);
1640
+ return /* @__PURE__ */ v("div", { className: P, children: [
1641
+ /* @__PURE__ */ v("div", { className: T.loopNodeWrapper, children: [
1642
+ /* @__PURE__ */ v("div", { className: T.loopBox, children: [
1643
+ /* @__PURE__ */ o("div", { onClick: y, className: T.loopIconWrapper, children: /* @__PURE__ */ o(te, {}) }),
1644
+ e && /* @__PURE__ */ o("button", { className: T.dotsButton, onClick: F, children: /* @__PURE__ */ o(ut, { size: 16 }) }),
1645
+ /* @__PURE__ */ o(
1646
+ ft,
1429
1647
  {
1430
- model: I,
1648
+ model: O,
1431
1649
  popup: !0,
1432
- ref: w,
1433
- onHide: () => _(w)
1650
+ ref: a,
1651
+ onHide: () => I(a)
1434
1652
  }
1435
1653
  )
1436
1654
  ] }),
1437
- /* @__PURE__ */ t("div", { className: k.label, children: "Loop" }),
1438
- f != null && /* @__PURE__ */ C("div", { className: k.limit, children: [
1439
- f,
1655
+ /* @__PURE__ */ o("div", { className: T.label, children: "Loop" }),
1656
+ C != null && /* @__PURE__ */ v("div", { className: T.limit, children: [
1657
+ C,
1440
1658
  "x"
1441
1659
  ] })
1442
1660
  ] }),
1443
- /* @__PURE__ */ C("div", { className: M, children: [
1444
- /* @__PURE__ */ C("div", { className: k.connector, children: [
1445
- /* @__PURE__ */ t("div", { className: k.line, style: { width: "12px" } }),
1446
- /* @__PURE__ */ t("div", { className: k.circleDot, children: /* @__PURE__ */ t("div", { className: k.innerDot }) }),
1447
- /* @__PURE__ */ t("div", { className: k.line })
1661
+ /* @__PURE__ */ v("div", { className: S, children: [
1662
+ /* @__PURE__ */ v("div", { className: T.connector, children: [
1663
+ /* @__PURE__ */ o("div", { className: T.line }),
1664
+ /* @__PURE__ */ o("div", { className: T.circleDot, children: /* @__PURE__ */ o("div", { className: T.innerDot }) }),
1665
+ /* @__PURE__ */ o("div", { className: T.line })
1448
1666
  ] }),
1449
- /* @__PURE__ */ t("div", { className: k.stepsWrapper, children: /* @__PURE__ */ t(
1450
- l1,
1667
+ /* @__PURE__ */ o(
1668
+ vt,
1451
1669
  {
1452
- steps: x,
1453
- pathId: l,
1454
- onAddStep: n ?? v,
1455
- onAddTrigger: o,
1456
- onAddCondition: i ?? v,
1457
- onAddLoop: r,
1458
- onDeleteStep: c,
1459
- onUpdateFilter: a ?? v,
1460
- onSelectStep: d ?? v,
1670
+ expression: b ?? "",
1671
+ status: t.status,
1672
+ style: { marginTop: "25.5px" }
1673
+ }
1674
+ ),
1675
+ /* @__PURE__ */ o("div", { className: T.stepsWrapper, children: /* @__PURE__ */ o(
1676
+ St,
1677
+ {
1678
+ steps: g,
1679
+ pathId: x,
1680
+ iteratorEnabled: e,
1681
+ conditionsEnabled: n,
1682
+ onAddStep: i ?? f,
1683
+ onAddTrigger: s,
1684
+ onAddCondition: l ?? f,
1685
+ onAddLoop: d,
1686
+ onDeleteStep: p,
1687
+ onUpdateFilter: c ?? f,
1688
+ onSelectStep: r ?? f,
1689
+ onCheckScenario: m ?? f,
1461
1690
  isDescendent: !0
1462
1691
  }
1463
1692
  ) })
1464
1693
  ] })
1465
1694
  ] });
1466
- }, It = "_container_kielx_1", bt = {
1467
- container: It
1468
- }, Et = ({
1469
- process: e,
1470
- addMultipleTriggers: n,
1471
- onAddStep: o,
1472
- onAddTrigger: i,
1473
- onAddCondition: r,
1474
- onAddLoop: c,
1475
- onResize: a,
1476
- onDeleteTrigger: d,
1477
- onDeleteStep: s,
1478
- onUpdateFilter: l,
1479
- onSelectStep: f
1695
+ }, gn = "_container_kielx_1", ee = {
1696
+ container: gn
1697
+ }, Tn = ({
1698
+ process: t,
1699
+ iteratorEnabled: e = !0,
1700
+ conditionsEnabled: n = !0,
1701
+ addMultipleTriggers: i,
1702
+ onAddStep: s,
1703
+ onAddTrigger: l,
1704
+ onAddCondition: d,
1705
+ onAddLoop: p,
1706
+ onResize: c,
1707
+ onDeleteTrigger: r,
1708
+ onDeleteStep: h,
1709
+ onUpdateFilter: m,
1710
+ onSelectStep: x,
1711
+ onCheckScenario: C
1480
1712
  }) => {
1481
- const [b, x] = E(0);
1482
- return /* @__PURE__ */ C("div", { className: bt.container, children: [
1483
- /* @__PURE__ */ t(
1484
- Ne,
1713
+ const [N, b] = M(0);
1714
+ return /* @__PURE__ */ v("div", { className: ee.container, children: [
1715
+ /* @__PURE__ */ o(
1716
+ qt,
1485
1717
  {
1486
- steps: e.triggers,
1487
- onAddTrigger: n,
1488
- onUpdateFilter: l,
1489
- onDeleteTrigger: d,
1490
- onSelectStep: f,
1491
- onCenterYUpdate: x
1718
+ steps: t.triggers,
1719
+ onAddTrigger: i,
1720
+ onUpdateFilter: m,
1721
+ onDeleteTrigger: r,
1722
+ onSelectStep: x,
1723
+ onCenterYUpdate: b
1492
1724
  }
1493
1725
  ),
1494
- e.steps.length > 0 ? /* @__PURE__ */ t(
1495
- l1,
1726
+ t.steps.length > 0 ? /* @__PURE__ */ o(
1727
+ St,
1496
1728
  {
1497
- steps: e.steps,
1498
- centerY: b,
1499
- onAddStep: o,
1500
- onAddTrigger: i,
1501
- onAddCondition: r,
1502
- onAddLoop: c,
1503
- onResize: a,
1504
- onDeleteStep: s,
1505
- onUpdateFilter: l,
1506
- onSelectStep: f,
1729
+ steps: t.steps,
1730
+ centerY: N,
1731
+ onAddStep: s,
1732
+ onAddTrigger: l,
1733
+ onAddCondition: d,
1734
+ onAddLoop: p,
1735
+ onResize: c,
1736
+ onDeleteStep: h,
1737
+ onUpdateFilter: m,
1738
+ onSelectStep: x,
1739
+ iteratorEnabled: e,
1740
+ conditionsEnabled: n,
1507
1741
  isDescendent: !1,
1508
- pathId: void 0
1742
+ pathId: void 0,
1743
+ onCheckScenario: C
1509
1744
  }
1510
- ) : /* @__PURE__ */ t(
1511
- Z,
1745
+ ) : /* @__PURE__ */ o(
1746
+ tt,
1512
1747
  {
1513
- onAddStep: () => o(),
1514
- onAddTrigger: i,
1515
- onAddCondition: r,
1516
- onAddLoop: c,
1748
+ onAddStep: () => s(),
1749
+ onAddTrigger: l,
1750
+ onAddCondition: d,
1751
+ onAddLoop: p,
1752
+ iteratorEnabled: e,
1753
+ conditionsEnabled: n,
1517
1754
  index: 0,
1518
1755
  style: {
1519
- height: o1,
1520
- marginTop: Math.max(0, b - o1 / 2)
1756
+ height: yt,
1757
+ marginTop: Math.max(0, N - yt / 2)
1521
1758
  }
1522
1759
  }
1523
1760
  )
1524
1761
  ] });
1762
+ }, Tt = (t, e, n) => {
1763
+ if (e === n) return !1;
1764
+ const i = (r) => {
1765
+ if ("paths" in r && r.paths && r.paths.length > 0) {
1766
+ const h = r.paths[r.paths.length - 1];
1767
+ if (h.steps && h.steps.length > 0) {
1768
+ const m = h.steps[h.steps.length - 1];
1769
+ return i(m);
1770
+ }
1771
+ return h.localId;
1772
+ }
1773
+ return "steps" in r && r.steps && r.steps.length > 0 ? i(
1774
+ r.steps[r.steps.length - 1]
1775
+ ) : r.localId;
1776
+ }, s = (r) => r.steps && r.steps.length > 0 ? i(
1777
+ r.steps[r.steps.length - 1]
1778
+ ) : r.paths && r.paths.length > 0 ? s(r.paths[r.paths.length - 1]) : r.localId, l = (r, h) => "paths" in r && r.paths && r.paths.length > 0 ? r.paths.some((x) => s(x) === h) : i(r) === h, d = (r) => {
1779
+ for (let h = 0; h < r.length - 1; h++) {
1780
+ const m = r[h], x = r[h + 1];
1781
+ if (m.localId === e && x.localId === n || l(m, e) && x.localId === n)
1782
+ return !0;
1783
+ }
1784
+ for (const h of r) {
1785
+ if (h.localId === e && h.steps?.[0]?.localId === n)
1786
+ return !0;
1787
+ if ("paths" in h && h.paths) {
1788
+ for (const m of h.paths)
1789
+ if (p(m)) return !0;
1790
+ }
1791
+ if ("steps" in h && h.steps && d(h.steps))
1792
+ return !0;
1793
+ }
1794
+ return !1;
1795
+ }, p = (r) => {
1796
+ if (r.localId === e && r.steps?.[0]?.localId === n || r.steps && r.steps.length > 0 && d(r.steps))
1797
+ return !0;
1798
+ if (r.paths) {
1799
+ for (const h of r.paths)
1800
+ if (p(h)) return !0;
1801
+ }
1802
+ return !1;
1803
+ }, c = t.steps;
1804
+ return c?.[0] && c[0].localId === e && c[0].steps?.[0]?.localId === n ? !0 : d(c);
1805
+ }, ne = (t, e) => {
1806
+ if (t.localId === e) return t.status;
1807
+ if (t.steps)
1808
+ for (const n of t.steps) {
1809
+ const i = Pt(n, e);
1810
+ if (i !== void 0) return i;
1811
+ }
1812
+ if (t.paths)
1813
+ for (const n of t.paths) {
1814
+ const i = ne(n, e);
1815
+ if (i !== void 0) return i;
1816
+ }
1817
+ }, Pt = (t, e) => {
1818
+ if (t.localId === e) return t.status;
1819
+ if (t.paths)
1820
+ for (const n of t.paths) {
1821
+ const i = ne(n, e);
1822
+ if (i !== void 0) return i;
1823
+ }
1824
+ if (t.steps)
1825
+ for (const n of t.steps) {
1826
+ const i = Pt(n, e);
1827
+ if (i !== void 0) return i;
1828
+ }
1829
+ }, q = (t, e) => {
1830
+ for (const n of t.triggers)
1831
+ if (n.localId === e) return n.status;
1832
+ for (const n of t.steps) {
1833
+ const i = Pt(n, e);
1834
+ if (i !== void 0) return i;
1835
+ }
1836
+ }, mn = (t, e) => {
1837
+ const n = (s) => {
1838
+ if (s.localId === e) return !0;
1839
+ if (s.steps) {
1840
+ for (const l of s.steps)
1841
+ if (i(l)) return !0;
1842
+ }
1843
+ if (s.paths) {
1844
+ for (const l of s.paths)
1845
+ if (n(l)) return !0;
1846
+ }
1847
+ return !1;
1848
+ }, i = (s) => {
1849
+ if (s.paths) {
1850
+ for (const l of s.paths)
1851
+ if (n(l)) return !0;
1852
+ }
1853
+ if (s.steps) {
1854
+ for (const l of s.steps)
1855
+ if (i(l)) return !0;
1856
+ }
1857
+ return !1;
1858
+ };
1859
+ for (const s of t.triggers)
1860
+ if (i(s)) return !0;
1861
+ for (const s of t.steps)
1862
+ if (i(s)) return !0;
1863
+ return !1;
1864
+ }, kt = (t, e, n) => {
1865
+ if (e === n) return !1;
1866
+ const i = q(t, e), s = q(t, n);
1867
+ return i !== "finished" || s !== "finished" ? !1 : Tt(t, e, n);
1868
+ }, Et = (t, e, n) => e === n || !mn(t, e) || q(t, n) !== "finished" ? !1 : Tt(t, e, n), et = ({
1869
+ lineColor: t,
1870
+ style: e,
1871
+ fromLocalId: n,
1872
+ toLocalId: i
1873
+ }) => {
1874
+ const l = mt(t) ? `${j.stepLinkLine} ${j.dashedLine}` : j.stepLinkLine;
1875
+ return /* @__PURE__ */ v(
1876
+ "div",
1877
+ {
1878
+ className: `${j.stepLinkContainer} ${j.readOnly}`,
1879
+ style: { ...e, "--step-link-color": t },
1880
+ "aria-hidden": !0,
1881
+ "data-connector-from": void 0,
1882
+ "data-connector-to": void 0,
1883
+ children: [
1884
+ /* @__PURE__ */ o("div", { className: l }),
1885
+ /* @__PURE__ */ o(
1886
+ "div",
1887
+ {
1888
+ className: `${j.stepLinkIcon} ${j.debuggerIconCollapsed}`,
1889
+ "aria-hidden": !0
1890
+ }
1891
+ ),
1892
+ /* @__PURE__ */ o("div", { className: l })
1893
+ ]
1894
+ }
1895
+ );
1896
+ }, Rt = (t) => t.steps && t.steps.length > 0 ? st(t.steps[t.steps.length - 1]) : t.paths && t.paths.length > 0 ? Rt(t.paths[t.paths.length - 1]) : t.localId, st = (t) => "paths" in t && t.paths && t.paths.length > 0 ? Rt(t.paths[t.paths.length - 1]) : "steps" in t && t.steps && t.steps.length > 0 ? st(t.steps[t.steps.length - 1]) : t.localId, Nt = (t) => "steps" in t && t.steps && t.steps.length > 0 ? Nt(t.steps[t.steps.length - 1]) : "paths" in t && t.paths && t.paths.length > 0 ? Nt(t.paths[t.paths.length - 1]) : t.localId, oe = (t, e, n, i) => {
1897
+ const s = e.statusLine(void 0);
1898
+ if (i == null) return s;
1899
+ const l = q(t, i);
1900
+ return l == null ? s : l !== "finished" ? e.statusLine(l) : n == null ? s : Et(
1901
+ t,
1902
+ n,
1903
+ i
1904
+ ) || kt(t, n, i) ? e.statusLine("finished") : s;
1905
+ }, ie = Vt(
1906
+ null
1907
+ ), Cn = ie.Provider, Mt = () => {
1908
+ const t = zt(ie);
1909
+ if (!t)
1910
+ throw new Error(
1911
+ "useProcessDebuggerContext must be used within ProcessDebuggerProvider"
1912
+ );
1913
+ return t;
1914
+ }, Wt = 34.5, vn = 33, se = (t) => {
1915
+ const {
1916
+ items: e,
1917
+ pathId: n,
1918
+ previousLocalId: i,
1919
+ nextLocalId: s,
1920
+ onSelectStep: l,
1921
+ onResize: d,
1922
+ onCheckScenario: p
1923
+ } = t, { process: c, lineColors: r } = Mt(), h = () => {
1924
+ }, m = oe(
1925
+ c,
1926
+ r,
1927
+ i,
1928
+ s
1929
+ ), x = B(null), C = B([]), [N, b] = M([]);
1930
+ nt(() => {
1931
+ const a = () => {
1932
+ const L = x.current;
1933
+ if (!L || e.length === 0) {
1934
+ b([]);
1935
+ return;
1936
+ }
1937
+ const O = [], F = Number.parseFloat(getComputedStyle(L).zoom || "1");
1938
+ for (let y = 0; y < e.length; y++) {
1939
+ const P = C.current[y];
1940
+ if (P)
1941
+ if (P.offsetParent == null) {
1942
+ const S = L.getBoundingClientRect(), k = P.getBoundingClientRect();
1943
+ O.push((k.top - S.top) / F + Wt);
1944
+ } else
1945
+ O.push(P.offsetTop - vn + Wt);
1946
+ }
1947
+ O.length === e.length && b(O);
1948
+ };
1949
+ a();
1950
+ const _ = new ResizeObserver(a), I = x.current;
1951
+ return I && _.observe(I), window.addEventListener("resize", a), () => {
1952
+ _.disconnect(), window.removeEventListener("resize", a);
1953
+ };
1954
+ }, [e]);
1955
+ const g = $(() => {
1956
+ if (e.length)
1957
+ return Xt(
1958
+ e.map((a) => pt(a))
1959
+ );
1960
+ }, [e]), f = m, E = $(() => N.length !== e.length || e.length <= 1 ? null : e.map((a, _) => _).filter((a) => a > 0).map((a) => {
1961
+ const _ = N[a];
1962
+ if (_ === void 0) return null;
1963
+ const I = pt(e[a]), L = r.statusLine(I);
1964
+ return /* @__PURE__ */ o(
1965
+ wt,
1966
+ {
1967
+ width: 100,
1968
+ height: _,
1969
+ strokeColor: L,
1970
+ fromLocalId: e[a - 1]?.localId,
1971
+ toLocalId: e[a]?.localId
1972
+ },
1973
+ a
1974
+ );
1975
+ }), [e, N, r]), u = $(() => {
1976
+ if (N.length !== e.length || e.length <= 1) return null;
1977
+ const a = r.statusLine(void 0);
1978
+ return e.map((_, I) => I).filter((_) => _ > 0).map((_) => {
1979
+ const I = N[_];
1980
+ if (I === void 0) return null;
1981
+ let L = a;
1982
+ if (s != null && q(c, s) === "finished") {
1983
+ const F = Nt(
1984
+ e[_]
1985
+ );
1986
+ kt(
1987
+ c,
1988
+ F,
1989
+ s
1990
+ ) && (L = r.statusLine("finished"));
1991
+ }
1992
+ return /* @__PURE__ */ o(
1993
+ wt,
1994
+ {
1995
+ width: 100,
1996
+ height: I,
1997
+ strokeColor: L,
1998
+ fromLocalId: i,
1999
+ toLocalId: s
2000
+ },
2001
+ _
2002
+ );
2003
+ });
2004
+ }, [
2005
+ e,
2006
+ N,
2007
+ r,
2008
+ c,
2009
+ s,
2010
+ i
2011
+ ]);
2012
+ return /* @__PURE__ */ v("div", { className: H.row, children: [
2013
+ /* @__PURE__ */ o(
2014
+ Jt,
2015
+ {
2016
+ onDelete: () => {
2017
+ },
2018
+ enabled: !1,
2019
+ debuggerMode: !0,
2020
+ status: g,
2021
+ onSelect: n != null && l ? () => l(n) : void 0
2022
+ }
2023
+ ),
2024
+ /* @__PURE__ */ v(
2025
+ "div",
2026
+ {
2027
+ ref: x,
2028
+ className: H.column,
2029
+ style: { marginTop: "33px" },
2030
+ children: [
2031
+ /* @__PURE__ */ o(
2032
+ "div",
2033
+ {
2034
+ style: {
2035
+ position: "absolute",
2036
+ top: 0,
2037
+ left: 0,
2038
+ width: "100px",
2039
+ height: "2px",
2040
+ borderTop: X(f)
2041
+ }
2042
+ }
2043
+ ),
2044
+ E
2045
+ ]
2046
+ }
2047
+ ),
2048
+ /* @__PURE__ */ o("div", { className: H.column, children: e.map((a, _) => {
2049
+ let I;
2050
+ if (a.paths)
2051
+ I = /* @__PURE__ */ o(
2052
+ se,
2053
+ {
2054
+ items: a.paths,
2055
+ pathId: n,
2056
+ previousLocalId: a.localId,
2057
+ nextLocalId: s,
2058
+ onSelectStep: l,
2059
+ onResize: d,
2060
+ onCheckScenario: p
2061
+ },
2062
+ a.localId
2063
+ );
2064
+ else if (a.steps) {
2065
+ const L = a, O = L.status === "finished" || s != null && Et(
2066
+ c,
2067
+ L.localId,
2068
+ s
2069
+ ) ? "finished" : void 0;
2070
+ I = /* @__PURE__ */ v(
2071
+ "div",
2072
+ {
2073
+ className: H.stepsContainer,
2074
+ "data-local-id": void 0,
2075
+ children: [
2076
+ /* @__PURE__ */ o(
2077
+ vt,
2078
+ {
2079
+ expression: L.condition,
2080
+ status: O,
2081
+ debuggerMode: !0,
2082
+ style: { marginTop: "25px" }
2083
+ }
2084
+ ),
2085
+ /* @__PURE__ */ o(
2086
+ Ot,
2087
+ {
2088
+ steps: a.steps,
2089
+ pathId: a.localId,
2090
+ previousLocalId: L.localId,
2091
+ nextLocalId: s,
2092
+ onSelectStep: l ?? h,
2093
+ onResize: d,
2094
+ onCheckScenario: p
2095
+ },
2096
+ a.localId
2097
+ )
2098
+ ]
2099
+ }
2100
+ );
2101
+ } else
2102
+ I = /* @__PURE__ */ o(
2103
+ rt,
2104
+ {
2105
+ localId: a.localId,
2106
+ title: "title" in a ? a.title : "",
2107
+ idx: 1,
2108
+ icon: "icon" in a ? a.icon : void 0,
2109
+ status: "status" in a ? a.status : void 0,
2110
+ debuggerMode: !0,
2111
+ onSelectStep: l,
2112
+ onUpdateFilter: h,
2113
+ onCheckScenario: p
2114
+ },
2115
+ a.localId
2116
+ );
2117
+ return /* @__PURE__ */ o(
2118
+ "div",
2119
+ {
2120
+ ref: (L) => {
2121
+ C.current[_] = L;
2122
+ },
2123
+ style: { width: "100%" },
2124
+ "data-local-id": void 0,
2125
+ children: I
2126
+ },
2127
+ a.localId
2128
+ );
2129
+ }) }),
2130
+ /* @__PURE__ */ v("div", { className: H.column, style: { marginTop: "33px" }, children: [
2131
+ /* @__PURE__ */ o(
2132
+ "div",
2133
+ {
2134
+ style: {
2135
+ position: "absolute",
2136
+ top: 0.5,
2137
+ left: 0,
2138
+ flex: 1,
2139
+ width: "100%",
2140
+ height: "2px",
2141
+ borderTop: X(m)
2142
+ }
2143
+ }
2144
+ ),
2145
+ u
2146
+ ] }),
2147
+ /* @__PURE__ */ o(
2148
+ et,
2149
+ {
2150
+ lineColor: m,
2151
+ fromLocalId: i,
2152
+ toLocalId: s,
2153
+ style: {
2154
+ marginTop: "34px",
2155
+ height: 0
2156
+ }
2157
+ }
2158
+ ),
2159
+ /* @__PURE__ */ o(
2160
+ "div",
2161
+ {
2162
+ style: {
2163
+ flex: 1,
2164
+ width: "100%",
2165
+ height: "2px",
2166
+ borderTop: X(m),
2167
+ marginTop: "34px"
2168
+ }
2169
+ }
2170
+ )
2171
+ ] });
2172
+ }, _n = ({
2173
+ value: t,
2174
+ previousLocalId: e,
2175
+ nextLocalId: n,
2176
+ onSelectStep: i,
2177
+ onResize: s,
2178
+ onCheckScenario: l
2179
+ }) => {
2180
+ const { process: d, lineColors: p } = Mt(), { localId: c, limit: r, steps: h, condition: m } = t, x = h ?? [], C = () => {
2181
+ }, [N, b] = M(!1), g = () => {
2182
+ b((L) => !L), s?.();
2183
+ }, f = T.container + (N ? "" : " " + T.collapsed), E = T.expandable + (N ? "" : " " + T.expandableCollapsed), u = x[0]?.localId, a = u != null ? q(d, u) : void 0, I = e != null && (Et(
2184
+ d,
2185
+ e,
2186
+ c
2187
+ ) || q(d, e) === "finished" && Tt(d, e, c) || kt(d, e, c)) && a === "finished" ? p.statusLine("finished") : p.statusLine(void 0);
2188
+ return /* @__PURE__ */ v(
2189
+ "div",
2190
+ {
2191
+ className: f,
2192
+ "data-local-id": void 0,
2193
+ children: [
2194
+ /* @__PURE__ */ v("div", { className: T.loopNodeWrapper, children: [
2195
+ /* @__PURE__ */ o("div", { className: T.loopBox, children: /* @__PURE__ */ o("div", { onClick: g, className: T.loopIconWrapper, children: /* @__PURE__ */ o(te, {}) }) }),
2196
+ /* @__PURE__ */ o("div", { className: T.label, children: "Loop" }),
2197
+ r != null && /* @__PURE__ */ v("div", { className: T.limit, children: [
2198
+ r,
2199
+ "x"
2200
+ ] })
2201
+ ] }),
2202
+ /* @__PURE__ */ v("div", { className: E, children: [
2203
+ /* @__PURE__ */ v(
2204
+ "div",
2205
+ {
2206
+ className: T.connector,
2207
+ style: {
2208
+ "--iterator-connector-color": I,
2209
+ ...mt(I) && {
2210
+ "--iterator-connector-width": "3px",
2211
+ "--iterator-connector-style": "dotted"
2212
+ }
2213
+ },
2214
+ children: [
2215
+ /* @__PURE__ */ o("div", { className: T.line }),
2216
+ /* @__PURE__ */ o("div", { className: T.circleDot, children: /* @__PURE__ */ o("div", { className: T.innerDot }) }),
2217
+ /* @__PURE__ */ o("div", { className: T.line })
2218
+ ]
2219
+ }
2220
+ ),
2221
+ /* @__PURE__ */ o(
2222
+ vt,
2223
+ {
2224
+ expression: m ?? "",
2225
+ status: t.status,
2226
+ debuggerMode: !0,
2227
+ style: { marginTop: "25.5px" }
2228
+ }
2229
+ ),
2230
+ /* @__PURE__ */ o("div", { className: T.stepsWrapper, children: /* @__PURE__ */ o(
2231
+ Ot,
2232
+ {
2233
+ steps: x,
2234
+ pathId: c,
2235
+ previousLocalId: c,
2236
+ nextLocalId: n,
2237
+ onSelectStep: i ?? (() => {
2238
+ }),
2239
+ onCheckScenario: l ?? C,
2240
+ isDescendent: !0
2241
+ }
2242
+ ) })
2243
+ ] })
2244
+ ]
2245
+ }
2246
+ );
2247
+ }, bt = 68, xn = (t) => {
2248
+ if (!t || t.length === 0) return;
2249
+ const e = Xt(
2250
+ t.map((i) => pt(i))
2251
+ ), n = t.find((i) => pt(i) === e) ?? t[t.length - 1];
2252
+ return Rt(n);
2253
+ }, Ot = ({
2254
+ pathId: t,
2255
+ steps: e,
2256
+ centerY: n,
2257
+ className: i,
2258
+ previousLocalId: s,
2259
+ nextLocalId: l,
2260
+ onSelectStep: d,
2261
+ onResize: p,
2262
+ onCheckScenario: c,
2263
+ isDescendent: r = !0
2264
+ }) => {
2265
+ const { process: h, lineColors: m } = Mt(), x = () => {
2266
+ }, C = n === void 0 ? void 0 : { marginTop: Math.max(0, n - bt / 2) }, N = (g, f) => oe(h, m, g, f), b = (g) => g === e.length - 1 ? l : e[g + 1]?.localId;
2267
+ if (e.length === 0) {
2268
+ const g = N(s, l);
2269
+ return /* @__PURE__ */ v(
2270
+ "div",
2271
+ {
2272
+ "data-path-id": t ?? "",
2273
+ style: {
2274
+ width: "100%",
2275
+ marginTop: "20px",
2276
+ display: "flex",
2277
+ flexDirection: "row",
2278
+ flex: 1,
2279
+ minWidth: 0,
2280
+ ...C
2281
+ },
2282
+ children: [
2283
+ /* @__PURE__ */ o(
2284
+ "div",
2285
+ {
2286
+ style: {
2287
+ flexGrow: 1,
2288
+ flexShrink: 0,
2289
+ flexBasis: "auto",
2290
+ minWidth: 0,
2291
+ height: "2px",
2292
+ marginTop: "13.5px",
2293
+ borderTop: X(g)
2294
+ }
2295
+ }
2296
+ ),
2297
+ /* @__PURE__ */ o(
2298
+ et,
2299
+ {
2300
+ lineColor: g,
2301
+ fromLocalId: s,
2302
+ toLocalId: l,
2303
+ style: {
2304
+ height: "auto",
2305
+ marginTop: "2px"
2306
+ }
2307
+ }
2308
+ ),
2309
+ /* @__PURE__ */ o(
2310
+ "div",
2311
+ {
2312
+ style: {
2313
+ flexGrow: 1,
2314
+ flexShrink: 0,
2315
+ flexBasis: "auto",
2316
+ minWidth: 0,
2317
+ height: "2px",
2318
+ marginTop: "13.5px",
2319
+ borderTop: X(g)
2320
+ }
2321
+ }
2322
+ )
2323
+ ]
2324
+ }
2325
+ );
2326
+ }
2327
+ return /* @__PURE__ */ o(
2328
+ "div",
2329
+ {
2330
+ "data-path-id": t ?? "",
2331
+ className: ot.steps + (i ? " " + i : ""),
2332
+ style: C,
2333
+ children: /* @__PURE__ */ v(
2334
+ "div",
2335
+ {
2336
+ style: {
2337
+ display: "flex",
2338
+ flexDirection: "row",
2339
+ flex: 1,
2340
+ minWidth: 0,
2341
+ width: "100%",
2342
+ alignItems: "flex-start"
2343
+ },
2344
+ children: [
2345
+ /* @__PURE__ */ o(
2346
+ et,
2347
+ {
2348
+ lineColor: N(s, e[0]?.localId),
2349
+ fromLocalId: s,
2350
+ toLocalId: e[0]?.localId,
2351
+ style: {
2352
+ marginTop: "21.5px"
2353
+ }
2354
+ }
2355
+ ),
2356
+ e.map((g, f) => {
2357
+ const E = !!g.paths, u = "condition" in g && typeof g.condition == "string";
2358
+ let a;
2359
+ if (E && g.paths) {
2360
+ const _ = xn(g.paths);
2361
+ a = /* @__PURE__ */ o(
2362
+ se,
2363
+ {
2364
+ items: g.paths,
2365
+ pathId: g.localId,
2366
+ previousLocalId: _ ?? g.localId,
2367
+ nextLocalId: b(f),
2368
+ onSelectStep: d,
2369
+ onResize: p,
2370
+ onCheckScenario: c
2371
+ },
2372
+ g.title
2373
+ );
2374
+ } else if (u) {
2375
+ const _ = f === 0 ? s : st(e[f - 1]), I = st(g);
2376
+ a = /* @__PURE__ */ v(K, { children: [
2377
+ /* @__PURE__ */ o(
2378
+ _n,
2379
+ {
2380
+ value: g,
2381
+ previousLocalId: _,
2382
+ nextLocalId: b(f),
2383
+ onSelectStep: d,
2384
+ onResize: p,
2385
+ onCheckScenario: c
2386
+ }
2387
+ ),
2388
+ /* @__PURE__ */ o(
2389
+ et,
2390
+ {
2391
+ lineColor: N(
2392
+ I,
2393
+ b(f)
2394
+ ),
2395
+ fromLocalId: g.localId,
2396
+ toLocalId: b(f),
2397
+ style: { marginTop: "34px", height: 0 }
2398
+ }
2399
+ )
2400
+ ] });
2401
+ } else
2402
+ a = /* @__PURE__ */ v(K, { children: [
2403
+ /* @__PURE__ */ o(
2404
+ rt,
2405
+ {
2406
+ localId: g.localId,
2407
+ title: g.title,
2408
+ idx: 1,
2409
+ icon: g.icon,
2410
+ isSet: g.isSet,
2411
+ isInvalid: g.isInvalid,
2412
+ isFilter: g.isFilter,
2413
+ status: g.status,
2414
+ debuggerMode: !0,
2415
+ onSelectStep: d,
2416
+ onUpdateFilter: x,
2417
+ onCheckScenario: c
2418
+ },
2419
+ g.title
2420
+ ),
2421
+ /* @__PURE__ */ o(
2422
+ et,
2423
+ {
2424
+ lineColor: N(
2425
+ g.localId,
2426
+ b(f)
2427
+ ),
2428
+ fromLocalId: g.localId,
2429
+ toLocalId: b(f)
2430
+ }
2431
+ )
2432
+ ] });
2433
+ return /* @__PURE__ */ o(
2434
+ "div",
2435
+ {
2436
+ className: ot.stepContainer + (E || u ? " " + ot.stepContainerWithPaths : ""),
2437
+ children: a
2438
+ },
2439
+ g.localId
2440
+ );
2441
+ }),
2442
+ r && /* @__PURE__ */ o(
2443
+ "div",
2444
+ {
2445
+ style: {
2446
+ flexGrow: 1,
2447
+ minWidth: 0,
2448
+ borderTop: X(N(
2449
+ e.length > 0 ? st(
2450
+ e[e.length - 1]
2451
+ ) : void 0,
2452
+ l
2453
+ )),
2454
+ marginTop: "33.5px"
2455
+ }
2456
+ }
2457
+ )
2458
+ ]
2459
+ }
2460
+ )
2461
+ }
2462
+ );
2463
+ }, In = ({
2464
+ centerY: t,
2465
+ neutralLineColor: e
2466
+ }) => /* @__PURE__ */ v(
2467
+ "div",
2468
+ {
2469
+ style: {
2470
+ display: "flex",
2471
+ flexDirection: "row",
2472
+ flex: 1,
2473
+ minWidth: 0,
2474
+ width: "100%",
2475
+ marginTop: Math.max(0, t - bt / 2),
2476
+ height: bt,
2477
+ alignItems: "center"
2478
+ },
2479
+ children: [
2480
+ /* @__PURE__ */ o(
2481
+ "div",
2482
+ {
2483
+ style: {
2484
+ flexGrow: 1,
2485
+ minWidth: 0,
2486
+ height: "2px",
2487
+ borderTop: `2px solid ${e}`
2488
+ }
2489
+ }
2490
+ ),
2491
+ /* @__PURE__ */ o(
2492
+ et,
2493
+ {
2494
+ lineColor: e,
2495
+ style: { height: "auto" }
2496
+ }
2497
+ ),
2498
+ /* @__PURE__ */ o(
2499
+ "div",
2500
+ {
2501
+ style: {
2502
+ flexGrow: 1,
2503
+ minWidth: 0,
2504
+ height: "2px",
2505
+ borderTop: `2px solid ${e}`
2506
+ }
2507
+ }
2508
+ )
2509
+ ]
2510
+ }
2511
+ ), Pn = ({
2512
+ process: t,
2513
+ statusLineColors: e,
2514
+ neutralLineColor: n = w.NAVY,
2515
+ onResize: i,
2516
+ onSelectStep: s,
2517
+ onCheckScenario: l = () => {
2518
+ }
2519
+ }) => {
2520
+ const [d, p] = M(0), c = $(
2521
+ () => f1(e, n),
2522
+ [e, n]
2523
+ );
2524
+ return /* @__PURE__ */ o("div", { className: ee.container, children: /* @__PURE__ */ v(Cn, { value: { process: t, lineColors: c }, children: [
2525
+ /* @__PURE__ */ o(
2526
+ qt,
2527
+ {
2528
+ steps: t.triggers,
2529
+ onSelectStep: s,
2530
+ debuggerMode: !0,
2531
+ resolveCurveStrokeColor: c.statusLine,
2532
+ onCenterYUpdate: p
2533
+ }
2534
+ ),
2535
+ t.steps.length > 0 ? /* @__PURE__ */ o(
2536
+ Ot,
2537
+ {
2538
+ steps: t.steps,
2539
+ centerY: d,
2540
+ onResize: i,
2541
+ onSelectStep: s,
2542
+ onCheckScenario: l,
2543
+ isDescendent: !1,
2544
+ pathId: void 0
2545
+ }
2546
+ ) : /* @__PURE__ */ o(
2547
+ In,
2548
+ {
2549
+ centerY: d,
2550
+ neutralLineColor: c.statusLine(void 0)
2551
+ }
2552
+ )
2553
+ ] }) });
1525
2554
  };
1526
- class Nt extends Error {
1527
- constructor(n) {
1528
- super(n), this.name = "AddStepError";
2555
+ class wn extends Error {
2556
+ constructor(e) {
2557
+ super(e), this.name = "AddStepError";
1529
2558
  }
1530
2559
  }
1531
- const m1 = (e) => "condition" in e && typeof e.condition == "string", x1 = (e, n, o, i) => {
1532
- const r = i === "prepend" ? n : n + 1;
1533
- return [...e.slice(0, r), o, ...e.slice(r)];
1534
- }, c1 = (e, n, o, i) => {
1535
- for (let r = 0; r < e.length; r++) {
1536
- if (e[r].localId === n)
1537
- return x1(e, r, i, o);
1538
- const c = e[r], a = c.steps?.length && c1(c.steps, n, o, i);
1539
- if (a)
1540
- return e.map(
1541
- (s, l) => l === r ? { ...s, steps: a } : s
1542
- );
1543
- const d = c.paths?.length && w1(c.paths, n, o, i);
2560
+ const Ht = (t) => "condition" in t && typeof t.condition == "string", re = (t, e, n, i) => {
2561
+ const s = i === "prepend" ? e : e + 1;
2562
+ return [...t.slice(0, s), n, ...t.slice(s)];
2563
+ }, $t = (t, e, n, i) => {
2564
+ for (let s = 0; s < t.length; s++) {
2565
+ if (t[s].localId === e)
2566
+ return re(t, s, i, n);
2567
+ const l = t[s], d = l.steps?.length && $t(l.steps, e, n, i);
1544
2568
  if (d)
1545
- return e.map(
1546
- (s, l) => l === r ? { ...s, paths: d } : s
2569
+ return t.map(
2570
+ (c, r) => r === s ? { ...c, steps: d } : c
2571
+ );
2572
+ const p = l.paths?.length && le(l.paths, e, n, i);
2573
+ if (p)
2574
+ return t.map(
2575
+ (c, r) => r === s ? { ...c, paths: p } : c
1547
2576
  );
1548
2577
  }
1549
2578
  return null;
1550
- }, kt = (e, n, o) => {
1551
- const i = e.steps ?? [], r = n === "prepend" ? [o, ...i] : [...i, o];
1552
- return { ...e, steps: r };
1553
- }, w1 = (e, n, o, i) => {
1554
- for (let r = 0; r < e.length; r++) {
1555
- const c = e[r];
1556
- if (c.localId === n)
1557
- return m1(c) ? e.map(
1558
- (a, d) => d === r ? kt(c, o, i) : a
1559
- ) : x1(e, r, i, o);
1560
- if (m1(c)) {
1561
- const a = c.steps?.length && c1(c.steps, n, o, i);
1562
- if (a)
1563
- return e.map(
1564
- (s, l) => l === r ? { ...s, steps: a } : s
1565
- );
1566
- const d = c.paths?.length && w1(c.paths, n, o, i);
2579
+ }, yn = (t, e, n) => {
2580
+ const i = t.steps ?? [], s = e === "prepend" ? [n, ...i] : [...i, n];
2581
+ return { ...t, steps: s };
2582
+ }, le = (t, e, n, i) => {
2583
+ for (let s = 0; s < t.length; s++) {
2584
+ const l = t[s];
2585
+ if (l.localId === e)
2586
+ return Ht(l) ? t.map(
2587
+ (d, p) => p === s ? yn(l, n, i) : d
2588
+ ) : re(t, s, i, n);
2589
+ if (Ht(l)) {
2590
+ const d = l.steps?.length && $t(l.steps, e, n, i);
1567
2591
  if (d)
1568
- return e.map(
1569
- (s, l) => l === r ? { ...s, paths: d } : s
2592
+ return t.map(
2593
+ (c, r) => r === s ? { ...c, steps: d } : c
2594
+ );
2595
+ const p = l.paths?.length && le(l.paths, e, n, i);
2596
+ if (p)
2597
+ return t.map(
2598
+ (c, r) => r === s ? { ...c, paths: p } : c
1570
2599
  );
1571
2600
  }
1572
2601
  }
1573
2602
  return null;
1574
- }, $t = (e, n, o, i) => {
1575
- const r = c1(e.steps, n, o, i);
1576
- if (r)
1577
- return { ...e, steps: r };
1578
- throw new Nt(`Step or path with id "${n}" not found`);
1579
- }, y1 = (e, n) => ({
1580
- ...e,
1581
- ...e.steps != null && { steps: a1(e.steps, n) },
1582
- ...e.paths != null && {
1583
- paths: e.paths.map((o) => y1(o, n))
2603
+ }, kn = (t, e, n, i) => {
2604
+ const s = $t(t.steps, e, n, i);
2605
+ if (s)
2606
+ return { ...t, steps: s };
2607
+ throw new wn(`Step or path with id "${e}" not found`);
2608
+ }, ce = (t, e) => ({
2609
+ ...t,
2610
+ ...t.steps != null && { steps: Dt(t.steps, e) },
2611
+ ...t.paths != null && {
2612
+ paths: t.paths.map((n) => ce(n, e))
1584
2613
  }
1585
- }), a1 = (e, n) => e.filter((o) => o.localId !== n).map((o) => ({
1586
- ...o,
1587
- ...o.steps != null && { steps: a1(o.steps, n) },
1588
- ...o.paths != null && {
1589
- paths: o.paths.map((i) => y1(i, n))
2614
+ }), Dt = (t, e) => t.filter((n) => n.localId !== e).map((n) => ({
2615
+ ...n,
2616
+ ...n.steps != null && { steps: Dt(n.steps, e) },
2617
+ ...n.paths != null && {
2618
+ paths: n.paths.map((i) => ce(i, e))
1590
2619
  }
1591
- })), Tt = (e, n) => {
1592
- const o = a1(e.steps, n);
2620
+ })), En = (t, e) => {
2621
+ const n = Dt(t.steps, e);
1593
2622
  return {
1594
- ...e,
1595
- steps: o
2623
+ ...t,
2624
+ steps: n
1596
2625
  };
1597
2626
  };
1598
2627
  export {
1599
- Nt as AddStepError,
1600
- yt as Iterator,
1601
- Q as Menu,
1602
- Lt as MenuProvider,
1603
- Et as ProcessDiagram,
1604
- s1 as ProcessStep,
1605
- Ne as Trigger,
1606
- $t as addStep,
1607
- Tt as deleteStep,
1608
- r1 as useMenuProvider
2628
+ wn as AddStepError,
2629
+ fn as Iterator,
2630
+ ft as Menu,
2631
+ Sn as MenuProvider,
2632
+ Pn as ProcessDebuggerDiagram,
2633
+ Tn as ProcessDiagram,
2634
+ rt as ProcessStep,
2635
+ qt as Trigger,
2636
+ kn as addStep,
2637
+ En as deleteStep,
2638
+ Lt as useMenuProvider
1609
2639
  };
1610
2640
  //# sourceMappingURL=index.mjs.map