@emporix/process-diagram 2.0.0-beta.2 → 2.0.0-beta.4
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/components/iterator/Iterator.d.ts +1 -1
- package/dist/components/iterator/Iterator.d.ts.map +1 -1
- package/dist/components/step/Step.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +632 -622
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,266 +1,266 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { createPortal as
|
|
4
|
-
const
|
|
5
|
-
container:
|
|
6
|
-
step:
|
|
7
|
-
selected:
|
|
8
|
-
selectedInvalid:
|
|
9
|
-
isSet:
|
|
1
|
+
import { jsxs as h, Fragment as n1, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import W, { forwardRef as k1, useState as E, useRef as $, useCallback as D, useImperativeHandle as B1, useEffect as Y, createContext as P1, useMemo as j, useContext as M1, useLayoutEffect as L1 } from "react";
|
|
3
|
+
import { createPortal as E1 } from "react-dom";
|
|
4
|
+
const $1 = "_container_1vo7a_1", T1 = "_step_1vo7a_7", O1 = "_selected_1vo7a_23", H1 = "_selectedInvalid_1vo7a_29", j1 = "_isSet_1vo7a_35", S1 = "_invalid_1vo7a_39", W1 = "_filterFlag_1vo7a_45", R1 = "_title_1vo7a_73", z1 = "_icon_1vo7a_90", D1 = "_content_1vo7a_108", Z1 = "_dotsButton_1vo7a_114", N = {
|
|
5
|
+
container: $1,
|
|
6
|
+
step: T1,
|
|
7
|
+
selected: O1,
|
|
8
|
+
selectedInvalid: H1,
|
|
9
|
+
isSet: j1,
|
|
10
10
|
invalid: S1,
|
|
11
|
-
filterFlag:
|
|
12
|
-
title:
|
|
11
|
+
filterFlag: W1,
|
|
12
|
+
title: R1,
|
|
13
13
|
icon: z1,
|
|
14
|
-
content:
|
|
15
|
-
dotsButton:
|
|
14
|
+
content: D1,
|
|
15
|
+
dotsButton: Z1
|
|
16
16
|
};
|
|
17
|
-
var
|
|
17
|
+
var g1 = {
|
|
18
18
|
color: void 0,
|
|
19
19
|
size: void 0,
|
|
20
20
|
className: void 0,
|
|
21
21
|
style: void 0,
|
|
22
22
|
attr: void 0
|
|
23
|
-
}, p1 =
|
|
24
|
-
function
|
|
25
|
-
if (
|
|
26
|
-
var o =
|
|
23
|
+
}, p1 = W.createContext && /* @__PURE__ */ W.createContext(g1), V1 = ["attr", "size", "title"];
|
|
24
|
+
function F1(t, n) {
|
|
25
|
+
if (t == null) return {};
|
|
26
|
+
var o = Y1(t, n), i, r;
|
|
27
27
|
if (Object.getOwnPropertySymbols) {
|
|
28
|
-
var c = Object.getOwnPropertySymbols(
|
|
28
|
+
var c = Object.getOwnPropertySymbols(t);
|
|
29
29
|
for (r = 0; r < c.length; r++)
|
|
30
|
-
i = c[r], !(n.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(
|
|
30
|
+
i = c[r], !(n.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(t, i) && (o[i] = t[i]);
|
|
31
31
|
}
|
|
32
32
|
return o;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
if (
|
|
34
|
+
function Y1(t, n) {
|
|
35
|
+
if (t == null) return {};
|
|
36
36
|
var o = {};
|
|
37
|
-
for (var i in
|
|
38
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
37
|
+
for (var i in t)
|
|
38
|
+
if (Object.prototype.hasOwnProperty.call(t, i)) {
|
|
39
39
|
if (n.indexOf(i) >= 0) continue;
|
|
40
|
-
o[i] =
|
|
40
|
+
o[i] = t[i];
|
|
41
41
|
}
|
|
42
42
|
return o;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
return
|
|
44
|
+
function G() {
|
|
45
|
+
return G = Object.assign ? Object.assign.bind() : function(t) {
|
|
46
46
|
for (var n = 1; n < arguments.length; n++) {
|
|
47
47
|
var o = arguments[n];
|
|
48
48
|
for (var i in o)
|
|
49
|
-
Object.prototype.hasOwnProperty.call(o, i) && (
|
|
49
|
+
Object.prototype.hasOwnProperty.call(o, i) && (t[i] = o[i]);
|
|
50
50
|
}
|
|
51
|
-
return
|
|
52
|
-
},
|
|
51
|
+
return t;
|
|
52
|
+
}, G.apply(this, arguments);
|
|
53
53
|
}
|
|
54
|
-
function u1(
|
|
55
|
-
var o = Object.keys(
|
|
54
|
+
function u1(t, n) {
|
|
55
|
+
var o = Object.keys(t);
|
|
56
56
|
if (Object.getOwnPropertySymbols) {
|
|
57
|
-
var i = Object.getOwnPropertySymbols(
|
|
57
|
+
var i = Object.getOwnPropertySymbols(t);
|
|
58
58
|
n && (i = i.filter(function(r) {
|
|
59
|
-
return Object.getOwnPropertyDescriptor(
|
|
59
|
+
return Object.getOwnPropertyDescriptor(t, r).enumerable;
|
|
60
60
|
})), o.push.apply(o, i);
|
|
61
61
|
}
|
|
62
62
|
return o;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function K(t) {
|
|
65
65
|
for (var n = 1; n < arguments.length; n++) {
|
|
66
66
|
var o = arguments[n] != null ? arguments[n] : {};
|
|
67
67
|
n % 2 ? u1(Object(o), !0).forEach(function(i) {
|
|
68
|
-
|
|
69
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
70
|
-
Object.defineProperty(
|
|
68
|
+
A1(t, i, o[i]);
|
|
69
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) : u1(Object(o)).forEach(function(i) {
|
|
70
|
+
Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(o, i));
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
return
|
|
73
|
+
return t;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return n =
|
|
75
|
+
function A1(t, n, o) {
|
|
76
|
+
return n = X1(n), n in t ? Object.defineProperty(t, n, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = o, t;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
var n =
|
|
78
|
+
function X1(t) {
|
|
79
|
+
var n = G1(t, "string");
|
|
80
80
|
return typeof n == "symbol" ? n : n + "";
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
if (typeof
|
|
84
|
-
var o =
|
|
82
|
+
function G1(t, n) {
|
|
83
|
+
if (typeof t != "object" || !t) return t;
|
|
84
|
+
var o = t[Symbol.toPrimitive];
|
|
85
85
|
if (o !== void 0) {
|
|
86
|
-
var i = o.call(
|
|
86
|
+
var i = o.call(t, n);
|
|
87
87
|
if (typeof i != "object") return i;
|
|
88
88
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
89
89
|
}
|
|
90
|
-
return (n === "string" ? String : Number)(
|
|
90
|
+
return (n === "string" ? String : Number)(t);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
return
|
|
92
|
+
function f1(t) {
|
|
93
|
+
return t && t.map((n, o) => /* @__PURE__ */ W.createElement(n.tag, K({
|
|
94
94
|
key: o
|
|
95
|
-
}, n.attr),
|
|
95
|
+
}, n.attr), f1(n.child)));
|
|
96
96
|
}
|
|
97
|
-
function V(
|
|
98
|
-
return (n) => /* @__PURE__ */
|
|
99
|
-
attr:
|
|
100
|
-
}, n),
|
|
97
|
+
function V(t) {
|
|
98
|
+
return (n) => /* @__PURE__ */ W.createElement(K1, G({
|
|
99
|
+
attr: K({}, t.attr)
|
|
100
|
+
}, n), f1(t.child));
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function K1(t) {
|
|
103
103
|
var n = (o) => {
|
|
104
104
|
var {
|
|
105
105
|
attr: i,
|
|
106
106
|
size: r,
|
|
107
107
|
title: c
|
|
108
|
-
} =
|
|
109
|
-
return o.className && (s = o.className),
|
|
108
|
+
} = t, a = F1(t, V1), d = r || o.size || "1em", s;
|
|
109
|
+
return o.className && (s = o.className), t.className && (s = (s ? s + " " : "") + t.className), /* @__PURE__ */ W.createElement("svg", G({
|
|
110
110
|
stroke: "currentColor",
|
|
111
111
|
fill: "currentColor",
|
|
112
112
|
strokeWidth: "0"
|
|
113
113
|
}, o.attr, i, a, {
|
|
114
114
|
className: s,
|
|
115
|
-
style:
|
|
116
|
-
color:
|
|
117
|
-
}, o.style),
|
|
115
|
+
style: K(K({
|
|
116
|
+
color: t.color || o.color
|
|
117
|
+
}, o.style), t.style),
|
|
118
118
|
height: d,
|
|
119
119
|
width: d,
|
|
120
120
|
xmlns: "http://www.w3.org/2000/svg"
|
|
121
|
-
}), c && /* @__PURE__ */
|
|
121
|
+
}), c && /* @__PURE__ */ W.createElement("title", null, c), t.children);
|
|
122
122
|
};
|
|
123
|
-
return p1 !== void 0 ? /* @__PURE__ */
|
|
123
|
+
return p1 !== void 0 ? /* @__PURE__ */ W.createElement(p1.Consumer, null, (o) => n(o)) : n(g1);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
return V({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M5.52.359A.5.5 0 0 1 6 0h4a.5.5 0 0 1 .474.658L8.694 6H12.5a.5.5 0 0 1 .395.807l-7 9a.5.5 0 0 1-.873-.454L6.823 9.5H3.5a.5.5 0 0 1-.48-.641zM6.374 1 4.168 8.5H7.5a.5.5 0 0 1 .478.647L6.78 13.04 11.478 7H8a.5.5 0 0 1-.474-.658L9.306 1z" }, child: [] }] })(
|
|
125
|
+
function q1(t) {
|
|
126
|
+
return V({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M5.52.359A.5.5 0 0 1 6 0h4a.5.5 0 0 1 .474.658L8.694 6H12.5a.5.5 0 0 1 .395.807l-7 9a.5.5 0 0 1-.873-.454L6.823 9.5H3.5a.5.5 0 0 1-.48-.641zM6.374 1 4.168 8.5H7.5a.5.5 0 0 1 .478.647L6.78 13.04 11.478 7H8a.5.5 0 0 1-.474-.658L9.306 1z" }, child: [] }] })(t);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
return V({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325" }, child: [] }] })(
|
|
128
|
+
function v1(t) {
|
|
129
|
+
return V({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325" }, child: [] }] })(t);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return V({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" }, child: [] }] })(
|
|
131
|
+
function q(t) {
|
|
132
|
+
return V({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" }, child: [] }] })(t);
|
|
133
133
|
}
|
|
134
|
-
function J(
|
|
135
|
-
return V({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z" }, child: [] }, { tag: "path", attr: { d: "M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z" }, child: [] }] })(
|
|
134
|
+
function J(t) {
|
|
135
|
+
return V({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z" }, child: [] }, { tag: "path", attr: { d: "M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z" }, child: [] }] })(t);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
138
|
-
panel:
|
|
139
|
-
panelExiting:
|
|
140
|
-
menuItem:
|
|
141
|
-
disabled:
|
|
142
|
-
menuItemIcon:
|
|
143
|
-
menuItemText:
|
|
144
|
-
overlay:
|
|
145
|
-
},
|
|
146
|
-
const o =
|
|
137
|
+
const J1 = "_panel_19663_1", Q1 = "_panelExiting_19663_13", U1 = "_menuItem_19663_37", tt = "_disabled_19663_52", et = "_menuItemIcon_19663_57", nt = "_menuItemText_19663_63", ot = "_overlay_19663_69", O = {
|
|
138
|
+
panel: J1,
|
|
139
|
+
panelExiting: Q1,
|
|
140
|
+
menuItem: U1,
|
|
141
|
+
disabled: tt,
|
|
142
|
+
menuItemIcon: et,
|
|
143
|
+
menuItemText: nt,
|
|
144
|
+
overlay: ot
|
|
145
|
+
}, it = (t) => {
|
|
146
|
+
const o = t.currentTarget ?? t.target;
|
|
147
147
|
if (o?.getBoundingClientRect) {
|
|
148
148
|
const r = o.getBoundingClientRect();
|
|
149
149
|
return { top: r.bottom + 2, left: r.left };
|
|
150
150
|
}
|
|
151
|
-
const i =
|
|
151
|
+
const i = t;
|
|
152
152
|
return {
|
|
153
153
|
top: (i.clientY ?? 0) + 2,
|
|
154
154
|
left: i.clientX ?? 0
|
|
155
155
|
};
|
|
156
|
-
}, Q =
|
|
157
|
-
const [a, d] = E(!1), [s, l] = E(!1), [
|
|
156
|
+
}, Q = k1(function({ model: n, popup: o = !0, onHide: i, onClick: r }, c) {
|
|
157
|
+
const [a, d] = E(!1), [s, l] = E(!1), [g, b] = E({ top: 0, left: 0 }), _ = $(null), x = D(() => {
|
|
158
158
|
s || l(!0);
|
|
159
|
-
}, [s]),
|
|
160
|
-
(
|
|
161
|
-
s &&
|
|
159
|
+
}, [s]), C = D(
|
|
160
|
+
(m) => {
|
|
161
|
+
s && m.animationName.includes("menuOut") && (d(!1), l(!1), i?.());
|
|
162
162
|
},
|
|
163
163
|
[s, i]
|
|
164
|
-
), p = D((
|
|
165
|
-
b(
|
|
166
|
-
}, []),
|
|
167
|
-
(
|
|
168
|
-
a ?
|
|
164
|
+
), p = D((m) => {
|
|
165
|
+
b(it(m)), l(!1), d(!0);
|
|
166
|
+
}, []), I = D(
|
|
167
|
+
(m) => {
|
|
168
|
+
a ? x() : p(m);
|
|
169
169
|
},
|
|
170
|
-
[a,
|
|
170
|
+
[a, x, p]
|
|
171
171
|
);
|
|
172
|
-
|
|
172
|
+
B1(
|
|
173
173
|
c,
|
|
174
174
|
() => ({
|
|
175
175
|
show: p,
|
|
176
|
-
hide:
|
|
177
|
-
toggle:
|
|
176
|
+
hide: x,
|
|
177
|
+
toggle: I
|
|
178
178
|
}),
|
|
179
|
-
[p,
|
|
180
|
-
),
|
|
179
|
+
[p, x, I]
|
|
180
|
+
), Y(() => {
|
|
181
181
|
if (!a) return;
|
|
182
|
-
const
|
|
183
|
-
L.key === "Escape" &&
|
|
184
|
-
},
|
|
185
|
-
const
|
|
186
|
-
|
|
182
|
+
const m = (L) => {
|
|
183
|
+
L.key === "Escape" && x();
|
|
184
|
+
}, y = (L) => {
|
|
185
|
+
const u = _.current;
|
|
186
|
+
u && !u.contains(L.target) && (L.stopPropagation(), x());
|
|
187
187
|
};
|
|
188
|
-
return document.addEventListener("keydown",
|
|
189
|
-
document.removeEventListener("keydown",
|
|
188
|
+
return document.addEventListener("keydown", m), document.addEventListener("mousedown", y), () => {
|
|
189
|
+
document.removeEventListener("keydown", m), document.removeEventListener("mousedown", y);
|
|
190
190
|
};
|
|
191
|
-
}, [a,
|
|
192
|
-
const
|
|
193
|
-
|
|
194
|
-
},
|
|
195
|
-
const L = (
|
|
196
|
-
return
|
|
191
|
+
}, [a, x]);
|
|
192
|
+
const w = (m, y) => {
|
|
193
|
+
y.stopPropagation(), m.command?.({ originalEvent: y, item: m }), x();
|
|
194
|
+
}, v = (m, y) => {
|
|
195
|
+
const L = (u) => w(m, u);
|
|
196
|
+
return m.template ? /* @__PURE__ */ e(W.Fragment, { children: m.template(m, { onClick: L }) }, y) : /* @__PURE__ */ h(
|
|
197
197
|
"button",
|
|
198
198
|
{
|
|
199
199
|
type: "button",
|
|
200
|
-
className: `${
|
|
201
|
-
onClick: (
|
|
202
|
-
|
|
200
|
+
className: `${O.menuItem} ${m.disabled && O.disabled}`,
|
|
201
|
+
onClick: (u) => {
|
|
202
|
+
m.disabled || L(u);
|
|
203
203
|
},
|
|
204
204
|
children: [
|
|
205
|
-
|
|
206
|
-
/* @__PURE__ */
|
|
205
|
+
m.icon && /* @__PURE__ */ e("span", { className: O.menuItemIcon, children: m.icon }),
|
|
206
|
+
/* @__PURE__ */ e("span", { className: O.menuItemText, children: m.label })
|
|
207
207
|
]
|
|
208
208
|
},
|
|
209
|
-
|
|
209
|
+
y
|
|
210
210
|
);
|
|
211
211
|
};
|
|
212
|
-
return !a || !o ? null :
|
|
213
|
-
/* @__PURE__ */
|
|
214
|
-
/* @__PURE__ */
|
|
212
|
+
return !a || !o ? null : E1(
|
|
213
|
+
/* @__PURE__ */ h(n1, { children: [
|
|
214
|
+
/* @__PURE__ */ e(
|
|
215
215
|
"div",
|
|
216
216
|
{
|
|
217
|
-
className:
|
|
217
|
+
className: O.overlay,
|
|
218
218
|
"aria-hidden": !0,
|
|
219
|
-
onClick: () =>
|
|
220
|
-
onMouseDown: (
|
|
219
|
+
onClick: () => x(),
|
|
220
|
+
onMouseDown: (m) => m.stopPropagation()
|
|
221
221
|
}
|
|
222
222
|
),
|
|
223
|
-
/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ e(
|
|
224
224
|
"div",
|
|
225
225
|
{
|
|
226
|
-
ref:
|
|
227
|
-
className: `${
|
|
226
|
+
ref: _,
|
|
227
|
+
className: `${O.panel} ${s ? O.panelExiting : ""}`,
|
|
228
228
|
role: "menu",
|
|
229
|
-
style: { top:
|
|
230
|
-
onAnimationEnd:
|
|
231
|
-
onClick: (
|
|
232
|
-
|
|
229
|
+
style: { top: g.top, left: g.left },
|
|
230
|
+
onAnimationEnd: C,
|
|
231
|
+
onClick: (m) => {
|
|
232
|
+
m.stopPropagation(), r?.(m);
|
|
233
233
|
},
|
|
234
|
-
children: n.map(
|
|
234
|
+
children: n.map(v)
|
|
235
235
|
}
|
|
236
236
|
)
|
|
237
237
|
] }),
|
|
238
238
|
document.body
|
|
239
239
|
);
|
|
240
|
-
}), i1 = () => (
|
|
240
|
+
}), i1 = () => (t, n) => /* @__PURE__ */ h(
|
|
241
241
|
"button",
|
|
242
242
|
{
|
|
243
|
-
className:
|
|
243
|
+
className: O.menuItem,
|
|
244
244
|
onClick: (o) => n.onClick(o),
|
|
245
245
|
children: [
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ e("span", { className: O.menuItemIcon, children: t.icon }),
|
|
247
|
+
/* @__PURE__ */ e("span", { className: O.menuItemText, children: t.label })
|
|
248
248
|
]
|
|
249
249
|
}
|
|
250
|
-
),
|
|
251
|
-
width:
|
|
250
|
+
), rt = ({
|
|
251
|
+
width: t = 16,
|
|
252
252
|
height: n = 16,
|
|
253
253
|
color: o = "#3B64A0"
|
|
254
|
-
}) => /* @__PURE__ */
|
|
254
|
+
}) => /* @__PURE__ */ h(
|
|
255
255
|
"svg",
|
|
256
256
|
{
|
|
257
|
-
width:
|
|
257
|
+
width: t,
|
|
258
258
|
height: n,
|
|
259
259
|
viewBox: "0 0 16 16",
|
|
260
260
|
fill: "none",
|
|
261
261
|
xmlns: "http://www.w3.org/2000/svg",
|
|
262
262
|
children: [
|
|
263
|
-
/* @__PURE__ */
|
|
263
|
+
/* @__PURE__ */ e(
|
|
264
264
|
"rect",
|
|
265
265
|
{
|
|
266
266
|
x: "7.99219",
|
|
@@ -272,7 +272,7 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
|
|
|
272
272
|
stroke: o
|
|
273
273
|
}
|
|
274
274
|
),
|
|
275
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ e(
|
|
276
276
|
"path",
|
|
277
277
|
{
|
|
278
278
|
d: "M10.4693 5.52599L5.52513 10.4813M5.52513 5.53151L10.4749 10.4813",
|
|
@@ -282,27 +282,27 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
|
|
|
282
282
|
)
|
|
283
283
|
]
|
|
284
284
|
}
|
|
285
|
-
),
|
|
286
|
-
width:
|
|
285
|
+
), st = ({
|
|
286
|
+
width: t = 16,
|
|
287
287
|
height: n = 16,
|
|
288
288
|
color: o = "#3B64A0"
|
|
289
|
-
}) => /* @__PURE__ */
|
|
289
|
+
}) => /* @__PURE__ */ h(
|
|
290
290
|
"svg",
|
|
291
291
|
{
|
|
292
|
-
width:
|
|
292
|
+
width: t,
|
|
293
293
|
height: n,
|
|
294
294
|
viewBox: "0 0 16 16",
|
|
295
295
|
fill: "none",
|
|
296
296
|
xmlns: "http://www.w3.org/2000/svg",
|
|
297
297
|
children: [
|
|
298
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ e(
|
|
299
299
|
"path",
|
|
300
300
|
{
|
|
301
301
|
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
302
|
fill: o
|
|
303
303
|
}
|
|
304
304
|
),
|
|
305
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ e(
|
|
306
306
|
"path",
|
|
307
307
|
{
|
|
308
308
|
fillRule: "evenodd",
|
|
@@ -314,26 +314,26 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
|
|
|
314
314
|
]
|
|
315
315
|
}
|
|
316
316
|
), h1 = ({
|
|
317
|
-
width:
|
|
317
|
+
width: t = 16,
|
|
318
318
|
height: n = 16,
|
|
319
319
|
color: o = "#3B64A0"
|
|
320
|
-
}) => /* @__PURE__ */
|
|
320
|
+
}) => /* @__PURE__ */ h(
|
|
321
321
|
"svg",
|
|
322
322
|
{
|
|
323
|
-
width:
|
|
323
|
+
width: t,
|
|
324
324
|
height: n,
|
|
325
325
|
viewBox: "0 0 16 16",
|
|
326
326
|
fill: "none",
|
|
327
327
|
xmlns: "http://www.w3.org/2000/svg",
|
|
328
328
|
children: [
|
|
329
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ e(
|
|
330
330
|
"path",
|
|
331
331
|
{
|
|
332
332
|
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
333
|
fill: o
|
|
334
334
|
}
|
|
335
335
|
),
|
|
336
|
-
/* @__PURE__ */
|
|
336
|
+
/* @__PURE__ */ e(
|
|
337
337
|
"path",
|
|
338
338
|
{
|
|
339
339
|
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",
|
|
@@ -342,16 +342,16 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
|
|
|
342
342
|
)
|
|
343
343
|
]
|
|
344
344
|
}
|
|
345
|
-
),
|
|
345
|
+
), _1 = P1(
|
|
346
346
|
void 0
|
|
347
|
-
),
|
|
347
|
+
), Le = ({ children: t }) => {
|
|
348
348
|
const [n, o] = E([]), i = D((a, d) => {
|
|
349
349
|
o((s) => (s.forEach((l) => {
|
|
350
350
|
l.current && l !== a && l.current.hide(d);
|
|
351
351
|
}), [])), a.current?.toggle(d), o([a]);
|
|
352
352
|
}, []), r = D((a) => {
|
|
353
353
|
o((d) => d.filter((s) => s !== a));
|
|
354
|
-
}, []), c =
|
|
354
|
+
}, []), c = j(
|
|
355
355
|
() => ({
|
|
356
356
|
openMenus: n,
|
|
357
357
|
openMenu: i,
|
|
@@ -359,13 +359,13 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
|
|
|
359
359
|
}),
|
|
360
360
|
[n, i, r]
|
|
361
361
|
);
|
|
362
|
-
return /* @__PURE__ */
|
|
362
|
+
return /* @__PURE__ */ e(_1.Provider, { value: c, children: t });
|
|
363
363
|
}, r1 = () => {
|
|
364
|
-
const
|
|
365
|
-
if (
|
|
364
|
+
const t = M1(_1);
|
|
365
|
+
if (t === void 0)
|
|
366
366
|
throw new Error("useMenuProvider must be used within a MenuProvider");
|
|
367
|
-
return
|
|
368
|
-
},
|
|
367
|
+
return t;
|
|
368
|
+
}, lt = ({ color: t = "#E32012" }) => /* @__PURE__ */ h(
|
|
369
369
|
"svg",
|
|
370
370
|
{
|
|
371
371
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -374,17 +374,17 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
|
|
|
374
374
|
viewBox: "0 0 16 16",
|
|
375
375
|
fill: "none",
|
|
376
376
|
children: [
|
|
377
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ e("g", { clipPath: "url(#clip0_3105_5367)", children: /* @__PURE__ */ e(
|
|
378
378
|
"path",
|
|
379
379
|
{
|
|
380
380
|
d: "M16 8C16 10.1217 15.1571 12.1566 13.6569 13.6569C12.1566 15.1571 10.1217 16 8 16C5.87827 16 3.84344 15.1571 2.34315 13.6569C0.842855 12.1566 0 10.1217 0 8C0 5.87827 0.842855 3.84344 2.34315 2.34315C3.84344 0.842855 5.87827 0 8 0C10.1217 0 12.1566 0.842855 13.6569 2.34315C15.1571 3.84344 16 5.87827 16 8ZM8 4C7.87361 4.00007 7.74863 4.02662 7.63312 4.07793C7.51761 4.12924 7.41413 4.20418 7.32934 4.29791C7.24456 4.39165 7.18035 4.5021 7.14084 4.62217C7.10134 4.74223 7.08743 4.86923 7.1 4.995L7.45 8.502C7.46176 8.63977 7.5248 8.76811 7.62664 8.86164C7.72849 8.95516 7.86173 9.00705 8 9.00705C8.13827 9.00705 8.27151 8.95516 8.37336 8.86164C8.4752 8.76811 8.53824 8.63977 8.55 8.502L8.9 4.995C8.91257 4.86923 8.89866 4.74223 8.85915 4.62217C8.81965 4.5021 8.75544 4.39165 8.67066 4.29791C8.58587 4.20418 8.48239 4.12924 8.36688 4.07793C8.25137 4.02662 8.12639 4.00007 8 4ZM8.002 10C7.73678 10 7.48243 10.1054 7.29489 10.2929C7.10736 10.4804 7.002 10.7348 7.002 11C7.002 11.2652 7.10736 11.5196 7.29489 11.7071C7.48243 11.8946 7.73678 12 8.002 12C8.26722 12 8.52157 11.8946 8.70911 11.7071C8.89664 11.5196 9.002 11.2652 9.002 11C9.002 10.7348 8.89664 10.4804 8.70911 10.2929C8.52157 10.1054 8.26722 10 8.002 10Z",
|
|
381
|
-
fill:
|
|
381
|
+
fill: t
|
|
382
382
|
}
|
|
383
383
|
) }),
|
|
384
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_3105_5367", children: /* @__PURE__ */ e("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
385
385
|
]
|
|
386
386
|
}
|
|
387
|
-
), s1 = (
|
|
387
|
+
), s1 = (t) => {
|
|
388
388
|
const {
|
|
389
389
|
isSet: n,
|
|
390
390
|
isSelected: o,
|
|
@@ -395,117 +395,118 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
|
|
|
395
395
|
contextMenuItems: d = void 0,
|
|
396
396
|
onDeleteStep: s,
|
|
397
397
|
onUpdateFilter: l,
|
|
398
|
-
onSelectStep:
|
|
398
|
+
onSelectStep: g,
|
|
399
399
|
subtitle: b,
|
|
400
|
-
isInvalid:
|
|
401
|
-
localId:
|
|
402
|
-
} =
|
|
400
|
+
isInvalid: _,
|
|
401
|
+
localId: x
|
|
402
|
+
} = t, C = $(null), { openMenu: p, closeMenu: I } = r1(), w = i1(), v = j(
|
|
403
403
|
() => [
|
|
404
404
|
{
|
|
405
405
|
label: "Add Step Filter",
|
|
406
|
-
icon: /* @__PURE__ */
|
|
407
|
-
command: (
|
|
408
|
-
|
|
406
|
+
icon: /* @__PURE__ */ e("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ e(h1, {}) }),
|
|
407
|
+
command: (f) => {
|
|
408
|
+
f?.originalEvent?.stopPropagation(), l && l(x);
|
|
409
409
|
},
|
|
410
|
-
template:
|
|
410
|
+
template: w
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
413
|
label: "Remove",
|
|
414
|
-
icon: /* @__PURE__ */
|
|
415
|
-
command: (
|
|
416
|
-
|
|
414
|
+
icon: /* @__PURE__ */ e(J, { color: "#3B64A0", size: 18 }),
|
|
415
|
+
command: (f) => {
|
|
416
|
+
f?.originalEvent?.stopPropagation(), s && s(x);
|
|
417
417
|
},
|
|
418
|
-
template:
|
|
418
|
+
template: w
|
|
419
419
|
}
|
|
420
420
|
],
|
|
421
|
-
[l, s,
|
|
422
|
-
),
|
|
423
|
-
|
|
424
|
-
}, L =
|
|
425
|
-
return /* @__PURE__ */
|
|
426
|
-
/* @__PURE__ */
|
|
427
|
-
/* @__PURE__ */
|
|
428
|
-
/* @__PURE__ */
|
|
429
|
-
/* @__PURE__ */
|
|
421
|
+
[l, s, x, w]
|
|
422
|
+
), m = j(() => d !== void 0 ? d : v, [d, v]), y = (f) => {
|
|
423
|
+
f.stopPropagation(), p(C, f);
|
|
424
|
+
}, L = j(() => o && _ ? N.step + " " + N.selectedInvalid : o ? N.step + " " + N.selected : n ? N.step + " " + N.isSet : _ ? N.step + " " + N.invalid : N.step, [n, o, _]), u = j(() => _ ? /* @__PURE__ */ e(lt, { color: "#E32012" }) : a, [a, _]);
|
|
425
|
+
return /* @__PURE__ */ e("div", { className: N.container + " " + r, children: /* @__PURE__ */ h("div", { children: [
|
|
426
|
+
/* @__PURE__ */ h("div", { className: L, onClick: () => g(x), children: [
|
|
427
|
+
/* @__PURE__ */ h("div", { className: N.content, children: [
|
|
428
|
+
/* @__PURE__ */ e("div", { className: `${N.icon} ${_ && N.invalid}`, children: u }),
|
|
429
|
+
/* @__PURE__ */ e("div", { className: N.title, children: c })
|
|
430
430
|
] }),
|
|
431
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ e(
|
|
432
432
|
"button",
|
|
433
433
|
{
|
|
434
434
|
className: N.dotsButton,
|
|
435
|
-
onClick:
|
|
435
|
+
onClick: y,
|
|
436
436
|
"aria-haspopup": !0,
|
|
437
437
|
"aria-label": "Step options",
|
|
438
|
-
children: /* @__PURE__ */
|
|
439
|
-
|
|
438
|
+
children: /* @__PURE__ */ e(
|
|
439
|
+
q,
|
|
440
440
|
{
|
|
441
441
|
className: N.dots,
|
|
442
|
-
color:
|
|
442
|
+
color: _ ? "#E32012" : "#3B64A0",
|
|
443
|
+
size: 16
|
|
443
444
|
}
|
|
444
445
|
)
|
|
445
446
|
}
|
|
446
447
|
),
|
|
447
|
-
/* @__PURE__ */
|
|
448
|
+
/* @__PURE__ */ e(
|
|
448
449
|
Q,
|
|
449
450
|
{
|
|
450
|
-
model:
|
|
451
|
+
model: m,
|
|
451
452
|
popup: !0,
|
|
452
|
-
ref:
|
|
453
|
-
onClick: (
|
|
454
|
-
onHide: () =>
|
|
453
|
+
ref: C,
|
|
454
|
+
onClick: (f) => f.stopPropagation(),
|
|
455
|
+
onHide: () => I(C)
|
|
455
456
|
}
|
|
456
457
|
)
|
|
457
458
|
] }),
|
|
458
|
-
i && /* @__PURE__ */
|
|
459
|
+
i && /* @__PURE__ */ h(
|
|
459
460
|
"div",
|
|
460
461
|
{
|
|
461
462
|
className: N.filterFlag,
|
|
462
463
|
role: "button",
|
|
463
464
|
tabIndex: 0,
|
|
464
465
|
onClick: () => {
|
|
465
|
-
l && l(
|
|
466
|
+
l && l(x);
|
|
466
467
|
},
|
|
467
|
-
onKeyDown: (
|
|
468
|
-
(
|
|
468
|
+
onKeyDown: (f) => {
|
|
469
|
+
(f.key === "Enter" || f.key === " ") && l && (f.preventDefault(), l(x));
|
|
469
470
|
},
|
|
470
471
|
children: [
|
|
471
|
-
/* @__PURE__ */
|
|
472
|
-
/* @__PURE__ */
|
|
473
|
-
/* @__PURE__ */
|
|
474
|
-
|
|
472
|
+
/* @__PURE__ */ e(h1, { color: "#3B64A0" }),
|
|
473
|
+
/* @__PURE__ */ e("span", { children: "Filter" }),
|
|
474
|
+
/* @__PURE__ */ e(
|
|
475
|
+
q,
|
|
475
476
|
{
|
|
476
477
|
className: N.dots,
|
|
477
|
-
color:
|
|
478
|
+
color: _ ? "#E32012" : "#3B64A0",
|
|
478
479
|
style: { height: "10px" }
|
|
479
480
|
}
|
|
480
481
|
)
|
|
481
482
|
]
|
|
482
483
|
}
|
|
483
484
|
),
|
|
484
|
-
b && /* @__PURE__ */
|
|
485
|
+
b && /* @__PURE__ */ e("div", { className: N.subtitle, children: b })
|
|
485
486
|
] }) });
|
|
486
|
-
},
|
|
487
|
-
/* @__PURE__ */
|
|
488
|
-
/* @__PURE__ */
|
|
489
|
-
/* @__PURE__ */
|
|
487
|
+
}, ct = () => /* @__PURE__ */ h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
|
|
488
|
+
/* @__PURE__ */ h("g", { clipPath: "url(#clip0_6551_9169)", children: [
|
|
489
|
+
/* @__PURE__ */ e("rect", { width: "24", height: "24", rx: "12", fill: "#0C971F" }),
|
|
490
|
+
/* @__PURE__ */ e("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
491
|
] }),
|
|
491
|
-
/* @__PURE__ */
|
|
492
|
-
/* @__PURE__ */
|
|
493
|
-
] }),
|
|
494
|
-
multipleTriggersIcon:
|
|
495
|
-
},
|
|
496
|
-
trigger:
|
|
497
|
-
title:
|
|
498
|
-
empty:
|
|
499
|
-
triggerContainer:
|
|
500
|
-
stepsContainer:
|
|
501
|
-
stepItem:
|
|
502
|
-
curvesSvg:
|
|
503
|
-
centralNode:
|
|
504
|
-
iconWrapper:
|
|
505
|
-
fadeIn:
|
|
506
|
-
fadeOut:
|
|
507
|
-
operationContainer:
|
|
508
|
-
},
|
|
492
|
+
/* @__PURE__ */ e("rect", { x: "0.75", y: "0.75", width: "22.5", height: "22.5", rx: "11.25", stroke: "#14BC2B", strokeWidth: "1.5" }),
|
|
493
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_6551_9169", children: /* @__PURE__ */ e("rect", { width: "24", height: "24", rx: "12", fill: "white" }) }) })
|
|
494
|
+
] }), at = "_multipleTriggersIcon_oxhdi_1", dt = {
|
|
495
|
+
multipleTriggersIcon: at
|
|
496
|
+
}, pt = () => /* @__PURE__ */ e("div", { className: dt.multipleTriggersIcon, children: /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e("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" }) }) }), ut = "_trigger_kfg1y_1", ht = "_title_kfg1y_7", Ct = "_empty_kfg1y_15", mt = "_triggerContainer_kfg1y_21", gt = "_stepsContainer_kfg1y_25", ft = "_stepItem_kfg1y_51", vt = "_curvesSvg_kfg1y_70", _t = "_centralNode_kfg1y_78", xt = "_iconWrapper_kfg1y_104", wt = "_fadeIn_kfg1y_127", yt = "_fadeOut_kfg1y_130", It = "_operationContainer_kfg1y_134", M = {
|
|
497
|
+
trigger: ut,
|
|
498
|
+
title: ht,
|
|
499
|
+
empty: Ct,
|
|
500
|
+
triggerContainer: mt,
|
|
501
|
+
stepsContainer: gt,
|
|
502
|
+
stepItem: ft,
|
|
503
|
+
curvesSvg: vt,
|
|
504
|
+
centralNode: _t,
|
|
505
|
+
iconWrapper: xt,
|
|
506
|
+
fadeIn: wt,
|
|
507
|
+
fadeOut: yt,
|
|
508
|
+
operationContainer: It
|
|
509
|
+
}, bt = () => /* @__PURE__ */ e(
|
|
509
510
|
"div",
|
|
510
511
|
{
|
|
511
512
|
style: {
|
|
@@ -515,8 +516,8 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
|
|
|
515
516
|
borderTop: "1px solid #a1bbdc"
|
|
516
517
|
}
|
|
517
518
|
}
|
|
518
|
-
),
|
|
519
|
-
steps:
|
|
519
|
+
), Nt = 80, A = 34, kt = ({
|
|
520
|
+
steps: t,
|
|
520
521
|
title: n,
|
|
521
522
|
className: o,
|
|
522
523
|
onDeleteTrigger: i,
|
|
@@ -525,103 +526,103 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
|
|
|
525
526
|
onUpdateFilter: a,
|
|
526
527
|
onCenterYUpdate: d
|
|
527
528
|
}) => {
|
|
528
|
-
const s = $(null), l = $([]), [
|
|
529
|
-
|
|
530
|
-
const
|
|
529
|
+
const s = $(null), l = $([]), [g, b] = E([]), [_, x] = E({ width: 0, height: 0 }), [C, p] = E(!1), [I, w] = E(!1), v = $(null);
|
|
530
|
+
Y(() => {
|
|
531
|
+
const u = () => {
|
|
531
532
|
if (!s.current) return;
|
|
532
|
-
const
|
|
533
|
-
if (l.current.forEach((
|
|
534
|
-
if (
|
|
535
|
-
const
|
|
536
|
-
|
|
537
|
-
localId:
|
|
538
|
-
top:
|
|
539
|
-
right:
|
|
540
|
-
centerY:
|
|
533
|
+
const f = [];
|
|
534
|
+
if (l.current.forEach((P, T) => {
|
|
535
|
+
if (P && s.current) {
|
|
536
|
+
const k = s.current.getBoundingClientRect(), H = P.getBoundingClientRect();
|
|
537
|
+
f.push({
|
|
538
|
+
localId: t[T]?.localId ?? `step-${T}`,
|
|
539
|
+
top: H.top - k.top,
|
|
540
|
+
right: H.right - k.left,
|
|
541
|
+
centerY: H.top - k.top + H.height / 2
|
|
541
542
|
});
|
|
542
543
|
}
|
|
543
|
-
}), b(
|
|
544
|
-
const
|
|
545
|
-
...
|
|
546
|
-
), U = Math.max(...
|
|
547
|
-
|
|
548
|
-
|
|
544
|
+
}), b(f), s.current && f.length > 0) {
|
|
545
|
+
const P = s.current.getBoundingClientRect(), T = Math.min(...f.map((S) => S.top)), k = l.current.filter(Boolean).map((S) => S?.offsetHeight || 68), H = Math.max(
|
|
546
|
+
...f.map((S, N1) => S.top + (k[N1] || 68))
|
|
547
|
+
), U = Math.max(...f.map((S) => S.right)) + 0, t1 = Math.max(
|
|
548
|
+
P.height,
|
|
549
|
+
H - T + 100
|
|
549
550
|
);
|
|
550
|
-
|
|
551
|
+
x({
|
|
551
552
|
width: U,
|
|
552
|
-
height:
|
|
553
|
+
height: t1
|
|
553
554
|
});
|
|
554
555
|
}
|
|
555
556
|
};
|
|
556
|
-
return
|
|
557
|
-
}, [
|
|
558
|
-
let
|
|
559
|
-
if (
|
|
560
|
-
|
|
561
|
-
const
|
|
562
|
-
|
|
557
|
+
return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
|
|
558
|
+
}, [t]), Y(() => {
|
|
559
|
+
let u = !0;
|
|
560
|
+
if (C) {
|
|
561
|
+
v.current && (clearTimeout(v.current), v.current = null);
|
|
562
|
+
const f = setTimeout(() => {
|
|
563
|
+
u && w(!0);
|
|
563
564
|
}, 0);
|
|
564
565
|
return () => {
|
|
565
|
-
|
|
566
|
+
u = !1, clearTimeout(f);
|
|
566
567
|
};
|
|
567
568
|
}
|
|
568
|
-
return
|
|
569
|
-
|
|
569
|
+
return v.current = setTimeout(() => {
|
|
570
|
+
u && w(!1);
|
|
570
571
|
}, 140), () => {
|
|
571
|
-
|
|
572
|
+
u = !1, v.current && (clearTimeout(v.current), v.current = null);
|
|
572
573
|
};
|
|
573
|
-
}, [
|
|
574
|
-
const
|
|
575
|
-
if (
|
|
576
|
-
d?.(
|
|
577
|
-
}, [
|
|
578
|
-
return /* @__PURE__ */
|
|
579
|
-
n && /* @__PURE__ */
|
|
580
|
-
/* @__PURE__ */
|
|
574
|
+
}, [C]);
|
|
575
|
+
const m = g.length > 0 ? Nt : 0, y = j(() => g.length > 1 ? g.reduce((u, f) => u + f.top + A, 0) / g.length : g.length === 1 ? g[0].top + A : 0, [g]);
|
|
576
|
+
if (Y(() => {
|
|
577
|
+
d?.(y);
|
|
578
|
+
}, [y, d]), t.length === 0)
|
|
579
|
+
return /* @__PURE__ */ h("div", { className: `${M.trigger} ${o || ""}`, children: [
|
|
580
|
+
n && /* @__PURE__ */ e("h3", { className: M.title, children: n }),
|
|
581
|
+
/* @__PURE__ */ e("div", { className: M.empty, children: "No steps" })
|
|
581
582
|
] });
|
|
582
|
-
const L = (
|
|
583
|
-
const
|
|
584
|
-
return `M ${
|
|
583
|
+
const L = (u, f, P, T) => {
|
|
584
|
+
const k = P - u, H = Math.min(k * 0.6, 60), d1 = u + H, U = f, t1 = P - H;
|
|
585
|
+
return `M ${u} ${f} C ${d1} ${U}, ${t1} ${T}, ${P} ${T}`;
|
|
585
586
|
};
|
|
586
|
-
return /* @__PURE__ */
|
|
587
|
-
n && /* @__PURE__ */
|
|
588
|
-
/* @__PURE__ */
|
|
589
|
-
/* @__PURE__ */
|
|
587
|
+
return /* @__PURE__ */ h("div", { className: `${M.trigger} ${o || ""}`, ref: s, children: [
|
|
588
|
+
n && /* @__PURE__ */ e("h3", { className: M.title, children: n }),
|
|
589
|
+
/* @__PURE__ */ h("div", { className: M.triggerContainer, children: [
|
|
590
|
+
/* @__PURE__ */ e("div", { className: M.stepsContainer, children: t.map((u, f) => /* @__PURE__ */ e(
|
|
590
591
|
"div",
|
|
591
592
|
{
|
|
592
|
-
ref: (
|
|
593
|
-
l.current[
|
|
593
|
+
ref: (P) => {
|
|
594
|
+
l.current[f] = P;
|
|
594
595
|
},
|
|
595
|
-
children: /* @__PURE__ */
|
|
596
|
+
children: /* @__PURE__ */ e(
|
|
596
597
|
s1,
|
|
597
598
|
{
|
|
598
|
-
title:
|
|
599
|
-
className:
|
|
600
|
-
localId:
|
|
601
|
-
idx:
|
|
602
|
-
isSet:
|
|
603
|
-
isSelected:
|
|
604
|
-
isInvalid:
|
|
605
|
-
isFilter:
|
|
606
|
-
icon:
|
|
599
|
+
title: u.title,
|
|
600
|
+
className: M.stepItem,
|
|
601
|
+
localId: u.localId,
|
|
602
|
+
idx: f,
|
|
603
|
+
isSet: u.isSet,
|
|
604
|
+
isSelected: u.isSelected,
|
|
605
|
+
isInvalid: u.isInvalid,
|
|
606
|
+
isFilter: u.isFilter,
|
|
607
|
+
icon: u.icon,
|
|
607
608
|
onSelectStep: c,
|
|
608
609
|
onUpdateFilter: a,
|
|
609
610
|
contextMenuItems: [
|
|
610
611
|
{
|
|
611
612
|
label: "Delete",
|
|
612
|
-
icon: /* @__PURE__ */
|
|
613
|
+
icon: /* @__PURE__ */ e(J, { className: "mr-2", color: "#3B64A0", size: 18 }),
|
|
613
614
|
command: () => {
|
|
614
|
-
i?.(
|
|
615
|
+
i?.(u.localId);
|
|
615
616
|
},
|
|
616
|
-
disabled:
|
|
617
|
+
disabled: t.length === 1
|
|
617
618
|
},
|
|
618
619
|
{
|
|
619
620
|
label: "",
|
|
620
|
-
template: () => /* @__PURE__ */
|
|
621
|
+
template: () => /* @__PURE__ */ e(bt, {})
|
|
621
622
|
},
|
|
622
623
|
{
|
|
623
624
|
label: "Add More Triggers",
|
|
624
|
-
icon: /* @__PURE__ */
|
|
625
|
+
icon: /* @__PURE__ */ e(q1, { className: "mr-2", color: "#3B64A0", size: 18 }),
|
|
625
626
|
command: () => {
|
|
626
627
|
r?.();
|
|
627
628
|
}
|
|
@@ -630,73 +631,73 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
|
|
|
630
631
|
}
|
|
631
632
|
)
|
|
632
633
|
},
|
|
633
|
-
|
|
634
|
+
u.localId
|
|
634
635
|
)) }),
|
|
635
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ e("div", { style: { position: "relative" }, children: g.length > 1 && /* @__PURE__ */ e(
|
|
636
637
|
"svg",
|
|
637
638
|
{
|
|
638
|
-
className:
|
|
639
|
-
width:
|
|
640
|
-
height:
|
|
641
|
-
children:
|
|
642
|
-
const
|
|
643
|
-
return /* @__PURE__ */
|
|
639
|
+
className: M.curvesSvg,
|
|
640
|
+
width: _.width,
|
|
641
|
+
height: _.height,
|
|
642
|
+
children: g.map((u) => {
|
|
643
|
+
const P = g.length === 1 ? g[0].top + A : u.top + A;
|
|
644
|
+
return /* @__PURE__ */ e(
|
|
644
645
|
"path",
|
|
645
646
|
{
|
|
646
|
-
d: L(0,
|
|
647
|
+
d: L(0, P, m, y),
|
|
647
648
|
stroke: "#3b64a0",
|
|
648
649
|
strokeWidth: "2",
|
|
649
650
|
fill: "none",
|
|
650
651
|
strokeLinecap: "round"
|
|
651
652
|
},
|
|
652
|
-
|
|
653
|
+
u.localId
|
|
653
654
|
);
|
|
654
655
|
})
|
|
655
656
|
}
|
|
656
657
|
) }),
|
|
657
|
-
|
|
658
|
-
/* @__PURE__ */
|
|
658
|
+
g.length > 1 ? /* @__PURE__ */ h("div", { style: { position: "relative", marginRight: "140px" }, children: [
|
|
659
|
+
/* @__PURE__ */ e(
|
|
659
660
|
"div",
|
|
660
661
|
{
|
|
661
|
-
className:
|
|
662
|
+
className: M.centralNode,
|
|
662
663
|
style: {
|
|
663
|
-
"--node-x": `${
|
|
664
|
-
"--node-y": `${
|
|
664
|
+
"--node-x": `${m}px`,
|
|
665
|
+
"--node-y": `${y}px`
|
|
665
666
|
},
|
|
666
667
|
onMouseEnter: () => p(!0),
|
|
667
668
|
onMouseLeave: () => p(!1),
|
|
668
|
-
children:
|
|
669
|
+
children: I ? /* @__PURE__ */ e(
|
|
669
670
|
"div",
|
|
670
671
|
{
|
|
671
|
-
className: `${
|
|
672
|
+
className: `${M.iconWrapper} ${C ? M.fadeIn : M.fadeOut}`,
|
|
672
673
|
onClick: r,
|
|
673
|
-
children: /* @__PURE__ */
|
|
674
|
+
children: /* @__PURE__ */ e(ct, {})
|
|
674
675
|
}
|
|
675
676
|
) : null
|
|
676
677
|
}
|
|
677
678
|
),
|
|
678
|
-
/* @__PURE__ */
|
|
679
|
+
/* @__PURE__ */ e(
|
|
679
680
|
"div",
|
|
680
681
|
{
|
|
681
|
-
className:
|
|
682
|
+
className: M.operationContainer,
|
|
682
683
|
style: {
|
|
683
|
-
"--op-x": `${
|
|
684
|
-
"--op-y": `${
|
|
684
|
+
"--op-x": `${m + 16}px`,
|
|
685
|
+
"--op-y": `${y}px`
|
|
685
686
|
},
|
|
686
|
-
children: /* @__PURE__ */
|
|
687
|
+
children: /* @__PURE__ */ e(pt, {})
|
|
687
688
|
}
|
|
688
689
|
)
|
|
689
690
|
] }) : null
|
|
690
691
|
] })
|
|
691
692
|
] });
|
|
692
693
|
};
|
|
693
|
-
function
|
|
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: [] }] })(
|
|
694
|
+
function Bt(t) {
|
|
695
|
+
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
|
}
|
|
696
|
-
function
|
|
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: [] }] })(
|
|
697
|
+
function Pt(t) {
|
|
698
|
+
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
|
}
|
|
699
|
-
const
|
|
700
|
+
const Mt = () => /* @__PURE__ */ h(
|
|
700
701
|
"svg",
|
|
701
702
|
{
|
|
702
703
|
width: "24",
|
|
@@ -705,7 +706,7 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
705
706
|
fill: "none",
|
|
706
707
|
xmlns: "http://www.w3.org/2000/svg",
|
|
707
708
|
children: [
|
|
708
|
-
/* @__PURE__ */
|
|
709
|
+
/* @__PURE__ */ e(
|
|
709
710
|
"path",
|
|
710
711
|
{
|
|
711
712
|
d: "M6 12L18 12",
|
|
@@ -714,7 +715,7 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
714
715
|
strokeLinecap: "round"
|
|
715
716
|
}
|
|
716
717
|
),
|
|
717
|
-
/* @__PURE__ */
|
|
718
|
+
/* @__PURE__ */ e(
|
|
718
719
|
"path",
|
|
719
720
|
{
|
|
720
721
|
d: "M12 6V18",
|
|
@@ -725,12 +726,12 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
725
726
|
)
|
|
726
727
|
]
|
|
727
728
|
}
|
|
728
|
-
),
|
|
729
|
-
stepLinkIcon:
|
|
730
|
-
stepLinkLine:
|
|
731
|
-
stepLinkContainer:
|
|
729
|
+
), Lt = "_stepLinkIcon_18u2g_1", Et = "_stepLinkLine_18u2g_15", $t = "_stepLinkContainer_18u2g_39", X = {
|
|
730
|
+
stepLinkIcon: Lt,
|
|
731
|
+
stepLinkLine: Et,
|
|
732
|
+
stepLinkContainer: $t
|
|
732
733
|
}, Z = ({
|
|
733
|
-
onAddStep:
|
|
734
|
+
onAddStep: t,
|
|
734
735
|
onAddTrigger: n,
|
|
735
736
|
onAddCondition: o,
|
|
736
737
|
onAddLoop: i,
|
|
@@ -739,11 +740,11 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
739
740
|
style: a,
|
|
740
741
|
pathId: d
|
|
741
742
|
}) => {
|
|
742
|
-
const s = i1(), l = $(null),
|
|
743
|
+
const s = i1(), l = $(null), g = [
|
|
743
744
|
...c > 0 ? [
|
|
744
745
|
{
|
|
745
746
|
label: "Trigger",
|
|
746
|
-
icon: /* @__PURE__ */
|
|
747
|
+
icon: /* @__PURE__ */ e(Pt, { color: "#3B64A0", size: 18 }),
|
|
747
748
|
command: () => {
|
|
748
749
|
n?.(r, d, "trigger");
|
|
749
750
|
},
|
|
@@ -752,69 +753,69 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
752
753
|
] : [],
|
|
753
754
|
{
|
|
754
755
|
label: "Step",
|
|
755
|
-
icon: /* @__PURE__ */
|
|
756
|
-
command: () =>
|
|
756
|
+
icon: /* @__PURE__ */ e(Bt, { color: "#3B64A0", size: 18 }),
|
|
757
|
+
command: () => t?.(r, d, "append"),
|
|
757
758
|
template: s
|
|
758
759
|
},
|
|
759
760
|
...r ? [
|
|
760
761
|
{
|
|
761
762
|
label: "Condition",
|
|
762
|
-
icon: /* @__PURE__ */
|
|
763
|
+
icon: /* @__PURE__ */ e(rt, { width: 18, height: 18 }),
|
|
763
764
|
command: () => o?.(r, d, "append"),
|
|
764
765
|
template: s
|
|
765
766
|
},
|
|
766
767
|
{
|
|
767
768
|
label: "Loop",
|
|
768
|
-
icon: /* @__PURE__ */
|
|
769
|
+
icon: /* @__PURE__ */ e(st, { width: 18, height: 18 }),
|
|
769
770
|
command: () => i?.(r, d, "append"),
|
|
770
771
|
template: s
|
|
771
772
|
}
|
|
772
773
|
] : []
|
|
773
|
-
], b = (
|
|
774
|
-
l.current?.show(
|
|
774
|
+
], b = (_) => {
|
|
775
|
+
l.current?.show(_);
|
|
775
776
|
};
|
|
776
|
-
return /* @__PURE__ */
|
|
777
|
+
return /* @__PURE__ */ h(
|
|
777
778
|
"div",
|
|
778
779
|
{
|
|
779
|
-
className:
|
|
780
|
+
className: X.stepLinkContainer,
|
|
780
781
|
style: { ...a },
|
|
781
782
|
"data-plus-index": c,
|
|
782
783
|
children: [
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
-
/* @__PURE__ */
|
|
784
|
+
/* @__PURE__ */ e("div", { className: X.stepLinkLine }),
|
|
785
|
+
/* @__PURE__ */ e(
|
|
785
786
|
"div",
|
|
786
787
|
{
|
|
787
|
-
className:
|
|
788
|
+
className: X.stepLinkIcon,
|
|
788
789
|
onClick: b,
|
|
789
790
|
"aria-haspopup": !0,
|
|
790
|
-
children: /* @__PURE__ */
|
|
791
|
+
children: /* @__PURE__ */ e(Mt, {})
|
|
791
792
|
}
|
|
792
793
|
),
|
|
793
|
-
/* @__PURE__ */
|
|
794
|
-
/* @__PURE__ */
|
|
794
|
+
/* @__PURE__ */ e(Q, { model: g, popup: !0, ref: l }),
|
|
795
|
+
/* @__PURE__ */ e("div", { className: X.stepLinkLine })
|
|
795
796
|
]
|
|
796
797
|
}
|
|
797
798
|
);
|
|
798
|
-
},
|
|
799
|
-
steps:
|
|
800
|
-
stepContainer:
|
|
801
|
-
stepContainerWithPaths:
|
|
802
|
-
},
|
|
803
|
-
const r = o -
|
|
804
|
-
return `M ${
|
|
805
|
-
},
|
|
806
|
-
width:
|
|
799
|
+
}, Tt = "_steps_yug55_1", Ot = "_stepContainer_yug55_8", Ht = "_stepContainerWithPaths_yug55_14", e1 = {
|
|
800
|
+
steps: Tt,
|
|
801
|
+
stepContainer: Ot,
|
|
802
|
+
stepContainerWithPaths: Ht
|
|
803
|
+
}, jt = (t, n, o, i) => {
|
|
804
|
+
const r = o - t, c = Math.min(r * 0.66, 66), a = t + c, d = n, s = o - c;
|
|
805
|
+
return `M ${t} ${n} C ${a} ${d}, ${s} ${i}, ${o} ${i}`;
|
|
806
|
+
}, St = ({
|
|
807
|
+
width: t,
|
|
807
808
|
height: n
|
|
808
809
|
}) => {
|
|
809
|
-
const a =
|
|
810
|
-
return /* @__PURE__ */
|
|
810
|
+
const a = jt(0, 1, t, n);
|
|
811
|
+
return /* @__PURE__ */ e("div", { style: { position: "absolute" }, children: /* @__PURE__ */ e(
|
|
811
812
|
"svg",
|
|
812
813
|
{
|
|
813
|
-
width:
|
|
814
|
+
width: t,
|
|
814
815
|
height: n + 1,
|
|
815
|
-
viewBox: `0 0 ${
|
|
816
|
+
viewBox: `0 0 ${t} ${n + 1}`,
|
|
816
817
|
xmlns: "http://www.w3.org/2000/svg",
|
|
817
|
-
children: /* @__PURE__ */
|
|
818
|
+
children: /* @__PURE__ */ e(
|
|
818
819
|
"path",
|
|
819
820
|
{
|
|
820
821
|
d: a,
|
|
@@ -826,108 +827,108 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
826
827
|
)
|
|
827
828
|
}
|
|
828
829
|
) });
|
|
829
|
-
},
|
|
830
|
-
column:
|
|
831
|
-
row:
|
|
832
|
-
stepsContainer:
|
|
833
|
-
},
|
|
834
|
-
wrapper:
|
|
835
|
-
tooltip:
|
|
836
|
-
},
|
|
837
|
-
content:
|
|
830
|
+
}, Wt = "_column_1uiy3_1", Rt = "_row_1uiy3_19", zt = "_stepsContainer_1uiy3_24", F = {
|
|
831
|
+
column: Wt,
|
|
832
|
+
row: Rt,
|
|
833
|
+
stepsContainer: zt
|
|
834
|
+
}, Dt = "_wrapper_1nl2d_1", Zt = "_tooltip_1nl2d_5", C1 = {
|
|
835
|
+
wrapper: Dt,
|
|
836
|
+
tooltip: Zt
|
|
837
|
+
}, Vt = ({
|
|
838
|
+
content: t,
|
|
838
839
|
children: n,
|
|
839
840
|
maxWidth: o = 500,
|
|
840
841
|
className: i
|
|
841
|
-
}) => /* @__PURE__ */
|
|
842
|
+
}) => /* @__PURE__ */ h(
|
|
842
843
|
"div",
|
|
843
844
|
{
|
|
844
845
|
className: `${C1.wrapper} ${i ?? ""}`.trim(),
|
|
845
846
|
style: { "--tooltip-max-width": `${o}px` },
|
|
846
847
|
children: [
|
|
847
848
|
n,
|
|
848
|
-
|
|
849
|
+
t ? /* @__PURE__ */ e("div", { className: C1.tooltip, role: "tooltip", children: t }) : null
|
|
849
850
|
]
|
|
850
851
|
}
|
|
851
|
-
),
|
|
852
|
-
conditionContainer:
|
|
853
|
-
connectorLine:
|
|
854
|
-
conditionWrapper:
|
|
855
|
-
condition:
|
|
856
|
-
connectorDot:
|
|
857
|
-
},
|
|
858
|
-
expression:
|
|
852
|
+
), Ft = "_conditionContainer_1r4n4_1", Yt = "_connectorLine_1r4n4_6", At = "_conditionWrapper_1r4n4_12", Xt = "_condition_1r4n4_1", Gt = "_connectorDot_1r4n4_43", z = {
|
|
853
|
+
conditionContainer: Ft,
|
|
854
|
+
connectorLine: Yt,
|
|
855
|
+
conditionWrapper: At,
|
|
856
|
+
condition: Xt,
|
|
857
|
+
connectorDot: Gt
|
|
858
|
+
}, x1 = ({
|
|
859
|
+
expression: t,
|
|
859
860
|
style: n
|
|
860
861
|
}) => {
|
|
861
862
|
const o = $(null), [i, r] = E(!1);
|
|
862
|
-
|
|
863
|
+
L1(() => {
|
|
863
864
|
const a = o.current;
|
|
864
865
|
a && r(a.scrollHeight > a.clientHeight);
|
|
865
|
-
}, [
|
|
866
|
-
const c =
|
|
867
|
-
return /* @__PURE__ */
|
|
868
|
-
/* @__PURE__ */
|
|
869
|
-
/* @__PURE__ */
|
|
870
|
-
/* @__PURE__ */
|
|
871
|
-
/* @__PURE__ */
|
|
866
|
+
}, [t]);
|
|
867
|
+
const c = t && i ? t : "";
|
|
868
|
+
return /* @__PURE__ */ h("div", { className: z.conditionContainer, style: n, children: [
|
|
869
|
+
/* @__PURE__ */ e("div", { className: z.connectorLine }),
|
|
870
|
+
/* @__PURE__ */ e(Vt, { content: c, className: z.conditionWrapper, children: /* @__PURE__ */ e("div", { ref: o, className: z.condition, children: t }) }),
|
|
871
|
+
/* @__PURE__ */ e("div", { className: z.connectorLine }),
|
|
872
|
+
/* @__PURE__ */ e("div", { className: z.connectorDot })
|
|
872
873
|
] });
|
|
873
|
-
},
|
|
874
|
-
ifStatement:
|
|
875
|
-
conditionIcon:
|
|
876
|
-
ifStatementContainer:
|
|
877
|
-
menuButton:
|
|
878
|
-
menuIcon:
|
|
879
|
-
ifdotIcon:
|
|
880
|
-
},
|
|
874
|
+
}, Kt = "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", qt = "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", Jt = "_ifStatement_xtij3_1", Qt = "_conditionIcon_xtij3_7", Ut = "_ifStatementContainer_xtij3_21", te = "_menuButton_xtij3_27", ee = "_menuIcon_xtij3_52", ne = "_ifdotIcon_xtij3_59", R = {
|
|
875
|
+
ifStatement: Jt,
|
|
876
|
+
conditionIcon: Qt,
|
|
877
|
+
ifStatementContainer: Ut,
|
|
878
|
+
menuButton: te,
|
|
879
|
+
menuIcon: ee,
|
|
880
|
+
ifdotIcon: ne
|
|
881
|
+
}, oe = ({ style: t }) => /* @__PURE__ */ e(
|
|
881
882
|
"div",
|
|
882
883
|
{
|
|
883
884
|
style: {
|
|
884
885
|
width: "100%",
|
|
885
886
|
height: "2px",
|
|
886
887
|
borderTop: "2px solid #3B64A0",
|
|
887
|
-
...
|
|
888
|
+
...t
|
|
888
889
|
}
|
|
889
890
|
}
|
|
890
|
-
),
|
|
891
|
-
onEdit:
|
|
891
|
+
), ie = ({
|
|
892
|
+
onEdit: t,
|
|
892
893
|
onDelete: n,
|
|
893
894
|
onSelect: o
|
|
894
895
|
}) => {
|
|
895
|
-
const i = $(null), { openMenu: r, closeMenu: c } = r1(), a =
|
|
896
|
+
const i = $(null), { openMenu: r, closeMenu: c } = r1(), a = j(
|
|
896
897
|
() => [
|
|
897
898
|
{
|
|
898
899
|
label: "Edit",
|
|
899
|
-
icon: /* @__PURE__ */
|
|
900
|
-
command: () =>
|
|
900
|
+
icon: /* @__PURE__ */ e(v1, { color: "#3B64A0", size: 18 }),
|
|
901
|
+
command: () => t?.()
|
|
901
902
|
},
|
|
902
903
|
{
|
|
903
904
|
label: "Delete",
|
|
904
|
-
icon: /* @__PURE__ */
|
|
905
|
+
icon: /* @__PURE__ */ e(J, { color: "#3B64A0", size: 18 }),
|
|
905
906
|
command: () => n?.()
|
|
906
907
|
}
|
|
907
908
|
],
|
|
908
|
-
[
|
|
909
|
+
[t, n]
|
|
909
910
|
), d = (l) => {
|
|
910
911
|
l.stopPropagation(), r(i, l);
|
|
911
912
|
}, s = (l) => {
|
|
912
913
|
l.target.closest(`.${R.menuButton}`) || o?.();
|
|
913
914
|
};
|
|
914
|
-
return /* @__PURE__ */
|
|
915
|
-
/* @__PURE__ */
|
|
916
|
-
|
|
915
|
+
return /* @__PURE__ */ h("div", { className: R.ifStatementContainer, children: [
|
|
916
|
+
/* @__PURE__ */ e(
|
|
917
|
+
oe,
|
|
917
918
|
{
|
|
918
919
|
style: { position: "absolute", top: "22.5px", left: 0, zIndex: 1 }
|
|
919
920
|
}
|
|
920
921
|
),
|
|
921
|
-
/* @__PURE__ */
|
|
922
|
+
/* @__PURE__ */ e("div", { className: R.ifStatement, children: /* @__PURE__ */ e(
|
|
922
923
|
"img",
|
|
923
924
|
{
|
|
924
|
-
src:
|
|
925
|
+
src: Kt,
|
|
925
926
|
alt: "condition",
|
|
926
927
|
onClick: (l) => s(l),
|
|
927
928
|
className: R.conditionIcon
|
|
928
929
|
}
|
|
929
930
|
) }),
|
|
930
|
-
/* @__PURE__ */
|
|
931
|
+
/* @__PURE__ */ e(
|
|
931
932
|
"button",
|
|
932
933
|
{
|
|
933
934
|
type: "button",
|
|
@@ -935,10 +936,10 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
935
936
|
onClick: d,
|
|
936
937
|
"aria-label": "Open menu",
|
|
937
938
|
"aria-haspopup": "menu",
|
|
938
|
-
children: /* @__PURE__ */
|
|
939
|
+
children: /* @__PURE__ */ e(q, { className: R.menuIcon, size: 16 })
|
|
939
940
|
}
|
|
940
941
|
),
|
|
941
|
-
/* @__PURE__ */
|
|
942
|
+
/* @__PURE__ */ e(
|
|
942
943
|
Q,
|
|
943
944
|
{
|
|
944
945
|
ref: i,
|
|
@@ -947,10 +948,10 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
947
948
|
onHide: () => c(i)
|
|
948
949
|
}
|
|
949
950
|
),
|
|
950
|
-
/* @__PURE__ */
|
|
951
|
+
/* @__PURE__ */ e("img", { src: qt, alt: "ifdot", className: R.ifdotIcon })
|
|
951
952
|
] });
|
|
952
|
-
},
|
|
953
|
-
items:
|
|
953
|
+
}, re = 34.5, w1 = ({
|
|
954
|
+
items: t,
|
|
954
955
|
pathId: n,
|
|
955
956
|
onAddStep: o,
|
|
956
957
|
onAddTrigger: i,
|
|
@@ -961,45 +962,45 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
961
962
|
onSelectStep: s,
|
|
962
963
|
onResize: l
|
|
963
964
|
}) => {
|
|
964
|
-
const
|
|
965
|
-
|
|
965
|
+
const g = $(null), b = $([]), [_, x] = E([]);
|
|
966
|
+
Y(() => {
|
|
966
967
|
const p = () => {
|
|
967
|
-
if (!
|
|
968
|
-
|
|
968
|
+
if (!g.current || t.length === 0) {
|
|
969
|
+
x([]);
|
|
969
970
|
return;
|
|
970
971
|
}
|
|
971
|
-
const
|
|
972
|
-
for (let
|
|
973
|
-
const
|
|
974
|
-
if (
|
|
975
|
-
const
|
|
976
|
-
|
|
972
|
+
const I = g.current.getBoundingClientRect(), w = [];
|
|
973
|
+
for (let v = 0; v < t.length; v++) {
|
|
974
|
+
const m = b.current[v];
|
|
975
|
+
if (m) {
|
|
976
|
+
const y = m.getBoundingClientRect();
|
|
977
|
+
w.push(y.top - I.top + re);
|
|
977
978
|
}
|
|
978
979
|
}
|
|
979
|
-
|
|
980
|
+
w.length === t.length && x(w);
|
|
980
981
|
};
|
|
981
982
|
return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
|
|
982
|
-
}, [
|
|
983
|
-
const
|
|
984
|
-
const
|
|
985
|
-
return
|
|
986
|
-
}), [
|
|
987
|
-
return /* @__PURE__ */
|
|
988
|
-
/* @__PURE__ */
|
|
989
|
-
|
|
983
|
+
}, [t]);
|
|
984
|
+
const C = j(() => _.length !== t.length || t.length <= 1 ? null : t.map((p, I) => I).filter((p) => p > 0).map((p) => {
|
|
985
|
+
const I = _[p];
|
|
986
|
+
return I === void 0 ? null : /* @__PURE__ */ e(St, { width: 100, height: I }, p);
|
|
987
|
+
}), [t, _]);
|
|
988
|
+
return /* @__PURE__ */ h("div", { className: F.row, children: [
|
|
989
|
+
/* @__PURE__ */ e(
|
|
990
|
+
ie,
|
|
990
991
|
{
|
|
991
992
|
onDelete: () => n != null && a?.(n),
|
|
992
993
|
onSelect: n != null && s ? () => s(n) : void 0
|
|
993
994
|
}
|
|
994
995
|
),
|
|
995
|
-
/* @__PURE__ */
|
|
996
|
+
/* @__PURE__ */ h(
|
|
996
997
|
"div",
|
|
997
998
|
{
|
|
998
|
-
ref:
|
|
999
|
+
ref: g,
|
|
999
1000
|
className: F.column,
|
|
1000
1001
|
style: { marginTop: "33px" },
|
|
1001
1002
|
children: [
|
|
1002
|
-
/* @__PURE__ */
|
|
1003
|
+
/* @__PURE__ */ e(
|
|
1003
1004
|
"div",
|
|
1004
1005
|
{
|
|
1005
1006
|
style: {
|
|
@@ -1012,15 +1013,15 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1012
1013
|
}
|
|
1013
1014
|
}
|
|
1014
1015
|
),
|
|
1015
|
-
|
|
1016
|
+
C
|
|
1016
1017
|
]
|
|
1017
1018
|
}
|
|
1018
1019
|
),
|
|
1019
|
-
/* @__PURE__ */
|
|
1020
|
-
let
|
|
1020
|
+
/* @__PURE__ */ e("div", { className: F.column, children: t.map((p, I) => {
|
|
1021
|
+
let w;
|
|
1021
1022
|
if (p.paths)
|
|
1022
|
-
|
|
1023
|
-
|
|
1023
|
+
w = /* @__PURE__ */ e(
|
|
1024
|
+
w1,
|
|
1024
1025
|
{
|
|
1025
1026
|
items: p.paths,
|
|
1026
1027
|
pathId: n,
|
|
@@ -1036,16 +1037,16 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1036
1037
|
p.localId
|
|
1037
1038
|
);
|
|
1038
1039
|
else if (p.steps) {
|
|
1039
|
-
const
|
|
1040
|
-
|
|
1041
|
-
/* @__PURE__ */
|
|
1042
|
-
|
|
1040
|
+
const v = p;
|
|
1041
|
+
w = /* @__PURE__ */ h("div", { className: F.stepsContainer, children: [
|
|
1042
|
+
/* @__PURE__ */ e(
|
|
1043
|
+
x1,
|
|
1043
1044
|
{
|
|
1044
|
-
expression:
|
|
1045
|
+
expression: v.condition,
|
|
1045
1046
|
style: { marginTop: "25px" }
|
|
1046
1047
|
}
|
|
1047
1048
|
),
|
|
1048
|
-
/* @__PURE__ */
|
|
1049
|
+
/* @__PURE__ */ e(
|
|
1049
1050
|
l1,
|
|
1050
1051
|
{
|
|
1051
1052
|
steps: p.steps,
|
|
@@ -1066,7 +1067,7 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1066
1067
|
)
|
|
1067
1068
|
] });
|
|
1068
1069
|
} else
|
|
1069
|
-
|
|
1070
|
+
w = /* @__PURE__ */ e(
|
|
1070
1071
|
s1,
|
|
1071
1072
|
{
|
|
1072
1073
|
localId: p.localId,
|
|
@@ -1079,20 +1080,20 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1079
1080
|
},
|
|
1080
1081
|
p.localId
|
|
1081
1082
|
);
|
|
1082
|
-
return /* @__PURE__ */
|
|
1083
|
+
return /* @__PURE__ */ e(
|
|
1083
1084
|
"div",
|
|
1084
1085
|
{
|
|
1085
|
-
ref: (
|
|
1086
|
-
b.current[
|
|
1086
|
+
ref: (v) => {
|
|
1087
|
+
b.current[I] = v;
|
|
1087
1088
|
},
|
|
1088
1089
|
style: { width: "100%" },
|
|
1089
|
-
children:
|
|
1090
|
+
children: w
|
|
1090
1091
|
},
|
|
1091
1092
|
p.localId
|
|
1092
1093
|
);
|
|
1093
1094
|
}) }),
|
|
1094
|
-
/* @__PURE__ */
|
|
1095
|
-
/* @__PURE__ */
|
|
1095
|
+
/* @__PURE__ */ h("div", { className: F.column, style: { marginTop: "33px" }, children: [
|
|
1096
|
+
/* @__PURE__ */ e(
|
|
1096
1097
|
"div",
|
|
1097
1098
|
{
|
|
1098
1099
|
style: {
|
|
@@ -1106,9 +1107,9 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1106
1107
|
}
|
|
1107
1108
|
}
|
|
1108
1109
|
),
|
|
1109
|
-
|
|
1110
|
+
C
|
|
1110
1111
|
] }),
|
|
1111
|
-
/* @__PURE__ */
|
|
1112
|
+
/* @__PURE__ */ e(
|
|
1112
1113
|
Z,
|
|
1113
1114
|
{
|
|
1114
1115
|
onAddStep: o,
|
|
@@ -1124,7 +1125,7 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1124
1125
|
}
|
|
1125
1126
|
}
|
|
1126
1127
|
),
|
|
1127
|
-
/* @__PURE__ */
|
|
1128
|
+
/* @__PURE__ */ e(
|
|
1128
1129
|
"div",
|
|
1129
1130
|
{
|
|
1130
1131
|
style: {
|
|
@@ -1138,7 +1139,7 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1138
1139
|
)
|
|
1139
1140
|
] });
|
|
1140
1141
|
}, o1 = 68, l1 = ({
|
|
1141
|
-
pathId:
|
|
1142
|
+
pathId: t,
|
|
1142
1143
|
steps: n,
|
|
1143
1144
|
centerY: o,
|
|
1144
1145
|
className: i,
|
|
@@ -1148,12 +1149,12 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1148
1149
|
onAddTrigger: d,
|
|
1149
1150
|
onAddCondition: s,
|
|
1150
1151
|
onAddLoop: l,
|
|
1151
|
-
onSelectStep:
|
|
1152
|
+
onSelectStep: g,
|
|
1152
1153
|
onResize: b,
|
|
1153
|
-
isDescendent:
|
|
1154
|
+
isDescendent: _ = !0
|
|
1154
1155
|
}) => {
|
|
1155
|
-
const
|
|
1156
|
-
return n.length === 0 ? /* @__PURE__ */
|
|
1156
|
+
const x = o === void 0 ? void 0 : { marginTop: Math.max(0, o - o1 / 2) };
|
|
1157
|
+
return n.length === 0 ? /* @__PURE__ */ h(
|
|
1157
1158
|
"div",
|
|
1158
1159
|
{
|
|
1159
1160
|
style: {
|
|
@@ -1163,10 +1164,10 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1163
1164
|
flexDirection: "row",
|
|
1164
1165
|
flex: 1,
|
|
1165
1166
|
minWidth: 0,
|
|
1166
|
-
...
|
|
1167
|
+
...x
|
|
1167
1168
|
},
|
|
1168
1169
|
children: [
|
|
1169
|
-
/* @__PURE__ */
|
|
1170
|
+
/* @__PURE__ */ e(
|
|
1170
1171
|
"div",
|
|
1171
1172
|
{
|
|
1172
1173
|
style: {
|
|
@@ -1180,23 +1181,23 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1180
1181
|
}
|
|
1181
1182
|
}
|
|
1182
1183
|
),
|
|
1183
|
-
/* @__PURE__ */
|
|
1184
|
+
/* @__PURE__ */ e(
|
|
1184
1185
|
Z,
|
|
1185
1186
|
{
|
|
1186
1187
|
onAddStep: () => {
|
|
1187
|
-
r?.(void 0,
|
|
1188
|
+
r?.(void 0, t);
|
|
1188
1189
|
},
|
|
1189
1190
|
onAddTrigger: d,
|
|
1190
1191
|
onAddCondition: s,
|
|
1191
1192
|
onAddLoop: l,
|
|
1192
|
-
stepId:
|
|
1193
|
+
stepId: t,
|
|
1193
1194
|
index: 0,
|
|
1194
1195
|
style: {
|
|
1195
1196
|
height: "auto"
|
|
1196
1197
|
}
|
|
1197
1198
|
}
|
|
1198
1199
|
),
|
|
1199
|
-
/* @__PURE__ */
|
|
1200
|
+
/* @__PURE__ */ e(
|
|
1200
1201
|
"div",
|
|
1201
1202
|
{
|
|
1202
1203
|
style: {
|
|
@@ -1212,12 +1213,12 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1212
1213
|
)
|
|
1213
1214
|
]
|
|
1214
1215
|
}
|
|
1215
|
-
) : /* @__PURE__ */
|
|
1216
|
+
) : /* @__PURE__ */ e(
|
|
1216
1217
|
"div",
|
|
1217
1218
|
{
|
|
1218
|
-
className:
|
|
1219
|
-
style:
|
|
1220
|
-
children: /* @__PURE__ */
|
|
1219
|
+
className: e1.steps + (i ? " " + i : ""),
|
|
1220
|
+
style: x,
|
|
1221
|
+
children: /* @__PURE__ */ h(
|
|
1221
1222
|
"div",
|
|
1222
1223
|
{
|
|
1223
1224
|
style: {
|
|
@@ -1229,109 +1230,109 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1229
1230
|
alignItems: "flex-start"
|
|
1230
1231
|
},
|
|
1231
1232
|
children: [
|
|
1232
|
-
/* @__PURE__ */
|
|
1233
|
+
/* @__PURE__ */ e(
|
|
1233
1234
|
Z,
|
|
1234
1235
|
{
|
|
1235
1236
|
onAddStep: () => {
|
|
1236
|
-
r?.(n[0].localId,
|
|
1237
|
+
r?.(n[0].localId, t, "prepend");
|
|
1237
1238
|
},
|
|
1238
1239
|
onAddTrigger: d,
|
|
1239
1240
|
onAddCondition: s,
|
|
1240
1241
|
onAddLoop: l,
|
|
1241
1242
|
stepId: n[0].localId,
|
|
1242
|
-
pathId:
|
|
1243
|
+
pathId: t,
|
|
1243
1244
|
index: 0,
|
|
1244
1245
|
style: {
|
|
1245
1246
|
marginTop: "20px"
|
|
1246
1247
|
}
|
|
1247
1248
|
}
|
|
1248
1249
|
),
|
|
1249
|
-
n.map((
|
|
1250
|
-
const
|
|
1251
|
-
let
|
|
1252
|
-
return
|
|
1253
|
-
|
|
1250
|
+
n.map((C, p) => {
|
|
1251
|
+
const I = !!C.paths, w = "condition" in C && typeof C.condition == "string";
|
|
1252
|
+
let v;
|
|
1253
|
+
return I && C.paths ? v = /* @__PURE__ */ e(
|
|
1254
|
+
w1,
|
|
1254
1255
|
{
|
|
1255
|
-
items:
|
|
1256
|
-
pathId:
|
|
1256
|
+
items: C.paths,
|
|
1257
|
+
pathId: C.localId,
|
|
1257
1258
|
onAddStep: r,
|
|
1258
1259
|
onAddCondition: s,
|
|
1259
1260
|
onAddLoop: l,
|
|
1260
1261
|
onDeleteStep: c,
|
|
1261
1262
|
onAddTrigger: d,
|
|
1262
|
-
onSelectStep:
|
|
1263
|
+
onSelectStep: g,
|
|
1263
1264
|
onUpdateFilter: a,
|
|
1264
1265
|
onResize: b
|
|
1265
1266
|
},
|
|
1266
|
-
|
|
1267
|
-
) :
|
|
1268
|
-
/* @__PURE__ */
|
|
1269
|
-
|
|
1267
|
+
C.title
|
|
1268
|
+
) : w ? v = /* @__PURE__ */ h(n1, { children: [
|
|
1269
|
+
/* @__PURE__ */ e(
|
|
1270
|
+
ye,
|
|
1270
1271
|
{
|
|
1271
|
-
value:
|
|
1272
|
+
value: C,
|
|
1272
1273
|
onAddStep: r,
|
|
1273
1274
|
onAddTrigger: d,
|
|
1274
1275
|
onAddCondition: s,
|
|
1275
1276
|
onAddLoop: l,
|
|
1276
1277
|
onDeleteStep: c,
|
|
1277
1278
|
onUpdateFilter: a,
|
|
1278
|
-
onSelectStep:
|
|
1279
|
+
onSelectStep: g,
|
|
1279
1280
|
onResize: b
|
|
1280
1281
|
},
|
|
1281
|
-
|
|
1282
|
+
C.localId
|
|
1282
1283
|
),
|
|
1283
|
-
/* @__PURE__ */
|
|
1284
|
+
/* @__PURE__ */ e(
|
|
1284
1285
|
Z,
|
|
1285
1286
|
{
|
|
1286
1287
|
onAddStep: r,
|
|
1287
1288
|
onAddTrigger: d,
|
|
1288
1289
|
onAddCondition: s,
|
|
1289
1290
|
onAddLoop: l,
|
|
1290
|
-
stepId:
|
|
1291
|
-
pathId:
|
|
1291
|
+
stepId: C.localId,
|
|
1292
|
+
pathId: t,
|
|
1292
1293
|
index: p + 1,
|
|
1293
1294
|
style: { marginTop: "34px", height: 0 }
|
|
1294
1295
|
}
|
|
1295
1296
|
)
|
|
1296
|
-
] }) :
|
|
1297
|
-
/* @__PURE__ */
|
|
1297
|
+
] }) : v = /* @__PURE__ */ h(n1, { children: [
|
|
1298
|
+
/* @__PURE__ */ e(
|
|
1298
1299
|
s1,
|
|
1299
1300
|
{
|
|
1300
|
-
localId:
|
|
1301
|
-
title:
|
|
1301
|
+
localId: C.localId,
|
|
1302
|
+
title: C.title,
|
|
1302
1303
|
idx: 1,
|
|
1303
|
-
icon:
|
|
1304
|
-
isSet:
|
|
1305
|
-
isInvalid:
|
|
1306
|
-
isFilter:
|
|
1307
|
-
onSelectStep:
|
|
1304
|
+
icon: C.icon,
|
|
1305
|
+
isSet: C.isSet,
|
|
1306
|
+
isInvalid: C.isInvalid,
|
|
1307
|
+
isFilter: C.isFilter,
|
|
1308
|
+
onSelectStep: g,
|
|
1308
1309
|
onDeleteStep: c,
|
|
1309
1310
|
onUpdateFilter: a
|
|
1310
1311
|
},
|
|
1311
|
-
|
|
1312
|
+
C.title
|
|
1312
1313
|
),
|
|
1313
|
-
/* @__PURE__ */
|
|
1314
|
+
/* @__PURE__ */ e(
|
|
1314
1315
|
Z,
|
|
1315
1316
|
{
|
|
1316
1317
|
onAddStep: r,
|
|
1317
1318
|
onAddTrigger: d,
|
|
1318
1319
|
onAddCondition: s,
|
|
1319
1320
|
onAddLoop: l,
|
|
1320
|
-
stepId:
|
|
1321
|
-
pathId:
|
|
1321
|
+
stepId: C.localId,
|
|
1322
|
+
pathId: t,
|
|
1322
1323
|
index: p + 1
|
|
1323
1324
|
}
|
|
1324
1325
|
)
|
|
1325
|
-
] }), /* @__PURE__ */
|
|
1326
|
+
] }), /* @__PURE__ */ e(
|
|
1326
1327
|
"div",
|
|
1327
1328
|
{
|
|
1328
|
-
className:
|
|
1329
|
-
children:
|
|
1329
|
+
className: e1.stepContainer + (I || w ? " " + e1.stepContainerWithPaths : ""),
|
|
1330
|
+
children: v
|
|
1330
1331
|
},
|
|
1331
|
-
|
|
1332
|
+
C.localId
|
|
1332
1333
|
);
|
|
1333
1334
|
}),
|
|
1334
|
-
|
|
1335
|
+
_ && /* @__PURE__ */ e(
|
|
1335
1336
|
"div",
|
|
1336
1337
|
{
|
|
1337
1338
|
style: {
|
|
@@ -1347,7 +1348,7 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1347
1348
|
)
|
|
1348
1349
|
}
|
|
1349
1350
|
);
|
|
1350
|
-
},
|
|
1351
|
+
}, se = () => /* @__PURE__ */ h(
|
|
1351
1352
|
"svg",
|
|
1352
1353
|
{
|
|
1353
1354
|
width: "24",
|
|
@@ -1356,14 +1357,14 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1356
1357
|
fill: "none",
|
|
1357
1358
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1358
1359
|
children: [
|
|
1359
|
-
/* @__PURE__ */
|
|
1360
|
+
/* @__PURE__ */ e(
|
|
1360
1361
|
"path",
|
|
1361
1362
|
{
|
|
1362
1363
|
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
1364
|
fill: "#41B0AC"
|
|
1364
1365
|
}
|
|
1365
1366
|
),
|
|
1366
|
-
/* @__PURE__ */
|
|
1367
|
+
/* @__PURE__ */ e(
|
|
1367
1368
|
"path",
|
|
1368
1369
|
{
|
|
1369
1370
|
fillRule: "evenodd",
|
|
@@ -1374,24 +1375,24 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1374
1375
|
)
|
|
1375
1376
|
]
|
|
1376
1377
|
}
|
|
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
|
-
},
|
|
1394
|
-
value:
|
|
1378
|
+
), le = "_container_1ktj6_1", ce = "_collapsed_1ktj6_16", ae = "_loopNodeWrapper_1ktj6_21", de = "_loopIconWrapper_1ktj6_31", pe = "_loopBox_1ktj6_40", ue = "_dotsButton_1ktj6_57", he = "_label_1ktj6_77", Ce = "_limit_1ktj6_84", me = "_expandable_1ktj6_90", ge = "_expandableCollapsed_1ktj6_98", fe = "_connector_1ktj6_105", ve = "_line_1ktj6_113", _e = "_circleDot_1ktj6_121", xe = "_innerDot_1ktj6_136", we = "_stepsWrapper_1ktj6_143", B = {
|
|
1379
|
+
container: le,
|
|
1380
|
+
collapsed: ce,
|
|
1381
|
+
loopNodeWrapper: ae,
|
|
1382
|
+
loopIconWrapper: de,
|
|
1383
|
+
loopBox: pe,
|
|
1384
|
+
dotsButton: ue,
|
|
1385
|
+
label: he,
|
|
1386
|
+
limit: Ce,
|
|
1387
|
+
expandable: me,
|
|
1388
|
+
expandableCollapsed: ge,
|
|
1389
|
+
connector: fe,
|
|
1390
|
+
line: ve,
|
|
1391
|
+
circleDot: _e,
|
|
1392
|
+
innerDot: xe,
|
|
1393
|
+
stepsWrapper: we
|
|
1394
|
+
}, ye = ({
|
|
1395
|
+
value: t,
|
|
1395
1396
|
onAddStep: n,
|
|
1396
1397
|
onAddTrigger: o,
|
|
1397
1398
|
onAddCondition: i,
|
|
@@ -1401,72 +1402,81 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1401
1402
|
onSelectStep: d,
|
|
1402
1403
|
onResize: s
|
|
1403
1404
|
}) => {
|
|
1404
|
-
const { localId: l, limit:
|
|
1405
|
-
}, [
|
|
1405
|
+
const { localId: l, limit: g, steps: b, condition: _ } = t, x = b ?? [], C = () => {
|
|
1406
|
+
}, [p, I] = E(!1), w = $(null), { openMenu: v, closeMenu: m } = r1(), y = i1(), L = j(
|
|
1406
1407
|
() => [
|
|
1408
|
+
{
|
|
1409
|
+
label: "Edit",
|
|
1410
|
+
icon: /* @__PURE__ */ e(v1, { color: "#3B64A0", size: 18 }),
|
|
1411
|
+
command: (k) => {
|
|
1412
|
+
k?.originalEvent?.stopPropagation(), d?.(l);
|
|
1413
|
+
},
|
|
1414
|
+
template: y
|
|
1415
|
+
},
|
|
1407
1416
|
{
|
|
1408
1417
|
label: "Remove",
|
|
1409
|
-
icon: /* @__PURE__ */
|
|
1410
|
-
command: (
|
|
1411
|
-
|
|
1418
|
+
icon: /* @__PURE__ */ e(J, { color: "#3B64A0", size: 18 }),
|
|
1419
|
+
command: (k) => {
|
|
1420
|
+
k?.originalEvent?.stopPropagation(), c && c(l);
|
|
1412
1421
|
},
|
|
1413
|
-
template:
|
|
1422
|
+
template: y
|
|
1414
1423
|
}
|
|
1415
1424
|
],
|
|
1416
|
-
[c, l,
|
|
1417
|
-
),
|
|
1418
|
-
|
|
1419
|
-
},
|
|
1420
|
-
|
|
1421
|
-
},
|
|
1422
|
-
return /* @__PURE__ */
|
|
1423
|
-
/* @__PURE__ */
|
|
1424
|
-
/* @__PURE__ */
|
|
1425
|
-
/* @__PURE__ */
|
|
1426
|
-
/* @__PURE__ */
|
|
1427
|
-
/* @__PURE__ */
|
|
1425
|
+
[d, c, l, y]
|
|
1426
|
+
), u = (k) => {
|
|
1427
|
+
k.stopPropagation(), v(w, k);
|
|
1428
|
+
}, f = () => {
|
|
1429
|
+
I((k) => !k), s?.();
|
|
1430
|
+
}, P = B.container + (p ? "" : " " + B.collapsed), T = B.expandable + (p ? "" : " " + B.expandableCollapsed);
|
|
1431
|
+
return /* @__PURE__ */ h("div", { className: P, children: [
|
|
1432
|
+
/* @__PURE__ */ h("div", { className: B.loopNodeWrapper, children: [
|
|
1433
|
+
/* @__PURE__ */ h("div", { className: B.loopBox, children: [
|
|
1434
|
+
/* @__PURE__ */ e("div", { onClick: f, className: B.loopIconWrapper, children: /* @__PURE__ */ e(se, {}) }),
|
|
1435
|
+
/* @__PURE__ */ e("button", { className: B.dotsButton, onClick: u, children: /* @__PURE__ */ e(q, { size: 16 }) }),
|
|
1436
|
+
/* @__PURE__ */ e(
|
|
1428
1437
|
Q,
|
|
1429
1438
|
{
|
|
1430
|
-
model:
|
|
1439
|
+
model: L,
|
|
1431
1440
|
popup: !0,
|
|
1432
1441
|
ref: w,
|
|
1433
|
-
onHide: () =>
|
|
1442
|
+
onHide: () => m(w)
|
|
1434
1443
|
}
|
|
1435
1444
|
)
|
|
1436
1445
|
] }),
|
|
1437
|
-
/* @__PURE__ */
|
|
1438
|
-
|
|
1439
|
-
|
|
1446
|
+
/* @__PURE__ */ e("div", { className: B.label, children: "Loop" }),
|
|
1447
|
+
g != null && /* @__PURE__ */ h("div", { className: B.limit, children: [
|
|
1448
|
+
g,
|
|
1440
1449
|
"x"
|
|
1441
1450
|
] })
|
|
1442
1451
|
] }),
|
|
1443
|
-
/* @__PURE__ */
|
|
1444
|
-
/* @__PURE__ */
|
|
1445
|
-
/* @__PURE__ */
|
|
1446
|
-
/* @__PURE__ */
|
|
1447
|
-
/* @__PURE__ */
|
|
1452
|
+
/* @__PURE__ */ h("div", { className: T, children: [
|
|
1453
|
+
/* @__PURE__ */ h("div", { className: B.connector, children: [
|
|
1454
|
+
/* @__PURE__ */ e("div", { className: B.line }),
|
|
1455
|
+
/* @__PURE__ */ e("div", { className: B.circleDot, children: /* @__PURE__ */ e("div", { className: B.innerDot }) }),
|
|
1456
|
+
/* @__PURE__ */ e("div", { className: B.line })
|
|
1448
1457
|
] }),
|
|
1449
|
-
/* @__PURE__ */
|
|
1458
|
+
/* @__PURE__ */ e(x1, { expression: _ ?? "", style: { marginTop: "25.5px" } }),
|
|
1459
|
+
/* @__PURE__ */ e("div", { className: B.stepsWrapper, children: /* @__PURE__ */ e(
|
|
1450
1460
|
l1,
|
|
1451
1461
|
{
|
|
1452
1462
|
steps: x,
|
|
1453
1463
|
pathId: l,
|
|
1454
|
-
onAddStep: n ??
|
|
1464
|
+
onAddStep: n ?? C,
|
|
1455
1465
|
onAddTrigger: o,
|
|
1456
|
-
onAddCondition: i ??
|
|
1466
|
+
onAddCondition: i ?? C,
|
|
1457
1467
|
onAddLoop: r,
|
|
1458
1468
|
onDeleteStep: c,
|
|
1459
|
-
onUpdateFilter: a ??
|
|
1460
|
-
onSelectStep: d ??
|
|
1469
|
+
onUpdateFilter: a ?? C,
|
|
1470
|
+
onSelectStep: d ?? C,
|
|
1461
1471
|
isDescendent: !0
|
|
1462
1472
|
}
|
|
1463
1473
|
) })
|
|
1464
1474
|
] })
|
|
1465
1475
|
] });
|
|
1466
|
-
},
|
|
1467
|
-
container:
|
|
1468
|
-
},
|
|
1469
|
-
process:
|
|
1476
|
+
}, Ie = "_container_kielx_1", be = {
|
|
1477
|
+
container: Ie
|
|
1478
|
+
}, Ee = ({
|
|
1479
|
+
process: t,
|
|
1470
1480
|
addMultipleTriggers: n,
|
|
1471
1481
|
onAddStep: o,
|
|
1472
1482
|
onAddTrigger: i,
|
|
@@ -1476,25 +1486,25 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1476
1486
|
onDeleteTrigger: d,
|
|
1477
1487
|
onDeleteStep: s,
|
|
1478
1488
|
onUpdateFilter: l,
|
|
1479
|
-
onSelectStep:
|
|
1489
|
+
onSelectStep: g
|
|
1480
1490
|
}) => {
|
|
1481
|
-
const [b,
|
|
1482
|
-
return /* @__PURE__ */
|
|
1483
|
-
/* @__PURE__ */
|
|
1484
|
-
|
|
1491
|
+
const [b, _] = E(0);
|
|
1492
|
+
return /* @__PURE__ */ h("div", { className: be.container, children: [
|
|
1493
|
+
/* @__PURE__ */ e(
|
|
1494
|
+
kt,
|
|
1485
1495
|
{
|
|
1486
|
-
steps:
|
|
1496
|
+
steps: t.triggers,
|
|
1487
1497
|
onAddTrigger: n,
|
|
1488
1498
|
onUpdateFilter: l,
|
|
1489
1499
|
onDeleteTrigger: d,
|
|
1490
|
-
onSelectStep:
|
|
1491
|
-
onCenterYUpdate:
|
|
1500
|
+
onSelectStep: g,
|
|
1501
|
+
onCenterYUpdate: _
|
|
1492
1502
|
}
|
|
1493
1503
|
),
|
|
1494
|
-
|
|
1504
|
+
t.steps.length > 0 ? /* @__PURE__ */ e(
|
|
1495
1505
|
l1,
|
|
1496
1506
|
{
|
|
1497
|
-
steps:
|
|
1507
|
+
steps: t.steps,
|
|
1498
1508
|
centerY: b,
|
|
1499
1509
|
onAddStep: o,
|
|
1500
1510
|
onAddTrigger: i,
|
|
@@ -1503,11 +1513,11 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1503
1513
|
onResize: a,
|
|
1504
1514
|
onDeleteStep: s,
|
|
1505
1515
|
onUpdateFilter: l,
|
|
1506
|
-
onSelectStep:
|
|
1516
|
+
onSelectStep: g,
|
|
1507
1517
|
isDescendent: !1,
|
|
1508
1518
|
pathId: void 0
|
|
1509
1519
|
}
|
|
1510
|
-
) : /* @__PURE__ */
|
|
1520
|
+
) : /* @__PURE__ */ e(
|
|
1511
1521
|
Z,
|
|
1512
1522
|
{
|
|
1513
1523
|
onAddStep: () => o(),
|
|
@@ -1523,88 +1533,88 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1523
1533
|
)
|
|
1524
1534
|
] });
|
|
1525
1535
|
};
|
|
1526
|
-
class
|
|
1536
|
+
class Ne extends Error {
|
|
1527
1537
|
constructor(n) {
|
|
1528
1538
|
super(n), this.name = "AddStepError";
|
|
1529
1539
|
}
|
|
1530
1540
|
}
|
|
1531
|
-
const m1 = (
|
|
1541
|
+
const m1 = (t) => "condition" in t && typeof t.condition == "string", y1 = (t, n, o, i) => {
|
|
1532
1542
|
const r = i === "prepend" ? n : n + 1;
|
|
1533
|
-
return [...
|
|
1534
|
-
}, c1 = (
|
|
1535
|
-
for (let r = 0; r <
|
|
1536
|
-
if (
|
|
1537
|
-
return
|
|
1538
|
-
const c =
|
|
1543
|
+
return [...t.slice(0, r), o, ...t.slice(r)];
|
|
1544
|
+
}, c1 = (t, n, o, i) => {
|
|
1545
|
+
for (let r = 0; r < t.length; r++) {
|
|
1546
|
+
if (t[r].localId === n)
|
|
1547
|
+
return y1(t, r, i, o);
|
|
1548
|
+
const c = t[r], a = c.steps?.length && c1(c.steps, n, o, i);
|
|
1539
1549
|
if (a)
|
|
1540
|
-
return
|
|
1550
|
+
return t.map(
|
|
1541
1551
|
(s, l) => l === r ? { ...s, steps: a } : s
|
|
1542
1552
|
);
|
|
1543
|
-
const d = c.paths?.length &&
|
|
1553
|
+
const d = c.paths?.length && I1(c.paths, n, o, i);
|
|
1544
1554
|
if (d)
|
|
1545
|
-
return
|
|
1555
|
+
return t.map(
|
|
1546
1556
|
(s, l) => l === r ? { ...s, paths: d } : s
|
|
1547
1557
|
);
|
|
1548
1558
|
}
|
|
1549
1559
|
return null;
|
|
1550
|
-
},
|
|
1551
|
-
const i =
|
|
1552
|
-
return { ...
|
|
1553
|
-
},
|
|
1554
|
-
for (let r = 0; r <
|
|
1555
|
-
const c =
|
|
1560
|
+
}, ke = (t, n, o) => {
|
|
1561
|
+
const i = t.steps ?? [], r = n === "prepend" ? [o, ...i] : [...i, o];
|
|
1562
|
+
return { ...t, steps: r };
|
|
1563
|
+
}, I1 = (t, n, o, i) => {
|
|
1564
|
+
for (let r = 0; r < t.length; r++) {
|
|
1565
|
+
const c = t[r];
|
|
1556
1566
|
if (c.localId === n)
|
|
1557
|
-
return m1(c) ?
|
|
1558
|
-
(a, d) => d === r ?
|
|
1559
|
-
) :
|
|
1567
|
+
return m1(c) ? t.map(
|
|
1568
|
+
(a, d) => d === r ? ke(c, o, i) : a
|
|
1569
|
+
) : y1(t, r, i, o);
|
|
1560
1570
|
if (m1(c)) {
|
|
1561
1571
|
const a = c.steps?.length && c1(c.steps, n, o, i);
|
|
1562
1572
|
if (a)
|
|
1563
|
-
return
|
|
1573
|
+
return t.map(
|
|
1564
1574
|
(s, l) => l === r ? { ...s, steps: a } : s
|
|
1565
1575
|
);
|
|
1566
|
-
const d = c.paths?.length &&
|
|
1576
|
+
const d = c.paths?.length && I1(c.paths, n, o, i);
|
|
1567
1577
|
if (d)
|
|
1568
|
-
return
|
|
1578
|
+
return t.map(
|
|
1569
1579
|
(s, l) => l === r ? { ...s, paths: d } : s
|
|
1570
1580
|
);
|
|
1571
1581
|
}
|
|
1572
1582
|
}
|
|
1573
1583
|
return null;
|
|
1574
|
-
}, $
|
|
1575
|
-
const r = c1(
|
|
1584
|
+
}, $e = (t, n, o, i) => {
|
|
1585
|
+
const r = c1(t.steps, n, o, i);
|
|
1576
1586
|
if (r)
|
|
1577
|
-
return { ...
|
|
1578
|
-
throw new
|
|
1579
|
-
},
|
|
1580
|
-
...
|
|
1581
|
-
...
|
|
1582
|
-
...
|
|
1583
|
-
paths:
|
|
1587
|
+
return { ...t, steps: r };
|
|
1588
|
+
throw new Ne(`Step or path with id "${n}" not found`);
|
|
1589
|
+
}, b1 = (t, n) => ({
|
|
1590
|
+
...t,
|
|
1591
|
+
...t.steps != null && { steps: a1(t.steps, n) },
|
|
1592
|
+
...t.paths != null && {
|
|
1593
|
+
paths: t.paths.map((o) => b1(o, n))
|
|
1584
1594
|
}
|
|
1585
|
-
}), a1 = (
|
|
1595
|
+
}), a1 = (t, n) => t.filter((o) => o.localId !== n).map((o) => ({
|
|
1586
1596
|
...o,
|
|
1587
1597
|
...o.steps != null && { steps: a1(o.steps, n) },
|
|
1588
1598
|
...o.paths != null && {
|
|
1589
|
-
paths: o.paths.map((i) =>
|
|
1599
|
+
paths: o.paths.map((i) => b1(i, n))
|
|
1590
1600
|
}
|
|
1591
|
-
})),
|
|
1592
|
-
const o = a1(
|
|
1601
|
+
})), Te = (t, n) => {
|
|
1602
|
+
const o = a1(t.steps, n);
|
|
1593
1603
|
return {
|
|
1594
|
-
...
|
|
1604
|
+
...t,
|
|
1595
1605
|
steps: o
|
|
1596
1606
|
};
|
|
1597
1607
|
};
|
|
1598
1608
|
export {
|
|
1599
|
-
|
|
1600
|
-
|
|
1609
|
+
Ne as AddStepError,
|
|
1610
|
+
ye as Iterator,
|
|
1601
1611
|
Q as Menu,
|
|
1602
|
-
|
|
1603
|
-
|
|
1612
|
+
Le as MenuProvider,
|
|
1613
|
+
Ee as ProcessDiagram,
|
|
1604
1614
|
s1 as ProcessStep,
|
|
1605
|
-
|
|
1606
|
-
$
|
|
1607
|
-
|
|
1615
|
+
kt as Trigger,
|
|
1616
|
+
$e as addStep,
|
|
1617
|
+
Te as deleteStep,
|
|
1608
1618
|
r1 as useMenuProvider
|
|
1609
1619
|
};
|
|
1610
1620
|
//# sourceMappingURL=index.mjs.map
|