@billtaofbj/diagram 1.1.1 → 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,22 +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 = {
2398
+ }, Yt = {
2288
2399
  key: 2,
2289
2400
  class: "toolbar-group"
2290
- }, Kt = { class: "toolbar-group" }, qt = { class: "toolbar-group" }, Jt = { class: "toolbar-group" }, Yt = { class: "toolbar-group" }, Xt = { class: "toolbar-group" }, Zt = /*#__PURE__*/ Q({
2401
+ }, Xt = { class: "toolbar-group" }, Zt = { class: "toolbar-group" }, Qt = { class: "toolbar-group" }, $t = { class: "toolbar-group" }, en = { class: "toolbar-group" }, tn = /*#__PURE__*/ Q({
2291
2402
  __name: "ProcessToolbar",
2292
2403
  props: {
2293
2404
  animationPlaying: {
@@ -2355,8 +2466,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2355
2466
  };
2356
2467
  return (t, o) => {
2357
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");
2358
- return _(), i("div", Ht, [
2359
- e.showTemplateSelector ? (_(), i("div", Ut, [c(w, {
2469
+ return _(), i("div", Kt, [
2470
+ e.showTemplateSelector ? (_(), i("div", qt, [c(w, {
2360
2471
  trigger: "click",
2361
2472
  onCommand: o[0] ||= (e) => t.$emit("set-template", e),
2362
2473
  size: "small"
@@ -2402,14 +2513,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2402
2513
  }, 8, ["disabled"])]),
2403
2514
  _: 1
2404
2515
  })])) : r("", !0),
2405
- e.isJoinedCollab ? r("", !0) : (_(), i("div", Wt, [c(v, {
2516
+ e.isJoinedCollab ? r("", !0) : (_(), i("div", Jt, [c(v, {
2406
2517
  size: "small",
2407
2518
  type: e.isCollaborating ? "success" : "default",
2408
2519
  onClick: o[1] ||= (n) => e.isCollaborating ? t.$emit("stop-collab") : t.$emit("start-collab"),
2409
2520
  title: "协作"
2410
2521
  }, {
2411
2522
  default: D(() => [c(g, null, {
2412
- default: D(() => [c(C(Y))]),
2523
+ default: D(() => [c(C(ne))]),
2413
2524
  _: 1
2414
2525
  }), a("span", null, S(e.isCollaborating ? "协作中" : "协作"), 1)]),
2415
2526
  _: 1
@@ -2421,12 +2532,12 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2421
2532
  title: "分享链接"
2422
2533
  }, {
2423
2534
  default: D(() => [c(g, null, {
2424
- default: D(() => [c(C(W))]),
2535
+ default: D(() => [c(C(ee))]),
2425
2536
  _: 1
2426
2537
  })]),
2427
2538
  _: 1
2428
2539
  })) : r("", !0)])),
2429
- e.showSwimlaneSelector ? (_(), i("div", Gt, [c(w, {
2540
+ e.showSwimlaneSelector ? (_(), i("div", Yt, [c(w, {
2430
2541
  trigger: "click",
2431
2542
  onCommand: p
2432
2543
  }, {
@@ -2449,7 +2560,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2449
2560
  })]),
2450
2561
  _: 1
2451
2562
  })])) : r("", !0),
2452
- a("div", Kt, [c(v, {
2563
+ a("div", Xt, [c(v, {
2453
2564
  size: "small",
2454
2565
  circle: "",
2455
2566
  onClick: o[3] ||= (e) => t.$emit("undo"),
@@ -2474,7 +2585,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2474
2585
  })]),
2475
2586
  _: 1
2476
2587
  }, 8, ["disabled"])]),
2477
- a("div", qt, [
2588
+ a("div", Zt, [
2478
2589
  c(v, {
2479
2590
  size: "small",
2480
2591
  onClick: o[5] ||= (e) => t.$emit("auto-layout"),
@@ -2518,7 +2629,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2518
2629
  _: 1
2519
2630
  }, 8, ["modelValue"])
2520
2631
  ]),
2521
- a("div", Jt, [c(w, {
2632
+ a("div", Qt, [c(w, {
2522
2633
  trigger: "click",
2523
2634
  onCommand: m
2524
2635
  }, {
@@ -2563,7 +2674,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2563
2674
  default: D(() => [...o[33] ||= [s(" 导入 ", -1)]]),
2564
2675
  _: 1
2565
2676
  }, 8, ["disabled"])]),
2566
- a("div", Yt, [c(v, {
2677
+ a("div", $t, [c(v, {
2567
2678
  size: "small",
2568
2679
  onClick: o[10] ||= (e) => t.$emit("clear"),
2569
2680
  disabled: e.disabled,
@@ -2590,7 +2701,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2590
2701
  _: 1
2591
2702
  })]),
2592
2703
  o[38] ||= a("div", { class: "toolbar-spacer" }, null, -1),
2593
- a("div", Xt, [c(v, {
2704
+ a("div", en, [c(v, {
2594
2705
  size: "small",
2595
2706
  type: "primary",
2596
2707
  onClick: o[12] ||= (e) => t.$emit("save")
@@ -2648,16 +2759,16 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2648
2759
  ]);
2649
2760
  };
2650
2761
  }
2651
- }, [["__scopeId", "data-v-655606b2"]]), 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 = [
2652
2763
  "width",
2653
2764
  "height",
2654
2765
  "rx"
2655
- ], rn = [
2766
+ ], cn = [
2656
2767
  "width",
2657
2768
  "height",
2658
2769
  "rx",
2659
2770
  "stroke"
2660
- ], an = [
2771
+ ], ln = [
2661
2772
  "width",
2662
2773
  "height",
2663
2774
  "rx",
@@ -2665,19 +2776,19 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2665
2776
  "stroke-width",
2666
2777
  "stroke-dasharray",
2667
2778
  "filter"
2668
- ], on = [
2779
+ ], un = [
2669
2780
  "x1",
2670
2781
  "y1",
2671
2782
  "x2",
2672
2783
  "y2",
2673
2784
  "stroke"
2674
- ], sn = [
2785
+ ], dn = [
2675
2786
  "x1",
2676
2787
  "y1",
2677
2788
  "x2",
2678
2789
  "y2",
2679
2790
  "stroke"
2680
- ], cn = [
2791
+ ], fn = [
2681
2792
  "width",
2682
2793
  "height",
2683
2794
  "rx",
@@ -2685,11 +2796,11 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2685
2796
  "stroke",
2686
2797
  "stroke-width",
2687
2798
  "filter"
2688
- ], ln = [
2799
+ ], pn = [
2689
2800
  "href",
2690
2801
  "width",
2691
2802
  "height"
2692
- ], un = [
2803
+ ], mn = [
2693
2804
  "cx",
2694
2805
  "cy",
2695
2806
  "rx",
@@ -2698,41 +2809,41 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2698
2809
  "stroke",
2699
2810
  "stroke-width",
2700
2811
  "filter"
2701
- ], dn = [
2812
+ ], hn = [
2702
2813
  "points",
2703
2814
  "fill",
2704
2815
  "stroke",
2705
2816
  "stroke-width",
2706
2817
  "filter"
2707
- ], fn = { key: 10 }, pn = [
2818
+ ], gn = { key: 10 }, _n = [
2708
2819
  "cx",
2709
2820
  "fill",
2710
2821
  "stroke",
2711
2822
  "stroke-width",
2712
2823
  "filter"
2713
- ], mn = ["d", "stroke"], hn = [
2824
+ ], vn = ["d", "stroke"], yn = [
2714
2825
  "x1",
2715
2826
  "x2",
2716
2827
  "stroke"
2717
- ], gn = [
2828
+ ], bn = [
2718
2829
  "x1",
2719
2830
  "x2",
2720
2831
  "stroke"
2721
- ], _n = [
2832
+ ], xn = [
2722
2833
  "x1",
2723
2834
  "x2",
2724
2835
  "stroke"
2725
- ], vn = [
2836
+ ], Sn = [
2726
2837
  "x1",
2727
2838
  "x2",
2728
2839
  "y2",
2729
2840
  "stroke"
2730
- ], yn = [
2841
+ ], Cn = [
2731
2842
  "x1",
2732
2843
  "x2",
2733
2844
  "y2",
2734
2845
  "stroke"
2735
- ], bn = { key: 11 }, xn = [
2846
+ ], wn = { key: 11 }, Tn = [
2736
2847
  "width",
2737
2848
  "height",
2738
2849
  "rx",
@@ -2740,47 +2851,47 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2740
2851
  "stroke",
2741
2852
  "stroke-width",
2742
2853
  "filter"
2743
- ], Sn = ["y", "width"], Cn = { key: 12 }, wn = [
2854
+ ], En = ["y", "width"], Dn = { key: 12 }, On = [
2744
2855
  "d",
2745
2856
  "fill",
2746
2857
  "stroke",
2747
2858
  "stroke-width",
2748
2859
  "filter"
2749
- ], Tn = { key: 13 }, En = [
2860
+ ], kn = { key: 13 }, An = [
2750
2861
  "points",
2751
2862
  "fill",
2752
2863
  "stroke",
2753
2864
  "stroke-width",
2754
2865
  "filter"
2755
- ], Dn = { key: 14 }, On = [
2866
+ ], jn = { key: 14 }, Mn = [
2756
2867
  "d",
2757
2868
  "fill",
2758
2869
  "stroke",
2759
2870
  "stroke-width",
2760
2871
  "filter"
2761
- ], kn = [
2872
+ ], Nn = [
2762
2873
  "d",
2763
2874
  "fill",
2764
2875
  "stroke",
2765
2876
  "stroke-width"
2766
- ], An = { key: 15 }, jn = [
2877
+ ], Pn = { key: 15 }, Fn = [
2767
2878
  "d",
2768
2879
  "fill",
2769
2880
  "stroke",
2770
2881
  "stroke-width",
2771
2882
  "filter"
2772
- ], Mn = [
2883
+ ], In = [
2773
2884
  "d",
2774
2885
  "fill",
2775
2886
  "stroke",
2776
2887
  "stroke-width"
2777
- ], Nn = { key: 16 }, Pn = [
2888
+ ], Ln = { key: 16 }, Rn = [
2778
2889
  "d",
2779
2890
  "fill",
2780
2891
  "stroke",
2781
2892
  "stroke-width",
2782
2893
  "filter"
2783
- ], Fn = [
2894
+ ], zn = [
2784
2895
  "cx",
2785
2896
  "cy",
2786
2897
  "rx",
@@ -2788,18 +2899,18 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2788
2899
  "fill",
2789
2900
  "stroke",
2790
2901
  "stroke-width"
2791
- ], In = [
2902
+ ], Bn = [
2792
2903
  "cx",
2793
2904
  "cy",
2794
2905
  "rx",
2795
2906
  "ry"
2796
- ], Ln = { key: 17 }, Rn = [
2907
+ ], Vn = { key: 17 }, Hn = [
2797
2908
  "points",
2798
2909
  "fill",
2799
2910
  "stroke",
2800
2911
  "stroke-width",
2801
2912
  "filter"
2802
- ], zn = { key: 18 }, Bn = [
2913
+ ], Un = { key: 18 }, Wn = [
2803
2914
  "cx",
2804
2915
  "cy",
2805
2916
  "r",
@@ -2807,21 +2918,21 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2807
2918
  "stroke",
2808
2919
  "stroke-width",
2809
2920
  "filter"
2810
- ], Vn = [
2921
+ ], Gn = [
2811
2922
  "cx",
2812
2923
  "cy",
2813
2924
  "r"
2814
- ], Hn = [
2925
+ ], Kn = [
2815
2926
  "x1",
2816
2927
  "y1",
2817
2928
  "x2",
2818
2929
  "y2"
2819
- ], Un = [
2930
+ ], qn = [
2820
2931
  "x1",
2821
2932
  "y1",
2822
2933
  "x2",
2823
2934
  "y2"
2824
- ], Wn = ["cx", "cy"], Gn = { key: 19 }, Kn = [
2935
+ ], Jn = ["cx", "cy"], Yn = { key: 19 }, Xn = [
2825
2936
  "width",
2826
2937
  "height",
2827
2938
  "rx",
@@ -2829,7 +2940,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2829
2940
  "stroke",
2830
2941
  "stroke-width",
2831
2942
  "filter"
2832
- ], qn = ["d"], Jn = [
2943
+ ], Zn = ["d"], Qn = [
2833
2944
  "width",
2834
2945
  "height",
2835
2946
  "rx",
@@ -2837,22 +2948,22 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2837
2948
  "stroke",
2838
2949
  "stroke-width",
2839
2950
  "filter"
2840
- ], Yn = [
2951
+ ], $n = [
2841
2952
  "width",
2842
2953
  "height",
2843
2954
  "rx",
2844
2955
  "stroke"
2845
- ], Xn = [
2956
+ ], er = [
2846
2957
  "width",
2847
2958
  "height",
2848
2959
  "rx",
2849
2960
  "stroke"
2850
- ], Zn = [
2961
+ ], tr = [
2851
2962
  "width",
2852
2963
  "height",
2853
2964
  "rx",
2854
2965
  "stroke"
2855
- ], Qn = [
2966
+ ], nr = [
2856
2967
  "x",
2857
2968
  "y",
2858
2969
  "text-anchor",
@@ -2860,14 +2971,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
2860
2971
  "fill",
2861
2972
  "font-size",
2862
2973
  "transform"
2863
- ], $n = {
2974
+ ], rr = {
2864
2975
  key: 0,
2865
2976
  class: "resize-handles"
2866
- }, er = [
2977
+ }, ir = [
2867
2978
  "x",
2868
2979
  "y",
2869
2980
  "onMousedown"
2870
- ], tr = ["cx", "cy"], nr = ["cx", "cy"], rr = /*#__PURE__*/ Q({
2981
+ ], ar = ["cx", "cy"], or = ["cx", "cy"], sr = /*#__PURE__*/ Q({
2871
2982
  __name: "DiagramNode",
2872
2983
  props: {
2873
2984
  node: {
@@ -3137,8 +3248,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3137
3248
  }
3138
3249
  return n;
3139
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 = () => {
3140
- v &&= (v(), null), G(), u.value = null;
3141
- }, W = (e) => {
3251
+ v &&= (v(), null), W(), u.value = null;
3252
+ }, ee = (e) => {
3142
3253
  if (c.node.locked || e.button !== 0) return;
3143
3254
  if (c.connectMode) {
3144
3255
  l("start-connect", c.node.id);
@@ -3153,28 +3264,28 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3153
3264
  let t = (e) => {
3154
3265
  if (!u.value) return;
3155
3266
  let t = e.clientX - u.value.x, n = e.clientY - u.value.y;
3156
- (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 = {
3157
3268
  x: e.clientX,
3158
3269
  y: e.clientY
3159
3270
  };
3160
3271
  }, n = () => {
3161
- 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);
3162
3273
  };
3163
3274
  v = () => {
3164
3275
  window.removeEventListener("mousemove", t), window.removeEventListener("mouseup", n), v = null;
3165
3276
  }, window.addEventListener("mousemove", t), window.addEventListener("mouseup", n);
3166
- }, G = () => {
3277
+ }, W = () => {
3167
3278
  d.value = !1, f &&= (clearTimeout(f), null);
3279
+ }, G = () => {
3280
+ d.value = !1, W();
3168
3281
  }, K = () => {
3169
- d.value = !1, G();
3170
- }, ee = () => {
3171
3282
  (c.connectMode || c.autoConnectMode) && l("end-connect", h ? null : c.node.id);
3172
- }, q = () => {
3173
- l("select", c.node.id);
3174
3283
  }, te = () => {
3284
+ l("select", c.node.id);
3285
+ }, q = () => {
3175
3286
  g &&= (g(), null);
3176
3287
  }, J = (e, t) => {
3177
- te();
3288
+ q();
3178
3289
  let n = t.clientX, r = t.clientY, i = c.node.width, a = c.node.height, o = (t) => {
3179
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);
3180
3291
  l("resize", c.node.id, u, d);
@@ -3186,8 +3297,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3186
3297
  }, window.addEventListener("mousemove", o), window.addEventListener("mouseup", s);
3187
3298
  };
3188
3299
  return E(() => c.selected, (e) => {
3189
- e || (te(), U());
3190
- }), o({ clearAutoConnect: K }), (t, o) => (_(), i("g", {
3300
+ e || (q(), U());
3301
+ }), o({ clearAutoConnect: G }), (t, o) => (_(), i("g", {
3191
3302
  class: p(["diagram-node", {
3192
3303
  selected: n.selected,
3193
3304
  locked: n.node.locked
@@ -3197,9 +3308,9 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3197
3308
  opacity: n.node.visible ? 1 : .3,
3198
3309
  cursor: n.connectMode || n.autoConnectMode ? "crosshair" : "move"
3199
3310
  }),
3200
- onMousedown: A(W, ["stop"]),
3201
- onMouseup: A(ee, ["stop"]),
3202
- onClick: A(q, ["stop"]),
3311
+ onMousedown: A(ee, ["stop"]),
3312
+ onMouseup: A(K, ["stop"]),
3313
+ onClick: A(te, ["stop"]),
3203
3314
  onDblclick: o[0] ||= (e) => t.$emit("select", n.node.id),
3204
3315
  onContextmenu: o[1] ||= A((e) => t.$emit("reset-state"), ["prevent"]),
3205
3316
  onMouseenter: o[2] ||= (e) => t.$emit("hover-remark", {
@@ -3217,7 +3328,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3217
3328
  class: p(["node-shape", `anim-${n.node.animation}`]),
3218
3329
  style: m(z.value)
3219
3330
  }, [
3220
- T.value.type === "gradient" ? (_(), i("defs", $t, [a("linearGradient", {
3331
+ T.value.type === "gradient" ? (_(), i("defs", rn, [a("linearGradient", {
3221
3332
  id: `grad-${n.node.id}`,
3222
3333
  x1: "0%",
3223
3334
  y1: "0%",
@@ -3227,7 +3338,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3227
3338
  key: t,
3228
3339
  offset: `${t / (T.value.colors.length - 1) * 100}%`,
3229
3340
  "stop-color": e
3230
- }, null, 8, tn))), 128))], 8, en)])) : r("", !0),
3341
+ }, null, 8, on))), 128))], 8, an)])) : r("", !0),
3231
3342
  C.value.nodeStyle.glassHighlight ? (_(), i(e, { key: 1 }, [n.node.shape === "rect" ? (_(), i("rect", {
3232
3343
  key: 0,
3233
3344
  width: n.node.width,
@@ -3235,7 +3346,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3235
3346
  rx: C.value.nodeStyle.borderRadius,
3236
3347
  fill: "rgba(255,255,255,0.15)",
3237
3348
  style: { "pointer-events": "none" }
3238
- }, null, 8, nn)) : r("", !0)], 64)) : r("", !0),
3349
+ }, null, 8, sn)) : r("", !0)], 64)) : r("", !0),
3239
3350
  C.value.nodeStyle.glowEffect && n.selected ? (_(), i(e, { key: 2 }, [n.node.shape === "rect" ? (_(), i("rect", {
3240
3351
  key: 0,
3241
3352
  x: -4,
@@ -3248,7 +3359,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3248
3359
  "stroke-width": 3,
3249
3360
  filter: "url(#neon-glow-strong)",
3250
3361
  class: "glow-rect"
3251
- }, null, 8, rn)) : r("", !0)], 64)) : r("", !0),
3362
+ }, null, 8, cn)) : r("", !0)], 64)) : r("", !0),
3252
3363
  n.node.type === "custom" && (n.selected || n.node.strokeWidth > 0) ? (_(), i("rect", {
3253
3364
  key: 3,
3254
3365
  width: n.node.width,
@@ -3259,7 +3370,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3259
3370
  "stroke-width": n.selected ? 3 : n.node.strokeWidth,
3260
3371
  "stroke-dasharray": n.node.strokeWidth > 0 ? "8,4" : "none",
3261
3372
  filter: `url(#${P.value})`
3262
- }, null, 8, an)) : r("", !0),
3373
+ }, null, 8, ln)) : r("", !0),
3263
3374
  n.node.type === "custom" && (n.selected || n.node.strokeWidth > 0) ? (_(), i("line", {
3264
3375
  key: 4,
3265
3376
  x1: n.node.width / 2,
@@ -3268,7 +3379,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3268
3379
  y2: n.node.height * .7,
3269
3380
  stroke: n.selected ? "#409eff" : "#909399",
3270
3381
  "stroke-width": "2"
3271
- }, null, 8, on)) : r("", !0),
3382
+ }, null, 8, un)) : r("", !0),
3272
3383
  n.node.type === "custom" && (n.selected || n.node.strokeWidth > 0) ? (_(), i("line", {
3273
3384
  key: 5,
3274
3385
  x1: n.node.width * .3,
@@ -3277,7 +3388,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3277
3388
  y2: n.node.height / 2,
3278
3389
  stroke: n.selected ? "#409eff" : "#909399",
3279
3390
  "stroke-width": "2"
3280
- }, null, 8, sn)) : n.node.shape === "rect" ? (_(), i("rect", {
3391
+ }, null, 8, dn)) : n.node.shape === "rect" ? (_(), i("rect", {
3281
3392
  key: 6,
3282
3393
  width: n.node.width,
3283
3394
  height: n.node.height,
@@ -3286,7 +3397,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3286
3397
  stroke: M.value.color,
3287
3398
  "stroke-width": n.selected ? 3 : M.value.width,
3288
3399
  filter: `url(#${P.value})`
3289
- }, null, 8, cn)) : r("", !0),
3400
+ }, null, 8, fn)) : r("", !0),
3290
3401
  n.node.type === "custom" && n.node.image ? (_(), i("image", {
3291
3402
  key: 7,
3292
3403
  href: n.node.image,
@@ -3294,7 +3405,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3294
3405
  height: n.node.height,
3295
3406
  preserveAspectRatio: "none",
3296
3407
  style: { "pointer-events": "none" }
3297
- }, null, 8, ln)) : n.node.shape === "ellipse" ? (_(), i("ellipse", {
3408
+ }, null, 8, pn)) : n.node.shape === "ellipse" ? (_(), i("ellipse", {
3298
3409
  key: 8,
3299
3410
  cx: n.node.width / 2,
3300
3411
  cy: n.node.height / 2,
@@ -3304,14 +3415,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3304
3415
  stroke: M.value.color,
3305
3416
  "stroke-width": n.selected ? 3 : M.value.width,
3306
3417
  filter: `url(#${P.value})`
3307
- }, null, 8, un)) : n.node.shape === "diamond" ? (_(), i("polygon", {
3418
+ }, null, 8, mn)) : n.node.shape === "diamond" ? (_(), i("polygon", {
3308
3419
  key: 9,
3309
3420
  points: I.value,
3310
3421
  fill: j.value,
3311
3422
  stroke: M.value.color,
3312
3423
  "stroke-width": n.selected ? 3 : M.value.width,
3313
3424
  filter: `url(#${P.value})`
3314
- }, null, 8, dn)) : n.node.shape === "person" ? (_(), i("g", fn, [
3425
+ }, null, 8, hn)) : n.node.shape === "person" ? (_(), i("g", gn, [
3315
3426
  a("ellipse", {
3316
3427
  cx: n.node.width / 2,
3317
3428
  cy: 18,
@@ -3321,14 +3432,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3321
3432
  stroke: M.value.color,
3322
3433
  "stroke-width": n.selected ? 3 : M.value.width,
3323
3434
  filter: `url(#${P.value})`
3324
- }, null, 8, pn),
3435
+ }, null, 8, _n),
3325
3436
  a("path", {
3326
3437
  d: `M ${n.node.width / 2 - 18} 70 Q ${n.node.width / 2} 45 ${n.node.width / 2 + 18} 70`,
3327
3438
  fill: "none",
3328
3439
  stroke: M.value.color,
3329
3440
  "stroke-width": "5",
3330
3441
  "stroke-linecap": "round"
3331
- }, null, 8, mn),
3442
+ }, null, 8, vn),
3332
3443
  a("line", {
3333
3444
  x1: n.node.width / 2,
3334
3445
  y1: 32,
@@ -3337,7 +3448,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3337
3448
  stroke: M.value.color,
3338
3449
  "stroke-width": "5",
3339
3450
  "stroke-linecap": "round"
3340
- }, null, 8, hn),
3451
+ }, null, 8, yn),
3341
3452
  a("line", {
3342
3453
  x1: n.node.width / 2,
3343
3454
  y1: 38,
@@ -3346,7 +3457,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3346
3457
  stroke: M.value.color,
3347
3458
  "stroke-width": "4",
3348
3459
  "stroke-linecap": "round"
3349
- }, null, 8, gn),
3460
+ }, null, 8, bn),
3350
3461
  a("line", {
3351
3462
  x1: n.node.width / 2,
3352
3463
  y1: 38,
@@ -3355,7 +3466,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3355
3466
  stroke: M.value.color,
3356
3467
  "stroke-width": "4",
3357
3468
  "stroke-linecap": "round"
3358
- }, null, 8, _n),
3469
+ }, null, 8, xn),
3359
3470
  a("line", {
3360
3471
  x1: n.node.width / 2,
3361
3472
  y1: 70,
@@ -3364,7 +3475,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3364
3475
  stroke: M.value.color,
3365
3476
  "stroke-width": "4",
3366
3477
  "stroke-linecap": "round"
3367
- }, null, 8, vn),
3478
+ }, null, 8, Sn),
3368
3479
  a("line", {
3369
3480
  x1: n.node.width / 2,
3370
3481
  y1: 70,
@@ -3373,8 +3484,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3373
3484
  stroke: M.value.color,
3374
3485
  "stroke-width": "4",
3375
3486
  "stroke-linecap": "round"
3376
- }, null, 8, yn)
3377
- ])) : n.node.shape === "subprocess" ? (_(), i("g", bn, [a("rect", {
3487
+ }, null, 8, Cn)
3488
+ ])) : n.node.shape === "subprocess" ? (_(), i("g", wn, [a("rect", {
3378
3489
  width: n.node.width,
3379
3490
  height: n.node.height,
3380
3491
  rx: C.value.nodeStyle.borderRadius,
@@ -3382,48 +3493,48 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3382
3493
  stroke: M.value.color,
3383
3494
  "stroke-width": n.selected ? 3 : M.value.width,
3384
3495
  filter: `url(#${P.value})`
3385
- }, null, 8, xn), a("rect", {
3496
+ }, null, 8, Tn), a("rect", {
3386
3497
  x: 4,
3387
3498
  y: n.node.height - 14,
3388
3499
  width: n.node.width - 8,
3389
3500
  height: "10",
3390
3501
  rx: "2",
3391
3502
  fill: "rgba(255,255,255,0.3)"
3392
- }, 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", {
3393
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`,
3394
3505
  fill: j.value,
3395
3506
  stroke: M.value.color,
3396
3507
  "stroke-width": n.selected ? 3 : M.value.width,
3397
3508
  filter: `url(#${P.value})`
3398
- }, 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", {
3399
3510
  points: `${n.node.width * .15} 0, ${n.node.width} 0, ${n.node.width * .85} ${n.node.height}, 0 ${n.node.height}`,
3400
3511
  fill: j.value,
3401
3512
  stroke: M.value.color,
3402
3513
  "stroke-width": n.selected ? 3 : M.value.width,
3403
3514
  filter: `url(#${P.value})`
3404
- }, 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", {
3405
3516
  d: `M 0 12 H ${n.node.width} V ${n.node.height} H 0 Z`,
3406
3517
  fill: j.value,
3407
3518
  stroke: M.value.color,
3408
3519
  "stroke-width": n.selected ? 3 : M.value.width,
3409
3520
  filter: `url(#${P.value})`
3410
- }, null, 8, On), a("path", {
3521
+ }, null, 8, Mn), a("path", {
3411
3522
  d: `M 0 12 V 0 H ${n.node.width * .35} L ${n.node.width * .45} 12`,
3412
3523
  fill: j.value,
3413
3524
  stroke: M.value.color,
3414
3525
  "stroke-width": n.selected ? 3 : M.value.width
3415
- }, 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", {
3416
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`,
3417
3528
  fill: j.value,
3418
3529
  stroke: M.value.color,
3419
3530
  "stroke-width": n.selected ? 3 : M.value.width,
3420
3531
  filter: `url(#${P.value})`
3421
- }, null, 8, jn), a("path", {
3532
+ }, null, 8, Fn), a("path", {
3422
3533
  d: `M ${n.node.width - 15} ${n.node.height - 15} V ${n.node.height} L ${n.node.width} ${n.node.height - 15}`,
3423
3534
  fill: j.value,
3424
3535
  stroke: M.value.color,
3425
3536
  "stroke-width": n.selected ? 3 : M.value.width
3426
- }, null, 8, Mn)])) : n.node.shape === "cylinder" ? (_(), i("g", Nn, [
3537
+ }, null, 8, In)])) : n.node.shape === "cylinder" ? (_(), i("g", Ln, [
3427
3538
  a("path", {
3428
3539
  d: `M 0 ${n.node.height * .15}
3429
3540
  Q 0 ${n.node.height * .05} ${n.node.width * .1} ${n.node.height * .02}
@@ -3437,7 +3548,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3437
3548
  stroke: M.value.color,
3438
3549
  "stroke-width": n.selected ? 3 : M.value.width,
3439
3550
  filter: `url(#${P.value})`
3440
- }, null, 8, Pn),
3551
+ }, null, 8, Rn),
3441
3552
  a("ellipse", {
3442
3553
  cx: n.node.width / 2,
3443
3554
  cy: n.node.height * .15,
@@ -3446,7 +3557,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3446
3557
  fill: j.value,
3447
3558
  stroke: M.value.color,
3448
3559
  "stroke-width": n.selected ? 3 : M.value.width
3449
- }, null, 8, Fn),
3560
+ }, null, 8, zn),
3450
3561
  a("ellipse", {
3451
3562
  cx: n.node.width / 2,
3452
3563
  cy: n.node.height * .15,
@@ -3454,14 +3565,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3454
3565
  ry: n.node.height * .08,
3455
3566
  fill: "rgba(255,255,255,0.2)",
3456
3567
  stroke: "none"
3457
- }, null, 8, In)
3458
- ])) : n.node.shape === "hexagon" ? (_(), i("g", Ln, [a("polygon", {
3568
+ }, null, 8, Bn)
3569
+ ])) : n.node.shape === "hexagon" ? (_(), i("g", Vn, [a("polygon", {
3459
3570
  points: L.value,
3460
3571
  fill: j.value,
3461
3572
  stroke: M.value.color,
3462
3573
  "stroke-width": n.selected ? 3 : M.value.width,
3463
3574
  filter: `url(#${P.value})`
3464
- }, null, 8, Rn)])) : n.node.shape === "timer" ? (_(), i("g", zn, [
3575
+ }, null, 8, Hn)])) : n.node.shape === "timer" ? (_(), i("g", Un, [
3465
3576
  a("circle", {
3466
3577
  cx: n.node.width / 2,
3467
3578
  cy: n.node.height / 2,
@@ -3470,7 +3581,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3470
3581
  stroke: M.value.color,
3471
3582
  "stroke-width": n.selected ? 3 : M.value.width,
3472
3583
  filter: `url(#${P.value})`
3473
- }, null, 8, Bn),
3584
+ }, null, 8, Wn),
3474
3585
  a("circle", {
3475
3586
  cx: n.node.width / 2,
3476
3587
  cy: n.node.height / 2,
@@ -3478,7 +3589,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3478
3589
  fill: "none",
3479
3590
  stroke: "rgba(255,255,255,0.4)",
3480
3591
  "stroke-width": "1"
3481
- }, null, 8, Vn),
3592
+ }, null, 8, Gn),
3482
3593
  a("line", {
3483
3594
  x1: n.node.width / 2,
3484
3595
  y1: n.node.height / 2,
@@ -3487,7 +3598,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3487
3598
  stroke: "#fff",
3488
3599
  "stroke-width": "2",
3489
3600
  "stroke-linecap": "round"
3490
- }, null, 8, Hn),
3601
+ }, null, 8, Kn),
3491
3602
  a("line", {
3492
3603
  x1: n.node.width / 2,
3493
3604
  y1: n.node.height / 2,
@@ -3496,14 +3607,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3496
3607
  stroke: "#fff",
3497
3608
  "stroke-width": "1.5",
3498
3609
  "stroke-linecap": "round"
3499
- }, null, 8, Un),
3610
+ }, null, 8, qn),
3500
3611
  a("circle", {
3501
3612
  cx: n.node.width / 2,
3502
3613
  cy: n.node.height / 2,
3503
3614
  r: "3",
3504
3615
  fill: "#fff"
3505
- }, null, 8, Wn)
3506
- ])) : n.node.shape === "rounded闪电" ? (_(), i("g", Gn, [a("rect", {
3616
+ }, null, 8, Jn)
3617
+ ])) : n.node.shape === "rounded闪电" ? (_(), i("g", Yn, [a("rect", {
3507
3618
  width: n.node.width,
3508
3619
  height: n.node.height,
3509
3620
  rx: n.node.height / 3,
@@ -3511,7 +3622,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3511
3622
  stroke: M.value.color,
3512
3623
  "stroke-width": n.selected ? 3 : M.value.width,
3513
3624
  filter: `url(#${P.value})`
3514
- }, null, 8, Kn), a("path", {
3625
+ }, null, 8, Xn), a("path", {
3515
3626
  d: `M ${n.node.width * .55} ${n.node.height * .15}
3516
3627
  L ${n.node.width * .35} ${n.node.height * .45}
3517
3628
  H ${n.node.width * .52}
@@ -3520,7 +3631,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3520
3631
  H ${n.node.width * .48} Z`,
3521
3632
  fill: "#fff",
3522
3633
  opacity: "0.9"
3523
- }, null, 8, qn)])) : (_(), i("rect", {
3634
+ }, null, 8, Zn)])) : (_(), i("rect", {
3524
3635
  key: 20,
3525
3636
  width: n.node.width,
3526
3637
  height: n.node.height,
@@ -3529,7 +3640,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3529
3640
  stroke: M.value.color,
3530
3641
  "stroke-width": n.selected ? 3 : M.value.width,
3531
3642
  filter: `url(#${P.value})`
3532
- }, null, 8, Jn)),
3643
+ }, null, 8, Qn)),
3533
3644
  n.node.animation === "breathing" ? (_(), i("rect", {
3534
3645
  key: 21,
3535
3646
  width: n.node.width + 6,
@@ -3542,7 +3653,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3542
3653
  "stroke-width": "2",
3543
3654
  class: "breathing-ring",
3544
3655
  style: m(V.value)
3545
- }, null, 12, Yn)) : r("", !0),
3656
+ }, null, 12, $n)) : r("", !0),
3546
3657
  n.node.animation === "glowPulse" ? (_(), i("rect", {
3547
3658
  key: 22,
3548
3659
  width: n.node.width,
@@ -3553,7 +3664,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3553
3664
  "stroke-width": "2",
3554
3665
  class: "glow-pulse-ring",
3555
3666
  style: m(B.value)
3556
- }, null, 12, Xn)) : r("", !0),
3667
+ }, null, 12, er)) : r("", !0),
3557
3668
  n.node.animation === "ripple" ? (_(), i("rect", {
3558
3669
  key: 23,
3559
3670
  x: -10,
@@ -3566,7 +3677,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3566
3677
  "stroke-width": "2",
3567
3678
  class: "ripple-ring",
3568
3679
  style: m(H.value)
3569
- }, null, 12, Zn)) : r("", !0)
3680
+ }, null, 12, tr)) : r("", !0)
3570
3681
  ], 6),
3571
3682
  a("text", {
3572
3683
  x: F.value.x,
@@ -3584,8 +3695,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3584
3695
  "pointer-events": "none",
3585
3696
  "user-select": "none"
3586
3697
  }
3587
- }, S(n.node.label), 11, Qn),
3588
- 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", {
3589
3700
  key: e.cursor,
3590
3701
  x: e.x - 4,
3591
3702
  y: e.y - 4,
@@ -3596,7 +3707,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3596
3707
  "stroke-width": "1",
3597
3708
  style: m({ cursor: e.cursor }),
3598
3709
  onMousedown: A((t) => J(e, t), ["stop"])
3599
- }, null, 44, er))), 128))])) : r("", !0),
3710
+ }, null, 44, ir))), 128))])) : r("", !0),
3600
3711
  x.value ? (_(), i("circle", {
3601
3712
  key: 1,
3602
3713
  cx: n.node.width / 2,
@@ -3605,7 +3716,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3605
3716
  fill: "#409eff",
3606
3717
  opacity: "0.6",
3607
3718
  class: "connect-target"
3608
- }, null, 8, tr)) : r("", !0),
3719
+ }, null, 8, ar)) : r("", !0),
3609
3720
  d.value ? (_(), i("circle", {
3610
3721
  key: 2,
3611
3722
  cx: n.node.width / 2,
@@ -3617,49 +3728,49 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3617
3728
  "stroke-dasharray": "113",
3618
3729
  "stroke-dashoffset": "113",
3619
3730
  class: "long-press-ring"
3620
- }, null, 8, nr)) : r("", !0)
3621
- ], 46, Qt));
3731
+ }, null, 8, or)) : r("", !0)
3732
+ ], 46, nn));
3622
3733
  }
3623
- }, [["__scopeId", "data-v-e89a49e8"]]), ir = ["d", "stroke-width"], ar = [
3734
+ }, [["__scopeId", "data-v-e89a49e8"]]), cr = ["d", "stroke-width"], lr = [
3624
3735
  "d",
3625
3736
  "stroke",
3626
3737
  "stroke-width",
3627
3738
  "stroke-dasharray"
3628
- ], or = ["dur"], sr = ["fill"], cr = ["dur", "path"], lr = ["fill"], ur = [
3739
+ ], ur = ["dur"], dr = ["fill"], fr = ["dur", "path"], pr = ["fill"], mr = [
3629
3740
  "dur",
3630
3741
  "path",
3631
3742
  "begin"
3632
- ], dr = ["fill"], fr = [
3743
+ ], hr = ["fill"], gr = [
3633
3744
  "dur",
3634
3745
  "path",
3635
3746
  "begin"
3636
- ], 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 = [
3637
3748
  "dur",
3638
3749
  "path",
3639
3750
  "begin"
3640
- ], yr = ["dur"], br = ["fill"], xr = [
3751
+ ], Cr = ["dur"], wr = ["fill"], Tr = [
3641
3752
  "dur",
3642
3753
  "path",
3643
3754
  "begin"
3644
- ], 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 = [
3645
3756
  "dur",
3646
3757
  "path",
3647
3758
  "begin"
3648
- ], 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 = [
3649
3760
  "dur",
3650
3761
  "path",
3651
3762
  "begin"
3652
- ], Ir = ["dur"], Lr = ["transform"], Rr = ["x", "width"], zr = {
3763
+ ], Br = ["dur"], Vr = ["transform"], Hr = ["x", "width"], Ur = {
3653
3764
  "text-anchor": "middle",
3654
3765
  "dominant-baseline": "central",
3655
3766
  fill: "#333",
3656
3767
  "font-size": "12",
3657
3768
  class: "edge-label"
3658
- }, Br = [
3769
+ }, Wr = [
3659
3770
  "points",
3660
3771
  "fill",
3661
3772
  "transform"
3662
- ], Vr = /*#__PURE__*/ Q({
3773
+ ], Gr = /*#__PURE__*/ Q({
3663
3774
  __name: "DiagramEdge",
3664
3775
  props: {
3665
3776
  edge: {
@@ -3781,7 +3892,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3781
3892
  stroke: "transparent",
3782
3893
  "stroke-width": Math.max(e.edge.lineWidth + 8, 12),
3783
3894
  class: "edge-hit-area"
3784
- }, null, 8, ir),
3895
+ }, null, 8, cr),
3785
3896
  a("path", {
3786
3897
  d: c.value,
3787
3898
  fill: "none",
@@ -3801,7 +3912,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3801
3912
  to: "-24",
3802
3913
  dur: (e.edge.animationDuration || 2) + "s",
3803
3914
  repeatCount: "indefinite"
3804
- }, null, 8, or)) : r("", !0)], 14, ar),
3915
+ }, null, 8, ur)) : r("", !0)], 14, lr),
3805
3916
  e.animationPlaying && e.edge.animation === "flow" ? (_(), i("circle", {
3806
3917
  key: 0,
3807
3918
  r: "4",
@@ -3812,7 +3923,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3812
3923
  dur: (e.edge.animationDuration || 2) + "s",
3813
3924
  repeatCount: "indefinite",
3814
3925
  path: c.value
3815
- }, null, 8, cr)], 12, sr)) : r("", !0),
3926
+ }, null, 8, fr)], 12, dr)) : r("", !0),
3816
3927
  e.animationPlaying && e.edge.animation === "flow" ? (_(), i("circle", {
3817
3928
  key: 1,
3818
3929
  r: "3",
@@ -3825,7 +3936,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3825
3936
  repeatCount: "indefinite",
3826
3937
  path: c.value,
3827
3938
  begin: (e.edge.animationDuration || 2) / 3 + "s"
3828
- }, null, 8, ur)], 12, lr)) : r("", !0),
3939
+ }, null, 8, mr)], 12, pr)) : r("", !0),
3829
3940
  e.animationPlaying && e.edge.animation === "flow" ? (_(), i("circle", {
3830
3941
  key: 2,
3831
3942
  r: "3",
@@ -3838,7 +3949,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3838
3949
  repeatCount: "indefinite",
3839
3950
  path: c.value,
3840
3951
  begin: (e.edge.animationDuration || 2) * 2 / 3 + "s"
3841
- }, null, 8, fr)], 12, dr)) : r("", !0),
3952
+ }, null, 8, gr)], 12, hr)) : r("", !0),
3842
3953
  e.animationPlaying && e.edge.animation === "particleGlow" ? (_(), i("circle", {
3843
3954
  key: 3,
3844
3955
  r: "5",
@@ -3849,20 +3960,20 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3849
3960
  dur: (e.edge.animationDuration || 2) + "s",
3850
3961
  repeatCount: "indefinite",
3851
3962
  path: c.value
3852
- }, null, 8, mr),
3963
+ }, null, 8, vr),
3853
3964
  a("animate", {
3854
3965
  attributeName: "r",
3855
3966
  values: "3;6;3",
3856
3967
  dur: (e.edge.animationDuration || 2) + "s",
3857
3968
  repeatCount: "indefinite"
3858
- }, null, 8, hr),
3969
+ }, null, 8, yr),
3859
3970
  a("animate", {
3860
3971
  attributeName: "opacity",
3861
3972
  values: "0.5;1;0.5",
3862
3973
  dur: (e.edge.animationDuration || 2) + "s",
3863
3974
  repeatCount: "indefinite"
3864
- }, null, 8, gr)
3865
- ], 8, pr)) : r("", !0),
3975
+ }, null, 8, br)
3976
+ ], 8, _r)) : r("", !0),
3866
3977
  e.animationPlaying && e.edge.animation === "particleGlow" ? (_(), i("circle", {
3867
3978
  key: 4,
3868
3979
  r: "4",
@@ -3874,12 +3985,12 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3874
3985
  repeatCount: "indefinite",
3875
3986
  path: c.value,
3876
3987
  begin: (e.edge.animationDuration || 2) / 3 + "s"
3877
- }, null, 8, vr), a("animate", {
3988
+ }, null, 8, Sr), a("animate", {
3878
3989
  attributeName: "r",
3879
3990
  values: "2;5;2",
3880
3991
  dur: (e.edge.animationDuration || 2) + "s",
3881
3992
  repeatCount: "indefinite"
3882
- }, null, 8, yr)], 8, _r)) : r("", !0),
3993
+ }, null, 8, Cr)], 8, xr)) : r("", !0),
3883
3994
  e.animationPlaying && e.edge.animation === "particleGlow" ? (_(), i("circle", {
3884
3995
  key: 5,
3885
3996
  r: "4",
@@ -3891,12 +4002,12 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3891
4002
  repeatCount: "indefinite",
3892
4003
  path: c.value,
3893
4004
  begin: (e.edge.animationDuration || 2) * 2 / 3 + "s"
3894
- }, null, 8, xr), a("animate", {
4005
+ }, null, 8, Tr), a("animate", {
3895
4006
  attributeName: "r",
3896
4007
  values: "2;5;2",
3897
4008
  dur: (e.edge.animationDuration || 2) + "s",
3898
4009
  repeatCount: "indefinite"
3899
- }, null, 8, Sr)], 8, br)) : r("", !0),
4010
+ }, null, 8, Er)], 8, wr)) : r("", !0),
3900
4011
  e.animationPlaying && e.edge.animation === "pulse" ? (_(), i("circle", {
3901
4012
  key: 6,
3902
4013
  r: "6",
@@ -3908,20 +4019,20 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3908
4019
  dur: (e.edge.animationDuration || 2) + "s",
3909
4020
  repeatCount: "indefinite",
3910
4021
  path: c.value
3911
- }, null, 8, wr),
4022
+ }, null, 8, Or),
3912
4023
  a("animate", {
3913
4024
  attributeName: "r",
3914
4025
  values: "2;8;2",
3915
4026
  dur: (e.edge.animationDuration || 2) + "s",
3916
4027
  repeatCount: "indefinite"
3917
- }, null, 8, Tr),
4028
+ }, null, 8, kr),
3918
4029
  a("animate", {
3919
4030
  attributeName: "opacity",
3920
4031
  values: "0;0.8;0",
3921
4032
  dur: (e.edge.animationDuration || 2) + "s",
3922
4033
  repeatCount: "indefinite"
3923
- }, null, 8, Er)
3924
- ], 8, Cr)) : r("", !0),
4034
+ }, null, 8, Ar)
4035
+ ], 8, Dr)) : r("", !0),
3925
4036
  e.animationPlaying && e.edge.animation === "pulse" ? (_(), i("circle", {
3926
4037
  key: 7,
3927
4038
  r: "6",
@@ -3934,20 +4045,20 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3934
4045
  repeatCount: "indefinite",
3935
4046
  path: c.value,
3936
4047
  begin: (e.edge.animationDuration || 2) / 2 + "s"
3937
- }, null, 8, Or),
4048
+ }, null, 8, Mr),
3938
4049
  a("animate", {
3939
4050
  attributeName: "r",
3940
4051
  values: "2;8;2",
3941
4052
  dur: (e.edge.animationDuration || 2) + "s",
3942
4053
  repeatCount: "indefinite"
3943
- }, null, 8, kr),
4054
+ }, null, 8, Nr),
3944
4055
  a("animate", {
3945
4056
  attributeName: "opacity",
3946
4057
  values: "0;0.8;0",
3947
4058
  dur: (e.edge.animationDuration || 2) + "s",
3948
4059
  repeatCount: "indefinite"
3949
- }, null, 8, Ar)
3950
- ], 8, Dr)) : r("", !0),
4060
+ }, null, 8, Pr)
4061
+ ], 8, jr)) : r("", !0),
3951
4062
  e.animationPlaying && e.edge.animation === "neon" ? (_(), i("circle", {
3952
4063
  key: 8,
3953
4064
  r: "4",
@@ -3957,12 +4068,12 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3957
4068
  dur: (e.edge.animationDuration || 2) + "s",
3958
4069
  repeatCount: "indefinite",
3959
4070
  path: c.value
3960
- }, null, 8, Mr), a("animate", {
4071
+ }, null, 8, Ir), a("animate", {
3961
4072
  attributeName: "r",
3962
4073
  values: "2;5;2",
3963
4074
  dur: (e.edge.animationDuration || 2) + "s",
3964
4075
  repeatCount: "indefinite"
3965
- }, null, 8, Nr)], 8, jr)) : r("", !0),
4076
+ }, null, 8, Lr)], 8, Fr)) : r("", !0),
3966
4077
  e.animationPlaying && e.edge.animation === "neon" ? (_(), i("circle", {
3967
4078
  key: 9,
3968
4079
  r: "4",
@@ -3974,12 +4085,12 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3974
4085
  repeatCount: "indefinite",
3975
4086
  path: c.value,
3976
4087
  begin: (e.edge.animationDuration || 2) / 2 + "s"
3977
- }, null, 8, Fr), a("animate", {
4088
+ }, null, 8, zr), a("animate", {
3978
4089
  attributeName: "r",
3979
4090
  values: "2;5;2",
3980
4091
  dur: (e.edge.animationDuration || 2) + "s",
3981
4092
  repeatCount: "indefinite"
3982
- }, null, 8, Ir)], 8, Pr)) : r("", !0),
4093
+ }, null, 8, Br)], 8, Rr)) : r("", !0),
3983
4094
  e.edge.label ? (_(), i("g", {
3984
4095
  key: 10,
3985
4096
  transform: `translate(${l.value.x}, ${l.value.y})`
@@ -3992,32 +4103,32 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
3992
4103
  fill: "#fff",
3993
4104
  stroke: "#e4e7ed",
3994
4105
  "stroke-width": "1"
3995
- }, 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),
3996
4107
  e.edge.arrowType === "none" ? r("", !0) : (_(), i("polygon", {
3997
4108
  key: 11,
3998
4109
  points: g.value,
3999
4110
  fill: e.selected ? "#409eff" : e.edge.lineColor,
4000
4111
  transform: `translate(${s.value.x}, ${s.value.y}) rotate(${h.value})`
4001
- }, null, 8, Br))
4112
+ }, null, 8, Wr))
4002
4113
  ], 34)) : r("", !0);
4003
4114
  }
4004
- }, [["__scopeId", "data-v-737212ef"]]), Hr = ["transform"], Ur = [
4115
+ }, [["__scopeId", "data-v-737212ef"]]), Kr = ["transform"], qr = [
4005
4116
  "width",
4006
4117
  "height",
4007
4118
  "fill",
4008
4119
  "stroke",
4009
4120
  "stroke-width"
4010
- ], Wr = [
4121
+ ], Jr = [
4011
4122
  "width",
4012
4123
  "height",
4013
4124
  "fill",
4014
4125
  "opacity"
4015
- ], Gr = [
4126
+ ], Yr = [
4016
4127
  "width",
4017
4128
  "height",
4018
4129
  "fill",
4019
4130
  "opacity"
4020
- ], Kr = [
4131
+ ], Xr = [
4021
4132
  "x",
4022
4133
  "y",
4023
4134
  "fill",
@@ -4026,7 +4137,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4026
4137
  "font-weight",
4027
4138
  "font-style",
4028
4139
  "transform"
4029
- ], qr = [
4140
+ ], Zr = [
4030
4141
  "x",
4031
4142
  "y",
4032
4143
  "text-anchor",
@@ -4035,63 +4146,63 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4035
4146
  "font-family",
4036
4147
  "font-weight",
4037
4148
  "font-style"
4038
- ], Jr = ["y", "width"], Yr = {
4149
+ ], Qr = ["y", "width"], $r = {
4039
4150
  xmlns: "http://www.w3.org/1999/xhtml",
4040
4151
  class: "edit-name-container"
4041
- }, Xr = ["x", "height"], Zr = {
4152
+ }, ei = ["x", "height"], ti = {
4042
4153
  xmlns: "http://www.w3.org/1999/xhtml",
4043
4154
  class: "edit-name-container vertical"
4044
- }, Qr = [
4155
+ }, ni = [
4045
4156
  "x1",
4046
4157
  "x2",
4047
4158
  "onClick"
4048
- ], $r = [
4159
+ ], ri = [
4049
4160
  "x1",
4050
4161
  "x2",
4051
4162
  "stroke"
4052
- ], ei = [
4163
+ ], ii = [
4053
4164
  "y1",
4054
4165
  "x2",
4055
4166
  "y2",
4056
4167
  "onClick",
4057
4168
  "onMousedown"
4058
- ], ti = [
4169
+ ], ai = [
4059
4170
  "x1",
4060
4171
  "x2",
4061
4172
  "y2",
4062
4173
  "onClick",
4063
4174
  "onMousedown"
4064
- ], ni = [
4175
+ ], oi = [
4065
4176
  "y1",
4066
4177
  "x2",
4067
4178
  "y2",
4068
4179
  "stroke"
4069
- ], ri = [
4180
+ ], si = [
4070
4181
  "x1",
4071
4182
  "x2",
4072
4183
  "y2",
4073
4184
  "stroke"
4074
- ], ii = [
4185
+ ], ci = [
4075
4186
  "y1",
4076
4187
  "x2",
4077
4188
  "y2",
4078
4189
  "onClick"
4079
- ], ai = [
4190
+ ], li = [
4080
4191
  "y1",
4081
4192
  "x2",
4082
4193
  "y2",
4083
4194
  "stroke"
4084
- ], oi = [
4195
+ ], ui = [
4085
4196
  "x1",
4086
4197
  "x2",
4087
4198
  "y2",
4088
4199
  "onClick"
4089
- ], si = [
4200
+ ], di = [
4090
4201
  "x1",
4091
4202
  "x2",
4092
4203
  "y2",
4093
4204
  "stroke"
4094
- ], ci = [
4205
+ ], fi = [
4095
4206
  "x",
4096
4207
  "y",
4097
4208
  "width",
@@ -4101,7 +4212,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4101
4212
  "stroke-width",
4102
4213
  "opacity",
4103
4214
  "onClick"
4104
- ], li = [
4215
+ ], pi = [
4105
4216
  "x",
4106
4217
  "y",
4107
4218
  "width",
@@ -4111,17 +4222,17 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4111
4222
  "stroke-width",
4112
4223
  "opacity",
4113
4224
  "onClick"
4114
- ], ui = [
4225
+ ], mi = [
4115
4226
  "x",
4116
4227
  "y",
4117
4228
  "width",
4118
4229
  "fill"
4119
- ], di = [
4230
+ ], hi = [
4120
4231
  "x",
4121
4232
  "y",
4122
4233
  "width",
4123
4234
  "fill"
4124
- ], fi = [
4235
+ ], gi = [
4125
4236
  "x",
4126
4237
  "y",
4127
4238
  "text-anchor",
@@ -4132,7 +4243,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4132
4243
  "font-style",
4133
4244
  "onClick",
4134
4245
  "onDblclick"
4135
- ], pi = [
4246
+ ], _i = [
4136
4247
  "x",
4137
4248
  "y",
4138
4249
  "text-anchor",
@@ -4143,29 +4254,29 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4143
4254
  "font-style",
4144
4255
  "onClick",
4145
4256
  "onDblclick"
4146
- ], mi = [
4257
+ ], vi = [
4147
4258
  "x",
4148
4259
  "y",
4149
4260
  "width"
4150
- ], hi = {
4261
+ ], yi = {
4151
4262
  xmlns: "http://www.w3.org/1999/xhtml",
4152
4263
  class: "edit-lane-container"
4153
- }, gi = ["onBlur", "onKeydown"], _i = [
4264
+ }, bi = ["onBlur", "onKeydown"], xi = [
4154
4265
  "x",
4155
4266
  "y",
4156
4267
  "width"
4157
- ], vi = {
4268
+ ], Si = {
4158
4269
  xmlns: "http://www.w3.org/1999/xhtml",
4159
4270
  class: "edit-lane-container"
4160
- }, 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 = [
4161
4272
  "y1",
4162
4273
  "x2",
4163
4274
  "y2"
4164
- ], wi = [
4275
+ ], Oi = [
4165
4276
  "x1",
4166
4277
  "x2",
4167
4278
  "y2"
4168
- ], Ti = /*#__PURE__*/ Q({
4279
+ ], ki = /*#__PURE__*/ Q({
4169
4280
  __name: "SwimlaneNode",
4170
4281
  props: {
4171
4282
  swimlane: {
@@ -4225,7 +4336,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4225
4336
  }), U = y({
4226
4337
  width: 0,
4227
4338
  height: 0
4228
- }), W = (e, t) => {
4339
+ }), ee = (e, t) => {
4229
4340
  e.preventDefault(), V.value = t, H.value = {
4230
4341
  x: e.clientX,
4231
4342
  y: e.clientY
@@ -4240,7 +4351,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4240
4351
  V.value = null, window.removeEventListener("mousemove", n), window.removeEventListener("mouseup", r);
4241
4352
  };
4242
4353
  window.addEventListener("mousemove", n), window.addEventListener("mouseup", r);
4243
- }, G = (e) => {
4354
+ }, W = (e) => {
4244
4355
  if (e.button !== 0 || e.target.closest(".resize-handle") || e.target.closest(".lane-divider-hit")) return;
4245
4356
  e.stopPropagation(), e.preventDefault();
4246
4357
  let t = e.clientX, n = e.clientY, r = s.swimlane.x, i = s.swimlane.y, a = (e) => {
@@ -4250,28 +4361,28 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4250
4361
  window.removeEventListener("mousemove", a), window.removeEventListener("mouseup", o);
4251
4362
  };
4252
4363
  window.addEventListener("mousemove", a), window.addEventListener("mouseup", o);
4253
- }, K = y(null), ee = y(0), q = y(0), te = y(0), J = (e, t) => {
4254
- 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));
4255
4366
  let n = {
4256
4367
  x: e.clientX,
4257
4368
  y: e.clientY
4258
4369
  }, r = (e) => {
4259
4370
  if (s.swimlane.direction === "horizontal") {
4260
- 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);
4261
4372
  c("resize-lane", s.swimlane.id, s.swimlane.lanes[t].id, i);
4262
4373
  } else {
4263
- 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);
4264
4375
  c("resize-lane", s.swimlane.id, s.swimlane.lanes[t].id, null, i);
4265
4376
  }
4266
4377
  }, i = () => {
4267
- K.value = null, window.removeEventListener("mousemove", r), window.removeEventListener("mouseup", i);
4378
+ G.value = null, window.removeEventListener("mousemove", r), window.removeEventListener("mouseup", i);
4268
4379
  };
4269
4380
  window.addEventListener("mousemove", r), window.addEventListener("mouseup", i);
4270
4381
  };
4271
4382
  return (t, o) => (_(), i("g", {
4272
4383
  class: p(["swimlane-node", { selected: n.selected }]),
4273
4384
  transform: `translate(${n.swimlane.x}, ${n.swimlane.y})`,
4274
- onMousedown: G
4385
+ onMousedown: W
4275
4386
  }, [
4276
4387
  a("rect", {
4277
4388
  width: n.swimlane.width,
@@ -4282,7 +4393,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4282
4393
  rx: "4",
4283
4394
  class: "swimlane-bg",
4284
4395
  onClick: o[0] ||= A((e) => t.$emit("select"), ["stop"])
4285
- }, null, 8, Ur),
4396
+ }, null, 8, qr),
4286
4397
  n.swimlane.direction === "horizontal" ? (_(), i("rect", {
4287
4398
  key: 0,
4288
4399
  width: l.value,
@@ -4293,7 +4404,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4293
4404
  class: "swimlane-header",
4294
4405
  onClick: A(j, ["stop"]),
4295
4406
  onDblclick: A(D, ["stop"])
4296
- }, null, 40, Wr)) : (_(), i("rect", {
4407
+ }, null, 40, Jr)) : (_(), i("rect", {
4297
4408
  key: 1,
4298
4409
  width: n.swimlane.width,
4299
4410
  height: u.value,
@@ -4303,7 +4414,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4303
4414
  class: "swimlane-header",
4304
4415
  onClick: A(j, ["stop"]),
4305
4416
  onDblclick: A(D, ["stop"])
4306
- }, null, 40, Gr)),
4417
+ }, null, 40, Yr)),
4307
4418
  !x.value && n.swimlane.direction === "horizontal" ? (_(), i("text", {
4308
4419
  key: 2,
4309
4420
  x: l.value / 2,
@@ -4318,7 +4429,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4318
4429
  "pointer-events": "none",
4319
4430
  transform: `rotate(-90, ${l.value / 2}, ${d.value / 2})`,
4320
4431
  dy: "0.35em"
4321
- }, 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", {
4322
4433
  key: 3,
4323
4434
  x: n.swimlane.textAlign === "left" ? 8 : n.swimlane.textAlign === "right" ? n.swimlane.width - 8 : n.swimlane.width / 2,
4324
4435
  y: u.value / 2,
@@ -4331,14 +4442,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4331
4442
  class: "swimlane-title",
4332
4443
  "pointer-events": "none",
4333
4444
  "dominant-baseline": "central"
4334
- }, S(n.swimlane.name), 9, qr)) : r("", !0),
4445
+ }, S(n.swimlane.name), 9, Zr)) : r("", !0),
4335
4446
  x.value && n.swimlane.direction === "horizontal" ? (_(), i("foreignObject", {
4336
4447
  key: 4,
4337
4448
  x: 0,
4338
4449
  y: d.value / 2 - 14,
4339
4450
  width: l.value,
4340
4451
  height: 28
4341
- }, [a("div", Yr, [O(a("input", {
4452
+ }, [a("div", $r, [O(a("input", {
4342
4453
  ref_key: "nameInputRef",
4343
4454
  ref: E,
4344
4455
  "onUpdate:modelValue": o[1] ||= (e) => C.value = e,
@@ -4353,14 +4464,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4353
4464
  onBlur: M,
4354
4465
  onKeydown: [k(M, ["enter"]), k(N, ["escape"])],
4355
4466
  onClick: o[2] ||= A(() => {}, ["stop"])
4356
- }, null, 36), [[w, C.value]])])], 8, Jr)) : r("", !0),
4467
+ }, null, 36), [[w, C.value]])])], 8, Qr)) : r("", !0),
4357
4468
  x.value && n.swimlane.direction === "vertical" ? (_(), i("foreignObject", {
4358
4469
  key: 5,
4359
4470
  x: n.swimlane.textAlign === "left" ? 0 : n.swimlane.textAlign === "right" ? n.swimlane.width - 120 : n.swimlane.width / 2 - 60,
4360
4471
  y: 0,
4361
4472
  width: 120,
4362
4473
  height: u.value
4363
- }, [a("div", Zr, [O(a("input", {
4474
+ }, [a("div", ti, [O(a("input", {
4364
4475
  ref_key: "nameInputRef",
4365
4476
  ref: E,
4366
4477
  "onUpdate:modelValue": o[3] ||= (e) => C.value = e,
@@ -4376,7 +4487,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4376
4487
  onBlur: M,
4377
4488
  onKeydown: [k(M, ["enter"]), k(N, ["escape"])],
4378
4489
  onClick: o[4] ||= A(() => {}, ["stop"])
4379
- }, null, 36), [[w, C.value]])])], 8, Xr)) : r("", !0),
4490
+ }, null, 36), [[w, C.value]])])], 8, ei)) : r("", !0),
4380
4491
  n.swimlane.lanes && n.swimlane.lanes.length ? (_(!0), i(e, { key: 6 }, b(n.swimlane.lanes, (t, s) => (_(), i("g", { key: t.id }, [
4381
4492
  s === 0 && n.swimlane.direction === "horizontal" ? (_(), i(e, { key: 0 }, [a("line", {
4382
4493
  x1: l.value,
@@ -4389,7 +4500,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4389
4500
  style: { cursor: "ns-resize" },
4390
4501
  onClick: A((e) => P(t.id), ["stop"]),
4391
4502
  onMousedown: o[5] ||= A((e) => J(e, 0), ["stop"])
4392
- }, null, 40, Qr), a("line", {
4503
+ }, null, 40, ni), a("line", {
4393
4504
  x1: l.value,
4394
4505
  y1: 0,
4395
4506
  x2: n.swimlane.width,
@@ -4399,7 +4510,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4399
4510
  "stroke-dasharray": "4,2",
4400
4511
  class: "lane-divider",
4401
4512
  "pointer-events": "none"
4402
- }, null, 8, $r)], 64)) : r("", !0),
4513
+ }, null, 8, ri)], 64)) : r("", !0),
4403
4514
  s > 0 ? (_(), i(e, { key: 1 }, [n.swimlane.direction === "horizontal" ? (_(), i("line", {
4404
4515
  key: 0,
4405
4516
  x1: 0,
@@ -4412,7 +4523,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4412
4523
  style: { cursor: "ns-resize" },
4413
4524
  onClick: A((e) => P(n.swimlane.lanes[s - 1].id), ["stop"]),
4414
4525
  onMousedown: A((e) => J(e, s - 1), ["stop"])
4415
- }, null, 40, ei)) : (_(), i("line", {
4526
+ }, null, 40, ii)) : (_(), i("line", {
4416
4527
  key: 1,
4417
4528
  x1: g(s),
4418
4529
  y1: 0,
@@ -4424,7 +4535,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4424
4535
  style: { cursor: "ew-resize" },
4425
4536
  onClick: A((e) => P(n.swimlane.lanes[s - 1].id), ["stop"]),
4426
4537
  onMousedown: A((e) => J(e, s - 1), ["stop"])
4427
- }, null, 40, ti)), n.swimlane.direction === "horizontal" ? (_(), i("line", {
4538
+ }, null, 40, ai)), n.swimlane.direction === "horizontal" ? (_(), i("line", {
4428
4539
  key: 2,
4429
4540
  x1: 0,
4430
4541
  y1: h(s),
@@ -4435,7 +4546,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4435
4546
  "stroke-dasharray": "4,2",
4436
4547
  class: "lane-divider",
4437
4548
  "pointer-events": "none"
4438
- }, null, 8, ni)) : (_(), i("line", {
4549
+ }, null, 8, oi)) : (_(), i("line", {
4439
4550
  key: 3,
4440
4551
  x1: g(s),
4441
4552
  y1: 0,
@@ -4446,7 +4557,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4446
4557
  "stroke-dasharray": "4,2",
4447
4558
  class: "lane-divider",
4448
4559
  "pointer-events": "none"
4449
- }, null, 8, ri))], 64)) : r("", !0),
4560
+ }, null, 8, si))], 64)) : r("", !0),
4450
4561
  s === n.swimlane.lanes.length - 1 && n.swimlane.direction === "horizontal" ? (_(), i(e, { key: 2 }, [a("line", {
4451
4562
  x1: 0,
4452
4563
  y1: d.value,
@@ -4458,7 +4569,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4458
4569
  style: { cursor: "ns-resize" },
4459
4570
  onClick: A((e) => P(t.id), ["stop"]),
4460
4571
  onMousedown: o[6] ||= A((e) => J(e, n.swimlane.lanes.length - 1), ["stop"])
4461
- }, null, 40, ii), a("line", {
4572
+ }, null, 40, ci), a("line", {
4462
4573
  x1: 0,
4463
4574
  y1: d.value,
4464
4575
  x2: n.swimlane.width,
@@ -4468,7 +4579,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4468
4579
  "stroke-dasharray": "4,2",
4469
4580
  class: "lane-divider",
4470
4581
  "pointer-events": "none"
4471
- }, null, 8, ai)], 64)) : r("", !0),
4582
+ }, null, 8, li)], 64)) : r("", !0),
4472
4583
  s === n.swimlane.lanes.length - 1 && n.swimlane.direction === "vertical" ? (_(), i(e, { key: 3 }, [a("line", {
4473
4584
  x1: g(n.swimlane.lanes.length),
4474
4585
  y1: 0,
@@ -4480,7 +4591,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4480
4591
  style: { cursor: "ew-resize" },
4481
4592
  onClick: A((e) => P(t.id), ["stop"]),
4482
4593
  onMousedown: o[7] ||= A((e) => J(e, n.swimlane.lanes.length - 1), ["stop"])
4483
- }, null, 40, oi), a("line", {
4594
+ }, null, 40, ui), a("line", {
4484
4595
  x1: g(n.swimlane.lanes.length),
4485
4596
  y1: 0,
4486
4597
  x2: g(n.swimlane.lanes.length),
@@ -4490,7 +4601,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4490
4601
  "stroke-dasharray": "4,2",
4491
4602
  class: "lane-divider",
4492
4603
  "pointer-events": "none"
4493
- }, null, 8, si)], 64)) : r("", !0),
4604
+ }, null, 8, di)], 64)) : r("", !0),
4494
4605
  n.swimlane.direction === "horizontal" ? (_(), i("rect", {
4495
4606
  key: 4,
4496
4607
  x: l.value + 4,
@@ -4504,7 +4615,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4504
4615
  opacity: t.opacity ?? .5,
4505
4616
  class: "lane-bg",
4506
4617
  onClick: A((e) => P(t.id), ["stop"])
4507
- }, null, 8, ci)) : (_(), i("rect", {
4618
+ }, null, 8, fi)) : (_(), i("rect", {
4508
4619
  key: 5,
4509
4620
  x: g(s) + 4,
4510
4621
  y: u.value + 4,
@@ -4517,7 +4628,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4517
4628
  opacity: t.opacity ?? .5,
4518
4629
  class: "lane-bg",
4519
4630
  onClick: A((e) => P(t.id), ["stop"])
4520
- }, null, 8, li)),
4631
+ }, null, 8, pi)),
4521
4632
  t.headerColor ? O((_(), i("rect", {
4522
4633
  key: 6,
4523
4634
  x: l.value + 4,
@@ -4527,7 +4638,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4527
4638
  fill: t.headerColor,
4528
4639
  rx: "2",
4529
4640
  "pointer-events": "none"
4530
- }, null, 8, ui)), [[T, n.swimlane.direction === "horizontal"]]) : r("", !0),
4641
+ }, null, 8, mi)), [[T, n.swimlane.direction === "horizontal"]]) : r("", !0),
4531
4642
  t.headerColor ? O((_(), i("rect", {
4532
4643
  key: 7,
4533
4644
  x: g(s) + 4,
@@ -4537,7 +4648,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4537
4648
  fill: t.headerColor,
4538
4649
  rx: "2",
4539
4650
  "pointer-events": "none"
4540
- }, null, 8, di)), [[T, n.swimlane.direction === "vertical"]]) : r("", !0),
4651
+ }, null, 8, hi)), [[T, n.swimlane.direction === "vertical"]]) : r("", !0),
4541
4652
  n.swimlane.direction === "horizontal" && F.value !== t.id ? (_(), i("text", {
4542
4653
  key: 8,
4543
4654
  x: t.textAlign === "center" ? (l.value + n.swimlane.width) / 2 : t.textAlign === "right" ? n.swimlane.width - 10 : l.value + 10,
@@ -4552,7 +4663,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4552
4663
  class: "lane-label",
4553
4664
  onClick: A((e) => P(t.id), ["stop"]),
4554
4665
  onDblclick: A((e) => R(t), ["stop"])
4555
- }, 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", {
4556
4667
  key: 9,
4557
4668
  x: t.textAlign === "center" ? g(s) + v(s) / 2 : t.textAlign === "right" ? g(s) + v(s) - 10 : g(s) + 10,
4558
4669
  y: u.value + 17,
@@ -4566,14 +4677,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4566
4677
  class: "lane-label",
4567
4678
  onClick: A((e) => P(t.id), ["stop"]),
4568
4679
  onDblclick: A((e) => R(t), ["stop"])
4569
- }, S(t.name), 41, pi)) : r("", !0),
4680
+ }, S(t.name), 41, _i)) : r("", !0),
4570
4681
  F.value === t.id && n.swimlane.direction === "horizontal" ? (_(), i("foreignObject", {
4571
4682
  key: 10,
4572
4683
  x: l.value + 8,
4573
4684
  y: h(s) + 4,
4574
4685
  width: n.swimlane.width - l.value - 16,
4575
4686
  height: 26
4576
- }, [a("div", hi, [O(a("input", {
4687
+ }, [a("div", yi, [O(a("input", {
4577
4688
  ref_for: !0,
4578
4689
  ref_key: "laneNameInputRef",
4579
4690
  ref: L,
@@ -4590,14 +4701,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4590
4701
  onBlur: (e) => z(t),
4591
4702
  onKeydown: [k((e) => z(t), ["enter"]), k(B, ["escape"])],
4592
4703
  onClick: o[9] ||= A(() => {}, ["stop"])
4593
- }, null, 44, gi), [[w, I.value]])])], 8, mi)) : r("", !0),
4704
+ }, null, 44, bi), [[w, I.value]])])], 8, vi)) : r("", !0),
4594
4705
  F.value === t.id && n.swimlane.direction === "vertical" ? (_(), i("foreignObject", {
4595
4706
  key: 11,
4596
4707
  x: g(s) + 8,
4597
4708
  y: u.value + 4,
4598
4709
  width: v(s) - 16,
4599
4710
  height: 26
4600
- }, [a("div", vi, [O(a("input", {
4711
+ }, [a("div", Si, [O(a("input", {
4601
4712
  ref_for: !0,
4602
4713
  ref_key: "laneNameInputRef",
4603
4714
  ref: L,
@@ -4614,7 +4725,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4614
4725
  onBlur: (e) => z(t),
4615
4726
  onKeydown: [k((e) => z(t), ["enter"]), k(B, ["escape"])],
4616
4727
  onClick: o[11] ||= A(() => {}, ["stop"])
4617
- }, null, 44, yi), [[w, I.value]])])], 8, _i)) : r("", !0)
4728
+ }, null, 44, Ci), [[w, I.value]])])], 8, xi)) : r("", !0)
4618
4729
  ]))), 128)) : r("", !0),
4619
4730
  n.selected ? (_(), i(e, { key: 7 }, [
4620
4731
  a("rect", {
@@ -4626,9 +4737,9 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4626
4737
  rx: "2",
4627
4738
  class: "resize-handle",
4628
4739
  style: { cursor: "ew-resize" },
4629
- onMousedown: o[12] ||= A((e) => W(e, "right"), ["stop", "prevent"]),
4740
+ onMousedown: o[12] ||= A((e) => ee(e, "right"), ["stop", "prevent"]),
4630
4741
  onClick: o[13] ||= A(() => {}, ["stop"])
4631
- }, null, 40, bi),
4742
+ }, null, 40, wi),
4632
4743
  a("rect", {
4633
4744
  x: n.swimlane.width / 2 - 10,
4634
4745
  y: d.value - 4,
@@ -4638,9 +4749,9 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4638
4749
  rx: "2",
4639
4750
  class: "resize-handle",
4640
4751
  style: { cursor: "ns-resize" },
4641
- onMousedown: o[14] ||= A((e) => W(e, "bottom"), ["stop", "prevent"]),
4752
+ onMousedown: o[14] ||= A((e) => ee(e, "bottom"), ["stop", "prevent"]),
4642
4753
  onClick: o[15] ||= A(() => {}, ["stop"])
4643
- }, null, 40, xi),
4754
+ }, null, 40, Ti),
4644
4755
  a("rect", {
4645
4756
  x: g(n.swimlane.lanes?.length || 0) - 6,
4646
4757
  y: d.value - 6,
@@ -4650,36 +4761,36 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4650
4761
  rx: "2",
4651
4762
  class: "resize-handle",
4652
4763
  style: { cursor: "nwse-resize" },
4653
- onMousedown: o[16] ||= A((e) => W(e, "corner"), ["stop", "prevent"]),
4764
+ onMousedown: o[16] ||= A((e) => ee(e, "corner"), ["stop", "prevent"]),
4654
4765
  onClick: o[17] ||= A(() => {}, ["stop"])
4655
- }, null, 40, Si)
4766
+ }, null, 40, Ei)
4656
4767
  ], 64)) : r("", !0),
4657
- 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", {
4658
4769
  key: 0,
4659
4770
  x1: 0,
4660
- y1: ee.value,
4771
+ y1: K.value,
4661
4772
  x2: n.swimlane.width,
4662
- y2: ee.value,
4773
+ y2: K.value,
4663
4774
  stroke: "#409eff",
4664
4775
  "stroke-width": "2",
4665
4776
  "stroke-dasharray": "6,3"
4666
- }, null, 8, Ci)) : (_(), i("line", {
4777
+ }, null, 8, Di)) : (_(), i("line", {
4667
4778
  key: 1,
4668
- x1: q.value,
4779
+ x1: te.value,
4669
4780
  y1: 0,
4670
- x2: q.value,
4781
+ x2: te.value,
4671
4782
  y2: d.value,
4672
4783
  stroke: "#409eff",
4673
4784
  "stroke-width": "2",
4674
4785
  "stroke-dasharray": "6,3"
4675
- }, null, 8, wi))], 64))
4676
- ], 42, Hr));
4786
+ }, null, 8, Oi))], 64))
4787
+ ], 42, Kr));
4677
4788
  }
4678
- }, [["__scopeId", "data-v-8e00b7cb"]]), Ei = [
4789
+ }, [["__scopeId", "data-v-8e00b7cb"]]), Ai = [
4679
4790
  "width",
4680
4791
  "height",
4681
4792
  "viewBox"
4682
- ], Di = ["width", "height"], Oi = ["d"], ki = ["transform"], Ai = {
4793
+ ], ji = ["width", "height"], Mi = ["d"], Ni = ["transform"], Pi = {
4683
4794
  key: 0,
4684
4795
  x: "-5000",
4685
4796
  y: "-5000",
@@ -4687,12 +4798,12 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4687
4798
  height: "10000",
4688
4799
  fill: "url(#grid)",
4689
4800
  class: "grid-bg"
4690
- }, ji = { key: 1 }, Mi = [
4801
+ }, Fi = { key: 1 }, Ii = [
4691
4802
  "x1",
4692
4803
  "y1",
4693
4804
  "x2",
4694
4805
  "y2"
4695
- ], 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({
4696
4807
  __name: "DiagramCanvas",
4697
4808
  props: {
4698
4809
  nodes: {
@@ -4792,20 +4903,20 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4792
4903
  } else z.value = e.event.clientX - t.left + 12, B.value = e.event.clientY - t.top - 10;
4793
4904
  } else R.value = null;
4794
4905
  }, H = (e) => d.nodes.find((t) => t.id === e), U = (e) => {
4795
- if (G) return;
4906
+ if (W) return;
4796
4907
  let t = e.target;
4797
4908
  (t === x.value || t.classList.contains("grid-bg") || t.classList.contains("diagram-svg")) && f("select-canvas");
4798
- }, W = () => {
4909
+ }, ee = () => {
4799
4910
  f("reset-state");
4800
- }, G = !1, K = (e) => {
4801
- 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 = {
4802
4913
  x: e.clientX,
4803
4914
  y: e.clientY
4804
4915
  }, e.preventDefault());
4805
- }, ee = (e) => {
4916
+ }, K = (e) => {
4806
4917
  if (M.value) {
4807
4918
  let t = e.clientX - N.value.x, n = e.clientY - N.value.y;
4808
- (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 = {
4809
4920
  x: e.clientX,
4810
4921
  y: e.clientY
4811
4922
  };
@@ -4817,18 +4928,18 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4817
4928
  y: (e.clientY - t.top - D.value) / T.value
4818
4929
  };
4819
4930
  }
4820
- }, q = () => {
4931
+ }, te = () => {
4821
4932
  M.value = !1, j.value = !1, d.autoConnectMode && f("end-connect", null);
4822
- }, te = (e) => {
4933
+ }, q = (e) => {
4823
4934
  let t = e.deltaY > 0 ? -.1 : .1;
4824
4935
  T.value = Math.min(Math.max(T.value + t, .2), 3);
4825
4936
  }, J = () => {
4826
4937
  T.value = Math.min(T.value + .1, 3);
4827
- }, Y = () => {
4828
- T.value = Math.max(T.value - .1, .2);
4829
4938
  }, ne = () => {
4830
- T.value = 1, E.value = 0, D.value = 0;
4939
+ T.value = Math.max(T.value - .1, .2);
4831
4940
  }, re = () => {
4941
+ T.value = 1, E.value = 0, D.value = 0;
4942
+ }, Y = () => {
4832
4943
  f("fit-view");
4833
4944
  }, ie = (e, t, n) => {
4834
4945
  f("node-drag", e, t, n);
@@ -4850,21 +4961,21 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4850
4961
  }), g(() => {
4851
4962
  v.value?.removeEventListener("drop", se), window.removeEventListener("keydown", u);
4852
4963
  }), s({
4853
- fitView: re,
4854
- resetView: ne,
4964
+ fitView: Y,
4965
+ resetView: re,
4855
4966
  zoomIn: J,
4856
- zoomOut: Y,
4967
+ zoomOut: ne,
4857
4968
  svgRef: x
4858
4969
  }), (t, s) => (_(), i("div", {
4859
4970
  class: "diagram-canvas",
4860
4971
  ref_key: "containerRef",
4861
4972
  ref: v,
4862
- onMousedown: K,
4863
- onMousemove: ee,
4864
- onMouseup: q,
4865
- onWheel: A(te, ["prevent"]),
4973
+ onMousedown: G,
4974
+ onMousemove: K,
4975
+ onMouseup: te,
4976
+ onWheel: A(q, ["prevent"]),
4866
4977
  onClick: U,
4867
- onContextmenu: A(W, ["prevent"]),
4978
+ onContextmenu: A(ee, ["prevent"]),
4868
4979
  onKeydown: oe,
4869
4980
  tabindex: "0"
4870
4981
  }, [
@@ -4885,8 +4996,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4885
4996
  fill: "none",
4886
4997
  stroke: "#e8e8e8",
4887
4998
  "stroke-width": "1"
4888
- }, 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})` }, [
4889
- 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),
4890
5001
  a("rect", {
4891
5002
  x: "-5000",
4892
5003
  y: "-5000",
@@ -4896,7 +5007,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4896
5007
  class: "canvas-bg",
4897
5008
  onClick: s[0] ||= (e) => f("select-canvas")
4898
5009
  }),
4899
- (_(!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, {
4900
5011
  swimlane: e,
4901
5012
  selected: n.selectedSwimlaneId === e.id,
4902
5013
  "selected-lane-id": n.selectedLaneId,
@@ -4914,7 +5025,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4914
5025
  "onSelect",
4915
5026
  "onSelectLane"
4916
5027
  ])]))), 128)),
4917
- (_(!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, {
4918
5029
  edge: e,
4919
5030
  source: H(e.sourceId),
4920
5031
  target: H(e.targetId),
@@ -4932,7 +5043,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4932
5043
  "animation-playing",
4933
5044
  "onSelect"
4934
5045
  ])]))), 128)),
4935
- (_(!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, {
4936
5047
  node: e,
4937
5048
  selected: n.selectedNodeId === e.id,
4938
5049
  "connect-mode": n.connectMode,
@@ -4963,7 +5074,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4963
5074
  "onEndConnect",
4964
5075
  "onAutoConnectStart"
4965
5076
  ])]))), 128)),
4966
- L.value && P.value ? (_(), i("g", ji, [a("line", {
5077
+ L.value && P.value ? (_(), i("g", Fi, [a("line", {
4967
5078
  x1: L.value.x + L.value.width / 2,
4968
5079
  y1: L.value.y + L.value.height / 2,
4969
5080
  x2: P.value.x,
@@ -4971,8 +5082,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4971
5082
  stroke: "#409eff",
4972
5083
  "stroke-width": "2",
4973
5084
  "stroke-dasharray": "5,5"
4974
- }, null, 8, Mi)])) : r("", !0)
4975
- ], 8, ki)], 8, Ei)),
5085
+ }, null, 8, Ii)])) : r("", !0)
5086
+ ], 8, Ni)], 8, Ai)),
4976
5087
  R.value && R.value.remark ? (_(), i("div", {
4977
5088
  key: 0,
4978
5089
  class: "remark-tooltip",
@@ -4980,23 +5091,23 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
4980
5091
  left: z.value + "px",
4981
5092
  top: B.value + "px"
4982
5093
  })
4983
- }, [a("div", Ni, S(R.value.remark), 1)], 4)) : r("", !0),
4984
- a("div", Pi, [
5094
+ }, [a("div", Li, S(R.value.remark), 1)], 4)) : r("", !0),
5095
+ a("div", Ri, [
4985
5096
  a("button", {
4986
5097
  onClick: J,
4987
5098
  title: "放大"
4988
5099
  }, "+"),
4989
- a("span", Fi, S(Math.round(T.value * 100)) + "%", 1),
5100
+ a("span", zi, S(Math.round(T.value * 100)) + "%", 1),
4990
5101
  a("button", {
4991
- onClick: Y,
5102
+ onClick: ne,
4992
5103
  title: "缩小"
4993
5104
  }, "-"),
4994
5105
  a("button", {
4995
- onClick: ne,
5106
+ onClick: re,
4996
5107
  title: "重置视图"
4997
5108
  }, "⌂"),
4998
5109
  a("button", {
4999
- onClick: re,
5110
+ onClick: Y,
5000
5111
  title: "适应画布"
5001
5112
  }, "⊞"),
5002
5113
  a("button", {
@@ -5007,10 +5118,10 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5007
5118
  ])
5008
5119
  ], 544));
5009
5120
  }
5010
- }, [["__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 = {
5011
5122
  key: 0,
5012
5123
  class: "param-empty"
5013
- }, Ui = /*#__PURE__*/ Q({
5124
+ }, qi = /*#__PURE__*/ Q({
5014
5125
  __name: "NodeParamDialog",
5015
5126
  props: {
5016
5127
  modelValue: {
@@ -5084,8 +5195,8 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5084
5195
  default: D(() => [...l[6] ||= [s("确定", -1)]]),
5085
5196
  _: 1
5086
5197
  })]),
5087
- default: D(() => [a("div", Li, [
5088
- a("div", Ri, [c(u, {
5198
+ default: D(() => [a("div", Vi, [
5199
+ a("div", Hi, [c(u, {
5089
5200
  modelValue: p.value,
5090
5201
  "onUpdate:modelValue": l[0] ||= (e) => p.value = e,
5091
5202
  type: "textarea",
@@ -5101,7 +5212,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5101
5212
  _: 1
5102
5213
  })]),
5103
5214
  c(T),
5104
- a("div", zi, [
5215
+ a("div", Ui, [
5105
5216
  l[3] ||= a("div", { class: "param-list-header" }, [
5106
5217
  a("span", { class: "col-index" }, "#"),
5107
5218
  a("span", { class: "col-name" }, "参数名"),
@@ -5114,7 +5225,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5114
5225
  key: t,
5115
5226
  class: "param-list-row"
5116
5227
  }, [
5117
- a("span", Bi, S(t + 1), 1),
5228
+ a("span", Wi, S(t + 1), 1),
5118
5229
  c(u, {
5119
5230
  modelValue: e.name,
5120
5231
  "onUpdate:modelValue": (t) => e.name = t,
@@ -5162,7 +5273,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5162
5273
  ]),
5163
5274
  _: 1
5164
5275
  }, 8, ["modelValue", "onUpdate:modelValue"]),
5165
- a("span", Vi, [c(y, {
5276
+ a("span", Gi, [c(y, {
5166
5277
  size: "small",
5167
5278
  type: "danger",
5168
5279
  circle: "",
@@ -5175,7 +5286,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5175
5286
  _: 1
5176
5287
  }, 8, ["onClick"])])
5177
5288
  ]))), 128)),
5178
- f.value.length === 0 ? (_(), i("div", Hi, " 暂无参数,点击下方按钮添加 ")) : r("", !0)
5289
+ f.value.length === 0 ? (_(), i("div", Ki, " 暂无参数,点击下方按钮添加 ")) : r("", !0)
5179
5290
  ]),
5180
5291
  c(y, {
5181
5292
  size: "small",
@@ -5183,7 +5294,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5183
5294
  style: { "margin-top": "8px" }
5184
5295
  }, {
5185
5296
  default: D(() => [c(k, null, {
5186
- default: D(() => [c(C(q))]),
5297
+ default: D(() => [c(C(te))]),
5187
5298
  _: 1
5188
5299
  }), l[4] ||= s(" 添加参数 ", -1)]),
5189
5300
  _: 1
@@ -5193,48 +5304,48 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5193
5304
  }, 8, ["modelValue", "title"]);
5194
5305
  };
5195
5306
  }
5196
- }, [["__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 = {
5197
5308
  key: 0,
5198
5309
  class: "panel-section"
5199
- }, Xi = { class: "prop-row" }, Zi = {
5310
+ }, ea = { class: "prop-row" }, ta = {
5200
5311
  key: 0,
5201
5312
  class: "prop-row prop-row-col"
5202
- }, Qi = { style: {
5313
+ }, na = { style: {
5203
5314
  display: "flex",
5204
5315
  gap: "4px",
5205
5316
  width: "100%",
5206
5317
  "align-items": "center"
5207
- } }, $i = {
5318
+ } }, ra = {
5208
5319
  key: 0,
5209
5320
  class: "image-preview"
5210
- }, 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 = {
5211
5322
  key: 1,
5212
5323
  class: "prop-row prop-row-col"
5213
- }, da = { class: "prop-row-main" }, fa = { class: "prop-row" }, pa = {
5324
+ }, ha = { class: "prop-row-main" }, ga = { class: "prop-row" }, _a = {
5214
5325
  key: 2,
5215
5326
  class: "prop-row"
5216
- }, ma = {
5327
+ }, va = {
5217
5328
  key: 3,
5218
5329
  class: "prop-row"
5219
- }, 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 = {
5220
5331
  key: 1,
5221
5332
  class: "panel-section"
5222
- }, 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 = {
5223
5334
  key: 0,
5224
5335
  class: "prop-row"
5225
- }, Aa = {
5336
+ }, Pa = {
5226
5337
  key: 1,
5227
5338
  class: "prop-row"
5228
- }, 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 = {
5229
5340
  key: 2,
5230
5341
  class: "panel-section"
5231
- }, 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 = {
5232
5343
  key: 3,
5233
5344
  class: "panel-section"
5234
- }, 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 = {
5235
5346
  key: 4,
5236
5347
  class: "panel-section empty"
5237
- }, so = /*#__PURE__*/ Q({
5348
+ }, fo = /*#__PURE__*/ Q({
5238
5349
  __name: "PropertiesPanel",
5239
5350
  props: {
5240
5351
  selectedNode: {
@@ -5324,25 +5435,25 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5324
5435
  u.selectedNode && (u.selectedNode.image = "", N());
5325
5436
  };
5326
5437
  return (t, l) => {
5327
- 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");
5328
- return _(), i("div", Wi, [
5329
- 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", {
5330
5441
  key: n,
5331
5442
  class: p(["theme-item", { active: o.currentTheme === n }]),
5332
5443
  onClick: (e) => t.$emit("change-theme", n)
5333
- }, [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))])]),
5334
- 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, [
5335
5446
  l[86] ||= a("h4", null, "节点属性", -1),
5336
- a("div", Xi, [l[62] ||= a("label", null, "类型", -1), c(u, {
5447
+ a("div", ea, [l[62] ||= a("label", null, "类型", -1), c(u, {
5337
5448
  size: "small",
5338
5449
  type: "info"
5339
5450
  }, {
5340
5451
  default: D(() => [s(S(O(o.selectedNode.type)), 1)]),
5341
5452
  _: 1
5342
5453
  })]),
5343
- o.selectedNode.type === "custom" ? (_(), i("div", Zi, [
5454
+ o.selectedNode.type === "custom" ? (_(), i("div", ta, [
5344
5455
  l[63] ||= a("label", null, "组件图片", -1),
5345
- a("div", Qi, [
5456
+ a("div", na, [
5346
5457
  c(d, {
5347
5458
  modelValue: o.selectedNode.image,
5348
5459
  "onUpdate:modelValue": l[0] ||= (e) => o.selectedNode.image = e,
@@ -5360,7 +5471,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5360
5471
  circle: ""
5361
5472
  }, {
5362
5473
  default: D(() => [c(y, null, {
5363
- default: D(() => [c(C(ee))]),
5474
+ default: D(() => [c(C(K))]),
5364
5475
  _: 1
5365
5476
  })]),
5366
5477
  _: 1
@@ -5381,7 +5492,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5381
5492
  _: 1
5382
5493
  })) : r("", !0)
5383
5494
  ]),
5384
- o.selectedNode.image ? (_(), i("div", $i, [a("img", {
5495
+ o.selectedNode.image ? (_(), i("div", ra, [a("img", {
5385
5496
  src: o.selectedNode.image,
5386
5497
  style: {
5387
5498
  "max-width": "100%",
@@ -5389,15 +5500,15 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5389
5500
  border: "1px solid #e4e7ed",
5390
5501
  "border-radius": "4px"
5391
5502
  }
5392
- }, null, 8, ea)])) : r("", !0)
5503
+ }, null, 8, ia)])) : r("", !0)
5393
5504
  ])) : r("", !0),
5394
- a("div", ta, [l[64] ||= a("label", null, "名称", -1), c(d, {
5505
+ a("div", aa, [l[64] ||= a("label", null, "名称", -1), c(d, {
5395
5506
  size: "small",
5396
5507
  modelValue: o.selectedNode.label,
5397
5508
  "onUpdate:modelValue": l[1] ||= (e) => o.selectedNode.label = e,
5398
5509
  onChange: N
5399
5510
  }, null, 8, ["modelValue"])]),
5400
- a("div", na, [l[65] ||= a("label", null, "宽度", -1), c(z, {
5511
+ a("div", oa, [l[65] ||= a("label", null, "宽度", -1), c(z, {
5401
5512
  size: "small",
5402
5513
  modelValue: o.selectedNode.width,
5403
5514
  "onUpdate:modelValue": l[2] ||= (e) => o.selectedNode.width = e,
@@ -5405,7 +5516,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5405
5516
  max: 500,
5406
5517
  onChange: N
5407
5518
  }, null, 8, ["modelValue"])]),
5408
- a("div", ra, [l[66] ||= a("label", null, "高度", -1), c(z, {
5519
+ a("div", sa, [l[66] ||= a("label", null, "高度", -1), c(z, {
5409
5520
  size: "small",
5410
5521
  modelValue: o.selectedNode.height,
5411
5522
  "onUpdate:modelValue": l[3] ||= (e) => o.selectedNode.height = e,
@@ -5413,19 +5524,19 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5413
5524
  max: 400,
5414
5525
  onChange: N
5415
5526
  }, null, 8, ["modelValue"])]),
5416
- a("div", ia, [l[67] ||= a("label", null, "填充色", -1), c(B, {
5527
+ a("div", ca, [l[67] ||= a("label", null, "填充色", -1), c(B, {
5417
5528
  size: "small",
5418
5529
  modelValue: o.selectedNode.color,
5419
5530
  "onUpdate:modelValue": l[4] ||= (e) => o.selectedNode.color = e,
5420
5531
  onChange: N
5421
5532
  }, null, 8, ["modelValue"])]),
5422
- a("div", aa, [l[68] ||= a("label", null, "边框色", -1), c(B, {
5533
+ a("div", la, [l[68] ||= a("label", null, "边框色", -1), c(B, {
5423
5534
  size: "small",
5424
5535
  modelValue: o.selectedNode.strokeColor,
5425
5536
  "onUpdate:modelValue": l[5] ||= (e) => o.selectedNode.strokeColor = e,
5426
5537
  onChange: N
5427
5538
  }, null, 8, ["modelValue"])]),
5428
- a("div", oa, [l[69] ||= a("label", null, "边框宽度", -1), c(z, {
5539
+ a("div", ua, [l[69] ||= a("label", null, "边框宽度", -1), c(z, {
5429
5540
  size: "small",
5430
5541
  modelValue: o.selectedNode.strokeWidth,
5431
5542
  "onUpdate:modelValue": l[6] ||= (e) => o.selectedNode.strokeWidth = e,
@@ -5433,13 +5544,13 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5433
5544
  max: 10,
5434
5545
  onChange: N
5435
5546
  }, null, 8, ["modelValue"])]),
5436
- a("div", sa, [l[70] ||= a("label", null, "文字色", -1), c(B, {
5547
+ a("div", da, [l[70] ||= a("label", null, "文字色", -1), c(B, {
5437
5548
  size: "small",
5438
5549
  modelValue: o.selectedNode.textColor,
5439
5550
  "onUpdate:modelValue": l[7] ||= (e) => o.selectedNode.textColor = e,
5440
5551
  onChange: N
5441
5552
  }, null, 8, ["modelValue"])]),
5442
- a("div", ca, [l[71] ||= a("label", null, "字号", -1), c(z, {
5553
+ a("div", fa, [l[71] ||= a("label", null, "字号", -1), c(z, {
5443
5554
  size: "small",
5444
5555
  modelValue: o.selectedNode.fontSize,
5445
5556
  "onUpdate:modelValue": l[8] ||= (e) => o.selectedNode.fontSize = e,
@@ -5447,7 +5558,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5447
5558
  max: 36,
5448
5559
  onChange: N
5449
5560
  }, null, 8, ["modelValue"])]),
5450
- a("div", la, [l[72] ||= a("label", null, "文字位置", -1), c(H, {
5561
+ a("div", pa, [l[72] ||= a("label", null, "文字位置", -1), c(H, {
5451
5562
  size: "small",
5452
5563
  modelValue: o.selectedNode.labelPosition,
5453
5564
  "onUpdate:modelValue": l[9] ||= (e) => o.selectedNode.labelPosition = e,
@@ -5481,7 +5592,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5481
5592
  ]),
5482
5593
  _: 1
5483
5594
  }, 8, ["modelValue"])]),
5484
- 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, {
5485
5596
  size: "small",
5486
5597
  modelValue: o.selectedNode.textRotation,
5487
5598
  "onUpdate:modelValue": l[10] ||= (e) => o.selectedNode.textRotation = e,
@@ -5490,7 +5601,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5490
5601
  step: 15,
5491
5602
  onChange: N
5492
5603
  }, null, 8, ["modelValue"])]), l[74] ||= a("span", { class: "prop-hint" }, "-90°=向上 \xA0 0°=向右 \xA0 90°=向下", -1)])) : r("", !0),
5493
- a("div", fa, [l[75] ||= a("label", null, "动画", -1), c(H, {
5604
+ a("div", ga, [l[75] ||= a("label", null, "动画", -1), c(H, {
5494
5605
  size: "small",
5495
5606
  modelValue: o.selectedNode.animation,
5496
5607
  "onUpdate:modelValue": l[11] ||= (e) => o.selectedNode.animation = e,
@@ -5503,7 +5614,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5503
5614
  }, null, 8, ["value", "label"]))), 128))]),
5504
5615
  _: 1
5505
5616
  }, 8, ["modelValue"])]),
5506
- 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, {
5507
5618
  size: "small",
5508
5619
  modelValue: o.selectedNode.animationDuration,
5509
5620
  "onUpdate:modelValue": l[12] ||= (e) => o.selectedNode.animationDuration = e,
@@ -5512,7 +5623,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5512
5623
  step: .5,
5513
5624
  onChange: N
5514
5625
  }, null, 8, ["modelValue"])])),
5515
- 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, {
5516
5627
  size: "small",
5517
5628
  modelValue: o.selectedNode.animationDelay,
5518
5629
  "onUpdate:modelValue": l[13] ||= (e) => o.selectedNode.animationDelay = e,
@@ -5521,7 +5632,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5521
5632
  step: .5,
5522
5633
  onChange: N
5523
5634
  }, null, 8, ["modelValue"])])),
5524
- a("div", ha, [c(W, {
5635
+ a("div", ya, [c(ee, {
5525
5636
  modelValue: o.selectedNode.locked,
5526
5637
  "onUpdate:modelValue": l[14] ||= (e) => o.selectedNode.locked = e,
5527
5638
  onChange: N
@@ -5529,7 +5640,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5529
5640
  default: D(() => [...l[78] ||= [s("锁定", -1)]]),
5530
5641
  _: 1
5531
5642
  }, 8, ["modelValue"])]),
5532
- a("div", ga, [l[79] ||= a("label", null, "备注说明", -1), c(d, {
5643
+ a("div", ba, [l[79] ||= a("label", null, "备注说明", -1), c(d, {
5533
5644
  modelValue: o.selectedNode.remark,
5534
5645
  "onUpdate:modelValue": l[15] ||= (e) => o.selectedNode.remark = e,
5535
5646
  type: "textarea",
@@ -5537,7 +5648,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5537
5648
  placeholder: "输入备注说明...",
5538
5649
  onChange: N
5539
5650
  }, null, 8, ["modelValue"])]),
5540
- a("div", _a, [
5651
+ a("div", xa, [
5541
5652
  l[80] ||= a("label", null, "输入参数", -1),
5542
5653
  c(u, {
5543
5654
  size: "small",
@@ -5558,7 +5669,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5558
5669
  _: 1
5559
5670
  })
5560
5671
  ]),
5561
- a("div", va, [
5672
+ a("div", Sa, [
5562
5673
  l[81] ||= a("label", null, "输出参数", -1),
5563
5674
  c(u, {
5564
5675
  size: "small",
@@ -5579,7 +5690,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5579
5690
  _: 1
5580
5691
  })
5581
5692
  ]),
5582
- a("div", ya, [l[82] ||= a("label", null, "动作设置", -1), c(L, {
5693
+ a("div", Ca, [l[82] ||= a("label", null, "动作设置", -1), c(L, {
5583
5694
  size: "small",
5584
5695
  circle: "",
5585
5696
  onClick: l[16] ||= (e) => h.value = !0
@@ -5590,7 +5701,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5590
5701
  })]),
5591
5702
  _: 1
5592
5703
  })]),
5593
- a("div", ba, [
5704
+ a("div", wa, [
5594
5705
  c(L, {
5595
5706
  size: "small",
5596
5707
  onClick: l[17] ||= (e) => t.$emit("bring-front")
@@ -5614,15 +5725,15 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5614
5725
  _: 1
5615
5726
  })
5616
5727
  ])
5617
- ])) : o.selectedEdge ? (_(), i("div", xa, [
5728
+ ])) : o.selectedEdge ? (_(), i("div", Ta, [
5618
5729
  l[98] ||= a("h4", null, "连线属性", -1),
5619
- a("div", Sa, [l[87] ||= a("label", null, "标签", -1), c(d, {
5730
+ a("div", Ea, [l[87] ||= a("label", null, "标签", -1), c(d, {
5620
5731
  size: "small",
5621
5732
  modelValue: o.selectedEdge.label,
5622
5733
  "onUpdate:modelValue": l[20] ||= (e) => o.selectedEdge.label = e,
5623
5734
  onChange: N
5624
5735
  }, null, 8, ["modelValue"])]),
5625
- a("div", Ca, [l[88] ||= a("label", null, "线型", -1), c(H, {
5736
+ a("div", Da, [l[88] ||= a("label", null, "线型", -1), c(H, {
5626
5737
  size: "small",
5627
5738
  modelValue: o.selectedEdge.lineStyle,
5628
5739
  "onUpdate:modelValue": l[21] ||= (e) => o.selectedEdge.lineStyle = e,
@@ -5635,13 +5746,13 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5635
5746
  }, null, 8, ["value", "label"]))), 128))]),
5636
5747
  _: 1
5637
5748
  }, 8, ["modelValue"])]),
5638
- a("div", wa, [l[89] ||= a("label", null, "线色", -1), c(B, {
5749
+ a("div", Oa, [l[89] ||= a("label", null, "线色", -1), c(B, {
5639
5750
  size: "small",
5640
5751
  modelValue: o.selectedEdge.lineColor,
5641
5752
  "onUpdate:modelValue": l[22] ||= (e) => o.selectedEdge.lineColor = e,
5642
5753
  onChange: N
5643
5754
  }, null, 8, ["modelValue"])]),
5644
- a("div", Ta, [l[90] ||= a("label", null, "线宽", -1), c(z, {
5755
+ a("div", ka, [l[90] ||= a("label", null, "线宽", -1), c(z, {
5645
5756
  size: "small",
5646
5757
  modelValue: o.selectedEdge.lineWidth,
5647
5758
  "onUpdate:modelValue": l[23] ||= (e) => o.selectedEdge.lineWidth = e,
@@ -5649,7 +5760,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5649
5760
  max: 8,
5650
5761
  onChange: N
5651
5762
  }, null, 8, ["modelValue"])]),
5652
- a("div", Ea, [l[91] ||= a("label", null, "箭头", -1), c(H, {
5763
+ a("div", Aa, [l[91] ||= a("label", null, "箭头", -1), c(H, {
5653
5764
  size: "small",
5654
5765
  modelValue: o.selectedEdge.arrowType,
5655
5766
  "onUpdate:modelValue": l[24] ||= (e) => o.selectedEdge.arrowType = e,
@@ -5664,7 +5775,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5664
5775
  })]),
5665
5776
  _: 1
5666
5777
  }, 8, ["modelValue"])]),
5667
- a("div", Da, [l[92] ||= a("label", null, "曲线", -1), c(H, {
5778
+ a("div", ja, [l[92] ||= a("label", null, "曲线", -1), c(H, {
5668
5779
  size: "small",
5669
5780
  modelValue: o.selectedEdge.curveType,
5670
5781
  "onUpdate:modelValue": l[25] ||= (e) => o.selectedEdge.curveType = e,
@@ -5679,7 +5790,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5679
5790
  })]),
5680
5791
  _: 1
5681
5792
  }, 8, ["modelValue"])]),
5682
- a("div", Oa, [l[93] ||= a("label", null, "动画", -1), c(H, {
5793
+ a("div", Ma, [l[93] ||= a("label", null, "动画", -1), c(H, {
5683
5794
  size: "small",
5684
5795
  modelValue: o.selectedEdge.animation,
5685
5796
  "onUpdate:modelValue": l[26] ||= (e) => o.selectedEdge.animation = e,
@@ -5692,7 +5803,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5692
5803
  }, null, 8, ["value", "label"])), 64))]),
5693
5804
  _: 1
5694
5805
  }, 8, ["modelValue"])]),
5695
- 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, {
5696
5807
  size: "small",
5697
5808
  modelValue: o.selectedEdge.animationDuration,
5698
5809
  "onUpdate:modelValue": l[27] ||= (e) => o.selectedEdge.animationDuration = e,
@@ -5701,13 +5812,13 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5701
5812
  step: .5,
5702
5813
  onChange: N
5703
5814
  }, null, 8, ["modelValue"])])),
5704
- 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, {
5705
5816
  size: "small",
5706
5817
  modelValue: o.selectedEdge.particleColor,
5707
5818
  "onUpdate:modelValue": l[28] ||= (e) => o.selectedEdge.particleColor = e,
5708
5819
  onChange: N
5709
5820
  }, null, 8, ["modelValue"])])),
5710
- a("div", ja, [l[96] ||= a("label", null, "备注说明", -1), c(d, {
5821
+ a("div", Fa, [l[96] ||= a("label", null, "备注说明", -1), c(d, {
5711
5822
  modelValue: o.selectedEdge.remark,
5712
5823
  "onUpdate:modelValue": l[29] ||= (e) => o.selectedEdge.remark = e,
5713
5824
  type: "textarea",
@@ -5715,7 +5826,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5715
5826
  placeholder: "输入备注说明...",
5716
5827
  onChange: N
5717
5828
  }, null, 8, ["modelValue"])]),
5718
- a("div", Ma, [c(L, {
5829
+ a("div", Ia, [c(L, {
5719
5830
  size: "small",
5720
5831
  type: "danger",
5721
5832
  onClick: l[30] ||= (e) => t.$emit("delete-edge")
@@ -5723,15 +5834,15 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5723
5834
  default: D(() => [...l[97] ||= [s("删除连线", -1)]]),
5724
5835
  _: 1
5725
5836
  })])
5726
- ])) : o.selectedLane ? (_(), i("div", Na, [
5837
+ ])) : o.selectedLane ? (_(), i("div", La, [
5727
5838
  l[110] ||= a("h4", null, "泳道名称属性", -1),
5728
- a("div", Pa, [l[99] ||= a("label", null, "名称", -1), c(d, {
5839
+ a("div", Ra, [l[99] ||= a("label", null, "名称", -1), c(d, {
5729
5840
  size: "small",
5730
5841
  modelValue: o.selectedLane.name,
5731
5842
  "onUpdate:modelValue": l[31] ||= (e) => o.selectedLane.name = e,
5732
5843
  onChange: P
5733
5844
  }, null, 8, ["modelValue"])]),
5734
- a("div", Fa, [l[100] ||= a("label", null, "高度", -1), c(z, {
5845
+ a("div", za, [l[100] ||= a("label", null, "高度", -1), c(z, {
5735
5846
  size: "small",
5736
5847
  modelValue: o.selectedLane.height,
5737
5848
  "onUpdate:modelValue": l[32] ||= (e) => o.selectedLane.height = e,
@@ -5739,20 +5850,20 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5739
5850
  max: 500,
5740
5851
  onChange: P
5741
5852
  }, null, 8, ["modelValue"])]),
5742
- a("div", Ia, [l[101] ||= a("label", null, "背景色", -1), c(B, {
5853
+ a("div", Ba, [l[101] ||= a("label", null, "背景色", -1), c(B, {
5743
5854
  size: "small",
5744
5855
  modelValue: o.selectedLane.color,
5745
5856
  "onUpdate:modelValue": l[33] ||= (e) => o.selectedLane.color = e,
5746
5857
  onChange: P
5747
5858
  }, null, 8, ["modelValue"])]),
5748
- a("div", La, [l[102] ||= a("label", null, "名称行背景", -1), c(B, {
5859
+ a("div", Va, [l[102] ||= a("label", null, "名称行背景", -1), c(B, {
5749
5860
  size: "small",
5750
5861
  modelValue: o.selectedLane.headerColor,
5751
5862
  "onUpdate:modelValue": l[34] ||= (e) => o.selectedLane.headerColor = e,
5752
5863
  "show-alpha": "",
5753
5864
  onChange: P
5754
5865
  }, null, 8, ["modelValue"])]),
5755
- a("div", Ra, [l[103] ||= a("label", null, "背景透明度", -1), c(G, {
5866
+ a("div", Ha, [l[103] ||= a("label", null, "背景透明度", -1), c(W, {
5756
5867
  size: "small",
5757
5868
  modelValue: j.value,
5758
5869
  "onUpdate:modelValue": l[35] ||= (e) => j.value = e,
@@ -5765,13 +5876,13 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5765
5876
  },
5766
5877
  onChange: M
5767
5878
  }, null, 8, ["modelValue"])]),
5768
- a("div", za, [l[104] ||= a("label", null, "文字色", -1), c(B, {
5879
+ a("div", Ua, [l[104] ||= a("label", null, "文字色", -1), c(B, {
5769
5880
  size: "small",
5770
5881
  modelValue: o.selectedLane.textColor,
5771
5882
  "onUpdate:modelValue": l[36] ||= (e) => o.selectedLane.textColor = e,
5772
5883
  onChange: P
5773
5884
  }, null, 8, ["modelValue"])]),
5774
- a("div", Ba, [l[105] ||= a("label", null, "字号", -1), c(z, {
5885
+ a("div", Wa, [l[105] ||= a("label", null, "字号", -1), c(z, {
5775
5886
  size: "small",
5776
5887
  modelValue: o.selectedLane.fontSize,
5777
5888
  "onUpdate:modelValue": l[37] ||= (e) => o.selectedLane.fontSize = e,
@@ -5779,7 +5890,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5779
5890
  max: 36,
5780
5891
  onChange: P
5781
5892
  }, null, 8, ["modelValue"])]),
5782
- a("div", Va, [l[106] ||= a("label", null, "字体", -1), c(H, {
5893
+ a("div", Ga, [l[106] ||= a("label", null, "字体", -1), c(H, {
5783
5894
  size: "small",
5784
5895
  modelValue: o.selectedLane.fontFamily,
5785
5896
  "onUpdate:modelValue": l[38] ||= (e) => o.selectedLane.fontFamily = e,
@@ -5821,7 +5932,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5821
5932
  ]),
5822
5933
  _: 1
5823
5934
  }, 8, ["modelValue"])]),
5824
- a("div", Ha, [l[107] ||= a("label", null, "字重", -1), c(H, {
5935
+ a("div", Ka, [l[107] ||= a("label", null, "字重", -1), c(H, {
5825
5936
  size: "small",
5826
5937
  modelValue: o.selectedLane.fontWeight,
5827
5938
  "onUpdate:modelValue": l[39] ||= (e) => o.selectedLane.fontWeight = e,
@@ -5847,7 +5958,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5847
5958
  ]),
5848
5959
  _: 1
5849
5960
  }, 8, ["modelValue"])]),
5850
- a("div", Ua, [l[108] ||= a("label", null, "字体样式", -1), c(H, {
5961
+ a("div", qa, [l[108] ||= a("label", null, "字体样式", -1), c(H, {
5851
5962
  size: "small",
5852
5963
  modelValue: o.selectedLane.fontStyle,
5853
5964
  "onUpdate:modelValue": l[40] ||= (e) => o.selectedLane.fontStyle = e,
@@ -5869,7 +5980,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5869
5980
  ]),
5870
5981
  _: 1
5871
5982
  }, 8, ["modelValue"])]),
5872
- a("div", Wa, [l[109] ||= a("label", null, "文本对齐", -1), c(H, {
5983
+ a("div", Ja, [l[109] ||= a("label", null, "文本对齐", -1), c(H, {
5873
5984
  size: "small",
5874
5985
  modelValue: o.selectedLane.textAlign,
5875
5986
  "onUpdate:modelValue": l[41] ||= (e) => o.selectedLane.textAlign = e,
@@ -5891,19 +6002,19 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5891
6002
  ]),
5892
6003
  _: 1
5893
6004
  }, 8, ["modelValue"])])
5894
- ])) : o.selectedSwimlane ? (_(), i("div", Ga, [
6005
+ ])) : o.selectedSwimlane ? (_(), i("div", Ya, [
5895
6006
  l[126] ||= a("h4", null, "泳道属性", -1),
5896
- a("div", Ka, [l[111] ||= a("label", null, "名称", -1), c(d, {
6007
+ a("div", Xa, [l[111] ||= a("label", null, "名称", -1), c(d, {
5897
6008
  size: "small",
5898
6009
  modelValue: o.selectedSwimlane.name,
5899
6010
  "onUpdate:modelValue": l[42] ||= (e) => o.selectedSwimlane.name = e,
5900
6011
  onChange: N
5901
6012
  }, null, 8, ["modelValue"])]),
5902
- 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" }, {
5903
6014
  default: D(() => [s(S(o.selectedSwimlane.direction === "horizontal" ? "水平" : "垂直"), 1)]),
5904
6015
  _: 1
5905
6016
  })]),
5906
- a("div", Ja, [l[113] ||= a("label", null, "宽度", -1), c(z, {
6017
+ a("div", Qa, [l[113] ||= a("label", null, "宽度", -1), c(z, {
5907
6018
  size: "small",
5908
6019
  modelValue: o.selectedSwimlane.width,
5909
6020
  "onUpdate:modelValue": l[43] ||= (e) => o.selectedSwimlane.width = e,
@@ -5911,7 +6022,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5911
6022
  max: 2e3,
5912
6023
  onChange: N
5913
6024
  }, null, 8, ["modelValue"])]),
5914
- a("div", Ya, [l[114] ||= a("label", null, "高度", -1), c(z, {
6025
+ a("div", $a, [l[114] ||= a("label", null, "高度", -1), c(z, {
5915
6026
  size: "small",
5916
6027
  modelValue: o.selectedSwimlane.height,
5917
6028
  "onUpdate:modelValue": l[44] ||= (e) => o.selectedSwimlane.height = e,
@@ -5919,19 +6030,19 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5919
6030
  max: 1e3,
5920
6031
  onChange: N
5921
6032
  }, null, 8, ["modelValue"])]),
5922
- a("div", Xa, [l[115] ||= a("label", null, "背景色", -1), c(B, {
6033
+ a("div", eo, [l[115] ||= a("label", null, "背景色", -1), c(B, {
5923
6034
  size: "small",
5924
6035
  modelValue: o.selectedSwimlane.color,
5925
6036
  "onUpdate:modelValue": l[45] ||= (e) => o.selectedSwimlane.color = e,
5926
6037
  onChange: N
5927
6038
  }, null, 8, ["modelValue"])]),
5928
- a("div", Za, [l[116] ||= a("label", null, "标题背景色", -1), c(B, {
6039
+ a("div", to, [l[116] ||= a("label", null, "标题背景色", -1), c(B, {
5929
6040
  size: "small",
5930
6041
  modelValue: o.selectedSwimlane.headerColor,
5931
6042
  "onUpdate:modelValue": l[46] ||= (e) => o.selectedSwimlane.headerColor = e,
5932
6043
  onChange: N
5933
6044
  }, null, 8, ["modelValue"])]),
5934
- a("div", Qa, [l[117] ||= a("label", null, "标题透明度", -1), c(G, {
6045
+ a("div", no, [l[117] ||= a("label", null, "标题透明度", -1), c(W, {
5935
6046
  size: "small",
5936
6047
  modelValue: k.value,
5937
6048
  "onUpdate:modelValue": l[47] ||= (e) => k.value = e,
@@ -5944,13 +6055,13 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5944
6055
  },
5945
6056
  onChange: A
5946
6057
  }, null, 8, ["modelValue"])]),
5947
- a("div", $a, [l[118] ||= a("label", null, "标题文字色", -1), c(B, {
6058
+ a("div", ro, [l[118] ||= a("label", null, "标题文字色", -1), c(B, {
5948
6059
  size: "small",
5949
6060
  modelValue: o.selectedSwimlane.headerTextColor,
5950
6061
  "onUpdate:modelValue": l[48] ||= (e) => o.selectedSwimlane.headerTextColor = e,
5951
6062
  onChange: N
5952
6063
  }, null, 8, ["modelValue"])]),
5953
- a("div", eo, [l[119] ||= a("label", null, "字号", -1), c(z, {
6064
+ a("div", io, [l[119] ||= a("label", null, "字号", -1), c(z, {
5954
6065
  size: "small",
5955
6066
  modelValue: o.selectedSwimlane.fontSize,
5956
6067
  "onUpdate:modelValue": l[49] ||= (e) => o.selectedSwimlane.fontSize = e,
@@ -5958,7 +6069,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
5958
6069
  max: 36,
5959
6070
  onChange: N
5960
6071
  }, null, 8, ["modelValue"])]),
5961
- a("div", to, [l[120] ||= a("label", null, "字体", -1), c(H, {
6072
+ a("div", ao, [l[120] ||= a("label", null, "字体", -1), c(H, {
5962
6073
  size: "small",
5963
6074
  modelValue: o.selectedSwimlane.fontFamily,
5964
6075
  "onUpdate:modelValue": l[50] ||= (e) => o.selectedSwimlane.fontFamily = e,
@@ -6000,7 +6111,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6000
6111
  ]),
6001
6112
  _: 1
6002
6113
  }, 8, ["modelValue"])]),
6003
- a("div", no, [l[121] ||= a("label", null, "字重", -1), c(H, {
6114
+ a("div", oo, [l[121] ||= a("label", null, "字重", -1), c(H, {
6004
6115
  size: "small",
6005
6116
  modelValue: o.selectedSwimlane.fontWeight,
6006
6117
  "onUpdate:modelValue": l[51] ||= (e) => o.selectedSwimlane.fontWeight = e,
@@ -6026,7 +6137,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6026
6137
  ]),
6027
6138
  _: 1
6028
6139
  }, 8, ["modelValue"])]),
6029
- a("div", ro, [l[122] ||= a("label", null, "字体样式", -1), c(H, {
6140
+ a("div", so, [l[122] ||= a("label", null, "字体样式", -1), c(H, {
6030
6141
  size: "small",
6031
6142
  modelValue: o.selectedSwimlane.fontStyle,
6032
6143
  "onUpdate:modelValue": l[52] ||= (e) => o.selectedSwimlane.fontStyle = e,
@@ -6048,7 +6159,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6048
6159
  ]),
6049
6160
  _: 1
6050
6161
  }, 8, ["modelValue"])]),
6051
- a("div", io, [l[123] ||= a("label", null, "文本对齐", -1), c(H, {
6162
+ a("div", co, [l[123] ||= a("label", null, "文本对齐", -1), c(H, {
6052
6163
  size: "small",
6053
6164
  modelValue: o.selectedSwimlane.textAlign,
6054
6165
  "onUpdate:modelValue": l[53] ||= (e) => o.selectedSwimlane.textAlign = e,
@@ -6070,7 +6181,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6070
6181
  ]),
6071
6182
  _: 1
6072
6183
  }, 8, ["modelValue"])]),
6073
- a("div", ao, [c(L, {
6184
+ a("div", lo, [c(L, {
6074
6185
  size: "small",
6075
6186
  onClick: l[54] ||= (e) => t.$emit("add-lane")
6076
6187
  }, {
@@ -6084,22 +6195,22 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6084
6195
  default: D(() => [...l[125] ||= [s("删除", -1)]]),
6085
6196
  _: 1
6086
6197
  })])
6087
- ])) : (_(), i("div", oo, [...l[127] ||= [a("p", null, "选择节点或连线查看属性", -1)]])),
6088
- c(Ui, {
6198
+ ])) : (_(), i("div", uo, [...l[127] ||= [a("p", null, "选择节点或连线查看属性", -1)]])),
6199
+ c(qi, {
6089
6200
  modelValue: f.value,
6090
6201
  "onUpdate:modelValue": l[56] ||= (e) => f.value = e,
6091
6202
  title: "输入参数设置",
6092
6203
  parameters: o.selectedNode?.inputParams || [],
6093
6204
  onConfirm: w
6094
6205
  }, null, 8, ["modelValue", "parameters"]),
6095
- c(Ui, {
6206
+ c(qi, {
6096
6207
  modelValue: m.value,
6097
6208
  "onUpdate:modelValue": l[57] ||= (e) => m.value = e,
6098
6209
  title: "输出参数设置",
6099
6210
  parameters: o.selectedNode?.outputParams || [],
6100
6211
  onConfirm: T
6101
6212
  }, null, 8, ["modelValue", "parameters"]),
6102
- c(K, {
6213
+ c(G, {
6103
6214
  modelValue: h.value,
6104
6215
  "onUpdate:modelValue": l[59] ||= (e) => h.value = e,
6105
6216
  title: "动作设置",
@@ -6121,13 +6232,13 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6121
6232
  ]);
6122
6233
  };
6123
6234
  }
6124
- }, [["__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 = {
6125
6236
  key: 0,
6126
6237
  class: "collab-users"
6127
- }, mo = ["title"], ho = {
6238
+ }, vo = ["title"], yo = {
6128
6239
  key: 0,
6129
6240
  class: "collab-more"
6130
- }, 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({
6131
6242
  __name: "DiagramEditor",
6132
6243
  props: {
6133
6244
  docId: {
@@ -6157,6 +6268,10 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6157
6268
  uiConfig: {
6158
6269
  type: Object,
6159
6270
  default: () => ({})
6271
+ },
6272
+ aiApi: {
6273
+ type: [String, Object],
6274
+ default: null
6160
6275
  }
6161
6276
  },
6162
6277
  setup(o) {
@@ -6169,11 +6284,11 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6169
6284
  showSwimlaneSelector: !0,
6170
6285
  initialDiagramType: null,
6171
6286
  ...s.uiConfig
6172
- })), 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;
6173
6288
  E(Y, (e) => {
6174
6289
  localStorage.setItem("diagram-user-name", e || "");
6175
6290
  });
6176
- 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 = () => {
6177
6292
  if (!$.value?.trim()) {
6178
6293
  P.warning("请输入流程图名称");
6179
6294
  return;
@@ -6184,35 +6299,35 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6184
6299
  }
6185
6300
  try {
6186
6301
  let e = w.value || `diagram-${Date.now()}`;
6187
- te.value = e, L.connect(e, s.wsUrl || void 0), L.setLocalUser({ name: Y.value.trim() }), W.value = !0;
6188
- 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;
6189
6304
  t.on("change", () => {
6190
- 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]) => ({
6191
6306
  clientId: e,
6192
6307
  ...t.user
6193
6308
  }));
6194
6309
  }), j.setCollabContext({
6195
- ydoc: L.doc,
6310
+ ydoc: R.doc,
6196
6311
  provider: t?.provider || null,
6197
- onlineUsers: ee
6312
+ onlineUsers: te
6198
6313
  }), j.setCurrentUser({
6199
6314
  id: t.clientID,
6200
6315
  name: Y.value.trim(),
6201
6316
  color: `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")}`
6202
- }), L.onRemoteChange("diagram", (e) => {
6203
- e && (q.value = !0, Je(e), q.value = !1);
6204
- }), 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();
6205
6320
  let n = null, r = () => {
6206
- 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());
6207
6322
  };
6208
- ce = r, R = E([
6323
+ le = r, B = E([
6209
6324
  Z,
6210
- he,
6211
- ge
6325
+ ge,
6326
+ _e
6212
6327
  ], () => {
6213
- se.value || (n && clearTimeout(n), n = setTimeout(r, 300));
6214
- }, { deep: !0 }), re && re(), re = E(() => L.isConnected.value, (e, t) => {
6215
- 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());
6216
6331
  });
6217
6332
  let i = f ? "process-diagram" : "execution-diagram", a = `${window.location.origin}/${i}/${e}?collab=1`;
6218
6333
  navigator.clipboard.writeText(a).then(() => {
@@ -6223,14 +6338,14 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6223
6338
  } catch (e) {
6224
6339
  console.error("协作连接失败:", e), P.error("协作连接失败: " + (e.message || e));
6225
6340
  }
6226
- }, ue = () => {
6227
- R &&= (R(), null), re &&= (re(), null), L.closeCollaboration(), W.value = !1, P.info("协作已关闭");
6228
- }, de = async () => {
6341
+ }, de = () => {
6342
+ B &&= (B(), null), X &&= (X(), null), R.closeCollaboration(), W.value = !1, P.info("协作已关闭");
6343
+ }, fe = async () => {
6229
6344
  if (!W.value) {
6230
- le();
6345
+ ue();
6231
6346
  return;
6232
6347
  }
6233
- let e = te.value || u.params.id;
6348
+ let e = J.value || u.params.id;
6234
6349
  if (!e) {
6235
6350
  P.warning("请先开启协作");
6236
6351
  return;
@@ -6241,26 +6356,26 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6241
6356
  } catch {
6242
6357
  P.info(`分享链接: ${n}`);
6243
6358
  }
6244
- }, { 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(() => ({
6245
- ...Ze,
6246
- ...Qe
6247
- })[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 = () => {
6248
- _e.value = null, Q.value = null, ye.value = null, tt.value = null, Se.value = !1, Ce.value = null;
6249
- }, at = () => {
6250
- it(), oe.value = !1, X.value = null;
6251
- }, ot = (e, t) => {
6252
- ye.value = e, tt.value = t;
6253
- }, st = (e, t) => {
6254
- 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);
6255
6370
  n && Object.assign(n, t);
6256
- }, ct = (e, t, n) => {
6257
- let r = ge.find((t) => t.id === e);
6371
+ }, ut = (e, t, n) => {
6372
+ let r = _e.find((t) => t.id === e);
6258
6373
  if (r) {
6259
6374
  let e = r.lanes?.find((e) => e.id === t);
6260
6375
  e && Object.assign(e, n);
6261
6376
  }
6262
- }, lt = (e, t, n) => {
6263
- let r = ge.find((t) => t.id === e);
6377
+ }, dt = (e, t, n) => {
6378
+ let r = _e.find((t) => t.id === e);
6264
6379
  if (r) {
6265
6380
  if (r.direction === "horizontal" && r.lanes?.length) {
6266
6381
  let e = r.lanes.reduce((e, t) => e + t.height, 0);
@@ -6282,86 +6397,86 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6282
6397
  }
6283
6398
  r.width = t, r.height = n;
6284
6399
  }
6285
- }, ut = (e, t, n, r) => {
6286
- let i = ge.find((t) => t.id === e);
6400
+ }, ft = (e, t, n, r) => {
6401
+ let i = _e.find((t) => t.id === e);
6287
6402
  if (i) {
6288
6403
  let e = i.lanes?.find((e) => e.id === t);
6289
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))));
6290
6405
  }
6291
- }, dt = (e, t, n) => {
6292
- let r = ge.find((t) => t.id === e);
6406
+ }, pt = (e, t, n) => {
6407
+ let r = _e.find((t) => t.id === e);
6293
6408
  r && (r.x = t, r.y = n);
6294
- }, ft = (e) => {
6295
- we.value = e;
6296
- }, pt = (e) => {
6297
- Xe(e);
6298
6409
  }, mt = (e) => {
6299
6410
  Te.value = e;
6300
- }, ht = (e, t, n) => {
6301
- _e.value = Ae(e, t, n).id;
6411
+ }, ht = (e) => {
6412
+ Qe(e);
6302
6413
  }, gt = (e) => {
6303
- oe.value = !1, X.value = null, Ce.value = e;
6304
- }, _t = (e) => {
6305
- X.value = e, oe.value = !0;
6414
+ Ee.value = e;
6415
+ }, _t = (e, t, n) => {
6416
+ Q.value = je(e, t, n).id;
6306
6417
  }, vt = (e) => {
6307
- let t = X.value || Ce.value;
6308
- t && e && t !== e && je(t, e), Ce.value = null, X.value = null, oe.value = !1;
6309
- }, yt = (e, t, n) => {
6310
- 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;
6311
6426
  let r = Z.find((t) => t.id === e);
6312
6427
  r && !r.locked && (r.x += t, r.y += n);
6313
- }, bt = () => {
6314
- se.value = !1, ce && ce();
6315
- }, xt = (e, t, n) => {
6316
- se.value = !0;
6428
+ }, St = () => {
6429
+ ce.value = !1, le && le();
6430
+ }, Ct = (e, t, n) => {
6431
+ ce.value = !0;
6317
6432
  let r = Z.find((t) => t.id === e);
6318
6433
  r && (r.width = t, r.height = n);
6319
- }, St = () => {
6320
- se.value = !1, ce && ce();
6321
- }, Ct = (e) => {
6322
- let t = Me("泳道 " + (ge.length + 1), e);
6323
- Ne(t.id, "角色A"), ye.value = t.id;
6324
6434
  }, wt = () => {
6325
- et.value && Ne(et.value.id, "新泳道");
6326
- }, Tt = () => {
6327
- 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;
6328
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 = () => {
6329
6444
  if (Z.length === 0) return;
6330
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");
6331
6446
  if (!o) return;
6332
6447
  let s = o.getBoundingClientRect(), c = (s.width - 120) / i, l = (s.height - 120) / a, u = Math.min(c, l, 2);
6333
6448
  Z.forEach((n) => {
6334
6449
  n.x = 60 + (n.x - e) * u, n.y = 60 + (n.y - t) * u, n.width *= u, n.height *= u;
6335
- }), B.value && B.value.resetView();
6336
- }, Dt = async (e) => {
6337
- let t = qe();
6450
+ }), V.value && V.value.resetView();
6451
+ }, kt = async (e) => {
6452
+ let t = Je();
6338
6453
  switch (e) {
6339
6454
  case "json":
6340
- Ot(t);
6455
+ At(t);
6341
6456
  break;
6342
6457
  case "svg":
6343
- kt();
6458
+ jt();
6344
6459
  break;
6345
6460
  case "png":
6346
- At("png");
6461
+ Mt("png");
6347
6462
  break;
6348
6463
  case "html":
6349
- jt(t);
6464
+ Nt(t);
6350
6465
  break;
6351
6466
  case "pdf":
6352
- Nt();
6467
+ Ft();
6353
6468
  break;
6354
6469
  }
6355
- }, Ot = (e) => {
6470
+ }, At = (e) => {
6356
6471
  let t = new Blob([JSON.stringify(e, null, 2)], { type: "application/json" }), n = URL.createObjectURL(t), r = document.createElement("a");
6357
6472
  r.href = n, r.download = `${$.value || "流程图"}.json`, r.click(), URL.revokeObjectURL(n), P.success("JSON已导出");
6358
- }, kt = () => {
6359
- let e = B.value?.svgRef;
6473
+ }, jt = () => {
6474
+ let e = V.value?.svgRef;
6360
6475
  if (!e) return;
6361
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");
6362
6477
  a.href = i, a.download = `${$.value || "流程图"}.svg`, a.click(), URL.revokeObjectURL(i), P.success("SVG已导出");
6363
- }, At = async (e) => {
6364
- let t = B.value?.svgRef;
6478
+ }, Mt = async (e) => {
6479
+ let t = V.value?.svgRef;
6365
6480
  if (!t) return;
6366
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);
6367
6482
  a.onload = () => {
@@ -6370,7 +6485,7 @@ var Ue = "/api/document-versions", We = 5e3, Ge = () => {
6370
6485
  n.href = URL.createObjectURL(t), n.download = `${$.value || "流程图"}.${e}`, n.click(), P.success(`${e.toUpperCase()}已导出`);
6371
6486
  }, `image/${e}`);
6372
6487
  }, a.src = s;
6373
- }, jt = (e) => {
6488
+ }, Nt = (e) => {
6374
6489
  let t = `<!DOCTYPE html>
6375
6490
  <html lang="zh-CN">
6376
6491
  <head>
@@ -6392,13 +6507,13 @@ svg { max-width: 100%; height: auto; }
6392
6507
  <div class="container">
6393
6508
  <h1>${e.title}</h1>
6394
6509
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4000 3000">
6395
- ${Mt(e)}
6510
+ ${Pt(e)}
6396
6511
  </svg>
6397
6512
  </div>
6398
6513
  </body>
6399
6514
  </html>`, n = new Blob([t], { type: "text/html;charset=utf-8" }), r = URL.createObjectURL(n), i = document.createElement("a");
6400
6515
  i.href = r, i.download = `${e.title || "流程图"}.html`, i.click(), URL.revokeObjectURL(r), P.success("HTML已导出");
6401
- }, Mt = (e) => {
6516
+ }, Pt = (e) => {
6402
6517
  let t = "";
6403
6518
  return (e.nodes || []).forEach((e) => {
6404
6519
  let n = e.color || "#409eff", r = e.strokeColor || "#333";
@@ -6415,8 +6530,8 @@ ${Mt(e)}
6415
6530
  t += `<line x1="${e}" y1="${a}" x2="${o}" y2="${s}" stroke="${n.lineColor}" stroke-width="${n.lineWidth}" marker-end="url(#arrowhead)"/>`;
6416
6531
  }
6417
6532
  }), t;
6418
- }, Nt = () => {
6419
- let e = B.value?.svgRef;
6533
+ }, Ft = () => {
6534
+ let e = V.value?.svgRef;
6420
6535
  if (!e) return;
6421
6536
  let t = new XMLSerializer().serializeToString(e), n = window.open("", "_blank");
6422
6537
  n.document.write(`
@@ -6429,21 +6544,21 @@ ${Mt(e)}
6429
6544
  </body>
6430
6545
  </html>
6431
6546
  `), n.document.close();
6432
- }, Pt = () => {
6433
- V.value?.click();
6434
- }, Ft = (e) => {
6547
+ }, It = () => {
6548
+ H.value?.click();
6549
+ }, Lt = (e) => {
6435
6550
  let t = e.target.files[0];
6436
6551
  if (!t) return;
6437
6552
  let n = new FileReader();
6438
6553
  n.onload = (e) => {
6439
6554
  try {
6440
- Je(JSON.parse(e.target.result)) ? P.success("导入成功") : P.error("无效的流程图文件");
6555
+ Xe(JSON.parse(e.target.result)) ? P.success("导入成功") : P.error("无效的流程图文件");
6441
6556
  } catch {
6442
6557
  P.error("文件解析失败");
6443
6558
  }
6444
6559
  }, n.readAsText(t), e.target.value = "";
6445
- }, It = async () => {
6446
- if (G.value && L.collaborationClosed.value) {
6560
+ }, Rt = async () => {
6561
+ if (K.value && R.collaborationClosed.value) {
6447
6562
  P.error("协作已关闭,无法提交保存");
6448
6563
  return;
6449
6564
  }
@@ -6456,7 +6571,7 @@ ${Mt(e)}
6456
6571
  return;
6457
6572
  }
6458
6573
  try {
6459
- let e = qe(), t = {
6574
+ let e = Je(), t = {
6460
6575
  title: $.value || "流程图",
6461
6576
  content: JSON.stringify(e),
6462
6577
  doc_type: f ? "process-diagram" : "exec-diagram"
@@ -6464,14 +6579,14 @@ ${Mt(e)}
6464
6579
  let t = n ? `${s.saveApi}/${n}` : s.saveApi;
6465
6580
  return n ? F.put(t, e) : F.post(t, e);
6466
6581
  } : null;
6467
- if (r) J.value = (await r(t, n)).data?.id || n;
6468
- 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;
6469
6584
  else {
6470
6585
  let e = await T.value.create(t);
6471
- 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}`);
6472
6587
  }
6473
6588
  P.success("已保存"), A({
6474
- documentId: String(J.value || ""),
6589
+ documentId: String(ne.value || ""),
6475
6590
  docType: f ? "process-diagram" : "exec-diagram",
6476
6591
  content: JSON.stringify(e),
6477
6592
  userId: String(j.currentUser.value?.id || ""),
@@ -6480,48 +6595,41 @@ ${Mt(e)}
6480
6595
  } catch (e) {
6481
6596
  P.error("保存失败: " + (e.message || e));
6482
6597
  }
6483
- }, Lt = async () => {
6598
+ }, zt = async () => {
6484
6599
  let e = w.value;
6485
6600
  if (e && e !== "new") try {
6486
6601
  if (typeof s.loadApi == "function") {
6487
6602
  let t = await s.loadApi(e);
6488
- 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);
6489
6604
  } else if (s.loadApi) {
6490
6605
  let t = await F.get(`${s.loadApi}/${e}`);
6491
- 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);
6492
6607
  } else {
6493
6608
  let t = await T.value.get(e);
6494
- 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);
6495
6610
  }
6496
6611
  } catch {
6497
6612
  let t = localStorage.getItem(g + e);
6498
6613
  if (t) try {
6499
- Je(JSON.parse(t));
6614
+ Xe(JSON.parse(t));
6500
6615
  } catch {}
6501
6616
  }
6502
- }, Rt = () => {
6617
+ }, Bt = () => {
6503
6618
  l.push("/");
6504
- }, zt = [
6505
- "我可以帮您优化流程图布局、检查节点逻辑,或者提供流程设计建议。请问有什么需要帮助的?",
6506
- "这个流程图的节点连接看起来很清晰。建议检查一下是否有遗漏的分支或异常处理路径。",
6507
- "根据当前的流程结构,我建议在关键决策节点后添加明确的条件标注,使流程更易理解。",
6508
- "流程图中的泳道划分很合理。如果需要,我可以帮您分析各角色的职责分配是否均衡。",
6509
- "我可以帮您检查流程中是否存在循环依赖或死锁风险。需要我逐条分析吗?",
6510
- "建议在流程开始和结束节点使用统一的样式,这样可以让读者更快识别流程的起止点。",
6511
- "这个执行图的逻辑链路比较长,建议在中间添加一些检查点节点,便于流程监控和调试。",
6512
- "我可以帮您生成流程图的文字说明文档,方便团队成员理解流程细节。"
6513
- ], Bt = async (e, t = {}) => {
6514
- let n = w.value ? `${vo}-${w.value}` : null;
6619
+ }, Vt = async (e, t = {}) => {
6620
+ let n = w.value ? `${So}-${w.value}` : null;
6515
6621
  await j.sendMessage(e, {
6516
6622
  ...t,
6517
6623
  roomId: n
6518
6624
  });
6519
6625
  let r = t.mentionedUser, i = r && r.toLowerCase().includes("ai"), a = j.collabUsers.value.filter((e) => e.name !== j.currentUser.value.name);
6520
- (!r || i || a.length === 0) && (j.loading.value = !0, setTimeout(() => {
6521
- j.sendAiMessage(zt[Math.floor(Math.random() * zt.length)], n), j.loading.value = !1;
6522
- }, 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
+ }
6523
6631
  }, Ht = () => {
6524
- let e = w.value ? `${vo}-${w.value}` : null;
6632
+ let e = w.value ? `${So}-${w.value}` : null;
6525
6633
  j.clearMessages(e);
6526
6634
  }, Ut = () => {
6527
6635
  if (!w.value) {
@@ -6532,31 +6640,31 @@ ${Mt(e)}
6532
6640
  }, Wt = (e) => {
6533
6641
  try {
6534
6642
  let t = typeof e == "string" ? JSON.parse(e) : e;
6535
- Je && Je(t);
6643
+ Xe && Xe(t);
6536
6644
  } catch (e) {
6537
6645
  console.error("Version apply error:", e);
6538
6646
  }
6539
6647
  };
6540
6648
  return h(() => {
6541
- Lt().then(() => {
6649
+ zt().then(() => {
6542
6650
  if (u.query.collab === "1") {
6543
- G.value = !0, le();
6544
- let e = E(() => L.isSynced.value, (t) => {
6545
- 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("该协作已关闭,无法加入")));
6546
6654
  });
6547
- 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("该协作已关闭,无法加入"));
6548
6656
  }
6549
6657
  });
6550
6658
  }), (t, o) => {
6551
6659
  let s = x("el-icon"), l = x("el-button"), u = x("el-input");
6552
- return _(), i("div", co, [
6553
- a("div", lo, [a("div", uo, [
6660
+ return _(), i("div", po, [
6661
+ a("div", mo, [a("div", ho, [
6554
6662
  v.value.backButton === "hide" ? r("", !0) : (_(), n(l, {
6555
6663
  key: 0,
6556
6664
  size: "small",
6557
6665
  circle: "",
6558
6666
  disabled: v.value.backButton === "disable",
6559
- onClick: Rt
6667
+ onClick: Bt
6560
6668
  }, {
6561
6669
  default: D(() => [c(s, null, {
6562
6670
  default: D(() => [c(C(z))]),
@@ -6570,7 +6678,7 @@ ${Mt(e)}
6570
6678
  size: "small",
6571
6679
  class: "title-input",
6572
6680
  placeholder: "流程图标题 *",
6573
- disabled: G.value || !v.value.titleEditable
6681
+ disabled: K.value || !v.value.titleEditable
6574
6682
  }, null, 8, ["modelValue", "disabled"]),
6575
6683
  c(u, {
6576
6684
  modelValue: Y.value,
@@ -6580,12 +6688,12 @@ ${Mt(e)}
6580
6688
  placeholder: "用户名称 *",
6581
6689
  disabled: !v.value.authorEditable
6582
6690
  }, null, 8, ["modelValue", "disabled"])
6583
- ]), 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", {
6584
6692
  key: e.clientId,
6585
6693
  class: "collab-avatar",
6586
6694
  style: m({ background: e.color }),
6587
6695
  title: e.name
6588
- }, 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, {
6589
6697
  size: "small",
6590
6698
  circle: "",
6591
6699
  type: O.value ? "primary" : "default",
@@ -6593,48 +6701,48 @@ ${Mt(e)}
6593
6701
  title: "AI助手"
6594
6702
  }, {
6595
6703
  default: D(() => [c(s, null, {
6596
- default: D(() => [c(C(K))]),
6704
+ default: D(() => [c(C(G))]),
6597
6705
  _: 1
6598
6706
  })]),
6599
6707
  _: 1
6600
6708
  }, 8, ["type"])])]),
6601
- a("div", go, [
6602
- c(Vt, {
6603
- NODE_TYPES: C(fe),
6604
- "diagram-type-label": $e.value,
6605
- "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,
6606
6714
  "show-type-selector": v.value.showTypeSelector,
6607
- onSetType: ft
6715
+ onSetType: mt
6608
6716
  }, null, 8, [
6609
6717
  "NODE_TYPES",
6610
6718
  "diagram-type-label",
6611
6719
  "type-disabled",
6612
6720
  "show-type-selector"
6613
6721
  ]),
6614
- a("div", _o, [c(Zt, {
6615
- "animation-playing": H.value,
6616
- "can-undo": C(Ee).length > 0,
6617
- "can-redo": C(De).length > 0,
6618
- 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,
6619
6727
  "is-collaborating": W.value,
6620
- "is-joined-collab": G.value,
6728
+ "is-joined-collab": K.value,
6621
6729
  "show-template-selector": v.value.showTemplateSelector,
6622
6730
  "show-swimlane-selector": v.value.showSwimlaneSelector,
6623
- onAddSwimlane: Ct,
6624
- onUndo: C(Oe),
6625
- onRedo: C(ke),
6626
- onAutoLayout: C(Ye),
6627
- onToggleAnimation: o[3] ||= (e) => H.value = !H.value,
6628
- onSetAnimationSpeed: o[4] ||= (e) => U.value = e,
6629
- onExport: Dt,
6630
- onImportJson: Pt,
6631
- onClear: C(ze),
6632
- onSetTemplate: pt,
6633
- onStartCollab: le,
6634
- onStopCollab: ue,
6635
- onShareCollab: de,
6636
- onSave: It,
6637
- "show-history": !!J.value,
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,
6638
6746
  onHistory: Ut
6639
6747
  }, null, 8, [
6640
6748
  "animation-playing",
@@ -6650,42 +6758,42 @@ ${Mt(e)}
6650
6758
  "onAutoLayout",
6651
6759
  "onClear",
6652
6760
  "show-history"
6653
- ]), c(Ii, {
6761
+ ]), c(Bi, {
6654
6762
  ref_key: "canvasRef",
6655
- ref: B,
6763
+ ref: V,
6656
6764
  nodes: C(Z),
6657
- edges: C(he),
6658
- swimlanes: C(ge),
6659
- "selected-node-id": C(_e),
6660
- "selected-edge-id": C(Q),
6661
- "selected-swimlane-id": C(ye),
6662
- "selected-lane-id": tt.value,
6663
- "connect-mode": C(Se),
6664
- "connect-source": C(Ce),
6665
- "animation-playing": H.value,
6666
- theme: C(Te),
6667
- onSelectNode: C(Be),
6668
- onSelectEdge: C(Ue),
6669
- onSelectSwimlane: o[5] ||= (e) => ye.value = e,
6670
- onSelectLane: ot,
6671
- onUpdateSwimlane: st,
6672
- onUpdateLane: ct,
6673
- onResizeSwimlane: lt,
6674
- onResizeLane: ut,
6675
- onMoveSwimlane: dt,
6676
- onSelectCanvas: it,
6677
- "auto-connect-source": X.value,
6678
- "auto-connect-mode": oe.value,
6679
- onStartConnect: gt,
6680
- onEndConnect: vt,
6681
- onAutoConnectStart: _t,
6682
- onNodeDrag: yt,
6683
- onNodeResize: xt,
6684
- onNodeDragEnd: bt,
6685
- onNodeResizeEnd: St,
6686
- onDropNode: ht,
6687
- onResetState: at,
6688
- 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
6689
6797
  }, null, 8, [
6690
6798
  "nodes",
6691
6799
  "edges",
@@ -6703,23 +6811,23 @@ ${Mt(e)}
6703
6811
  "auto-connect-source",
6704
6812
  "auto-connect-mode"
6705
6813
  ])]),
6706
- c(so, {
6707
- "selected-node": C(be),
6708
- "selected-edge": C(xe),
6709
- "selected-swimlane": et.value,
6710
- "selected-lane": nt.value,
6711
- NODE_TYPES: C(fe),
6712
- ANIMATION_TYPES: C(pe),
6713
- LINE_STYLES: C(me),
6714
- "current-theme": C(Te),
6715
- onDeleteNode: o[6] ||= (e) => C(be) && C(Ie)(C(be).id),
6716
- onDeleteEdge: o[7] ||= (e) => C(xe) && C(Le)(C(xe).id),
6717
- onDeleteSwimlane: o[8] ||= (e) => et.value && C(Re)(et.value.id),
6718
- onBringFront: o[9] ||= (e) => C(be) && C(We)(C(be).id),
6719
- onSendBack: o[10] ||= (e) => C(be) && C(Ke)(C(be).id),
6720
- onAddLane: wt,
6721
- onUpdateLane: Tt,
6722
- 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
6723
6831
  }, null, 8, [
6724
6832
  "selected-node",
6725
6833
  "selected-edge",
@@ -6733,11 +6841,11 @@ ${Mt(e)}
6733
6841
  ]),
6734
6842
  a("input", {
6735
6843
  ref_key: "fileInput",
6736
- ref: V,
6844
+ ref: H,
6737
6845
  type: "file",
6738
6846
  accept: ".json",
6739
6847
  style: { display: "none" },
6740
- onChange: Ft
6848
+ onChange: Lt
6741
6849
  }, null, 544),
6742
6850
  c(Ve, {
6743
6851
  visible: O.value,
@@ -6746,8 +6854,8 @@ ${Mt(e)}
6746
6854
  "is-collab": C(j).isCollabMode.value,
6747
6855
  "collab-users": C(j).collabUsers.value,
6748
6856
  "current-user": C(j).currentUser.value,
6749
- "is-owner": !G.value,
6750
- onSend: Bt,
6857
+ "is-owner": !K.value,
6858
+ onSend: Vt,
6751
6859
  onClose: o[11] ||= (e) => O.value = !1,
6752
6860
  "unread-mention": C(j).unreadMention.value,
6753
6861
  onClearUnread: o[12] ||= (e) => C(j).clearUnreadMention(),
@@ -6762,16 +6870,16 @@ ${Mt(e)}
6762
6870
  "is-owner",
6763
6871
  "unread-mention"
6764
6872
  ]),
6765
- c(rt, {
6873
+ c(st, {
6766
6874
  modelValue: k.value,
6767
6875
  "onUpdate:modelValue": o[13] ||= (e) => k.value = e,
6768
- "document-id": J.value,
6876
+ "document-id": ne.value,
6769
6877
  onApply: Wt
6770
6878
  }, null, 8, ["modelValue", "document-id"])
6771
6879
  ]);
6772
6880
  };
6773
6881
  }
6774
- }, [["__scopeId", "data-v-40342cc9"]]), bo = l({
6882
+ }, [["__scopeId", "data-v-cd2c3fb5"]]), wo = l({
6775
6883
  name: "YourCompanyDiagram",
6776
6884
  props: {
6777
6885
  docId: {
@@ -6809,14 +6917,18 @@ ${Mt(e)}
6809
6917
  uiConfig: {
6810
6918
  type: Object,
6811
6919
  default: () => ({})
6920
+ },
6921
+ aiApi: {
6922
+ type: [String, Object],
6923
+ default: null
6812
6924
  }
6813
6925
  },
6814
6926
  setup(e, { slots: t }) {
6815
6927
  return () => u("div", {
6816
6928
  class: "yourcompany-diagram-wrapper",
6817
6929
  style: "position:relative"
6818
- }, [u(yo, { ...e }), u(j)]);
6930
+ }, [u(Co, { ...e }), u(j)]);
6819
6931
  }
6820
6932
  });
6821
6933
  //#endregion
6822
- export { bo as default };
6934
+ export { wo as default };