@fses/workbench-app 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as tn, computed as q, openBlock as T, createBlock as bt, withCtx as Fn, createVNode as Ke, renderSlot as Pa, provide as zx, createElementBlock as L, toRefs as HT, shallowReadonly as Fy, createElementVNode as v, normalizeClass as ht, normalizeStyle as Jt, withModifiers as mt, createCommentVNode as pe, Transition as zv, ref as K, watch as $t, onBeforeUnmount as ma, toDisplayString as ue, unref as U, createTextVNode as Vr, withDirectives as jr, vModelText as Qi, Fragment as Mt, renderList as Nt, reactive as Zn, resolveComponent as qT, withKeys as Vx, vModelSelect as Gx, resolveDynamicComponent as ed, Teleport as no, shallowRef as Kx, nextTick as cn, onMounted as ci, markRaw as Ux, vShow as eI, inject as ew, toValue as nf, useAttrs as fd, h as tw, mergeProps as md, createStaticVNode as jT, onUnmounted as zT, createSlots as Yx, vModelDynamic as VT, useSlots as GT, vModelCheckbox as Jx } from "vue";
1
+ import { defineComponent as tn, computed as q, openBlock as T, createBlock as bt, withCtx as Fn, createVNode as Ke, renderSlot as wa, provide as zx, createElementBlock as L, toRefs as HT, shallowReadonly as Fy, createElementVNode as v, normalizeClass as ht, normalizeStyle as Jt, withModifiers as mt, createCommentVNode as pe, Transition as zv, ref as K, watch as $t, onBeforeUnmount as ma, toDisplayString as ue, unref as U, createTextVNode as Vr, withDirectives as jr, vModelText as Qi, Fragment as Mt, renderList as Nt, reactive as Zn, resolveComponent as qT, withKeys as Vx, vModelSelect as Gx, resolveDynamicComponent as ed, Teleport as no, shallowRef as Kx, nextTick as cn, onMounted as ci, markRaw as Ux, vShow as eI, inject as ew, toValue as nf, useAttrs as fd, h as tw, mergeProps as md, createStaticVNode as jT, onUnmounted as zT, createSlots as Yx, vModelDynamic as VT, useSlots as GT, vModelCheckbox as Jx } from "vue";
2
2
  import { useRouter as Xx, useRoute as KT } from "vue-router";
3
3
  import { message as Dt, Table as nw, Pagination as rw, DatePicker as UT, Input as YT, Select as ss, Button as tI, Modal as nI, Spin as rI } from "ant-design-vue";
4
4
  import { UserCheck as JT, LockKeyhole as XT, Building2 as QT, X as cs, Search as Ti, BarChart3 as Wy, Link2 as Qx, AlertCircle as Vv, RefreshCw as ls, Heart as aI, Download as iI, ExternalLink as ZT, PanelRightOpen as eR, SlidersHorizontal as tR, MoreVertical as nR, Settings as aw, Trash2 as Zx, GripVertical as e_, ChevronLeft as rR, ChevronRight as hf, GitBranch as t_, Check as $l, Brush as aR, Grid2X2 as Hy, Blocks as oI, Pencil as iR, Sparkles as jc, Palette as oR, Layers as sR, Box as lR, Plus as Gv, Copy as dR, Save as uR, PencilLine as qy, LayoutDashboard as cR, Database as fR, Minimize2 as mR, Maximize2 as hR, LoaderCircle as pR, Bot as gR, History as yR, ArrowRightToLine as vR } from "lucide-vue-next";
@@ -13,7 +13,7 @@ import { workbenchCardShellStyle as kR } from "@fses/workbench-card";
13
13
  import { CARD_REGISTRY as qh, resolveCardRegistryEntry as xR, compositeCardPatternById as _R, CARD_CATEGORIES as jh } from "@fses/workbench-card/registry";
14
14
  import { WorkbenchBlockRenderer as Lp, EChartsProtocolRenderer as SR, EChartsProtocolAdapter as MR, applyWorkbenchResizableColumns as AR, workbenchResizableTableScrollX as BR, setWorkbenchResizableColumnWidth as TR } from "@fses/workbench-card/renderers";
15
15
  import { io as RR } from "socket.io-client";
16
- import { _ as An, r as Us, a as a_, b as DR, s as PR, c as ER, D as rf, n as Ws, W as OR, f as LR, d as $R, w as NR, e as sI, g as FR, p as WR, h as HR, i as qR, j as jR, k as zR, l as lI, m as VR, o as GR, q as KR } from "./index-A8Vg4UXL.js";
16
+ import { _ as An, r as Us, a as a_, b as DR, s as PR, c as ER, D as rf, n as Ws, W as OR, f as LR, d as $R, w as NR, e as sI, g as FR, p as WR, h as HR, i as qR, j as jR, k as zR, l as lI, m as VR, o as GR, q as KR } from "./index-Dy9REnVD.js";
17
17
  import { a4 as UR, a5 as xf, a6 as i_, a7 as gt, a8 as Hn, a9 as pf, aa as zh, a as iw, ab as YR, ac as JR, ad as XR, ae as QR, af as ZR, ag as o_, ah as _f, ai as eD, aj as ln, ak as ve, al as vt, am as Dr, an as Cr, ao as tD, ap as dt, aq as _i, ar as Vh, as as nD, at as Co, au as rD, av as s_, aw as wl, ax as Ao, ay as Fr, az as aD, aA as l_, aB as zc, aC as d_, aD as Gh, aE as Kv, aF as iD, aG as Dl, aH as oD, aI as _h, aJ as sD, aK as Sf, aL as ow, aM as $p, aN as u_, aO as Kh, aP as pu, aQ as af, aR as Bo, aS as lD, aT as dD, aU as uD, aV as dI, aW as uI, aX as cD, aY as fD, aZ as jy, a_ as cI, a$ as fI, b0 as mI, b1 as mD, b2 as hD, b3 as zy, b4 as pD, b5 as Hm, b6 as gD, b7 as hI, b8 as yD, b9 as vD, ba as qm, bb as Vy, bc as c_, bd as f_, be as bD, bf as wD, bg as ID, bh as CD, bi as pI, bj as gI, bk as yI, bl as vI, bm as m_, bn as iu, bo as sw, bp as h_, bq as kD, br as xD, bs as _D, bt as SD, bu as MD, bv as bI, bw as AD, bx as wI, by as BD, bz as II, bA as p_, bB as Uv, bC as g_, bD as TD, bE as y_, bF as v_, bG as RD, bH as DD, bI as b_, bJ as Il, bK as Gy, bL as Ky, bM as PD, bN as jm, bO as ED, s as OD, bP as zm, bQ as LD, bR as $D, bS as Vm, bT as ND, bU as FD, bV as WD, bW as Uy, bX as HD, bY as qD, bZ as CI, b_ as jD, b$ as zD, c0 as VD, c1 as GD, c2 as KD, c3 as UD, c4 as YD, c5 as JD } from "./useWorkbenchRuntime-Pekhufen.js";
18
18
  import "gridstack/dist/gridstack.css";
19
19
  import { GridStack as w_ } from "gridstack";
@@ -130,7 +130,7 @@ const Pr = 100, fs = 5, ds = {
130
130
  large: 1,
131
131
  screen: 1
132
132
  }, n2 = 0.75;
133
- function wa(e, t) {
133
+ function Ia(e, t) {
134
134
  const n = Number(e);
135
135
  return Number.isFinite(n) ? n : t;
136
136
  }
@@ -141,11 +141,11 @@ function lw(e = "small") {
141
141
  return { ...ds[e] };
142
142
  }
143
143
  function Su(e) {
144
- const t = Math.min(Pr, Math.max(fs, Jn(wa(e.w, 30)))), n = Math.max(fs, Jn(wa(e.h, 20))), r = Math.min(Pr - t, Math.max(0, Jn(wa(e.x, 0)))), a = Math.max(0, Jn(wa(e.y, 0)));
144
+ const t = Math.min(Pr, Math.max(fs, Jn(Ia(e.w, 30)))), n = Math.max(fs, Jn(Ia(e.h, 20))), r = Math.min(Pr - t, Math.max(0, Jn(Ia(e.x, 0)))), a = Math.max(0, Jn(Ia(e.y, 0)));
145
145
  return { x: r, y: a, w: t, h: n };
146
146
  }
147
147
  function ou(e) {
148
- const t = Math.min(Pr, Math.max(fs, Jn(wa(e.w, 30)))), n = Math.max(fs, Jn(wa(e.h, 20))), r = Math.min(Pr - t, Math.max(0, Jn(wa(e.x, 0)))), a = Math.max(0, Jn(wa(e.y, 0)));
148
+ const t = Math.min(Pr, Math.max(fs, Jn(Ia(e.w, 30)))), n = Math.max(fs, Jn(Ia(e.h, 20))), r = Math.min(Pr - t, Math.max(0, Jn(Ia(e.x, 0)))), a = Math.max(0, Jn(Ia(e.y, 0)));
149
149
  return { x: r, y: a, w: t, h: n };
150
150
  }
151
151
  function r2(e, t) {
@@ -313,20 +313,20 @@ function k_(e) {
313
313
  function Np(e) {
314
314
  var t, n, r, a;
315
315
  const i = lw(e.preset), o = Su({
316
- x: wa((t = e.layout) == null ? void 0 : t.x, 0),
317
- y: wa((n = e.layout) == null ? void 0 : n.y, 0),
318
- w: wa(((r = e.layout) == null ? void 0 : r.w) ?? e.width, i.w),
319
- h: wa(((a = e.layout) == null ? void 0 : a.h) ?? e.height, i.h)
316
+ x: Ia((t = e.layout) == null ? void 0 : t.x, 0),
317
+ y: Ia((n = e.layout) == null ? void 0 : n.y, 0),
318
+ w: Ia(((r = e.layout) == null ? void 0 : r.w) ?? e.width, i.w),
319
+ h: Ia(((a = e.layout) == null ? void 0 : a.h) ?? e.height, i.h)
320
320
  });
321
321
  return C_(o, e.placed);
322
322
  }
323
323
  function dw(e) {
324
324
  var t, n, r, a;
325
325
  const i = lw(e.preset), o = Su({
326
- x: wa((t = e.layout) == null ? void 0 : t.x, 0),
327
- y: wa((n = e.layout) == null ? void 0 : n.y, 0),
328
- w: wa(((r = e.layout) == null ? void 0 : r.w) ?? e.width, i.w),
329
- h: wa(((a = e.layout) == null ? void 0 : a.h) ?? e.height, i.h)
326
+ x: Ia((t = e.layout) == null ? void 0 : t.x, 0),
327
+ y: Ia((n = e.layout) == null ? void 0 : n.y, 0),
328
+ w: Ia(((r = e.layout) == null ? void 0 : r.w) ?? e.width, i.w),
329
+ h: Ia(((a = e.layout) == null ? void 0 : a.h) ?? e.height, i.h)
330
330
  });
331
331
  return u2(o, e.placed);
332
332
  }
@@ -6242,7 +6242,7 @@ function A$(e, t, n, r, a, i) {
6242
6242
  nestedLayoutMode: b,
6243
6243
  nestedLayoutBasis: I,
6244
6244
  ...k
6245
- } = t, S = Array.isArray(g) && g.length > 0 ? g : V$(e, n, r, i == null ? void 0 : i.childIdsByContainerId), C = Ef(e, e.layout, n, /* @__PURE__ */ new Set(), i == null ? void 0 : i.childIdsByContainerId), M = u1(e, n, r, t.nestedBlocks, a, i), E = i ? Ca(e, n, i.childIdsByContainerId).length : Ca(e, n).length, N = j$(e, M, C), $ = r === "image" && $N(e, n), ae = r === "image" && !el(e) && !$ && z$(
6245
+ } = t, S = Array.isArray(g) && g.length > 0 ? g : V$(e, n, r, i == null ? void 0 : i.childIdsByContainerId), C = Ef(e, e.layout, n, /* @__PURE__ */ new Set(), i == null ? void 0 : i.childIdsByContainerId), M = u1(e, n, r, t.nestedBlocks, a, i), E = i ? ka(e, n, i.childIdsByContainerId).length : ka(e, n).length, N = j$(e, M, C), $ = r === "image" && $N(e, n), ae = r === "image" && !el(e) && !$ && z$(
6246
6246
  e.id,
6247
6247
  M,
6248
6248
  N
@@ -6533,7 +6533,7 @@ function V$(e, t, n, r) {
6533
6533
  });
6534
6534
  }));
6535
6535
  }
6536
- for (const s of Ca(e, t, r).filter((d) => !o.has(d)))
6536
+ for (const s of ka(e, t, r).filter((d) => !o.has(d)))
6537
6537
  i.push({
6538
6538
  id: `${e.id}-child-${s}`,
6539
6539
  kind: "text",
@@ -6543,7 +6543,7 @@ function V$(e, t, n, r) {
6543
6543
  return i;
6544
6544
  }
6545
6545
  function u1(e, t, n, r, a = /* @__PURE__ */ new Set(), i) {
6546
- const o = [], s = f1(r), d = Array.from(s.values()), c = (i == null ? void 0 : i.nestedOwnerByChildId) ?? Tf(t, i == null ? void 0 : i.childIdsByContainerId), f = d.length > 0 && Ca(e, t, i == null ? void 0 : i.childIdsByContainerId).some((g) => c.get(g) === e.id);
6546
+ const o = [], s = f1(r), d = Array.from(s.values()), c = (i == null ? void 0 : i.nestedOwnerByChildId) ?? Tf(t, i == null ? void 0 : i.childIdsByContainerId), f = d.length > 0 && ka(e, t, i == null ? void 0 : i.childIdsByContainerId).some((g) => c.get(g) === e.id);
6547
6547
  if (MN(e, t, d) && !f) return d;
6548
6548
  const h = /* @__PURE__ */ new Set();
6549
6549
  if (f)
@@ -6567,7 +6567,7 @@ function u1(e, t, n, r, a = /* @__PURE__ */ new Set(), i) {
6567
6567
  }
6568
6568
  function c1(e, t, n, r, a, i, o, s, d, c, f, h = "") {
6569
6569
  const g = f == null ? void 0 : f.childIdsByContainerId;
6570
- Ca(e, n, g).forEach((b) => {
6570
+ ka(e, n, g).forEach((b) => {
6571
6571
  if (s.has(b)) return;
6572
6572
  const I = n.get(b);
6573
6573
  if (!I) return;
@@ -6608,7 +6608,7 @@ function c1(e, t, n, r, a, i, o, s, d, c, f, h = "") {
6608
6608
  });
6609
6609
  }
6610
6610
  function G$(e, t, n, r, a) {
6611
- if (!a.has(t.id) || t.kind !== "container" || Et(t) !== "image" || Ca(t, n, r).length === 0) return !1;
6611
+ if (!a.has(t.id) || t.kind !== "container" || Et(t) !== "image" || ka(t, n, r).length === 0) return !1;
6612
6612
  const i = Ft(e);
6613
6613
  return !!(i && Ru(e, i, n).some((o) => o.card.id === t.id));
6614
6614
  }
@@ -6712,7 +6712,7 @@ function U$(e) {
6712
6712
  function Y$(e) {
6713
6713
  const t = /* @__PURE__ */ new Map();
6714
6714
  for (const n of e.values())
6715
- n.kind === "container" && t.set(n.id, Ca(n, e));
6715
+ n.kind === "container" && t.set(n.id, ka(n, e));
6716
6716
  return t;
6717
6717
  }
6718
6718
  function J$(e, t, n) {
@@ -6769,7 +6769,7 @@ function Q$(e, t, n, r) {
6769
6769
  ), h = (d || c) && !f;
6770
6770
  if (s !== void 0 && !h) return !1;
6771
6771
  for (const g of t.values())
6772
- if (!(g.id === e.id || g.kind !== "container") && !In(g) && !(id(g, t) && !Ys(g, t)) && Ca(g, t, n).includes(e.id) && !(h && (g.id === s || vf(e, t).includes(g.id))) && !(h && eN(e, g, t) && pb(g, t, n, r)) && !C1(g.id, e.id, t, n))
6772
+ if (!(g.id === e.id || g.kind !== "container") && !In(g) && !(id(g, t) && !Ys(g, t)) && ka(g, t, n).includes(e.id) && !(h && (g.id === s || vf(e, t).includes(g.id))) && !(h && eN(e, g, t) && pb(g, t, n, r)) && !C1(g.id, e.id, t, n))
6773
6773
  return !1;
6774
6774
  return !0;
6775
6775
  }
@@ -6782,7 +6782,7 @@ function Z$(e, t, n, r) {
6782
6782
  function pb(e, t, n, r) {
6783
6783
  if (e.kind !== "container" || Et(e) !== "image" || vf(e, t).length === 0) return !1;
6784
6784
  const a = /* @__PURE__ */ new Set();
6785
- return Ca(e, t, n).forEach((i) => a.add(i)), r == null || r.forEach((i, o) => {
6785
+ return ka(e, t, n).forEach((i) => a.add(i)), r == null || r.forEach((i, o) => {
6786
6786
  i === e.id && a.add(o);
6787
6787
  }), B1(e, t, r ?? /* @__PURE__ */ new Map()).forEach(({ card: i }) => {
6788
6788
  a.add(i.id);
@@ -6812,7 +6812,7 @@ function tN(e, t, n, r, a) {
6812
6812
  const s = /* @__PURE__ */ new Set();
6813
6813
  return a == null || a.forEach((d, c) => {
6814
6814
  d === e.id && s.add(c);
6815
- }), Ca(e, n, r).forEach((d) => s.add(d)), [...s].map((d) => n.get(d)).some((d) => !!(d && d.kind !== "container" && yd(d)));
6815
+ }), ka(e, n, r).forEach((d) => s.add(d)), [...s].map((d) => n.get(d)).some((d) => !!(d && d.kind !== "container" && yd(d)));
6816
6816
  }
6817
6817
  function p1(e, t, n, r) {
6818
6818
  return new Set(e.filter((a) => Q$(a, t, n, r)).filter((a) => !nN(a, t)).map((a) => a.id));
@@ -6884,7 +6884,7 @@ function sN(e) {
6884
6884
  }
6885
6885
  function lN(e, t) {
6886
6886
  if (!el(e) || mi(e)) return !1;
6887
- const n = ka(e);
6887
+ const n = xa(e);
6888
6888
  return gd(e, t).length >= 4 ? !0 : /GLOBAL RISK POSTURE|风险总览|经营健康|risk posture/i.test(n);
6889
6889
  }
6890
6890
  function dN(e) {
@@ -6923,7 +6923,7 @@ function dN(e) {
6923
6923
  };
6924
6924
  }
6925
6925
  function Wd(e, t, n = !1) {
6926
- return e.filter((r) => r.kind === "metric" || r.kind === "list" || n && r.kind === "container").filter((r) => !In(r)).filter((r) => t.test(ka(r))).filter((r) => {
6926
+ return e.filter((r) => r.kind === "metric" || r.kind === "list" || n && r.kind === "container").filter((r) => !In(r)).filter((r) => t.test(xa(r))).filter((r) => {
6927
6927
  const a = Ft(r);
6928
6928
  return !!(a && a.y >= 1 && a.y <= 6 && a.h <= 4);
6929
6929
  }).sort((r, a) => {
@@ -7005,7 +7005,7 @@ function Tf(e, t, n) {
7005
7005
  if (i.kind !== "container" || In(i) || id(i, e) && !Ys(i, e) || Pi(i)) continue;
7006
7006
  const o = Te(i.id);
7007
7007
  if (o)
7008
- for (const s of Ca(i, e, t))
7008
+ for (const s of ka(i, e, t))
7009
7009
  s === o || a.has(s) || a.set(s, o);
7010
7010
  }
7011
7011
  return a;
@@ -7184,14 +7184,14 @@ function gN(e, t, n, r) {
7184
7184
  return a ? d < 0.45 && c < 0.45 ? !1 : s.y + s.h <= t.y + t.h + YS : d < 0.6 && c < 0.6 ? !1 : s.y + s.h <= t.y + t.h + Rf(e);
7185
7185
  }
7186
7186
  function Yp(e, t) {
7187
- const n = hs(e, "container"), r = hs(t, "child"), a = ka(t);
7187
+ const n = hs(e, "container"), r = hs(t, "child"), a = xa(t);
7188
7188
  return n.has("ops") && /服务|系统|故障|告警|红警|资源|负载|CPU|内存|存储|带宽|趋势|近七日|事件|监控/.test(a) || n.has("security") && /安全|风险|合规|审计|敏感|账号|权限|漏洞|攻击/.test(a) || n.has("asset") && /资产|成本|费用|预算|License|云|终端|服务器|机房|软件|降本|释放资源|可释放/.test(a) || n.has("project") && /项目|进度|待办|审批|研发|效能|快捷|入口|通知|上线|权限变更|割接|巡检|排期/.test(a) || n.has("hrOrganization") && /组织|编制|人员结构|组织人数|平均司龄|高职级|部门编制|关键异动|缺编|超编|架构|岗位/.test(a) || n.has("hrRiskCompliance") && /人力风险|用工|劳动|纠纷|考勤|合规|迟到|旷工|请假|外包|加班|社保|合同|断缴|异常/.test(a) || n.has("hrPeopleCost") && /人数|薪酬|成本|人效|预算|费用|福利|社保|奖金|外包成本|成本趋势|成本异常|产值/.test(a) || n.has("hrTalentDevelopment") && /人才|梯队|关键岗位|培训|认证|待办|继任|储备|绩效|招聘|任免|员工档案|入口|快捷|人效|排行/.test(a) || n.has("hrTalentDevelopment") && yN(a) || n.has("operationHealth") && /目标进度|进度条|近\s*6\s*个月|核心指标|结构占比|收入结构|业务结构|渠道结构|区域结构|同比|预算线|业务线|区域/.test(a) || n.has("operationRiskOpportunity") && /风险监控|风险|机会提示|机会|行业对标|对标|红黄灯|投诉|库存|逾期|高潜产品|成本优化|重点客户|渠道升级|新品上市|市场份额|竞品/.test(a) || n.has("operationEfficiency") && /交付|履约|订单准时|生产良率|服务响应|资源利用|人均产值|设备利用|库存周转|重点项目里程碑|里程碑|延期预警/.test(a) || n.has("operationDelivery") && /交付|履约|订单准时|生产良率|服务响应/.test(a) || n.has("operationResource") && /资源利用|人均产值|设备利用|库存周转/.test(a) || n.has("operationMilestone") && /重点项目里程碑|里程碑|延期预警|数字化工厂|成本专项/.test(a) ? !0 : [...r].some((i) => n.has(i));
7189
7189
  }
7190
7190
  function yN(e) {
7191
7191
  return /招聘系统|绩效平台|员工档案|用工审计|HR\s*系统|人才系统|培训平台|考勤系统|薪酬平台|系统|平台|档案|审计/.test(e);
7192
7192
  }
7193
7193
  function vN(e) {
7194
- return bN(ka(e));
7194
+ return bN(xa(e));
7195
7195
  }
7196
7196
  function bN(e) {
7197
7197
  return /\b(CIO|IT)\b|信息化|数字化|运维|研发|基础设施|服务监控|资源负载|机房|服务器|云主机|终端|License|软件|硬件|账号|权限|漏洞|攻击|网络安全|信息安全|安全事件|等保|堡垒机|服务工单|数据库|接口|中台|ERP|MES|WMS|SCM|CRM|ops|infrastructure|software|system|cyber|service desk/i.test(e);
@@ -7203,11 +7203,11 @@ function IN(e) {
7203
7203
  return /董事长|高管|集团经营健康综合得分|GLOBAL RISK POSTURE|TODAY MOVEMENT|重大经营风险|预算严重偏差|资金类预警|风险全景下钻|亏损主体|组织隐患|利润底线|财务资金风险|风险红线|重大投资风险|战略投资追加|chairman|risk posture/i.test(e);
7204
7204
  }
7205
7205
  function hs(e, t) {
7206
- const n = ka(e), r = /* @__PURE__ */ new Set(), a = vN(e), i = !IN(n);
7206
+ const n = xa(e), r = /* @__PURE__ */ new Set(), a = vN(e), i = !IN(n);
7207
7207
  return a && /infrastructure|operations?|ops|service monitor|incident center|resource bars/i.test(n) && r.add("ops"), a && /information security|compliance|security score|security risk|account|permission|audit/i.test(n) && r.add("security"), (ii(n) || /TODAY MOVEMENT|经营风险|预算严重偏差|资金类预警|项目隐患|经营健康综合得分|health score|operating risks?|project hidden risks?|hidden risks?/i.test(n)) && r.add("businessRisk"), a && /基础设施|运维|稳定|监控|服务|系统|故障|告警|红警|资源|负载|内存|存储|带宽|趋势|近七日|事件|CPU/.test(n) && r.add("ops"), a && /信息安全|安全|合规|治理|风险|审计|敏感|账号|权限|漏洞|攻击/.test(n) && r.add("security"), a && /资产|成本|预算|费用|终端|服务器|机房|软件|降本|释放资源|可释放|License/.test(n) && r.add("asset"), a && /数字化|项目|研发|效能|待办|审批|快捷|入口|上线|权限变更|割接|巡检|排期|运维平台|堡垒机|服务工单/.test(n) && r.add("project"), /五大维度|健康雷达|雷达|盈利结构|资金安全边际/.test(n) && r.add("healthRadar"), /经营目标偏差|目标完成|目标\s*VS\s*实际|利润底线|目标偏差/.test(n) && r.add("deviation"), /财务资金|资金风险|逾期应收|现金流|坏账|风险红线/.test(n) && r.add("financeRisk"), /成本.*费用|费用超支|超阈值|费用超阈值|管理费用|外包成本/.test(n) && r.add("expenseRisk"), /组织.*人效|人效风险|组织稳定|核心流失|人效下滑|超编/.test(n) && r.add("organizationRisk"), /重大投资|项目风险|投资.*项目|战略项目|新基地|技改|甘特/.test(n) && r.add("investmentRisk"), /高管重大待办|董事长督办|重大待办|战略投资追加|资金支付复核|待签批|待复核/.test(n) && r.add("executiveTodo"), /快捷穿透|风险全景下钻|二级页|亏损主体|组织隐患/.test(n) && r.add("shortcutDrill"), /组织编制|人员结构|组织人数|编制使用|平均司龄|高职级|部门编制|关键异动|缺编|超编|组织架构/.test(n) && r.add("hrOrganization"), /人力风险|用工风险|用工合规|劳动纠纷|考勤异常|制度合规|加班合规|外包合规|迟到|旷工|请假|社保|合同.*到期|断缴/.test(n) && r.add("hrRiskCompliance"), /人数.*薪酬|薪酬成本|薪酬结构|人力总成本|成本趋势|成本异常|人效|预算管控|福利|外包费用|人均产值/.test(n) && r.add("hrPeopleCost"), /人才发展|人才梯队|关键岗位|培训认证|培训完成|持证覆盖|继任计划|储备干部|低绩效|人事待办|任免|招聘|员工档案|快捷入口|人效排行/.test(n) && r.add("hrTalentDevelopment"), i && /目标进度|进度条|近\s*6\s*个月|核心指标|同比|预算线|业务线|区域/.test(n) && r.add("operationHealthMetric"), i && /结构占比|收入结构|业务结构|渠道结构|区域结构/.test(n) && r.add("operationStructure"), i && /风险监控|逾期账款|库存积压|投诉率|合规风险|红黄灯/.test(n) && r.add("operationRisk"), i && /机会提示|高潜产品|成本优化|重点客户|渠道升级|新品上市/.test(n) && r.add("operationOpportunity"), i && /行业对标|市场份额|竞品/.test(n) && r.add("operationBenchmark"), i && /交付|履约|订单准时|生产良率|服务响应/.test(n) && r.add("operationDelivery"), i && /资源利用|人均产值|设备利用|库存周转/.test(n) && r.add("operationResource"), i && /重点项目里程碑|里程碑|数字化工厂|成本专项|延期预警/.test(n) && r.add("operationMilestone"), t === "container" ? (a && /基础设施|运维|稳定|监控/.test(n) && r.add("ops"), a && /信息安全|安全|合规|治理/.test(n) && r.add("security"), a && /资产|成本|预算|License|费用/.test(n) && r.add("asset"), a && /数字化|项目|研发|效能/.test(n) && r.add("project"), /五大维度|健康雷达|雷达/.test(n) && r.add("healthRadar"), /经营目标偏差|目标完成|目标偏差/.test(n) && r.add("deviation"), /财务资金|资金风险|逾期应收|现金流/.test(n) && r.add("financeRisk"), /成本.*费用|费用超支|超阈值/.test(n) && r.add("expenseRisk"), /组织.*人效|人效风险|组织稳定/.test(n) && r.add("organizationRisk"), /重大投资|项目风险|投资.*项目/.test(n) && r.add("investmentRisk"), /高管重大待办|董事长督办|重大待办/.test(n) && r.add("executiveTodo"), /快捷穿透|风险全景下钻|二级页/.test(n) && r.add("shortcutDrill"), /组织编制|人员结构|组织人数|编制使用/.test(n) && r.add("hrOrganization"), /人力风险|用工风险|考勤异常|制度合规|合规管控/.test(n) && r.add("hrRiskCompliance"), /人数.*薪酬|薪酬成本|薪酬结构|成本管控/.test(n) && r.add("hrPeopleCost"), /人才发展|人才梯队|待办中心|关键岗位|培训认证/.test(n) && r.add("hrTalentDevelopment"), i && /经营健康度|经营健康|健康度/.test(n) && r.add("operationHealth"), i && /风险与机会|风险监控|机会提示|行业对标/.test(n) && r.add("operationRiskOpportunity"), i && /运营效率|交付|履约|资源利用|重点项目里程碑/.test(n) && r.add("operationEfficiency")) : (a && /服务|系统|故障|告警|红警|资源|负载|CPU|内存|存储|带宽|趋势|近七日|事件|监控/.test(n) && r.add("ops"), a && /安全|风险|合规|审计|敏感|账号|权限|漏洞|攻击/.test(n) && r.add("security"), a && /资产|成本|费用|预算|License|云|终端|服务器|机房|软件|降本|释放资源|可释放/.test(n) && r.add("asset"), a && /项目|进度|待办|审批|研发|效能|快捷|入口|通知|上线|权限变更|割接|巡检|排期/.test(n) && r.add("project"), /雷达|盈利结构|资金安全边际/.test(n) && r.add("healthRadar"), /目标完成|利润底线|目标偏差/.test(n) && r.add("deviation"), /资金风险|逾期应收|现金流|坏账/.test(n) && r.add("financeRisk"), /费用超支|超阈值|管理费用|外包成本/.test(n) && r.add("expenseRisk"), /组织稳定|核心流失|人效下滑|超编|人效风险/.test(n) && r.add("organizationRisk"), /项目风险|战略项目|新基地|技改|合资项目|投资/.test(n) && r.add("investmentRisk"), /战略投资|资金支付|人事|任免|签批|复核/.test(n) && r.add("executiveTodo"), /亏损主体|资金风险|违规|延期|费用超支|组织隐患/.test(n) && r.add("shortcutDrill"), /平均司龄|高职级|部门编制|关键异动|缺编|超编|组织人数|人员结构|组织架构/.test(n) && r.add("hrOrganization"), /用工|劳动|纠纷|考勤|合规|迟到|旷工|请假|外包合规|加班合规|社保|合同|断缴/.test(n) && r.add("hrRiskCompliance"), /薪酬|成本|人效|预算|费用|福利|奖金|成本趋势|成本异常|产值/.test(n) && r.add("hrPeopleCost"), /人才|梯队|关键岗位|培训|认证|继任|储备|绩效|招聘|人事|任免|员工档案|快捷入口|人效排行/.test(n) && r.add("hrTalentDevelopment"), i && /目标进度|进度条|近\s*6\s*个月|核心指标|同比|预算线|业务线|区域/.test(n) && r.add("operationHealthMetric"), i && /结构占比|收入结构|业务结构|渠道结构|区域结构/.test(n) && r.add("operationStructure"), i && /风险监控|逾期账款|库存积压|投诉率|合规风险|红黄灯/.test(n) && r.add("operationRisk"), i && /机会提示|高潜产品|成本优化|重点客户|渠道升级|新品上市/.test(n) && r.add("operationOpportunity"), i && /行业对标|市场份额|竞品/.test(n) && r.add("operationBenchmark"), i && /交付|履约|订单准时|生产良率|服务响应/.test(n) && r.add("operationDelivery"), i && /资源利用|人均产值|设备利用|库存周转/.test(n) && r.add("operationResource"), i && /重点项目里程碑|里程碑|数字化工厂|成本专项|延期预警/.test(n) && r.add("operationMilestone")), r;
7208
7208
  }
7209
7209
  function CN(e) {
7210
- if (e.kind !== "container" || Et(e) !== "image" || In(e) || Pi(e) || mi(e) || ii(ka(e)) || Zs(e)) return "";
7210
+ if (e.kind !== "container" || Et(e) !== "image" || In(e) || Pi(e) || mi(e) || ii(xa(e)) || Zs(e)) return "";
7211
7211
  const t = _N(e);
7212
7212
  if (t) return t;
7213
7213
  if (!kN(e)) return "";
@@ -7221,7 +7221,7 @@ function kN(e) {
7221
7221
  return r >= 3 || n >= 12 && r >= 2 || n >= 10 && o.length >= 48 || n >= 10 && i.length >= 4;
7222
7222
  }
7223
7223
  function xN(e) {
7224
- const t = ka(e);
7224
+ const t = xa(e);
7225
7225
  return /基础设施.*运维|运维.*稳定|全局服务监控.*(?:CPU|内存|存储|带宽)|information security.*compliance|信息安全.*合规|合规.*治理|账号.*审计|等保.*整改|IT\s*资产.*成本|资产.*成本管理|License.*预算|云主机.*机房|数字化项目.*研发|研发.*效能|重点\s*IT\s*项目.*待办|运维平台.*服务工单/i.test(t);
7226
7226
  }
7227
7227
  function _N(e) {
@@ -7242,7 +7242,7 @@ function I1(e) {
7242
7242
  const t = CN(e);
7243
7243
  return t ? l$[t] : 0;
7244
7244
  }
7245
- function ka(e) {
7245
+ function xa(e) {
7246
7246
  var t, n, r;
7247
7247
  const a = _t(e.renderData) ? e.renderData : {}, i = _t(e.appearance) ? e.appearance : {}, o = _t(e.meta) ? e.meta : {}, s = _t(o.visual) ? o.visual : {};
7248
7248
  return [
@@ -7270,14 +7270,14 @@ function ka(e) {
7270
7270
  ].filter((d) => typeof d == "string" && d.trim()).join(" ");
7271
7271
  }
7272
7272
  function C1(e, t, n, r) {
7273
- const a = /* @__PURE__ */ new Set(), i = [...Ca(n.get(t) ?? { id: t }, n, r)];
7273
+ const a = /* @__PURE__ */ new Set(), i = [...ka(n.get(t) ?? { id: t }, n, r)];
7274
7274
  for (; i.length > 0; ) {
7275
7275
  const o = i.shift();
7276
7276
  if (!o || a.has(o)) continue;
7277
7277
  if (o === e) return !0;
7278
7278
  a.add(o);
7279
7279
  const s = n.get(o);
7280
- (s == null ? void 0 : s.kind) === "container" && i.push(...Ca(s, n, r));
7280
+ (s == null ? void 0 : s.kind) === "container" && i.push(...ka(s, n, r));
7281
7281
  }
7282
7282
  return !1;
7283
7283
  }
@@ -7296,7 +7296,7 @@ function SN(e, t) {
7296
7296
  if (Array.isArray(i) && i.includes(t.id)) return a;
7297
7297
  return ((n = t.layout) == null ? void 0 : n.parentId) === e.id && typeof t.layout.slot == "string" && t.layout.slot.trim() ? t.layout.slot : "children";
7298
7298
  }
7299
- function Ca(e, t = /* @__PURE__ */ new Map(), n) {
7299
+ function ka(e, t = /* @__PURE__ */ new Map(), n) {
7300
7300
  const r = n == null ? void 0 : n.get(e.id);
7301
7301
  if (r) return r;
7302
7302
  if (In(e)) return [];
@@ -7429,7 +7429,7 @@ function Zs(e) {
7429
7429
  return t ? !!(Pu(e) || Te(t.status) || Te(t.queryIntent) || Te(t.refreshApi) || Te(t.source)) : !1;
7430
7430
  }
7431
7431
  function id(e, t) {
7432
- if (e.kind !== "container" || Et(e) !== "image" || ii(ka(e)) || Zs(e) || Qs(e) || Jp(e, t)) return !1;
7432
+ if (e.kind !== "container" || Et(e) !== "image" || ii(xa(e)) || Zs(e) || Qs(e) || Jp(e, t)) return !1;
7433
7433
  const n = Ft(e);
7434
7434
  if (!n || n.x > 1 || n.w < 12 || n.h > s$) return !1;
7435
7435
  const r = oo(e, t);
@@ -7446,7 +7446,7 @@ function id(e, t) {
7446
7446
  }).length >= Math.max(3, Math.ceil(i.length * 0.8));
7447
7447
  }
7448
7448
  function Ys(e, t) {
7449
- if (e.kind !== "container" || Et(e) !== "image" || In(e) || Pi(e) || mi(e) || ii(ka(e)) || Zs(e) || Qs(e)) return !1;
7449
+ if (e.kind !== "container" || Et(e) !== "image" || In(e) || Pi(e) || mi(e) || ii(xa(e)) || Zs(e) || Qs(e)) return !1;
7450
7450
  const n = Ft(e);
7451
7451
  if (!n || n.w < 8 || n.h > d$) return !1;
7452
7452
  const r = HN(e, n, t);
@@ -7455,7 +7455,7 @@ function Ys(e, t) {
7455
7455
  return a.length < Math.min(2, r.length) || !a.every((i) => i.y >= n.y + n.h - 0.1) || Du(n, a) < u$ ? !1 : r.filter(({ card: i }) => yd(i)).length >= Math.max(2, Math.ceil(r.length * 0.6));
7456
7456
  }
7457
7457
  function Dw(e, t) {
7458
- if (e.kind !== "container" || Et(e) !== "image" || In(e) || Pi(e) || mi(e) || ii(ka(e)) || Zs(e) || Qs(e) || oo(e, t).some((i) => t.has(i))) return !1;
7458
+ if (e.kind !== "container" || Et(e) !== "image" || In(e) || Pi(e) || mi(e) || ii(xa(e)) || Zs(e) || Qs(e) || oo(e, t).some((i) => t.has(i))) return !1;
7459
7459
  const n = Ft(e);
7460
7460
  if (!n || n.w < 12 || n.h > c$) return !1;
7461
7461
  const r = D1(e, n, t);
@@ -7464,7 +7464,7 @@ function Dw(e, t) {
7464
7464
  return a.length < 2 || !a.every((i) => i.y >= n.y + n.h - 0.1) ? !1 : Du(n, a) >= f$;
7465
7465
  }
7466
7466
  function Jp(e, t) {
7467
- if (e.kind !== "container" || Et(e) !== "image" || In(e) || Pi(e) || mi(e) || ii(ka(e)) || Zs(e) || Qs(e)) return !1;
7467
+ if (e.kind !== "container" || Et(e) !== "image" || In(e) || Pi(e) || mi(e) || ii(xa(e)) || Zs(e) || Qs(e)) return !1;
7468
7468
  const n = Ft(e);
7469
7469
  if (!n || n.w < 12 || n.h > m$) return !1;
7470
7470
  const r = oo(e, t).map((o) => t.get(o)).filter((o) => !!o);
@@ -7595,7 +7595,7 @@ function FN(e, t) {
7595
7595
  return r;
7596
7596
  }
7597
7597
  function Df(e, t) {
7598
- if (e.kind !== "container" || Et(e) !== "image" || In(e) || Pi(e) || mi(e) || ii(ka(e)) || Zs(e) || Qs(e) || oo(e, t).some((a) => t.has(a))) return !1;
7598
+ if (e.kind !== "container" || Et(e) !== "image" || In(e) || Pi(e) || mi(e) || ii(xa(e)) || Zs(e) || Qs(e) || oo(e, t).some((a) => t.has(a))) return !1;
7599
7599
  const n = Ft(e);
7600
7600
  if (!n || n.w > g$ || n.h > p$) return !1;
7601
7601
  const r = E1(e, n, t);
@@ -7680,14 +7680,14 @@ function Du(e, t) {
7680
7680
  function qN(e) {
7681
7681
  if (e.kind !== "container" || Et(e) !== "image") return !1;
7682
7682
  if (In(e)) return !0;
7683
- const t = ka(e), n = Ft(e);
7683
+ const t = xa(e), n = Ft(e);
7684
7684
  return !!(n && n.x <= 1 && n.y <= 1 && n.w >= 18 && n.h <= 4 && /工作台|workbench|workspace/i.test(t) && !/GLOBAL RISK POSTURE|risk posture|TODAY MOVEMENT/i.test(t));
7685
7685
  }
7686
7686
  function ii(e) {
7687
7687
  return /安全风险总览|安全风险概览|security risk/i.test(e) ? !1 : /风险总览|风险概览|顶部风险|集团经营健康|经营健康综合得分|重大经营风险|预算严重偏差|资金类预警|项目隐患|GLOBAL RISK POSTURE|risk posture|today movement|business risk|capital alert|budget deviation/i.test(e) && wN(e);
7688
7688
  }
7689
7689
  function el(e) {
7690
- return e.kind !== "container" || Et(e) !== "image" || In(e) || mi(e) ? !1 : ii(ka(e));
7690
+ return e.kind !== "container" || Et(e) !== "image" || In(e) || mi(e) ? !1 : ii(xa(e));
7691
7691
  }
7692
7692
  function mi(e) {
7693
7693
  if (e.kind !== "container" || Et(e) !== "image") return !1;
@@ -8043,7 +8043,7 @@ function dv(e) {
8043
8043
  }
8044
8044
  function XN(e) {
8045
8045
  if (e.kind !== "list") return !1;
8046
- const t = ka(e);
8046
+ const t = xa(e);
8047
8047
  return /TODAY MOVEMENT|风险异动|经营异动|故障|告警|红警|P1|P2|incident|alert|alarm|fault|warning/i.test(t);
8048
8048
  }
8049
8049
  function Lw(e) {
@@ -8057,7 +8057,7 @@ function QN(e) {
8057
8057
  function $w(e) {
8058
8058
  const t = _t(e.renderData) ? e.renderData : {};
8059
8059
  return [
8060
- ka(e),
8060
+ xa(e),
8061
8061
  t.displayValue,
8062
8062
  t.value,
8063
8063
  t.status,
@@ -8171,7 +8171,7 @@ function Nw(e, t, n, r, a, i) {
8171
8171
  ), s;
8172
8172
  }
8173
8173
  function U1(e, t, n, r, a, i, o, s, d) {
8174
- Ca(e, n, d).forEach((c) => {
8174
+ ka(e, n, d).forEach((c) => {
8175
8175
  if (i.has(c)) return;
8176
8176
  const f = n.get(c);
8177
8177
  if (!f || f.id !== e.id && o.has(f.id) && !i.has(f.id)) return;
@@ -8235,7 +8235,7 @@ function sF(e, t, n, r, a) {
8235
8235
  ), o;
8236
8236
  }
8237
8237
  function J1(e, t, n, r, a, i, o, s, d) {
8238
- Ca(e, n, d).forEach((c) => {
8238
+ ka(e, n, d).forEach((c) => {
8239
8239
  if (i.has(c)) return;
8240
8240
  const f = n.get(c);
8241
8241
  if (!f || f.id !== e.id && o.has(f.id) && !i.has(f.id)) return;
@@ -8331,7 +8331,7 @@ function Ef(e, t, n, r = /* @__PURE__ */ new Set(), a) {
8331
8331
  };
8332
8332
  }
8333
8333
  if (e.kind !== "container" || r.has(e.id)) return i;
8334
- const c = /* @__PURE__ */ new Set([...r, e.id]), f = cF(e, n), h = Math.max(o, (f == null ? void 0 : f.w) ?? 0, mF(e, n, i)), g = I1(e), b = Ca(e, n, a).reduce((k, S) => {
8334
+ const c = /* @__PURE__ */ new Set([...r, e.id]), f = cF(e, n), h = Math.max(o, (f == null ? void 0 : f.w) ?? 0, mF(e, n, i)), g = I1(e), b = ka(e, n, a).reduce((k, S) => {
8335
8335
  const C = n.get(S);
8336
8336
  if (!C || !_t(C.layout)) return k;
8337
8337
  const M = fF(i, C.layout), E = Ef(C, C.layout, n, c, a), N = at(E.h);
@@ -20012,7 +20012,7 @@ const I8 = { class: "fses-workbench-app" }, C8 = /* @__PURE__ */ tn({
20012
20012
  },
20013
20013
  setup(e) {
20014
20014
  return zx(b8, w8(e)), (t, n) => (T(), L("div", I8, [
20015
- Pa(t.$slots, "default")
20015
+ wa(t.$slots, "default")
20016
20016
  ]));
20017
20017
  }
20018
20018
  }), k8 = { class: "workbench-shell" }, x8 = ["aria-hidden", "inert"], _8 = { class: "workbench-studio-panel__body" }, kk = 48, S8 = /* @__PURE__ */ tn({
@@ -20040,7 +20040,7 @@ const I8 = { class: "fses-workbench-app" }, C8 = /* @__PURE__ */ tn({
20040
20040
  flexBasis: e.drawerOpen ? `calc(100% - ${e.drawerWidth || 392}px)` : e.canvasFocusMode || !e.studioPanelEnabled ? "100%" : e.studioPanelCollapsed ? `calc(100% - ${kk}px)` : `calc(100% - ${e.studioPanelWidth}px - 8px)`
20041
20041
  })
20042
20042
  }, [
20043
- Pa(r.$slots, "left", {}, void 0, !0)
20043
+ wa(r.$slots, "left", {}, void 0, !0)
20044
20044
  ], 4),
20045
20045
  e.studioPanelEnabled && !e.studioPanelCollapsed && !e.canvasFocusMode && !e.drawerOpen ? (T(), L("div", {
20046
20046
  key: 0,
@@ -20062,7 +20062,7 @@ const I8 = { class: "fses-workbench-app" }, C8 = /* @__PURE__ */ tn({
20062
20062
  inert: e.studioPanelCollapsed ? !0 : void 0
20063
20063
  }, [
20064
20064
  v("div", _8, [
20065
- Pa(r.$slots, "right", {}, void 0, !0)
20065
+ wa(r.$slots, "right", {}, void 0, !0)
20066
20066
  ])
20067
20067
  ], 14, x8)) : pe("", !0),
20068
20068
  Ke(zv, { name: "workbench-assistant-rail-shell" }, {
@@ -20073,7 +20073,7 @@ const I8 = { class: "fses-workbench-app" }, C8 = /* @__PURE__ */ tn({
20073
20073
  style: Jt({ flexBasis: `${kk}px` }),
20074
20074
  "aria-label": "收起状态问数助手入口"
20075
20075
  }, [
20076
- Pa(r.$slots, "collapsed-right", {}, void 0, !0)
20076
+ wa(r.$slots, "collapsed-right", {}, void 0, !0)
20077
20077
  ], 4)) : pe("", !0)
20078
20078
  ]),
20079
20079
  _: 3
@@ -20083,7 +20083,7 @@ const I8 = { class: "fses-workbench-app" }, C8 = /* @__PURE__ */ tn({
20083
20083
  class: "workbench-shell__drawer",
20084
20084
  style: Jt({ flexBasis: `${e.drawerWidth || 392}px` })
20085
20085
  }, [
20086
- Pa(r.$slots, "drawer", {}, void 0, !0)
20086
+ wa(r.$slots, "drawer", {}, void 0, !0)
20087
20087
  ], 4)) : pe("", !0)
20088
20088
  ], 2)
20089
20089
  ]));
@@ -20133,16 +20133,16 @@ const I8 = { class: "fses-workbench-app" }, C8 = /* @__PURE__ */ tn({
20133
20133
  })
20134
20134
  }, {
20135
20135
  left: Fn(() => [
20136
- Pa(r.$slots, "left")
20136
+ wa(r.$slots, "left")
20137
20137
  ]),
20138
20138
  right: Fn(() => [
20139
- Pa(r.$slots, "right")
20139
+ wa(r.$slots, "right")
20140
20140
  ]),
20141
20141
  "collapsed-right": Fn(() => [
20142
- Pa(r.$slots, "collapsed-right")
20142
+ wa(r.$slots, "collapsed-right")
20143
20143
  ]),
20144
20144
  drawer: Fn(() => [
20145
- Pa(r.$slots, "drawer")
20145
+ wa(r.$slots, "drawer")
20146
20146
  ]),
20147
20147
  _: 3
20148
20148
  }, 8, ["canvas-focus-mode", "drawer-open", "drawer-width", "dragging", "image-workbench", "studio-panel-collapsed", "studio-panel-enabled", "studio-panel-width"])
@@ -20816,7 +20816,7 @@ const ba = "all-capabilities", i0 = "card.workbench_organization", Cu = "workben
20816
20816
  "card.workbench.welcomeBanner",
20817
20817
  "card.workbench.categoryNavigator"
20818
20818
  ]);
20819
- function Da(e) {
20819
+ function Pa(e) {
20820
20820
  var t, n, r;
20821
20821
  return ((t = e.meta) == null ? void 0 : t.workbenchOrganizationCard) === !0 || ((n = e.meta) == null ? void 0 : n.macroCapabilityId) === i0 || typeof ((r = e.meta) == null ? void 0 : r.capabilityId) == "string" && e.meta.capabilityId.startsWith("card.workbench.") || e.id.startsWith(Cu);
20822
20822
  }
@@ -21063,7 +21063,7 @@ function az(e, t) {
21063
21063
  }
21064
21064
  function iz(e) {
21065
21065
  if (e.existingBlocks.some(s0)) return [];
21066
- const t = e.existingBlocks.filter(Da), n = new Set(t.map((o) => {
21066
+ const t = e.existingBlocks.filter(Pa), n = new Set(t.map((o) => {
21067
21067
  var s, d;
21068
21068
  return String(((s = o.meta) == null ? void 0 : s.capabilityId) || ((d = o.source) == null ? void 0 : d.resourceKey) || "");
21069
21069
  })), r = new Map(
@@ -21294,7 +21294,7 @@ function hz(e, t, n, r) {
21294
21294
  }
21295
21295
  function pz(e) {
21296
21296
  const t = /* @__PURE__ */ new Map();
21297
- e.filter((a) => !Da(a)).forEach((a) => {
21297
+ e.filter((a) => !Pa(a)).forEach((a) => {
21298
21298
  const i = $b(a);
21299
21299
  t.set(i, [...t.get(i) || [], a]);
21300
21300
  });
@@ -21314,11 +21314,11 @@ function pz(e) {
21314
21314
  id: ba,
21315
21315
  name: "全部能力验收",
21316
21316
  shortName: "全部",
21317
- count: e.filter((a) => !Da(a)).length,
21317
+ count: e.filter((a) => !Pa(a)).length,
21318
21318
  description: "展示当前画布内所有能力卡,按能力分类重新组织排版。",
21319
21319
  productUse: "用于本阶段一次性验收 92 个出卡能力,不裁减任何卡片。",
21320
21320
  toneClass: "border-blue-200 bg-white text-blue-700",
21321
- activeBlocks: e.filter((a) => !Da(a))
21321
+ activeBlocks: e.filter((a) => !Pa(a))
21322
21322
  },
21323
21323
  ...r
21324
21324
  ];
@@ -21376,7 +21376,7 @@ function bz(e, t, n, r, a) {
21376
21376
  }
21377
21377
  function wz(e) {
21378
21378
  var oe, se;
21379
- const t = Xi, n = Xi, a = i_(e.blocks).map((te) => uz(te, t, n)), i = a.filter((te) => !Da(te)), o = pz(i), s = ez(e.blocks), d = s ? e.activeTabId : ba, c = o.find((te) => te.id === d) || o[0], f = i.filter((te) => {
21379
+ const t = Xi, n = Xi, a = i_(e.blocks).map((te) => uz(te, t, n)), i = a.filter((te) => !Pa(te)), o = pz(i), s = ez(e.blocks), d = s ? e.activeTabId : ba, c = o.find((te) => te.id === d) || o[0], f = i.filter((te) => {
21380
21380
  var Ve;
21381
21381
  return !!((Ve = te.meta) != null && Ve.acceptanceCard);
21382
21382
  }).length, h = o.filter((te) => te.id !== ba && te.count > 0).length, g = e.roleId && _k[e.roleId] ? _k[e.roleId] : { label: e.roleId || "未指定角色", focus: "角色工作台能力验收" }, b = ((oe = e.workspaceId) == null ? void 0 : oe.trim()) || "", I = ((se = e.runtimePresetResourceId) == null ? void 0 : se.trim()) || "", k = !!(b && I && b === I && String(e.roleId) !== "fde"), S = iz({
@@ -21556,7 +21556,7 @@ const Iz = {
21556
21556
  return XR(N(ne));
21557
21557
  }
21558
21558
  function ae() {
21559
- return n.blocks.filter((ne) => !Da(ne));
21559
+ return n.blocks.filter((ne) => !Pa(ne));
21560
21560
  }
21561
21561
  function oe() {
21562
21562
  var ne;
@@ -22867,7 +22867,7 @@ const zV = ["data-selected", "data-card-id", "data-card-title", "data-compose-so
22867
22867
  }, ue(E.value), 9, e6)) : pe("", !0)
22868
22868
  ])
22869
22869
  ], 4)) : pe("", !0),
22870
- Pa(_e.$slots, "default", {}, void 0, !0)
22870
+ wa(_e.$slots, "default", {}, void 0, !0)
22871
22871
  ], 46, zV));
22872
22872
  }
22873
22873
  }), n6 = /* @__PURE__ */ An(t6, [["__scopeId", "data-v-5f71ce8b"]]), r6 = { class: "workbench-gridstack-nested-container h-full min-h-0 w-full" }, a6 = {
@@ -23188,13 +23188,13 @@ const zV = ["data-selected", "data-card-id", "data-card-title", "data-compose-so
23188
23188
  function Oe(le, ie) {
23189
23189
  const Ce = ie, rt = Number(Ce == null ? void 0 : Ce.clientX), pt = Number(Ce == null ? void 0 : Ce.clientY), Ot = ($ == null ? void 0 : $.x) ?? (Number.isFinite(rt) ? rt : void 0), Wt = ($ == null ? void 0 : $.y) ?? (Number.isFinite(pt) ? pt : void 0);
23190
23190
  if (!Number.isFinite(Ot) || !Number.isFinite(Wt)) return;
23191
- const Ht = Number(Ot), Zt = Number(Wt), un = String(le.dataset.childId || le.getAttribute("gs-id") || ""), pa = le.querySelector(".workbench-gridstack-nested-drag-handle"), Qn = le.getBoundingClientRect(), tr = pa == null ? void 0 : pa.getBoundingClientRect(), xa = tr ? {
23191
+ const Ht = Number(Ot), Zt = Number(Wt), un = String(le.dataset.childId || le.getAttribute("gs-id") || ""), pa = le.querySelector(".workbench-gridstack-nested-drag-handle"), Qn = le.getBoundingClientRect(), tr = pa == null ? void 0 : pa.getBoundingClientRect(), _a = tr ? {
23192
23192
  x: tr.left + tr.width / 2 - Qn.left,
23193
23193
  y: tr.top + tr.height / 2 - Qn.top
23194
- } : void 0, Gr = E.get(le) || (un ? N.get(un) : void 0), nr = xa || Gr;
23194
+ } : void 0, Gr = E.get(le) || (un ? N.get(un) : void 0), nr = _a || Gr;
23195
23195
  if (!nr) return;
23196
- const Sn = `${Ht - nr.x}px`, _a = `${Zt - nr.y}px`;
23197
- le.style.setProperty("--workbench-gridstack-nested-drag-left", Sn), le.style.setProperty("--workbench-gridstack-nested-drag-top", _a), le.style.left = Sn, le.style.top = _a, le.style.right = "";
23196
+ const Sn = `${Ht - nr.x}px`, Sa = `${Zt - nr.y}px`;
23197
+ le.style.setProperty("--workbench-gridstack-nested-drag-left", Sn), le.style.setProperty("--workbench-gridstack-nested-drag-top", Sa), le.style.left = Sn, le.style.top = Sa, le.style.right = "";
23198
23198
  }
23199
23199
  function Me(le) {
23200
23200
  C && ($ = { x: le.clientX, y: le.clientY });
@@ -24126,7 +24126,7 @@ const w6 = ["data-debug-layout-summary"], I6 = ["data-card-id", "gs-id", "gs-x",
24126
24126
  minH: Math.min(J, ne(x.minH ?? J))
24127
24127
  };
24128
24128
  }
24129
- const xa = q(() => {
24129
+ const _a = q(() => {
24130
24130
  var _;
24131
24131
  const x = /* @__PURE__ */ new Map();
24132
24132
  return ((_ = r.layoutTree) == null ? void 0 : _.version) !== 4 || Qn.value || r.layoutTree.nodes.filter((O) => !!O.parentId && Bt.value.has(String(O.parentId))).forEach((O) => {
@@ -24164,7 +24164,7 @@ const w6 = ["data-debug-layout-summary"], I6 = ["data-card-id", "gs-id", "gs-x",
24164
24164
  const x = r.blocks.map((J) => {
24165
24165
  const de = String(J.id), xe = Gr.value.get(de), be = X.value.get(de);
24166
24166
  if (xe) {
24167
- const je = xa.value.get(de) || [], ze = Array.isArray(xe.children) ? xe.children : [], Pt = [...new Map(
24167
+ const je = _a.value.get(de) || [], ze = Array.isArray(xe.children) ? xe.children : [], Pt = [...new Map(
24168
24168
  [...ze, ...je].map((xt) => [
24169
24169
  String(xt.i),
24170
24170
  { ...xt, parentId: xt.parentId || de }
@@ -24191,7 +24191,7 @@ const w6 = ["data-debug-layout-summary"], I6 = ["data-card-id", "gs-id", "gs-x",
24191
24191
  nodes: un() ? x : Kv(x)
24192
24192
  };
24193
24193
  return r.isConfigMode ? Gh(_) : _;
24194
- }), _a = q(
24194
+ }), Sa = q(
24195
24195
  () => Sn.value.nodes.filter((x) => !x.parentId).map(Je).map(ut).map((x) => ({ ...x }))
24196
24196
  );
24197
24197
  function Xa(x) {
@@ -24220,7 +24220,7 @@ const w6 = ["data-debug-layout-summary"], I6 = ["data-card-id", "gs-id", "gs-x",
24220
24220
  const x = Yt(
24221
24221
  qn(
24222
24222
  Xn(
24223
- nn(_a.value, Ge.value),
24223
+ nn(Sa.value, Ge.value),
24224
24224
  Ge.value
24225
24225
  ),
24226
24226
  Ge.value
@@ -24442,8 +24442,8 @@ const w6 = ["data-debug-layout-summary"], I6 = ["data-card-id", "gs-id", "gs-x",
24442
24442
  return {
24443
24443
  top: Lr(x.y, "--gs-cell-height"),
24444
24444
  left: Lr(x.x, "--gs-column-width"),
24445
- width: Sa(x.w, "--gs-column-width"),
24446
- height: Sa(x.h, "--gs-cell-height")
24445
+ width: Ma(x.w, "--gs-column-width"),
24446
+ height: Ma(x.h, "--gs-cell-height")
24447
24447
  };
24448
24448
  }
24449
24449
  function en(x = !1) {
@@ -24544,7 +24544,7 @@ const w6 = ["data-debug-layout-summary"], I6 = ["data-card-id", "gs-id", "gs-x",
24544
24544
  const O = x ?? 0;
24545
24545
  return O === 1 ? `var(${_})` : `calc(${O} * var(${_}))`;
24546
24546
  }
24547
- function Sa(x, _) {
24547
+ function Ma(x, _) {
24548
24548
  const O = x ?? 1;
24549
24549
  return !Number.isFinite(O) || O <= 1 ? "" : O === 1 ? `var(${_})` : `calc(${O} * var(${_}))`;
24550
24550
  }
@@ -24596,7 +24596,7 @@ const w6 = ["data-debug-layout-summary"], I6 = ["data-card-id", "gs-id", "gs-x",
24596
24596
  return;
24597
24597
  }
24598
24598
  const J = (be = (xe = s.value) == null ? void 0 : xe.opts) != null && be.rtl ? "right" : "left", de = J === "right" ? "left" : "right";
24599
- cr(_.style, "top", Lr(O.y, "--gs-cell-height")), cr(_.style, J, Lr(O.x, "--gs-column-width")), cr(_.style, de, ""), cr(_.style, "width", Sa(O.w, "--gs-column-width")), cr(_.style, "height", Sa(O.h, "--gs-cell-height")), ar(_, "gs-x", String(O.x ?? 0)), ar(_, "gs-y", String(O.y ?? 0)), O.w && O.w > 1 ? ar(_, "gs-w", String(O.w)) : Yr(_, "gs-w"), O.h && O.h > 1 ? ar(_, "gs-h", String(O.h)) : Yr(_, "gs-h");
24599
+ cr(_.style, "top", Lr(O.y, "--gs-cell-height")), cr(_.style, J, Lr(O.x, "--gs-column-width")), cr(_.style, de, ""), cr(_.style, "width", Ma(O.w, "--gs-column-width")), cr(_.style, "height", Ma(O.h, "--gs-cell-height")), ar(_, "gs-x", String(O.x ?? 0)), ar(_, "gs-y", String(O.y ?? 0)), O.w && O.w > 1 ? ar(_, "gs-w", String(O.w)) : Yr(_, "gs-w"), O.h && O.h > 1 ? ar(_, "gs-h", String(O.h)) : Yr(_, "gs-h");
24600
24600
  }
24601
24601
  function br(x, _) {
24602
24602
  const O = rr(x), J = O == null ? void 0 : O.gridstackNode;
@@ -24646,7 +24646,7 @@ const w6 = ["data-debug-layout-summary"], I6 = ["data-card-id", "gs-id", "gs-x",
24646
24646
  const x = dr.value;
24647
24647
  i.value.querySelectorAll(":scope > .grid-stack-item[data-card-id]").forEach((_) => {
24648
24648
  const O = x.get(String(_.dataset.cardId || ""));
24649
- O && (cr(_.style, "top", Lr(O.y, "--gs-cell-height")), cr(_.style, "left", Lr(O.x, "--gs-column-width")), cr(_.style, "right", ""), cr(_.style, "width", Sa(O.w, "--gs-column-width")), cr(_.style, "height", Sa(O.h, "--gs-cell-height")), ar(_, "gs-x", String(O.x ?? 0)), ar(_, "gs-y", String(O.y ?? 0)), O.w && O.w > 1 ? ar(_, "gs-w", String(O.w)) : Yr(_, "gs-w"), O.h && O.h > 1 ? ar(_, "gs-h", String(O.h)) : Yr(_, "gs-h"));
24649
+ O && (cr(_.style, "top", Lr(O.y, "--gs-cell-height")), cr(_.style, "left", Lr(O.x, "--gs-column-width")), cr(_.style, "right", ""), cr(_.style, "width", Ma(O.w, "--gs-column-width")), cr(_.style, "height", Ma(O.h, "--gs-cell-height")), ar(_, "gs-x", String(O.x ?? 0)), ar(_, "gs-y", String(O.y ?? 0)), O.w && O.w > 1 ? ar(_, "gs-w", String(O.w)) : Yr(_, "gs-w"), O.h && O.h > 1 ? ar(_, "gs-h", String(O.h)) : Yr(_, "gs-h"));
24650
24650
  }), Mr();
24651
24651
  }
24652
24652
  function Na() {
@@ -27196,7 +27196,7 @@ function D0(e, t = So) {
27196
27196
  function Bl(e, t, n) {
27197
27197
  return e.getPropertyValue(t).trim() || n;
27198
27198
  }
27199
- function Ia(e) {
27199
+ function Ca(e) {
27200
27200
  return !!e && typeof e == "object" && !Array.isArray(e);
27201
27201
  }
27202
27202
  function xu(e) {
@@ -27206,7 +27206,7 @@ function Yi(e, t, n) {
27206
27206
  let r = e;
27207
27207
  for (const i of t.slice(0, -1)) {
27208
27208
  const o = r[i];
27209
- if (Ia(o))
27209
+ if (Ca(o))
27210
27210
  r = o;
27211
27211
  else {
27212
27212
  const s = {};
@@ -27217,7 +27217,7 @@ function Yi(e, t, n) {
27217
27217
  r[a] === void 0 && (r[a] = n);
27218
27218
  }
27219
27219
  function ax(e, t) {
27220
- if (!Ia(e)) return e;
27220
+ if (!Ca(e)) return e;
27221
27221
  const n = xu(e);
27222
27222
  return Yi(n, ["axisLine", "lineStyle", "color"], t.axisColor), Yi(n, ["axisTick", "lineStyle", "color"], t.axisColor), Yi(n, ["axisLabel", "color"], t.axisLabelColor), Yi(n, ["splitLine", "lineStyle", "color"], t.splitLineColor), n;
27223
27223
  }
@@ -27228,8 +27228,8 @@ function RK(e) {
27228
27228
  return e.type === "pie" && Array.isArray(e.radius);
27229
27229
  }
27230
27230
  function ox(e) {
27231
- if (!Ia(e) || !RK(e)) return e;
27232
- const t = xu(e), n = Ia(t.emphasis) ? t.emphasis : null, r = n && Ia(n.label) ? n.label : null;
27231
+ if (!Ca(e) || !RK(e)) return e;
27232
+ const t = xu(e), n = Ca(t.emphasis) ? t.emphasis : null, r = n && Ca(n.label) ? n.label : null;
27233
27233
  if (!r) return t;
27234
27234
  const a = typeof r.fontSize == "number" && Number.isFinite(r.fontSize) ? r.fontSize : Number(r.fontSize);
27235
27235
  return (!Number.isFinite(a) || a > rx) && (r.fontSize = rx), t;
@@ -27244,16 +27244,16 @@ function PK(e) {
27244
27244
  function jB(e) {
27245
27245
  if (Array.isArray(e))
27246
27246
  return e.map((r) => jB(r));
27247
- if (!Ia(e) || !PK(e))
27247
+ if (!Ca(e) || !PK(e))
27248
27248
  return e;
27249
- const t = xu(e), n = Ia(t.label) ? t.label : {};
27250
- return n.show = !1, t.label = n, Ia(t.endLabel) && (t.endLabel = { ...t.endLabel, show: !1 }), t;
27249
+ const t = xu(e), n = Ca(t.label) ? t.label : {};
27250
+ return n.show = !1, t.label = n, Ca(t.endLabel) && (t.endLabel = { ...t.endLabel, show: !1 }), t;
27251
27251
  }
27252
27252
  function EK(e) {
27253
27253
  const t = e.series;
27254
27254
  if (!Array.isArray(t) || t.length !== 1) return !1;
27255
27255
  const n = t[0];
27256
- return !(!Ia(n) || n.type !== "bar" || n.stack !== void 0 && n.stack !== null && n.stack !== "");
27256
+ return !(!Ca(n) || n.type !== "bar" || n.stack !== void 0 && n.stack !== null && n.stack !== "");
27257
27257
  }
27258
27258
  function sx(e, t) {
27259
27259
  const n = e.trim().replace(/^#/, ""), r = n.length === 3 ? n.split("").map((d) => `${d}${d}`).join("") : n;
@@ -27271,7 +27271,7 @@ function OK(e, t) {
27271
27271
  function LK(e, t, n = "card", r = 0) {
27272
27272
  const a = xu(e), i = t.colors[0] || "#4c78fc", o = qB(r, n);
27273
27273
  a.barWidth === void 0 && (a.barWidth = o.barWidth), a.barMaxWidth === void 0 && (a.barMaxWidth = o.barMaxWidth), a.barCategoryGap === void 0 && (a.barCategoryGap = o.barCategoryGap), a.barMinHeight === void 0 && (a.barMinHeight = 2);
27274
- const s = Ia(a.itemStyle) ? a.itemStyle : {};
27274
+ const s = Ca(a.itemStyle) ? a.itemStyle : {};
27275
27275
  s.borderRadius === void 0 && (s.borderRadius = [4, 4, 0, 0]), s.color === void 0 && (s.color = {
27276
27276
  type: "linear",
27277
27277
  x: 0,
@@ -27284,7 +27284,7 @@ function LK(e, t, n = "card", r = 0) {
27284
27284
  { offset: 1, color: sx(i, 0.35) }
27285
27285
  ]
27286
27286
  }), a.itemStyle = s;
27287
- const d = Ia(a.emphasis) ? a.emphasis : {}, c = Ia(d.itemStyle) ? d.itemStyle : {};
27287
+ const d = Ca(a.emphasis) ? a.emphasis : {}, c = Ca(d.itemStyle) ? d.itemStyle : {};
27288
27288
  return c.shadowBlur === void 0 && (c.shadowBlur = 8), c.shadowColor === void 0 && (c.shadowColor = sx(i, 0.35)), d.itemStyle = c, a.emphasis = d, a;
27289
27289
  }
27290
27290
  function $K(e) {
@@ -27301,7 +27301,7 @@ function $K(e) {
27301
27301
  };
27302
27302
  }
27303
27303
  function NK(e, t = So, n = {}) {
27304
- const r = D0(t), a = n.layoutFit || "card", i = xu(e), o = Ia(i.optionPatch) ? i.optionPatch : {};
27304
+ const r = D0(t), a = n.layoutFit || "card", i = xu(e), o = Ca(i.optionPatch) ? i.optionPatch : {};
27305
27305
  i.optionPatch = o;
27306
27306
  const s = n.categoryCount && n.categoryCount > 0 ? n.categoryCount : _K({
27307
27307
  optionPatch: o,
@@ -27316,15 +27316,15 @@ function NK(e, t = So, n = {}) {
27316
27316
  });
27317
27317
  const d = EK(o), c = qB(s, a);
27318
27318
  return Array.isArray(o.series) && (o.series = o.series.map((f, h) => {
27319
- if (!Ia(f)) return f;
27319
+ if (!Ca(f)) return f;
27320
27320
  const g = xu(f), b = typeof g.type == "string" ? g.type : "";
27321
27321
  if (b !== "bar" && b !== "line") return g;
27322
27322
  if (d && b === "bar")
27323
27323
  return LK(g, r, a, s);
27324
- const I = Ia(g.itemStyle) ? g.itemStyle : {};
27324
+ const I = Ca(g.itemStyle) ? g.itemStyle : {};
27325
27325
  return I.color === void 0 && (I.color = r.colors[h % r.colors.length]), g.itemStyle = I, b === "bar" && (g.barMinHeight === void 0 && (g.barMinHeight = 2), a !== "card" && (g.barWidth === void 0 && (g.barWidth = c.barWidth), g.barMaxWidth === void 0 && (g.barMaxWidth = c.barMaxWidth), g.barCategoryGap === void 0 && (g.barCategoryGap = c.barCategoryGap))), g;
27326
27326
  })), Yi(o, ["title"], {}), Yi(o, ["title", "show"], !1), o.title = {
27327
- ...Ia(o.title) ? o.title : {},
27327
+ ...Ca(o.title) ? o.title : {},
27328
27328
  show: !1,
27329
27329
  text: ""
27330
27330
  }, Yi(o, ["legend", "textStyle", "color"], r.legendTextColor), Yi(o, ["legend", "type"], "scroll"), Yi(o, ["tooltip", "backgroundColor"], r.tooltipBg), Yi(o, ["tooltip", "textStyle", "color"], r.tooltipTextColor), o.xAxis !== void 0 && (o.xAxis = ix(o.xAxis, r)), o.yAxis !== void 0 && (o.yAxis = ix(o.yAxis, r)), o.series !== void 0 && (o.series = DK(o.series), o.series = jB(o.series)), i.optionPatch = BK(
@@ -30094,7 +30094,7 @@ const pY = ["data-dash-theme", "data-dash-viewport"], gY = {
30094
30094
  pe("", !0)
30095
30095
  ], 2),
30096
30096
  v("div", vY, [
30097
- Pa(g.$slots, "default", {}, void 0, !0)
30097
+ wa(g.$slots, "default", {}, void 0, !0)
30098
30098
  ])
30099
30099
  ], 10, pY));
30100
30100
  }
@@ -30534,7 +30534,7 @@ const SY = ["title"], MY = /* @__PURE__ */ tn({
30534
30534
  visibility: s.value ? "visible" : "hidden"
30535
30535
  }
30536
30536
  }), [
30537
- Pa(b.$slots, "default")
30537
+ wa(b.$slots, "default")
30538
30538
  ], 16)
30539
30539
  ], 8, ["to"])) : pe("", !0);
30540
30540
  };
@@ -30601,7 +30601,7 @@ const SY = ["title"], MY = /* @__PURE__ */ tn({
30601
30601
  onFocusin: S,
30602
30602
  onFocusout: C
30603
30603
  }), [
30604
- Pa(M.$slots, "default", {}, void 0, !0)
30604
+ wa(M.$slots, "default", {}, void 0, !0)
30605
30605
  ], 16, RY),
30606
30606
  (T(), bt(no, { to: "body" }, [
30607
30607
  a.value ? (T(), L("div", {
@@ -32338,7 +32338,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
32338
32338
  Y
32339
32339
  ), fe = Hi(
32340
32340
  On(u)
32341
- ), we = l ? Lr(u, l, fe, Qt.value) : !1, Ye = !se.value && !we && (F || z || H || ws(m)) ? Y : void 0, Xe = ((K0 = b.value) == null ? void 0 : K0.version) === 4 ? Sr(m, b.value, Qt.value) : !1, yt = l ? Sr(m, l, Qt.value) : !1, St = ((U0 = b.value) == null ? void 0 : U0.version) === 4 && l ? Sa(m, b.value, l) : !0, nt = ((Y0 = b.value) == null ? void 0 : Y0.version) === 4 ? Ur(m, b.value, Qt.value) : !1, lt = Ye && Ur(
32341
+ ), we = l ? Lr(u, l, fe, Qt.value) : !1, Ye = !se.value && !we && (F || z || H || ws(m)) ? Y : void 0, Xe = ((K0 = b.value) == null ? void 0 : K0.version) === 4 ? Sr(m, b.value, Qt.value) : !1, yt = l ? Sr(m, l, Qt.value) : !1, St = ((U0 = b.value) == null ? void 0 : U0.version) === 4 && l ? Ma(m, b.value, l) : !0, nt = ((Y0 = b.value) == null ? void 0 : Y0.version) === 4 ? Ur(m, b.value, Qt.value) : !1, lt = Ye && Ur(
32342
32342
  m,
32343
32343
  Ye,
32344
32344
  Qt.value
@@ -32350,16 +32350,16 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
32350
32350
  ) : Ye, Qe = !!(Ye && lt && xe(
32351
32351
  lt,
32352
32352
  m
32353
- )), Ct = !!(Ye && lt !== Ye), sn = ((J0 = b.value) == null ? void 0 : J0.version) === 4 && !nt && (se.value || !Qe && !z && !F && (!yt || Xe && St)), Ta = we ? u : m, es = l && Ur(
32354
- Ta,
32353
+ )), Ct = !!(Ye && lt !== Ye), sn = ((J0 = b.value) == null ? void 0 : J0.version) === 4 && !nt && (se.value || !Qe && !z && !F && (!yt || Xe && St)), Ra = we ? u : m, es = l && Ur(
32354
+ Ra,
32355
32355
  l,
32356
32356
  Qt.value
32357
32357
  ) ? rr(
32358
32358
  l,
32359
32359
  A,
32360
- Ta,
32360
+ Ra,
32361
32361
  Qt.value
32362
- ) : l, Ra = !!(l && es !== l), ts = Qe ? A : Ra && !Ct ? es : lt || es, Ld = al(m), Lm = Is(m), Ly = !!H && !se.value && !we, $y = sn ? "draft" : Qe ? "fallbackFrameCoverage" : Ra && !Ct ? "persistedCorrected" : lt ? "sourcePreferred" : es ? "persisted" : "fallback", bl = sn ? b.value : ts;
32362
+ ) : l, Da = !!(l && es !== l), ts = Qe ? A : Da && !Ct ? es : lt || es, Ld = al(m), Lm = Is(m), Ly = !!H && !se.value && !we, $y = sn ? "draft" : Qe ? "fallbackFrameCoverage" : Da && !Ct ? "persistedCorrected" : lt ? "sourcePreferred" : es ? "persisted" : "fallback", bl = sn ? b.value : ts;
32363
32363
  if (!W.value && z && !we) return w;
32364
32364
  const $m = W.value && se.value && ((X0 = b.value) == null ? void 0 : X0.version) === 4, j0 = W.value && se.value && bl === b.value, Kt = bl === w ? w : j0 ? bl ?? w : bl ? uI(bl, {
32365
32365
  fallbackTree: Y,
@@ -32388,7 +32388,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
32388
32388
  sourcePreferredTree: !!Ye,
32389
32389
  sourcePreferredCorrected: Ct,
32390
32390
  finalFrameCoverageFallback: Ny,
32391
- persistedCorrected: Ra
32391
+ persistedCorrected: Da
32392
32392
  }
32393
32393
  };
32394
32394
  if (!W.value) return Cc;
@@ -32504,7 +32504,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
32504
32504
  const tr = q(() => {
32505
32505
  const l = ie.value;
32506
32506
  return !Tt.value || !l ? 1 : pt.value / Math.max(1, l.width);
32507
- }), xa = q(() => {
32507
+ }), _a = q(() => {
32508
32508
  if (!Tt.value) return 0;
32509
32509
  const l = ie.value, u = tr.value;
32510
32510
  let m = 0;
@@ -32529,7 +32529,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
32529
32529
  layoutHeight: w,
32530
32530
  sourceFrameHeight: l.height,
32531
32531
  sourceScale: tr.value,
32532
- renderedContentHeight: xa.value,
32532
+ renderedContentHeight: _a.value,
32533
32533
  fallbackHeight: un.value * qn.value,
32534
32534
  configMode: !1,
32535
32535
  sourceBoxSafetyFallbackActive: !1
@@ -32539,14 +32539,14 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
32539
32539
  layoutHeight: 0,
32540
32540
  sourceFrameHeight: l.height,
32541
32541
  sourceScale: tr.value,
32542
- renderedContentHeight: xa.value,
32542
+ renderedContentHeight: _a.value,
32543
32543
  fallbackHeight: un.value * qn.value,
32544
32544
  configMode: W.value,
32545
32545
  sourceBoxSafetyFallbackActive: !1
32546
32546
  }) : un.value * qn.value;
32547
32547
  }), nr = q(
32548
32548
  () => YZ
32549
- ), Sn = q(() => nr.value ? Wn(k.value.width / Math.max(1, pt.value), 0.1, 1) : 1), _a = q(() => {
32549
+ ), Sn = q(() => nr.value ? Wn(k.value.width / Math.max(1, pt.value), 0.1, 1) : 1), Sa = q(() => {
32550
32550
  if (Tt.value)
32551
32551
  return Gr.value;
32552
32552
  }), Xa = q(() => pt.value * Sn.value), gi = q(() => Gr.value * Sn.value), dr = q(() => !nr.value && pt.value > k.value.width + 1), so = q(() => ({
@@ -32561,7 +32561,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
32561
32561
  }), Kr = q(() => {
32562
32562
  if (!Id.value) return ut.value;
32563
32563
  const l = vs.value;
32564
- return ut.value.filter((u) => Yf(u) || Ma(u, l.top, l.bottom));
32564
+ return ut.value.filter((u) => Yf(u) || Aa(u, l.top, l.bottom));
32565
32565
  }), lo = q(
32566
32566
  () => W.value && $.value !== void 0 && fl(g.value) !== $.value
32567
32567
  ), Qa = iw();
@@ -32810,7 +32810,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
32810
32810
  const A = Sr(l, u, w), B = $i(l, u, w), R = uo(u, m), H = jo(l, m, u);
32811
32811
  return u.version === 4 && A && yr(l, u, w) && !Wu(l, u) && !Ni(u) && !H && (!R || B);
32812
32812
  }
32813
- function Sa(l, u, m) {
32813
+ function Ma(l, u, m) {
32814
32814
  const w = new Map(u.nodes.filter((R) => !R.parentId).map((R) => [String(R.i), R])), A = new Map(m.nodes.filter((R) => !R.parentId).map((R) => [String(R.i), R])), B = l.filter((R) => en(R, A.get(R.id)));
32815
32815
  return B.length === 0 ? !0 : B.every((R) => {
32816
32816
  var F, fe;
@@ -33203,23 +33203,23 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
33203
33203
  if (yt.length < 4 || fe.length < 2) return l;
33204
33204
  const St = Math.max(1, Math.ceil(m.height * w / A)), nt = Math.max(1, Math.round(Pv / Math.max(1, A))), lt = new Set(yt.map((Kt) => Kt.node.i)), Qe = new Set(fe.map((Kt) => Kt.node.i)), Ct = R.filter((Kt) => !lt.has(Kt.node.i) && !Qe.has(Kt.node.i) && !F.has(Kt.node.i));
33205
33205
  let sn = 0;
33206
- const Ta = [], es = fo(z);
33206
+ const Ra = [], es = fo(z);
33207
33207
  z.forEach((Kt) => {
33208
- Ta.push(xs(Kt.node, 0, sn, gt, es));
33208
+ Ra.push(xs(Kt.node, 0, sn, gt, es));
33209
33209
  }), z.length > 0 && (sn += es + nt);
33210
- const Ra = x(yt), ts = J(
33210
+ const Da = x(yt), ts = J(
33211
33211
  yt,
33212
33212
  sn,
33213
- Ra,
33213
+ Da,
33214
33214
  yt.length,
33215
33215
  nt
33216
33216
  );
33217
- Ta.push(...ts.nodes), sn = ts.cursorY;
33217
+ Ra.push(...ts.nodes), sn = ts.cursorY;
33218
33218
  const Ld = _(fe, St), Lm = J(fe, sn, Ld, 2, nt);
33219
- Ta.push(...Lm.nodes), sn = Lm.cursorY;
33219
+ Ra.push(...Lm.nodes), sn = Lm.cursorY;
33220
33220
  const Ly = O(Ct), $y = J(Ct, sn, Ly, 2, nt);
33221
- Ta.push(...$y.nodes);
33222
- const bl = new Map(Ta.map((Kt) => [Kt.i, Kt])), $m = l.map((Kt) => bl.get(Kt.i) || Kt);
33221
+ Ra.push(...$y.nodes);
33222
+ const bl = new Map(Ra.map((Kt) => [Kt.i, Kt])), $m = l.map((Kt) => bl.get(Kt.i) || Kt);
33223
33223
  return Rt(
33224
33224
  l,
33225
33225
  $m,
@@ -33239,8 +33239,8 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
33239
33239
  if (F.length === 0) return l;
33240
33240
  const fe = z.reduce((Qe, Ct, sn) => Qe + (F.includes(sn) ? 0 : Math.max(Ct, Y[sn])), 0), we = H * Math.max(0, R.length - 1), Ye = Math.max(R.length, A - we), Xe = Math.max(0, Ye - fe), yt = F.reduce((Qe, Ct) => Qe + Y[Ct], 0), St = z.map((Qe, Ct) => {
33241
33241
  if (!F.includes(Ct)) return Math.max(Qe, Y[Ct]);
33242
- const sn = Y[Ct], Ta = yt > 0 ? Math.round(Xe * sn / yt) : Math.floor(Xe / Math.max(1, F.length));
33243
- return Math.max(Qe, Ta);
33242
+ const sn = Y[Ct], Ra = yt > 0 ? Math.round(Xe * sn / yt) : Math.floor(Xe / Math.max(1, F.length));
33243
+ return Math.max(Qe, Ra);
33244
33244
  });
33245
33245
  let nt = Ye - St.reduce((Qe, Ct) => Qe + Ct, 0);
33246
33246
  for (; nt !== 0 && St.length > 0; ) {
@@ -33253,16 +33253,16 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
33253
33253
  }
33254
33254
  let lt = 0;
33255
33255
  return R.flatMap((Qe, Ct) => {
33256
- const sn = Math.max(1, St[Ct]), Ta = Math.max(1, ...Qe.map((Ra) => ye(Ra.h))), es = Qe.map((Ra) => {
33256
+ const sn = Math.max(1, St[Ct]), Ra = Math.max(1, ...Qe.map((Da) => ye(Da.h))), es = Qe.map((Da) => {
33257
33257
  var Ld;
33258
- const ts = Math.max(1, Math.round(ye(Ra.h) / Ta * sn));
33258
+ const ts = Math.max(1, Math.round(ye(Da.h) / Ra * sn));
33259
33259
  return {
33260
- ...Ra,
33260
+ ...Da,
33261
33261
  y: lt,
33262
33262
  h: ts,
33263
- minH: Math.min(ts, ye(Ra.minH ?? 1)),
33264
- maxH: Math.max(ts, ye(Ra.maxH ?? Hn)),
33265
- children: (Ld = Ra.children) != null && Ld.length ? ki(Ra.children, ts) : Ra.children
33263
+ minH: Math.min(ts, ye(Da.minH ?? 1)),
33264
+ maxH: Math.max(ts, ye(Da.maxH ?? Hn)),
33265
+ children: (Ld = Da.children) != null && Ld.length ? ki(Da.children, ts) : Da.children
33266
33266
  };
33267
33267
  });
33268
33268
  return lt += sn + H, es;
@@ -33826,7 +33826,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
33826
33826
  const u = Dr(l, "fullValidationRole");
33827
33827
  return ((m = l.meta) == null ? void 0 : m.workbenchOrganizationCard) === !0 || u === "banner" || u === "group" || mI(l);
33828
33828
  }
33829
- function Ma(l, u, m) {
33829
+ function Aa(l, u, m) {
33830
33830
  const w = ie.value, A = En(l) ? Dn(l) : null, B = tr.value, R = w && A ? 0 : Gu(l), H = w && A ? (A.y - w.top) * B : l.layout.y * un.value + R, Y = w && A ? Ss(A) : 0;
33831
33831
  return (w && A ? H + Y + A.height * B : (l.layout.y + l.layout.h) * un.value + R) >= u && H <= m;
33832
33832
  }
@@ -33929,11 +33929,11 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
33929
33929
  function Ln(l) {
33930
33930
  W.value && (Ge.value = l), h("focusBlock", l);
33931
33931
  }
33932
- function Aa(l) {
33932
+ function Ba(l) {
33933
33933
  return !hI(l);
33934
33934
  }
33935
33935
  function Zf(l) {
33936
- return o.canConfigureCard && Aa(l);
33936
+ return o.canConfigureCard && Ba(l);
33937
33937
  }
33938
33938
  function $g(l) {
33939
33939
  h("metricDetail", { blockId: l.id, block: l });
@@ -33942,7 +33942,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
33942
33942
  return l instanceof Error && l.message.trim() ? l.message : typeof l == "string" && l.trim() ? l.trim() : u;
33943
33943
  }
33944
33944
  function ll(l) {
33945
- if (!Aa(l)) return;
33945
+ if (!Ba(l)) return;
33946
33946
  const u = l.title || "该卡片";
33947
33947
  if (W.value) {
33948
33948
  nI.confirm({
@@ -34218,7 +34218,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
34218
34218
  const F = z.length > 0 && z.every((Xe) => A.has(String(Xe.i))), fe = F ? a : Math.max(...z.map((Xe) => ye(Xe.h)));
34219
34219
  let we = 0;
34220
34220
  const Ye = z.map((Xe, yt) => {
34221
- const St = gt - we, nt = z.length - yt, lt = Math.max(1, ye(Xe.w)), Qe = F ? Math.floor(gt / Math.max(1, z.length)) : 0, Ct = F ? gt % Math.max(1, z.length) : 0, sn = F ? yt === z.length - 1 ? St : Math.max(1, Qe + (yt < Ct ? 1 : 0)) : yt === z.length - 1 ? St : Math.max(1, Math.min(St - (nt - 1), lt)), Ta = {
34221
+ const St = gt - we, nt = z.length - yt, lt = Math.max(1, ye(Xe.w)), Qe = F ? Math.floor(gt / Math.max(1, z.length)) : 0, Ct = F ? gt % Math.max(1, z.length) : 0, sn = F ? yt === z.length - 1 ? St : Math.max(1, Qe + (yt < Ct ? 1 : 0)) : yt === z.length - 1 ? St : Math.max(1, Math.min(St - (nt - 1), lt)), Ra = {
34222
34222
  ...Xe,
34223
34223
  x: we,
34224
34224
  y: Y,
@@ -34229,7 +34229,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
34229
34229
  maxW: Math.max(sn, ye(Xe.maxW ?? gt)),
34230
34230
  maxH: Math.max(fe, ye(Xe.maxH ?? Hn))
34231
34231
  };
34232
- return we += sn, F ? ul(Ta) : Ta;
34232
+ return we += sn, F ? ul(Ra) : Ra;
34233
34233
  });
34234
34234
  return Y += fe + Sx, Ye;
34235
34235
  });
@@ -34414,7 +34414,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
34414
34414
  }
34415
34415
  };
34416
34416
  }
34417
- function Ba(l, u = !1) {
34417
+ function Ta(l, u = !1) {
34418
34418
  const m = u ? sm(l) : l, w = pf(m, {
34419
34419
  ...o.layoutConfig,
34420
34420
  cols: gt,
@@ -34441,7 +34441,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
34441
34441
  };
34442
34442
  }
34443
34443
  function qa(l, u = W.value) {
34444
- return l.map((m) => Ba(m, u));
34444
+ return l.map((m) => Ta(m, u));
34445
34445
  }
34446
34446
  function Ug(l, u = W.value) {
34447
34447
  if (!u) return qa(l, u);
@@ -34453,7 +34453,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
34453
34453
  ), B = Fc(w, A);
34454
34454
  ot = { frame: w, rowHeightRatio: B };
34455
34455
  try {
34456
- return l.map((R) => Ba(
34456
+ return l.map((R) => Ta(
34457
34457
  R,
34458
34458
  u
34459
34459
  ));
@@ -34470,7 +34470,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
34470
34470
  ), A = Fc(m, w);
34471
34471
  ot = { frame: m, rowHeightRatio: A }, At = !0;
34472
34472
  try {
34473
- return l.map((B) => Ba(
34473
+ return l.map((B) => Ta(
34474
34474
  lm(B),
34475
34475
  !0
34476
34476
  ));
@@ -34925,7 +34925,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
34925
34925
  function ym(l) {
34926
34926
  if (!W.value) return 0;
34927
34927
  let u = 0;
34928
- return Aa(l) && (u += 1), Ts(l) && (u += 1), u;
34928
+ return Ba(l) && (u += 1), Ts(l) && (u += 1), u;
34929
34929
  }
34930
34930
  function gl(l) {
34931
34931
  return [
@@ -34941,7 +34941,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
34941
34941
  return ft(l) ? `${gl(0)} top-1` : "right-px top-px";
34942
34942
  }
34943
34943
  function ac(l) {
34944
- return ft(l) ? `${gl(Aa(l) ? 1 : 0)} top-1` : "right-5 top-px";
34944
+ return ft(l) ? `${gl(Ba(l) ? 1 : 0)} top-1` : "right-5 top-px";
34945
34945
  }
34946
34946
  function ly(l) {
34947
34947
  return `${gl(ym(l))} top-1`;
@@ -35235,7 +35235,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
35235
35235
  return W.value || !o.layoutBoundary || !Je.value.has(l.id) ? u : { ...u, y: Math.max(o.layoutBoundary.minY, u.y) };
35236
35236
  }
35237
35237
  function fc(l, u, m) {
35238
- const w = Ba(l, !0), A = m.filter((B) => B.id !== l.id).map((B) => Ba(B, !0).layout);
35238
+ const w = Ta(l, !0), A = m.filter((B) => B.id !== l.id).map((B) => Ta(B, !0).layout);
35239
35239
  return ID(
35240
35240
  {
35241
35241
  ...w.layout,
@@ -35249,7 +35249,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
35249
35249
  }
35250
35250
  function vy(l, u, m) {
35251
35251
  if (ft(l)) return null;
35252
- const w = Ba(l, !0), A = m.filter((B) => B.id !== l.id).map((B) => Ba(B, !0).layout);
35252
+ const w = Ta(l, !0), A = m.filter((B) => B.id !== l.id).map((B) => Ta(B, !0).layout);
35253
35253
  return wD(
35254
35254
  {
35255
35255
  ...w.layout,
@@ -35323,7 +35323,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
35323
35323
  function Bm(l) {
35324
35324
  const u = [], m = _m(), w = qa(Nr(l), !0);
35325
35325
  return (w.some(Nf) ? w : ti(w)).map((R) => {
35326
- const H = Ba(R, !0);
35326
+ const H = Ta(R, !0);
35327
35327
  if (mc(H, m))
35328
35328
  return u.push(H.layout), bh(H);
35329
35329
  const Y = CD(
@@ -35359,7 +35359,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
35359
35359
  function hc(l, u, m) {
35360
35360
  if (!W.value || l.button !== 0 || m === "move" && Iy(l.target)) return;
35361
35361
  l.preventDefault(), l.stopPropagation();
35362
- const w = Ba(u, !0), A = l.currentTarget instanceof HTMLElement ? l.currentTarget : null;
35362
+ const w = Ta(u, !0), A = l.currentTarget instanceof HTMLElement ? l.currentTarget : null;
35363
35363
  try {
35364
35364
  A == null || A.setPointerCapture(l.pointerId);
35365
35365
  } catch {
@@ -35404,7 +35404,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
35404
35404
  h: Y.preview.h
35405
35405
  }, g.value = w.map((z) => {
35406
35406
  if (z.id !== l.blockId) return z;
35407
- const F = Ba(z, !0);
35407
+ const F = Ta(z, !0);
35408
35408
  return {
35409
35409
  ...z,
35410
35410
  layout: {
@@ -35420,7 +35420,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
35420
35420
  }
35421
35421
  g.value = w.map((A) => {
35422
35422
  if (A.id !== l.blockId) return A;
35423
- const B = Ba(A, !0);
35423
+ const B = Ta(A, !0);
35424
35424
  if (l.mode === "resize") {
35425
35425
  const F = or(l.startW + u, l.minW, Math.min(l.maxW, gt - l.startX)), fe = or(l.startH + m, l.minH, Math.min(l.maxH, tt.value - l.startY)), we = fc(A, { i: A.id, x: l.startX, y: l.startY, w: F, h: fe }, w);
35426
35426
  return {
@@ -35450,7 +35450,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
35450
35450
  g.value = g.value.map((m) => {
35451
35451
  const w = u.get(m.id);
35452
35452
  if (!w) return m;
35453
- const A = Ba(m, !0);
35453
+ const A = Ta(m, !0);
35454
35454
  return {
35455
35455
  ...m,
35456
35456
  layout: {
@@ -36167,7 +36167,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
36167
36167
  "layout-tree": Cn.value,
36168
36168
  "is-config-mode": W.value,
36169
36169
  "canvas-width": pt.value,
36170
- "canvas-min-height": _a.value,
36170
+ "canvas-min-height": Sa.value,
36171
36171
  "selected-block-id": e.selectedBlockId,
36172
36172
  "selected-nested-block": e.selectedNestedBlock,
36173
36173
  "role-id": e.roleId,
@@ -36175,7 +36175,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
36175
36175
  "card-style-for-block": Vu,
36176
36176
  "card-density-for-block": mo,
36177
36177
  "can-edit-data": Ts,
36178
- "can-remove": Aa,
36178
+ "can-remove": Ba,
36179
36179
  "can-configure": Zf,
36180
36180
  "renderer-host-bridge": Ei.value,
36181
36181
  "can-view-metric-detail": U(Xl),
@@ -36220,7 +36220,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
36220
36220
  "layout-tree": Cn.value,
36221
36221
  "is-config-mode": W.value,
36222
36222
  "canvas-width": pt.value,
36223
- "canvas-min-height": _a.value,
36223
+ "canvas-min-height": Sa.value,
36224
36224
  "selected-block-id": e.selectedBlockId,
36225
36225
  "selected-nested-block": e.selectedNestedBlock,
36226
36226
  "role-id": e.roleId,
@@ -36228,7 +36228,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
36228
36228
  "card-style-for-block": Vu,
36229
36229
  "card-density-for-block": mo,
36230
36230
  "can-edit-data": Ts,
36231
- "can-remove": Aa,
36231
+ "can-remove": Ba,
36232
36232
  "can-configure": Zf,
36233
36233
  "renderer-host-bridge": Ei.value,
36234
36234
  "can-view-metric-detail": U(Xl),
@@ -36362,7 +36362,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
36362
36362
  }, [
36363
36363
  Ke(U(fR), { class: "h-3 w-3" })
36364
36364
  ], 42, lZ)) : pe("", !0),
36365
- W.value && Aa(m) ? (T(), L("button", {
36365
+ W.value && Ba(m) ? (T(), L("button", {
36366
36366
  key: 1,
36367
36367
  type: "button",
36368
36368
  class: ht([
@@ -36749,8 +36749,8 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
36749
36749
  workspaceId: r.workspaceId,
36750
36750
  runtimePresetResourceId: r.runtimePresetResourceId
36751
36751
  })), k = q(() => [
36752
- ...I.value.displayBlocks.filter(Da),
36753
- ...r.blocks.filter((Q) => !Da(Q))
36752
+ ...I.value.displayBlocks.filter(Pa),
36753
+ ...r.blocks.filter((Q) => !Pa(Q))
36754
36754
  ]), S = q(() => Ie({
36755
36755
  blocks: r.blocks,
36756
36756
  activeTabId: i.value,
@@ -36972,13 +36972,13 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
36972
36972
  !f.value && !I.value.groupingEnabled || (i.value = Q);
36973
36973
  }
36974
36974
  function ne(Q) {
36975
- const { blocks: P, layoutConfig: W, done: Ne, visualConfig: He } = Q, It = new Map(P.map((_e) => [_e.id, _e])), Se = new Set(r.blocks.filter((_e) => Da(_e) && !Xc(_e)).map((_e) => _e.id)), kt = I.value.displayBlocks.filter((_e) => Da(_e) && !It.has(_e.id)).map((_e) => ({
36975
+ const { blocks: P, layoutConfig: W, done: Ne, visualConfig: He } = Q, It = new Map(P.map((_e) => [_e.id, _e])), Se = new Set(r.blocks.filter((_e) => Pa(_e) && !Xc(_e)).map((_e) => _e.id)), kt = I.value.displayBlocks.filter((_e) => Pa(_e) && !It.has(_e.id)).map((_e) => ({
36976
36976
  ..._e,
36977
36977
  layout: { ..._e.layout, i: _e.id },
36978
36978
  meta: { ..._e.meta, virtualWorkbenchOrganizationCard: void 0, persistedFromShowcaseOrganization: !0, workbenchOrganizationHidden: !0 }
36979
36979
  })), Ee = I.value.organizationBlockIds.map((_e) => It.get(_e)).filter((_e) => !!_e).filter((_e) => !Xc(_e)).map((_e) => ({ ..._e, meta: { ..._e.meta, virtualWorkbenchOrganizationCard: void 0, persistedFromShowcaseOrganization: !0 } }));
36980
36980
  if (I.value.layoutScope === "all") {
36981
- const _e = new Map(P.filter((Je) => !Da(Je)).map((Je) => [Je.id, Je])), We = new Map(r.blocks.filter((Je) => !Da(Je)).map((Je) => [Je.id, Je])), re = [..._e.values()].map((Je) => {
36981
+ const _e = new Map(P.filter((Je) => !Pa(Je)).map((Je) => [Je.id, Je])), We = new Map(r.blocks.filter((Je) => !Pa(Je)).map((Je) => [Je.id, Je])), re = [..._e.values()].map((Je) => {
36982
36982
  const Oe = We.get(Je.id);
36983
36983
  return Oe ? {
36984
36984
  ...Oe,
@@ -36992,12 +36992,12 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
36992
36992
  }
36993
36993
  } : Je;
36994
36994
  }), Z = r.blocks.filter(
36995
- (Je) => Da(Je) && !Xc(Je) && !It.has(Je.id) && !I.value.organizationBlockIds.includes(Je.id)
36995
+ (Je) => Pa(Je) && !Xc(Je) && !It.has(Je.id) && !I.value.organizationBlockIds.includes(Je.id)
36996
36996
  );
36997
36997
  a("saveCanvasConfig", { blocks: [...Ee, ...kt, ...Z, ...re], layoutConfig: W, done: Ne, visualConfig: He });
36998
36998
  return;
36999
36999
  }
37000
- const st = new Set(I.value.activeBlockIds), qe = r.blocks.filter((_e) => !Da(_e)).map((_e) => {
37000
+ const st = new Set(I.value.activeBlockIds), qe = r.blocks.filter((_e) => !Pa(_e)).map((_e) => {
37001
37001
  if (!st.has(_e.id)) return _e;
37002
37002
  const We = It.get(_e.id);
37003
37003
  return We ? Pe(
@@ -37007,7 +37007,7 @@ const iQ = { class: "relative hidden shrink-0 overflow-visible transition-[heigh
37007
37007
  I.value.contentStartY,
37008
37008
  I.value.categoryGroupStartYByTabId[I.value.activeTab.id] ?? I.value.contentStartY
37009
37009
  ) : null;
37010
- }).filter((_e) => !!_e), Ue = r.blocks.filter((_e) => Da(_e) && !Xc(_e) && !It.has(_e.id)), tt = [
37010
+ }).filter((_e) => !!_e), Ue = r.blocks.filter((_e) => Pa(_e) && !Xc(_e) && !It.has(_e.id)), tt = [
37011
37011
  ...Ee,
37012
37012
  ...kt,
37013
37013
  ...Ue.filter((_e) => !Se.has(_e.id) || !I.value.organizationBlockIds.includes(_e.id))
@@ -38149,14 +38149,14 @@ ${r.turns.map(Ve).join(`
38149
38149
  s.value ? {
38150
38150
  name: "topbar-leading",
38151
38151
  fn: Fn(() => [
38152
- Pa(re.$slots, "topbar-leading")
38152
+ wa(re.$slots, "topbar-leading")
38153
38153
  ]),
38154
38154
  key: "0"
38155
38155
  } : void 0,
38156
38156
  d.value ? {
38157
38157
  name: "utility-header-extra",
38158
38158
  fn: Fn(() => [
38159
- Pa(re.$slots, "utility-header-extra")
38159
+ wa(re.$slots, "utility-header-extra")
38160
38160
  ]),
38161
38161
  key: "1"
38162
38162
  } : void 0
@@ -39891,7 +39891,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
39891
39891
  }
39892
39892
  }
39893
39893
  Be(), typeof window < "u" && window.addEventListener("message", Vf);
39894
- const he = K((n == null ? void 0 : n.lastPrompt) || ""), G = K(0), Re = K(!1), ee = K(null), Le = K(null), ce = K(null), Q = K(!1), P = K(null), W = K(null), Ne = K(null), He = K(Qne(n == null ? void 0 : n.studioPanelWidth, n, g)), It = K(!!(n != null && n.studioPanelCollapsed)), Se = q(() => !!b.workspaceId), kt = q(() => !r.fdeMode && Se.value && !!r.workspaceId), Ee = K(""), st = K(!1), qe = K(!1), Ue = K(null), tt = K(""), _e = K(!1), We = K(320), re = K(240), Z = K(f.applicationId), Je = K([]), Oe = K(!1), Me = K(!1), ut = K(""), gn = K([]), Bn = K(!1), yn = K(""), dn = K([]), ct = K(!1), Qt = K(""), kn = K([]), Cn = K(!1), qn = K(""), Yt = K(f.dataRange), nn = K(f.metricId), Xn = K(f.modelServiceId), on = K(f.listId), rn = K(!1), Tn = K(!1), Tt = K(""), le = K([]), ie = K({ version: "1.0", filters: [] }), Ce = K("config"), rt = K(""), pt = K(""), Ot = K(""), Wt = K(!1), Ht = K("cardData"), Zt = K(!1), un = K(null), pa = K(null), Qn = K(!1), tr = K(!1), xa = K(""), Gr = K([]), nr = K([]), Sn = K({}), _a = K(1), Xa = K(10), gi = K(0), dr = K(null), so = ["10", "20", "50"], Id = {
39894
+ const he = K((n == null ? void 0 : n.lastPrompt) || ""), G = K(0), Re = K(!1), ee = K(null), Le = K(null), ce = K(null), Q = K(!1), P = K(null), W = K(null), Ne = K(null), He = K(Qne(n == null ? void 0 : n.studioPanelWidth, n, g)), It = K(!!(n != null && n.studioPanelCollapsed)), Se = q(() => !!b.workspaceId), kt = q(() => !r.fdeMode && Se.value && !!r.workspaceId), Ee = K(""), st = K(!1), qe = K(!1), Ue = K(null), tt = K(""), _e = K(!1), We = K(320), re = K(240), Z = K(f.applicationId), Je = K([]), Oe = K(!1), Me = K(!1), ut = K(""), gn = K([]), Bn = K(!1), yn = K(""), dn = K([]), ct = K(!1), Qt = K(""), kn = K([]), Cn = K(!1), qn = K(""), Yt = K(f.dataRange), nn = K(f.metricId), Xn = K(f.modelServiceId), on = K(f.listId), rn = K(!1), Tn = K(!1), Tt = K(""), le = K([]), ie = K({ version: "1.0", filters: [] }), Ce = K("config"), rt = K(""), pt = K(""), Ot = K(""), Wt = K(!1), Ht = K("cardData"), Zt = K(!1), un = K(null), pa = K(null), Qn = K(!1), tr = K(!1), _a = K(""), Gr = K([]), nr = K([]), Sn = K({}), Sa = K(1), Xa = K(10), gi = K(0), dr = K(null), so = ["10", "20", "50"], Id = {
39895
39895
  items_per_page: "条/页"
39896
39896
  }, ys = K(null), vs = K(0), Kr = K(0), lo = K(typeof window > "u" ? 0 : window.innerHeight), Qa = q(() => Ee.value ? iie : oie), nl = q(() => r.fdeMode && (qe.value || !!Ee.value)), Ei = q(() => Math.max(
39897
39897
  vs.value || qv,
@@ -39915,7 +39915,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
39915
39915
  return p + (Number.isFinite(D) ? D : jv);
39916
39916
  }, 0)), Oi = q(() => Cd.value), gr = q(() => Gr.value.map((p, y) => ({
39917
39917
  ...p,
39918
- __rowKey: `${_a.value}-${y}`
39918
+ __rowKey: `${Sa.value}-${y}`
39919
39919
  }))), Ho = q(() => gr.value.length * lie), Er = q(() => Math.min(
39920
39920
  sie,
39921
39921
  Math.max(160, (lo.value || 0) - 260)
@@ -39934,8 +39934,8 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
39934
39934
  const p = dr.value;
39935
39935
  return p ? `metric-detail::${p.bindingId || p.cardId || p.metricName}` : "metric-detail";
39936
39936
  }), xd = q(() => ({
39937
- emptyText: tr.value ? "加载中" : xa.value ? "明细查询失败,暂无可展示数据" : "暂无明细数据"
39938
- })), $a = q(() => tr.value && Oi.value.length === 0 && !xa.value);
39937
+ emptyText: tr.value ? "加载中" : _a.value ? "明细查询失败,暂无可展示数据" : "暂无明细数据"
39938
+ })), $a = q(() => tr.value && Oi.value.length === 0 && !_a.value);
39939
39939
  let En = null;
39940
39940
  const Nu = q(() => Ha(Ue.value)), bs = q(() => !!Nu.value), vi = q(() => p_(
39941
39941
  rm(Ue.value)
@@ -39991,7 +39991,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
39991
39991
  var ge, Ae;
39992
39992
  return {
39993
39993
  id: j.id,
39994
- title: Aa(j),
39994
+ title: Ba(j),
39995
39995
  bindingId: Ha(j),
39996
39996
  rendererKey: (ge = j.renderer) == null ? void 0 : ge.rendererKey,
39997
39997
  dataShape: typeof ((Ae = j.meta) == null ? void 0 : Ae.dataShape) == "string" ? j.meta.dataShape : void 0
@@ -40011,7 +40011,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
40011
40011
  Bo(
40012
40012
  h.cardPresetSizeConfig || pu
40013
40013
  )
40014
- ), Sa = K(
40014
+ ), Ma = K(
40015
40015
  af(h.canvasGapPreset || Kh)
40016
40016
  ), Ur = K(null), rr = K(null), vr = K(!1), ar = K(!1), Yr = K(!1), cr = K(null), Cs = K(!1), Mr = K(null), jn = K(null), br = K({}), co = K(0), Ar = K(null), ir = K(null);
40017
40017
  let Jr = null;
@@ -40022,7 +40022,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
40022
40022
  return r.planning || r.saving || !!(p && !d.has(p.status));
40023
40023
  }), Mn = q(
40024
40024
  () => O6($i.value, zo.value[$i.value])
40025
- ), zn = q(() => Mr.value || r.layoutConfig), wr = q(() => PD(Sa.value)), Wa = typeof window > "u" ? new URLSearchParams() : new URLSearchParams(window.location.search), $r = Wa.get("workbenchKeepAiPanel") === "1", _s = Wa.get("workbenchCanvasFocus") === "1", Vn = q(() => Fv(r.snapshot)), Za = q(() => Yne(r.snapshot)), Ci = q(
40025
+ ), zn = q(() => Mr.value || r.layoutConfig), wr = q(() => PD(Ma.value)), Wa = typeof window > "u" ? new URLSearchParams() : new URLSearchParams(window.location.search), $r = Wa.get("workbenchKeepAiPanel") === "1", _s = Wa.get("workbenchCanvasFocus") === "1", Vn = q(() => Fv(r.snapshot)), Za = q(() => Yne(r.snapshot)), Ci = q(
40026
40026
  () => Jne(fo.value, {
40027
40027
  sourceCanvasWidth: Za.value,
40028
40028
  studioPanelWidth: He.value
@@ -40115,7 +40115,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
40115
40115
  () => r.workspaceId,
40116
40116
  (p) => {
40117
40117
  const y = Gy(p);
40118
- r.snapshot ? Wu(r.snapshot) : (Ni.value = !!y.cardStyleConfig, yr.value = Ws(y.cardStyleConfig || rf)), Lr.value = Bo(y.cardPresetSizeConfig || pu), Sa.value = af(y.canvasGapPreset || Kh), Mr.value = null, ar.value = !1, Yr.value = !1;
40118
+ r.snapshot ? Wu(r.snapshot) : (Ni.value = !!y.cardStyleConfig, yr.value = Ws(y.cardStyleConfig || rf)), Lr.value = Bo(y.cardPresetSizeConfig || pu), Ma.value = af(y.canvasGapPreset || Kh), Mr.value = null, ar.value = !1, Yr.value = !1;
40119
40119
  }
40120
40120
  ), $t(
40121
40121
  () => r.assistantPersonaPreference,
@@ -40374,7 +40374,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
40374
40374
  async () => {
40375
40375
  var y;
40376
40376
  const p = r.lastComposeInsertedBlockIds[0];
40377
- p && (en.value = p, bn.value = null, Ma(), await cn(), (y = br.value[p]) == null || y.scrollIntoView({ behavior: "smooth", block: "center" }));
40377
+ p && (en.value = p, bn.value = null, Aa(), await cn(), (y = br.value[p]) == null || y.scrollIntoView({ behavior: "smooth", block: "center" }));
40378
40378
  }
40379
40379
  );
40380
40380
  function Yo(p, y = {}) {
@@ -40396,7 +40396,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
40396
40396
  function Yf(p) {
40397
40397
  ar.value = Dg(p);
40398
40398
  }
40399
- function Ma() {
40399
+ function Aa() {
40400
40400
  vr.value && (Yr.value = !0, ar.value = !0);
40401
40401
  }
40402
40402
  async function Ss(p) {
@@ -40486,7 +40486,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
40486
40486
  const D = p[y];
40487
40487
  return typeof D == "string" ? D.trim() : "";
40488
40488
  }
40489
- function Aa(p) {
40489
+ function Ba(p) {
40490
40490
  var D;
40491
40491
  const y = Gt(p.data);
40492
40492
  return ((D = p.title) == null ? void 0 : D.trim()) || Ln(y, "title") || "图表配置";
@@ -40637,7 +40637,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
40637
40637
  }
40638
40638
  function Uu(p) {
40639
40639
  const y = nm(p);
40640
- tt.value = Aa(p), _e.value = Zf(p), We.value = y.width, re.value = y.height, Ng(p), ie.value = Wf(), le.value = g_(
40640
+ tt.value = Ba(p), _e.value = Zf(p), We.value = y.width, re.value = y.height, Ng(p), ie.value = Wf(), le.value = g_(
40641
40641
  rm(p)
40642
40642
  );
40643
40643
  }
@@ -40755,7 +40755,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
40755
40755
  const y = p.currentTarget instanceof HTMLElement ? p.currentTarget : null, D = p.relatedTarget instanceof Node ? p.relatedTarget : null;
40756
40756
  y && D && y.contains(D) || D && ((j = ks.value) != null && j.contains(D)) || Ju();
40757
40757
  }
40758
- function Ba() {
40758
+ function Ta() {
40759
40759
  rn.value || (qe.value = !1, Ce.value = "config", Zt.value = !1, Tt.value = "", Tn.value = !1, Td());
40760
40760
  }
40761
40761
  function qa(p) {
@@ -40785,7 +40785,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
40785
40785
  filters: D.filters,
40786
40786
  label: D.label,
40787
40787
  metricName: D.metricName
40788
- }, Qn.value = !0, _a.value = 1, ea(), Xo(), en.value = p.blockId, bn.value = null, await Hi(1, Xa.value));
40788
+ }, Qn.value = !0, Sa.value = 1, ea(), Xo(), en.value = p.blockId, bn.value = null, await Hi(1, Xa.value));
40789
40789
  }
40790
40790
  async function Qg(p) {
40791
40791
  const y = Ha(p.block);
@@ -40802,7 +40802,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
40802
40802
  filters: D.filters,
40803
40803
  label: D.label,
40804
40804
  metricName: D.metricName
40805
- }, Qn.value = !0, _a.value = 1, ea(), Xo(), en.value = p.blockId, bn.value = null, await Hi(1, Xa.value));
40805
+ }, Qn.value = !0, Sa.value = 1, ea(), Xo(), en.value = p.blockId, bn.value = null, await Hi(1, Xa.value));
40806
40806
  }
40807
40807
  function Xo() {
40808
40808
  un.value = null;
@@ -40830,13 +40830,13 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
40830
40830
  filters: p.filters,
40831
40831
  label: p.label,
40832
40832
  metricName: p.metricName || p.block.title || "查看明细"
40833
- }, Qn.value = !0, _a.value = 1, ea(), Xo(), await Hi(1, Xa.value);
40833
+ }, Qn.value = !0, Sa.value = 1, ea(), Xo(), await Hi(1, Xa.value);
40834
40834
  }
40835
40835
  }
40836
- async function Hi(p = _a.value, y = Xa.value) {
40836
+ async function Hi(p = Sa.value, y = Xa.value) {
40837
40837
  const D = dr.value;
40838
40838
  if (!(!D || tr.value || !Xl(D.block))) {
40839
- tr.value = !0, xa.value = "";
40839
+ tr.value = !0, _a.value = "";
40840
40840
  try {
40841
40841
  if (!r.workspaceId) throw new Error("工作台未就绪,无法查询明细");
40842
40842
  const j = await tre({
@@ -40851,7 +40851,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
40851
40851
  });
40852
40852
  ey(j);
40853
40853
  } catch (j) {
40854
- xa.value = j instanceof Error ? j.message : "明细查询失败", Dt.error(xa.value);
40854
+ _a.value = j instanceof Error ? j.message : "明细查询失败", Dt.error(_a.value);
40855
40855
  } finally {
40856
40856
  tr.value = !1;
40857
40857
  }
@@ -40859,13 +40859,13 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
40859
40859
  }
40860
40860
  function ey(p) {
40861
40861
  if (!p.success) {
40862
- xa.value = p.errorMessage || "明细查询失败", Gr.value = [], Kr.value = 0;
40862
+ _a.value = p.errorMessage || "明细查询失败", Gr.value = [], Kr.value = 0;
40863
40863
  const D = Qu(p.columns, p.rows);
40864
- D.length > 0 && (nr.value = D), gi.value = 0, Dt.warning(xa.value);
40864
+ D.length > 0 && (nr.value = D), gi.value = 0, Dt.warning(_a.value);
40865
40865
  return;
40866
40866
  }
40867
40867
  const y = Array.isArray(p.rows) ? p.rows : [];
40868
- Kr.value = 0, Gr.value = y, nr.value = Qu(p.columns, y), _a.value = p.pageIndex || 1, Xa.value = p.pageSize || 10, gi.value = p.total ?? Gr.value.length;
40868
+ Kr.value = 0, Gr.value = y, nr.value = Qu(p.columns, y), Sa.value = p.pageIndex || 1, Xa.value = p.pageSize || 10, gi.value = p.total ?? Gr.value.length;
40869
40869
  }
40870
40870
  function Qu(p, y) {
40871
40871
  const D = Array.isArray(p) ? p.flatMap((ge) => {
@@ -40884,7 +40884,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
40884
40884
  })) : [];
40885
40885
  }
40886
40886
  function ea() {
40887
- xa.value = "", Gr.value = [], nr.value = [], gi.value = 0, Kr.value = 0;
40887
+ _a.value = "", Gr.value = [], nr.value = [], gi.value = 0, Kr.value = 0;
40888
40888
  }
40889
40889
  function um() {
40890
40890
  tr.value || (Qn.value = !1, dr.value = null, ea());
@@ -41269,13 +41269,13 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
41269
41269
  $i.value = iB(p);
41270
41270
  }
41271
41271
  function ic(p) {
41272
- yr.value = Ws(p), Ni.value = !0, Vm(r.workspaceId, { cardStyleConfig: yr.value }), Ma();
41272
+ yr.value = Ws(p), Ni.value = !0, Vm(r.workspaceId, { cardStyleConfig: yr.value }), Aa();
41273
41273
  }
41274
41274
  function oc(p) {
41275
- Lr.value = Bo(p), Vm(r.workspaceId, { cardPresetSizeConfig: Lr.value }), Ma();
41275
+ Lr.value = Bo(p), Vm(r.workspaceId, { cardPresetSizeConfig: Lr.value }), Aa();
41276
41276
  }
41277
41277
  function bm(p) {
41278
- Sa.value = af(p), Vm(r.workspaceId, { canvasGapPreset: Sa.value }), Ma();
41278
+ Ma.value = af(p), Vm(r.workspaceId, { canvasGapPreset: Ma.value }), Aa();
41279
41279
  }
41280
41280
  function sc(p, y) {
41281
41281
  const D = m0(y);
@@ -41287,7 +41287,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
41287
41287
  Na.value = !0;
41288
41288
  return;
41289
41289
  }
41290
- Ma();
41290
+ Aa();
41291
41291
  }
41292
41292
  }
41293
41293
  function wm(p) {
@@ -41387,7 +41387,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
41387
41387
  vn("插卡未完成", ((ge = D.error) == null ? void 0 : ge.message) || "用户 npm 卡片插入失败。");
41388
41388
  return;
41389
41389
  }
41390
- en.value = D.data.card.id, bn.value = null, Ma(), ji(p.title, D.data.card, {
41390
+ en.value = D.data.card.id, bn.value = null, Aa(), ji(p.title, D.data.card, {
41391
41391
  actionLabel: "撤销",
41392
41392
  actionId: `undo-custom-card:${D.data.card.id}`,
41393
41393
  durationMs: 6e3
@@ -41446,7 +41446,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
41446
41446
  return ((m = u.meta) == null ? void 0 : m.capabilityId) === p.selectedSystemCard.capabilityId;
41447
41447
  });
41448
41448
  if (l) {
41449
- ee.value = null, en.value = l.id, bn.value = null, Ma(), ji(p.selectedSystemCard.title || l.title, l, {
41449
+ ee.value = null, en.value = l.id, bn.value = null, Aa(), ji(p.selectedSystemCard.title || l.title, l, {
41450
41450
  actionLabel: "撤销",
41451
41451
  actionId: `undo-registered-card:${l.id}`,
41452
41452
  durationMs: 6e3
@@ -41510,7 +41510,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
41510
41510
  var u;
41511
41511
  return ((u = l.meta) == null ? void 0 : u.aiChatCardId) === p.id;
41512
41512
  });
41513
- it && (en.value = it.id, bn.value = null, Ma(), ji(p.title, it), await cn(), (j = br.value[it.id]) == null || j.scrollIntoView({ behavior: "smooth", block: "center" }));
41513
+ it && (en.value = it.id, bn.value = null, Aa(), ji(p.title, it), await cn(), (j = br.value[it.id]) == null || j.scrollIntoView({ behavior: "smooth", block: "center" }));
41514
41514
  } finally {
41515
41515
  or();
41516
41516
  }
@@ -41522,7 +41522,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
41522
41522
  var it;
41523
41523
  return ((it = $e.meta) == null ? void 0 : it.aiChatMetricCardId) === p.id;
41524
41524
  });
41525
- j && (en.value = j.id, bn.value = null, Ma(), ji(p.title, j), await cn(), (Ae = br.value[j.id]) == null || Ae.scrollIntoView({ behavior: "smooth", block: "center" }), or());
41525
+ j && (en.value = j.id, bn.value = null, Aa(), ji(p.title, j), await cn(), (Ae = br.value[j.id]) == null || Ae.scrollIntoView({ behavior: "smooth", block: "center" }), or());
41526
41526
  }
41527
41527
  function As(p) {
41528
41528
  return Uv(p) || wR(p);
@@ -41650,7 +41650,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
41650
41650
  }
41651
41651
  function pc(p) {
41652
41652
  const y = Gt(p.data), D = po(p);
41653
- return ei(D.queryIntent) || ei(D.question) || ei(y.queryIntent) || ei(y.title) || Aa(p);
41653
+ return ei(D.queryIntent) || ei(D.question) || ei(y.queryIntent) || ei(y.title) || Ba(p);
41654
41654
  }
41655
41655
  function Cy(p) {
41656
41656
  if (!p) return null;
@@ -41673,7 +41673,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
41673
41673
  return {
41674
41674
  recommendationId: `existing-card-field-config:${p.id}`,
41675
41675
  capabilityId: y,
41676
- title: Aa(p),
41676
+ title: Ba(p),
41677
41677
  reason: "调整当前卡片字段映射并重新问数。",
41678
41678
  dataShape: Ln(j, "dataShape") || Ln(D, "shape") || p.subType || "rows",
41679
41679
  previewStatus: "requires_config",
@@ -41730,7 +41730,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
41730
41730
  }
41731
41731
  };
41732
41732
  try {
41733
- ho("正在按字段配置刷新", `${Aa(y)} 将按新的字段映射重新问数。`);
41733
+ ho("正在按字段配置刷新", `${Ba(y)} 将按新的字段映射重新问数。`);
41734
41734
  const m = await r.rebindCardDataBinding(y.id, {
41735
41735
  businessWording: pc(y),
41736
41736
  bindingId: Ha(y) || void 0,
@@ -41742,7 +41742,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
41742
41742
  if (m.success) {
41743
41743
  gc();
41744
41744
  const w = (u = r.snapshot) == null ? void 0 : u.blocks.find((A) => A.id === y.id);
41745
- w && (Ue.value = w, Uu(w), ul(w) && im(w)), ho("字段配置已生效", `${Aa(w || y)} 已按新的字段映射刷新。`);
41745
+ w && (Ue.value = w, Uu(w), ul(w) && im(w)), ho("字段配置已生效", `${Ba(w || y)} 已按新的字段映射刷新。`);
41746
41746
  return;
41747
41747
  }
41748
41748
  vn(
@@ -41807,7 +41807,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
41807
41807
  var l;
41808
41808
  return ((l = it.meta) == null ? void 0 : l.capabilityId) === p.capabilityId;
41809
41809
  });
41810
- return ge ? (en.value = ge.id, bn.value = null, Ma(), y && $.set(ge.id, y), ji(p.title || ge.title, ge, {
41810
+ return ge ? (en.value = ge.id, bn.value = null, Aa(), y && $.set(ge.id, y), ji(p.title || ge.title, ge, {
41811
41811
  actionLabel: "撤销",
41812
41812
  actionId: `undo-registered-card:${ge.id}`,
41813
41813
  durationMs: 6e3
@@ -41821,7 +41821,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
41821
41821
  var Ae;
41822
41822
  return ((Ae = ge.meta) == null ? void 0 : Ae.aiChatCardId) === p.id;
41823
41823
  });
41824
- j && (en.value = j.id, bn.value = null, Ma(), ji(p.title, j), await cn(), (y = br.value[j.id]) == null || y.scrollIntoView({ behavior: "smooth", block: "center" }));
41824
+ j && (en.value = j.id, bn.value = null, Aa(), ji(p.title, j), await cn(), (y = br.value[j.id]) == null || y.scrollIntoView({ behavior: "smooth", block: "center" }));
41825
41825
  } finally {
41826
41826
  or();
41827
41827
  }
@@ -41856,7 +41856,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
41856
41856
  A instanceof Error ? A.message : "卡片已替换,候选问数可稍后手动刷新。"
41857
41857
  );
41858
41858
  }
41859
- en.value = $e.id, bn.value = null, Ma(), ji($e.title || "建议卡片", $e), await cn(), (w = br.value[$e.id]) == null || w.scrollIntoView({ behavior: "smooth", block: "center" });
41859
+ en.value = $e.id, bn.value = null, Aa(), ji($e.title || "建议卡片", $e), await cn(), (w = br.value[$e.id]) == null || w.scrollIntoView({ behavior: "smooth", block: "center" });
41860
41860
  }
41861
41861
  }
41862
41862
  async function Em(p) {
@@ -41897,7 +41897,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
41897
41897
  const R = (l = r.snapshot) == null ? void 0 : l.blocks.find((H) => H.id === w.id);
41898
41898
  R && (D += 1, ge = R, await Em(R));
41899
41899
  }
41900
- if (ge && (en.value = ge.id, bn.value = null, Ma(), await cn(), (u = br.value[ge.id]) == null || u.scrollIntoView({ behavior: "smooth", block: "center" })), D > 0 && ji(`已替换 ${D} 张占位卡`, ge || p[0]), j.length > 0) {
41900
+ if (ge && (en.value = ge.id, bn.value = null, Aa(), await cn(), (u = br.value[ge.id]) == null || u.scrollIntoView({ behavior: "smooth", block: "center" })), D > 0 && ji(`已替换 ${D} 张占位卡`, ge || p[0]), j.length > 0) {
41901
41901
  const m = zD(j);
41902
41902
  vn("部分占位卡替换失败", m || `${j.length} 张占位卡保存失败,可单独重试。`);
41903
41903
  }
@@ -42140,6 +42140,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
42140
42140
  key: 1,
42141
42141
  message: oe.value
42142
42142
  }, null, 8, ["message"])) : (T(), L(Mt, { key: 2 }, [
42143
+ wa(p.$slots, "before-workbench", {}, void 0, !0),
42143
42144
  U(r).fdeMode ? (T(), L("div", Pre, [
42144
42145
  v("div", Ere, [
42145
42146
  v("div", Ore, [
@@ -42259,7 +42260,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
42259
42260
  "workbench-style-codes": zo.value,
42260
42261
  "card-style-config": yr.value,
42261
42262
  "card-preset-size-config": Lr.value,
42262
- "canvas-gap-preset": Sa.value,
42263
+ "canvas-gap-preset": Ma.value,
42263
42264
  "canvas-gap-px": wr.value,
42264
42265
  "canvas-focus-mode": On.value,
42265
42266
  "drawer-open": nl.value,
@@ -42327,7 +42328,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
42327
42328
  "workbench-style-codes": zo.value,
42328
42329
  "card-style-config": yr.value,
42329
42330
  "card-preset-size-config": Lr.value,
42330
- "canvas-gap-preset": Sa.value,
42331
+ "canvas-gap-preset": Ma.value,
42331
42332
  "canvas-config-active": vr.value,
42332
42333
  "is-fde-mode": U(r).fdeMode,
42333
42334
  "has-card-generation-intent": ol.value,
@@ -42546,7 +42547,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
42546
42547
  title: "关闭",
42547
42548
  "aria-label": "关闭配置",
42548
42549
  disabled: rn.value,
42549
- onClick: Ba
42550
+ onClick: Ta
42550
42551
  }, " × ", 8, iae)
42551
42552
  ]),
42552
42553
  v("div", oae, [
@@ -42834,7 +42835,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
42834
42835
  type: "button",
42835
42836
  class: "workbench-chart-config-drawer__secondary",
42836
42837
  disabled: rn.value,
42837
- onClick: Ba
42838
+ onClick: Ta
42838
42839
  }, " 关闭 ", 8, Uae),
42839
42840
  v("button", {
42840
42841
  type: "button",
@@ -42864,7 +42865,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
42864
42865
  (T(), bt(no, { to: "body" }, [
42865
42866
  Zt.value && Ue.value ? (T(), bt(Dj, {
42866
42867
  key: 0,
42867
- "current-title": Aa(Ue.value),
42868
+ "current-title": Ba(Ue.value),
42868
42869
  candidates: Is.value,
42869
42870
  onClose: Yg,
42870
42871
  onConfirm: Jg
@@ -42954,7 +42955,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
42954
42955
  ]),
42955
42956
  v("footer", aie, [
42956
42957
  Ke(U(rw), {
42957
- current: _a.value,
42958
+ current: Sa.value,
42958
42959
  disabled: tr.value,
42959
42960
  "page-size": Xa.value,
42960
42961
  "page-size-options": so,
@@ -42973,7 +42974,7 @@ const Rre = ["data-image-workbench", "data-workbench-style", "data-card-radius",
42973
42974
  ], 14, Rre);
42974
42975
  };
42975
42976
  }
42976
- }), Die = /* @__PURE__ */ An(uie, [["__scopeId", "data-v-37108d98"]]);
42977
+ }), Die = /* @__PURE__ */ An(uie, [["__scopeId", "data-v-29bda4de"]]);
42977
42978
  export {
42978
42979
  Die as default
42979
42980
  };