@emporix/process-diagram 2.0.0-beta.13 → 2.0.0-beta.14

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/index.mjs CHANGED
@@ -25,9 +25,9 @@ function Z1(t, n) {
25
25
  if (t == null) return {};
26
26
  var o = Y1(t, n), i, r;
27
27
  if (Object.getOwnPropertySymbols) {
28
- var c = Object.getOwnPropertySymbols(t);
29
- for (r = 0; r < c.length; r++)
30
- i = c[r], !(n.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(t, i) && (o[i] = t[i]);
28
+ var a = Object.getOwnPropertySymbols(t);
29
+ for (r = 0; r < a.length; r++)
30
+ i = a[r], !(n.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(t, i) && (o[i] = t[i]);
31
31
  }
32
32
  return o;
33
33
  }
@@ -104,13 +104,13 @@ function K1(t) {
104
104
  var {
105
105
  attr: i,
106
106
  size: r,
107
- title: c
108
- } = t, a = Z1(t, V1), d = r || o.size || "1em", s;
107
+ title: a
108
+ } = t, c = Z1(t, V1), d = r || o.size || "1em", s;
109
109
  return o.className && (s = o.className), t.className && (s = (s ? s + " " : "") + t.className), /* @__PURE__ */ R.createElement("svg", U({
110
110
  stroke: "currentColor",
111
111
  fill: "currentColor",
112
112
  strokeWidth: "0"
113
- }, o.attr, i, a, {
113
+ }, o.attr, i, c, {
114
114
  className: s,
115
115
  style: K(K({
116
116
  color: t.color || o.color
@@ -118,7 +118,7 @@ function K1(t) {
118
118
  height: d,
119
119
  width: d,
120
120
  xmlns: "http://www.w3.org/2000/svg"
121
- }), c && /* @__PURE__ */ R.createElement("title", null, c), t.children);
121
+ }), a && /* @__PURE__ */ R.createElement("title", null, a), t.children);
122
122
  };
123
123
  return p1 !== void 0 ? /* @__PURE__ */ R.createElement(p1.Consumer, null, (o) => n(o)) : n(f1);
124
124
  }
@@ -153,8 +153,8 @@ const J1 = "_panel_19663_1", Q1 = "_panelExiting_19663_13", tt = "_menuItem_1966
153
153
  top: (i.clientY ?? 0) + 2,
154
154
  left: i.clientX ?? 0
155
155
  };
156
- }, Q = B1(function({ model: n, popup: o = !0, onHide: i, onClick: r }, c) {
157
- const [a, d] = $(!1), [s, l] = $(!1), [u, w] = $({ top: 0, left: 0 }), v = O(null), _ = D(() => {
156
+ }, Q = B1(function({ model: n, popup: o = !0, onHide: i, onClick: r }, a) {
157
+ const [c, d] = $(!1), [s, l] = $(!1), [u, w] = $({ top: 0, left: 0 }), v = O(null), _ = D(() => {
158
158
  s || l(!0);
159
159
  }, [s]), b = D(
160
160
  (p) => {
@@ -165,12 +165,12 @@ const J1 = "_panel_19663_1", Q1 = "_panelExiting_19663_13", tt = "_menuItem_1966
165
165
  w(rt(p)), l(!1), d(!0);
166
166
  }, []), g = D(
167
167
  (p) => {
168
- a ? _() : k(p);
168
+ c ? _() : k(p);
169
169
  },
170
- [a, _, k]
170
+ [c, _, k]
171
171
  );
172
172
  P1(
173
- c,
173
+ a,
174
174
  () => ({
175
175
  show: k,
176
176
  hide: _,
@@ -178,7 +178,7 @@ const J1 = "_panel_19663_1", Q1 = "_panelExiting_19663_13", tt = "_menuItem_1966
178
178
  }),
179
179
  [k, _, g]
180
180
  ), Y(() => {
181
- if (!a) return;
181
+ if (!c) return;
182
182
  const p = (I) => {
183
183
  I.key === "Escape" && _();
184
184
  }, x = (I) => {
@@ -188,7 +188,7 @@ const J1 = "_panel_19663_1", Q1 = "_panelExiting_19663_13", tt = "_menuItem_1966
188
188
  return document.addEventListener("keydown", p), document.addEventListener("mousedown", x), () => {
189
189
  document.removeEventListener("keydown", p), document.removeEventListener("mousedown", x);
190
190
  };
191
- }, [a, _]);
191
+ }, [c, _]);
192
192
  const B = (p, x) => {
193
193
  x.stopPropagation(), p.command?.({ originalEvent: x, item: p }), _();
194
194
  }, C = (p, x) => {
@@ -209,7 +209,7 @@ const J1 = "_panel_19663_1", Q1 = "_panelExiting_19663_13", tt = "_menuItem_1966
209
209
  x
210
210
  );
211
211
  };
212
- return !a || !o ? null : T1(
212
+ return !c || !o ? null : T1(
213
213
  /* @__PURE__ */ m(o1, { children: [
214
214
  /* @__PURE__ */ e(
215
215
  "div",
@@ -345,13 +345,13 @@ const J1 = "_panel_19663_1", Q1 = "_panelExiting_19663_13", tt = "_menuItem_1966
345
345
  ), x1 = M1(
346
346
  void 0
347
347
  ), Te = ({ children: t }) => {
348
- const [n, o] = $([]), i = D((a, d) => {
348
+ const [n, o] = $([]), i = D((c, d) => {
349
349
  o((s) => (s.forEach((l) => {
350
- l.current && l !== a && l.current.hide(d);
351
- }), [])), a.current?.toggle(d), o([a]);
352
- }, []), r = D((a) => {
353
- o((d) => d.filter((s) => s !== a));
354
- }, []), c = H(
350
+ l.current && l !== c && l.current.hide(d);
351
+ }), [])), c.current?.toggle(d), o([c]);
352
+ }, []), r = D((c) => {
353
+ o((d) => d.filter((s) => s !== c));
354
+ }, []), a = H(
355
355
  () => ({
356
356
  openMenus: n,
357
357
  openMenu: i,
@@ -359,7 +359,7 @@ const J1 = "_panel_19663_1", Q1 = "_panelExiting_19663_13", tt = "_menuItem_1966
359
359
  }),
360
360
  [n, i, r]
361
361
  );
362
- return /* @__PURE__ */ e(x1.Provider, { value: c, children: t });
362
+ return /* @__PURE__ */ e(x1.Provider, { value: a, children: t });
363
363
  }, s1 = () => {
364
364
  const t = L1(x1);
365
365
  if (t === void 0)
@@ -390,8 +390,8 @@ const J1 = "_panel_19663_1", Q1 = "_panelExiting_19663_13", tt = "_menuItem_1966
390
390
  isSelected: o,
391
391
  isFilter: i,
392
392
  className: r,
393
- title: c,
394
- icon: a,
393
+ title: a,
394
+ icon: c,
395
395
  contextMenuItems: d = void 0,
396
396
  onDeleteStep: s,
397
397
  onUpdateFilter: l,
@@ -418,12 +418,12 @@ const J1 = "_panel_19663_1", Q1 = "_panelExiting_19663_13", tt = "_menuItem_1966
418
418
  }), f;
419
419
  }, [l, s, _, B]), p = H(() => d ?? C, [d, C]), x = (f) => {
420
420
  f.stopPropagation(), k(b, f);
421
- }, I = H(() => o && v ? N.step + " " + N.selectedInvalid : o ? N.step + " " + N.selected : n ? N.step + " " + N.isSet : v ? N.step + " " + N.invalid : N.step, [n, o, v]), h = H(() => v ? /* @__PURE__ */ e(ct, { color: "#E32012" }) : a, [a, v]);
421
+ }, I = H(() => o && v ? N.step + " " + N.selectedInvalid : o ? N.step + " " + N.selected : n ? N.step + " " + N.isSet : v ? N.step + " " + N.invalid : N.step, [n, o, v]), h = H(() => v ? /* @__PURE__ */ e(ct, { color: "#E32012" }) : c, [c, v]);
422
422
  return /* @__PURE__ */ e("div", { className: N.container + " " + r, children: /* @__PURE__ */ m("div", { children: [
423
423
  /* @__PURE__ */ m("div", { className: I, onClick: () => u(_), children: [
424
424
  /* @__PURE__ */ m("div", { className: N.content, children: [
425
425
  /* @__PURE__ */ e("div", { className: `${N.icon} ${v && N.invalid}`, children: h }),
426
- /* @__PURE__ */ e("div", { className: N.title, children: c })
426
+ /* @__PURE__ */ e("div", { className: N.title, children: a })
427
427
  ] }),
428
428
  /* @__PURE__ */ e(
429
429
  "button",
@@ -519,8 +519,8 @@ const J1 = "_panel_19663_1", Q1 = "_panelExiting_19663_13", tt = "_menuItem_1966
519
519
  className: o,
520
520
  onDeleteTrigger: i,
521
521
  onAddTrigger: r,
522
- onSelectStep: c,
523
- onUpdateFilter: a,
522
+ onSelectStep: a,
523
+ onUpdateFilter: c,
524
524
  onCenterYUpdate: d
525
525
  }) => {
526
526
  const s = O(null), l = O([]), [u, w] = $([]), [v, _] = $({ width: 0, height: 0 }), [b, k] = $(!1), [g, B] = $(!1), C = O(null);
@@ -602,8 +602,8 @@ const J1 = "_panel_19663_1", Q1 = "_panelExiting_19663_13", tt = "_menuItem_1966
602
602
  isInvalid: h.isInvalid,
603
603
  isFilter: h.isFilter,
604
604
  icon: h.icon,
605
- onSelectStep: c,
606
- onUpdateFilter: a,
605
+ onSelectStep: a,
606
+ onUpdateFilter: c,
607
607
  contextMenuItems: [
608
608
  {
609
609
  label: "Delete",
@@ -733,21 +733,19 @@ const Lt = () => /* @__PURE__ */ m(
733
733
  onAddCondition: o,
734
734
  onAddLoop: i,
735
735
  iteratorEnabled: r = !0,
736
- conditionsEnabled: c = !0,
737
- stepId: a,
736
+ conditionsEnabled: a = !0,
737
+ stepId: c,
738
738
  index: d = 0,
739
739
  style: s,
740
740
  pathId: l
741
741
  }) => {
742
- const u = r1(), w = O(null);
743
- console.log("conditionsEnabled", c), console.log("iteratorEnabled", r);
744
- const v = [
742
+ const u = r1(), w = O(null), v = [
745
743
  ...d > 0 ? [
746
744
  {
747
745
  label: "Trigger",
748
746
  icon: /* @__PURE__ */ e(Mt, { color: "#3B64A0", size: 18 }),
749
747
  command: () => {
750
- n?.(a, l, "trigger");
748
+ n?.(c, l, "trigger");
751
749
  },
752
750
  template: u
753
751
  }
@@ -755,14 +753,14 @@ const Lt = () => /* @__PURE__ */ m(
755
753
  {
756
754
  label: "Step",
757
755
  icon: /* @__PURE__ */ e(Pt, { color: "#3B64A0", size: 18 }),
758
- command: () => t?.(a, l, d > 0 ? "append" : "prepend"),
756
+ command: () => t?.(c, l, d > 0 ? "append" : "prepend"),
759
757
  template: u
760
758
  },
761
- ...c ? [
759
+ ...a ? [
762
760
  {
763
761
  label: "Condition",
764
762
  icon: /* @__PURE__ */ e(st, { width: 18, height: 18 }),
765
- command: () => o?.(a, l, d > 0 ? "append" : "prepend"),
763
+ command: () => o?.(c, l, d > 0 ? "append" : "prepend"),
766
764
  template: u
767
765
  }
768
766
  ] : [],
@@ -770,7 +768,7 @@ const Lt = () => /* @__PURE__ */ m(
770
768
  {
771
769
  label: "Loop",
772
770
  icon: /* @__PURE__ */ e(lt, { width: 18, height: 18 }),
773
- command: () => i?.(a, l, d > 0 ? "append" : "prepend"),
771
+ command: () => i?.(c, l, d > 0 ? "append" : "prepend"),
774
772
  template: u
775
773
  }
776
774
  ] : []
@@ -804,13 +802,13 @@ const Lt = () => /* @__PURE__ */ m(
804
802
  stepContainer: Et,
805
803
  stepContainerWithPaths: jt
806
804
  }, Ht = (t, n, o, i) => {
807
- const r = o - t, c = Math.min(r * 0.66, 66), a = t + c, d = n, s = o - c;
808
- return `M ${t} ${n} C ${a} ${d}, ${s} ${i}, ${o} ${i}`;
805
+ const r = o - t, a = Math.min(r * 0.66, 66), c = t + a, d = n, s = o - a;
806
+ return `M ${t} ${n} C ${c} ${d}, ${s} ${i}, ${o} ${i}`;
809
807
  }, Wt = ({
810
808
  width: t,
811
809
  height: n
812
810
  }) => {
813
- const a = Ht(0, 1, t, n);
811
+ const c = Ht(0, 1, t, n);
814
812
  return /* @__PURE__ */ e("div", { style: { position: "absolute" }, children: /* @__PURE__ */ e(
815
813
  "svg",
816
814
  {
@@ -821,7 +819,7 @@ const Lt = () => /* @__PURE__ */ m(
821
819
  children: /* @__PURE__ */ e(
822
820
  "path",
823
821
  {
824
- d: a,
822
+ d: c,
825
823
  stroke: "#3b64a0",
826
824
  strokeWidth: "2",
827
825
  fill: "none",
@@ -863,17 +861,17 @@ const Lt = () => /* @__PURE__ */ m(
863
861
  expression: t,
864
862
  style: n
865
863
  }) => {
866
- const o = O(null), i = O(null), [r, c] = $(!1);
864
+ const o = O(null), i = O(null), [r, a] = $(!1);
867
865
  S1(() => {
868
866
  const s = o.current, l = i.current;
869
867
  if (!s || !l) return;
870
868
  const { paddingLeft: u, paddingRight: w } = getComputedStyle(s), v = Number.parseFloat(u) + Number.parseFloat(w);
871
- c(l.offsetWidth >= s.clientWidth - v);
869
+ a(l.offsetWidth >= s.clientWidth - v);
872
870
  }, [t]);
873
- const a = t && r ? t : "", d = `${z.condition} ${r ? "" : z.conditionFits}`.trim();
871
+ const c = t && r ? t : "", d = `${z.condition} ${r ? "" : z.conditionFits}`.trim();
874
872
  return /* @__PURE__ */ m("div", { className: z.conditionContainer, style: n, children: [
875
873
  /* @__PURE__ */ e("div", { className: z.connectorLine }),
876
- /* @__PURE__ */ e(Vt, { content: a, className: z.conditionWrapper, children: /* @__PURE__ */ e("div", { ref: o, className: d, children: /* @__PURE__ */ e("span", { ref: i, children: t }) }) }),
874
+ /* @__PURE__ */ e(Vt, { content: c, className: z.conditionWrapper, children: /* @__PURE__ */ e("div", { ref: o, className: d, children: /* @__PURE__ */ e("span", { ref: i, children: t }) }) }),
877
875
  /* @__PURE__ */ e("div", { className: z.connectorLine }),
878
876
  /* @__PURE__ */ e("div", { className: z.connectorDot })
879
877
  ] });
@@ -895,7 +893,7 @@ const Lt = () => /* @__PURE__ */ m(
895
893
  }
896
894
  }
897
895
  ), se = (t) => {
898
- const { enabled: n = !0, onDelete: o, onSelect: i } = t, r = O(null), { openMenu: c, closeMenu: a } = s1(), d = H(
896
+ const { enabled: n = !0, onDelete: o, onSelect: i } = t, r = O(null), { openMenu: a, closeMenu: c } = s1(), d = H(
899
897
  () => [
900
898
  {
901
899
  label: "Edit",
@@ -910,7 +908,7 @@ const Lt = () => /* @__PURE__ */ m(
910
908
  ],
911
909
  [i, o]
912
910
  ), s = (u) => {
913
- u.stopPropagation(), c(r, u);
911
+ u.stopPropagation(), a(r, u);
914
912
  }, l = (u) => {
915
913
  u.target.closest(`.${F.menuButton}`) || i?.();
916
914
  };
@@ -947,7 +945,7 @@ const Lt = () => /* @__PURE__ */ m(
947
945
  ref: r,
948
946
  model: d,
949
947
  popup: !0,
950
- onHide: () => a(r)
948
+ onHide: () => c(r)
951
949
  }
952
950
  ),
953
951
  /* @__PURE__ */ e("img", { src: Jt, alt: "ifdot", className: F.ifdotIcon })
@@ -958,8 +956,8 @@ const Lt = () => /* @__PURE__ */ m(
958
956
  pathId: o,
959
957
  onAddStep: i,
960
958
  onAddTrigger: r,
961
- onAddCondition: c,
962
- onAddLoop: a,
959
+ onAddCondition: a,
960
+ onAddLoop: c,
963
961
  onDeleteStep: d,
964
962
  onUpdateFilter: s,
965
963
  onSelectStep: l,
@@ -1041,8 +1039,8 @@ const Lt = () => /* @__PURE__ */ m(
1041
1039
  pathId: o,
1042
1040
  onAddStep: i,
1043
1041
  onAddTrigger: r,
1044
- onAddCondition: c,
1045
- onAddLoop: a,
1042
+ onAddCondition: a,
1043
+ onAddLoop: c,
1046
1044
  onDeleteStep: d,
1047
1045
  onUpdateFilter: s,
1048
1046
  onSelectStep: l,
@@ -1074,9 +1072,9 @@ const Lt = () => /* @__PURE__ */ m(
1074
1072
  onAddStep: i ?? (() => {
1075
1073
  }),
1076
1074
  onAddTrigger: r,
1077
- onAddCondition: c ?? (() => {
1075
+ onAddCondition: a ?? (() => {
1078
1076
  }),
1079
- onAddLoop: a,
1077
+ onAddLoop: c,
1080
1078
  onDeleteStep: d,
1081
1079
  onUpdateFilter: s,
1082
1080
  onResize: u
@@ -1132,8 +1130,8 @@ const Lt = () => /* @__PURE__ */ m(
1132
1130
  {
1133
1131
  onAddStep: i,
1134
1132
  onAddTrigger: r,
1135
- onAddCondition: c,
1136
- onAddLoop: a,
1133
+ onAddCondition: a,
1134
+ onAddLoop: c,
1137
1135
  iteratorEnabled: w,
1138
1136
  conditionsEnabled: v,
1139
1137
  stepId: o,
@@ -1164,8 +1162,8 @@ const Lt = () => /* @__PURE__ */ m(
1164
1162
  centerY: o,
1165
1163
  className: i,
1166
1164
  iteratorEnabled: r,
1167
- conditionsEnabled: c,
1168
- onAddStep: a,
1165
+ conditionsEnabled: a,
1166
+ onAddStep: c,
1169
1167
  onDeleteStep: d,
1170
1168
  onUpdateFilter: s,
1171
1169
  onAddTrigger: l,
@@ -1176,7 +1174,7 @@ const Lt = () => /* @__PURE__ */ m(
1176
1174
  isDescendent: b = !0
1177
1175
  }) => {
1178
1176
  const k = o === void 0 ? void 0 : { marginTop: Math.max(0, o - i1 / 2) };
1179
- return console.log("conditionsEnabled", c), console.log("iteratorEnabled", r), n.length === 0 ? /* @__PURE__ */ m(
1177
+ return n.length === 0 ? /* @__PURE__ */ m(
1180
1178
  "div",
1181
1179
  {
1182
1180
  style: {
@@ -1207,13 +1205,13 @@ const Lt = () => /* @__PURE__ */ m(
1207
1205
  A,
1208
1206
  {
1209
1207
  onAddStep: () => {
1210
- a?.(void 0, t);
1208
+ c?.(void 0, t);
1211
1209
  },
1212
1210
  onAddTrigger: l,
1213
1211
  onAddCondition: u,
1214
1212
  onAddLoop: w,
1215
1213
  iteratorEnabled: r,
1216
- conditionsEnabled: c,
1214
+ conditionsEnabled: a,
1217
1215
  stepId: t,
1218
1216
  index: 0,
1219
1217
  style: {
@@ -1258,13 +1256,13 @@ const Lt = () => /* @__PURE__ */ m(
1258
1256
  A,
1259
1257
  {
1260
1258
  onAddStep: () => {
1261
- a?.(n[0].localId, t, "prepend");
1259
+ c?.(n[0].localId, t, "prepend");
1262
1260
  },
1263
1261
  onAddTrigger: l,
1264
1262
  onAddCondition: u,
1265
1263
  onAddLoop: w,
1266
1264
  iteratorEnabled: r,
1267
- conditionsEnabled: c,
1265
+ conditionsEnabled: a,
1268
1266
  stepId: n[0].localId,
1269
1267
  pathId: t,
1270
1268
  index: 0,
@@ -1282,8 +1280,8 @@ const Lt = () => /* @__PURE__ */ m(
1282
1280
  items: g.paths,
1283
1281
  pathId: g.localId,
1284
1282
  iteratorEnabled: r,
1285
- conditionsEnabled: c,
1286
- onAddStep: a,
1283
+ conditionsEnabled: a,
1284
+ onAddStep: c,
1287
1285
  onAddCondition: u,
1288
1286
  onAddLoop: w,
1289
1287
  onDeleteStep: d,
@@ -1299,8 +1297,8 @@ const Lt = () => /* @__PURE__ */ m(
1299
1297
  {
1300
1298
  value: g,
1301
1299
  iteratorEnabled: r,
1302
- conditionsEnabled: c,
1303
- onAddStep: a,
1300
+ conditionsEnabled: a,
1301
+ onAddStep: c,
1304
1302
  onAddTrigger: l,
1305
1303
  onAddCondition: u,
1306
1304
  onAddLoop: w,
@@ -1314,12 +1312,12 @@ const Lt = () => /* @__PURE__ */ m(
1314
1312
  /* @__PURE__ */ e(
1315
1313
  A,
1316
1314
  {
1317
- onAddStep: a,
1315
+ onAddStep: c,
1318
1316
  onAddTrigger: l,
1319
1317
  onAddCondition: u,
1320
1318
  onAddLoop: w,
1321
1319
  iteratorEnabled: r,
1322
- conditionsEnabled: c,
1320
+ conditionsEnabled: a,
1323
1321
  stepId: g.localId,
1324
1322
  pathId: t,
1325
1323
  index: B + 1,
@@ -1346,12 +1344,12 @@ const Lt = () => /* @__PURE__ */ m(
1346
1344
  /* @__PURE__ */ e(
1347
1345
  A,
1348
1346
  {
1349
- onAddStep: a,
1347
+ onAddStep: c,
1350
1348
  onAddTrigger: l,
1351
1349
  onAddCondition: u,
1352
1350
  onAddLoop: w,
1353
1351
  iteratorEnabled: r,
1354
- conditionsEnabled: c,
1352
+ conditionsEnabled: a,
1355
1353
  stepId: g.localId,
1356
1354
  pathId: t,
1357
1355
  index: B + 1
@@ -1431,8 +1429,8 @@ const Lt = () => /* @__PURE__ */ m(
1431
1429
  conditionsEnabled: o = !0,
1432
1430
  onAddStep: i,
1433
1431
  onAddTrigger: r,
1434
- onAddCondition: c,
1435
- onAddLoop: a,
1432
+ onAddCondition: a,
1433
+ onAddLoop: c,
1436
1434
  onDeleteStep: d,
1437
1435
  onUpdateFilter: s,
1438
1436
  onSelectStep: l,
@@ -1501,8 +1499,8 @@ const Lt = () => /* @__PURE__ */ m(
1501
1499
  conditionsEnabled: o,
1502
1500
  onAddStep: i ?? g,
1503
1501
  onAddTrigger: r,
1504
- onAddCondition: c ?? g,
1505
- onAddLoop: a,
1502
+ onAddCondition: a ?? g,
1503
+ onAddLoop: c,
1506
1504
  onDeleteStep: d,
1507
1505
  onUpdateFilter: s ?? g,
1508
1506
  onSelectStep: l ?? g,
@@ -1519,8 +1517,8 @@ const Lt = () => /* @__PURE__ */ m(
1519
1517
  conditionsEnabled: o = !0,
1520
1518
  addMultipleTriggers: i,
1521
1519
  onAddStep: r,
1522
- onAddTrigger: c,
1523
- onAddCondition: a,
1520
+ onAddTrigger: a,
1521
+ onAddCondition: c,
1524
1522
  onAddLoop: d,
1525
1523
  onResize: s,
1526
1524
  onDeleteTrigger: l,
@@ -1547,8 +1545,8 @@ const Lt = () => /* @__PURE__ */ m(
1547
1545
  steps: t.steps,
1548
1546
  centerY: _,
1549
1547
  onAddStep: r,
1550
- onAddTrigger: c,
1551
- onAddCondition: a,
1548
+ onAddTrigger: a,
1549
+ onAddCondition: c,
1552
1550
  onAddLoop: d,
1553
1551
  onResize: s,
1554
1552
  onDeleteStep: u,
@@ -1563,8 +1561,8 @@ const Lt = () => /* @__PURE__ */ m(
1563
1561
  A,
1564
1562
  {
1565
1563
  onAddStep: () => r(),
1566
- onAddTrigger: c,
1567
- onAddCondition: a,
1564
+ onAddTrigger: a,
1565
+ onAddCondition: c,
1568
1566
  onAddLoop: d,
1569
1567
  iteratorEnabled: n,
1570
1568
  conditionsEnabled: o,
@@ -1589,12 +1587,12 @@ const g1 = (t) => "condition" in t && typeof t.condition == "string", I1 = (t, n
1589
1587
  for (let r = 0; r < t.length; r++) {
1590
1588
  if (t[r].localId === n)
1591
1589
  return I1(t, r, i, o);
1592
- const c = t[r], a = c.steps?.length && a1(c.steps, n, o, i);
1593
- if (a)
1590
+ const a = t[r], c = a.steps?.length && a1(a.steps, n, o, i);
1591
+ if (c)
1594
1592
  return t.map(
1595
- (s, l) => l === r ? { ...s, steps: a } : s
1593
+ (s, l) => l === r ? { ...s, steps: c } : s
1596
1594
  );
1597
- const d = c.paths?.length && b1(c.paths, n, o, i);
1595
+ const d = a.paths?.length && b1(a.paths, n, o, i);
1598
1596
  if (d)
1599
1597
  return t.map(
1600
1598
  (s, l) => l === r ? { ...s, paths: d } : s
@@ -1606,18 +1604,18 @@ const g1 = (t) => "condition" in t && typeof t.condition == "string", I1 = (t, n
1606
1604
  return { ...t, steps: r };
1607
1605
  }, b1 = (t, n, o, i) => {
1608
1606
  for (let r = 0; r < t.length; r++) {
1609
- const c = t[r];
1610
- if (c.localId === n)
1611
- return g1(c) ? t.map(
1612
- (a, d) => d === r ? Pe(c, o, i) : a
1607
+ const a = t[r];
1608
+ if (a.localId === n)
1609
+ return g1(a) ? t.map(
1610
+ (c, d) => d === r ? Pe(a, o, i) : c
1613
1611
  ) : I1(t, r, i, o);
1614
- if (g1(c)) {
1615
- const a = c.steps?.length && a1(c.steps, n, o, i);
1616
- if (a)
1612
+ if (g1(a)) {
1613
+ const c = a.steps?.length && a1(a.steps, n, o, i);
1614
+ if (c)
1617
1615
  return t.map(
1618
- (s, l) => l === r ? { ...s, steps: a } : s
1616
+ (s, l) => l === r ? { ...s, steps: c } : s
1619
1617
  );
1620
- const d = c.paths?.length && b1(c.paths, n, o, i);
1618
+ const d = a.paths?.length && b1(a.paths, n, o, i);
1621
1619
  if (d)
1622
1620
  return t.map(
1623
1621
  (s, l) => l === r ? { ...s, paths: d } : s