@yuku123/z-team-component 0.2.129 → 0.2.131

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.
Files changed (50) hide show
  1. package/dist/{ChangeLogView-prUA0IUb.js → ChangeLogView-SwacGpsw.js} +1 -1
  2. package/dist/{ComponentDoc-C2CX0Xw2.js → ComponentDoc-Dh5YhLCI.js} +1018 -1048
  3. package/dist/{InvitationManagementPage-BcubClbW.js → InvitationManagementPage-CjEcLOGB.js} +1 -1
  4. package/dist/{OnboardingPage-Cxqhhaqv.js → OnboardingPage-DvNt71kX.js} +2 -2
  5. package/dist/{ScheduledTasks-CjElzdMF.js → ScheduledTasks-COgb4MZJ.js} +6 -6
  6. package/dist/SystemShell-CSXcsiNp.js +752 -0
  7. package/dist/{admin-logs-D6ikiSH_.js → admin-logs-CExsxQ5h.js} +5 -5
  8. package/dist/{api-DOwJiPuB.js → api-C9kTgVc2.js} +1 -1
  9. package/dist/{api-BZgWlYlv.js → api-DXw93E7c.js} +1 -1
  10. package/dist/{createWorkspaceWsHandler-CZJ76AhW.js → createWorkspaceWsHandler-BwDUTYXH.js} +319 -319
  11. package/dist/{index-T81OuZsl.js → index-9rfSVSTh.js} +9 -9
  12. package/dist/{index-DBXtiyyO.js → index-B2Dfbi8J.js} +2 -2
  13. package/dist/{index-CINjd8dS.js → index-B3uLo8-F.js} +3 -3
  14. package/dist/{index-D0tpYkvs.js → index-BNPq7yBg.js} +2 -2
  15. package/dist/{index-D6Hmcvfk.js → index-BTJ83JLl.js} +11 -11
  16. package/dist/{index-DpBh6ZiS.js → index-BkzBYfhO.js} +8489 -8453
  17. package/dist/{index-BkbSCWQ7.js → index-BoY7L8C4.js} +42 -37
  18. package/dist/index-Bs9odXxd.js +1214 -0
  19. package/dist/{index-Mn6ZX7eg.js → index-CF3xDZ7q.js} +4 -4
  20. package/dist/{index-C9qwuEjl.js → index-COobH4Vi.js} +1 -1
  21. package/dist/{index-Bmst20j8.js → index-CU6jFFl5.js} +3 -3
  22. package/dist/{index-CnT2Lzj_.js → index-CXEYA7rt.js} +2 -2
  23. package/dist/{index-CivLA2Ck.js → index-CZCKpsry.js} +2 -2
  24. package/dist/{index-BGv75VC-.js → index-Ceu-yckM.js} +70 -70
  25. package/dist/{index-3az2HcZV.js → index-Ci6_CBwE.js} +3 -3
  26. package/dist/{index-Cb4Q2j9G.js → index-CntZHojY.js} +2 -2
  27. package/dist/{index-Dmqq-TZg.js → index-D2DFKRUf.js} +1 -1
  28. package/dist/{index-DoTLYXzl.js → index-DLK7DuCr.js} +3 -3
  29. package/dist/{index-S7dnw51f.js → index-DM6XeWFk.js} +4060 -4044
  30. package/dist/{index-BoJfKCna.js → index-DMfYPIkB.js} +2 -2
  31. package/dist/{index-B7TlMXsI.js → index-DZ0fYNO9.js} +20 -20
  32. package/dist/index-D_J1ZCy8.js +1299 -0
  33. package/dist/{index-ClxrFdMY.js → index-DmV6xR7C.js} +9 -9
  34. package/dist/{index-DqQmFDgG.js → index-ftuPuj0s.js} +9 -9
  35. package/dist/{index-DUCQ-vg5.js → index-mEgmHNRO.js} +1 -1
  36. package/dist/{index-xkMK0DD6.js → index-t2nMJUPu.js} +1 -1
  37. package/dist/index.js +1 -1
  38. package/dist/{instance-DOYjT4ym.js → instance-DD3kbAUh.js} +1 -1
  39. package/dist/{menuPermission-CpTIhKPL.js → menuPermission-v0881tid.js} +3 -3
  40. package/dist/pages.js +1 -1
  41. package/dist/{send-default-agent-team-message-Bys3ZsLG.js → send-default-agent-team-message-Cug0T_7J.js} +1 -1
  42. package/dist/{sso-user-CFA43hkh.js → sso-user-CnVXqYR7.js} +1 -1
  43. package/dist/{training-BYJejDfy.js → training-BS23m-yy.js} +1 -1
  44. package/dist/useSidebarResize--Avuabb1.js +46 -0
  45. package/dist/{webide-pyfurtu3.js → webide-BPJ1IpZq.js} +3 -3
  46. package/dist/z-team-component.css +1 -1
  47. package/package.json +1 -1
  48. package/dist/SystemShell-Cx-v4Hpj.js +0 -718
  49. package/dist/index-BpwFkwbQ.js +0 -2213
  50. package/dist/index-IvhRfboz.js +0 -1248
@@ -0,0 +1,752 @@
1
+ import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
+ import { useNavigate as ne, useLocation as T, Navigate as o } from "react-router-dom";
3
+ import { useMemo as A, useState as R, useCallback as ie, Suspense as me, lazy as k } from "react";
4
+ import { DownOutlined as q, RightOutlined as W, AppstoreOutlined as ae, UserOutlined as ue, SafetyCertificateOutlined as j, CloudOutlined as H, DeploymentUnitOutlined as U, AuditOutlined as K, CodeOutlined as B, FolderOpenOutlined as de, DesktopOutlined as oe, ThunderboltOutlined as he, BookOutlined as F, DashboardOutlined as I, ProfileOutlined as Q, ApartmentOutlined as be, FileImageOutlined as ge, FileTextOutlined as C, CalendarOutlined as f, ApiOutlined as _e, ProjectOutlined as ce, ClusterOutlined as ke, DatabaseOutlined as ve, TeamOutlined as ye, BarChartOutlined as Y } from "@ant-design/icons";
5
+ import { f as Se, M as Ae } from "./menuPermission-v0881tid.js";
6
+ import { u as Z, G as we } from "./ComponentDoc-Dh5YhLCI.js";
7
+ import { u as Pe } from "./useSidebarResize--Avuabb1.js";
8
+ import { ProductApp as fe } from "@yuku123/z-product-component";
9
+ import { P as De, R as Ge } from "./index-9rfSVSTh.js";
10
+ const Ne = "_container_1vw0p_7", Ie = "_sidebar_1vw0p_17", Oe = "_menuList_1vw0p_37", Ce = "_menuGroup_1vw0p_44", Me = "_menuGroupHeader_1vw0p_49", ze = "_menuGroupHeaderOpen_1vw0p_68", Be = "_menuGroupHeaderActive_1vw0p_79", Le = "_menuGroupIcon_1vw0p_83", He = "_menuGroupLabel_1vw0p_92", Te = "_menuGroupArrow_1vw0p_97", xe = "_menuSubList_1vw0p_104", $e = "_menuSubItem_1vw0p_111", Ee = "_menuSubGroup_1vw0p_112", Re = "_menuItemOnPath_1vw0p_151", qe = "_menuSubItemActive_1vw0p_173", We = "_menuSubItemIcon_1vw0p_180", je = "_menuSubGroupHeader_1vw0p_200", Ue = "_menuSubGroupHeaderOpen_1vw0p_227", Ke = "_menuSubGroupHeaderActive_1vw0p_237", Fe = "_menuSubGroupLabel_1vw0p_254", Qe = "_main_1vw0p_274", Ye = "_detailPanel_1vw0p_284", Ze = "_detailHeader_1vw0p_294", Ve = "_detailIcon_1vw0p_301", Je = "_detailTitle_1vw0p_314", Xe = "_detailDesc_1vw0p_321", et = "_detailAction_1vw0p_328", tt = "_goBtn_1vw0p_333", nt = "_emptyState_1vw0p_353", a = {
11
+ container: Ne,
12
+ sidebar: Ie,
13
+ menuList: Oe,
14
+ menuGroup: Ce,
15
+ menuGroupHeader: Me,
16
+ menuGroupHeaderOpen: ze,
17
+ menuGroupHeaderActive: Be,
18
+ menuGroupIcon: Le,
19
+ menuGroupLabel: He,
20
+ menuGroupArrow: Te,
21
+ menuSubList: xe,
22
+ menuSubItem: $e,
23
+ menuSubGroup: Ee,
24
+ menuItemOnPath: Re,
25
+ menuSubItemActive: qe,
26
+ menuSubItemIcon: We,
27
+ menuSubGroupHeader: je,
28
+ menuSubGroupHeaderOpen: Ue,
29
+ menuSubGroupHeaderActive: Ke,
30
+ menuSubGroupLabel: Fe,
31
+ main: Qe,
32
+ detailPanel: Ye,
33
+ detailHeader: Ze,
34
+ detailIcon: Ve,
35
+ detailTitle: Je,
36
+ detailDesc: Xe,
37
+ detailAction: et,
38
+ goBtn: tt,
39
+ emptyState: nt
40
+ };
41
+ function O(c) {
42
+ return c.flatMap((s) => [s, ...O(s.children ?? [])]);
43
+ }
44
+ const at = {
45
+ title: "测试中心",
46
+ icon: /* @__PURE__ */ e(I, {}),
47
+ // 测试 Tab 的入口权限点 (顶栏 test mode 同码)。4A 普通用户角色 USER 持有 TEST_ENTRY
48
+ // ⇒ 全员可见; 未绑测试角色的账号看不到这一组。
49
+ permission: "TEST_ENTRY",
50
+ items: [
51
+ {
52
+ key: "test-dashboard",
53
+ label: "测试总览",
54
+ icon: /* @__PURE__ */ e(I, {}),
55
+ path: "/test/qa/dashboard",
56
+ desc: "测试统计、趋势与套件健康度"
57
+ },
58
+ {
59
+ key: "test-design",
60
+ label: "用例与编排",
61
+ icon: /* @__PURE__ */ e(C, {}),
62
+ children: [
63
+ {
64
+ key: "test-case",
65
+ label: "测试用例",
66
+ icon: /* @__PURE__ */ e(C, {}),
67
+ path: "/test/qa/cases",
68
+ desc: "接口用例与断言模板"
69
+ },
70
+ {
71
+ key: "test-suite",
72
+ label: "测试套件",
73
+ icon: /* @__PURE__ */ e(ke, {}),
74
+ path: "/test/qa/suites",
75
+ desc: "步骤编排与变量传递"
76
+ },
77
+ {
78
+ key: "test-plan",
79
+ label: "测试计划",
80
+ icon: /* @__PURE__ */ e(ce, {}),
81
+ path: "/test/qa/plans",
82
+ desc: "套件组合与环境绑定"
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ key: "test-exec",
88
+ label: "执行与调度",
89
+ icon: /* @__PURE__ */ e(f, {}),
90
+ children: [
91
+ {
92
+ key: "test-run",
93
+ label: "执行记录",
94
+ icon: /* @__PURE__ */ e(f, {}),
95
+ path: "/test/qa/runs",
96
+ desc: "执行触发、状态与报告"
97
+ },
98
+ {
99
+ key: "test-schedule",
100
+ label: "定时调度",
101
+ icon: /* @__PURE__ */ e(f, {}),
102
+ path: "/test/qa/schedules",
103
+ desc: "cron 定时执行"
104
+ },
105
+ {
106
+ key: "test-e2e",
107
+ label: "E2E 测试",
108
+ icon: /* @__PURE__ */ e(oe, {}),
109
+ path: "/test/qa/e2e",
110
+ desc: "浏览器自动化测试"
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ key: "test-support",
116
+ label: "环境与工具",
117
+ icon: /* @__PURE__ */ e(H, {}),
118
+ children: [
119
+ {
120
+ key: "test-env",
121
+ label: "环境管理",
122
+ icon: /* @__PURE__ */ e(H, {}),
123
+ path: "/test/qa/envs",
124
+ desc: "多环境变量管理"
125
+ },
126
+ {
127
+ key: "test-mock",
128
+ label: "Mock 平台",
129
+ icon: /* @__PURE__ */ e(ve, {}),
130
+ path: "/test/mock",
131
+ desc: "API Mock 服务管理"
132
+ }
133
+ ]
134
+ },
135
+ {
136
+ key: "test-eval",
137
+ label: "智能测评",
138
+ icon: /* @__PURE__ */ e(Y, {}),
139
+ children: [
140
+ {
141
+ key: "test-eval-start",
142
+ label: "发起测评",
143
+ icon: /* @__PURE__ */ e(I, {}),
144
+ path: "/test/evaluation/start",
145
+ desc: "Agent 质量测评"
146
+ },
147
+ {
148
+ key: "test-eval-schedule",
149
+ label: "自动测评",
150
+ icon: /* @__PURE__ */ e(f, {}),
151
+ path: "/test/evaluation/schedule",
152
+ desc: "定时批量测评"
153
+ },
154
+ {
155
+ key: "test-eval-group",
156
+ label: "群聊评测",
157
+ icon: /* @__PURE__ */ e(ye, {}),
158
+ path: "/test/evaluation/group",
159
+ desc: "群聊场景评测"
160
+ },
161
+ {
162
+ key: "test-eval-report",
163
+ label: "分析报告",
164
+ icon: /* @__PURE__ */ e(Y, {}),
165
+ path: "/test/evaluation/report",
166
+ desc: "测评结果分析"
167
+ }
168
+ ]
169
+ }
170
+ ]
171
+ }, se = [
172
+ {
173
+ title: "认证与权限",
174
+ icon: /* @__PURE__ */ e(j, {}),
175
+ // 4A 授权中心自身的资源管理动作 (账号/角色/应用/租户/组织/权限分配)
176
+ // ⇒ 4A 权限管理域 PERMISSION_MANAGE。普通用户角色 USER 不含该码,
177
+ // 之前照样能点进这些页面 (进去就是 403 / 空白) —— 现在入口先收敛。
178
+ permission: "PERMISSION_MANAGE",
179
+ items: [
180
+ {
181
+ key: "4a-account",
182
+ label: "账号管理",
183
+ icon: /* @__PURE__ */ e(ue, {}),
184
+ path: "/ctc/4a/account",
185
+ desc: "用户账号创建、编辑与状态管理"
186
+ },
187
+ {
188
+ key: "4a-role",
189
+ label: "角色管理",
190
+ icon: /* @__PURE__ */ e(j, {}),
191
+ path: "/ctc/4a/role",
192
+ desc: "角色定义与权限分配"
193
+ },
194
+ {
195
+ key: "4a-app",
196
+ label: "应用管理",
197
+ icon: /* @__PURE__ */ e(ae, {}),
198
+ path: "/ctc/4a/application",
199
+ desc: "应用注册、资源与权限配置"
200
+ },
201
+ {
202
+ key: "4a-tenant",
203
+ label: "租户管理",
204
+ icon: /* @__PURE__ */ e(H, {}),
205
+ path: "/ctc/4a/tenant",
206
+ desc: "多租户管理与配置"
207
+ },
208
+ {
209
+ key: "4a-org",
210
+ label: "组织管理",
211
+ icon: /* @__PURE__ */ e(U, {}),
212
+ path: "/ctc/4a/org",
213
+ desc: "组织架构与部门管理"
214
+ },
215
+ {
216
+ key: "4a-permission",
217
+ label: "权限管理",
218
+ icon: /* @__PURE__ */ e(K, {}),
219
+ path: "/ctc/4a/permission",
220
+ desc: "细粒度权限控制与审批"
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ title: "开发与工具",
226
+ icon: /* @__PURE__ */ e(B, {}),
227
+ items: [
228
+ {
229
+ key: "script",
230
+ label: "脚本中心",
231
+ icon: /* @__PURE__ */ e(B, {}),
232
+ path: "/script/manage",
233
+ desc: "DSL 脚本注册与执行"
234
+ },
235
+ { key: "lc", label: "研发中心", icon: /* @__PURE__ */ e(B, {}), path: "/lc/apps", desc: "低代码应用开发与管理" },
236
+ {
237
+ key: "tool-curl",
238
+ label: "短链管理",
239
+ icon: /* @__PURE__ */ e(de, {}),
240
+ path: "/z-tool/curl",
241
+ desc: "短链接创建与管理"
242
+ },
243
+ {
244
+ key: "tool-webide",
245
+ label: "WebIDE 容器",
246
+ icon: /* @__PURE__ */ e(oe, {}),
247
+ path: "/z-tool/webide",
248
+ desc: "在线 IDE 代码编辑器"
249
+ }
250
+ ]
251
+ },
252
+ {
253
+ title: "产品认知",
254
+ icon: /* @__PURE__ */ e(Q, {}),
255
+ items: [
256
+ {
257
+ // 工坊是「一个面板干完产品业务开发」的主入口:对话 + 小册子 + 产物 + 台账。
258
+ // 它和小册子库原先只注册在 z-product-component 的 menuItems 里,
259
+ // 而主壳导航用的是这份写死的清单 ⇒ 面板做好了却在界面上进不去。
260
+ key: "product-atelier",
261
+ label: "产品工坊",
262
+ icon: /* @__PURE__ */ e(he, {}),
263
+ path: "/z-product/atelier",
264
+ desc: "在一个面板里对话、沉淀产品稿与设计稿、渲染演示稿、建工程落地"
265
+ },
266
+ {
267
+ key: "product-booklets",
268
+ label: "小册子库",
269
+ icon: /* @__PURE__ */ e(F, {}),
270
+ path: "/z-product/booklets",
271
+ desc: "可被对话引用的方法、清单与规范"
272
+ },
273
+ {
274
+ key: "product-board",
275
+ label: "产品全景",
276
+ icon: /* @__PURE__ */ e(I, {}),
277
+ path: "/z-product/board",
278
+ desc: "业务/产品/研发三线可见的全量认知(术语·模型·链路·设计稿·缺口)"
279
+ },
280
+ {
281
+ key: "product-blueprint",
282
+ label: "产品蓝图",
283
+ icon: /* @__PURE__ */ e(Q, {}),
284
+ path: "/z-product/blueprint",
285
+ desc: "AI 的唯一入口:后端实时投影的全量认知快照"
286
+ },
287
+ {
288
+ key: "product-glossary",
289
+ label: "统一语言",
290
+ icon: /* @__PURE__ */ e(F, {}),
291
+ path: "/z-product/glossary",
292
+ desc: "术语仲裁表:标准词/别名/适用范围/反例"
293
+ },
294
+ {
295
+ key: "product-concept",
296
+ label: "领域模型",
297
+ icon: /* @__PURE__ */ e(be, {}),
298
+ path: "/z-product/concept-model",
299
+ desc: "概念与关系画布(四种投影)"
300
+ },
301
+ {
302
+ key: "product-scenarios",
303
+ label: "用户链路",
304
+ icon: /* @__PURE__ */ e(U, {}),
305
+ path: "/z-product/scenarios",
306
+ desc: "端到端场景:步骤引用领域概念"
307
+ },
308
+ {
309
+ key: "product-designs",
310
+ label: "设计稿 ⇄ 模型",
311
+ icon: /* @__PURE__ */ e(ge, {}),
312
+ path: "/z-product/designs",
313
+ desc: "设计与认知的双向收敛回路"
314
+ }
315
+ ]
316
+ },
317
+ {
318
+ title: "业务流程",
319
+ icon: /* @__PURE__ */ e(C, {}),
320
+ items: [
321
+ {
322
+ key: "workflow",
323
+ label: "流程中心",
324
+ icon: /* @__PURE__ */ e(K, {}),
325
+ path: "/workflow/dashboard",
326
+ desc: "工作流定义与审批管理"
327
+ },
328
+ {
329
+ key: "task",
330
+ label: "任务中心",
331
+ icon: /* @__PURE__ */ e(C, {}),
332
+ path: "/task/dashboard",
333
+ desc: "任务创建、分配与跟踪"
334
+ },
335
+ {
336
+ key: "schedule",
337
+ label: "调度中心",
338
+ icon: /* @__PURE__ */ e(f, {}),
339
+ // z-schedule-component 的路由只有 jobs / group / log,**没有 dashboard**:
340
+ // 原来写 /schedule/dashboard,点进去命中 /schedule/* 通配后组件内部匹配不到
341
+ // 任何路由 ⇒ 右侧一片空白。默认页取 jobs。
342
+ path: "/schedule/jobs",
343
+ desc: "定时任务调度与管理"
344
+ },
345
+ {
346
+ key: "subscribe",
347
+ label: "订阅中心",
348
+ icon: /* @__PURE__ */ e(_e, {}),
349
+ path: "/subscribe/list",
350
+ desc: "第三方数据订阅与拉取"
351
+ },
352
+ {
353
+ key: "project",
354
+ label: "项目中心",
355
+ icon: /* @__PURE__ */ e(ce, {}),
356
+ path: "/project/list",
357
+ desc: "项目创建与进度管理"
358
+ }
359
+ ]
360
+ }
361
+ ], L = [...se, at];
362
+ function ot({
363
+ activePathOverride: c,
364
+ menuOnly: s = !1,
365
+ visibleGroups: m,
366
+ sidebarWidth: v
367
+ } = {}) {
368
+ const u = ne(), { pathname: D } = T(), b = A(
369
+ () => m ? L.filter((n) => m.includes(n.title)) : se,
370
+ [m]
371
+ ), G = Z((n) => n.permissionState), N = Z((n) => n.currentUser), y = A(
372
+ () => G === "failed" ? b : Se(b, N),
373
+ [b, N, G]
374
+ ), [M, z] = R(
375
+ new Set(L.map((n) => n.title))
376
+ ), [w, g] = R(
377
+ () => new Set(
378
+ L.flatMap((n) => n.items).filter((n) => n.children).map((n) => n.key)
379
+ )
380
+ ), d = A(() => {
381
+ var h;
382
+ const n = c ?? D;
383
+ return ((h = y.flatMap((r) => O(r.items)).find(
384
+ (r) => r.path === n
385
+ )) == null ? void 0 : h.key) ?? null;
386
+ }, [c, D, y]), re = (n) => {
387
+ z((h) => {
388
+ const r = new Set(h);
389
+ return r.has(n) ? r.delete(n) : r.add(n), r;
390
+ });
391
+ }, le = (n) => {
392
+ g((h) => {
393
+ const r = new Set(h);
394
+ return r.has(n) ? r.delete(n) : r.add(n), r;
395
+ });
396
+ }, x = (n) => {
397
+ n.path && u(n.path);
398
+ }, S = y.flatMap((n) => O(n.items)).find(
399
+ (n) => n.key === d
400
+ );
401
+ return /* @__PURE__ */ p("div", { className: a.container, children: [
402
+ /* @__PURE__ */ p(
403
+ "aside",
404
+ {
405
+ className: a.sidebar,
406
+ style: v ? { width: v, minWidth: v } : void 0,
407
+ children: [
408
+ /* @__PURE__ */ e(Ae, {}),
409
+ /* @__PURE__ */ e("nav", { className: a.menuList, children: y.map((n) => {
410
+ const h = M.has(n.title), r = d ? n.items.findIndex(
411
+ (l) => l.key === d || O([l]).some((P) => P.key === d)
412
+ ) : -1;
413
+ return /* @__PURE__ */ p("div", { className: a.menuGroup, children: [
414
+ /* @__PURE__ */ p(
415
+ "div",
416
+ {
417
+ className: `${a.menuGroupHeader} ${h ? a.menuGroupHeaderOpen : ""} ${r >= 0 ? a.menuGroupHeaderActive : ""}`,
418
+ onClick: () => re(n.title),
419
+ children: [
420
+ /* @__PURE__ */ e("span", { className: a.menuGroupIcon, children: n.icon }),
421
+ /* @__PURE__ */ e("span", { className: a.menuGroupLabel, children: n.title }),
422
+ /* @__PURE__ */ e("span", { className: a.menuGroupArrow, children: h ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ e(W, {}) })
423
+ ]
424
+ }
425
+ ),
426
+ h && /* @__PURE__ */ e("ul", { className: a.menuSubList, children: n.items.map((l, P) => {
427
+ const $ = r >= 0 && P <= r;
428
+ if (!l.children)
429
+ return /* @__PURE__ */ p(
430
+ "li",
431
+ {
432
+ className: `${a.menuSubItem} ${$ ? a.menuItemOnPath : ""} ${d === l.key ? a.menuSubItemActive : ""}`,
433
+ onClick: () => x(l),
434
+ children: [
435
+ /* @__PURE__ */ e("span", { className: a.menuSubItemIcon, children: l.icon }),
436
+ /* @__PURE__ */ e("span", { children: l.label })
437
+ ]
438
+ },
439
+ l.key
440
+ );
441
+ const E = r === P ? l.children.findIndex((_) => _.key === d) : -1;
442
+ return /* @__PURE__ */ p(
443
+ "li",
444
+ {
445
+ className: `${a.menuSubGroup} ${$ ? a.menuItemOnPath : ""}`,
446
+ children: [
447
+ /* @__PURE__ */ p(
448
+ "div",
449
+ {
450
+ className: `${a.menuSubGroupHeader} ${w.has(l.key) ? a.menuSubGroupHeaderOpen : ""} ${r === P ? a.menuSubGroupHeaderActive : ""}`,
451
+ onClick: () => le(l.key),
452
+ children: [
453
+ /* @__PURE__ */ e("span", { className: a.menuGroupIcon, children: l.icon }),
454
+ /* @__PURE__ */ e("span", { className: a.menuSubGroupLabel, children: l.label }),
455
+ /* @__PURE__ */ e("span", { className: a.menuGroupArrow, children: w.has(l.key) ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ e(W, {}) })
456
+ ]
457
+ }
458
+ ),
459
+ w.has(l.key) && /* @__PURE__ */ e("ul", { className: a.menuSubList, children: l.children.map((_, pe) => /* @__PURE__ */ p(
460
+ "li",
461
+ {
462
+ className: `${a.menuSubItem} ${E >= 0 && pe <= E ? a.menuItemOnPath : ""} ${d === _.key ? a.menuSubItemActive : ""}`,
463
+ onClick: () => x(_),
464
+ children: [
465
+ /* @__PURE__ */ e("span", { className: a.menuSubItemIcon, children: _.icon }),
466
+ /* @__PURE__ */ e("span", { children: _.label })
467
+ ]
468
+ },
469
+ _.key
470
+ )) })
471
+ ]
472
+ },
473
+ l.key
474
+ );
475
+ }) })
476
+ ] }, n.title);
477
+ }) })
478
+ ]
479
+ }
480
+ ),
481
+ s ? null : /* @__PURE__ */ e("main", { className: a.main, children: S ? /* @__PURE__ */ p("div", { className: a.detailPanel, children: [
482
+ /* @__PURE__ */ p("div", { className: a.detailHeader, children: [
483
+ /* @__PURE__ */ e("div", { className: a.detailIcon, children: S.icon }),
484
+ /* @__PURE__ */ p("div", { children: [
485
+ /* @__PURE__ */ e("h2", { className: a.detailTitle, children: S.label }),
486
+ /* @__PURE__ */ e("p", { className: a.detailDesc, children: S.desc })
487
+ ] })
488
+ ] }),
489
+ /* @__PURE__ */ e("div", { className: a.detailAction, children: /* @__PURE__ */ p(
490
+ "button",
491
+ {
492
+ className: a.goBtn,
493
+ onClick: () => u(S.path),
494
+ children: [
495
+ "进入 ",
496
+ S.label
497
+ ]
498
+ }
499
+ ) })
500
+ ] }) : /* @__PURE__ */ p("div", { className: a.emptyState, children: [
501
+ /* @__PURE__ */ e(ae, { style: { fontSize: 48, color: "#ccc" } }),
502
+ /* @__PURE__ */ e("p", { children: "点击左侧菜单进入对应功能模块" })
503
+ ] }) })
504
+ ] });
505
+ }
506
+ const ct = "_shellWrap_11zl4_6", st = "_shell_11zl4_6", rt = "_dragBar_11zl4_31", lt = "_dragBarActive_11zl4_52", pt = "_main_11zl4_56", it = "_productBanner_11zl4_68", mt = "_productBannerLabel_11zl4_80", ut = "_productBannerName_11zl4_86", dt = "_productBannerCode_11zl4_94", ht = "_productBannerBack_11zl4_99", bt = "_empty_11zl4_116", gt = "_emptyIcon_11zl4_126", _t = "_emptyText_11zl4_131", i = {
507
+ shellWrap: ct,
508
+ shell: st,
509
+ dragBar: rt,
510
+ dragBarActive: lt,
511
+ main: pt,
512
+ productBanner: it,
513
+ productBannerLabel: mt,
514
+ productBannerName: ut,
515
+ productBannerCode: dt,
516
+ productBannerBack: ht,
517
+ empty: bt,
518
+ emptyIcon: gt,
519
+ emptyText: _t
520
+ };
521
+ we();
522
+ const t = (c, s) => k(() => c().then((m) => ({ default: m[s] }))), kt = t(() => import("@yuku123/z-ctc-component"), "AccountManagement"), vt = t(() => import("@yuku123/z-ctc-component"), "ApplicationManagement"), yt = t(() => import("@yuku123/z-ctc-component"), "AuditPage"), St = t(() => import("@yuku123/z-ctc-component"), "CtcOverview"), At = t(() => import("@yuku123/z-ctc-component"), "DictPage"), wt = t(() => import("@yuku123/z-ctc-component"), "OrgPage"), Pt = t(() => import("@yuku123/z-ctc-component"), "PermissionManagement"), ft = t(() => import("@yuku123/z-ctc-component"), "RoleManagement"), V = t(() => import("@yuku123/z-ctc-component"), "SurlManagement"), Dt = t(() => import("@yuku123/z-ctc-component"), "TenantManagement"), Gt = t(() => import("@yuku123/z-agent-component"), "AgentAppList"), Nt = t(() => import("@yuku123/z-agent-component"), "AgentDashboard"), It = t(() => import("@yuku123/z-agent-component"), "AkManage"), Ot = t(() => import("@yuku123/z-agent-component"), "BucketList"), Ct = t(() => import("@yuku123/z-agent-component"), "LlmManage"), Mt = t(() => import("@yuku123/z-agent-component"), "McpPage"), zt = t(() => import("@yuku123/z-agent-component"), "ObjectBrowser"), Bt = t(() => import("@yuku123/z-agent-component"), "ScriptCenterPage"), Lt = t(() => import("@yuku123/z-agent-component"), "ScriptProductizationPage"), Ht = t(() => import("@yuku123/z-agent-component"), "SkillMarket"), Tt = t(() => import("./index-DZ0fYNO9.js"), "AgentTeamIM"), J = t(() => import("./index-DZ0fYNO9.js"), "DebugPlayground"), xt = t(() => import("./index-DZ0fYNO9.js"), "Overview"), X = t(() => import("./index-DZ0fYNO9.js"), "Webide"), $t = k(() => import("./OnboardingPage-DvNt71kX.js")), Et = k(() => import("./InvitationManagementPage-CjEcLOGB.js")), Rt = t(() => import("@yuku123/z-config-component"), "ConfigApp"), qt = t(() => import("@yuku123/z-task-component"), "TaskApp"), Wt = t(() => import("@yuku123/z-wf-component"), "WorkflowApp"), jt = t(() => import("@yuku123/z-schedule-component"), "ScheduleApp"), Ut = t(() => import("@yuku123/z-mist-component"), "MistApp"), Kt = t(() => import("@yuku123/z-meta-component"), "MetaApp"), Ft = t(() => import("@yuku123/z-msg-component"), "MsgApp"), Qt = t(() => import("@yuku123/z-rpc-component"), "RpcApp"), Yt = k(() => import("./ComponentDoc-Dh5YhLCI.js").then((c) => c.co)), Zt = k(() => import("./ComponentDoc-Dh5YhLCI.js").then((c) => c.cp)), Vt = t(() => import("@yuku123/z-config-component"), "ComponentDocPage"), Jt = t(() => import("@yuku123/z-task-component"), "ComponentDocPage"), Xt = t(() => import("@yuku123/z-wf-component"), "ComponentDocPage"), en = t(() => import("@yuku123/z-schedule-component"), "ComponentDocPage"), tn = t(() => import("@yuku123/z-mist-component"), "ComponentDocPage"), nn = t(() => import("@yuku123/z-meta-component"), "ComponentDocPage"), an = t(() => import("@yuku123/z-msg-component"), "ComponentDocPage"), on = t(() => import("@yuku123/z-rpc-component"), "ComponentDocPage"), cn = t(() => import("@yuku123/z-cognition-kb-component"), "ComponentDocPage"), sn = t(() => import("@yuku123/z-product-component"), "ComponentDocPage"), rn = t(() => import("@yuku123/z-oss-component"), "ComponentDocPage"), ln = t(() => import("@yuku123/z-vector-component"), "ComponentDocPage"), pn = t(() => import("@yuku123/z-graph-component"), "ComponentDocPage"), mn = t(() => import("@yuku123/z-gw-component"), "ComponentDocPage"), un = t(() => import("@yuku123/z-cache-component"), "ComponentDocPage"), dn = t(() => import("@yuku123/z-mq-component"), "ComponentDocPage"), hn = t(() => import("@yuku123/z-ctc-component"), "ComponentDocPage"), bn = t(() => import("@yuku123/z-agent-component"), "ComponentDocPage"), gn = t(() => import("@yuku123/z-lc-component"), "ComponentDocPage"), _n = t(() => import("@yuku123/z-qa-component"), "ComponentDocPage"), kn = k(() => import("./ComponentDoc-Dh5YhLCI.js").then((c) => c.cn)), ee = k(() => import("@yuku123/z-qa-component"));
523
+ function vn() {
524
+ return /* @__PURE__ */ p("div", { className: i.empty, children: [
525
+ /* @__PURE__ */ e("div", { className: i.emptyIcon, children: "📋" }),
526
+ /* @__PURE__ */ e("div", { className: i.emptyText, children: "请从左侧菜单选择模块" })
527
+ ] });
528
+ }
529
+ function yn() {
530
+ const { pathname: c } = T();
531
+ return /* @__PURE__ */ e(o, { to: c.replace(/^\/product/, "/z-product"), replace: !0 });
532
+ }
533
+ const te = [
534
+ // ─── 顶层 / 概览 ───
535
+ { path: "/overview", element: /* @__PURE__ */ e(xt, {}) },
536
+ // ─── 4A 中心 (/ctc/*) ───
537
+ { path: "/ctc", element: /* @__PURE__ */ e(o, { to: "/ctc/4a/account", replace: !0 }) },
538
+ { path: "/ctc/4a/account", element: /* @__PURE__ */ e(kt, {}) },
539
+ { path: "/ctc/4a/role", element: /* @__PURE__ */ e(ft, {}) },
540
+ { path: "/ctc/4a/application", element: /* @__PURE__ */ e(vt, {}) },
541
+ { path: "/ctc/4a/tenant", element: /* @__PURE__ */ e(Dt, {}) },
542
+ { path: "/ctc/4a/org", element: /* @__PURE__ */ e(wt, {}) },
543
+ { path: "/ctc/4a/permission", element: /* @__PURE__ */ e(Pt, {}) },
544
+ { path: "/ctc/4a/surl", element: /* @__PURE__ */ e(V, {}) },
545
+ { path: "/ctc/dict", element: /* @__PURE__ */ e(At, {}) },
546
+ { path: "/ctc/overview", element: /* @__PURE__ */ e(St, {}) },
547
+ { path: "/ctc/audit", element: /* @__PURE__ */ e(yt, {}) },
548
+ { path: "/ctc/webide", element: /* @__PURE__ */ e(X, {}) },
549
+ { path: "/ctc/agent-team", element: /* @__PURE__ */ e(Tt, {}) },
550
+ { path: "/ctc/invitation", element: /* @__PURE__ */ e(Et, {}) },
551
+ { path: "/onboarding", element: /* @__PURE__ */ e($t, {}) },
552
+ // ─── 智能中心 (/ai/*) ───
553
+ { path: "/ai", element: /* @__PURE__ */ e(o, { to: "/ai/agent/app", replace: !0 }) },
554
+ { path: "/ai/agent", element: /* @__PURE__ */ e(o, { to: "/ai/agent/app", replace: !0 }) },
555
+ { path: "/ai/agent/app", element: /* @__PURE__ */ e(Gt, {}) },
556
+ { path: "/ai/llm", element: /* @__PURE__ */ e(Ct, {}) },
557
+ { path: "/ai/llm/provider", element: /* @__PURE__ */ e(o, { to: "/ai/llm", replace: !0 }) },
558
+ { path: "/ai/llm/model", element: /* @__PURE__ */ e(o, { to: "/ai/llm", replace: !0 }) },
559
+ { path: "/ai/usage", element: /* @__PURE__ */ e(o, { to: "/ai/llm", replace: !0 }) },
560
+ { path: "/ai/ak", element: /* @__PURE__ */ e(It, {}) },
561
+ { path: "/ai/mcp", element: /* @__PURE__ */ e(Mt, {}) },
562
+ { path: "/ai/skill", element: /* @__PURE__ */ e(Ht, {}) },
563
+ { path: "/ai/oss", element: /* @__PURE__ */ e(o, { to: "/ai/oss/bucket", replace: !0 }) },
564
+ { path: "/ai/oss/bucket", element: /* @__PURE__ */ e(Ot, {}) },
565
+ { path: "/ai/oss/bucket/:bucketName", element: /* @__PURE__ */ e(zt, {}) },
566
+ { path: "/ai/trace", element: /* @__PURE__ */ e(J, {}) },
567
+ { path: "/ai/trace/debug", element: /* @__PURE__ */ e(J, {}) },
568
+ { path: "/ai/dashboard", element: /* @__PURE__ */ e(Nt, {}) },
569
+ // 多 Agent 实例 / 模板市场已下线 (2026-10-22): 模板并入 Agent 应用页,
570
+ // 旧深链重定向, 别再回到独立菜单
571
+ { path: "/ai/template", element: /* @__PURE__ */ e(o, { to: "/ai/agent/app", replace: !0 }) },
572
+ { path: "/ai/agent-instance", element: /* @__PURE__ */ e(o, { to: "/ai/agent/app", replace: !0 }) },
573
+ { path: "/ai/agent/instances", element: /* @__PURE__ */ e(o, { to: "/ai/agent/app", replace: !0 }) },
574
+ // ─── 配置中心 ───
575
+ { path: "/config/*", element: /* @__PURE__ */ e(Rt, {}) },
576
+ // ─── 任务中心 ───
577
+ // 模块根路径要重定向到默认页:通配 /task/* 匹配不到裸 /task(matchPattern 要求
578
+ // 前缀带斜杠),落到 SystemShellEmpty 就是一句"请从左侧菜单选择模块"的空壳。
579
+ { path: "/task", element: /* @__PURE__ */ e(o, { to: "/task/dashboard", replace: !0 }) },
580
+ { path: "/task/*", element: /* @__PURE__ */ e(qt, {}) },
581
+ // ─── 流程中心 ───
582
+ { path: "/workflow", element: /* @__PURE__ */ e(o, { to: "/workflow/dashboard", replace: !0 }) },
583
+ { path: "/workflow/*", element: /* @__PURE__ */ e(Wt, {}) },
584
+ // ─── 调度中心 ───
585
+ // 默认页是 jobs:z-schedule-component 的路由只有 jobs / group / log,没有 dashboard。
586
+ { path: "/schedule", element: /* @__PURE__ */ e(o, { to: "/schedule/jobs", replace: !0 }) },
587
+ { path: "/schedule/*", element: /* @__PURE__ */ e(jt, {}) },
588
+ // ─── 密钥中心 ───
589
+ { path: "/mist/*", element: /* @__PURE__ */ e(Ut, {}) },
590
+ // ─── 中间件孵化页 (大需求 004) — 主入口在运维工作台 (?mode=ops),此处兜住直链/刷新 ───
591
+ { path: "/meta", element: /* @__PURE__ */ e(o, { to: "/meta/app", replace: !0 }) },
592
+ { path: "/meta/*", element: /* @__PURE__ */ e(Kt, {}) },
593
+ { path: "/msg", element: /* @__PURE__ */ e(o, { to: "/msg/inbox", replace: !0 }) },
594
+ { path: "/msg/*", element: /* @__PURE__ */ e(Ft, {}) },
595
+ { path: "/rpc", element: /* @__PURE__ */ e(o, { to: "/rpc/service", replace: !0 }) },
596
+ { path: "/rpc/*", element: /* @__PURE__ */ e(Qt, {}) },
597
+ // ─── 订阅中心 ───
598
+ { path: "/subscribe", element: /* @__PURE__ */ e(o, { to: "/subscribe/list", replace: !0 }) },
599
+ { path: "/subscribe/*", element: /* @__PURE__ */ e(Yt, {}) },
600
+ // ─── 产品工作台 z-product (2026-10-21 接入) ───
601
+ // /z-product/* 由 z-product 组件自己的 ProductApp 渲染(内部按 manifest 的绝对路径手工匹配,
602
+ // 不用嵌套 <Routes>:这里没有 Route 父上下文,绝对路径不会被再拼一次父前缀)。
603
+ // §14:z-product 的菜单 key / 路由 path 一律带产品名前缀(/z-product/xxx),
604
+ // 避免 /board、/products 这类短路径跟宿主自己的同名路由撞车。
605
+ // 产品域的默认落地页是工坊:它是「一个面板干完产品业务开发」的入口,
606
+ // 全景/蓝图是看板,不是第一动作。
607
+ { path: "/z-product", element: /* @__PURE__ */ e(o, { to: "/z-product/atelier", replace: !0 }) },
608
+ { path: "/z-product/*", element: /* @__PURE__ */ e(fe, { basePath: "/z-product" }) },
609
+ // 旧前缀 /product/* → 新前缀 /z-product/*:§14 前缀化之前的老 URL 仍可达(书签 / 旧分享链接)。
610
+ { path: "/product", element: /* @__PURE__ */ e(o, { to: "/z-product/atelier", replace: !0 }) },
611
+ { path: "/product/*", element: /* @__PURE__ */ e(yn, {}) },
612
+ // ─── 项目中心 ───
613
+ { path: "/project", element: /* @__PURE__ */ e(o, { to: "/project/list", replace: !0 }) },
614
+ { path: "/project/*", element: /* @__PURE__ */ e(Zt, {}) },
615
+ // ─── 脚本中心 (/script/*) — FEATURE052 ───
616
+ { path: "/script", element: /* @__PURE__ */ e(o, { to: "/script/manage", replace: !0 }) },
617
+ { path: "/script/manage", element: /* @__PURE__ */ e(Bt, {}) },
618
+ { path: "/script/productization", element: /* @__PURE__ */ e(Lt, {}) },
619
+ // ─── 工具中心 (/z-tool/*) — FEATURE054 ───
620
+ { path: "/z-tool", element: /* @__PURE__ */ e(o, { to: "/z-tool/curl", replace: !0 }) },
621
+ { path: "/z-tool/curl", element: /* @__PURE__ */ e(V, {}) },
622
+ { path: "/z-tool/webide", element: /* @__PURE__ */ e(X, {}) },
623
+ // ─── 测试中心 (/test/*) — FEATURE061 ───
624
+ { path: "/test", element: /* @__PURE__ */ e(o, { to: "/test/qa/dashboard", replace: !0 }) },
625
+ { path: "/test/mock", element: /* @__PURE__ */ e(kn, {}) },
626
+ // QAApp 内部用 <Routes> 相对路由, 通配匹配后由 QAApp 自己接管子路径
627
+ { path: "/test/qa", element: /* @__PURE__ */ e(ee, {}) },
628
+ { path: "/test/qa/*", element: /* @__PURE__ */ e(ee, {}) },
629
+ // ─── 低代码 ───
630
+ // /lc/* 刻意不在这里注册。它早就迁到 src/lc/(TS 重写), 挂载点是
631
+ // main.jsx 的 <Route path="/lc/*" element={<ZTeamApp forcedMode="dev"/>}/>,
632
+ // 由 DevWorkbench 把 pathname 原样交给 @/lc 自己的嵌套 <Routes>。
633
+ // 本表早先还挂着一行 {path:'/lc/*', element:<LcIndex/>}, 它的 import 写的是
634
+ // '@/pages/lc' —— 该别名解析到 src/zteam/pages/lc(不存在), 真身在 src/lc,
635
+ // 于是这行既解析不了、又因 main.jsx 先消费了 /lc/* 而永远不可达。
636
+ // /form/:entity 与 /form/_model 是 z-lc Phase 1 手写原型的两条 URL
637
+ // (LowCodeModel 实体字段编辑器 / LowCodeRuntime 通用 CRUD), 现已由
638
+ // @yuku123/z-lc-component 承接 —— 它是同一套 /api/lc 后端的完整前端客户,
639
+ // 能力严格更强(designer 模型编辑、workspace 七种视图 CRUD、admin 全套、
640
+ // db-import、AI 建模), 挂在 main.jsx 的 <Route path="/lc/*"> 下经
641
+ // DevWorkbench 的 <LcApp/> 渲染。
642
+ //
643
+ // 不做逐条映射: z-lc 的工作区路由是 /lc/{appCode}/{entityCode}/{viewType},
644
+ // 比 /form/{entityCode} 多一层 appCode, 旧 URL 里没有这个信息, 无法还原。
645
+ // 故统一重定向到应用列表, 由用户自行进入对应应用。
646
+ { path: "/form/:entity", element: /* @__PURE__ */ e(o, { to: "/lc/apps", replace: !0 }) },
647
+ // ─── 各域组件文档(lead 008 §7)───
648
+ // 放在本表末尾即可:matchSystemPath 是「先全表精确匹配、再全表通配匹配」,
649
+ // 所以 /config/docs 这类精确路径**不会**被上面的 /config/* 吃掉。
650
+ //
651
+ // 为什么路径用宿主前缀(/config/docs)而不是各域 manifest 里的 /z-config/docs:
652
+ // manifest 的 routes 是给**独立壳**用的(suit 里 <Route path={r.path}> 直接铺);
653
+ // 工作台把各域挂在宿主前缀下(/config/* ⇒ ConfigApp 内部相对路由),
654
+ // 两套路径对不上 ⇒ manifest 的 routes 在工作台里不生效,文档页会 404。
655
+ // 这里统一按**宿主前缀**挂,各域自己的 manifest 路径仍然保留给独立壳用。
656
+ //
657
+ // §14 铁律(菜单 key 必须带产品名前缀)针对的是**同一宿主内多套件共存**的撞车问题;
658
+ // 这里每个域的宿主前缀本身就已经是产品名(/config / /task / /workflow …),
659
+ // 且各域之间前缀互不相同 ⇒ 不存在撞车,不需要再加 z- 前缀。
660
+ { path: "/config/docs", element: /* @__PURE__ */ e(Vt, {}) },
661
+ { path: "/task/docs", element: /* @__PURE__ */ e(Jt, {}) },
662
+ { path: "/workflow/docs", element: /* @__PURE__ */ e(Xt, {}) },
663
+ { path: "/schedule/docs", element: /* @__PURE__ */ e(en, {}) },
664
+ { path: "/mist/docs", element: /* @__PURE__ */ e(tn, {}) },
665
+ { path: "/meta/docs", element: /* @__PURE__ */ e(nn, {}) },
666
+ { path: "/msg/docs", element: /* @__PURE__ */ e(an, {}) },
667
+ { path: "/rpc/docs", element: /* @__PURE__ */ e(on, {}) },
668
+ { path: "/kb/docs", element: /* @__PURE__ */ e(cn, {}) },
669
+ { path: "/z-product/docs", element: /* @__PURE__ */ e(sn, {}) },
670
+ { path: "/oss/docs", element: /* @__PURE__ */ e(rn, {}) },
671
+ { path: "/vector/docs", element: /* @__PURE__ */ e(ln, {}) },
672
+ { path: "/graph/docs", element: /* @__PURE__ */ e(pn, {}) },
673
+ { path: "/gw/docs", element: /* @__PURE__ */ e(mn, {}) },
674
+ { path: "/cache/docs", element: /* @__PURE__ */ e(un, {}) },
675
+ { path: "/mq/docs", element: /* @__PURE__ */ e(dn, {}) },
676
+ { path: "/ctc/docs", element: /* @__PURE__ */ e(hn, {}) },
677
+ { path: "/ai/docs", element: /* @__PURE__ */ e(bn, {}) },
678
+ { path: "/lc/docs", element: /* @__PURE__ */ e(gn, {}) },
679
+ { path: "/test/qa/docs", element: /* @__PURE__ */ e(_n, {}) }
680
+ ];
681
+ function Sn(c) {
682
+ for (const s of te)
683
+ if (s.path === c) return s.element;
684
+ for (const s of te)
685
+ if (An(s.path, c)) return s.element;
686
+ return /* @__PURE__ */ e(vn, {});
687
+ }
688
+ function An(c, s) {
689
+ if (!c.includes("*") && !c.includes(":")) return !1;
690
+ const m = "^" + c.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, "[^/]+") + "$";
691
+ return new RegExp(m).test(s);
692
+ }
693
+ function Mn() {
694
+ const c = ne(), { pathname: s, search: m } = T(), v = s.startsWith("/test/") || (() => {
695
+ try {
696
+ return new URLSearchParams(m).get("mode") === "test";
697
+ } catch {
698
+ return !1;
699
+ }
700
+ })(), u = A(() => {
701
+ try {
702
+ const g = new URLSearchParams(m), d = g.get("product");
703
+ return d ? { code: d, name: g.get("productName") || d } : null;
704
+ } catch {
705
+ return null;
706
+ }
707
+ }, [m]), D = ie(() => {
708
+ if (!u) return;
709
+ const g = new URLSearchParams();
710
+ g.set("product", u.code), u.name && g.set("productName", u.name), c(`/workspace?mode=product&${g.toString()}`);
711
+ }, [u, c]), b = v && !s.startsWith("/test") ? "/test/qa/dashboard" : s, G = A(() => b, [b]), N = A(() => Sn(b), [b]), {
712
+ width: y,
713
+ dragging: M,
714
+ onHandlePointerDown: z,
715
+ resetWidth: w
716
+ } = Pe("zteam.sidebar.system", 220, 200, 480);
717
+ return /* @__PURE__ */ p("div", { className: i.shellWrap, children: [
718
+ u && /* @__PURE__ */ p("div", { className: i.productBanner, children: [
719
+ /* @__PURE__ */ e("span", { className: i.productBannerLabel, children: "📦 当前产品" }),
720
+ /* @__PURE__ */ e("span", { className: i.productBannerName, title: u.name, children: u.name }),
721
+ /* @__PURE__ */ e("span", { className: i.productBannerCode, children: u.code }),
722
+ /* @__PURE__ */ e("button", { type: "button", className: i.productBannerBack, onClick: D, children: "← 返回产品工作台" })
723
+ ] }),
724
+ /* @__PURE__ */ p("div", { className: i.shell, children: [
725
+ /* @__PURE__ */ e(
726
+ ot,
727
+ {
728
+ activePathOverride: G,
729
+ menuOnly: !0,
730
+ visibleGroups: v ? ["测试中心"] : void 0,
731
+ sidebarWidth: y
732
+ }
733
+ ),
734
+ /* @__PURE__ */ e(
735
+ "div",
736
+ {
737
+ className: `${i.dragBar} ${M ? i.dragBarActive : ""}`,
738
+ onPointerDown: z,
739
+ onDoubleClick: w,
740
+ title: "拖动调整菜单宽度,双击恢复默认"
741
+ }
742
+ ),
743
+ /* @__PURE__ */ p("main", { className: i.main, children: [
744
+ /* @__PURE__ */ e(De, {}),
745
+ /* @__PURE__ */ e(Ge, { resetKey: s, children: /* @__PURE__ */ e(me, { fallback: /* @__PURE__ */ e("div", { className: i.empty, children: "加载中…" }), children: N }) })
746
+ ] })
747
+ ] })
748
+ ] });
749
+ }
750
+ export {
751
+ Mn as default
752
+ };