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