@emporix/process-diagram 2.0.0-beta.2 → 2.0.0-beta.3
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +596 -587
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import z, { forwardRef as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
const
|
|
5
|
-
container:
|
|
6
|
-
step:
|
|
7
|
-
selected:
|
|
8
|
-
selectedInvalid:
|
|
9
|
-
isSet:
|
|
10
|
-
invalid:
|
|
11
|
-
filterFlag:
|
|
12
|
-
title:
|
|
13
|
-
icon:
|
|
14
|
-
content:
|
|
15
|
-
dotsButton:
|
|
1
|
+
import { jsxs as h, Fragment as n1, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import z, { forwardRef as k1, useState as E, useRef as $, useCallback as D, useImperativeHandle as B1, useEffect as q, createContext as P1, useMemo as S, useContext as M1, useLayoutEffect as L1 } from "react";
|
|
3
|
+
import { createPortal as E1 } from "react-dom";
|
|
4
|
+
const $1 = "_container_8wfnz_1", T1 = "_step_8wfnz_7", O1 = "_selected_8wfnz_23", H1 = "_selectedInvalid_8wfnz_29", S1 = "_isSet_8wfnz_35", W1 = "_invalid_8wfnz_39", z1 = "_filterFlag_8wfnz_45", R1 = "_title_8wfnz_73", j1 = "_icon_8wfnz_90", D1 = "_content_8wfnz_108", Z1 = "_dotsButton_8wfnz_114", N = {
|
|
5
|
+
container: $1,
|
|
6
|
+
step: T1,
|
|
7
|
+
selected: O1,
|
|
8
|
+
selectedInvalid: H1,
|
|
9
|
+
isSet: S1,
|
|
10
|
+
invalid: W1,
|
|
11
|
+
filterFlag: z1,
|
|
12
|
+
title: R1,
|
|
13
|
+
icon: j1,
|
|
14
|
+
content: D1,
|
|
15
|
+
dotsButton: Z1
|
|
16
16
|
};
|
|
17
17
|
var f1 = {
|
|
18
18
|
color: void 0,
|
|
@@ -20,247 +20,247 @@ var f1 = {
|
|
|
20
20
|
className: void 0,
|
|
21
21
|
style: void 0,
|
|
22
22
|
attr: void 0
|
|
23
|
-
}, p1 = z.createContext && /* @__PURE__ */ z.createContext(f1),
|
|
24
|
-
function
|
|
25
|
-
if (
|
|
26
|
-
var o =
|
|
23
|
+
}, p1 = z.createContext && /* @__PURE__ */ z.createContext(f1), V1 = ["attr", "size", "title"];
|
|
24
|
+
function F1(t, n) {
|
|
25
|
+
if (t == null) return {};
|
|
26
|
+
var o = q1(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 q1(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
44
|
function X() {
|
|
45
|
-
return X = Object.assign ? Object.assign.bind() : function(
|
|
45
|
+
return X = 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
|
|
51
|
+
return t;
|
|
52
52
|
}, X.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 G(
|
|
64
|
+
function G(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
|
+
Y1(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 Y1(t, n, o) {
|
|
76
|
+
return n = A1(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 A1(t) {
|
|
79
|
+
var n = X1(t, "string");
|
|
80
80
|
return typeof n == "symbol" ? n : n + "";
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
if (typeof
|
|
84
|
-
var o =
|
|
82
|
+
function X1(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 g1(
|
|
93
|
-
return
|
|
92
|
+
function g1(t) {
|
|
93
|
+
return t && t.map((n, o) => /* @__PURE__ */ z.createElement(n.tag, G({
|
|
94
94
|
key: o
|
|
95
95
|
}, n.attr), g1(n.child)));
|
|
96
96
|
}
|
|
97
|
-
function V(
|
|
98
|
-
return (n) => /* @__PURE__ */ z.createElement(
|
|
99
|
-
attr: G({},
|
|
100
|
-
}, n), g1(
|
|
97
|
+
function V(t) {
|
|
98
|
+
return (n) => /* @__PURE__ */ z.createElement(G1, X({
|
|
99
|
+
attr: G({}, t.attr)
|
|
100
|
+
}, n), g1(t.child));
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function G1(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__ */ z.createElement("svg", X({
|
|
110
110
|
stroke: "currentColor",
|
|
111
111
|
fill: "currentColor",
|
|
112
112
|
strokeWidth: "0"
|
|
113
113
|
}, o.attr, i, a, {
|
|
114
114
|
className: s,
|
|
115
115
|
style: G(G({
|
|
116
|
-
color:
|
|
117
|
-
}, o.style),
|
|
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__ */ z.createElement("title", null, c),
|
|
121
|
+
}), c && /* @__PURE__ */ z.createElement("title", null, c), t.children);
|
|
122
122
|
};
|
|
123
123
|
return p1 !== void 0 ? /* @__PURE__ */ z.createElement(p1.Consumer, null, (o) => n(o)) : n(f1);
|
|
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 K1(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 K(
|
|
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 K(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), [f, b] = E({ top: 0, left: 0 }),
|
|
156
|
+
}, Q = k1(function({ model: n, popup: o = !0, onHide: i, onClick: r }, c) {
|
|
157
|
+
const [a, d] = E(!1), [s, l] = E(!1), [f, b] = E({ top: 0, left: 0 }), _ = $(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,
|
|
179
|
+
[p, x, I]
|
|
180
180
|
), q(() => {
|
|
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(z.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
229
|
style: { top: f.top, left: f.left },
|
|
230
|
-
onAnimationEnd:
|
|
231
|
-
onClick: (
|
|
232
|
-
|
|
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,9 +342,9 @@ 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);
|
|
@@ -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,
|
|
@@ -397,115 +397,115 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
|
|
|
397
397
|
onUpdateFilter: l,
|
|
398
398
|
onSelectStep: f,
|
|
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 = S(
|
|
403
403
|
() => [
|
|
404
404
|
{
|
|
405
405
|
label: "Add Step Filter",
|
|
406
|
-
icon: /* @__PURE__ */
|
|
406
|
+
icon: /* @__PURE__ */ e("div", { className: "mr-2 flex items-center justify-center", children: /* @__PURE__ */ e(h1, {}) }),
|
|
407
407
|
command: (g) => {
|
|
408
|
-
g?.originalEvent?.stopPropagation(), l && l(
|
|
408
|
+
g?.originalEvent?.stopPropagation(), l && l(x);
|
|
409
409
|
},
|
|
410
|
-
template:
|
|
410
|
+
template: w
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
413
|
label: "Remove",
|
|
414
|
-
icon: /* @__PURE__ */
|
|
414
|
+
icon: /* @__PURE__ */ e(J, { color: "#3B64A0", size: 18 }),
|
|
415
415
|
command: (g) => {
|
|
416
|
-
g?.originalEvent?.stopPropagation(), s && s(
|
|
416
|
+
g?.originalEvent?.stopPropagation(), s && s(x);
|
|
417
417
|
},
|
|
418
|
-
template:
|
|
418
|
+
template: w
|
|
419
419
|
}
|
|
420
420
|
],
|
|
421
|
-
[l, s,
|
|
422
|
-
),
|
|
423
|
-
g.stopPropagation(), p(
|
|
424
|
-
}, L = S(() => o &&
|
|
425
|
-
return /* @__PURE__ */
|
|
426
|
-
/* @__PURE__ */
|
|
427
|
-
/* @__PURE__ */
|
|
428
|
-
/* @__PURE__ */
|
|
429
|
-
/* @__PURE__ */
|
|
421
|
+
[l, s, x, w]
|
|
422
|
+
), m = S(() => d !== void 0 ? d : v, [d, v]), y = (g) => {
|
|
423
|
+
g.stopPropagation(), p(C, g);
|
|
424
|
+
}, L = S(() => o && _ ? N.step + " " + N.selectedInvalid : o ? N.step + " " + N.selected : n ? N.step + " " + N.isSet : _ ? N.step + " " + N.invalid : N.step, [n, o, _]), u = S(() => _ ? /* @__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: () => f(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__ */
|
|
438
|
+
children: /* @__PURE__ */ e(
|
|
439
439
|
K,
|
|
440
440
|
{
|
|
441
441
|
className: N.dots,
|
|
442
|
-
color:
|
|
442
|
+
color: _ ? "#E32012" : "#3B64A0"
|
|
443
443
|
}
|
|
444
444
|
)
|
|
445
445
|
}
|
|
446
446
|
),
|
|
447
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ e(
|
|
448
448
|
Q,
|
|
449
449
|
{
|
|
450
|
-
model:
|
|
450
|
+
model: m,
|
|
451
451
|
popup: !0,
|
|
452
|
-
ref:
|
|
452
|
+
ref: C,
|
|
453
453
|
onClick: (g) => g.stopPropagation(),
|
|
454
|
-
onHide: () =>
|
|
454
|
+
onHide: () => I(C)
|
|
455
455
|
}
|
|
456
456
|
)
|
|
457
457
|
] }),
|
|
458
|
-
i && /* @__PURE__ */
|
|
458
|
+
i && /* @__PURE__ */ h(
|
|
459
459
|
"div",
|
|
460
460
|
{
|
|
461
461
|
className: N.filterFlag,
|
|
462
462
|
role: "button",
|
|
463
463
|
tabIndex: 0,
|
|
464
464
|
onClick: () => {
|
|
465
|
-
l && l(
|
|
465
|
+
l && l(x);
|
|
466
466
|
},
|
|
467
467
|
onKeyDown: (g) => {
|
|
468
|
-
(g.key === "Enter" || g.key === " ") && l && (g.preventDefault(), l(
|
|
468
|
+
(g.key === "Enter" || g.key === " ") && l && (g.preventDefault(), l(x));
|
|
469
469
|
},
|
|
470
470
|
children: [
|
|
471
|
-
/* @__PURE__ */
|
|
472
|
-
/* @__PURE__ */
|
|
473
|
-
/* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ e(h1, { color: "#3B64A0" }),
|
|
472
|
+
/* @__PURE__ */ e("span", { children: "Filter" }),
|
|
473
|
+
/* @__PURE__ */ e(
|
|
474
474
|
K,
|
|
475
475
|
{
|
|
476
476
|
className: N.dots,
|
|
477
|
-
color:
|
|
477
|
+
color: _ ? "#E32012" : "#3B64A0",
|
|
478
478
|
style: { height: "10px" }
|
|
479
479
|
}
|
|
480
480
|
)
|
|
481
481
|
]
|
|
482
482
|
}
|
|
483
483
|
),
|
|
484
|
-
b && /* @__PURE__ */
|
|
484
|
+
b && /* @__PURE__ */ e("div", { className: N.subtitle, children: b })
|
|
485
485
|
] }) });
|
|
486
|
-
},
|
|
487
|
-
/* @__PURE__ */
|
|
488
|
-
/* @__PURE__ */
|
|
489
|
-
/* @__PURE__ */
|
|
486
|
+
}, ct = () => /* @__PURE__ */ h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
|
|
487
|
+
/* @__PURE__ */ h("g", { clipPath: "url(#clip0_6551_9169)", children: [
|
|
488
|
+
/* @__PURE__ */ e("rect", { width: "24", height: "24", rx: "12", fill: "#0C971F" }),
|
|
489
|
+
/* @__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
490
|
] }),
|
|
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
|
-
},
|
|
491
|
+
/* @__PURE__ */ e("rect", { x: "0.75", y: "0.75", width: "22.5", height: "22.5", rx: "11.25", stroke: "#14BC2B", strokeWidth: "1.5" }),
|
|
492
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_6551_9169", children: /* @__PURE__ */ e("rect", { width: "24", height: "24", rx: "12", fill: "white" }) }) })
|
|
493
|
+
] }), at = "_multipleTriggersIcon_oxhdi_1", dt = {
|
|
494
|
+
multipleTriggersIcon: at
|
|
495
|
+
}, 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", ft = "_stepsContainer_kfg1y_25", gt = "_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 = {
|
|
496
|
+
trigger: ut,
|
|
497
|
+
title: ht,
|
|
498
|
+
empty: Ct,
|
|
499
|
+
triggerContainer: mt,
|
|
500
|
+
stepsContainer: ft,
|
|
501
|
+
stepItem: gt,
|
|
502
|
+
curvesSvg: vt,
|
|
503
|
+
centralNode: _t,
|
|
504
|
+
iconWrapper: xt,
|
|
505
|
+
fadeIn: wt,
|
|
506
|
+
fadeOut: yt,
|
|
507
|
+
operationContainer: It
|
|
508
|
+
}, bt = () => /* @__PURE__ */ e(
|
|
509
509
|
"div",
|
|
510
510
|
{
|
|
511
511
|
style: {
|
|
@@ -515,8 +515,8 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
|
|
|
515
515
|
borderTop: "1px solid #a1bbdc"
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
),
|
|
519
|
-
steps:
|
|
518
|
+
), Nt = 80, Y = 34, kt = ({
|
|
519
|
+
steps: t,
|
|
520
520
|
title: n,
|
|
521
521
|
className: o,
|
|
522
522
|
onDeleteTrigger: i,
|
|
@@ -525,103 +525,103 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
|
|
|
525
525
|
onUpdateFilter: a,
|
|
526
526
|
onCenterYUpdate: d
|
|
527
527
|
}) => {
|
|
528
|
-
const s = $(null), l = $([]), [f, b] = E([]), [
|
|
528
|
+
const s = $(null), l = $([]), [f, b] = E([]), [_, x] = E({ width: 0, height: 0 }), [C, p] = E(!1), [I, w] = E(!1), v = $(null);
|
|
529
529
|
q(() => {
|
|
530
|
-
const
|
|
530
|
+
const u = () => {
|
|
531
531
|
if (!s.current) return;
|
|
532
532
|
const g = [];
|
|
533
|
-
if (l.current.forEach((
|
|
534
|
-
if (
|
|
535
|
-
const
|
|
533
|
+
if (l.current.forEach((P, T) => {
|
|
534
|
+
if (P && s.current) {
|
|
535
|
+
const k = s.current.getBoundingClientRect(), H = P.getBoundingClientRect();
|
|
536
536
|
g.push({
|
|
537
|
-
localId:
|
|
538
|
-
top:
|
|
539
|
-
right:
|
|
540
|
-
centerY:
|
|
537
|
+
localId: t[T]?.localId ?? `step-${T}`,
|
|
538
|
+
top: H.top - k.top,
|
|
539
|
+
right: H.right - k.left,
|
|
540
|
+
centerY: H.top - k.top + H.height / 2
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
543
|
}), b(g), s.current && g.length > 0) {
|
|
544
|
-
const
|
|
545
|
-
...g.map((W,
|
|
546
|
-
), U = Math.max(...g.map((W) => W.right)) + 0,
|
|
547
|
-
|
|
548
|
-
|
|
544
|
+
const P = s.current.getBoundingClientRect(), T = Math.min(...g.map((W) => W.top)), k = l.current.filter(Boolean).map((W) => W?.offsetHeight || 68), H = Math.max(
|
|
545
|
+
...g.map((W, N1) => W.top + (k[N1] || 68))
|
|
546
|
+
), U = Math.max(...g.map((W) => W.right)) + 0, t1 = Math.max(
|
|
547
|
+
P.height,
|
|
548
|
+
H - T + 100
|
|
549
549
|
);
|
|
550
|
-
|
|
550
|
+
x({
|
|
551
551
|
width: U,
|
|
552
|
-
height:
|
|
552
|
+
height: t1
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
555
|
};
|
|
556
|
-
return
|
|
557
|
-
}, [
|
|
558
|
-
let
|
|
559
|
-
if (
|
|
560
|
-
|
|
556
|
+
return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
|
|
557
|
+
}, [t]), q(() => {
|
|
558
|
+
let u = !0;
|
|
559
|
+
if (C) {
|
|
560
|
+
v.current && (clearTimeout(v.current), v.current = null);
|
|
561
561
|
const g = setTimeout(() => {
|
|
562
|
-
|
|
562
|
+
u && w(!0);
|
|
563
563
|
}, 0);
|
|
564
564
|
return () => {
|
|
565
|
-
|
|
565
|
+
u = !1, clearTimeout(g);
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
|
-
return
|
|
569
|
-
|
|
568
|
+
return v.current = setTimeout(() => {
|
|
569
|
+
u && w(!1);
|
|
570
570
|
}, 140), () => {
|
|
571
|
-
|
|
571
|
+
u = !1, v.current && (clearTimeout(v.current), v.current = null);
|
|
572
572
|
};
|
|
573
|
-
}, [
|
|
574
|
-
const
|
|
573
|
+
}, [C]);
|
|
574
|
+
const m = f.length > 0 ? Nt : 0, y = S(() => f.length > 1 ? f.reduce((u, g) => u + g.top + Y, 0) / f.length : f.length === 1 ? f[0].top + Y : 0, [f]);
|
|
575
575
|
if (q(() => {
|
|
576
|
-
d?.(
|
|
577
|
-
}, [
|
|
578
|
-
return /* @__PURE__ */
|
|
579
|
-
n && /* @__PURE__ */
|
|
580
|
-
/* @__PURE__ */
|
|
576
|
+
d?.(y);
|
|
577
|
+
}, [y, d]), t.length === 0)
|
|
578
|
+
return /* @__PURE__ */ h("div", { className: `${M.trigger} ${o || ""}`, children: [
|
|
579
|
+
n && /* @__PURE__ */ e("h3", { className: M.title, children: n }),
|
|
580
|
+
/* @__PURE__ */ e("div", { className: M.empty, children: "No steps" })
|
|
581
581
|
] });
|
|
582
|
-
const L = (
|
|
583
|
-
const
|
|
584
|
-
return `M ${
|
|
582
|
+
const L = (u, g, P, T) => {
|
|
583
|
+
const k = P - u, H = Math.min(k * 0.6, 60), d1 = u + H, U = g, t1 = P - H;
|
|
584
|
+
return `M ${u} ${g} C ${d1} ${U}, ${t1} ${T}, ${P} ${T}`;
|
|
585
585
|
};
|
|
586
|
-
return /* @__PURE__ */
|
|
587
|
-
n && /* @__PURE__ */
|
|
588
|
-
/* @__PURE__ */
|
|
589
|
-
/* @__PURE__ */
|
|
586
|
+
return /* @__PURE__ */ h("div", { className: `${M.trigger} ${o || ""}`, ref: s, children: [
|
|
587
|
+
n && /* @__PURE__ */ e("h3", { className: M.title, children: n }),
|
|
588
|
+
/* @__PURE__ */ h("div", { className: M.triggerContainer, children: [
|
|
589
|
+
/* @__PURE__ */ e("div", { className: M.stepsContainer, children: t.map((u, g) => /* @__PURE__ */ e(
|
|
590
590
|
"div",
|
|
591
591
|
{
|
|
592
|
-
ref: (
|
|
593
|
-
l.current[g] =
|
|
592
|
+
ref: (P) => {
|
|
593
|
+
l.current[g] = P;
|
|
594
594
|
},
|
|
595
|
-
children: /* @__PURE__ */
|
|
595
|
+
children: /* @__PURE__ */ e(
|
|
596
596
|
s1,
|
|
597
597
|
{
|
|
598
|
-
title:
|
|
599
|
-
className:
|
|
600
|
-
localId:
|
|
598
|
+
title: u.title,
|
|
599
|
+
className: M.stepItem,
|
|
600
|
+
localId: u.localId,
|
|
601
601
|
idx: g,
|
|
602
|
-
isSet:
|
|
603
|
-
isSelected:
|
|
604
|
-
isInvalid:
|
|
605
|
-
isFilter:
|
|
606
|
-
icon:
|
|
602
|
+
isSet: u.isSet,
|
|
603
|
+
isSelected: u.isSelected,
|
|
604
|
+
isInvalid: u.isInvalid,
|
|
605
|
+
isFilter: u.isFilter,
|
|
606
|
+
icon: u.icon,
|
|
607
607
|
onSelectStep: c,
|
|
608
608
|
onUpdateFilter: a,
|
|
609
609
|
contextMenuItems: [
|
|
610
610
|
{
|
|
611
611
|
label: "Delete",
|
|
612
|
-
icon: /* @__PURE__ */
|
|
612
|
+
icon: /* @__PURE__ */ e(J, { className: "mr-2", color: "#3B64A0", size: 18 }),
|
|
613
613
|
command: () => {
|
|
614
|
-
i?.(
|
|
614
|
+
i?.(u.localId);
|
|
615
615
|
},
|
|
616
|
-
disabled:
|
|
616
|
+
disabled: t.length === 1
|
|
617
617
|
},
|
|
618
618
|
{
|
|
619
619
|
label: "",
|
|
620
|
-
template: () => /* @__PURE__ */
|
|
620
|
+
template: () => /* @__PURE__ */ e(bt, {})
|
|
621
621
|
},
|
|
622
622
|
{
|
|
623
623
|
label: "Add More Triggers",
|
|
624
|
-
icon: /* @__PURE__ */
|
|
624
|
+
icon: /* @__PURE__ */ e(K1, { className: "mr-2", color: "#3B64A0", size: 18 }),
|
|
625
625
|
command: () => {
|
|
626
626
|
r?.();
|
|
627
627
|
}
|
|
@@ -630,73 +630,73 @@ const K1 = "_panel_19663_1", J1 = "_panelExiting_19663_13", Q1 = "_menuItem_1966
|
|
|
630
630
|
}
|
|
631
631
|
)
|
|
632
632
|
},
|
|
633
|
-
|
|
633
|
+
u.localId
|
|
634
634
|
)) }),
|
|
635
|
-
/* @__PURE__ */
|
|
635
|
+
/* @__PURE__ */ e("div", { style: { position: "relative" }, children: f.length > 1 && /* @__PURE__ */ e(
|
|
636
636
|
"svg",
|
|
637
637
|
{
|
|
638
|
-
className:
|
|
639
|
-
width:
|
|
640
|
-
height:
|
|
641
|
-
children: f.map((
|
|
642
|
-
const
|
|
643
|
-
return /* @__PURE__ */
|
|
638
|
+
className: M.curvesSvg,
|
|
639
|
+
width: _.width,
|
|
640
|
+
height: _.height,
|
|
641
|
+
children: f.map((u) => {
|
|
642
|
+
const P = f.length === 1 ? f[0].top + Y : u.top + Y;
|
|
643
|
+
return /* @__PURE__ */ e(
|
|
644
644
|
"path",
|
|
645
645
|
{
|
|
646
|
-
d: L(0,
|
|
646
|
+
d: L(0, P, m, y),
|
|
647
647
|
stroke: "#3b64a0",
|
|
648
648
|
strokeWidth: "2",
|
|
649
649
|
fill: "none",
|
|
650
650
|
strokeLinecap: "round"
|
|
651
651
|
},
|
|
652
|
-
|
|
652
|
+
u.localId
|
|
653
653
|
);
|
|
654
654
|
})
|
|
655
655
|
}
|
|
656
656
|
) }),
|
|
657
|
-
f.length > 1 ? /* @__PURE__ */
|
|
658
|
-
/* @__PURE__ */
|
|
657
|
+
f.length > 1 ? /* @__PURE__ */ h("div", { style: { position: "relative", marginRight: "140px" }, children: [
|
|
658
|
+
/* @__PURE__ */ e(
|
|
659
659
|
"div",
|
|
660
660
|
{
|
|
661
|
-
className:
|
|
661
|
+
className: M.centralNode,
|
|
662
662
|
style: {
|
|
663
|
-
"--node-x": `${
|
|
664
|
-
"--node-y": `${
|
|
663
|
+
"--node-x": `${m}px`,
|
|
664
|
+
"--node-y": `${y}px`
|
|
665
665
|
},
|
|
666
666
|
onMouseEnter: () => p(!0),
|
|
667
667
|
onMouseLeave: () => p(!1),
|
|
668
|
-
children:
|
|
668
|
+
children: I ? /* @__PURE__ */ e(
|
|
669
669
|
"div",
|
|
670
670
|
{
|
|
671
|
-
className: `${
|
|
671
|
+
className: `${M.iconWrapper} ${C ? M.fadeIn : M.fadeOut}`,
|
|
672
672
|
onClick: r,
|
|
673
|
-
children: /* @__PURE__ */
|
|
673
|
+
children: /* @__PURE__ */ e(ct, {})
|
|
674
674
|
}
|
|
675
675
|
) : null
|
|
676
676
|
}
|
|
677
677
|
),
|
|
678
|
-
/* @__PURE__ */
|
|
678
|
+
/* @__PURE__ */ e(
|
|
679
679
|
"div",
|
|
680
680
|
{
|
|
681
|
-
className:
|
|
681
|
+
className: M.operationContainer,
|
|
682
682
|
style: {
|
|
683
|
-
"--op-x": `${
|
|
684
|
-
"--op-y": `${
|
|
683
|
+
"--op-x": `${m + 16}px`,
|
|
684
|
+
"--op-y": `${y}px`
|
|
685
685
|
},
|
|
686
|
-
children: /* @__PURE__ */
|
|
686
|
+
children: /* @__PURE__ */ e(pt, {})
|
|
687
687
|
}
|
|
688
688
|
)
|
|
689
689
|
] }) : null
|
|
690
690
|
] })
|
|
691
691
|
] });
|
|
692
692
|
};
|
|
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: [] }] })(
|
|
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
695
|
}
|
|
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: [] }] })(
|
|
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
698
|
}
|
|
699
|
-
const
|
|
699
|
+
const Mt = () => /* @__PURE__ */ h(
|
|
700
700
|
"svg",
|
|
701
701
|
{
|
|
702
702
|
width: "24",
|
|
@@ -705,7 +705,7 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
705
705
|
fill: "none",
|
|
706
706
|
xmlns: "http://www.w3.org/2000/svg",
|
|
707
707
|
children: [
|
|
708
|
-
/* @__PURE__ */
|
|
708
|
+
/* @__PURE__ */ e(
|
|
709
709
|
"path",
|
|
710
710
|
{
|
|
711
711
|
d: "M6 12L18 12",
|
|
@@ -714,7 +714,7 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
714
714
|
strokeLinecap: "round"
|
|
715
715
|
}
|
|
716
716
|
),
|
|
717
|
-
/* @__PURE__ */
|
|
717
|
+
/* @__PURE__ */ e(
|
|
718
718
|
"path",
|
|
719
719
|
{
|
|
720
720
|
d: "M12 6V18",
|
|
@@ -725,12 +725,12 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
725
725
|
)
|
|
726
726
|
]
|
|
727
727
|
}
|
|
728
|
-
),
|
|
729
|
-
stepLinkIcon:
|
|
730
|
-
stepLinkLine:
|
|
731
|
-
stepLinkContainer:
|
|
728
|
+
), Lt = "_stepLinkIcon_18u2g_1", Et = "_stepLinkLine_18u2g_15", $t = "_stepLinkContainer_18u2g_39", A = {
|
|
729
|
+
stepLinkIcon: Lt,
|
|
730
|
+
stepLinkLine: Et,
|
|
731
|
+
stepLinkContainer: $t
|
|
732
732
|
}, Z = ({
|
|
733
|
-
onAddStep:
|
|
733
|
+
onAddStep: t,
|
|
734
734
|
onAddTrigger: n,
|
|
735
735
|
onAddCondition: o,
|
|
736
736
|
onAddLoop: i,
|
|
@@ -743,7 +743,7 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
743
743
|
...c > 0 ? [
|
|
744
744
|
{
|
|
745
745
|
label: "Trigger",
|
|
746
|
-
icon: /* @__PURE__ */
|
|
746
|
+
icon: /* @__PURE__ */ e(Pt, { color: "#3B64A0", size: 18 }),
|
|
747
747
|
command: () => {
|
|
748
748
|
n?.(r, d, "trigger");
|
|
749
749
|
},
|
|
@@ -752,69 +752,69 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
752
752
|
] : [],
|
|
753
753
|
{
|
|
754
754
|
label: "Step",
|
|
755
|
-
icon: /* @__PURE__ */
|
|
756
|
-
command: () =>
|
|
755
|
+
icon: /* @__PURE__ */ e(Bt, { color: "#3B64A0", size: 18 }),
|
|
756
|
+
command: () => t?.(r, d, "append"),
|
|
757
757
|
template: s
|
|
758
758
|
},
|
|
759
759
|
...r ? [
|
|
760
760
|
{
|
|
761
761
|
label: "Condition",
|
|
762
|
-
icon: /* @__PURE__ */
|
|
762
|
+
icon: /* @__PURE__ */ e(rt, { width: 18, height: 18 }),
|
|
763
763
|
command: () => o?.(r, d, "append"),
|
|
764
764
|
template: s
|
|
765
765
|
},
|
|
766
766
|
{
|
|
767
767
|
label: "Loop",
|
|
768
|
-
icon: /* @__PURE__ */
|
|
768
|
+
icon: /* @__PURE__ */ e(st, { width: 18, height: 18 }),
|
|
769
769
|
command: () => i?.(r, d, "append"),
|
|
770
770
|
template: s
|
|
771
771
|
}
|
|
772
772
|
] : []
|
|
773
|
-
], b = (
|
|
774
|
-
l.current?.show(
|
|
773
|
+
], b = (_) => {
|
|
774
|
+
l.current?.show(_);
|
|
775
775
|
};
|
|
776
|
-
return /* @__PURE__ */
|
|
776
|
+
return /* @__PURE__ */ h(
|
|
777
777
|
"div",
|
|
778
778
|
{
|
|
779
779
|
className: A.stepLinkContainer,
|
|
780
780
|
style: { ...a },
|
|
781
781
|
"data-plus-index": c,
|
|
782
782
|
children: [
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ e("div", { className: A.stepLinkLine }),
|
|
784
|
+
/* @__PURE__ */ e(
|
|
785
785
|
"div",
|
|
786
786
|
{
|
|
787
787
|
className: A.stepLinkIcon,
|
|
788
788
|
onClick: b,
|
|
789
789
|
"aria-haspopup": !0,
|
|
790
|
-
children: /* @__PURE__ */
|
|
790
|
+
children: /* @__PURE__ */ e(Mt, {})
|
|
791
791
|
}
|
|
792
792
|
),
|
|
793
|
-
/* @__PURE__ */
|
|
794
|
-
/* @__PURE__ */
|
|
793
|
+
/* @__PURE__ */ e(Q, { model: f, popup: !0, ref: l }),
|
|
794
|
+
/* @__PURE__ */ e("div", { className: A.stepLinkLine })
|
|
795
795
|
]
|
|
796
796
|
}
|
|
797
797
|
);
|
|
798
|
-
},
|
|
799
|
-
steps:
|
|
800
|
-
stepContainer:
|
|
801
|
-
stepContainerWithPaths:
|
|
802
|
-
},
|
|
803
|
-
const r = o -
|
|
804
|
-
return `M ${
|
|
805
|
-
},
|
|
806
|
-
width:
|
|
798
|
+
}, Tt = "_steps_yug55_1", Ot = "_stepContainer_yug55_8", Ht = "_stepContainerWithPaths_yug55_14", e1 = {
|
|
799
|
+
steps: Tt,
|
|
800
|
+
stepContainer: Ot,
|
|
801
|
+
stepContainerWithPaths: Ht
|
|
802
|
+
}, St = (t, n, o, i) => {
|
|
803
|
+
const r = o - t, c = Math.min(r * 0.66, 66), a = t + c, d = n, s = o - c;
|
|
804
|
+
return `M ${t} ${n} C ${a} ${d}, ${s} ${i}, ${o} ${i}`;
|
|
805
|
+
}, Wt = ({
|
|
806
|
+
width: t,
|
|
807
807
|
height: n
|
|
808
808
|
}) => {
|
|
809
|
-
const a =
|
|
810
|
-
return /* @__PURE__ */
|
|
809
|
+
const a = St(0, 1, t, n);
|
|
810
|
+
return /* @__PURE__ */ e("div", { style: { position: "absolute" }, children: /* @__PURE__ */ e(
|
|
811
811
|
"svg",
|
|
812
812
|
{
|
|
813
|
-
width:
|
|
813
|
+
width: t,
|
|
814
814
|
height: n + 1,
|
|
815
|
-
viewBox: `0 0 ${
|
|
815
|
+
viewBox: `0 0 ${t} ${n + 1}`,
|
|
816
816
|
xmlns: "http://www.w3.org/2000/svg",
|
|
817
|
-
children: /* @__PURE__ */
|
|
817
|
+
children: /* @__PURE__ */ e(
|
|
818
818
|
"path",
|
|
819
819
|
{
|
|
820
820
|
d: a,
|
|
@@ -826,69 +826,69 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
826
826
|
)
|
|
827
827
|
}
|
|
828
828
|
) });
|
|
829
|
-
},
|
|
830
|
-
column:
|
|
831
|
-
row:
|
|
832
|
-
stepsContainer:
|
|
833
|
-
},
|
|
834
|
-
wrapper:
|
|
835
|
-
tooltip:
|
|
836
|
-
},
|
|
837
|
-
content:
|
|
829
|
+
}, zt = "_column_1uiy3_1", Rt = "_row_1uiy3_19", jt = "_stepsContainer_1uiy3_24", F = {
|
|
830
|
+
column: zt,
|
|
831
|
+
row: Rt,
|
|
832
|
+
stepsContainer: jt
|
|
833
|
+
}, Dt = "_wrapper_1nl2d_1", Zt = "_tooltip_1nl2d_5", C1 = {
|
|
834
|
+
wrapper: Dt,
|
|
835
|
+
tooltip: Zt
|
|
836
|
+
}, Vt = ({
|
|
837
|
+
content: t,
|
|
838
838
|
children: n,
|
|
839
839
|
maxWidth: o = 500,
|
|
840
840
|
className: i
|
|
841
|
-
}) => /* @__PURE__ */
|
|
841
|
+
}) => /* @__PURE__ */ h(
|
|
842
842
|
"div",
|
|
843
843
|
{
|
|
844
844
|
className: `${C1.wrapper} ${i ?? ""}`.trim(),
|
|
845
845
|
style: { "--tooltip-max-width": `${o}px` },
|
|
846
846
|
children: [
|
|
847
847
|
n,
|
|
848
|
-
|
|
848
|
+
t ? /* @__PURE__ */ e("div", { className: C1.tooltip, role: "tooltip", children: t }) : null
|
|
849
849
|
]
|
|
850
850
|
}
|
|
851
|
-
),
|
|
852
|
-
conditionContainer:
|
|
853
|
-
connectorLine:
|
|
854
|
-
conditionWrapper:
|
|
855
|
-
condition:
|
|
856
|
-
connectorDot:
|
|
857
|
-
},
|
|
858
|
-
expression:
|
|
851
|
+
), Ft = "_conditionContainer_5kl8s_1", qt = "_connectorLine_5kl8s_6", Yt = "_conditionWrapper_5kl8s_12", At = "_condition_5kl8s_1", Xt = "_connectorDot_5kl8s_43", j = {
|
|
852
|
+
conditionContainer: Ft,
|
|
853
|
+
connectorLine: qt,
|
|
854
|
+
conditionWrapper: Yt,
|
|
855
|
+
condition: At,
|
|
856
|
+
connectorDot: Xt
|
|
857
|
+
}, x1 = ({
|
|
858
|
+
expression: t,
|
|
859
859
|
style: n
|
|
860
860
|
}) => {
|
|
861
861
|
const o = $(null), [i, r] = E(!1);
|
|
862
|
-
|
|
862
|
+
L1(() => {
|
|
863
863
|
const a = o.current;
|
|
864
864
|
a && r(a.scrollHeight > a.clientHeight);
|
|
865
|
-
}, [
|
|
866
|
-
const c =
|
|
867
|
-
return /* @__PURE__ */
|
|
868
|
-
/* @__PURE__ */
|
|
869
|
-
/* @__PURE__ */
|
|
870
|
-
/* @__PURE__ */
|
|
871
|
-
/* @__PURE__ */
|
|
865
|
+
}, [t]);
|
|
866
|
+
const c = t && i ? t : "";
|
|
867
|
+
return /* @__PURE__ */ h("div", { className: j.conditionContainer, style: n, children: [
|
|
868
|
+
/* @__PURE__ */ e("div", { className: j.connectorLine }),
|
|
869
|
+
/* @__PURE__ */ e(Vt, { content: c, className: j.conditionWrapper, children: /* @__PURE__ */ e("div", { ref: o, className: j.condition, children: t }) }),
|
|
870
|
+
/* @__PURE__ */ e("div", { className: j.connectorLine }),
|
|
871
|
+
/* @__PURE__ */ e("div", { className: j.connectorDot })
|
|
872
872
|
] });
|
|
873
|
-
},
|
|
874
|
-
ifStatement:
|
|
875
|
-
conditionIcon:
|
|
876
|
-
ifStatementContainer:
|
|
877
|
-
menuButton:
|
|
878
|
-
menuIcon:
|
|
879
|
-
ifdotIcon:
|
|
880
|
-
},
|
|
873
|
+
}, Gt = "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", Kt = "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_1xsn9_1", Qt = "_conditionIcon_1xsn9_7", Ut = "_ifStatementContainer_1xsn9_21", te = "_menuButton_1xsn9_27", ee = "_menuIcon_1xsn9_52", ne = "_ifdotIcon_1xsn9_59", R = {
|
|
874
|
+
ifStatement: Jt,
|
|
875
|
+
conditionIcon: Qt,
|
|
876
|
+
ifStatementContainer: Ut,
|
|
877
|
+
menuButton: te,
|
|
878
|
+
menuIcon: ee,
|
|
879
|
+
ifdotIcon: ne
|
|
880
|
+
}, oe = ({ style: t }) => /* @__PURE__ */ e(
|
|
881
881
|
"div",
|
|
882
882
|
{
|
|
883
883
|
style: {
|
|
884
884
|
width: "100%",
|
|
885
885
|
height: "2px",
|
|
886
886
|
borderTop: "2px solid #3B64A0",
|
|
887
|
-
...
|
|
887
|
+
...t
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
),
|
|
891
|
-
onEdit:
|
|
890
|
+
), ie = ({
|
|
891
|
+
onEdit: t,
|
|
892
892
|
onDelete: n,
|
|
893
893
|
onSelect: o
|
|
894
894
|
}) => {
|
|
@@ -896,38 +896,38 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
896
896
|
() => [
|
|
897
897
|
{
|
|
898
898
|
label: "Edit",
|
|
899
|
-
icon: /* @__PURE__ */
|
|
900
|
-
command: () =>
|
|
899
|
+
icon: /* @__PURE__ */ e(v1, { color: "#3B64A0", size: 18 }),
|
|
900
|
+
command: () => t?.()
|
|
901
901
|
},
|
|
902
902
|
{
|
|
903
903
|
label: "Delete",
|
|
904
|
-
icon: /* @__PURE__ */
|
|
904
|
+
icon: /* @__PURE__ */ e(J, { color: "#3B64A0", size: 18 }),
|
|
905
905
|
command: () => n?.()
|
|
906
906
|
}
|
|
907
907
|
],
|
|
908
|
-
[
|
|
908
|
+
[t, n]
|
|
909
909
|
), d = (l) => {
|
|
910
910
|
l.stopPropagation(), r(i, l);
|
|
911
911
|
}, s = (l) => {
|
|
912
912
|
l.target.closest(`.${R.menuButton}`) || o?.();
|
|
913
913
|
};
|
|
914
|
-
return /* @__PURE__ */
|
|
915
|
-
/* @__PURE__ */
|
|
916
|
-
|
|
914
|
+
return /* @__PURE__ */ h("div", { className: R.ifStatementContainer, children: [
|
|
915
|
+
/* @__PURE__ */ e(
|
|
916
|
+
oe,
|
|
917
917
|
{
|
|
918
918
|
style: { position: "absolute", top: "22.5px", left: 0, zIndex: 1 }
|
|
919
919
|
}
|
|
920
920
|
),
|
|
921
|
-
/* @__PURE__ */
|
|
921
|
+
/* @__PURE__ */ e("div", { className: R.ifStatement, children: /* @__PURE__ */ e(
|
|
922
922
|
"img",
|
|
923
923
|
{
|
|
924
|
-
src:
|
|
924
|
+
src: Gt,
|
|
925
925
|
alt: "condition",
|
|
926
926
|
onClick: (l) => s(l),
|
|
927
927
|
className: R.conditionIcon
|
|
928
928
|
}
|
|
929
929
|
) }),
|
|
930
|
-
/* @__PURE__ */
|
|
930
|
+
/* @__PURE__ */ e(
|
|
931
931
|
"button",
|
|
932
932
|
{
|
|
933
933
|
type: "button",
|
|
@@ -935,10 +935,10 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
935
935
|
onClick: d,
|
|
936
936
|
"aria-label": "Open menu",
|
|
937
937
|
"aria-haspopup": "menu",
|
|
938
|
-
children: /* @__PURE__ */
|
|
938
|
+
children: /* @__PURE__ */ e(K, { className: R.menuIcon })
|
|
939
939
|
}
|
|
940
940
|
),
|
|
941
|
-
/* @__PURE__ */
|
|
941
|
+
/* @__PURE__ */ e(
|
|
942
942
|
Q,
|
|
943
943
|
{
|
|
944
944
|
ref: i,
|
|
@@ -947,10 +947,10 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
947
947
|
onHide: () => c(i)
|
|
948
948
|
}
|
|
949
949
|
),
|
|
950
|
-
/* @__PURE__ */
|
|
950
|
+
/* @__PURE__ */ e("img", { src: Kt, alt: "ifdot", className: R.ifdotIcon })
|
|
951
951
|
] });
|
|
952
|
-
},
|
|
953
|
-
items:
|
|
952
|
+
}, re = 34.5, w1 = ({
|
|
953
|
+
items: t,
|
|
954
954
|
pathId: n,
|
|
955
955
|
onAddStep: o,
|
|
956
956
|
onAddTrigger: i,
|
|
@@ -961,45 +961,45 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
961
961
|
onSelectStep: s,
|
|
962
962
|
onResize: l
|
|
963
963
|
}) => {
|
|
964
|
-
const f = $(null), b = $([]), [
|
|
964
|
+
const f = $(null), b = $([]), [_, x] = E([]);
|
|
965
965
|
q(() => {
|
|
966
966
|
const p = () => {
|
|
967
|
-
if (!f.current ||
|
|
968
|
-
|
|
967
|
+
if (!f.current || t.length === 0) {
|
|
968
|
+
x([]);
|
|
969
969
|
return;
|
|
970
970
|
}
|
|
971
|
-
const
|
|
972
|
-
for (let
|
|
973
|
-
const
|
|
974
|
-
if (
|
|
975
|
-
const
|
|
976
|
-
|
|
971
|
+
const I = f.current.getBoundingClientRect(), w = [];
|
|
972
|
+
for (let v = 0; v < t.length; v++) {
|
|
973
|
+
const m = b.current[v];
|
|
974
|
+
if (m) {
|
|
975
|
+
const y = m.getBoundingClientRect();
|
|
976
|
+
w.push(y.top - I.top + re);
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
|
|
979
|
+
w.length === t.length && x(w);
|
|
980
980
|
};
|
|
981
981
|
return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
|
|
982
|
-
}, [
|
|
983
|
-
const
|
|
984
|
-
const
|
|
985
|
-
return
|
|
986
|
-
}), [
|
|
987
|
-
return /* @__PURE__ */
|
|
988
|
-
/* @__PURE__ */
|
|
989
|
-
|
|
982
|
+
}, [t]);
|
|
983
|
+
const C = S(() => _.length !== t.length || t.length <= 1 ? null : t.map((p, I) => I).filter((p) => p > 0).map((p) => {
|
|
984
|
+
const I = _[p];
|
|
985
|
+
return I === void 0 ? null : /* @__PURE__ */ e(Wt, { width: 100, height: I }, p);
|
|
986
|
+
}), [t, _]);
|
|
987
|
+
return /* @__PURE__ */ h("div", { className: F.row, children: [
|
|
988
|
+
/* @__PURE__ */ e(
|
|
989
|
+
ie,
|
|
990
990
|
{
|
|
991
991
|
onDelete: () => n != null && a?.(n),
|
|
992
992
|
onSelect: n != null && s ? () => s(n) : void 0
|
|
993
993
|
}
|
|
994
994
|
),
|
|
995
|
-
/* @__PURE__ */
|
|
995
|
+
/* @__PURE__ */ h(
|
|
996
996
|
"div",
|
|
997
997
|
{
|
|
998
998
|
ref: f,
|
|
999
999
|
className: F.column,
|
|
1000
1000
|
style: { marginTop: "33px" },
|
|
1001
1001
|
children: [
|
|
1002
|
-
/* @__PURE__ */
|
|
1002
|
+
/* @__PURE__ */ e(
|
|
1003
1003
|
"div",
|
|
1004
1004
|
{
|
|
1005
1005
|
style: {
|
|
@@ -1012,15 +1012,15 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
),
|
|
1015
|
-
|
|
1015
|
+
C
|
|
1016
1016
|
]
|
|
1017
1017
|
}
|
|
1018
1018
|
),
|
|
1019
|
-
/* @__PURE__ */
|
|
1020
|
-
let
|
|
1019
|
+
/* @__PURE__ */ e("div", { className: F.column, children: t.map((p, I) => {
|
|
1020
|
+
let w;
|
|
1021
1021
|
if (p.paths)
|
|
1022
|
-
|
|
1023
|
-
|
|
1022
|
+
w = /* @__PURE__ */ e(
|
|
1023
|
+
w1,
|
|
1024
1024
|
{
|
|
1025
1025
|
items: p.paths,
|
|
1026
1026
|
pathId: n,
|
|
@@ -1036,16 +1036,16 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1036
1036
|
p.localId
|
|
1037
1037
|
);
|
|
1038
1038
|
else if (p.steps) {
|
|
1039
|
-
const
|
|
1040
|
-
|
|
1041
|
-
/* @__PURE__ */
|
|
1042
|
-
|
|
1039
|
+
const v = p;
|
|
1040
|
+
w = /* @__PURE__ */ h("div", { className: F.stepsContainer, children: [
|
|
1041
|
+
/* @__PURE__ */ e(
|
|
1042
|
+
x1,
|
|
1043
1043
|
{
|
|
1044
|
-
expression:
|
|
1044
|
+
expression: v.condition,
|
|
1045
1045
|
style: { marginTop: "25px" }
|
|
1046
1046
|
}
|
|
1047
1047
|
),
|
|
1048
|
-
/* @__PURE__ */
|
|
1048
|
+
/* @__PURE__ */ e(
|
|
1049
1049
|
l1,
|
|
1050
1050
|
{
|
|
1051
1051
|
steps: p.steps,
|
|
@@ -1066,7 +1066,7 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1066
1066
|
)
|
|
1067
1067
|
] });
|
|
1068
1068
|
} else
|
|
1069
|
-
|
|
1069
|
+
w = /* @__PURE__ */ e(
|
|
1070
1070
|
s1,
|
|
1071
1071
|
{
|
|
1072
1072
|
localId: p.localId,
|
|
@@ -1079,20 +1079,20 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1079
1079
|
},
|
|
1080
1080
|
p.localId
|
|
1081
1081
|
);
|
|
1082
|
-
return /* @__PURE__ */
|
|
1082
|
+
return /* @__PURE__ */ e(
|
|
1083
1083
|
"div",
|
|
1084
1084
|
{
|
|
1085
|
-
ref: (
|
|
1086
|
-
b.current[
|
|
1085
|
+
ref: (v) => {
|
|
1086
|
+
b.current[I] = v;
|
|
1087
1087
|
},
|
|
1088
1088
|
style: { width: "100%" },
|
|
1089
|
-
children:
|
|
1089
|
+
children: w
|
|
1090
1090
|
},
|
|
1091
1091
|
p.localId
|
|
1092
1092
|
);
|
|
1093
1093
|
}) }),
|
|
1094
|
-
/* @__PURE__ */
|
|
1095
|
-
/* @__PURE__ */
|
|
1094
|
+
/* @__PURE__ */ h("div", { className: F.column, style: { marginTop: "33px" }, children: [
|
|
1095
|
+
/* @__PURE__ */ e(
|
|
1096
1096
|
"div",
|
|
1097
1097
|
{
|
|
1098
1098
|
style: {
|
|
@@ -1106,9 +1106,9 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
1108
|
),
|
|
1109
|
-
|
|
1109
|
+
C
|
|
1110
1110
|
] }),
|
|
1111
|
-
/* @__PURE__ */
|
|
1111
|
+
/* @__PURE__ */ e(
|
|
1112
1112
|
Z,
|
|
1113
1113
|
{
|
|
1114
1114
|
onAddStep: o,
|
|
@@ -1124,7 +1124,7 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
1126
|
),
|
|
1127
|
-
/* @__PURE__ */
|
|
1127
|
+
/* @__PURE__ */ e(
|
|
1128
1128
|
"div",
|
|
1129
1129
|
{
|
|
1130
1130
|
style: {
|
|
@@ -1138,7 +1138,7 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1138
1138
|
)
|
|
1139
1139
|
] });
|
|
1140
1140
|
}, o1 = 68, l1 = ({
|
|
1141
|
-
pathId:
|
|
1141
|
+
pathId: t,
|
|
1142
1142
|
steps: n,
|
|
1143
1143
|
centerY: o,
|
|
1144
1144
|
className: i,
|
|
@@ -1150,10 +1150,10 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1150
1150
|
onAddLoop: l,
|
|
1151
1151
|
onSelectStep: f,
|
|
1152
1152
|
onResize: b,
|
|
1153
|
-
isDescendent:
|
|
1153
|
+
isDescendent: _ = !0
|
|
1154
1154
|
}) => {
|
|
1155
|
-
const
|
|
1156
|
-
return n.length === 0 ? /* @__PURE__ */
|
|
1155
|
+
const x = o === void 0 ? void 0 : { marginTop: Math.max(0, o - o1 / 2) };
|
|
1156
|
+
return n.length === 0 ? /* @__PURE__ */ h(
|
|
1157
1157
|
"div",
|
|
1158
1158
|
{
|
|
1159
1159
|
style: {
|
|
@@ -1163,10 +1163,10 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1163
1163
|
flexDirection: "row",
|
|
1164
1164
|
flex: 1,
|
|
1165
1165
|
minWidth: 0,
|
|
1166
|
-
...
|
|
1166
|
+
...x
|
|
1167
1167
|
},
|
|
1168
1168
|
children: [
|
|
1169
|
-
/* @__PURE__ */
|
|
1169
|
+
/* @__PURE__ */ e(
|
|
1170
1170
|
"div",
|
|
1171
1171
|
{
|
|
1172
1172
|
style: {
|
|
@@ -1180,23 +1180,23 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
1182
|
),
|
|
1183
|
-
/* @__PURE__ */
|
|
1183
|
+
/* @__PURE__ */ e(
|
|
1184
1184
|
Z,
|
|
1185
1185
|
{
|
|
1186
1186
|
onAddStep: () => {
|
|
1187
|
-
r?.(void 0,
|
|
1187
|
+
r?.(void 0, t);
|
|
1188
1188
|
},
|
|
1189
1189
|
onAddTrigger: d,
|
|
1190
1190
|
onAddCondition: s,
|
|
1191
1191
|
onAddLoop: l,
|
|
1192
|
-
stepId:
|
|
1192
|
+
stepId: t,
|
|
1193
1193
|
index: 0,
|
|
1194
1194
|
style: {
|
|
1195
1195
|
height: "auto"
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
1198
|
),
|
|
1199
|
-
/* @__PURE__ */
|
|
1199
|
+
/* @__PURE__ */ e(
|
|
1200
1200
|
"div",
|
|
1201
1201
|
{
|
|
1202
1202
|
style: {
|
|
@@ -1212,12 +1212,12 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1212
1212
|
)
|
|
1213
1213
|
]
|
|
1214
1214
|
}
|
|
1215
|
-
) : /* @__PURE__ */
|
|
1215
|
+
) : /* @__PURE__ */ e(
|
|
1216
1216
|
"div",
|
|
1217
1217
|
{
|
|
1218
|
-
className:
|
|
1219
|
-
style:
|
|
1220
|
-
children: /* @__PURE__ */
|
|
1218
|
+
className: e1.steps + (i ? " " + i : ""),
|
|
1219
|
+
style: x,
|
|
1220
|
+
children: /* @__PURE__ */ h(
|
|
1221
1221
|
"div",
|
|
1222
1222
|
{
|
|
1223
1223
|
style: {
|
|
@@ -1229,31 +1229,31 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1229
1229
|
alignItems: "flex-start"
|
|
1230
1230
|
},
|
|
1231
1231
|
children: [
|
|
1232
|
-
/* @__PURE__ */
|
|
1232
|
+
/* @__PURE__ */ e(
|
|
1233
1233
|
Z,
|
|
1234
1234
|
{
|
|
1235
1235
|
onAddStep: () => {
|
|
1236
|
-
r?.(n[0].localId,
|
|
1236
|
+
r?.(n[0].localId, t, "prepend");
|
|
1237
1237
|
},
|
|
1238
1238
|
onAddTrigger: d,
|
|
1239
1239
|
onAddCondition: s,
|
|
1240
1240
|
onAddLoop: l,
|
|
1241
1241
|
stepId: n[0].localId,
|
|
1242
|
-
pathId:
|
|
1242
|
+
pathId: t,
|
|
1243
1243
|
index: 0,
|
|
1244
1244
|
style: {
|
|
1245
1245
|
marginTop: "20px"
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
1248
|
),
|
|
1249
|
-
n.map((
|
|
1250
|
-
const
|
|
1251
|
-
let
|
|
1252
|
-
return
|
|
1253
|
-
|
|
1249
|
+
n.map((C, p) => {
|
|
1250
|
+
const I = !!C.paths, w = "condition" in C && typeof C.condition == "string";
|
|
1251
|
+
let v;
|
|
1252
|
+
return I && C.paths ? v = /* @__PURE__ */ e(
|
|
1253
|
+
w1,
|
|
1254
1254
|
{
|
|
1255
|
-
items:
|
|
1256
|
-
pathId:
|
|
1255
|
+
items: C.paths,
|
|
1256
|
+
pathId: C.localId,
|
|
1257
1257
|
onAddStep: r,
|
|
1258
1258
|
onAddCondition: s,
|
|
1259
1259
|
onAddLoop: l,
|
|
@@ -1263,12 +1263,12 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1263
1263
|
onUpdateFilter: a,
|
|
1264
1264
|
onResize: b
|
|
1265
1265
|
},
|
|
1266
|
-
|
|
1267
|
-
) :
|
|
1268
|
-
/* @__PURE__ */
|
|
1269
|
-
|
|
1266
|
+
C.title
|
|
1267
|
+
) : w ? v = /* @__PURE__ */ h(n1, { children: [
|
|
1268
|
+
/* @__PURE__ */ e(
|
|
1269
|
+
ye,
|
|
1270
1270
|
{
|
|
1271
|
-
value:
|
|
1271
|
+
value: C,
|
|
1272
1272
|
onAddStep: r,
|
|
1273
1273
|
onAddTrigger: d,
|
|
1274
1274
|
onAddCondition: s,
|
|
@@ -1278,60 +1278,60 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1278
1278
|
onSelectStep: f,
|
|
1279
1279
|
onResize: b
|
|
1280
1280
|
},
|
|
1281
|
-
|
|
1281
|
+
C.localId
|
|
1282
1282
|
),
|
|
1283
|
-
/* @__PURE__ */
|
|
1283
|
+
/* @__PURE__ */ e(
|
|
1284
1284
|
Z,
|
|
1285
1285
|
{
|
|
1286
1286
|
onAddStep: r,
|
|
1287
1287
|
onAddTrigger: d,
|
|
1288
1288
|
onAddCondition: s,
|
|
1289
1289
|
onAddLoop: l,
|
|
1290
|
-
stepId:
|
|
1291
|
-
pathId:
|
|
1290
|
+
stepId: C.localId,
|
|
1291
|
+
pathId: t,
|
|
1292
1292
|
index: p + 1,
|
|
1293
1293
|
style: { marginTop: "34px", height: 0 }
|
|
1294
1294
|
}
|
|
1295
1295
|
)
|
|
1296
|
-
] }) :
|
|
1297
|
-
/* @__PURE__ */
|
|
1296
|
+
] }) : v = /* @__PURE__ */ h(n1, { children: [
|
|
1297
|
+
/* @__PURE__ */ e(
|
|
1298
1298
|
s1,
|
|
1299
1299
|
{
|
|
1300
|
-
localId:
|
|
1301
|
-
title:
|
|
1300
|
+
localId: C.localId,
|
|
1301
|
+
title: C.title,
|
|
1302
1302
|
idx: 1,
|
|
1303
|
-
icon:
|
|
1304
|
-
isSet:
|
|
1305
|
-
isInvalid:
|
|
1306
|
-
isFilter:
|
|
1303
|
+
icon: C.icon,
|
|
1304
|
+
isSet: C.isSet,
|
|
1305
|
+
isInvalid: C.isInvalid,
|
|
1306
|
+
isFilter: C.isFilter,
|
|
1307
1307
|
onSelectStep: f,
|
|
1308
1308
|
onDeleteStep: c,
|
|
1309
1309
|
onUpdateFilter: a
|
|
1310
1310
|
},
|
|
1311
|
-
|
|
1311
|
+
C.title
|
|
1312
1312
|
),
|
|
1313
|
-
/* @__PURE__ */
|
|
1313
|
+
/* @__PURE__ */ e(
|
|
1314
1314
|
Z,
|
|
1315
1315
|
{
|
|
1316
1316
|
onAddStep: r,
|
|
1317
1317
|
onAddTrigger: d,
|
|
1318
1318
|
onAddCondition: s,
|
|
1319
1319
|
onAddLoop: l,
|
|
1320
|
-
stepId:
|
|
1321
|
-
pathId:
|
|
1320
|
+
stepId: C.localId,
|
|
1321
|
+
pathId: t,
|
|
1322
1322
|
index: p + 1
|
|
1323
1323
|
}
|
|
1324
1324
|
)
|
|
1325
|
-
] }), /* @__PURE__ */
|
|
1325
|
+
] }), /* @__PURE__ */ e(
|
|
1326
1326
|
"div",
|
|
1327
1327
|
{
|
|
1328
|
-
className:
|
|
1329
|
-
children:
|
|
1328
|
+
className: e1.stepContainer + (I || w ? " " + e1.stepContainerWithPaths : ""),
|
|
1329
|
+
children: v
|
|
1330
1330
|
},
|
|
1331
|
-
|
|
1331
|
+
C.localId
|
|
1332
1332
|
);
|
|
1333
1333
|
}),
|
|
1334
|
-
|
|
1334
|
+
_ && /* @__PURE__ */ e(
|
|
1335
1335
|
"div",
|
|
1336
1336
|
{
|
|
1337
1337
|
style: {
|
|
@@ -1347,7 +1347,7 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1347
1347
|
)
|
|
1348
1348
|
}
|
|
1349
1349
|
);
|
|
1350
|
-
},
|
|
1350
|
+
}, se = () => /* @__PURE__ */ h(
|
|
1351
1351
|
"svg",
|
|
1352
1352
|
{
|
|
1353
1353
|
width: "24",
|
|
@@ -1356,14 +1356,14 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1356
1356
|
fill: "none",
|
|
1357
1357
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1358
1358
|
children: [
|
|
1359
|
-
/* @__PURE__ */
|
|
1359
|
+
/* @__PURE__ */ e(
|
|
1360
1360
|
"path",
|
|
1361
1361
|
{
|
|
1362
1362
|
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
1363
|
fill: "#41B0AC"
|
|
1364
1364
|
}
|
|
1365
1365
|
),
|
|
1366
|
-
/* @__PURE__ */
|
|
1366
|
+
/* @__PURE__ */ e(
|
|
1367
1367
|
"path",
|
|
1368
1368
|
{
|
|
1369
1369
|
fillRule: "evenodd",
|
|
@@ -1374,24 +1374,24 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1374
1374
|
)
|
|
1375
1375
|
]
|
|
1376
1376
|
}
|
|
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:
|
|
1377
|
+
), le = "_container_131qr_1", ce = "_collapsed_131qr_16", ae = "_loopNodeWrapper_131qr_21", de = "_loopIconWrapper_131qr_31", pe = "_loopBox_131qr_40", ue = "_dotsButton_131qr_57", he = "_label_131qr_77", Ce = "_limit_131qr_84", me = "_expandable_131qr_90", fe = "_expandableCollapsed_131qr_100", ge = "_connector_131qr_107", ve = "_line_131qr_115", _e = "_circleDot_131qr_123", xe = "_innerDot_131qr_138", we = "_stepsWrapper_131qr_145", B = {
|
|
1378
|
+
container: le,
|
|
1379
|
+
collapsed: ce,
|
|
1380
|
+
loopNodeWrapper: ae,
|
|
1381
|
+
loopIconWrapper: de,
|
|
1382
|
+
loopBox: pe,
|
|
1383
|
+
dotsButton: ue,
|
|
1384
|
+
label: he,
|
|
1385
|
+
limit: Ce,
|
|
1386
|
+
expandable: me,
|
|
1387
|
+
expandableCollapsed: fe,
|
|
1388
|
+
connector: ge,
|
|
1389
|
+
line: ve,
|
|
1390
|
+
circleDot: _e,
|
|
1391
|
+
innerDot: xe,
|
|
1392
|
+
stepsWrapper: we
|
|
1393
|
+
}, ye = ({
|
|
1394
|
+
value: t,
|
|
1395
1395
|
onAddStep: n,
|
|
1396
1396
|
onAddTrigger: o,
|
|
1397
1397
|
onAddCondition: i,
|
|
@@ -1401,72 +1401,81 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1401
1401
|
onSelectStep: d,
|
|
1402
1402
|
onResize: s
|
|
1403
1403
|
}) => {
|
|
1404
|
-
const { localId: l, limit: f, steps: b } =
|
|
1405
|
-
}, [
|
|
1404
|
+
const { localId: l, limit: f, steps: b, condition: _ } = t, x = b ?? [], C = () => {
|
|
1405
|
+
}, [p, I] = E(!1), w = $(null), { openMenu: v, closeMenu: m } = r1(), y = i1(), L = S(
|
|
1406
1406
|
() => [
|
|
1407
|
+
{
|
|
1408
|
+
label: "Edit",
|
|
1409
|
+
icon: /* @__PURE__ */ e(v1, { color: "#3B64A0", size: 18 }),
|
|
1410
|
+
command: (k) => {
|
|
1411
|
+
k?.originalEvent?.stopPropagation(), d?.(l);
|
|
1412
|
+
},
|
|
1413
|
+
template: y
|
|
1414
|
+
},
|
|
1407
1415
|
{
|
|
1408
1416
|
label: "Remove",
|
|
1409
|
-
icon: /* @__PURE__ */
|
|
1410
|
-
command: (
|
|
1411
|
-
|
|
1417
|
+
icon: /* @__PURE__ */ e(J, { color: "#3B64A0", size: 18 }),
|
|
1418
|
+
command: (k) => {
|
|
1419
|
+
k?.originalEvent?.stopPropagation(), c && c(l);
|
|
1412
1420
|
},
|
|
1413
|
-
template:
|
|
1421
|
+
template: y
|
|
1414
1422
|
}
|
|
1415
1423
|
],
|
|
1416
|
-
[c, l,
|
|
1417
|
-
),
|
|
1418
|
-
|
|
1419
|
-
},
|
|
1420
|
-
|
|
1421
|
-
},
|
|
1422
|
-
return /* @__PURE__ */
|
|
1423
|
-
/* @__PURE__ */
|
|
1424
|
-
/* @__PURE__ */
|
|
1425
|
-
/* @__PURE__ */
|
|
1426
|
-
/* @__PURE__ */
|
|
1427
|
-
/* @__PURE__ */
|
|
1424
|
+
[d, c, l, y]
|
|
1425
|
+
), u = (k) => {
|
|
1426
|
+
k.stopPropagation(), v(w, k);
|
|
1427
|
+
}, g = () => {
|
|
1428
|
+
I((k) => !k), s?.();
|
|
1429
|
+
}, P = B.container + (p ? "" : " " + B.collapsed), T = B.expandable + (p ? "" : " " + B.expandableCollapsed);
|
|
1430
|
+
return /* @__PURE__ */ h("div", { className: P, children: [
|
|
1431
|
+
/* @__PURE__ */ h("div", { className: B.loopNodeWrapper, children: [
|
|
1432
|
+
/* @__PURE__ */ h("div", { className: B.loopBox, children: [
|
|
1433
|
+
/* @__PURE__ */ e("div", { onClick: g, className: B.loopIconWrapper, children: /* @__PURE__ */ e(se, {}) }),
|
|
1434
|
+
/* @__PURE__ */ e("button", { className: B.dotsButton, onClick: u, children: /* @__PURE__ */ e(K, { size: 16 }) }),
|
|
1435
|
+
/* @__PURE__ */ e(
|
|
1428
1436
|
Q,
|
|
1429
1437
|
{
|
|
1430
|
-
model:
|
|
1438
|
+
model: L,
|
|
1431
1439
|
popup: !0,
|
|
1432
1440
|
ref: w,
|
|
1433
|
-
onHide: () =>
|
|
1441
|
+
onHide: () => m(w)
|
|
1434
1442
|
}
|
|
1435
1443
|
)
|
|
1436
1444
|
] }),
|
|
1437
|
-
/* @__PURE__ */
|
|
1438
|
-
f != null && /* @__PURE__ */
|
|
1445
|
+
/* @__PURE__ */ e("div", { className: B.label, children: "Loop" }),
|
|
1446
|
+
f != null && /* @__PURE__ */ h("div", { className: B.limit, children: [
|
|
1439
1447
|
f,
|
|
1440
1448
|
"x"
|
|
1441
1449
|
] })
|
|
1442
1450
|
] }),
|
|
1443
|
-
/* @__PURE__ */
|
|
1444
|
-
/* @__PURE__ */
|
|
1445
|
-
/* @__PURE__ */
|
|
1446
|
-
/* @__PURE__ */
|
|
1447
|
-
/* @__PURE__ */
|
|
1451
|
+
/* @__PURE__ */ h("div", { className: T, children: [
|
|
1452
|
+
/* @__PURE__ */ h("div", { className: B.connector, children: [
|
|
1453
|
+
/* @__PURE__ */ e("div", { className: B.line, style: { width: "12px" } }),
|
|
1454
|
+
/* @__PURE__ */ e("div", { className: B.circleDot, children: /* @__PURE__ */ e("div", { className: B.innerDot }) }),
|
|
1455
|
+
/* @__PURE__ */ e("div", { className: B.line })
|
|
1448
1456
|
] }),
|
|
1449
|
-
/* @__PURE__ */
|
|
1457
|
+
/* @__PURE__ */ e(x1, { expression: _ ?? "", style: { marginTop: "25.5px" } }),
|
|
1458
|
+
/* @__PURE__ */ e("div", { className: B.stepsWrapper, children: /* @__PURE__ */ e(
|
|
1450
1459
|
l1,
|
|
1451
1460
|
{
|
|
1452
1461
|
steps: x,
|
|
1453
1462
|
pathId: l,
|
|
1454
|
-
onAddStep: n ??
|
|
1463
|
+
onAddStep: n ?? C,
|
|
1455
1464
|
onAddTrigger: o,
|
|
1456
|
-
onAddCondition: i ??
|
|
1465
|
+
onAddCondition: i ?? C,
|
|
1457
1466
|
onAddLoop: r,
|
|
1458
1467
|
onDeleteStep: c,
|
|
1459
|
-
onUpdateFilter: a ??
|
|
1460
|
-
onSelectStep: d ??
|
|
1468
|
+
onUpdateFilter: a ?? C,
|
|
1469
|
+
onSelectStep: d ?? C,
|
|
1461
1470
|
isDescendent: !0
|
|
1462
1471
|
}
|
|
1463
1472
|
) })
|
|
1464
1473
|
] })
|
|
1465
1474
|
] });
|
|
1466
|
-
},
|
|
1467
|
-
container:
|
|
1468
|
-
},
|
|
1469
|
-
process:
|
|
1475
|
+
}, Ie = "_container_kielx_1", be = {
|
|
1476
|
+
container: Ie
|
|
1477
|
+
}, Ee = ({
|
|
1478
|
+
process: t,
|
|
1470
1479
|
addMultipleTriggers: n,
|
|
1471
1480
|
onAddStep: o,
|
|
1472
1481
|
onAddTrigger: i,
|
|
@@ -1478,23 +1487,23 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1478
1487
|
onUpdateFilter: l,
|
|
1479
1488
|
onSelectStep: f
|
|
1480
1489
|
}) => {
|
|
1481
|
-
const [b,
|
|
1482
|
-
return /* @__PURE__ */
|
|
1483
|
-
/* @__PURE__ */
|
|
1484
|
-
|
|
1490
|
+
const [b, _] = E(0);
|
|
1491
|
+
return /* @__PURE__ */ h("div", { className: be.container, children: [
|
|
1492
|
+
/* @__PURE__ */ e(
|
|
1493
|
+
kt,
|
|
1485
1494
|
{
|
|
1486
|
-
steps:
|
|
1495
|
+
steps: t.triggers,
|
|
1487
1496
|
onAddTrigger: n,
|
|
1488
1497
|
onUpdateFilter: l,
|
|
1489
1498
|
onDeleteTrigger: d,
|
|
1490
1499
|
onSelectStep: f,
|
|
1491
|
-
onCenterYUpdate:
|
|
1500
|
+
onCenterYUpdate: _
|
|
1492
1501
|
}
|
|
1493
1502
|
),
|
|
1494
|
-
|
|
1503
|
+
t.steps.length > 0 ? /* @__PURE__ */ e(
|
|
1495
1504
|
l1,
|
|
1496
1505
|
{
|
|
1497
|
-
steps:
|
|
1506
|
+
steps: t.steps,
|
|
1498
1507
|
centerY: b,
|
|
1499
1508
|
onAddStep: o,
|
|
1500
1509
|
onAddTrigger: i,
|
|
@@ -1507,7 +1516,7 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1507
1516
|
isDescendent: !1,
|
|
1508
1517
|
pathId: void 0
|
|
1509
1518
|
}
|
|
1510
|
-
) : /* @__PURE__ */
|
|
1519
|
+
) : /* @__PURE__ */ e(
|
|
1511
1520
|
Z,
|
|
1512
1521
|
{
|
|
1513
1522
|
onAddStep: () => o(),
|
|
@@ -1523,88 +1532,88 @@ const Me = () => /* @__PURE__ */ C(
|
|
|
1523
1532
|
)
|
|
1524
1533
|
] });
|
|
1525
1534
|
};
|
|
1526
|
-
class
|
|
1535
|
+
class Ne extends Error {
|
|
1527
1536
|
constructor(n) {
|
|
1528
1537
|
super(n), this.name = "AddStepError";
|
|
1529
1538
|
}
|
|
1530
1539
|
}
|
|
1531
|
-
const m1 = (
|
|
1540
|
+
const m1 = (t) => "condition" in t && typeof t.condition == "string", y1 = (t, n, o, i) => {
|
|
1532
1541
|
const r = i === "prepend" ? n : n + 1;
|
|
1533
|
-
return [...
|
|
1534
|
-
}, c1 = (
|
|
1535
|
-
for (let r = 0; r <
|
|
1536
|
-
if (
|
|
1537
|
-
return
|
|
1538
|
-
const c =
|
|
1542
|
+
return [...t.slice(0, r), o, ...t.slice(r)];
|
|
1543
|
+
}, c1 = (t, n, o, i) => {
|
|
1544
|
+
for (let r = 0; r < t.length; r++) {
|
|
1545
|
+
if (t[r].localId === n)
|
|
1546
|
+
return y1(t, r, i, o);
|
|
1547
|
+
const c = t[r], a = c.steps?.length && c1(c.steps, n, o, i);
|
|
1539
1548
|
if (a)
|
|
1540
|
-
return
|
|
1549
|
+
return t.map(
|
|
1541
1550
|
(s, l) => l === r ? { ...s, steps: a } : s
|
|
1542
1551
|
);
|
|
1543
|
-
const d = c.paths?.length &&
|
|
1552
|
+
const d = c.paths?.length && I1(c.paths, n, o, i);
|
|
1544
1553
|
if (d)
|
|
1545
|
-
return
|
|
1554
|
+
return t.map(
|
|
1546
1555
|
(s, l) => l === r ? { ...s, paths: d } : s
|
|
1547
1556
|
);
|
|
1548
1557
|
}
|
|
1549
1558
|
return null;
|
|
1550
|
-
},
|
|
1551
|
-
const i =
|
|
1552
|
-
return { ...
|
|
1553
|
-
},
|
|
1554
|
-
for (let r = 0; r <
|
|
1555
|
-
const c =
|
|
1559
|
+
}, ke = (t, n, o) => {
|
|
1560
|
+
const i = t.steps ?? [], r = n === "prepend" ? [o, ...i] : [...i, o];
|
|
1561
|
+
return { ...t, steps: r };
|
|
1562
|
+
}, I1 = (t, n, o, i) => {
|
|
1563
|
+
for (let r = 0; r < t.length; r++) {
|
|
1564
|
+
const c = t[r];
|
|
1556
1565
|
if (c.localId === n)
|
|
1557
|
-
return m1(c) ?
|
|
1558
|
-
(a, d) => d === r ?
|
|
1559
|
-
) :
|
|
1566
|
+
return m1(c) ? t.map(
|
|
1567
|
+
(a, d) => d === r ? ke(c, o, i) : a
|
|
1568
|
+
) : y1(t, r, i, o);
|
|
1560
1569
|
if (m1(c)) {
|
|
1561
1570
|
const a = c.steps?.length && c1(c.steps, n, o, i);
|
|
1562
1571
|
if (a)
|
|
1563
|
-
return
|
|
1572
|
+
return t.map(
|
|
1564
1573
|
(s, l) => l === r ? { ...s, steps: a } : s
|
|
1565
1574
|
);
|
|
1566
|
-
const d = c.paths?.length &&
|
|
1575
|
+
const d = c.paths?.length && I1(c.paths, n, o, i);
|
|
1567
1576
|
if (d)
|
|
1568
|
-
return
|
|
1577
|
+
return t.map(
|
|
1569
1578
|
(s, l) => l === r ? { ...s, paths: d } : s
|
|
1570
1579
|
);
|
|
1571
1580
|
}
|
|
1572
1581
|
}
|
|
1573
1582
|
return null;
|
|
1574
|
-
}, $
|
|
1575
|
-
const r = c1(
|
|
1583
|
+
}, $e = (t, n, o, i) => {
|
|
1584
|
+
const r = c1(t.steps, n, o, i);
|
|
1576
1585
|
if (r)
|
|
1577
|
-
return { ...
|
|
1578
|
-
throw new
|
|
1579
|
-
},
|
|
1580
|
-
...
|
|
1581
|
-
...
|
|
1582
|
-
...
|
|
1583
|
-
paths:
|
|
1586
|
+
return { ...t, steps: r };
|
|
1587
|
+
throw new Ne(`Step or path with id "${n}" not found`);
|
|
1588
|
+
}, b1 = (t, n) => ({
|
|
1589
|
+
...t,
|
|
1590
|
+
...t.steps != null && { steps: a1(t.steps, n) },
|
|
1591
|
+
...t.paths != null && {
|
|
1592
|
+
paths: t.paths.map((o) => b1(o, n))
|
|
1584
1593
|
}
|
|
1585
|
-
}), a1 = (
|
|
1594
|
+
}), a1 = (t, n) => t.filter((o) => o.localId !== n).map((o) => ({
|
|
1586
1595
|
...o,
|
|
1587
1596
|
...o.steps != null && { steps: a1(o.steps, n) },
|
|
1588
1597
|
...o.paths != null && {
|
|
1589
|
-
paths: o.paths.map((i) =>
|
|
1598
|
+
paths: o.paths.map((i) => b1(i, n))
|
|
1590
1599
|
}
|
|
1591
|
-
})),
|
|
1592
|
-
const o = a1(
|
|
1600
|
+
})), Te = (t, n) => {
|
|
1601
|
+
const o = a1(t.steps, n);
|
|
1593
1602
|
return {
|
|
1594
|
-
...
|
|
1603
|
+
...t,
|
|
1595
1604
|
steps: o
|
|
1596
1605
|
};
|
|
1597
1606
|
};
|
|
1598
1607
|
export {
|
|
1599
|
-
|
|
1600
|
-
|
|
1608
|
+
Ne as AddStepError,
|
|
1609
|
+
ye as Iterator,
|
|
1601
1610
|
Q as Menu,
|
|
1602
|
-
|
|
1603
|
-
|
|
1611
|
+
Le as MenuProvider,
|
|
1612
|
+
Ee as ProcessDiagram,
|
|
1604
1613
|
s1 as ProcessStep,
|
|
1605
|
-
|
|
1606
|
-
$
|
|
1607
|
-
|
|
1614
|
+
kt as Trigger,
|
|
1615
|
+
$e as addStep,
|
|
1616
|
+
Te as deleteStep,
|
|
1608
1617
|
r1 as useMenuProvider
|
|
1609
1618
|
};
|
|
1610
1619
|
//# sourceMappingURL=index.mjs.map
|