@notmrabhi/flowforge 0.1.20 → 0.1.22

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.
@@ -1,14 +1,14 @@
1
- import { jsxs as n, jsx as e, Fragment as L } from "react/jsx-runtime";
2
- import { Handle as b, Position as x, getStraightPath as M, BaseEdge as K } from "reactflow";
3
- import { Tooltip as D, Chip as U } from "@mui/material";
4
- import { GrTrigger as ce } from "react-icons/gr";
5
- import { createContext as de, useContext as ae } from "react";
6
- import { d as pe } from "./messages-CO299wPN.js";
7
- import { MdOutlineModeEdit as T, MdInfoOutline as W, MdInput as oe, MdDeleteOutline as P, MdCheckCircle as ge, MdPeople as he, MdSchedule as ye, MdWebhook as ie, MdNotifications as j, MdSms as ue, MdEmail as me, MdContentCopy as be, MdHttp as xe, MdCallSplit as Ne, MdAccountTree as ke, MdOpenInNew as ve } from "react-icons/md";
1
+ import { jsxs as n, jsx as e, Fragment as R } from "react/jsx-runtime";
2
+ import { Handle as b, Position as x, getStraightPath as K, BaseEdge as _ } from "reactflow";
3
+ import { Tooltip as D, Chip as H } from "@mui/material";
4
+ import { GrTrigger as de } from "react-icons/gr";
5
+ import { createContext as ae, useContext as pe } from "react";
6
+ import { d as ge } from "./messages-CO299wPN.js";
7
+ import { MdOutlineModeEdit as T, MdInfoOutline as W, MdInput as oe, MdDeleteOutline as P, MdCheckCircle as he, MdPeople as ye, MdSchedule as ue, MdWebhook as ie, MdNotifications as M, MdSms as me, MdEmail as be, MdContentCopy as xe, MdHttp as Ne, MdCallSplit as ke, MdAccountTree as ve, MdOpenInNew as we } from "react-icons/md";
8
8
  import { FaCheckCircle as le, FaTimesCircle as re } from "react-icons/fa";
9
- import { FiFilter as we } from "react-icons/fi";
10
- import { a as F, H as Se, B as O } from "./canvasTokens-CAD6G24b.js";
11
- const Ee = de({
9
+ import { FiFilter as Se } from "react-icons/fi";
10
+ import { a as F, H as Ee, B as U } from "./canvasTokens-CAD6G24b.js";
11
+ const Ce = ae({
12
12
  onEditNode: () => {
13
13
  },
14
14
  onDeleteNode: () => {
@@ -17,20 +17,20 @@ const Ee = de({
17
17
  },
18
18
  onClickAddTrigger: () => {
19
19
  },
20
- messages: pe,
20
+ messages: ge,
21
21
  nodeRegistry: null,
22
22
  nodeBody: "full"
23
- }), E = () => ae(Ee), Ce = () => /* @__PURE__ */ n("div", { style: { width: 350, display: "flex", justifyContent: "center" }, children: [
23
+ }), E = () => pe(Ce), Te = () => /* @__PURE__ */ n("div", { style: { width: 350, display: "flex", justifyContent: "center" }, children: [
24
24
  /* @__PURE__ */ e(b, { type: "source", position: x.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
- ] }), Te = () => /* @__PURE__ */ n("div", { style: { width: 350, display: "flex", justifyContent: "center" }, children: [
26
+ ] }), ze = () => /* @__PURE__ */ n("div", { style: { width: 350, display: "flex", justifyContent: "center" }, children: [
27
27
  /* @__PURE__ */ e(b, { type: "target", position: x.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
- ] }), ze = () => {
30
- const { onClickAddTrigger: t, messages: i } = E();
29
+ ] }), Ie = () => {
30
+ const { onClickAddTrigger: t, messages: r } = E();
31
31
  return /* @__PURE__ */ n("div", { style: { width: 350, display: "flex", justifyContent: "center" }, children: [
32
32
  /* @__PURE__ */ e(b, { type: "target", position: x.Top, style: { opacity: 0, left: "50%" } }),
33
- /* @__PURE__ */ e(D, { title: i.addTriggerTooltip, placement: "top", arrow: !0, children: /* @__PURE__ */ n(
33
+ /* @__PURE__ */ e(D, { title: r.addTriggerTooltip, placement: "top", arrow: !0, children: /* @__PURE__ */ n(
34
34
  "div",
35
35
  {
36
36
  onClick: t,
@@ -41,23 +41,23 @@ const Ee = de({
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(ce, { size: 16 }),
45
- /* @__PURE__ */ e("span", { className: "ff-text-black", style: { fontSize: 13 }, "data-testid": "add-trigger-btn-text", children: i.addTriggerButton })
44
+ /* @__PURE__ */ e(de, { size: 16 }),
45
+ /* @__PURE__ */ e("span", { className: "ff-text-black", style: { fontSize: 13 }, "data-testid": "add-trigger-btn-text", children: r.addTriggerButton })
46
46
  ]
47
47
  }
48
48
  ) }),
49
49
  /* @__PURE__ */ e(b, { type: "source", position: x.Bottom, style: { opacity: 0, left: "50%" } })
50
50
  ] });
51
- }, Ie = ({ id: t }) => {
52
- const { onAddStep: i } = E();
51
+ }, Pe = ({ id: t }) => {
52
+ const { onAddStep: r } = E();
53
53
  return /* @__PURE__ */ n(
54
54
  "div",
55
55
  {
56
- onClick: () => i(t),
56
+ onClick: () => r(t),
57
57
  role: "button",
58
58
  tabIndex: 0,
59
59
  onKeyDown: (f) => {
60
- f.key === "Enter" && i(t);
60
+ f.key === "Enter" && r(t);
61
61
  },
62
62
  style: { width: 28, height: 28, borderRadius: "50%", border: "1.5px solid #9e9e9e", background: "#fff", display: "flex", alignItems: "center", justifyContent: "center", cursor: "pointer", fontSize: 18, color: "#757575", lineHeight: 1, userSelect: "none" },
63
63
  children: [
@@ -68,37 +68,38 @@ const Ee = de({
68
68
  }
69
69
  );
70
70
  };
71
- function Pe(t) {
72
- return t ? t === "END_USER_CREATION" ? "New User Registration" : t === "END_USER_UPDATION" ? "On User Update" : t.replace(/[_-]+/g, " ").toLowerCase().replace(/\b\w/g, (i) => i.toUpperCase()) : "";
71
+ function se(t) {
72
+ return t ? t.replace(/[_-]+/g, " ").toLowerCase().replace(/\b\w/g, (r) => r.toUpperCase()) : "";
73
73
  }
74
74
  function De(t) {
75
- const i = typeof t == "string" ? t : t.value ?? "";
76
- return i === "SIGNUP_FLOW" ? "User Self-Registration" : i === "ADMIN_CREATION_FLOW" ? "Create User via Admin Portal" : i === "SHEDULAR" ? "Scheduler" : typeof t != "string" && t.label ? t.label : i.replace(/[_-]+/g, " ").replace(/\b\w/g, (f) => f.toUpperCase());
75
+ if (typeof t != "string" && t.label) return t.label;
76
+ const r = typeof t == "string" ? t : t.value ?? "";
77
+ return se(r);
77
78
  }
78
79
  const Ae = ({ data: t }) => {
79
- const { onClickAddTrigger: i } = E(), {
80
+ const { onClickAddTrigger: r } = E(), {
80
81
  type: f,
81
82
  eventType: a,
82
83
  sources: s,
83
- label: r,
84
+ label: l,
84
85
  source: g,
85
86
  previewWorkflow: o,
86
- executionStatus: l,
87
+ executionStatus: i,
87
88
  infoText: d = "This node decides the flow trigger type and configuration."
88
89
  } = t ?? {}, y = (m) => {
89
- m == null || m.stopPropagation(), i();
90
- }, h = Array.isArray(s) && s.length > 0, N = !!(r || g), p = f === "scheduler" ? "Scheduler Trigger" : f === "event" || h || N ? "Event Trigger Source" : "Select Trigger", c = (() => {
90
+ m == null || m.stopPropagation(), r();
91
+ }, h = Array.isArray(s) && s.length > 0, N = !!(l || g), p = f === "scheduler" ? "Scheduler Trigger" : f === "event" || h || N ? "Event Trigger Source" : "Select Trigger", c = (() => {
91
92
  if (f === "scheduler")
92
93
  return /* @__PURE__ */ e("span", { children: "Scheduler to be configured" });
93
94
  if (f === "event" || h) {
94
- const m = r || Pe(a);
95
+ const m = l || se(a);
95
96
  return /* @__PURE__ */ n("div", { children: [
96
97
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center", children: [
97
98
  /* @__PURE__ */ e("span", { style: { fontWeight: 600 }, children: m }),
98
99
  /* @__PURE__ */ e("span", { className: "ff-ms-2 ff-text-muted", style: { fontSize: 12 }, children: "via" })
99
100
  ] }),
100
101
  /* @__PURE__ */ e("div", { className: "ff-d-flex ff-flex-wrap ff-mt-2", style: { gap: 4 }, children: h ? s.map((w, k) => /* @__PURE__ */ e(
101
- U,
102
+ H,
102
103
  {
103
104
  label: De(w),
104
105
  variant: "outlined",
@@ -110,8 +111,8 @@ const Ae = ({ data: t }) => {
110
111
  ] });
111
112
  }
112
113
  return N ? /* @__PURE__ */ n("div", { className: "ff-d-flex ff-flex-wrap ff-align-items-center", style: { gap: 6 }, children: [
113
- r && /* @__PURE__ */ e("span", { style: { fontWeight: 600 }, children: r }),
114
- g && /* @__PURE__ */ e(U, { label: g, variant: "outlined", size: "small" })
114
+ l && /* @__PURE__ */ e("span", { style: { fontWeight: 600 }, children: l }),
115
+ g && /* @__PURE__ */ e(H, { label: g, variant: "outlined", size: "small" })
115
116
  ] }) : /* @__PURE__ */ e(
116
117
  "span",
117
118
  {
@@ -125,9 +126,9 @@ const Ae = ({ data: t }) => {
125
126
  children: "Click to select a trigger to start your workflow"
126
127
  }
127
128
  );
128
- })(), v = l ? /* @__PURE__ */ n(L, { children: [
129
- l.status === "success" && /* @__PURE__ */ e(le, { size: 16, color: "#1DBF60", style: { marginRight: 8 } }),
130
- l.status === "failed" && /* @__PURE__ */ e(re, { size: 16, color: "#f44336", style: { marginRight: 8 } })
129
+ })(), v = i ? /* @__PURE__ */ n(R, { children: [
130
+ i.status === "success" && /* @__PURE__ */ e(le, { size: 16, color: "#1DBF60", style: { marginRight: 8 } }),
131
+ i.status === "failed" && /* @__PURE__ */ e(re, { size: 16, color: "#f44336", style: { marginRight: 8 } })
131
132
  ] }) : /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center", children: [
132
133
  !o && /* @__PURE__ */ e(
133
134
  "div",
@@ -189,22 +190,22 @@ const Ae = ({ data: t }) => {
189
190
  /* @__PURE__ */ e(b, { type: "source", position: x.Bottom, style: { opacity: 0 }, id: "1" })
190
191
  ] });
191
192
  };
192
- function Re(t) {
193
- return t ? t === "END_USER_CREATION" ? "New User Registration" : t === "END_USER_UPDATION" ? "On User Update" : t.replace(/[_-]+/g, " ").replace(/\b\w/g, (i) => i.toUpperCase()) : "";
194
- }
195
193
  function Le(t) {
196
- const i = typeof t == "string" ? t : t.value ?? "";
197
- return i === "SIGNUP_FLOW" ? "User Self-Registration" : i === "ADMIN_CREATION_FLOW" ? "Create User via Admin Portal" : i === "SHEDULAR" || i === "SCHEDULER" ? "Scheduler" : typeof t != "string" && t.label ? t.label : i.replace(/[_-]+/g, " ").replace(/\b\w/g, (f) => f.toUpperCase());
194
+ return t ? t === "END_USER_CREATION" ? "New User Registration" : t === "END_USER_UPDATION" ? "On User Update" : t.replace(/[_-]+/g, " ").replace(/\b\w/g, (r) => r.toUpperCase()) : "";
195
+ }
196
+ function Re(t) {
197
+ const r = typeof t == "string" ? t : t.value ?? "";
198
+ return r === "SIGNUP_FLOW" ? "User Self-Registration" : r === "ADMIN_CREATION_FLOW" ? "Create User via Admin Portal" : r === "SHEDULAR" || r === "SCHEDULER" ? "Scheduler" : typeof t != "string" && t.label ? t.label : r.replace(/[_-]+/g, " ").replace(/\b\w/g, (f) => f.toUpperCase());
198
199
  }
199
200
  const We = ({ data: t }) => {
200
201
  const {
201
- header: i = "Event",
202
+ header: r = "Event",
202
203
  title: f,
203
204
  eventType: a,
204
205
  sources: s,
205
- executionStatus: r,
206
+ executionStatus: l,
206
207
  infoText: g = "This event is raised by the system. It cannot be configured."
207
- } = t ?? {}, o = f ?? Re(a) ?? "—";
208
+ } = t ?? {}, o = f ?? Le(a) ?? "—";
208
209
  return /* @__PURE__ */ n("div", { style: { width: 350 }, children: [
209
210
  /* @__PURE__ */ e(b, { type: "target", position: x.Top, style: { opacity: 0 } }),
210
211
  /* @__PURE__ */ n("div", { style: { border: "1.5px solid #a5d6a7", borderRadius: 8, background: "#fff", overflow: "hidden" }, children: [
@@ -226,12 +227,12 @@ const We = ({ data: t }) => {
226
227
  children: /* @__PURE__ */ e(oe, { size: 16, color: "#388e3c" })
227
228
  }
228
229
  ),
229
- /* @__PURE__ */ e("span", { style: { fontSize: 14, fontWeight: 500, color: "#212121" }, children: i })
230
+ /* @__PURE__ */ e("span", { style: { fontSize: 14, fontWeight: 500, color: "#212121" }, children: r })
230
231
  ] }),
231
232
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center", children: [
232
- (r == null ? void 0 : r.status) === "success" && /* @__PURE__ */ e(le, { size: 16, color: "#1DBF60", style: { marginRight: 8 } }),
233
- (r == null ? void 0 : r.status) === "failed" && /* @__PURE__ */ e(re, { size: 16, color: "#f44336", style: { marginRight: 8 } }),
234
- !r && /* @__PURE__ */ e(D, { title: /* @__PURE__ */ e("div", { children: g }), placement: "right", arrow: !0, children: /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(W, { color: "gray", size: 16 }) }) })
233
+ (l == null ? void 0 : l.status) === "success" && /* @__PURE__ */ e(le, { size: 16, color: "#1DBF60", style: { marginRight: 8 } }),
234
+ (l == null ? void 0 : l.status) === "failed" && /* @__PURE__ */ e(re, { size: 16, color: "#f44336", style: { marginRight: 8 } }),
235
+ !l && /* @__PURE__ */ e(D, { title: /* @__PURE__ */ e("div", { children: g }), placement: "right", arrow: !0, children: /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(W, { color: "gray", size: 16 }) }) })
235
236
  ] })
236
237
  ] }),
237
238
  /* @__PURE__ */ n(
@@ -247,12 +248,12 @@ const We = ({ data: t }) => {
247
248
  },
248
249
  children: [
249
250
  /* @__PURE__ */ e("div", { style: { fontWeight: 600 }, children: o }),
250
- Array.isArray(s) && s.length > 0 && /* @__PURE__ */ n(L, { children: [
251
+ Array.isArray(s) && s.length > 0 && /* @__PURE__ */ n(R, { children: [
251
252
  /* @__PURE__ */ e("div", { className: "ff-text-muted", style: { fontSize: 12, marginTop: 4 }, children: "via" }),
252
- /* @__PURE__ */ e("div", { className: "ff-d-flex ff-flex-wrap ff-mt-1", style: { gap: 4 }, children: s.map((l, d) => /* @__PURE__ */ e(
253
- U,
253
+ /* @__PURE__ */ e("div", { className: "ff-d-flex ff-flex-wrap ff-mt-1", style: { gap: 4 }, children: s.map((i, d) => /* @__PURE__ */ e(
254
+ H,
254
255
  {
255
- label: Le(l),
256
+ label: Re(i),
256
257
  variant: "outlined",
257
258
  size: "small",
258
259
  className: "ff-text-dark"
@@ -266,19 +267,19 @@ const We = ({ data: t }) => {
266
267
  ] }),
267
268
  /* @__PURE__ */ e(b, { type: "source", position: x.Bottom, style: { opacity: 0 }, id: "1" })
268
269
  ] });
269
- }, se = ({ rail: t, cardWidth: i }) => {
270
- const f = i / 2;
271
- i / 2 + t.indent;
270
+ }, fe = ({ rail: t, cardWidth: r }) => {
271
+ const f = r / 2;
272
+ r / 2 + t.indent;
272
273
  const a = "var(--ff-edge-color, #b0bec5)";
273
274
  return /* @__PURE__ */ n(
274
275
  "svg",
275
276
  {
276
- width: i + t.indent + 200,
277
+ width: r + t.indent + 200,
277
278
  height: t.height,
278
279
  style: { position: "absolute", left: 0, top: "100%", pointerEvents: "none", overflow: "visible" },
279
280
  children: [
280
281
  /* @__PURE__ */ e("line", { x1: f, y1: 0, x2: f, y2: t.height, stroke: a, strokeWidth: 1.5 }),
281
- t.branches.map((s, r) => {
282
+ t.branches.map((s, l) => {
282
283
  const g = s.y;
283
284
  return /* @__PURE__ */ n("g", { transform: `translate(0, ${g})`, children: [
284
285
  /* @__PURE__ */ e(
@@ -306,19 +307,19 @@ const We = ({ data: t }) => {
306
307
  children: s.label
307
308
  }
308
309
  )
309
- ] }, r);
310
+ ] }, l);
310
311
  })
311
312
  ]
312
313
  }
313
314
  );
314
- }, Fe = ({ id: t, data: i }) => {
315
- const { onEditNode: f, onDeleteNode: a } = E(), { conditions: s = [], infoText: r = "Filter conditions applied to workflow data", _branchRail: g } = i;
315
+ }, Fe = ({ id: t, data: r }) => {
316
+ const { onEditNode: f, onDeleteNode: a } = E(), { conditions: s = [], infoText: l = "Filter conditions applied to workflow data", _branchRail: g } = r;
316
317
  return /* @__PURE__ */ n("div", { style: { width: 350, position: "relative" }, children: [
317
318
  /* @__PURE__ */ e(b, { type: "target", position: x.Top, style: { opacity: 0 } }),
318
319
  /* @__PURE__ */ n("div", { style: { border: "1.5px solid #ffe082", borderRadius: 8, background: "#fff" }, children: [
319
320
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center", style: { padding: "10px 6px" }, children: [
320
321
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center", children: [
321
- /* @__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(we, { className: "ff-text-warning", size: 16 }) }),
322
+ /* @__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(Se, { className: "ff-text-warning", size: 16 }) }),
322
323
  /* @__PURE__ */ e("span", { className: "ff-ms-2 ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: "Filter" })
323
324
  ] }),
324
325
  /* @__PURE__ */ n("div", { className: "node-actions ff-d-flex ff-align-items-center", children: [
@@ -351,21 +352,21 @@ const We = ({ data: t }) => {
351
352
  children: /* @__PURE__ */ e(P, { color: "red", size: 16 })
352
353
  }
353
354
  ),
354
- /* @__PURE__ */ e(D, { title: r, placement: "right", arrow: !0, children: /* @__PURE__ */ e("div", { className: "ff-ms-2", children: /* @__PURE__ */ e(W, { color: "gray", size: 16 }) }) })
355
+ /* @__PURE__ */ e(D, { title: l, placement: "right", arrow: !0, children: /* @__PURE__ */ e("div", { className: "ff-ms-2", children: /* @__PURE__ */ e(W, { color: "gray", size: 16 }) }) })
355
356
  ] })
356
357
  ] }),
357
- /* @__PURE__ */ e("div", { style: { margin: "0 6px 10px", padding: "10px 12px", borderRadius: 6, background: "#fafafa", fontSize: 12 }, children: s.length === 0 ? /* @__PURE__ */ e("span", { className: "ff-text-muted", children: "No conditions configured" }) : s.map((o, l) => /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-mb-1", children: [
358
+ /* @__PURE__ */ e("div", { style: { margin: "0 6px 10px", padding: "10px 12px", borderRadius: 6, background: "#fafafa", fontSize: 12 }, children: s.length === 0 ? /* @__PURE__ */ e("span", { className: "ff-text-muted", children: "No conditions configured" }) : s.map((o, i) => /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-mb-1", children: [
358
359
  /* @__PURE__ */ e("p", { className: "ff-m-0 ff-fw-bold ff-me-1 ff-text-truncate", style: { maxWidth: 100 }, title: o.field, children: o.field }),
359
360
  /* @__PURE__ */ e("span", { className: "ff-text-muted", children: o.operator }),
360
361
  /* @__PURE__ */ e("p", { className: "ff-text-dark ff-text-truncate ff-mx-1 ff-m-0", title: o.value, children: o.value }),
361
- l < s.length - 1 && /* @__PURE__ */ e("p", { className: "ff-bg-primary ff-text-white ff-fw-bold ff-ms-1 ff-px-1 ff-rounded-1 ff-m-0", children: o.logicalOperator })
362
- ] }, l)) })
362
+ i < s.length - 1 && /* @__PURE__ */ e("p", { className: "ff-bg-primary ff-text-white ff-fw-bold ff-ms-1 ff-px-1 ff-rounded-1 ff-m-0", children: o.logicalOperator })
363
+ ] }, i)) })
363
364
  ] }),
364
365
  /* @__PURE__ */ e(b, { type: "source", position: x.Bottom, style: { opacity: 0 } }),
365
- g && /* @__PURE__ */ e(se, { rail: g, cardWidth: 350 })
366
+ g && /* @__PURE__ */ e(fe, { rail: g, cardWidth: 350 })
366
367
  ] });
367
- }, $e = ({ id: t, data: i }) => {
368
- const { onEditNode: f, onDeleteNode: a, nodeRegistry: s, nodeBody: r = "full" } = E(), { title: g = "Task", descriptorType: o, groupBlocks: l, groups: d, roles: y, groupId: h, roleId: N, infoText: p = "" } = i, c = o ? s == null ? void 0 : s.forType(o) : void 0, v = c == null ? void 0 : c.icon, m = (u) => u == null ? "" : typeof u == "string" ? u : typeof u == "object" && "label" in u ? String(u.label) : String(u), w = (u) => Array.isArray(u) ? u.map(m).filter(Boolean) : u != null && u !== "" ? [m(u)] : [], k = (l == null ? void 0 : l.flatMap((u) => u.groups ?? [])) ?? [...w(d), ...w(y), ...w(h), ...w(N)], I = k.length > 0;
368
+ }, $e = ({ id: t, data: r }) => {
369
+ const { onEditNode: f, onDeleteNode: a, nodeRegistry: s, nodeBody: l = "full" } = E(), { title: g = "Task", descriptorType: o, groupBlocks: i, groups: d, roles: y, groupId: h, roleId: N, infoText: p = "" } = r, c = o ? s == null ? void 0 : s.forType(o) : void 0, v = c == null ? void 0 : c.icon, m = (u) => u == null ? "" : typeof u == "string" ? u : typeof u == "object" && "label" in u ? String(u.label) : String(u), w = (u) => Array.isArray(u) ? u.map(m).filter(Boolean) : u != null && u !== "" ? [m(u)] : [], k = (i == null ? void 0 : i.flatMap((u) => u.groups ?? [])) ?? [...w(d), ...w(y), ...w(h), ...w(N)], I = k.length > 0;
369
370
  return /* @__PURE__ */ n("div", { style: { width: 350 }, children: [
370
371
  /* @__PURE__ */ e(b, { type: "target", position: x.Top, style: { opacity: 0 } }),
371
372
  /* @__PURE__ */ n("div", { style: { border: "1.5px solid #b0bec5", borderRadius: 8, background: "#fff" }, children: [
@@ -407,22 +408,22 @@ const We = ({ data: t }) => {
407
408
  p && /* @__PURE__ */ e(D, { title: p, placement: "right", arrow: !0, children: /* @__PURE__ */ e("div", { className: "ff-ms-2", children: /* @__PURE__ */ e(W, { color: "gray", size: 16 }) }) })
408
409
  ] })
409
410
  ] }),
410
- r !== "title-only" && /* @__PURE__ */ e("div", { style: { margin: "0 6px 10px", padding: "10px 12px", borderRadius: 6, background: "#fafafa", fontSize: 12 }, children: c != null && c.renderNode ? c.renderNode(i) : I ? /* @__PURE__ */ e("div", { className: "ff-d-flex ff-flex-wrap ff-gap-1", children: k.map((u, z) => /* @__PURE__ */ e("span", { className: "ff-badge ff-bg-dark ff-text-white ff-py-1 ff-px-2 ff-rounded", style: { fontSize: 11 }, title: u, children: u }, z)) }) : /* @__PURE__ */ e("span", { className: "ff-text-muted", children: "Not configured" }) })
411
+ l !== "title-only" && /* @__PURE__ */ e("div", { style: { margin: "0 6px 10px", padding: "10px 12px", borderRadius: 6, background: "#fafafa", fontSize: 12 }, children: c != null && c.renderNode ? c.renderNode(r) : I ? /* @__PURE__ */ e("div", { className: "ff-d-flex ff-flex-wrap ff-gap-1", children: k.map((u, z) => /* @__PURE__ */ e("span", { className: "ff-badge ff-bg-dark ff-text-white ff-py-1 ff-px-2 ff-rounded", style: { fontSize: 11 }, title: u, children: u }, z)) }) : /* @__PURE__ */ e("span", { className: "ff-text-muted", children: "Not configured" }) })
411
412
  ] }),
412
413
  /* @__PURE__ */ e(b, { type: "source", position: x.Bottom, style: { opacity: 0 } })
413
414
  ] });
414
- }, H = 5, Be = ({ id: t, data: i }) => {
415
- const { onEditNode: f, onDeleteNode: a } = E(), { approvalData: s, isPreview: r = !1, _branchRail: g } = i, o = (s == null ? void 0 : s.policy) ?? {}, l = o.stages ?? [], d = l.length, y = l.slice(0, H), h = d - H, N = o.name ?? o.policyName ?? "Untitled Policy";
415
+ }, O = 5, Be = ({ id: t, data: r }) => {
416
+ const { onEditNode: f, onDeleteNode: a } = E(), { approvalData: s, isPreview: l = !1, _branchRail: g } = r, o = (s == null ? void 0 : s.policy) ?? {}, i = o.stages ?? [], d = i.length, y = i.slice(0, O), h = d - O, N = o.name ?? o.policyName ?? "Untitled Policy";
416
417
  return /* @__PURE__ */ n("div", { style: { width: 350, position: "relative" }, children: [
417
418
  /* @__PURE__ */ e(b, { type: "target", position: x.Top, style: { opacity: 0 } }),
418
419
  /* @__PURE__ */ n("div", { style: { border: "1.5px solid #ffe082", borderRadius: 8, background: "#fff" }, children: [
419
420
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center", style: { padding: "10px 6px" }, children: [
420
421
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-gap-2", children: [
421
- /* @__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(ge, { style: { color: "#FBC02D" }, size: 16 }) }),
422
+ /* @__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(he, { style: { color: "#FBC02D" }, size: 16 }) }),
422
423
  /* @__PURE__ */ e("span", { className: "ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: "Approval Policy" })
423
424
  ] }),
424
425
  /* @__PURE__ */ n("div", { className: "node-actions ff-d-flex ff-align-items-center", children: [
425
- !r && /* @__PURE__ */ e(
426
+ !l && /* @__PURE__ */ e(
426
427
  "div",
427
428
  {
428
429
  role: "button",
@@ -437,7 +438,7 @@ const We = ({ data: t }) => {
437
438
  children: /* @__PURE__ */ e(T, { size: 16, className: "ff-text-secondary" })
438
439
  }
439
440
  ),
440
- !r && /* @__PURE__ */ e(
441
+ !l && /* @__PURE__ */ e(
441
442
  "div",
442
443
  {
443
444
  className: "ff-ms-2",
@@ -465,7 +466,7 @@ const We = ({ data: t }) => {
465
466
  d !== 1 ? "s" : ""
466
467
  ] })
467
468
  ] }),
468
- l.length > 0 ? /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
469
+ i.length > 0 ? /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
469
470
  y.map((p, c) => {
470
471
  var z, A, C;
471
472
  const v = ((z = p.stageName) == null ? void 0 : z.trim()) || `Stage ${c + 1}`, m = Array.isArray(p.userIds) ? p.userIds.length : 0, w = ((A = p.groupName) == null ? void 0 : A.trim()) ?? "", k = ((C = p.roleName) == null ? void 0 : C.trim()) ?? "", I = m > 0 || w || k;
@@ -475,7 +476,7 @@ const We = ({ data: t }) => {
475
476
  /* @__PURE__ */ n("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: [
476
477
  /* @__PURE__ */ e("span", { style: { fontSize: 12, fontWeight: 700, color: "#212121" }, children: v }),
477
478
  /* @__PURE__ */ n("span", { className: `ff-d-flex ff-align-items-center ff-gap-1 ${I ? "ff-text-dark" : "ff-text-muted"}`, style: { fontSize: 12 }, children: [
478
- /* @__PURE__ */ e(he, { size: 16, className: "ff-flex-shrink-0", style: { color: I ? "#5D4037" : "#9E9E9E" } }),
479
+ /* @__PURE__ */ e(ye, { size: 16, className: "ff-flex-shrink-0", style: { color: I ? "#5D4037" : "#9E9E9E" } }),
479
480
  u
480
481
  ] })
481
482
  ] })
@@ -485,14 +486,14 @@ const We = ({ data: t }) => {
485
486
  "div",
486
487
  {
487
488
  className: "ff-text-center ff-fw-bold ff-py-2 ff-border ff-rounded",
488
- style: { fontSize: 11, color: "#1976d2", borderColor: "#FEE79A", background: "#FFFDE7", borderStyle: "dashed", cursor: r ? "default" : "pointer" },
489
- role: r ? void 0 : "button",
490
- tabIndex: r ? void 0 : 0,
489
+ style: { fontSize: 11, color: "#1976d2", borderColor: "#FEE79A", background: "#FFFDE7", borderStyle: "dashed", cursor: l ? "default" : "pointer" },
490
+ role: l ? void 0 : "button",
491
+ tabIndex: l ? void 0 : 0,
491
492
  onClick: (p) => {
492
- r || (p.stopPropagation(), f(t));
493
+ l || (p.stopPropagation(), f(t));
493
494
  },
494
495
  onKeyDown: (p) => {
495
- r || p.key !== "Enter" || (p.stopPropagation(), f(t));
496
+ l || p.key !== "Enter" || (p.stopPropagation(), f(t));
496
497
  },
497
498
  children: [
498
499
  "+ ",
@@ -506,16 +507,16 @@ const We = ({ data: t }) => {
506
507
  ] })
507
508
  ] }),
508
509
  /* @__PURE__ */ e(b, { type: "source", position: x.Bottom, style: { opacity: 0 } }),
509
- g && /* @__PURE__ */ e(se, { rail: g, cardWidth: 350 })
510
+ g && /* @__PURE__ */ e(fe, { rail: g, cardWidth: 350 })
510
511
  ] });
511
- }, _e = ({ id: t, data: i }) => {
512
- const { onEditNode: f, onDeleteNode: a } = E(), { duration: s, unit: r } = i, g = s != null && r, o = g ? `Wait ${s} ${r}` : "Not configured";
512
+ }, je = ({ id: t, data: r }) => {
513
+ const { onEditNode: f, onDeleteNode: a } = E(), { duration: s, unit: l } = r, g = s != null && l, o = g ? `Wait ${s} ${l}` : "Not configured";
513
514
  return /* @__PURE__ */ n("div", { style: { width: 350 }, children: [
514
515
  /* @__PURE__ */ e(b, { type: "target", position: x.Top, style: { opacity: 0 } }),
515
516
  /* @__PURE__ */ n("div", { style: { border: "1.5px solid #b0bec5", borderRadius: 8, background: "#fff" }, children: [
516
517
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center ff-mx-2 ff-mt-2 ff-mb-1", children: [
517
518
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-gap-2", children: [
518
- /* @__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(ye, { size: 16, color: "#1976d2" }) }),
519
+ /* @__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(ue, { size: 16, color: "#1976d2" }) }),
519
520
  /* @__PURE__ */ e("span", { className: "ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: "Delay" })
520
521
  ] }),
521
522
  /* @__PURE__ */ n("div", { className: "node-actions ff-d-flex ff-align-items-center", children: [
@@ -524,11 +525,11 @@ const We = ({ data: t }) => {
524
525
  {
525
526
  role: "button",
526
527
  tabIndex: 0,
527
- onClick: (l) => {
528
- l.stopPropagation(), f(t);
528
+ onClick: (i) => {
529
+ i.stopPropagation(), f(t);
529
530
  },
530
- onKeyDown: (l) => {
531
- l.key === "Enter" && (l.stopPropagation(), f(t));
531
+ onKeyDown: (i) => {
532
+ i.key === "Enter" && (i.stopPropagation(), f(t));
532
533
  },
533
534
  children: /* @__PURE__ */ e(T, { size: 16 })
534
535
  }
@@ -539,11 +540,11 @@ const We = ({ data: t }) => {
539
540
  className: "ff-ms-2",
540
541
  role: "button",
541
542
  tabIndex: 0,
542
- onClick: (l) => {
543
- l.stopPropagation(), a(t);
543
+ onClick: (i) => {
544
+ i.stopPropagation(), a(t);
544
545
  },
545
- onKeyDown: (l) => {
546
- l.key === "Enter" && (l.stopPropagation(), a(t));
546
+ onKeyDown: (i) => {
547
+ i.key === "Enter" && (i.stopPropagation(), a(t));
547
548
  },
548
549
  children: /* @__PURE__ */ e(P, { color: "red", size: 16 })
549
550
  }
@@ -555,23 +556,23 @@ const We = ({ data: t }) => {
555
556
  /* @__PURE__ */ e(b, { type: "source", position: x.Bottom, style: { opacity: 0 } })
556
557
  ] });
557
558
  }, G = {
558
- email: { label: "Email", bg: "#e3f2fd", color: "#1565c0", iconType: me },
559
- slack: { label: "Slack", bg: "#e8f5e9", color: "#2e7d32", iconType: j },
560
- teams: { label: "MS Teams", bg: "#ede7f6", color: "#4527a0", iconType: j },
561
- sms: { label: "SMS", bg: "#fce4ec", color: "#880e4f", iconType: ue },
562
- "in-app": { label: "In-App", bg: "#fff3e0", color: "#e65100", iconType: j },
559
+ email: { label: "Email", bg: "#e3f2fd", color: "#1565c0", iconType: be },
560
+ slack: { label: "Slack", bg: "#e8f5e9", color: "#2e7d32", iconType: M },
561
+ teams: { label: "MS Teams", bg: "#ede7f6", color: "#4527a0", iconType: M },
562
+ sms: { label: "SMS", bg: "#fce4ec", color: "#880e4f", iconType: me },
563
+ "in-app": { label: "In-App", bg: "#fff3e0", color: "#e65100", iconType: M },
563
564
  webhook: { label: "Webhook", bg: "#f3e5f5", color: "#6a1b9a", iconType: ie }
564
- }, je = {
565
+ }, Me = {
565
566
  label: "Notification",
566
567
  bg: "rgba(156,39,176,0.1)",
567
568
  color: "#7b1fa2",
568
- iconType: j
569
+ iconType: M
569
570
  };
570
- function Me(t) {
571
- var i;
571
+ function Ke(t) {
572
+ var r;
572
573
  switch (t.channel) {
573
574
  case "email":
574
- return ((i = t.emailTo) == null ? void 0 : i.join(", ")) ?? t.recipient ?? null;
575
+ return ((r = t.emailTo) == null ? void 0 : r.join(", ")) ?? t.recipient ?? null;
575
576
  case "slack":
576
577
  return t.slackChannel ?? null;
577
578
  case "teams":
@@ -586,13 +587,13 @@ function Me(t) {
586
587
  return t.recipient ?? null;
587
588
  }
588
589
  }
589
- function Ke(t) {
590
+ function _e(t) {
590
591
  switch (t.channel) {
591
592
  case "email":
592
593
  return t.emailSubject ?? t.subject ?? null;
593
594
  case "slack": {
594
- const i = t.slackMessage;
595
- return i ? i.length > 60 ? `${i.slice(0, 60)}…` : i : null;
595
+ const r = t.slackMessage;
596
+ return r ? r.length > 60 ? `${r.slice(0, 60)}…` : r : null;
596
597
  }
597
598
  case "in-app":
598
599
  return t.inAppTitle ?? null;
@@ -600,15 +601,15 @@ function Ke(t) {
600
601
  return t.subject ?? null;
601
602
  }
602
603
  }
603
- const Ue = ({ id: t, data: i }) => {
604
- const { onEditNode: f, onDeleteNode: a } = E(), s = i, r = s.channel && G[s.channel] ? G[s.channel] : je, g = Me(s), o = Ke(s), l = !!(s.channel && g), d = r.iconType;
604
+ const He = ({ id: t, data: r }) => {
605
+ const { onEditNode: f, onDeleteNode: a } = E(), s = r, l = s.channel && G[s.channel] ? G[s.channel] : Me, g = Ke(s), o = _e(s), i = !!(s.channel && g), d = l.iconType;
605
606
  return /* @__PURE__ */ n("div", { style: { width: F }, children: [
606
607
  /* @__PURE__ */ e(b, { type: "target", position: x.Top, style: { opacity: 0 } }),
607
608
  /* @__PURE__ */ n("div", { style: { border: "1.5px solid #b0bec5", borderRadius: 8, background: "#fff" }, children: [
608
609
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center", style: { padding: "10px 6px" }, children: [
609
610
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-gap-2", children: [
610
- /* @__PURE__ */ e("div", { className: "ff-d-flex ff-align-items-center ff-justify-content-center ff-rounded", style: { width: 25, height: 25, background: r.bg }, children: /* @__PURE__ */ e(d, { size: 16, color: r.color }) }),
611
- /* @__PURE__ */ e("span", { className: "ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: s.channel ? `${r.label} Notification` : "Notification" })
611
+ /* @__PURE__ */ e("div", { className: "ff-d-flex ff-align-items-center ff-justify-content-center ff-rounded", style: { width: 25, height: 25, background: l.bg }, children: /* @__PURE__ */ e(d, { size: 16, color: l.color }) }),
612
+ /* @__PURE__ */ e("span", { className: "ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: s.channel ? `${l.label} Notification` : "Notification" })
612
613
  ] }),
613
614
  /* @__PURE__ */ n("div", { className: "node-actions ff-d-flex ff-align-items-center", children: [
614
615
  /* @__PURE__ */ e(
@@ -642,9 +643,9 @@ const Ue = ({ id: t, data: i }) => {
642
643
  )
643
644
  ] })
644
645
  ] }),
645
- /* @__PURE__ */ e("div", { style: { margin: "0 6px 10px", padding: "10px 12px", borderRadius: 6, background: "#fafafa", fontSize: 12 }, children: l ? /* @__PURE__ */ n("div", { className: "ff-d-flex ff-flex-column ff-gap-1", children: [
646
+ /* @__PURE__ */ e("div", { style: { margin: "0 6px 10px", padding: "10px 12px", borderRadius: 6, background: "#fafafa", fontSize: 12 }, children: i ? /* @__PURE__ */ n("div", { className: "ff-d-flex ff-flex-column ff-gap-1", children: [
646
647
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-gap-2", children: [
647
- /* @__PURE__ */ e("span", { className: "ff-px-2 ff-py-1 ff-rounded", style: { fontSize: 10, background: r.bg, color: r.color, fontWeight: 600, flexShrink: 0 }, children: r.label }),
648
+ /* @__PURE__ */ e("span", { className: "ff-px-2 ff-py-1 ff-rounded", style: { fontSize: 10, background: l.bg, color: l.color, fontWeight: 600, flexShrink: 0 }, children: l.label }),
648
649
  /* @__PURE__ */ e("span", { className: "ff-text-dark ff-text-truncate", style: { maxWidth: 220 }, children: g })
649
650
  ] }),
650
651
  o && /* @__PURE__ */ e("span", { className: "ff-text-muted ff-text-truncate", style: { maxWidth: 280 }, children: o })
@@ -655,11 +656,11 @@ const Ue = ({ id: t, data: i }) => {
655
656
  }, V = {
656
657
  "api-key": "API Key",
657
658
  hmac: "HMAC"
658
- }, Oe = ({ data: t }) => {
659
- const { onClickAddTrigger: i } = E(), { label: f = "Webhook Trigger", endpointUrl: a, authMethod: s, source: r } = t, g = (l) => {
660
- l.stopPropagation(), i();
661
- }, o = (l) => {
662
- l.stopPropagation(), a && navigator.clipboard.writeText(a).catch(() => {
659
+ }, Ue = ({ data: t }) => {
660
+ const { onClickAddTrigger: r } = E(), { label: f = "Webhook Trigger", endpointUrl: a, authMethod: s, source: l } = t, g = (i) => {
661
+ i.stopPropagation(), r();
662
+ }, o = (i) => {
663
+ i.stopPropagation(), a && navigator.clipboard.writeText(a).catch(() => {
663
664
  });
664
665
  };
665
666
  return /* @__PURE__ */ n("div", { style: { width: F }, children: [
@@ -676,8 +677,8 @@ const Ue = ({ id: t, data: i }) => {
676
677
  role: "button",
677
678
  tabIndex: 0,
678
679
  onClick: g,
679
- onKeyDown: (l) => {
680
- (l.key === "Enter" || l.key === " ") && g(l);
680
+ onKeyDown: (i) => {
681
+ (i.key === "Enter" || i.key === " ") && g(i);
681
682
  },
682
683
  className: "ff-d-flex ff-align-items-center",
683
684
  style: { paddingRight: 4, cursor: "pointer" },
@@ -688,7 +689,7 @@ const Ue = ({ id: t, data: i }) => {
688
689
  /* @__PURE__ */ n("div", { style: { margin: "0 6px 10px", padding: "10px 12px", borderRadius: 6, background: "#e3f2fd", border: "1px solid #90caf9" }, children: [
689
690
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-flex-wrap ff-gap-2 ff-mb-1", children: [
690
691
  /* @__PURE__ */ e("span", { style: { fontSize: 12, color: "#1565c0", fontWeight: 600 }, children: f }),
691
- r && /* @__PURE__ */ e("span", { className: "ff-px-2 ff-py-1 ff-rounded", style: { fontSize: 11, background: "#fff", border: "1px solid #90caf9", color: "#1565c0" }, children: r }),
692
+ l && /* @__PURE__ */ e("span", { className: "ff-px-2 ff-py-1 ff-rounded", style: { fontSize: 11, background: "#fff", border: "1px solid #90caf9", color: "#1565c0" }, children: l }),
692
693
  s && s !== "none" && V[s] && /* @__PURE__ */ e("span", { className: "ff-px-2 ff-py-1 ff-rounded", style: { fontSize: 10, background: "#1565c0", color: "#fff", fontWeight: 600 }, children: V[s] })
693
694
  ] }),
694
695
  a && /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-gap-1", style: { marginTop: 4 }, children: [
@@ -699,11 +700,11 @@ const Ue = ({ id: t, data: i }) => {
699
700
  role: "button",
700
701
  tabIndex: 0,
701
702
  onClick: o,
702
- onKeyDown: (l) => {
703
- (l.key === "Enter" || l.key === " ") && o(l);
703
+ onKeyDown: (i) => {
704
+ (i.key === "Enter" || i.key === " ") && o(i);
704
705
  },
705
706
  style: { cursor: "pointer", flexShrink: 0 },
706
- children: /* @__PURE__ */ e(be, { size: 12, color: "#1565c0" })
707
+ children: /* @__PURE__ */ e(xe, { size: 12, color: "#1565c0" })
707
708
  }
708
709
  ) })
709
710
  ] })
@@ -711,15 +712,15 @@ const Ue = ({ id: t, data: i }) => {
711
712
  ] }),
712
713
  /* @__PURE__ */ e(b, { type: "source", position: x.Bottom, style: { opacity: 0 } })
713
714
  ] });
714
- }, He = ({ id: t, data: i }) => {
715
+ }, Oe = ({ id: t, data: r }) => {
715
716
  var N;
716
- const { onEditNode: f, onDeleteNode: a, nodeRegistry: s } = E(), { method: r, url: g, descriptorType: o } = i, l = o ? (N = s == null ? void 0 : s.forType(o)) == null ? void 0 : N.icon : /* @__PURE__ */ e(xe, { size: 16, color: "#546e7a" }), d = !!(r && g), y = (r == null ? void 0 : r.toUpperCase()) ?? "", h = Se[y] ?? null;
717
+ const { onEditNode: f, onDeleteNode: a, nodeRegistry: s } = E(), { method: l, url: g, descriptorType: o } = r, i = o ? (N = s == null ? void 0 : s.forType(o)) == null ? void 0 : N.icon : /* @__PURE__ */ e(Ne, { size: 16, color: "#546e7a" }), d = !!(l && g), y = (l == null ? void 0 : l.toUpperCase()) ?? "", h = Ee[y] ?? null;
717
718
  return /* @__PURE__ */ n("div", { style: { width: F }, children: [
718
719
  /* @__PURE__ */ e(b, { type: "target", position: x.Top, style: { opacity: 0 } }),
719
720
  /* @__PURE__ */ n("div", { style: { border: "1.5px solid #b0bec5", borderRadius: 8, background: "#fff" }, children: [
720
721
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center", style: { padding: "10px 6px" }, children: [
721
722
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-gap-2", children: [
722
- /* @__PURE__ */ e("div", { style: { width: 25, height: 25, display: "flex", alignItems: "center", justifyContent: "center" }, children: l }),
723
+ /* @__PURE__ */ e("div", { style: { width: 25, height: 25, display: "flex", alignItems: "center", justifyContent: "center" }, children: i }),
723
724
  /* @__PURE__ */ e("span", { className: "ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: "REST API Call" })
724
725
  ] }),
725
726
  /* @__PURE__ */ n("div", { className: "node-actions ff-d-flex ff-align-items-center", children: [
@@ -773,14 +774,14 @@ const Ue = ({ id: t, data: i }) => {
773
774
  endsWith: "ends with",
774
775
  isEmpty: "is empty",
775
776
  isNotEmpty: "is not empty"
776
- }, Ve = ({ id: t, data: i }) => {
777
- const { onEditNode: f, onDeleteNode: a } = E(), { title: s = "Condition Branch", branchConfigs: r = [], defaultBranch: g } = i, o = r.length > 0;
777
+ }, Ve = ({ id: t, data: r }) => {
778
+ const { onEditNode: f, onDeleteNode: a } = E(), { title: s = "Condition Branch", branchConfigs: l = [], defaultBranch: g } = r, o = l.length > 0;
778
779
  return /* @__PURE__ */ n("div", { style: { width: F }, children: [
779
780
  /* @__PURE__ */ e(b, { type: "target", position: x.Top, style: { opacity: 0 } }),
780
781
  /* @__PURE__ */ n("div", { style: { border: "1.5px solid #b39ddb", borderRadius: 8, background: "#fff" }, children: [
781
782
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center", style: { padding: "10px 6px" }, children: [
782
783
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-gap-2", children: [
783
- /* @__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(Ne, { size: 16, color: "#512da8" }) }),
784
+ /* @__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(ke, { size: 16, color: "#512da8" }) }),
784
785
  /* @__PURE__ */ e("span", { className: "ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: s })
785
786
  ] }),
786
787
  /* @__PURE__ */ n("div", { className: "node-actions ff-d-flex ff-align-items-center", children: [
@@ -789,11 +790,11 @@ const Ue = ({ id: t, data: i }) => {
789
790
  {
790
791
  role: "button",
791
792
  tabIndex: 0,
792
- onClick: (l) => {
793
- l.stopPropagation(), f(t);
793
+ onClick: (i) => {
794
+ i.stopPropagation(), f(t);
794
795
  },
795
- onKeyDown: (l) => {
796
- (l.key === "Enter" || l.key === " ") && (l.stopPropagation(), f(t));
796
+ onKeyDown: (i) => {
797
+ (i.key === "Enter" || i.key === " ") && (i.stopPropagation(), f(t));
797
798
  },
798
799
  children: /* @__PURE__ */ e(T, { size: 16 })
799
800
  }
@@ -804,11 +805,11 @@ const Ue = ({ id: t, data: i }) => {
804
805
  className: "ff-ms-2",
805
806
  role: "button",
806
807
  tabIndex: 0,
807
- onClick: (l) => {
808
- l.stopPropagation(), a(t);
808
+ onClick: (i) => {
809
+ i.stopPropagation(), a(t);
809
810
  },
810
- onKeyDown: (l) => {
811
- (l.key === "Enter" || l.key === " ") && (l.stopPropagation(), a(t));
811
+ onKeyDown: (i) => {
812
+ (i.key === "Enter" || i.key === " ") && (i.stopPropagation(), a(t));
812
813
  },
813
814
  children: /* @__PURE__ */ e(P, { color: "red", size: 16 })
814
815
  }
@@ -816,11 +817,11 @@ const Ue = ({ id: t, data: i }) => {
816
817
  ] })
817
818
  ] }),
818
819
  /* @__PURE__ */ e("div", { style: { margin: "0 6px 10px", padding: "10px 12px", borderRadius: 6, background: "#fafafa", fontSize: 12 }, children: o ? /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
819
- r.map((l, d) => {
820
+ l.map((i, d) => {
820
821
  var p, c;
821
- const y = O[d % O.length], h = (p = l.conditions) == null ? void 0 : p[0], N = (((c = l.conditions) == null ? void 0 : c.length) ?? 0) - 1;
822
+ const y = U[d % U.length], h = (p = i.conditions) == null ? void 0 : p[0], N = (((c = i.conditions) == null ? void 0 : c.length) ?? 0) - 1;
822
823
  return /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 6 }, children: [
823
- /* @__PURE__ */ e("span", { style: { fontSize: 10, fontWeight: 600, padding: "2px 7px", borderRadius: 10, background: y.bg, color: y.color, flexShrink: 0 }, children: l.label || l.key }),
824
+ /* @__PURE__ */ e("span", { style: { fontSize: 10, fontWeight: 600, padding: "2px 7px", borderRadius: 10, background: y.bg, color: y.color, flexShrink: 0 }, children: i.label || i.key }),
824
825
  h ? /* @__PURE__ */ n("span", { style: { fontSize: 11, color: "#616161", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: [
825
826
  h.field,
826
827
  " ",
@@ -828,7 +829,7 @@ const Ue = ({ id: t, data: i }) => {
828
829
  h.value ? ` ${h.value}` : "",
829
830
  N > 0 ? ` +${N} more` : ""
830
831
  ] }) : /* @__PURE__ */ e("span", { style: { fontSize: 11, color: "#9e9e9e" }, children: "No conditions yet" })
831
- ] }, l.key);
832
+ ] }, i.key);
832
833
  }),
833
834
  g && /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 6, marginTop: 2 }, children: [
834
835
  /* @__PURE__ */ e("span", { style: { fontSize: 10, fontWeight: 600, padding: "2px 7px", borderRadius: 10, background: "#f5f5f5", color: "#757575", flexShrink: 0 }, children: "Default" }),
@@ -838,9 +839,9 @@ const Ue = ({ id: t, data: i }) => {
838
839
  ] }),
839
840
  /* @__PURE__ */ e(b, { type: "source", position: x.Bottom, style: { opacity: 0 } })
840
841
  ] });
841
- }, qe = ({ id: t, data: i }) => {
842
+ }, qe = ({ id: t, data: r }) => {
842
843
  var p;
843
- const { onEditNode: f, onDeleteNode: a, nodeRegistry: s } = E(), { title: r = "Sub-Workflow", workflowId: g, workflowLabel: o, descriptorType: l, onPreview: d } = i, y = l ? (p = s == null ? void 0 : s.forType(l)) == null ? void 0 : p.icon : /* @__PURE__ */ e(ke, { size: 16, color: "#00695c" }), h = !!g, N = (c) => {
844
+ const { onEditNode: f, onDeleteNode: a, nodeRegistry: s } = E(), { title: l = "Sub-Workflow", workflowId: g, workflowLabel: o, descriptorType: i, onPreview: d } = r, y = i ? (p = s == null ? void 0 : s.forType(i)) == null ? void 0 : p.icon : /* @__PURE__ */ e(ve, { size: 16, color: "#00695c" }), h = !!g, N = (c) => {
844
845
  c.stopPropagation(), g && d && d(g);
845
846
  };
846
847
  return /* @__PURE__ */ n("div", { style: { width: F }, children: [
@@ -849,7 +850,7 @@ const Ue = ({ id: t, data: i }) => {
849
850
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center", style: { padding: "10px 6px" }, children: [
850
851
  /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-gap-2", children: [
851
852
  /* @__PURE__ */ e("div", { style: { width: 25, height: 25, borderRadius: 6, background: "rgba(0,137,123,0.1)", display: "flex", alignItems: "center", justifyContent: "center" }, children: y }),
852
- /* @__PURE__ */ e("span", { className: "ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: r })
853
+ /* @__PURE__ */ e("span", { className: "ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: l })
853
854
  ] }),
854
855
  /* @__PURE__ */ n("div", { className: "node-actions ff-d-flex ff-align-items-center", children: [
855
856
  /* @__PURE__ */ e(
@@ -902,7 +903,7 @@ const Ue = ({ id: t, data: i }) => {
902
903
  },
903
904
  style: { cursor: "pointer", display: "flex", alignItems: "center", gap: 3, fontSize: 11, color: "#00897b" },
904
905
  children: [
905
- /* @__PURE__ */ e(ve, { size: 13 }),
906
+ /* @__PURE__ */ e(we, { size: 13 }),
906
907
  "Preview"
907
908
  ]
908
909
  }
@@ -912,54 +913,54 @@ const Ue = ({ id: t, data: i }) => {
912
913
  /* @__PURE__ */ e(b, { type: "source", position: x.Bottom, style: { opacity: 0 } })
913
914
  ] });
914
915
  }, ct = {
915
- startNode: Ce,
916
- endNode: Te,
917
- addTriggerNode: ze,
918
- addStepNode: Ie,
916
+ startNode: Te,
917
+ endNode: ze,
918
+ addTriggerNode: Ie,
919
+ addStepNode: Pe,
919
920
  triggerNode: Ae,
920
921
  eventNode: We,
921
922
  filterNode: Fe,
922
923
  actionNode: $e,
923
924
  approvalNode: Be,
924
- delayNode: _e,
925
- notificationNode: Ue,
926
- webhookTriggerNode: Oe,
927
- restApiNode: He,
925
+ delayNode: je,
926
+ notificationNode: He,
927
+ webhookTriggerNode: Ue,
928
+ restApiNode: Oe,
928
929
  conditionBranchNode: Ve,
929
930
  subWorkflowNode: qe
930
931
  }, Ze = 11.5, q = 2, $ = 6, Z = 40, Y = 20, J = 4, dt = ({
931
932
  id: t,
932
- sourceX: i,
933
+ sourceX: r,
933
934
  sourceY: f,
934
935
  targetX: a,
935
936
  targetY: s,
936
- sourcePosition: r,
937
+ sourcePosition: l,
937
938
  targetPosition: g,
938
939
  source: o,
939
- target: l,
940
+ target: i,
940
941
  data: d
941
942
  }) => {
942
- const [y, h, N] = M({
943
- sourceX: i,
943
+ const [y, h, N] = K({
944
+ sourceX: r,
944
945
  sourceY: f,
945
946
  targetX: a,
946
947
  targetY: s
947
- }), p = d == null ? void 0 : d.label, c = p === "Pass", v = c || p === "Fail", m = i + (a - i) / 3, w = f + (s - f) / 3, k = i + 2 * (a - i) / 3, I = f + 2 * (s - f) / 3, u = d == null ? void 0 : d.onAddStepClick, z = (R) => {
948
- if (R.stopPropagation(), typeof u != "function") return;
949
- const fe = {
948
+ }), p = d == null ? void 0 : d.label, c = p === "Pass", v = c || p === "Fail", m = r + (a - r) / 3, w = f + (s - f) / 3, k = r + 2 * (a - r) / 3, I = f + 2 * (s - f) / 3, u = d == null ? void 0 : d.onAddStepClick, z = (L) => {
949
+ if (L.stopPropagation(), typeof u != "function") return;
950
+ const ce = {
950
951
  edgeId: t,
951
952
  nodeId: o,
952
953
  sourceNodeId: o,
953
- targetNodeId: l,
954
+ targetNodeId: i,
954
955
  position: "between",
955
956
  referenceNodeId: o,
956
957
  referenceNodeType: d == null ? void 0 : d.referenceNodeType,
957
958
  stepVisibility: d == null ? void 0 : d.stepVisibility
958
959
  };
959
- u(o, fe);
960
- }, A = (R) => {
961
- (R.key === "Enter" || R.key === " ") && (R.preventDefault(), z(R));
962
- }, C = () => /* @__PURE__ */ n(L, { children: [
960
+ u(o, ce);
961
+ }, A = (L) => {
962
+ (L.key === "Enter" || L.key === " ") && (L.preventDefault(), z(L));
963
+ }, C = () => /* @__PURE__ */ n(R, { children: [
963
964
  /* @__PURE__ */ n("g", { className: "plus-icon-container", children: [
964
965
  /* @__PURE__ */ e("circle", { r: Ze, className: "edge-plus-circle" }),
965
966
  /* @__PURE__ */ e("line", { x1: 0, y1: -$, x2: 0, y2: $, strokeWidth: q, strokeLinecap: "round", className: "plus-line" }),
@@ -980,8 +981,8 @@ const Ue = ({ id: t, data: i }) => {
980
981
  style: { cursor: "default", pointerEvents: "all" }
981
982
  };
982
983
  return /* @__PURE__ */ n("g", { className: "edge-with-plus-wrapper", children: [
983
- /* @__PURE__ */ e(K, { id: t, path: y }),
984
- v ? /* @__PURE__ */ n(L, { children: [
984
+ /* @__PURE__ */ e(_, { id: t, path: y }),
985
+ v ? /* @__PURE__ */ n(R, { children: [
985
986
  /* @__PURE__ */ n("g", { transform: `translate(${m}, ${w})`, children: [
986
987
  /* @__PURE__ */ e("rect", { x: -Z / 2, y: -Y / 2, width: Z, height: Y, rx: J, ry: J, fill: c ? "#ADE6C5" : "#FDBFBF" }),
987
988
  /* @__PURE__ */ e("text", { textAnchor: "middle", dominantBaseline: "central", fill: c ? "#1DBF60" : "#C50000", style: { fontSize: 12, fontWeight: 500 }, children: p })
@@ -991,27 +992,27 @@ const Ue = ({ id: t, data: i }) => {
991
992
  ] });
992
993
  }, Ye = 11.5, Q = 2, B = 6, at = ({
993
994
  id: t,
994
- sourceX: i,
995
+ sourceX: r,
995
996
  sourceY: f,
996
997
  targetX: a,
997
998
  targetY: s,
998
- source: r,
999
+ source: l,
999
1000
  target: g,
1000
1001
  data: o
1001
1002
  }) => {
1002
- const [l, d, y] = M({
1003
- sourceX: i,
1003
+ const [i, d, y] = K({
1004
+ sourceX: r,
1004
1005
  sourceY: f,
1005
1006
  targetX: a,
1006
1007
  targetY: s
1007
1008
  }), h = o == null ? void 0 : o.onAddStepClick, N = (c) => {
1008
- c.stopPropagation(), typeof h == "function" && h(r, {
1009
+ c.stopPropagation(), typeof h == "function" && h(l, {
1009
1010
  edgeId: t,
1010
- nodeId: r,
1011
- sourceNodeId: r,
1011
+ nodeId: l,
1012
+ sourceNodeId: l,
1012
1013
  targetNodeId: g,
1013
1014
  position: "between",
1014
- referenceNodeId: r,
1015
+ referenceNodeId: l,
1015
1016
  referenceNodeType: o == null ? void 0 : o.referenceNodeType,
1016
1017
  stepVisibility: o == null ? void 0 : o.stepVisibility,
1017
1018
  filterId: o == null ? void 0 : o.filterId,
@@ -1021,7 +1022,7 @@ const Ue = ({ id: t, data: i }) => {
1021
1022
  (c.key === "Enter" || c.key === " ") && (c.preventDefault(), N(c));
1022
1023
  };
1023
1024
  return /* @__PURE__ */ n("g", { className: "edge-with-plus-wrapper", children: [
1024
- /* @__PURE__ */ e(K, { id: t, path: l, style: { stroke: "#b0bec5" } }),
1025
+ /* @__PURE__ */ e(_, { id: t, path: i, style: { stroke: "#b0bec5" } }),
1025
1026
  /* @__PURE__ */ n(
1026
1027
  "g",
1027
1028
  {
@@ -1093,27 +1094,27 @@ const Ue = ({ id: t, data: i }) => {
1093
1094
  }
1094
1095
  )
1095
1096
  ] });
1096
- }, pt = ({ id: t, sourceX: i, sourceY: f, targetX: a, targetY: s }) => {
1097
- const [r] = M({ sourceX: i, sourceY: f, targetX: a, targetY: s });
1098
- return /* @__PURE__ */ e(K, { id: t, path: r, style: { stroke: "#b0bec5" } });
1099
- }, Je = 11.5, X = 2, _ = 6, Qe = -24, ee = 40, te = 20, ne = 4, gt = ({
1097
+ }, pt = ({ id: t, sourceX: r, sourceY: f, targetX: a, targetY: s }) => {
1098
+ const [l] = K({ sourceX: r, sourceY: f, targetX: a, targetY: s });
1099
+ return /* @__PURE__ */ e(_, { id: t, path: l, style: { stroke: "#b0bec5" } });
1100
+ }, Je = 11.5, X = 2, j = 6, Qe = -24, ee = 40, te = 20, ne = 4, gt = ({
1100
1101
  id: t,
1101
- sourceX: i,
1102
+ sourceX: r,
1102
1103
  sourceY: f,
1103
1104
  targetX: a,
1104
1105
  targetY: s,
1105
- source: r,
1106
+ source: l,
1106
1107
  target: g,
1107
1108
  data: o
1108
1109
  }) => {
1109
- const [l, d, y] = M({ sourceX: i, sourceY: f, targetX: a, targetY: s }), h = o == null ? void 0 : o.label, N = h === "Pass", p = N || h === "Fail", c = o == null ? void 0 : o.onAddStepClick, v = (o == null ? void 0 : o.showPlus) !== !1 && !!c, m = (k) => {
1110
- k.stopPropagation(), typeof c == "function" && c(r, {
1110
+ const [i, d, y] = K({ sourceX: r, sourceY: f, targetX: a, targetY: s }), h = o == null ? void 0 : o.label, N = h === "Pass", p = N || h === "Fail", c = o == null ? void 0 : o.onAddStepClick, v = (o == null ? void 0 : o.showPlus) !== !1 && !!c, m = (k) => {
1111
+ k.stopPropagation(), typeof c == "function" && c(l, {
1111
1112
  edgeId: t,
1112
- nodeId: r,
1113
- sourceNodeId: r,
1113
+ nodeId: l,
1114
+ sourceNodeId: l,
1114
1115
  targetNodeId: g,
1115
1116
  position: "between",
1116
- referenceNodeId: r,
1117
+ referenceNodeId: l,
1117
1118
  referenceNodeType: o == null ? void 0 : o.referenceNodeType,
1118
1119
  stepVisibility: o == null ? void 0 : o.stepVisibility
1119
1120
  });
@@ -1121,7 +1122,7 @@ const Ue = ({ id: t, data: i }) => {
1121
1122
  (k.key === "Enter" || k.key === " ") && (k.preventDefault(), m(k));
1122
1123
  };
1123
1124
  return /* @__PURE__ */ n("g", { className: "edge-with-plus-wrapper", children: [
1124
- /* @__PURE__ */ e(K, { id: t, path: l, style: { stroke: "#b0bec5" } }),
1125
+ /* @__PURE__ */ e(_, { id: t, path: i, style: { stroke: "#b0bec5" } }),
1125
1126
  /* @__PURE__ */ n(
1126
1127
  "g",
1127
1128
  {
@@ -1150,8 +1151,8 @@ const Ue = ({ id: t, data: i }) => {
1150
1151
  ] }),
1151
1152
  v && /* @__PURE__ */ n("g", { className: "plus-icon-container", children: [
1152
1153
  /* @__PURE__ */ e("circle", { r: Je, className: "edge-plus-circle" }),
1153
- /* @__PURE__ */ e("line", { x1: 0, y1: -_, x2: 0, y2: _, strokeWidth: X, strokeLinecap: "round", className: "plus-line" }),
1154
- /* @__PURE__ */ e("line", { x1: -_, y1: 0, x2: _, y2: 0, strokeWidth: X, strokeLinecap: "round", className: "plus-line" })
1154
+ /* @__PURE__ */ e("line", { x1: 0, y1: -j, x2: 0, y2: j, strokeWidth: X, strokeLinecap: "round", className: "plus-line" }),
1155
+ /* @__PURE__ */ e("line", { x1: -j, y1: 0, x2: j, y2: 0, strokeWidth: X, strokeLinecap: "round", className: "plus-line" })
1155
1156
  ] }),
1156
1157
  v && /* @__PURE__ */ n("g", { className: "edge-plus-tooltip", transform: "translate(22, 0)", children: [
1157
1158
  /* @__PURE__ */ e("rect", { x: 0, y: -10, width: 65, height: 20, rx: 4, className: "tooltip-bg" }),
@@ -1164,39 +1165,39 @@ const Ue = ({ id: t, data: i }) => {
1164
1165
  ] });
1165
1166
  }, ht = ({
1166
1167
  id: t,
1167
- source: i,
1168
+ source: r,
1168
1169
  target: f,
1169
1170
  sourceX: a,
1170
1171
  sourceY: s,
1171
- targetX: r,
1172
+ targetX: l,
1172
1173
  targetY: g,
1173
1174
  style: o = {},
1174
- markerEnd: l,
1175
+ markerEnd: i,
1175
1176
  data: d
1176
1177
  }) => {
1177
1178
  const y = (d == null ? void 0 : d.verticalRouting) ?? !1, h = 30, N = y ? (() => {
1178
1179
  const S = g - h;
1179
- return `M ${a},${S} L ${r},${S} L ${r},${g}`;
1180
+ return `M ${a},${S} L ${l},${S} L ${l},${g}`;
1180
1181
  })() : (() => {
1181
1182
  const S = s + 30;
1182
- return `M ${a},${s} L ${a},${S} L ${r},${S} L ${r},${g}`;
1183
- })(), p = o.stroke || "#d1d5db", c = d == null ? void 0 : d.label, v = (d == null ? void 0 : d.isFirst) ?? !1, m = d == null ? void 0 : d.onAddStepClick, w = y ? g - h : s + 30, k = a + (r - a) * (y ? 0.25 : 0.35), I = a + (r - a) * (y ? 0.65 : 0.7), u = w, z = (S) => {
1184
- S.stopPropagation(), m && m(i, {
1183
+ return `M ${a},${s} L ${a},${S} L ${l},${S} L ${l},${g}`;
1184
+ })(), p = o.stroke || "#d1d5db", c = d == null ? void 0 : d.label, v = (d == null ? void 0 : d.isFirst) ?? !1, m = d == null ? void 0 : d.onAddStepClick, w = y ? g - h : s + 30, k = a + (l - a) * (y ? 0.25 : 0.35), I = a + (l - a) * (y ? 0.65 : 0.7), u = w, z = (S) => {
1185
+ S.stopPropagation(), m && m(r, {
1185
1186
  edgeId: t,
1186
- nodeId: i,
1187
- sourceNodeId: i,
1187
+ nodeId: r,
1188
+ sourceNodeId: r,
1188
1189
  targetNodeId: f,
1189
1190
  position: "between",
1190
- referenceNodeId: i,
1191
+ referenceNodeId: r,
1191
1192
  filterId: d == null ? void 0 : d.filterId,
1192
1193
  branch: d == null ? void 0 : d.branch
1193
1194
  });
1194
1195
  }, A = 11.5, C = 6;
1195
1196
  return /* @__PURE__ */ n("g", { children: [
1196
- /* @__PURE__ */ e("path", { id: t, d: N, fill: "none", stroke: p, strokeWidth: 1.5, markerEnd: l }),
1197
+ /* @__PURE__ */ e("path", { id: t, d: N, fill: "none", stroke: p, strokeWidth: 1.5, markerEnd: i }),
1197
1198
  c && !y && /* @__PURE__ */ e("g", { transform: `translate(${k}, ${u})`, children: (() => {
1198
1199
  const S = Math.max(44, c.length * 7 + 20);
1199
- return /* @__PURE__ */ n(L, { children: [
1200
+ return /* @__PURE__ */ n(R, { children: [
1200
1201
  /* @__PURE__ */ e(
1201
1202
  "rect",
1202
1203
  {
@@ -1243,21 +1244,21 @@ const Ue = ({ id: t, data: i }) => {
1243
1244
  };
1244
1245
  export {
1245
1246
  $e as A,
1246
- _e as D,
1247
+ je as D,
1247
1248
  dt as E,
1248
1249
  Fe as F,
1249
1250
  ht as G,
1250
1251
  gt as L,
1251
- Ue as N,
1252
+ He as N,
1252
1253
  pt as P,
1253
- He as R,
1254
- Ce as S,
1254
+ Oe as R,
1255
+ Te as S,
1255
1256
  Ae as T,
1256
- Oe as W,
1257
- ze as a,
1257
+ Ue as W,
1258
+ Ie as a,
1258
1259
  Be as b,
1259
- Te as c,
1260
+ ze as c,
1260
1261
  at as d,
1261
1262
  ct as e,
1262
- Ee as f
1263
+ Ce as f
1263
1264
  };