@yuku123/z-team-component 0.2.108 → 0.2.109

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 (46) hide show
  1. package/dist/{ChangeLogView-BmdZsm3p.js → ChangeLogView-DdSxtocJ.js} +1 -1
  2. package/dist/{ComponentDoc-dNbf9aR8.js → ComponentDoc-BvN4p-px.js} +3 -3
  3. package/dist/{InvitationManagementPage-5IF8XVY8.js → InvitationManagementPage-ulf_gp6i.js} +1 -1
  4. package/dist/{OnboardingPage-BrF8018U.js → OnboardingPage-DssWyVUp.js} +2 -2
  5. package/dist/{ScheduledTasks-tPX0WAlF.js → ScheduledTasks-D-GHShuZ.js} +6 -6
  6. package/dist/{SystemShell-DJFGVjYE.js → SystemShell-CAAau-ge.js} +4 -4
  7. package/dist/{admin-logs-_zRvUkam.js → admin-logs-B3kf7Nux.js} +1 -1
  8. package/dist/{api-DZEArNcd.js → api-CZHGqzJu.js} +1 -1
  9. package/dist/{api-DdXl8HTL.js → api-CrBRvJn-.js} +1 -1
  10. package/dist/{createWorkspaceWsHandler-BtSbZj62.js → createWorkspaceWsHandler-L-Sytl_P.js} +3 -3
  11. package/dist/{index-ofMXSELs.js → index-B-3lwdjY.js} +3 -3
  12. package/dist/{index-Bk3TIjDH.js → index-B4Ula80l.js} +4 -4
  13. package/dist/{index-DGb03m6z.js → index-B5ZvaS08.js} +2 -2
  14. package/dist/{index-DDT4TACA.js → index-BOtKi_rq.js} +6 -6
  15. package/dist/{index-mYGdo3Nt.js → index-BP3XAJ7Q.js} +3 -3
  16. package/dist/{index-BEgq2g59.js → index-BQhN1is6.js} +8 -8
  17. package/dist/{index-Dqi0OzBv.js → index-BRpW3VGs.js} +2 -2
  18. package/dist/{index-Co2PzaD_.js → index-BV7x6V8O.js} +2 -2
  19. package/dist/{index-DvUBHPbz.js → index-BVUnWYrV.js} +5 -5
  20. package/dist/{index-D9OGPcQk.js → index-BmxhBUTY.js} +1 -1
  21. package/dist/{index-BJ-3H9n_.js → index-Bq5vEJbR.js} +1 -1
  22. package/dist/{index-D10wKA0G.js → index-C1Njrke8.js} +2 -2
  23. package/dist/{index-9UQGJcuO.js → index-C8F9WjLi.js} +3 -3
  24. package/dist/{index-U3Bb_Kvg.js → index-CEurOY7j.js} +3 -3
  25. package/dist/{index-C-4992WQ.js → index-CTh1ymDk.js} +2 -2
  26. package/dist/{index-BxXssPe9.js → index-CnUOjRpt.js} +1 -1
  27. package/dist/{index-CQuuSIdC.js → index-Cz4K_1FW.js} +1 -1
  28. package/dist/{index-lFEE8r-n.js → index-D141YGZI.js} +2 -2
  29. package/dist/{index-CE6y4yIb.js → index-D4dQrvt8.js} +3 -3
  30. package/dist/{index-L6-bHje2.js → index-DEDBTWl3.js} +3 -3
  31. package/dist/{index-Bor2ZmiN.js → index-DIAskr47.js} +2 -2
  32. package/dist/{index-DC6lW35z.js → index-DqLdUmYy.js} +2 -2
  33. package/dist/index-Hr-9xiTF.js +918 -0
  34. package/dist/{index-nyE2dDrG.js → index-cXj4LlOC.js} +6 -6
  35. package/dist/{index-W2zbQ6iD.js → index-yruBiJr-.js} +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/{instance-CTQb537U.js → instance-CmxqDNsP.js} +1 -1
  38. package/dist/{menuPermission-DVyC-rM0.js → menuPermission-vV7Me8Jl.js} +3 -3
  39. package/dist/pages.js +1 -1
  40. package/dist/{send-default-agent-team-message-BGkQf0s1.js → send-default-agent-team-message-OC94qZy0.js} +1 -1
  41. package/dist/{sso-user-ZNl3v3q5.js → sso-user-CE0Hrmj-.js} +1 -1
  42. package/dist/{training-B_Z1DKa6.js → training-vs1vHeSm.js} +1 -1
  43. package/dist/{webide-SBDpaD6A.js → webide-Dei8BHrQ.js} +3 -3
  44. package/dist/z-team-component.css +1 -1
  45. package/package.json +1 -1
  46. package/dist/index-C5o3Uo-7.js +0 -724
@@ -0,0 +1,918 @@
1
+ import { jsx as a, jsxs as i, Fragment as et } from "react/jsx-runtime";
2
+ import { SearchOutlined as tt, RightOutlined as at, TeamOutlined as nt, MessageOutlined as it } from "@ant-design/icons";
3
+ import { Input as S, Spin as ae, Empty as _, Tag as E, Button as ne } from "antd";
4
+ import { useState as p, useRef as ct, useCallback as h, useEffect as we, useMemo as Te } from "react";
5
+ import { u as y } from "./ComponentDoc-BvN4p-px.js";
6
+ import { h as ie } from "./history-BlrA1eaW.js";
7
+ import { C as ot } from "./createWorkspaceWsHandler-L-Sytl_P.js";
8
+ import { l as rt, c as st } from "./api-CZHGqzJu.js";
9
+ const lt = "product-workspace", Ce = "productCode";
10
+ function v(n) {
11
+ if (!n.ok) throw new Error(`产品接口失败 (${n.status})`);
12
+ return n.json();
13
+ }
14
+ async function dt() {
15
+ const n = y.getState().token, s = await fetch(`/api/product/list${n ? `?token=${encodeURIComponent(n)}` : ""}`, {
16
+ credentials: "include",
17
+ headers: { Accept: "application/json" }
18
+ }), o = await v(s), r = Array.isArray(o) ? o : o == null ? void 0 : o.data;
19
+ return Array.isArray(r) ? r.map((m) => ({
20
+ ...m,
21
+ productCode: String(m.productCode ?? m.code ?? ""),
22
+ name: String(m.name ?? m.productCode ?? m.code ?? "未命名")
23
+ })) : [];
24
+ }
25
+ async function pt(n) {
26
+ try {
27
+ const s = await fetch(`/api/product/${encodeURIComponent(n)}`, {
28
+ credentials: "include",
29
+ headers: { Accept: "application/json" }
30
+ }), o = await v(s), r = (o == null ? void 0 : o.data) ?? o;
31
+ return r && typeof r == "object" ? { ...r, productCode: n } : null;
32
+ } catch {
33
+ return null;
34
+ }
35
+ }
36
+ async function mt(n) {
37
+ try {
38
+ const s = await fetch(`/api/product/${encodeURIComponent(n)}/atelier/workspace`, {
39
+ credentials: "include",
40
+ headers: { Accept: "application/json" }
41
+ }), o = await v(s), r = (o == null ? void 0 : o.data) ?? o;
42
+ return r && typeof r == "object" && Array.isArray(r.files) ? r.files : Array.isArray(r) ? r : [];
43
+ } catch {
44
+ return [];
45
+ }
46
+ }
47
+ async function ut(n, s) {
48
+ try {
49
+ const o = await fetch(
50
+ `/api/product/${encodeURIComponent(n)}/atelier/files/raw?path=${encodeURIComponent(s)}`,
51
+ { credentials: "include", headers: { Accept: "text/html, application/json" } }
52
+ );
53
+ return o.ok ? await o.text() : null;
54
+ } catch {
55
+ return null;
56
+ }
57
+ }
58
+ function ht(n) {
59
+ var r;
60
+ const s = (r = n.ext) == null ? void 0 : r.params;
61
+ if (!s || typeof s != "object") return null;
62
+ const o = s[Ce];
63
+ return o == null ? null : String(o);
64
+ }
65
+ async function _t(n, s) {
66
+ try {
67
+ return (await rt(s)).filter((r) => ht(r) === n);
68
+ } catch {
69
+ return [];
70
+ }
71
+ }
72
+ async function vt(n, s, o) {
73
+ return st(
74
+ { scenario_code: lt, name: s || `产品 ${n} 讨论组` },
75
+ o,
76
+ { [Ce]: n }
77
+ );
78
+ }
79
+ function w(n) {
80
+ return n && typeof n == "object" && "data" in n ? n.data : n;
81
+ }
82
+ async function bt() {
83
+ try {
84
+ const n = await fetch("/api/product/group/list", {
85
+ credentials: "include",
86
+ headers: { Accept: "application/json" }
87
+ }), s = await v(n), o = w(s);
88
+ return Array.isArray(o) ? o : [];
89
+ } catch {
90
+ return [];
91
+ }
92
+ }
93
+ async function Nt(n) {
94
+ try {
95
+ const s = await fetch("/api/product/group", {
96
+ method: "POST",
97
+ credentials: "include",
98
+ headers: { Accept: "application/json", "Content-Type": "application/json" },
99
+ body: JSON.stringify(n)
100
+ }), o = await v(s);
101
+ return w(o);
102
+ } catch {
103
+ return null;
104
+ }
105
+ }
106
+ async function ft(n) {
107
+ try {
108
+ const s = await fetch(`/api/product/${encodeURIComponent(n)}/app-binding/list`, {
109
+ credentials: "include",
110
+ headers: { Accept: "application/json" }
111
+ }), o = await v(s), r = w(o);
112
+ return Array.isArray(r) ? r : [];
113
+ } catch {
114
+ return [];
115
+ }
116
+ }
117
+ async function gt(n, s) {
118
+ try {
119
+ const o = await fetch(`/api/product/${encodeURIComponent(n)}/app-binding`, {
120
+ method: "POST",
121
+ credentials: "include",
122
+ headers: { Accept: "application/json", "Content-Type": "application/json" },
123
+ body: JSON.stringify(s)
124
+ }), r = await v(o);
125
+ return w(r);
126
+ } catch {
127
+ return null;
128
+ }
129
+ }
130
+ async function yt(n) {
131
+ try {
132
+ const s = await fetch(`/api/product/${encodeURIComponent(n)}/requirement/list`, {
133
+ credentials: "include",
134
+ headers: { Accept: "application/json" }
135
+ }), o = await v(s), r = w(o);
136
+ return Array.isArray(r) ? r : [];
137
+ } catch {
138
+ return [];
139
+ }
140
+ }
141
+ async function wt(n, s) {
142
+ try {
143
+ const o = await fetch(`/api/product/${encodeURIComponent(n)}/requirement`, {
144
+ method: "POST",
145
+ credentials: "include",
146
+ headers: { Accept: "application/json", "Content-Type": "application/json" },
147
+ body: JSON.stringify(s)
148
+ }), r = await v(o);
149
+ return w(r);
150
+ } catch {
151
+ return null;
152
+ }
153
+ }
154
+ async function P(n, s) {
155
+ try {
156
+ const o = await fetch(
157
+ `/api/product/${encodeURIComponent(n)}/${s}`,
158
+ { credentials: "include", headers: { Accept: "application/json" } }
159
+ ), r = await v(o), m = w(r);
160
+ return Array.isArray(m) ? m : [];
161
+ } catch {
162
+ return [];
163
+ }
164
+ }
165
+ async function Tt(n) {
166
+ return P(n, "glossary/list");
167
+ }
168
+ async function Ct(n) {
169
+ return P(n, "concept/list");
170
+ }
171
+ async function St(n) {
172
+ return P(n, "scenario/list");
173
+ }
174
+ async function Pt(n) {
175
+ return P(n, "design/list");
176
+ }
177
+ async function At(n) {
178
+ return P(n, "chat/sessions");
179
+ }
180
+ async function Rt(n) {
181
+ return P(n, "chat/proposals");
182
+ }
183
+ const It = "_container_1o3tb_5", kt = "_libraryView_1o3tb_14", Et = "_libraryHeader_1o3tb_22", Gt = "_libraryTitle_1o3tb_34", Bt = "_librarySubtitle_1o3tb_41", qt = "_librarySearch_1o3tb_47", Lt = "_libraryBody_1o3tb_52", $t = "_productGrid_1o3tb_59", jt = "_productCard_1o3tb_65", Ft = "_cardCode_1o3tb_85", Ht = "_cardName_1o3tb_98", Ot = "_cardDesc_1o3tb_107", Ut = "_cardFoot_1o3tb_118", Mt = "_cardEnter_1o3tb_126", xt = "_cardTag_1o3tb_134", Dt = "_left_1o3tb_140", Kt = "_leftHeader_1o3tb_150", zt = "_leftTitleRow_1o3tb_156", Jt = "_leftTitle_1o3tb_156", Vt = "_backBtn_1o3tb_173", Wt = "_sectionBar_1o3tb_203", Qt = "_sectionTab_1o3tb_213", Yt = "_sectionTabActive_1o3tb_235", Xt = "_sectionIcon_1o3tb_242", Zt = "_leftBody_1o3tb_247", ea = "_fileList_1o3tb_258", ta = "_fileTreeHint_1o3tb_297", aa = "_fileRow_1o3tb_303", na = "_fileRowActive_1o3tb_317", ia = "_fileRowIcon_1o3tb_321", ca = "_fileRowName_1o3tb_326", oa = "_fileKindTag_1o3tb_335", ra = "_center_1o3tb_343", sa = "_centerFill_1o3tb_352", la = "_renderArea_1o3tb_407", da = "_renderIframe_1o3tb_417", pa = "_renderCode_1o3tb_423", ma = "_right_1o3tb_436", ua = "_chatSide_1o3tb_447", ha = "_chatSideHeader_1o3tb_453", _a = "_chatSideTitle_1o3tb_462", va = "_chatGroupList_1o3tb_471", ba = "_chatGroupRow_1o3tb_480", Na = "_chatGroupRowActive_1o3tb_494", fa = "_chatGroupName_1o3tb_498", ga = "_chatGroupTime_1o3tb_507", ya = "_chatPane_1o3tb_514", wa = "_chatPaneHeader_1o3tb_520", Ta = "_chatPaneTitle_1o3tb_529", Ca = "_chatPaneBody_1o3tb_538", Sa = "_groupChips_1o3tb_549", Pa = "_groupChip_1o3tb_549", Aa = "_groupChipActive_1o3tb_573", Ra = "_groupNewHint_1o3tb_579", Ia = "_groupAddBtn_1o3tb_586", ka = "_cardGroup_1o3tb_601", Ea = "_overviewArea_1o3tb_611", Ga = "_overviewHeader_1o3tb_616", Ba = "_overviewTitle_1o3tb_620", qa = "_overviewSubtitle_1o3tb_627", La = "_overviewTabs_1o3tb_633", $a = "_overviewTab_1o3tb_633", ja = "_overviewTabActive_1o3tb_656", Fa = "_overviewPanel_1o3tb_662", Ha = "_reqForm_1o3tb_670", Oa = "_reqList_1o3tb_676", Ua = "_reqRow_1o3tb_682", Ma = "_reqTitle_1o3tb_691", xa = "_reqTag_1o3tb_700", Da = "_reqStatus_1o3tb_706", Ka = "_reqTime_1o3tb_712", za = "_appForm_1o3tb_719", Ja = "_appTypeSelect_1o3tb_726", Va = "_appList_1o3tb_737", Wa = "_appRow_1o3tb_743", Qa = "_appIcon_1o3tb_752", Ya = "_appName_1o3tb_757", Xa = "_appCode_1o3tb_767", Za = "_appTag_1o3tb_773", en = "_appGo_1o3tb_779", tn = "_appInfraNote_1o3tb_794", an = "_appUnbind_1o3tb_800", nn = "_statsRow_1o3tb_817", cn = "_statItem_1o3tb_828", on = "_domainBlock_1o3tb_842", rn = "_domainBlockTitle_1o3tb_850", sn = "_domainEmpty_1o3tb_857", ln = "_domainList_1o3tb_865", dn = "_domainRow_1o3tb_871", pn = "_domainName_1o3tb_880", mn = "_domainDesc_1o3tb_894", un = "_designHint_1o3tb_905", hn = "_designList_1o3tb_914", _n = "_designRow_1o3tb_920", vn = "_designIcon_1o3tb_929", bn = "_designName_1o3tb_934", Nn = "_designTime_1o3tb_944", fn = "_overviewEntryBtn_1o3tb_951", t = {
184
+ container: It,
185
+ libraryView: kt,
186
+ libraryHeader: Et,
187
+ libraryTitle: Gt,
188
+ librarySubtitle: Bt,
189
+ librarySearch: qt,
190
+ libraryBody: Lt,
191
+ productGrid: $t,
192
+ productCard: jt,
193
+ cardCode: Ft,
194
+ cardName: Ht,
195
+ cardDesc: Ot,
196
+ cardFoot: Ut,
197
+ cardEnter: Mt,
198
+ cardTag: xt,
199
+ left: Dt,
200
+ leftHeader: Kt,
201
+ leftTitleRow: zt,
202
+ leftTitle: Jt,
203
+ backBtn: Vt,
204
+ sectionBar: Wt,
205
+ sectionTab: Qt,
206
+ sectionTabActive: Yt,
207
+ sectionIcon: Xt,
208
+ leftBody: Zt,
209
+ fileList: ea,
210
+ fileTreeHint: ta,
211
+ fileRow: aa,
212
+ fileRowActive: na,
213
+ fileRowIcon: ia,
214
+ fileRowName: ca,
215
+ fileKindTag: oa,
216
+ center: ra,
217
+ centerFill: sa,
218
+ renderArea: la,
219
+ renderIframe: da,
220
+ renderCode: pa,
221
+ right: ma,
222
+ chatSide: ua,
223
+ chatSideHeader: ha,
224
+ chatSideTitle: _a,
225
+ chatGroupList: va,
226
+ chatGroupRow: ba,
227
+ chatGroupRowActive: Na,
228
+ chatGroupName: fa,
229
+ chatGroupTime: ga,
230
+ chatPane: ya,
231
+ chatPaneHeader: wa,
232
+ chatPaneTitle: Ta,
233
+ chatPaneBody: Ca,
234
+ groupChips: Sa,
235
+ groupChip: Pa,
236
+ groupChipActive: Aa,
237
+ groupNewHint: Ra,
238
+ groupAddBtn: Ia,
239
+ cardGroup: ka,
240
+ overviewArea: Ea,
241
+ overviewHeader: Ga,
242
+ overviewTitle: Ba,
243
+ overviewSubtitle: qa,
244
+ overviewTabs: La,
245
+ overviewTab: $a,
246
+ overviewTabActive: ja,
247
+ overviewPanel: Fa,
248
+ reqForm: Ha,
249
+ reqList: Oa,
250
+ reqRow: Ua,
251
+ reqTitle: Ma,
252
+ reqTag: xa,
253
+ reqStatus: Da,
254
+ reqTime: Ka,
255
+ appForm: za,
256
+ appTypeSelect: Ja,
257
+ appList: Va,
258
+ appRow: Wa,
259
+ appIcon: Qa,
260
+ appName: Ya,
261
+ appCode: Xa,
262
+ appTag: Za,
263
+ appGo: en,
264
+ appInfraNote: tn,
265
+ appUnbind: an,
266
+ statsRow: nn,
267
+ statItem: cn,
268
+ domainBlock: on,
269
+ domainBlockTitle: rn,
270
+ domainEmpty: sn,
271
+ domainList: ln,
272
+ domainRow: dn,
273
+ domainName: pn,
274
+ domainDesc: mn,
275
+ designHint: un,
276
+ designList: hn,
277
+ designRow: _n,
278
+ designIcon: vn,
279
+ designName: bn,
280
+ designTime: Nn,
281
+ overviewEntryBtn: fn
282
+ };
283
+ function gn(n) {
284
+ return {
285
+ id: String(n.id),
286
+ name: n.name,
287
+ description: n.description ?? "",
288
+ workspace_path: n.workspacePath || n.name,
289
+ status: n.status,
290
+ created_at: n.createTime ?? "",
291
+ scenario_id: String(n.id),
292
+ scenario_code: n.scenarioCode,
293
+ scenario_name: n.scenarioName ?? n.name
294
+ };
295
+ }
296
+ function Se(n) {
297
+ const s = n.toLowerCase();
298
+ 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";
299
+ }
300
+ function Pe(n, s = "") {
301
+ const o = [];
302
+ for (const r of n ?? []) {
303
+ const m = r.path || `${s}${r.name ?? ""}`, G = r.name || m.split("/").pop() || m, d = r.type === "dir" || Array.isArray(r.children);
304
+ o.push({ path: m, name: G, dir: d, kind: Se(m), depth: s.split("/").filter(Boolean).length }), d && Array.isArray(r.children) && o.push(...Pe(r.children, `${m}/`));
305
+ }
306
+ return o;
307
+ }
308
+ function In() {
309
+ const n = y((e) => e.token), s = y((e) => e.selectProject), [o, r] = p([]), [m, G] = p(!0), [d, ce] = p(null), [l, oe] = p(null), [Ae, re] = p(!1), [se, le] = p([]), [Re, de] = p(!1), [K, B] = p(null), [z, A] = p(null), [Ie, ke] = p("other"), [R, Ee] = p(""), [q, J] = p([]), [pe, V] = p(null), [L, me] = p(!1), [Ge, $] = p("list"), b = ct(null), [W, ue] = p([]), [I, he] = p(null), [j, Q] = p([]), [F, _e] = p([]), [N, T] = p("req"), [k, ve] = p(""), [H, Be] = p([]), [O, qe] = p([]), [U, Le] = p([]), [M, $e] = p([]), [x, je] = p([]), [be, Fe] = p([]), Y = h(
310
+ async (e) => {
311
+ ce(e), re(!0), B(null), A(null), $("list"), V(null), T("req");
312
+ const c = await pt(e);
313
+ oe(c);
314
+ const u = await _t(e, n);
315
+ J(u);
316
+ const g = await ft(e);
317
+ Q(g);
318
+ const te = await yt(e);
319
+ _e(te);
320
+ const [Je, Ve, We, Qe, Ye, Xe] = await Promise.all([
321
+ Tt(e),
322
+ Ct(e),
323
+ St(e),
324
+ Pt(e),
325
+ At(e),
326
+ Rt(e)
327
+ ]);
328
+ Be(Je), qe(Ve), Le(We), $e(Qe), je(Ye), Fe(Xe), de(!0);
329
+ const Ze = await mt(e);
330
+ le(Ze), de(!1);
331
+ },
332
+ [n]
333
+ ), Ne = h(async () => {
334
+ G(!0);
335
+ try {
336
+ const e = await dt();
337
+ r(e);
338
+ const c = await bt();
339
+ ue(c);
340
+ try {
341
+ const u = new URLSearchParams(window.location.search).get("product");
342
+ if (u) {
343
+ const g = e.find((te) => te.productCode === u);
344
+ if (g) {
345
+ Y(g.productCode);
346
+ return;
347
+ }
348
+ }
349
+ } catch {
350
+ }
351
+ } catch {
352
+ r([]);
353
+ } finally {
354
+ G(!1);
355
+ }
356
+ }, [Y]);
357
+ we(() => {
358
+ Ne();
359
+ }, [Ne]);
360
+ const He = h(() => {
361
+ if (!d) return;
362
+ const e = new URLSearchParams();
363
+ e.set("product", d), l != null && l.name && e.set("productName", l.name), ie.push(`/lc/apps?${e.toString()}`);
364
+ }, [d, l == null ? void 0 : l.name]), Oe = h(() => {
365
+ if (!d) return;
366
+ const e = new URLSearchParams();
367
+ e.set("product", d), l != null && l.name && e.set("productName", l.name), ie.push(`/test/qa/dashboard?${e.toString()}`);
368
+ }, [d, l == null ? void 0 : l.name]), Ue = h(() => {
369
+ ce(null), re(!1), oe(null), le([]), J([]), B(null), A(null), V(null), $("list"), b.current !== void 0 && y.setState({ currentProject: b.current }), b.current = void 0;
370
+ }, []), fe = h(async () => {
371
+ if (!d || !k.trim()) return;
372
+ const e = await wt(d, {
373
+ title: k.trim(),
374
+ priority: "P2"
375
+ });
376
+ e && (_e((c) => [...c, e]), ve(""));
377
+ }, [d, k]), [f, D] = p({
378
+ appCode: "",
379
+ appName: "",
380
+ appType: "APP"
381
+ }), Me = h(async () => {
382
+ if (!d || !f.appCode.trim() || !f.appName.trim()) return;
383
+ const e = await gt(d, f);
384
+ e && (Q((c) => [...c, e]), D({ appCode: "", appName: "", appType: "APP" }));
385
+ }, [d, f]), xe = h(
386
+ async (e) => {
387
+ d && (await unbindProductApp(d, e), Q((c) => c.filter((u) => u.id !== e)));
388
+ },
389
+ [d]
390
+ ), [C, X] = p({ groupCode: "", name: "" }), De = h(async () => {
391
+ if (!C.groupCode.trim() || !C.name.trim()) return;
392
+ const e = await Nt(C);
393
+ e && (ue((c) => [...c, e]), X({ groupCode: "", name: "" }));
394
+ }, [C]), Ke = h(
395
+ async (e) => {
396
+ if (!d) return;
397
+ B(e), A(null);
398
+ const c = Se(e);
399
+ ke(c);
400
+ const u = await ut(d, e);
401
+ A(u ?? "");
402
+ },
403
+ [d]
404
+ ), Z = h(
405
+ async (e) => {
406
+ if (!e) return;
407
+ const c = gn(e);
408
+ b.current = y.getState().currentProject, V(e.id), $("chat"), s(c);
409
+ },
410
+ [s]
411
+ ), ze = h(async () => {
412
+ if (!(!d || L)) {
413
+ me(!0);
414
+ try {
415
+ const e = await vt(
416
+ d,
417
+ `${(l == null ? void 0 : l.name) || d} · 讨论组 ${q.length + 1}`,
418
+ n
419
+ );
420
+ J((c) => [...c, e]), await Z(e);
421
+ } finally {
422
+ me(!1);
423
+ }
424
+ }
425
+ }, [d, L, q.length, l == null ? void 0 : l.name, n, Z]);
426
+ we(() => () => {
427
+ b.current !== void 0 && y.setState({ currentProject: b.current });
428
+ }, [pe]);
429
+ const ee = Te(() => Pe(se), [se]), ge = Te(
430
+ () => o.filter((e) => !(R && !e.name.includes(R) && !e.productCode.includes(R) || I && e.groupCode !== I)),
431
+ [o, R, I]
432
+ ), ye = h(
433
+ (e) => {
434
+ if (!e) return null;
435
+ const c = W.find((u) => u.groupCode === e);
436
+ return c ? c.name : e;
437
+ },
438
+ [W]
439
+ );
440
+ return /* @__PURE__ */ a("div", { className: t.container, children: Ae ? /* @__PURE__ */ i(et, { children: [
441
+ /* @__PURE__ */ i("aside", { className: t.left, children: [
442
+ /* @__PURE__ */ i("div", { className: t.leftHeader, children: [
443
+ /* @__PURE__ */ i("div", { className: t.leftTitleRow, children: [
444
+ /* @__PURE__ */ a("button", { type: "button", className: t.backBtn, onClick: Ue, title: "返回产品库", children: "←" }),
445
+ /* @__PURE__ */ a("span", { className: t.leftTitle, title: (l == null ? void 0 : l.name) || d || "", children: (l == null ? void 0 : l.name) || d })
446
+ ] }),
447
+ /* @__PURE__ */ i("div", { className: t.sectionBar, children: [
448
+ /* @__PURE__ */ i("span", { className: `${t.sectionTab} ${t.sectionTabActive}`, children: [
449
+ /* @__PURE__ */ a("span", { className: t.sectionIcon, children: "📦" }),
450
+ " 产品"
451
+ ] }),
452
+ /* @__PURE__ */ i("button", { type: "button", className: t.sectionTab, onClick: He, title: "进入研发工作台(z-lc)", children: [
453
+ /* @__PURE__ */ a("span", { className: t.sectionIcon, children: "💻" }),
454
+ " 研发"
455
+ ] }),
456
+ /* @__PURE__ */ i("button", { type: "button", className: t.sectionTab, onClick: Oe, title: "进入测试工作台(QA)", children: [
457
+ /* @__PURE__ */ a("span", { className: t.sectionIcon, children: "🧪" }),
458
+ " 测试"
459
+ ] })
460
+ ] })
461
+ ] }),
462
+ /* @__PURE__ */ i("div", { className: t.leftBody, children: [
463
+ /* @__PURE__ */ a(
464
+ "button",
465
+ {
466
+ type: "button",
467
+ className: t.overviewEntryBtn,
468
+ onClick: () => {
469
+ B(null), A(null);
470
+ },
471
+ title: "回到产品总览(沉淀台)",
472
+ children: "📋 产品总览 · 返回沉淀台"
473
+ }
474
+ ),
475
+ /* @__PURE__ */ a("div", { className: t.fileTreeHint, children: "文件(设计稿 · 文档 · 产物)" }),
476
+ Re ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(ae, { size: "small" }) }) : ee.length === 0 ? /* @__PURE__ */ a(_, { image: _.PRESENTED_IMAGE_SIMPLE, description: "产品下暂无文件" }) : /* @__PURE__ */ a("div", { className: t.fileList, children: ee.map((e) => /* @__PURE__ */ i(
477
+ "div",
478
+ {
479
+ className: `${t.fileRow} ${K === e.path ? t.fileRowActive : ""}`,
480
+ style: { paddingLeft: 12 + e.depth * 16 },
481
+ onClick: () => !e.dir && Ke(e.path),
482
+ children: [
483
+ /* @__PURE__ */ a("span", { className: t.fileRowIcon, children: e.dir ? "📁" : e.kind === "design" ? "🖼" : e.kind === "doc" ? "📄" : e.kind === "code" ? "{" : "◦" }),
484
+ /* @__PURE__ */ a("span", { className: t.fileRowName, children: e.name }),
485
+ e.kind === "design" && /* @__PURE__ */ a(E, { className: t.fileKindTag, color: "blue", children: "设计稿" })
486
+ ]
487
+ },
488
+ e.path
489
+ )) })
490
+ ] })
491
+ ] }),
492
+ /* @__PURE__ */ a("main", { className: t.center, children: K == null ? /* @__PURE__ */ i("div", { className: t.overviewArea, children: [
493
+ /* @__PURE__ */ i("div", { className: t.overviewHeader, children: [
494
+ /* @__PURE__ */ a("h2", { className: t.overviewTitle, children: "产品总览" }),
495
+ /* @__PURE__ */ a("p", { className: t.overviewSubtitle, children: "「关于这个产品的一切」沉淀在这里:需求 · 应用群 · 领域资产 · 设计稿 · 聊天蒸馏" })
496
+ ] }),
497
+ /* @__PURE__ */ i("div", { className: t.statsRow, children: [
498
+ /* @__PURE__ */ i("span", { className: t.statItem, children: [
499
+ /* @__PURE__ */ a("b", { children: F.length }),
500
+ " 需求"
501
+ ] }),
502
+ /* @__PURE__ */ i("span", { className: t.statItem, children: [
503
+ /* @__PURE__ */ a("b", { children: j.length }),
504
+ " 应用"
505
+ ] }),
506
+ /* @__PURE__ */ i("span", { className: t.statItem, children: [
507
+ /* @__PURE__ */ a("b", { children: H.length }),
508
+ " 术语"
509
+ ] }),
510
+ /* @__PURE__ */ i("span", { className: t.statItem, children: [
511
+ /* @__PURE__ */ a("b", { children: O.length }),
512
+ " 概念"
513
+ ] }),
514
+ /* @__PURE__ */ i("span", { className: t.statItem, children: [
515
+ /* @__PURE__ */ a("b", { children: U.length }),
516
+ " 场景"
517
+ ] }),
518
+ /* @__PURE__ */ i("span", { className: t.statItem, children: [
519
+ /* @__PURE__ */ a("b", { children: M.length }),
520
+ " 设计稿"
521
+ ] }),
522
+ /* @__PURE__ */ i("span", { className: t.statItem, children: [
523
+ /* @__PURE__ */ a("b", { children: x.length }),
524
+ " 会话"
525
+ ] }),
526
+ /* @__PURE__ */ i("span", { className: t.statItem, children: [
527
+ /* @__PURE__ */ a("b", { children: ee.filter((e) => !e.dir).length }),
528
+ " 文件"
529
+ ] })
530
+ ] }),
531
+ /* @__PURE__ */ i("div", { className: t.overviewTabs, children: [
532
+ /* @__PURE__ */ i(
533
+ "button",
534
+ {
535
+ type: "button",
536
+ className: `${t.overviewTab} ${N === "req" ? t.overviewTabActive : ""}`,
537
+ onClick: () => T("req"),
538
+ children: [
539
+ "需求(",
540
+ F.length,
541
+ ")"
542
+ ]
543
+ }
544
+ ),
545
+ /* @__PURE__ */ i(
546
+ "button",
547
+ {
548
+ type: "button",
549
+ className: `${t.overviewTab} ${N === "apps" ? t.overviewTabActive : ""}`,
550
+ onClick: () => T("apps"),
551
+ children: [
552
+ "应用群(",
553
+ j.length,
554
+ ")"
555
+ ]
556
+ }
557
+ ),
558
+ /* @__PURE__ */ i(
559
+ "button",
560
+ {
561
+ type: "button",
562
+ className: `${t.overviewTab} ${N === "domain" ? t.overviewTabActive : ""}`,
563
+ onClick: () => T("domain"),
564
+ children: [
565
+ "领域资产(",
566
+ H.length + O.length + U.length,
567
+ ")"
568
+ ]
569
+ }
570
+ ),
571
+ /* @__PURE__ */ i(
572
+ "button",
573
+ {
574
+ type: "button",
575
+ className: `${t.overviewTab} ${N === "design" ? t.overviewTabActive : ""}`,
576
+ onClick: () => T("design"),
577
+ children: [
578
+ "设计稿(",
579
+ M.length,
580
+ ")"
581
+ ]
582
+ }
583
+ ),
584
+ /* @__PURE__ */ i(
585
+ "button",
586
+ {
587
+ type: "button",
588
+ className: `${t.overviewTab} ${N === "chat" ? t.overviewTabActive : ""}`,
589
+ onClick: () => T("chat"),
590
+ children: [
591
+ "聊天蒸馏(",
592
+ x.length,
593
+ ")"
594
+ ]
595
+ }
596
+ )
597
+ ] }),
598
+ N === "req" ? /* @__PURE__ */ i("div", { className: t.overviewPanel, children: [
599
+ /* @__PURE__ */ i("div", { className: t.reqForm, children: [
600
+ /* @__PURE__ */ a(
601
+ S,
602
+ {
603
+ placeholder: "新增需求标题(针对本产品)",
604
+ value: k,
605
+ onChange: (e) => ve(e.target.value),
606
+ onPressEnter: () => void fe(),
607
+ style: { flex: 1 }
608
+ }
609
+ ),
610
+ /* @__PURE__ */ a(ne, { type: "primary", onClick: () => void fe(), disabled: !k.trim(), children: "添加需求" })
611
+ ] }),
612
+ F.length === 0 ? /* @__PURE__ */ a(_, { image: _.PRESENTED_IMAGE_SIMPLE, description: "还没有需求,先落一条" }) : /* @__PURE__ */ a("div", { className: t.reqList, children: F.map((e) => /* @__PURE__ */ i("div", { className: t.reqRow, children: [
613
+ /* @__PURE__ */ a("span", { className: t.reqTitle, title: e.title, children: e.title }),
614
+ /* @__PURE__ */ a(E, { className: t.reqTag, color: e.priority === "P0" ? "red" : e.priority === "P1" ? "orange" : "blue", children: e.priority || "P2" }),
615
+ /* @__PURE__ */ a("span", { className: t.reqStatus, children: e.status || "OPEN" }),
616
+ /* @__PURE__ */ a("span", { className: t.reqTime, children: String(e.createdAt ?? "").slice(0, 10) })
617
+ ] }, e.id)) })
618
+ ] }) : N === "apps" ? /* @__PURE__ */ i("div", { className: t.overviewPanel, children: [
619
+ /* @__PURE__ */ i("div", { className: t.appForm, children: [
620
+ /* @__PURE__ */ a(
621
+ S,
622
+ {
623
+ placeholder: "应用编码(如 z-lc 应用 code)",
624
+ value: f.appCode,
625
+ onChange: (e) => D((c) => ({ ...c, appCode: e.target.value })),
626
+ style: { flex: 1 }
627
+ }
628
+ ),
629
+ /* @__PURE__ */ a(
630
+ S,
631
+ {
632
+ placeholder: "应用名称",
633
+ value: f.appName,
634
+ onChange: (e) => D((c) => ({ ...c, appName: e.target.value })),
635
+ style: { width: 150 }
636
+ }
637
+ ),
638
+ /* @__PURE__ */ i(
639
+ "select",
640
+ {
641
+ className: t.appTypeSelect,
642
+ value: f.appType,
643
+ onChange: (e) => D((c) => ({ ...c, appType: e.target.value })),
644
+ children: [
645
+ /* @__PURE__ */ a("option", { value: "APP", children: "应用" }),
646
+ /* @__PURE__ */ a("option", { value: "INFRA", children: "基建" })
647
+ ]
648
+ }
649
+ ),
650
+ /* @__PURE__ */ a(
651
+ ne,
652
+ {
653
+ type: "primary",
654
+ onClick: () => void Me(),
655
+ disabled: !f.appCode.trim() || !f.appName.trim(),
656
+ children: "绑定"
657
+ }
658
+ )
659
+ ] }),
660
+ j.length === 0 ? /* @__PURE__ */ a(_, { image: _.PRESENTED_IMAGE_SIMPLE, description: "还没有应用群,绑定支撑这个产品的应用/基建" }) : /* @__PURE__ */ a("div", { className: t.appList, children: j.map((e) => /* @__PURE__ */ i("div", { className: t.appRow, children: [
661
+ /* @__PURE__ */ a("span", { className: t.appIcon, children: e.appType === "INFRA" ? "🏗" : "🧩" }),
662
+ /* @__PURE__ */ a("span", { className: t.appName, title: e.appName, children: e.appName }),
663
+ /* @__PURE__ */ a("span", { className: t.appCode, children: e.appCode }),
664
+ /* @__PURE__ */ a(
665
+ E,
666
+ {
667
+ className: t.appTag,
668
+ color: e.appType === "INFRA" ? "purple" : "geekblue",
669
+ children: e.appType === "INFRA" ? "基建" : "应用"
670
+ }
671
+ ),
672
+ e.appType === "APP" ? /* @__PURE__ */ a(
673
+ "button",
674
+ {
675
+ type: "button",
676
+ className: t.appGo,
677
+ onClick: () => {
678
+ const c = new URLSearchParams();
679
+ c.set("product", d || ""), l != null && l.name && c.set("productName", l.name), c.set("app", e.appCode), ie.push(`/lc/apps?${c.toString()}`);
680
+ },
681
+ children: "去研发"
682
+ }
683
+ ) : /* @__PURE__ */ a("span", { className: t.appInfraNote, children: "横切多产品" }),
684
+ /* @__PURE__ */ a(
685
+ "button",
686
+ {
687
+ type: "button",
688
+ className: t.appUnbind,
689
+ onClick: () => void xe(e.id),
690
+ title: "解绑",
691
+ children: "✕"
692
+ }
693
+ )
694
+ ] }, e.id)) })
695
+ ] }) : N === "domain" ? /* @__PURE__ */ i("div", { className: t.overviewPanel, children: [
696
+ /* @__PURE__ */ i("div", { className: t.domainBlock, children: [
697
+ /* @__PURE__ */ a("div", { className: t.domainBlockTitle, children: "📖 统一语言 · 术语" }),
698
+ H.length === 0 ? /* @__PURE__ */ a("div", { className: t.domainEmpty, children: "还没有术语,先在对话里对齐统一语言" }) : /* @__PURE__ */ a("div", { className: t.domainList, children: H.map((e, c) => /* @__PURE__ */ i("div", { className: t.domainRow, children: [
699
+ /* @__PURE__ */ a("span", { className: t.domainName, children: String(e.term ?? e.term_code ?? "") }),
700
+ /* @__PURE__ */ a("span", { className: t.domainDesc, children: String(e.definition ?? "") })
701
+ ] }, String(e.id ?? c))) })
702
+ ] }),
703
+ /* @__PURE__ */ i("div", { className: t.domainBlock, children: [
704
+ /* @__PURE__ */ a("div", { className: t.domainBlockTitle, children: "🧬 领域概念" }),
705
+ O.length === 0 ? /* @__PURE__ */ a("div", { className: t.domainEmpty, children: "还没有概念模型" }) : /* @__PURE__ */ a("div", { className: t.domainList, children: O.map((e, c) => /* @__PURE__ */ i("div", { className: t.domainRow, children: [
706
+ /* @__PURE__ */ a("span", { className: t.domainName, children: String(e.name ?? e.code ?? "") }),
707
+ /* @__PURE__ */ a("span", { className: t.domainDesc, children: String(e.description ?? "") })
708
+ ] }, String(e.id ?? c))) })
709
+ ] }),
710
+ /* @__PURE__ */ i("div", { className: t.domainBlock, children: [
711
+ /* @__PURE__ */ a("div", { className: t.domainBlockTitle, children: "🎬 用户场景" }),
712
+ U.length === 0 ? /* @__PURE__ */ a("div", { className: t.domainEmpty, children: "还没有场景,描述目标用户的典型操作链路" }) : /* @__PURE__ */ a("div", { className: t.domainList, children: U.map((e, c) => /* @__PURE__ */ i("div", { className: t.domainRow, children: [
713
+ /* @__PURE__ */ a("span", { className: t.domainName, children: String(e.title ?? e.name ?? "") }),
714
+ /* @__PURE__ */ a("span", { className: t.domainDesc, children: String(e.description ?? "") })
715
+ ] }, String(e.id ?? c))) })
716
+ ] })
717
+ ] }) : N === "design" ? /* @__PURE__ */ i("div", { className: t.overviewPanel, children: [
718
+ /* @__PURE__ */ a("div", { className: t.designHint, children: "设计稿在左侧文件树(标注「设计稿」标签);点选后在中间渲染区直渲 raw HTML" }),
719
+ M.length === 0 ? /* @__PURE__ */ a(_, { image: _.PRESENTED_IMAGE_SIMPLE, description: "还没有设计稿记录" }) : /* @__PURE__ */ a("div", { className: t.designList, children: M.map((e, c) => /* @__PURE__ */ i("div", { className: t.designRow, children: [
720
+ /* @__PURE__ */ a("span", { className: t.designIcon, children: "🖼" }),
721
+ /* @__PURE__ */ a("span", { className: t.designName, children: String(e.title ?? e.name ?? "") }),
722
+ /* @__PURE__ */ a("span", { className: t.designTime, children: String(e.updated_at ?? e.created_at ?? "").slice(0, 10) })
723
+ ] }, String(e.id ?? c))) })
724
+ ] }) : /* @__PURE__ */ i("div", { className: t.overviewPanel, children: [
725
+ /* @__PURE__ */ i("div", { className: t.domainBlock, children: [
726
+ /* @__PURE__ */ a("div", { className: t.domainBlockTitle, children: "💬 群聊会话" }),
727
+ x.length === 0 ? /* @__PURE__ */ a("div", { className: t.domainEmpty, children: "还没有群聊会话,右侧「发起聊天」开始" }) : /* @__PURE__ */ a("div", { className: t.domainList, children: x.map((e, c) => /* @__PURE__ */ i("div", { className: t.domainRow, children: [
728
+ /* @__PURE__ */ a("span", { className: t.domainName, children: String(e.title ?? e.session_code ?? "") }),
729
+ /* @__PURE__ */ a("span", { className: t.domainDesc, children: String(e.updated_at ?? e.created_at ?? "").slice(0, 16).replace("T", " ") })
730
+ ] }, String(e.id ?? c))) })
731
+ ] }),
732
+ /* @__PURE__ */ i("div", { className: t.domainBlock, children: [
733
+ /* @__PURE__ */ a("div", { className: t.domainBlockTitle, children: "📌 蒸馏提案" }),
734
+ be.length === 0 ? /* @__PURE__ */ a("div", { className: t.domainEmpty, children: "还没有提案(聊天中沉淀的需求/设计提案会出现在这里)" }) : /* @__PURE__ */ a("div", { className: t.domainList, children: be.map((e, c) => {
735
+ let u = {};
736
+ try {
737
+ u = JSON.parse(String(e.payload ?? "{}"));
738
+ } catch {
739
+ }
740
+ const g = String(e.proposal_type ?? "requirement");
741
+ return /* @__PURE__ */ i("div", { className: t.domainRow, children: [
742
+ /* @__PURE__ */ i("span", { className: t.domainName, children: [
743
+ /* @__PURE__ */ a(E, { className: t.reqTag, color: g === "design" ? "geekblue" : "blue", children: g }),
744
+ String(u.title ?? "")
745
+ ] }),
746
+ /* @__PURE__ */ a("span", { className: t.domainDesc, children: String(u.description ?? "") })
747
+ ] }, String(e.id ?? c));
748
+ }) })
749
+ ] })
750
+ ] })
751
+ ] }) : z == null ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(ae, {}) }) : /* @__PURE__ */ a("div", { className: t.renderArea, children: Ie === "design" ? (
752
+ /* 设计稿:raw 通常为 HTML → iframe srcdoc 渲染 */
753
+ /* @__PURE__ */ a(
754
+ "iframe",
755
+ {
756
+ className: t.renderIframe,
757
+ srcDoc: z,
758
+ title: K,
759
+ sandbox: "allow-scripts allow-same-origin"
760
+ }
761
+ )
762
+ ) : /* @__PURE__ */ a("pre", { className: t.renderCode, children: z || "(空文件)" }) }) }),
763
+ /* @__PURE__ */ a("aside", { className: t.right, children: Ge === "list" ? /* @__PURE__ */ i("div", { className: t.chatSide, children: [
764
+ /* @__PURE__ */ i("div", { className: t.chatSideHeader, children: [
765
+ /* @__PURE__ */ i("span", { className: t.chatSideTitle, children: [
766
+ /* @__PURE__ */ a(nt, {}),
767
+ " 聊天组"
768
+ ] }),
769
+ /* @__PURE__ */ i(
770
+ ne,
771
+ {
772
+ size: "small",
773
+ type: "primary",
774
+ ghost: !0,
775
+ loading: L,
776
+ onClick: ze,
777
+ children: [
778
+ /* @__PURE__ */ a(it, {}),
779
+ " 发起聊天"
780
+ ]
781
+ }
782
+ )
783
+ ] }),
784
+ /* @__PURE__ */ a("div", { className: t.chatGroupList, children: q.length === 0 ? /* @__PURE__ */ a(_, { image: _.PRESENTED_IMAGE_SIMPLE, description: "还没有聊天组,点「发起聊天」开始" }) : q.map((e) => /* @__PURE__ */ i(
785
+ "div",
786
+ {
787
+ className: `${t.chatGroupRow} ${pe === e.id ? t.chatGroupRowActive : ""}`,
788
+ onClick: () => !L && Z(e),
789
+ children: [
790
+ /* @__PURE__ */ a("span", { className: t.chatGroupName, title: e.name, children: e.name }),
791
+ /* @__PURE__ */ a("span", { className: t.chatGroupTime, children: String(e.createTime ?? "").slice(5, 16).replace("T", " ") })
792
+ ]
793
+ },
794
+ e.id
795
+ )) })
796
+ ] }) : /* @__PURE__ */ i("div", { className: t.chatPane, children: [
797
+ /* @__PURE__ */ i("div", { className: t.chatPaneHeader, children: [
798
+ /* @__PURE__ */ a(
799
+ "button",
800
+ {
801
+ type: "button",
802
+ className: t.backBtn,
803
+ onClick: () => {
804
+ $("list"), b.current !== void 0 && y.setState({ currentProject: b.current }), b.current = void 0;
805
+ },
806
+ title: "返回聊天组列表",
807
+ children: "←"
808
+ }
809
+ ),
810
+ /* @__PURE__ */ i("span", { className: t.chatPaneTitle, children: [
811
+ "群聊 · ",
812
+ (l == null ? void 0 : l.name) || d
813
+ ] })
814
+ ] }),
815
+ /* @__PURE__ */ a("div", { className: t.chatPaneBody, children: /* @__PURE__ */ a(ot, { hideTabs: !0 }) })
816
+ ] }) })
817
+ ] }) : (
818
+ /* ═══ 产品库视图:全宽产品卡片网格,点卡片直接进入 ═══ */
819
+ /* @__PURE__ */ i("div", { className: t.libraryView, children: [
820
+ /* @__PURE__ */ i("div", { className: t.libraryHeader, children: [
821
+ /* @__PURE__ */ i("div", { children: [
822
+ /* @__PURE__ */ a("h2", { className: t.libraryTitle, children: "产品库" }),
823
+ /* @__PURE__ */ a("p", { className: t.librarySubtitle, children: "选择产品进入工作区:文件 · 设计稿 · 群聊 · 应用群" }),
824
+ /* @__PURE__ */ i("div", { className: t.groupChips, children: [
825
+ /* @__PURE__ */ a(
826
+ "button",
827
+ {
828
+ type: "button",
829
+ className: `${t.groupChip} ${I === null ? t.groupChipActive : ""}`,
830
+ onClick: () => he(null),
831
+ children: "全部"
832
+ }
833
+ ),
834
+ W.map((e) => /* @__PURE__ */ a(
835
+ "button",
836
+ {
837
+ type: "button",
838
+ className: `${t.groupChip} ${I === e.groupCode ? t.groupChipActive : ""}`,
839
+ onClick: () => he(e.groupCode),
840
+ title: e.description || e.name,
841
+ children: e.name
842
+ },
843
+ e.groupCode
844
+ )),
845
+ /* @__PURE__ */ i("span", { className: t.groupNewHint, children: [
846
+ /* @__PURE__ */ a(
847
+ S,
848
+ {
849
+ size: "small",
850
+ placeholder: "新群码",
851
+ value: C.groupCode,
852
+ onChange: (e) => X((c) => ({ ...c, groupCode: e.target.value })),
853
+ style: { width: 96 }
854
+ }
855
+ ),
856
+ /* @__PURE__ */ a(
857
+ S,
858
+ {
859
+ size: "small",
860
+ placeholder: "群名",
861
+ value: C.name,
862
+ onChange: (e) => X((c) => ({ ...c, name: e.target.value })),
863
+ style: { width: 110 }
864
+ }
865
+ ),
866
+ /* @__PURE__ */ a(
867
+ "button",
868
+ {
869
+ type: "button",
870
+ className: t.groupAddBtn,
871
+ onClick: () => void De(),
872
+ title: "新建产品群",
873
+ children: "+"
874
+ }
875
+ )
876
+ ] })
877
+ ] })
878
+ ] }),
879
+ /* @__PURE__ */ a(
880
+ S,
881
+ {
882
+ prefix: /* @__PURE__ */ a(tt, {}),
883
+ placeholder: "搜索产品",
884
+ value: R,
885
+ onChange: (e) => Ee(e.target.value),
886
+ allowClear: !0,
887
+ className: t.librarySearch
888
+ }
889
+ )
890
+ ] }),
891
+ /* @__PURE__ */ a("div", { className: t.libraryBody, children: m ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(ae, {}) }) : ge.length === 0 ? /* @__PURE__ */ a(_, { image: _.PRESENTED_IMAGE_SIMPLE, description: "暂无产品" }) : /* @__PURE__ */ a("div", { className: t.productGrid, children: ge.map((e) => /* @__PURE__ */ i(
892
+ "button",
893
+ {
894
+ type: "button",
895
+ className: t.productCard,
896
+ onClick: () => void Y(e.productCode),
897
+ children: [
898
+ /* @__PURE__ */ a("span", { className: t.cardCode, children: e.productCode }),
899
+ /* @__PURE__ */ a("span", { className: t.cardName, title: e.name, children: e.name }),
900
+ /* @__PURE__ */ a("span", { className: t.cardDesc, children: e.description || "暂无产品描述" }),
901
+ /* @__PURE__ */ i("span", { className: t.cardFoot, children: [
902
+ /* @__PURE__ */ i("span", { className: t.cardEnter, children: [
903
+ "进入产品 ",
904
+ /* @__PURE__ */ a(at, {})
905
+ ] }),
906
+ ye(e.groupCode) && /* @__PURE__ */ a("span", { className: t.cardGroup, children: ye(e.groupCode) }),
907
+ e.status && /* @__PURE__ */ a(E, { className: t.cardTag, children: e.status })
908
+ ] })
909
+ ]
910
+ },
911
+ e.productCode
912
+ )) }) })
913
+ ] })
914
+ ) });
915
+ }
916
+ export {
917
+ In as default
918
+ };