@yuku123/z-team-component 0.2.147 → 0.2.149

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/{AdminModuleContent-Hqbz9zIW.js → AdminModuleContent-DSevBIXW.js} +6 -6
  2. package/dist/{ChangeLogView-TzDl0AtR.js → ChangeLogView-CQSpFxHU.js} +1 -1
  3. package/dist/{ComponentDoc-C1G4Mm51.js → ComponentDoc-BBNZLfGu.js} +3 -3
  4. package/dist/{InvitationManagementPage-CnvziECy.js → InvitationManagementPage-C3YKZ2zw.js} +1 -1
  5. package/dist/{OnboardingPage-DXboe8ih.js → OnboardingPage-Bq3ekVzQ.js} +2 -2
  6. package/dist/{ScheduledTasks-BS7PY5sp.js → ScheduledTasks-CthKSllh.js} +9 -9
  7. package/dist/{SettingsModal-D0EsMV_P.js → SettingsModal-DdN6DQ2i.js} +4 -4
  8. package/dist/{SystemShell-BxXzdjVa.js → SystemShell-CbeG5R2P.js} +7 -7
  9. package/dist/{admin-logs-BHyjZHbz.js → admin-logs-ZjsuGQVf.js} +1 -1
  10. package/dist/{api-CycJZVHC.js → api-DEzNFYEH.js} +1 -1
  11. package/dist/{api-CagjdiZc.js → api-QWhELrcB.js} +1 -1
  12. package/dist/{browser-D6hmtU4o.js → browser-CmttQ9gO.js} +1 -1
  13. package/dist/{createWorkspaceWsHandler-QF3bQ-IT.js → createWorkspaceWsHandler-BUgifiWL.js} +974 -974
  14. package/dist/{index-CMo9_PMX.js → index-0bNTx_sy.js} +3 -3
  15. package/dist/{index-1wHAjNYm.js → index-1wScWl73.js} +1 -1
  16. package/dist/{index-Bm8ytkep.js → index-B68lOg7l.js} +1 -1
  17. package/dist/{index-BbUWY3-N.js → index-BXuTSm6D.js} +295 -275
  18. package/dist/{index-m1tYyXCN.js → index-BZU5-rtH.js} +8 -8
  19. package/dist/{index-BJqVjxTH.js → index-Bz8xkCyF.js} +2 -2
  20. package/dist/{index-_tCc_IrD.js → index-BzLwboRj.js} +1 -1
  21. package/dist/{index-RqmRAHr-.js → index-C9znQOcs.js} +1 -1
  22. package/dist/{index-CUU0_w91.js → index-COAoN7Xw.js} +2 -2
  23. package/dist/{index-BB7mLbZh.js → index-CZeRMcpk.js} +1 -1
  24. package/dist/{index-CVb95_RB.js → index-CrNg1FzI.js} +2 -2
  25. package/dist/{index-Cs3bSBSA.js → index-CrypC8bi.js} +1 -1
  26. package/dist/{index-6nWWNaXt.js → index-D1zwryIw.js} +3 -3
  27. package/dist/{index-B3Esoe37.js → index-D8XV1Iom.js} +3 -3
  28. package/dist/{index-BEhHHUq4.js → index-DAYefbYc.js} +4 -4
  29. package/dist/{index-Qm04dVwg.js → index-DHDFtdyI.js} +2 -2
  30. package/dist/{index-B8Cq3z8N.js → index-DO8xW6Uf.js} +4 -4
  31. package/dist/{index-B2qMUNTS.js → index-DPMUkyf2.js} +2 -2
  32. package/dist/{index-B1s8yQ7i.js → index-DSDZX0dw.js} +4 -4
  33. package/dist/index-DrDFy5jN.js +139 -0
  34. package/dist/{index-By6ple_0.js → index-VHH_xRud.js} +1 -1
  35. package/dist/{index-Djd2T2UC.js → index-Vb4pEEuc.js} +2 -2
  36. package/dist/{index-CvY3UPgv.js → index-cx8bRUKW.js} +6 -6
  37. package/dist/{index-CLRBli7g.js → index-kh7Xdj-N.js} +2 -2
  38. package/dist/{index-Gqnbla9p.js → index-mNVzO0-T.js} +2 -2
  39. package/dist/{index-jdeypph-.js → index-wx1lWcF9.js} +2 -2
  40. package/dist/index.js +1 -1
  41. package/dist/{instance-pWYUpPox.js → instance-1SutbIEu.js} +1 -1
  42. package/dist/{menuPermission-ld9z5-rU.js → menuPermission-1gumYQte.js} +3 -3
  43. package/dist/pages.js +1 -1
  44. package/dist/{send-default-agent-team-message-BcDSuXY4.js → send-default-agent-team-message-CU73siis.js} +1 -1
  45. package/dist/{spark-md5-BSt7VDzf.js → spark-md5-C6nqzhSy.js} +1 -1
  46. package/dist/{training-DSRShSvw.js → training-B3KU48j2.js} +1 -1
  47. package/dist/{webide-CS9XAaV0.js → webide-CBcpNSyT.js} +3 -3
  48. package/dist/z-team-component.css +1 -1
  49. package/package.json +1 -1
  50. package/dist/index-BlDMnzJF.js +0 -18
@@ -1,20 +1,20 @@
1
- import { jsxs as i, jsx as n, Fragment as _t } from "react/jsx-runtime";
2
- import { ReloadOutlined as gt, SearchOutlined as Nt, RightOutlined as yt, TeamOutlined as ft, MessageOutlined as wt, AppstoreOutlined as Me, DeploymentUnitOutlined as bt, ThunderboltOutlined as Tt } from "@ant-design/icons";
3
- import { Button as Q, Select as Pe, Spin as he, Empty as f, Tag as k, Input as j, Modal as Ct } from "antd";
4
- import { useState as p, useCallback as _, useEffect as me, useMemo as Y, useRef as St } from "react";
5
- import { u as B } from "./ComponentDoc-C1G4Mm51.js";
6
- import { h as W } from "./history-BlrA1eaW.js";
7
- import { menuItems as Rt } from "@yuku123/z-product-component";
8
- import { C as Pt } from "./createWorkspaceWsHandler-QF3bQ-IT.js";
9
- import { l as At, c as kt } from "./api-CycJZVHC.js";
10
- import { SidebarShell as It, MenuTree as Et } from "@yuku123/z-frontend-common/ui";
11
- const Lt = "product-workspace", xe = "productCode";
1
+ import { jsxs as i, jsx as n, Fragment as Nt } from "react/jsx-runtime";
2
+ import { ReloadOutlined as yt, SearchOutlined as ft, RightOutlined as wt, TeamOutlined as bt, MessageOutlined as Tt, AppstoreOutlined as Me, DeploymentUnitOutlined as Ct, BugOutlined as xe, CodeOutlined as ze } from "@ant-design/icons";
3
+ import { Button as W, Select as Pe, Spin as he, Empty as f, Tag as k, Input as q, Modal as St } from "antd";
4
+ import { useState as p, useCallback as _, useEffect as me, useMemo as Y, useRef as Rt } from "react";
5
+ import { u as G } from "./ComponentDoc-BBNZLfGu.js";
6
+ import { h as Q } from "./history-BlrA1eaW.js";
7
+ import { menuItems as Pt } from "@yuku123/z-product-component";
8
+ import { C as At } from "./createWorkspaceWsHandler-BUgifiWL.js";
9
+ import { l as kt, c as It } from "./api-DEzNFYEH.js";
10
+ import { SidebarShell as Et, MenuTree as Lt } from "@yuku123/z-frontend-common/ui";
11
+ const Bt = "product-workspace", Ke = "productCode";
12
12
  function w(a) {
13
13
  if (!a.ok) throw new Error(`产品接口失败 (${a.status})`);
14
14
  return a.json();
15
15
  }
16
16
  async function Gt() {
17
- const a = B.getState().token, s = await fetch(`/api/product/list${a ? `?token=${encodeURIComponent(a)}` : ""}`, {
17
+ const a = G.getState().token, s = await fetch(`/api/product/list${a ? `?token=${encodeURIComponent(a)}` : ""}`, {
18
18
  credentials: "include",
19
19
  headers: { Accept: "application/json" }
20
20
  }), c = await w(s), o = Array.isArray(c) ? c : c == null ? void 0 : c.data;
@@ -24,7 +24,7 @@ async function Gt() {
24
24
  name: String(g.name ?? g.productCode ?? g.code ?? "未命名")
25
25
  })) : [];
26
26
  }
27
- async function Bt(a) {
27
+ async function $t(a) {
28
28
  try {
29
29
  const s = await fetch(`/api/product/${encodeURIComponent(a)}`, {
30
30
  credentials: "include",
@@ -35,7 +35,7 @@ async function Bt(a) {
35
35
  return null;
36
36
  }
37
37
  }
38
- async function $t(a) {
38
+ async function Ft(a) {
39
39
  try {
40
40
  const s = await fetch(`/api/product/${encodeURIComponent(a)}/atelier/workspace`, {
41
41
  credentials: "include",
@@ -46,7 +46,7 @@ async function $t(a) {
46
46
  return [];
47
47
  }
48
48
  }
49
- async function Ft(a, s) {
49
+ async function Ot(a, s) {
50
50
  try {
51
51
  const c = await fetch(
52
52
  `/api/product/${encodeURIComponent(a)}/atelier/files/raw?path=${encodeURIComponent(s)}`,
@@ -57,31 +57,31 @@ async function Ft(a, s) {
57
57
  return null;
58
58
  }
59
59
  }
60
- function Ot(a) {
60
+ function qt(a) {
61
61
  var o;
62
62
  const s = (o = a.ext) == null ? void 0 : o.params;
63
63
  if (!s || typeof s != "object") return null;
64
- const c = s[xe];
64
+ const c = s[Ke];
65
65
  return c == null ? null : String(c);
66
66
  }
67
67
  async function jt(a, s) {
68
68
  try {
69
- return (await At(s)).filter((o) => Ot(o) === a);
69
+ return (await kt(s)).filter((o) => qt(o) === a);
70
70
  } catch {
71
71
  return [];
72
72
  }
73
73
  }
74
- async function qt(a, s, c) {
75
- return kt(
76
- { scenario_code: Lt, name: s || `产品 ${a} 讨论组` },
74
+ async function Ht(a, s, c) {
75
+ return It(
76
+ { scenario_code: Bt, name: s || `产品 ${a} 讨论组` },
77
77
  c,
78
- { [xe]: a }
78
+ { [Ke]: a }
79
79
  );
80
80
  }
81
81
  function b(a) {
82
82
  return a && typeof a == "object" && "data" in a ? a.data : a;
83
83
  }
84
- async function Ht() {
84
+ async function Dt() {
85
85
  try {
86
86
  const a = await fetch("/api/product/group/list", {
87
87
  credentials: "include",
@@ -92,7 +92,7 @@ async function Ht() {
92
92
  return [];
93
93
  }
94
94
  }
95
- async function Dt(a) {
95
+ async function Ut(a) {
96
96
  try {
97
97
  const s = await fetch("/api/product/group", {
98
98
  method: "POST",
@@ -105,7 +105,7 @@ async function Dt(a) {
105
105
  return null;
106
106
  }
107
107
  }
108
- async function Ut(a) {
108
+ async function Mt(a) {
109
109
  try {
110
110
  const s = await fetch(`/api/product/${encodeURIComponent(a)}/app-binding/list`, {
111
111
  credentials: "include",
@@ -116,7 +116,7 @@ async function Ut(a) {
116
116
  return [];
117
117
  }
118
118
  }
119
- async function Mt(a, s) {
119
+ async function xt(a, s) {
120
120
  try {
121
121
  const c = await fetch(`/api/product/${encodeURIComponent(a)}/app-binding`, {
122
122
  method: "POST",
@@ -129,7 +129,7 @@ async function Mt(a, s) {
129
129
  return null;
130
130
  }
131
131
  }
132
- async function xt(a) {
132
+ async function zt(a) {
133
133
  try {
134
134
  const s = await fetch(`/api/product/${encodeURIComponent(a)}/requirement/list`, {
135
135
  credentials: "include",
@@ -140,7 +140,7 @@ async function xt(a) {
140
140
  return [];
141
141
  }
142
142
  }
143
- async function zt(a, s) {
143
+ async function Kt(a, s) {
144
144
  try {
145
145
  const c = await fetch(`/api/product/${encodeURIComponent(a)}/requirement`, {
146
146
  method: "POST",
@@ -153,7 +153,7 @@ async function zt(a, s) {
153
153
  return null;
154
154
  }
155
155
  }
156
- async function q(a, s) {
156
+ async function j(a, s) {
157
157
  try {
158
158
  const c = await fetch(
159
159
  `/api/product/${encodeURIComponent(a)}/${s}`,
@@ -164,25 +164,25 @@ async function q(a, s) {
164
164
  return [];
165
165
  }
166
166
  }
167
- async function Kt(a) {
168
- return q(a, "glossary/list");
169
- }
170
167
  async function Vt(a) {
171
- return q(a, "concept/list");
168
+ return j(a, "glossary/list");
172
169
  }
173
170
  async function Jt(a) {
174
- return q(a, "scenario/list");
175
- }
176
- async function Wt(a) {
177
- return q(a, "design/list");
171
+ return j(a, "concept/list");
178
172
  }
179
173
  async function Qt(a) {
180
- return q(a, "chat/sessions");
174
+ return j(a, "scenario/list");
175
+ }
176
+ async function Wt(a) {
177
+ return j(a, "design/list");
181
178
  }
182
179
  async function Yt(a) {
183
- return q(a, "chat/proposals");
180
+ return j(a, "chat/sessions");
181
+ }
182
+ async function Zt(a) {
183
+ return j(a, "chat/proposals");
184
184
  }
185
- async function Zt() {
185
+ async function Xt() {
186
186
  try {
187
187
  const a = await fetch("/api/product/relation/types", {
188
188
  credentials: "include",
@@ -193,7 +193,7 @@ async function Zt() {
193
193
  return {};
194
194
  }
195
195
  }
196
- async function Xt() {
196
+ async function en() {
197
197
  try {
198
198
  const a = await fetch("/api/product/architecture", {
199
199
  credentials: "include",
@@ -209,7 +209,7 @@ async function Xt() {
209
209
  return { products: [], groups: [], relations: [], appBindings: [] };
210
210
  }
211
211
  }
212
- async function en(a) {
212
+ async function tn(a) {
213
213
  try {
214
214
  const s = await fetch("/api/product/relation", {
215
215
  method: "POST",
@@ -222,7 +222,7 @@ async function en(a) {
222
222
  return null;
223
223
  }
224
224
  }
225
- async function tn(a) {
225
+ async function nn(a) {
226
226
  try {
227
227
  return await fetch(`/api/product/relation/${a}`, {
228
228
  method: "DELETE",
@@ -233,7 +233,7 @@ async function tn(a) {
233
233
  return !1;
234
234
  }
235
235
  }
236
- async function nn(a, s) {
236
+ async function an(a, s) {
237
237
  try {
238
238
  const c = await fetch(`/api/product/${encodeURIComponent(a)}/requirement/${s.id}`, {
239
239
  method: "PUT",
@@ -246,43 +246,43 @@ async function nn(a, s) {
246
246
  return null;
247
247
  }
248
248
  }
249
- const an = "_container_v1vhg_3", cn = "_header_v1vhg_11", rn = "_title_v1vhg_23", sn = "_subtitle_v1vhg_30", on = "_actions_v1vhg_36", ln = "_stats_v1vhg_42", dn = "_relForm_v1vhg_55", pn = "_relFormLabel_v1vhg_66", un = "_centerFill_v1vhg_72", hn = "_groups_v1vhg_79", mn = "_groupBlock_v1vhg_89", vn = "_groupHeader_v1vhg_95", _n = "_groupName_v1vhg_101", gn = "_groupCount_v1vhg_107", Nn = "_productGrid_v1vhg_112", yn = "_productCard_v1vhg_118", fn = "_cardHead_v1vhg_134", wn = "_cardName_v1vhg_141", bn = "_cardTag_v1vhg_150", Tn = "_cardCode_v1vhg_156", Cn = "_cardDesc_v1vhg_161", Sn = "_cardSection_v1vhg_171", Rn = "_sectionLabel_v1vhg_180", Pn = "_bindList_v1vhg_185", An = "_bindTag_v1vhg_191", kn = "_relList_v1vhg_196", In = "_relRow_v1vhg_202", En = "_relTag_v1vhg_209", Ln = "_relTarget_v1vhg_215", Gn = "_relDel_v1vhg_225", h = {
250
- container: an,
251
- header: cn,
252
- title: rn,
253
- subtitle: sn,
254
- actions: on,
255
- stats: ln,
256
- relForm: dn,
257
- relFormLabel: pn,
258
- centerFill: un,
259
- groups: hn,
260
- groupBlock: mn,
261
- groupHeader: vn,
262
- groupName: _n,
263
- groupCount: gn,
264
- productGrid: Nn,
265
- productCard: yn,
266
- cardHead: fn,
267
- cardName: wn,
268
- cardTag: bn,
269
- cardCode: Tn,
270
- cardDesc: Cn,
271
- cardSection: Sn,
272
- sectionLabel: Rn,
273
- bindList: Pn,
274
- bindTag: An,
275
- relList: kn,
276
- relRow: In,
277
- relTag: En,
278
- relTarget: Ln,
249
+ const cn = "_container_v1vhg_3", rn = "_header_v1vhg_11", sn = "_title_v1vhg_23", on = "_subtitle_v1vhg_30", ln = "_actions_v1vhg_36", dn = "_stats_v1vhg_42", pn = "_relForm_v1vhg_55", un = "_relFormLabel_v1vhg_66", hn = "_centerFill_v1vhg_72", mn = "_groups_v1vhg_79", vn = "_groupBlock_v1vhg_89", _n = "_groupHeader_v1vhg_95", gn = "_groupName_v1vhg_101", Nn = "_groupCount_v1vhg_107", yn = "_productGrid_v1vhg_112", fn = "_productCard_v1vhg_118", wn = "_cardHead_v1vhg_134", bn = "_cardName_v1vhg_141", Tn = "_cardTag_v1vhg_150", Cn = "_cardCode_v1vhg_156", Sn = "_cardDesc_v1vhg_161", Rn = "_cardSection_v1vhg_171", Pn = "_sectionLabel_v1vhg_180", An = "_bindList_v1vhg_185", kn = "_bindTag_v1vhg_191", In = "_relList_v1vhg_196", En = "_relRow_v1vhg_202", Ln = "_relTag_v1vhg_209", Bn = "_relTarget_v1vhg_215", Gn = "_relDel_v1vhg_225", h = {
250
+ container: cn,
251
+ header: rn,
252
+ title: sn,
253
+ subtitle: on,
254
+ actions: ln,
255
+ stats: dn,
256
+ relForm: pn,
257
+ relFormLabel: un,
258
+ centerFill: hn,
259
+ groups: mn,
260
+ groupBlock: vn,
261
+ groupHeader: _n,
262
+ groupName: gn,
263
+ groupCount: Nn,
264
+ productGrid: yn,
265
+ productCard: fn,
266
+ cardHead: wn,
267
+ cardName: bn,
268
+ cardTag: Tn,
269
+ cardCode: Cn,
270
+ cardDesc: Sn,
271
+ cardSection: Rn,
272
+ sectionLabel: Pn,
273
+ bindList: An,
274
+ bindTag: kn,
275
+ relList: In,
276
+ relRow: En,
277
+ relTag: Ln,
278
+ relTarget: Bn,
279
279
  relDel: Gn
280
280
  };
281
- function Bn() {
281
+ function $n() {
282
282
  const [a, s] = p({ products: [], groups: [], relations: [], appBindings: [] }), [c, o] = p({}), [g, L] = p(!0), [d, H] = p(null), [l, D] = p(null), [T, Z] = p("DEPENDS_ON"), $ = _(async () => {
283
283
  L(!0);
284
284
  try {
285
- const [u, v] = await Promise.all([Xt(), Zt()]);
285
+ const [u, v] = await Promise.all([en(), Xt()]);
286
286
  s(u), o(v);
287
287
  } finally {
288
288
  L(!1);
@@ -319,7 +319,7 @@ function Bn() {
319
319
  [a.products]
320
320
  ), M = _(async () => {
321
321
  if (!d || !l || d === l) return;
322
- const u = await en({
322
+ const u = await tn({
323
323
  productCode: d,
324
324
  relatedCode: l,
325
325
  relationType: T,
@@ -350,7 +350,7 @@ function Bn() {
350
350
  /* @__PURE__ */ n("b", { children: a.appBindings.filter((u) => u.appType === "INFRA").length }),
351
351
  " 基建"
352
352
  ] }),
353
- /* @__PURE__ */ n(Q, { size: "small", icon: /* @__PURE__ */ n(gt, {}), onClick: () => void $(), children: "刷新" })
353
+ /* @__PURE__ */ n(W, { size: "small", icon: /* @__PURE__ */ n(yt, {}), onClick: () => void $(), children: "刷新" })
354
354
  ] })
355
355
  ] }),
356
356
  /* @__PURE__ */ i("div", { className: h.relForm, children: [
@@ -393,7 +393,7 @@ function Bn() {
393
393
  }
394
394
  ),
395
395
  /* @__PURE__ */ n(
396
- Q,
396
+ W,
397
397
  {
398
398
  size: "small",
399
399
  type: "primary",
@@ -454,9 +454,9 @@ function Bn() {
454
454
  type: "button",
455
455
  className: h.relDel,
456
456
  onClick: async () => {
457
- await tn(N.id), s((G) => ({
458
- ...G,
459
- relations: G.relations.filter((z) => z.id !== N.id)
457
+ await nn(N.id), s((B) => ({
458
+ ...B,
459
+ relations: B.relations.filter((z) => z.id !== N.id)
460
460
  }));
461
461
  },
462
462
  title: "删除关系",
@@ -470,107 +470,107 @@ function Bn() {
470
470
  ] }, u ?? "__none__")) })
471
471
  ] });
472
472
  }
473
- const $n = "_container_1n33v_5", Fn = "_libraryView_1n33v_14", On = "_libraryHeader_1n33v_22", jn = "_libraryHeadRow_1n33v_32", qn = "_libraryTitle_1n33v_40", Hn = "_librarySubtitle_1n33v_47", Dn = "_librarySearch_1n33v_53", Un = "_libraryBody_1n33v_58", Mn = "_productGrid_1n33v_65", xn = "_productCard_1n33v_71", zn = "_cardCode_1n33v_91", Kn = "_cardName_1n33v_104", Vn = "_cardDesc_1n33v_113", Jn = "_cardFoot_1n33v_124", Wn = "_cardEnter_1n33v_132", Qn = "_cardTag_1n33v_140", Yn = "_left_1n33v_146", Zn = "_leftHeader_1n33v_156", Xn = "_leftTitleRow_1n33v_162", ea = "_leftTitle_1n33v_162", ta = "_backBtn_1n33v_179", na = "_sectionBar_1n33v_209", aa = "_sectionTab_1n33v_219", ia = "_sectionTabActive_1n33v_241", ca = "_sectionIcon_1n33v_248", ra = "_leftBody_1n33v_253", sa = "_fileList_1n33v_264", oa = "_fileTreeHint_1n33v_303", la = "_fileRow_1n33v_309", da = "_fileRowActive_1n33v_323", pa = "_fileRowIcon_1n33v_327", ua = "_fileRowName_1n33v_332", ha = "_fileKindTag_1n33v_341", ma = "_center_1n33v_349", va = "_centerFill_1n33v_358", _a = "_renderArea_1n33v_413", ga = "_renderIframe_1n33v_423", Na = "_renderCode_1n33v_429", ya = "_right_1n33v_442", fa = "_chatSide_1n33v_453", wa = "_chatSideHeader_1n33v_459", ba = "_chatSideTitle_1n33v_468", Ta = "_chatGroupList_1n33v_477", Ca = "_chatGroupRow_1n33v_486", Sa = "_chatGroupRowActive_1n33v_500", Ra = "_chatGroupName_1n33v_504", Pa = "_chatGroupTime_1n33v_513", Aa = "_chatPane_1n33v_520", ka = "_chatPaneHeader_1n33v_526", Ia = "_chatPaneTitle_1n33v_535", Ea = "_chatPaneBody_1n33v_544", La = "_groupChips_1n33v_555", Ga = "_groupChip_1n33v_555", Ba = "_groupChipActive_1n33v_578", $a = "_groupNewBtn_1n33v_589", Fa = "_cardGroup_1n33v_604", Oa = "_overviewArea_1n33v_614", ja = "_overviewHeader_1n33v_619", qa = "_overviewTitle_1n33v_623", Ha = "_overviewSubtitle_1n33v_630", Da = "_overviewTabs_1n33v_636", Ua = "_overviewTab_1n33v_636", Ma = "_overviewTabActive_1n33v_659", xa = "_overviewPanel_1n33v_669", za = "_reqForm_1n33v_677", Ka = "_reqList_1n33v_683", Va = "_reqRow_1n33v_689", Ja = "_reqTitle_1n33v_698", Wa = "_reqTag_1n33v_707", Qa = "_reqStatusTag_1n33v_713", Ya = "_reqTime_1n33v_726", Za = "_appForm_1n33v_733", Xa = "_appTypeSelect_1n33v_740", ei = "_appList_1n33v_751", ti = "_appRow_1n33v_757", ni = "_appIcon_1n33v_766", ai = "_appName_1n33v_771", ii = "_appCode_1n33v_781", ci = "_appTag_1n33v_787", ri = "_appGo_1n33v_793", si = "_appInfraNote_1n33v_808", oi = "_appUnbind_1n33v_814", li = "_statsRow_1n33v_831", di = "_statItem_1n33v_842", pi = "_domainBlock_1n33v_856", ui = "_domainBlockTitle_1n33v_864", hi = "_domainEmpty_1n33v_871", mi = "_domainList_1n33v_879", vi = "_domainRow_1n33v_885", _i = "_domainName_1n33v_894", gi = "_domainDesc_1n33v_908", Ni = "_designHint_1n33v_919", yi = "_designList_1n33v_928", fi = "_designRow_1n33v_934", wi = "_designIcon_1n33v_943", bi = "_designName_1n33v_948", Ti = "_designTime_1n33v_958", Ci = "_overviewEntryBtn_1n33v_965", t = {
474
- container: $n,
475
- libraryView: Fn,
476
- libraryHeader: On,
473
+ const Fn = "_container_1n33v_5", On = "_libraryView_1n33v_14", qn = "_libraryHeader_1n33v_22", jn = "_libraryHeadRow_1n33v_32", Hn = "_libraryTitle_1n33v_40", Dn = "_librarySubtitle_1n33v_47", Un = "_librarySearch_1n33v_53", Mn = "_libraryBody_1n33v_58", xn = "_productGrid_1n33v_65", zn = "_productCard_1n33v_71", Kn = "_cardCode_1n33v_91", Vn = "_cardName_1n33v_104", Jn = "_cardDesc_1n33v_113", Qn = "_cardFoot_1n33v_124", Wn = "_cardEnter_1n33v_132", Yn = "_cardTag_1n33v_140", Zn = "_left_1n33v_146", Xn = "_leftHeader_1n33v_156", ea = "_leftTitleRow_1n33v_162", ta = "_leftTitle_1n33v_162", na = "_backBtn_1n33v_179", aa = "_sectionBar_1n33v_209", ia = "_sectionTab_1n33v_219", ca = "_sectionTabActive_1n33v_241", ra = "_sectionIcon_1n33v_248", sa = "_leftBody_1n33v_253", oa = "_fileList_1n33v_264", la = "_fileTreeHint_1n33v_303", da = "_fileRow_1n33v_309", pa = "_fileRowActive_1n33v_323", ua = "_fileRowIcon_1n33v_327", ha = "_fileRowName_1n33v_332", ma = "_fileKindTag_1n33v_341", va = "_center_1n33v_349", _a = "_centerFill_1n33v_358", ga = "_renderArea_1n33v_413", Na = "_renderIframe_1n33v_423", ya = "_renderCode_1n33v_429", fa = "_right_1n33v_442", wa = "_chatSide_1n33v_453", ba = "_chatSideHeader_1n33v_459", Ta = "_chatSideTitle_1n33v_468", Ca = "_chatGroupList_1n33v_477", Sa = "_chatGroupRow_1n33v_486", Ra = "_chatGroupRowActive_1n33v_500", Pa = "_chatGroupName_1n33v_504", Aa = "_chatGroupTime_1n33v_513", ka = "_chatPane_1n33v_520", Ia = "_chatPaneHeader_1n33v_526", Ea = "_chatPaneTitle_1n33v_535", La = "_chatPaneBody_1n33v_544", Ba = "_groupChips_1n33v_555", Ga = "_groupChip_1n33v_555", $a = "_groupChipActive_1n33v_578", Fa = "_groupNewBtn_1n33v_589", Oa = "_cardGroup_1n33v_604", qa = "_overviewArea_1n33v_614", ja = "_overviewHeader_1n33v_619", Ha = "_overviewTitle_1n33v_623", Da = "_overviewSubtitle_1n33v_630", Ua = "_overviewTabs_1n33v_636", Ma = "_overviewTab_1n33v_636", xa = "_overviewTabActive_1n33v_659", za = "_overviewPanel_1n33v_669", Ka = "_reqForm_1n33v_677", Va = "_reqList_1n33v_683", Ja = "_reqRow_1n33v_689", Qa = "_reqTitle_1n33v_698", Wa = "_reqTag_1n33v_707", Ya = "_reqStatusTag_1n33v_713", Za = "_reqTime_1n33v_726", Xa = "_appForm_1n33v_733", ei = "_appTypeSelect_1n33v_740", ti = "_appList_1n33v_751", ni = "_appRow_1n33v_757", ai = "_appIcon_1n33v_766", ii = "_appName_1n33v_771", ci = "_appCode_1n33v_781", ri = "_appTag_1n33v_787", si = "_appGo_1n33v_793", oi = "_appInfraNote_1n33v_808", li = "_appUnbind_1n33v_814", di = "_statsRow_1n33v_831", pi = "_statItem_1n33v_842", ui = "_domainBlock_1n33v_856", hi = "_domainBlockTitle_1n33v_864", mi = "_domainEmpty_1n33v_871", vi = "_domainList_1n33v_879", _i = "_domainRow_1n33v_885", gi = "_domainName_1n33v_894", Ni = "_domainDesc_1n33v_908", yi = "_designHint_1n33v_919", fi = "_designList_1n33v_928", wi = "_designRow_1n33v_934", bi = "_designIcon_1n33v_943", Ti = "_designName_1n33v_948", Ci = "_designTime_1n33v_958", Si = "_overviewEntryBtn_1n33v_965", t = {
474
+ container: Fn,
475
+ libraryView: On,
476
+ libraryHeader: qn,
477
477
  libraryHeadRow: jn,
478
- libraryTitle: qn,
479
- librarySubtitle: Hn,
480
- librarySearch: Dn,
481
- libraryBody: Un,
482
- productGrid: Mn,
483
- productCard: xn,
484
- cardCode: zn,
485
- cardName: Kn,
486
- cardDesc: Vn,
487
- cardFoot: Jn,
478
+ libraryTitle: Hn,
479
+ librarySubtitle: Dn,
480
+ librarySearch: Un,
481
+ libraryBody: Mn,
482
+ productGrid: xn,
483
+ productCard: zn,
484
+ cardCode: Kn,
485
+ cardName: Vn,
486
+ cardDesc: Jn,
487
+ cardFoot: Qn,
488
488
  cardEnter: Wn,
489
- cardTag: Qn,
490
- left: Yn,
491
- leftHeader: Zn,
492
- leftTitleRow: Xn,
493
- leftTitle: ea,
494
- backBtn: ta,
495
- sectionBar: na,
496
- sectionTab: aa,
497
- sectionTabActive: ia,
498
- sectionIcon: ca,
499
- leftBody: ra,
500
- fileList: sa,
501
- fileTreeHint: oa,
502
- fileRow: la,
503
- fileRowActive: da,
504
- fileRowIcon: pa,
505
- fileRowName: ua,
506
- fileKindTag: ha,
507
- center: ma,
508
- centerFill: va,
509
- renderArea: _a,
510
- renderIframe: ga,
511
- renderCode: Na,
512
- right: ya,
513
- chatSide: fa,
514
- chatSideHeader: wa,
515
- chatSideTitle: ba,
516
- chatGroupList: Ta,
517
- chatGroupRow: Ca,
518
- chatGroupRowActive: Sa,
519
- chatGroupName: Ra,
520
- chatGroupTime: Pa,
521
- chatPane: Aa,
522
- chatPaneHeader: ka,
523
- chatPaneTitle: Ia,
524
- chatPaneBody: Ea,
525
- groupChips: La,
489
+ cardTag: Yn,
490
+ left: Zn,
491
+ leftHeader: Xn,
492
+ leftTitleRow: ea,
493
+ leftTitle: ta,
494
+ backBtn: na,
495
+ sectionBar: aa,
496
+ sectionTab: ia,
497
+ sectionTabActive: ca,
498
+ sectionIcon: ra,
499
+ leftBody: sa,
500
+ fileList: oa,
501
+ fileTreeHint: la,
502
+ fileRow: da,
503
+ fileRowActive: pa,
504
+ fileRowIcon: ua,
505
+ fileRowName: ha,
506
+ fileKindTag: ma,
507
+ center: va,
508
+ centerFill: _a,
509
+ renderArea: ga,
510
+ renderIframe: Na,
511
+ renderCode: ya,
512
+ right: fa,
513
+ chatSide: wa,
514
+ chatSideHeader: ba,
515
+ chatSideTitle: Ta,
516
+ chatGroupList: Ca,
517
+ chatGroupRow: Sa,
518
+ chatGroupRowActive: Ra,
519
+ chatGroupName: Pa,
520
+ chatGroupTime: Aa,
521
+ chatPane: ka,
522
+ chatPaneHeader: Ia,
523
+ chatPaneTitle: Ea,
524
+ chatPaneBody: La,
525
+ groupChips: Ba,
526
526
  groupChip: Ga,
527
- groupChipActive: Ba,
528
- groupNewBtn: $a,
529
- cardGroup: Fa,
530
- overviewArea: Oa,
527
+ groupChipActive: $a,
528
+ groupNewBtn: Fa,
529
+ cardGroup: Oa,
530
+ overviewArea: qa,
531
531
  overviewHeader: ja,
532
- overviewTitle: qa,
533
- overviewSubtitle: Ha,
534
- overviewTabs: Da,
535
- overviewTab: Ua,
536
- overviewTabActive: Ma,
537
- overviewPanel: xa,
538
- reqForm: za,
539
- reqList: Ka,
540
- reqRow: Va,
541
- reqTitle: Ja,
532
+ overviewTitle: Ha,
533
+ overviewSubtitle: Da,
534
+ overviewTabs: Ua,
535
+ overviewTab: Ma,
536
+ overviewTabActive: xa,
537
+ overviewPanel: za,
538
+ reqForm: Ka,
539
+ reqList: Va,
540
+ reqRow: Ja,
541
+ reqTitle: Qa,
542
542
  reqTag: Wa,
543
- reqStatusTag: Qa,
544
- reqTime: Ya,
545
- appForm: Za,
546
- appTypeSelect: Xa,
547
- appList: ei,
548
- appRow: ti,
549
- appIcon: ni,
550
- appName: ai,
551
- appCode: ii,
552
- appTag: ci,
553
- appGo: ri,
554
- appInfraNote: si,
555
- appUnbind: oi,
556
- statsRow: li,
557
- statItem: di,
558
- domainBlock: pi,
559
- domainBlockTitle: ui,
560
- domainEmpty: hi,
561
- domainList: mi,
562
- domainRow: vi,
563
- domainName: _i,
564
- domainDesc: gi,
565
- designHint: Ni,
566
- designList: yi,
567
- designRow: fi,
568
- designIcon: wi,
569
- designName: bi,
570
- designTime: Ti,
571
- overviewEntryBtn: Ci
543
+ reqStatusTag: Ya,
544
+ reqTime: Za,
545
+ appForm: Xa,
546
+ appTypeSelect: ei,
547
+ appList: ti,
548
+ appRow: ni,
549
+ appIcon: ai,
550
+ appName: ii,
551
+ appCode: ci,
552
+ appTag: ri,
553
+ appGo: si,
554
+ appInfraNote: oi,
555
+ appUnbind: li,
556
+ statsRow: di,
557
+ statItem: pi,
558
+ domainBlock: ui,
559
+ domainBlockTitle: hi,
560
+ domainEmpty: mi,
561
+ domainList: vi,
562
+ domainRow: _i,
563
+ domainName: gi,
564
+ domainDesc: Ni,
565
+ designHint: yi,
566
+ designList: fi,
567
+ designRow: wi,
568
+ designIcon: bi,
569
+ designName: Ti,
570
+ designTime: Ci,
571
+ overviewEntryBtn: Si
572
572
  };
573
- function Si(a) {
573
+ function Ri(a) {
574
574
  return {
575
575
  id: String(a.id),
576
576
  name: a.name,
@@ -583,74 +583,94 @@ function Si(a) {
583
583
  scenario_name: a.scenarioName ?? a.name
584
584
  };
585
585
  }
586
- const Ri = [
586
+ const Pi = [
587
587
  {
588
- title: "产品域",
588
+ title: "产品",
589
589
  icon: /* @__PURE__ */ n(Me, {}),
590
590
  items: [
591
591
  { key: "prod-library", label: "产品库", icon: /* @__PURE__ */ n(Me, {}) },
592
592
  {
593
593
  key: "prod-architecture",
594
594
  label: "架构全景",
595
- icon: /* @__PURE__ */ n(bt, {}),
595
+ icon: /* @__PURE__ */ n(Ct, {}),
596
596
  title: "租户下所有产品的架构关系(产品↔产品、产品↔中间件)"
597
+ },
598
+ ...Pt.map((a) => ({
599
+ key: a.key,
600
+ label: a.label,
601
+ icon: a.icon,
602
+ path: a.key
603
+ }))
604
+ ]
605
+ },
606
+ {
607
+ title: "测试",
608
+ icon: /* @__PURE__ */ n(xe, {}),
609
+ items: [
610
+ {
611
+ key: "qa-dashboard",
612
+ label: "QA 总览",
613
+ icon: /* @__PURE__ */ n(xe, {}),
614
+ path: "/test/qa/dashboard"
597
615
  }
598
616
  ]
599
617
  },
600
618
  {
601
- title: "产品工作台",
602
- icon: /* @__PURE__ */ n(Tt, {}),
603
- items: Rt.map((a) => ({
604
- key: a.key,
605
- label: a.label,
606
- icon: a.icon,
607
- path: a.key
608
- }))
619
+ title: "研发",
620
+ icon: /* @__PURE__ */ n(ze, {}),
621
+ items: [
622
+ {
623
+ key: "lc-apps",
624
+ label: "应用研发",
625
+ icon: /* @__PURE__ */ n(ze, {}),
626
+ path: "/lc/apps"
627
+ }
628
+ ]
609
629
  }
610
630
  ];
611
- function ze(a) {
631
+ function Ve(a) {
612
632
  const s = a.toLowerCase();
613
633
  return /\.(html?|png|jpe?g|webp|svg|pdf)$/.test(s) ? "design" : /\.(md|markdown|txt|docx?)$/.test(s) ? "doc" : /\.(js|ts|tsx|jsx|java|py|json|yml|yaml|sql|css|vue|go|rs)$/.test(s) ? "code" : "other";
614
634
  }
615
- function Ke(a, s = "") {
635
+ function Je(a, s = "") {
616
636
  const c = [];
617
637
  for (const o of a ?? []) {
618
638
  const g = o.path || `${s}${o.name ?? ""}`, L = o.name || g.split("/").pop() || g, d = o.type === "dir" || Array.isArray(o.children);
619
- c.push({ path: g, name: L, dir: d, kind: ze(g), depth: s.split("/").filter(Boolean).length }), d && Array.isArray(o.children) && c.push(...Ke(o.children, `${g}/`));
639
+ c.push({ path: g, name: L, dir: d, kind: Ve(g), depth: s.split("/").filter(Boolean).length }), d && Array.isArray(o.children) && c.push(...Je(o.children, `${g}/`));
620
640
  }
621
641
  return c;
622
642
  }
623
- function Oi() {
624
- const a = B((e) => e.token), s = B((e) => e.selectProject), [c, o] = p([]), [g, L] = p(!0), [d, H] = p(null), [l, D] = p(null), [T, Z] = p(!1), [$, I] = p([]), [ve, X] = p(!1), [U, C] = p(null), [M, E] = p(null), [u, v] = p("other"), [m, ee] = p(""), [x, N] = p("library"), [G, z] = p([]), [Ae, _e] = p(null), [te, ke] = p(!1), [Ve, ne] = p("list"), R = St(null), [ge, Ie] = p([]), [K, Ee] = p(null), [ae, Ne] = p([]), [ie, ye] = p([]), [P, F] = p("req"), [V, Le] = p(""), [ce, Je] = p([]), [re, We] = p([]), [se, Qe] = p([]), [oe, Ye] = p([]), [le, Ze] = p([]), [Ge, Xe] = p([]), fe = _(
643
+ function qi() {
644
+ const a = G((e) => e.token), s = G((e) => e.selectProject), [c, o] = p([]), [g, L] = p(!0), [d, H] = p(null), [l, D] = p(null), [T, Z] = p(!1), [$, I] = p([]), [ve, X] = p(!1), [U, C] = p(null), [M, E] = p(null), [u, v] = p("other"), [m, ee] = p(""), [x, N] = p("library"), [B, z] = p([]), [Ae, _e] = p(null), [te, ke] = p(!1), [Qe, ne] = p("list"), R = Rt(null), [ge, Ie] = p([]), [K, Ee] = p(null), [ae, Ne] = p([]), [ie, ye] = p([]), [P, F] = p("req"), [V, Le] = p(""), [ce, We] = p([]), [re, Ye] = p([]), [se, Ze] = p([]), [oe, Xe] = p([]), [le, et] = p([]), [Be, tt] = p([]), fe = _(
625
645
  async (e) => {
626
646
  H(e), Z(!0), C(null), E(null), ne("list"), _e(null), F("req");
627
- const r = await Bt(e);
647
+ const r = await $t(e);
628
648
  D(r);
629
649
  const y = await jt(e, a);
630
650
  z(y);
631
- const S = await Ut(e);
651
+ const S = await Mt(e);
632
652
  Ne(S);
633
- const ue = await xt(e);
653
+ const ue = await zt(e);
634
654
  ye(ue);
635
- const [Re, J, pt, ut, ht, mt] = await Promise.all([
636
- Kt(e),
655
+ const [Re, J, ht, mt, vt, _t] = await Promise.all([
637
656
  Vt(e),
638
657
  Jt(e),
639
- Wt(e),
640
658
  Qt(e),
641
- Yt(e)
659
+ Wt(e),
660
+ Yt(e),
661
+ Zt(e)
642
662
  ]);
643
- Je(Re), We(J), Qe(pt), Ye(ut), Ze(ht), Xe(mt), X(!0);
644
- const vt = await $t(e);
645
- I(vt), X(!1);
663
+ We(Re), Ye(J), Ze(ht), Xe(mt), et(vt), tt(_t), X(!0);
664
+ const gt = await Ft(e);
665
+ I(gt), X(!1);
646
666
  },
647
667
  [a]
648
- ), Be = _(async () => {
668
+ ), Ge = _(async () => {
649
669
  L(!0);
650
670
  try {
651
671
  const e = await Gt();
652
672
  o(e);
653
- const r = await Ht();
673
+ const r = await Dt();
654
674
  Ie(r);
655
675
  try {
656
676
  const y = new URLSearchParams(window.location.search).get("product");
@@ -670,18 +690,18 @@ function Oi() {
670
690
  }
671
691
  }, [fe]);
672
692
  me(() => {
673
- Be();
674
- }, [Be]);
675
- const et = _(() => {
693
+ Ge();
694
+ }, [Ge]);
695
+ const nt = _(() => {
676
696
  if (!d) return;
677
697
  const e = new URLSearchParams();
678
- e.set("product", d), l != null && l.name && e.set("productName", l.name), W.push(`/lc/apps?${e.toString()}`);
679
- }, [d, l == null ? void 0 : l.name]), tt = _(() => {
698
+ e.set("product", d), l != null && l.name && e.set("productName", l.name), Q.push(`/lc/apps?${e.toString()}`);
699
+ }, [d, l == null ? void 0 : l.name]), at = _(() => {
680
700
  if (!d) return;
681
701
  const e = new URLSearchParams();
682
- e.set("product", d), l != null && l.name && e.set("productName", l.name), W.push(`/test/qa/dashboard?${e.toString()}`);
702
+ e.set("product", d), l != null && l.name && e.set("productName", l.name), Q.push(`/test/qa/dashboard?${e.toString()}`);
683
703
  }, [d, l == null ? void 0 : l.name]), we = _(() => {
684
- H(null), Z(!1), D(null), I([]), z([]), C(null), E(null), _e(null), ne("list"), R.current !== void 0 && B.setState({ currentProject: R.current }), R.current = void 0;
704
+ H(null), Z(!1), D(null), I([]), z([]), C(null), E(null), _e(null), ne("list"), R.current !== void 0 && G.setState({ currentProject: R.current }), R.current = void 0;
685
705
  }, []);
686
706
  me(() => {
687
707
  new URLSearchParams(window.location.search).get("view") === "architecture" && N("architecture");
@@ -690,18 +710,18 @@ function Oi() {
690
710
  (e) => {
691
711
  T && we(), N(e);
692
712
  const r = new URL(window.location.href);
693
- r.searchParams.set("view", e), W.replace(`${r.pathname}${r.search}${r.hash}`);
713
+ r.searchParams.set("view", e), Q.replace(`${r.pathname}${r.search}${r.hash}`);
694
714
  },
695
715
  [T, we]
696
716
  ), Fe = _((e) => {
697
- W.push(e);
698
- }, []), Oe = T ? null : x === "architecture" ? "prod-architecture" : "prod-library", je = _(
717
+ Q.push(e);
718
+ }, []), Oe = T ? null : x === "architecture" ? "prod-architecture" : "prod-library", qe = _(
699
719
  (e, r) => {
700
- e === "产品域" ? $e(r.key === "prod-architecture" ? "architecture" : "library") : r.path && Fe(r.path);
720
+ e === "产品" ? $e(r.key === "prod-architecture" ? "architecture" : "library") : r.path && Fe(r.path);
701
721
  },
702
722
  [$e, Fe]
703
- ), nt = Y(
704
- () => Ri.map((e) => ({
723
+ ), it = Y(
724
+ () => Pi.map((e) => ({
705
725
  key: e.title,
706
726
  title: e.title,
707
727
  items: e.items.map((r) => ({
@@ -710,67 +730,67 @@ function Oi() {
710
730
  icon: r.icon,
711
731
  title: r.title,
712
732
  active: Oe === r.key,
713
- onClick: () => je(e.title, r)
733
+ onClick: () => qe(e.title, r)
714
734
  }))
715
735
  })),
716
- [Oe, je]
717
- ), qe = _(async () => {
736
+ [Oe, qe]
737
+ ), je = _(async () => {
718
738
  if (!d || !V.trim()) return;
719
- const e = await zt(d, {
739
+ const e = await Kt(d, {
720
740
  title: V.trim(),
721
741
  priority: "P2"
722
742
  });
723
743
  e && (ye((r) => [...r, e]), Le(""));
724
- }, [d, V]), at = ["OPEN", "IN_PROGRESS", "DONE", "CLOSED"], [de] = p(at), it = _(
744
+ }, [d, V]), ct = ["OPEN", "IN_PROGRESS", "DONE", "CLOSED"], [de] = p(ct), rt = _(
725
745
  async (e) => {
726
746
  if (!d || e.id == null) return;
727
747
  const r = String(e.status ?? "OPEN"), y = de.indexOf(r), S = de[(y + 1) % de.length];
728
- await nn(d, { id: e.id, status: S }) && ye((Re) => Re.map((J) => J.id === e.id ? { ...J, status: S } : J));
748
+ await an(d, { id: e.id, status: S }) && ye((Re) => Re.map((J) => J.id === e.id ? { ...J, status: S } : J));
729
749
  },
730
750
  [d, de]
731
751
  ), [A, pe] = p({
732
752
  appCode: "",
733
753
  appName: "",
734
754
  appType: "APP"
735
- }), ct = _(async () => {
755
+ }), st = _(async () => {
736
756
  if (!d || !A.appCode.trim() || !A.appName.trim()) return;
737
- const e = await Mt(d, A);
757
+ const e = await xt(d, A);
738
758
  e && (Ne((r) => [...r, e]), pe({ appCode: "", appName: "", appType: "APP" }));
739
- }, [d, A]), rt = _(
759
+ }, [d, A]), ot = _(
740
760
  async (e) => {
741
761
  d && (await unbindProductApp(d, e), Ne((r) => r.filter((y) => y.id !== e)));
742
762
  },
743
763
  [d]
744
- ), [O, be] = p({ groupCode: "", name: "" }), [st, Te] = p(!1), He = _(async () => {
764
+ ), [O, be] = p({ groupCode: "", name: "" }), [lt, Te] = p(!1), He = _(async () => {
745
765
  if (!O.groupCode.trim() || !O.name.trim()) return !1;
746
- const e = await Dt(O);
766
+ const e = await Ut(O);
747
767
  return e ? (Ie((r) => [...r, e]), be({ groupCode: "", name: "" }), !0) : !1;
748
- }, [O]), ot = _(async () => {
768
+ }, [O]), dt = _(async () => {
749
769
  await He() && Te(!1);
750
- }, [He]), lt = _(
770
+ }, [He]), pt = _(
751
771
  async (e) => {
752
772
  if (!d) return;
753
773
  C(e), E(null);
754
- const r = ze(e);
774
+ const r = Ve(e);
755
775
  v(r);
756
- const y = await Ft(d, e);
776
+ const y = await Ot(d, e);
757
777
  E(y ?? "");
758
778
  },
759
779
  [d]
760
780
  ), Ce = _(
761
781
  async (e) => {
762
782
  if (!e) return;
763
- const r = Si(e);
764
- R.current = B.getState().currentProject, _e(e.id), ne("chat"), s(r);
783
+ const r = Ri(e);
784
+ R.current = G.getState().currentProject, _e(e.id), ne("chat"), s(r);
765
785
  },
766
786
  [s]
767
- ), dt = _(async () => {
787
+ ), ut = _(async () => {
768
788
  if (!(!d || te)) {
769
789
  ke(!0);
770
790
  try {
771
- const e = await qt(
791
+ const e = await Ht(
772
792
  d,
773
- `${(l == null ? void 0 : l.name) || d} · 讨论组 ${G.length + 1}`,
793
+ `${(l == null ? void 0 : l.name) || d} · 讨论组 ${B.length + 1}`,
774
794
  a
775
795
  );
776
796
  z((r) => [...r, e]), await Ce(e);
@@ -778,11 +798,11 @@ function Oi() {
778
798
  ke(!1);
779
799
  }
780
800
  }
781
- }, [d, te, G.length, l == null ? void 0 : l.name, a, Ce]);
801
+ }, [d, te, B.length, l == null ? void 0 : l.name, a, Ce]);
782
802
  me(() => () => {
783
- R.current !== void 0 && B.setState({ currentProject: R.current });
803
+ R.current !== void 0 && G.setState({ currentProject: R.current });
784
804
  }, [Ae]);
785
- const Se = Y(() => Ke($), [$]), De = Y(
805
+ const Se = Y(() => Je($), [$]), De = Y(
786
806
  () => c.filter((e) => !(m && !e.name.includes(m) && !e.productCode.includes(m) || K && e.groupCode !== K)),
787
807
  [c, m, K]
788
808
  ), Ue = _(
@@ -794,8 +814,8 @@ function Oi() {
794
814
  [ge]
795
815
  );
796
816
  return /* @__PURE__ */ i("div", { className: t.container, children: [
797
- /* @__PURE__ */ n(It, { title: "产品", width: 220, storageKey: "ft_product_sidebar_collapsed", children: /* @__PURE__ */ n(Et, { groups: nt, defaultCollapsed: !0 }) }),
798
- T ? /* @__PURE__ */ i(_t, { children: [
817
+ /* @__PURE__ */ n(Et, { title: "产研", width: 220, storageKey: "ft_product_sidebar_collapsed", children: /* @__PURE__ */ n(Lt, { groups: it, defaultCollapsed: !0 }) }),
818
+ T ? /* @__PURE__ */ i(Nt, { children: [
799
819
  /* @__PURE__ */ i("aside", { className: t.left, children: [
800
820
  /* @__PURE__ */ i("div", { className: t.leftHeader, children: [
801
821
  /* @__PURE__ */ i("div", { className: t.leftTitleRow, children: [
@@ -807,11 +827,11 @@ function Oi() {
807
827
  /* @__PURE__ */ n("span", { className: t.sectionIcon, children: "📦" }),
808
828
  " 产品"
809
829
  ] }),
810
- /* @__PURE__ */ i("button", { type: "button", className: t.sectionTab, onClick: et, title: "进入研发工作台(z-lc)", children: [
830
+ /* @__PURE__ */ i("button", { type: "button", className: t.sectionTab, onClick: nt, title: "进入研发工作台(z-lc)", children: [
811
831
  /* @__PURE__ */ n("span", { className: t.sectionIcon, children: "💻" }),
812
832
  " 研发"
813
833
  ] }),
814
- /* @__PURE__ */ i("button", { type: "button", className: t.sectionTab, onClick: tt, title: "进入测试工作台(QA)", children: [
834
+ /* @__PURE__ */ i("button", { type: "button", className: t.sectionTab, onClick: at, title: "进入测试工作台(QA)", children: [
815
835
  /* @__PURE__ */ n("span", { className: t.sectionIcon, children: "🧪" }),
816
836
  " 测试"
817
837
  ] })
@@ -836,7 +856,7 @@ function Oi() {
836
856
  {
837
857
  className: `${t.fileRow} ${U === e.path ? t.fileRowActive : ""}`,
838
858
  style: { paddingLeft: 12 + e.depth * 16 },
839
- onClick: () => !e.dir && lt(e.path),
859
+ onClick: () => !e.dir && pt(e.path),
840
860
  children: [
841
861
  /* @__PURE__ */ n("span", { className: t.fileRowIcon, children: e.dir ? "📁" : e.kind === "design" ? "🖼" : e.kind === "doc" ? "📄" : e.kind === "code" ? "{" : "◦" }),
842
862
  /* @__PURE__ */ n("span", { className: t.fileRowName, children: e.name }),
@@ -956,16 +976,16 @@ function Oi() {
956
976
  P === "req" ? /* @__PURE__ */ i("div", { className: t.overviewPanel, children: [
957
977
  /* @__PURE__ */ i("div", { className: t.reqForm, children: [
958
978
  /* @__PURE__ */ n(
959
- j,
979
+ q,
960
980
  {
961
981
  placeholder: "新增需求标题(针对本产品)",
962
982
  value: V,
963
983
  onChange: (e) => Le(e.target.value),
964
- onPressEnter: () => void qe(),
984
+ onPressEnter: () => void je(),
965
985
  style: { flex: 1 }
966
986
  }
967
987
  ),
968
- /* @__PURE__ */ n(Q, { type: "primary", onClick: () => void qe(), disabled: !V.trim(), children: "添加需求" })
988
+ /* @__PURE__ */ n(W, { type: "primary", onClick: () => void je(), disabled: !V.trim(), children: "添加需求" })
969
989
  ] }),
970
990
  ie.length === 0 ? /* @__PURE__ */ n(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "还没有需求,先落一条" }) : /* @__PURE__ */ n("div", { className: t.reqList, children: ie.map((e) => /* @__PURE__ */ i("div", { className: t.reqRow, children: [
971
991
  /* @__PURE__ */ n("span", { className: t.reqTitle, title: e.title, children: e.title }),
@@ -974,7 +994,7 @@ function Oi() {
974
994
  k,
975
995
  {
976
996
  className: t.reqStatusTag,
977
- onClick: () => void it(e),
997
+ onClick: () => void rt(e),
978
998
  title: "点击流转状态(OPEN → IN_PROGRESS → DONE → CLOSED)",
979
999
  children: e.status || "OPEN"
980
1000
  }
@@ -984,7 +1004,7 @@ function Oi() {
984
1004
  ] }) : P === "apps" ? /* @__PURE__ */ i("div", { className: t.overviewPanel, children: [
985
1005
  /* @__PURE__ */ i("div", { className: t.appForm, children: [
986
1006
  /* @__PURE__ */ n(
987
- j,
1007
+ q,
988
1008
  {
989
1009
  placeholder: "应用编码(如 z-lc 应用 code)",
990
1010
  value: A.appCode,
@@ -993,7 +1013,7 @@ function Oi() {
993
1013
  }
994
1014
  ),
995
1015
  /* @__PURE__ */ n(
996
- j,
1016
+ q,
997
1017
  {
998
1018
  placeholder: "应用名称",
999
1019
  value: A.appName,
@@ -1014,10 +1034,10 @@ function Oi() {
1014
1034
  }
1015
1035
  ),
1016
1036
  /* @__PURE__ */ n(
1017
- Q,
1037
+ W,
1018
1038
  {
1019
1039
  type: "primary",
1020
- onClick: () => void ct(),
1040
+ onClick: () => void st(),
1021
1041
  disabled: !A.appCode.trim() || !A.appName.trim(),
1022
1042
  children: "绑定"
1023
1043
  }
@@ -1042,7 +1062,7 @@ function Oi() {
1042
1062
  className: t.appGo,
1043
1063
  onClick: () => {
1044
1064
  const r = new URLSearchParams();
1045
- r.set("product", d || ""), l != null && l.name && r.set("productName", l.name), r.set("app", e.appCode), W.push(`/lc/apps?${r.toString()}`);
1065
+ r.set("product", d || ""), l != null && l.name && r.set("productName", l.name), r.set("app", e.appCode), Q.push(`/lc/apps?${r.toString()}`);
1046
1066
  },
1047
1067
  children: "去研发"
1048
1068
  }
@@ -1052,7 +1072,7 @@ function Oi() {
1052
1072
  {
1053
1073
  type: "button",
1054
1074
  className: t.appUnbind,
1055
- onClick: () => void rt(e.id),
1075
+ onClick: () => void ot(e.id),
1056
1076
  title: "解绑",
1057
1077
  children: "✕"
1058
1078
  }
@@ -1097,7 +1117,7 @@ function Oi() {
1097
1117
  ] }),
1098
1118
  /* @__PURE__ */ i("div", { className: t.domainBlock, children: [
1099
1119
  /* @__PURE__ */ n("div", { className: t.domainBlockTitle, children: "📌 蒸馏提案" }),
1100
- Ge.length === 0 ? /* @__PURE__ */ n("div", { className: t.domainEmpty, children: "还没有提案(聊天中沉淀的需求/设计提案会出现在这里)" }) : /* @__PURE__ */ n("div", { className: t.domainList, children: Ge.map((e, r) => {
1120
+ Be.length === 0 ? /* @__PURE__ */ n("div", { className: t.domainEmpty, children: "还没有提案(聊天中沉淀的需求/设计提案会出现在这里)" }) : /* @__PURE__ */ n("div", { className: t.domainList, children: Be.map((e, r) => {
1101
1121
  let y = {};
1102
1122
  try {
1103
1123
  y = JSON.parse(String(e.payload ?? "{}"));
@@ -1126,28 +1146,28 @@ function Oi() {
1126
1146
  }
1127
1147
  )
1128
1148
  ) : /* @__PURE__ */ n("pre", { className: t.renderCode, children: M || "(空文件)" }) }) }),
1129
- /* @__PURE__ */ n("aside", { className: t.right, children: Ve === "list" ? /* @__PURE__ */ i("div", { className: t.chatSide, children: [
1149
+ /* @__PURE__ */ n("aside", { className: t.right, children: Qe === "list" ? /* @__PURE__ */ i("div", { className: t.chatSide, children: [
1130
1150
  /* @__PURE__ */ i("div", { className: t.chatSideHeader, children: [
1131
1151
  /* @__PURE__ */ i("span", { className: t.chatSideTitle, children: [
1132
- /* @__PURE__ */ n(ft, {}),
1152
+ /* @__PURE__ */ n(bt, {}),
1133
1153
  " 聊天组"
1134
1154
  ] }),
1135
1155
  /* @__PURE__ */ i(
1136
- Q,
1156
+ W,
1137
1157
  {
1138
1158
  size: "small",
1139
1159
  type: "primary",
1140
1160
  ghost: !0,
1141
1161
  loading: te,
1142
- onClick: dt,
1162
+ onClick: ut,
1143
1163
  children: [
1144
- /* @__PURE__ */ n(wt, {}),
1164
+ /* @__PURE__ */ n(Tt, {}),
1145
1165
  " 发起聊天"
1146
1166
  ]
1147
1167
  }
1148
1168
  )
1149
1169
  ] }),
1150
- /* @__PURE__ */ n("div", { className: t.chatGroupList, children: G.length === 0 ? /* @__PURE__ */ n(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "还没有聊天组,点「发起聊天」开始" }) : G.map((e) => /* @__PURE__ */ i(
1170
+ /* @__PURE__ */ n("div", { className: t.chatGroupList, children: B.length === 0 ? /* @__PURE__ */ n(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "还没有聊天组,点「发起聊天」开始" }) : B.map((e) => /* @__PURE__ */ i(
1151
1171
  "div",
1152
1172
  {
1153
1173
  className: `${t.chatGroupRow} ${Ae === e.id ? t.chatGroupRowActive : ""}`,
@@ -1167,7 +1187,7 @@ function Oi() {
1167
1187
  type: "button",
1168
1188
  className: t.backBtn,
1169
1189
  onClick: () => {
1170
- ne("list"), R.current !== void 0 && B.setState({ currentProject: R.current }), R.current = void 0;
1190
+ ne("list"), R.current !== void 0 && G.setState({ currentProject: R.current }), R.current = void 0;
1171
1191
  },
1172
1192
  title: "返回聊天组列表",
1173
1193
  children: "←"
@@ -1178,11 +1198,11 @@ function Oi() {
1178
1198
  (l == null ? void 0 : l.name) || d
1179
1199
  ] })
1180
1200
  ] }),
1181
- /* @__PURE__ */ n("div", { className: t.chatPaneBody, children: /* @__PURE__ */ n(Pt, { hideTabs: !0 }) })
1201
+ /* @__PURE__ */ n("div", { className: t.chatPaneBody, children: /* @__PURE__ */ n(At, { hideTabs: !0 }) })
1182
1202
  ] }) })
1183
1203
  ] }) : x === "architecture" ? (
1184
1204
  /* ═══ 架构全景:架构语言的表达面 ═══ */
1185
- /* @__PURE__ */ n(Bn, {})
1205
+ /* @__PURE__ */ n($n, {})
1186
1206
  ) : (
1187
1207
  /* ═══ 产品库视图:全宽产品卡片网格,点卡片直接进入 ═══ */
1188
1208
  /* @__PURE__ */ i("div", { className: t.libraryView, children: [
@@ -1193,9 +1213,9 @@ function Oi() {
1193
1213
  /* @__PURE__ */ n("p", { className: t.librarySubtitle, children: "选择产品进入工作区:文件 · 设计稿 · 群聊 · 应用群" })
1194
1214
  ] }),
1195
1215
  /* @__PURE__ */ n(
1196
- j,
1216
+ q,
1197
1217
  {
1198
- prefix: /* @__PURE__ */ n(Nt, {}),
1218
+ prefix: /* @__PURE__ */ n(ft, {}),
1199
1219
  placeholder: "搜索产品",
1200
1220
  value: m,
1201
1221
  onChange: (e) => ee(e.target.value),
@@ -1250,7 +1270,7 @@ function Oi() {
1250
1270
  /* @__PURE__ */ i("span", { className: t.cardFoot, children: [
1251
1271
  /* @__PURE__ */ i("span", { className: t.cardEnter, children: [
1252
1272
  "进入产品 ",
1253
- /* @__PURE__ */ n(yt, {})
1273
+ /* @__PURE__ */ n(wt, {})
1254
1274
  ] }),
1255
1275
  Ue(e.groupCode) && /* @__PURE__ */ n("span", { className: t.cardGroup, children: Ue(e.groupCode) }),
1256
1276
  e.status && /* @__PURE__ */ n(k, { className: t.cardTag, children: e.status })
@@ -1260,18 +1280,18 @@ function Oi() {
1260
1280
  e.productCode
1261
1281
  )) }) }),
1262
1282
  /* @__PURE__ */ n(
1263
- Ct,
1283
+ St,
1264
1284
  {
1265
1285
  title: "新建产品群",
1266
- open: st,
1267
- onOk: () => void ot(),
1286
+ open: lt,
1287
+ onOk: () => void dt(),
1268
1288
  onCancel: () => Te(!1),
1269
1289
  okText: "创建",
1270
1290
  cancelText: "取消",
1271
1291
  destroyOnClose: !0,
1272
1292
  children: /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 12, paddingTop: 8 }, children: [
1273
1293
  /* @__PURE__ */ n(
1274
- j,
1294
+ q,
1275
1295
  {
1276
1296
  placeholder: "群码(唯一标识,如 ppt-studio)",
1277
1297
  value: O.groupCode,
@@ -1279,7 +1299,7 @@ function Oi() {
1279
1299
  }
1280
1300
  ),
1281
1301
  /* @__PURE__ */ n(
1282
- j,
1302
+ q,
1283
1303
  {
1284
1304
  placeholder: "群名(如 PPT 智造群)",
1285
1305
  value: O.name,
@@ -1294,5 +1314,5 @@ function Oi() {
1294
1314
  ] });
1295
1315
  }
1296
1316
  export {
1297
- Oi as default
1317
+ qi as default
1298
1318
  };