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