@yuku123/z-team-component 0.2.155 → 0.2.157

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 (51) hide show
  1. package/dist/{AdminModuleContent-BAShnAIR.js → AdminModuleContent-grqyiKb-.js} +6 -6
  2. package/dist/{ChangeLogView-CiWiTbaY.js → ChangeLogView-Go1H4cuB.js} +1 -1
  3. package/dist/{ComponentDoc-QtTYg0c4.js → ComponentDoc-i9x-jOqz.js} +3 -3
  4. package/dist/{InvitationManagementPage-Qul1ge__.js → InvitationManagementPage-BxFsccem.js} +1 -1
  5. package/dist/{OnboardingPage-DMRxUJo8.js → OnboardingPage-BYe-nO_8.js} +2 -2
  6. package/dist/{ScheduledTasks-CdkqVShe.js → ScheduledTasks-B86cq9BY.js} +9 -9
  7. package/dist/{SettingsModal-DudMt3BW.js → SettingsModal-BON9-t2g.js} +4 -4
  8. package/dist/{SystemShell-Ct-HNYSW.js → SystemShell-QG78CsZd.js} +7 -7
  9. package/dist/{admin-logs-CS1IbE03.js → admin-logs-DmkaW3TZ.js} +1 -1
  10. package/dist/{api-DdmMQ_0V.js → api-9xoGga7y.js} +1 -1
  11. package/dist/{api-D3uSsjOp.js → api-DsEZtDFC.js} +1 -1
  12. package/dist/{browser-ClU-u5ti.js → browser-BeVUYeUx.js} +1 -1
  13. package/dist/{createWorkspaceWsHandler-Uc9YF8Mh.js → createWorkspaceWsHandler-CLe1OCxg.js} +3 -3
  14. package/dist/{index-DeErjEn5.js → index-3EUcTELv.js} +2 -2
  15. package/dist/{index-DceAcEH8.js → index-AclHTK6X.js} +2 -2
  16. package/dist/{index-Z1jdxFKZ.js → index-B4s_Uz1i.js} +1 -1
  17. package/dist/{index-BGZ7I2nL.js → index-BCERgdGK.js} +3 -3
  18. package/dist/{index-D7pSn4Om.js → index-BWl9Agi1.js} +4 -4
  19. package/dist/{index-CfJ5P8S5.js → index-BZybJvqm.js} +2 -2
  20. package/dist/{index-BWUO377f.js → index-CBts0SyD.js} +2 -2
  21. package/dist/index-CTZxAP07.js +15 -0
  22. package/dist/index-CXl6O_EN.js +1346 -0
  23. package/dist/{index-B6_9C0yv.js → index-CiQW31H4.js} +4 -4
  24. package/dist/{index-DqvuIq26.js → index-CmQRyM2U.js} +1 -1
  25. package/dist/{index-EjT6XbT2.js → index-CugNjtGV.js} +4 -4
  26. package/dist/{index-BlwxPep3.js → index-CunnZXCp.js} +2 -2
  27. package/dist/{index-BR6D-uNC.js → index-D-ARPfA-.js} +2 -2
  28. package/dist/{index-DUfEqHX6.js → index-DAZnxQer.js} +3 -3
  29. package/dist/{index-CaQfsGC3.js → index-DRuXJBQJ.js} +1 -1
  30. package/dist/{index-Umea7jlI.js → index-DWazIgd8.js} +2 -2
  31. package/dist/{index-UY34Cph2.js → index-DmzlPhxA.js} +1 -1
  32. package/dist/{index-Ce9jReBl.js → index-DpK7wNn_.js} +3 -3
  33. package/dist/{index-BZYORaJn.js → index-Dv1iUHG-.js} +1 -1
  34. package/dist/{index-de3sqMYy.js → index-DwBNOmc4.js} +1 -1
  35. package/dist/{index-CyjOAuK6.js → index-HWUekAOG.js} +9 -9
  36. package/dist/{index-CFFQ1lh2.js → index-bufcg1Pp.js} +6 -6
  37. package/dist/{index-BvvarR-g.js → index-l_xtNeQT.js} +2 -2
  38. package/dist/{index-BIXaLaXB.js → index-owhTZEbg.js} +1 -1
  39. package/dist/{index-DNYL1maa.js → index-yBOJdMpf.js} +2 -2
  40. package/dist/index.js +1 -1
  41. package/dist/{instance-dAC2gZcg.js → instance-CXDIS3YR.js} +1 -1
  42. package/dist/{menuPermission-BoOeVlFP.js → menuPermission-CjErhwel.js} +3 -3
  43. package/dist/pages.js +1 -1
  44. package/dist/{send-default-agent-team-message-jeKGeBkb.js → send-default-agent-team-message-fjPpgP1u.js} +1 -1
  45. package/dist/{spark-md5-v09FreUw.js → spark-md5-CnLvqvIp.js} +1 -1
  46. package/dist/{training-CEOQ9bTj.js → training-yttJPQ6q.js} +1 -1
  47. package/dist/{webide-DgTBj3re.js → webide-DOGmKDqG.js} +3 -3
  48. package/dist/z-team-component.css +1 -1
  49. package/package.json +3 -2
  50. package/dist/index-CKHbBiow.js +0 -1318
  51. package/dist/index-CPOQkuGS.js +0 -20
@@ -0,0 +1,1346 @@
1
+ import { jsxs as r, jsx as t, Fragment as bt } from "react/jsx-runtime";
2
+ import { ReloadOutlined as Tt, SearchOutlined as Ct, RightOutlined as St, TeamOutlined as Pt, MessageOutlined as Rt, AppstoreOutlined as Ke, DeploymentUnitOutlined as At, BugOutlined as Ve, CodeOutlined as Je } from "@ant-design/icons";
3
+ import { Button as X, Select as Ie, Spin as Y, Empty as f, Tag as k, Input as H, Modal as kt } from "antd";
4
+ import { useState as p, useCallback as _, useEffect as _e, useMemo as U, useRef as It, Suspense as Et, lazy as Lt } from "react";
5
+ import { useLocation as $t } from "react-router-dom";
6
+ import { u as G } from "./ComponentDoc-i9x-jOqz.js";
7
+ import { h as D } from "./history-BlrA1eaW.js";
8
+ import { menuItems as We, ProductApp as Bt } from "@yuku123/z-product-component";
9
+ import { C as Gt } from "./createWorkspaceWsHandler-CLe1OCxg.js";
10
+ import { l as Ft, c as Ot } from "./api-9xoGga7y.js";
11
+ import { SidebarShell as qt, MenuTree as jt } from "@yuku123/z-frontend-common/ui";
12
+ const Ht = "product-workspace", Qe = "productCode";
13
+ function w(a) {
14
+ if (!a.ok) throw new Error(`产品接口失败 (${a.status})`);
15
+ return a.json();
16
+ }
17
+ async function Dt() {
18
+ const a = G.getState().token, s = await fetch(`/api/product/list${a ? `?token=${encodeURIComponent(a)}` : ""}`, {
19
+ credentials: "include",
20
+ headers: { Accept: "application/json" }
21
+ }), c = await w(s), o = Array.isArray(c) ? c : c == null ? void 0 : c.data;
22
+ return Array.isArray(o) ? o.map((N) => ({
23
+ ...N,
24
+ productCode: String(N.productCode ?? N.code ?? ""),
25
+ name: String(N.name ?? N.productCode ?? N.code ?? "未命名")
26
+ })) : [];
27
+ }
28
+ async function Ut(a) {
29
+ try {
30
+ const s = await fetch(`/api/product/${encodeURIComponent(a)}`, {
31
+ credentials: "include",
32
+ headers: { Accept: "application/json" }
33
+ }), c = await w(s), o = (c == null ? void 0 : c.data) ?? c;
34
+ return o && typeof o == "object" ? { ...o, productCode: a } : null;
35
+ } catch {
36
+ return null;
37
+ }
38
+ }
39
+ async function Mt(a) {
40
+ try {
41
+ const s = await fetch(`/api/product/${encodeURIComponent(a)}/atelier/workspace`, {
42
+ credentials: "include",
43
+ headers: { Accept: "application/json" }
44
+ }), c = await w(s), o = (c == null ? void 0 : c.data) ?? c;
45
+ return o && typeof o == "object" && Array.isArray(o.files) ? o.files : Array.isArray(o) ? o : [];
46
+ } catch {
47
+ return [];
48
+ }
49
+ }
50
+ async function xt(a, s) {
51
+ try {
52
+ const c = await fetch(
53
+ `/api/product/${encodeURIComponent(a)}/atelier/files/raw?path=${encodeURIComponent(s)}`,
54
+ { credentials: "include", headers: { Accept: "text/html, application/json" } }
55
+ );
56
+ return c.ok ? await c.text() : null;
57
+ } catch {
58
+ return null;
59
+ }
60
+ }
61
+ function zt(a) {
62
+ var o;
63
+ const s = (o = a.ext) == null ? void 0 : o.params;
64
+ if (!s || typeof s != "object") return null;
65
+ const c = s[Qe];
66
+ return c == null ? null : String(c);
67
+ }
68
+ async function Kt(a, s) {
69
+ try {
70
+ return (await Ft(s)).filter((o) => zt(o) === a);
71
+ } catch {
72
+ return [];
73
+ }
74
+ }
75
+ async function Vt(a, s, c) {
76
+ return Ot(
77
+ { scenario_code: Ht, name: s || `产品 ${a} 讨论组` },
78
+ c,
79
+ { [Qe]: a }
80
+ );
81
+ }
82
+ function T(a) {
83
+ return a && typeof a == "object" && "data" in a ? a.data : a;
84
+ }
85
+ async function Jt() {
86
+ try {
87
+ const a = await fetch("/api/product/group/list", {
88
+ credentials: "include",
89
+ headers: { Accept: "application/json" }
90
+ }), s = await w(a), c = T(s);
91
+ return Array.isArray(c) ? c : [];
92
+ } catch {
93
+ return [];
94
+ }
95
+ }
96
+ async function Wt(a) {
97
+ try {
98
+ const s = await fetch("/api/product/group", {
99
+ method: "POST",
100
+ credentials: "include",
101
+ headers: { Accept: "application/json", "Content-Type": "application/json" },
102
+ body: JSON.stringify(a)
103
+ }), c = await w(s);
104
+ return T(c);
105
+ } catch {
106
+ return null;
107
+ }
108
+ }
109
+ async function Qt(a) {
110
+ try {
111
+ const s = await fetch(`/api/product/${encodeURIComponent(a)}/app-binding/list`, {
112
+ credentials: "include",
113
+ headers: { Accept: "application/json" }
114
+ }), c = await w(s), o = T(c);
115
+ return Array.isArray(o) ? o : [];
116
+ } catch {
117
+ return [];
118
+ }
119
+ }
120
+ async function Zt(a, s) {
121
+ try {
122
+ const c = await fetch(`/api/product/${encodeURIComponent(a)}/app-binding`, {
123
+ method: "POST",
124
+ credentials: "include",
125
+ headers: { Accept: "application/json", "Content-Type": "application/json" },
126
+ body: JSON.stringify(s)
127
+ }), o = await w(c);
128
+ return T(o);
129
+ } catch {
130
+ return null;
131
+ }
132
+ }
133
+ async function Yt(a) {
134
+ try {
135
+ const s = await fetch(`/api/product/${encodeURIComponent(a)}/requirement/list`, {
136
+ credentials: "include",
137
+ headers: { Accept: "application/json" }
138
+ }), c = await w(s), o = T(c);
139
+ return Array.isArray(o) ? o : [];
140
+ } catch {
141
+ return [];
142
+ }
143
+ }
144
+ async function Xt(a, s) {
145
+ try {
146
+ const c = await fetch(`/api/product/${encodeURIComponent(a)}/requirement`, {
147
+ method: "POST",
148
+ credentials: "include",
149
+ headers: { Accept: "application/json", "Content-Type": "application/json" },
150
+ body: JSON.stringify(s)
151
+ }), o = await w(c);
152
+ return T(o);
153
+ } catch {
154
+ return null;
155
+ }
156
+ }
157
+ async function M(a, s) {
158
+ try {
159
+ const c = await fetch(
160
+ `/api/product/${encodeURIComponent(a)}/${s}`,
161
+ { credentials: "include", headers: { Accept: "application/json" } }
162
+ ), o = await w(c), N = T(o);
163
+ return Array.isArray(N) ? N : [];
164
+ } catch {
165
+ return [];
166
+ }
167
+ }
168
+ async function en(a) {
169
+ return M(a, "glossary/list");
170
+ }
171
+ async function tn(a) {
172
+ return M(a, "concept/list");
173
+ }
174
+ async function nn(a) {
175
+ return M(a, "scenario/list");
176
+ }
177
+ async function an(a) {
178
+ return M(a, "design/list");
179
+ }
180
+ async function rn(a) {
181
+ return M(a, "chat/sessions");
182
+ }
183
+ async function cn(a) {
184
+ return M(a, "chat/proposals");
185
+ }
186
+ async function sn() {
187
+ try {
188
+ const a = await fetch("/api/product/relation/types", {
189
+ credentials: "include",
190
+ headers: { Accept: "application/json" }
191
+ }), s = await w(a), c = T(s);
192
+ return c && typeof c == "object" ? c : {};
193
+ } catch {
194
+ return {};
195
+ }
196
+ }
197
+ async function on() {
198
+ try {
199
+ const a = await fetch("/api/product/architecture", {
200
+ credentials: "include",
201
+ headers: { Accept: "application/json" }
202
+ }), s = await w(a), c = T(s);
203
+ return c && typeof c == "object" ? {
204
+ products: Array.isArray(c.products) ? c.products : [],
205
+ groups: Array.isArray(c.groups) ? c.groups : [],
206
+ relations: Array.isArray(c.relations) ? c.relations : [],
207
+ appBindings: Array.isArray(c.appBindings) ? c.appBindings : []
208
+ } : { products: [], groups: [], relations: [], appBindings: [] };
209
+ } catch {
210
+ return { products: [], groups: [], relations: [], appBindings: [] };
211
+ }
212
+ }
213
+ async function ln(a) {
214
+ try {
215
+ const s = await fetch("/api/product/relation", {
216
+ method: "POST",
217
+ credentials: "include",
218
+ headers: { Accept: "application/json", "Content-Type": "application/json" },
219
+ body: JSON.stringify(a)
220
+ }), c = await w(s);
221
+ return T(c);
222
+ } catch {
223
+ return null;
224
+ }
225
+ }
226
+ async function dn(a) {
227
+ try {
228
+ return await fetch(`/api/product/relation/${a}`, {
229
+ method: "DELETE",
230
+ credentials: "include",
231
+ headers: { Accept: "application/json" }
232
+ }), !0;
233
+ } catch {
234
+ return !1;
235
+ }
236
+ }
237
+ async function pn(a, s) {
238
+ try {
239
+ const c = await fetch(`/api/product/${encodeURIComponent(a)}/requirement/${s.id}`, {
240
+ method: "PUT",
241
+ credentials: "include",
242
+ headers: { Accept: "application/json", "Content-Type": "application/json" },
243
+ body: JSON.stringify(s)
244
+ }), o = await w(c);
245
+ return T(o);
246
+ } catch {
247
+ return null;
248
+ }
249
+ }
250
+ const un = "_container_v1vhg_3", hn = "_header_v1vhg_11", mn = "_title_v1vhg_23", vn = "_subtitle_v1vhg_30", _n = "_actions_v1vhg_36", gn = "_stats_v1vhg_42", Nn = "_relForm_v1vhg_55", yn = "_relFormLabel_v1vhg_66", fn = "_centerFill_v1vhg_72", wn = "_groups_v1vhg_79", bn = "_groupBlock_v1vhg_89", Tn = "_groupHeader_v1vhg_95", Cn = "_groupName_v1vhg_101", Sn = "_groupCount_v1vhg_107", Pn = "_productGrid_v1vhg_112", Rn = "_productCard_v1vhg_118", An = "_cardHead_v1vhg_134", kn = "_cardName_v1vhg_141", In = "_cardTag_v1vhg_150", En = "_cardCode_v1vhg_156", Ln = "_cardDesc_v1vhg_161", $n = "_cardSection_v1vhg_171", Bn = "_sectionLabel_v1vhg_180", Gn = "_bindList_v1vhg_185", Fn = "_bindTag_v1vhg_191", On = "_relList_v1vhg_196", qn = "_relRow_v1vhg_202", jn = "_relTag_v1vhg_209", Hn = "_relTarget_v1vhg_215", Dn = "_relDel_v1vhg_225", h = {
251
+ container: un,
252
+ header: hn,
253
+ title: mn,
254
+ subtitle: vn,
255
+ actions: _n,
256
+ stats: gn,
257
+ relForm: Nn,
258
+ relFormLabel: yn,
259
+ centerFill: fn,
260
+ groups: wn,
261
+ groupBlock: bn,
262
+ groupHeader: Tn,
263
+ groupName: Cn,
264
+ groupCount: Sn,
265
+ productGrid: Pn,
266
+ productCard: Rn,
267
+ cardHead: An,
268
+ cardName: kn,
269
+ cardTag: In,
270
+ cardCode: En,
271
+ cardDesc: Ln,
272
+ cardSection: $n,
273
+ sectionLabel: Bn,
274
+ bindList: Gn,
275
+ bindTag: Fn,
276
+ relList: On,
277
+ relRow: qn,
278
+ relTag: jn,
279
+ relTarget: Hn,
280
+ relDel: Dn
281
+ };
282
+ function Un() {
283
+ const [a, s] = p({ products: [], groups: [], relations: [], appBindings: [] }), [c, o] = p({}), [N, $] = p(!0), [d, x] = p(null), [l, z] = p(null), [b, ee] = p("DEPENDS_ON"), F = _(async () => {
284
+ $(!0);
285
+ try {
286
+ const [u, v] = await Promise.all([on(), sn()]);
287
+ s(u), o(v);
288
+ } finally {
289
+ $(!1);
290
+ }
291
+ }, []);
292
+ _e(() => {
293
+ F();
294
+ }, [F]);
295
+ const I = _(
296
+ (u) => {
297
+ if (!u) return null;
298
+ const v = a.groups.find((m) => m.groupCode === u);
299
+ return v ? v.name : u;
300
+ },
301
+ [a.groups]
302
+ ), ge = U(() => {
303
+ const u = /* @__PURE__ */ new Map();
304
+ for (const v of a.products) {
305
+ const m = v.groupCode ?? null;
306
+ u.has(m) || u.set(m, []), u.get(m).push(v);
307
+ }
308
+ return [...u.entries()].sort((v, m) => v[0] === null ? 1 : m[0] === null ? -1 : String(I(v[0])).localeCompare(String(I(m[0])), "zh"));
309
+ }, [a.products, I]), te = _(
310
+ (u) => a.appBindings.filter((v) => v.productCode === u),
311
+ [a.appBindings]
312
+ ), K = _(
313
+ (u) => a.relations.filter((v) => v.productCode === u),
314
+ [a.relations]
315
+ ), C = _(
316
+ (u) => {
317
+ const v = a.products.find((m) => m.productCode === u);
318
+ return v ? v.name : u;
319
+ },
320
+ [a.products]
321
+ ), V = _(async () => {
322
+ if (!d || !l || d === l) return;
323
+ const u = await ln({
324
+ productCode: d,
325
+ relatedCode: l,
326
+ relationType: b,
327
+ description: `${C(d)} ${c[b] ?? b} ${C(l)}`
328
+ });
329
+ u && (s((v) => ({ ...v, relations: [...v.relations, u] })), x(null), z(null));
330
+ }, [d, l, b, c, C]), E = U(
331
+ () => a.products.map((u) => ({
332
+ value: u.productCode,
333
+ label: `${u.name}(${u.productCode})`
334
+ })),
335
+ [a.products]
336
+ );
337
+ return /* @__PURE__ */ r("div", { className: h.container, children: [
338
+ /* @__PURE__ */ r("div", { className: h.header, children: [
339
+ /* @__PURE__ */ r("div", { children: [
340
+ /* @__PURE__ */ t("h2", { className: h.title, children: "架构全景" }),
341
+ /* @__PURE__ */ t("p", { className: h.subtitle, children: "租户下所有产品整顿成一张架构图:产品群 · 产品↔产品关系 · 挂接的中间件/应用" })
342
+ ] }),
343
+ /* @__PURE__ */ r("div", { className: h.actions, children: [
344
+ /* @__PURE__ */ r("span", { className: h.stats, children: [
345
+ /* @__PURE__ */ t("b", { children: a.products.length }),
346
+ " 产品",
347
+ /* @__PURE__ */ t("b", { children: a.groups.length }),
348
+ " 群",
349
+ /* @__PURE__ */ t("b", { children: a.relations.length }),
350
+ " 关系",
351
+ /* @__PURE__ */ t("b", { children: a.appBindings.filter((u) => u.appType === "INFRA").length }),
352
+ " 基建"
353
+ ] }),
354
+ /* @__PURE__ */ t(X, { size: "small", icon: /* @__PURE__ */ t(Tt, {}), onClick: () => void F(), children: "刷新" })
355
+ ] })
356
+ ] }),
357
+ /* @__PURE__ */ r("div", { className: h.relForm, children: [
358
+ /* @__PURE__ */ t("span", { className: h.relFormLabel, children: "新建产品关系:" }),
359
+ /* @__PURE__ */ t(
360
+ Ie,
361
+ {
362
+ size: "small",
363
+ placeholder: "起点产品",
364
+ value: d,
365
+ onChange: x,
366
+ options: E,
367
+ style: { width: 200 },
368
+ showSearch: !0,
369
+ optionFilterProp: "label"
370
+ }
371
+ ),
372
+ /* @__PURE__ */ t(
373
+ Ie,
374
+ {
375
+ size: "small",
376
+ placeholder: "关系类型",
377
+ value: b,
378
+ onChange: (u) => ee(u),
379
+ style: { width: 130 },
380
+ options: Object.entries(c).map(([u, v]) => ({ value: u, label: v }))
381
+ }
382
+ ),
383
+ /* @__PURE__ */ t(
384
+ Ie,
385
+ {
386
+ size: "small",
387
+ placeholder: "终点产品",
388
+ value: l,
389
+ onChange: z,
390
+ options: E,
391
+ style: { width: 200 },
392
+ showSearch: !0,
393
+ optionFilterProp: "label"
394
+ }
395
+ ),
396
+ /* @__PURE__ */ t(
397
+ X,
398
+ {
399
+ size: "small",
400
+ type: "primary",
401
+ onClick: () => void V(),
402
+ disabled: !d || !l || d === l,
403
+ children: "建立关系"
404
+ }
405
+ )
406
+ ] }),
407
+ N ? /* @__PURE__ */ t("div", { className: h.centerFill, children: /* @__PURE__ */ t(Y, {}) }) : a.products.length === 0 ? /* @__PURE__ */ t("div", { className: h.centerFill, children: /* @__PURE__ */ t(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "暂无产品,先在产品库创建" }) }) : /* @__PURE__ */ t("div", { className: h.groups, children: ge.map(([u, v]) => /* @__PURE__ */ r("div", { className: h.groupBlock, children: [
408
+ /* @__PURE__ */ r("div", { className: h.groupHeader, children: [
409
+ /* @__PURE__ */ t("span", { className: h.groupName, children: I(u) ? `📦 ${I(u)}` : "🗂 未分组" }),
410
+ /* @__PURE__ */ r("span", { className: h.groupCount, children: [
411
+ v.length,
412
+ " 个产品"
413
+ ] })
414
+ ] }),
415
+ /* @__PURE__ */ t("div", { className: h.productGrid, children: v.map((m) => {
416
+ const ne = te(m.productCode ?? ""), O = K(m.productCode ?? "");
417
+ return /* @__PURE__ */ r("div", { className: h.productCard, children: [
418
+ /* @__PURE__ */ r("div", { className: h.cardHead, children: [
419
+ /* @__PURE__ */ t("span", { className: h.cardName, title: m.name, children: m.name }),
420
+ m.status && /* @__PURE__ */ t(k, { className: h.cardTag, children: m.status })
421
+ ] }),
422
+ /* @__PURE__ */ t("div", { className: h.cardCode, children: m.productCode }),
423
+ m.description && /* @__PURE__ */ t("div", { className: h.cardDesc, title: m.description, children: m.description }),
424
+ ne.length > 0 && /* @__PURE__ */ r("div", { className: h.cardSection, children: [
425
+ /* @__PURE__ */ t("div", { className: h.sectionLabel, children: "挂接" }),
426
+ /* @__PURE__ */ t("div", { className: h.bindList, children: ne.map((y) => /* @__PURE__ */ r(
427
+ k,
428
+ {
429
+ className: h.bindTag,
430
+ color: y.appType === "INFRA" ? "purple" : "geekblue",
431
+ children: [
432
+ y.appType === "INFRA" ? "🏗" : "🧩",
433
+ " ",
434
+ y.appName
435
+ ]
436
+ },
437
+ y.id
438
+ )) })
439
+ ] }),
440
+ O.length > 0 && /* @__PURE__ */ r("div", { className: h.cardSection, children: [
441
+ /* @__PURE__ */ t("div", { className: h.sectionLabel, children: "关系" }),
442
+ /* @__PURE__ */ t("div", { className: h.relList, children: O.map((y) => /* @__PURE__ */ r("div", { className: h.relRow, children: [
443
+ /* @__PURE__ */ t(
444
+ k,
445
+ {
446
+ className: h.relTag,
447
+ color: y.relationType === "DEPENDS_ON" ? "orange" : y.relationType === "BUILT_ON" ? "cyan" : "blue",
448
+ children: c[y.relationType] ?? y.relationType
449
+ }
450
+ ),
451
+ /* @__PURE__ */ t("span", { className: h.relTarget, title: C(y.relatedCode), children: C(y.relatedCode) }),
452
+ /* @__PURE__ */ t(
453
+ "button",
454
+ {
455
+ type: "button",
456
+ className: h.relDel,
457
+ onClick: async () => {
458
+ await dn(y.id), s((B) => ({
459
+ ...B,
460
+ relations: B.relations.filter((J) => J.id !== y.id)
461
+ }));
462
+ },
463
+ title: "删除关系",
464
+ children: "✕"
465
+ }
466
+ )
467
+ ] }, y.id)) })
468
+ ] })
469
+ ] }, m.productCode);
470
+ }) })
471
+ ] }, u ?? "__none__")) })
472
+ ] });
473
+ }
474
+ const Mn = "_container_1n33v_5", xn = "_libraryView_1n33v_14", zn = "_libraryHeader_1n33v_22", Kn = "_libraryHeadRow_1n33v_32", Vn = "_libraryTitle_1n33v_40", Jn = "_librarySubtitle_1n33v_47", Wn = "_librarySearch_1n33v_53", Qn = "_libraryBody_1n33v_58", Zn = "_productGrid_1n33v_65", Yn = "_productCard_1n33v_71", Xn = "_cardCode_1n33v_91", ea = "_cardName_1n33v_104", ta = "_cardDesc_1n33v_113", na = "_cardFoot_1n33v_124", aa = "_cardEnter_1n33v_132", ra = "_cardTag_1n33v_140", ia = "_left_1n33v_146", ca = "_leftHeader_1n33v_156", sa = "_leftTitleRow_1n33v_162", oa = "_leftTitle_1n33v_162", la = "_backBtn_1n33v_179", da = "_sectionBar_1n33v_209", pa = "_sectionTab_1n33v_219", ua = "_sectionTabActive_1n33v_241", ha = "_sectionIcon_1n33v_248", ma = "_leftBody_1n33v_253", va = "_fileList_1n33v_264", _a = "_fileTreeHint_1n33v_303", ga = "_fileRow_1n33v_309", Na = "_fileRowActive_1n33v_323", ya = "_fileRowIcon_1n33v_327", fa = "_fileRowName_1n33v_332", wa = "_fileKindTag_1n33v_341", ba = "_center_1n33v_349", Ta = "_centerFill_1n33v_358", Ca = "_renderArea_1n33v_413", Sa = "_renderIframe_1n33v_423", Pa = "_renderCode_1n33v_429", Ra = "_right_1n33v_442", Aa = "_chatSide_1n33v_453", ka = "_chatSideHeader_1n33v_459", Ia = "_chatSideTitle_1n33v_468", Ea = "_chatGroupList_1n33v_477", La = "_chatGroupRow_1n33v_486", $a = "_chatGroupRowActive_1n33v_500", Ba = "_chatGroupName_1n33v_504", Ga = "_chatGroupTime_1n33v_513", Fa = "_chatPane_1n33v_520", Oa = "_chatPaneHeader_1n33v_526", qa = "_chatPaneTitle_1n33v_535", ja = "_chatPaneBody_1n33v_544", Ha = "_groupChips_1n33v_555", Da = "_groupChip_1n33v_555", Ua = "_groupChipActive_1n33v_578", Ma = "_groupNewBtn_1n33v_589", xa = "_cardGroup_1n33v_604", za = "_overviewArea_1n33v_614", Ka = "_overviewHeader_1n33v_619", Va = "_overviewTitle_1n33v_623", Ja = "_overviewSubtitle_1n33v_630", Wa = "_overviewTabs_1n33v_636", Qa = "_overviewTab_1n33v_636", Za = "_overviewTabActive_1n33v_659", Ya = "_overviewPanel_1n33v_669", Xa = "_reqForm_1n33v_677", er = "_reqList_1n33v_683", tr = "_reqRow_1n33v_689", nr = "_reqTitle_1n33v_698", ar = "_reqTag_1n33v_707", rr = "_reqStatusTag_1n33v_713", ir = "_reqTime_1n33v_726", cr = "_appForm_1n33v_733", sr = "_appTypeSelect_1n33v_740", or = "_appList_1n33v_751", lr = "_appRow_1n33v_757", dr = "_appIcon_1n33v_766", pr = "_appName_1n33v_771", ur = "_appCode_1n33v_781", hr = "_appTag_1n33v_787", mr = "_appGo_1n33v_793", vr = "_appInfraNote_1n33v_808", _r = "_appUnbind_1n33v_814", gr = "_statsRow_1n33v_831", Nr = "_statItem_1n33v_842", yr = "_domainBlock_1n33v_856", fr = "_domainBlockTitle_1n33v_864", wr = "_domainEmpty_1n33v_871", br = "_domainList_1n33v_879", Tr = "_domainRow_1n33v_885", Cr = "_domainName_1n33v_894", Sr = "_domainDesc_1n33v_908", Pr = "_designHint_1n33v_919", Rr = "_designList_1n33v_928", Ar = "_designRow_1n33v_934", kr = "_designIcon_1n33v_943", Ir = "_designName_1n33v_948", Er = "_designTime_1n33v_958", Lr = "_overviewEntryBtn_1n33v_965", n = {
475
+ container: Mn,
476
+ libraryView: xn,
477
+ libraryHeader: zn,
478
+ libraryHeadRow: Kn,
479
+ libraryTitle: Vn,
480
+ librarySubtitle: Jn,
481
+ librarySearch: Wn,
482
+ libraryBody: Qn,
483
+ productGrid: Zn,
484
+ productCard: Yn,
485
+ cardCode: Xn,
486
+ cardName: ea,
487
+ cardDesc: ta,
488
+ cardFoot: na,
489
+ cardEnter: aa,
490
+ cardTag: ra,
491
+ left: ia,
492
+ leftHeader: ca,
493
+ leftTitleRow: sa,
494
+ leftTitle: oa,
495
+ backBtn: la,
496
+ sectionBar: da,
497
+ sectionTab: pa,
498
+ sectionTabActive: ua,
499
+ sectionIcon: ha,
500
+ leftBody: ma,
501
+ fileList: va,
502
+ fileTreeHint: _a,
503
+ fileRow: ga,
504
+ fileRowActive: Na,
505
+ fileRowIcon: ya,
506
+ fileRowName: fa,
507
+ fileKindTag: wa,
508
+ center: ba,
509
+ centerFill: Ta,
510
+ renderArea: Ca,
511
+ renderIframe: Sa,
512
+ renderCode: Pa,
513
+ right: Ra,
514
+ chatSide: Aa,
515
+ chatSideHeader: ka,
516
+ chatSideTitle: Ia,
517
+ chatGroupList: Ea,
518
+ chatGroupRow: La,
519
+ chatGroupRowActive: $a,
520
+ chatGroupName: Ba,
521
+ chatGroupTime: Ga,
522
+ chatPane: Fa,
523
+ chatPaneHeader: Oa,
524
+ chatPaneTitle: qa,
525
+ chatPaneBody: ja,
526
+ groupChips: Ha,
527
+ groupChip: Da,
528
+ groupChipActive: Ua,
529
+ groupNewBtn: Ma,
530
+ cardGroup: xa,
531
+ overviewArea: za,
532
+ overviewHeader: Ka,
533
+ overviewTitle: Va,
534
+ overviewSubtitle: Ja,
535
+ overviewTabs: Wa,
536
+ overviewTab: Qa,
537
+ overviewTabActive: Za,
538
+ overviewPanel: Ya,
539
+ reqForm: Xa,
540
+ reqList: er,
541
+ reqRow: tr,
542
+ reqTitle: nr,
543
+ reqTag: ar,
544
+ reqStatusTag: rr,
545
+ reqTime: ir,
546
+ appForm: cr,
547
+ appTypeSelect: sr,
548
+ appList: or,
549
+ appRow: lr,
550
+ appIcon: dr,
551
+ appName: pr,
552
+ appCode: ur,
553
+ appTag: hr,
554
+ appGo: mr,
555
+ appInfraNote: vr,
556
+ appUnbind: _r,
557
+ statsRow: gr,
558
+ statItem: Nr,
559
+ domainBlock: yr,
560
+ domainBlockTitle: fr,
561
+ domainEmpty: wr,
562
+ domainList: br,
563
+ domainRow: Tr,
564
+ domainName: Cr,
565
+ domainDesc: Sr,
566
+ designHint: Pr,
567
+ designList: Rr,
568
+ designRow: Ar,
569
+ designIcon: kr,
570
+ designName: Ir,
571
+ designTime: Er,
572
+ overviewEntryBtn: Lr
573
+ }, $r = Lt(() => import("@yuku123/z-qa-component"));
574
+ function Br(a) {
575
+ return {
576
+ id: String(a.id),
577
+ name: a.name,
578
+ description: a.description ?? "",
579
+ workspace_path: a.workspacePath || a.name,
580
+ status: a.status,
581
+ created_at: a.createTime ?? "",
582
+ scenario_id: String(a.id),
583
+ scenario_code: a.scenarioCode,
584
+ scenario_name: a.scenarioName ?? a.name
585
+ };
586
+ }
587
+ const Gr = [
588
+ {
589
+ title: "产品",
590
+ icon: /* @__PURE__ */ t(Ke, {}),
591
+ items: [
592
+ { key: "prod-library", label: "产品库", icon: /* @__PURE__ */ t(Ke, {}) },
593
+ {
594
+ key: "prod-architecture",
595
+ label: "架构全景",
596
+ icon: /* @__PURE__ */ t(At, {}),
597
+ title: "租户下所有产品的架构关系(产品↔产品、产品↔中间件)"
598
+ },
599
+ ...We.map((a) => ({
600
+ key: a.key,
601
+ label: a.label,
602
+ icon: a.icon,
603
+ path: a.key
604
+ }))
605
+ ]
606
+ },
607
+ {
608
+ title: "测试",
609
+ icon: /* @__PURE__ */ t(Ve, {}),
610
+ items: [
611
+ {
612
+ key: "qa-dashboard",
613
+ label: "QA 总览",
614
+ icon: /* @__PURE__ */ t(Ve, {}),
615
+ // 2026-11-26:QA 总览内嵌在产研面(/product/qa/*),点了不换面;
616
+ // 系统面自己的 /test/qa/* 测试中心不受影响。
617
+ path: "/product/qa/dashboard"
618
+ }
619
+ ]
620
+ },
621
+ {
622
+ title: "研发",
623
+ icon: /* @__PURE__ */ t(Je, {}),
624
+ items: [
625
+ {
626
+ key: "lc-apps",
627
+ label: "应用研发",
628
+ icon: /* @__PURE__ */ t(Je, {}),
629
+ path: "/lc/apps"
630
+ }
631
+ ]
632
+ }
633
+ ];
634
+ function Ze(a) {
635
+ const s = a.toLowerCase();
636
+ 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";
637
+ }
638
+ function Ye(a, s = "") {
639
+ const c = [];
640
+ for (const o of a ?? []) {
641
+ const N = o.path || `${s}${o.name ?? ""}`, $ = o.name || N.split("/").pop() || N, d = o.type === "dir" || Array.isArray(o.children);
642
+ c.push({ path: N, name: $, dir: d, kind: Ze(N), depth: s.split("/").filter(Boolean).length }), d && Array.isArray(o.children) && c.push(...Ye(o.children, `${N}/`));
643
+ }
644
+ return c;
645
+ }
646
+ function Vr() {
647
+ const a = G((e) => e.token), s = G((e) => e.selectProject), [c, o] = p([]), [N, $] = p(!0), [d, x] = p(null), [l, z] = p(null), [b, ee] = p(!1), [F, I] = p([]), [ge, te] = p(!1), [K, C] = p(null), [V, E] = p(null), [u, v] = p("other"), [m, ne] = p(""), [O, y] = p("library"), [B, J] = p([]), [Ee, Ne] = p(null), [ae, Le] = p(!1), [Xe, re] = p("list"), P = It(null), [ye, $e] = p([]), [W, Be] = p(null), [ie, fe] = p([]), [ce, we] = p([]), [R, q] = p("req"), [Q, Ge] = p(""), [se, et] = p([]), [oe, tt] = p([]), [le, nt] = p([]), [de, at] = p([]), [pe, rt] = p([]), [Fe, it] = p([]), be = _(
648
+ async (e) => {
649
+ x(e), ee(!0), C(null), E(null), re("list"), Ne(null), q("req");
650
+ const i = await Ut(e);
651
+ z(i);
652
+ const g = await Kt(e, a);
653
+ J(g);
654
+ const S = await Qt(e);
655
+ fe(S);
656
+ const ve = await Yt(e);
657
+ we(ve);
658
+ const [ke, Z, gt, Nt, yt, ft] = await Promise.all([
659
+ en(e),
660
+ tn(e),
661
+ nn(e),
662
+ an(e),
663
+ rn(e),
664
+ cn(e)
665
+ ]);
666
+ et(ke), tt(Z), nt(gt), at(Nt), rt(yt), it(ft), te(!0);
667
+ const wt = await Mt(e);
668
+ I(wt), te(!1);
669
+ },
670
+ [a]
671
+ ), Oe = _(async () => {
672
+ $(!0);
673
+ try {
674
+ const e = await Dt();
675
+ o(e);
676
+ const i = await Jt();
677
+ $e(i);
678
+ try {
679
+ const g = new URLSearchParams(window.location.search).get("product");
680
+ if (g) {
681
+ const S = e.find((ve) => ve.productCode === g);
682
+ if (S) {
683
+ be(S.productCode);
684
+ return;
685
+ }
686
+ }
687
+ } catch {
688
+ }
689
+ } catch {
690
+ o([]);
691
+ } finally {
692
+ $(!1);
693
+ }
694
+ }, [be]);
695
+ _e(() => {
696
+ Oe();
697
+ }, [Oe]);
698
+ const ct = _(() => {
699
+ if (!d) return;
700
+ const e = new URLSearchParams();
701
+ e.set("product", d), l != null && l.name && e.set("productName", l.name), D.push(`/lc/apps?${e.toString()}`);
702
+ }, [d, l == null ? void 0 : l.name]), st = _(() => {
703
+ if (!d) return;
704
+ const e = new URLSearchParams();
705
+ e.set("product", d), l != null && l.name && e.set("productName", l.name), D.push(`/product/qa/dashboard?${e.toString()}`);
706
+ }, [d, l == null ? void 0 : l.name]), Te = _(() => {
707
+ x(null), ee(!1), z(null), I([]), J([]), C(null), E(null), Ne(null), re("list"), P.current !== void 0 && G.setState({ currentProject: P.current }), P.current = void 0;
708
+ }, []);
709
+ _e(() => {
710
+ new URLSearchParams(window.location.search).get("view") === "architecture" && y("architecture");
711
+ }, []);
712
+ const qe = _(
713
+ (e) => {
714
+ b && Te(), y(e);
715
+ const i = new URL(window.location.href);
716
+ i.searchParams.set("view", e), D.replace(`${i.pathname}${i.search}${i.hash}`);
717
+ },
718
+ [b, Te]
719
+ ), je = _((e) => {
720
+ D.push(e);
721
+ }, []), { pathname: L } = $t(), ue = L.startsWith("/product/qa"), Ce = !ue && (L.startsWith("/z-product/") || /^\/product\/.+/.test(L)), He = U(() => {
722
+ if (ue) return "qa-dashboard";
723
+ if (Ce) {
724
+ const e = (g) => `/product${g.slice(10)}`, i = We.find(
725
+ (g) => L === g.key || L.startsWith(`${g.key}/`) || L === e(g.key) || L.startsWith(`${e(g.key)}/`)
726
+ );
727
+ return (i == null ? void 0 : i.key) ?? null;
728
+ }
729
+ return b ? null : O === "architecture" ? "prod-architecture" : "prod-library";
730
+ }, [ue, Ce, L, b, O]), De = _(
731
+ (e, i) => {
732
+ if (e === "产品") {
733
+ if (i.path) {
734
+ D.push(i.path);
735
+ return;
736
+ }
737
+ qe(i.key === "prod-architecture" ? "architecture" : "library");
738
+ return;
739
+ }
740
+ i.path && je(i.path);
741
+ },
742
+ [qe, je]
743
+ ), ot = U(
744
+ () => Gr.map((e) => ({
745
+ key: e.title,
746
+ title: e.title,
747
+ items: e.items.map((i) => ({
748
+ key: i.key,
749
+ label: i.label,
750
+ icon: i.icon,
751
+ title: i.title,
752
+ active: He === i.key,
753
+ onClick: () => De(e.title, i)
754
+ }))
755
+ })),
756
+ [He, De]
757
+ ), Ue = _(async () => {
758
+ if (!d || !Q.trim()) return;
759
+ const e = await Xt(d, {
760
+ title: Q.trim(),
761
+ priority: "P2"
762
+ });
763
+ e && (we((i) => [...i, e]), Ge(""));
764
+ }, [d, Q]), lt = ["OPEN", "IN_PROGRESS", "DONE", "CLOSED"], [he] = p(lt), dt = _(
765
+ async (e) => {
766
+ if (!d || e.id == null) return;
767
+ const i = String(e.status ?? "OPEN"), g = he.indexOf(i), S = he[(g + 1) % he.length];
768
+ await pn(d, { id: e.id, status: S }) && we((ke) => ke.map((Z) => Z.id === e.id ? { ...Z, status: S } : Z));
769
+ },
770
+ [d, he]
771
+ ), [A, me] = p({
772
+ appCode: "",
773
+ appName: "",
774
+ appType: "APP"
775
+ }), pt = _(async () => {
776
+ if (!d || !A.appCode.trim() || !A.appName.trim()) return;
777
+ const e = await Zt(d, A);
778
+ e && (fe((i) => [...i, e]), me({ appCode: "", appName: "", appType: "APP" }));
779
+ }, [d, A]), ut = _(
780
+ async (e) => {
781
+ d && (await unbindProductApp(d, e), fe((i) => i.filter((g) => g.id !== e)));
782
+ },
783
+ [d]
784
+ ), [j, Se] = p({ groupCode: "", name: "" }), [ht, Pe] = p(!1), Me = _(async () => {
785
+ if (!j.groupCode.trim() || !j.name.trim()) return !1;
786
+ const e = await Wt(j);
787
+ return e ? ($e((i) => [...i, e]), Se({ groupCode: "", name: "" }), !0) : !1;
788
+ }, [j]), mt = _(async () => {
789
+ await Me() && Pe(!1);
790
+ }, [Me]), vt = _(
791
+ async (e) => {
792
+ if (!d) return;
793
+ C(e), E(null);
794
+ const i = Ze(e);
795
+ v(i);
796
+ const g = await xt(d, e);
797
+ E(g ?? "");
798
+ },
799
+ [d]
800
+ ), Re = _(
801
+ async (e) => {
802
+ if (!e) return;
803
+ const i = Br(e);
804
+ P.current = G.getState().currentProject, Ne(e.id), re("chat"), s(i);
805
+ },
806
+ [s]
807
+ ), _t = _(async () => {
808
+ if (!(!d || ae)) {
809
+ Le(!0);
810
+ try {
811
+ const e = await Vt(
812
+ d,
813
+ `${(l == null ? void 0 : l.name) || d} · 讨论组 ${B.length + 1}`,
814
+ a
815
+ );
816
+ J((i) => [...i, e]), await Re(e);
817
+ } finally {
818
+ Le(!1);
819
+ }
820
+ }
821
+ }, [d, ae, B.length, l == null ? void 0 : l.name, a, Re]);
822
+ _e(() => () => {
823
+ P.current !== void 0 && G.setState({ currentProject: P.current });
824
+ }, [Ee]);
825
+ const Ae = U(() => Ye(F), [F]), xe = U(
826
+ () => c.filter((e) => !(m && !e.name.includes(m) && !e.productCode.includes(m) || W && e.groupCode !== W)),
827
+ [c, m, W]
828
+ ), ze = _(
829
+ (e) => {
830
+ if (!e) return null;
831
+ const i = ye.find((g) => g.groupCode === e);
832
+ return i ? i.name : e;
833
+ },
834
+ [ye]
835
+ );
836
+ return /* @__PURE__ */ r("div", { className: n.container, children: [
837
+ /* @__PURE__ */ t(qt, { title: "产研", width: 220, storageKey: "ft_product_sidebar_collapsed", children: /* @__PURE__ */ t(jt, { groups: ot, defaultCollapsed: !0 }) }),
838
+ ue ? (
839
+ /* ═══ 测试组内嵌:QA 总览(/product/qa/*,QAApp 按 mountPath 出链接,点了不换面) ═══ */
840
+ /* @__PURE__ */ t(Et, { fallback: /* @__PURE__ */ t("div", { className: n.centerFill, children: /* @__PURE__ */ t(Y, {}) }), children: /* @__PURE__ */ t($r, { mountPath: "/product/qa" }) })
841
+ ) : Ce ? (
842
+ /* ═══ 产品组内嵌:z-product 工作台页。
843
+ basePath=/product 时 ProductApp 双口径对表(/product/<页> 与 manifest
844
+ 绝对路径 /z-product/<页> 都命中),页内跳转落回产研面本组件继续渲染。 ═══ */
845
+ /* @__PURE__ */ t(Bt, { basePath: "/product" })
846
+ ) : b ? /* @__PURE__ */ r(bt, { children: [
847
+ /* @__PURE__ */ r("aside", { className: n.left, children: [
848
+ /* @__PURE__ */ r("div", { className: n.leftHeader, children: [
849
+ /* @__PURE__ */ r("div", { className: n.leftTitleRow, children: [
850
+ /* @__PURE__ */ t("button", { type: "button", className: n.backBtn, onClick: Te, title: "返回产品库", children: "←" }),
851
+ /* @__PURE__ */ t("span", { className: n.leftTitle, title: (l == null ? void 0 : l.name) || d || "", children: (l == null ? void 0 : l.name) || d })
852
+ ] }),
853
+ /* @__PURE__ */ r("div", { className: n.sectionBar, children: [
854
+ /* @__PURE__ */ r("span", { className: `${n.sectionTab} ${n.sectionTabActive}`, children: [
855
+ /* @__PURE__ */ t("span", { className: n.sectionIcon, children: "📦" }),
856
+ " 产品"
857
+ ] }),
858
+ /* @__PURE__ */ r("button", { type: "button", className: n.sectionTab, onClick: ct, title: "进入研发工作台(z-lc)", children: [
859
+ /* @__PURE__ */ t("span", { className: n.sectionIcon, children: "💻" }),
860
+ " 研发"
861
+ ] }),
862
+ /* @__PURE__ */ r("button", { type: "button", className: n.sectionTab, onClick: st, title: "进入测试工作台(QA)", children: [
863
+ /* @__PURE__ */ t("span", { className: n.sectionIcon, children: "🧪" }),
864
+ " 测试"
865
+ ] })
866
+ ] })
867
+ ] }),
868
+ /* @__PURE__ */ r("div", { className: n.leftBody, children: [
869
+ /* @__PURE__ */ t(
870
+ "button",
871
+ {
872
+ type: "button",
873
+ className: n.overviewEntryBtn,
874
+ onClick: () => {
875
+ C(null), E(null);
876
+ },
877
+ title: "回到产品总览(沉淀台)",
878
+ children: "📋 产品总览 · 返回沉淀台"
879
+ }
880
+ ),
881
+ /* @__PURE__ */ t("div", { className: n.fileTreeHint, children: "文件(设计稿 · 文档 · 产物)" }),
882
+ ge ? /* @__PURE__ */ t("div", { className: n.centerFill, children: /* @__PURE__ */ t(Y, { size: "small" }) }) : Ae.length === 0 ? /* @__PURE__ */ t(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "产品下暂无文件" }) : /* @__PURE__ */ t("div", { className: n.fileList, children: Ae.map((e) => /* @__PURE__ */ r(
883
+ "div",
884
+ {
885
+ className: `${n.fileRow} ${K === e.path ? n.fileRowActive : ""}`,
886
+ style: { paddingLeft: 12 + e.depth * 16 },
887
+ onClick: () => !e.dir && vt(e.path),
888
+ children: [
889
+ /* @__PURE__ */ t("span", { className: n.fileRowIcon, children: e.dir ? "📁" : e.kind === "design" ? "🖼" : e.kind === "doc" ? "📄" : e.kind === "code" ? "{" : "◦" }),
890
+ /* @__PURE__ */ t("span", { className: n.fileRowName, children: e.name }),
891
+ e.kind === "design" && /* @__PURE__ */ t(k, { className: n.fileKindTag, color: "blue", children: "设计稿" })
892
+ ]
893
+ },
894
+ e.path
895
+ )) })
896
+ ] })
897
+ ] }),
898
+ /* @__PURE__ */ t("main", { className: n.center, children: K == null ? /* @__PURE__ */ r("div", { className: n.overviewArea, children: [
899
+ /* @__PURE__ */ r("div", { className: n.overviewHeader, children: [
900
+ /* @__PURE__ */ t("h2", { className: n.overviewTitle, children: "产品总览" }),
901
+ /* @__PURE__ */ t("p", { className: n.overviewSubtitle, children: "「关于这个产品的一切」沉淀在这里:需求 · 应用群 · 领域资产 · 设计稿 · 聊天蒸馏" })
902
+ ] }),
903
+ /* @__PURE__ */ r("div", { className: n.statsRow, children: [
904
+ /* @__PURE__ */ r("span", { className: n.statItem, children: [
905
+ /* @__PURE__ */ t("b", { children: ce.length }),
906
+ " 需求"
907
+ ] }),
908
+ /* @__PURE__ */ r("span", { className: n.statItem, children: [
909
+ /* @__PURE__ */ t("b", { children: ie.length }),
910
+ " 应用"
911
+ ] }),
912
+ /* @__PURE__ */ r("span", { className: n.statItem, children: [
913
+ /* @__PURE__ */ t("b", { children: se.length }),
914
+ " 术语"
915
+ ] }),
916
+ /* @__PURE__ */ r("span", { className: n.statItem, children: [
917
+ /* @__PURE__ */ t("b", { children: oe.length }),
918
+ " 概念"
919
+ ] }),
920
+ /* @__PURE__ */ r("span", { className: n.statItem, children: [
921
+ /* @__PURE__ */ t("b", { children: le.length }),
922
+ " 专家团"
923
+ ] }),
924
+ /* @__PURE__ */ r("span", { className: n.statItem, children: [
925
+ /* @__PURE__ */ t("b", { children: de.length }),
926
+ " 设计稿"
927
+ ] }),
928
+ /* @__PURE__ */ r("span", { className: n.statItem, children: [
929
+ /* @__PURE__ */ t("b", { children: pe.length }),
930
+ " 会话"
931
+ ] }),
932
+ /* @__PURE__ */ r("span", { className: n.statItem, children: [
933
+ /* @__PURE__ */ t("b", { children: Ae.filter((e) => !e.dir).length }),
934
+ " 文件"
935
+ ] })
936
+ ] }),
937
+ /* @__PURE__ */ r("div", { className: n.overviewTabs, children: [
938
+ /* @__PURE__ */ r(
939
+ "button",
940
+ {
941
+ type: "button",
942
+ className: `${n.overviewTab} ${R === "req" ? n.overviewTabActive : ""}`,
943
+ onClick: () => q("req"),
944
+ children: [
945
+ "需求(",
946
+ ce.length,
947
+ ")"
948
+ ]
949
+ }
950
+ ),
951
+ /* @__PURE__ */ r(
952
+ "button",
953
+ {
954
+ type: "button",
955
+ className: `${n.overviewTab} ${R === "apps" ? n.overviewTabActive : ""}`,
956
+ onClick: () => q("apps"),
957
+ children: [
958
+ "应用群(",
959
+ ie.length,
960
+ ")"
961
+ ]
962
+ }
963
+ ),
964
+ /* @__PURE__ */ r(
965
+ "button",
966
+ {
967
+ type: "button",
968
+ className: `${n.overviewTab} ${R === "domain" ? n.overviewTabActive : ""}`,
969
+ onClick: () => q("domain"),
970
+ children: [
971
+ "领域资产(",
972
+ se.length + oe.length + le.length,
973
+ ")"
974
+ ]
975
+ }
976
+ ),
977
+ /* @__PURE__ */ r(
978
+ "button",
979
+ {
980
+ type: "button",
981
+ className: `${n.overviewTab} ${R === "design" ? n.overviewTabActive : ""}`,
982
+ onClick: () => q("design"),
983
+ children: [
984
+ "设计稿(",
985
+ de.length,
986
+ ")"
987
+ ]
988
+ }
989
+ ),
990
+ /* @__PURE__ */ r(
991
+ "button",
992
+ {
993
+ type: "button",
994
+ className: `${n.overviewTab} ${R === "chat" ? n.overviewTabActive : ""}`,
995
+ onClick: () => q("chat"),
996
+ children: [
997
+ "聊天蒸馏(",
998
+ pe.length,
999
+ ")"
1000
+ ]
1001
+ }
1002
+ )
1003
+ ] }),
1004
+ R === "req" ? /* @__PURE__ */ r("div", { className: n.overviewPanel, children: [
1005
+ /* @__PURE__ */ r("div", { className: n.reqForm, children: [
1006
+ /* @__PURE__ */ t(
1007
+ H,
1008
+ {
1009
+ placeholder: "新增需求标题(针对本产品)",
1010
+ value: Q,
1011
+ onChange: (e) => Ge(e.target.value),
1012
+ onPressEnter: () => void Ue(),
1013
+ style: { flex: 1 }
1014
+ }
1015
+ ),
1016
+ /* @__PURE__ */ t(X, { type: "primary", onClick: () => void Ue(), disabled: !Q.trim(), children: "添加需求" })
1017
+ ] }),
1018
+ ce.length === 0 ? /* @__PURE__ */ t(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "还没有需求,先落一条" }) : /* @__PURE__ */ t("div", { className: n.reqList, children: ce.map((e) => /* @__PURE__ */ r("div", { className: n.reqRow, children: [
1019
+ /* @__PURE__ */ t("span", { className: n.reqTitle, title: e.title, children: e.title }),
1020
+ /* @__PURE__ */ t(k, { className: n.reqTag, color: e.priority === "P0" ? "red" : e.priority === "P1" ? "orange" : "blue", children: e.priority || "P2" }),
1021
+ /* @__PURE__ */ t(
1022
+ k,
1023
+ {
1024
+ className: n.reqStatusTag,
1025
+ onClick: () => void dt(e),
1026
+ title: "点击流转状态(OPEN → IN_PROGRESS → DONE → CLOSED)",
1027
+ children: e.status || "OPEN"
1028
+ }
1029
+ ),
1030
+ /* @__PURE__ */ t("span", { className: n.reqTime, children: String(e.createdAt ?? "").slice(0, 10) })
1031
+ ] }, e.id)) })
1032
+ ] }) : R === "apps" ? /* @__PURE__ */ r("div", { className: n.overviewPanel, children: [
1033
+ /* @__PURE__ */ r("div", { className: n.appForm, children: [
1034
+ /* @__PURE__ */ t(
1035
+ H,
1036
+ {
1037
+ placeholder: "应用编码(如 z-lc 应用 code)",
1038
+ value: A.appCode,
1039
+ onChange: (e) => me((i) => ({ ...i, appCode: e.target.value })),
1040
+ style: { flex: 1 }
1041
+ }
1042
+ ),
1043
+ /* @__PURE__ */ t(
1044
+ H,
1045
+ {
1046
+ placeholder: "应用名称",
1047
+ value: A.appName,
1048
+ onChange: (e) => me((i) => ({ ...i, appName: e.target.value })),
1049
+ style: { width: 150 }
1050
+ }
1051
+ ),
1052
+ /* @__PURE__ */ r(
1053
+ "select",
1054
+ {
1055
+ className: n.appTypeSelect,
1056
+ value: A.appType,
1057
+ onChange: (e) => me((i) => ({ ...i, appType: e.target.value })),
1058
+ children: [
1059
+ /* @__PURE__ */ t("option", { value: "APP", children: "应用" }),
1060
+ /* @__PURE__ */ t("option", { value: "INFRA", children: "基建" })
1061
+ ]
1062
+ }
1063
+ ),
1064
+ /* @__PURE__ */ t(
1065
+ X,
1066
+ {
1067
+ type: "primary",
1068
+ onClick: () => void pt(),
1069
+ disabled: !A.appCode.trim() || !A.appName.trim(),
1070
+ children: "绑定"
1071
+ }
1072
+ )
1073
+ ] }),
1074
+ ie.length === 0 ? /* @__PURE__ */ t(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "还没有应用群,绑定支撑这个产品的应用/基建" }) : /* @__PURE__ */ t("div", { className: n.appList, children: ie.map((e) => /* @__PURE__ */ r("div", { className: n.appRow, children: [
1075
+ /* @__PURE__ */ t("span", { className: n.appIcon, children: e.appType === "INFRA" ? "🏗" : "🧩" }),
1076
+ /* @__PURE__ */ t("span", { className: n.appName, title: e.appName, children: e.appName }),
1077
+ /* @__PURE__ */ t("span", { className: n.appCode, children: e.appCode }),
1078
+ /* @__PURE__ */ t(
1079
+ k,
1080
+ {
1081
+ className: n.appTag,
1082
+ color: e.appType === "INFRA" ? "purple" : "geekblue",
1083
+ children: e.appType === "INFRA" ? "基建" : "应用"
1084
+ }
1085
+ ),
1086
+ e.appType === "APP" ? /* @__PURE__ */ t(
1087
+ "button",
1088
+ {
1089
+ type: "button",
1090
+ className: n.appGo,
1091
+ onClick: () => {
1092
+ const i = new URLSearchParams();
1093
+ i.set("product", d || ""), l != null && l.name && i.set("productName", l.name), i.set("app", e.appCode), D.push(`/lc/apps?${i.toString()}`);
1094
+ },
1095
+ children: "去研发"
1096
+ }
1097
+ ) : /* @__PURE__ */ t("span", { className: n.appInfraNote, children: "横切多产品" }),
1098
+ /* @__PURE__ */ t(
1099
+ "button",
1100
+ {
1101
+ type: "button",
1102
+ className: n.appUnbind,
1103
+ onClick: () => void ut(e.id),
1104
+ title: "解绑",
1105
+ children: "✕"
1106
+ }
1107
+ )
1108
+ ] }, e.id)) })
1109
+ ] }) : R === "domain" ? /* @__PURE__ */ r("div", { className: n.overviewPanel, children: [
1110
+ /* @__PURE__ */ r("div", { className: n.domainBlock, children: [
1111
+ /* @__PURE__ */ t("div", { className: n.domainBlockTitle, children: "📖 统一语言 · 术语" }),
1112
+ se.length === 0 ? /* @__PURE__ */ t("div", { className: n.domainEmpty, children: "还没有术语,先在对话里对齐统一语言" }) : /* @__PURE__ */ t("div", { className: n.domainList, children: se.map((e, i) => /* @__PURE__ */ r("div", { className: n.domainRow, children: [
1113
+ /* @__PURE__ */ t("span", { className: n.domainName, children: String(e.term ?? e.term_code ?? "") }),
1114
+ /* @__PURE__ */ t("span", { className: n.domainDesc, children: String(e.definition ?? "") })
1115
+ ] }, String(e.id ?? i))) })
1116
+ ] }),
1117
+ /* @__PURE__ */ r("div", { className: n.domainBlock, children: [
1118
+ /* @__PURE__ */ t("div", { className: n.domainBlockTitle, children: "🧬 领域概念" }),
1119
+ oe.length === 0 ? /* @__PURE__ */ t("div", { className: n.domainEmpty, children: "还没有概念模型" }) : /* @__PURE__ */ t("div", { className: n.domainList, children: oe.map((e, i) => /* @__PURE__ */ r("div", { className: n.domainRow, children: [
1120
+ /* @__PURE__ */ t("span", { className: n.domainName, children: String(e.name ?? e.code ?? "") }),
1121
+ /* @__PURE__ */ t("span", { className: n.domainDesc, children: String(e.description ?? "") })
1122
+ ] }, String(e.id ?? i))) })
1123
+ ] }),
1124
+ /* @__PURE__ */ r("div", { className: n.domainBlock, children: [
1125
+ /* @__PURE__ */ t("div", { className: n.domainBlockTitle, children: "🎬 用户专家团" }),
1126
+ le.length === 0 ? /* @__PURE__ */ t("div", { className: n.domainEmpty, children: "还没有专家团,描述目标用户的典型操作链路" }) : /* @__PURE__ */ t("div", { className: n.domainList, children: le.map((e, i) => /* @__PURE__ */ r("div", { className: n.domainRow, children: [
1127
+ /* @__PURE__ */ t("span", { className: n.domainName, children: String(e.title ?? e.name ?? "") }),
1128
+ /* @__PURE__ */ t("span", { className: n.domainDesc, children: String(e.description ?? "") })
1129
+ ] }, String(e.id ?? i))) })
1130
+ ] })
1131
+ ] }) : R === "design" ? /* @__PURE__ */ r("div", { className: n.overviewPanel, children: [
1132
+ /* @__PURE__ */ t("div", { className: n.designHint, children: "设计稿在左侧文件树(标注「设计稿」标签);点选后在中间渲染区直渲 raw HTML" }),
1133
+ de.length === 0 ? /* @__PURE__ */ t(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "还没有设计稿记录" }) : /* @__PURE__ */ t("div", { className: n.designList, children: de.map((e, i) => /* @__PURE__ */ r("div", { className: n.designRow, children: [
1134
+ /* @__PURE__ */ t("span", { className: n.designIcon, children: "🖼" }),
1135
+ /* @__PURE__ */ t("span", { className: n.designName, children: String(e.title ?? e.name ?? "") }),
1136
+ /* @__PURE__ */ t("span", { className: n.designTime, children: String(e.updated_at ?? e.created_at ?? "").slice(0, 10) })
1137
+ ] }, String(e.id ?? i))) })
1138
+ ] }) : /* @__PURE__ */ r("div", { className: n.overviewPanel, children: [
1139
+ /* @__PURE__ */ r("div", { className: n.domainBlock, children: [
1140
+ /* @__PURE__ */ t("div", { className: n.domainBlockTitle, children: "💬 群聊会话" }),
1141
+ pe.length === 0 ? /* @__PURE__ */ t("div", { className: n.domainEmpty, children: "还没有群聊会话,右侧「发起聊天」开始" }) : /* @__PURE__ */ t("div", { className: n.domainList, children: pe.map((e, i) => /* @__PURE__ */ r("div", { className: n.domainRow, children: [
1142
+ /* @__PURE__ */ t("span", { className: n.domainName, children: String(e.title ?? e.session_code ?? "") }),
1143
+ /* @__PURE__ */ t("span", { className: n.domainDesc, children: String(e.updated_at ?? e.created_at ?? "").slice(0, 16).replace("T", " ") })
1144
+ ] }, String(e.id ?? i))) })
1145
+ ] }),
1146
+ /* @__PURE__ */ r("div", { className: n.domainBlock, children: [
1147
+ /* @__PURE__ */ t("div", { className: n.domainBlockTitle, children: "📌 蒸馏提案" }),
1148
+ Fe.length === 0 ? /* @__PURE__ */ t("div", { className: n.domainEmpty, children: "还没有提案(聊天中沉淀的需求/设计提案会出现在这里)" }) : /* @__PURE__ */ t("div", { className: n.domainList, children: Fe.map((e, i) => {
1149
+ let g = {};
1150
+ try {
1151
+ g = JSON.parse(String(e.payload ?? "{}"));
1152
+ } catch {
1153
+ }
1154
+ const S = String(e.proposal_type ?? "requirement");
1155
+ return /* @__PURE__ */ r("div", { className: n.domainRow, children: [
1156
+ /* @__PURE__ */ r("span", { className: n.domainName, children: [
1157
+ /* @__PURE__ */ t(k, { className: n.reqTag, color: S === "design" ? "geekblue" : "blue", children: S }),
1158
+ String(g.title ?? "")
1159
+ ] }),
1160
+ /* @__PURE__ */ t("span", { className: n.domainDesc, children: String(g.description ?? "") })
1161
+ ] }, String(e.id ?? i));
1162
+ }) })
1163
+ ] })
1164
+ ] })
1165
+ ] }) : V == null ? /* @__PURE__ */ t("div", { className: n.centerFill, children: /* @__PURE__ */ t(Y, {}) }) : /* @__PURE__ */ t("div", { className: n.renderArea, children: u === "design" ? (
1166
+ /* 设计稿:raw 通常为 HTML → iframe srcdoc 渲染 */
1167
+ /* @__PURE__ */ t(
1168
+ "iframe",
1169
+ {
1170
+ className: n.renderIframe,
1171
+ srcDoc: V,
1172
+ title: K,
1173
+ sandbox: "allow-scripts allow-same-origin"
1174
+ }
1175
+ )
1176
+ ) : /* @__PURE__ */ t("pre", { className: n.renderCode, children: V || "(空文件)" }) }) }),
1177
+ /* @__PURE__ */ t("aside", { className: n.right, children: Xe === "list" ? /* @__PURE__ */ r("div", { className: n.chatSide, children: [
1178
+ /* @__PURE__ */ r("div", { className: n.chatSideHeader, children: [
1179
+ /* @__PURE__ */ r("span", { className: n.chatSideTitle, children: [
1180
+ /* @__PURE__ */ t(Pt, {}),
1181
+ " 聊天组"
1182
+ ] }),
1183
+ /* @__PURE__ */ r(
1184
+ X,
1185
+ {
1186
+ size: "small",
1187
+ type: "primary",
1188
+ ghost: !0,
1189
+ loading: ae,
1190
+ onClick: _t,
1191
+ children: [
1192
+ /* @__PURE__ */ t(Rt, {}),
1193
+ " 发起聊天"
1194
+ ]
1195
+ }
1196
+ )
1197
+ ] }),
1198
+ /* @__PURE__ */ t("div", { className: n.chatGroupList, children: B.length === 0 ? /* @__PURE__ */ t(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "还没有聊天组,点「发起聊天」开始" }) : B.map((e) => /* @__PURE__ */ r(
1199
+ "div",
1200
+ {
1201
+ className: `${n.chatGroupRow} ${Ee === e.id ? n.chatGroupRowActive : ""}`,
1202
+ onClick: () => !ae && Re(e),
1203
+ children: [
1204
+ /* @__PURE__ */ t("span", { className: n.chatGroupName, title: e.name, children: e.name }),
1205
+ /* @__PURE__ */ t("span", { className: n.chatGroupTime, children: String(e.createTime ?? "").slice(5, 16).replace("T", " ") })
1206
+ ]
1207
+ },
1208
+ e.id
1209
+ )) })
1210
+ ] }) : /* @__PURE__ */ r("div", { className: n.chatPane, children: [
1211
+ /* @__PURE__ */ r("div", { className: n.chatPaneHeader, children: [
1212
+ /* @__PURE__ */ t(
1213
+ "button",
1214
+ {
1215
+ type: "button",
1216
+ className: n.backBtn,
1217
+ onClick: () => {
1218
+ re("list"), P.current !== void 0 && G.setState({ currentProject: P.current }), P.current = void 0;
1219
+ },
1220
+ title: "返回聊天组列表",
1221
+ children: "←"
1222
+ }
1223
+ ),
1224
+ /* @__PURE__ */ r("span", { className: n.chatPaneTitle, children: [
1225
+ "群聊 · ",
1226
+ (l == null ? void 0 : l.name) || d
1227
+ ] })
1228
+ ] }),
1229
+ /* @__PURE__ */ t("div", { className: n.chatPaneBody, children: /* @__PURE__ */ t(Gt, { hideTabs: !0 }) })
1230
+ ] }) })
1231
+ ] }) : O === "architecture" ? (
1232
+ /* ═══ 架构全景:架构语言的表达面 ═══ */
1233
+ /* @__PURE__ */ t(Un, {})
1234
+ ) : (
1235
+ /* ═══ 产品库视图:全宽产品卡片网格,点卡片直接进入 ═══ */
1236
+ /* @__PURE__ */ r("div", { className: n.libraryView, children: [
1237
+ /* @__PURE__ */ r("div", { className: n.libraryHeader, children: [
1238
+ /* @__PURE__ */ r("div", { className: n.libraryHeadRow, children: [
1239
+ /* @__PURE__ */ r("div", { children: [
1240
+ /* @__PURE__ */ t("h2", { className: n.libraryTitle, children: "产品库" }),
1241
+ /* @__PURE__ */ t("p", { className: n.librarySubtitle, children: "选择产品进入工作区:文件 · 设计稿 · 群聊 · 应用群" })
1242
+ ] }),
1243
+ /* @__PURE__ */ t(
1244
+ H,
1245
+ {
1246
+ prefix: /* @__PURE__ */ t(Ct, {}),
1247
+ placeholder: "搜索产品",
1248
+ value: m,
1249
+ onChange: (e) => ne(e.target.value),
1250
+ allowClear: !0,
1251
+ className: n.librarySearch
1252
+ }
1253
+ )
1254
+ ] }),
1255
+ /* @__PURE__ */ r("div", { className: n.groupChips, children: [
1256
+ /* @__PURE__ */ t(
1257
+ "button",
1258
+ {
1259
+ type: "button",
1260
+ className: `${n.groupChip} ${W === null ? n.groupChipActive : ""}`,
1261
+ onClick: () => Be(null),
1262
+ children: "全部"
1263
+ }
1264
+ ),
1265
+ ye.map((e) => /* @__PURE__ */ t(
1266
+ "button",
1267
+ {
1268
+ type: "button",
1269
+ className: `${n.groupChip} ${W === e.groupCode ? n.groupChipActive : ""}`,
1270
+ onClick: () => Be(e.groupCode),
1271
+ title: e.description || e.name,
1272
+ children: e.name
1273
+ },
1274
+ e.groupCode
1275
+ )),
1276
+ /* @__PURE__ */ t(
1277
+ "button",
1278
+ {
1279
+ type: "button",
1280
+ className: n.groupNewBtn,
1281
+ onClick: () => Pe(!0),
1282
+ title: "新建产品群",
1283
+ children: "+ 新建产品群"
1284
+ }
1285
+ )
1286
+ ] })
1287
+ ] }),
1288
+ /* @__PURE__ */ t("div", { className: n.libraryBody, children: N ? /* @__PURE__ */ t("div", { className: n.centerFill, children: /* @__PURE__ */ t(Y, {}) }) : xe.length === 0 ? /* @__PURE__ */ t(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "暂无产品" }) : /* @__PURE__ */ t("div", { className: n.productGrid, children: xe.map((e) => /* @__PURE__ */ r(
1289
+ "button",
1290
+ {
1291
+ type: "button",
1292
+ className: n.productCard,
1293
+ onClick: () => void be(e.productCode),
1294
+ children: [
1295
+ /* @__PURE__ */ t("span", { className: n.cardCode, children: e.productCode }),
1296
+ /* @__PURE__ */ t("span", { className: n.cardName, title: e.name, children: e.name }),
1297
+ /* @__PURE__ */ t("span", { className: n.cardDesc, children: e.description || "暂无产品描述" }),
1298
+ /* @__PURE__ */ r("span", { className: n.cardFoot, children: [
1299
+ /* @__PURE__ */ r("span", { className: n.cardEnter, children: [
1300
+ "进入产品 ",
1301
+ /* @__PURE__ */ t(St, {})
1302
+ ] }),
1303
+ ze(e.groupCode) && /* @__PURE__ */ t("span", { className: n.cardGroup, children: ze(e.groupCode) }),
1304
+ e.status && /* @__PURE__ */ t(k, { className: n.cardTag, children: e.status })
1305
+ ] })
1306
+ ]
1307
+ },
1308
+ e.productCode
1309
+ )) }) }),
1310
+ /* @__PURE__ */ t(
1311
+ kt,
1312
+ {
1313
+ title: "新建产品群",
1314
+ open: ht,
1315
+ onOk: () => void mt(),
1316
+ onCancel: () => Pe(!1),
1317
+ okText: "创建",
1318
+ cancelText: "取消",
1319
+ destroyOnClose: !0,
1320
+ children: /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: 12, paddingTop: 8 }, children: [
1321
+ /* @__PURE__ */ t(
1322
+ H,
1323
+ {
1324
+ placeholder: "群码(唯一标识,如 ppt-studio)",
1325
+ value: j.groupCode,
1326
+ onChange: (e) => Se((i) => ({ ...i, groupCode: e.target.value }))
1327
+ }
1328
+ ),
1329
+ /* @__PURE__ */ t(
1330
+ H,
1331
+ {
1332
+ placeholder: "群名(如 PPT 智造群)",
1333
+ value: j.name,
1334
+ onChange: (e) => Se((i) => ({ ...i, name: e.target.value }))
1335
+ }
1336
+ )
1337
+ ] })
1338
+ }
1339
+ )
1340
+ ] })
1341
+ )
1342
+ ] });
1343
+ }
1344
+ export {
1345
+ Vr as default
1346
+ };