@billtaofbj/diagram 1.1.0 → 1.2.0

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.es.js CHANGED
@@ -5,12 +5,12 @@ import { ElMessage as P } from "element-plus";
5
5
  import F from "axios";
6
6
  import * as I from "yjs";
7
7
  import { HocuspocusProvider as L } from "@hocuspocus/provider";
8
- import { ArrowDown as R, ArrowLeft as z, Bell as B, Clock as V, Close as H, Delete as U, Link as W, Loading as G, Monitor as K, Picture as ee, Plus as q, Promotion as te, Setting as J, Share as Y } from "@element-plus/icons-vue";
8
+ import { ArrowDown as R, ArrowLeft as z, Bell as B, Clock as V, Close as H, Delete as U, Link as ee, Loading as W, Monitor as G, Picture as K, Plus as te, Promotion as q, Setting as J, Share as ne } from "@element-plus/icons-vue";
9
9
  F.create({
10
10
  baseURL: "/api",
11
11
  timeout: 3e4
12
12
  });
13
- function ne(e = "/api") {
13
+ function re(e = "/api") {
14
14
  let t = F.create({
15
15
  baseURL: e,
16
16
  timeout: 3e4
@@ -25,7 +25,7 @@ function ne(e = "/api") {
25
25
  listAttachments: (e) => t.get(`/documents/${e}/attachments`)
26
26
  };
27
27
  }
28
- function re(e = "/api") {
28
+ function Y(e = "/api") {
29
29
  let t = F.create({
30
30
  baseURL: e,
31
31
  timeout: 3e4
@@ -36,8 +36,8 @@ function re(e = "/api") {
36
36
  update: (e, n) => t.put(`/questionnaires/${e}`, n)
37
37
  };
38
38
  }
39
- re("/api");
40
- var ie = ne("/api");
39
+ Y("/api");
40
+ var ie = re("/api");
41
41
  //#endregion
42
42
  //#region ../../src/composables/useCollaboration.js
43
43
  function ae(e, t = {}) {
@@ -818,7 +818,7 @@ var ue = {
818
818
  execution: "执行流程图",
819
819
  dataflow: "数据流程图"
820
820
  };
821
- function Z(e, t, n, r = {}) {
821
+ function he(e, t, n, r = {}) {
822
822
  let i = ue[e] || ue.process;
823
823
  return {
824
824
  id: "node_" + Date.now() + "_" + Math.random().toString(36).substr(2, 6),
@@ -850,7 +850,7 @@ function Z(e, t, n, r = {}) {
850
850
  ...r
851
851
  };
852
852
  }
853
- function he(e, t, n = {}) {
853
+ function Z(e, t, n = {}) {
854
854
  return {
855
855
  id: "edge_" + Date.now() + "_" + Math.random().toString(36).substr(2, 6),
856
856
  sourceId: e,
@@ -1004,13 +1004,13 @@ function ve(e = "process", n = null) {
1004
1004
  c.length = 0, l.length = 0, u.length = 0, c.push(...e.nodes), l.push(...e.edges), u.push(...e.swimlanes);
1005
1005
  }, k = (e, t, n, r) => {
1006
1006
  E();
1007
- let i = Z(e, t, n, r);
1007
+ let i = he(e, t, n, r);
1008
1008
  return c.push(i), i;
1009
1009
  }, A = (e, t, n) => {
1010
1010
  let r = l.find((n) => n.sourceId === e && n.targetId === t);
1011
1011
  if (r) return r;
1012
1012
  E();
1013
- let i = he(e, t, n);
1013
+ let i = Z(e, t, n);
1014
1014
  return l.push(i), i;
1015
1015
  }, j = (e, t, n) => {
1016
1016
  E();
@@ -1055,7 +1055,7 @@ function ve(e = "process", n = null) {
1055
1055
  }, U = (e) => {
1056
1056
  let t = c.find((t) => t.id === e);
1057
1057
  t && (t.zIndex = Math.min(...c.map((e) => e.zIndex || 0)) - 1);
1058
- }, W = () => ({
1058
+ }, ee = () => ({
1059
1059
  version: "1.0",
1060
1060
  mode: e,
1061
1061
  type: g.value,
@@ -1065,34 +1065,34 @@ function ve(e = "process", n = null) {
1065
1065
  edges: JSON.parse(JSON.stringify(l)),
1066
1066
  swimlanes: JSON.parse(JSON.stringify(u)),
1067
1067
  exportTime: (/* @__PURE__ */ new Date()).toISOString()
1068
- }), G = (e) => e ? (c.length = 0, l.length = 0, u.length = 0, e.nodes && c.push(...e.nodes), e.edges && l.push(...e.edges), e.swimlanes && u.push(...e.swimlanes), e.title && (_.value = e.title), e.type ? g.value = e.type : e.subType && (g.value = e.subType), e.theme && (b.value = e.theme), x.value = [], S.value = [], !0) : !1, K = (e = "vertical") => {
1068
+ }), W = (e) => e ? (c.length = 0, l.length = 0, u.length = 0, e.nodes && c.push(...e.nodes), e.edges && l.push(...e.edges), e.swimlanes && u.push(...e.swimlanes), e.title && (_.value = e.title), e.type ? g.value = e.type : e.subType && (g.value = e.subType), e.theme && (b.value = e.theme), x.value = [], S.value = [], !0) : !1, G = (e = "vertical") => {
1069
1069
  E();
1070
1070
  let t = r ? 40 : 50, n = r ? 50 : 80;
1071
1071
  c.forEach((r, i) => {
1072
1072
  e === "vertical" ? (r.x = 300, r.y = n, n += r.height + t) : (r.x = 50 + i * (r.width + t), r.y = 200);
1073
1073
  });
1074
- }, ee = (e) => {
1074
+ }, K = (e) => {
1075
1075
  switch (R(), e) {
1076
1076
  case "approval":
1077
- q();
1077
+ te();
1078
1078
  break;
1079
1079
  case "execution":
1080
- te();
1080
+ q();
1081
1081
  break;
1082
1082
  case "dataflow":
1083
1083
  J();
1084
1084
  break;
1085
1085
  case "business":
1086
- Y();
1086
+ ne();
1087
1087
  break;
1088
1088
  case "h-swimlane":
1089
- ne();
1089
+ re();
1090
1090
  break;
1091
1091
  case "v-swimlane":
1092
- re();
1092
+ Y();
1093
1093
  break;
1094
1094
  }
1095
- }, q = () => {
1095
+ }, te = () => {
1096
1096
  _.value = "审批流程";
1097
1097
  let e = k("start", 300, 30), t = k("person", 290, 130);
1098
1098
  t.label = "申请人";
@@ -1106,7 +1106,7 @@ function ve(e = "process", n = null) {
1106
1106
  a.label = "系统通知";
1107
1107
  let o = k("end", 300, 730);
1108
1108
  A(e.id, t.id), A(t.id, n.id), A(n.id, r.id), A(r.id, i.id, { label: "否" }), A(r.id, a.id, { label: "是" }), A(i.id, a.id), A(a.id, o.id);
1109
- }, te = () => {
1109
+ }, q = () => {
1110
1110
  _.value = "程序执行流程";
1111
1111
  let e = k("start", 300, 30), t = k("api", 260, 130);
1112
1112
  t.label = "接收请求";
@@ -1138,7 +1138,7 @@ function ve(e = "process", n = null) {
1138
1138
  o.label = "生成报表";
1139
1139
  let s = k("end", 300, 890);
1140
1140
  A(e.id, t.id), A(t.id, n.id), A(n.id, r.id), A(r.id, i.id), A(i.id, a.id, { label: "通过" }), A(a.id, o.id), A(o.id, s.id);
1141
- }, Y = () => {
1141
+ }, ne = () => {
1142
1142
  _.value = "业务流程图";
1143
1143
  let e = k("start", 300, 30);
1144
1144
  e.label = "客户提交申请";
@@ -1162,7 +1162,7 @@ function ve(e = "process", n = null) {
1162
1162
  l.label = "退回补正";
1163
1163
  let u = k("annotation", 480, 610);
1164
1164
  u.label = "驳回并说明原因", A(e.id, t.id), A(t.id, n.id), A(n.id, r.id), A(r.id, i.id, { label: "是" }), A(r.id, l.id, { label: "否" }), A(l.id, t.id), A(i.id, a.id), A(a.id, o.id, { label: "通过" }), A(a.id, u.id, { label: "驳回" }), A(u.id, c.id), A(o.id, s.id), A(s.id, c.id);
1165
- }, ne = () => {
1165
+ }, re = () => {
1166
1166
  _.value = "水平泳道图 - 订单处理";
1167
1167
  let e = j("订单处理流程", "horizontal", {
1168
1168
  width: 900,
@@ -1187,7 +1187,7 @@ function ve(e = "process", n = null) {
1187
1187
  c.label = "安排物流";
1188
1188
  let l = k("end", 460, 370);
1189
1189
  l.label = "送达客户", A(t.id, n.id), A(n.id, r.id), A(r.id, i.id), A(i.id, a.id), A(a.id, o.id, { label: "有货" }), A(a.id, s.id, { label: "缺货" }), A(o.id, s.id), A(s.id, c.id), A(c.id, l.id);
1190
- }, re = () => {
1190
+ }, Y = () => {
1191
1191
  _.value = "垂直泳道图 - 审批流程";
1192
1192
  let e = j("审批流程", "vertical", {
1193
1193
  width: 750,
@@ -1248,12 +1248,12 @@ function ve(e = "process", n = null) {
1248
1248
  getNodesInSwimlane: V,
1249
1249
  bringToFront: H,
1250
1250
  sendToBack: U,
1251
- toJSON: W,
1252
- fromJSON: G,
1253
- autoLayout: K,
1254
- loadTemplate: ee,
1255
- createNode: Z,
1256
- createEdge: he,
1251
+ toJSON: ee,
1252
+ fromJSON: W,
1253
+ autoLayout: G,
1254
+ loadTemplate: K,
1255
+ createNode: he,
1256
+ createEdge: Z,
1257
1257
  PROCESS_TYPE_LABELS: pe,
1258
1258
  EXECUTION_TYPE_LABELS: me,
1259
1259
  THEMES: X,
@@ -1267,7 +1267,7 @@ var Q = (e, t) => {
1267
1267
  let n = e.__vccOpts || e;
1268
1268
  for (let [e, r] of t) n[e] = r;
1269
1269
  return n;
1270
- }, ye = { class: "chat-header" }, be = { class: "chat-header-left" }, xe = { class: "chat-title" }, Se = { class: "online-users-list" }, Ce = { class: "online-user-item" }, we = { class: "online-user-name" }, $ = { key: 1 }, Te = { class: "online-user-name" }, Ee = { class: "chat-header-right" }, De = {
1270
+ }, ye = { class: "chat-header" }, be = { class: "chat-header-left" }, xe = { class: "chat-title" }, Se = { class: "online-users-list" }, Ce = { class: "online-user-item" }, we = { class: "online-user-name" }, Te = { key: 1 }, $ = { class: "online-user-name" }, Ee = { class: "chat-header-right" }, De = {
1271
1271
  key: 0,
1272
1272
  class: "chat-empty"
1273
1273
  }, Oe = { class: "chat-empty-hint" }, ke = { key: 1 }, Ae = { class: "message-content" }, je = {
@@ -1359,18 +1359,18 @@ var Q = (e, t) => {
1359
1359
  w.value = !1;
1360
1360
  }, V = () => {
1361
1361
  w.value && (O.value = Math.min(O.value + 1, T.value.length - 1));
1362
- }, W = () => {
1362
+ }, ee = () => {
1363
1363
  w.value && (O.value = Math.max(O.value - 1, 0));
1364
- }, G = (e) => {
1364
+ }, W = (e) => {
1365
1365
  let t = h.value.slice(0, M), n = h.value.slice(M + j.length + 1);
1366
1366
  h.value = `${t}@${e.name} ${n}`, w.value = !1;
1367
- }, ee = (e) => {
1367
+ }, K = (e) => {
1368
1368
  if (e) {
1369
1369
  if (e.shiftKey) return;
1370
1370
  if (w.value) {
1371
1371
  let t = T.value[O.value];
1372
1372
  if (t) {
1373
- e.preventDefault(), G(t);
1373
+ e.preventDefault(), W(t);
1374
1374
  return;
1375
1375
  }
1376
1376
  }
@@ -1384,12 +1384,12 @@ var Q = (e, t) => {
1384
1384
  e && (n = e[1]);
1385
1385
  }
1386
1386
  d("send", t, { mentionedUser: n }), h.value = "", w.value = !1;
1387
- }, q = () => {
1387
+ }, te = () => {
1388
1388
  f(() => {
1389
1389
  g.value && (g.value.scrollTop = g.value.scrollHeight);
1390
1390
  });
1391
1391
  };
1392
- return E(() => u.messages.length, q), E(() => u.messages, q, { deep: !0 }), (t, l) => {
1392
+ return E(() => u.messages.length, te), E(() => u.messages, te, { deep: !0 }), (t, l) => {
1393
1393
  let u = x("el-icon"), f = x("el-tag"), y = x("el-popover"), E = x("el-button"), j = x("el-input");
1394
1394
  return o.visible ? (_(), i("div", {
1395
1395
  key: 0,
@@ -1401,7 +1401,7 @@ var Q = (e, t) => {
1401
1401
  size: 18,
1402
1402
  color: "#409EFF"
1403
1403
  }, {
1404
- default: D(() => [c(C(K))]),
1404
+ default: D(() => [c(C(G))]),
1405
1405
  _: 1
1406
1406
  }),
1407
1407
  a("span", xe, S(o.isCollab ? "协作聊天" : "AI 助手"), 1),
@@ -1447,10 +1447,10 @@ var Q = (e, t) => {
1447
1447
  key: 0,
1448
1448
  size: 14
1449
1449
  }, {
1450
- default: D(() => [c(C(K))]),
1450
+ default: D(() => [c(C(G))]),
1451
1451
  _: 1
1452
- })) : (_(), i("span", $, S((e.name || "U").charAt(0)), 1))], 4),
1453
- a("span", Te, S(e.name || "未知用户"), 1),
1452
+ })) : (_(), i("span", Te, S((e.name || "U").charAt(0)), 1))], 4),
1453
+ a("span", $, S(e.name || "未知用户"), 1),
1454
1454
  e.isAi ? (_(), n(f, {
1455
1455
  key: 0,
1456
1456
  size: "small",
@@ -1523,7 +1523,7 @@ var Q = (e, t) => {
1523
1523
  size: 40,
1524
1524
  color: "#c0c4cc"
1525
1525
  }, {
1526
- default: D(() => [c(C(K))]),
1526
+ default: D(() => [c(C(G))]),
1527
1527
  _: 1
1528
1528
  }),
1529
1529
  a("p", null, S(o.isCollab ? "协作聊天室" : "你好!我是 AI 助手"), 1),
@@ -1539,7 +1539,7 @@ var Q = (e, t) => {
1539
1539
  key: 0,
1540
1540
  size: 16
1541
1541
  }, {
1542
- default: D(() => [c(C(K))]),
1542
+ default: D(() => [c(C(G))]),
1543
1543
  _: 1
1544
1544
  })) : (_(), i("span", ke, S(R(e)), 1))], 4), a("div", Ae, [
1545
1545
  o.isCollab && e.role === "user" ? (_(), i("div", je, [a("span", {
@@ -1553,7 +1553,7 @@ var Q = (e, t) => {
1553
1553
  a("div", Pe, S(e.time), 1)
1554
1554
  ])], 2))), 128)),
1555
1555
  o.loading ? (_(), i("div", Fe, [a("div", Ie, [c(u, { size: 16 }, {
1556
- default: D(() => [c(C(K))]),
1556
+ default: D(() => [c(C(G))]),
1557
1557
  _: 1
1558
1558
  })]), l[7] ||= a("div", { class: "message-content" }, [a("div", { class: "message-text typing-indicator" }, [
1559
1559
  a("span"),
@@ -1576,9 +1576,9 @@ var Q = (e, t) => {
1576
1576
  },
1577
1577
  placeholder: o.isCollab ? "输入消息... @提及成员" : "输入消息...",
1578
1578
  onKeydown: [
1579
- k(A(ee, ["exact"]), ["enter"]),
1579
+ k(A(K, ["exact"]), ["enter"]),
1580
1580
  k(A(V, ["prevent"]), ["down"]),
1581
- k(A(W, ["prevent"]), ["up"])
1581
+ k(A(ee, ["prevent"]), ["up"])
1582
1582
  ],
1583
1583
  onInput: z,
1584
1584
  resize: "none"
@@ -1590,7 +1590,7 @@ var Q = (e, t) => {
1590
1590
  w.value ? (_(), i("div", Re, [(_(!0), i(e, null, b(T.value, (e, t) => (_(), i("div", {
1591
1591
  key: e.id || e.clientId,
1592
1592
  class: p(["mention-item", { active: t === O.value }]),
1593
- onClick: (t) => G(e),
1593
+ onClick: (t) => W(e),
1594
1594
  onMouseenter: (e) => O.value = t
1595
1595
  }, [a("div", {
1596
1596
  class: "mention-avatar",
@@ -1599,7 +1599,7 @@ var Q = (e, t) => {
1599
1599
  key: 0,
1600
1600
  size: 12
1601
1601
  }, {
1602
- default: D(() => [c(C(K))]),
1602
+ default: D(() => [c(C(G))]),
1603
1603
  _: 1
1604
1604
  })) : (_(), i("span", Be, S((e.name || "U").charAt(0)), 1))], 4), a("span", null, S(e.name), 1)], 42, ze))), 128))])) : r("", !0),
1605
1605
  c(E, {
@@ -1607,10 +1607,10 @@ var Q = (e, t) => {
1607
1607
  type: "primary",
1608
1608
  circle: "",
1609
1609
  disabled: !h.value.trim() || o.loading,
1610
- onClick: ee
1610
+ onClick: K
1611
1611
  }, {
1612
1612
  default: D(() => [c(u, null, {
1613
- default: D(() => [c(C(te))]),
1613
+ default: D(() => [c(C(q))]),
1614
1614
  _: 1
1615
1615
  })]),
1616
1616
  _: 1
@@ -1769,8 +1769,119 @@ function He() {
1769
1769
  };
1770
1770
  }
1771
1771
  //#endregion
1772
+ //#region ../../src/composables/useAiApi.js
1773
+ var Ue = [
1774
+ "我可以帮您优化流程图布局、检查节点逻辑,或者提供流程设计建议。请问有什么需要帮助的?",
1775
+ "这个流程图的节点连接看起来很清晰。建议检查一下是否有遗漏的分支或异常处理路径。",
1776
+ "根据当前的流程结构,我建议在关键决策节点后添加明确的条件标注,使流程更易理解。",
1777
+ "流程图中的泳道划分很合理。如果需要,我可以帮您分析各角色的职责分配是否均衡。",
1778
+ "我可以帮您检查流程中是否存在循环依赖或死锁风险。需要我逐条分析吗?",
1779
+ "建议在流程开始和结束节点使用统一的样式,这样可以让读者更快识别流程的起止点。",
1780
+ "这个执行图的逻辑链路比较长,建议在中间添加一些检查点节点,便于流程监控和调试。",
1781
+ "我可以帮您生成流程图的文字说明文档,方便团队成员理解流程细节。"
1782
+ ];
1783
+ function We() {
1784
+ return Ue[Math.floor(Math.random() * Ue.length)];
1785
+ }
1786
+ async function Ge(e, t, n) {
1787
+ let r = { "Content-Type": "application/json" };
1788
+ e.apiKey && (r.Authorization = `Bearer ${e.apiKey}`);
1789
+ let i = await fetch(e.url, {
1790
+ method: "POST",
1791
+ headers: r,
1792
+ body: JSON.stringify({
1793
+ model: e.model || "gpt-4o-mini",
1794
+ messages: t,
1795
+ temperature: e.temperature ?? .7,
1796
+ max_tokens: e.maxTokens ?? 4096
1797
+ }),
1798
+ signal: n
1799
+ });
1800
+ if (!i.ok) {
1801
+ let e = await i.text().catch(() => "");
1802
+ throw Error(`AI API error ${i.status}: ${e}`);
1803
+ }
1804
+ return (await i.json()).choices?.[0]?.message?.content || "";
1805
+ }
1806
+ function Ke(e) {
1807
+ let t = y(!1), n = null, r = () => {
1808
+ let t = typeof e == "function" ? e() : e;
1809
+ return !!(t && t.url);
1810
+ }, i = () => typeof e == "function" ? e() : e || {};
1811
+ return {
1812
+ loading: t,
1813
+ isAvailable: r,
1814
+ chat: async (e, r = []) => {
1815
+ let a = i();
1816
+ if (!a.url) return We();
1817
+ t.value = !0, n && n.abort(), n = new AbortController();
1818
+ try {
1819
+ return await Ge(a, [
1820
+ {
1821
+ role: "system",
1822
+ content: a.chatPrompt || "你是一个有帮助的AI助手,擅长文档编辑和流程设计。请简洁回答用户问题。"
1823
+ },
1824
+ ...r.map((e) => ({
1825
+ role: e.role === "ai" ? "assistant" : "user",
1826
+ content: e.content
1827
+ })),
1828
+ {
1829
+ role: "user",
1830
+ content: e
1831
+ }
1832
+ ], n.signal);
1833
+ } catch (e) {
1834
+ return e.name === "AbortError" ? "" : (console.warn("[useAiApi] Chat error, falling back to mock:", e), We());
1835
+ } finally {
1836
+ t.value = !1;
1837
+ }
1838
+ },
1839
+ generate: async (e, r) => {
1840
+ let a = i();
1841
+ if (!a.url) return {
1842
+ success: !1,
1843
+ message: "AI生成功能开发中,敬请期待..."
1844
+ };
1845
+ t.value = !0, n && n.abort(), n = new AbortController();
1846
+ try {
1847
+ let t = await Ge(a, [{
1848
+ role: "system",
1849
+ content: a.generatePrompt || `你是一个专业的${r || "流程图"}生成助手。根据用户的描述,生成对应的JSON数据结构。只返回JSON,不要包含其他文字或markdown代码块标记。`
1850
+ }, {
1851
+ role: "user",
1852
+ content: e
1853
+ }], n.signal), i = null;
1854
+ try {
1855
+ let e = t.replace(/^```(?:json)?\s*/i, "").replace(/\s*```$/i, "").trim();
1856
+ i = JSON.parse(e);
1857
+ } catch {
1858
+ i = null;
1859
+ }
1860
+ return {
1861
+ success: !0,
1862
+ content: t,
1863
+ parsed: i
1864
+ };
1865
+ } catch (e) {
1866
+ return e.name === "AbortError" ? {
1867
+ success: !1,
1868
+ message: "已取消"
1869
+ } : (console.warn("[useAiApi] Generate error:", e), {
1870
+ success: !1,
1871
+ message: `AI生成失败: ${e.message}`
1872
+ });
1873
+ } finally {
1874
+ t.value = !1;
1875
+ }
1876
+ },
1877
+ abort: () => {
1878
+ n &&= (n.abort(), null);
1879
+ }
1880
+ };
1881
+ }
1882
+ //#endregion
1772
1883
  //#region ../../src/composables/useVersionHistory.js
1773
- var Ue = "/api/document-versions", We = 5e3, Ge = () => {
1884
+ var qe = "/api/document-versions", Je = 5e3, Ye = () => {
1774
1885
  let e = y([]), t = y(!1);
1775
1886
  return {
1776
1887
  versions: e,
@@ -1778,13 +1889,13 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
1778
1889
  saveVersion: async ({ documentId: e, docType: t, content: n, userId: r, userName: i }) => {
1779
1890
  if (!e || !t || !n) return null;
1780
1891
  try {
1781
- let { data: a } = await F.post(Ue, {
1892
+ let { data: a } = await F.post(qe, {
1782
1893
  document_id: e,
1783
1894
  doc_type: t,
1784
1895
  content: typeof n == "string" ? n : JSON.stringify(n),
1785
1896
  user_id: r || null,
1786
1897
  user_name: i || null
1787
- }, { timeout: We });
1898
+ }, { timeout: Je });
1788
1899
  return a;
1789
1900
  } catch (e) {
1790
1901
  return console.warn("[useVersionHistory] Failed to save version:", e), null;
@@ -1794,9 +1905,9 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
1794
1905
  if (!n) return [];
1795
1906
  t.value = !0;
1796
1907
  try {
1797
- let { data: t } = await F.get(Ue, {
1908
+ let { data: t } = await F.get(qe, {
1798
1909
  params: { document_id: n },
1799
- timeout: We
1910
+ timeout: Je
1800
1911
  });
1801
1912
  return e.value = t, t;
1802
1913
  } catch (t) {
@@ -1807,26 +1918,26 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
1807
1918
  },
1808
1919
  getVersionContent: async (e) => {
1809
1920
  try {
1810
- let { data: t } = await F.get(`${Ue}/${e}`, { timeout: We });
1921
+ let { data: t } = await F.get(`${qe}/${e}`, { timeout: Je });
1811
1922
  return t;
1812
1923
  } catch (e) {
1813
1924
  return console.warn("[useVersionHistory] Failed to get version content:", e), null;
1814
1925
  }
1815
1926
  }
1816
1927
  };
1817
- }, Ke = { class: "version-history-panel" }, qe = {
1928
+ }, Xe = { class: "version-history-panel" }, Ze = {
1818
1929
  key: 0,
1819
1930
  class: "loading-state"
1820
- }, Je = {
1931
+ }, Qe = {
1821
1932
  key: 1,
1822
1933
  class: "empty-state"
1823
- }, Ye = {
1934
+ }, $e = {
1824
1935
  key: 2,
1825
1936
  class: "version-list"
1826
- }, Xe = {
1937
+ }, et = {
1827
1938
  key: 0,
1828
1939
  class: "current-version"
1829
- }, Ze = { class: "current-version-header" }, Qe = { class: "version-number" }, $e = ["onClick"], et = { class: "version-number" }, tt = { class: "version-user" }, nt = { class: "panel-footer" }, rt = /*#__PURE__*/ Q({
1940
+ }, tt = { class: "current-version-header" }, nt = { class: "version-number" }, rt = ["onClick"], it = { class: "version-number" }, at = { class: "version-user" }, ot = { class: "panel-footer" }, st = /*#__PURE__*/ Q({
1830
1941
  __name: "VersionHistoryPanel",
1831
1942
  props: {
1832
1943
  modelValue: {
@@ -1840,7 +1951,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
1840
1951
  },
1841
1952
  emits: ["update:modelValue", "apply"],
1842
1953
  setup(t, { expose: o, emit: l }) {
1843
- let u = t, d = l, { versions: f, loading: m, loadVersions: h, getVersionContent: g } = Ge(), v = y(!1), w = y(null), T = y(!1), O = y(null);
1954
+ let u = t, d = l, { versions: f, loading: m, loadVersions: h, getVersionContent: g } = Ye(), v = y(!1), w = y(null), T = y(!1), O = y(null);
1844
1955
  E(() => u.modelValue, (e) => {
1845
1956
  v.value = e, e && u.documentId && (w.value = null, h(u.documentId).then((e) => {
1846
1957
  e && e.length > 0 && (O.value = e[0]);
@@ -1877,7 +1988,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
1877
1988
  size: "420px",
1878
1989
  "before-close": j
1879
1990
  }, {
1880
- footer: D(() => [a("div", nt, [c(g, {
1991
+ footer: D(() => [a("div", ot, [c(g, {
1881
1992
  type: "primary",
1882
1993
  disabled: !w.value,
1883
1994
  loading: T.value,
@@ -1886,22 +1997,22 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
1886
1997
  default: D(() => [...o[4] ||= [s(" 切换到此版本 ", -1)]]),
1887
1998
  _: 1
1888
1999
  }, 8, ["disabled", "loading"])])]),
1889
- default: D(() => [a("div", Ke, [C(m) ? (_(), i("div", qe, [c(l, { class: "is-loading" }, {
1890
- default: D(() => [c(C(G))]),
2000
+ default: D(() => [a("div", Xe, [C(m) ? (_(), i("div", Ze, [c(l, { class: "is-loading" }, {
2001
+ default: D(() => [c(C(W))]),
1891
2002
  _: 1
1892
- }), o[1] ||= a("span", null, "加载中...", -1)])) : C(f).length === 0 ? (_(), i("div", Je, [c(l, {
2003
+ }), o[1] ||= a("span", null, "加载中...", -1)])) : C(f).length === 0 ? (_(), i("div", Qe, [c(l, {
1893
2004
  size: 48,
1894
2005
  color: "#c0c4cc"
1895
2006
  }, {
1896
2007
  default: D(() => [c(C(V))]),
1897
2008
  _: 1
1898
- }), o[2] ||= a("p", null, "暂无历史版本", -1)])) : (_(), i("div", Ye, [O.value ? (_(), i("div", Xe, [a("div", Ze, [c(u, {
2009
+ }), o[2] ||= a("p", null, "暂无历史版本", -1)])) : (_(), i("div", $e, [O.value ? (_(), i("div", et, [a("div", tt, [c(u, {
1899
2010
  type: "success",
1900
2011
  size: "small"
1901
2012
  }, {
1902
2013
  default: D(() => [...o[3] ||= [s("当前版本", -1)]]),
1903
2014
  _: 1
1904
- }), a("span", Qe, "v" + S(O.value.version_number), 1)])])) : r("", !0), c(h, null, {
2015
+ }), a("span", nt, "v" + S(O.value.version_number), 1)])])) : r("", !0), c(h, null, {
1905
2016
  default: D(() => [(_(!0), i(e, null, b(C(f), (e) => (_(), n(d, {
1906
2017
  key: e.id,
1907
2018
  timestamp: M(e.created_at),
@@ -1912,7 +2023,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
1912
2023
  default: D(() => [a("div", {
1913
2024
  class: p(["version-item", { active: w.value?.id === e.id }]),
1914
2025
  onClick: (t) => k(e)
1915
- }, [a("span", et, "版本号:v" + S(e.version_number), 1), a("span", tt, "提交人:" + S(e.user_name || "未知用户"), 1)], 10, $e)]),
2026
+ }, [a("span", it, "版本号:v" + S(e.version_number), 1), a("span", at, "提交人:" + S(e.user_name || "未知用户"), 1)], 10, rt)]),
1916
2027
  _: 2
1917
2028
  }, 1032, [
1918
2029
  "timestamp",
@@ -1925,77 +2036,77 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
1925
2036
  }, 8, ["modelValue"]);
1926
2037
  };
1927
2038
  }
1928
- }, [["__scopeId", "data-v-87924b7c"]]), it = { class: "node-palette" }, at = { class: "palette-header" }, ot = { class: "palette-search" }, st = { class: "palette-list" }, ct = ["onDragstart"], lt = {
2039
+ }, [["__scopeId", "data-v-87924b7c"]]), ct = { class: "node-palette" }, lt = { class: "palette-header" }, ut = { class: "palette-search" }, dt = { class: "palette-list" }, ft = ["onDragstart"], pt = {
1929
2040
  key: 0,
1930
2041
  width: "24",
1931
2042
  height: "24",
1932
2043
  viewBox: "0 0 24 24"
1933
- }, ut = {
2044
+ }, mt = {
1934
2045
  key: 1,
1935
2046
  width: "24",
1936
2047
  height: "24",
1937
2048
  viewBox: "0 0 24 24"
1938
- }, dt = ["fill"], ft = {
2049
+ }, ht = ["fill"], gt = {
1939
2050
  key: 2,
1940
2051
  width: "24",
1941
2052
  height: "24",
1942
2053
  viewBox: "0 0 24 24"
1943
- }, pt = ["fill"], mt = {
2054
+ }, _t = ["fill"], vt = {
1944
2055
  key: 3,
1945
2056
  width: "24",
1946
2057
  height: "24",
1947
2058
  viewBox: "0 0 24 24"
1948
- }, ht = ["fill"], gt = ["stroke"], _t = {
2059
+ }, yt = ["fill"], bt = ["stroke"], xt = {
1949
2060
  key: 4,
1950
2061
  width: "24",
1951
2062
  height: "24",
1952
2063
  viewBox: "0 0 24 24"
1953
- }, vt = ["fill"], yt = ["fill"], bt = {
2064
+ }, St = ["fill"], Ct = ["fill"], wt = {
1954
2065
  key: 5,
1955
2066
  width: "24",
1956
2067
  height: "24",
1957
2068
  viewBox: "0 0 24 24"
1958
- }, xt = ["fill"], St = {
2069
+ }, Tt = ["fill"], Et = {
1959
2070
  key: 6,
1960
2071
  width: "24",
1961
2072
  height: "24",
1962
2073
  viewBox: "0 0 24 24"
1963
- }, Ct = ["fill"], wt = {
2074
+ }, Dt = ["fill"], Ot = {
1964
2075
  key: 7,
1965
2076
  width: "24",
1966
2077
  height: "24",
1967
2078
  viewBox: "0 0 24 24"
1968
- }, Tt = ["fill"], Et = {
2079
+ }, kt = ["fill"], At = {
1969
2080
  key: 8,
1970
2081
  width: "24",
1971
2082
  height: "24",
1972
2083
  viewBox: "0 0 24 24"
1973
- }, Dt = ["fill"], Ot = {
2084
+ }, jt = ["fill"], Mt = {
1974
2085
  key: 9,
1975
2086
  width: "24",
1976
2087
  height: "24",
1977
2088
  viewBox: "0 0 24 24"
1978
- }, kt = ["fill"], At = {
2089
+ }, Nt = ["fill"], Pt = {
1979
2090
  key: 10,
1980
2091
  width: "24",
1981
2092
  height: "24",
1982
2093
  viewBox: "0 0 24 24"
1983
- }, jt = ["fill"], Mt = ["fill"], Nt = {
2094
+ }, Ft = ["fill"], It = ["fill"], Lt = {
1984
2095
  key: 11,
1985
2096
  width: "24",
1986
2097
  height: "24",
1987
2098
  viewBox: "0 0 24 24"
1988
- }, Pt = ["fill"], Ft = ["fill"], It = {
2099
+ }, Rt = ["fill"], zt = ["fill"], Bt = {
1989
2100
  key: 12,
1990
2101
  width: "24",
1991
2102
  height: "24",
1992
2103
  viewBox: "0 0 24 24"
1993
- }, Lt = ["fill"], Rt = {
2104
+ }, Vt = ["fill"], Ht = {
1994
2105
  key: 13,
1995
2106
  width: "24",
1996
2107
  height: "24",
1997
2108
  viewBox: "0 0 24 24"
1998
- }, zt = ["fill"], Bt = { class: "palette-label" }, Vt = /*#__PURE__*/ Q({
2109
+ }, Ut = ["fill"], Wt = { class: "palette-label" }, Gt = /*#__PURE__*/ Q({
1999
2110
  __name: "NodePalette",
2000
2111
  props: {
2001
2112
  NODE_TYPES: {
@@ -2027,8 +2138,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2027
2138
  };
2028
2139
  return (t, l) => {
2029
2140
  let u = x("el-icon"), h = x("el-button"), g = x("el-dropdown-item"), v = x("el-dropdown-menu"), y = x("el-dropdown"), w = x("el-input"), T = x("el-tooltip");
2030
- return _(), i("div", it, [
2031
- a("div", at, [l[6] ||= a("h4", null, "组件库", -1), o.showTypeSelector ? (_(), n(y, {
2141
+ return _(), i("div", ct, [
2142
+ a("div", lt, [l[6] ||= a("h4", null, "组件库", -1), o.showTypeSelector ? (_(), n(y, {
2032
2143
  key: 0,
2033
2144
  trigger: "click",
2034
2145
  onCommand: l[0] ||= (e) => t.$emit("set-type", e),
@@ -2067,7 +2178,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2067
2178
  }, 8, ["disabled"])]),
2068
2179
  _: 1
2069
2180
  })) : r("", !0)]),
2070
- a("div", ot, [c(w, {
2181
+ a("div", ut, [c(w, {
2071
2182
  size: "small",
2072
2183
  modelValue: d.value,
2073
2184
  "onUpdate:modelValue": l[1] ||= (e) => d.value = e,
@@ -2075,7 +2186,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2075
2186
  clearable: "",
2076
2187
  "prefix-icon": "Search"
2077
2188
  }, null, 8, ["modelValue"])]),
2078
- a("div", st, [(_(!0), i(e, null, b(f.value, (e, t) => (_(), n(T, {
2189
+ a("div", dt, [(_(!0), i(e, null, b(f.value, (e, t) => (_(), n(T, {
2079
2190
  key: t,
2080
2191
  content: e.desc || e.label,
2081
2192
  placement: "right",
@@ -2089,7 +2200,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2089
2200
  }, [a("div", {
2090
2201
  class: "palette-icon",
2091
2202
  style: m({ background: e.color })
2092
- }, [t === "custom" ? (_(), i("svg", lt, [...l[7] ||= [
2203
+ }, [t === "custom" ? (_(), i("svg", pt, [...l[7] ||= [
2093
2204
  a("rect", {
2094
2205
  x: "3",
2095
2206
  y: "3",
@@ -2117,7 +2228,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2117
2228
  stroke: "#909399",
2118
2229
  "stroke-width": "1.5"
2119
2230
  }, null, -1)
2120
- ]])) : e.shape === "ellipse" ? (_(), i("svg", ut, [a("ellipse", {
2231
+ ]])) : e.shape === "ellipse" ? (_(), i("svg", mt, [a("ellipse", {
2121
2232
  cx: "12",
2122
2233
  cy: "12",
2123
2234
  rx: "10",
@@ -2125,22 +2236,22 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2125
2236
  fill: e.color,
2126
2237
  stroke: "#fff",
2127
2238
  "stroke-width": "1"
2128
- }, null, 8, dt)])) : e.shape === "diamond" ? (_(), i("svg", ft, [a("polygon", {
2239
+ }, null, 8, ht)])) : e.shape === "diamond" ? (_(), i("svg", gt, [a("polygon", {
2129
2240
  points: "12,2 22,12 12,22 2,12",
2130
2241
  fill: e.color,
2131
2242
  stroke: "#fff",
2132
2243
  "stroke-width": "1"
2133
- }, null, 8, pt)])) : e.shape === "person" ? (_(), i("svg", mt, [a("circle", {
2244
+ }, null, 8, _t)])) : e.shape === "person" ? (_(), i("svg", vt, [a("circle", {
2134
2245
  cx: "12",
2135
2246
  cy: "8",
2136
2247
  r: "4",
2137
2248
  fill: e.color
2138
- }, null, 8, ht), a("path", {
2249
+ }, null, 8, yt), a("path", {
2139
2250
  d: "M4 22 Q12 14 20 22",
2140
2251
  fill: "none",
2141
2252
  stroke: e.color,
2142
2253
  "stroke-width": "2"
2143
- }, null, 8, gt)])) : e.shape === "cylinder" ? (_(), i("svg", _t, [
2254
+ }, null, 8, bt)])) : e.shape === "cylinder" ? (_(), i("svg", xt, [
2144
2255
  a("ellipse", {
2145
2256
  cx: "12",
2146
2257
  cy: "7",
@@ -2149,14 +2260,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2149
2260
  fill: e.color,
2150
2261
  stroke: "#fff",
2151
2262
  "stroke-width": "0.5"
2152
- }, null, 8, vt),
2263
+ }, null, 8, St),
2153
2264
  a("rect", {
2154
2265
  x: "3",
2155
2266
  y: "7",
2156
2267
  width: "18",
2157
2268
  height: "10",
2158
2269
  fill: e.color
2159
- }, null, 8, yt),
2270
+ }, null, 8, Ct),
2160
2271
  l[8] ||= a("path", {
2161
2272
  d: "M3 7 Q3 17 12 17 Q21 17 21 7",
2162
2273
  fill: "none",
@@ -2172,12 +2283,12 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2172
2283
  stroke: "#fff",
2173
2284
  "stroke-width": "1"
2174
2285
  }, null, -1)
2175
- ])) : e.shape === "hexagon" ? (_(), i("svg", bt, [a("polygon", {
2286
+ ])) : e.shape === "hexagon" ? (_(), i("svg", wt, [a("polygon", {
2176
2287
  points: "7,2 17,2 22,12 17,22 7,22 2,12",
2177
2288
  fill: e.color,
2178
2289
  stroke: "#fff",
2179
2290
  "stroke-width": "1"
2180
- }, null, 8, xt)])) : e.shape === "timer" ? (_(), i("svg", St, [
2291
+ }, null, 8, Tt)])) : e.shape === "timer" ? (_(), i("svg", Et, [
2181
2292
  a("circle", {
2182
2293
  cx: "12",
2183
2294
  cy: "12",
@@ -2185,7 +2296,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2185
2296
  fill: e.color,
2186
2297
  stroke: "#fff",
2187
2298
  "stroke-width": "1"
2188
- }, null, 8, Ct),
2299
+ }, null, 8, Dt),
2189
2300
  l[10] ||= a("line", {
2190
2301
  x1: "12",
2191
2302
  y1: "12",
@@ -2204,7 +2315,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2204
2315
  "stroke-width": "1",
2205
2316
  "stroke-linecap": "round"
2206
2317
  }, null, -1)
2207
- ])) : e.shape === "subprocess" ? (_(), i("svg", wt, [a("rect", {
2318
+ ])) : e.shape === "subprocess" ? (_(), i("svg", Ot, [a("rect", {
2208
2319
  x: "2",
2209
2320
  y: "4",
2210
2321
  width: "20",
@@ -2213,44 +2324,44 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2213
2324
  fill: e.color,
2214
2325
  stroke: "#fff",
2215
2326
  "stroke-width": "1"
2216
- }, null, 8, Tt), l[12] ||= a("rect", {
2327
+ }, null, 8, kt), l[12] ||= a("rect", {
2217
2328
  x: "4",
2218
2329
  y: "16",
2219
2330
  width: "16",
2220
2331
  height: "2",
2221
2332
  rx: "1",
2222
2333
  fill: "rgba(255,255,255,0.4)"
2223
- }, null, -1)])) : e.shape === "document" ? (_(), i("svg", Et, [a("path", {
2334
+ }, null, -1)])) : e.shape === "document" ? (_(), i("svg", At, [a("path", {
2224
2335
  d: "M4 2 H20 V16 Q15 13 12 16 Q9 19 4 16 Z",
2225
2336
  fill: e.color,
2226
2337
  stroke: "#fff",
2227
2338
  "stroke-width": "1"
2228
- }, null, 8, Dt)])) : e.shape === "parallelogram" ? (_(), i("svg", Ot, [a("polygon", {
2339
+ }, null, 8, jt)])) : e.shape === "parallelogram" ? (_(), i("svg", Mt, [a("polygon", {
2229
2340
  points: "5,4 22,4 19,20 2,20",
2230
2341
  fill: e.color,
2231
2342
  stroke: "#fff",
2232
2343
  "stroke-width": "1"
2233
- }, null, 8, kt)])) : e.shape === "folder" ? (_(), i("svg", At, [a("path", {
2344
+ }, null, 8, Nt)])) : e.shape === "folder" ? (_(), i("svg", Pt, [a("path", {
2234
2345
  d: "M2 8 H22 V21 H2 Z",
2235
2346
  fill: e.color,
2236
2347
  stroke: "#fff",
2237
2348
  "stroke-width": "0.5"
2238
- }, null, 8, jt), a("path", {
2349
+ }, null, 8, Ft), a("path", {
2239
2350
  d: "M2 8 V5 H9 L11 8",
2240
2351
  fill: e.color,
2241
2352
  stroke: "#fff",
2242
2353
  "stroke-width": "1"
2243
- }, null, 8, Mt)])) : e.shape === "note" ? (_(), i("svg", Nt, [a("path", {
2354
+ }, null, 8, It)])) : e.shape === "note" ? (_(), i("svg", Lt, [a("path", {
2244
2355
  d: "M2 2 H22 V18 L18 22 H2 Z",
2245
2356
  fill: e.color,
2246
2357
  stroke: "#fff",
2247
2358
  "stroke-width": "0.5"
2248
- }, null, 8, Pt), a("path", {
2359
+ }, null, 8, Rt), a("path", {
2249
2360
  d: "M18 18 V22 L22 18",
2250
2361
  fill: e.color,
2251
2362
  stroke: "#fff",
2252
2363
  "stroke-width": "0.5"
2253
- }, null, 8, Ft)])) : e.shape === "rounded闪电" ? (_(), i("svg", It, [a("rect", {
2364
+ }, null, 8, zt)])) : e.shape === "rounded闪电" ? (_(), i("svg", Bt, [a("rect", {
2254
2365
  x: "2",
2255
2366
  y: "6",
2256
2367
  width: "20",
@@ -2259,11 +2370,11 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2259
2370
  fill: e.color,
2260
2371
  stroke: "#fff",
2261
2372
  "stroke-width": "1"
2262
- }, null, 8, Lt), l[13] ||= a("path", {
2373
+ }, null, 8, Vt), l[13] ||= a("path", {
2263
2374
  d: "M14 8 L10 12 H13 L11 16 L15 12 H12 Z",
2264
2375
  fill: "#fff",
2265
2376
  opacity: "0.9"
2266
- }, null, -1)])) : (_(), i("svg", Rt, [a("rect", {
2377
+ }, null, -1)])) : (_(), i("svg", Ht, [a("rect", {
2267
2378
  x: "2",
2268
2379
  y: "4",
2269
2380
  width: "20",
@@ -2272,19 +2383,22 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2272
2383
  fill: e.color,
2273
2384
  stroke: "#fff",
2274
2385
  "stroke-width": "1"
2275
- }, null, 8, zt)]))], 4), a("span", Bt, S(e.label), 1)], 40, ct)]),
2386
+ }, null, 8, Ut)]))], 4), a("span", Wt, S(e.label), 1)], 40, ft)]),
2276
2387
  _: 2
2277
2388
  }, 1032, ["content"]))), 128))])
2278
2389
  ]);
2279
2390
  };
2280
2391
  }
2281
- }, [["__scopeId", "data-v-ccb25fe4"]]), Ht = { class: "process-toolbar" }, Ut = {
2392
+ }, [["__scopeId", "data-v-ccb25fe4"]]), Kt = { class: "process-toolbar" }, qt = {
2282
2393
  key: 0,
2283
2394
  class: "toolbar-group"
2284
- }, Wt = {
2395
+ }, Jt = {
2285
2396
  key: 1,
2286
2397
  class: "toolbar-group"
2287
- }, Gt = { class: "toolbar-group" }, Kt = { class: "toolbar-group" }, qt = { class: "toolbar-group" }, Jt = { class: "toolbar-group" }, Yt = { class: "toolbar-group" }, Xt = { class: "toolbar-group" }, Zt = /*#__PURE__*/ Q({
2398
+ }, Yt = {
2399
+ key: 2,
2400
+ class: "toolbar-group"
2401
+ }, Xt = { class: "toolbar-group" }, Zt = { class: "toolbar-group" }, Qt = { class: "toolbar-group" }, $t = { class: "toolbar-group" }, en = { class: "toolbar-group" }, tn = /*#__PURE__*/ Q({
2288
2402
  __name: "ProcessToolbar",
2289
2403
  props: {
2290
2404
  animationPlaying: {
@@ -2318,6 +2432,10 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2318
2432
  showTemplateSelector: {
2319
2433
  type: Boolean,
2320
2434
  default: !0
2435
+ },
2436
+ showSwimlaneSelector: {
2437
+ type: Boolean,
2438
+ default: !0
2321
2439
  }
2322
2440
  },
2323
2441
  emits: [
@@ -2348,8 +2466,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2348
2466
  };
2349
2467
  return (t, o) => {
2350
2468
  let h = x("ArrowDown"), g = x("el-icon"), v = x("el-button"), y = x("el-dropdown-item"), b = x("el-dropdown-menu"), w = x("el-dropdown"), T = x("RefreshLeft"), E = x("RefreshRight"), O = x("Grid"), k = x("el-option"), A = x("el-select"), j = x("Delete"), M = x("Check"), N = x("Clock"), P = x("el-input"), F = x("el-dialog");
2351
- return _(), i("div", Ht, [
2352
- e.showTemplateSelector ? (_(), i("div", Ut, [c(w, {
2469
+ return _(), i("div", Kt, [
2470
+ e.showTemplateSelector ? (_(), i("div", qt, [c(w, {
2353
2471
  trigger: "click",
2354
2472
  onCommand: o[0] ||= (e) => t.$emit("set-template", e),
2355
2473
  size: "small"
@@ -2395,14 +2513,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2395
2513
  }, 8, ["disabled"])]),
2396
2514
  _: 1
2397
2515
  })])) : r("", !0),
2398
- e.isJoinedCollab ? r("", !0) : (_(), i("div", Wt, [c(v, {
2516
+ e.isJoinedCollab ? r("", !0) : (_(), i("div", Jt, [c(v, {
2399
2517
  size: "small",
2400
2518
  type: e.isCollaborating ? "success" : "default",
2401
2519
  onClick: o[1] ||= (n) => e.isCollaborating ? t.$emit("stop-collab") : t.$emit("start-collab"),
2402
2520
  title: "协作"
2403
2521
  }, {
2404
2522
  default: D(() => [c(g, null, {
2405
- default: D(() => [c(C(Y))]),
2523
+ default: D(() => [c(C(ne))]),
2406
2524
  _: 1
2407
2525
  }), a("span", null, S(e.isCollaborating ? "协作中" : "协作"), 1)]),
2408
2526
  _: 1
@@ -2414,12 +2532,12 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2414
2532
  title: "分享链接"
2415
2533
  }, {
2416
2534
  default: D(() => [c(g, null, {
2417
- default: D(() => [c(C(W))]),
2535
+ default: D(() => [c(C(ee))]),
2418
2536
  _: 1
2419
2537
  })]),
2420
2538
  _: 1
2421
2539
  })) : r("", !0)])),
2422
- a("div", Gt, [c(w, {
2540
+ e.showSwimlaneSelector ? (_(), i("div", Yt, [c(w, {
2423
2541
  trigger: "click",
2424
2542
  onCommand: p
2425
2543
  }, {
@@ -2441,8 +2559,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2441
2559
  _: 1
2442
2560
  })]),
2443
2561
  _: 1
2444
- })]),
2445
- a("div", Kt, [c(v, {
2562
+ })])) : r("", !0),
2563
+ a("div", Xt, [c(v, {
2446
2564
  size: "small",
2447
2565
  circle: "",
2448
2566
  onClick: o[3] ||= (e) => t.$emit("undo"),
@@ -2467,7 +2585,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2467
2585
  })]),
2468
2586
  _: 1
2469
2587
  }, 8, ["disabled"])]),
2470
- a("div", qt, [
2588
+ a("div", Zt, [
2471
2589
  c(v, {
2472
2590
  size: "small",
2473
2591
  onClick: o[5] ||= (e) => t.$emit("auto-layout"),
@@ -2511,7 +2629,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2511
2629
  _: 1
2512
2630
  }, 8, ["modelValue"])
2513
2631
  ]),
2514
- a("div", Jt, [c(w, {
2632
+ a("div", Qt, [c(w, {
2515
2633
  trigger: "click",
2516
2634
  onCommand: m
2517
2635
  }, {
@@ -2556,7 +2674,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2556
2674
  default: D(() => [...o[33] ||= [s(" 导入 ", -1)]]),
2557
2675
  _: 1
2558
2676
  }, 8, ["disabled"])]),
2559
- a("div", Yt, [c(v, {
2677
+ a("div", $t, [c(v, {
2560
2678
  size: "small",
2561
2679
  onClick: o[10] ||= (e) => t.$emit("clear"),
2562
2680
  disabled: e.disabled,
@@ -2583,7 +2701,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2583
2701
  _: 1
2584
2702
  })]),
2585
2703
  o[38] ||= a("div", { class: "toolbar-spacer" }, null, -1),
2586
- a("div", Xt, [c(v, {
2704
+ a("div", en, [c(v, {
2587
2705
  size: "small",
2588
2706
  type: "primary",
2589
2707
  onClick: o[12] ||= (e) => t.$emit("save")
@@ -2641,16 +2759,16 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2641
2759
  ]);
2642
2760
  };
2643
2761
  }
2644
- }, [["__scopeId", "data-v-e290baee"]]), Qt = ["transform"], $t = { key: 0 }, en = ["id"], tn = ["offset", "stop-color"], nn = [
2762
+ }, [["__scopeId", "data-v-655606b2"]]), nn = ["transform"], rn = { key: 0 }, an = ["id"], on = ["offset", "stop-color"], sn = [
2645
2763
  "width",
2646
2764
  "height",
2647
2765
  "rx"
2648
- ], rn = [
2766
+ ], cn = [
2649
2767
  "width",
2650
2768
  "height",
2651
2769
  "rx",
2652
2770
  "stroke"
2653
- ], an = [
2771
+ ], ln = [
2654
2772
  "width",
2655
2773
  "height",
2656
2774
  "rx",
@@ -2658,19 +2776,19 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2658
2776
  "stroke-width",
2659
2777
  "stroke-dasharray",
2660
2778
  "filter"
2661
- ], on = [
2779
+ ], un = [
2662
2780
  "x1",
2663
2781
  "y1",
2664
2782
  "x2",
2665
2783
  "y2",
2666
2784
  "stroke"
2667
- ], sn = [
2785
+ ], dn = [
2668
2786
  "x1",
2669
2787
  "y1",
2670
2788
  "x2",
2671
2789
  "y2",
2672
2790
  "stroke"
2673
- ], cn = [
2791
+ ], fn = [
2674
2792
  "width",
2675
2793
  "height",
2676
2794
  "rx",
@@ -2678,11 +2796,11 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2678
2796
  "stroke",
2679
2797
  "stroke-width",
2680
2798
  "filter"
2681
- ], ln = [
2799
+ ], pn = [
2682
2800
  "href",
2683
2801
  "width",
2684
2802
  "height"
2685
- ], un = [
2803
+ ], mn = [
2686
2804
  "cx",
2687
2805
  "cy",
2688
2806
  "rx",
@@ -2691,41 +2809,41 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2691
2809
  "stroke",
2692
2810
  "stroke-width",
2693
2811
  "filter"
2694
- ], dn = [
2812
+ ], hn = [
2695
2813
  "points",
2696
2814
  "fill",
2697
2815
  "stroke",
2698
2816
  "stroke-width",
2699
2817
  "filter"
2700
- ], fn = { key: 10 }, pn = [
2818
+ ], gn = { key: 10 }, _n = [
2701
2819
  "cx",
2702
2820
  "fill",
2703
2821
  "stroke",
2704
2822
  "stroke-width",
2705
2823
  "filter"
2706
- ], mn = ["d", "stroke"], hn = [
2824
+ ], vn = ["d", "stroke"], yn = [
2707
2825
  "x1",
2708
2826
  "x2",
2709
2827
  "stroke"
2710
- ], gn = [
2828
+ ], bn = [
2711
2829
  "x1",
2712
2830
  "x2",
2713
2831
  "stroke"
2714
- ], _n = [
2832
+ ], xn = [
2715
2833
  "x1",
2716
2834
  "x2",
2717
2835
  "stroke"
2718
- ], vn = [
2836
+ ], Sn = [
2719
2837
  "x1",
2720
2838
  "x2",
2721
2839
  "y2",
2722
2840
  "stroke"
2723
- ], yn = [
2841
+ ], Cn = [
2724
2842
  "x1",
2725
2843
  "x2",
2726
2844
  "y2",
2727
2845
  "stroke"
2728
- ], bn = { key: 11 }, xn = [
2846
+ ], wn = { key: 11 }, Tn = [
2729
2847
  "width",
2730
2848
  "height",
2731
2849
  "rx",
@@ -2733,47 +2851,47 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2733
2851
  "stroke",
2734
2852
  "stroke-width",
2735
2853
  "filter"
2736
- ], Sn = ["y", "width"], Cn = { key: 12 }, wn = [
2854
+ ], En = ["y", "width"], Dn = { key: 12 }, On = [
2737
2855
  "d",
2738
2856
  "fill",
2739
2857
  "stroke",
2740
2858
  "stroke-width",
2741
2859
  "filter"
2742
- ], Tn = { key: 13 }, En = [
2860
+ ], kn = { key: 13 }, An = [
2743
2861
  "points",
2744
2862
  "fill",
2745
2863
  "stroke",
2746
2864
  "stroke-width",
2747
2865
  "filter"
2748
- ], Dn = { key: 14 }, On = [
2866
+ ], jn = { key: 14 }, Mn = [
2749
2867
  "d",
2750
2868
  "fill",
2751
2869
  "stroke",
2752
2870
  "stroke-width",
2753
2871
  "filter"
2754
- ], kn = [
2872
+ ], Nn = [
2755
2873
  "d",
2756
2874
  "fill",
2757
2875
  "stroke",
2758
2876
  "stroke-width"
2759
- ], An = { key: 15 }, jn = [
2877
+ ], Pn = { key: 15 }, Fn = [
2760
2878
  "d",
2761
2879
  "fill",
2762
2880
  "stroke",
2763
2881
  "stroke-width",
2764
2882
  "filter"
2765
- ], Mn = [
2883
+ ], In = [
2766
2884
  "d",
2767
2885
  "fill",
2768
2886
  "stroke",
2769
2887
  "stroke-width"
2770
- ], Nn = { key: 16 }, Pn = [
2888
+ ], Ln = { key: 16 }, Rn = [
2771
2889
  "d",
2772
2890
  "fill",
2773
2891
  "stroke",
2774
2892
  "stroke-width",
2775
2893
  "filter"
2776
- ], Fn = [
2894
+ ], zn = [
2777
2895
  "cx",
2778
2896
  "cy",
2779
2897
  "rx",
@@ -2781,18 +2899,18 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2781
2899
  "fill",
2782
2900
  "stroke",
2783
2901
  "stroke-width"
2784
- ], In = [
2902
+ ], Bn = [
2785
2903
  "cx",
2786
2904
  "cy",
2787
2905
  "rx",
2788
2906
  "ry"
2789
- ], Ln = { key: 17 }, Rn = [
2907
+ ], Vn = { key: 17 }, Hn = [
2790
2908
  "points",
2791
2909
  "fill",
2792
2910
  "stroke",
2793
2911
  "stroke-width",
2794
2912
  "filter"
2795
- ], zn = { key: 18 }, Bn = [
2913
+ ], Un = { key: 18 }, Wn = [
2796
2914
  "cx",
2797
2915
  "cy",
2798
2916
  "r",
@@ -2800,21 +2918,21 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2800
2918
  "stroke",
2801
2919
  "stroke-width",
2802
2920
  "filter"
2803
- ], Vn = [
2921
+ ], Gn = [
2804
2922
  "cx",
2805
2923
  "cy",
2806
2924
  "r"
2807
- ], Hn = [
2925
+ ], Kn = [
2808
2926
  "x1",
2809
2927
  "y1",
2810
2928
  "x2",
2811
2929
  "y2"
2812
- ], Un = [
2930
+ ], qn = [
2813
2931
  "x1",
2814
2932
  "y1",
2815
2933
  "x2",
2816
2934
  "y2"
2817
- ], Wn = ["cx", "cy"], Gn = { key: 19 }, Kn = [
2935
+ ], Jn = ["cx", "cy"], Yn = { key: 19 }, Xn = [
2818
2936
  "width",
2819
2937
  "height",
2820
2938
  "rx",
@@ -2822,7 +2940,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2822
2940
  "stroke",
2823
2941
  "stroke-width",
2824
2942
  "filter"
2825
- ], qn = ["d"], Jn = [
2943
+ ], Zn = ["d"], Qn = [
2826
2944
  "width",
2827
2945
  "height",
2828
2946
  "rx",
@@ -2830,22 +2948,22 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2830
2948
  "stroke",
2831
2949
  "stroke-width",
2832
2950
  "filter"
2833
- ], Yn = [
2951
+ ], $n = [
2834
2952
  "width",
2835
2953
  "height",
2836
2954
  "rx",
2837
2955
  "stroke"
2838
- ], Xn = [
2956
+ ], er = [
2839
2957
  "width",
2840
2958
  "height",
2841
2959
  "rx",
2842
2960
  "stroke"
2843
- ], Zn = [
2961
+ ], tr = [
2844
2962
  "width",
2845
2963
  "height",
2846
2964
  "rx",
2847
2965
  "stroke"
2848
- ], Qn = [
2966
+ ], nr = [
2849
2967
  "x",
2850
2968
  "y",
2851
2969
  "text-anchor",
@@ -2853,14 +2971,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2853
2971
  "fill",
2854
2972
  "font-size",
2855
2973
  "transform"
2856
- ], $n = {
2974
+ ], rr = {
2857
2975
  key: 0,
2858
2976
  class: "resize-handles"
2859
- }, er = [
2977
+ }, ir = [
2860
2978
  "x",
2861
2979
  "y",
2862
2980
  "onMousedown"
2863
- ], tr = ["cx", "cy"], nr = ["cx", "cy"], rr = /*#__PURE__*/ Q({
2981
+ ], ar = ["cx", "cy"], or = ["cx", "cy"], sr = /*#__PURE__*/ Q({
2864
2982
  __name: "DiagramNode",
2865
2983
  props: {
2866
2984
  node: {
@@ -3130,8 +3248,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3130
3248
  }
3131
3249
  return n;
3132
3250
  }), B = t(() => c.animationPlaying ? { animation: `glowPulseRingOverlay ${c.node.animationDuration || C.value.animation.defaultDuration || 2}s ease-in-out ${c.node.animationDelay || 0}s infinite` } : { display: "none" }), V = t(() => c.animationPlaying ? { animation: `breathingAnimation ${c.node.animationDuration || C.value.animation.defaultDuration || 2}s ease-in-out ${c.node.animationDelay || 0}s infinite` } : { display: "none" }), H = t(() => !c.animationPlaying || c.node.animation !== "ripple" ? { display: "none" } : { animation: `nodeRippleOverlay ${c.node.animationDuration || C.value.animation.defaultDuration || 2}s ease-out ${c.node.animationDelay || 0}s infinite` }), U = () => {
3133
- v &&= (v(), null), G(), u.value = null;
3134
- }, W = (e) => {
3251
+ v &&= (v(), null), W(), u.value = null;
3252
+ }, ee = (e) => {
3135
3253
  if (c.node.locked || e.button !== 0) return;
3136
3254
  if (c.connectMode) {
3137
3255
  l("start-connect", c.node.id);
@@ -3146,28 +3264,28 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3146
3264
  let t = (e) => {
3147
3265
  if (!u.value) return;
3148
3266
  let t = e.clientX - u.value.x, n = e.clientY - u.value.y;
3149
- (Math.abs(t) > 3 || Math.abs(n) > 3) && (h = !0, G()), l("drag", c.node.id, t, n), u.value = {
3267
+ (Math.abs(t) > 3 || Math.abs(n) > 3) && (h = !0, W()), l("drag", c.node.id, t, n), u.value = {
3150
3268
  x: e.clientX,
3151
3269
  y: e.clientY
3152
3270
  };
3153
3271
  }, n = () => {
3154
- G(), u.value = null, window.removeEventListener("mousemove", t), window.removeEventListener("mouseup", n), v = null, l("drag-end", c.node.id);
3272
+ W(), u.value = null, window.removeEventListener("mousemove", t), window.removeEventListener("mouseup", n), v = null, l("drag-end", c.node.id);
3155
3273
  };
3156
3274
  v = () => {
3157
3275
  window.removeEventListener("mousemove", t), window.removeEventListener("mouseup", n), v = null;
3158
3276
  }, window.addEventListener("mousemove", t), window.addEventListener("mouseup", n);
3159
- }, G = () => {
3277
+ }, W = () => {
3160
3278
  d.value = !1, f &&= (clearTimeout(f), null);
3279
+ }, G = () => {
3280
+ d.value = !1, W();
3161
3281
  }, K = () => {
3162
- d.value = !1, G();
3163
- }, ee = () => {
3164
3282
  (c.connectMode || c.autoConnectMode) && l("end-connect", h ? null : c.node.id);
3165
- }, q = () => {
3166
- l("select", c.node.id);
3167
3283
  }, te = () => {
3284
+ l("select", c.node.id);
3285
+ }, q = () => {
3168
3286
  g &&= (g(), null);
3169
3287
  }, J = (e, t) => {
3170
- te();
3288
+ q();
3171
3289
  let n = t.clientX, r = t.clientY, i = c.node.width, a = c.node.height, o = (t) => {
3172
3290
  let o = t.clientX - n, s = t.clientY - r, u = Math.max(60, i + o * e.dx), d = Math.max(30, a + s * e.dy);
3173
3291
  l("resize", c.node.id, u, d);
@@ -3179,8 +3297,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3179
3297
  }, window.addEventListener("mousemove", o), window.addEventListener("mouseup", s);
3180
3298
  };
3181
3299
  return E(() => c.selected, (e) => {
3182
- e || (te(), U());
3183
- }), o({ clearAutoConnect: K }), (t, o) => (_(), i("g", {
3300
+ e || (q(), U());
3301
+ }), o({ clearAutoConnect: G }), (t, o) => (_(), i("g", {
3184
3302
  class: p(["diagram-node", {
3185
3303
  selected: n.selected,
3186
3304
  locked: n.node.locked
@@ -3190,9 +3308,9 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3190
3308
  opacity: n.node.visible ? 1 : .3,
3191
3309
  cursor: n.connectMode || n.autoConnectMode ? "crosshair" : "move"
3192
3310
  }),
3193
- onMousedown: A(W, ["stop"]),
3194
- onMouseup: A(ee, ["stop"]),
3195
- onClick: A(q, ["stop"]),
3311
+ onMousedown: A(ee, ["stop"]),
3312
+ onMouseup: A(K, ["stop"]),
3313
+ onClick: A(te, ["stop"]),
3196
3314
  onDblclick: o[0] ||= (e) => t.$emit("select", n.node.id),
3197
3315
  onContextmenu: o[1] ||= A((e) => t.$emit("reset-state"), ["prevent"]),
3198
3316
  onMouseenter: o[2] ||= (e) => t.$emit("hover-remark", {
@@ -3210,7 +3328,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3210
3328
  class: p(["node-shape", `anim-${n.node.animation}`]),
3211
3329
  style: m(z.value)
3212
3330
  }, [
3213
- T.value.type === "gradient" ? (_(), i("defs", $t, [a("linearGradient", {
3331
+ T.value.type === "gradient" ? (_(), i("defs", rn, [a("linearGradient", {
3214
3332
  id: `grad-${n.node.id}`,
3215
3333
  x1: "0%",
3216
3334
  y1: "0%",
@@ -3220,7 +3338,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3220
3338
  key: t,
3221
3339
  offset: `${t / (T.value.colors.length - 1) * 100}%`,
3222
3340
  "stop-color": e
3223
- }, null, 8, tn))), 128))], 8, en)])) : r("", !0),
3341
+ }, null, 8, on))), 128))], 8, an)])) : r("", !0),
3224
3342
  C.value.nodeStyle.glassHighlight ? (_(), i(e, { key: 1 }, [n.node.shape === "rect" ? (_(), i("rect", {
3225
3343
  key: 0,
3226
3344
  width: n.node.width,
@@ -3228,7 +3346,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3228
3346
  rx: C.value.nodeStyle.borderRadius,
3229
3347
  fill: "rgba(255,255,255,0.15)",
3230
3348
  style: { "pointer-events": "none" }
3231
- }, null, 8, nn)) : r("", !0)], 64)) : r("", !0),
3349
+ }, null, 8, sn)) : r("", !0)], 64)) : r("", !0),
3232
3350
  C.value.nodeStyle.glowEffect && n.selected ? (_(), i(e, { key: 2 }, [n.node.shape === "rect" ? (_(), i("rect", {
3233
3351
  key: 0,
3234
3352
  x: -4,
@@ -3241,7 +3359,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3241
3359
  "stroke-width": 3,
3242
3360
  filter: "url(#neon-glow-strong)",
3243
3361
  class: "glow-rect"
3244
- }, null, 8, rn)) : r("", !0)], 64)) : r("", !0),
3362
+ }, null, 8, cn)) : r("", !0)], 64)) : r("", !0),
3245
3363
  n.node.type === "custom" && (n.selected || n.node.strokeWidth > 0) ? (_(), i("rect", {
3246
3364
  key: 3,
3247
3365
  width: n.node.width,
@@ -3252,7 +3370,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3252
3370
  "stroke-width": n.selected ? 3 : n.node.strokeWidth,
3253
3371
  "stroke-dasharray": n.node.strokeWidth > 0 ? "8,4" : "none",
3254
3372
  filter: `url(#${P.value})`
3255
- }, null, 8, an)) : r("", !0),
3373
+ }, null, 8, ln)) : r("", !0),
3256
3374
  n.node.type === "custom" && (n.selected || n.node.strokeWidth > 0) ? (_(), i("line", {
3257
3375
  key: 4,
3258
3376
  x1: n.node.width / 2,
@@ -3261,7 +3379,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3261
3379
  y2: n.node.height * .7,
3262
3380
  stroke: n.selected ? "#409eff" : "#909399",
3263
3381
  "stroke-width": "2"
3264
- }, null, 8, on)) : r("", !0),
3382
+ }, null, 8, un)) : r("", !0),
3265
3383
  n.node.type === "custom" && (n.selected || n.node.strokeWidth > 0) ? (_(), i("line", {
3266
3384
  key: 5,
3267
3385
  x1: n.node.width * .3,
@@ -3270,7 +3388,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3270
3388
  y2: n.node.height / 2,
3271
3389
  stroke: n.selected ? "#409eff" : "#909399",
3272
3390
  "stroke-width": "2"
3273
- }, null, 8, sn)) : n.node.shape === "rect" ? (_(), i("rect", {
3391
+ }, null, 8, dn)) : n.node.shape === "rect" ? (_(), i("rect", {
3274
3392
  key: 6,
3275
3393
  width: n.node.width,
3276
3394
  height: n.node.height,
@@ -3279,7 +3397,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3279
3397
  stroke: M.value.color,
3280
3398
  "stroke-width": n.selected ? 3 : M.value.width,
3281
3399
  filter: `url(#${P.value})`
3282
- }, null, 8, cn)) : r("", !0),
3400
+ }, null, 8, fn)) : r("", !0),
3283
3401
  n.node.type === "custom" && n.node.image ? (_(), i("image", {
3284
3402
  key: 7,
3285
3403
  href: n.node.image,
@@ -3287,7 +3405,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3287
3405
  height: n.node.height,
3288
3406
  preserveAspectRatio: "none",
3289
3407
  style: { "pointer-events": "none" }
3290
- }, null, 8, ln)) : n.node.shape === "ellipse" ? (_(), i("ellipse", {
3408
+ }, null, 8, pn)) : n.node.shape === "ellipse" ? (_(), i("ellipse", {
3291
3409
  key: 8,
3292
3410
  cx: n.node.width / 2,
3293
3411
  cy: n.node.height / 2,
@@ -3297,14 +3415,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3297
3415
  stroke: M.value.color,
3298
3416
  "stroke-width": n.selected ? 3 : M.value.width,
3299
3417
  filter: `url(#${P.value})`
3300
- }, null, 8, un)) : n.node.shape === "diamond" ? (_(), i("polygon", {
3418
+ }, null, 8, mn)) : n.node.shape === "diamond" ? (_(), i("polygon", {
3301
3419
  key: 9,
3302
3420
  points: I.value,
3303
3421
  fill: j.value,
3304
3422
  stroke: M.value.color,
3305
3423
  "stroke-width": n.selected ? 3 : M.value.width,
3306
3424
  filter: `url(#${P.value})`
3307
- }, null, 8, dn)) : n.node.shape === "person" ? (_(), i("g", fn, [
3425
+ }, null, 8, hn)) : n.node.shape === "person" ? (_(), i("g", gn, [
3308
3426
  a("ellipse", {
3309
3427
  cx: n.node.width / 2,
3310
3428
  cy: 18,
@@ -3314,14 +3432,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3314
3432
  stroke: M.value.color,
3315
3433
  "stroke-width": n.selected ? 3 : M.value.width,
3316
3434
  filter: `url(#${P.value})`
3317
- }, null, 8, pn),
3435
+ }, null, 8, _n),
3318
3436
  a("path", {
3319
3437
  d: `M ${n.node.width / 2 - 18} 70 Q ${n.node.width / 2} 45 ${n.node.width / 2 + 18} 70`,
3320
3438
  fill: "none",
3321
3439
  stroke: M.value.color,
3322
3440
  "stroke-width": "5",
3323
3441
  "stroke-linecap": "round"
3324
- }, null, 8, mn),
3442
+ }, null, 8, vn),
3325
3443
  a("line", {
3326
3444
  x1: n.node.width / 2,
3327
3445
  y1: 32,
@@ -3330,7 +3448,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3330
3448
  stroke: M.value.color,
3331
3449
  "stroke-width": "5",
3332
3450
  "stroke-linecap": "round"
3333
- }, null, 8, hn),
3451
+ }, null, 8, yn),
3334
3452
  a("line", {
3335
3453
  x1: n.node.width / 2,
3336
3454
  y1: 38,
@@ -3339,7 +3457,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3339
3457
  stroke: M.value.color,
3340
3458
  "stroke-width": "4",
3341
3459
  "stroke-linecap": "round"
3342
- }, null, 8, gn),
3460
+ }, null, 8, bn),
3343
3461
  a("line", {
3344
3462
  x1: n.node.width / 2,
3345
3463
  y1: 38,
@@ -3348,7 +3466,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3348
3466
  stroke: M.value.color,
3349
3467
  "stroke-width": "4",
3350
3468
  "stroke-linecap": "round"
3351
- }, null, 8, _n),
3469
+ }, null, 8, xn),
3352
3470
  a("line", {
3353
3471
  x1: n.node.width / 2,
3354
3472
  y1: 70,
@@ -3357,7 +3475,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3357
3475
  stroke: M.value.color,
3358
3476
  "stroke-width": "4",
3359
3477
  "stroke-linecap": "round"
3360
- }, null, 8, vn),
3478
+ }, null, 8, Sn),
3361
3479
  a("line", {
3362
3480
  x1: n.node.width / 2,
3363
3481
  y1: 70,
@@ -3366,8 +3484,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3366
3484
  stroke: M.value.color,
3367
3485
  "stroke-width": "4",
3368
3486
  "stroke-linecap": "round"
3369
- }, null, 8, yn)
3370
- ])) : n.node.shape === "subprocess" ? (_(), i("g", bn, [a("rect", {
3487
+ }, null, 8, Cn)
3488
+ ])) : n.node.shape === "subprocess" ? (_(), i("g", wn, [a("rect", {
3371
3489
  width: n.node.width,
3372
3490
  height: n.node.height,
3373
3491
  rx: C.value.nodeStyle.borderRadius,
@@ -3375,48 +3493,48 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3375
3493
  stroke: M.value.color,
3376
3494
  "stroke-width": n.selected ? 3 : M.value.width,
3377
3495
  filter: `url(#${P.value})`
3378
- }, null, 8, xn), a("rect", {
3496
+ }, null, 8, Tn), a("rect", {
3379
3497
  x: 4,
3380
3498
  y: n.node.height - 14,
3381
3499
  width: n.node.width - 8,
3382
3500
  height: "10",
3383
3501
  rx: "2",
3384
3502
  fill: "rgba(255,255,255,0.3)"
3385
- }, null, 8, Sn)])) : n.node.shape === "document" ? (_(), i("g", Cn, [a("path", {
3503
+ }, null, 8, En)])) : n.node.shape === "document" ? (_(), i("g", Dn, [a("path", {
3386
3504
  d: `M 0 0 H ${n.node.width} V ${n.node.height * .8} Q ${n.node.width * .75} ${n.node.height * .65} ${n.node.width * .5} ${n.node.height * .8} Q ${n.node.width * .25} ${n.node.height * .95} 0 ${n.node.height * .8} Z`,
3387
3505
  fill: j.value,
3388
3506
  stroke: M.value.color,
3389
3507
  "stroke-width": n.selected ? 3 : M.value.width,
3390
3508
  filter: `url(#${P.value})`
3391
- }, null, 8, wn)])) : n.node.shape === "parallelogram" ? (_(), i("g", Tn, [a("polygon", {
3509
+ }, null, 8, On)])) : n.node.shape === "parallelogram" ? (_(), i("g", kn, [a("polygon", {
3392
3510
  points: `${n.node.width * .15} 0, ${n.node.width} 0, ${n.node.width * .85} ${n.node.height}, 0 ${n.node.height}`,
3393
3511
  fill: j.value,
3394
3512
  stroke: M.value.color,
3395
3513
  "stroke-width": n.selected ? 3 : M.value.width,
3396
3514
  filter: `url(#${P.value})`
3397
- }, null, 8, En)])) : n.node.shape === "folder" ? (_(), i("g", Dn, [a("path", {
3515
+ }, null, 8, An)])) : n.node.shape === "folder" ? (_(), i("g", jn, [a("path", {
3398
3516
  d: `M 0 12 H ${n.node.width} V ${n.node.height} H 0 Z`,
3399
3517
  fill: j.value,
3400
3518
  stroke: M.value.color,
3401
3519
  "stroke-width": n.selected ? 3 : M.value.width,
3402
3520
  filter: `url(#${P.value})`
3403
- }, null, 8, On), a("path", {
3521
+ }, null, 8, Mn), a("path", {
3404
3522
  d: `M 0 12 V 0 H ${n.node.width * .35} L ${n.node.width * .45} 12`,
3405
3523
  fill: j.value,
3406
3524
  stroke: M.value.color,
3407
3525
  "stroke-width": n.selected ? 3 : M.value.width
3408
- }, null, 8, kn)])) : n.node.shape === "note" ? (_(), i("g", An, [a("path", {
3526
+ }, null, 8, Nn)])) : n.node.shape === "note" ? (_(), i("g", Pn, [a("path", {
3409
3527
  d: `M 0 0 H ${n.node.width} V ${n.node.height - 15} L ${n.node.width - 15} ${n.node.height} H 0 Z`,
3410
3528
  fill: j.value,
3411
3529
  stroke: M.value.color,
3412
3530
  "stroke-width": n.selected ? 3 : M.value.width,
3413
3531
  filter: `url(#${P.value})`
3414
- }, null, 8, jn), a("path", {
3532
+ }, null, 8, Fn), a("path", {
3415
3533
  d: `M ${n.node.width - 15} ${n.node.height - 15} V ${n.node.height} L ${n.node.width} ${n.node.height - 15}`,
3416
3534
  fill: j.value,
3417
3535
  stroke: M.value.color,
3418
3536
  "stroke-width": n.selected ? 3 : M.value.width
3419
- }, null, 8, Mn)])) : n.node.shape === "cylinder" ? (_(), i("g", Nn, [
3537
+ }, null, 8, In)])) : n.node.shape === "cylinder" ? (_(), i("g", Ln, [
3420
3538
  a("path", {
3421
3539
  d: `M 0 ${n.node.height * .15}
3422
3540
  Q 0 ${n.node.height * .05} ${n.node.width * .1} ${n.node.height * .02}
@@ -3430,7 +3548,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3430
3548
  stroke: M.value.color,
3431
3549
  "stroke-width": n.selected ? 3 : M.value.width,
3432
3550
  filter: `url(#${P.value})`
3433
- }, null, 8, Pn),
3551
+ }, null, 8, Rn),
3434
3552
  a("ellipse", {
3435
3553
  cx: n.node.width / 2,
3436
3554
  cy: n.node.height * .15,
@@ -3439,7 +3557,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3439
3557
  fill: j.value,
3440
3558
  stroke: M.value.color,
3441
3559
  "stroke-width": n.selected ? 3 : M.value.width
3442
- }, null, 8, Fn),
3560
+ }, null, 8, zn),
3443
3561
  a("ellipse", {
3444
3562
  cx: n.node.width / 2,
3445
3563
  cy: n.node.height * .15,
@@ -3447,14 +3565,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3447
3565
  ry: n.node.height * .08,
3448
3566
  fill: "rgba(255,255,255,0.2)",
3449
3567
  stroke: "none"
3450
- }, null, 8, In)
3451
- ])) : n.node.shape === "hexagon" ? (_(), i("g", Ln, [a("polygon", {
3568
+ }, null, 8, Bn)
3569
+ ])) : n.node.shape === "hexagon" ? (_(), i("g", Vn, [a("polygon", {
3452
3570
  points: L.value,
3453
3571
  fill: j.value,
3454
3572
  stroke: M.value.color,
3455
3573
  "stroke-width": n.selected ? 3 : M.value.width,
3456
3574
  filter: `url(#${P.value})`
3457
- }, null, 8, Rn)])) : n.node.shape === "timer" ? (_(), i("g", zn, [
3575
+ }, null, 8, Hn)])) : n.node.shape === "timer" ? (_(), i("g", Un, [
3458
3576
  a("circle", {
3459
3577
  cx: n.node.width / 2,
3460
3578
  cy: n.node.height / 2,
@@ -3463,7 +3581,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3463
3581
  stroke: M.value.color,
3464
3582
  "stroke-width": n.selected ? 3 : M.value.width,
3465
3583
  filter: `url(#${P.value})`
3466
- }, null, 8, Bn),
3584
+ }, null, 8, Wn),
3467
3585
  a("circle", {
3468
3586
  cx: n.node.width / 2,
3469
3587
  cy: n.node.height / 2,
@@ -3471,7 +3589,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3471
3589
  fill: "none",
3472
3590
  stroke: "rgba(255,255,255,0.4)",
3473
3591
  "stroke-width": "1"
3474
- }, null, 8, Vn),
3592
+ }, null, 8, Gn),
3475
3593
  a("line", {
3476
3594
  x1: n.node.width / 2,
3477
3595
  y1: n.node.height / 2,
@@ -3480,7 +3598,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3480
3598
  stroke: "#fff",
3481
3599
  "stroke-width": "2",
3482
3600
  "stroke-linecap": "round"
3483
- }, null, 8, Hn),
3601
+ }, null, 8, Kn),
3484
3602
  a("line", {
3485
3603
  x1: n.node.width / 2,
3486
3604
  y1: n.node.height / 2,
@@ -3489,14 +3607,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3489
3607
  stroke: "#fff",
3490
3608
  "stroke-width": "1.5",
3491
3609
  "stroke-linecap": "round"
3492
- }, null, 8, Un),
3610
+ }, null, 8, qn),
3493
3611
  a("circle", {
3494
3612
  cx: n.node.width / 2,
3495
3613
  cy: n.node.height / 2,
3496
3614
  r: "3",
3497
3615
  fill: "#fff"
3498
- }, null, 8, Wn)
3499
- ])) : n.node.shape === "rounded闪电" ? (_(), i("g", Gn, [a("rect", {
3616
+ }, null, 8, Jn)
3617
+ ])) : n.node.shape === "rounded闪电" ? (_(), i("g", Yn, [a("rect", {
3500
3618
  width: n.node.width,
3501
3619
  height: n.node.height,
3502
3620
  rx: n.node.height / 3,
@@ -3504,7 +3622,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3504
3622
  stroke: M.value.color,
3505
3623
  "stroke-width": n.selected ? 3 : M.value.width,
3506
3624
  filter: `url(#${P.value})`
3507
- }, null, 8, Kn), a("path", {
3625
+ }, null, 8, Xn), a("path", {
3508
3626
  d: `M ${n.node.width * .55} ${n.node.height * .15}
3509
3627
  L ${n.node.width * .35} ${n.node.height * .45}
3510
3628
  H ${n.node.width * .52}
@@ -3513,7 +3631,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3513
3631
  H ${n.node.width * .48} Z`,
3514
3632
  fill: "#fff",
3515
3633
  opacity: "0.9"
3516
- }, null, 8, qn)])) : (_(), i("rect", {
3634
+ }, null, 8, Zn)])) : (_(), i("rect", {
3517
3635
  key: 20,
3518
3636
  width: n.node.width,
3519
3637
  height: n.node.height,
@@ -3522,7 +3640,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3522
3640
  stroke: M.value.color,
3523
3641
  "stroke-width": n.selected ? 3 : M.value.width,
3524
3642
  filter: `url(#${P.value})`
3525
- }, null, 8, Jn)),
3643
+ }, null, 8, Qn)),
3526
3644
  n.node.animation === "breathing" ? (_(), i("rect", {
3527
3645
  key: 21,
3528
3646
  width: n.node.width + 6,
@@ -3535,7 +3653,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3535
3653
  "stroke-width": "2",
3536
3654
  class: "breathing-ring",
3537
3655
  style: m(V.value)
3538
- }, null, 12, Yn)) : r("", !0),
3656
+ }, null, 12, $n)) : r("", !0),
3539
3657
  n.node.animation === "glowPulse" ? (_(), i("rect", {
3540
3658
  key: 22,
3541
3659
  width: n.node.width,
@@ -3546,7 +3664,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3546
3664
  "stroke-width": "2",
3547
3665
  class: "glow-pulse-ring",
3548
3666
  style: m(B.value)
3549
- }, null, 12, Xn)) : r("", !0),
3667
+ }, null, 12, er)) : r("", !0),
3550
3668
  n.node.animation === "ripple" ? (_(), i("rect", {
3551
3669
  key: 23,
3552
3670
  x: -10,
@@ -3559,7 +3677,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3559
3677
  "stroke-width": "2",
3560
3678
  class: "ripple-ring",
3561
3679
  style: m(H.value)
3562
- }, null, 12, Zn)) : r("", !0)
3680
+ }, null, 12, tr)) : r("", !0)
3563
3681
  ], 6),
3564
3682
  a("text", {
3565
3683
  x: F.value.x,
@@ -3577,8 +3695,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3577
3695
  "pointer-events": "none",
3578
3696
  "user-select": "none"
3579
3697
  }
3580
- }, S(n.node.label), 11, Qn),
3581
- n.selected && !n.node.locked ? (_(), i("g", $n, [(_(!0), i(e, null, b(R.value, (e) => (_(), i("rect", {
3698
+ }, S(n.node.label), 11, nr),
3699
+ n.selected && !n.node.locked ? (_(), i("g", rr, [(_(!0), i(e, null, b(R.value, (e) => (_(), i("rect", {
3582
3700
  key: e.cursor,
3583
3701
  x: e.x - 4,
3584
3702
  y: e.y - 4,
@@ -3589,7 +3707,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3589
3707
  "stroke-width": "1",
3590
3708
  style: m({ cursor: e.cursor }),
3591
3709
  onMousedown: A((t) => J(e, t), ["stop"])
3592
- }, null, 44, er))), 128))])) : r("", !0),
3710
+ }, null, 44, ir))), 128))])) : r("", !0),
3593
3711
  x.value ? (_(), i("circle", {
3594
3712
  key: 1,
3595
3713
  cx: n.node.width / 2,
@@ -3598,7 +3716,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3598
3716
  fill: "#409eff",
3599
3717
  opacity: "0.6",
3600
3718
  class: "connect-target"
3601
- }, null, 8, tr)) : r("", !0),
3719
+ }, null, 8, ar)) : r("", !0),
3602
3720
  d.value ? (_(), i("circle", {
3603
3721
  key: 2,
3604
3722
  cx: n.node.width / 2,
@@ -3610,49 +3728,49 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3610
3728
  "stroke-dasharray": "113",
3611
3729
  "stroke-dashoffset": "113",
3612
3730
  class: "long-press-ring"
3613
- }, null, 8, nr)) : r("", !0)
3614
- ], 46, Qt));
3731
+ }, null, 8, or)) : r("", !0)
3732
+ ], 46, nn));
3615
3733
  }
3616
- }, [["__scopeId", "data-v-e89a49e8"]]), ir = ["d", "stroke-width"], ar = [
3734
+ }, [["__scopeId", "data-v-e89a49e8"]]), cr = ["d", "stroke-width"], lr = [
3617
3735
  "d",
3618
3736
  "stroke",
3619
3737
  "stroke-width",
3620
3738
  "stroke-dasharray"
3621
- ], or = ["dur"], sr = ["fill"], cr = ["dur", "path"], lr = ["fill"], ur = [
3739
+ ], ur = ["dur"], dr = ["fill"], fr = ["dur", "path"], pr = ["fill"], mr = [
3622
3740
  "dur",
3623
3741
  "path",
3624
3742
  "begin"
3625
- ], dr = ["fill"], fr = [
3743
+ ], hr = ["fill"], gr = [
3626
3744
  "dur",
3627
3745
  "path",
3628
3746
  "begin"
3629
- ], pr = ["fill"], mr = ["dur", "path"], hr = ["dur"], gr = ["dur"], _r = ["fill"], vr = [
3747
+ ], _r = ["fill"], vr = ["dur", "path"], yr = ["dur"], br = ["dur"], xr = ["fill"], Sr = [
3630
3748
  "dur",
3631
3749
  "path",
3632
3750
  "begin"
3633
- ], yr = ["dur"], br = ["fill"], xr = [
3751
+ ], Cr = ["dur"], wr = ["fill"], Tr = [
3634
3752
  "dur",
3635
3753
  "path",
3636
3754
  "begin"
3637
- ], Sr = ["dur"], Cr = ["fill"], wr = ["dur", "path"], Tr = ["dur"], Er = ["dur"], Dr = ["fill"], Or = [
3755
+ ], Er = ["dur"], Dr = ["fill"], Or = ["dur", "path"], kr = ["dur"], Ar = ["dur"], jr = ["fill"], Mr = [
3638
3756
  "dur",
3639
3757
  "path",
3640
3758
  "begin"
3641
- ], kr = ["dur"], Ar = ["dur"], jr = ["fill"], Mr = ["dur", "path"], Nr = ["dur"], Pr = ["fill"], Fr = [
3759
+ ], Nr = ["dur"], Pr = ["dur"], Fr = ["fill"], Ir = ["dur", "path"], Lr = ["dur"], Rr = ["fill"], zr = [
3642
3760
  "dur",
3643
3761
  "path",
3644
3762
  "begin"
3645
- ], Ir = ["dur"], Lr = ["transform"], Rr = ["x", "width"], zr = {
3763
+ ], Br = ["dur"], Vr = ["transform"], Hr = ["x", "width"], Ur = {
3646
3764
  "text-anchor": "middle",
3647
3765
  "dominant-baseline": "central",
3648
3766
  fill: "#333",
3649
3767
  "font-size": "12",
3650
3768
  class: "edge-label"
3651
- }, Br = [
3769
+ }, Wr = [
3652
3770
  "points",
3653
3771
  "fill",
3654
3772
  "transform"
3655
- ], Vr = /*#__PURE__*/ Q({
3773
+ ], Gr = /*#__PURE__*/ Q({
3656
3774
  __name: "DiagramEdge",
3657
3775
  props: {
3658
3776
  edge: {
@@ -3774,7 +3892,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3774
3892
  stroke: "transparent",
3775
3893
  "stroke-width": Math.max(e.edge.lineWidth + 8, 12),
3776
3894
  class: "edge-hit-area"
3777
- }, null, 8, ir),
3895
+ }, null, 8, cr),
3778
3896
  a("path", {
3779
3897
  d: c.value,
3780
3898
  fill: "none",
@@ -3794,7 +3912,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3794
3912
  to: "-24",
3795
3913
  dur: (e.edge.animationDuration || 2) + "s",
3796
3914
  repeatCount: "indefinite"
3797
- }, null, 8, or)) : r("", !0)], 14, ar),
3915
+ }, null, 8, ur)) : r("", !0)], 14, lr),
3798
3916
  e.animationPlaying && e.edge.animation === "flow" ? (_(), i("circle", {
3799
3917
  key: 0,
3800
3918
  r: "4",
@@ -3805,7 +3923,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3805
3923
  dur: (e.edge.animationDuration || 2) + "s",
3806
3924
  repeatCount: "indefinite",
3807
3925
  path: c.value
3808
- }, null, 8, cr)], 12, sr)) : r("", !0),
3926
+ }, null, 8, fr)], 12, dr)) : r("", !0),
3809
3927
  e.animationPlaying && e.edge.animation === "flow" ? (_(), i("circle", {
3810
3928
  key: 1,
3811
3929
  r: "3",
@@ -3818,7 +3936,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3818
3936
  repeatCount: "indefinite",
3819
3937
  path: c.value,
3820
3938
  begin: (e.edge.animationDuration || 2) / 3 + "s"
3821
- }, null, 8, ur)], 12, lr)) : r("", !0),
3939
+ }, null, 8, mr)], 12, pr)) : r("", !0),
3822
3940
  e.animationPlaying && e.edge.animation === "flow" ? (_(), i("circle", {
3823
3941
  key: 2,
3824
3942
  r: "3",
@@ -3831,7 +3949,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3831
3949
  repeatCount: "indefinite",
3832
3950
  path: c.value,
3833
3951
  begin: (e.edge.animationDuration || 2) * 2 / 3 + "s"
3834
- }, null, 8, fr)], 12, dr)) : r("", !0),
3952
+ }, null, 8, gr)], 12, hr)) : r("", !0),
3835
3953
  e.animationPlaying && e.edge.animation === "particleGlow" ? (_(), i("circle", {
3836
3954
  key: 3,
3837
3955
  r: "5",
@@ -3842,20 +3960,20 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3842
3960
  dur: (e.edge.animationDuration || 2) + "s",
3843
3961
  repeatCount: "indefinite",
3844
3962
  path: c.value
3845
- }, null, 8, mr),
3963
+ }, null, 8, vr),
3846
3964
  a("animate", {
3847
3965
  attributeName: "r",
3848
3966
  values: "3;6;3",
3849
3967
  dur: (e.edge.animationDuration || 2) + "s",
3850
3968
  repeatCount: "indefinite"
3851
- }, null, 8, hr),
3969
+ }, null, 8, yr),
3852
3970
  a("animate", {
3853
3971
  attributeName: "opacity",
3854
3972
  values: "0.5;1;0.5",
3855
3973
  dur: (e.edge.animationDuration || 2) + "s",
3856
3974
  repeatCount: "indefinite"
3857
- }, null, 8, gr)
3858
- ], 8, pr)) : r("", !0),
3975
+ }, null, 8, br)
3976
+ ], 8, _r)) : r("", !0),
3859
3977
  e.animationPlaying && e.edge.animation === "particleGlow" ? (_(), i("circle", {
3860
3978
  key: 4,
3861
3979
  r: "4",
@@ -3867,12 +3985,12 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3867
3985
  repeatCount: "indefinite",
3868
3986
  path: c.value,
3869
3987
  begin: (e.edge.animationDuration || 2) / 3 + "s"
3870
- }, null, 8, vr), a("animate", {
3988
+ }, null, 8, Sr), a("animate", {
3871
3989
  attributeName: "r",
3872
3990
  values: "2;5;2",
3873
3991
  dur: (e.edge.animationDuration || 2) + "s",
3874
3992
  repeatCount: "indefinite"
3875
- }, null, 8, yr)], 8, _r)) : r("", !0),
3993
+ }, null, 8, Cr)], 8, xr)) : r("", !0),
3876
3994
  e.animationPlaying && e.edge.animation === "particleGlow" ? (_(), i("circle", {
3877
3995
  key: 5,
3878
3996
  r: "4",
@@ -3884,12 +4002,12 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3884
4002
  repeatCount: "indefinite",
3885
4003
  path: c.value,
3886
4004
  begin: (e.edge.animationDuration || 2) * 2 / 3 + "s"
3887
- }, null, 8, xr), a("animate", {
4005
+ }, null, 8, Tr), a("animate", {
3888
4006
  attributeName: "r",
3889
4007
  values: "2;5;2",
3890
4008
  dur: (e.edge.animationDuration || 2) + "s",
3891
4009
  repeatCount: "indefinite"
3892
- }, null, 8, Sr)], 8, br)) : r("", !0),
4010
+ }, null, 8, Er)], 8, wr)) : r("", !0),
3893
4011
  e.animationPlaying && e.edge.animation === "pulse" ? (_(), i("circle", {
3894
4012
  key: 6,
3895
4013
  r: "6",
@@ -3901,20 +4019,20 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3901
4019
  dur: (e.edge.animationDuration || 2) + "s",
3902
4020
  repeatCount: "indefinite",
3903
4021
  path: c.value
3904
- }, null, 8, wr),
4022
+ }, null, 8, Or),
3905
4023
  a("animate", {
3906
4024
  attributeName: "r",
3907
4025
  values: "2;8;2",
3908
4026
  dur: (e.edge.animationDuration || 2) + "s",
3909
4027
  repeatCount: "indefinite"
3910
- }, null, 8, Tr),
4028
+ }, null, 8, kr),
3911
4029
  a("animate", {
3912
4030
  attributeName: "opacity",
3913
4031
  values: "0;0.8;0",
3914
4032
  dur: (e.edge.animationDuration || 2) + "s",
3915
4033
  repeatCount: "indefinite"
3916
- }, null, 8, Er)
3917
- ], 8, Cr)) : r("", !0),
4034
+ }, null, 8, Ar)
4035
+ ], 8, Dr)) : r("", !0),
3918
4036
  e.animationPlaying && e.edge.animation === "pulse" ? (_(), i("circle", {
3919
4037
  key: 7,
3920
4038
  r: "6",
@@ -3927,20 +4045,20 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3927
4045
  repeatCount: "indefinite",
3928
4046
  path: c.value,
3929
4047
  begin: (e.edge.animationDuration || 2) / 2 + "s"
3930
- }, null, 8, Or),
4048
+ }, null, 8, Mr),
3931
4049
  a("animate", {
3932
4050
  attributeName: "r",
3933
4051
  values: "2;8;2",
3934
4052
  dur: (e.edge.animationDuration || 2) + "s",
3935
4053
  repeatCount: "indefinite"
3936
- }, null, 8, kr),
4054
+ }, null, 8, Nr),
3937
4055
  a("animate", {
3938
4056
  attributeName: "opacity",
3939
4057
  values: "0;0.8;0",
3940
4058
  dur: (e.edge.animationDuration || 2) + "s",
3941
4059
  repeatCount: "indefinite"
3942
- }, null, 8, Ar)
3943
- ], 8, Dr)) : r("", !0),
4060
+ }, null, 8, Pr)
4061
+ ], 8, jr)) : r("", !0),
3944
4062
  e.animationPlaying && e.edge.animation === "neon" ? (_(), i("circle", {
3945
4063
  key: 8,
3946
4064
  r: "4",
@@ -3950,12 +4068,12 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3950
4068
  dur: (e.edge.animationDuration || 2) + "s",
3951
4069
  repeatCount: "indefinite",
3952
4070
  path: c.value
3953
- }, null, 8, Mr), a("animate", {
4071
+ }, null, 8, Ir), a("animate", {
3954
4072
  attributeName: "r",
3955
4073
  values: "2;5;2",
3956
4074
  dur: (e.edge.animationDuration || 2) + "s",
3957
4075
  repeatCount: "indefinite"
3958
- }, null, 8, Nr)], 8, jr)) : r("", !0),
4076
+ }, null, 8, Lr)], 8, Fr)) : r("", !0),
3959
4077
  e.animationPlaying && e.edge.animation === "neon" ? (_(), i("circle", {
3960
4078
  key: 9,
3961
4079
  r: "4",
@@ -3967,12 +4085,12 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3967
4085
  repeatCount: "indefinite",
3968
4086
  path: c.value,
3969
4087
  begin: (e.edge.animationDuration || 2) / 2 + "s"
3970
- }, null, 8, Fr), a("animate", {
4088
+ }, null, 8, zr), a("animate", {
3971
4089
  attributeName: "r",
3972
4090
  values: "2;5;2",
3973
4091
  dur: (e.edge.animationDuration || 2) + "s",
3974
4092
  repeatCount: "indefinite"
3975
- }, null, 8, Ir)], 8, Pr)) : r("", !0),
4093
+ }, null, 8, Br)], 8, Rr)) : r("", !0),
3976
4094
  e.edge.label ? (_(), i("g", {
3977
4095
  key: 10,
3978
4096
  transform: `translate(${l.value.x}, ${l.value.y})`
@@ -3985,32 +4103,32 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3985
4103
  fill: "#fff",
3986
4104
  stroke: "#e4e7ed",
3987
4105
  "stroke-width": "1"
3988
- }, null, 8, Rr), a("text", zr, S(e.edge.label), 1)], 8, Lr)) : r("", !0),
4106
+ }, null, 8, Hr), a("text", Ur, S(e.edge.label), 1)], 8, Vr)) : r("", !0),
3989
4107
  e.edge.arrowType === "none" ? r("", !0) : (_(), i("polygon", {
3990
4108
  key: 11,
3991
4109
  points: g.value,
3992
4110
  fill: e.selected ? "#409eff" : e.edge.lineColor,
3993
4111
  transform: `translate(${s.value.x}, ${s.value.y}) rotate(${h.value})`
3994
- }, null, 8, Br))
4112
+ }, null, 8, Wr))
3995
4113
  ], 34)) : r("", !0);
3996
4114
  }
3997
- }, [["__scopeId", "data-v-737212ef"]]), Hr = ["transform"], Ur = [
4115
+ }, [["__scopeId", "data-v-737212ef"]]), Kr = ["transform"], qr = [
3998
4116
  "width",
3999
4117
  "height",
4000
4118
  "fill",
4001
4119
  "stroke",
4002
4120
  "stroke-width"
4003
- ], Wr = [
4121
+ ], Jr = [
4004
4122
  "width",
4005
4123
  "height",
4006
4124
  "fill",
4007
4125
  "opacity"
4008
- ], Gr = [
4126
+ ], Yr = [
4009
4127
  "width",
4010
4128
  "height",
4011
4129
  "fill",
4012
4130
  "opacity"
4013
- ], Kr = [
4131
+ ], Xr = [
4014
4132
  "x",
4015
4133
  "y",
4016
4134
  "fill",
@@ -4019,7 +4137,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4019
4137
  "font-weight",
4020
4138
  "font-style",
4021
4139
  "transform"
4022
- ], qr = [
4140
+ ], Zr = [
4023
4141
  "x",
4024
4142
  "y",
4025
4143
  "text-anchor",
@@ -4028,63 +4146,63 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4028
4146
  "font-family",
4029
4147
  "font-weight",
4030
4148
  "font-style"
4031
- ], Jr = ["y", "width"], Yr = {
4149
+ ], Qr = ["y", "width"], $r = {
4032
4150
  xmlns: "http://www.w3.org/1999/xhtml",
4033
4151
  class: "edit-name-container"
4034
- }, Xr = ["x", "height"], Zr = {
4152
+ }, ei = ["x", "height"], ti = {
4035
4153
  xmlns: "http://www.w3.org/1999/xhtml",
4036
4154
  class: "edit-name-container vertical"
4037
- }, Qr = [
4155
+ }, ni = [
4038
4156
  "x1",
4039
4157
  "x2",
4040
4158
  "onClick"
4041
- ], $r = [
4159
+ ], ri = [
4042
4160
  "x1",
4043
4161
  "x2",
4044
4162
  "stroke"
4045
- ], ei = [
4163
+ ], ii = [
4046
4164
  "y1",
4047
4165
  "x2",
4048
4166
  "y2",
4049
4167
  "onClick",
4050
4168
  "onMousedown"
4051
- ], ti = [
4169
+ ], ai = [
4052
4170
  "x1",
4053
4171
  "x2",
4054
4172
  "y2",
4055
4173
  "onClick",
4056
4174
  "onMousedown"
4057
- ], ni = [
4175
+ ], oi = [
4058
4176
  "y1",
4059
4177
  "x2",
4060
4178
  "y2",
4061
4179
  "stroke"
4062
- ], ri = [
4180
+ ], si = [
4063
4181
  "x1",
4064
4182
  "x2",
4065
4183
  "y2",
4066
4184
  "stroke"
4067
- ], ii = [
4185
+ ], ci = [
4068
4186
  "y1",
4069
4187
  "x2",
4070
4188
  "y2",
4071
4189
  "onClick"
4072
- ], ai = [
4190
+ ], li = [
4073
4191
  "y1",
4074
4192
  "x2",
4075
4193
  "y2",
4076
4194
  "stroke"
4077
- ], oi = [
4195
+ ], ui = [
4078
4196
  "x1",
4079
4197
  "x2",
4080
4198
  "y2",
4081
4199
  "onClick"
4082
- ], si = [
4200
+ ], di = [
4083
4201
  "x1",
4084
4202
  "x2",
4085
4203
  "y2",
4086
4204
  "stroke"
4087
- ], ci = [
4205
+ ], fi = [
4088
4206
  "x",
4089
4207
  "y",
4090
4208
  "width",
@@ -4094,7 +4212,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4094
4212
  "stroke-width",
4095
4213
  "opacity",
4096
4214
  "onClick"
4097
- ], li = [
4215
+ ], pi = [
4098
4216
  "x",
4099
4217
  "y",
4100
4218
  "width",
@@ -4104,17 +4222,17 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4104
4222
  "stroke-width",
4105
4223
  "opacity",
4106
4224
  "onClick"
4107
- ], ui = [
4225
+ ], mi = [
4108
4226
  "x",
4109
4227
  "y",
4110
4228
  "width",
4111
4229
  "fill"
4112
- ], di = [
4230
+ ], hi = [
4113
4231
  "x",
4114
4232
  "y",
4115
4233
  "width",
4116
4234
  "fill"
4117
- ], fi = [
4235
+ ], gi = [
4118
4236
  "x",
4119
4237
  "y",
4120
4238
  "text-anchor",
@@ -4125,7 +4243,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4125
4243
  "font-style",
4126
4244
  "onClick",
4127
4245
  "onDblclick"
4128
- ], pi = [
4246
+ ], _i = [
4129
4247
  "x",
4130
4248
  "y",
4131
4249
  "text-anchor",
@@ -4136,29 +4254,29 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4136
4254
  "font-style",
4137
4255
  "onClick",
4138
4256
  "onDblclick"
4139
- ], mi = [
4257
+ ], vi = [
4140
4258
  "x",
4141
4259
  "y",
4142
4260
  "width"
4143
- ], hi = {
4261
+ ], yi = {
4144
4262
  xmlns: "http://www.w3.org/1999/xhtml",
4145
4263
  class: "edit-lane-container"
4146
- }, gi = ["onBlur", "onKeydown"], _i = [
4264
+ }, bi = ["onBlur", "onKeydown"], xi = [
4147
4265
  "x",
4148
4266
  "y",
4149
4267
  "width"
4150
- ], vi = {
4268
+ ], Si = {
4151
4269
  xmlns: "http://www.w3.org/1999/xhtml",
4152
4270
  class: "edit-lane-container"
4153
- }, yi = ["onBlur", "onKeydown"], bi = ["x", "y"], xi = ["x", "y"], Si = ["x", "y"], Ci = [
4271
+ }, Ci = ["onBlur", "onKeydown"], wi = ["x", "y"], Ti = ["x", "y"], Ei = ["x", "y"], Di = [
4154
4272
  "y1",
4155
4273
  "x2",
4156
4274
  "y2"
4157
- ], wi = [
4275
+ ], Oi = [
4158
4276
  "x1",
4159
4277
  "x2",
4160
4278
  "y2"
4161
- ], Ti = /*#__PURE__*/ Q({
4279
+ ], ki = /*#__PURE__*/ Q({
4162
4280
  __name: "SwimlaneNode",
4163
4281
  props: {
4164
4282
  swimlane: {
@@ -4218,7 +4336,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4218
4336
  }), U = y({
4219
4337
  width: 0,
4220
4338
  height: 0
4221
- }), W = (e, t) => {
4339
+ }), ee = (e, t) => {
4222
4340
  e.preventDefault(), V.value = t, H.value = {
4223
4341
  x: e.clientX,
4224
4342
  y: e.clientY
@@ -4233,7 +4351,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4233
4351
  V.value = null, window.removeEventListener("mousemove", n), window.removeEventListener("mouseup", r);
4234
4352
  };
4235
4353
  window.addEventListener("mousemove", n), window.addEventListener("mouseup", r);
4236
- }, G = (e) => {
4354
+ }, W = (e) => {
4237
4355
  if (e.button !== 0 || e.target.closest(".resize-handle") || e.target.closest(".lane-divider-hit")) return;
4238
4356
  e.stopPropagation(), e.preventDefault();
4239
4357
  let t = e.clientX, n = e.clientY, r = s.swimlane.x, i = s.swimlane.y, a = (e) => {
@@ -4243,28 +4361,28 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4243
4361
  window.removeEventListener("mousemove", a), window.removeEventListener("mouseup", o);
4244
4362
  };
4245
4363
  window.addEventListener("mousemove", a), window.addEventListener("mouseup", o);
4246
- }, K = y(null), ee = y(0), q = y(0), te = y(0), J = (e, t) => {
4247
- e.preventDefault(), K.value = t, s.swimlane.direction === "horizontal" ? (ee.value = h(t), te.value = s.swimlane.lanes[t].height) : (q.value = g(t), te.value = s.swimlane.lanes[t].width || v(t));
4364
+ }, G = y(null), K = y(0), te = y(0), q = y(0), J = (e, t) => {
4365
+ e.preventDefault(), G.value = t, s.swimlane.direction === "horizontal" ? (K.value = h(t), q.value = s.swimlane.lanes[t].height) : (te.value = g(t), q.value = s.swimlane.lanes[t].width || v(t));
4248
4366
  let n = {
4249
4367
  x: e.clientX,
4250
4368
  y: e.clientY
4251
4369
  }, r = (e) => {
4252
4370
  if (s.swimlane.direction === "horizontal") {
4253
- let r = e.clientY - n.y, i = Math.max(40, te.value + r);
4371
+ let r = e.clientY - n.y, i = Math.max(40, q.value + r);
4254
4372
  c("resize-lane", s.swimlane.id, s.swimlane.lanes[t].id, i);
4255
4373
  } else {
4256
- let r = e.clientX - n.x, i = Math.max(80, te.value + r);
4374
+ let r = e.clientX - n.x, i = Math.max(80, q.value + r);
4257
4375
  c("resize-lane", s.swimlane.id, s.swimlane.lanes[t].id, null, i);
4258
4376
  }
4259
4377
  }, i = () => {
4260
- K.value = null, window.removeEventListener("mousemove", r), window.removeEventListener("mouseup", i);
4378
+ G.value = null, window.removeEventListener("mousemove", r), window.removeEventListener("mouseup", i);
4261
4379
  };
4262
4380
  window.addEventListener("mousemove", r), window.addEventListener("mouseup", i);
4263
4381
  };
4264
4382
  return (t, o) => (_(), i("g", {
4265
4383
  class: p(["swimlane-node", { selected: n.selected }]),
4266
4384
  transform: `translate(${n.swimlane.x}, ${n.swimlane.y})`,
4267
- onMousedown: G
4385
+ onMousedown: W
4268
4386
  }, [
4269
4387
  a("rect", {
4270
4388
  width: n.swimlane.width,
@@ -4275,7 +4393,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4275
4393
  rx: "4",
4276
4394
  class: "swimlane-bg",
4277
4395
  onClick: o[0] ||= A((e) => t.$emit("select"), ["stop"])
4278
- }, null, 8, Ur),
4396
+ }, null, 8, qr),
4279
4397
  n.swimlane.direction === "horizontal" ? (_(), i("rect", {
4280
4398
  key: 0,
4281
4399
  width: l.value,
@@ -4286,7 +4404,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4286
4404
  class: "swimlane-header",
4287
4405
  onClick: A(j, ["stop"]),
4288
4406
  onDblclick: A(D, ["stop"])
4289
- }, null, 40, Wr)) : (_(), i("rect", {
4407
+ }, null, 40, Jr)) : (_(), i("rect", {
4290
4408
  key: 1,
4291
4409
  width: n.swimlane.width,
4292
4410
  height: u.value,
@@ -4296,7 +4414,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4296
4414
  class: "swimlane-header",
4297
4415
  onClick: A(j, ["stop"]),
4298
4416
  onDblclick: A(D, ["stop"])
4299
- }, null, 40, Gr)),
4417
+ }, null, 40, Yr)),
4300
4418
  !x.value && n.swimlane.direction === "horizontal" ? (_(), i("text", {
4301
4419
  key: 2,
4302
4420
  x: l.value / 2,
@@ -4311,7 +4429,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4311
4429
  "pointer-events": "none",
4312
4430
  transform: `rotate(-90, ${l.value / 2}, ${d.value / 2})`,
4313
4431
  dy: "0.35em"
4314
- }, S(n.swimlane.name), 9, Kr)) : !x.value && n.swimlane.direction === "vertical" ? (_(), i("text", {
4432
+ }, S(n.swimlane.name), 9, Xr)) : !x.value && n.swimlane.direction === "vertical" ? (_(), i("text", {
4315
4433
  key: 3,
4316
4434
  x: n.swimlane.textAlign === "left" ? 8 : n.swimlane.textAlign === "right" ? n.swimlane.width - 8 : n.swimlane.width / 2,
4317
4435
  y: u.value / 2,
@@ -4324,14 +4442,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4324
4442
  class: "swimlane-title",
4325
4443
  "pointer-events": "none",
4326
4444
  "dominant-baseline": "central"
4327
- }, S(n.swimlane.name), 9, qr)) : r("", !0),
4445
+ }, S(n.swimlane.name), 9, Zr)) : r("", !0),
4328
4446
  x.value && n.swimlane.direction === "horizontal" ? (_(), i("foreignObject", {
4329
4447
  key: 4,
4330
4448
  x: 0,
4331
4449
  y: d.value / 2 - 14,
4332
4450
  width: l.value,
4333
4451
  height: 28
4334
- }, [a("div", Yr, [O(a("input", {
4452
+ }, [a("div", $r, [O(a("input", {
4335
4453
  ref_key: "nameInputRef",
4336
4454
  ref: E,
4337
4455
  "onUpdate:modelValue": o[1] ||= (e) => C.value = e,
@@ -4346,14 +4464,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4346
4464
  onBlur: M,
4347
4465
  onKeydown: [k(M, ["enter"]), k(N, ["escape"])],
4348
4466
  onClick: o[2] ||= A(() => {}, ["stop"])
4349
- }, null, 36), [[w, C.value]])])], 8, Jr)) : r("", !0),
4467
+ }, null, 36), [[w, C.value]])])], 8, Qr)) : r("", !0),
4350
4468
  x.value && n.swimlane.direction === "vertical" ? (_(), i("foreignObject", {
4351
4469
  key: 5,
4352
4470
  x: n.swimlane.textAlign === "left" ? 0 : n.swimlane.textAlign === "right" ? n.swimlane.width - 120 : n.swimlane.width / 2 - 60,
4353
4471
  y: 0,
4354
4472
  width: 120,
4355
4473
  height: u.value
4356
- }, [a("div", Zr, [O(a("input", {
4474
+ }, [a("div", ti, [O(a("input", {
4357
4475
  ref_key: "nameInputRef",
4358
4476
  ref: E,
4359
4477
  "onUpdate:modelValue": o[3] ||= (e) => C.value = e,
@@ -4369,7 +4487,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4369
4487
  onBlur: M,
4370
4488
  onKeydown: [k(M, ["enter"]), k(N, ["escape"])],
4371
4489
  onClick: o[4] ||= A(() => {}, ["stop"])
4372
- }, null, 36), [[w, C.value]])])], 8, Xr)) : r("", !0),
4490
+ }, null, 36), [[w, C.value]])])], 8, ei)) : r("", !0),
4373
4491
  n.swimlane.lanes && n.swimlane.lanes.length ? (_(!0), i(e, { key: 6 }, b(n.swimlane.lanes, (t, s) => (_(), i("g", { key: t.id }, [
4374
4492
  s === 0 && n.swimlane.direction === "horizontal" ? (_(), i(e, { key: 0 }, [a("line", {
4375
4493
  x1: l.value,
@@ -4382,7 +4500,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4382
4500
  style: { cursor: "ns-resize" },
4383
4501
  onClick: A((e) => P(t.id), ["stop"]),
4384
4502
  onMousedown: o[5] ||= A((e) => J(e, 0), ["stop"])
4385
- }, null, 40, Qr), a("line", {
4503
+ }, null, 40, ni), a("line", {
4386
4504
  x1: l.value,
4387
4505
  y1: 0,
4388
4506
  x2: n.swimlane.width,
@@ -4392,7 +4510,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4392
4510
  "stroke-dasharray": "4,2",
4393
4511
  class: "lane-divider",
4394
4512
  "pointer-events": "none"
4395
- }, null, 8, $r)], 64)) : r("", !0),
4513
+ }, null, 8, ri)], 64)) : r("", !0),
4396
4514
  s > 0 ? (_(), i(e, { key: 1 }, [n.swimlane.direction === "horizontal" ? (_(), i("line", {
4397
4515
  key: 0,
4398
4516
  x1: 0,
@@ -4405,7 +4523,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4405
4523
  style: { cursor: "ns-resize" },
4406
4524
  onClick: A((e) => P(n.swimlane.lanes[s - 1].id), ["stop"]),
4407
4525
  onMousedown: A((e) => J(e, s - 1), ["stop"])
4408
- }, null, 40, ei)) : (_(), i("line", {
4526
+ }, null, 40, ii)) : (_(), i("line", {
4409
4527
  key: 1,
4410
4528
  x1: g(s),
4411
4529
  y1: 0,
@@ -4417,7 +4535,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4417
4535
  style: { cursor: "ew-resize" },
4418
4536
  onClick: A((e) => P(n.swimlane.lanes[s - 1].id), ["stop"]),
4419
4537
  onMousedown: A((e) => J(e, s - 1), ["stop"])
4420
- }, null, 40, ti)), n.swimlane.direction === "horizontal" ? (_(), i("line", {
4538
+ }, null, 40, ai)), n.swimlane.direction === "horizontal" ? (_(), i("line", {
4421
4539
  key: 2,
4422
4540
  x1: 0,
4423
4541
  y1: h(s),
@@ -4428,7 +4546,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4428
4546
  "stroke-dasharray": "4,2",
4429
4547
  class: "lane-divider",
4430
4548
  "pointer-events": "none"
4431
- }, null, 8, ni)) : (_(), i("line", {
4549
+ }, null, 8, oi)) : (_(), i("line", {
4432
4550
  key: 3,
4433
4551
  x1: g(s),
4434
4552
  y1: 0,
@@ -4439,7 +4557,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4439
4557
  "stroke-dasharray": "4,2",
4440
4558
  class: "lane-divider",
4441
4559
  "pointer-events": "none"
4442
- }, null, 8, ri))], 64)) : r("", !0),
4560
+ }, null, 8, si))], 64)) : r("", !0),
4443
4561
  s === n.swimlane.lanes.length - 1 && n.swimlane.direction === "horizontal" ? (_(), i(e, { key: 2 }, [a("line", {
4444
4562
  x1: 0,
4445
4563
  y1: d.value,
@@ -4451,7 +4569,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4451
4569
  style: { cursor: "ns-resize" },
4452
4570
  onClick: A((e) => P(t.id), ["stop"]),
4453
4571
  onMousedown: o[6] ||= A((e) => J(e, n.swimlane.lanes.length - 1), ["stop"])
4454
- }, null, 40, ii), a("line", {
4572
+ }, null, 40, ci), a("line", {
4455
4573
  x1: 0,
4456
4574
  y1: d.value,
4457
4575
  x2: n.swimlane.width,
@@ -4461,7 +4579,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4461
4579
  "stroke-dasharray": "4,2",
4462
4580
  class: "lane-divider",
4463
4581
  "pointer-events": "none"
4464
- }, null, 8, ai)], 64)) : r("", !0),
4582
+ }, null, 8, li)], 64)) : r("", !0),
4465
4583
  s === n.swimlane.lanes.length - 1 && n.swimlane.direction === "vertical" ? (_(), i(e, { key: 3 }, [a("line", {
4466
4584
  x1: g(n.swimlane.lanes.length),
4467
4585
  y1: 0,
@@ -4473,7 +4591,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4473
4591
  style: { cursor: "ew-resize" },
4474
4592
  onClick: A((e) => P(t.id), ["stop"]),
4475
4593
  onMousedown: o[7] ||= A((e) => J(e, n.swimlane.lanes.length - 1), ["stop"])
4476
- }, null, 40, oi), a("line", {
4594
+ }, null, 40, ui), a("line", {
4477
4595
  x1: g(n.swimlane.lanes.length),
4478
4596
  y1: 0,
4479
4597
  x2: g(n.swimlane.lanes.length),
@@ -4483,7 +4601,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4483
4601
  "stroke-dasharray": "4,2",
4484
4602
  class: "lane-divider",
4485
4603
  "pointer-events": "none"
4486
- }, null, 8, si)], 64)) : r("", !0),
4604
+ }, null, 8, di)], 64)) : r("", !0),
4487
4605
  n.swimlane.direction === "horizontal" ? (_(), i("rect", {
4488
4606
  key: 4,
4489
4607
  x: l.value + 4,
@@ -4497,7 +4615,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4497
4615
  opacity: t.opacity ?? .5,
4498
4616
  class: "lane-bg",
4499
4617
  onClick: A((e) => P(t.id), ["stop"])
4500
- }, null, 8, ci)) : (_(), i("rect", {
4618
+ }, null, 8, fi)) : (_(), i("rect", {
4501
4619
  key: 5,
4502
4620
  x: g(s) + 4,
4503
4621
  y: u.value + 4,
@@ -4510,7 +4628,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4510
4628
  opacity: t.opacity ?? .5,
4511
4629
  class: "lane-bg",
4512
4630
  onClick: A((e) => P(t.id), ["stop"])
4513
- }, null, 8, li)),
4631
+ }, null, 8, pi)),
4514
4632
  t.headerColor ? O((_(), i("rect", {
4515
4633
  key: 6,
4516
4634
  x: l.value + 4,
@@ -4520,7 +4638,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4520
4638
  fill: t.headerColor,
4521
4639
  rx: "2",
4522
4640
  "pointer-events": "none"
4523
- }, null, 8, ui)), [[T, n.swimlane.direction === "horizontal"]]) : r("", !0),
4641
+ }, null, 8, mi)), [[T, n.swimlane.direction === "horizontal"]]) : r("", !0),
4524
4642
  t.headerColor ? O((_(), i("rect", {
4525
4643
  key: 7,
4526
4644
  x: g(s) + 4,
@@ -4530,7 +4648,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4530
4648
  fill: t.headerColor,
4531
4649
  rx: "2",
4532
4650
  "pointer-events": "none"
4533
- }, null, 8, di)), [[T, n.swimlane.direction === "vertical"]]) : r("", !0),
4651
+ }, null, 8, hi)), [[T, n.swimlane.direction === "vertical"]]) : r("", !0),
4534
4652
  n.swimlane.direction === "horizontal" && F.value !== t.id ? (_(), i("text", {
4535
4653
  key: 8,
4536
4654
  x: t.textAlign === "center" ? (l.value + n.swimlane.width) / 2 : t.textAlign === "right" ? n.swimlane.width - 10 : l.value + 10,
@@ -4545,7 +4663,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4545
4663
  class: "lane-label",
4546
4664
  onClick: A((e) => P(t.id), ["stop"]),
4547
4665
  onDblclick: A((e) => R(t), ["stop"])
4548
- }, S(t.name), 41, fi)) : n.swimlane.direction === "vertical" && F.value !== t.id ? (_(), i("text", {
4666
+ }, S(t.name), 41, gi)) : n.swimlane.direction === "vertical" && F.value !== t.id ? (_(), i("text", {
4549
4667
  key: 9,
4550
4668
  x: t.textAlign === "center" ? g(s) + v(s) / 2 : t.textAlign === "right" ? g(s) + v(s) - 10 : g(s) + 10,
4551
4669
  y: u.value + 17,
@@ -4559,14 +4677,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4559
4677
  class: "lane-label",
4560
4678
  onClick: A((e) => P(t.id), ["stop"]),
4561
4679
  onDblclick: A((e) => R(t), ["stop"])
4562
- }, S(t.name), 41, pi)) : r("", !0),
4680
+ }, S(t.name), 41, _i)) : r("", !0),
4563
4681
  F.value === t.id && n.swimlane.direction === "horizontal" ? (_(), i("foreignObject", {
4564
4682
  key: 10,
4565
4683
  x: l.value + 8,
4566
4684
  y: h(s) + 4,
4567
4685
  width: n.swimlane.width - l.value - 16,
4568
4686
  height: 26
4569
- }, [a("div", hi, [O(a("input", {
4687
+ }, [a("div", yi, [O(a("input", {
4570
4688
  ref_for: !0,
4571
4689
  ref_key: "laneNameInputRef",
4572
4690
  ref: L,
@@ -4583,14 +4701,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4583
4701
  onBlur: (e) => z(t),
4584
4702
  onKeydown: [k((e) => z(t), ["enter"]), k(B, ["escape"])],
4585
4703
  onClick: o[9] ||= A(() => {}, ["stop"])
4586
- }, null, 44, gi), [[w, I.value]])])], 8, mi)) : r("", !0),
4704
+ }, null, 44, bi), [[w, I.value]])])], 8, vi)) : r("", !0),
4587
4705
  F.value === t.id && n.swimlane.direction === "vertical" ? (_(), i("foreignObject", {
4588
4706
  key: 11,
4589
4707
  x: g(s) + 8,
4590
4708
  y: u.value + 4,
4591
4709
  width: v(s) - 16,
4592
4710
  height: 26
4593
- }, [a("div", vi, [O(a("input", {
4711
+ }, [a("div", Si, [O(a("input", {
4594
4712
  ref_for: !0,
4595
4713
  ref_key: "laneNameInputRef",
4596
4714
  ref: L,
@@ -4607,7 +4725,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4607
4725
  onBlur: (e) => z(t),
4608
4726
  onKeydown: [k((e) => z(t), ["enter"]), k(B, ["escape"])],
4609
4727
  onClick: o[11] ||= A(() => {}, ["stop"])
4610
- }, null, 44, yi), [[w, I.value]])])], 8, _i)) : r("", !0)
4728
+ }, null, 44, Ci), [[w, I.value]])])], 8, xi)) : r("", !0)
4611
4729
  ]))), 128)) : r("", !0),
4612
4730
  n.selected ? (_(), i(e, { key: 7 }, [
4613
4731
  a("rect", {
@@ -4619,9 +4737,9 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4619
4737
  rx: "2",
4620
4738
  class: "resize-handle",
4621
4739
  style: { cursor: "ew-resize" },
4622
- onMousedown: o[12] ||= A((e) => W(e, "right"), ["stop", "prevent"]),
4740
+ onMousedown: o[12] ||= A((e) => ee(e, "right"), ["stop", "prevent"]),
4623
4741
  onClick: o[13] ||= A(() => {}, ["stop"])
4624
- }, null, 40, bi),
4742
+ }, null, 40, wi),
4625
4743
  a("rect", {
4626
4744
  x: n.swimlane.width / 2 - 10,
4627
4745
  y: d.value - 4,
@@ -4631,9 +4749,9 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4631
4749
  rx: "2",
4632
4750
  class: "resize-handle",
4633
4751
  style: { cursor: "ns-resize" },
4634
- onMousedown: o[14] ||= A((e) => W(e, "bottom"), ["stop", "prevent"]),
4752
+ onMousedown: o[14] ||= A((e) => ee(e, "bottom"), ["stop", "prevent"]),
4635
4753
  onClick: o[15] ||= A(() => {}, ["stop"])
4636
- }, null, 40, xi),
4754
+ }, null, 40, Ti),
4637
4755
  a("rect", {
4638
4756
  x: g(n.swimlane.lanes?.length || 0) - 6,
4639
4757
  y: d.value - 6,
@@ -4643,36 +4761,36 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4643
4761
  rx: "2",
4644
4762
  class: "resize-handle",
4645
4763
  style: { cursor: "nwse-resize" },
4646
- onMousedown: o[16] ||= A((e) => W(e, "corner"), ["stop", "prevent"]),
4764
+ onMousedown: o[16] ||= A((e) => ee(e, "corner"), ["stop", "prevent"]),
4647
4765
  onClick: o[17] ||= A(() => {}, ["stop"])
4648
- }, null, 40, Si)
4766
+ }, null, 40, Ei)
4649
4767
  ], 64)) : r("", !0),
4650
- K.value === null ? r("", !0) : (_(), i(e, { key: 8 }, [n.swimlane.direction === "horizontal" ? (_(), i("line", {
4768
+ G.value === null ? r("", !0) : (_(), i(e, { key: 8 }, [n.swimlane.direction === "horizontal" ? (_(), i("line", {
4651
4769
  key: 0,
4652
4770
  x1: 0,
4653
- y1: ee.value,
4771
+ y1: K.value,
4654
4772
  x2: n.swimlane.width,
4655
- y2: ee.value,
4773
+ y2: K.value,
4656
4774
  stroke: "#409eff",
4657
4775
  "stroke-width": "2",
4658
4776
  "stroke-dasharray": "6,3"
4659
- }, null, 8, Ci)) : (_(), i("line", {
4777
+ }, null, 8, Di)) : (_(), i("line", {
4660
4778
  key: 1,
4661
- x1: q.value,
4779
+ x1: te.value,
4662
4780
  y1: 0,
4663
- x2: q.value,
4781
+ x2: te.value,
4664
4782
  y2: d.value,
4665
4783
  stroke: "#409eff",
4666
4784
  "stroke-width": "2",
4667
4785
  "stroke-dasharray": "6,3"
4668
- }, null, 8, wi))], 64))
4669
- ], 42, Hr));
4786
+ }, null, 8, Oi))], 64))
4787
+ ], 42, Kr));
4670
4788
  }
4671
- }, [["__scopeId", "data-v-8e00b7cb"]]), Ei = [
4789
+ }, [["__scopeId", "data-v-8e00b7cb"]]), Ai = [
4672
4790
  "width",
4673
4791
  "height",
4674
4792
  "viewBox"
4675
- ], Di = ["width", "height"], Oi = ["d"], ki = ["transform"], Ai = {
4793
+ ], ji = ["width", "height"], Mi = ["d"], Ni = ["transform"], Pi = {
4676
4794
  key: 0,
4677
4795
  x: "-5000",
4678
4796
  y: "-5000",
@@ -4680,12 +4798,12 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4680
4798
  height: "10000",
4681
4799
  fill: "url(#grid)",
4682
4800
  class: "grid-bg"
4683
- }, ji = { key: 1 }, Mi = [
4801
+ }, Fi = { key: 1 }, Ii = [
4684
4802
  "x1",
4685
4803
  "y1",
4686
4804
  "x2",
4687
4805
  "y2"
4688
- ], Ni = { class: "tooltip-content" }, Pi = { class: "zoom-controls" }, Fi = { class: "zoom-label" }, Ii = /*#__PURE__*/ Q({
4806
+ ], Li = { class: "tooltip-content" }, Ri = { class: "zoom-controls" }, zi = { class: "zoom-label" }, Bi = /*#__PURE__*/ Q({
4689
4807
  __name: "DiagramCanvas",
4690
4808
  props: {
4691
4809
  nodes: {
@@ -4785,20 +4903,20 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4785
4903
  } else z.value = e.event.clientX - t.left + 12, B.value = e.event.clientY - t.top - 10;
4786
4904
  } else R.value = null;
4787
4905
  }, H = (e) => d.nodes.find((t) => t.id === e), U = (e) => {
4788
- if (G) return;
4906
+ if (W) return;
4789
4907
  let t = e.target;
4790
4908
  (t === x.value || t.classList.contains("grid-bg") || t.classList.contains("diagram-svg")) && f("select-canvas");
4791
- }, W = () => {
4909
+ }, ee = () => {
4792
4910
  f("reset-state");
4793
- }, G = !1, K = (e) => {
4794
- e.button === 0 && (M.value = !0, G = !1, N.value = {
4911
+ }, W = !1, G = (e) => {
4912
+ e.button === 0 && (M.value = !0, W = !1, N.value = {
4795
4913
  x: e.clientX,
4796
4914
  y: e.clientY
4797
4915
  }, e.preventDefault());
4798
- }, ee = (e) => {
4916
+ }, K = (e) => {
4799
4917
  if (M.value) {
4800
4918
  let t = e.clientX - N.value.x, n = e.clientY - N.value.y;
4801
- (Math.abs(t) > 3 || Math.abs(n) > 3) && (G = !0), E.value += t, D.value += n, N.value = {
4919
+ (Math.abs(t) > 3 || Math.abs(n) > 3) && (W = !0), E.value += t, D.value += n, N.value = {
4802
4920
  x: e.clientX,
4803
4921
  y: e.clientY
4804
4922
  };
@@ -4810,18 +4928,18 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4810
4928
  y: (e.clientY - t.top - D.value) / T.value
4811
4929
  };
4812
4930
  }
4813
- }, q = () => {
4931
+ }, te = () => {
4814
4932
  M.value = !1, j.value = !1, d.autoConnectMode && f("end-connect", null);
4815
- }, te = (e) => {
4933
+ }, q = (e) => {
4816
4934
  let t = e.deltaY > 0 ? -.1 : .1;
4817
4935
  T.value = Math.min(Math.max(T.value + t, .2), 3);
4818
4936
  }, J = () => {
4819
4937
  T.value = Math.min(T.value + .1, 3);
4820
- }, Y = () => {
4821
- T.value = Math.max(T.value - .1, .2);
4822
4938
  }, ne = () => {
4823
- T.value = 1, E.value = 0, D.value = 0;
4939
+ T.value = Math.max(T.value - .1, .2);
4824
4940
  }, re = () => {
4941
+ T.value = 1, E.value = 0, D.value = 0;
4942
+ }, Y = () => {
4825
4943
  f("fit-view");
4826
4944
  }, ie = (e, t, n) => {
4827
4945
  f("node-drag", e, t, n);
@@ -4843,21 +4961,21 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4843
4961
  }), g(() => {
4844
4962
  v.value?.removeEventListener("drop", se), window.removeEventListener("keydown", u);
4845
4963
  }), s({
4846
- fitView: re,
4847
- resetView: ne,
4964
+ fitView: Y,
4965
+ resetView: re,
4848
4966
  zoomIn: J,
4849
- zoomOut: Y,
4967
+ zoomOut: ne,
4850
4968
  svgRef: x
4851
4969
  }), (t, s) => (_(), i("div", {
4852
4970
  class: "diagram-canvas",
4853
4971
  ref_key: "containerRef",
4854
4972
  ref: v,
4855
- onMousedown: K,
4856
- onMousemove: ee,
4857
- onMouseup: q,
4858
- onWheel: A(te, ["prevent"]),
4973
+ onMousedown: G,
4974
+ onMousemove: K,
4975
+ onMouseup: te,
4976
+ onWheel: A(q, ["prevent"]),
4859
4977
  onClick: U,
4860
- onContextmenu: A(W, ["prevent"]),
4978
+ onContextmenu: A(ee, ["prevent"]),
4861
4979
  onKeydown: oe,
4862
4980
  tabindex: "0"
4863
4981
  }, [
@@ -4878,8 +4996,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4878
4996
  fill: "none",
4879
4997
  stroke: "#e8e8e8",
4880
4998
  "stroke-width": "1"
4881
- }, null, 8, Oi)], 8, Di), s[11] ||= o("<filter id=\"shadow\" x=\"-20%\" y=\"-20%\" width=\"140%\" height=\"140%\" data-v-878b95c1><feDropShadow dx=\"2\" dy=\"2\" stdDeviation=\"3\" flood-opacity=\"0.15\" data-v-878b95c1></feDropShadow></filter><filter id=\"glow\" data-v-878b95c1><feGaussianBlur stdDeviation=\"3\" result=\"coloredBlur\" data-v-878b95c1></feGaussianBlur><feMerge data-v-878b95c1><feMergeNode in=\"coloredBlur\" data-v-878b95c1></feMergeNode><feMergeNode in=\"SourceGraphic\" data-v-878b95c1></feMergeNode></feMerge></filter><filter id=\"glass-shadow\" x=\"-20%\" y=\"-20%\" width=\"140%\" height=\"140%\" data-v-878b95c1><feDropShadow dx=\"4\" dy=\"4\" stdDeviation=\"8\" flood-opacity=\"0.1\" data-v-878b95c1></feDropShadow><feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"1\" result=\"blur\" data-v-878b95c1></feGaussianBlur><feOffset in=\"blur\" dx=\"0\" dy=\"-2\" result=\"offsetBlur\" data-v-878b95c1></feOffset><feFlood flood-color=\"white\" flood-opacity=\"0.2\" result=\"color\" data-v-878b95c1></feFlood><feComposite in=\"color\" in2=\"offsetBlur\" operator=\"in\" result=\"shadow\" data-v-878b95c1></feComposite><feMerge data-v-878b95c1><feMergeNode in=\"shadow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"SourceGraphic\" data-v-878b95c1></feMergeNode></feMerge></filter><filter id=\"neon-glow\" x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" data-v-878b95c1><feGaussianBlur stdDeviation=\"4\" result=\"blur\" data-v-878b95c1></feGaussianBlur><feFlood flood-color=\"currentColor\" flood-opacity=\"0.6\" result=\"color\" data-v-878b95c1></feFlood><feComposite in=\"color\" in2=\"blur\" operator=\"in\" result=\"glow\" data-v-878b95c1></feComposite><feMerge data-v-878b95c1><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"SourceGraphic\" data-v-878b95c1></feMergeNode></feMerge></filter><filter id=\"neon-glow-strong\" x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" data-v-878b95c1><feGaussianBlur stdDeviation=\"6\" result=\"blur\" data-v-878b95c1></feGaussianBlur><feFlood flood-color=\"currentColor\" flood-opacity=\"0.8\" result=\"color\" data-v-878b95c1></feFlood><feComposite in=\"color\" in2=\"blur\" operator=\"in\" result=\"glow\" data-v-878b95c1></feComposite><feMerge data-v-878b95c1><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"SourceGraphic\" data-v-878b95c1></feMergeNode></feMerge></filter><filter id=\"sketch\" x=\"-10%\" y=\"-10%\" width=\"120%\" height=\"120%\" data-v-878b95c1><feTurbulence type=\"turbulence\" baseFrequency=\"0.03\" numOctaves=\"3\" seed=\"1\" result=\"turbulence\" data-v-878b95c1></feTurbulence><feDisplacementMap in=\"SourceGraphic\" in2=\"turbulence\" scale=\"4\" xChannelSelector=\"R\" yChannelSelector=\"G\" data-v-878b95c1></feDisplacementMap></filter>", 6)]), a("g", { transform: `translate(${E.value}, ${D.value}) scale(${T.value})` }, [
4882
- O.value ? (_(), i("rect", Ai)) : r("", !0),
4999
+ }, null, 8, Mi)], 8, ji), s[11] ||= o("<filter id=\"shadow\" x=\"-20%\" y=\"-20%\" width=\"140%\" height=\"140%\" data-v-878b95c1><feDropShadow dx=\"2\" dy=\"2\" stdDeviation=\"3\" flood-opacity=\"0.15\" data-v-878b95c1></feDropShadow></filter><filter id=\"glow\" data-v-878b95c1><feGaussianBlur stdDeviation=\"3\" result=\"coloredBlur\" data-v-878b95c1></feGaussianBlur><feMerge data-v-878b95c1><feMergeNode in=\"coloredBlur\" data-v-878b95c1></feMergeNode><feMergeNode in=\"SourceGraphic\" data-v-878b95c1></feMergeNode></feMerge></filter><filter id=\"glass-shadow\" x=\"-20%\" y=\"-20%\" width=\"140%\" height=\"140%\" data-v-878b95c1><feDropShadow dx=\"4\" dy=\"4\" stdDeviation=\"8\" flood-opacity=\"0.1\" data-v-878b95c1></feDropShadow><feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"1\" result=\"blur\" data-v-878b95c1></feGaussianBlur><feOffset in=\"blur\" dx=\"0\" dy=\"-2\" result=\"offsetBlur\" data-v-878b95c1></feOffset><feFlood flood-color=\"white\" flood-opacity=\"0.2\" result=\"color\" data-v-878b95c1></feFlood><feComposite in=\"color\" in2=\"offsetBlur\" operator=\"in\" result=\"shadow\" data-v-878b95c1></feComposite><feMerge data-v-878b95c1><feMergeNode in=\"shadow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"SourceGraphic\" data-v-878b95c1></feMergeNode></feMerge></filter><filter id=\"neon-glow\" x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" data-v-878b95c1><feGaussianBlur stdDeviation=\"4\" result=\"blur\" data-v-878b95c1></feGaussianBlur><feFlood flood-color=\"currentColor\" flood-opacity=\"0.6\" result=\"color\" data-v-878b95c1></feFlood><feComposite in=\"color\" in2=\"blur\" operator=\"in\" result=\"glow\" data-v-878b95c1></feComposite><feMerge data-v-878b95c1><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"SourceGraphic\" data-v-878b95c1></feMergeNode></feMerge></filter><filter id=\"neon-glow-strong\" x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" data-v-878b95c1><feGaussianBlur stdDeviation=\"6\" result=\"blur\" data-v-878b95c1></feGaussianBlur><feFlood flood-color=\"currentColor\" flood-opacity=\"0.8\" result=\"color\" data-v-878b95c1></feFlood><feComposite in=\"color\" in2=\"blur\" operator=\"in\" result=\"glow\" data-v-878b95c1></feComposite><feMerge data-v-878b95c1><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"glow\" data-v-878b95c1></feMergeNode><feMergeNode in=\"SourceGraphic\" data-v-878b95c1></feMergeNode></feMerge></filter><filter id=\"sketch\" x=\"-10%\" y=\"-10%\" width=\"120%\" height=\"120%\" data-v-878b95c1><feTurbulence type=\"turbulence\" baseFrequency=\"0.03\" numOctaves=\"3\" seed=\"1\" result=\"turbulence\" data-v-878b95c1></feTurbulence><feDisplacementMap in=\"SourceGraphic\" in2=\"turbulence\" scale=\"4\" xChannelSelector=\"R\" yChannelSelector=\"G\" data-v-878b95c1></feDisplacementMap></filter>", 6)]), a("g", { transform: `translate(${E.value}, ${D.value}) scale(${T.value})` }, [
5000
+ O.value ? (_(), i("rect", Pi)) : r("", !0),
4883
5001
  a("rect", {
4884
5002
  x: "-5000",
4885
5003
  y: "-5000",
@@ -4889,7 +5007,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4889
5007
  class: "canvas-bg",
4890
5008
  onClick: s[0] ||= (e) => f("select-canvas")
4891
5009
  }),
4892
- (_(!0), i(e, null, b(n.swimlanes, (e) => (_(), i("g", { key: e.id }, [c(Ti, {
5010
+ (_(!0), i(e, null, b(n.swimlanes, (e) => (_(), i("g", { key: e.id }, [c(ki, {
4893
5011
  swimlane: e,
4894
5012
  selected: n.selectedSwimlaneId === e.id,
4895
5013
  "selected-lane-id": n.selectedLaneId,
@@ -4907,7 +5025,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4907
5025
  "onSelect",
4908
5026
  "onSelectLane"
4909
5027
  ])]))), 128)),
4910
- (_(!0), i(e, null, b(n.edges, (e) => (_(), i("g", { key: e.id }, [c(Vr, {
5028
+ (_(!0), i(e, null, b(n.edges, (e) => (_(), i("g", { key: e.id }, [c(Gr, {
4911
5029
  edge: e,
4912
5030
  source: H(e.sourceId),
4913
5031
  target: H(e.targetId),
@@ -4925,7 +5043,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4925
5043
  "animation-playing",
4926
5044
  "onSelect"
4927
5045
  ])]))), 128)),
4928
- (_(!0), i(e, null, b(I.value, (e) => (_(), i("g", { key: e.id }, [c(rr, {
5046
+ (_(!0), i(e, null, b(I.value, (e) => (_(), i("g", { key: e.id }, [c(sr, {
4929
5047
  node: e,
4930
5048
  selected: n.selectedNodeId === e.id,
4931
5049
  "connect-mode": n.connectMode,
@@ -4956,7 +5074,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4956
5074
  "onEndConnect",
4957
5075
  "onAutoConnectStart"
4958
5076
  ])]))), 128)),
4959
- L.value && P.value ? (_(), i("g", ji, [a("line", {
5077
+ L.value && P.value ? (_(), i("g", Fi, [a("line", {
4960
5078
  x1: L.value.x + L.value.width / 2,
4961
5079
  y1: L.value.y + L.value.height / 2,
4962
5080
  x2: P.value.x,
@@ -4964,8 +5082,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4964
5082
  stroke: "#409eff",
4965
5083
  "stroke-width": "2",
4966
5084
  "stroke-dasharray": "5,5"
4967
- }, null, 8, Mi)])) : r("", !0)
4968
- ], 8, ki)], 8, Ei)),
5085
+ }, null, 8, Ii)])) : r("", !0)
5086
+ ], 8, Ni)], 8, Ai)),
4969
5087
  R.value && R.value.remark ? (_(), i("div", {
4970
5088
  key: 0,
4971
5089
  class: "remark-tooltip",
@@ -4973,23 +5091,23 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4973
5091
  left: z.value + "px",
4974
5092
  top: B.value + "px"
4975
5093
  })
4976
- }, [a("div", Ni, S(R.value.remark), 1)], 4)) : r("", !0),
4977
- a("div", Pi, [
5094
+ }, [a("div", Li, S(R.value.remark), 1)], 4)) : r("", !0),
5095
+ a("div", Ri, [
4978
5096
  a("button", {
4979
5097
  onClick: J,
4980
5098
  title: "放大"
4981
5099
  }, "+"),
4982
- a("span", Fi, S(Math.round(T.value * 100)) + "%", 1),
5100
+ a("span", zi, S(Math.round(T.value * 100)) + "%", 1),
4983
5101
  a("button", {
4984
- onClick: Y,
5102
+ onClick: ne,
4985
5103
  title: "缩小"
4986
5104
  }, "-"),
4987
5105
  a("button", {
4988
- onClick: ne,
5106
+ onClick: re,
4989
5107
  title: "重置视图"
4990
5108
  }, "⌂"),
4991
5109
  a("button", {
4992
- onClick: re,
5110
+ onClick: Y,
4993
5111
  title: "适应画布"
4994
5112
  }, "⊞"),
4995
5113
  a("button", {
@@ -5000,10 +5118,10 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5000
5118
  ])
5001
5119
  ], 544));
5002
5120
  }
5003
- }, [["__scopeId", "data-v-878b95c1"]]), Li = { class: "param-dialog" }, Ri = { class: "json-import" }, zi = { class: "param-list" }, Bi = { class: "col-index" }, Vi = { class: "col-action" }, Hi = {
5121
+ }, [["__scopeId", "data-v-878b95c1"]]), Vi = { class: "param-dialog" }, Hi = { class: "json-import" }, Ui = { class: "param-list" }, Wi = { class: "col-index" }, Gi = { class: "col-action" }, Ki = {
5004
5122
  key: 0,
5005
5123
  class: "param-empty"
5006
- }, Ui = /*#__PURE__*/ Q({
5124
+ }, qi = /*#__PURE__*/ Q({
5007
5125
  __name: "NodeParamDialog",
5008
5126
  props: {
5009
5127
  modelValue: {
@@ -5077,8 +5195,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5077
5195
  default: D(() => [...l[6] ||= [s("确定", -1)]]),
5078
5196
  _: 1
5079
5197
  })]),
5080
- default: D(() => [a("div", Li, [
5081
- a("div", Ri, [c(u, {
5198
+ default: D(() => [a("div", Vi, [
5199
+ a("div", Hi, [c(u, {
5082
5200
  modelValue: p.value,
5083
5201
  "onUpdate:modelValue": l[0] ||= (e) => p.value = e,
5084
5202
  type: "textarea",
@@ -5094,7 +5212,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5094
5212
  _: 1
5095
5213
  })]),
5096
5214
  c(T),
5097
- a("div", zi, [
5215
+ a("div", Ui, [
5098
5216
  l[3] ||= a("div", { class: "param-list-header" }, [
5099
5217
  a("span", { class: "col-index" }, "#"),
5100
5218
  a("span", { class: "col-name" }, "参数名"),
@@ -5107,7 +5225,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5107
5225
  key: t,
5108
5226
  class: "param-list-row"
5109
5227
  }, [
5110
- a("span", Bi, S(t + 1), 1),
5228
+ a("span", Wi, S(t + 1), 1),
5111
5229
  c(u, {
5112
5230
  modelValue: e.name,
5113
5231
  "onUpdate:modelValue": (t) => e.name = t,
@@ -5155,7 +5273,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5155
5273
  ]),
5156
5274
  _: 1
5157
5275
  }, 8, ["modelValue", "onUpdate:modelValue"]),
5158
- a("span", Vi, [c(y, {
5276
+ a("span", Gi, [c(y, {
5159
5277
  size: "small",
5160
5278
  type: "danger",
5161
5279
  circle: "",
@@ -5168,7 +5286,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5168
5286
  _: 1
5169
5287
  }, 8, ["onClick"])])
5170
5288
  ]))), 128)),
5171
- f.value.length === 0 ? (_(), i("div", Hi, " 暂无参数,点击下方按钮添加 ")) : r("", !0)
5289
+ f.value.length === 0 ? (_(), i("div", Ki, " 暂无参数,点击下方按钮添加 ")) : r("", !0)
5172
5290
  ]),
5173
5291
  c(y, {
5174
5292
  size: "small",
@@ -5176,7 +5294,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5176
5294
  style: { "margin-top": "8px" }
5177
5295
  }, {
5178
5296
  default: D(() => [c(k, null, {
5179
- default: D(() => [c(C(q))]),
5297
+ default: D(() => [c(C(te))]),
5180
5298
  _: 1
5181
5299
  }), l[4] ||= s(" 添加参数 ", -1)]),
5182
5300
  _: 1
@@ -5186,48 +5304,48 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5186
5304
  }, 8, ["modelValue", "title"]);
5187
5305
  };
5188
5306
  }
5189
- }, [["__scopeId", "data-v-8ae88a5a"]]), Wi = { class: "properties-panel" }, Gi = { class: "panel-section theme-section" }, Ki = { class: "theme-grid" }, qi = ["onClick"], Ji = { class: "theme-name" }, Yi = {
5307
+ }, [["__scopeId", "data-v-8ae88a5a"]]), Ji = { class: "properties-panel" }, Yi = { class: "panel-section theme-section" }, Xi = { class: "theme-grid" }, Zi = ["onClick"], Qi = { class: "theme-name" }, $i = {
5190
5308
  key: 0,
5191
5309
  class: "panel-section"
5192
- }, Xi = { class: "prop-row" }, Zi = {
5310
+ }, ea = { class: "prop-row" }, ta = {
5193
5311
  key: 0,
5194
5312
  class: "prop-row prop-row-col"
5195
- }, Qi = { style: {
5313
+ }, na = { style: {
5196
5314
  display: "flex",
5197
5315
  gap: "4px",
5198
5316
  width: "100%",
5199
5317
  "align-items": "center"
5200
- } }, $i = {
5318
+ } }, ra = {
5201
5319
  key: 0,
5202
5320
  class: "image-preview"
5203
- }, ea = ["src"], ta = { class: "prop-row" }, na = { class: "prop-row" }, ra = { class: "prop-row" }, ia = { class: "prop-row" }, aa = { class: "prop-row" }, oa = { class: "prop-row" }, sa = { class: "prop-row" }, ca = { class: "prop-row" }, la = { class: "prop-row" }, ua = {
5321
+ }, ia = ["src"], aa = { class: "prop-row" }, oa = { class: "prop-row" }, sa = { class: "prop-row" }, ca = { class: "prop-row" }, la = { class: "prop-row" }, ua = { class: "prop-row" }, da = { class: "prop-row" }, fa = { class: "prop-row" }, pa = { class: "prop-row" }, ma = {
5204
5322
  key: 1,
5205
5323
  class: "prop-row prop-row-col"
5206
- }, da = { class: "prop-row-main" }, fa = { class: "prop-row" }, pa = {
5324
+ }, ha = { class: "prop-row-main" }, ga = { class: "prop-row" }, _a = {
5207
5325
  key: 2,
5208
5326
  class: "prop-row"
5209
- }, ma = {
5327
+ }, va = {
5210
5328
  key: 3,
5211
5329
  class: "prop-row"
5212
- }, ha = { class: "prop-row" }, ga = { class: "prop-row prop-row-col" }, _a = { class: "prop-row" }, va = { class: "prop-row" }, ya = { class: "prop-row" }, ba = { class: "prop-actions" }, xa = {
5330
+ }, ya = { class: "prop-row" }, ba = { class: "prop-row prop-row-col" }, xa = { class: "prop-row" }, Sa = { class: "prop-row" }, Ca = { class: "prop-row" }, wa = { class: "prop-actions" }, Ta = {
5213
5331
  key: 1,
5214
5332
  class: "panel-section"
5215
- }, Sa = { class: "prop-row" }, Ca = { class: "prop-row" }, wa = { class: "prop-row" }, Ta = { class: "prop-row" }, Ea = { class: "prop-row" }, Da = { class: "prop-row" }, Oa = { class: "prop-row" }, ka = {
5333
+ }, Ea = { class: "prop-row" }, Da = { class: "prop-row" }, Oa = { class: "prop-row" }, ka = { class: "prop-row" }, Aa = { class: "prop-row" }, ja = { class: "prop-row" }, Ma = { class: "prop-row" }, Na = {
5216
5334
  key: 0,
5217
5335
  class: "prop-row"
5218
- }, Aa = {
5336
+ }, Pa = {
5219
5337
  key: 1,
5220
5338
  class: "prop-row"
5221
- }, ja = { class: "prop-row prop-row-col" }, Ma = { class: "prop-actions" }, Na = {
5339
+ }, Fa = { class: "prop-row prop-row-col" }, Ia = { class: "prop-actions" }, La = {
5222
5340
  key: 2,
5223
5341
  class: "panel-section"
5224
- }, Pa = { class: "prop-row" }, Fa = { class: "prop-row" }, Ia = { class: "prop-row" }, La = { class: "prop-row" }, Ra = { class: "prop-row" }, za = { class: "prop-row" }, Ba = { class: "prop-row" }, Va = { class: "prop-row" }, Ha = { class: "prop-row" }, Ua = { class: "prop-row" }, Wa = { class: "prop-row" }, Ga = {
5342
+ }, Ra = { class: "prop-row" }, za = { class: "prop-row" }, Ba = { class: "prop-row" }, Va = { class: "prop-row" }, Ha = { class: "prop-row" }, Ua = { class: "prop-row" }, Wa = { class: "prop-row" }, Ga = { class: "prop-row" }, Ka = { class: "prop-row" }, qa = { class: "prop-row" }, Ja = { class: "prop-row" }, Ya = {
5225
5343
  key: 3,
5226
5344
  class: "panel-section"
5227
- }, Ka = { class: "prop-row" }, qa = { class: "prop-row" }, Ja = { class: "prop-row" }, Ya = { class: "prop-row" }, Xa = { class: "prop-row" }, Za = { class: "prop-row" }, Qa = { class: "prop-row" }, $a = { class: "prop-row" }, eo = { class: "prop-row" }, to = { class: "prop-row" }, no = { class: "prop-row" }, ro = { class: "prop-row" }, io = { class: "prop-row" }, ao = { class: "prop-actions" }, oo = {
5345
+ }, Xa = { class: "prop-row" }, Za = { class: "prop-row" }, Qa = { class: "prop-row" }, $a = { class: "prop-row" }, eo = { class: "prop-row" }, to = { class: "prop-row" }, no = { class: "prop-row" }, ro = { class: "prop-row" }, io = { class: "prop-row" }, ao = { class: "prop-row" }, oo = { class: "prop-row" }, so = { class: "prop-row" }, co = { class: "prop-row" }, lo = { class: "prop-actions" }, uo = {
5228
5346
  key: 4,
5229
5347
  class: "panel-section empty"
5230
- }, so = /*#__PURE__*/ Q({
5348
+ }, fo = /*#__PURE__*/ Q({
5231
5349
  __name: "PropertiesPanel",
5232
5350
  props: {
5233
5351
  selectedNode: {
@@ -5317,25 +5435,25 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5317
5435
  u.selectedNode && (u.selectedNode.image = "", N());
5318
5436
  };
5319
5437
  return (t, l) => {
5320
- let u = x("el-tag"), d = x("el-input"), y = x("el-icon"), L = x("el-button"), R = x("el-upload"), z = x("el-input-number"), B = x("el-color-picker"), V = x("el-option"), H = x("el-select"), W = x("el-checkbox"), G = x("el-slider"), K = x("el-dialog");
5321
- return _(), i("div", Wi, [
5322
- a("div", Gi, [l[61] ||= a("h4", null, "画布主题", -1), a("div", Ki, [(_(!0), i(e, null, b(C(X), (e, n) => (_(), i("div", {
5438
+ let u = x("el-tag"), d = x("el-input"), y = x("el-icon"), L = x("el-button"), R = x("el-upload"), z = x("el-input-number"), B = x("el-color-picker"), V = x("el-option"), H = x("el-select"), ee = x("el-checkbox"), W = x("el-slider"), G = x("el-dialog");
5439
+ return _(), i("div", Ji, [
5440
+ a("div", Yi, [l[61] ||= a("h4", null, "画布主题", -1), a("div", Xi, [(_(!0), i(e, null, b(C(X), (e, n) => (_(), i("div", {
5323
5441
  key: n,
5324
5442
  class: p(["theme-item", { active: o.currentTheme === n }]),
5325
5443
  onClick: (e) => t.$emit("change-theme", n)
5326
- }, [a("div", { class: p(["theme-preview", `theme-preview-${n}`]) }, [...l[60] ||= [a("div", { class: "preview-rect" }, null, -1), a("div", { class: "preview-circle" }, null, -1)]], 2), a("span", Ji, S(e.name), 1)], 10, qi))), 128))])]),
5327
- o.selectedNode ? (_(), i("div", Yi, [
5444
+ }, [a("div", { class: p(["theme-preview", `theme-preview-${n}`]) }, [...l[60] ||= [a("div", { class: "preview-rect" }, null, -1), a("div", { class: "preview-circle" }, null, -1)]], 2), a("span", Qi, S(e.name), 1)], 10, Zi))), 128))])]),
5445
+ o.selectedNode ? (_(), i("div", $i, [
5328
5446
  l[86] ||= a("h4", null, "节点属性", -1),
5329
- a("div", Xi, [l[62] ||= a("label", null, "类型", -1), c(u, {
5447
+ a("div", ea, [l[62] ||= a("label", null, "类型", -1), c(u, {
5330
5448
  size: "small",
5331
5449
  type: "info"
5332
5450
  }, {
5333
5451
  default: D(() => [s(S(O(o.selectedNode.type)), 1)]),
5334
5452
  _: 1
5335
5453
  })]),
5336
- o.selectedNode.type === "custom" ? (_(), i("div", Zi, [
5454
+ o.selectedNode.type === "custom" ? (_(), i("div", ta, [
5337
5455
  l[63] ||= a("label", null, "组件图片", -1),
5338
- a("div", Qi, [
5456
+ a("div", na, [
5339
5457
  c(d, {
5340
5458
  modelValue: o.selectedNode.image,
5341
5459
  "onUpdate:modelValue": l[0] ||= (e) => o.selectedNode.image = e,
@@ -5353,7 +5471,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5353
5471
  circle: ""
5354
5472
  }, {
5355
5473
  default: D(() => [c(y, null, {
5356
- default: D(() => [c(C(ee))]),
5474
+ default: D(() => [c(C(K))]),
5357
5475
  _: 1
5358
5476
  })]),
5359
5477
  _: 1
@@ -5374,7 +5492,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5374
5492
  _: 1
5375
5493
  })) : r("", !0)
5376
5494
  ]),
5377
- o.selectedNode.image ? (_(), i("div", $i, [a("img", {
5495
+ o.selectedNode.image ? (_(), i("div", ra, [a("img", {
5378
5496
  src: o.selectedNode.image,
5379
5497
  style: {
5380
5498
  "max-width": "100%",
@@ -5382,15 +5500,15 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5382
5500
  border: "1px solid #e4e7ed",
5383
5501
  "border-radius": "4px"
5384
5502
  }
5385
- }, null, 8, ea)])) : r("", !0)
5503
+ }, null, 8, ia)])) : r("", !0)
5386
5504
  ])) : r("", !0),
5387
- a("div", ta, [l[64] ||= a("label", null, "名称", -1), c(d, {
5505
+ a("div", aa, [l[64] ||= a("label", null, "名称", -1), c(d, {
5388
5506
  size: "small",
5389
5507
  modelValue: o.selectedNode.label,
5390
5508
  "onUpdate:modelValue": l[1] ||= (e) => o.selectedNode.label = e,
5391
5509
  onChange: N
5392
5510
  }, null, 8, ["modelValue"])]),
5393
- a("div", na, [l[65] ||= a("label", null, "宽度", -1), c(z, {
5511
+ a("div", oa, [l[65] ||= a("label", null, "宽度", -1), c(z, {
5394
5512
  size: "small",
5395
5513
  modelValue: o.selectedNode.width,
5396
5514
  "onUpdate:modelValue": l[2] ||= (e) => o.selectedNode.width = e,
@@ -5398,7 +5516,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5398
5516
  max: 500,
5399
5517
  onChange: N
5400
5518
  }, null, 8, ["modelValue"])]),
5401
- a("div", ra, [l[66] ||= a("label", null, "高度", -1), c(z, {
5519
+ a("div", sa, [l[66] ||= a("label", null, "高度", -1), c(z, {
5402
5520
  size: "small",
5403
5521
  modelValue: o.selectedNode.height,
5404
5522
  "onUpdate:modelValue": l[3] ||= (e) => o.selectedNode.height = e,
@@ -5406,19 +5524,19 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5406
5524
  max: 400,
5407
5525
  onChange: N
5408
5526
  }, null, 8, ["modelValue"])]),
5409
- a("div", ia, [l[67] ||= a("label", null, "填充色", -1), c(B, {
5527
+ a("div", ca, [l[67] ||= a("label", null, "填充色", -1), c(B, {
5410
5528
  size: "small",
5411
5529
  modelValue: o.selectedNode.color,
5412
5530
  "onUpdate:modelValue": l[4] ||= (e) => o.selectedNode.color = e,
5413
5531
  onChange: N
5414
5532
  }, null, 8, ["modelValue"])]),
5415
- a("div", aa, [l[68] ||= a("label", null, "边框色", -1), c(B, {
5533
+ a("div", la, [l[68] ||= a("label", null, "边框色", -1), c(B, {
5416
5534
  size: "small",
5417
5535
  modelValue: o.selectedNode.strokeColor,
5418
5536
  "onUpdate:modelValue": l[5] ||= (e) => o.selectedNode.strokeColor = e,
5419
5537
  onChange: N
5420
5538
  }, null, 8, ["modelValue"])]),
5421
- a("div", oa, [l[69] ||= a("label", null, "边框宽度", -1), c(z, {
5539
+ a("div", ua, [l[69] ||= a("label", null, "边框宽度", -1), c(z, {
5422
5540
  size: "small",
5423
5541
  modelValue: o.selectedNode.strokeWidth,
5424
5542
  "onUpdate:modelValue": l[6] ||= (e) => o.selectedNode.strokeWidth = e,
@@ -5426,13 +5544,13 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5426
5544
  max: 10,
5427
5545
  onChange: N
5428
5546
  }, null, 8, ["modelValue"])]),
5429
- a("div", sa, [l[70] ||= a("label", null, "文字色", -1), c(B, {
5547
+ a("div", da, [l[70] ||= a("label", null, "文字色", -1), c(B, {
5430
5548
  size: "small",
5431
5549
  modelValue: o.selectedNode.textColor,
5432
5550
  "onUpdate:modelValue": l[7] ||= (e) => o.selectedNode.textColor = e,
5433
5551
  onChange: N
5434
5552
  }, null, 8, ["modelValue"])]),
5435
- a("div", ca, [l[71] ||= a("label", null, "字号", -1), c(z, {
5553
+ a("div", fa, [l[71] ||= a("label", null, "字号", -1), c(z, {
5436
5554
  size: "small",
5437
5555
  modelValue: o.selectedNode.fontSize,
5438
5556
  "onUpdate:modelValue": l[8] ||= (e) => o.selectedNode.fontSize = e,
@@ -5440,7 +5558,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5440
5558
  max: 36,
5441
5559
  onChange: N
5442
5560
  }, null, 8, ["modelValue"])]),
5443
- a("div", la, [l[72] ||= a("label", null, "文字位置", -1), c(H, {
5561
+ a("div", pa, [l[72] ||= a("label", null, "文字位置", -1), c(H, {
5444
5562
  size: "small",
5445
5563
  modelValue: o.selectedNode.labelPosition,
5446
5564
  "onUpdate:modelValue": l[9] ||= (e) => o.selectedNode.labelPosition = e,
@@ -5474,7 +5592,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5474
5592
  ]),
5475
5593
  _: 1
5476
5594
  }, 8, ["modelValue"])]),
5477
- o.selectedNode.labelPosition === "left" || o.selectedNode.labelPosition === "right" ? (_(), i("div", ua, [a("div", da, [l[73] ||= a("label", null, "文字方向", -1), c(z, {
5595
+ o.selectedNode.labelPosition === "left" || o.selectedNode.labelPosition === "right" ? (_(), i("div", ma, [a("div", ha, [l[73] ||= a("label", null, "文字方向", -1), c(z, {
5478
5596
  size: "small",
5479
5597
  modelValue: o.selectedNode.textRotation,
5480
5598
  "onUpdate:modelValue": l[10] ||= (e) => o.selectedNode.textRotation = e,
@@ -5483,7 +5601,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5483
5601
  step: 15,
5484
5602
  onChange: N
5485
5603
  }, null, 8, ["modelValue"])]), l[74] ||= a("span", { class: "prop-hint" }, "-90°=向上 \xA0 0°=向右 \xA0 90°=向下", -1)])) : r("", !0),
5486
- a("div", fa, [l[75] ||= a("label", null, "动画", -1), c(H, {
5604
+ a("div", ga, [l[75] ||= a("label", null, "动画", -1), c(H, {
5487
5605
  size: "small",
5488
5606
  modelValue: o.selectedNode.animation,
5489
5607
  "onUpdate:modelValue": l[11] ||= (e) => o.selectedNode.animation = e,
@@ -5496,7 +5614,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5496
5614
  }, null, 8, ["value", "label"]))), 128))]),
5497
5615
  _: 1
5498
5616
  }, 8, ["modelValue"])]),
5499
- o.selectedNode.animation === "none" ? r("", !0) : (_(), i("div", pa, [l[76] ||= a("label", null, "动画时长(秒)", -1), c(z, {
5617
+ o.selectedNode.animation === "none" ? r("", !0) : (_(), i("div", _a, [l[76] ||= a("label", null, "动画时长(秒)", -1), c(z, {
5500
5618
  size: "small",
5501
5619
  modelValue: o.selectedNode.animationDuration,
5502
5620
  "onUpdate:modelValue": l[12] ||= (e) => o.selectedNode.animationDuration = e,
@@ -5505,7 +5623,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5505
5623
  step: .5,
5506
5624
  onChange: N
5507
5625
  }, null, 8, ["modelValue"])])),
5508
- o.selectedNode.animation === "none" ? r("", !0) : (_(), i("div", ma, [l[77] ||= a("label", null, "延迟(秒)", -1), c(z, {
5626
+ o.selectedNode.animation === "none" ? r("", !0) : (_(), i("div", va, [l[77] ||= a("label", null, "延迟(秒)", -1), c(z, {
5509
5627
  size: "small",
5510
5628
  modelValue: o.selectedNode.animationDelay,
5511
5629
  "onUpdate:modelValue": l[13] ||= (e) => o.selectedNode.animationDelay = e,
@@ -5514,7 +5632,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5514
5632
  step: .5,
5515
5633
  onChange: N
5516
5634
  }, null, 8, ["modelValue"])])),
5517
- a("div", ha, [c(W, {
5635
+ a("div", ya, [c(ee, {
5518
5636
  modelValue: o.selectedNode.locked,
5519
5637
  "onUpdate:modelValue": l[14] ||= (e) => o.selectedNode.locked = e,
5520
5638
  onChange: N
@@ -5522,7 +5640,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5522
5640
  default: D(() => [...l[78] ||= [s("锁定", -1)]]),
5523
5641
  _: 1
5524
5642
  }, 8, ["modelValue"])]),
5525
- a("div", ga, [l[79] ||= a("label", null, "备注说明", -1), c(d, {
5643
+ a("div", ba, [l[79] ||= a("label", null, "备注说明", -1), c(d, {
5526
5644
  modelValue: o.selectedNode.remark,
5527
5645
  "onUpdate:modelValue": l[15] ||= (e) => o.selectedNode.remark = e,
5528
5646
  type: "textarea",
@@ -5530,7 +5648,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5530
5648
  placeholder: "输入备注说明...",
5531
5649
  onChange: N
5532
5650
  }, null, 8, ["modelValue"])]),
5533
- a("div", _a, [
5651
+ a("div", xa, [
5534
5652
  l[80] ||= a("label", null, "输入参数", -1),
5535
5653
  c(u, {
5536
5654
  size: "small",
@@ -5551,7 +5669,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5551
5669
  _: 1
5552
5670
  })
5553
5671
  ]),
5554
- a("div", va, [
5672
+ a("div", Sa, [
5555
5673
  l[81] ||= a("label", null, "输出参数", -1),
5556
5674
  c(u, {
5557
5675
  size: "small",
@@ -5572,7 +5690,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5572
5690
  _: 1
5573
5691
  })
5574
5692
  ]),
5575
- a("div", ya, [l[82] ||= a("label", null, "动作设置", -1), c(L, {
5693
+ a("div", Ca, [l[82] ||= a("label", null, "动作设置", -1), c(L, {
5576
5694
  size: "small",
5577
5695
  circle: "",
5578
5696
  onClick: l[16] ||= (e) => h.value = !0
@@ -5583,7 +5701,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5583
5701
  })]),
5584
5702
  _: 1
5585
5703
  })]),
5586
- a("div", ba, [
5704
+ a("div", wa, [
5587
5705
  c(L, {
5588
5706
  size: "small",
5589
5707
  onClick: l[17] ||= (e) => t.$emit("bring-front")
@@ -5607,15 +5725,15 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5607
5725
  _: 1
5608
5726
  })
5609
5727
  ])
5610
- ])) : o.selectedEdge ? (_(), i("div", xa, [
5728
+ ])) : o.selectedEdge ? (_(), i("div", Ta, [
5611
5729
  l[98] ||= a("h4", null, "连线属性", -1),
5612
- a("div", Sa, [l[87] ||= a("label", null, "标签", -1), c(d, {
5730
+ a("div", Ea, [l[87] ||= a("label", null, "标签", -1), c(d, {
5613
5731
  size: "small",
5614
5732
  modelValue: o.selectedEdge.label,
5615
5733
  "onUpdate:modelValue": l[20] ||= (e) => o.selectedEdge.label = e,
5616
5734
  onChange: N
5617
5735
  }, null, 8, ["modelValue"])]),
5618
- a("div", Ca, [l[88] ||= a("label", null, "线型", -1), c(H, {
5736
+ a("div", Da, [l[88] ||= a("label", null, "线型", -1), c(H, {
5619
5737
  size: "small",
5620
5738
  modelValue: o.selectedEdge.lineStyle,
5621
5739
  "onUpdate:modelValue": l[21] ||= (e) => o.selectedEdge.lineStyle = e,
@@ -5628,13 +5746,13 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5628
5746
  }, null, 8, ["value", "label"]))), 128))]),
5629
5747
  _: 1
5630
5748
  }, 8, ["modelValue"])]),
5631
- a("div", wa, [l[89] ||= a("label", null, "线色", -1), c(B, {
5749
+ a("div", Oa, [l[89] ||= a("label", null, "线色", -1), c(B, {
5632
5750
  size: "small",
5633
5751
  modelValue: o.selectedEdge.lineColor,
5634
5752
  "onUpdate:modelValue": l[22] ||= (e) => o.selectedEdge.lineColor = e,
5635
5753
  onChange: N
5636
5754
  }, null, 8, ["modelValue"])]),
5637
- a("div", Ta, [l[90] ||= a("label", null, "线宽", -1), c(z, {
5755
+ a("div", ka, [l[90] ||= a("label", null, "线宽", -1), c(z, {
5638
5756
  size: "small",
5639
5757
  modelValue: o.selectedEdge.lineWidth,
5640
5758
  "onUpdate:modelValue": l[23] ||= (e) => o.selectedEdge.lineWidth = e,
@@ -5642,7 +5760,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5642
5760
  max: 8,
5643
5761
  onChange: N
5644
5762
  }, null, 8, ["modelValue"])]),
5645
- a("div", Ea, [l[91] ||= a("label", null, "箭头", -1), c(H, {
5763
+ a("div", Aa, [l[91] ||= a("label", null, "箭头", -1), c(H, {
5646
5764
  size: "small",
5647
5765
  modelValue: o.selectedEdge.arrowType,
5648
5766
  "onUpdate:modelValue": l[24] ||= (e) => o.selectedEdge.arrowType = e,
@@ -5657,7 +5775,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5657
5775
  })]),
5658
5776
  _: 1
5659
5777
  }, 8, ["modelValue"])]),
5660
- a("div", Da, [l[92] ||= a("label", null, "曲线", -1), c(H, {
5778
+ a("div", ja, [l[92] ||= a("label", null, "曲线", -1), c(H, {
5661
5779
  size: "small",
5662
5780
  modelValue: o.selectedEdge.curveType,
5663
5781
  "onUpdate:modelValue": l[25] ||= (e) => o.selectedEdge.curveType = e,
@@ -5672,7 +5790,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5672
5790
  })]),
5673
5791
  _: 1
5674
5792
  }, 8, ["modelValue"])]),
5675
- a("div", Oa, [l[93] ||= a("label", null, "动画", -1), c(H, {
5793
+ a("div", Ma, [l[93] ||= a("label", null, "动画", -1), c(H, {
5676
5794
  size: "small",
5677
5795
  modelValue: o.selectedEdge.animation,
5678
5796
  "onUpdate:modelValue": l[26] ||= (e) => o.selectedEdge.animation = e,
@@ -5685,7 +5803,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5685
5803
  }, null, 8, ["value", "label"])), 64))]),
5686
5804
  _: 1
5687
5805
  }, 8, ["modelValue"])]),
5688
- o.selectedEdge.animation === "none" ? r("", !0) : (_(), i("div", ka, [l[94] ||= a("label", null, "动画时长(秒)", -1), c(z, {
5806
+ o.selectedEdge.animation === "none" ? r("", !0) : (_(), i("div", Na, [l[94] ||= a("label", null, "动画时长(秒)", -1), c(z, {
5689
5807
  size: "small",
5690
5808
  modelValue: o.selectedEdge.animationDuration,
5691
5809
  "onUpdate:modelValue": l[27] ||= (e) => o.selectedEdge.animationDuration = e,
@@ -5694,13 +5812,13 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5694
5812
  step: .5,
5695
5813
  onChange: N
5696
5814
  }, null, 8, ["modelValue"])])),
5697
- o.selectedEdge.animation === "none" ? r("", !0) : (_(), i("div", Aa, [l[95] ||= a("label", null, "粒子颜色", -1), c(B, {
5815
+ o.selectedEdge.animation === "none" ? r("", !0) : (_(), i("div", Pa, [l[95] ||= a("label", null, "粒子颜色", -1), c(B, {
5698
5816
  size: "small",
5699
5817
  modelValue: o.selectedEdge.particleColor,
5700
5818
  "onUpdate:modelValue": l[28] ||= (e) => o.selectedEdge.particleColor = e,
5701
5819
  onChange: N
5702
5820
  }, null, 8, ["modelValue"])])),
5703
- a("div", ja, [l[96] ||= a("label", null, "备注说明", -1), c(d, {
5821
+ a("div", Fa, [l[96] ||= a("label", null, "备注说明", -1), c(d, {
5704
5822
  modelValue: o.selectedEdge.remark,
5705
5823
  "onUpdate:modelValue": l[29] ||= (e) => o.selectedEdge.remark = e,
5706
5824
  type: "textarea",
@@ -5708,7 +5826,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5708
5826
  placeholder: "输入备注说明...",
5709
5827
  onChange: N
5710
5828
  }, null, 8, ["modelValue"])]),
5711
- a("div", Ma, [c(L, {
5829
+ a("div", Ia, [c(L, {
5712
5830
  size: "small",
5713
5831
  type: "danger",
5714
5832
  onClick: l[30] ||= (e) => t.$emit("delete-edge")
@@ -5716,15 +5834,15 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5716
5834
  default: D(() => [...l[97] ||= [s("删除连线", -1)]]),
5717
5835
  _: 1
5718
5836
  })])
5719
- ])) : o.selectedLane ? (_(), i("div", Na, [
5837
+ ])) : o.selectedLane ? (_(), i("div", La, [
5720
5838
  l[110] ||= a("h4", null, "泳道名称属性", -1),
5721
- a("div", Pa, [l[99] ||= a("label", null, "名称", -1), c(d, {
5839
+ a("div", Ra, [l[99] ||= a("label", null, "名称", -1), c(d, {
5722
5840
  size: "small",
5723
5841
  modelValue: o.selectedLane.name,
5724
5842
  "onUpdate:modelValue": l[31] ||= (e) => o.selectedLane.name = e,
5725
5843
  onChange: P
5726
5844
  }, null, 8, ["modelValue"])]),
5727
- a("div", Fa, [l[100] ||= a("label", null, "高度", -1), c(z, {
5845
+ a("div", za, [l[100] ||= a("label", null, "高度", -1), c(z, {
5728
5846
  size: "small",
5729
5847
  modelValue: o.selectedLane.height,
5730
5848
  "onUpdate:modelValue": l[32] ||= (e) => o.selectedLane.height = e,
@@ -5732,20 +5850,20 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5732
5850
  max: 500,
5733
5851
  onChange: P
5734
5852
  }, null, 8, ["modelValue"])]),
5735
- a("div", Ia, [l[101] ||= a("label", null, "背景色", -1), c(B, {
5853
+ a("div", Ba, [l[101] ||= a("label", null, "背景色", -1), c(B, {
5736
5854
  size: "small",
5737
5855
  modelValue: o.selectedLane.color,
5738
5856
  "onUpdate:modelValue": l[33] ||= (e) => o.selectedLane.color = e,
5739
5857
  onChange: P
5740
5858
  }, null, 8, ["modelValue"])]),
5741
- a("div", La, [l[102] ||= a("label", null, "名称行背景", -1), c(B, {
5859
+ a("div", Va, [l[102] ||= a("label", null, "名称行背景", -1), c(B, {
5742
5860
  size: "small",
5743
5861
  modelValue: o.selectedLane.headerColor,
5744
5862
  "onUpdate:modelValue": l[34] ||= (e) => o.selectedLane.headerColor = e,
5745
5863
  "show-alpha": "",
5746
5864
  onChange: P
5747
5865
  }, null, 8, ["modelValue"])]),
5748
- a("div", Ra, [l[103] ||= a("label", null, "背景透明度", -1), c(G, {
5866
+ a("div", Ha, [l[103] ||= a("label", null, "背景透明度", -1), c(W, {
5749
5867
  size: "small",
5750
5868
  modelValue: j.value,
5751
5869
  "onUpdate:modelValue": l[35] ||= (e) => j.value = e,
@@ -5758,13 +5876,13 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5758
5876
  },
5759
5877
  onChange: M
5760
5878
  }, null, 8, ["modelValue"])]),
5761
- a("div", za, [l[104] ||= a("label", null, "文字色", -1), c(B, {
5879
+ a("div", Ua, [l[104] ||= a("label", null, "文字色", -1), c(B, {
5762
5880
  size: "small",
5763
5881
  modelValue: o.selectedLane.textColor,
5764
5882
  "onUpdate:modelValue": l[36] ||= (e) => o.selectedLane.textColor = e,
5765
5883
  onChange: P
5766
5884
  }, null, 8, ["modelValue"])]),
5767
- a("div", Ba, [l[105] ||= a("label", null, "字号", -1), c(z, {
5885
+ a("div", Wa, [l[105] ||= a("label", null, "字号", -1), c(z, {
5768
5886
  size: "small",
5769
5887
  modelValue: o.selectedLane.fontSize,
5770
5888
  "onUpdate:modelValue": l[37] ||= (e) => o.selectedLane.fontSize = e,
@@ -5772,7 +5890,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5772
5890
  max: 36,
5773
5891
  onChange: P
5774
5892
  }, null, 8, ["modelValue"])]),
5775
- a("div", Va, [l[106] ||= a("label", null, "字体", -1), c(H, {
5893
+ a("div", Ga, [l[106] ||= a("label", null, "字体", -1), c(H, {
5776
5894
  size: "small",
5777
5895
  modelValue: o.selectedLane.fontFamily,
5778
5896
  "onUpdate:modelValue": l[38] ||= (e) => o.selectedLane.fontFamily = e,
@@ -5814,7 +5932,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5814
5932
  ]),
5815
5933
  _: 1
5816
5934
  }, 8, ["modelValue"])]),
5817
- a("div", Ha, [l[107] ||= a("label", null, "字重", -1), c(H, {
5935
+ a("div", Ka, [l[107] ||= a("label", null, "字重", -1), c(H, {
5818
5936
  size: "small",
5819
5937
  modelValue: o.selectedLane.fontWeight,
5820
5938
  "onUpdate:modelValue": l[39] ||= (e) => o.selectedLane.fontWeight = e,
@@ -5840,7 +5958,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5840
5958
  ]),
5841
5959
  _: 1
5842
5960
  }, 8, ["modelValue"])]),
5843
- a("div", Ua, [l[108] ||= a("label", null, "字体样式", -1), c(H, {
5961
+ a("div", qa, [l[108] ||= a("label", null, "字体样式", -1), c(H, {
5844
5962
  size: "small",
5845
5963
  modelValue: o.selectedLane.fontStyle,
5846
5964
  "onUpdate:modelValue": l[40] ||= (e) => o.selectedLane.fontStyle = e,
@@ -5862,7 +5980,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5862
5980
  ]),
5863
5981
  _: 1
5864
5982
  }, 8, ["modelValue"])]),
5865
- a("div", Wa, [l[109] ||= a("label", null, "文本对齐", -1), c(H, {
5983
+ a("div", Ja, [l[109] ||= a("label", null, "文本对齐", -1), c(H, {
5866
5984
  size: "small",
5867
5985
  modelValue: o.selectedLane.textAlign,
5868
5986
  "onUpdate:modelValue": l[41] ||= (e) => o.selectedLane.textAlign = e,
@@ -5884,19 +6002,19 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5884
6002
  ]),
5885
6003
  _: 1
5886
6004
  }, 8, ["modelValue"])])
5887
- ])) : o.selectedSwimlane ? (_(), i("div", Ga, [
6005
+ ])) : o.selectedSwimlane ? (_(), i("div", Ya, [
5888
6006
  l[126] ||= a("h4", null, "泳道属性", -1),
5889
- a("div", Ka, [l[111] ||= a("label", null, "名称", -1), c(d, {
6007
+ a("div", Xa, [l[111] ||= a("label", null, "名称", -1), c(d, {
5890
6008
  size: "small",
5891
6009
  modelValue: o.selectedSwimlane.name,
5892
6010
  "onUpdate:modelValue": l[42] ||= (e) => o.selectedSwimlane.name = e,
5893
6011
  onChange: N
5894
6012
  }, null, 8, ["modelValue"])]),
5895
- a("div", qa, [l[112] ||= a("label", null, "方向", -1), c(u, { size: "small" }, {
6013
+ a("div", Za, [l[112] ||= a("label", null, "方向", -1), c(u, { size: "small" }, {
5896
6014
  default: D(() => [s(S(o.selectedSwimlane.direction === "horizontal" ? "水平" : "垂直"), 1)]),
5897
6015
  _: 1
5898
6016
  })]),
5899
- a("div", Ja, [l[113] ||= a("label", null, "宽度", -1), c(z, {
6017
+ a("div", Qa, [l[113] ||= a("label", null, "宽度", -1), c(z, {
5900
6018
  size: "small",
5901
6019
  modelValue: o.selectedSwimlane.width,
5902
6020
  "onUpdate:modelValue": l[43] ||= (e) => o.selectedSwimlane.width = e,
@@ -5904,7 +6022,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5904
6022
  max: 2e3,
5905
6023
  onChange: N
5906
6024
  }, null, 8, ["modelValue"])]),
5907
- a("div", Ya, [l[114] ||= a("label", null, "高度", -1), c(z, {
6025
+ a("div", $a, [l[114] ||= a("label", null, "高度", -1), c(z, {
5908
6026
  size: "small",
5909
6027
  modelValue: o.selectedSwimlane.height,
5910
6028
  "onUpdate:modelValue": l[44] ||= (e) => o.selectedSwimlane.height = e,
@@ -5912,19 +6030,19 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5912
6030
  max: 1e3,
5913
6031
  onChange: N
5914
6032
  }, null, 8, ["modelValue"])]),
5915
- a("div", Xa, [l[115] ||= a("label", null, "背景色", -1), c(B, {
6033
+ a("div", eo, [l[115] ||= a("label", null, "背景色", -1), c(B, {
5916
6034
  size: "small",
5917
6035
  modelValue: o.selectedSwimlane.color,
5918
6036
  "onUpdate:modelValue": l[45] ||= (e) => o.selectedSwimlane.color = e,
5919
6037
  onChange: N
5920
6038
  }, null, 8, ["modelValue"])]),
5921
- a("div", Za, [l[116] ||= a("label", null, "标题背景色", -1), c(B, {
6039
+ a("div", to, [l[116] ||= a("label", null, "标题背景色", -1), c(B, {
5922
6040
  size: "small",
5923
6041
  modelValue: o.selectedSwimlane.headerColor,
5924
6042
  "onUpdate:modelValue": l[46] ||= (e) => o.selectedSwimlane.headerColor = e,
5925
6043
  onChange: N
5926
6044
  }, null, 8, ["modelValue"])]),
5927
- a("div", Qa, [l[117] ||= a("label", null, "标题透明度", -1), c(G, {
6045
+ a("div", no, [l[117] ||= a("label", null, "标题透明度", -1), c(W, {
5928
6046
  size: "small",
5929
6047
  modelValue: k.value,
5930
6048
  "onUpdate:modelValue": l[47] ||= (e) => k.value = e,
@@ -5937,13 +6055,13 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5937
6055
  },
5938
6056
  onChange: A
5939
6057
  }, null, 8, ["modelValue"])]),
5940
- a("div", $a, [l[118] ||= a("label", null, "标题文字色", -1), c(B, {
6058
+ a("div", ro, [l[118] ||= a("label", null, "标题文字色", -1), c(B, {
5941
6059
  size: "small",
5942
6060
  modelValue: o.selectedSwimlane.headerTextColor,
5943
6061
  "onUpdate:modelValue": l[48] ||= (e) => o.selectedSwimlane.headerTextColor = e,
5944
6062
  onChange: N
5945
6063
  }, null, 8, ["modelValue"])]),
5946
- a("div", eo, [l[119] ||= a("label", null, "字号", -1), c(z, {
6064
+ a("div", io, [l[119] ||= a("label", null, "字号", -1), c(z, {
5947
6065
  size: "small",
5948
6066
  modelValue: o.selectedSwimlane.fontSize,
5949
6067
  "onUpdate:modelValue": l[49] ||= (e) => o.selectedSwimlane.fontSize = e,
@@ -5951,7 +6069,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5951
6069
  max: 36,
5952
6070
  onChange: N
5953
6071
  }, null, 8, ["modelValue"])]),
5954
- a("div", to, [l[120] ||= a("label", null, "字体", -1), c(H, {
6072
+ a("div", ao, [l[120] ||= a("label", null, "字体", -1), c(H, {
5955
6073
  size: "small",
5956
6074
  modelValue: o.selectedSwimlane.fontFamily,
5957
6075
  "onUpdate:modelValue": l[50] ||= (e) => o.selectedSwimlane.fontFamily = e,
@@ -5993,7 +6111,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5993
6111
  ]),
5994
6112
  _: 1
5995
6113
  }, 8, ["modelValue"])]),
5996
- a("div", no, [l[121] ||= a("label", null, "字重", -1), c(H, {
6114
+ a("div", oo, [l[121] ||= a("label", null, "字重", -1), c(H, {
5997
6115
  size: "small",
5998
6116
  modelValue: o.selectedSwimlane.fontWeight,
5999
6117
  "onUpdate:modelValue": l[51] ||= (e) => o.selectedSwimlane.fontWeight = e,
@@ -6019,7 +6137,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6019
6137
  ]),
6020
6138
  _: 1
6021
6139
  }, 8, ["modelValue"])]),
6022
- a("div", ro, [l[122] ||= a("label", null, "字体样式", -1), c(H, {
6140
+ a("div", so, [l[122] ||= a("label", null, "字体样式", -1), c(H, {
6023
6141
  size: "small",
6024
6142
  modelValue: o.selectedSwimlane.fontStyle,
6025
6143
  "onUpdate:modelValue": l[52] ||= (e) => o.selectedSwimlane.fontStyle = e,
@@ -6041,7 +6159,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6041
6159
  ]),
6042
6160
  _: 1
6043
6161
  }, 8, ["modelValue"])]),
6044
- a("div", io, [l[123] ||= a("label", null, "文本对齐", -1), c(H, {
6162
+ a("div", co, [l[123] ||= a("label", null, "文本对齐", -1), c(H, {
6045
6163
  size: "small",
6046
6164
  modelValue: o.selectedSwimlane.textAlign,
6047
6165
  "onUpdate:modelValue": l[53] ||= (e) => o.selectedSwimlane.textAlign = e,
@@ -6063,7 +6181,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6063
6181
  ]),
6064
6182
  _: 1
6065
6183
  }, 8, ["modelValue"])]),
6066
- a("div", ao, [c(L, {
6184
+ a("div", lo, [c(L, {
6067
6185
  size: "small",
6068
6186
  onClick: l[54] ||= (e) => t.$emit("add-lane")
6069
6187
  }, {
@@ -6077,22 +6195,22 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6077
6195
  default: D(() => [...l[125] ||= [s("删除", -1)]]),
6078
6196
  _: 1
6079
6197
  })])
6080
- ])) : (_(), i("div", oo, [...l[127] ||= [a("p", null, "选择节点或连线查看属性", -1)]])),
6081
- c(Ui, {
6198
+ ])) : (_(), i("div", uo, [...l[127] ||= [a("p", null, "选择节点或连线查看属性", -1)]])),
6199
+ c(qi, {
6082
6200
  modelValue: f.value,
6083
6201
  "onUpdate:modelValue": l[56] ||= (e) => f.value = e,
6084
6202
  title: "输入参数设置",
6085
6203
  parameters: o.selectedNode?.inputParams || [],
6086
6204
  onConfirm: w
6087
6205
  }, null, 8, ["modelValue", "parameters"]),
6088
- c(Ui, {
6206
+ c(qi, {
6089
6207
  modelValue: m.value,
6090
6208
  "onUpdate:modelValue": l[57] ||= (e) => m.value = e,
6091
6209
  title: "输出参数设置",
6092
6210
  parameters: o.selectedNode?.outputParams || [],
6093
6211
  onConfirm: T
6094
6212
  }, null, 8, ["modelValue", "parameters"]),
6095
- c(K, {
6213
+ c(G, {
6096
6214
  modelValue: h.value,
6097
6215
  "onUpdate:modelValue": l[59] ||= (e) => h.value = e,
6098
6216
  title: "动作设置",
@@ -6114,13 +6232,13 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6114
6232
  ]);
6115
6233
  };
6116
6234
  }
6117
- }, [["__scopeId", "data-v-8d0fe2b9"]]), co = { class: "process-diagram-editor" }, lo = { class: "editor-header" }, uo = { class: "header-left" }, fo = { class: "header-right" }, po = {
6235
+ }, [["__scopeId", "data-v-8d0fe2b9"]]), po = { class: "process-diagram-editor" }, mo = { class: "editor-header" }, ho = { class: "header-left" }, go = { class: "header-right" }, _o = {
6118
6236
  key: 0,
6119
6237
  class: "collab-users"
6120
- }, mo = ["title"], ho = {
6238
+ }, vo = ["title"], yo = {
6121
6239
  key: 0,
6122
6240
  class: "collab-more"
6123
- }, go = { class: "editor-body" }, _o = { class: "editor-main" }, vo = "diagram", yo = /*#__PURE__*/ Q({
6241
+ }, bo = { class: "editor-body" }, xo = { class: "editor-main" }, So = "diagram", Co = /*#__PURE__*/ Q({
6124
6242
  __name: "DiagramEditor",
6125
6243
  props: {
6126
6244
  docId: {
@@ -6150,6 +6268,10 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6150
6268
  uiConfig: {
6151
6269
  type: Object,
6152
6270
  default: () => ({})
6271
+ },
6272
+ aiApi: {
6273
+ type: [String, Object],
6274
+ default: null
6153
6275
  }
6154
6276
  },
6155
6277
  setup(o) {
@@ -6159,13 +6281,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6159
6281
  authorEditable: !0,
6160
6282
  showTypeSelector: !0,
6161
6283
  showTemplateSelector: !0,
6284
+ showSwimlaneSelector: !0,
6162
6285
  initialDiagramType: null,
6163
6286
  ...s.uiConfig
6164
- })), w = t(() => s.docId ?? u.params.id), T = t(() => s.apiBase && s.apiBase !== "/api" ? ne(s.apiBase) : ie), O = y(!1), k = y(!1), { saveVersion: A } = Ge(), j = He(), I = u.query.type, L = ae(t(() => w.value || "new-doc")), R = null, B = y(null), V = y(null), H = y(!0), U = y(1), W = y(!1), G = y(!1), ee = y([]), q = y(!1), te = y(null), J = y(w.value || null), Y = y(s.user?.name || localStorage.getItem("diagram-user-name") || ""), re = null;
6287
+ })), w = t(() => s.docId ?? u.params.id), T = t(() => s.apiBase && s.apiBase !== "/api" ? re(s.apiBase) : ie), O = y(!1), k = y(!1), { saveVersion: A } = Ye(), j = He(), I = Ke(() => s.aiApi), L = u.query.type, R = ae(t(() => w.value || "new-doc")), B = null, V = y(null), H = y(null), U = y(!0), ee = y(1), W = y(!1), K = y(!1), te = y([]), q = y(!1), J = y(null), ne = y(w.value || null), Y = y(s.user?.name || localStorage.getItem("diagram-user-name") || ""), X = null;
6165
6288
  E(Y, (e) => {
6166
6289
  localStorage.setItem("diagram-user-name", e || "");
6167
6290
  });
6168
- let X = y(null), oe = y(!1), se = y(!1), ce = null, le = () => {
6291
+ let oe = y(null), se = y(!1), ce = y(!1), le = null, ue = () => {
6169
6292
  if (!$.value?.trim()) {
6170
6293
  P.warning("请输入流程图名称");
6171
6294
  return;
@@ -6176,35 +6299,35 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6176
6299
  }
6177
6300
  try {
6178
6301
  let e = w.value || `diagram-${Date.now()}`;
6179
- te.value = e, L.connect(e, s.wsUrl || void 0), L.setLocalUser({ name: Y.value.trim() }), W.value = !0;
6180
- let t = L.awareness.value;
6302
+ J.value = e, R.connect(e, s.wsUrl || void 0), R.setLocalUser({ name: Y.value.trim() }), W.value = !0;
6303
+ let t = R.awareness.value;
6181
6304
  t.on("change", () => {
6182
- ee.value = Array.from(t.getStates().entries()).filter(([e, t]) => t.user).map(([e, t]) => ({
6305
+ te.value = Array.from(t.getStates().entries()).filter(([e, t]) => t.user).map(([e, t]) => ({
6183
6306
  clientId: e,
6184
6307
  ...t.user
6185
6308
  }));
6186
6309
  }), j.setCollabContext({
6187
- ydoc: L.doc,
6310
+ ydoc: R.doc,
6188
6311
  provider: t?.provider || null,
6189
- onlineUsers: ee
6312
+ onlineUsers: te
6190
6313
  }), j.setCurrentUser({
6191
6314
  id: t.clientID,
6192
6315
  name: Y.value.trim(),
6193
6316
  color: `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")}`
6194
- }), L.onRemoteChange("diagram", (e) => {
6195
- e && (q.value = !0, Je(e), q.value = !1);
6196
- }), L.syncToYjs("diagram", qe()), R && R();
6317
+ }), R.onRemoteChange("diagram", (e) => {
6318
+ e && (q.value = !0, Xe(e), q.value = !1);
6319
+ }), R.syncToYjs("diagram", Je()), B && B();
6197
6320
  let n = null, r = () => {
6198
- n && clearTimeout(n), W.value && !q.value && L.isConnected.value && L.syncToYjs("diagram", qe());
6321
+ n && clearTimeout(n), W.value && !q.value && R.isConnected.value && R.syncToYjs("diagram", Je());
6199
6322
  };
6200
- ce = r, R = E([
6323
+ le = r, B = E([
6201
6324
  Z,
6202
- he,
6203
- ge
6325
+ ge,
6326
+ _e
6204
6327
  ], () => {
6205
- se.value || (n && clearTimeout(n), n = setTimeout(r, 300));
6206
- }, { deep: !0 }), re && re(), re = E(() => L.isConnected.value, (e, t) => {
6207
- e && !t && W.value && L.syncToYjs("diagram", qe());
6328
+ ce.value || (n && clearTimeout(n), n = setTimeout(r, 300));
6329
+ }, { deep: !0 }), X && X(), X = E(() => R.isConnected.value, (e, t) => {
6330
+ e && !t && W.value && R.syncToYjs("diagram", Je());
6208
6331
  });
6209
6332
  let i = f ? "process-diagram" : "execution-diagram", a = `${window.location.origin}/${i}/${e}?collab=1`;
6210
6333
  navigator.clipboard.writeText(a).then(() => {
@@ -6215,14 +6338,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6215
6338
  } catch (e) {
6216
6339
  console.error("协作连接失败:", e), P.error("协作连接失败: " + (e.message || e));
6217
6340
  }
6218
- }, ue = () => {
6219
- R &&= (R(), null), re &&= (re(), null), L.closeCollaboration(), W.value = !1, P.info("协作已关闭");
6220
- }, de = async () => {
6341
+ }, de = () => {
6342
+ B &&= (B(), null), X &&= (X(), null), R.closeCollaboration(), W.value = !1, P.info("协作已关闭");
6343
+ }, fe = async () => {
6221
6344
  if (!W.value) {
6222
- le();
6345
+ ue();
6223
6346
  return;
6224
6347
  }
6225
- let e = te.value || u.params.id;
6348
+ let e = J.value || u.params.id;
6226
6349
  if (!e) {
6227
6350
  P.warning("请先开启协作");
6228
6351
  return;
@@ -6233,26 +6356,26 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6233
6356
  } catch {
6234
6357
  P.info(`分享链接: ${n}`);
6235
6358
  }
6236
- }, { NODE_TYPES: fe, ANIMATION_TYPES: pe, LINE_STYLES: me, nodes: Z, edges: he, swimlanes: ge, selectedNodeId: _e, selectedEdgeId: Q, selectedSwimlaneId: ye, selectedNode: be, selectedEdge: xe, connectMode: Se, connectSource: Ce, diagramType: we, diagramTitle: $, currentTheme: Te, undoStack: Ee, redoStack: De, undo: Oe, redo: ke, addNode: Ae, addEdge: je, addSwimlane: Me, addLane: Ne, updateNode: Pe, updateEdge: Fe, removeNode: Ie, removeEdge: Le, removeSwimlane: Re, clearAll: ze, selectNode: Be, selectEdge: Ue, bringToFront: We, sendToBack: Ke, toJSON: qe, fromJSON: Je, autoLayout: Ye, loadTemplate: Xe, PROCESS_TYPE_LABELS: Ze, EXECUTION_TYPE_LABELS: Qe } = ve(p, v.value.initialDiagramType || I), $e = t(() => ({
6237
- ...Ze,
6238
- ...Qe
6239
- })[we.value] || "流程图"), et = t(() => ge.find((e) => e.id === ye.value) || null), tt = y(null), nt = t(() => !et.value || !tt.value ? null : et.value.lanes?.find((e) => e.id === tt.value) || null), it = () => {
6240
- _e.value = null, Q.value = null, ye.value = null, tt.value = null, Se.value = !1, Ce.value = null;
6241
- }, at = () => {
6242
- it(), oe.value = !1, X.value = null;
6243
- }, ot = (e, t) => {
6244
- ye.value = e, tt.value = t;
6245
- }, st = (e, t) => {
6246
- let n = ge.find((t) => t.id === e);
6359
+ }, { NODE_TYPES: pe, ANIMATION_TYPES: me, LINE_STYLES: he, nodes: Z, edges: ge, swimlanes: _e, selectedNodeId: Q, selectedEdgeId: ye, selectedSwimlaneId: be, selectedNode: xe, selectedEdge: Se, connectMode: Ce, connectSource: we, diagramType: Te, diagramTitle: $, currentTheme: Ee, undoStack: De, redoStack: Oe, undo: ke, redo: Ae, addNode: je, addEdge: Me, addSwimlane: Ne, addLane: Pe, updateNode: Fe, updateEdge: Ie, removeNode: Le, removeEdge: Re, removeSwimlane: ze, clearAll: Be, selectNode: Ue, selectEdge: We, bringToFront: Ge, sendToBack: qe, toJSON: Je, fromJSON: Xe, autoLayout: Ze, loadTemplate: Qe, PROCESS_TYPE_LABELS: $e, EXECUTION_TYPE_LABELS: et } = ve(p, v.value.initialDiagramType || L), tt = t(() => ({
6360
+ ...$e,
6361
+ ...et
6362
+ })[Te.value] || "流程图"), nt = t(() => _e.find((e) => e.id === be.value) || null), rt = y(null), it = t(() => !nt.value || !rt.value ? null : nt.value.lanes?.find((e) => e.id === rt.value) || null), at = () => {
6363
+ Q.value = null, ye.value = null, be.value = null, rt.value = null, Ce.value = !1, we.value = null;
6364
+ }, ot = () => {
6365
+ at(), se.value = !1, oe.value = null;
6366
+ }, ct = (e, t) => {
6367
+ be.value = e, rt.value = t;
6368
+ }, lt = (e, t) => {
6369
+ let n = _e.find((t) => t.id === e);
6247
6370
  n && Object.assign(n, t);
6248
- }, ct = (e, t, n) => {
6249
- let r = ge.find((t) => t.id === e);
6371
+ }, ut = (e, t, n) => {
6372
+ let r = _e.find((t) => t.id === e);
6250
6373
  if (r) {
6251
6374
  let e = r.lanes?.find((e) => e.id === t);
6252
6375
  e && Object.assign(e, n);
6253
6376
  }
6254
- }, lt = (e, t, n) => {
6255
- let r = ge.find((t) => t.id === e);
6377
+ }, dt = (e, t, n) => {
6378
+ let r = _e.find((t) => t.id === e);
6256
6379
  if (r) {
6257
6380
  if (r.direction === "horizontal" && r.lanes?.length) {
6258
6381
  let e = r.lanes.reduce((e, t) => e + t.height, 0);
@@ -6274,86 +6397,86 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6274
6397
  }
6275
6398
  r.width = t, r.height = n;
6276
6399
  }
6277
- }, ut = (e, t, n, r) => {
6278
- let i = ge.find((t) => t.id === e);
6400
+ }, ft = (e, t, n, r) => {
6401
+ let i = _e.find((t) => t.id === e);
6279
6402
  if (i) {
6280
6403
  let e = i.lanes?.find((e) => e.id === t);
6281
6404
  e && (n != null && (e.height = n), r != null && (e.width = r, i.direction === "vertical" && i.lanes?.length && (i.width = i.lanes.reduce((e, t) => e + (t.width || 200), 0))));
6282
6405
  }
6283
- }, dt = (e, t, n) => {
6284
- let r = ge.find((t) => t.id === e);
6406
+ }, pt = (e, t, n) => {
6407
+ let r = _e.find((t) => t.id === e);
6285
6408
  r && (r.x = t, r.y = n);
6286
- }, ft = (e) => {
6287
- we.value = e;
6288
- }, pt = (e) => {
6289
- Xe(e);
6290
6409
  }, mt = (e) => {
6291
6410
  Te.value = e;
6292
- }, ht = (e, t, n) => {
6293
- _e.value = Ae(e, t, n).id;
6411
+ }, ht = (e) => {
6412
+ Qe(e);
6294
6413
  }, gt = (e) => {
6295
- oe.value = !1, X.value = null, Ce.value = e;
6296
- }, _t = (e) => {
6297
- X.value = e, oe.value = !0;
6414
+ Ee.value = e;
6415
+ }, _t = (e, t, n) => {
6416
+ Q.value = je(e, t, n).id;
6298
6417
  }, vt = (e) => {
6299
- let t = X.value || Ce.value;
6300
- t && e && t !== e && je(t, e), Ce.value = null, X.value = null, oe.value = !1;
6301
- }, yt = (e, t, n) => {
6302
- se.value = !0;
6418
+ se.value = !1, oe.value = null, we.value = e;
6419
+ }, yt = (e) => {
6420
+ oe.value = e, se.value = !0;
6421
+ }, bt = (e) => {
6422
+ let t = oe.value || we.value;
6423
+ t && e && t !== e && Me(t, e), we.value = null, oe.value = null, se.value = !1;
6424
+ }, xt = (e, t, n) => {
6425
+ ce.value = !0;
6303
6426
  let r = Z.find((t) => t.id === e);
6304
6427
  r && !r.locked && (r.x += t, r.y += n);
6305
- }, bt = () => {
6306
- se.value = !1, ce && ce();
6307
- }, xt = (e, t, n) => {
6308
- se.value = !0;
6428
+ }, St = () => {
6429
+ ce.value = !1, le && le();
6430
+ }, Ct = (e, t, n) => {
6431
+ ce.value = !0;
6309
6432
  let r = Z.find((t) => t.id === e);
6310
6433
  r && (r.width = t, r.height = n);
6311
- }, St = () => {
6312
- se.value = !1, ce && ce();
6313
- }, Ct = (e) => {
6314
- let t = Me("泳道 " + (ge.length + 1), e);
6315
- Ne(t.id, "角色A"), ye.value = t.id;
6316
6434
  }, wt = () => {
6317
- et.value && Ne(et.value.id, "新泳道");
6318
- }, Tt = () => {
6319
- et.value && nt.value && ct(et.value.id, nt.value.id, {});
6435
+ ce.value = !1, le && le();
6436
+ }, Tt = (e) => {
6437
+ let t = Ne("泳道 " + (_e.length + 1), e);
6438
+ Pe(t.id, "角色A"), be.value = t.id;
6320
6439
  }, Et = () => {
6440
+ nt.value && Pe(nt.value.id, "新泳道");
6441
+ }, Dt = () => {
6442
+ nt.value && it.value && ut(nt.value.id, it.value.id, {});
6443
+ }, Ot = () => {
6321
6444
  if (Z.length === 0) return;
6322
6445
  let e = Math.min(...Z.map((e) => e.x)), t = Math.min(...Z.map((e) => e.y)), n = Math.max(...Z.map((e) => e.x + e.width)), r = Math.max(...Z.map((e) => e.y + e.height)), i = n - e || 1, a = r - t || 1, o = document.querySelector(".diagram-canvas");
6323
6446
  if (!o) return;
6324
6447
  let s = o.getBoundingClientRect(), c = (s.width - 120) / i, l = (s.height - 120) / a, u = Math.min(c, l, 2);
6325
6448
  Z.forEach((n) => {
6326
6449
  n.x = 60 + (n.x - e) * u, n.y = 60 + (n.y - t) * u, n.width *= u, n.height *= u;
6327
- }), B.value && B.value.resetView();
6328
- }, Dt = async (e) => {
6329
- let t = qe();
6450
+ }), V.value && V.value.resetView();
6451
+ }, kt = async (e) => {
6452
+ let t = Je();
6330
6453
  switch (e) {
6331
6454
  case "json":
6332
- Ot(t);
6455
+ At(t);
6333
6456
  break;
6334
6457
  case "svg":
6335
- kt();
6458
+ jt();
6336
6459
  break;
6337
6460
  case "png":
6338
- At("png");
6461
+ Mt("png");
6339
6462
  break;
6340
6463
  case "html":
6341
- jt(t);
6464
+ Nt(t);
6342
6465
  break;
6343
6466
  case "pdf":
6344
- Nt();
6467
+ Ft();
6345
6468
  break;
6346
6469
  }
6347
- }, Ot = (e) => {
6470
+ }, At = (e) => {
6348
6471
  let t = new Blob([JSON.stringify(e, null, 2)], { type: "application/json" }), n = URL.createObjectURL(t), r = document.createElement("a");
6349
6472
  r.href = n, r.download = `${$.value || "流程图"}.json`, r.click(), URL.revokeObjectURL(n), P.success("JSON已导出");
6350
- }, kt = () => {
6351
- let e = B.value?.svgRef;
6473
+ }, jt = () => {
6474
+ let e = V.value?.svgRef;
6352
6475
  if (!e) return;
6353
6476
  let t = e.cloneNode(!0), n = new XMLSerializer().serializeToString(t), r = new Blob([n], { type: "image/svg+xml" }), i = URL.createObjectURL(r), a = document.createElement("a");
6354
6477
  a.href = i, a.download = `${$.value || "流程图"}.svg`, a.click(), URL.revokeObjectURL(i), P.success("SVG已导出");
6355
- }, At = async (e) => {
6356
- let t = B.value?.svgRef;
6478
+ }, Mt = async (e) => {
6479
+ let t = V.value?.svgRef;
6357
6480
  if (!t) return;
6358
6481
  let n = new XMLSerializer().serializeToString(t), r = document.createElement("canvas"), i = r.getContext("2d"), a = new Image(), o = new Blob([n], { type: "image/svg+xml;charset=utf-8" }), s = URL.createObjectURL(o);
6359
6482
  a.onload = () => {
@@ -6362,7 +6485,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6362
6485
  n.href = URL.createObjectURL(t), n.download = `${$.value || "流程图"}.${e}`, n.click(), P.success(`${e.toUpperCase()}已导出`);
6363
6486
  }, `image/${e}`);
6364
6487
  }, a.src = s;
6365
- }, jt = (e) => {
6488
+ }, Nt = (e) => {
6366
6489
  let t = `<!DOCTYPE html>
6367
6490
  <html lang="zh-CN">
6368
6491
  <head>
@@ -6384,13 +6507,13 @@ svg { max-width: 100%; height: auto; }
6384
6507
  <div class="container">
6385
6508
  <h1>${e.title}</h1>
6386
6509
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4000 3000">
6387
- ${Mt(e)}
6510
+ ${Pt(e)}
6388
6511
  </svg>
6389
6512
  </div>
6390
6513
  </body>
6391
6514
  </html>`, n = new Blob([t], { type: "text/html;charset=utf-8" }), r = URL.createObjectURL(n), i = document.createElement("a");
6392
6515
  i.href = r, i.download = `${e.title || "流程图"}.html`, i.click(), URL.revokeObjectURL(r), P.success("HTML已导出");
6393
- }, Mt = (e) => {
6516
+ }, Pt = (e) => {
6394
6517
  let t = "";
6395
6518
  return (e.nodes || []).forEach((e) => {
6396
6519
  let n = e.color || "#409eff", r = e.strokeColor || "#333";
@@ -6407,8 +6530,8 @@ ${Mt(e)}
6407
6530
  t += `<line x1="${e}" y1="${a}" x2="${o}" y2="${s}" stroke="${n.lineColor}" stroke-width="${n.lineWidth}" marker-end="url(#arrowhead)"/>`;
6408
6531
  }
6409
6532
  }), t;
6410
- }, Nt = () => {
6411
- let e = B.value?.svgRef;
6533
+ }, Ft = () => {
6534
+ let e = V.value?.svgRef;
6412
6535
  if (!e) return;
6413
6536
  let t = new XMLSerializer().serializeToString(e), n = window.open("", "_blank");
6414
6537
  n.document.write(`
@@ -6421,21 +6544,21 @@ ${Mt(e)}
6421
6544
  </body>
6422
6545
  </html>
6423
6546
  `), n.document.close();
6424
- }, Pt = () => {
6425
- V.value?.click();
6426
- }, Ft = (e) => {
6547
+ }, It = () => {
6548
+ H.value?.click();
6549
+ }, Lt = (e) => {
6427
6550
  let t = e.target.files[0];
6428
6551
  if (!t) return;
6429
6552
  let n = new FileReader();
6430
6553
  n.onload = (e) => {
6431
6554
  try {
6432
- Je(JSON.parse(e.target.result)) ? P.success("导入成功") : P.error("无效的流程图文件");
6555
+ Xe(JSON.parse(e.target.result)) ? P.success("导入成功") : P.error("无效的流程图文件");
6433
6556
  } catch {
6434
6557
  P.error("文件解析失败");
6435
6558
  }
6436
6559
  }, n.readAsText(t), e.target.value = "";
6437
- }, It = async () => {
6438
- if (G.value && L.collaborationClosed.value) {
6560
+ }, Rt = async () => {
6561
+ if (K.value && R.collaborationClosed.value) {
6439
6562
  P.error("协作已关闭,无法提交保存");
6440
6563
  return;
6441
6564
  }
@@ -6448,7 +6571,7 @@ ${Mt(e)}
6448
6571
  return;
6449
6572
  }
6450
6573
  try {
6451
- let e = qe(), t = {
6574
+ let e = Je(), t = {
6452
6575
  title: $.value || "流程图",
6453
6576
  content: JSON.stringify(e),
6454
6577
  doc_type: f ? "process-diagram" : "exec-diagram"
@@ -6456,14 +6579,14 @@ ${Mt(e)}
6456
6579
  let t = n ? `${s.saveApi}/${n}` : s.saveApi;
6457
6580
  return n ? F.put(t, e) : F.post(t, e);
6458
6581
  } : null;
6459
- if (r) J.value = (await r(t, n)).data?.id || n;
6460
- else if (n && n !== "new") await T.value.update(n, t), J.value = n;
6582
+ if (r) ne.value = (await r(t, n)).data?.id || n;
6583
+ else if (n && n !== "new") await T.value.update(n, t), ne.value = n;
6461
6584
  else {
6462
6585
  let e = await T.value.create(t);
6463
- J.value = e.data.id, s.docId || l.replace(`/${f ? "process-diagram" : "execution-diagram"}/${e.data.id}`);
6586
+ ne.value = e.data.id, s.docId || l.replace(`/${f ? "process-diagram" : "execution-diagram"}/${e.data.id}`);
6464
6587
  }
6465
6588
  P.success("已保存"), A({
6466
- documentId: String(J.value || ""),
6589
+ documentId: String(ne.value || ""),
6467
6590
  docType: f ? "process-diagram" : "exec-diagram",
6468
6591
  content: JSON.stringify(e),
6469
6592
  userId: String(j.currentUser.value?.id || ""),
@@ -6472,48 +6595,41 @@ ${Mt(e)}
6472
6595
  } catch (e) {
6473
6596
  P.error("保存失败: " + (e.message || e));
6474
6597
  }
6475
- }, Lt = async () => {
6598
+ }, zt = async () => {
6476
6599
  let e = w.value;
6477
6600
  if (e && e !== "new") try {
6478
6601
  if (typeof s.loadApi == "function") {
6479
6602
  let t = await s.loadApi(e);
6480
- t.data && t.data.content && (Je(JSON.parse(t.data.content)), $.value = t.data.title || $.value);
6603
+ t.data && t.data.content && (Xe(JSON.parse(t.data.content)), $.value = t.data.title || $.value);
6481
6604
  } else if (s.loadApi) {
6482
6605
  let t = await F.get(`${s.loadApi}/${e}`);
6483
- t.data && t.data.content && (Je(JSON.parse(t.data.content)), $.value = t.data.title || $.value);
6606
+ t.data && t.data.content && (Xe(JSON.parse(t.data.content)), $.value = t.data.title || $.value);
6484
6607
  } else {
6485
6608
  let t = await T.value.get(e);
6486
- t.data && t.data.content && (Je(JSON.parse(t.data.content)), $.value = t.data.title || $.value);
6609
+ t.data && t.data.content && (Xe(JSON.parse(t.data.content)), $.value = t.data.title || $.value);
6487
6610
  }
6488
6611
  } catch {
6489
6612
  let t = localStorage.getItem(g + e);
6490
6613
  if (t) try {
6491
- Je(JSON.parse(t));
6614
+ Xe(JSON.parse(t));
6492
6615
  } catch {}
6493
6616
  }
6494
- }, Rt = () => {
6617
+ }, Bt = () => {
6495
6618
  l.push("/");
6496
- }, zt = [
6497
- "我可以帮您优化流程图布局、检查节点逻辑,或者提供流程设计建议。请问有什么需要帮助的?",
6498
- "这个流程图的节点连接看起来很清晰。建议检查一下是否有遗漏的分支或异常处理路径。",
6499
- "根据当前的流程结构,我建议在关键决策节点后添加明确的条件标注,使流程更易理解。",
6500
- "流程图中的泳道划分很合理。如果需要,我可以帮您分析各角色的职责分配是否均衡。",
6501
- "我可以帮您检查流程中是否存在循环依赖或死锁风险。需要我逐条分析吗?",
6502
- "建议在流程开始和结束节点使用统一的样式,这样可以让读者更快识别流程的起止点。",
6503
- "这个执行图的逻辑链路比较长,建议在中间添加一些检查点节点,便于流程监控和调试。",
6504
- "我可以帮您生成流程图的文字说明文档,方便团队成员理解流程细节。"
6505
- ], Bt = async (e, t = {}) => {
6506
- let n = w.value ? `${vo}-${w.value}` : null;
6619
+ }, Vt = async (e, t = {}) => {
6620
+ let n = w.value ? `${So}-${w.value}` : null;
6507
6621
  await j.sendMessage(e, {
6508
6622
  ...t,
6509
6623
  roomId: n
6510
6624
  });
6511
6625
  let r = t.mentionedUser, i = r && r.toLowerCase().includes("ai"), a = j.collabUsers.value.filter((e) => e.name !== j.currentUser.value.name);
6512
- (!r || i || a.length === 0) && (j.loading.value = !0, setTimeout(() => {
6513
- j.sendAiMessage(zt[Math.floor(Math.random() * zt.length)], n), j.loading.value = !1;
6514
- }, 800 + Math.random() * 1200));
6626
+ if (!r || i || a.length === 0) {
6627
+ j.loading.value = !0;
6628
+ let t = await I.chat(e, j.messages.value);
6629
+ j.sendAiMessage(t, n), j.loading.value = !1;
6630
+ }
6515
6631
  }, Ht = () => {
6516
- let e = w.value ? `${vo}-${w.value}` : null;
6632
+ let e = w.value ? `${So}-${w.value}` : null;
6517
6633
  j.clearMessages(e);
6518
6634
  }, Ut = () => {
6519
6635
  if (!w.value) {
@@ -6524,31 +6640,31 @@ ${Mt(e)}
6524
6640
  }, Wt = (e) => {
6525
6641
  try {
6526
6642
  let t = typeof e == "string" ? JSON.parse(e) : e;
6527
- Je && Je(t);
6643
+ Xe && Xe(t);
6528
6644
  } catch (e) {
6529
6645
  console.error("Version apply error:", e);
6530
6646
  }
6531
6647
  };
6532
6648
  return h(() => {
6533
- Lt().then(() => {
6649
+ zt().then(() => {
6534
6650
  if (u.query.collab === "1") {
6535
- G.value = !0, le();
6536
- let e = E(() => L.isSynced.value, (t) => {
6537
- t && (e(), L.checkCollaborationClosed() && (L.disconnect(), G.value = !1, W.value = !1, P.warning("该协作已关闭,无法加入")));
6651
+ K.value = !0, ue();
6652
+ let e = E(() => R.isSynced.value, (t) => {
6653
+ t && (e(), R.checkCollaborationClosed() && (R.disconnect(), K.value = !1, W.value = !1, P.warning("该协作已关闭,无法加入")));
6538
6654
  });
6539
- L.isSynced.value && L.checkCollaborationClosed() && (L.disconnect(), G.value = !1, W.value = !1, P.warning("该协作已关闭,无法加入"));
6655
+ R.isSynced.value && R.checkCollaborationClosed() && (R.disconnect(), K.value = !1, W.value = !1, P.warning("该协作已关闭,无法加入"));
6540
6656
  }
6541
6657
  });
6542
6658
  }), (t, o) => {
6543
6659
  let s = x("el-icon"), l = x("el-button"), u = x("el-input");
6544
- return _(), i("div", co, [
6545
- a("div", lo, [a("div", uo, [
6660
+ return _(), i("div", po, [
6661
+ a("div", mo, [a("div", ho, [
6546
6662
  v.value.backButton === "hide" ? r("", !0) : (_(), n(l, {
6547
6663
  key: 0,
6548
6664
  size: "small",
6549
6665
  circle: "",
6550
6666
  disabled: v.value.backButton === "disable",
6551
- onClick: Rt
6667
+ onClick: Bt
6552
6668
  }, {
6553
6669
  default: D(() => [c(s, null, {
6554
6670
  default: D(() => [c(C(z))]),
@@ -6562,7 +6678,7 @@ ${Mt(e)}
6562
6678
  size: "small",
6563
6679
  class: "title-input",
6564
6680
  placeholder: "流程图标题 *",
6565
- disabled: G.value || !v.value.titleEditable
6681
+ disabled: K.value || !v.value.titleEditable
6566
6682
  }, null, 8, ["modelValue", "disabled"]),
6567
6683
  c(u, {
6568
6684
  modelValue: Y.value,
@@ -6572,12 +6688,12 @@ ${Mt(e)}
6572
6688
  placeholder: "用户名称 *",
6573
6689
  disabled: !v.value.authorEditable
6574
6690
  }, null, 8, ["modelValue", "disabled"])
6575
- ]), a("div", fo, [!G.value && C(L).peers.value.length > 0 ? (_(), i("div", po, [(_(!0), i(e, null, b(C(L).peers.value.slice(0, 5), (e) => (_(), i("div", {
6691
+ ]), a("div", go, [!K.value && C(R).peers.value.length > 0 ? (_(), i("div", _o, [(_(!0), i(e, null, b(C(R).peers.value.slice(0, 5), (e) => (_(), i("div", {
6576
6692
  key: e.clientId,
6577
6693
  class: "collab-avatar",
6578
6694
  style: m({ background: e.color }),
6579
6695
  title: e.name
6580
- }, S(e.name?.charAt(0)), 13, mo))), 128)), C(L).peers.value.length > 5 ? (_(), i("span", ho, "+" + S(C(L).peers.value.length - 5), 1)) : r("", !0)])) : r("", !0), c(l, {
6696
+ }, S(e.name?.charAt(0)), 13, vo))), 128)), C(R).peers.value.length > 5 ? (_(), i("span", yo, "+" + S(C(R).peers.value.length - 5), 1)) : r("", !0)])) : r("", !0), c(l, {
6581
6697
  size: "small",
6582
6698
  circle: "",
6583
6699
  type: O.value ? "primary" : "default",
@@ -6585,47 +6701,48 @@ ${Mt(e)}
6585
6701
  title: "AI助手"
6586
6702
  }, {
6587
6703
  default: D(() => [c(s, null, {
6588
- default: D(() => [c(C(K))]),
6704
+ default: D(() => [c(C(G))]),
6589
6705
  _: 1
6590
6706
  })]),
6591
6707
  _: 1
6592
6708
  }, 8, ["type"])])]),
6593
- a("div", go, [
6594
- c(Vt, {
6595
- NODE_TYPES: C(fe),
6596
- "diagram-type-label": $e.value,
6597
- "type-disabled": G.value,
6709
+ a("div", bo, [
6710
+ c(Gt, {
6711
+ NODE_TYPES: C(pe),
6712
+ "diagram-type-label": tt.value,
6713
+ "type-disabled": K.value,
6598
6714
  "show-type-selector": v.value.showTypeSelector,
6599
- onSetType: ft
6715
+ onSetType: mt
6600
6716
  }, null, 8, [
6601
6717
  "NODE_TYPES",
6602
6718
  "diagram-type-label",
6603
6719
  "type-disabled",
6604
6720
  "show-type-selector"
6605
6721
  ]),
6606
- a("div", _o, [c(Zt, {
6607
- "animation-playing": H.value,
6608
- "can-undo": C(Ee).length > 0,
6609
- "can-redo": C(De).length > 0,
6610
- disabled: G.value,
6722
+ a("div", xo, [c(tn, {
6723
+ "animation-playing": U.value,
6724
+ "can-undo": C(De).length > 0,
6725
+ "can-redo": C(Oe).length > 0,
6726
+ disabled: K.value,
6611
6727
  "is-collaborating": W.value,
6612
- "is-joined-collab": G.value,
6728
+ "is-joined-collab": K.value,
6613
6729
  "show-template-selector": v.value.showTemplateSelector,
6614
- onAddSwimlane: Ct,
6615
- onUndo: C(Oe),
6616
- onRedo: C(ke),
6617
- onAutoLayout: C(Ye),
6618
- onToggleAnimation: o[3] ||= (e) => H.value = !H.value,
6619
- onSetAnimationSpeed: o[4] ||= (e) => U.value = e,
6620
- onExport: Dt,
6621
- onImportJson: Pt,
6622
- onClear: C(ze),
6623
- onSetTemplate: pt,
6624
- onStartCollab: le,
6625
- onStopCollab: ue,
6626
- onShareCollab: de,
6627
- onSave: It,
6628
- "show-history": !!J.value,
6730
+ "show-swimlane-selector": v.value.showSwimlaneSelector,
6731
+ onAddSwimlane: Tt,
6732
+ onUndo: C(ke),
6733
+ onRedo: C(Ae),
6734
+ onAutoLayout: C(Ze),
6735
+ onToggleAnimation: o[3] ||= (e) => U.value = !U.value,
6736
+ onSetAnimationSpeed: o[4] ||= (e) => ee.value = e,
6737
+ onExport: kt,
6738
+ onImportJson: It,
6739
+ onClear: C(Be),
6740
+ onSetTemplate: ht,
6741
+ onStartCollab: ue,
6742
+ onStopCollab: de,
6743
+ onShareCollab: fe,
6744
+ onSave: Rt,
6745
+ "show-history": !!ne.value,
6629
6746
  onHistory: Ut
6630
6747
  }, null, 8, [
6631
6748
  "animation-playing",
@@ -6635,47 +6752,48 @@ ${Mt(e)}
6635
6752
  "is-collaborating",
6636
6753
  "is-joined-collab",
6637
6754
  "show-template-selector",
6755
+ "show-swimlane-selector",
6638
6756
  "onUndo",
6639
6757
  "onRedo",
6640
6758
  "onAutoLayout",
6641
6759
  "onClear",
6642
6760
  "show-history"
6643
- ]), c(Ii, {
6761
+ ]), c(Bi, {
6644
6762
  ref_key: "canvasRef",
6645
- ref: B,
6763
+ ref: V,
6646
6764
  nodes: C(Z),
6647
- edges: C(he),
6648
- swimlanes: C(ge),
6649
- "selected-node-id": C(_e),
6650
- "selected-edge-id": C(Q),
6651
- "selected-swimlane-id": C(ye),
6652
- "selected-lane-id": tt.value,
6653
- "connect-mode": C(Se),
6654
- "connect-source": C(Ce),
6655
- "animation-playing": H.value,
6656
- theme: C(Te),
6657
- onSelectNode: C(Be),
6658
- onSelectEdge: C(Ue),
6659
- onSelectSwimlane: o[5] ||= (e) => ye.value = e,
6660
- onSelectLane: ot,
6661
- onUpdateSwimlane: st,
6662
- onUpdateLane: ct,
6663
- onResizeSwimlane: lt,
6664
- onResizeLane: ut,
6665
- onMoveSwimlane: dt,
6666
- onSelectCanvas: it,
6667
- "auto-connect-source": X.value,
6668
- "auto-connect-mode": oe.value,
6669
- onStartConnect: gt,
6670
- onEndConnect: vt,
6671
- onAutoConnectStart: _t,
6672
- onNodeDrag: yt,
6673
- onNodeResize: xt,
6674
- onNodeDragEnd: bt,
6675
- onNodeResizeEnd: St,
6676
- onDropNode: ht,
6677
- onResetState: at,
6678
- onFitView: Et
6765
+ edges: C(ge),
6766
+ swimlanes: C(_e),
6767
+ "selected-node-id": C(Q),
6768
+ "selected-edge-id": C(ye),
6769
+ "selected-swimlane-id": C(be),
6770
+ "selected-lane-id": rt.value,
6771
+ "connect-mode": C(Ce),
6772
+ "connect-source": C(we),
6773
+ "animation-playing": U.value,
6774
+ theme: C(Ee),
6775
+ onSelectNode: C(Ue),
6776
+ onSelectEdge: C(We),
6777
+ onSelectSwimlane: o[5] ||= (e) => be.value = e,
6778
+ onSelectLane: ct,
6779
+ onUpdateSwimlane: lt,
6780
+ onUpdateLane: ut,
6781
+ onResizeSwimlane: dt,
6782
+ onResizeLane: ft,
6783
+ onMoveSwimlane: pt,
6784
+ onSelectCanvas: at,
6785
+ "auto-connect-source": oe.value,
6786
+ "auto-connect-mode": se.value,
6787
+ onStartConnect: vt,
6788
+ onEndConnect: bt,
6789
+ onAutoConnectStart: yt,
6790
+ onNodeDrag: xt,
6791
+ onNodeResize: Ct,
6792
+ onNodeDragEnd: St,
6793
+ onNodeResizeEnd: wt,
6794
+ onDropNode: _t,
6795
+ onResetState: ot,
6796
+ onFitView: Ot
6679
6797
  }, null, 8, [
6680
6798
  "nodes",
6681
6799
  "edges",
@@ -6693,23 +6811,23 @@ ${Mt(e)}
6693
6811
  "auto-connect-source",
6694
6812
  "auto-connect-mode"
6695
6813
  ])]),
6696
- c(so, {
6697
- "selected-node": C(be),
6698
- "selected-edge": C(xe),
6699
- "selected-swimlane": et.value,
6700
- "selected-lane": nt.value,
6701
- NODE_TYPES: C(fe),
6702
- ANIMATION_TYPES: C(pe),
6703
- LINE_STYLES: C(me),
6704
- "current-theme": C(Te),
6705
- onDeleteNode: o[6] ||= (e) => C(be) && C(Ie)(C(be).id),
6706
- onDeleteEdge: o[7] ||= (e) => C(xe) && C(Le)(C(xe).id),
6707
- onDeleteSwimlane: o[8] ||= (e) => et.value && C(Re)(et.value.id),
6708
- onBringFront: o[9] ||= (e) => C(be) && C(We)(C(be).id),
6709
- onSendBack: o[10] ||= (e) => C(be) && C(Ke)(C(be).id),
6710
- onAddLane: wt,
6711
- onUpdateLane: Tt,
6712
- onChangeTheme: mt
6814
+ c(fo, {
6815
+ "selected-node": C(xe),
6816
+ "selected-edge": C(Se),
6817
+ "selected-swimlane": nt.value,
6818
+ "selected-lane": it.value,
6819
+ NODE_TYPES: C(pe),
6820
+ ANIMATION_TYPES: C(me),
6821
+ LINE_STYLES: C(he),
6822
+ "current-theme": C(Ee),
6823
+ onDeleteNode: o[6] ||= (e) => C(xe) && C(Le)(C(xe).id),
6824
+ onDeleteEdge: o[7] ||= (e) => C(Se) && C(Re)(C(Se).id),
6825
+ onDeleteSwimlane: o[8] ||= (e) => nt.value && C(ze)(nt.value.id),
6826
+ onBringFront: o[9] ||= (e) => C(xe) && C(Ge)(C(xe).id),
6827
+ onSendBack: o[10] ||= (e) => C(xe) && C(qe)(C(xe).id),
6828
+ onAddLane: Et,
6829
+ onUpdateLane: Dt,
6830
+ onChangeTheme: gt
6713
6831
  }, null, 8, [
6714
6832
  "selected-node",
6715
6833
  "selected-edge",
@@ -6723,11 +6841,11 @@ ${Mt(e)}
6723
6841
  ]),
6724
6842
  a("input", {
6725
6843
  ref_key: "fileInput",
6726
- ref: V,
6844
+ ref: H,
6727
6845
  type: "file",
6728
6846
  accept: ".json",
6729
6847
  style: { display: "none" },
6730
- onChange: Ft
6848
+ onChange: Lt
6731
6849
  }, null, 544),
6732
6850
  c(Ve, {
6733
6851
  visible: O.value,
@@ -6736,8 +6854,8 @@ ${Mt(e)}
6736
6854
  "is-collab": C(j).isCollabMode.value,
6737
6855
  "collab-users": C(j).collabUsers.value,
6738
6856
  "current-user": C(j).currentUser.value,
6739
- "is-owner": !G.value,
6740
- onSend: Bt,
6857
+ "is-owner": !K.value,
6858
+ onSend: Vt,
6741
6859
  onClose: o[11] ||= (e) => O.value = !1,
6742
6860
  "unread-mention": C(j).unreadMention.value,
6743
6861
  onClearUnread: o[12] ||= (e) => C(j).clearUnreadMention(),
@@ -6752,16 +6870,16 @@ ${Mt(e)}
6752
6870
  "is-owner",
6753
6871
  "unread-mention"
6754
6872
  ]),
6755
- c(rt, {
6873
+ c(st, {
6756
6874
  modelValue: k.value,
6757
6875
  "onUpdate:modelValue": o[13] ||= (e) => k.value = e,
6758
- "document-id": J.value,
6876
+ "document-id": ne.value,
6759
6877
  onApply: Wt
6760
6878
  }, null, 8, ["modelValue", "document-id"])
6761
6879
  ]);
6762
6880
  };
6763
6881
  }
6764
- }, [["__scopeId", "data-v-1f3850ad"]]), bo = l({
6882
+ }, [["__scopeId", "data-v-cd2c3fb5"]]), wo = l({
6765
6883
  name: "YourCompanyDiagram",
6766
6884
  props: {
6767
6885
  docId: {
@@ -6799,14 +6917,18 @@ ${Mt(e)}
6799
6917
  uiConfig: {
6800
6918
  type: Object,
6801
6919
  default: () => ({})
6920
+ },
6921
+ aiApi: {
6922
+ type: [String, Object],
6923
+ default: null
6802
6924
  }
6803
6925
  },
6804
6926
  setup(e, { slots: t }) {
6805
6927
  return () => u("div", {
6806
6928
  class: "yourcompany-diagram-wrapper",
6807
6929
  style: "position:relative"
6808
- }, [u(yo, { ...e }), u(j)]);
6930
+ }, [u(Co, { ...e }), u(j)]);
6809
6931
  }
6810
6932
  });
6811
6933
  //#endregion
6812
- export { bo as default };
6934
+ export { wo as default };