@yuku123/z-team-component 0.2.101 → 0.2.103

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 (58) hide show
  1. package/package.json +1 -1
  2. package/dist/ChangeLogView-C5CT7IdD.js +0 -542
  3. package/dist/ComponentDoc-_6l967G1.js +0 -8035
  4. package/dist/InvitationManagementPage-aVNAFNfh.js +0 -495
  5. package/dist/OnboardingPage-eguTk0Fr.js +0 -393
  6. package/dist/ScheduledTasks-fQkpSLxv.js +0 -12127
  7. package/dist/SystemShell-CcjFqtAl.js +0 -688
  8. package/dist/_commonjsHelpers-B52_cu2H.js +0 -26
  9. package/dist/admin-logs-3ZODCEOd.js +0 -198
  10. package/dist/api-Cxg9p973.js +0 -20
  11. package/dist/browser-jb_PFvU3.js +0 -1538
  12. package/dist/createWorkspaceWsHandler-DGSUlhxe.js +0 -13142
  13. package/dist/ctc-sso-DtJHC-2M.js +0 -117
  14. package/dist/echarts-B1OU1xr4.js +0 -16
  15. package/dist/history-BlrA1eaW.js +0 -41
  16. package/dist/index-9pP8ZkkO.js +0 -913
  17. package/dist/index-BK7D0ag2.js +0 -142
  18. package/dist/index-BQvWAcy_.js +0 -814
  19. package/dist/index-BZCQSW-G.js +0 -1222
  20. package/dist/index-B_LJRFsK.js +0 -339
  21. package/dist/index-BdAkIs1M.js +0 -42049
  22. package/dist/index-Bn-5kryj.js +0 -2217
  23. package/dist/index-BohoJQPr.js +0 -7631
  24. package/dist/index-Bxeg6bYj.js +0 -315
  25. package/dist/index-C6Y3uiLo.js +0 -316
  26. package/dist/index-C815hPWS.js +0 -430
  27. package/dist/index-CJRhmIZt.js +0 -132
  28. package/dist/index-CRuyEQHz.js +0 -242
  29. package/dist/index-CUgTpa_y.js +0 -10132
  30. package/dist/index-Cl8xxWPn.js +0 -93
  31. package/dist/index-CuXeGlOh.js +0 -5892
  32. package/dist/index-Cxecr-Dh.js +0 -8
  33. package/dist/index-CyXYKCpO.js +0 -178
  34. package/dist/index-D1xldtWw.js +0 -479
  35. package/dist/index-DH85SI_i.js +0 -574
  36. package/dist/index-DJ52X07p.js +0 -1640
  37. package/dist/index-DLmDAaE2.js +0 -169
  38. package/dist/index-DTRobC4q.js +0 -956
  39. package/dist/index-DWsfQMp8.js +0 -208
  40. package/dist/index-DdeHvY0_.js +0 -112
  41. package/dist/index-DhDdFRHC.js +0 -279
  42. package/dist/index-DjokMbUK.js +0 -434
  43. package/dist/index-DyKLLFs9.js +0 -2699
  44. package/dist/index-J7unHx4K.js +0 -118
  45. package/dist/index-t0s2Lph_.js +0 -189
  46. package/dist/index.js +0 -10
  47. package/dist/index.module-CAa-2T7m.js +0 -72
  48. package/dist/index.module-UI0iz8K0.js +0 -42
  49. package/dist/instance-120oH-2S.js +0 -216
  50. package/dist/menuPermission-qZTza4Oq.js +0 -60
  51. package/dist/mobile-client-O3yr9h6t.js +0 -24
  52. package/dist/pages.js +0 -21
  53. package/dist/send-default-agent-team-message-DrfWKH9j.js +0 -35
  54. package/dist/spark-md5-Dld54a-T.js +0 -178
  55. package/dist/sso-user-DXwW5eLV.js +0 -43
  56. package/dist/training-D3P1cMiu.js +0 -450
  57. package/dist/webide-D_OZQdjo.js +0 -5233
  58. package/dist/z-team-component.css +0 -1
@@ -1,430 +0,0 @@
1
- import { jsxs as m, jsx as d } from "react/jsx-runtime";
2
- import { message as T } from "antd";
3
- import { useState as b, useRef as D, useCallback as K, useEffect as J } from "react";
4
- /* empty css */
5
- const X = "/z-team", Y = typeof window < "u" && window.ZTEAM_USE_KAPI === !0, Z = Y, G = window.ENV_TYPE || window.envType || "", x = `${Z ? "/kapi" : ""}${X}/api/chatdemo`, Q = G || "local", $ = {
6
- Accept: "application/json",
7
- "project-env": Q
8
- };
9
- async function U(e, a) {
10
- const s = await e.text().catch(() => "");
11
- let i = {};
12
- if (s)
13
- try {
14
- i = JSON.parse(s);
15
- } catch {
16
- if (!e.ok) throw new Error(a);
17
- return s;
18
- }
19
- if (typeof i.success == "boolean") {
20
- if (i.success)
21
- return i.data !== void 0 ? i.data : !0;
22
- throw new Error(i.message || a);
23
- }
24
- if (!e.ok) throw new Error(a);
25
- return i;
26
- }
27
- async function tt(e) {
28
- const a = e != null && e.trim() ? `?model=${encodeURIComponent(e.trim())}` : "", s = await fetch(`${x}/sessions${a}`, {
29
- method: "POST",
30
- credentials: "include",
31
- headers: $
32
- });
33
- return U(s, "创建会话失败");
34
- }
35
- async function et(e) {
36
- const a = await fetch(`${x}/sessions/${encodeURIComponent(e)}`, {
37
- credentials: "include",
38
- headers: $
39
- });
40
- return U(a, "加载会话失败");
41
- }
42
- async function nt(e, a, s) {
43
- const i = await fetch(
44
- `${x}/sessions/${encodeURIComponent(e)}/chat`,
45
- {
46
- method: "POST",
47
- credentials: "include",
48
- headers: { Accept: "application/json", ...$, "Content-Type": "application/json" },
49
- body: JSON.stringify({
50
- message: a,
51
- ...s != null && s.trim() ? { model: s.trim() } : {}
52
- })
53
- }
54
- );
55
- return U(i, "发送失败");
56
- }
57
- function st(e, a) {
58
- const s = e.split(`
59
-
60
- `), i = s.pop() ?? "";
61
- for (const g of s) {
62
- let u = "";
63
- for (const _ of g.split(`
64
- `))
65
- _.startsWith("data:") && (u += _.slice(5).trim());
66
- if (!(!u || u === "[DONE]"))
67
- try {
68
- a(JSON.parse(u));
69
- } catch {
70
- a({ type: "token", data: u });
71
- }
72
- }
73
- return i;
74
- }
75
- async function ot(e, a, s, i) {
76
- var N, p;
77
- const g = await fetch(
78
- `${x}/sessions/${encodeURIComponent(e)}/chat/stream`,
79
- {
80
- method: "POST",
81
- credentials: "include",
82
- headers: {
83
- ...$,
84
- "Content-Type": "application/json",
85
- Accept: "text/event-stream"
86
- },
87
- body: JSON.stringify({
88
- message: a,
89
- ...i != null && i.trim() ? { model: i.trim() } : {}
90
- }),
91
- signal: s.signal
92
- }
93
- );
94
- if (!g.ok || !g.body)
95
- throw new Error(`流式请求失败 HTTP ${g.status}`);
96
- const u = g.body.getReader(), _ = new TextDecoder();
97
- let h = "";
98
- try {
99
- for (; ; ) {
100
- const { done: f, value: w } = await u.read();
101
- if (f) break;
102
- h += _.decode(w, { stream: !0 }), h = st(h, s.onEvent);
103
- }
104
- } catch (f) {
105
- if ((N = s.signal) != null && N.aborted) return;
106
- throw (p = s.onError) == null || p.call(s, f instanceof Error ? f : new Error(String(f))), f;
107
- }
108
- }
109
- const at = "_page_1u2ag_1", rt = "_header_1u2ag_9", ct = "_title_1u2ag_16", it = "_sub_1u2ag_22", lt = "_toolbar_1u2ag_29", ut = "_modelInput_1u2ag_37", dt = "_btn_1u2ag_47", gt = "_btnSecondary_1u2ag_57", pt = "_status_1u2ag_72", mt = "_panel_1u2ag_79", ft = "_messages_1u2ag_91", _t = "_empty_1u2ag_100", ht = "_msgOwn_1u2ag_107", yt = "_msgOwnBubble_1u2ag_112", bt = "_msgAgent_1u2ag_123", wt = "_avatar_1u2ag_129", vt = "_msgAgentBody_1u2ag_141", St = "_msgMeta_1u2ag_145", Nt = "_reasoning_1u2ag_151", At = "_msgAgentBubble_1u2ag_162", kt = "_toolHint_1u2ag_184", Et = "_inputArea_1u2ag_190", Ct = "_textarea_1u2ag_197", Tt = "_inputActions_1u2ag_215", xt = "_tokenUsage_1u2ag_222", o = {
110
- page: at,
111
- header: rt,
112
- title: ct,
113
- sub: it,
114
- toolbar: lt,
115
- modelInput: ut,
116
- btn: dt,
117
- btnSecondary: gt,
118
- status: pt,
119
- panel: mt,
120
- messages: ft,
121
- empty: _t,
122
- msgOwn: ht,
123
- msgOwnBubble: yt,
124
- msgAgent: bt,
125
- avatar: wt,
126
- msgAgentBody: vt,
127
- msgMeta: St,
128
- reasoning: Nt,
129
- msgAgentBubble: At,
130
- toolHint: kt,
131
- inputArea: Et,
132
- textarea: Ct,
133
- inputActions: Tt,
134
- tokenUsage: xt
135
- };
136
- function $t(e, a, s) {
137
- if (!s)
138
- return { parts: e, lastKind: a };
139
- if (a === "tool")
140
- return {
141
- parts: [...e, { kind: "tool", hint: s }],
142
- lastKind: "tool"
143
- };
144
- const i = a === "thought" ? "reasoning" : "text", g = e[e.length - 1];
145
- if (g && g.kind === i) {
146
- const u = e.slice(0, -1);
147
- return u.push({
148
- kind: i,
149
- content: g.content + s
150
- }), { parts: u, lastKind: a };
151
- }
152
- return {
153
- parts: [...e, { kind: i, content: s }],
154
- lastKind: a
155
- };
156
- }
157
- function L(e) {
158
- const a = (e == null ? void 0 : e.trim()) ?? "";
159
- return a ? [{ kind: "text", content: a }] : [];
160
- }
161
- const Ot = "deepseek-v4-flash";
162
- function S() {
163
- return `${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
164
- }
165
- function Bt(e, a) {
166
- return { id: e, role: "assistant", parts: [], streaming: a };
167
- }
168
- function Mt() {
169
- const [e, a] = b(""), [s, i] = b(Ot), [g, u] = b([]), [_, h] = b(""), [N, p] = b(""), [f, w] = b(!1), [A, j] = b(!1), k = D(null), I = D(null), E = D(
170
- /* @__PURE__ */ new Map()
171
- ), M = K(() => {
172
- var t;
173
- (t = I.current) == null || t.scrollIntoView({ behavior: "smooth" });
174
- }, []);
175
- J(() => {
176
- M();
177
- }, [g, M]);
178
- const P = (t) => {
179
- u(
180
- t.map(
181
- (n) => n.role === "user" ? { id: S(), role: "user", content: n.content || "" } : {
182
- id: S(),
183
- role: "assistant",
184
- parts: L(n.content || "")
185
- }
186
- )
187
- );
188
- }, R = K(async () => {
189
- w(!0), p("创建会话…");
190
- try {
191
- const t = await tt(s);
192
- a(t.sessionId), P(t.messages || []), p("");
193
- } catch (t) {
194
- const n = t instanceof Error ? t.message : "创建失败";
195
- p(n), T.error(n);
196
- } finally {
197
- w(!1);
198
- }
199
- }, [s]);
200
- J(() => {
201
- R();
202
- }, []);
203
- const V = async () => {
204
- if (e) {
205
- p("刷新中…");
206
- try {
207
- const t = await et(e);
208
- P(t.messages || []), p("");
209
- } catch (t) {
210
- T.error(t instanceof Error ? t.message : "刷新失败");
211
- }
212
- }
213
- }, F = () => {
214
- const t = S();
215
- return E.current.set(t, null), u((n) => [...n, Bt(t, !0)]), t;
216
- }, O = (t, n) => {
217
- u(
218
- (l) => l.map(
219
- (r) => r.id === t && r.role === "assistant" ? { ...r, ...n } : r
220
- )
221
- );
222
- }, v = (t, n, l) => {
223
- u(
224
- (r) => r.map((c) => {
225
- if (c.id !== t || c.role !== "assistant")
226
- return c;
227
- const { parts: y, lastKind: B } = $t(
228
- c.parts,
229
- n,
230
- l
231
- );
232
- return E.current.set(t, B), { ...c, parts: y };
233
- })
234
- );
235
- }, W = (t, n) => {
236
- const l = n.type, r = n.data;
237
- if (l === "token" && typeof r == "string")
238
- v(t, "token", r);
239
- else if (l === "thought" && typeof r == "string")
240
- v(t, "thought", r);
241
- else if (l === "tool_call" && r && typeof r == "object") {
242
- const c = String(r.tool ?? "tool");
243
- v(t, "tool", `🔧 ${c} …`);
244
- } else if (l === "tool_result" && r && typeof r == "object") {
245
- const c = r, y = String(c.tool ?? ""), B = String(c.result ?? "").slice(0, 120), z = !!c.error;
246
- v(
247
- t,
248
- "tool",
249
- `${z ? "✗" : "✓"} ${y}: ${B}`
250
- );
251
- } else if (l === "error")
252
- v(t, "token", `
253
- [错误] ${typeof r == "string" ? r : "error"}`);
254
- else if (l === "done") {
255
- E.current.delete(t);
256
- const c = r && typeof r == "object" ? r.tokenUsage : void 0;
257
- O(t, {
258
- streaming: !1,
259
- ...c && typeof c == "object" ? { tokenUsage: c } : {}
260
- });
261
- }
262
- }, H = async () => {
263
- var l, r;
264
- const t = _.trim();
265
- if (!t || !e || A) return;
266
- h(""), u((c) => [
267
- ...c,
268
- { id: S(), role: "user", content: t }
269
- ]);
270
- const n = F();
271
- j(!0), p("生成中…"), (l = k.current) == null || l.abort(), k.current = new AbortController();
272
- try {
273
- await ot(
274
- e,
275
- t,
276
- {
277
- signal: k.current.signal,
278
- onEvent: (c) => W(n, c)
279
- },
280
- s
281
- ), O(n, { streaming: !1 }), E.current.delete(n), p("");
282
- } catch (c) {
283
- if (!((r = k.current) != null && r.signal.aborted)) {
284
- const y = c instanceof Error ? c.message : "流式失败";
285
- T.error(y), v(n, "token", `[失败] ${y}`), O(n, { streaming: !1 }), p(y);
286
- }
287
- } finally {
288
- j(!1);
289
- }
290
- }, q = async () => {
291
- const t = _.trim();
292
- if (!(!t || !e || A)) {
293
- h(""), u((n) => [
294
- ...n,
295
- { id: S(), role: "user", content: t }
296
- ]), w(!0), p("同步请求中…");
297
- try {
298
- const n = await nt(e, t, s);
299
- u((l) => [
300
- ...l,
301
- {
302
- id: S(),
303
- role: "assistant",
304
- parts: L(n.reply || "")
305
- }
306
- ]), p("");
307
- } catch (n) {
308
- T.error(n instanceof Error ? n.message : "发送失败");
309
- } finally {
310
- w(!1);
311
- }
312
- }
313
- }, C = !e || f || A;
314
- return /* @__PURE__ */ m("div", { className: o.page, children: [
315
- /* @__PURE__ */ m("div", { className: o.header, children: [
316
- /* @__PURE__ */ d("div", { className: o.title, children: "AINative Chat Demo" }),
317
- /* @__PURE__ */ d("div", { className: o.sub, children: e ? `Session: ${e} · SSE(非 WebSocket)` : "正在初始化…" }),
318
- /* @__PURE__ */ m("div", { className: o.toolbar, children: [
319
- /* @__PURE__ */ d(
320
- "input",
321
- {
322
- className: o.modelInput,
323
- placeholder: "model / llmCode(可选)",
324
- value: s,
325
- onChange: (t) => i(t.target.value)
326
- }
327
- ),
328
- /* @__PURE__ */ d(
329
- "button",
330
- {
331
- type: "button",
332
- className: o.btnSecondary,
333
- onClick: R,
334
- disabled: f || A,
335
- children: "新会话"
336
- }
337
- ),
338
- /* @__PURE__ */ d(
339
- "button",
340
- {
341
- type: "button",
342
- className: o.btnSecondary,
343
- onClick: V,
344
- disabled: C,
345
- children: "刷新历史"
346
- }
347
- )
348
- ] })
349
- ] }),
350
- N ? /* @__PURE__ */ d("div", { className: o.status, children: N }) : null,
351
- /* @__PURE__ */ m("div", { className: o.panel, children: [
352
- /* @__PURE__ */ m("div", { className: o.messages, children: [
353
- g.length === 0 ? /* @__PURE__ */ d("div", { className: o.empty, children: "发送消息开始对话" }) : null,
354
- g.map(
355
- (t) => t.role === "user" ? /* @__PURE__ */ d("div", { className: o.msgOwn, children: /* @__PURE__ */ d("div", { className: o.msgOwnBubble, children: t.content }) }, t.id) : t.role === "assistant" ? /* @__PURE__ */ m("div", { className: o.msgAgent, children: [
356
- /* @__PURE__ */ d("div", { className: o.avatar, children: "🤖" }),
357
- /* @__PURE__ */ m("div", { className: o.msgAgentBody, children: [
358
- /* @__PURE__ */ m("div", { className: o.msgMeta, children: [
359
- "Assistant",
360
- t.streaming ? " · 生成中" : ""
361
- ] }),
362
- t.parts.length === 0 && t.streaming ? /* @__PURE__ */ d("div", { className: o.msgAgentBubble, children: "…" }) : null,
363
- t.parts.map((n, l) => {
364
- const c = l === t.parts.length - 1 && t.streaming ? "…" : "";
365
- return n.kind === "reasoning" ? /* @__PURE__ */ m("div", { className: o.reasoning, children: [
366
- n.content,
367
- c
368
- ] }, l) : n.kind === "text" ? /* @__PURE__ */ m("div", { className: o.msgAgentBubble, children: [
369
- n.content,
370
- c
371
- ] }, l) : /* @__PURE__ */ d("div", { className: o.toolHint, children: n.hint }, l);
372
- }),
373
- t.tokenUsage && !t.streaming ? /* @__PURE__ */ m("div", { className: o.tokenUsage, children: [
374
- "Token in ",
375
- t.tokenUsage.inputTokenCount ?? 0,
376
- " / out",
377
- " ",
378
- t.tokenUsage.outputTokenCount ?? 0,
379
- " / total",
380
- " ",
381
- t.tokenUsage.totalTokenCount ?? 0
382
- ] }) : null
383
- ] })
384
- ] }, t.id) : null
385
- ),
386
- /* @__PURE__ */ d("div", { ref: I })
387
- ] }),
388
- /* @__PURE__ */ m("div", { className: o.inputArea, children: [
389
- /* @__PURE__ */ d(
390
- "textarea",
391
- {
392
- className: o.textarea,
393
- placeholder: "输入消息,Enter 发送(Shift+Enter 换行)",
394
- value: _,
395
- disabled: C,
396
- onChange: (t) => h(t.target.value),
397
- onKeyDown: (t) => {
398
- t.key === "Enter" && !t.shiftKey && (t.preventDefault(), H());
399
- }
400
- }
401
- ),
402
- /* @__PURE__ */ m("div", { className: o.inputActions, children: [
403
- /* @__PURE__ */ d(
404
- "button",
405
- {
406
- type: "button",
407
- className: o.btnSecondary,
408
- disabled: C,
409
- onClick: q,
410
- children: "同步"
411
- }
412
- ),
413
- /* @__PURE__ */ d(
414
- "button",
415
- {
416
- type: "button",
417
- className: o.btn,
418
- disabled: C,
419
- onClick: H,
420
- children: "发送(SSE)"
421
- }
422
- )
423
- ] })
424
- ] })
425
- ] })
426
- ] });
427
- }
428
- export {
429
- Mt as default
430
- };
@@ -1,132 +0,0 @@
1
- import { jsx as s, jsxs as C } from "react/jsx-runtime";
2
- import { f as z, r as v } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as L, h as N, s as T } from "./sso-user-DXwW5eLV.js";
4
- import { CheckCircleFilled as q } from "@ant-design/icons";
5
- import { Spin as R } from "antd";
6
- import W from "query-string";
7
- import { useMemo as P, useState as p, useCallback as A, useEffect as U } from "react";
8
- import { useLocation as F } from "react-router-dom";
9
- import { h as H } from "./history-BlrA1eaW.js";
10
- import { d as m, e as Y, j as B } from "./ComponentDoc-_6l967G1.js";
11
- /* empty css */
12
- import { b as G } from "./mobile-client-O3yr9h6t.js";
13
- function oe() {
14
- const i = F(), g = W.parse(i.search), S = P(
15
- () => String(g.name ?? "WebIDE 在线咨询").trim(),
16
- [i.search]
17
- ), _ = P(
18
- () => String(g.source ?? "z-team-webide").trim(),
19
- [i.search]
20
- ), [b, E] = p(!1), [I, y] = p("正在登录…"), [w, M] = p([]), [j, x] = p(""), { currentUser: d, updateCurrentUser: u, expandProject: $ } = m(), f = A((e, o) => {
21
- M((a) => [...a, e]), y(o);
22
- }, []);
23
- return U(() => {
24
- let e = !1, o = 0;
25
- const a = 100;
26
- let r = !1, n = 0;
27
- const h = 3;
28
- return (() => {
29
- if (e) return;
30
- const l = async () => {
31
- if (e) return;
32
- let t = L();
33
- if ((!t || !N(t)) && !r) {
34
- r = !0;
35
- try {
36
- const c = await z();
37
- c.kind === "authenticated" ? t = c.user : c.kind === "unauthenticated" && (n += 1);
38
- } catch {
39
- } finally {
40
- r = !1;
41
- }
42
- }
43
- if (t && N(t)) {
44
- u(T(t));
45
- const c = m.getState().token;
46
- B().then((D) => {
47
- e || u(D);
48
- }).catch(() => {
49
- !e && c && (localStorage.removeItem("z_team_token"), m.setState({ token: "" }));
50
- }).finally(() => {
51
- e || E(!0);
52
- });
53
- return;
54
- }
55
- if (n >= h) {
56
- v();
57
- return;
58
- }
59
- if (o += 1, o >= a) {
60
- v();
61
- return;
62
- }
63
- window.setTimeout(() => void l(), 150);
64
- };
65
- l();
66
- })(), () => {
67
- e = !0;
68
- };
69
- }, [u]), U(() => {
70
- if (!b || !d) return;
71
- let e = !1;
72
- return (async () => {
73
- try {
74
- const a = m.getState(), r = /* @__PURE__ */ new Date(), n = (c) => String(c).padStart(2, "0"), h = `${r.getFullYear()}-${n(r.getMonth() + 1)}-${n(
75
- r.getDate()
76
- )} ${n(r.getHours())}:${n(r.getMinutes())}`, k = `${S} - ${d.display_name || d.username} - ${h}`;
77
- y("正在创建咨询群组…");
78
- const l = await Y(
79
- {
80
- name: k,
81
- description: `${_} 发起的在线咨询`,
82
- workspace_path: `webide_consult_${Date.now()}`,
83
- scenario_code: "z_team_webide_console_scenario"
84
- },
85
- a.token
86
- );
87
- if (e || (f("群组已创建", "正在初始化工作区…"), await $(l), e)) return;
88
- const t = m.getState();
89
- if (t.currentProject && await t.refreshProjectPanels(
90
- t.currentProject.id,
91
- t.projectSwitchSeq,
92
- !1
93
- ), e) return;
94
- f("工作区已就绪", "即将进入工作台…"), H.replace(
95
- G({
96
- projectId: l.id,
97
- search: i.search
98
- })
99
- );
100
- } catch (a) {
101
- e || x(a instanceof Error ? a.message : "创建群组失败");
102
- }
103
- })(), () => {
104
- e = !0;
105
- };
106
- }, [
107
- b,
108
- d,
109
- S,
110
- _,
111
- $,
112
- f,
113
- i.search
114
- ]), j ? /* @__PURE__ */ s("div", { className: "embed-chat-page embed-chat-page--error", children: /* @__PURE__ */ s("p", { children: j }) }) : /* @__PURE__ */ s("div", { className: "embed-chat-page embed-chat-page--loading", children: /* @__PURE__ */ C("div", { className: "embed-chat-page__panel", children: [
115
- /* @__PURE__ */ s(R, { size: "large" }),
116
- /* @__PURE__ */ s("p", { className: "embed-chat-page__step", children: I }),
117
- w.length > 0 ? /* @__PURE__ */ s("ul", { className: "embed-chat-page__done-list", children: w.filter((e) => e.trim().length > 0).map((e, o) => /* @__PURE__ */ C(
118
- "li",
119
- {
120
- className: "embed-chat-page__done-item",
121
- children: [
122
- /* @__PURE__ */ s(q, { className: "embed-chat-page__done-icon" }),
123
- /* @__PURE__ */ s("span", { children: e })
124
- ]
125
- },
126
- `${o}-${e}`
127
- )) }) : null
128
- ] }) });
129
- }
130
- export {
131
- oe as default
132
- };