@yuku123/z-team-component 0.2.133 → 0.2.135

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 (52) hide show
  1. package/dist/{index-BkzBYfhO.js → AdminModuleContent-DHCn4OpR.js} +13552 -14053
  2. package/dist/{ChangeLogView-SwacGpsw.js → ChangeLogView-Cc5cYmcz.js} +1 -1
  3. package/dist/{ComponentDoc-Dh5YhLCI.js → ComponentDoc-BAUII4UZ.js} +707 -713
  4. package/dist/{InvitationManagementPage-CjEcLOGB.js → InvitationManagementPage-BgY1jxQB.js} +1 -1
  5. package/dist/{OnboardingPage-DvNt71kX.js → OnboardingPage-CckzpaI0.js} +2 -2
  6. package/dist/{ScheduledTasks-COgb4MZJ.js → ScheduledTasks-DZSEnuIF.js} +6 -6
  7. package/dist/SystemShell-DCRIL4Rh.js +978 -0
  8. package/dist/{admin-logs-CExsxQ5h.js → admin-logs-DEawvNOd.js} +1 -1
  9. package/dist/{api-DXw93E7c.js → api--xHkMnrY.js} +1 -1
  10. package/dist/{api-C9kTgVc2.js → api-B-nnjGsa.js} +1 -1
  11. package/dist/{createWorkspaceWsHandler-BwDUTYXH.js → createWorkspaceWsHandler-y6pRWLoa.js} +3 -3
  12. package/dist/{index-CntZHojY.js → index-4R_QcR8P.js} +2 -2
  13. package/dist/{index-CXEYA7rt.js → index-B2ztJXV3.js} +2 -2
  14. package/dist/{index-CF3xDZ7q.js → index-BDUHHaoY.js} +4 -4
  15. package/dist/{index-BTJ83JLl.js → index-BIffImVM.js} +473 -358
  16. package/dist/{index-DZ0fYNO9.js → index-C09THX8u.js} +11 -11
  17. package/dist/{index-B2Dfbi8J.js → index-C4cx5Qxu.js} +2 -2
  18. package/dist/{index-COobH4Vi.js → index-C7ng_cdZ.js} +1 -1
  19. package/dist/{index-D2DFKRUf.js → index-C9LqX4Lg.js} +1 -1
  20. package/dist/{index-DM6XeWFk.js → index-CMLlvrEW.js} +2384 -2417
  21. package/dist/{index-DLK7DuCr.js → index-COn912sj.js} +3 -3
  22. package/dist/{index-9rfSVSTh.js → index-CcHrWE4P.js} +2 -2
  23. package/dist/index-Cxoup7V8.js +139 -0
  24. package/dist/{index-B3uLo8-F.js → index-CzS_q6Tn.js} +3 -3
  25. package/dist/{index-Ci6_CBwE.js → index-DWrEAa8-.js} +3 -3
  26. package/dist/{index-DmV6xR7C.js → index-DePIQVt9.js} +3 -3
  27. package/dist/index-DlBN-ou4.js +311 -0
  28. package/dist/{index-ftuPuj0s.js → index-Do3pyigD.js} +1 -1
  29. package/dist/{index-D_J1ZCy8.js → index-DtgTLML8.js} +3 -3
  30. package/dist/{index-t2nMJUPu.js → index-DxXcTAH4.js} +1 -1
  31. package/dist/index-H7hP7Fmj.js +228 -0
  32. package/dist/{index-Bs9odXxd.js → index-LnUf9Vil.js} +6 -6
  33. package/dist/{index-DMfYPIkB.js → index-XWWknPNw.js} +2 -2
  34. package/dist/{index-Ceu-yckM.js → index-frmk-zNf.js} +12 -12
  35. package/dist/{index-mEgmHNRO.js → index-ztXjGIJk.js} +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/{instance-DD3kbAUh.js → instance-DL4u5k9c.js} +1 -1
  38. package/dist/{menuPermission-v0881tid.js → menuPermission-CA_atlfk.js} +3 -3
  39. package/dist/menuTree-Ctcz41N8.js +303 -0
  40. package/dist/pages.js +1 -1
  41. package/dist/{send-default-agent-team-message-Cug0T_7J.js → send-default-agent-team-message-BfBVm9AO.js} +1 -1
  42. package/dist/{sso-user-CnVXqYR7.js → sso-user-Dr8_-Sxd.js} +1 -1
  43. package/dist/{training-BS23m-yy.js → training-CcGUA5KC.js} +1 -1
  44. package/dist/{webide-BPJ1IpZq.js → webide-C2JfQ-Je.js} +3 -3
  45. package/dist/z-team-component.css +1 -1
  46. package/package.json +2 -1
  47. package/dist/SystemShell-CSXcsiNp.js +0 -752
  48. package/dist/index-BNPq7yBg.js +0 -147
  49. package/dist/index-BoY7L8C4.js +0 -111
  50. package/dist/index-CU6jFFl5.js +0 -112
  51. package/dist/index-CZCKpsry.js +0 -607
  52. package/dist/useSidebarResize--Avuabb1.js +0 -46
@@ -1,8 +1,8 @@
1
1
  import { jsxs as f, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as h, useCallback as u } from "react";
3
- import { S as I, P } from "./webide-BPJ1IpZq.js";
4
- import { L as D, P as N, S as H, C as W, E as $, a as j, W as b, b as g, T as B, c as O } from "./ScheduledTasks-COgb4MZJ.js";
5
- import { w as q, p as z } from "./index-DM6XeWFk.js";
3
+ import { S as I, P } from "./webide-C2JfQ-Je.js";
4
+ import { L as D, P as N, S as H, C as W, E as $, a as j, W as b, b as g, T as B, c as O } from "./ScheduledTasks-DZSEnuIF.js";
5
+ import { w as q, p as z } from "./index-CMLlvrEW.js";
6
6
  import { TodoTab as E } from "@yuku123/z-task-component";
7
7
  function J({
8
8
  view: s,
@@ -1,8 +1,8 @@
1
1
  import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
2
  import v, { useState as d, useEffect as _, useMemo as h } from "react";
3
3
  import { useLocation as N } from "react-router-dom";
4
- import { E as b, F as g } from "./ComponentDoc-Dh5YhLCI.js";
5
- import { i as K, P as x } from "./index-ftuPuj0s.js";
4
+ import { E as b, F as g } from "./ComponentDoc-BAUII4UZ.js";
5
+ import { i as K, P as x } from "./index-Do3pyigD.js";
6
6
  const E = "_banner_2v7mc_1", F = "_dot_2v7mc_18", S = "_text_2v7mc_26", f = "_retry_2v7mc_31", A = "_dismiss_2v7mc_44", P = "_details_2v7mc_57", k = "_method_2v7mc_85", C = "_status_2v7mc_86", D = "_statusNet_2v7mc_87", $ = "_url_2v7mc_88", e = {
7
7
  banner: E,
8
8
  dot: F,
@@ -0,0 +1,139 @@
1
+ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
+ import q, { useMemo as h, useState as N, useEffect as I } from "react";
3
+ import { DownOutlined as v, RightOutlined as H } from "@ant-design/icons";
4
+ import { useNavigate as A, useLocation as $ } from "react-router-dom";
5
+ import { menuSections as L, menuItems as O, appMeta as g, routes as w } from "@yuku123/z-cognition-component/pages";
6
+ import { menuItems as P, appMeta as C, routes as T } from "@yuku123/z-cognition-kb-component/pages";
7
+ import { menuItems as E, routes as M } from "@yuku123/z-cognition-indexer-component/pages";
8
+ const R = "_shell_k84qx_6", z = "_sidebar_k84qx_15", U = "_sidebarHeader_k84qx_26", W = "_sidebarHeaderIcon_k84qx_37", j = "_menuList_k84qx_41", D = "_menuGroup_k84qx_48", K = "_menuGroupHeader_k84qx_53", Z = "_menuGroupHeaderOpen_k84qx_72", F = "_menuGroupHeaderActive_k84qx_83", B = "_menuGroupIcon_k84qx_87", J = "_menuGroupLabel_k84qx_96", Q = "_menuGroupArrow_k84qx_101", V = "_menuSubList_k84qx_107", X = "_menuSubItem_k84qx_114", Y = "_menuItemOnPath_k84qx_147", ee = "_menuSubItemPill_k84qx_168", ne = "_menuSubItemActive_k84qx_184", te = "_menuSubItemIcon_k84qx_194", se = "_main_k84qx_210", oe = "_empty_k84qx_219", me = "_emptyIcon_k84qx_229", re = "_emptyText_k84qx_233", e = {
9
+ shell: R,
10
+ sidebar: z,
11
+ sidebarHeader: U,
12
+ sidebarHeaderIcon: W,
13
+ menuList: j,
14
+ menuGroup: D,
15
+ menuGroupHeader: K,
16
+ menuGroupHeaderOpen: Z,
17
+ menuGroupHeaderActive: F,
18
+ menuGroupIcon: B,
19
+ menuGroupLabel: J,
20
+ menuGroupArrow: Q,
21
+ menuSubList: V,
22
+ menuSubItem: X,
23
+ menuItemOnPath: Y,
24
+ menuSubItemPill: ee,
25
+ menuSubItemActive: ne,
26
+ menuSubItemIcon: te,
27
+ main: se,
28
+ empty: oe,
29
+ emptyIcon: me,
30
+ emptyText: re
31
+ }, i = [
32
+ { title: "知识管理", icon: "📚", items: P },
33
+ ...L || [
34
+ { title: "业务认知", icon: "🧠", items: O }
35
+ ],
36
+ // 代码索引(2026-11-10 归纳):z-cognition 代码索引板块(原独立仓 z-indexer,收购后
37
+ // npm 包随之改名 @yuku123/z-cognition-indexer-component)前台四页,
38
+ // 与 admin「知识沉淀 → 知识认知 → 代码认知」同口径:前台查、后台管。
39
+ { title: "代码索引", icon: "🔍", items: E }
40
+ ], b = [
41
+ ...T,
42
+ ...w,
43
+ ...M
44
+ ], ue = "/z-kb/dashboard";
45
+ function ae(m) {
46
+ const o = m.replace(/[.+^${}()|[\]\\]/g, "\\$&");
47
+ return new RegExp(
48
+ `^${o.replace(/:[A-Za-z0-9_]+\*/g, "(?:/.*)?").replace(/:[A-Za-z0-9_]+/g, "[^/]+")}$`
49
+ );
50
+ }
51
+ function ce(m) {
52
+ const o = b.find((n) => n.path === m);
53
+ if (o != null && o.Component) return o.Component;
54
+ for (const n of b)
55
+ if (n.Component) {
56
+ if (n.path.includes(":")) {
57
+ if (ae(n.path).test(m)) return n.Component;
58
+ } else if (m.startsWith(n.path + "/"))
59
+ return n.Component;
60
+ }
61
+ return null;
62
+ }
63
+ function k(m) {
64
+ for (const o of i)
65
+ for (const n of o.items)
66
+ if (m === n.key || m.startsWith(n.key + "/")) return n.key;
67
+ return null;
68
+ }
69
+ function be() {
70
+ var p, _;
71
+ const m = A(), { pathname: o } = $(), n = h(() => k(o), [o]), [x, l] = N(/* @__PURE__ */ new Set());
72
+ I(() => {
73
+ n && i.forEach((s) => {
74
+ s.items.some((r) => r.key === n) && l(
75
+ (r) => r.has(s.title) ? r : new Set(r).add(s.title)
76
+ );
77
+ });
78
+ }, [n]);
79
+ const f = (s) => {
80
+ l((r) => {
81
+ const u = new Set(r);
82
+ return u.has(s) ? u.delete(s) : u.add(s), u;
83
+ });
84
+ };
85
+ I(() => {
86
+ if (!k(o)) {
87
+ const { search: s } = window.location;
88
+ m(`${ue}${s || ""}`, { replace: !0 });
89
+ }
90
+ }, [o, m]);
91
+ const d = h(() => ce(o), [o]);
92
+ return /* @__PURE__ */ c("div", { className: e.shell, children: [
93
+ /* @__PURE__ */ c("aside", { className: e.sidebar, children: [
94
+ /* @__PURE__ */ c("div", { className: e.sidebarHeader, children: [
95
+ /* @__PURE__ */ t("span", { className: e.sidebarHeaderIcon, children: "🧠" }),
96
+ /* @__PURE__ */ t("span", { children: ((p = C) == null ? void 0 : p.title) ?? ((_ = g) == null ? void 0 : _.title) ?? "知识工作台" })
97
+ ] }),
98
+ /* @__PURE__ */ t("nav", { className: e.menuList, children: i.map((s) => {
99
+ const r = x.has(s.title), u = n ? s.items.findIndex((a) => a.key === n) : -1;
100
+ return /* @__PURE__ */ c("div", { className: e.menuGroup, children: [
101
+ /* @__PURE__ */ c(
102
+ "div",
103
+ {
104
+ className: `${e.menuGroupHeader} ${r ? e.menuGroupHeaderOpen : ""} ${u >= 0 ? e.menuGroupHeaderActive : ""}`,
105
+ onClick: () => f(s.title),
106
+ children: [
107
+ /* @__PURE__ */ t("span", { className: e.menuGroupIcon, children: s.icon }),
108
+ /* @__PURE__ */ t("span", { className: e.menuGroupLabel, children: s.title }),
109
+ /* @__PURE__ */ t("span", { className: e.menuGroupArrow, children: r ? /* @__PURE__ */ t(v, {}) : /* @__PURE__ */ t(H, {}) })
110
+ ]
111
+ }
112
+ ),
113
+ r && /* @__PURE__ */ t("ul", { className: e.menuSubList, children: s.items.map((a, S) => {
114
+ const G = u >= 0 && S <= u, y = n === a.key;
115
+ return /* @__PURE__ */ t(
116
+ "li",
117
+ {
118
+ className: `${e.menuSubItem} ${G ? e.menuItemOnPath : ""} ${y ? e.menuSubItemActive : ""}`,
119
+ onClick: () => m(a.key),
120
+ children: /* @__PURE__ */ c("div", { className: e.menuSubItemPill, children: [
121
+ a.icon ? /* @__PURE__ */ t("span", { className: e.menuSubItemIcon, children: a.icon }) : null,
122
+ /* @__PURE__ */ t("span", { children: a.label })
123
+ ] })
124
+ },
125
+ a.key
126
+ );
127
+ }) })
128
+ ] }, s.title);
129
+ }) })
130
+ ] }),
131
+ /* @__PURE__ */ t("main", { className: e.main, children: d ? /* @__PURE__ */ t(q.Suspense, { fallback: /* @__PURE__ */ t("div", { className: e.emptyText, children: "加载中…" }), children: /* @__PURE__ */ t(d, {}) }) : /* @__PURE__ */ c("div", { className: e.empty, children: [
132
+ /* @__PURE__ */ t("div", { className: e.emptyIcon, children: "🧠" }),
133
+ /* @__PURE__ */ t("div", { className: e.emptyText, children: "请从左侧选择认知模块" })
134
+ ] }) })
135
+ ] });
136
+ }
137
+ export {
138
+ be as default
139
+ };
@@ -1,15 +1,15 @@
1
1
  import { jsx as r, jsxs as x } from "react/jsx-runtime";
2
2
  import { f as z, r as T } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as D, h as U, s as F } from "./sso-user-CnVXqYR7.js";
3
+ import { r as D, h as U, s as F } from "./sso-user-Dr8_-Sxd.js";
4
4
  import { CheckCircleFilled as W } from "@ant-design/icons";
5
5
  import { Result as B, Button as H, Spin as G } from "antd";
6
6
  import J from "query-string";
7
7
  import { useState as d, useRef as K, useCallback as O, useMemo as R, useEffect as E } from "react";
8
8
  import { useLocation as Q } from "react-router-dom";
9
9
  import { h as b } from "./history-BlrA1eaW.js";
10
- import { u as s, j as V, k as X } from "./ComponentDoc-Dh5YhLCI.js";
10
+ import { u as s, j as V, k as X } from "./ComponentDoc-BAUII4UZ.js";
11
11
  import { b as Y } from "./mobile-client-O3yr9h6t.js";
12
- import { s as Z } from "./send-default-agent-team-message-Cug0T_7J.js";
12
+ import { s as Z } from "./send-default-agent-team-message-BfBVm9AO.js";
13
13
  function ue() {
14
14
  const h = Q(), f = J.parse(h.search), c = String(
15
15
  f.scenarioCode ?? f.scenario_code ?? ""
@@ -3,15 +3,15 @@ import { SearchOutlined as Ie, ReloadOutlined as Ne, PlusOutlined as xe, ArrowUp
3
3
  import { Input as K, Select as ae, Button as M, Modal as ve, Space as qe, Tooltip as oe, message as P, Tag as H, Popconfirm as ke, Spin as Xe, Empty as Ke, AutoComplete as st, Segmented as Bt, TreeSelect as et, Descriptions as ne, InputNumber as Fe, Drawer as cl, Tabs as Mt, Switch as zt, Radio as yt, Tree as ul, Table as Oe } from "antd";
4
4
  import { ListTable as Ae, DEFAULT_PAGINATION as hl } from "@yuku123/z-frontend-common/ui";
5
5
  import { useState as o, useCallback as de, useEffect as ce, useMemo as pe, useRef as Ft } from "react";
6
- import { f as Ut, a as Gt, b as ct, c as ut, s as vt, d as ml, e as pl, g as tt, h as gl, i as yl, j as vl, k as jt, l as ft, m as fl, n as wl, o as Cl, r as Wt, p as Ht, q as bl, t as wt, u as Il, v as ht, w as mt, x as xl, y as Tl, z as Nl, A as kl, B as Ct, C as Sl, D as _l, E as Al, F as El, G as Dl, H as bt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as It, Q as zl, R as Fl, S as Ul, T as Gl, U as jl } from "./training-BS23m-yy.js";
7
- import { u as Ce, a4 as Wl } from "./ComponentDoc-Dh5YhLCI.js";
6
+ import { f as Ut, a as Gt, b as ct, c as ut, s as vt, d as ml, e as pl, g as tt, h as gl, i as yl, j as vl, k as jt, l as ft, m as fl, n as wl, o as Cl, r as Wt, p as Ht, q as bl, t as wt, u as Il, v as ht, w as mt, x as xl, y as Tl, z as Nl, A as kl, B as Ct, C as Sl, D as _l, E as Al, F as El, G as Dl, H as bt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as It, Q as zl, R as Fl, S as Ul, T as Gl, U as jl } from "./training-CcGUA5KC.js";
7
+ import { u as Ce, a4 as Wl } from "./ComponentDoc-BAUII4UZ.js";
8
8
  import { s as r } from "./index.module-UI0iz8K0.js";
9
9
  import Hl from "dayjs";
10
10
  import xt from "react-markdown";
11
11
  import Tt from "remark-gfm";
12
12
  import { h as be } from "./index.module-CAa-2T7m.js";
13
13
  import { MarkdownLiveEditor as Kl } from "@yuku123/z-markdown-component";
14
- import { h as ql } from "./index-ftuPuj0s.js";
14
+ import { h as ql } from "./index-Do3pyigD.js";
15
15
  function Vl() {
16
16
  const l = Ce((i) => i.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, F] = o(null), [c, A] = o(!1), [C, T] = o(!1), [I, U] = o(null), [u, v] = o([]), [_, y] = o([]), [j, J] = o([]), [Z, O] = o([]), [w, z] = o([]), h = de(async () => {
17
17
  L(!0);
@@ -1,16 +1,16 @@
1
1
  import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
2
  import { f as ie, r as q } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as ne, h as X, s as oe } from "./sso-user-CnVXqYR7.js";
3
+ import { r as ne, h as X, s as oe } from "./sso-user-Dr8_-Sxd.js";
4
4
  import { CheckCircleFilled as le, QuestionCircleOutlined as ce, CloseOutlined as me } from "@ant-design/icons";
5
5
  import { message as P, Result as de, Button as D, Spin as G, Input as ue, Image as fe } from "antd";
6
6
  import pe from "query-string";
7
7
  import { useState as f, useRef as Y, useMemo as K, useCallback as w, useEffect as V } from "react";
8
8
  import { useLocation as ge } from "react-router-dom";
9
9
  import { h as W } from "./history-BlrA1eaW.js";
10
- import { u as c, z as he, j as be, k as _e } from "./ComponentDoc-Dh5YhLCI.js";
10
+ import { u as c, z as he, j as be, k as _e } from "./ComponentDoc-BAUII4UZ.js";
11
11
  /* empty css */
12
12
  import { b as ye } from "./mobile-client-O3yr9h6t.js";
13
- import { a as ve, s as we } from "./send-default-agent-team-message-Cug0T_7J.js";
13
+ import { a as ve, s as we } from "./send-default-agent-team-message-BfBVm9AO.js";
14
14
  const Ne = 5e3, E = 9, Ce = 10 * 1024 * 1024, Se = /^image\//i, Ie = /\.(png|jpe?g|gif|bmp|webp)$/i;
15
15
  function ke(a) {
16
16
  return a.type && Se.test(a.type) ? !0 : Ie.test(a.name || "");
@@ -0,0 +1,311 @@
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
+ import { r as q, h as Q, s as V } from "./sso-user-Dr8_-Sxd.js";
3
+ import { TeamOutlined as X, UserOutlined as Y, MenuFoldOutlined as ee, DownOutlined as U, RightOutlined as $, LogoutOutlined as ne } from "@ant-design/icons";
4
+ import { Dropdown as te, Avatar as ae } from "antd";
5
+ import { useState as x, useMemo as se, useCallback as C, useEffect as re } from "react";
6
+ import { h as G } from "./history-BlrA1eaW.js";
7
+ import { E as oe, h as ce } from "./index-Do3pyigD.js";
8
+ import { M, u as ue, S as ie } from "./menuTree-Ctcz41N8.js";
9
+ import { u as E, k as me } from "./ComponentDoc-BAUII4UZ.js";
10
+ /* empty css */
11
+ import { s as le } from "./admin-logs-DEawvNOd.js";
12
+ import de from "./AdminModuleContent-DHCn4OpR.js";
13
+ const he = "_adminLayout_e0cuy_3", _e = "_topBanner_e0cuy_40", pe = "_bannerLeft_e0cuy_52", be = "_bannerLogo_e0cuy_58", ye = "_bannerBrand_e0cuy_65", ge = "_bannerProduct_e0cuy_71", we = "_bannerSubtitle_e0cuy_78", Ie = "_bannerRight_e0cuy_84", fe = "_modeBtn_e0cuy_115", Se = "_headerUser_e0cuy_135", ve = "_headerUsername_e0cuy_149", Be = "_adminBody_e0cuy_160", ke = "_sidebar_e0cuy_168", Pe = "_menuSection_e0cuy_179", Ae = "_collapseAllBtn_e0cuy_193", Ne = "_menuList_e0cuy_210", Le = "_menuItem_e0cuy_219", Re = "_menuItemActive_e0cuy_241", Oe = "_menuGroupRowOpen_e0cuy_252", Ue = "_menuGroupRowBranch_e0cuy_262", $e = "_menuItemIcon_e0cuy_266", xe = "_dragBar_e0cuy_284", Ce = "_dragBarActive_e0cuy_305", Ge = "_contentArea_e0cuy_310", Ee = "_contentBody_e0cuy_318", Me = "_menuItemGroup_e0cuy_329", We = "_menuExpandIcon_e0cuy_334", De = "_menuSubList_e0cuy_342", Fe = "_menuItemOnPath_e0cuy_372", Te = "_menuSubItem_e0cuy_376", je = "_menuSubItemActive_e0cuy_393", ze = "_menuSubItemBranch_e0cuy_411", He = "_menuSubItemBranchOpen_e0cuy_415", Ze = "_menuSubItemBranchActive_e0cuy_425", Je = "_menuSubItemRow_e0cuy_435", Ke = "_menuNestedList_e0cuy_441", e = {
14
+ adminLayout: he,
15
+ topBanner: _e,
16
+ bannerLeft: pe,
17
+ bannerLogo: be,
18
+ bannerBrand: ye,
19
+ bannerProduct: ge,
20
+ bannerSubtitle: we,
21
+ bannerRight: Ie,
22
+ modeBtn: fe,
23
+ headerUser: Se,
24
+ headerUsername: ve,
25
+ adminBody: Be,
26
+ sidebar: ke,
27
+ menuSection: Pe,
28
+ collapseAllBtn: Ae,
29
+ menuList: Ne,
30
+ menuItem: Le,
31
+ menuItemActive: Re,
32
+ menuGroupRowOpen: Oe,
33
+ menuGroupRowBranch: Ue,
34
+ menuItemIcon: $e,
35
+ dragBar: xe,
36
+ dragBarActive: Ce,
37
+ contentArea: Ge,
38
+ contentBody: Ee,
39
+ menuItemGroup: Me,
40
+ menuExpandIcon: We,
41
+ menuSubList: De,
42
+ menuItemOnPath: Fe,
43
+ menuSubItem: Te,
44
+ menuSubItemActive: je,
45
+ menuSubItemBranch: ze,
46
+ menuSubItemBranchOpen: He,
47
+ menuSubItemBranchActive: Ze,
48
+ menuSubItemRow: Je,
49
+ menuNestedList: Ke
50
+ }, qe = `${window.publicPath ?? "/"}logo.png`;
51
+ function Qe() {
52
+ const c = new URLSearchParams(window.location.search), o = c.get("menu"), a = o;
53
+ if (a === "statistics")
54
+ return "statistics-global";
55
+ if (a === "statistics-scenario-multi" || a === "statistics-scenario-daily" || a === "statistics-scenario-comprehensive")
56
+ return "statistics-scenario";
57
+ if (a === "knowledge")
58
+ return c.get("tab") === "notes" ? "knowledge-notes" : "knowledge-base";
59
+ if (a === "evaluation-group-chat")
60
+ return "evaluation-group-chat-snapshot";
61
+ if (o === "evaluation-group-chat-trend")
62
+ return B("evaluation-group-chat-audits"), "evaluation-group-chat-audits";
63
+ if (o === "evaluation-group-chat-datasets") {
64
+ const s = new URL(window.location.href);
65
+ return s.searchParams.set("menu", "evaluation-group-chat-config"), s.searchParams.delete("tab"), window.history.replaceState(window.history.state, "", s.toString()), "evaluation-group-chat-config";
66
+ }
67
+ if (o === "evaluation-group-chat-specs") {
68
+ const s = new URL(window.location.href);
69
+ return s.searchParams.set("menu", "evaluation-group-chat-config"), s.searchParams.set("tab", "specs"), window.history.replaceState(window.history.state, "", s.toString()), "evaluation-group-chat-config";
70
+ }
71
+ if (o === "evaluation-group-chat-workspace") {
72
+ const s = new URL(window.location.href);
73
+ return s.searchParams.set("menu", "evaluation-group-chat-audits"), s.searchParams.get("tab") === "monitor" ? s.searchParams.set("tab", "monitor") : s.searchParams.set("tab", "browse"), window.history.replaceState(window.history.state, "", s.toString()), "evaluation-group-chat-audits";
74
+ }
75
+ return a && ie.includes(a) ? a : c.get("instanceId") ? "statistics-ops" : "scenario";
76
+ }
77
+ function W(c, o = M) {
78
+ var a;
79
+ for (const s of o) {
80
+ if (s.key === c) return [];
81
+ if ((a = s.children) != null && a.length) {
82
+ const m = W(c, s.children);
83
+ if (m) return [s.key, ...m];
84
+ }
85
+ }
86
+ return null;
87
+ }
88
+ function v(c, o) {
89
+ var a;
90
+ return c.key === o || !!((a = c.children) != null && a.some((s) => v(s, o)));
91
+ }
92
+ function B(c, o) {
93
+ const a = new URL(window.location.href);
94
+ a.searchParams.set("menu", c), a.searchParams.delete("tab"), a.searchParams.delete("roundId"), o != null && o !== "" ? a.searchParams.set("instanceId", String(o)) : a.searchParams.delete("instanceId"), window.history.replaceState(window.history.state, "", a.toString());
95
+ }
96
+ function mn({
97
+ onSwitchToCollaboration: c,
98
+ onOpenProject: o,
99
+ onOpenTodo: a,
100
+ embedded: s = !1
101
+ }) {
102
+ const [m, k] = x(Qe), [P, g] = x(() => {
103
+ const n = new URLSearchParams(window.location.search);
104
+ return !n.has("menu") && !n.has("instanceId") ? /* @__PURE__ */ new Set() : new Set(W(m) ?? []);
105
+ }), { currentUser: r, updateCurrentUser: w } = E(), {
106
+ width: A,
107
+ dragging: D,
108
+ onHandlePointerDown: F,
109
+ resetWidth: T
110
+ } = ue("zteam.sidebar.admin", 176, 160, 420), j = (n) => !n || ce(r, n), z = se(() => {
111
+ const n = (d) => d.map(
112
+ (l) => {
113
+ var y;
114
+ return (y = l.children) != null && y.length ? { ...l, children: n(l.children) } : l;
115
+ }
116
+ ).filter(
117
+ (l) => j(l.permission) && // 叶子直接保留;分组需有存活的子菜单(子菜单全部无权限时隐藏父级组)
118
+ (!l.children || l.children.length > 0)
119
+ );
120
+ return n(M);
121
+ }, [r == null ? void 0 : r.permissions, r == null ? void 0 : r.is_global_admin]), I = C((n) => {
122
+ k(n), B(n);
123
+ }, []), H = C(
124
+ (n) => {
125
+ if (a) {
126
+ a(n);
127
+ return;
128
+ }
129
+ G.push(`/workspace?mode=workbench&todoId=${n}`);
130
+ },
131
+ [a]
132
+ );
133
+ re(() => {
134
+ if (r) return;
135
+ const n = q();
136
+ !n || !Q(n) || (w(V(n)), E.getState().token, me().then((d) => w(d)).catch(() => {
137
+ }));
138
+ }, [r, w]);
139
+ const Z = r != null && r.avatar && (r.avatar.startsWith("http") || r.avatar.startsWith("data:")) ? r.avatar : void 0, J = [
140
+ {
141
+ key: "logout",
142
+ icon: /* @__PURE__ */ t(ne, {}),
143
+ label: "退出登录",
144
+ onClick: () => {
145
+ le();
146
+ }
147
+ }
148
+ ], K = () => /* @__PURE__ */ t(
149
+ de,
150
+ {
151
+ menuKey: m,
152
+ onEnterProject: c,
153
+ onOpenProject: o,
154
+ onOpenTodo: H,
155
+ onJumpToMenu: (n, d) => {
156
+ k(n), B(n, d);
157
+ }
158
+ }
159
+ );
160
+ return /* @__PURE__ */ i("div", { className: `team-workspace-root ${e.adminLayout}`, children: [
161
+ !s && /* @__PURE__ */ i("header", { className: e.topBanner, children: [
162
+ /* @__PURE__ */ i("div", { className: e.bannerLeft, children: [
163
+ /* @__PURE__ */ t(
164
+ "img",
165
+ {
166
+ src: qe,
167
+ alt: "Z-OPC",
168
+ className: e.bannerLogo
169
+ }
170
+ ),
171
+ /* @__PURE__ */ i("div", { className: e.bannerBrand, children: [
172
+ /* @__PURE__ */ t("span", { className: e.bannerProduct, children: "Z-OPC" }),
173
+ /* @__PURE__ */ t("span", { className: e.bannerSubtitle, children: "一人公司基建 · 运营工作台" })
174
+ ] })
175
+ ] }),
176
+ /* @__PURE__ */ i("div", { className: e.bannerRight, children: [
177
+ /* @__PURE__ */ i(
178
+ "button",
179
+ {
180
+ type: "button",
181
+ className: e.modeBtn,
182
+ onClick: () => {
183
+ c ? c() : G.push("/workspace");
184
+ },
185
+ title: "切换到协作工作台",
186
+ children: [
187
+ /* @__PURE__ */ t(X, {}),
188
+ /* @__PURE__ */ t("span", { children: "协作工作台" })
189
+ ]
190
+ }
191
+ ),
192
+ r ? /* @__PURE__ */ t(
193
+ te,
194
+ {
195
+ menu: { items: J },
196
+ placement: "bottomRight",
197
+ trigger: ["click"],
198
+ children: /* @__PURE__ */ i("div", { className: e.headerUser, children: [
199
+ /* @__PURE__ */ t(
200
+ ae,
201
+ {
202
+ size: 28,
203
+ src: Z,
204
+ icon: /* @__PURE__ */ t(Y, {}),
205
+ style: {
206
+ backgroundColor: "#2F70F1",
207
+ flexShrink: 0
208
+ }
209
+ }
210
+ ),
211
+ /* @__PURE__ */ t("span", { className: e.headerUsername, children: r.display_name })
212
+ ] })
213
+ }
214
+ ) : null
215
+ ] })
216
+ ] }),
217
+ /* @__PURE__ */ i("div", { className: e.adminBody, children: [
218
+ /* @__PURE__ */ i("aside", { className: e.sidebar, style: { width: A, minWidth: A }, children: [
219
+ /* @__PURE__ */ i("div", { className: e.menuSection, children: [
220
+ /* @__PURE__ */ t("span", { children: "配置管理" }),
221
+ /* @__PURE__ */ t(
222
+ "button",
223
+ {
224
+ type: "button",
225
+ className: e.collapseAllBtn,
226
+ onClick: () => g(/* @__PURE__ */ new Set()),
227
+ title: "全部收起",
228
+ children: /* @__PURE__ */ t(ee, {})
229
+ }
230
+ )
231
+ ] }),
232
+ /* @__PURE__ */ t("ul", { className: e.menuList, children: z.map((n) => {
233
+ var N;
234
+ const d = !!((N = n.children) != null && N.length), l = P.has(n.key), y = v(n, m), f = d ? n.children.findIndex((u) => v(u, m)) : -1;
235
+ return /* @__PURE__ */ i("li", { className: e.menuItemGroup, children: [
236
+ /* @__PURE__ */ i(
237
+ "div",
238
+ {
239
+ className: `${e.menuItem} ${l ? e.menuGroupRowOpen : ""} ${y ? e.menuGroupRowBranch : ""} ${m === n.key && !d ? e.menuItemActive : ""}`,
240
+ onClick: () => {
241
+ d ? g((u) => {
242
+ const _ = new Set(u);
243
+ return _.has(n.key) ? _.delete(n.key) : _.add(n.key), _;
244
+ }) : I(n.key);
245
+ },
246
+ children: [
247
+ /* @__PURE__ */ t("span", { className: e.menuItemIcon, children: n.icon }),
248
+ /* @__PURE__ */ t("span", { children: n.label }),
249
+ d && /* @__PURE__ */ t("span", { className: e.menuExpandIcon, children: l ? /* @__PURE__ */ t(U, {}) : /* @__PURE__ */ t($, {}) })
250
+ ]
251
+ }
252
+ ),
253
+ d && l && /* @__PURE__ */ t("ul", { className: e.menuSubList, children: n.children.map((u, _) => {
254
+ var O;
255
+ const p = !!((O = u.children) != null && O.length), S = P.has(u.key), L = f >= 0 && _ <= f, R = p ? u.children.findIndex(
256
+ (h) => h.key === m
257
+ ) : -1;
258
+ return /* @__PURE__ */ i(
259
+ "li",
260
+ {
261
+ className: `${e.menuItemGroup} ${L ? e.menuItemOnPath : ""}`,
262
+ children: [
263
+ /* @__PURE__ */ i(
264
+ "div",
265
+ {
266
+ className: `${e.menuSubItem} ${e.menuSubItemRow} ${p ? e.menuSubItemBranch : ""} ${p && S ? e.menuSubItemBranchOpen : ""} ${_ === f ? e.menuSubItemBranchActive : ""} ${L ? e.menuItemOnPath : ""} ${m === u.key && !p ? e.menuSubItemActive : ""}`,
267
+ onClick: () => {
268
+ p ? g((h) => {
269
+ const b = new Set(h);
270
+ return b.has(u.key) ? b.delete(u.key) : b.add(u.key), b;
271
+ }) : I(u.key);
272
+ },
273
+ children: [
274
+ /* @__PURE__ */ t("span", { children: u.label }),
275
+ p && /* @__PURE__ */ t("span", { className: e.menuExpandIcon, children: S ? /* @__PURE__ */ t(U, {}) : /* @__PURE__ */ t($, {}) })
276
+ ]
277
+ }
278
+ ),
279
+ p && S && /* @__PURE__ */ t("ul", { className: e.menuNestedList, children: u.children.map((h, b) => /* @__PURE__ */ t(
280
+ "li",
281
+ {
282
+ className: `${e.menuSubItem} ${R >= 0 && b <= R ? e.menuItemOnPath : ""} ${m === h.key ? e.menuSubItemActive : ""}`,
283
+ onClick: () => I(h.key),
284
+ children: h.label
285
+ },
286
+ h.key
287
+ )) })
288
+ ]
289
+ },
290
+ u.key
291
+ );
292
+ }) })
293
+ ] }, n.key);
294
+ }) })
295
+ ] }),
296
+ /* @__PURE__ */ t(
297
+ "div",
298
+ {
299
+ className: `${e.dragBar} ${D ? e.dragBarActive : ""}`,
300
+ onPointerDown: F,
301
+ onDoubleClick: T,
302
+ title: "拖动调整菜单宽度,双击恢复默认"
303
+ }
304
+ ),
305
+ /* @__PURE__ */ t("main", { className: e.contentArea, children: /* @__PURE__ */ t("div", { className: e.contentBody, children: /* @__PURE__ */ t(oe, { children: K() }) }) })
306
+ ] })
307
+ ] });
308
+ }
309
+ export {
310
+ mn as default
311
+ };
@@ -1,4 +1,4 @@
1
- import { a as h, f as _, B as N, D as A, t as g } from "./ComponentDoc-Dh5YhLCI.js";
1
+ import { a as h, f as _, B as N, D as A, t as g } from "./ComponentDoc-BAUII4UZ.js";
2
2
  import { jsx as p, jsxs as I } from "react/jsx-runtime";
3
3
  import { useMemo as S, useState as C, useEffect as G, Component as D } from "react";
4
4
  function L(t) {
@@ -2,11 +2,11 @@ import { jsxs as r, jsx as a, Fragment as lt } from "react/jsx-runtime";
2
2
  import { ReloadOutlined as dt, AppstoreOutlined as pt, DeploymentUnitOutlined as ut, SearchOutlined as mt, RightOutlined as ht, TeamOutlined as _t, MessageOutlined as gt } from "@ant-design/icons";
3
3
  import { Button as Q, Select as Ae, Spin as ue, Empty as f, Tag as I, Input as O } from "antd";
4
4
  import { useState as p, useCallback as g, useEffect as me, useMemo as he, useRef as vt } from "react";
5
- import { u as $ } from "./ComponentDoc-Dh5YhLCI.js";
5
+ import { u as $ } from "./ComponentDoc-BAUII4UZ.js";
6
6
  import { h as W } from "./history-BlrA1eaW.js";
7
7
  import { menuItems as Nt } from "@yuku123/z-product-component";
8
- import { C as yt } from "./createWorkspaceWsHandler-BwDUTYXH.js";
9
- import { l as ft, c as wt } from "./api-C9kTgVc2.js";
8
+ import { C as yt } from "./createWorkspaceWsHandler-y6pRWLoa.js";
9
+ import { l as ft, c as wt } from "./api-B-nnjGsa.js";
10
10
  const bt = "product-workspace", qe = "productCode";
11
11
  function w(n) {
12
12
  if (!n.ok) throw new Error(`产品接口失败 (${n.status})`);
@@ -1,7 +1,7 @@
1
1
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as N, useRef as _, useEffect as r, useCallback as h } from "react";
3
3
  import { h as o } from "./history-BlrA1eaW.js";
4
- import { C as A } from "./ChangeLogView-SwacGpsw.js";
4
+ import { C as A } from "./ChangeLogView-Cc5cYmcz.js";
5
5
  const T = "_docs_3auja_12", p = "_bgLayer_3auja_59", v = "_bgGrid_3auja_70", y = "_navbar_3auja_87", f = "_navLeft_3auja_103", z = "_navBack_3auja_110", j = "_navBrand_3auja_132", C = "_navLogo_3auja_139", k = "_navTitle_3auja_154", L = "_navLink_3auja_164", I = "_layout_3auja_191", B = "_sidebar_3auja_202", S = "_sidebarInner_3auja_213", O = "_sidebarTitle_3auja_217", q = "_tocItem_3auja_227", P = "_tocActive_3auja_249", E = "_tocNum_3auja_260", D = "_content_3auja_275", G = "_section_3auja_285", K = "_secTitle_3auja_290", w = "_subTitle_3auja_301", M = "_lead_3auja_309", x = "_list_3auja_329", R = "_olist_3auja_360", Z = "_archLayer_3auja_397", F = "_archHead_3auja_412", W = "_archNum_3auja_420", H = "_archHeadText_3auja_432", Q = "_archLabel_3auja_439", U = "_archEn_3auja_446", V = "_archTagline_3auja_453", $ = "_callout_3auja_487", J = "_calloutBlue_3auja_488", Y = "_calloutGreen_3auja_489", X = "_calloutRed_3auja_490", ee = "_inlineCode_3auja_531", le = "_codeBlock_3auja_544", ne = "_tableWrap_3auja_560", ce = "_table_3auja_560", ae = "_tableKey_3auja_602", ie = "_tableIcon_3auja_607", te = "_statusDot_3auja_613", se = "_tone_pending_3auja_622", de = "_tone_running_3auja_626", re = "_tone_suspended_3auja_631", he = "_tone_done_3auja_636", oe = "_tone_failed_3auja_641", me = "_tone_cancelled_3auja_646", ge = "_markGood_3auja_652", ue = "_markBad_3auja_653", be = "_faqList_3auja_667", Ne = "_faqItem_3auja_673", _e = "_faqQ_3auja_687", Ae = "_faqA_3auja_694", Te = "_changelogEmbed_3auja_701", pe = "_changelogTip_3auja_709", ve = "_changelogLink_3auja_715", ye = "_docFooter_3auja_727", fe = "_backBtn_3auja_738", ze = "_docFooterText_3auja_761", l = {
6
6
  docs: T,
7
7
  bgLayer: p,