@yuku123/z-team-component 0.2.111 → 0.2.113

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 (45) hide show
  1. package/dist/{ChangeLogView-B7cMx3Bi.js → ChangeLogView-BQVeGGOq.js} +1 -1
  2. package/dist/{ComponentDoc-B6TVciFv.js → ComponentDoc-DuZKO_M0.js} +3 -3
  3. package/dist/{InvitationManagementPage-Da8qCTmd.js → InvitationManagementPage-Uy0SaSpc.js} +1 -1
  4. package/dist/{OnboardingPage-BUmvx6p7.js → OnboardingPage-BRTW83xZ.js} +2 -2
  5. package/dist/{ScheduledTasks-ZvrskUuu.js → ScheduledTasks-BxyAFM5v.js} +6 -6
  6. package/dist/{SystemShell-aeO9jKKr.js → SystemShell-mIYbM1gS.js} +4 -4
  7. package/dist/{admin-logs-CknnGuR4.js → admin-logs-BEa--KWA.js} +1 -1
  8. package/dist/{api-3uFbzaqp.js → api-C5oaKh01.js} +1 -1
  9. package/dist/{api-BYPtX7kc.js → api-CQhA4HzE.js} +1 -1
  10. package/dist/{createWorkspaceWsHandler-CidEgesk.js → createWorkspaceWsHandler-Bxyh4dDh.js} +3 -3
  11. package/dist/{index-D6EuWCRD.js → index-64rvQ2mT.js} +2 -2
  12. package/dist/{index-BnZc0pbx.js → index-6SduZQvN.js} +1 -1
  13. package/dist/{index-BN8EFwf0.js → index-B4OuXuSz.js} +253 -247
  14. package/dist/{index-Dx9UpJZN.js → index-B4wlUoF-.js} +1 -1
  15. package/dist/{index-CF2w7f7D.js → index-BD4XbsQS.js} +2 -2
  16. package/dist/{index-0fFX5-t1.js → index-BdeiDVvr.js} +3 -3
  17. package/dist/{index-BZqJulGw.js → index-Bho7jIk6.js} +3 -3
  18. package/dist/{index-ByRgBkJO.js → index-Bi_dV1or.js} +2 -2
  19. package/dist/{index-CKIzCbcm.js → index-BmEwnxYd.js} +1 -1
  20. package/dist/index-CP2ncRCL.js +147 -0
  21. package/dist/{index-BAIVuQuX.js → index-Cl_TNvrb.js} +3 -3
  22. package/dist/{index-BrNcqiL0.js → index-CoqvbnH9.js} +4 -4
  23. package/dist/{index-DDc_NN8J.js → index-Cxe1ocyx.js} +1 -1
  24. package/dist/{index-CB0X1hPQ.js → index-D6vXsumL.js} +6 -6
  25. package/dist/{index-CjGCP9FP.js → index-DEeNTifq.js} +5 -5
  26. package/dist/{index-Dg3xzNu_.js → index-DjQ5WeY9.js} +2 -2
  27. package/dist/{index-HPCdZacc.js → index-DlteNbYc.js} +3 -3
  28. package/dist/{index-C-wU3z6v.js → index-DzfP7CaA.js} +1 -1
  29. package/dist/{index-BXk3bjiv.js → index-SQ95AbXB.js} +3 -3
  30. package/dist/{index-CDQA4QdC.js → index-cZNgGxUN.js} +2 -2
  31. package/dist/{index-DLuLYnIB.js → index-du-uzXT2.js} +2 -2
  32. package/dist/{index-CVoS2loC.js → index-eCL-bT4M.js} +3 -3
  33. package/dist/{index-C9HASn0X.js → index-sE67AqD0.js} +3 -3
  34. package/dist/{index-CMXFhbO9.js → index-vS2KDimS.js} +6 -6
  35. package/dist/{index-BOoa-ZUV.js → index-zSFI8OQ7.js} +2 -2
  36. package/dist/index.js +1 -1
  37. package/dist/{instance-Dm3M39Qs.js → instance-CwoNz-fv.js} +1 -1
  38. package/dist/{menuPermission-D-FEv6Mp.js → menuPermission-Brjt76gw.js} +3 -3
  39. package/dist/pages.js +1 -1
  40. package/dist/{send-default-agent-team-message-BjGCuqxm.js → send-default-agent-team-message-BVbchNl7.js} +1 -1
  41. package/dist/{sso-user-Bp_hz18Y.js → sso-user-epKai_nP.js} +1 -1
  42. package/dist/{training-BikyoDuw.js → training-S_S7Dd_A.js} +1 -1
  43. package/dist/{webide-C4vtuekF.js → webide-BrWP9HqH.js} +3 -3
  44. package/package.json +1 -1
  45. package/dist/index-cfu1Eo4O.js +0 -143
@@ -1,18 +1,18 @@
1
1
  import { jsx as e, jsxs as o, Fragment as et } from "react/jsx-runtime";
2
- import { a as he, f as Le, B as Me, v as Ye, b as Nt, aq as ia, ar as as, u as V, T as hn, as as os, at as ca, t as Xe, au as In, a6 as Re, av as ss, aw as rs, g as is, aa as cs, an as ko, c as ls, n as Wt, ax as ds, ay as us, az as ms, _ as la, a4 as ps, aA as qt, aB as hs, aC as fs, aj as gs, ak as _s, a8 as ys, e as bo, i as ks, Q as bs, U as vs, V as ws, W as Ns, Y as Cs, k as Ss, aD as Ts } from "./ComponentDoc-B6TVciFv.js";
2
+ import { a as he, f as Le, B as Me, v as Ye, b as Ct, aq as ia, ar as as, u as V, T as hn, as as os, at as ca, t as Xe, au as In, a6 as Re, av as ss, aw as rs, g as is, aa as cs, an as ko, c as ls, n as Wt, ax as ds, ay as us, az as ms, _ as la, a4 as ps, aA as qt, aB as hs, aC as fs, aj as gs, ak as _s, a8 as ys, e as bo, i as ks, Q as bs, U as vs, V as ws, W as Ns, Y as Cs, k as Ss, aD as Ts } from "./ComponentDoc-DuZKO_M0.js";
3
3
  import { s as Is, r as Ln, f as Ls } from "./ctc-sso-DtJHC-2M.js";
4
- import { r as Ms, h as xa, s as Ea } from "./sso-user-Bp_hz18Y.js";
4
+ import { r as Ms, h as xa, s as Ea } from "./sso-user-epKai_nP.js";
5
5
  import { Input as gn, Tooltip as _n, Spin as _t, Tabs as ha, Popconfirm as Zn, Button as At, Empty as Mn, Modal as yn, Form as un, Checkbox as $s, Tag as As, Select as xs, Popover as Pa, Dropdown as Es, Avatar as Ps, message as Oa } from "antd";
6
6
  import fn from "query-string";
7
7
  import { useState as d, useRef as ue, useCallback as J, useEffect as z, createElement as Os, useLayoutEffect as vo, useMemo as De, memo as Ds, Suspense as $n, lazy as bt } from "react";
8
8
  import { useLocation as Rs, useNavigate as Fs } from "react-router-dom";
9
- import { h as $t } from "./history-BlrA1eaW.js";
10
- import { z as Ne, A as Bs, B as wo, S as No, D as js, E as Da, F as Ra, G as Hs, H as Ws, u as fa, i as Co, v as Us, I as zs, J as Fa, K as Gs, L as Ks, M as qs, N as Vs, O as Js, a as Ys, P as Qs, Q as Zs, R as Xs, U as er, V as m, W as Bn, C as tr, c as nr, X as ar } from "./createWorkspaceWsHandler-CidEgesk.js";
9
+ import { h as wt } from "./history-BlrA1eaW.js";
10
+ import { z as Ne, A as Bs, B as wo, S as No, D as js, E as Da, F as Ra, G as Hs, H as Ws, u as fa, i as Co, v as Us, I as zs, J as Fa, K as Gs, L as Ks, M as qs, N as Vs, O as Js, a as Ys, P as Qs, Q as Zs, R as Xs, U as er, V as m, W as Bn, C as tr, c as nr, X as ar } from "./createWorkspaceWsHandler-Bxyh4dDh.js";
11
11
  import { BarChartOutlined as or, PieChartOutlined as sr, LinkOutlined as So, UnorderedListOutlined as rr, FileTextOutlined as ga, ReadOutlined as To, ConsoleSqlOutlined as ir, DashboardOutlined as cr, SearchOutlined as Rn, CloseOutlined as sn, ProfileOutlined as lr, CustomerServiceOutlined as Io, ThunderboltOutlined as Ba, MessageOutlined as dr, ReloadOutlined as ur, UndoOutlined as mr, DeleteOutlined as pr, FolderOpenOutlined as hr, BugOutlined as _a, SolutionOutlined as fr, BellOutlined as gr, CheckOutlined as _r, SettingOutlined as da, LaptopOutlined as yr, MenuFoldOutlined as kr, HeartOutlined as br, BookOutlined as vr, BulbOutlined as wr, TeamOutlined as Nr, ProductOutlined as Cr, CodeOutlined as Sr, CloudServerOutlined as Tr, DatabaseOutlined as Ir, AppstoreOutlined as Lr, UserOutlined as Mr, NotificationOutlined as $r, LogoutOutlined as Ar } from "@ant-design/icons";
12
- import { h as jn, f as xr, E as ja } from "./index-Dx9UpJZN.js";
13
- import { s as Lo } from "./admin-logs-CknnGuR4.js";
12
+ import { h as jn, f as xr, E as ja } from "./index-B4wlUoF-.js";
13
+ import { s as Lo } from "./admin-logs-BEa--KWA.js";
14
14
  import { createPortal as Mo } from "react-dom";
15
- import { c as Er, l as Pr, j as Or } from "./instance-Dm3M39Qs.js";
15
+ import { c as Er, l as Pr, j as Or } from "./instance-CwoNz-fv.js";
16
16
  import Ha from "react-markdown";
17
17
  import Wa from "rehype-highlight";
18
18
  import Ua from "remark-gfm";
@@ -298,14 +298,14 @@ async function r_(t, n, a, r) {
298
298
  return;
299
299
  }
300
300
  const K = T.body.getReader(), Y = new TextDecoder();
301
- let M = "";
301
+ let $ = "";
302
302
  for (; ; ) {
303
303
  const { done: O, value: G } = await K.read();
304
304
  if (O) break;
305
- M += Y.decode(G, { stream: !0 });
306
- const U = M.split(`
305
+ $ += Y.decode(G, { stream: !0 });
306
+ const U = $.split(`
307
307
  `);
308
- M = U.pop() || "";
308
+ $ = U.pop() || "";
309
309
  for (const E of U) {
310
310
  const R = E.trim();
311
311
  if (!(!R || R.startsWith(":")) && R.startsWith("data:")) {
@@ -454,7 +454,7 @@ async function f_(t, n = "", a = "") {
454
454
  `${Me}/personal-agents/${t}/files/tree${c ? "?" + c : ""}`,
455
455
  Le
456
456
  );
457
- return Nt(u, "获取文件列表失败");
457
+ return Ct(u, "获取文件列表失败");
458
458
  }
459
459
  async function g_(t, n = "", a = "") {
460
460
  const r = new URLSearchParams();
@@ -463,7 +463,7 @@ async function g_(t, n = "", a = "") {
463
463
  `${Me}/personal-agents/${t}/files/content${c ? "?" + c : ""}`,
464
464
  Le
465
465
  );
466
- return Nt(u, "读取文件内容失败");
466
+ return Ct(u, "读取文件内容失败");
467
467
  }
468
468
  async function __(t, n = 1, a = 20, r = "") {
469
469
  const c = new URLSearchParams();
@@ -472,7 +472,7 @@ async function __(t, n = 1, a = 20, r = "") {
472
472
  `${Me}/personal-agents/${t}/skills?${c.toString()}`,
473
473
  Le
474
474
  );
475
- return Nt(u, "获取 Skill 列表失败");
475
+ return Ct(u, "获取 Skill 列表失败");
476
476
  }
477
477
  async function y_(t, n, a, r = "") {
478
478
  const c = r ? `?token=${encodeURIComponent(r)}` : "", u = await he(
@@ -486,14 +486,14 @@ async function y_(t, n, a, r = "") {
486
486
  body: JSON.stringify({ enable: a })
487
487
  }
488
488
  );
489
- return Nt(u, "切换 Skill 失败");
489
+ return Ct(u, "切换 Skill 失败");
490
490
  }
491
491
  async function $o(t = "") {
492
492
  const n = t ? `?token=${encodeURIComponent(t)}` : "", a = await he(
493
493
  `${Me}/personal/local-agent/status${n}`,
494
494
  Le
495
495
  );
496
- return Nt(a, "获取本地 Agent 状态失败");
496
+ return Ct(a, "获取本地 Agent 状态失败");
497
497
  }
498
498
  async function Ur(t, n, a, r, c = "") {
499
499
  const { onToken: u, onReasoning: p, onEvent: h, onFinal: k, onError: L, onComplete: W } = a, x = {
@@ -519,7 +519,7 @@ async function Ur(t, n, a, r, c = "") {
519
519
  return;
520
520
  }
521
521
  const K = T.body.getReader(), Y = new TextDecoder();
522
- let M = "", O = "";
522
+ let $ = "", O = "";
523
523
  const G = (U) => {
524
524
  var f, g;
525
525
  const E = U.trim();
@@ -556,9 +556,9 @@ async function Ur(t, n, a, r, c = "") {
556
556
  for (; ; ) {
557
557
  const { done: U, value: E } = await K.read();
558
558
  if (U) break;
559
- M += Y.decode(E, { stream: !0 });
560
- const R = M.split(/\r?\n\r?\n/);
561
- M = R.pop() ?? "";
559
+ $ += Y.decode(E, { stream: !0 });
560
+ const R = $.split(/\r?\n\r?\n/);
561
+ $ = R.pop() ?? "";
562
562
  for (const f of R)
563
563
  for (const g of f.split(/\r?\n/)) {
564
564
  const y = g.trim();
@@ -608,7 +608,7 @@ function zr(t, n, a, r) {
608
608
  }, [n, a]), z(() => {
609
609
  const T = (Y) => {
610
610
  if (!h.current) return;
611
- const M = Y.clientX - k.current, O = L.current + M, G = Math.min(
611
+ const $ = Y.clientX - k.current, O = L.current + $, G = Math.min(
612
612
  x.current,
613
613
  Math.max(W.current, O)
614
614
  ), U = p.current;
@@ -1235,7 +1235,7 @@ function kl({
1235
1235
  onOpenSearch: T,
1236
1236
  searchActive: K,
1237
1237
  onOpenPersonalTab: Y,
1238
- onOpenWorkbenchShell: M,
1238
+ onOpenWorkbenchShell: $,
1239
1239
  onCloudNav: O,
1240
1240
  cloudNavActive: G
1241
1241
  }) {
@@ -1484,7 +1484,7 @@ function kl({
1484
1484
  type: "button",
1485
1485
  className: H.moreFlyoutItem,
1486
1486
  onClick: () => {
1487
- C(null), M();
1487
+ C(null), $();
1488
1488
  },
1489
1489
  children: [
1490
1490
  /* @__PURE__ */ e(
@@ -1663,7 +1663,7 @@ function I_(t) {
1663
1663
  };
1664
1664
  }
1665
1665
  function Il() {
1666
- const t = V((U) => U.token), n = va() || typeof localStorage < "u" && localStorage.getItem("ft_exclusive_force_desktop") === "1", [a, r] = d(!1), [c, u] = d([]), [p, h] = d(null), [k, L] = d(!1), [W, x] = d([]), [w, T] = d(0), K = n || k, Y = c.find((U) => U.id === p) ?? null, M = K && a && c.length > 0;
1666
+ const t = V((U) => U.token), n = va() || typeof localStorage < "u" && localStorage.getItem("ft_exclusive_force_desktop") === "1", [a, r] = d(!1), [c, u] = d([]), [p, h] = d(null), [k, L] = d(!1), [W, x] = d([]), [w, T] = d(0), K = n || k, Y = c.find((U) => U.id === p) ?? null, $ = K && a && c.length > 0;
1667
1667
  z(() => {
1668
1668
  let U = !0;
1669
1669
  const E = async () => {
@@ -1723,8 +1723,8 @@ function Il() {
1723
1723
  }
1724
1724
  }, [K, a, Y]);
1725
1725
  z(() => {
1726
- M && O();
1727
- }, [M, O, w]);
1726
+ $ && O();
1727
+ }, [$, O, w]);
1728
1728
  const G = J(() => {
1729
1729
  T((U) => U + 1);
1730
1730
  }, []);
@@ -1804,7 +1804,7 @@ const Xa = {
1804
1804
  function xl({
1805
1805
  onCountChange: t
1806
1806
  }) {
1807
- const n = V((P) => P.projects), a = V((P) => P.openTaskFromTodo), [r, c] = d(Xa), [u, p] = d(!1), [h, k] = d(!1), [L, W] = d(!1), [x, w] = d(null), [T, K] = d(""), [Y, M] = d(""), O = ue(null), G = ue(null), U = ue(null), E = ue(!1), R = ue(r), f = ue(null), g = ue(null), y = ue(Y);
1807
+ const n = V((P) => P.projects), a = V((P) => P.openTaskFromTodo), [r, c] = d(Xa), [u, p] = d(!1), [h, k] = d(!1), [L, W] = d(!1), [x, w] = d(null), [T, K] = d(""), [Y, $] = d(""), O = ue(null), G = ue(null), U = ue(null), E = ue(!1), R = ue(r), f = ue(null), g = ue(null), y = ue(Y);
1808
1808
  R.current = r, y.current = Y;
1809
1809
  const C = J(async (P) => {
1810
1810
  const v = new URLSearchParams({
@@ -1889,7 +1889,7 @@ function xl({
1889
1889
  }, [i, Y]);
1890
1890
  const ae = J((P) => {
1891
1891
  K(P), g.current && clearTimeout(g.current), g.current = setTimeout(() => {
1892
- M(P.trim());
1892
+ $(P.trim());
1893
1893
  }, 400);
1894
1894
  }, []);
1895
1895
  z(() => () => {
@@ -2079,7 +2079,7 @@ function dd() {
2079
2079
  moved: !1,
2080
2080
  startY: 0,
2081
2081
  startTop: 0
2082
- }), L = ue(null), [W, x] = d([]), [w, T] = d(!1), K = ue(null), [Y, M] = d(!1), O = V((F) => F.currentProject), G = V((F) => F.token), U = O ? `${O.workspace_path}_${O.id}` : "global_scratchpad", E = (O == null ? void 0 : O.name) || (O == null ? void 0 : O.scenario_name) || "速记", R = O ? JSON.stringify({ type: "team", id: O.id }) : "", f = J(() => {
2082
+ }), L = ue(null), [W, x] = d([]), [w, T] = d(!1), K = ue(null), [Y, $] = d(!1), O = V((F) => F.currentProject), G = V((F) => F.token), U = O ? `${O.workspace_path}_${O.id}` : "global_scratchpad", E = (O == null ? void 0 : O.name) || (O == null ? void 0 : O.scenario_name) || "速记", R = O ? JSON.stringify({ type: "team", id: O.id }) : "", f = J(() => {
2083
2083
  K.current && (clearTimeout(K.current), K.current = null);
2084
2084
  }, []), g = J(
2085
2085
  (F) => {
@@ -2171,7 +2171,7 @@ function dd() {
2171
2171
  icon: /* @__PURE__ */ e(Io, {}),
2172
2172
  label: "自身答疑",
2173
2173
  onClick: () => {
2174
- M(!0), n(!1);
2174
+ $(!0), n(!1);
2175
2175
  }
2176
2176
  }
2177
2177
  ], j = (F) => {
@@ -2408,7 +2408,7 @@ function dd() {
2408
2408
  No,
2409
2409
  {
2410
2410
  open: Y,
2411
- onClose: () => M(!1)
2411
+ onClose: () => $(!1)
2412
2412
  }
2413
2413
  )
2414
2414
  ] });
@@ -2496,7 +2496,7 @@ function Eu() {
2496
2496
  var ze, at;
2497
2497
  const { agentProfileState: t, closeAgentProfile: n, navigateToPersonalChat: a } = V(), r = V((ee) => ee.token), [c, u] = d(!1), [p, h] = d(
2498
2498
  null
2499
- ), [k, L] = d(!1), [W, x] = d(null), [w, T] = d(!1), [K, Y] = d("info"), [M, O] = d(
2499
+ ), [k, L] = d(!1), [W, x] = d(null), [w, T] = d(!1), [K, Y] = d("info"), [$, O] = d(
2500
2500
  null
2501
2501
  ), [G, U] = d(null), [E, R] = d([]), [f, g] = d(
2502
2502
  null
@@ -2655,8 +2655,8 @@ function Eu() {
2655
2655
  )}/files/content?path=${encodeURIComponent(Qe)}`
2656
2656
  );
2657
2657
  if (qe.ok) {
2658
- const it = await qe.json(), Ct = (it == null ? void 0 : it.data) || it;
2659
- C((Ct == null ? void 0 : Ct.content) || "");
2658
+ const it = await qe.json(), St = (it == null ? void 0 : it.data) || it;
2659
+ C((St == null ? void 0 : St.content) || "");
2660
2660
  }
2661
2661
  }
2662
2662
  }
@@ -2694,7 +2694,7 @@ function Eu() {
2694
2694
  let le = ke;
2695
2695
  for (let Qe = 0; Qe < xe.length; Qe++) {
2696
2696
  const qe = xe.slice(0, Qe + 1).join("/");
2697
- let it = le.children.find((Ct) => Ct.name === xe[Qe]);
2697
+ let it = le.children.find((St) => St.name === xe[Qe]);
2698
2698
  it || (it = {
2699
2699
  name: xe[Qe],
2700
2700
  path: qe,
@@ -2987,7 +2987,7 @@ function Eu() {
2987
2987
  ]
2988
2988
  }
2989
2989
  ),
2990
- M && /* @__PURE__ */ e(
2990
+ $ && /* @__PURE__ */ e(
2991
2991
  "div",
2992
2992
  {
2993
2993
  className: D.memoryDetailOverlay,
@@ -3001,7 +3001,7 @@ function Eu() {
3001
3001
  onClick: (ee) => ee.stopPropagation(),
3002
3002
  children: [
3003
3003
  /* @__PURE__ */ o("div", { className: D.memoryDetailHeader, children: [
3004
- /* @__PURE__ */ e("div", { className: D.memoryDetailTitle, children: M.title || M.name }),
3004
+ /* @__PURE__ */ e("div", { className: D.memoryDetailTitle, children: $.title || $.name }),
3005
3005
  /* @__PURE__ */ e(
3006
3006
  "button",
3007
3007
  {
@@ -3014,10 +3014,10 @@ function Eu() {
3014
3014
  ] }),
3015
3015
  /* @__PURE__ */ o("div", { className: D.memoryDetailBody, children: [
3016
3016
  /* @__PURE__ */ o("div", { className: D.memoryDetailMeta, children: [
3017
- M.name && /* @__PURE__ */ e("span", { className: D.memoryDetailMetaTag, children: M.name }),
3018
- M.keywords && /* @__PURE__ */ e("span", { className: D.memoryDetailMetaTag, children: M.keywords })
3017
+ $.name && /* @__PURE__ */ e("span", { className: D.memoryDetailMetaTag, children: $.name }),
3018
+ $.keywords && /* @__PURE__ */ e("span", { className: D.memoryDetailMetaTag, children: $.keywords })
3019
3019
  ] }),
3020
- M.description && /* @__PURE__ */ e(
3020
+ $.description && /* @__PURE__ */ e(
3021
3021
  "p",
3022
3022
  {
3023
3023
  style: {
@@ -3025,7 +3025,7 @@ function Eu() {
3025
3025
  color: "var(--text-secondary, #666)",
3026
3026
  marginBottom: 16
3027
3027
  },
3028
- children: M.description
3028
+ children: $.description
3029
3029
  }
3030
3030
  ),
3031
3031
  /* @__PURE__ */ e("div", { className: D.memoryDetailContent, children: /* @__PURE__ */ e(
@@ -3033,7 +3033,7 @@ function Eu() {
3033
3033
  {
3034
3034
  remarkPlugins: [Ua],
3035
3035
  rehypePlugins: [Wa],
3036
- children: M.content || "(空文件)"
3036
+ children: $.content || "(空文件)"
3037
3037
  }
3038
3038
  ) })
3039
3039
  ] })
@@ -3126,7 +3126,7 @@ function Ou({
3126
3126
  onClose: n,
3127
3127
  onCreated: a
3128
3128
  }) {
3129
- const [r, c] = d(""), [u, p] = d([]), [h, k] = d(Pu), [L, W] = d([]), [x, w] = d(!1), [T, K] = d(null), [Y, M] = d(""), [O, G] = d(!1), [U, E] = d("");
3129
+ const [r, c] = d(""), [u, p] = d([]), [h, k] = d(Pu), [L, W] = d([]), [x, w] = d(!1), [T, K] = d(null), [Y, $] = d(""), [O, G] = d(!1), [U, E] = d("");
3130
3130
  z(() => {
3131
3131
  let y = !1;
3132
3132
  return rs().then((C) => {
@@ -3221,7 +3221,7 @@ function Ou({
3221
3221
  rows: 4,
3222
3222
  placeholder: "请输入想咨询的业务问题,如:这个页面上的 XX 功能是怎么实现的?(支持 Ctrl+V 粘贴图片)",
3223
3223
  value: Y,
3224
- onChange: (y) => M(y.target.value),
3224
+ onChange: (y) => $(y.target.value),
3225
3225
  onPaste: f
3226
3226
  }
3227
3227
  ) }),
@@ -3396,7 +3396,7 @@ function Ru({
3396
3396
  onCreated: a
3397
3397
  }) {
3398
3398
  var fe, pe, rt;
3399
- const [r, c] = d("link"), [u, p] = d(""), [h, k] = d([]), [L, W] = d(!1), [x, w] = d(), [T, K] = d(""), [Y, M] = d([]), [O, G] = d(0), [U, E] = d(!1), [R, f] = d(1), [g, y] = d(10), [C, i] = d(
3399
+ const [r, c] = d("link"), [u, p] = d(""), [h, k] = d([]), [L, W] = d(!1), [x, w] = d(), [T, K] = d(""), [Y, $] = d([]), [O, G] = d(0), [U, E] = d(!1), [R, f] = d(1), [g, y] = d(10), [C, i] = d(
3400
3400
  null
3401
3401
  ), [I, B] = d(!1), [ae, j] = d(""), [te, F] = d(""), [S, N] = d(!1), [ne, $e] = d(
3402
3402
  null
@@ -3448,9 +3448,9 @@ function Ru({
3448
3448
  R,
3449
3449
  g
3450
3450
  );
3451
- M(q.records || []), G(q.total || 0);
3451
+ $(q.records || []), G(q.total || 0);
3452
3452
  } catch (q) {
3453
- M([]), G(0), j(q.message || "查询工单列表失败");
3453
+ $([]), G(0), j(q.message || "查询工单列表失败");
3454
3454
  } finally {
3455
3455
  E(!1);
3456
3456
  }
@@ -3927,7 +3927,7 @@ function Cm({
3927
3927
  onProjectCreated: n,
3928
3928
  presetScenarioCode: a
3929
3929
  }) {
3930
- const { createScenarioInstance: r, sendChatMessage: c, token: u } = V(), p = fa(), [h, k] = d([]), [L, W] = d(""), [x, w] = d(!0), [T, K] = d(""), [Y, M] = d(""), [O, G] = d(!1);
3930
+ const { createScenarioInstance: r, sendChatMessage: c, token: u } = V(), p = fa(), [h, k] = d([]), [L, W] = d(""), [x, w] = d(!0), [T, K] = d(""), [Y, $] = d(""), [O, G] = d(!1);
3931
3931
  z(() => {
3932
3932
  let f = !1;
3933
3933
  return (async () => {
@@ -4000,7 +4000,7 @@ function Cm({
4000
4000
  rows: 4,
4001
4001
  placeholder: "规划与编程,@ 添加上下文,/ 使用命令",
4002
4002
  value: Y,
4003
- onChange: (f) => M(f.target.value),
4003
+ onChange: (f) => $(f.target.value),
4004
4004
  onKeyDown: (f) => {
4005
4005
  Co(f, p.sendKey) && !f.nativeEvent.isComposing && (f.preventDefault(), E());
4006
4006
  },
@@ -4096,7 +4096,7 @@ async function A_(t, n, a = "") {
4096
4096
  method: "DELETE"
4097
4097
  }
4098
4098
  );
4099
- return Nt(c, "删除定时任务失败");
4099
+ return Ct(c, "删除定时任务失败");
4100
4100
  }
4101
4101
  async function x_(t, n, a, r = "") {
4102
4102
  const c = r ? `?token=${encodeURIComponent(r)}` : "", u = await he(
@@ -4116,7 +4116,7 @@ async function E_(t, n, a = 1, r = 20, c = "") {
4116
4116
  const p = await he(
4117
4117
  `${Me}/personal-agents/${t}/schedules/${n}/logs?${u.toString()}`,
4118
4118
  Le
4119
- ), h = await Nt(p, "获取执行历史失败");
4119
+ ), h = await Ct(p, "获取执行历史失败");
4120
4120
  return Wo(h);
4121
4121
  }
4122
4122
  async function P_(t, n, a = "") {
@@ -4136,7 +4136,7 @@ async function O_(t, n = "", a = "") {
4136
4136
  `${Me}/personal-agents/${t}/schedules/staff-search?${r.toString()}`,
4137
4137
  Le
4138
4138
  );
4139
- return (await Nt(c, "搜索员工失败") ?? []).map((p) => {
4139
+ return (await Ct(c, "搜索员工失败") ?? []).map((p) => {
4140
4140
  const h = (p == null ? void 0 : p.extend) ?? {};
4141
4141
  return {
4142
4142
  userId: String((p == null ? void 0 : p.userId) ?? (p == null ? void 0 : p.id) ?? ""),
@@ -4153,7 +4153,7 @@ async function Sm(t = "", n = 50) {
4153
4153
  const r = await he(
4154
4154
  `${Me}/personal-agents/schedules/notifications?${a.toString()}`,
4155
4155
  Le
4156
- ), c = await Nt(r, "获取通知失败");
4156
+ ), c = await Ct(r, "获取通知失败");
4157
4157
  return Wo(c);
4158
4158
  }
4159
4159
  async function Tm(t, n = "") {
@@ -4164,7 +4164,7 @@ async function Tm(t, n = "") {
4164
4164
  method: "POST"
4165
4165
  }
4166
4166
  );
4167
- return Nt(r, "标记已读失败");
4167
+ return Ct(r, "标记已读失败");
4168
4168
  }
4169
4169
  async function Im(t = "") {
4170
4170
  const n = t ? `?token=${encodeURIComponent(t)}` : "", a = await he(
@@ -4174,7 +4174,7 @@ async function Im(t = "") {
4174
4174
  method: "POST"
4175
4175
  }
4176
4176
  );
4177
- return Nt(a, "标记已读失败");
4177
+ return Ct(a, "标记已读失败");
4178
4178
  }
4179
4179
  const Lm = "_bellBtn_zkdkx_2", Mm = "_badge_zkdkx_25", $m = "_overlay_zkdkx_44", Am = "_panel_zkdkx_55", xm = "_panelHeader_zkdkx_70", Em = "_panelTitle_zkdkx_79", Pm = "_markAllBtn_zkdkx_85", Om = "_panelBody_zkdkx_101", Dm = "_empty_zkdkx_107", Rm = "_item_zkdkx_115", Fm = "_itemUnread_zkdkx_130", Bm = "_itemHeader_zkdkx_135", jm = "_statusDot_zkdkx_142", Hm = "_statusSuccess_zkdkx_149", Wm = "_statusFail_zkdkx_153", Um = "_itemTask_zkdkx_157", zm = "_markReadBtn_zkdkx_167", Gm = "_itemMeta_zkdkx_185", Km = "_itemResult_zkdkx_194", Ze = {
4180
4180
  bellBtn: Lm,
@@ -4198,43 +4198,43 @@ const Lm = "_bellBtn_zkdkx_2", Mm = "_badge_zkdkx_25", $m = "_overlay_zkdkx_44",
4198
4198
  itemResult: Km
4199
4199
  };
4200
4200
  function qm() {
4201
- const t = V((M) => M.token), n = fa(), a = ue(null), [r, c] = d([]), [u, p] = d(0), [h, k] = d(!1), L = ue(null), [W, x] = d({ top: 0, right: 0 }), w = J(async () => {
4201
+ const t = V(($) => $.token), n = fa(), a = ue(null), [r, c] = d([]), [u, p] = d(0), [h, k] = d(!1), L = ue(null), [W, x] = d({ top: 0, right: 0 }), w = J(async () => {
4202
4202
  try {
4203
- const M = await Sm(t, 30), O = a.current;
4204
- O && n.desktopNotify && document.hidden && M.items.filter((G) => G.readFlag === 0 && !O.has(String(G.id))).slice(0, 3).forEach(
4203
+ const $ = await Sm(t, 30), O = a.current;
4204
+ O && n.desktopNotify && document.hidden && $.items.filter((G) => G.readFlag === 0 && !O.has(String(G.id))).slice(0, 3).forEach(
4205
4205
  (G) => Us(
4206
4206
  G.taskName || "工作通知",
4207
4207
  G.result || G.agentDisplayName || "有新的工作通知"
4208
4208
  )
4209
- ), a.current = new Set(M.items.map((G) => String(G.id))), c(M.items), p(M.unread);
4209
+ ), a.current = new Set($.items.map((G) => String(G.id))), c($.items), p($.unread);
4210
4210
  } catch {
4211
4211
  }
4212
4212
  }, [t, n.desktopNotify]);
4213
4213
  z(() => {
4214
4214
  w();
4215
- const M = setInterval(w, 3e4);
4216
- return () => clearInterval(M);
4215
+ const $ = setInterval(w, 3e4);
4216
+ return () => clearInterval($);
4217
4217
  }, [w]);
4218
4218
  const T = () => {
4219
- const M = !h;
4220
- if (M && L.current) {
4219
+ const $ = !h;
4220
+ if ($ && L.current) {
4221
4221
  const O = L.current.getBoundingClientRect();
4222
4222
  x({
4223
4223
  top: O.bottom + 4,
4224
4224
  right: window.innerWidth - O.right
4225
4225
  }), w();
4226
4226
  }
4227
- k(M);
4228
- }, K = async (M) => {
4227
+ k($);
4228
+ }, K = async ($) => {
4229
4229
  try {
4230
- await Tm(M, t), c(
4231
- (O) => O.map((G) => Wt(G.id, M) ? { ...G, readFlag: 1 } : G)
4230
+ await Tm($, t), c(
4231
+ (O) => O.map((G) => Wt(G.id, $) ? { ...G, readFlag: 1 } : G)
4232
4232
  ), p((O) => Math.max(0, O - 1));
4233
4233
  } catch {
4234
4234
  }
4235
4235
  }, Y = async () => {
4236
4236
  try {
4237
- await Im(t), c((M) => M.map((O) => ({ ...O, readFlag: 1 }))), p(0);
4237
+ await Im(t), c(($) => $.map((O) => ({ ...O, readFlag: 1 }))), p(0);
4238
4238
  } catch {
4239
4239
  }
4240
4240
  };
@@ -4273,37 +4273,37 @@ function qm() {
4273
4273
  }
4274
4274
  )
4275
4275
  ] }),
4276
- /* @__PURE__ */ e("div", { className: Ze.panelBody, children: r.length === 0 ? /* @__PURE__ */ e("div", { className: Ze.empty, children: "暂无通知" }) : r.map((M) => /* @__PURE__ */ o(
4276
+ /* @__PURE__ */ e("div", { className: Ze.panelBody, children: r.length === 0 ? /* @__PURE__ */ e("div", { className: Ze.empty, children: "暂无通知" }) : r.map(($) => /* @__PURE__ */ o(
4277
4277
  "div",
4278
4278
  {
4279
- className: `${Ze.item} ${M.readFlag === 0 ? Ze.itemUnread : ""}`,
4279
+ className: `${Ze.item} ${$.readFlag === 0 ? Ze.itemUnread : ""}`,
4280
4280
  children: [
4281
4281
  /* @__PURE__ */ o("div", { className: Ze.itemHeader, children: [
4282
4282
  /* @__PURE__ */ e(
4283
4283
  "span",
4284
4284
  {
4285
- className: `${Ze.statusDot} ${M.status === "success" ? Ze.statusSuccess : Ze.statusFail}`
4285
+ className: `${Ze.statusDot} ${$.status === "success" ? Ze.statusSuccess : Ze.statusFail}`
4286
4286
  }
4287
4287
  ),
4288
- /* @__PURE__ */ e("span", { className: Ze.itemTask, children: M.taskName || "未知任务" }),
4289
- M.readFlag === 0 && /* @__PURE__ */ e(
4288
+ /* @__PURE__ */ e("span", { className: Ze.itemTask, children: $.taskName || "未知任务" }),
4289
+ $.readFlag === 0 && /* @__PURE__ */ e(
4290
4290
  "button",
4291
4291
  {
4292
4292
  type: "button",
4293
4293
  className: Ze.markReadBtn,
4294
- onClick: () => K(M.id),
4294
+ onClick: () => K($.id),
4295
4295
  children: "已读"
4296
4296
  }
4297
4297
  )
4298
4298
  ] }),
4299
4299
  /* @__PURE__ */ o("div", { className: Ze.itemMeta, children: [
4300
- /* @__PURE__ */ e("span", { children: M.agentDisplayName || "Agent" }),
4301
- M.createTime && /* @__PURE__ */ e("span", { children: M.createTime.slice(5, 16).replace("T", " ") })
4300
+ /* @__PURE__ */ e("span", { children: $.agentDisplayName || "Agent" }),
4301
+ $.createTime && /* @__PURE__ */ e("span", { children: $.createTime.slice(5, 16).replace("T", " ") })
4302
4302
  ] }),
4303
- M.result && /* @__PURE__ */ e("div", { className: Ze.itemResult, children: M.result.length > 120 ? M.result.slice(0, 120) + "..." : M.result })
4303
+ $.result && /* @__PURE__ */ e("div", { className: Ze.itemResult, children: $.result.length > 120 ? $.result.slice(0, 120) + "..." : $.result })
4304
4304
  ]
4305
4305
  },
4306
- M.id
4306
+ $.id
4307
4307
  )) })
4308
4308
  ]
4309
4309
  }
@@ -4409,9 +4409,9 @@ function tp({
4409
4409
  return z(() => {
4410
4410
  if (!u) return;
4411
4411
  const x = (T) => {
4412
- var Y, M;
4412
+ var Y, $;
4413
4413
  const K = T.target;
4414
- (Y = L.current) != null && Y.contains(K) || (M = W.current) != null && M.contains(K) || p(!1);
4414
+ (Y = L.current) != null && Y.contains(K) || ($ = W.current) != null && $.contains(K) || p(!1);
4415
4415
  }, w = (T) => {
4416
4416
  T.key === "Escape" && p(!1);
4417
4417
  };
@@ -4720,7 +4720,7 @@ function Et(t, n, a, r = !1) {
4720
4720
  const c = (u = t[n]) == null ? void 0 : u[a];
4721
4721
  return typeof c == "boolean" ? c : r;
4722
4722
  }
4723
- function wt({
4723
+ function Nt({
4724
4724
  checked: t,
4725
4725
  onChange: n,
4726
4726
  title: a
@@ -4792,7 +4792,7 @@ function Qp({
4792
4792
  /* @__PURE__ */ o("section", { className: b.section, children: [
4793
4793
  /* @__PURE__ */ e("h3", { className: b.sectionTitle, children: "存储" }),
4794
4794
  /* @__PURE__ */ e("div", { className: b.card, children: /* @__PURE__ */ e(Ie, { title: "本地会话缓存", desc: "缓存会话记录以加速历史加载。", children: /* @__PURE__ */ e(
4795
- wt,
4795
+ Nt,
4796
4796
  {
4797
4797
  checked: Et(t, "general", "chatCache", !0),
4798
4798
  onChange: (a) => n("general", { chatCache: a })
@@ -4857,7 +4857,7 @@ function Xp({
4857
4857
  }
4858
4858
  ),
4859
4859
  /* @__PURE__ */ e(Ie, { title: "紧凑消息密度", desc: "聊天消息行距更紧凑。", children: /* @__PURE__ */ e(
4860
- wt,
4860
+ Nt,
4861
4861
  {
4862
4862
  checked: Et(t, "appearance", "compact"),
4863
4863
  onChange: (a) => n("appearance", { compact: a })
@@ -4927,7 +4927,7 @@ function th({
4927
4927
  }
4928
4928
  ) }),
4929
4929
  /* @__PURE__ */ e(Ie, { title: "建议追问", desc: "回复结束后给出可点的追问建议。", children: /* @__PURE__ */ e(
4930
- wt,
4930
+ Nt,
4931
4931
  {
4932
4932
  checked: Et(t, "personalize", "suggestReplies", !0),
4933
4933
  onChange: (a) => n("personalize", { suggestReplies: a })
@@ -4944,7 +4944,7 @@ function nh({
4944
4944
  /* @__PURE__ */ e("h3", { className: b.sectionTitle, children: "记忆与进化" }),
4945
4945
  /* @__PURE__ */ o("div", { className: b.card, children: [
4946
4946
  /* @__PURE__ */ e(Ie, { title: "对话记忆", desc: "允许伙伴记住对话要点,越用越懂你。", children: /* @__PURE__ */ e(
4947
- wt,
4947
+ Nt,
4948
4948
  {
4949
4949
  checked: Et(t, "memory", "enabled", !0),
4950
4950
  onChange: (a) => n("memory", { enabled: a })
@@ -4972,14 +4972,14 @@ function ah({
4972
4972
  /* @__PURE__ */ e("h3", { className: b.sectionTitle, children: "智能体" }),
4973
4973
  /* @__PURE__ */ o("div", { className: b.card, children: [
4974
4974
  /* @__PURE__ */ e(Ie, { title: "会话自动小结", desc: "新建会话时自动为上一个会话生成小结,显示在聊天记录里。", children: /* @__PURE__ */ e(
4975
- wt,
4975
+ Nt,
4976
4976
  {
4977
4977
  checked: Et(t, "agents", "autoSummary", !0),
4978
4978
  onChange: (a) => n("agents", { autoSummary: a })
4979
4979
  }
4980
4980
  ) }),
4981
4981
  /* @__PURE__ */ e(Ie, { title: "开场问候", desc: "新任务页显示伙伴问候语。", children: /* @__PURE__ */ e(
4982
- wt,
4982
+ Nt,
4983
4983
  {
4984
4984
  checked: Et(t, "agents", "greeting", !0),
4985
4985
  onChange: (a) => n("agents", { greeting: a })
@@ -4996,14 +4996,14 @@ function oh({
4996
4996
  /* @__PURE__ */ e("h3", { className: b.sectionTitle, children: "助理" }),
4997
4997
  /* @__PURE__ */ o("div", { className: b.card, children: [
4998
4998
  /* @__PURE__ */ e(Ie, { title: "任务到期提醒", desc: "定时任务到期时提醒你。", children: /* @__PURE__ */ e(
4999
- wt,
4999
+ Nt,
5000
5000
  {
5001
5001
  checked: Et(t, "assistant", "reminders", !0),
5002
5002
  onChange: (a) => n("assistant", { reminders: a })
5003
5003
  }
5004
5004
  ) }),
5005
5005
  /* @__PURE__ */ e(Ie, { title: "每日工作摘要", desc: "每天汇总你的任务进展。", children: /* @__PURE__ */ e(
5006
- wt,
5006
+ Nt,
5007
5007
  {
5008
5008
  checked: Et(t, "assistant", "dailyDigest"),
5009
5009
  onChange: (a) => n("assistant", { dailyDigest: a })
@@ -5037,7 +5037,7 @@ function sh({
5037
5037
  title: "桌面端系统通知",
5038
5038
  desc: c ? "收到伙伴回复或工作通知时弹系统通知。" : "当前浏览器不支持系统通知,请在桌面客户端使用。",
5039
5039
  children: /* @__PURE__ */ e(
5040
- wt,
5040
+ Nt,
5041
5041
  {
5042
5042
  checked: Et(t, "devices", "desktopNotify", !0),
5043
5043
  onChange: (k) => {
@@ -5066,7 +5066,7 @@ function rh({
5066
5066
  /* @__PURE__ */ e("h3", { className: b.sectionTitle, children: "安全中心" }),
5067
5067
  /* @__PURE__ */ o("div", { className: b.card, children: [
5068
5068
  /* @__PURE__ */ e(Ie, { title: "登录提醒", desc: "新设备首次访问工作台时通知你。", children: /* @__PURE__ */ e(
5069
- wt,
5069
+ Nt,
5070
5070
  {
5071
5071
  checked: Et(t, "security", "loginNotify", !0),
5072
5072
  onChange: (a) => n("security", { loginNotify: a })
@@ -5157,7 +5157,7 @@ function ch({ token: t }) {
5157
5157
  z(() => {
5158
5158
  Y();
5159
5159
  }, [Y]);
5160
- const M = /^https?:\/\/.+/i.test(u.endpoint.trim()), O = !L && u.name.trim() !== "" && M && u.apiKey.trim() !== "" && u.modelName.trim() !== "", G = async () => {
5160
+ const $ = /^https?:\/\/.+/i.test(u.endpoint.trim()), O = !L && u.name.trim() !== "" && $ && u.apiKey.trim() !== "" && u.modelName.trim() !== "", G = async () => {
5161
5161
  if (O) {
5162
5162
  W(!0);
5163
5163
  try {
@@ -5217,7 +5217,7 @@ function ch({ token: t }) {
5217
5217
  ] })
5218
5218
  ] }),
5219
5219
  /* @__PURE__ */ e(
5220
- wt,
5220
+ Nt,
5221
5221
  {
5222
5222
  checked: R.enable,
5223
5223
  title: R.enable ? "停用" : "启用",
@@ -5280,7 +5280,7 @@ function ch({ token: t }) {
5280
5280
  onChange: (R) => p({ ...u, endpoint: R.target.value })
5281
5281
  }
5282
5282
  ),
5283
- u.endpoint.trim() !== "" && !M && /* @__PURE__ */ e("div", { className: b.formHint, children: "端点需以 http:// 或 https:// 开头" })
5283
+ u.endpoint.trim() !== "" && !$ && /* @__PURE__ */ e("div", { className: b.formHint, children: "端点需以 http:// 或 https:// 开头" })
5284
5284
  ] }),
5285
5285
  /* @__PURE__ */ e(
5286
5286
  "input",
@@ -5334,7 +5334,7 @@ function dh() {
5334
5334
  /* @__PURE__ */ o("div", { className: b.card, children: [
5335
5335
  /* @__PURE__ */ e(Ie, { title: "z-team 智能工作台", desc: "个人工作台 / 协作工作台 / 群学习。", children: /* @__PURE__ */ o("span", { className: b.mono, children: [
5336
5336
  "v",
5337
- "0.2.110"
5337
+ "0.2.113"
5338
5338
  ] }) }),
5339
5339
  /* @__PURE__ */ e(Ie, { title: "运行形态", desc: "Web 浏览器接入,也可内嵌于桌面客户端。", children: /* @__PURE__ */ e("span", { className: b.mono, children: "Web" }) }),
5340
5340
  /* @__PURE__ */ e(Ie, { title: "统一认证", desc: "登录态由 4A / CTC SSO 托管。", children: /* @__PURE__ */ e("span", { className: b.mono, children: "SSO" }) }),
@@ -5395,7 +5395,7 @@ function mh({
5395
5395
  onClose: n,
5396
5396
  token: a
5397
5397
  }) {
5398
- const [r, c] = d("general"), [u, p] = d(""), [h, k] = d({}), [L, W] = d(!1), [x, w] = d(!1), [T, K] = d("idle"), Y = ue({}), M = ue(null);
5398
+ const [r, c] = d("general"), [u, p] = d(""), [h, k] = d({}), [L, W] = d(!1), [x, w] = d(!1), [T, K] = d("idle"), Y = ue({}), $ = ue(null);
5399
5399
  Y.current = h;
5400
5400
  const O = De(() => {
5401
5401
  const g = u.trim().toLowerCase();
@@ -5422,7 +5422,7 @@ function mh({
5422
5422
  };
5423
5423
  }, [t, a]);
5424
5424
  const U = J(async () => {
5425
- M.current != null && (window.clearTimeout(M.current), M.current = null), K("saving");
5425
+ $.current != null && (window.clearTimeout($.current), $.current = null), K("saving");
5426
5426
  try {
5427
5427
  await Gs(a, Y.current), K("saved");
5428
5428
  } catch {
@@ -5436,15 +5436,15 @@ function mh({
5436
5436
  [g]: { ...C[g] ?? {}, ...y }
5437
5437
  };
5438
5438
  return Y.current = i, Fa(i), i;
5439
- }), K("saving"), M.current != null && window.clearTimeout(M.current), M.current = window.setTimeout(() => void U(), 600);
5439
+ }), K("saving"), $.current != null && window.clearTimeout($.current), $.current = window.setTimeout(() => void U(), 600);
5440
5440
  },
5441
5441
  [U]
5442
5442
  ), R = J(() => {
5443
- M.current != null && U(), n();
5443
+ $.current != null && U(), n();
5444
5444
  }, [U, n]);
5445
5445
  if (z(
5446
5446
  () => () => {
5447
- M.current != null && window.clearTimeout(M.current);
5447
+ $.current != null && window.clearTimeout($.current);
5448
5448
  },
5449
5449
  []
5450
5450
  ), !t) return null;
@@ -5678,7 +5678,7 @@ function jh({
5678
5678
  onOpenProject: k,
5679
5679
  onClose: L
5680
5680
  }) {
5681
- const [W, x] = d(""), [w, T] = d(0), [K, Y] = d({ keyword: "", hits: [] }), [M, O] = d(!1), G = ue(null), U = ue(null), E = W.trim(), R = E.toLowerCase();
5681
+ const [W, x] = d(""), [w, T] = d(0), [K, Y] = d({ keyword: "", hits: [] }), [$, O] = d(!1), G = ue(null), U = ue(null), E = W.trim(), R = E.toLowerCase();
5682
5682
  z(() => {
5683
5683
  if (E.length < Fh) {
5684
5684
  O(!1);
@@ -5834,7 +5834,7 @@ function jh({
5834
5834
  /* @__PURE__ */ o("div", { className: Oe.header, children: [
5835
5835
  /* @__PURE__ */ e("span", { className: Oe.headerTitle, children: E ? "搜索结果" : "快捷操作 · 最近会话" }),
5836
5836
  /* @__PURE__ */ o("span", { className: Oe.headerHints, children: [
5837
- M ? /* @__PURE__ */ e("span", { className: Oe.searching, children: "搜索中…" }) : null,
5837
+ $ ? /* @__PURE__ */ e("span", { className: Oe.searching, children: "搜索中…" }) : null,
5838
5838
  /* @__PURE__ */ e("kbd", { className: Oe.kbd, children: "↑" }),
5839
5839
  /* @__PURE__ */ e("kbd", { className: Oe.kbd, children: "↓" }),
5840
5840
  /* @__PURE__ */ e("span", { children: "选择" }),
@@ -5941,7 +5941,7 @@ function Hh({
5941
5941
  y && (f.add(T(y)), y.accountNo && f.add(String(y.accountNo)), y.jobNumber && f.add(String(y.jobNumber)));
5942
5942
  }
5943
5943
  return f;
5944
- }, [a, K, T]), M = J(
5944
+ }, [a, K, T]), $ = J(
5945
5945
  (f) => {
5946
5946
  const g = K.get(String(f).trim());
5947
5947
  return g ? g.name ? `${g.name} (${g.accountNo})` : g.accountNo : f;
@@ -5988,8 +5988,8 @@ function Hh({
5988
5988
  (f) => r(a.filter((g) => g !== f)),
5989
5989
  [a, r]
5990
5990
  ), R = De(
5991
- () => a.map(M).join("、"),
5992
- [a, M]
5991
+ () => a.map($).join("、"),
5992
+ [a, $]
5993
5993
  );
5994
5994
  return /* @__PURE__ */ o("div", { className: m.participantWrap, children: [
5995
5995
  /* @__PURE__ */ o(
@@ -6116,7 +6116,7 @@ function Hh({
6116
6116
  )
6117
6117
  ] }),
6118
6118
  /* @__PURE__ */ e("div", { className: m.participantList, children: a.length === 0 ? /* @__PURE__ */ e("div", { className: m.participantEmpty, children: "未选择参与人" }) : a.map((f) => /* @__PURE__ */ o("div", { className: m.participantSelectedItem, children: [
6119
- /* @__PURE__ */ e("span", { className: m.participantItemName, children: M(f) }),
6119
+ /* @__PURE__ */ e("span", { className: m.participantItemName, children: $(f) }),
6120
6120
  /* @__PURE__ */ e(
6121
6121
  "button",
6122
6122
  {
@@ -6647,7 +6647,7 @@ function zh({
6647
6647
  allSkills: T,
6648
6648
  skills: K,
6649
6649
  isLocal: Y,
6650
- projectsLoading: M
6650
+ projectsLoading: $
6651
6651
  } = V(
6652
6652
  Bn((s) => ({
6653
6653
  currentUser: s.currentUser,
@@ -6682,7 +6682,7 @@ function zh({
6682
6682
  } catch {
6683
6683
  return "3d";
6684
6684
  }
6685
- }), [Qe, qe] = d(!1), it = V((s) => s.token), [Ct, Yt] = d(!1);
6685
+ }), [Qe, qe] = d(!1), it = V((s) => s.token), [St, Yt] = d(!1);
6686
6686
  z(() => {
6687
6687
  if (!a) return;
6688
6688
  const s = (l) => {
@@ -6690,7 +6690,7 @@ function zh({
6690
6690
  };
6691
6691
  return document.addEventListener("keydown", s), () => document.removeEventListener("keydown", s);
6692
6692
  }, [a]);
6693
- const [bn, Pt] = d(!1), St = ue(!0), [yt, Qt] = d(() => {
6693
+ const [bn, Pt] = d(!1), Tt = ue(!0), [yt, Qt] = d(() => {
6694
6694
  try {
6695
6695
  const s = localStorage.getItem("ft_sidebar_participant_filter");
6696
6696
  return s ? JSON.parse(s) : [];
@@ -6781,7 +6781,7 @@ function zh({
6781
6781
  const s = /* @__PURE__ */ new Map();
6782
6782
  for (const l of tn) s.set(Xe(l.id), l);
6783
6783
  return s;
6784
- }, [tn]), [Tt, pt] = d(
6784
+ }, [tn]), [It, pt] = d(
6785
6785
  () => {
6786
6786
  try {
6787
6787
  return localStorage.getItem(
@@ -6809,8 +6809,8 @@ function zh({
6809
6809
  }
6810
6810
  });
6811
6811
  z(() => {
6812
- localStorage.setItem("ft_sidebar_session_time_filter", Tt);
6813
- }, [Tt]), z(() => {
6812
+ localStorage.setItem("ft_sidebar_session_time_filter", It);
6813
+ }, [It]), z(() => {
6814
6814
  localStorage.setItem(
6815
6815
  "ft_sidebar_session_groupDims",
6816
6816
  JSON.stringify(ht)
@@ -6832,8 +6832,8 @@ function zh({
6832
6832
  } : null);
6833
6833
  }, []), kt = De(() => {
6834
6834
  let s = en;
6835
- if (Tt !== "all") {
6836
- const l = Tt === "1d" ? 1 : Tt === "3d" ? 3 : 7, _ = Date.now() - l * 864e5;
6835
+ if (It !== "all") {
6836
+ const l = It === "1d" ? 1 : It === "3d" ? 3 : 7, _ = Date.now() - l * 864e5;
6837
6837
  s = s.filter(
6838
6838
  (X) => qt(X.updateTime || X.createTime) >= _
6839
6839
  );
@@ -6856,7 +6856,7 @@ function zh({
6856
6856
  l.updateTime || l.createTime || ""
6857
6857
  );
6858
6858
  });
6859
- }, [en, Tt, ot]), [vt, Vn] = d(() => {
6859
+ }, [en, It, ot]), [vt, Vn] = d(() => {
6860
6860
  try {
6861
6861
  const s = localStorage.getItem("ft_sidebar_section_collapsed"), l = s ? JSON.parse(s) : [];
6862
6862
  return new Set(
@@ -6874,7 +6874,7 @@ function zh({
6874
6874
  JSON.stringify([...vt])
6875
6875
  );
6876
6876
  }, [vt]);
6877
- const $ = J(
6877
+ const M = J(
6878
6878
  (s) => {
6879
6879
  const l = vt.has(s);
6880
6880
  Vn((_) => {
@@ -6917,20 +6917,20 @@ function zh({
6917
6917
  le("3d"), Qt([]);
6918
6918
  }, []);
6919
6919
  z(() => {
6920
- if (St.current) {
6921
- St.current = !1;
6920
+ if (Tt.current) {
6921
+ Tt.current = !1;
6922
6922
  return;
6923
6923
  }
6924
6924
  Pt(!0);
6925
6925
  const s = setTimeout(() => Pt(!1), 300);
6926
6926
  return () => clearTimeout(s);
6927
6927
  }, [ze, ee, yt, xe]);
6928
- const Ot = M || bn, Dt = J((s) => {
6928
+ const Ot = $ || bn, Dt = J((s) => {
6929
6929
  Be((l) => {
6930
6930
  const _ = new Set(l);
6931
6931
  return _.has(s) ? _.delete(s) : _.add(s), _;
6932
6932
  });
6933
- }, []), It = De(() => {
6933
+ }, []), Lt = De(() => {
6934
6934
  var be;
6935
6935
  const l = [...yt.length === 0 ? L : L.filter((Te) => {
6936
6936
  const Ae = Array.isArray(Te.members) ? Te.members.map((Pe) => String(Pe)) : [];
@@ -6980,35 +6980,35 @@ function zh({
6980
6980
  if (Ae.length === 0) return [];
6981
6981
  const [Ke, ...Ve] = Ae, He = /* @__PURE__ */ new Map();
6982
6982
  for (const mt of Te) {
6983
- const [Lt, Mt] = _(mt, Ke);
6984
- He.has(Lt) || He.set(Lt, { label: Mt, items: [] }), He.get(Lt).items.push(mt);
6983
+ const [Mt, $t] = _(mt, Ke);
6984
+ He.has(Mt) || He.set(Mt, { label: $t, items: [] }), He.get(Mt).items.push(mt);
6985
6985
  }
6986
6986
  const ut = [];
6987
- for (const [mt, { label: Lt, items: Mt }] of He) {
6987
+ for (const [mt, { label: Mt, items: $t }] of He) {
6988
6988
  const Ht = `${Pe}::${Ke}=${mt}`;
6989
- Ve.length === 0 ? ut.push({ key: Ht, label: Lt, projects: Mt, rawKey: mt }) : ut.push({
6989
+ Ve.length === 0 ? ut.push({ key: Ht, label: Mt, projects: $t, rawKey: mt }) : ut.push({
6990
6990
  key: Ht,
6991
- label: Lt,
6992
- projects: Mt,
6993
- children: re(Mt, Ve, Ht),
6991
+ label: Mt,
6992
+ projects: $t,
6993
+ children: re($t, Ve, Ht),
6994
6994
  rawKey: mt
6995
6995
  });
6996
6996
  }
6997
- return ut.sort((mt, Lt) => {
6997
+ return ut.sort((mt, Mt) => {
6998
6998
  if (Ke === "time") {
6999
- const Mt = mt.rawKey === "(未知时间)" ? "" : mt.rawKey || "", Ht = Lt.rawKey === "(未知时间)" ? "" : Lt.rawKey || "";
7000
- return !Mt && !Ht ? 0 : Mt ? Ht ? X ? Mt.localeCompare(Ht) : Ht.localeCompare(Mt) : -1 : 1;
6999
+ const $t = mt.rawKey === "(未知时间)" ? "" : mt.rawKey || "", Ht = Mt.rawKey === "(未知时间)" ? "" : Mt.rawKey || "";
7000
+ return !$t && !Ht ? 0 : $t ? Ht ? X ? $t.localeCompare(Ht) : Ht.localeCompare($t) : -1 : 1;
7001
7001
  }
7002
- return Lt.projects.length - mt.projects.length;
7002
+ return Mt.projects.length - mt.projects.length;
7003
7003
  }), ut;
7004
7004
  }
7005
7005
  return re(l, ze, "");
7006
7006
  }, [L, ze, ee, yt, Xt]), Sn = De(
7007
7007
  () => {
7008
7008
  var s;
7009
- return ze.length === 0 ? ((s = It[0]) == null ? void 0 : s.projects.length) ?? 0 : It.reduce((l, _) => l + _.projects.length, 0);
7009
+ return ze.length === 0 ? ((s = Lt[0]) == null ? void 0 : s.projects.length) ?? 0 : Lt.reduce((l, _) => l + _.projects.length, 0);
7010
7010
  },
7011
- [It, ze]
7011
+ [Lt, ze]
7012
7012
  ), Tn = De(() => {
7013
7013
  if (ht.length === 0) return [];
7014
7014
  function s(_, X) {
@@ -7542,10 +7542,10 @@ function zh({
7542
7542
  {
7543
7543
  type: "button",
7544
7544
  className: m.iconBtn,
7545
- disabled: M,
7545
+ disabled: $,
7546
7546
  title: "刷新工作区",
7547
7547
  onClick: oe,
7548
- children: /* @__PURE__ */ e("span", { className: M ? m.refreshIconLoading : void 0, children: se.refresh })
7548
+ children: /* @__PURE__ */ e("span", { className: $ ? m.refreshIconLoading : void 0, children: se.refresh })
7549
7549
  }
7550
7550
  )
7551
7551
  ] })
@@ -7614,7 +7614,7 @@ function zh({
7614
7614
  "button",
7615
7615
  {
7616
7616
  type: "button",
7617
- className: `${m.filterTimeOption} ${Tt === s.key ? m.filterTimeOptionActive : ""}`,
7617
+ className: `${m.filterTimeOption} ${It === s.key ? m.filterTimeOptionActive : ""}`,
7618
7618
  onClick: () => pt(s.key),
7619
7619
  children: s.label
7620
7620
  },
@@ -7690,10 +7690,10 @@ function zh({
7690
7690
  onOpenPersonalTab: a.onOpenPersonalTab,
7691
7691
  onOpenWorkbenchShell: a.onOpenWorkbenchShell,
7692
7692
  onOpenSearch: () => Yt((s) => !s),
7693
- searchActive: Ct
7693
+ searchActive: St
7694
7694
  }
7695
7695
  ) }),
7696
- Ct && /* @__PURE__ */ e(
7696
+ St && /* @__PURE__ */ e(
7697
7697
  jh,
7698
7698
  {
7699
7699
  sessions: en,
@@ -7720,7 +7720,7 @@ function zh({
7720
7720
  "div",
7721
7721
  {
7722
7722
  className: `${m.groupHeader} ${m.sectionHeader}`,
7723
- onClick: () => $("personal"),
7723
+ onClick: () => M("personal"),
7724
7724
  children: [
7725
7725
  /* @__PURE__ */ e("span", { className: m.treeArrow, children: se.chevron(!vt.has("personal")) }),
7726
7726
  /* @__PURE__ */ e("span", { className: m.sectionIcon, children: se.user }),
@@ -7793,14 +7793,14 @@ function zh({
7793
7793
  ) : Tn.map(
7794
7794
  (s) => Na(s, 0)
7795
7795
  ),
7796
- !Ot && kt.length === 0 && /* @__PURE__ */ e("div", { className: m.emptyHint, children: Tt !== "all" ? "该时间段内无单聊" : "暂无单聊,点「云端任务」开始" })
7796
+ !Ot && kt.length === 0 && /* @__PURE__ */ e("div", { className: m.emptyHint, children: It !== "all" ? "该时间段内无单聊" : "暂无单聊,点「云端任务」开始" })
7797
7797
  ] })
7798
7798
  ] }),
7799
7799
  /* @__PURE__ */ o(
7800
7800
  "div",
7801
7801
  {
7802
7802
  className: `${m.groupHeader} ${m.sectionHeader}`,
7803
- onClick: () => $("group"),
7803
+ onClick: () => M("group"),
7804
7804
  children: [
7805
7805
  /* @__PURE__ */ e("span", { className: m.treeArrow, children: se.chevron(!vt.has("group")) }),
7806
7806
  /* @__PURE__ */ e("span", { className: m.sectionIcon, children: se.groupChat }),
@@ -7829,9 +7829,9 @@ function zh({
7829
7829
  }
7830
7830
  ),
7831
7831
  !vt.has("group") && /* @__PURE__ */ o(et, { children: [
7832
- ze.length === 0 ? (Aa = It[0]) == null ? void 0 : Aa.projects.map(
7832
+ ze.length === 0 ? (Aa = Lt[0]) == null ? void 0 : Aa.projects.map(
7833
7833
  (s) => Yn(s)
7834
- ) : It.map((s) => Ca(s, 0)),
7834
+ ) : Lt.map((s) => Ca(s, 0)),
7835
7835
  !Ot && L.length === 0 && /* @__PURE__ */ e("div", { className: m.emptyHint, children: "暂无工作区,点击「+ 新建」创建" }),
7836
7836
  !Ot && L.length > 0 && Sn === 0 && /* @__PURE__ */ e("div", { className: m.emptyHint, children: "无匹配的工作区,请调整过滤条件" })
7837
7837
  ] })
@@ -8124,7 +8124,7 @@ function ho({
8124
8124
  token: v.token,
8125
8125
  createProjectAndSendFirstMessage: v.createProjectAndSendFirstMessage
8126
8126
  }))
8127
- ), [h, k] = d([]), [L, W] = d(!0), [x, w] = d(""), [T, K] = d(""), [Y, M] = d(!1), [O, G] = d(""), [U, E] = d(!1), [R, f] = d(""), [g, y] = d([]), [C, i] = d([]), [I, B] = d(
8127
+ ), [h, k] = d([]), [L, W] = d(!0), [x, w] = d(""), [T, K] = d(""), [Y, $] = d(!1), [O, G] = d(""), [U, E] = d(!1), [R, f] = d(""), [g, y] = d([]), [C, i] = d([]), [I, B] = d(
8128
8128
  () => localStorage.getItem(sa) || ""
8129
8129
  ), [ae, j] = d(!1);
8130
8130
  z(() => {
@@ -8183,7 +8183,7 @@ function ho({
8183
8183
  if (!Y) return;
8184
8184
  const v = (Q) => {
8185
8185
  const Z = document.querySelector(`.${de.scenarioWrap}`);
8186
- Z && !Z.contains(Q.target) && M(!1);
8186
+ Z && !Z.contains(Q.target) && $(!1);
8187
8187
  };
8188
8188
  return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
8189
8189
  }, [Y]);
@@ -8331,7 +8331,7 @@ function ho({
8331
8331
  {
8332
8332
  className: de.scenarioWrap,
8333
8333
  onClick: () => {
8334
- h.length === 0 || U || M((v) => !v);
8334
+ h.length === 0 || U || $((v) => !v);
8335
8335
  },
8336
8336
  title: "选择场景",
8337
8337
  children: [
@@ -8356,7 +8356,7 @@ function ho({
8356
8356
  {
8357
8357
  className: `${de.scenarioOption} ${q ? de.scenarioOptionActive : ""}`,
8358
8358
  onClick: () => {
8359
- K(v.code), M(!1);
8359
+ K(v.code), $(!1);
8360
8360
  },
8361
8361
  children: [
8362
8362
  /* @__PURE__ */ o("div", { className: de.scenarioOptionName, children: [
@@ -8475,7 +8475,7 @@ const Mf = "_layout_1ae41_1", $f = "_banner_1ae41_8", Af = "_bannerLeft_1ae41_20
8475
8475
  smartWorkbenchArea: Eg
8476
8476
  }, Pg = "/api";
8477
8477
  Rr({ apiBase: Pg });
8478
- const Og = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3ctitle%3elogo%3c/title%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='01-1.全部应用'%20transform='translate(-20.000000,%20-8.000000)'%3e%3cg%20id='logo'%20transform='translate(20.000000,%208.000000)'%3e%3crect%20id='蒙版'%20fill='%23F5FAFF'%20x='0'%20y='0'%20width='24'%20height='24'%20rx='2'%3e%3c/rect%3e%3cg%20id='资源-1'%20transform='translate(4.000000,%204.000000)'%20fill-rule='nonzero'%3e%3cpath%20d='M1.16034197,15.1111111%20C0.519502794,15.1111111%200,14.6106136%200,13.9932187%20L0,2.69831289%20C0.00159892866,1.20871436%201.25461265,0.00154043404%202.80077542,0%20L8.75478013,0%20C10.3009429,0.00154043404%2011.5539566,1.20871436%2011.5555556,2.69831289%20L11.5555556,8.29476193%20C11.5555556,8.91215688%2011.0360528,9.41265438%2010.3952136,9.41265438%20C9.75437442,9.41265438%209.23487162,8.91215688%209.23487162,8.29476193%20L9.23487162,2.70529971%20C9.23681414,2.5814236%209.18709207,2.46197487%209.09684605,2.37371702%20C9.00660003,2.28545916%208.88337485,2.23577075%208.75478013,2.23578489%20L2.80802756,2.23578489%20C2.67944752,2.23391343%202.55546299,2.28181649%202.46385373,2.36876099%20C2.37224448,2.45570548%202.32066926,2.57442264%202.32068393,2.69831289%20L2.32068393,13.9932187%20C2.32068393,14.6106136%201.80118114,15.1111111%201.16034197,15.1111111%20Z'%20id='路径'%20fill='%231F8BFF'%3e%3c/path%3e%3cpath%20d='M13.1974657,15.1111111%20L7.2469787,15.1111111%20C5.70041075,15.1095715%204.44684388,13.9026896%204.44444444,12.4129481%20L4.44444444,6.81251221%20C4.44444444,6.19483167%204.96427348,5.69410265%205.60551509,5.69410265%20C6.24675669,5.69410265%206.76658573,6.19483167%206.76658573,6.81251221%20L6.76658573,12.4129481%20C6.76738557,12.6679673%206.98223074,12.8742932%207.2469787,12.874292%20L13.1974657,12.874292%20C13.4622137,12.8742932%2013.6770589,12.6679673%2013.6778587,12.4129481%20L13.6778587,1.11840956%20C13.6778587,0.500729014%2014.1976878,0%2014.8389294,0%20C15.480171,0%2016,0.500729014%2016,1.11840956%20L16,12.4129481%20C15.9976006,13.9026896%2014.7440337,15.1095715%2013.1974657,15.1111111%20L13.1974657,15.1111111%20Z'%20id='路径'%20fill='%23FFDC29'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Dg = bt(() => import("./index-CMXFhbO9.js")), Rg = bt(() => import("./index-0fFX5-t1.js")), Fg = bt(() => import("./index-C-wU3z6v.js")), Bg = bt(() => import("./index-DDc_NN8J.js")), jg = bt(() => import("./index-BrNcqiL0.js").then((t) => t.i)), Hg = bt(() => import("./index-C9HASn0X.js")), Wg = bt(() => import("./index-CDQA4QdC.js")), Ug = bt(() => import("./index-CB0X1hPQ.js")), zg = bt(() => import("./index-cfu1Eo4O.js")), Gg = bt(() => import("./index-BAIVuQuX.js")), Kg = bt(() => import("./index-BXk3bjiv.js").then((t) => ({ default: t.default }))), fo = bt(() => import("./SystemShell-aeO9jKKr.js")), Go = "ft_popup_read";
8478
+ const Og = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3ctitle%3elogo%3c/title%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='01-1.全部应用'%20transform='translate(-20.000000,%20-8.000000)'%3e%3cg%20id='logo'%20transform='translate(20.000000,%208.000000)'%3e%3crect%20id='蒙版'%20fill='%23F5FAFF'%20x='0'%20y='0'%20width='24'%20height='24'%20rx='2'%3e%3c/rect%3e%3cg%20id='资源-1'%20transform='translate(4.000000,%204.000000)'%20fill-rule='nonzero'%3e%3cpath%20d='M1.16034197,15.1111111%20C0.519502794,15.1111111%200,14.6106136%200,13.9932187%20L0,2.69831289%20C0.00159892866,1.20871436%201.25461265,0.00154043404%202.80077542,0%20L8.75478013,0%20C10.3009429,0.00154043404%2011.5539566,1.20871436%2011.5555556,2.69831289%20L11.5555556,8.29476193%20C11.5555556,8.91215688%2011.0360528,9.41265438%2010.3952136,9.41265438%20C9.75437442,9.41265438%209.23487162,8.91215688%209.23487162,8.29476193%20L9.23487162,2.70529971%20C9.23681414,2.5814236%209.18709207,2.46197487%209.09684605,2.37371702%20C9.00660003,2.28545916%208.88337485,2.23577075%208.75478013,2.23578489%20L2.80802756,2.23578489%20C2.67944752,2.23391343%202.55546299,2.28181649%202.46385373,2.36876099%20C2.37224448,2.45570548%202.32066926,2.57442264%202.32068393,2.69831289%20L2.32068393,13.9932187%20C2.32068393,14.6106136%201.80118114,15.1111111%201.16034197,15.1111111%20Z'%20id='路径'%20fill='%231F8BFF'%3e%3c/path%3e%3cpath%20d='M13.1974657,15.1111111%20L7.2469787,15.1111111%20C5.70041075,15.1095715%204.44684388,13.9026896%204.44444444,12.4129481%20L4.44444444,6.81251221%20C4.44444444,6.19483167%204.96427348,5.69410265%205.60551509,5.69410265%20C6.24675669,5.69410265%206.76658573,6.19483167%206.76658573,6.81251221%20L6.76658573,12.4129481%20C6.76738557,12.6679673%206.98223074,12.8742932%207.2469787,12.874292%20L13.1974657,12.874292%20C13.4622137,12.8742932%2013.6770589,12.6679673%2013.6778587,12.4129481%20L13.6778587,1.11840956%20C13.6778587,0.500729014%2014.1976878,0%2014.8389294,0%20C15.480171,0%2016,0.500729014%2016,1.11840956%20L16,12.4129481%20C15.9976006,13.9026896%2014.7440337,15.1095715%2013.1974657,15.1111111%20L13.1974657,15.1111111%20Z'%20id='路径'%20fill='%23FFDC29'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Dg = bt(() => import("./index-vS2KDimS.js")), Rg = bt(() => import("./index-BdeiDVvr.js")), Fg = bt(() => import("./index-DzfP7CaA.js")), Bg = bt(() => import("./index-Cxe1ocyx.js")), jg = bt(() => import("./index-CoqvbnH9.js").then((t) => t.i)), Hg = bt(() => import("./index-sE67AqD0.js")), Wg = bt(() => import("./index-cZNgGxUN.js")), Ug = bt(() => import("./index-D6vXsumL.js")), zg = bt(() => import("./index-CP2ncRCL.js")), Gg = bt(() => import("./index-Cl_TNvrb.js")), Kg = bt(() => import("./index-SQ95AbXB.js").then((t) => ({ default: t.default }))), fo = bt(() => import("./SystemShell-mIYbM1gS.js")), Go = "ft_popup_read";
8479
8479
  function go(t) {
8480
8480
  return t.id != null ? String(t.id) : `${t.title ?? ""}|${t.content ?? ""}`;
8481
8481
  }
@@ -8508,30 +8508,30 @@ function Vg({
8508
8508
  onCloseNewChat: p
8509
8509
  }) {
8510
8510
  const { currentUser: h, currentProject: k, clearCurrentProject: L } = V(
8511
- Bn(($) => ({
8512
- currentUser: $.currentUser,
8513
- currentProject: $.currentProject,
8514
- clearCurrentProject: $.clearCurrentProject
8511
+ Bn((M) => ({
8512
+ currentUser: M.currentUser,
8513
+ currentProject: M.currentProject,
8514
+ clearCurrentProject: M.clearCurrentProject
8515
8515
  }))
8516
- ), W = V(($) => $.wsState), x = V(($) => $.token), w = ue(null), T = zr(260, 180, 400, "left"), [K, Y] = d(
8516
+ ), W = V((M) => M.wsState), x = V((M) => M.token), w = ue(null), T = zr(260, 180, 400, "left"), [K, Y] = d(
8517
8517
  () => localStorage.getItem("ft_sidebar_collapsed") === "true"
8518
- ), [M, O] = d(!1), [G, U] = d(0), [E, R] = d(!1), [f, g] = d(null), [y, C] = d(0), [i, I] = d(!1), [B, ae] = d(0), [j, te] = d([]), [F, S] = d(0), [N, ne] = d(!1), [$e, Se] = d([]), [ce, _e] = d(0), P = De(() => {
8519
- const $ = f == null ? void 0 : f.announcements;
8520
- return ($ && $.length > 0 ? $ : f != null && f.announcement ? [f.announcement] : []).filter((ge) => ge.title || ge.content);
8518
+ ), [$, O] = d(!1), [G, U] = d(0), [E, R] = d(!1), [f, g] = d(null), [y, C] = d(0), [i, I] = d(!1), [B, ae] = d(0), [j, te] = d([]), [F, S] = d(0), [N, ne] = d(!1), [$e, Se] = d([]), [ce, _e] = d(0), P = De(() => {
8519
+ const M = f == null ? void 0 : f.announcements;
8520
+ return (M && M.length > 0 ? M : f != null && f.announcement ? [f.announcement] : []).filter((ge) => ge.title || ge.content);
8521
8521
  }, [f]), v = De(
8522
8522
  () => Math.max(1e3, (f == null ? void 0 : f.bannerRotateInterval) ?? 5e3),
8523
8523
  [f == null ? void 0 : f.bannerRotateInterval]
8524
8524
  );
8525
8525
  z(() => {
8526
8526
  if (P.length <= 1 || i) return;
8527
- const $ = setInterval(() => {
8527
+ const M = setInterval(() => {
8528
8528
  document.hidden || C((oe) => (oe + 1) % P.length);
8529
8529
  }, v);
8530
- return () => clearInterval($);
8530
+ return () => clearInterval(M);
8531
8531
  }, [P.length, i, v]), z(() => {
8532
8532
  if (N) return;
8533
- const $ = Ko(), oe = P.filter(
8534
- (ge) => ge.remindType === "POPUP" && !$.includes(go(ge))
8533
+ const M = Ko(), oe = P.filter(
8534
+ (ge) => ge.remindType === "POPUP" && !M.includes(go(ge))
8535
8535
  );
8536
8536
  oe.length !== 0 && (te(oe), S(0), ne(!0));
8537
8537
  }, [P, N]);
@@ -8543,53 +8543,53 @@ function Vg({
8543
8543
  }
8544
8544
  }, []);
8545
8545
  z(() => {
8546
- let $ = !0;
8546
+ let M = !0;
8547
8547
  const oe = async () => {
8548
8548
  try {
8549
8549
  const je = await za();
8550
- $ && (g(je), Se((lt) => lt.length > 0 ? lt : je.quotes ?? []));
8550
+ M && (g(je), Se((lt) => lt.length > 0 ? lt : je.quotes ?? []));
8551
8551
  } catch {
8552
8552
  }
8553
8553
  };
8554
8554
  oe();
8555
8555
  const ge = setInterval(() => void oe(), 6e4);
8556
8556
  return () => {
8557
- $ = !1, clearInterval(ge);
8557
+ M = !1, clearInterval(ge);
8558
8558
  };
8559
8559
  }, []), z(() => {
8560
8560
  if ($e.length === 0) return;
8561
- const $ = setInterval(() => {
8561
+ const M = setInterval(() => {
8562
8562
  document.hidden || _e((oe) => {
8563
8563
  const ge = oe + 1;
8564
8564
  return ge < $e.length ? ge : (Q(), 0);
8565
8565
  });
8566
8566
  }, 1e4);
8567
- return () => clearInterval($);
8567
+ return () => clearInterval(M);
8568
8568
  }, [$e, Q]);
8569
8569
  const [Z, me] = d(null), [fe, pe] = d("chat"), [rt, q] = d(0), [ye, Ce] = d(0), [Fe, Ue] = d(null), nt = Il(), [ze, at] = d("group"), [ee, ke] = d([]), ie = De(
8570
8570
  () => ft(h, "personal"),
8571
8571
  [h]
8572
8572
  );
8573
8573
  z(() => {
8574
- ie && la(V.getState().token).then(($) => ke($)).catch(() => {
8574
+ ie && la(V.getState().token).then((M) => ke(M)).catch(() => {
8575
8575
  });
8576
8576
  }, [ie, Fe == null ? void 0 : Fe.ts]);
8577
8577
  const Be = J(
8578
- ($, oe = null, ge = !1) => {
8578
+ (M, oe = null, ge = !1) => {
8579
8579
  O(!1), at("personal"), Ue(
8580
- (je) => je && je.kind === "chat" && je.agent.id === $.id && je.sessionId === oe && je.draft === ge ? je : { kind: "chat", agent: $, sessionId: oe, draft: ge, ts: Date.now() }
8580
+ (je) => je && je.kind === "chat" && je.agent.id === M.id && je.sessionId === oe && je.draft === ge ? je : { kind: "chat", agent: M, sessionId: oe, draft: ge, ts: Date.now() }
8581
8581
  );
8582
8582
  },
8583
8583
  []
8584
8584
  ), xe = J(
8585
- ($, oe) => Be($, oe),
8585
+ (M, oe) => Be(M, oe),
8586
8586
  [Be]
8587
- ), le = J(($) => {
8587
+ ), le = J((M) => {
8588
8588
  O(!1), at("personal"), Ue(
8589
- (oe) => oe && oe.kind === "chat" && oe.lane === "local" && Wt(oe.sessionId, $) ? oe : {
8589
+ (oe) => oe && oe.kind === "chat" && oe.lane === "local" && Wt(oe.sessionId, M) ? oe : {
8590
8590
  kind: "chat",
8591
8591
  agent: null,
8592
- sessionId: $,
8592
+ sessionId: M,
8593
8593
  lane: "local",
8594
8594
  ts: Date.now()
8595
8595
  }
@@ -8602,18 +8602,18 @@ function Vg({
8602
8602
  lane: "local",
8603
8603
  ts: Date.now()
8604
8604
  });
8605
- }, []), qe = J(($) => {
8606
- O(!1), at("personal"), Ue($);
8605
+ }, []), qe = J((M) => {
8606
+ O(!1), at("personal"), Ue(M);
8607
8607
  }, []), it = J(() => {
8608
8608
  O(!1), at("group"), Ue(null), L();
8609
- }, [L]), Ct = J(
8610
- ($) => {
8609
+ }, [L]), St = J(
8610
+ (M) => {
8611
8611
  const oe = bl(ee);
8612
8612
  if (!oe) {
8613
8613
  Re("暂无可用伙伴,请先在「更多能力」里创建伙伴", "warning");
8614
8614
  return;
8615
8615
  }
8616
- const ge = $.length > 20 ? `${$.slice(0, 20)}…` : $;
8616
+ const ge = M.length > 20 ? `${M.slice(0, 20)}…` : M;
8617
8617
  ys(
8618
8618
  oe.id,
8619
8619
  ge || "新会话",
@@ -8623,16 +8623,16 @@ function Vg({
8623
8623
  kind: "chat",
8624
8624
  agent: oe,
8625
8625
  sessionId: je.id,
8626
- autoSendDraft: $,
8626
+ autoSendDraft: M,
8627
8627
  ts: Date.now()
8628
8628
  });
8629
8629
  }).catch(() => Re("会话创建失败,请重试", "error"));
8630
8630
  },
8631
8631
  [ee]
8632
8632
  ), Yt = J(
8633
- ($) => {
8634
- const oe = _l($);
8635
- oe && !jn(h, oe) || qe({ kind: "tab", tab: $, ts: Date.now() });
8633
+ (M) => {
8634
+ const oe = _l(M);
8635
+ oe && !jn(h, oe) || qe({ kind: "tab", tab: M, ts: Date.now() });
8636
8636
  },
8637
8637
  [h, qe]
8638
8638
  ), bn = J(() => {
@@ -8641,17 +8641,17 @@ function Vg({
8641
8641
  z(() => {
8642
8642
  k && at("group");
8643
8643
  }, [k]);
8644
- const [Pt, St] = d(() => (An(), Vr())), [yt, Qt] = d(() => {
8644
+ const [Pt, Tt] = d(() => (An(), Vr())), [yt, Qt] = d(() => {
8645
8645
  try {
8646
8646
  An();
8647
- const $ = new URL(window.location.href).searchParams.get("mode");
8648
- if ($ && Dn.includes($)) return $;
8647
+ const M = new URL(window.location.href).searchParams.get("mode");
8648
+ if (M && Dn.includes(M)) return M;
8649
8649
  } catch {
8650
8650
  }
8651
8651
  return null;
8652
8652
  });
8653
8653
  z(() => {
8654
- const $ = () => {
8654
+ const M = () => {
8655
8655
  try {
8656
8656
  An();
8657
8657
  const oe = new URL(window.location.href).searchParams.get("mode");
@@ -8661,7 +8661,7 @@ function Vg({
8661
8661
  } catch {
8662
8662
  }
8663
8663
  };
8664
- return window.addEventListener("popstate", $), () => window.removeEventListener("popstate", $);
8664
+ return window.addEventListener("popstate", M), () => window.removeEventListener("popstate", M);
8665
8665
  }, []);
8666
8666
  const Ee = (
8667
8667
  // /test/ 路径优先识别为 test 模式 (main.jsx 的 /test/* 路由传入 forcedChatMode='system',
@@ -8672,17 +8672,17 @@ function Vg({
8672
8672
  );
8673
8673
  z(() => {
8674
8674
  try {
8675
- const $ = new URLSearchParams(window.location.search), oe = $.get("openNote");
8675
+ const M = new URLSearchParams(window.location.search), oe = M.get("openNote");
8676
8676
  if (oe === "1" || oe === "true") {
8677
- St("collaboration"), vn(!0);
8677
+ Tt("collaboration"), vn(!0);
8678
8678
  const Ot = String(
8679
- $.get("projectId") ?? $.get("project_id") ?? ""
8679
+ M.get("projectId") ?? M.get("project_id") ?? ""
8680
8680
  ).trim(), Dt = Xe(Ot);
8681
8681
  bo(Dt) && Zt(Dt);
8682
8682
  }
8683
- const ge = $.get("mode"), je = $.get("agentId"), lt = $.get("tab"), Cn = $.get("sessionId");
8683
+ const ge = M.get("mode"), je = M.get("agentId"), lt = M.get("tab"), Cn = M.get("sessionId");
8684
8684
  if (ge === "personal" && je) {
8685
- St("personal");
8685
+ Tt("personal");
8686
8686
  const Ot = Xe(je);
8687
8687
  lt && Xt(lt), Cn && dn(Xe(Cn));
8688
8688
  const Dt = V.getState().token;
@@ -8691,8 +8691,8 @@ function Vg({
8691
8691
  Tn && (me(Tn), pe(lt === "schedule" ? "detail" : "chat"), Ce(Date.now()));
8692
8692
  }).catch(() => {
8693
8693
  });
8694
- const It = new URL(window.location.href);
8695
- It.searchParams.delete("agentId"), It.searchParams.delete("tab"), It.searchParams.delete("sessionId"), window.history.replaceState({}, "", It.toString());
8694
+ const Lt = new URL(window.location.href);
8695
+ Lt.searchParams.delete("agentId"), Lt.searchParams.delete("tab"), Lt.searchParams.delete("sessionId"), window.history.replaceState({}, "", Lt.toString());
8696
8696
  }
8697
8697
  } catch {
8698
8698
  }
@@ -8703,37 +8703,43 @@ function Vg({
8703
8703
  z(() => {
8704
8704
  en.current = Pt;
8705
8705
  }, [Pt]), z(() => {
8706
- const $ = () => {
8706
+ const M = () => {
8707
8707
  try {
8708
8708
  An();
8709
8709
  const oe = new URL(window.location.href);
8710
8710
  let ge = oe.searchParams.get("mode");
8711
8711
  !ge && oe.pathname.startsWith("/admin") && (ge = "admin"), !ge && oe.pathname.startsWith("/ops/") && (ge = "ops"), !ge && ia(oe.pathname) === "middleware" && (ge = "middleware");
8712
8712
  const je = ge && Dn.includes(ge) ? ge : "collaboration";
8713
- je !== en.current && St(je);
8713
+ je !== en.current && Tt(je);
8714
8714
  } catch {
8715
8715
  }
8716
8716
  };
8717
- return window.addEventListener("popstate", $), $(), () => window.removeEventListener("popstate", $);
8717
+ return window.addEventListener("popstate", M), M(), () => window.removeEventListener("popstate", M);
8718
8718
  }, []);
8719
- const ct = J(($) => {
8719
+ const ct = J((M) => {
8720
8720
  const oe = window.location.pathname;
8721
- if ($ === "system") {
8721
+ if (M === "system") {
8722
8722
  if (Ee === "system")
8723
8723
  return;
8724
- $t.push("/ctc/4a/account");
8724
+ wt.push("/ctc/4a/account");
8725
8725
  return;
8726
8726
  }
8727
- if (($ === "ops" || $ === "middleware") && ia(oe) === $)
8727
+ if ((M === "ops" || M === "middleware") && ia(oe) === M)
8728
+ return;
8729
+ if (M === "test") {
8730
+ wt.push("/test/qa/dashboard");
8728
8731
  return;
8729
- if ($ === "test") {
8730
- $t.push("/test/qa/dashboard");
8732
+ }
8733
+ if (M === "dev") {
8734
+ if (oe.startsWith("/lc/"))
8735
+ return;
8736
+ wt.push("/lc/apps");
8731
8737
  return;
8732
8738
  }
8733
- if ($ === "admin") {
8739
+ if (M === "admin") {
8734
8740
  if (oe.startsWith("/admin"))
8735
8741
  return;
8736
- $t.push("/admin?mode=admin");
8742
+ wt.push("/admin?mode=admin");
8737
8743
  return;
8738
8744
  }
8739
8745
  let ge = "";
@@ -8748,19 +8754,19 @@ function Vg({
8748
8754
  lt && (je = `&${Jt}=${encodeURIComponent(lt)}`);
8749
8755
  } catch {
8750
8756
  }
8751
- $t.push(`/workspace?mode=${$}${ge}${je}`);
8752
- }, [Ee]), tn = ($) => {
8753
- Y($), localStorage.setItem("ft_sidebar_collapsed", $ ? "true" : "false");
8754
- }, nn = V(($) => $.personalChatNav);
8757
+ wt.push(`/workspace?mode=${M}${ge}${je}`);
8758
+ }, [Ee]), tn = (M) => {
8759
+ Y(M), localStorage.setItem("ft_sidebar_collapsed", M ? "true" : "false");
8760
+ }, nn = V((M) => M.personalChatNav);
8755
8761
  z(() => {
8756
- nn.trigger > 0 && nn.agent && (St("personal"), me(nn.agent), pe("chat"), q(($) => $ + 1), Ce(Date.now()));
8762
+ nn.trigger > 0 && nn.agent && (Tt("personal"), me(nn.agent), pe("chat"), q((M) => M + 1), Ce(Date.now()));
8757
8763
  }, [nn.trigger]);
8758
8764
  const Gt = J(
8759
- ($, oe) => {
8760
- St("collaboration"), oe && (vn(!0), Zt($)), $t.push(`/workspace?projectId=${$}`);
8765
+ (M, oe) => {
8766
+ Tt("collaboration"), oe && (vn(!0), Zt(M)), wt.push(`/workspace?projectId=${M}`);
8761
8767
  },
8762
- [St]
8763
- ), Kt = h != null && h.avatar && (h.avatar.startsWith("http") || h.avatar.startsWith("data:")) ? h.avatar : void 0, Tt = [
8768
+ [Tt]
8769
+ ), Kt = h != null && h.avatar && (h.avatar.startsWith("http") || h.avatar.startsWith("data:")) ? h.avatar : void 0, It = [
8764
8770
  {
8765
8771
  key: "logout",
8766
8772
  icon: /* @__PURE__ */ e(Ar, {}),
@@ -8771,17 +8777,17 @@ function Vg({
8771
8777
  }
8772
8778
  ], pt = $e[ce], ht = P.length > 0 ? P[y % P.length] : void 0, wn = (ht == null ? void 0 : ht.title) || (ht == null ? void 0 : ht.content) || "", ot = P.length > 0 ? B % P.length : 0, Bt = P[ot], Nn = De(() => {
8773
8779
  if (!Bt) return [];
8774
- const $ = [], { publishTime: oe, effectiveStartTime: ge, effectiveEndTime: je } = Bt;
8775
- return oe && $.push(`发布时间:${oe}`), (ge || je) && $.push(
8780
+ const M = [], { publishTime: oe, effectiveStartTime: ge, effectiveEndTime: je } = Bt;
8781
+ return oe && M.push(`发布时间:${oe}`), (ge || je) && M.push(
8776
8782
  `生效时间:${ge || "不限"} ~ ${je || "不限"}`
8777
- ), $;
8783
+ ), M;
8778
8784
  }, [Bt]), qn = J(() => {
8779
8785
  ae(
8780
8786
  P.length > 0 ? y % P.length : 0
8781
8787
  ), I(!0);
8782
8788
  }, [y, P.length]), kt = j[F], vt = F >= j.length - 1, Vn = J(() => {
8783
- const $ = j[F];
8784
- if ($ && qg(go($)), F < j.length - 1) {
8789
+ const M = j[F];
8790
+ if (M && qg(go(M)), F < j.length - 1) {
8785
8791
  S((oe) => oe + 1);
8786
8792
  return;
8787
8793
  }
@@ -8793,7 +8799,7 @@ function Vg({
8793
8799
  "div",
8794
8800
  {
8795
8801
  className: A.bannerLeft,
8796
- onClick: () => $t.push("/welcome"),
8802
+ onClick: () => wt.push("/welcome"),
8797
8803
  style: { cursor: "pointer" },
8798
8804
  children: /* @__PURE__ */ e("img", { src: Og, alt: "Z-OPC 一人公司基建", className: A.logo })
8799
8805
  }
@@ -8999,7 +9005,7 @@ function Vg({
8999
9005
  h && /* @__PURE__ */ e(
9000
9006
  Es,
9001
9007
  {
9002
- menu: { items: Tt },
9008
+ menu: { items: It },
9003
9009
  placement: "bottomRight",
9004
9010
  trigger: ["click"],
9005
9011
  children: /* @__PURE__ */ o("div", { className: A.headerUser, children: [
@@ -9046,7 +9052,7 @@ function Vg({
9046
9052
  Ug,
9047
9053
  {
9048
9054
  embedded: !0,
9049
- onSwitchToCollaboration: () => St("collaboration")
9055
+ onSwitchToCollaboration: () => Tt("collaboration")
9050
9056
  }
9051
9057
  )
9052
9058
  ) : Ee === "system" ? (
@@ -9090,7 +9096,7 @@ function Vg({
9090
9096
  Dg,
9091
9097
  {
9092
9098
  onOpenProject: Gt,
9093
- onSwitchMode: ($) => ct($),
9099
+ onSwitchMode: (M) => ct(M),
9094
9100
  openAgentRequest: {
9095
9101
  agent: Z,
9096
9102
  view: fe,
@@ -9136,10 +9142,10 @@ function Vg({
9136
9142
  kind: "schedule",
9137
9143
  ts: Date.now()
9138
9144
  }),
9139
- onOpenExtensions: ($) => qe({
9145
+ onOpenExtensions: (M) => qe({
9140
9146
  kind: "extensions",
9141
9147
  ts: Date.now(),
9142
- cap: $ === "skills" ? "bind" : $ ? "soon" : void 0
9148
+ cap: M === "skills" ? "bind" : M ? "soon" : void 0
9143
9149
  }),
9144
9150
  onOpenHistory: () => qe({
9145
9151
  kind: "history",
@@ -9185,15 +9191,15 @@ function Vg({
9185
9191
  token: x,
9186
9192
  currentUser: h,
9187
9193
  localLane: nt,
9188
- onOpenChat: ($, oe) => Be($, oe ?? null),
9189
- onOpenAgentDetail: ($) => qe({
9194
+ onOpenChat: (M, oe) => Be(M, oe ?? null),
9195
+ onOpenAgentDetail: (M) => qe({
9190
9196
  kind: "agentDetail",
9191
- agent: $,
9197
+ agent: M,
9192
9198
  ts: Date.now()
9193
9199
  }),
9194
9200
  onBackToExtensions: () => qe({ kind: "extensions", ts: Date.now() }),
9195
9201
  onOpenTab: Yt,
9196
- onAgentCreated: ($) => ke((oe) => [...oe, $]),
9202
+ onAgentCreated: (M) => ke((oe) => [...oe, M]),
9197
9203
  onOpenProject: Gt,
9198
9204
  onOpenWorkbenchShell: bn,
9199
9205
  onOpenHistory: () => qe({
@@ -9210,15 +9216,15 @@ function Vg({
9210
9216
  lane: ze,
9211
9217
  onLaneChange: at,
9212
9218
  personal: !0,
9213
- onPersonalSend: Ct
9219
+ onPersonalSend: St
9214
9220
  }
9215
9221
  )
9216
9222
  ) : k ? /* @__PURE__ */ e(
9217
9223
  tr,
9218
9224
  {
9219
9225
  onOpenTeamModal: n,
9220
- todoPanelVisible: M,
9221
- onToggleTodoPanel: () => O(($) => !$),
9226
+ todoPanelVisible: $,
9227
+ onToggleTodoPanel: () => O((M) => !M),
9222
9228
  todoCount: G
9223
9229
  }
9224
9230
  ) : /* @__PURE__ */ e(
@@ -9231,7 +9237,7 @@ function Vg({
9231
9237
  /* @__PURE__ */ e(
9232
9238
  "div",
9233
9239
  {
9234
- className: `${A.todoPanel} ${M ? "" : A.todoPanelHidden}`,
9240
+ className: `${A.todoPanel} ${$ ? "" : A.todoPanelHidden}`,
9235
9241
  children: /* @__PURE__ */ e(xl, { onCountChange: U })
9236
9242
  }
9237
9243
  )
@@ -9281,8 +9287,8 @@ function Vg({
9281
9287
  )
9282
9288
  ] }),
9283
9289
  /* @__PURE__ */ o("div", { className: A.announcementModalBody, children: [
9284
- /* @__PURE__ */ e("div", { className: A.announcementList, children: P.map(($, oe) => {
9285
- const ge = $.title || $.content;
9290
+ /* @__PURE__ */ e("div", { className: A.announcementList, children: P.map((M, oe) => {
9291
+ const ge = M.title || M.content;
9286
9292
  return /* @__PURE__ */ e(
9287
9293
  "div",
9288
9294
  {
@@ -9291,13 +9297,13 @@ function Vg({
9291
9297
  onClick: () => ae(oe),
9292
9298
  children: ge
9293
9299
  },
9294
- $.id ?? `${ge}-${oe}`
9300
+ M.id ?? `${ge}-${oe}`
9295
9301
  );
9296
9302
  }) }),
9297
9303
  /* @__PURE__ */ e("div", { className: A.announcementDetail, children: Bt ? /* @__PURE__ */ o(et, { children: [
9298
9304
  /* @__PURE__ */ e("div", { className: A.announcementDetailTitle, children: Bt.title || "公告详情" }),
9299
9305
  /* @__PURE__ */ e("div", { className: A.announcementDetailContent, children: Bt.content || "暂无公告内容" }),
9300
- Nn.length > 0 && /* @__PURE__ */ e("div", { className: A.announcementDetailMeta, children: Nn.map(($) => /* @__PURE__ */ e("span", { children: $ }, $)) })
9306
+ Nn.length > 0 && /* @__PURE__ */ e("div", { className: A.announcementDetailMeta, children: Nn.map((M) => /* @__PURE__ */ e("span", { children: M }, M)) })
9301
9307
  ] }) : /* @__PURE__ */ e("div", { className: A.announcementDetailEmpty, children: "暂无生效公告" }) })
9302
9308
  ] })
9303
9309
  ]
@@ -9376,13 +9382,13 @@ function c1({ onClose: t }) {
9376
9382
  z(() => {
9377
9383
  p();
9378
9384
  }, [p]);
9379
- const [k, L] = d(""), [W, x] = d(""), [w, T] = d(!1), [K, Y] = d(() => /* @__PURE__ */ new Set()), M = ue(!1), O = (i) => i.staff_id != null && i.staff_id > 0 ? String(i.staff_id) : i.id != null && i.id > 0 ? String(i.id) : String(i.username ?? ""), G = async (i, I) => {
9380
- if (!M.current) {
9381
- M.current = !0, i && Y((B) => new Set(B).add(i)), T(!0);
9385
+ const [k, L] = d(""), [W, x] = d(""), [w, T] = d(!1), [K, Y] = d(() => /* @__PURE__ */ new Set()), $ = ue(!1), O = (i) => i.staff_id != null && i.staff_id > 0 ? String(i.staff_id) : i.id != null && i.id > 0 ? String(i.id) : String(i.username ?? ""), G = async (i, I) => {
9386
+ if (!$.current) {
9387
+ $.current = !0, i && Y((B) => new Set(B).add(i)), T(!0);
9382
9388
  try {
9383
9389
  await I();
9384
9390
  } finally {
9385
- M.current = !1, T(!1), i && Y((B) => {
9391
+ $.current = !1, T(!1), i && Y((B) => {
9386
9392
  const ae = new Set(B);
9387
9393
  return ae.delete(i), ae;
9388
9394
  });
@@ -9747,12 +9753,12 @@ async function ra(t, n) {
9747
9753
  n(a);
9748
9754
  }
9749
9755
  function yo() {
9750
- const { pathname: t, search: n } = $t.location, a = fn.parse(n);
9756
+ const { pathname: t, search: n } = wt.location, a = fn.parse(n);
9751
9757
  if (!a.projectId && !a.project_id)
9752
9758
  return;
9753
9759
  delete a.projectId, delete a.project_id;
9754
9760
  const r = fn.stringify(a);
9755
- $t.replace({
9761
+ wt.replace({
9756
9762
  pathname: t,
9757
9763
  search: r ? `?${r}` : ""
9758
9764
  });
@@ -9762,7 +9768,7 @@ function f1({
9762
9768
  } = {}) {
9763
9769
  const n = Rs(), a = Fs(), c = !["system", "ops", "middleware"].includes(t ?? "") && Fr() && !Br(n.search);
9764
9770
  z(() => {
9765
- c && $t.replace({
9771
+ c && wt.replace({
9766
9772
  pathname: "/workspace/phone",
9767
9773
  search: n.search
9768
9774
  });
@@ -9780,7 +9786,7 @@ function f1({
9780
9786
  projects: S.projects,
9781
9787
  token: S.token
9782
9788
  }))
9783
- ), W = V((S) => S.loadProjects), x = V((S) => S.loadRunningExecutions), w = V((S) => S.updateCurrentUser), T = V((S) => S.selectFile), K = V((S) => S.clearCurrentProject), [Y, M] = d(!1), [O, G] = d(!1), [U, E] = d(null), R = ue(!1), f = ue(!1);
9789
+ ), W = V((S) => S.loadProjects), x = V((S) => S.loadRunningExecutions), w = V((S) => S.updateCurrentUser), T = V((S) => S.selectFile), K = V((S) => S.clearCurrentProject), [Y, $] = d(!1), [O, G] = d(!1), [U, E] = d(null), R = ue(!1), f = ue(!1);
9784
9790
  z(() => {
9785
9791
  Sl(L);
9786
9792
  }, [L]), z(() => {
@@ -9788,7 +9794,7 @@ function f1({
9788
9794
  if (!N) return;
9789
9795
  /^(1|true)$/i.test(N) || E(N), R.current = !0, G(!0), delete S.newChat;
9790
9796
  const ne = fn.stringify(S);
9791
- $t.replace({
9797
+ wt.replace({
9792
9798
  pathname: n.pathname,
9793
9799
  search: ne ? `?${ne}` : ""
9794
9800
  });
@@ -10060,7 +10066,7 @@ function f1({
10060
10066
  onNewProject: () => {
10061
10067
  V.getState().currentProject && K();
10062
10068
  },
10063
- onOpenTeam: () => M(!0),
10069
+ onOpenTeam: () => $(!0),
10064
10070
  forcedChatMode: t,
10065
10071
  showNewChat: O,
10066
10072
  presetNewChatScenario: U,
@@ -10069,7 +10075,7 @@ function f1({
10069
10075
  }
10070
10076
  ),
10071
10077
  I != null ? /* @__PURE__ */ e("div", { className: pn.openingOverlay, children: /* @__PURE__ */ e(_t, { description: `正在打开工程 ${I}…` }) }) : null,
10072
- Y && /* @__PURE__ */ e(c1, { onClose: () => M(!1) }),
10078
+ Y && /* @__PURE__ */ e(c1, { onClose: () => $(!1) }),
10073
10079
  /* @__PURE__ */ e(Cs, {})
10074
10080
  ] }) });
10075
10081
  }