@notmrabhi/flowforge 0.1.40 → 0.1.41
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/GatewayBranchEdge-Dvkwkx-b.js +2 -0
- package/dist/GatewayBranchEdge-Dvkwkx-b.js.map +1 -0
- package/dist/{GatewayBranchEdge-Bnql8DmQ.js → GatewayBranchEdge-F2AGJpun.js} +122 -122
- package/dist/GatewayBranchEdge-F2AGJpun.js.map +1 -0
- package/dist/canvas.cjs +1 -1
- package/dist/canvas.js +2 -2
- package/dist/defaultUi.cjs +1 -1
- package/dist/defaultUi.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{templateSkeletons-nP4G40Gx.js → templateSkeletons-BQQ7UKp6.js} +2 -2
- package/dist/{templateSkeletons-nP4G40Gx.js.map → templateSkeletons-BQQ7UKp6.js.map} +1 -1
- package/dist/{templateSkeletons-Dw-KGxIV.js → templateSkeletons-C00QyIgk.js} +2 -2
- package/dist/{templateSkeletons-Dw-KGxIV.js.map → templateSkeletons-C00QyIgk.js.map} +1 -1
- package/package.json +1 -1
- package/dist/GatewayBranchEdge-Bnql8DmQ.js.map +0 -1
- package/dist/GatewayBranchEdge-oAXh7nSf.js +0 -2
- package/dist/GatewayBranchEdge-oAXh7nSf.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e, Fragment as B } from "react/jsx-runtime";
|
|
2
2
|
import { Handle as x, Position as N, getStraightPath as H, BaseEdge as G } from "reactflow";
|
|
3
3
|
import { Tooltip as $, Chip as q } from "@mui/material";
|
|
4
|
-
import { GrTrigger as
|
|
5
|
-
import { createContext as
|
|
6
|
-
import { d as
|
|
7
|
-
import { MdOutlineModeEdit as D, MdInfoOutline as j, MdInput as fe, MdDeleteOutline as F, MdCheckCircle as
|
|
4
|
+
import { GrTrigger as Ne } from "react-icons/gr";
|
|
5
|
+
import { createContext as ke, useContext as ve } from "react";
|
|
6
|
+
import { d as we } from "./messages-CO299wPN.js";
|
|
7
|
+
import { MdOutlineModeEdit as D, MdInfoOutline as j, MdInput as fe, MdDeleteOutline as F, MdCheckCircle as Se, MdPeople as Ce, MdSchedule as Ee, MdWebhook as de, MdNotifications as U, MdSms as Te, MdEmail as ze, MdContentCopy as Ie, MdHttp as Pe, MdCallSplit as Ae, MdAccountTree as De, MdOpenInNew as Re } from "react-icons/md";
|
|
8
8
|
import { FaCheckCircle as ae, FaTimesCircle as pe } from "react-icons/fa";
|
|
9
|
-
import { FiFilter as
|
|
10
|
-
import { a as
|
|
11
|
-
const
|
|
9
|
+
import { FiFilter as Le } from "react-icons/fi";
|
|
10
|
+
import { a as K, H as We, B as Y } from "./canvasTokens-CAD6G24b.js";
|
|
11
|
+
const Fe = ke({
|
|
12
12
|
onEditNode: () => {
|
|
13
13
|
},
|
|
14
14
|
onDeleteNode: () => {
|
|
@@ -17,16 +17,16 @@ const We = Ne({
|
|
|
17
17
|
},
|
|
18
18
|
onClickAddTrigger: () => {
|
|
19
19
|
},
|
|
20
|
-
messages:
|
|
20
|
+
messages: we,
|
|
21
21
|
nodeRegistry: null,
|
|
22
22
|
nodeBody: "full"
|
|
23
|
-
}), I = () =>
|
|
23
|
+
}), I = () => ve(Fe), $e = () => /* @__PURE__ */ t("div", { style: { width: 350, display: "flex", justifyContent: "center" }, children: [
|
|
24
24
|
/* @__PURE__ */ e(x, { type: "source", position: N.Bottom, style: { opacity: 0, left: "50%" } }),
|
|
25
25
|
/* @__PURE__ */ e("div", { style: { padding: "8px 28px", borderRadius: 999, background: "#f5f5f5", border: "1.5px solid #bdbdbd", fontSize: 13, fontWeight: 500, color: "#424242", userSelect: "none" }, children: "Start" })
|
|
26
|
-
] }),
|
|
26
|
+
] }), Be = () => /* @__PURE__ */ t("div", { style: { width: 350, display: "flex", justifyContent: "center" }, children: [
|
|
27
27
|
/* @__PURE__ */ e(x, { type: "target", position: N.Top, style: { opacity: 0, left: "50%" } }),
|
|
28
28
|
/* @__PURE__ */ e("div", { style: { padding: "8px 28px", borderRadius: 999, background: "#f5f5f5", border: "1.5px solid #bdbdbd", fontSize: 13, fontWeight: 500, color: "#424242", userSelect: "none" }, children: "End" })
|
|
29
|
-
] }),
|
|
29
|
+
] }), je = () => {
|
|
30
30
|
const { onClickAddTrigger: n, messages: i } = I();
|
|
31
31
|
return /* @__PURE__ */ t("div", { style: { width: 350, display: "flex", justifyContent: "center" }, children: [
|
|
32
32
|
/* @__PURE__ */ e(x, { type: "target", position: N.Top, style: { opacity: 0, left: "50%" } }),
|
|
@@ -41,14 +41,14 @@ const We = Ne({
|
|
|
41
41
|
},
|
|
42
42
|
style: { padding: "10px 24px", borderRadius: 8, border: "1.5px dashed #d0d0d0", background: "#fff", cursor: "pointer", display: "flex", alignItems: "center", justifyContent: "center", gap: 8 },
|
|
43
43
|
children: [
|
|
44
|
-
/* @__PURE__ */ e(
|
|
44
|
+
/* @__PURE__ */ e(Ne, { size: 16 }),
|
|
45
45
|
/* @__PURE__ */ e("span", { className: "ff-text-black", style: { fontSize: 13 }, "data-testid": "add-trigger-btn-text", children: i.addTriggerButton })
|
|
46
46
|
]
|
|
47
47
|
}
|
|
48
48
|
) }),
|
|
49
49
|
/* @__PURE__ */ e(x, { type: "source", position: N.Bottom, style: { opacity: 0, left: "50%" } })
|
|
50
50
|
] });
|
|
51
|
-
},
|
|
51
|
+
}, Ke = ({ id: n }) => {
|
|
52
52
|
const { onAddStep: i } = I();
|
|
53
53
|
return /* @__PURE__ */ t(
|
|
54
54
|
"div",
|
|
@@ -191,14 +191,14 @@ const _e = ({ data: n }) => {
|
|
|
191
191
|
/* @__PURE__ */ e(x, { type: "source", position: N.Bottom, style: { opacity: 0 }, id: "1" })
|
|
192
192
|
] });
|
|
193
193
|
};
|
|
194
|
-
function
|
|
194
|
+
function Oe(n) {
|
|
195
195
|
return n ? n === "END_USER_CREATION" ? "New User Registration" : n === "END_USER_UPDATION" ? "On User Update" : n.replace(/[_-]+/g, " ").replace(/\b\w/g, (i) => i.toUpperCase()) : "";
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Ue(n) {
|
|
198
198
|
const i = typeof n == "string" ? n : n.value ?? "";
|
|
199
199
|
return i === "SIGNUP_FLOW" ? "User Self-Registration" : i === "ADMIN_CREATION_FLOW" ? "Create User via Admin Portal" : i === "SHEDULAR" || i === "SCHEDULER" ? "Scheduler" : typeof n != "string" && n.label ? n.label : i.replace(/[_-]+/g, " ").replace(/\b\w/g, (f) => f.toUpperCase());
|
|
200
200
|
}
|
|
201
|
-
const
|
|
201
|
+
const He = ({ data: n }) => {
|
|
202
202
|
const {
|
|
203
203
|
header: i = "Event",
|
|
204
204
|
title: f,
|
|
@@ -206,7 +206,7 @@ const Ue = ({ data: n }) => {
|
|
|
206
206
|
sources: s,
|
|
207
207
|
executionStatus: r,
|
|
208
208
|
infoText: h = "This event is raised by the system. It cannot be configured."
|
|
209
|
-
} = n ?? {}, o = f ??
|
|
209
|
+
} = n ?? {}, o = f ?? Oe(p) ?? "—";
|
|
210
210
|
return /* @__PURE__ */ t("div", { style: { width: 350 }, children: [
|
|
211
211
|
/* @__PURE__ */ e(x, { type: "target", position: N.Top, style: { opacity: 0 } }),
|
|
212
212
|
/* @__PURE__ */ t("div", { style: { border: "1.5px solid #a5d6a7", borderRadius: 8, background: "#fff", overflow: "hidden" }, children: [
|
|
@@ -255,7 +255,7 @@ const Ue = ({ data: n }) => {
|
|
|
255
255
|
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-flex-wrap ff-mt-1", style: { gap: 4 }, children: s.map((l, d) => /* @__PURE__ */ e(
|
|
256
256
|
q,
|
|
257
257
|
{
|
|
258
|
-
label:
|
|
258
|
+
label: Ue(l),
|
|
259
259
|
variant: "outlined",
|
|
260
260
|
size: "small",
|
|
261
261
|
className: "ff-text-dark"
|
|
@@ -314,14 +314,14 @@ const Ue = ({ data: n }) => {
|
|
|
314
314
|
]
|
|
315
315
|
}
|
|
316
316
|
);
|
|
317
|
-
},
|
|
317
|
+
}, Ge = ({ id: n, data: i }) => {
|
|
318
318
|
const { onEditNode: f, onDeleteNode: p } = I(), { conditions: s = [], infoText: r = "Filter conditions applied to workflow data", _branchRail: h } = i;
|
|
319
319
|
return /* @__PURE__ */ t("div", { style: { width: 350, position: "relative" }, children: [
|
|
320
320
|
/* @__PURE__ */ e(x, { type: "target", position: N.Top, style: { opacity: 0 } }),
|
|
321
321
|
/* @__PURE__ */ t("div", { style: { border: "1.5px solid #ffe082", borderRadius: 8, background: "#fff" }, children: [
|
|
322
322
|
/* @__PURE__ */ t("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center", style: { padding: "10px 6px" }, children: [
|
|
323
323
|
/* @__PURE__ */ t("div", { className: "ff-d-flex ff-align-items-center", children: [
|
|
324
|
-
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-align-items-center ff-justify-content-center ff-rounded", style: { width: 25, height: 25, background: "rgba(255,160,0,0.1)" }, children: /* @__PURE__ */ e(
|
|
324
|
+
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-align-items-center ff-justify-content-center ff-rounded", style: { width: 25, height: 25, background: "rgba(255,160,0,0.1)" }, children: /* @__PURE__ */ e(Le, { className: "ff-text-warning", size: 16 }) }),
|
|
325
325
|
/* @__PURE__ */ e("span", { className: "ff-ms-2 ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: "Filter" })
|
|
326
326
|
] }),
|
|
327
327
|
/* @__PURE__ */ t("div", { className: "node-actions ff-d-flex ff-align-items-center", children: [
|
|
@@ -367,7 +367,7 @@ const Ue = ({ data: n }) => {
|
|
|
367
367
|
/* @__PURE__ */ e(x, { type: "source", position: N.Bottom, style: { opacity: 0 } }),
|
|
368
368
|
h && /* @__PURE__ */ e(he, { rail: h, cardWidth: 350 })
|
|
369
369
|
] });
|
|
370
|
-
},
|
|
370
|
+
}, Ve = ({ id: n, data: i }) => {
|
|
371
371
|
const { onEditNode: f, onDeleteNode: p, nodeRegistry: s, nodeBody: r = "full" } = I(), { title: h = "Task", descriptorType: o, groupBlocks: l, groups: d, roles: u, groupId: y, roleId: k, infoText: g = "" } = i, c = o ? s == null ? void 0 : s.forType(o) : void 0, S = c == null ? void 0 : c.icon, m = (a) => a == null ? "" : typeof a == "string" ? a : typeof a == "object" && "label" in a ? String(a.label) : String(a), C = (a) => Array.isArray(a) ? a.map(m).filter(Boolean) : a != null && a !== "" ? [m(a)] : [], v = /* @__PURE__ */ new Set([
|
|
372
372
|
"descriptorType",
|
|
373
373
|
"title",
|
|
@@ -379,7 +379,7 @@ const Ue = ({ data: n }) => {
|
|
|
379
379
|
// proper "When ..." rows, not as a JSON dump in the generic body.
|
|
380
380
|
"conditionConfig",
|
|
381
381
|
"_conditionConfig"
|
|
382
|
-
]), R = c == null ? void 0 : c.formSchema,
|
|
382
|
+
]), R = c == null ? void 0 : c.formSchema, T = (a) => {
|
|
383
383
|
if (Array.isArray(R)) {
|
|
384
384
|
const b = R.find((w) => (w == null ? void 0 : w.id) === a || (w == null ? void 0 : w.name) === a);
|
|
385
385
|
if (b != null && b.label) return b.label;
|
|
@@ -399,7 +399,7 @@ const Ue = ({ data: n }) => {
|
|
|
399
399
|
return String(a);
|
|
400
400
|
}, A = Object.entries(i || {}).filter(
|
|
401
401
|
([a, b]) => !v.has(a) && b !== "" && b !== null && b !== void 0 && !(Array.isArray(b) && b.length === 0)
|
|
402
|
-
),
|
|
402
|
+
), z = (i == null ? void 0 : i.conditionConfig) ?? (i == null ? void 0 : i._conditionConfig), E = z && typeof z == "object" ? Object.entries(z).filter(([, a]) => Array.isArray(a) && a.length > 0).map(([a, b]) => ({
|
|
403
403
|
path: a,
|
|
404
404
|
entries: b
|
|
405
405
|
})) : [], L = (l == null ? void 0 : l.flatMap((a) => a.groups ?? [])) ?? [...C(d), ...C(u), ...C(y), ...C(k)], V = L.length > 0;
|
|
@@ -462,7 +462,7 @@ const Ue = ({ data: n }) => {
|
|
|
462
462
|
children: c != null && c.renderNode ? c.renderNode(i) : A.length > 0 || E.length > 0 ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
|
|
463
463
|
A.slice(0, 4).map(([a, b]) => /* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "baseline", gap: 4 }, children: [
|
|
464
464
|
/* @__PURE__ */ t("span", { style: { fontWeight: 700, color: "#212529", flexShrink: 0 }, children: [
|
|
465
|
-
|
|
465
|
+
T(a),
|
|
466
466
|
":"
|
|
467
467
|
] }),
|
|
468
468
|
/* @__PURE__ */ e(
|
|
@@ -489,7 +489,7 @@ const Ue = ({ data: n }) => {
|
|
|
489
489
|
E.map((a, b) => /* @__PURE__ */ t("div", { style: { marginTop: 4 }, children: [
|
|
490
490
|
/* @__PURE__ */ e("div", { style: { color: "#6c757d", marginBottom: 2 }, children: "When" }),
|
|
491
491
|
a.entries.slice(0, 3).map((w, W, ye) => {
|
|
492
|
-
const ue = w.
|
|
492
|
+
const ue = w.field || "", me = w.fieldLabel || T(ue), be = w.operator || "", Z = w.value == null ? "" : typeof w.value == "object" ? P(w.value) : String(w.value), xe = w.connector || "and";
|
|
493
493
|
return /* @__PURE__ */ t(
|
|
494
494
|
"div",
|
|
495
495
|
{
|
|
@@ -500,8 +500,8 @@ const Ue = ({ data: n }) => {
|
|
|
500
500
|
marginTop: 2
|
|
501
501
|
},
|
|
502
502
|
children: [
|
|
503
|
-
/* @__PURE__ */ e("span", { style: { fontWeight: 700, marginRight: 4, color: "#212529" }, children:
|
|
504
|
-
/* @__PURE__ */ e("span", { style: { color: "#6c757d", marginRight: 4 }, children:
|
|
503
|
+
/* @__PURE__ */ e("span", { style: { fontWeight: 700, marginRight: 4, color: "#212529" }, children: me }),
|
|
504
|
+
/* @__PURE__ */ e("span", { style: { color: "#6c757d", marginRight: 4 }, children: be }),
|
|
505
505
|
/* @__PURE__ */ e("span", { style: { color: "#212529", marginRight: 4 }, title: Z, children: Z }),
|
|
506
506
|
W < ye.length - 1 && /* @__PURE__ */ e(
|
|
507
507
|
"span",
|
|
@@ -516,7 +516,7 @@ const Ue = ({ data: n }) => {
|
|
|
516
516
|
textTransform: "uppercase",
|
|
517
517
|
fontSize: 10
|
|
518
518
|
},
|
|
519
|
-
children:
|
|
519
|
+
children: xe
|
|
520
520
|
}
|
|
521
521
|
)
|
|
522
522
|
]
|
|
@@ -553,14 +553,14 @@ const Ue = ({ data: n }) => {
|
|
|
553
553
|
] }),
|
|
554
554
|
/* @__PURE__ */ e(x, { type: "source", position: N.Bottom, style: { opacity: 0 } })
|
|
555
555
|
] });
|
|
556
|
-
}, J = 5,
|
|
556
|
+
}, J = 5, qe = ({ id: n, data: i }) => {
|
|
557
557
|
const { onEditNode: f, onDeleteNode: p } = I(), { approvalData: s, isPreview: r = !1, _branchRail: h } = i, o = (s == null ? void 0 : s.policy) ?? {}, l = o.stages ?? [], d = l.length, u = l.slice(0, J), y = d - J, k = o.name ?? o.policyName ?? "Untitled Policy";
|
|
558
558
|
return /* @__PURE__ */ t("div", { style: { width: 350, position: "relative" }, children: [
|
|
559
559
|
/* @__PURE__ */ e(x, { type: "target", position: N.Top, style: { opacity: 0 } }),
|
|
560
560
|
/* @__PURE__ */ t("div", { style: { border: "1.5px solid #ffe082", borderRadius: 8, background: "#fff" }, children: [
|
|
561
561
|
/* @__PURE__ */ t("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center", style: { padding: "10px 6px" }, children: [
|
|
562
562
|
/* @__PURE__ */ t("div", { className: "ff-d-flex ff-align-items-center ff-gap-2", children: [
|
|
563
|
-
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-align-items-center ff-justify-content-center ff-rounded", style: { width: 25, height: 25, background: "rgba(251,192,45,0.2)" }, children: /* @__PURE__ */ e(
|
|
563
|
+
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-align-items-center ff-justify-content-center ff-rounded", style: { width: 25, height: 25, background: "rgba(251,192,45,0.2)" }, children: /* @__PURE__ */ e(Se, { style: { color: "#FBC02D" }, size: 16 }) }),
|
|
564
564
|
/* @__PURE__ */ e("span", { className: "ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: "Approval Policy" })
|
|
565
565
|
] }),
|
|
566
566
|
/* @__PURE__ */ t("div", { className: "node-actions ff-d-flex ff-align-items-center", children: [
|
|
@@ -609,16 +609,16 @@ const Ue = ({ data: n }) => {
|
|
|
609
609
|
] }),
|
|
610
610
|
l.length > 0 ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
611
611
|
u.map((g, c) => {
|
|
612
|
-
var P, A,
|
|
613
|
-
const S = ((P = g.stageName) == null ? void 0 : P.trim()) || `Stage ${c + 1}`, m = Array.isArray(g.userIds) ? g.userIds.length : 0, C = ((A = g.groupName) == null ? void 0 : A.trim()) ?? "", v = ((
|
|
614
|
-
let
|
|
615
|
-
return C ?
|
|
612
|
+
var P, A, z;
|
|
613
|
+
const S = ((P = g.stageName) == null ? void 0 : P.trim()) || `Stage ${c + 1}`, m = Array.isArray(g.userIds) ? g.userIds.length : 0, C = ((A = g.groupName) == null ? void 0 : A.trim()) ?? "", v = ((z = g.roleName) == null ? void 0 : z.trim()) ?? "", R = m > 0 || C || v;
|
|
614
|
+
let T = "Not configured";
|
|
615
|
+
return C ? T = `Group: ${C}` : v ? T = `Role: ${v}` : m > 0 && (T = `${m} approver${m !== 1 ? "s" : ""}`), /* @__PURE__ */ t("div", { className: "ff-d-flex ff-align-items-center ff-gap-2", children: [
|
|
616
616
|
/* @__PURE__ */ e("div", { className: "ff-rounded-circle ff-d-flex ff-align-items-center ff-justify-content-center ff-flex-shrink-0", style: { width: 28, height: 28, background: "#FFF9C4", color: "#5D4037", fontSize: 12, fontWeight: 700 }, children: c + 1 }),
|
|
617
617
|
/* @__PURE__ */ t("div", { className: "ff-flex-grow-1 ff-rounded ff-p-2 ff-d-flex ff-justify-content-between ff-align-items-center ff-border", style: { background: "#FFFDE7", borderColor: "#FEE79A" }, children: [
|
|
618
618
|
/* @__PURE__ */ e("span", { style: { fontSize: 12, fontWeight: 700, color: "#212121" }, children: S }),
|
|
619
619
|
/* @__PURE__ */ t("span", { className: `ff-d-flex ff-align-items-center ff-gap-1 ${R ? "ff-text-dark" : "ff-text-muted"}`, style: { fontSize: 12 }, children: [
|
|
620
|
-
/* @__PURE__ */ e(
|
|
621
|
-
|
|
620
|
+
/* @__PURE__ */ e(Ce, { size: 16, className: "ff-flex-shrink-0", style: { color: R ? "#5D4037" : "#9E9E9E" } }),
|
|
621
|
+
T
|
|
622
622
|
] })
|
|
623
623
|
] })
|
|
624
624
|
] }, c);
|
|
@@ -650,14 +650,14 @@ const Ue = ({ data: n }) => {
|
|
|
650
650
|
/* @__PURE__ */ e(x, { type: "source", position: N.Bottom, style: { opacity: 0 } }),
|
|
651
651
|
h && /* @__PURE__ */ e(he, { rail: h, cardWidth: 350 })
|
|
652
652
|
] });
|
|
653
|
-
},
|
|
653
|
+
}, Ze = ({ id: n, data: i }) => {
|
|
654
654
|
const { onEditNode: f, onDeleteNode: p } = I(), { duration: s, unit: r } = i, h = s != null && r, o = h ? `Wait ${s} ${r}` : "Not configured";
|
|
655
655
|
return /* @__PURE__ */ t("div", { style: { width: 350 }, children: [
|
|
656
656
|
/* @__PURE__ */ e(x, { type: "target", position: N.Top, style: { opacity: 0 } }),
|
|
657
657
|
/* @__PURE__ */ t("div", { style: { border: "1.5px solid #b0bec5", borderRadius: 8, background: "#fff" }, children: [
|
|
658
658
|
/* @__PURE__ */ t("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center ff-mx-2 ff-mt-2 ff-mb-1", children: [
|
|
659
659
|
/* @__PURE__ */ t("div", { className: "ff-d-flex ff-align-items-center ff-gap-2", children: [
|
|
660
|
-
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-align-items-center ff-justify-content-center ff-rounded", style: { width: 25, height: 25, background: "rgba(33,150,243,0.1)" }, children: /* @__PURE__ */ e(
|
|
660
|
+
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-align-items-center ff-justify-content-center ff-rounded", style: { width: 25, height: 25, background: "rgba(33,150,243,0.1)" }, children: /* @__PURE__ */ e(Ee, { size: 16, color: "#1976d2" }) }),
|
|
661
661
|
/* @__PURE__ */ e("span", { className: "ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: "Delay" })
|
|
662
662
|
] }),
|
|
663
663
|
/* @__PURE__ */ t("div", { className: "node-actions ff-d-flex ff-align-items-center", children: [
|
|
@@ -697,19 +697,19 @@ const Ue = ({ data: n }) => {
|
|
|
697
697
|
/* @__PURE__ */ e(x, { type: "source", position: N.Bottom, style: { opacity: 0 } })
|
|
698
698
|
] });
|
|
699
699
|
}, Q = {
|
|
700
|
-
email: { label: "Email", bg: "#e3f2fd", color: "#1565c0", iconType:
|
|
700
|
+
email: { label: "Email", bg: "#e3f2fd", color: "#1565c0", iconType: ze },
|
|
701
701
|
slack: { label: "Slack", bg: "#e8f5e9", color: "#2e7d32", iconType: U },
|
|
702
702
|
teams: { label: "MS Teams", bg: "#ede7f6", color: "#4527a0", iconType: U },
|
|
703
|
-
sms: { label: "SMS", bg: "#fce4ec", color: "#880e4f", iconType:
|
|
703
|
+
sms: { label: "SMS", bg: "#fce4ec", color: "#880e4f", iconType: Te },
|
|
704
704
|
"in-app": { label: "In-App", bg: "#fff3e0", color: "#e65100", iconType: U },
|
|
705
705
|
webhook: { label: "Webhook", bg: "#f3e5f5", color: "#6a1b9a", iconType: de }
|
|
706
|
-
},
|
|
706
|
+
}, Ye = {
|
|
707
707
|
label: "Notification",
|
|
708
708
|
bg: "rgba(156,39,176,0.1)",
|
|
709
709
|
color: "#7b1fa2",
|
|
710
710
|
iconType: U
|
|
711
711
|
};
|
|
712
|
-
function
|
|
712
|
+
function Je(n) {
|
|
713
713
|
var i;
|
|
714
714
|
switch (n.channel) {
|
|
715
715
|
case "email":
|
|
@@ -728,7 +728,7 @@ function Ye(n) {
|
|
|
728
728
|
return n.recipient ?? null;
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function Qe(n) {
|
|
732
732
|
switch (n.channel) {
|
|
733
733
|
case "email":
|
|
734
734
|
return n.emailSubject ?? n.subject ?? null;
|
|
@@ -742,9 +742,9 @@ function Je(n) {
|
|
|
742
742
|
return n.subject ?? null;
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
const
|
|
746
|
-
const { onEditNode: f, onDeleteNode: p } = I(), s = i, r = s.channel && Q[s.channel] ? Q[s.channel] :
|
|
747
|
-
return /* @__PURE__ */ t("div", { style: { width:
|
|
745
|
+
const Xe = ({ id: n, data: i }) => {
|
|
746
|
+
const { onEditNode: f, onDeleteNode: p } = I(), s = i, r = s.channel && Q[s.channel] ? Q[s.channel] : Ye, h = Je(s), o = Qe(s), l = !!(s.channel && h), d = r.iconType;
|
|
747
|
+
return /* @__PURE__ */ t("div", { style: { width: K }, children: [
|
|
748
748
|
/* @__PURE__ */ e(x, { type: "target", position: N.Top, style: { opacity: 0 } }),
|
|
749
749
|
/* @__PURE__ */ t("div", { style: { border: "1.5px solid #b0bec5", borderRadius: 8, background: "#fff" }, children: [
|
|
750
750
|
/* @__PURE__ */ t("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center", style: { padding: "10px 6px" }, children: [
|
|
@@ -797,14 +797,14 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
797
797
|
}, X = {
|
|
798
798
|
"api-key": "API Key",
|
|
799
799
|
hmac: "HMAC"
|
|
800
|
-
},
|
|
800
|
+
}, et = ({ data: n }) => {
|
|
801
801
|
const { onClickAddTrigger: i } = I(), { label: f = "Webhook Trigger", endpointUrl: p, authMethod: s, source: r } = n, h = (l) => {
|
|
802
802
|
l.stopPropagation(), i();
|
|
803
803
|
}, o = (l) => {
|
|
804
804
|
l.stopPropagation(), p && navigator.clipboard.writeText(p).catch(() => {
|
|
805
805
|
});
|
|
806
806
|
};
|
|
807
|
-
return /* @__PURE__ */ t("div", { style: { width:
|
|
807
|
+
return /* @__PURE__ */ t("div", { style: { width: K }, children: [
|
|
808
808
|
/* @__PURE__ */ e(x, { type: "target", position: N.Top, style: { opacity: 0 } }),
|
|
809
809
|
/* @__PURE__ */ t("div", { style: { border: "1.5px solid #90caf9", borderRadius: 8, background: "#fff", overflow: "hidden" }, children: [
|
|
810
810
|
/* @__PURE__ */ t("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center", style: { padding: "10px 6px" }, children: [
|
|
@@ -845,7 +845,7 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
845
845
|
(l.key === "Enter" || l.key === " ") && o(l);
|
|
846
846
|
},
|
|
847
847
|
style: { cursor: "pointer", flexShrink: 0 },
|
|
848
|
-
children: /* @__PURE__ */ e(
|
|
848
|
+
children: /* @__PURE__ */ e(Ie, { size: 12, color: "#1565c0" })
|
|
849
849
|
}
|
|
850
850
|
) })
|
|
851
851
|
] })
|
|
@@ -853,10 +853,10 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
853
853
|
] }),
|
|
854
854
|
/* @__PURE__ */ e(x, { type: "source", position: N.Bottom, style: { opacity: 0 } })
|
|
855
855
|
] });
|
|
856
|
-
},
|
|
856
|
+
}, tt = ({ id: n, data: i }) => {
|
|
857
857
|
var k;
|
|
858
|
-
const { onEditNode: f, onDeleteNode: p, nodeRegistry: s } = I(), { method: r, url: h, descriptorType: o } = i, l = o ? (k = s == null ? void 0 : s.forType(o)) == null ? void 0 : k.icon : /* @__PURE__ */ e(
|
|
859
|
-
return /* @__PURE__ */ t("div", { style: { width:
|
|
858
|
+
const { onEditNode: f, onDeleteNode: p, nodeRegistry: s } = I(), { method: r, url: h, descriptorType: o } = i, l = o ? (k = s == null ? void 0 : s.forType(o)) == null ? void 0 : k.icon : /* @__PURE__ */ e(Pe, { size: 16, color: "#546e7a" }), d = !!(r && h), u = (r == null ? void 0 : r.toUpperCase()) ?? "", y = We[u] ?? null;
|
|
859
|
+
return /* @__PURE__ */ t("div", { style: { width: K }, children: [
|
|
860
860
|
/* @__PURE__ */ e(x, { type: "target", position: N.Top, style: { opacity: 0 } }),
|
|
861
861
|
/* @__PURE__ */ t("div", { style: { border: "1.5px solid #b0bec5", borderRadius: 8, background: "#fff" }, children: [
|
|
862
862
|
/* @__PURE__ */ t("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center", style: { padding: "10px 6px" }, children: [
|
|
@@ -903,7 +903,7 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
903
903
|
] }),
|
|
904
904
|
/* @__PURE__ */ e(x, { type: "source", position: N.Bottom, style: { opacity: 0 } })
|
|
905
905
|
] });
|
|
906
|
-
},
|
|
906
|
+
}, nt = {
|
|
907
907
|
eq: "=",
|
|
908
908
|
neq: "≠",
|
|
909
909
|
gt: ">",
|
|
@@ -915,14 +915,14 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
915
915
|
endsWith: "ends with",
|
|
916
916
|
isEmpty: "is empty",
|
|
917
917
|
isNotEmpty: "is not empty"
|
|
918
|
-
},
|
|
918
|
+
}, ot = ({ id: n, data: i }) => {
|
|
919
919
|
const { onEditNode: f, onDeleteNode: p } = I(), { title: s = "Condition Branch", branchConfigs: r = [], defaultBranch: h } = i, o = r.length > 0;
|
|
920
|
-
return /* @__PURE__ */ t("div", { style: { width:
|
|
920
|
+
return /* @__PURE__ */ t("div", { style: { width: K }, children: [
|
|
921
921
|
/* @__PURE__ */ e(x, { type: "target", position: N.Top, style: { opacity: 0 } }),
|
|
922
922
|
/* @__PURE__ */ t("div", { style: { border: "1.5px solid #b39ddb", borderRadius: 8, background: "#fff" }, children: [
|
|
923
923
|
/* @__PURE__ */ t("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center", style: { padding: "10px 6px" }, children: [
|
|
924
924
|
/* @__PURE__ */ t("div", { className: "ff-d-flex ff-align-items-center ff-gap-2", children: [
|
|
925
|
-
/* @__PURE__ */ e("div", { style: { width: 25, height: 25, borderRadius: 6, background: "rgba(103,58,183,0.1)", display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(
|
|
925
|
+
/* @__PURE__ */ e("div", { style: { width: 25, height: 25, borderRadius: 6, background: "rgba(103,58,183,0.1)", display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(Ae, { size: 16, color: "#512da8" }) }),
|
|
926
926
|
/* @__PURE__ */ e("span", { className: "ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: s })
|
|
927
927
|
] }),
|
|
928
928
|
/* @__PURE__ */ t("div", { className: "node-actions ff-d-flex ff-align-items-center", children: [
|
|
@@ -966,7 +966,7 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
966
966
|
y ? /* @__PURE__ */ t("span", { style: { fontSize: 11, color: "#616161", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: [
|
|
967
967
|
y.field,
|
|
968
968
|
" ",
|
|
969
|
-
|
|
969
|
+
nt[y.operator] ?? y.operator,
|
|
970
970
|
y.value ? ` ${y.value}` : "",
|
|
971
971
|
k > 0 ? ` +${k} more` : ""
|
|
972
972
|
] }) : /* @__PURE__ */ e("span", { style: { fontSize: 11, color: "#9e9e9e" }, children: "No conditions yet" })
|
|
@@ -980,12 +980,12 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
980
980
|
] }),
|
|
981
981
|
/* @__PURE__ */ e(x, { type: "source", position: N.Bottom, style: { opacity: 0 } })
|
|
982
982
|
] });
|
|
983
|
-
},
|
|
983
|
+
}, it = ({ id: n, data: i }) => {
|
|
984
984
|
var g;
|
|
985
|
-
const { onEditNode: f, onDeleteNode: p, nodeRegistry: s } = I(), { title: r = "Sub-Workflow", workflowId: h, workflowLabel: o, descriptorType: l, onPreview: d } = i, u = l ? (g = s == null ? void 0 : s.forType(l)) == null ? void 0 : g.icon : /* @__PURE__ */ e(
|
|
985
|
+
const { onEditNode: f, onDeleteNode: p, nodeRegistry: s } = I(), { title: r = "Sub-Workflow", workflowId: h, workflowLabel: o, descriptorType: l, onPreview: d } = i, u = l ? (g = s == null ? void 0 : s.forType(l)) == null ? void 0 : g.icon : /* @__PURE__ */ e(De, { size: 16, color: "#00695c" }), y = !!h, k = (c) => {
|
|
986
986
|
c.stopPropagation(), h && d && d(h);
|
|
987
987
|
};
|
|
988
|
-
return /* @__PURE__ */ t("div", { style: { width:
|
|
988
|
+
return /* @__PURE__ */ t("div", { style: { width: K }, children: [
|
|
989
989
|
/* @__PURE__ */ e(x, { type: "target", position: N.Top, style: { opacity: 0 } }),
|
|
990
990
|
/* @__PURE__ */ t("div", { style: { border: "1.5px solid #80cbc4", borderRadius: 8, background: "#fff" }, children: [
|
|
991
991
|
/* @__PURE__ */ t("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center", style: { padding: "10px 6px" }, children: [
|
|
@@ -1044,7 +1044,7 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
1044
1044
|
},
|
|
1045
1045
|
style: { cursor: "pointer", display: "flex", alignItems: "center", gap: 3, fontSize: 11, color: "#00897b" },
|
|
1046
1046
|
children: [
|
|
1047
|
-
/* @__PURE__ */ e(
|
|
1047
|
+
/* @__PURE__ */ e(Re, { size: 13 }),
|
|
1048
1048
|
"Preview"
|
|
1049
1049
|
]
|
|
1050
1050
|
}
|
|
@@ -1053,23 +1053,23 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
1053
1053
|
] }),
|
|
1054
1054
|
/* @__PURE__ */ e(x, { type: "source", position: N.Bottom, style: { opacity: 0 } })
|
|
1055
1055
|
] });
|
|
1056
|
-
},
|
|
1057
|
-
startNode:
|
|
1058
|
-
endNode:
|
|
1059
|
-
addTriggerNode:
|
|
1060
|
-
addStepNode:
|
|
1056
|
+
}, xt = {
|
|
1057
|
+
startNode: $e,
|
|
1058
|
+
endNode: Be,
|
|
1059
|
+
addTriggerNode: je,
|
|
1060
|
+
addStepNode: Ke,
|
|
1061
1061
|
triggerNode: _e,
|
|
1062
|
-
eventNode:
|
|
1063
|
-
filterNode:
|
|
1064
|
-
actionNode:
|
|
1065
|
-
approvalNode:
|
|
1066
|
-
delayNode:
|
|
1067
|
-
notificationNode:
|
|
1068
|
-
webhookTriggerNode:
|
|
1069
|
-
restApiNode:
|
|
1070
|
-
conditionBranchNode:
|
|
1071
|
-
subWorkflowNode:
|
|
1072
|
-
},
|
|
1062
|
+
eventNode: He,
|
|
1063
|
+
filterNode: Ge,
|
|
1064
|
+
actionNode: Ve,
|
|
1065
|
+
approvalNode: qe,
|
|
1066
|
+
delayNode: Ze,
|
|
1067
|
+
notificationNode: Xe,
|
|
1068
|
+
webhookTriggerNode: et,
|
|
1069
|
+
restApiNode: tt,
|
|
1070
|
+
conditionBranchNode: ot,
|
|
1071
|
+
subWorkflowNode: it
|
|
1072
|
+
}, lt = 11.5, ee = 2, M = 6, te = 40, ne = 20, oe = 4, Nt = ({
|
|
1073
1073
|
id: n,
|
|
1074
1074
|
sourceX: i,
|
|
1075
1075
|
sourceY: f,
|
|
@@ -1086,8 +1086,8 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
1086
1086
|
sourceY: f,
|
|
1087
1087
|
targetX: p,
|
|
1088
1088
|
targetY: s
|
|
1089
|
-
}), g = d == null ? void 0 : d.label, c = g === "Pass", S = c || g === "Fail", m = i + (p - i) / 3, C = f + (s - f) / 3, v = i + 2 * (p - i) / 3, R = f + 2 * (s - f) / 3,
|
|
1090
|
-
if (L.stopPropagation(), typeof
|
|
1089
|
+
}), g = d == null ? void 0 : d.label, c = g === "Pass", S = c || g === "Fail", m = i + (p - i) / 3, C = f + (s - f) / 3, v = i + 2 * (p - i) / 3, R = f + 2 * (s - f) / 3, T = d == null ? void 0 : d.onAddStepClick, P = (L) => {
|
|
1090
|
+
if (L.stopPropagation(), typeof T != "function") return;
|
|
1091
1091
|
const V = {
|
|
1092
1092
|
edgeId: n,
|
|
1093
1093
|
nodeId: o,
|
|
@@ -1098,21 +1098,21 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
1098
1098
|
referenceNodeType: d == null ? void 0 : d.referenceNodeType,
|
|
1099
1099
|
stepVisibility: d == null ? void 0 : d.stepVisibility
|
|
1100
1100
|
};
|
|
1101
|
-
|
|
1101
|
+
T(o, V);
|
|
1102
1102
|
}, A = (L) => {
|
|
1103
1103
|
(L.key === "Enter" || L.key === " ") && (L.preventDefault(), P(L));
|
|
1104
|
-
},
|
|
1104
|
+
}, z = () => /* @__PURE__ */ t(B, { children: [
|
|
1105
1105
|
/* @__PURE__ */ t("g", { className: "plus-icon-container", children: [
|
|
1106
|
-
/* @__PURE__ */ e("circle", { r:
|
|
1107
|
-
/* @__PURE__ */ e("line", { x1: 0, y1: -
|
|
1108
|
-
/* @__PURE__ */ e("line", { x1: -
|
|
1106
|
+
/* @__PURE__ */ e("circle", { r: lt, className: "edge-plus-circle" }),
|
|
1107
|
+
/* @__PURE__ */ e("line", { x1: 0, y1: -M, x2: 0, y2: M, strokeWidth: ee, strokeLinecap: "round", className: "plus-line" }),
|
|
1108
|
+
/* @__PURE__ */ e("line", { x1: -M, y1: 0, x2: M, y2: 0, strokeWidth: ee, strokeLinecap: "round", className: "plus-line" })
|
|
1109
1109
|
] }),
|
|
1110
1110
|
/* @__PURE__ */ t("g", { className: "edge-plus-tooltip", transform: "translate(18, 0)", children: [
|
|
1111
1111
|
/* @__PURE__ */ e("rect", { x: 0, y: -10, width: 65, height: 20, rx: 4, className: "tooltip-bg" }),
|
|
1112
1112
|
/* @__PURE__ */ e("path", { d: "M0 -4 L-4 0 L0 4 Z", className: "tooltip-bg" }),
|
|
1113
1113
|
/* @__PURE__ */ e("text", { x: 32, y: 0, textAnchor: "middle", dominantBaseline: "central", fill: "white", style: { fontSize: 10, fontWeight: 600, pointerEvents: "none" }, children: "Add Step" })
|
|
1114
1114
|
] })
|
|
1115
|
-
] }), E =
|
|
1115
|
+
] }), E = T ? {
|
|
1116
1116
|
onClick: P,
|
|
1117
1117
|
onKeyDown: A,
|
|
1118
1118
|
role: "button",
|
|
@@ -1128,10 +1128,10 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
1128
1128
|
/* @__PURE__ */ e("rect", { x: -te / 2, y: -ne / 2, width: te, height: ne, rx: oe, ry: oe, fill: c ? "#ADE6C5" : "#FDBFBF" }),
|
|
1129
1129
|
/* @__PURE__ */ e("text", { textAnchor: "middle", dominantBaseline: "central", fill: c ? "#1DBF60" : "#C50000", style: { fontSize: 12, fontWeight: 500 }, children: g })
|
|
1130
1130
|
] }),
|
|
1131
|
-
/* @__PURE__ */ e("g", { className: "nodrag nopan edge-plus-svg", transform: `translate(${v}, ${R})`, "data-testid": "plus-node-icon", ...E, children: /* @__PURE__ */ e(
|
|
1132
|
-
] }) : /* @__PURE__ */ e("g", { className: "nodrag nopan edge-plus-svg", transform: `translate(${y}, ${k})`, "data-testid": "plus-node-icon", ...E, children: /* @__PURE__ */ e(
|
|
1131
|
+
/* @__PURE__ */ e("g", { className: "nodrag nopan edge-plus-svg", transform: `translate(${v}, ${R})`, "data-testid": "plus-node-icon", ...E, children: /* @__PURE__ */ e(z, {}) })
|
|
1132
|
+
] }) : /* @__PURE__ */ e("g", { className: "nodrag nopan edge-plus-svg", transform: `translate(${y}, ${k})`, "data-testid": "plus-node-icon", ...E, children: /* @__PURE__ */ e(z, {}) })
|
|
1133
1133
|
] });
|
|
1134
|
-
},
|
|
1134
|
+
}, rt = 11.5, ie = 2, _ = 6, kt = ({
|
|
1135
1135
|
id: n,
|
|
1136
1136
|
sourceX: i,
|
|
1137
1137
|
sourceY: f,
|
|
@@ -1180,14 +1180,14 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
1180
1180
|
tabIndex: y ? 0 : void 0,
|
|
1181
1181
|
"data-testid": "plus-node-icon",
|
|
1182
1182
|
children: [
|
|
1183
|
-
/* @__PURE__ */ e("circle", { r:
|
|
1183
|
+
/* @__PURE__ */ e("circle", { r: rt, className: "edge-plus-circle" }),
|
|
1184
1184
|
/* @__PURE__ */ e(
|
|
1185
1185
|
"line",
|
|
1186
1186
|
{
|
|
1187
1187
|
x1: 0,
|
|
1188
|
-
y1: -
|
|
1188
|
+
y1: -_,
|
|
1189
1189
|
x2: 0,
|
|
1190
|
-
y2:
|
|
1190
|
+
y2: _,
|
|
1191
1191
|
strokeWidth: ie,
|
|
1192
1192
|
strokeLinecap: "round",
|
|
1193
1193
|
className: "plus-line"
|
|
@@ -1196,9 +1196,9 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
1196
1196
|
/* @__PURE__ */ e(
|
|
1197
1197
|
"line",
|
|
1198
1198
|
{
|
|
1199
|
-
x1: -
|
|
1199
|
+
x1: -_,
|
|
1200
1200
|
y1: 0,
|
|
1201
|
-
x2:
|
|
1201
|
+
x2: _,
|
|
1202
1202
|
y2: 0,
|
|
1203
1203
|
strokeWidth: ie,
|
|
1204
1204
|
strokeLinecap: "round",
|
|
@@ -1235,10 +1235,10 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
)
|
|
1237
1237
|
] });
|
|
1238
|
-
},
|
|
1238
|
+
}, vt = ({ id: n, sourceX: i, sourceY: f, targetX: p, targetY: s }) => {
|
|
1239
1239
|
const [r] = H({ sourceX: i, sourceY: f, targetX: p, targetY: s });
|
|
1240
1240
|
return /* @__PURE__ */ e(G, { id: n, path: r, style: { stroke: "#b0bec5" } });
|
|
1241
|
-
},
|
|
1241
|
+
}, st = 11.5, le = 2, O = 6, ct = -24, re = 40, se = 20, ce = 4, wt = ({
|
|
1242
1242
|
id: n,
|
|
1243
1243
|
sourceX: i,
|
|
1244
1244
|
sourceY: f,
|
|
@@ -1275,7 +1275,7 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
1275
1275
|
role: c ? "button" : void 0,
|
|
1276
1276
|
tabIndex: c ? 0 : void 0,
|
|
1277
1277
|
children: [
|
|
1278
|
-
g && /* @__PURE__ */ t("g", { transform: `translate(0, ${S ?
|
|
1278
|
+
g && /* @__PURE__ */ t("g", { transform: `translate(0, ${S ? ct : 0})`, children: [
|
|
1279
1279
|
/* @__PURE__ */ e(
|
|
1280
1280
|
"rect",
|
|
1281
1281
|
{
|
|
@@ -1291,7 +1291,7 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
1291
1291
|
/* @__PURE__ */ e("text", { textAnchor: "middle", dominantBaseline: "central", fill: k ? "#1DBF60" : "#C50000", style: { fontSize: 12, fontWeight: 500 }, children: y })
|
|
1292
1292
|
] }),
|
|
1293
1293
|
S && /* @__PURE__ */ t("g", { className: "plus-icon-container", children: [
|
|
1294
|
-
/* @__PURE__ */ e("circle", { r:
|
|
1294
|
+
/* @__PURE__ */ e("circle", { r: st, className: "edge-plus-circle" }),
|
|
1295
1295
|
/* @__PURE__ */ e("line", { x1: 0, y1: -O, x2: 0, y2: O, strokeWidth: le, strokeLinecap: "round", className: "plus-line" }),
|
|
1296
1296
|
/* @__PURE__ */ e("line", { x1: -O, y1: 0, x2: O, y2: 0, strokeWidth: le, strokeLinecap: "round", className: "plus-line" })
|
|
1297
1297
|
] }),
|
|
@@ -1304,7 +1304,7 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
)
|
|
1306
1306
|
] });
|
|
1307
|
-
},
|
|
1307
|
+
}, St = ({
|
|
1308
1308
|
id: n,
|
|
1309
1309
|
source: i,
|
|
1310
1310
|
target: f,
|
|
@@ -1322,7 +1322,7 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
1322
1322
|
})() : (() => {
|
|
1323
1323
|
const E = s + 30;
|
|
1324
1324
|
return `M ${p},${s} L ${p},${E} L ${r},${E} L ${r},${h}`;
|
|
1325
|
-
})(), g = o.stroke || "#d1d5db", c = d == null ? void 0 : d.label, S = (d == null ? void 0 : d.isFirst) ?? !1, m = d == null ? void 0 : d.onAddStepClick, C = u ? h - y : s + 30, v = p + (r - p) * (u ? 0.25 : 0.35), R = p + (r - p) * (u ? 0.65 : 0.7),
|
|
1325
|
+
})(), g = o.stroke || "#d1d5db", c = d == null ? void 0 : d.label, S = (d == null ? void 0 : d.isFirst) ?? !1, m = d == null ? void 0 : d.onAddStepClick, C = u ? h - y : s + 30, v = p + (r - p) * (u ? 0.25 : 0.35), R = p + (r - p) * (u ? 0.65 : 0.7), T = C, P = (E) => {
|
|
1326
1326
|
E.stopPropagation(), m && m(i, {
|
|
1327
1327
|
edgeId: n,
|
|
1328
1328
|
nodeId: i,
|
|
@@ -1333,10 +1333,10 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
1333
1333
|
filterId: d == null ? void 0 : d.filterId,
|
|
1334
1334
|
branch: d == null ? void 0 : d.branch
|
|
1335
1335
|
});
|
|
1336
|
-
}, A = 11.5,
|
|
1336
|
+
}, A = 11.5, z = 6;
|
|
1337
1337
|
return /* @__PURE__ */ t("g", { children: [
|
|
1338
1338
|
/* @__PURE__ */ e("path", { id: n, d: k, fill: "none", stroke: g, strokeWidth: 1.5, markerEnd: l }),
|
|
1339
|
-
c && !u && /* @__PURE__ */ e("g", { transform: `translate(${v}, ${
|
|
1339
|
+
c && !u && /* @__PURE__ */ e("g", { transform: `translate(${v}, ${T})`, children: (() => {
|
|
1340
1340
|
const E = Math.max(44, c.length * 7 + 20);
|
|
1341
1341
|
return /* @__PURE__ */ t(B, { children: [
|
|
1342
1342
|
/* @__PURE__ */ e(
|
|
@@ -1370,37 +1370,37 @@ const Qe = ({ id: n, data: i }) => {
|
|
|
1370
1370
|
m && /* @__PURE__ */ t(
|
|
1371
1371
|
"g",
|
|
1372
1372
|
{
|
|
1373
|
-
transform: `translate(${R}, ${
|
|
1373
|
+
transform: `translate(${R}, ${T})`,
|
|
1374
1374
|
onClick: P,
|
|
1375
1375
|
style: { cursor: "pointer", pointerEvents: "all" },
|
|
1376
1376
|
className: "nodrag nopan edge-plus-svg",
|
|
1377
1377
|
children: [
|
|
1378
1378
|
/* @__PURE__ */ e("circle", { r: A, className: "edge-plus-circle" }),
|
|
1379
|
-
/* @__PURE__ */ e("line", { x1: 0, y1: -
|
|
1380
|
-
/* @__PURE__ */ e("line", { x1: -
|
|
1379
|
+
/* @__PURE__ */ e("line", { x1: 0, y1: -z, x2: 0, y2: z, strokeWidth: 2, strokeLinecap: "round", className: "plus-line" }),
|
|
1380
|
+
/* @__PURE__ */ e("line", { x1: -z, y1: 0, x2: z, y2: 0, strokeWidth: 2, strokeLinecap: "round", className: "plus-line" })
|
|
1381
1381
|
]
|
|
1382
1382
|
}
|
|
1383
1383
|
)
|
|
1384
1384
|
] });
|
|
1385
1385
|
};
|
|
1386
1386
|
export {
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1387
|
+
Ve as A,
|
|
1388
|
+
Ze as D,
|
|
1389
|
+
Nt as E,
|
|
1390
|
+
Ge as F,
|
|
1391
|
+
St as G,
|
|
1392
|
+
wt as L,
|
|
1393
|
+
Xe as N,
|
|
1394
|
+
vt as P,
|
|
1395
|
+
tt as R,
|
|
1396
|
+
$e as S,
|
|
1397
1397
|
_e as T,
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1398
|
+
et as W,
|
|
1399
|
+
je as a,
|
|
1400
|
+
qe as b,
|
|
1401
|
+
Be as c,
|
|
1402
|
+
kt as d,
|
|
1403
|
+
xt as e,
|
|
1404
|
+
Fe as f
|
|
1405
1405
|
};
|
|
1406
|
-
//# sourceMappingURL=GatewayBranchEdge-
|
|
1406
|
+
//# sourceMappingURL=GatewayBranchEdge-F2AGJpun.js.map
|