@yuku123/z-team-component 0.2.39 → 0.2.41
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.
- package/dist/{ComponentDoc-DZqGPFBm.js → ComponentDoc-BztX6VlY.js} +39 -39
- package/dist/{InvitationManagementPage-BXjItYGY.js → InvitationManagementPage-Bs9EVx4Z.js} +1 -1
- package/dist/{OnboardingPage-BECBj2le.js → OnboardingPage-b3GCxnH7.js} +2 -2
- package/dist/{SystemShell-DT4XTcVf.js → SystemShell-j8IxtHjS.js} +1 -1
- package/dist/{api-DdtPixqz.js → api-CBB4Fa8N.js} +1 -1
- package/dist/{index-Crs174MW.js → index-BapG4vu3.js} +1 -1
- package/dist/{index-plw5wx6y.js → index-ClJQ9FRS.js} +1218 -1203
- package/dist/{index-BIPAVfbP.js → index-ClibxgPN.js} +1054 -1056
- package/dist/index-Cx9Yfc6I.js +1514 -0
- package/dist/{index-B-1fesc_.js → index-D-wT2z-O.js} +2 -2
- package/dist/{index-UxjTZ5Ta.js → index-D-xqQriS.js} +1994 -2023
- package/dist/{index-BAY37t4f.js → index-D4tQ0KN9.js} +1 -1
- package/dist/{index-CR3sbzOU.js → index-DyJp2kSb.js} +3 -3
- package/dist/{index-DUAA6gCd.js → index-t109_mPP.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/pages.js +1 -1
- package/dist/{schedule-C-4ksDPw.js → schedule-Dstx5SE_.js} +34 -34
- package/dist/{webide-RsFP9pHM.js → webide-CTvdgMFE.js} +1837 -1840
- package/package.json +1 -1
- package/dist/index-a4cM-7bG.js +0 -1433
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as Ie } from "react/jsx-runtime";
|
|
2
|
-
import { f as Zs, u as el, a as tl, b as nl, s as al, S as Qa, T as Xa, P as Za, c as es } from "./webide-
|
|
3
|
-
import { RightOutlined as ts, PlusOutlined as cn, LeftOutlined as sl, CheckOutlined as ea, LoadingOutlined as ra, EditOutlined as Cn, DeleteOutlined as fn, UpOutlined as ca, RedoOutlined as ns, DownOutlined as ll, StopOutlined as as, CopyOutlined as ol, ArrowLeftOutlined as tn, BellOutlined as il, CloseOutlined as da, SaveOutlined as rl, ProfileOutlined as cl, MessageOutlined as ta, SettingOutlined as ss, FolderOpenOutlined as on, ThunderboltOutlined as na, ClockCircleOutlined as
|
|
2
|
+
import { f as Zs, u as el, a as tl, b as nl, s as al, S as Qa, T as Xa, P as Za, c as es } from "./webide-CTvdgMFE.js";
|
|
3
|
+
import { RightOutlined as ts, PlusOutlined as cn, LeftOutlined as sl, CheckOutlined as ea, LoadingOutlined as ra, EditOutlined as Cn, DeleteOutlined as fn, UpOutlined as ca, RedoOutlined as ns, DownOutlined as ll, StopOutlined as as, CopyOutlined as ol, ArrowLeftOutlined as tn, BellOutlined as il, CloseOutlined as da, SaveOutlined as rl, ProfileOutlined as cl, MessageOutlined as ta, SettingOutlined as ss, FolderOpenOutlined as on, ThunderboltOutlined as na, ClockCircleOutlined as Un, FolderOutlined as dl, FileTextOutlined as An, CommentOutlined as ul, SyncOutlined as ml, CheckCircleOutlined as Jt, PercentageOutlined as hl, FilePptOutlined as pl, ScheduleOutlined as _l, FileImageOutlined as gl, MinusOutlined as fl, ArrowUpOutlined as yl, ArrowDownOutlined as vl, CodeOutlined as ls, Html5Outlined as ua, OrderedListOutlined as ma, LockOutlined as wn, LinkOutlined as Sn, SnippetsOutlined as os, SafetyCertificateOutlined as ha, KeyOutlined as bl, DiffOutlined as Nl, FontSizeOutlined as kl, ScissorOutlined as Cl, ReloadOutlined as yn, CalendarOutlined as pa, BgColorsOutlined as wl, QrcodeOutlined as Sl, ApiOutlined as Tl, SendOutlined as Il, MoreOutlined as xl, FileSearchOutlined as is, PlayCircleOutlined as Gt, FileDoneOutlined as Wn, CloseCircleOutlined as Al, GiftOutlined as rs, CheckCircleFilled as Bl, GoldOutlined as cs, EyeOutlined as Ll, CrownOutlined as Ml, DesktopOutlined as $l, DashboardOutlined as aa, MenuUnfoldOutlined as Rl, MenuFoldOutlined as Dl, TeamOutlined as El, BarChartOutlined as ds, PieChartOutlined as us, UnorderedListOutlined as ms, ReadOutlined as hs, ConsoleSqlOutlined as ps } from "@ant-design/icons";
|
|
4
4
|
import { createElement as Pl, useState as o, useRef as Ae, useMemo as Le, useEffect as oe, useCallback as F, Fragment as Ol } from "react";
|
|
5
5
|
import { createPortal as Hl } from "react-dom";
|
|
6
|
-
import { a as Yt, f as Qt, B as Xt, u as Zt, au as jl, av as
|
|
7
|
-
import {
|
|
6
|
+
import { a as Yt, f as Qt, B as Xt, u as Zt, au as jl, av as qn, k as yt, aw as Fl, t as _s, ax as Gl, ay as zl, az as Ul, K as Wl, aA as gs, aB as ql, aC as Kl, q as Vl, aD as Jl, am as Yl, T as Ql, ao as fs, aE as Xl, aF as ys, aG as Zl, aH as eo, aI as to, aJ as no, aK as vs, aL as ao } from "./api-C78tCfne.js";
|
|
7
|
+
import { n as bs, o as $n, p as so, q as lo, s as oo, v as io, x as ro, y as Ns, z as _a, A as ks, B as co, C as Cs, D as Kn, E as uo, F as mo, G as ho } from "./index-D-xqQriS.js";
|
|
8
8
|
import { u as Ye, s as mn } from "./useAppStore-ibJyVIAX.js";
|
|
9
9
|
import { s as po } from "./admin-logs-D6HtRcK6.js";
|
|
10
|
-
import { b as _o, f as go, s as fo, c as yo, d as vo, u as bo, e as No, t as ko, r as Co, m as wo, a as So
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
10
|
+
import { h as Tn, b as _o, f as go, s as fo, c as yo, d as vo, u as bo, e as No, t as ko, r as Co, m as wo, a as So } from "./schedule-Dstx5SE_.js";
|
|
11
|
+
import Bn from "react-markdown";
|
|
12
|
+
import ws from "rehype-highlight";
|
|
13
|
+
import Ln from "remark-gfm";
|
|
14
14
|
import { T as To, z as Io, A as xo, D as Ao } from "./createWorkspaceWsHandler-mq-UTF2O.js";
|
|
15
15
|
import { message as we, Spin as Dt, Input as He, Switch as hn, Select as qt, InputNumber as Bo, Tabs as Lo, Card as Mo, Tag as ge, Table as $o, DatePicker as Ro, Segmented as Do, Empty as vt, Modal as jt, Button as se, Space as et, Typography as Eo, Radio as Ft, Row as Mt, Col as nt, List as ga, Statistic as Po, Tooltip as rn, Form as pn, Progress as dn } from "antd";
|
|
16
16
|
import ln from "dayjs";
|
|
17
|
-
import * as
|
|
17
|
+
import * as In from "echarts/core";
|
|
18
18
|
import { BarChart as Oo, LineChart as Ho, PieChart as jo } from "echarts/charts";
|
|
19
19
|
import { GridComponent as Fo, LegendComponent as Go, TitleComponent as zo, TooltipComponent as Uo } from "echarts/components";
|
|
20
20
|
import { CanvasRenderer as Wo } from "echarts/renderers";
|
|
@@ -22,7 +22,7 @@ import { c as qo } from "./instance-D5dhjbgg.js";
|
|
|
22
22
|
import { diffLines as Ko } from "diff";
|
|
23
23
|
import Vo, { DiffMethod as Jo } from "react-diff-viewer-continued";
|
|
24
24
|
import { format as Yo } from "sql-formatter";
|
|
25
|
-
import { V as
|
|
25
|
+
import { V as Ss, W as Qo, k as Xo, h as Zo, X as Ts, Y as ei, Z as ti, _ as fa, $ as ni, a0 as ai, a1 as Is, a2 as si, a3 as li, a4 as oi, a5 as ii, a6 as ri, a7 as ci } from "./training-Ba09KItE.js";
|
|
26
26
|
async function di(t = {}, s = "") {
|
|
27
27
|
const a = new URLSearchParams();
|
|
28
28
|
t.keyword && a.set("keyword", t.keyword), t.category && a.set("category", t.category), t.status !== void 0 && a.set("status", String(t.status)), s && a.set("token", s);
|
|
@@ -41,6 +41,21 @@ async function ui(t, s = "") {
|
|
|
41
41
|
);
|
|
42
42
|
return Zt(l, "获取 FT skill 详情失败");
|
|
43
43
|
}
|
|
44
|
+
const mi = {
|
|
45
|
+
personal: "PERSONAL_ENTRY",
|
|
46
|
+
collaboration: "COLLABORATION_ENTRY",
|
|
47
|
+
training: "TRAINING",
|
|
48
|
+
knowledge: "BIZ_KNOWLEDGE",
|
|
49
|
+
admin: "ADMIN_ENTRY",
|
|
50
|
+
dev: "DEV_ENTRY",
|
|
51
|
+
test: "TEST_ENTRY"
|
|
52
|
+
}, hi = ["personal", "collaboration"];
|
|
53
|
+
function xs(t, s) {
|
|
54
|
+
if (!t)
|
|
55
|
+
return hi.includes(s);
|
|
56
|
+
const a = mi[s];
|
|
57
|
+
return a ? Tn(t, a) : !0;
|
|
58
|
+
}
|
|
44
59
|
function Pe(t) {
|
|
45
60
|
function s({ className: a, spin: l, style: i, ...c }) {
|
|
46
61
|
return /* @__PURE__ */ e(
|
|
@@ -80,7 +95,7 @@ const ya = Pe([
|
|
|
80
95
|
key: "k3hazp"
|
|
81
96
|
}
|
|
82
97
|
]
|
|
83
|
-
]),
|
|
98
|
+
]), pi = Pe([
|
|
84
99
|
[
|
|
85
100
|
"path",
|
|
86
101
|
{
|
|
@@ -93,7 +108,7 @@ const ya = Pe([
|
|
|
93
108
|
]), As = Pe([
|
|
94
109
|
["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
|
|
95
110
|
["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
|
|
96
|
-
]),
|
|
111
|
+
]), _i = Pe([
|
|
97
112
|
[
|
|
98
113
|
"path",
|
|
99
114
|
{
|
|
@@ -101,14 +116,14 @@ const ya = Pe([
|
|
|
101
116
|
key: "mvr1a0"
|
|
102
117
|
}
|
|
103
118
|
]
|
|
104
|
-
]),
|
|
119
|
+
]), gi = Pe([
|
|
105
120
|
[
|
|
106
121
|
"path",
|
|
107
122
|
{ d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }
|
|
108
123
|
],
|
|
109
124
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
110
125
|
["path", { d: "M12 7v5l4 2", key: "1fdv2h" }]
|
|
111
|
-
]),
|
|
126
|
+
]), fi = Pe([
|
|
112
127
|
["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
|
|
113
128
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
114
129
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
|
|
@@ -121,7 +136,7 @@ const ya = Pe([
|
|
|
121
136
|
}
|
|
122
137
|
],
|
|
123
138
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
124
|
-
]),
|
|
139
|
+
]), yi = Pe([
|
|
125
140
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
126
141
|
["path", { d: "M16 3.128a4 4 0 0 1 0 7.744", key: "16gr8j" }],
|
|
127
142
|
["path", { d: "M22 21v-2a4 4 0 0 0-3-3.87", key: "kshegd" }],
|
|
@@ -129,7 +144,7 @@ const ya = Pe([
|
|
|
129
144
|
]), Bs = Pe([
|
|
130
145
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
131
146
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
132
|
-
]),
|
|
147
|
+
]), vi = Pe([
|
|
133
148
|
[
|
|
134
149
|
"path",
|
|
135
150
|
{ d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }
|
|
@@ -148,7 +163,7 @@ const ya = Pe([
|
|
|
148
163
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
|
|
149
164
|
]), kn = Pe([
|
|
150
165
|
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
151
|
-
]),
|
|
166
|
+
]), bi = Pe([
|
|
152
167
|
["circle", { cx: "18", cy: "5", r: "3", key: "gq8acd" }],
|
|
153
168
|
["circle", { cx: "6", cy: "12", r: "3", key: "w7nqdw" }],
|
|
154
169
|
["circle", { cx: "18", cy: "19", r: "3", key: "1xt0gg" }],
|
|
@@ -157,7 +172,7 @@ const ya = Pe([
|
|
|
157
172
|
{ x1: "8.59", x2: "15.42", y1: "13.51", y2: "17.49", key: "47mynk" }
|
|
158
173
|
],
|
|
159
174
|
["line", { x1: "15.41", x2: "8.59", y1: "6.51", y2: "10.49", key: "1n3mei" }]
|
|
160
|
-
]),
|
|
175
|
+
]), Ni = Pe([
|
|
161
176
|
[
|
|
162
177
|
"path",
|
|
163
178
|
{
|
|
@@ -165,14 +180,14 @@ const ya = Pe([
|
|
|
165
180
|
key: "1xq2db"
|
|
166
181
|
}
|
|
167
182
|
]
|
|
168
|
-
]),
|
|
183
|
+
]), ki = Pe([
|
|
169
184
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
170
185
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
171
186
|
]), va = Pe([
|
|
172
187
|
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
173
188
|
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
174
189
|
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
175
|
-
]),
|
|
190
|
+
]), Ci = Pe([
|
|
176
191
|
[
|
|
177
192
|
"path",
|
|
178
193
|
{
|
|
@@ -197,7 +212,7 @@ const ya = Pe([
|
|
|
197
212
|
["path", { d: "M20 14h2", key: "4cs60a" }],
|
|
198
213
|
["path", { d: "M15 13v2", key: "1xurst" }],
|
|
199
214
|
["path", { d: "M9 13v2", key: "rq6x2g" }]
|
|
200
|
-
]),
|
|
215
|
+
]), wi = Pe([
|
|
201
216
|
[
|
|
202
217
|
"path",
|
|
203
218
|
{
|
|
@@ -205,7 +220,7 @@ const ya = Pe([
|
|
|
205
220
|
key: "1ngwbx"
|
|
206
221
|
}
|
|
207
222
|
]
|
|
208
|
-
]),
|
|
223
|
+
]), Si = Pe([
|
|
209
224
|
[
|
|
210
225
|
"path",
|
|
211
226
|
{
|
|
@@ -213,7 +228,7 @@ const ya = Pe([
|
|
|
213
228
|
key: "1xq2db"
|
|
214
229
|
}
|
|
215
230
|
]
|
|
216
|
-
]),
|
|
231
|
+
]), Ti = Pe([
|
|
217
232
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
218
233
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
219
234
|
["path", { d: "M17 20v2", key: "1rnc9c" }],
|
|
@@ -231,11 +246,11 @@ const ya = Pe([
|
|
|
231
246
|
{ x: "4", y: "4", width: "16", height: "16", rx: "2", key: "1vbyd7" }
|
|
232
247
|
],
|
|
233
248
|
["rect", { x: "8", y: "8", width: "8", height: "8", rx: "1", key: "z9xiuo" }]
|
|
234
|
-
]),
|
|
249
|
+
]), Ii = Pe([
|
|
235
250
|
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
236
251
|
]);
|
|
237
252
|
function Vn(t) {
|
|
238
|
-
return /* @__PURE__ */ e(
|
|
253
|
+
return /* @__PURE__ */ e(Ii, { spin: !0, ...t });
|
|
239
254
|
}
|
|
240
255
|
const Ms = Pe([
|
|
241
256
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
@@ -249,14 +264,14 @@ const Ms = Pe([
|
|
|
249
264
|
key: "cloud1"
|
|
250
265
|
}
|
|
251
266
|
]
|
|
252
|
-
]),
|
|
267
|
+
]), xi = Pe([
|
|
253
268
|
["circle", { cx: "12", cy: "12", r: "10", key: "globe1" }],
|
|
254
269
|
[
|
|
255
270
|
"path",
|
|
256
271
|
{ d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "globe2" }
|
|
257
272
|
],
|
|
258
273
|
["path", { d: "M2 12h20", key: "globe3" }]
|
|
259
|
-
]),
|
|
274
|
+
]), Ai = Pe([
|
|
260
275
|
["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "arch1" }],
|
|
261
276
|
["path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8", key: "arch2" }],
|
|
262
277
|
["path", { d: "M10 12h4", key: "arch3" }]
|
|
@@ -296,7 +311,7 @@ const Ms = Pe([
|
|
|
296
311
|
["path", { d: "M7 16h10", key: "kb7" }],
|
|
297
312
|
["path", { d: "M8 12h.01", key: "kb8" }],
|
|
298
313
|
["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "kb9" }]
|
|
299
|
-
]),
|
|
314
|
+
]), Bi = Pe([
|
|
300
315
|
[
|
|
301
316
|
"path",
|
|
302
317
|
{
|
|
@@ -304,7 +319,7 @@ const Ms = Pe([
|
|
|
304
319
|
key: "shield1"
|
|
305
320
|
}
|
|
306
321
|
]
|
|
307
|
-
]),
|
|
322
|
+
]), Li = Pe([
|
|
308
323
|
["circle", { cx: "12", cy: "12", r: "10", key: "info1" }],
|
|
309
324
|
["path", { d: "M12 16v-4", key: "info2" }],
|
|
310
325
|
["path", { d: "M12 8h.01", key: "info3" }]
|
|
@@ -333,80 +348,80 @@ const Ms = Pe([
|
|
|
333
348
|
"rect",
|
|
334
349
|
{ width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }
|
|
335
350
|
]
|
|
336
|
-
]),
|
|
337
|
-
container:
|
|
338
|
-
sessionPanel:
|
|
339
|
-
sessionHeader:
|
|
340
|
-
sessionHeaderActions:
|
|
341
|
-
sessionBtnSm:
|
|
342
|
-
sessionList:
|
|
343
|
-
sessionItem:
|
|
344
|
-
sessionItemActive:
|
|
345
|
-
sessionItemTitle:
|
|
346
|
-
sessionLiveDot:
|
|
347
|
-
sessionItemTime:
|
|
348
|
-
sessionDeleteBtn:
|
|
349
|
-
sessionRenameBtn:
|
|
350
|
-
sessionRenameInput:
|
|
351
|
-
sessionCreateRow:
|
|
352
|
-
sessionCreateInput:
|
|
353
|
-
sessionCreateConfirm:
|
|
354
|
-
sessionCreateCancel:
|
|
355
|
-
sessionSearchRow:
|
|
356
|
-
sessionSearchInput:
|
|
357
|
-
sessionSearchClear:
|
|
358
|
-
sessionEmpty:
|
|
359
|
-
sessionExpandBtn:
|
|
360
|
-
chatPanel:
|
|
361
|
-
chatHeader:
|
|
362
|
-
agentAvatar:
|
|
363
|
-
chatHeaderMeta:
|
|
364
|
-
chatHeaderName:
|
|
365
|
-
chatHeaderSession:
|
|
366
|
-
chatHeaderBadge:
|
|
367
|
-
streamingIndicator:
|
|
368
|
-
threadScroll:
|
|
369
|
-
threadInner:
|
|
370
|
-
landing:
|
|
371
|
-
landingLogo:
|
|
372
|
-
landingTitle:
|
|
373
|
-
landingHint:
|
|
374
|
-
newChatLanding:
|
|
375
|
-
landingComposer:
|
|
376
|
-
landingInput:
|
|
377
|
-
chatEmpty:
|
|
378
|
-
userRow:
|
|
379
|
-
userBubble:
|
|
380
|
-
assistantBlock:
|
|
381
|
-
md:
|
|
382
|
-
mdPreWrap:
|
|
383
|
-
mdPreCopy:
|
|
384
|
-
caretCursor:
|
|
385
|
-
errorBar:
|
|
386
|
-
errorRetryBtn:
|
|
387
|
-
stoppedBar:
|
|
388
|
-
scrollTopBtn:
|
|
389
|
-
scrollTopBtnVisible:
|
|
390
|
-
composerWrap:
|
|
391
|
-
composer:
|
|
392
|
-
composerInput:
|
|
393
|
-
sendBtn:
|
|
394
|
-
stopBtn:
|
|
395
|
-
sendBtnReady:
|
|
396
|
-
composerHint:
|
|
397
|
-
msgMeta:
|
|
398
|
-
copyBtn:
|
|
399
|
-
copyBtnInline:
|
|
400
|
-
copyBtnDone:
|
|
401
|
-
landingChips:
|
|
402
|
-
landingChip:
|
|
403
|
-
userActions:
|
|
404
|
-
userActionBtn:
|
|
405
|
-
editingBar:
|
|
406
|
-
pendingBar:
|
|
407
|
-
editingCancel:
|
|
351
|
+
]), Mi = "_container_3gc15_1", $i = "_sessionPanel_3gc15_9", Ri = "_sessionHeader_3gc15_19", Di = "_sessionHeaderActions_3gc15_32", Ei = "_sessionBtnSm_3gc15_37", Pi = "_sessionList_3gc15_55", Oi = "_sessionItem_3gc15_61", Hi = "_sessionItemActive_3gc15_79", ji = "_sessionItemTitle_3gc15_84", Fi = "_sessionLiveDot_3gc15_93", Gi = "_sessionItemTime_3gc15_100", zi = "_sessionDeleteBtn_3gc15_106", Ui = "_sessionRenameBtn_3gc15_127", Wi = "_sessionRenameInput_3gc15_148", qi = "_sessionCreateRow_3gc15_160", Ki = "_sessionCreateInput_3gc15_166", Vi = "_sessionCreateConfirm_3gc15_180", Ji = "_sessionCreateCancel_3gc15_181", Yi = "_sessionSearchRow_3gc15_203", Qi = "_sessionSearchInput_3gc15_209", Xi = "_sessionSearchClear_3gc15_224", Zi = "_sessionEmpty_3gc15_245", er = "_sessionExpandBtn_3gc15_255", tr = "_chatPanel_3gc15_275", nr = "_chatHeader_3gc15_284", ar = "_agentAvatar_3gc15_296", sr = "_chatHeaderMeta_3gc15_309", lr = "_chatHeaderName_3gc15_317", or = "_chatHeaderSession_3gc15_324", ir = "_chatHeaderBadge_3gc15_332", rr = "_streamingIndicator_3gc15_342", cr = "_threadScroll_3gc15_351", dr = "_threadInner_3gc15_357", ur = "_landing_3gc15_368", mr = "_landingLogo_3gc15_378", hr = "_landingTitle_3gc15_392", pr = "_landingHint_3gc15_398", _r = "_newChatLanding_3gc15_404", gr = "_landingComposer_3gc15_415", fr = "_landingInput_3gc15_432", yr = "_chatEmpty_3gc15_448", vr = "_userRow_3gc15_459", br = "_userBubble_3gc15_464", Nr = "_assistantBlock_3gc15_478", kr = "_md_3gc15_488", Cr = "_mdPreWrap_3gc15_546", wr = "_mdPreCopy_3gc15_550", Sr = "_caretCursor_3gc15_585", Tr = "_errorBar_3gc15_602", Ir = "_errorRetryBtn_3gc15_611", xr = "_stoppedBar_3gc15_626", Ar = "_scrollTopBtn_3gc15_636", Br = "_scrollTopBtnVisible_3gc15_658", Lr = "_composerWrap_3gc15_669", Mr = "_composer_3gc15_669", $r = "_composerInput_3gc15_691", Rr = "_sendBtn_3gc15_709", Dr = "_stopBtn_3gc15_710", Er = "_sendBtnReady_3gc15_730", Pr = "_composerHint_3gc15_748", Or = "_msgMeta_3gc15_758", Hr = "_copyBtn_3gc15_769", jr = "_copyBtnInline_3gc15_799", Fr = "_copyBtnDone_3gc15_806", Gr = "_landingChips_3gc15_811", zr = "_landingChip_3gc15_811", Ur = "_userActions_3gc15_838", Wr = "_userActionBtn_3gc15_851", qr = "_editingBar_3gc15_874", Kr = "_pendingBar_3gc15_889", Vr = "_editingCancel_3gc15_910", J = {
|
|
352
|
+
container: Mi,
|
|
353
|
+
sessionPanel: $i,
|
|
354
|
+
sessionHeader: Ri,
|
|
355
|
+
sessionHeaderActions: Di,
|
|
356
|
+
sessionBtnSm: Ei,
|
|
357
|
+
sessionList: Pi,
|
|
358
|
+
sessionItem: Oi,
|
|
359
|
+
sessionItemActive: Hi,
|
|
360
|
+
sessionItemTitle: ji,
|
|
361
|
+
sessionLiveDot: Fi,
|
|
362
|
+
sessionItemTime: Gi,
|
|
363
|
+
sessionDeleteBtn: zi,
|
|
364
|
+
sessionRenameBtn: Ui,
|
|
365
|
+
sessionRenameInput: Wi,
|
|
366
|
+
sessionCreateRow: qi,
|
|
367
|
+
sessionCreateInput: Ki,
|
|
368
|
+
sessionCreateConfirm: Vi,
|
|
369
|
+
sessionCreateCancel: Ji,
|
|
370
|
+
sessionSearchRow: Yi,
|
|
371
|
+
sessionSearchInput: Qi,
|
|
372
|
+
sessionSearchClear: Xi,
|
|
373
|
+
sessionEmpty: Zi,
|
|
374
|
+
sessionExpandBtn: er,
|
|
375
|
+
chatPanel: tr,
|
|
376
|
+
chatHeader: nr,
|
|
377
|
+
agentAvatar: ar,
|
|
378
|
+
chatHeaderMeta: sr,
|
|
379
|
+
chatHeaderName: lr,
|
|
380
|
+
chatHeaderSession: or,
|
|
381
|
+
chatHeaderBadge: ir,
|
|
382
|
+
streamingIndicator: rr,
|
|
383
|
+
threadScroll: cr,
|
|
384
|
+
threadInner: dr,
|
|
385
|
+
landing: ur,
|
|
386
|
+
landingLogo: mr,
|
|
387
|
+
landingTitle: hr,
|
|
388
|
+
landingHint: pr,
|
|
389
|
+
newChatLanding: _r,
|
|
390
|
+
landingComposer: gr,
|
|
391
|
+
landingInput: fr,
|
|
392
|
+
chatEmpty: yr,
|
|
393
|
+
userRow: vr,
|
|
394
|
+
userBubble: br,
|
|
395
|
+
assistantBlock: Nr,
|
|
396
|
+
md: kr,
|
|
397
|
+
mdPreWrap: Cr,
|
|
398
|
+
mdPreCopy: wr,
|
|
399
|
+
caretCursor: Sr,
|
|
400
|
+
errorBar: Tr,
|
|
401
|
+
errorRetryBtn: Ir,
|
|
402
|
+
stoppedBar: xr,
|
|
403
|
+
scrollTopBtn: Ar,
|
|
404
|
+
scrollTopBtnVisible: Br,
|
|
405
|
+
composerWrap: Lr,
|
|
406
|
+
composer: Mr,
|
|
407
|
+
composerInput: $r,
|
|
408
|
+
sendBtn: Rr,
|
|
409
|
+
stopBtn: Dr,
|
|
410
|
+
sendBtnReady: Er,
|
|
411
|
+
composerHint: Pr,
|
|
412
|
+
msgMeta: Or,
|
|
413
|
+
copyBtn: Hr,
|
|
414
|
+
copyBtnInline: jr,
|
|
415
|
+
copyBtnDone: Fr,
|
|
416
|
+
landingChips: Gr,
|
|
417
|
+
landingChip: zr,
|
|
418
|
+
userActions: Ur,
|
|
419
|
+
userActionBtn: Wr,
|
|
420
|
+
editingBar: qr,
|
|
421
|
+
pendingBar: Kr,
|
|
422
|
+
editingCancel: Vr
|
|
408
423
|
};
|
|
409
|
-
function
|
|
424
|
+
function Jr(t) {
|
|
410
425
|
if (t && t.trim().startsWith("{"))
|
|
411
426
|
try {
|
|
412
427
|
const s = JSON.parse(t);
|
|
@@ -423,7 +438,7 @@ function Kr(t) {
|
|
|
423
438
|
}
|
|
424
439
|
function ba(t) {
|
|
425
440
|
return (t || []).map((s, a) => {
|
|
426
|
-
const l =
|
|
441
|
+
const l = Jr(s.content);
|
|
427
442
|
return {
|
|
428
443
|
id: `local-${s.timestamp}-${s.role}-${a}`,
|
|
429
444
|
role: s.role === "assistant" ? "assistant" : "user",
|
|
@@ -437,10 +452,10 @@ function ba(t) {
|
|
|
437
452
|
function an(t) {
|
|
438
453
|
return t.filter((s) => s.type === "text").map((s) => s.text).join("");
|
|
439
454
|
}
|
|
440
|
-
function
|
|
455
|
+
function Yr(t) {
|
|
441
456
|
return t >= 1e4 ? `${Math.round(t / 1e3)}k` : t >= 1e3 ? `${(t / 1e3).toFixed(1)}k` : String(t);
|
|
442
457
|
}
|
|
443
|
-
function
|
|
458
|
+
function Qr(t) {
|
|
444
459
|
if (t == null || t <= 0) return "";
|
|
445
460
|
const s = Date.now() - t;
|
|
446
461
|
if (s < 6e4) return "刚刚";
|
|
@@ -466,10 +481,10 @@ function ka(t) {
|
|
|
466
481
|
for (let a = 0; a < t.length; a++) s = s * 31 + t.charCodeAt(a) | 0;
|
|
467
482
|
return Na[Math.abs(s) % Na.length];
|
|
468
483
|
}
|
|
469
|
-
function
|
|
484
|
+
function Rn(t) {
|
|
470
485
|
return t ? t.charAt(0).toUpperCase() : "?";
|
|
471
486
|
}
|
|
472
|
-
function
|
|
487
|
+
function Xr({ children: t }) {
|
|
473
488
|
const s = Ae(null);
|
|
474
489
|
return /* @__PURE__ */ n("div", { className: J.mdPreWrap, children: [
|
|
475
490
|
/* @__PURE__ */ e("div", { className: J.mdPreCopy, children: /* @__PURE__ */ e(Yn, { getText: () => {
|
|
@@ -479,20 +494,20 @@ function Yr({ children: t }) {
|
|
|
479
494
|
/* @__PURE__ */ e("pre", { ref: s, children: t })
|
|
480
495
|
] });
|
|
481
496
|
}
|
|
482
|
-
function
|
|
497
|
+
function Zr({ text: t }) {
|
|
483
498
|
return /* @__PURE__ */ e("div", { className: J.md, children: /* @__PURE__ */ e(
|
|
484
|
-
|
|
499
|
+
Bn,
|
|
485
500
|
{
|
|
486
|
-
remarkPlugins: [
|
|
487
|
-
rehypePlugins: [
|
|
501
|
+
remarkPlugins: [Ln],
|
|
502
|
+
rehypePlugins: [ws],
|
|
488
503
|
components: {
|
|
489
|
-
pre: (s) => /* @__PURE__ */ e(
|
|
504
|
+
pre: (s) => /* @__PURE__ */ e(Xr, { children: s.children })
|
|
490
505
|
},
|
|
491
506
|
children: t
|
|
492
507
|
}
|
|
493
508
|
) });
|
|
494
509
|
}
|
|
495
|
-
function
|
|
510
|
+
function ec({ startedAtMs: t }) {
|
|
496
511
|
const [, s] = o(0);
|
|
497
512
|
oe(() => {
|
|
498
513
|
const l = window.setInterval(() => s((i) => i + 1), 1e3);
|
|
@@ -504,7 +519,7 @@ function Xr({ startedAtMs: t }) {
|
|
|
504
519
|
"s…"
|
|
505
520
|
] });
|
|
506
521
|
}
|
|
507
|
-
function
|
|
522
|
+
function tc(t) {
|
|
508
523
|
var s;
|
|
509
524
|
if ((s = navigator.clipboard) != null && s.writeText)
|
|
510
525
|
return navigator.clipboard.writeText(t).catch(() => {
|
|
@@ -531,7 +546,7 @@ function Yn({
|
|
|
531
546
|
className: `${J.copyBtn} ${s ? J.copyBtnInline : ""} ${l ? J.copyBtnDone : ""}`,
|
|
532
547
|
onClick: () => {
|
|
533
548
|
const c = t();
|
|
534
|
-
!c || !
|
|
549
|
+
!c || !tc(c) || (i(!0), window.setTimeout(() => i(!1), 1600));
|
|
535
550
|
},
|
|
536
551
|
title: a,
|
|
537
552
|
"aria-label": a,
|
|
@@ -597,7 +612,7 @@ function Ds({
|
|
|
597
612
|
}, [wt]), oe(() => {
|
|
598
613
|
s > 0 && (async () => {
|
|
599
614
|
try {
|
|
600
|
-
const f = await
|
|
615
|
+
const f = await $n(
|
|
601
616
|
"新会话",
|
|
602
617
|
t == null ? void 0 : t.localAgentId
|
|
603
618
|
);
|
|
@@ -668,7 +683,7 @@ function Ds({
|
|
|
668
683
|
const It = async () => {
|
|
669
684
|
const f = Ge.trim() || "新会话";
|
|
670
685
|
try {
|
|
671
|
-
const te = await
|
|
686
|
+
const te = await $n(f, t == null ? void 0 : t.localAgentId);
|
|
672
687
|
u((U) => [te, ...U]), ne(te.id), W([]), Re(!1), Ue(""), d("");
|
|
673
688
|
} catch {
|
|
674
689
|
}
|
|
@@ -879,7 +894,7 @@ function Ds({
|
|
|
879
894
|
try {
|
|
880
895
|
const U = /* @__PURE__ */ new Date(), Te = (_) => String(_).padStart(2, "0"), ce = `${Te(U.getMonth() + 1)}${Te(U.getDate())} ${Te(
|
|
881
896
|
U.getHours()
|
|
882
|
-
)}:${Te(U.getMinutes())}`, be = await
|
|
897
|
+
)}:${Te(U.getMinutes())}`, be = await $n(ce, t == null ? void 0 : t.localAgentId);
|
|
883
898
|
u((_) => [be, ..._]), ne(be.id), W([]), Ne(""), await Ee(te, be.id);
|
|
884
899
|
} catch {
|
|
885
900
|
} finally {
|
|
@@ -956,7 +971,7 @@ function Ds({
|
|
|
956
971
|
/* @__PURE__ */ e("pre", { className: J.toolPre, children: ce.content || "(空)" })
|
|
957
972
|
] }) }, be)
|
|
958
973
|
);
|
|
959
|
-
} else ce.type === "text" && ce.text && Te.push(/* @__PURE__ */ e(
|
|
974
|
+
} else ce.type === "text" && ce.text && Te.push(/* @__PURE__ */ e(Zr, { text: ce.text }, be));
|
|
960
975
|
}), Te;
|
|
961
976
|
};
|
|
962
977
|
if (!We)
|
|
@@ -1106,7 +1121,7 @@ function Ds({
|
|
|
1106
1121
|
]
|
|
1107
1122
|
}
|
|
1108
1123
|
),
|
|
1109
|
-
g !== f.id && /* @__PURE__ */ e("span", { className: J.sessionItemTime, children:
|
|
1124
|
+
g !== f.id && /* @__PURE__ */ e("span", { className: J.sessionItemTime, children: Qr(f.updatedAt) }),
|
|
1110
1125
|
/* @__PURE__ */ e(
|
|
1111
1126
|
"button",
|
|
1112
1127
|
{
|
|
@@ -1144,7 +1159,7 @@ function Ds({
|
|
|
1144
1159
|
{
|
|
1145
1160
|
className: J.agentAvatar,
|
|
1146
1161
|
style: { backgroundColor: Ve },
|
|
1147
|
-
children:
|
|
1162
|
+
children: Rn((t == null ? void 0 : t.displayName) || "本地 Agent")
|
|
1148
1163
|
}
|
|
1149
1164
|
),
|
|
1150
1165
|
/* @__PURE__ */ n("div", { className: J.chatHeaderMeta, children: [
|
|
@@ -1170,7 +1185,7 @@ function Ds({
|
|
|
1170
1185
|
{
|
|
1171
1186
|
className: J.landingLogo,
|
|
1172
1187
|
style: { backgroundColor: Ve },
|
|
1173
|
-
children:
|
|
1188
|
+
children: Rn((t == null ? void 0 : t.displayName) || "本地 Agent")
|
|
1174
1189
|
}
|
|
1175
1190
|
),
|
|
1176
1191
|
/* @__PURE__ */ n("div", { className: J.landingTitle, children: [
|
|
@@ -1229,7 +1244,7 @@ function Ds({
|
|
|
1229
1244
|
] })
|
|
1230
1245
|
] }, f.id) : /* @__PURE__ */ n("div", { className: J.assistantBlock, children: [
|
|
1231
1246
|
At(f),
|
|
1232
|
-
f.streaming && f.startedAtMs != null && /* @__PURE__ */ e(
|
|
1247
|
+
f.streaming && f.startedAtMs != null && /* @__PURE__ */ e(ec, { startedAtMs: f.startedAtMs }),
|
|
1233
1248
|
f.streaming && f.blocks.every(
|
|
1234
1249
|
(U) => U.type !== "tool_call" && U.type !== "thinking"
|
|
1235
1250
|
) && /* @__PURE__ */ e("span", { className: J.caretCursor }),
|
|
@@ -1239,7 +1254,7 @@ function Ds({
|
|
|
1239
1254
|
(() => {
|
|
1240
1255
|
var be, _;
|
|
1241
1256
|
const U = ((be = f.usage) == null ? void 0 : be.inputTokens) ?? 0, Te = ((_ = f.usage) == null ? void 0 : _.outputTokens) ?? 0, ce = U + Te;
|
|
1242
|
-
return ce > 0 ? ` · ${
|
|
1257
|
+
return ce > 0 ? ` · ${Yr(ce)} tokens` : "";
|
|
1243
1258
|
})()
|
|
1244
1259
|
] }),
|
|
1245
1260
|
!f.streaming && /* @__PURE__ */ e(
|
|
@@ -1363,7 +1378,7 @@ function Ds({
|
|
|
1363
1378
|
{
|
|
1364
1379
|
className: J.landingLogo,
|
|
1365
1380
|
style: { backgroundColor: Ve },
|
|
1366
|
-
children:
|
|
1381
|
+
children: Rn((t == null ? void 0 : t.displayName) || "本地 Agent")
|
|
1367
1382
|
}
|
|
1368
1383
|
),
|
|
1369
1384
|
/* @__PURE__ */ n("div", { className: J.landingTitle, children: [
|
|
@@ -1415,107 +1430,107 @@ function Ds({
|
|
|
1415
1430
|
] })
|
|
1416
1431
|
] });
|
|
1417
1432
|
}
|
|
1418
|
-
const
|
|
1419
|
-
container:
|
|
1420
|
-
header:
|
|
1421
|
-
backBtn:
|
|
1422
|
-
headerTitle:
|
|
1423
|
-
headerAgentName:
|
|
1424
|
-
body:
|
|
1425
|
-
taskListPanel:
|
|
1426
|
-
taskListHeader:
|
|
1427
|
-
taskListTitle:
|
|
1428
|
-
newTaskBtn:
|
|
1429
|
-
taskList:
|
|
1430
|
-
taskCard:
|
|
1431
|
-
taskCardActive:
|
|
1432
|
-
taskCardHeader:
|
|
1433
|
-
taskDot:
|
|
1434
|
-
taskDotEnabled:
|
|
1435
|
-
taskDotDisabled:
|
|
1436
|
-
taskName:
|
|
1437
|
-
taskCron:
|
|
1438
|
-
taskNextRun:
|
|
1439
|
-
detailPanel:
|
|
1440
|
-
emptyState:
|
|
1441
|
-
formGroup:
|
|
1442
|
-
formLabel:
|
|
1443
|
-
formInput:
|
|
1444
|
-
formTextarea:
|
|
1445
|
-
formHint:
|
|
1446
|
-
cronPresets:
|
|
1447
|
-
cronPreset:
|
|
1448
|
-
actions:
|
|
1449
|
-
btn:
|
|
1450
|
-
btnPrimary:
|
|
1451
|
-
btnDanger:
|
|
1452
|
-
logSection:
|
|
1453
|
-
logSectionTitle:
|
|
1454
|
-
logList:
|
|
1455
|
-
logItem:
|
|
1456
|
-
logStatus:
|
|
1457
|
-
logStatusSuccess:
|
|
1458
|
-
logStatusFailed:
|
|
1459
|
-
logStatusRunning:
|
|
1460
|
-
logContent:
|
|
1461
|
-
logTime:
|
|
1462
|
-
logSnippet:
|
|
1463
|
-
logError:
|
|
1464
|
-
logActions:
|
|
1465
|
-
pagination:
|
|
1466
|
-
pageBtn:
|
|
1467
|
-
pageInfo:
|
|
1468
|
-
statusBadge:
|
|
1469
|
-
statusBadgeEnabled:
|
|
1470
|
-
statusBadgeDisabled:
|
|
1471
|
-
createForm:
|
|
1472
|
-
headerRight:
|
|
1473
|
-
bellBtn:
|
|
1474
|
-
bellBadge:
|
|
1475
|
-
notifPanel:
|
|
1476
|
-
notifPanelHeader:
|
|
1477
|
-
notifPanelTitle:
|
|
1478
|
-
notifMarkAllBtn:
|
|
1479
|
-
notifCloseBtn:
|
|
1480
|
-
notifList:
|
|
1481
|
-
notifEmpty:
|
|
1482
|
-
notifCard:
|
|
1483
|
-
notifCardUnread:
|
|
1484
|
-
notifCardHeader:
|
|
1485
|
-
notifStatusDot:
|
|
1486
|
-
notifStatusSuccess:
|
|
1487
|
-
notifStatusFailed:
|
|
1488
|
-
notifTaskName:
|
|
1489
|
-
notifTime:
|
|
1490
|
-
notifReadBtn:
|
|
1491
|
-
notifAgentName:
|
|
1492
|
-
notifResult:
|
|
1493
|
-
notifError:
|
|
1494
|
-
staffDropdown:
|
|
1495
|
-
staffInputWrap:
|
|
1496
|
-
staffClearBtn:
|
|
1497
|
-
staffResults:
|
|
1498
|
-
staffLoading:
|
|
1499
|
-
staffEmpty:
|
|
1500
|
-
staffItem:
|
|
1501
|
-
staffName:
|
|
1502
|
-
staffMeta:
|
|
1503
|
-
notifySelected:
|
|
1504
|
-
notifySelectedName:
|
|
1505
|
-
notifyClearBtn:
|
|
1506
|
-
taskNotify:
|
|
1507
|
-
logLinkBtn:
|
|
1508
|
-
sessionModalOverlay:
|
|
1509
|
-
sessionModal:
|
|
1510
|
-
sessionModalHeader:
|
|
1511
|
-
sessionModalTitle:
|
|
1512
|
-
sessionModalClose:
|
|
1513
|
-
sessionModalBody:
|
|
1514
|
-
sessionModalEmpty:
|
|
1515
|
-
sessionMsgRow:
|
|
1516
|
-
sessionMsgUser:
|
|
1517
|
-
sessionMsgRole:
|
|
1518
|
-
sessionMsgBubble:
|
|
1433
|
+
const nc = "_container_oyitu_1", ac = "_header_oyitu_9", sc = "_backBtn_oyitu_20", lc = "_headerTitle_oyitu_40", oc = "_headerAgentName_oyitu_46", ic = "_body_oyitu_52", rc = "_taskListPanel_oyitu_59", cc = "_taskListHeader_oyitu_69", dc = "_taskListTitle_oyitu_77", uc = "_newTaskBtn_oyitu_83", mc = "_taskList_oyitu_59", hc = "_taskCard_oyitu_105", pc = "_taskCardActive_oyitu_118", _c = "_taskCardHeader_oyitu_123", gc = "_taskDot_oyitu_130", fc = "_taskDotEnabled_oyitu_137", yc = "_taskDotDisabled_oyitu_141", vc = "_taskName_oyitu_145", bc = "_taskCron_oyitu_155", Nc = "_taskNextRun_oyitu_161", kc = "_detailPanel_oyitu_167", Cc = "_emptyState_oyitu_173", wc = "_formGroup_oyitu_183", Sc = "_formLabel_oyitu_187", Tc = "_formInput_oyitu_195", Ic = "_formTextarea_oyitu_213", xc = "_formHint_oyitu_234", Ac = "_cronPresets_oyitu_240", Bc = "_cronPreset_oyitu_240", Lc = "_actions_oyitu_264", Mc = "_btn_oyitu_271", $c = "_btnPrimary_oyitu_287", Rc = "_btnDanger_oyitu_298", Dc = "_logSection_oyitu_309", Ec = "_logSectionTitle_oyitu_313", Pc = "_logList_oyitu_322", Oc = "_logItem_oyitu_328", Hc = "_logStatus_oyitu_337", jc = "_logStatusSuccess_oyitu_349", Fc = "_logStatusFailed_oyitu_354", Gc = "_logStatusRunning_oyitu_359", zc = "_logContent_oyitu_364", Uc = "_logTime_oyitu_369", Wc = "_logSnippet_oyitu_375", qc = "_logError_oyitu_386", Kc = "_logActions_oyitu_392", Vc = "_pagination_oyitu_408", Jc = "_pageBtn_oyitu_416", Yc = "_pageInfo_oyitu_437", Qc = "_statusBadge_oyitu_443", Xc = "_statusBadgeEnabled_oyitu_452", Zc = "_statusBadgeDisabled_oyitu_457", ed = "_createForm_oyitu_463", td = "_headerRight_oyitu_468", nd = "_bellBtn_oyitu_476", ad = "_bellBadge_oyitu_497", sd = "_notifPanel_oyitu_514", ld = "_notifPanelHeader_oyitu_530", od = "_notifPanelTitle_oyitu_538", id = "_notifMarkAllBtn_oyitu_545", rd = "_notifCloseBtn_oyitu_561", cd = "_notifList_oyitu_577", dd = "_notifEmpty_oyitu_583", ud = "_notifCard_oyitu_590", md = "_notifCardUnread_oyitu_602", hd = "_notifCardHeader_oyitu_607", pd = "_notifStatusDot_oyitu_614", _d = "_notifStatusSuccess_oyitu_621", gd = "_notifStatusFailed_oyitu_625", fd = "_notifTaskName_oyitu_629", yd = "_notifTime_oyitu_639", vd = "_notifReadBtn_oyitu_645", bd = "_notifAgentName_oyitu_661", Nd = "_notifResult_oyitu_667", kd = "_notifError_oyitu_680", Cd = "_staffDropdown_oyitu_687", wd = "_staffInputWrap_oyitu_692", Sd = "_staffClearBtn_oyitu_696", Td = "_staffResults_oyitu_720", Id = "_staffLoading_oyitu_735", xd = "_staffEmpty_oyitu_736", Ad = "_staffItem_oyitu_743", Bd = "_staffName_oyitu_761", Ld = "_staffMeta_oyitu_767", Md = "_notifySelected_oyitu_773", $d = "_notifySelectedName_oyitu_785", Rd = "_notifyClearBtn_oyitu_792", Dd = "_taskNotify_oyitu_808", Ed = "_logLinkBtn_oyitu_824", Pd = "_sessionModalOverlay_oyitu_844", Od = "_sessionModal_oyitu_844", Hd = "_sessionModalHeader_oyitu_870", jd = "_sessionModalTitle_oyitu_879", Fd = "_sessionModalClose_oyitu_885", Gd = "_sessionModalBody_oyitu_905", zd = "_sessionModalEmpty_oyitu_914", Ud = "_sessionMsgRow_oyitu_921", Wd = "_sessionMsgUser_oyitu_927", qd = "_sessionMsgRole_oyitu_931", Kd = "_sessionMsgBubble_oyitu_937", T = {
|
|
1434
|
+
container: nc,
|
|
1435
|
+
header: ac,
|
|
1436
|
+
backBtn: sc,
|
|
1437
|
+
headerTitle: lc,
|
|
1438
|
+
headerAgentName: oc,
|
|
1439
|
+
body: ic,
|
|
1440
|
+
taskListPanel: rc,
|
|
1441
|
+
taskListHeader: cc,
|
|
1442
|
+
taskListTitle: dc,
|
|
1443
|
+
newTaskBtn: uc,
|
|
1444
|
+
taskList: mc,
|
|
1445
|
+
taskCard: hc,
|
|
1446
|
+
taskCardActive: pc,
|
|
1447
|
+
taskCardHeader: _c,
|
|
1448
|
+
taskDot: gc,
|
|
1449
|
+
taskDotEnabled: fc,
|
|
1450
|
+
taskDotDisabled: yc,
|
|
1451
|
+
taskName: vc,
|
|
1452
|
+
taskCron: bc,
|
|
1453
|
+
taskNextRun: Nc,
|
|
1454
|
+
detailPanel: kc,
|
|
1455
|
+
emptyState: Cc,
|
|
1456
|
+
formGroup: wc,
|
|
1457
|
+
formLabel: Sc,
|
|
1458
|
+
formInput: Tc,
|
|
1459
|
+
formTextarea: Ic,
|
|
1460
|
+
formHint: xc,
|
|
1461
|
+
cronPresets: Ac,
|
|
1462
|
+
cronPreset: Bc,
|
|
1463
|
+
actions: Lc,
|
|
1464
|
+
btn: Mc,
|
|
1465
|
+
btnPrimary: $c,
|
|
1466
|
+
btnDanger: Rc,
|
|
1467
|
+
logSection: Dc,
|
|
1468
|
+
logSectionTitle: Ec,
|
|
1469
|
+
logList: Pc,
|
|
1470
|
+
logItem: Oc,
|
|
1471
|
+
logStatus: Hc,
|
|
1472
|
+
logStatusSuccess: jc,
|
|
1473
|
+
logStatusFailed: Fc,
|
|
1474
|
+
logStatusRunning: Gc,
|
|
1475
|
+
logContent: zc,
|
|
1476
|
+
logTime: Uc,
|
|
1477
|
+
logSnippet: Wc,
|
|
1478
|
+
logError: qc,
|
|
1479
|
+
logActions: Kc,
|
|
1480
|
+
pagination: Vc,
|
|
1481
|
+
pageBtn: Jc,
|
|
1482
|
+
pageInfo: Yc,
|
|
1483
|
+
statusBadge: Qc,
|
|
1484
|
+
statusBadgeEnabled: Xc,
|
|
1485
|
+
statusBadgeDisabled: Zc,
|
|
1486
|
+
createForm: ed,
|
|
1487
|
+
headerRight: td,
|
|
1488
|
+
bellBtn: nd,
|
|
1489
|
+
bellBadge: ad,
|
|
1490
|
+
notifPanel: sd,
|
|
1491
|
+
notifPanelHeader: ld,
|
|
1492
|
+
notifPanelTitle: od,
|
|
1493
|
+
notifMarkAllBtn: id,
|
|
1494
|
+
notifCloseBtn: rd,
|
|
1495
|
+
notifList: cd,
|
|
1496
|
+
notifEmpty: dd,
|
|
1497
|
+
notifCard: ud,
|
|
1498
|
+
notifCardUnread: md,
|
|
1499
|
+
notifCardHeader: hd,
|
|
1500
|
+
notifStatusDot: pd,
|
|
1501
|
+
notifStatusSuccess: _d,
|
|
1502
|
+
notifStatusFailed: gd,
|
|
1503
|
+
notifTaskName: fd,
|
|
1504
|
+
notifTime: yd,
|
|
1505
|
+
notifReadBtn: vd,
|
|
1506
|
+
notifAgentName: bd,
|
|
1507
|
+
notifResult: Nd,
|
|
1508
|
+
notifError: kd,
|
|
1509
|
+
staffDropdown: Cd,
|
|
1510
|
+
staffInputWrap: wd,
|
|
1511
|
+
staffClearBtn: Sd,
|
|
1512
|
+
staffResults: Td,
|
|
1513
|
+
staffLoading: Id,
|
|
1514
|
+
staffEmpty: xd,
|
|
1515
|
+
staffItem: Ad,
|
|
1516
|
+
staffName: Bd,
|
|
1517
|
+
staffMeta: Ld,
|
|
1518
|
+
notifySelected: Md,
|
|
1519
|
+
notifySelectedName: $d,
|
|
1520
|
+
notifyClearBtn: Rd,
|
|
1521
|
+
taskNotify: Dd,
|
|
1522
|
+
logLinkBtn: Ed,
|
|
1523
|
+
sessionModalOverlay: Pd,
|
|
1524
|
+
sessionModal: Od,
|
|
1525
|
+
sessionModalHeader: Hd,
|
|
1526
|
+
sessionModalTitle: jd,
|
|
1527
|
+
sessionModalClose: Fd,
|
|
1528
|
+
sessionModalBody: Gd,
|
|
1529
|
+
sessionModalEmpty: zd,
|
|
1530
|
+
sessionMsgRow: Ud,
|
|
1531
|
+
sessionMsgUser: Wd,
|
|
1532
|
+
sessionMsgRole: qd,
|
|
1533
|
+
sessionMsgBubble: Kd
|
|
1519
1534
|
}, wa = [
|
|
1520
1535
|
{ label: "每分钟", value: "0 * * * * ?" },
|
|
1521
1536
|
{ label: "每5分钟", value: "0 */5 * * * ?" },
|
|
@@ -1538,7 +1553,7 @@ function sn(t) {
|
|
|
1538
1553
|
return t;
|
|
1539
1554
|
}
|
|
1540
1555
|
}
|
|
1541
|
-
function
|
|
1556
|
+
function Vd({
|
|
1542
1557
|
agent: t,
|
|
1543
1558
|
onBack: s,
|
|
1544
1559
|
embedded: a = !1,
|
|
@@ -1562,7 +1577,7 @@ function qd({
|
|
|
1562
1577
|
async (S) => {
|
|
1563
1578
|
L(S), Se([]), Ke(!0);
|
|
1564
1579
|
try {
|
|
1565
|
-
const Q = await
|
|
1580
|
+
const Q = await qn(t.id, S, i);
|
|
1566
1581
|
Se(Q);
|
|
1567
1582
|
} catch {
|
|
1568
1583
|
}
|
|
@@ -2192,65 +2207,65 @@ function qd({
|
|
|
2192
2207
|
)
|
|
2193
2208
|
] });
|
|
2194
2209
|
}
|
|
2195
|
-
const
|
|
2196
|
-
container:
|
|
2197
|
-
header:
|
|
2198
|
-
headerLeft:
|
|
2199
|
-
headerTitle:
|
|
2200
|
-
headerActions:
|
|
2201
|
-
backBtn:
|
|
2202
|
-
saveBtn:
|
|
2203
|
-
tabBar:
|
|
2204
|
-
tab:
|
|
2205
|
-
tabActive:
|
|
2206
|
-
body:
|
|
2207
|
-
bodyNoPadding:
|
|
2208
|
-
sectionHead:
|
|
2209
|
-
sectionTitle:
|
|
2210
|
-
sectionDesc:
|
|
2211
|
-
sectionDivider:
|
|
2212
|
-
fieldGrid:
|
|
2213
|
-
field:
|
|
2214
|
-
fieldLabel:
|
|
2215
|
-
required:
|
|
2216
|
-
fieldInput:
|
|
2217
|
-
fieldHint:
|
|
2218
|
-
switchGrid:
|
|
2219
|
-
switchItem:
|
|
2220
|
-
switchLabel:
|
|
2221
|
-
switchHint:
|
|
2222
|
-
loading:
|
|
2223
|
-
filesContainer:
|
|
2224
|
-
fileTreePanel:
|
|
2225
|
-
fileTreeHeader:
|
|
2226
|
-
fileTreeBody:
|
|
2227
|
-
fileTreeNode:
|
|
2228
|
-
fileTreeNodeActive:
|
|
2229
|
-
fileTreeIcon:
|
|
2230
|
-
fileTreeName:
|
|
2231
|
-
fileTreeEmpty:
|
|
2232
|
-
fileContentPanel:
|
|
2233
|
-
fileContentEmpty:
|
|
2234
|
-
fileContentInner:
|
|
2235
|
-
fileContentPath:
|
|
2236
|
-
fileContentPre:
|
|
2237
|
-
markdownBody:
|
|
2238
|
-
skillsContainer:
|
|
2239
|
-
skillsEmpty:
|
|
2240
|
-
skillList:
|
|
2241
|
-
skillCard:
|
|
2242
|
-
skillCardInfo:
|
|
2243
|
-
skillCardName:
|
|
2244
|
-
skillCardDesc:
|
|
2245
|
-
skillCardMeta:
|
|
2246
|
-
skillBadge:
|
|
2247
|
-
skillCode:
|
|
2248
|
-
skillCardAction:
|
|
2249
|
-
skillPagination:
|
|
2250
|
-
pageBtn:
|
|
2251
|
-
pageInfo:
|
|
2210
|
+
const Jd = "_container_nbkud_1", Yd = "_header_nbkud_10", Qd = "_headerLeft_nbkud_20", Xd = "_headerTitle_nbkud_27", Zd = "_headerActions_nbkud_36", eu = "_backBtn_nbkud_43", tu = "_saveBtn_nbkud_62", nu = "_tabBar_nbkud_86", au = "_tab_nbkud_86", su = "_tabActive_nbkud_114", lu = "_body_nbkud_120", ou = "_bodyNoPadding_nbkud_126", iu = "_sectionHead_nbkud_132", ru = "_sectionTitle_nbkud_136", cu = "_sectionDesc_nbkud_143", du = "_sectionDivider_nbkud_150", uu = "_fieldGrid_nbkud_156", mu = "_field_nbkud_156", hu = "_fieldLabel_nbkud_166", pu = "_required_nbkud_174", _u = "_fieldInput_nbkud_179", gu = "_fieldHint_nbkud_183", fu = "_switchGrid_nbkud_191", yu = "_switchItem_nbkud_197", vu = "_switchLabel_nbkud_203", bu = "_switchHint_nbkud_209", Nu = "_loading_nbkud_215", ku = "_filesContainer_nbkud_260", Cu = "_fileTreePanel_nbkud_267", wu = "_fileTreeHeader_nbkud_277", Su = "_fileTreeBody_nbkud_286", Tu = "_fileTreeNode_nbkud_292", Iu = "_fileTreeNodeActive_nbkud_311", xu = "_fileTreeIcon_nbkud_316", Au = "_fileTreeName_nbkud_326", Bu = "_fileTreeEmpty_nbkud_332", Lu = "_fileContentPanel_nbkud_342", Mu = "_fileContentEmpty_nbkud_350", $u = "_fileContentInner_nbkud_359", Ru = "_fileContentPath_nbkud_366", Du = "_fileContentPre_nbkud_376", Eu = "_markdownBody_nbkud_389", Pu = "_skillsContainer_nbkud_492", Ou = "_skillsEmpty_nbkud_499", Hu = "_skillList_nbkud_508", ju = "_skillCard_nbkud_514", Fu = "_skillCardInfo_nbkud_530", Gu = "_skillCardName_nbkud_535", zu = "_skillCardDesc_nbkud_542", Uu = "_skillCardMeta_nbkud_554", Wu = "_skillBadge_nbkud_560", qu = "_skillCode_nbkud_570", Ku = "_skillCardAction_nbkud_579", Vu = "_skillPagination_nbkud_585", Ju = "_pageBtn_nbkud_593", Yu = "_pageInfo_nbkud_614", X = {
|
|
2211
|
+
container: Jd,
|
|
2212
|
+
header: Yd,
|
|
2213
|
+
headerLeft: Qd,
|
|
2214
|
+
headerTitle: Xd,
|
|
2215
|
+
headerActions: Zd,
|
|
2216
|
+
backBtn: eu,
|
|
2217
|
+
saveBtn: tu,
|
|
2218
|
+
tabBar: nu,
|
|
2219
|
+
tab: au,
|
|
2220
|
+
tabActive: su,
|
|
2221
|
+
body: lu,
|
|
2222
|
+
bodyNoPadding: ou,
|
|
2223
|
+
sectionHead: iu,
|
|
2224
|
+
sectionTitle: ru,
|
|
2225
|
+
sectionDesc: cu,
|
|
2226
|
+
sectionDivider: du,
|
|
2227
|
+
fieldGrid: uu,
|
|
2228
|
+
field: mu,
|
|
2229
|
+
fieldLabel: hu,
|
|
2230
|
+
required: pu,
|
|
2231
|
+
fieldInput: _u,
|
|
2232
|
+
fieldHint: gu,
|
|
2233
|
+
switchGrid: fu,
|
|
2234
|
+
switchItem: yu,
|
|
2235
|
+
switchLabel: vu,
|
|
2236
|
+
switchHint: bu,
|
|
2237
|
+
loading: Nu,
|
|
2238
|
+
filesContainer: ku,
|
|
2239
|
+
fileTreePanel: Cu,
|
|
2240
|
+
fileTreeHeader: wu,
|
|
2241
|
+
fileTreeBody: Su,
|
|
2242
|
+
fileTreeNode: Tu,
|
|
2243
|
+
fileTreeNodeActive: Iu,
|
|
2244
|
+
fileTreeIcon: xu,
|
|
2245
|
+
fileTreeName: Au,
|
|
2246
|
+
fileTreeEmpty: Bu,
|
|
2247
|
+
fileContentPanel: Lu,
|
|
2248
|
+
fileContentEmpty: Mu,
|
|
2249
|
+
fileContentInner: $u,
|
|
2250
|
+
fileContentPath: Ru,
|
|
2251
|
+
fileContentPre: Du,
|
|
2252
|
+
markdownBody: Eu,
|
|
2253
|
+
skillsContainer: Pu,
|
|
2254
|
+
skillsEmpty: Ou,
|
|
2255
|
+
skillList: Hu,
|
|
2256
|
+
skillCard: ju,
|
|
2257
|
+
skillCardInfo: Fu,
|
|
2258
|
+
skillCardName: Gu,
|
|
2259
|
+
skillCardDesc: zu,
|
|
2260
|
+
skillCardMeta: Uu,
|
|
2261
|
+
skillBadge: Wu,
|
|
2262
|
+
skillCode: qu,
|
|
2263
|
+
skillCardAction: Ku,
|
|
2264
|
+
skillPagination: Vu,
|
|
2265
|
+
pageBtn: Ju,
|
|
2266
|
+
pageInfo: Yu
|
|
2252
2267
|
};
|
|
2253
|
-
function
|
|
2268
|
+
function Qu(t, s) {
|
|
2254
2269
|
if (!t) return !1;
|
|
2255
2270
|
const l = (t._agenthub_raw ?? {})[s];
|
|
2256
2271
|
return typeof l == "boolean" ? l : typeof l == "string" ? l === "true" || l === "1" : typeof l == "number" ? l === 1 : !1;
|
|
@@ -2287,7 +2302,7 @@ function Es({
|
|
|
2287
2302
|
const At = Xe.modelExt;
|
|
2288
2303
|
N(!!((At == null ? void 0 : At.enable_thinking) ?? !1)), K(!!((At == null ? void 0 : At.send_thinking) ?? !1));
|
|
2289
2304
|
const kt = Xe.sensitiveFilterConfig;
|
|
2290
|
-
Ne(!!((kt == null ? void 0 : kt.enabled) ?? !1)), Be(
|
|
2305
|
+
Ne(!!((kt == null ? void 0 : kt.enabled) ?? !1)), Be(Qu(ke, "enable")), x(Array.isArray(it) ? it : []);
|
|
2291
2306
|
} catch (ke) {
|
|
2292
2307
|
Q || we.error((ke == null ? void 0 : ke.userMessage) ?? "加载 Agent 配置失败");
|
|
2293
2308
|
} finally {
|
|
@@ -2395,7 +2410,7 @@ function Es({
|
|
|
2395
2410
|
it ? /* @__PURE__ */ e(on, { className: X.fileTreeIcon }) : /* @__PURE__ */ e(dl, { className: X.fileTreeIcon }),
|
|
2396
2411
|
/* @__PURE__ */ e("span", { className: X.fileTreeName, children: ke.name })
|
|
2397
2412
|
] }) : /* @__PURE__ */ n(Ie, { children: [
|
|
2398
|
-
/* @__PURE__ */ e(
|
|
2413
|
+
/* @__PURE__ */ e(An, { className: X.fileTreeIcon }),
|
|
2399
2414
|
/* @__PURE__ */ e("span", { className: X.fileTreeName, children: ke.name })
|
|
2400
2415
|
] })
|
|
2401
2416
|
}
|
|
@@ -2544,7 +2559,7 @@ function Es({
|
|
|
2544
2559
|
className: `${X.tab} ${m === "schedule" ? X.tabActive : ""}`,
|
|
2545
2560
|
onClick: () => d("schedule"),
|
|
2546
2561
|
children: [
|
|
2547
|
-
/* @__PURE__ */ e(
|
|
2562
|
+
/* @__PURE__ */ e(Un, {}),
|
|
2548
2563
|
" 定时任务"
|
|
2549
2564
|
]
|
|
2550
2565
|
}
|
|
@@ -2770,7 +2785,7 @@ function Es({
|
|
|
2770
2785
|
/* @__PURE__ */ e("span", { style: { marginLeft: 8 }, children: "读取中..." })
|
|
2771
2786
|
] }) : We ? /* @__PURE__ */ n("div", { className: X.fileContentInner, children: [
|
|
2772
2787
|
/* @__PURE__ */ e("div", { className: X.fileContentPath, children: We }),
|
|
2773
|
-
Lt(We) ? /* @__PURE__ */ e("div", { className: X.markdownBody, children: /* @__PURE__ */ e(
|
|
2788
|
+
Lt(We) ? /* @__PURE__ */ e("div", { className: X.markdownBody, children: /* @__PURE__ */ e(Bn, { remarkPlugins: [Ln], children: at }) }) : /* @__PURE__ */ e("pre", { className: X.fileContentPre, children: /* @__PURE__ */ e("code", { children: at }) })
|
|
2774
2789
|
] }) : /* @__PURE__ */ e("div", { className: X.fileContentEmpty, children: "选择左侧文件查看内容" }) })
|
|
2775
2790
|
] }),
|
|
2776
2791
|
m === "skills" && /* @__PURE__ */ e("div", { className: X.skillsContainer, children: ft ? /* @__PURE__ */ n("div", { className: X.skillsEmpty, children: [
|
|
@@ -2828,7 +2843,7 @@ function Es({
|
|
|
2828
2843
|
] })
|
|
2829
2844
|
] }) }),
|
|
2830
2845
|
m === "schedule" && /* @__PURE__ */ e(
|
|
2831
|
-
|
|
2846
|
+
Vd,
|
|
2832
2847
|
{
|
|
2833
2848
|
agent: t,
|
|
2834
2849
|
embedded: !0,
|
|
@@ -2840,65 +2855,65 @@ function Es({
|
|
|
2840
2855
|
)
|
|
2841
2856
|
] });
|
|
2842
2857
|
}
|
|
2843
|
-
const
|
|
2844
|
-
container:
|
|
2845
|
-
sessionPanel:
|
|
2846
|
-
sessionHeader:
|
|
2847
|
-
sessionHeaderActions:
|
|
2848
|
-
sessionBtnSm:
|
|
2849
|
-
sessionList:
|
|
2850
|
-
sessionItem:
|
|
2851
|
-
sessionItemActive:
|
|
2852
|
-
sessionItemTitle:
|
|
2853
|
-
sessionRenameBtn:
|
|
2854
|
-
sessionDeleteBtn:
|
|
2855
|
-
sessionEmpty:
|
|
2856
|
-
sessionTabBar:
|
|
2857
|
-
sessionTab:
|
|
2858
|
-
sessionTabActive:
|
|
2859
|
-
sessionGroup:
|
|
2860
|
-
sessionGroupHeader:
|
|
2861
|
-
sessionGroupArrow:
|
|
2862
|
-
sessionGroupName:
|
|
2863
|
-
sessionGroupCount:
|
|
2864
|
-
sessionItemNested:
|
|
2865
|
-
chatPanel:
|
|
2866
|
-
scrollTopBtn:
|
|
2867
|
-
scrollTopBtnVisible:
|
|
2868
|
-
chatHeader:
|
|
2869
|
-
chatHeaderName:
|
|
2870
|
-
messageList:
|
|
2871
|
-
messageRow:
|
|
2872
|
-
messageRowUser:
|
|
2873
|
-
messageAvatar:
|
|
2874
|
-
messageBubble:
|
|
2875
|
-
messageBubbleUser:
|
|
2876
|
-
messageBubbleAssistant:
|
|
2877
|
-
chatEmpty:
|
|
2878
|
-
inputArea:
|
|
2879
|
-
modeBar:
|
|
2880
|
-
toolToggleBtn:
|
|
2881
|
-
imagePreviewBar:
|
|
2882
|
-
imagePreviewItem:
|
|
2883
|
-
imagePreviewRemove:
|
|
2884
|
-
msgImages:
|
|
2885
|
-
msgImageThumb:
|
|
2886
|
-
inputBox:
|
|
2887
|
-
streamingIndicator:
|
|
2888
|
-
sessionCreateRow:
|
|
2889
|
-
sessionCreateInput:
|
|
2890
|
-
sessionCreateConfirm:
|
|
2891
|
-
sessionCreateCancel:
|
|
2892
|
-
sessionExpandBtn:
|
|
2893
|
-
reasoningBlock:
|
|
2894
|
-
reasoningSummary:
|
|
2895
|
-
reasoningContent:
|
|
2896
|
-
pickerWrap:
|
|
2897
|
-
pickerChip:
|
|
2898
|
-
pickerCaret:
|
|
2899
|
-
pickerMenu:
|
|
2900
|
-
pickerMenuItem:
|
|
2901
|
-
pickerItemActive:
|
|
2858
|
+
const Xu = "_container_3wfu6_1", Zu = "_sessionPanel_3wfu6_8", em = "_sessionHeader_3wfu6_18", tm = "_sessionHeaderActions_3wfu6_29", nm = "_sessionBtnSm_3wfu6_34", am = "_sessionList_3wfu6_49", sm = "_sessionItem_3wfu6_55", lm = "_sessionItemActive_3wfu6_73", om = "_sessionItemTitle_3wfu6_78", im = "_sessionRenameBtn_3wfu6_85", rm = "_sessionDeleteBtn_3wfu6_107", cm = "_sessionEmpty_3wfu6_129", dm = "_sessionTabBar_3wfu6_143", um = "_sessionTab_3wfu6_143", mm = "_sessionTabActive_3wfu6_169", hm = "_sessionGroup_3wfu6_176", pm = "_sessionGroupHeader_3wfu6_180", _m = "_sessionGroupArrow_3wfu6_198", gm = "_sessionGroupName_3wfu6_206", fm = "_sessionGroupCount_3wfu6_213", ym = "_sessionItemNested_3wfu6_224", vm = "_chatPanel_3wfu6_232", bm = "_scrollTopBtn_3wfu6_243", Nm = "_scrollTopBtnVisible_3wfu6_264", km = "_chatHeader_3wfu6_285", Cm = "_chatHeaderName_3wfu6_298", wm = "_messageList_3wfu6_305", Sm = "_messageRow_3wfu6_314", Tm = "_messageRowUser_3wfu6_320", Im = "_messageAvatar_3wfu6_324", xm = "_messageBubble_3wfu6_337", Am = "_messageBubbleUser_3wfu6_347", Bm = "_messageBubbleAssistant_3wfu6_353", Lm = "_chatEmpty_3wfu6_361", Mm = "_inputArea_3wfu6_371", $m = "_modeBar_3wfu6_379", Rm = "_toolToggleBtn_3wfu6_385", Dm = "_imagePreviewBar_3wfu6_411", Em = "_imagePreviewItem_3wfu6_418", Pm = "_imagePreviewRemove_3wfu6_434", Om = "_msgImages_3wfu6_465", Hm = "_msgImageThumb_3wfu6_472", jm = "_inputBox_3wfu6_480", Fm = "_streamingIndicator_3wfu6_521", Gm = "_sessionCreateRow_3wfu6_529", zm = "_sessionCreateInput_3wfu6_540", Um = "_sessionCreateConfirm_3wfu6_555", Wm = "_sessionCreateCancel_3wfu6_574", qm = "_sessionExpandBtn_3wfu6_596", Km = "_reasoningBlock_3wfu6_641", Vm = "_reasoningSummary_3wfu6_649", Jm = "_reasoningContent_3wfu6_674", Ym = "_pickerWrap_3wfu6_684", Qm = "_pickerChip_3wfu6_689", Xm = "_pickerCaret_3wfu6_711", Zm = "_pickerMenu_3wfu6_716", eh = "_pickerMenuItem_3wfu6_734", th = "_pickerItemActive_3wfu6_754", G = {
|
|
2859
|
+
container: Xu,
|
|
2860
|
+
sessionPanel: Zu,
|
|
2861
|
+
sessionHeader: em,
|
|
2862
|
+
sessionHeaderActions: tm,
|
|
2863
|
+
sessionBtnSm: nm,
|
|
2864
|
+
sessionList: am,
|
|
2865
|
+
sessionItem: sm,
|
|
2866
|
+
sessionItemActive: lm,
|
|
2867
|
+
sessionItemTitle: om,
|
|
2868
|
+
sessionRenameBtn: im,
|
|
2869
|
+
sessionDeleteBtn: rm,
|
|
2870
|
+
sessionEmpty: cm,
|
|
2871
|
+
sessionTabBar: dm,
|
|
2872
|
+
sessionTab: um,
|
|
2873
|
+
sessionTabActive: mm,
|
|
2874
|
+
sessionGroup: hm,
|
|
2875
|
+
sessionGroupHeader: pm,
|
|
2876
|
+
sessionGroupArrow: _m,
|
|
2877
|
+
sessionGroupName: gm,
|
|
2878
|
+
sessionGroupCount: fm,
|
|
2879
|
+
sessionItemNested: ym,
|
|
2880
|
+
chatPanel: vm,
|
|
2881
|
+
scrollTopBtn: bm,
|
|
2882
|
+
scrollTopBtnVisible: Nm,
|
|
2883
|
+
chatHeader: km,
|
|
2884
|
+
chatHeaderName: Cm,
|
|
2885
|
+
messageList: wm,
|
|
2886
|
+
messageRow: Sm,
|
|
2887
|
+
messageRowUser: Tm,
|
|
2888
|
+
messageAvatar: Im,
|
|
2889
|
+
messageBubble: xm,
|
|
2890
|
+
messageBubbleUser: Am,
|
|
2891
|
+
messageBubbleAssistant: Bm,
|
|
2892
|
+
chatEmpty: Lm,
|
|
2893
|
+
inputArea: Mm,
|
|
2894
|
+
modeBar: $m,
|
|
2895
|
+
toolToggleBtn: Rm,
|
|
2896
|
+
imagePreviewBar: Dm,
|
|
2897
|
+
imagePreviewItem: Em,
|
|
2898
|
+
imagePreviewRemove: Pm,
|
|
2899
|
+
msgImages: Om,
|
|
2900
|
+
msgImageThumb: Hm,
|
|
2901
|
+
inputBox: jm,
|
|
2902
|
+
streamingIndicator: Fm,
|
|
2903
|
+
sessionCreateRow: Gm,
|
|
2904
|
+
sessionCreateInput: zm,
|
|
2905
|
+
sessionCreateConfirm: Um,
|
|
2906
|
+
sessionCreateCancel: Wm,
|
|
2907
|
+
sessionExpandBtn: qm,
|
|
2908
|
+
reasoningBlock: Km,
|
|
2909
|
+
reasoningSummary: Vm,
|
|
2910
|
+
reasoningContent: Jm,
|
|
2911
|
+
pickerWrap: Ym,
|
|
2912
|
+
pickerChip: Qm,
|
|
2913
|
+
pickerCaret: Xm,
|
|
2914
|
+
pickerMenu: Zm,
|
|
2915
|
+
pickerMenuItem: eh,
|
|
2916
|
+
pickerItemActive: th
|
|
2902
2917
|
}, Sa = [
|
|
2903
2918
|
"#2F70F1",
|
|
2904
2919
|
"#52c41a",
|
|
@@ -2909,7 +2924,7 @@ const Yu = "_container_3wfu6_1", Qu = "_sessionPanel_3wfu6_8", Xu = "_sessionHea
|
|
|
2909
2924
|
"#f5222d",
|
|
2910
2925
|
"#faad14"
|
|
2911
2926
|
];
|
|
2912
|
-
function
|
|
2927
|
+
function Dn(t) {
|
|
2913
2928
|
let s = 0;
|
|
2914
2929
|
for (let a = 0; a < t.length; a++) s = s * 31 + t.charCodeAt(a) | 0;
|
|
2915
2930
|
return Sa[Math.abs(s) % Sa.length];
|
|
@@ -2917,7 +2932,7 @@ function Rn(t) {
|
|
|
2917
2932
|
function vn(t) {
|
|
2918
2933
|
return t ? t.charAt(0).toUpperCase() : "?";
|
|
2919
2934
|
}
|
|
2920
|
-
function
|
|
2935
|
+
function nh({ content: t }) {
|
|
2921
2936
|
const s = Ao(t);
|
|
2922
2937
|
return /* @__PURE__ */ e(Ie, { children: s.map((a, l) => a.type === "reasoning" ? /* @__PURE__ */ n("details", { className: G.reasoningBlock, children: [
|
|
2923
2938
|
/* @__PURE__ */ n("summary", { className: G.reasoningSummary, children: [
|
|
@@ -2926,10 +2941,10 @@ function eh({ content: t }) {
|
|
|
2926
2941
|
] }),
|
|
2927
2942
|
/* @__PURE__ */ e("div", { className: G.reasoningContent, children: a.text })
|
|
2928
2943
|
] }, l) : a.type === "text" ? /* @__PURE__ */ e(
|
|
2929
|
-
|
|
2944
|
+
Bn,
|
|
2930
2945
|
{
|
|
2931
|
-
remarkPlugins: [
|
|
2932
|
-
rehypePlugins: [
|
|
2946
|
+
remarkPlugins: [Ln],
|
|
2947
|
+
rehypePlugins: [ws],
|
|
2933
2948
|
children: a.text
|
|
2934
2949
|
},
|
|
2935
2950
|
l
|
|
@@ -2995,7 +3010,7 @@ function Ps({
|
|
|
2995
3010
|
}
|
|
2996
3011
|
let p = !1;
|
|
2997
3012
|
const z = g;
|
|
2998
|
-
return _e(null), W(!0),
|
|
3013
|
+
return _e(null), W(!0), qn(t.id, g, r).then((Z) => {
|
|
2999
3014
|
p || x(
|
|
3000
3015
|
Z.map((ie) => {
|
|
3001
3016
|
const { text: ze, urls: dt } = it(
|
|
@@ -3214,7 +3229,7 @@ ${tt}` : tt;
|
|
|
3214
3229
|
};
|
|
3215
3230
|
if (!t)
|
|
3216
3231
|
return /* @__PURE__ */ e("div", { className: G.container, children: /* @__PURE__ */ e("div", { className: G.chatPanel, children: /* @__PURE__ */ e("div", { className: G.chatEmpty, children: "请在左侧选择或创建一个个人 Agent" }) }) });
|
|
3217
|
-
const be =
|
|
3232
|
+
const be = Dn(t.agentCode || t.displayName), _ = Dn(
|
|
3218
3233
|
(u == null ? void 0 : u.username) || (u == null ? void 0 : u.display_name) || "user"
|
|
3219
3234
|
);
|
|
3220
3235
|
return /* @__PURE__ */ n("div", { className: G.container, children: [
|
|
@@ -3351,7 +3366,7 @@ ${tt}` : tt;
|
|
|
3351
3366
|
] }) : de ? (
|
|
3352
3367
|
/* owner 视角:按用户分组展示 */
|
|
3353
3368
|
Object.entries(te).map(([p, z]) => {
|
|
3354
|
-
const Z = xe.has(p), ie = Te(p), ze =
|
|
3369
|
+
const Z = xe.has(p), ie = Te(p), ze = Dn(p);
|
|
3355
3370
|
return /* @__PURE__ */ n("div", { className: G.sessionGroup, children: [
|
|
3356
3371
|
/* @__PURE__ */ n(
|
|
3357
3372
|
"div",
|
|
@@ -3758,7 +3773,7 @@ ${tt}` : tt;
|
|
|
3758
3773
|
{
|
|
3759
3774
|
className: `${G.messageBubble} ${p.role === "user" ? G.messageBubbleUser : G.messageBubbleAssistant}${p.role === "assistant" ? " markdown-body" : ""}`,
|
|
3760
3775
|
children: [
|
|
3761
|
-
p.role === "assistant" ? /* @__PURE__ */ e(
|
|
3776
|
+
p.role === "assistant" ? /* @__PURE__ */ e(nh, { content: p.content || "" }) : p.content || "...",
|
|
3762
3777
|
p.imageUrls && p.imageUrls.length > 0 && /* @__PURE__ */ e("div", { className: G.msgImages, children: p.imageUrls.map((z, Z) => /* @__PURE__ */ e(
|
|
3763
3778
|
"img",
|
|
3764
3779
|
{
|
|
@@ -3889,7 +3904,7 @@ ${tt}` : tt;
|
|
|
3889
3904
|
onClick: async () => {
|
|
3890
3905
|
if (!(!t || !g))
|
|
3891
3906
|
try {
|
|
3892
|
-
const p = await
|
|
3907
|
+
const p = await qn(
|
|
3893
3908
|
t.id,
|
|
3894
3909
|
g,
|
|
3895
3910
|
r
|
|
@@ -4051,56 +4066,56 @@ ${tt}` : tt;
|
|
|
4051
4066
|
] })
|
|
4052
4067
|
] });
|
|
4053
4068
|
}
|
|
4054
|
-
const
|
|
4055
|
-
page:
|
|
4056
|
-
pageHeader:
|
|
4057
|
-
headerLeft:
|
|
4058
|
-
pageTitle:
|
|
4059
|
-
headerMeta:
|
|
4060
|
-
headerDot:
|
|
4061
|
-
headerRight:
|
|
4062
|
-
scenarioSelect:
|
|
4063
|
-
kpiGrid:
|
|
4064
|
-
kpiCard:
|
|
4065
|
-
kpiCardClickable:
|
|
4066
|
-
kpiTop:
|
|
4067
|
-
kpiLabel:
|
|
4068
|
-
kpiIcon:
|
|
4069
|
-
chipBlue:
|
|
4070
|
-
chipCyan:
|
|
4071
|
-
chipGreen:
|
|
4072
|
-
chipAmber:
|
|
4073
|
-
kpiValue:
|
|
4074
|
-
kpiSuffix:
|
|
4075
|
-
rateTrack:
|
|
4076
|
-
rateFill:
|
|
4077
|
-
kpiFooter:
|
|
4078
|
-
kpiDeltaUp:
|
|
4079
|
-
kpiDeltaDown:
|
|
4080
|
-
kpiDeltaFlat:
|
|
4081
|
-
kpiDeltaLabel:
|
|
4082
|
-
chartCard:
|
|
4083
|
-
chartRow:
|
|
4084
|
-
chartCardNarrow:
|
|
4085
|
-
chartCardWide:
|
|
4086
|
-
chartHeader:
|
|
4087
|
-
chartTitle:
|
|
4088
|
-
chartBreadcrumb:
|
|
4089
|
-
chartBreadcrumbLink:
|
|
4090
|
-
chartBreadcrumbSep:
|
|
4091
|
-
chartSub:
|
|
4092
|
-
chartEmpty:
|
|
4093
|
-
},
|
|
4094
|
-
listHeader:
|
|
4095
|
-
listTitle:
|
|
4096
|
-
listTitleIcon:
|
|
4097
|
-
listSummary:
|
|
4098
|
-
listSummaryVal:
|
|
4099
|
-
filterBar:
|
|
4100
|
-
searchInput:
|
|
4101
|
-
filterCount:
|
|
4069
|
+
const ah = "_page_snv35_9", sh = "_pageHeader_snv35_15", lh = "_headerLeft_snv35_25", oh = "_pageTitle_snv35_32", ih = "_headerMeta_snv35_40", rh = "_headerDot_snv35_52", ch = "_headerRight_snv35_58", dh = "_scenarioSelect_snv35_66", uh = "_kpiGrid_snv35_72", mh = "_kpiCard_snv35_80", hh = "_kpiCardClickable_snv35_90", ph = "_kpiTop_snv35_107", _h = "_kpiLabel_snv35_115", gh = "_kpiIcon_snv35_122", fh = "_chipBlue_snv35_133", yh = "_chipCyan_snv35_138", vh = "_chipGreen_snv35_143", bh = "_chipAmber_snv35_148", Nh = "_kpiValue_snv35_154", kh = "_kpiSuffix_snv35_163", Ch = "_rateTrack_snv35_171", wh = "_rateFill_snv35_180", Sh = "_kpiFooter_snv35_188", Th = "_kpiDeltaUp_snv35_195", Ih = "_kpiDeltaDown_snv35_204", xh = "_kpiDeltaFlat_snv35_213", Ah = "_kpiDeltaLabel_snv35_221", Bh = "_chartCard_snv35_229", Lh = "_chartRow_snv35_238", Mh = "_chartCardNarrow_snv35_250", $h = "_chartCardWide_snv35_256", Rh = "_chartHeader_snv35_262", Dh = "_chartTitle_snv35_270", Eh = "_chartBreadcrumb_snv35_277", Ph = "_chartBreadcrumbLink_snv35_284", Oh = "_chartBreadcrumbSep_snv35_300", Hh = "_chartSub_snv35_306", jh = "_chartEmpty_snv35_312", ve = {
|
|
4070
|
+
page: ah,
|
|
4071
|
+
pageHeader: sh,
|
|
4072
|
+
headerLeft: lh,
|
|
4073
|
+
pageTitle: oh,
|
|
4074
|
+
headerMeta: ih,
|
|
4075
|
+
headerDot: rh,
|
|
4076
|
+
headerRight: ch,
|
|
4077
|
+
scenarioSelect: dh,
|
|
4078
|
+
kpiGrid: uh,
|
|
4079
|
+
kpiCard: mh,
|
|
4080
|
+
kpiCardClickable: hh,
|
|
4081
|
+
kpiTop: ph,
|
|
4082
|
+
kpiLabel: _h,
|
|
4083
|
+
kpiIcon: gh,
|
|
4084
|
+
chipBlue: fh,
|
|
4085
|
+
chipCyan: yh,
|
|
4086
|
+
chipGreen: vh,
|
|
4087
|
+
chipAmber: bh,
|
|
4088
|
+
kpiValue: Nh,
|
|
4089
|
+
kpiSuffix: kh,
|
|
4090
|
+
rateTrack: Ch,
|
|
4091
|
+
rateFill: wh,
|
|
4092
|
+
kpiFooter: Sh,
|
|
4093
|
+
kpiDeltaUp: Th,
|
|
4094
|
+
kpiDeltaDown: Ih,
|
|
4095
|
+
kpiDeltaFlat: xh,
|
|
4096
|
+
kpiDeltaLabel: Ah,
|
|
4097
|
+
chartCard: Bh,
|
|
4098
|
+
chartRow: Lh,
|
|
4099
|
+
chartCardNarrow: Mh,
|
|
4100
|
+
chartCardWide: $h,
|
|
4101
|
+
chartHeader: Rh,
|
|
4102
|
+
chartTitle: Dh,
|
|
4103
|
+
chartBreadcrumb: Eh,
|
|
4104
|
+
chartBreadcrumbLink: Ph,
|
|
4105
|
+
chartBreadcrumbSep: Oh,
|
|
4106
|
+
chartSub: Hh,
|
|
4107
|
+
chartEmpty: jh
|
|
4108
|
+
}, Fh = "_listHeader_1p45v_8", Gh = "_listTitle_1p45v_16", zh = "_listTitleIcon_1p45v_27", Uh = "_listSummary_1p45v_33", Wh = "_listSummaryVal_1p45v_42", qh = "_filterBar_1p45v_48", Kh = "_searchInput_1p45v_60", Vh = "_filterCount_1p45v_65", Ht = {
|
|
4109
|
+
listHeader: Fh,
|
|
4110
|
+
listTitle: Gh,
|
|
4111
|
+
listTitleIcon: zh,
|
|
4112
|
+
listSummary: Uh,
|
|
4113
|
+
listSummaryVal: Wh,
|
|
4114
|
+
filterBar: qh,
|
|
4115
|
+
searchInput: Kh,
|
|
4116
|
+
filterCount: Vh
|
|
4102
4117
|
};
|
|
4103
|
-
|
|
4118
|
+
In.use([
|
|
4104
4119
|
Oo,
|
|
4105
4120
|
Ho,
|
|
4106
4121
|
jo,
|
|
@@ -4110,7 +4125,7 @@ Tn.use([
|
|
|
4110
4125
|
Uo,
|
|
4111
4126
|
Wo
|
|
4112
4127
|
]);
|
|
4113
|
-
function
|
|
4128
|
+
function En({
|
|
4114
4129
|
option: t,
|
|
4115
4130
|
height: s = 260,
|
|
4116
4131
|
onEvents: a
|
|
@@ -4118,7 +4133,7 @@ function Dn({
|
|
|
4118
4133
|
const l = Ae(null), i = Ae(null), c = Ae(a);
|
|
4119
4134
|
return c.current = a, oe(() => {
|
|
4120
4135
|
if (!l.current) return;
|
|
4121
|
-
i.current || (i.current =
|
|
4136
|
+
i.current || (i.current = In.init(l.current));
|
|
4122
4137
|
const h = i.current;
|
|
4123
4138
|
h.setOption(t, !0);
|
|
4124
4139
|
const r = (m) => {
|
|
@@ -4142,18 +4157,18 @@ const Os = {
|
|
|
4142
4157
|
ACTIVE: "活跃",
|
|
4143
4158
|
CLOSED: "关单",
|
|
4144
4159
|
ARCHIVED: "归档"
|
|
4145
|
-
},
|
|
4160
|
+
}, Jh = {
|
|
4146
4161
|
ACTIVE: "green",
|
|
4147
4162
|
CLOSED: "red",
|
|
4148
4163
|
ARCHIVED: "default"
|
|
4149
|
-
},
|
|
4164
|
+
}, Yh = {
|
|
4150
4165
|
ACTIVE: "#1973cc",
|
|
4151
4166
|
// 活跃 → 品牌蓝(进行中语义)
|
|
4152
4167
|
CLOSED: "#52c41a",
|
|
4153
4168
|
// 关单 → 绿(完成语义)
|
|
4154
4169
|
ARCHIVED: "#bfbfbf"
|
|
4155
4170
|
// 归档 → 灰
|
|
4156
|
-
},
|
|
4171
|
+
}, Qh = "#bfbfbf", Pn = {
|
|
4157
4172
|
ai_effective: "#13c2c2",
|
|
4158
4173
|
ai_ineffective: "#ff7875",
|
|
4159
4174
|
unlabeled: "#bfbfbf"
|
|
@@ -4164,8 +4179,8 @@ function Ta(t, s) {
|
|
|
4164
4179
|
function Ia(t) {
|
|
4165
4180
|
return String(t).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
4166
4181
|
}
|
|
4167
|
-
const
|
|
4168
|
-
function
|
|
4182
|
+
const On = "__no_scenario__", Hs = "ft_personal_stats_scenario_codes";
|
|
4183
|
+
function Xh() {
|
|
4169
4184
|
try {
|
|
4170
4185
|
const t = localStorage.getItem(Hs);
|
|
4171
4186
|
if (!t) return [];
|
|
@@ -4181,7 +4196,7 @@ function xa(t) {
|
|
|
4181
4196
|
} catch {
|
|
4182
4197
|
}
|
|
4183
4198
|
}
|
|
4184
|
-
const
|
|
4199
|
+
const Zh = [
|
|
4185
4200
|
{
|
|
4186
4201
|
key: "ppt-creation",
|
|
4187
4202
|
icon: /* @__PURE__ */ e(pl, {}),
|
|
@@ -4261,7 +4276,7 @@ const Qh = [
|
|
|
4261
4276
|
}
|
|
4262
4277
|
}
|
|
4263
4278
|
];
|
|
4264
|
-
function
|
|
4279
|
+
function ep({
|
|
4265
4280
|
scenario: t,
|
|
4266
4281
|
onClose: s,
|
|
4267
4282
|
onCreated: a
|
|
@@ -4380,7 +4395,7 @@ function Aa({
|
|
|
4380
4395
|
gridTemplateColumns: "repeat(auto-fill, minmax(340px, 1fr))",
|
|
4381
4396
|
gap: 16
|
|
4382
4397
|
},
|
|
4383
|
-
children:
|
|
4398
|
+
children: Zh.map((l) => /* @__PURE__ */ n(
|
|
4384
4399
|
Mo,
|
|
4385
4400
|
{
|
|
4386
4401
|
hoverable: !0,
|
|
@@ -4413,7 +4428,7 @@ function Aa({
|
|
|
4413
4428
|
}
|
|
4414
4429
|
),
|
|
4415
4430
|
s && /* @__PURE__ */ e(
|
|
4416
|
-
|
|
4431
|
+
ep,
|
|
4417
4432
|
{
|
|
4418
4433
|
scenario: s,
|
|
4419
4434
|
onClose: () => a(null),
|
|
@@ -4634,7 +4649,7 @@ function Ba({
|
|
|
4634
4649
|
render: (y) => /* @__PURE__ */ e(
|
|
4635
4650
|
ge,
|
|
4636
4651
|
{
|
|
4637
|
-
color:
|
|
4652
|
+
color: Jh[y] || "default",
|
|
4638
4653
|
style: { borderRadius: 4, minWidth: 48, textAlign: "center" },
|
|
4639
4654
|
children: Os[y] || y
|
|
4640
4655
|
}
|
|
@@ -4697,11 +4712,11 @@ function La({
|
|
|
4697
4712
|
onNavigateToProjects: a
|
|
4698
4713
|
}) {
|
|
4699
4714
|
const [l, i] = o("30d"), [c, h] = o(null), [r, u] = o(
|
|
4700
|
-
() =>
|
|
4715
|
+
() => Xh()
|
|
4701
4716
|
), [m, d] = o("root"), g = Le(() => s != null && s.id ? t : [], [t, s]), b = Le(() => {
|
|
4702
4717
|
const w = /* @__PURE__ */ new Map();
|
|
4703
4718
|
for (const N of g) {
|
|
4704
|
-
const de = N.scenario_code ||
|
|
4719
|
+
const de = N.scenario_code || On;
|
|
4705
4720
|
w.has(de) || w.set(de, N.scenario_name || N.scenario_code || "未分类");
|
|
4706
4721
|
}
|
|
4707
4722
|
return Array.from(w.entries()).map(([N, de]) => ({ value: N, label: de })).sort((N, de) => N.label.localeCompare(de.label, "zh-Hans-CN"));
|
|
@@ -4717,7 +4732,7 @@ function La({
|
|
|
4717
4732
|
if (r.length === 0) return g;
|
|
4718
4733
|
const w = new Set(r);
|
|
4719
4734
|
return g.filter(
|
|
4720
|
-
(N) => w.has(N.scenario_code ||
|
|
4735
|
+
(N) => w.has(N.scenario_code || On)
|
|
4721
4736
|
);
|
|
4722
4737
|
}, [g, r]), { startDate: I, endDate: D } = Le(() => {
|
|
4723
4738
|
const w = ln();
|
|
@@ -4759,7 +4774,7 @@ function La({
|
|
|
4759
4774
|
for (const xe of O) {
|
|
4760
4775
|
const Be = xe.status || "UNKNOWN";
|
|
4761
4776
|
N[Be] = (N[Be] || 0) + 1, Be === "CLOSED" && K++, Be === "ACTIVE" && pe++;
|
|
4762
|
-
const Ce = xe.scenario_code ||
|
|
4777
|
+
const Ce = xe.scenario_code || On, Re = xe.scenario_name || xe.scenario_code || "未分类";
|
|
4763
4778
|
de[Ce] || (de[Ce] = { count: 0, name: Re }), de[Ce].count++;
|
|
4764
4779
|
}
|
|
4765
4780
|
const Ne = w > 0 ? Math.round(K / w * 100) : 0;
|
|
@@ -4794,20 +4809,20 @@ function La({
|
|
|
4794
4809
|
key: "ai_effective",
|
|
4795
4810
|
label: "AI有效",
|
|
4796
4811
|
count: w,
|
|
4797
|
-
color:
|
|
4812
|
+
color: Pn.ai_effective
|
|
4798
4813
|
},
|
|
4799
4814
|
{
|
|
4800
4815
|
key: "ai_ineffective",
|
|
4801
4816
|
label: "AI无效",
|
|
4802
4817
|
count: N,
|
|
4803
|
-
color:
|
|
4818
|
+
color: Pn.ai_ineffective
|
|
4804
4819
|
}
|
|
4805
4820
|
];
|
|
4806
4821
|
return de > 0 && pe.push({
|
|
4807
4822
|
key: "unlabeled",
|
|
4808
4823
|
label: "未标注",
|
|
4809
4824
|
count: de,
|
|
4810
|
-
color:
|
|
4825
|
+
color: Pn.unlabeled
|
|
4811
4826
|
}), {
|
|
4812
4827
|
closedTotal: K,
|
|
4813
4828
|
rows: pe.filter((Ne) => Ne.count > 0)
|
|
@@ -4949,7 +4964,7 @@ function La({
|
|
|
4949
4964
|
itemStyle: { color: "#faad14" },
|
|
4950
4965
|
lineStyle: { color: "#faad14", width: 2 },
|
|
4951
4966
|
areaStyle: {
|
|
4952
|
-
color: new
|
|
4967
|
+
color: new In.graphic.LinearGradient(0, 0, 0, 1, [
|
|
4953
4968
|
{ offset: 0, color: "rgba(250, 173, 20, 0.16)" },
|
|
4954
4969
|
{ offset: 1, color: "rgba(250, 173, 20, 0)" }
|
|
4955
4970
|
])
|
|
@@ -4965,7 +4980,7 @@ function La({
|
|
|
4965
4980
|
})) : k.map((K) => ({
|
|
4966
4981
|
name: K.label,
|
|
4967
4982
|
value: K.count,
|
|
4968
|
-
color:
|
|
4983
|
+
color: Yh[K.status] || Qh
|
|
4969
4984
|
})), de = w ? v.closedTotal : H.total;
|
|
4970
4985
|
return {
|
|
4971
4986
|
tooltip: {
|
|
@@ -5055,7 +5070,7 @@ function La({
|
|
|
5055
5070
|
// 品牌蓝横向渐变 + 右端圆角,统一视觉语言
|
|
5056
5071
|
itemStyle: {
|
|
5057
5072
|
borderRadius: [0, 8, 8, 0],
|
|
5058
|
-
color: new
|
|
5073
|
+
color: new In.graphic.LinearGradient(0, 0, 1, 0, [
|
|
5059
5074
|
{ offset: 0, color: "#1973cc" },
|
|
5060
5075
|
{ offset: 1, color: "#69aae8" }
|
|
5061
5076
|
])
|
|
@@ -5247,7 +5262,7 @@ function La({
|
|
|
5247
5262
|
/* @__PURE__ */ e("span", { className: ve.chartTitle, children: "每日趋势" }),
|
|
5248
5263
|
/* @__PURE__ */ e("span", { className: ve.chartSub, children: "新建 / 关单 / 累计 / AI 有效性" })
|
|
5249
5264
|
] }),
|
|
5250
|
-
$.length > 0 ? /* @__PURE__ */ e(
|
|
5265
|
+
$.length > 0 ? /* @__PURE__ */ e(En, { option: ue, height: 300 }) : (
|
|
5251
5266
|
// 数据为空:固定高度占位,保持布局稳定
|
|
5252
5267
|
/* @__PURE__ */ e("div", { className: ve.chartEmpty, children: /* @__PURE__ */ e(
|
|
5253
5268
|
vt,
|
|
@@ -5280,7 +5295,7 @@ function La({
|
|
|
5280
5295
|
H.closedCount > 0 && /* @__PURE__ */ e("span", { className: ve.chartSub, children: "点击关单可下钻" })
|
|
5281
5296
|
] }) }),
|
|
5282
5297
|
(m === "root" ? k.length > 0 : v.rows.length > 0) ? /* @__PURE__ */ e(
|
|
5283
|
-
|
|
5298
|
+
En,
|
|
5284
5299
|
{
|
|
5285
5300
|
option: fe,
|
|
5286
5301
|
height: 240,
|
|
@@ -5302,7 +5317,7 @@ function La({
|
|
|
5302
5317
|
Y.length > 0 ? (
|
|
5303
5318
|
// 数据非空:横向条形图,高度随场景数自适应(每条 38px,最小 240)
|
|
5304
5319
|
/* @__PURE__ */ e(
|
|
5305
|
-
|
|
5320
|
+
En,
|
|
5306
5321
|
{
|
|
5307
5322
|
option: V,
|
|
5308
5323
|
height: Math.max(240, Y.length * 38 + 24)
|
|
@@ -5421,13 +5436,13 @@ function Qn({
|
|
|
5421
5436
|
}
|
|
5422
5437
|
);
|
|
5423
5438
|
}
|
|
5424
|
-
const
|
|
5425
|
-
readOnlyCodeView:
|
|
5426
|
-
header:
|
|
5427
|
-
title:
|
|
5428
|
-
copyButton:
|
|
5429
|
-
pre:
|
|
5430
|
-
},
|
|
5439
|
+
const tp = "_readOnlyCodeView_ioz80_1", np = "_header_ioz80_10", ap = "_title_ioz80_20", sp = "_copyButton_ioz80_25", lp = "_pre_ioz80_39", _n = {
|
|
5440
|
+
readOnlyCodeView: tp,
|
|
5441
|
+
header: np,
|
|
5442
|
+
title: ap,
|
|
5443
|
+
copyButton: sp,
|
|
5444
|
+
pre: lp
|
|
5445
|
+
}, op = ({
|
|
5431
5446
|
code: t,
|
|
5432
5447
|
value: s,
|
|
5433
5448
|
language: a,
|
|
@@ -5468,57 +5483,57 @@ const Zh = "_readOnlyCodeView_ioz80_1", ep = "_header_ioz80_10", tp = "_title_io
|
|
|
5468
5483
|
]
|
|
5469
5484
|
}
|
|
5470
5485
|
);
|
|
5471
|
-
},
|
|
5472
|
-
root:
|
|
5473
|
-
toolsLayout:
|
|
5474
|
-
toolSidebar:
|
|
5475
|
-
toolGroup:
|
|
5476
|
-
toolGroupTitle:
|
|
5477
|
-
toolItem:
|
|
5478
|
-
toolItemActive:
|
|
5479
|
-
toolIcon:
|
|
5480
|
-
toolLabel:
|
|
5481
|
-
toolInfo:
|
|
5482
|
-
toolDesc:
|
|
5483
|
-
toolPanel:
|
|
5484
|
-
websiteCard:
|
|
5485
|
-
websiteLink:
|
|
5486
|
-
outputArea:
|
|
5487
|
-
panelLabel:
|
|
5488
|
-
diffBox:
|
|
5489
|
-
jwtPre:
|
|
5490
|
-
jwtPayload:
|
|
5491
|
-
jwtRow:
|
|
5492
|
-
jwtKey:
|
|
5493
|
-
jwtVal:
|
|
5494
|
-
hashResult:
|
|
5495
|
-
hashCode:
|
|
5496
|
-
caseRow:
|
|
5497
|
-
parsedBox:
|
|
5498
|
-
cronDesc:
|
|
5499
|
-
cronNext:
|
|
5500
|
-
cronExample:
|
|
5501
|
-
colorPicker:
|
|
5502
|
-
colorPreview:
|
|
5503
|
-
colorRow:
|
|
5504
|
-
httpHeaderRow:
|
|
5505
|
-
httpResp:
|
|
5506
|
-
httpRespMeta:
|
|
5507
|
-
scriptConsole:
|
|
5508
|
-
scriptConsoleHeader:
|
|
5509
|
-
scriptConsoleBody:
|
|
5510
|
-
scriptEmpty:
|
|
5511
|
-
scriptLine:
|
|
5512
|
-
scriptTime:
|
|
5513
|
-
scriptLevelBadge:
|
|
5514
|
-
scriptContent:
|
|
5515
|
-
scriptLog:
|
|
5516
|
-
scriptInfo:
|
|
5517
|
-
scriptDebug:
|
|
5518
|
-
scriptWarn:
|
|
5519
|
-
scriptError:
|
|
5520
|
-
scriptReturn:
|
|
5521
|
-
}, { TextArea: Fe } = He, { Text: Et, Title:
|
|
5486
|
+
}, ip = "_root_teqr2_6", rp = "_toolsLayout_teqr2_24", cp = "_toolSidebar_teqr2_33", dp = "_toolGroup_teqr2_42", up = "_toolGroupTitle_teqr2_46", mp = "_toolItem_teqr2_56", hp = "_toolItemActive_teqr2_71", pp = "_toolIcon_teqr2_76", _p = "_toolLabel_teqr2_80", gp = "_toolInfo_teqr2_102", fp = "_toolDesc_teqr2_113", yp = "_toolPanel_teqr2_122", vp = "_websiteCard_teqr2_131", bp = "_websiteLink_teqr2_140", Np = "_outputArea_teqr2_145", kp = "_panelLabel_teqr2_150", Cp = "_diffBox_teqr2_157", wp = "_jwtPre_teqr2_305", Sp = "_jwtPayload_teqr2_318", Tp = "_jwtRow_teqr2_324", Ip = "_jwtKey_teqr2_336", xp = "_jwtVal_teqr2_343", Ap = "_hashResult_teqr2_351", Bp = "_hashCode_teqr2_361", Lp = "_caseRow_teqr2_370", Mp = "_parsedBox_teqr2_381", $p = "_cronDesc_teqr2_393", Rp = "_cronNext_teqr2_404", Dp = "_cronExample_teqr2_414", Ep = "_colorPicker_teqr2_426", Pp = "_colorPreview_teqr2_436", Op = "_colorRow_teqr2_443", Hp = "_httpHeaderRow_teqr2_454", jp = "_httpResp_teqr2_461", Fp = "_httpRespMeta_teqr2_467", Gp = "_scriptConsole_teqr2_498", zp = "_scriptConsoleHeader_teqr2_508", Up = "_scriptConsoleBody_teqr2_521", Wp = "_scriptEmpty_teqr2_528", qp = "_scriptLine_teqr2_536", Kp = "_scriptTime_teqr2_546", Vp = "_scriptLevelBadge_teqr2_553", Jp = "_scriptContent_teqr2_560", Yp = "_scriptLog_teqr2_570", Qp = "_scriptInfo_teqr2_574", Xp = "_scriptDebug_teqr2_578", Zp = "_scriptWarn_teqr2_582", e_ = "_scriptError_teqr2_587", t_ = "_scriptReturn_teqr2_592", ee = {
|
|
5487
|
+
root: ip,
|
|
5488
|
+
toolsLayout: rp,
|
|
5489
|
+
toolSidebar: cp,
|
|
5490
|
+
toolGroup: dp,
|
|
5491
|
+
toolGroupTitle: up,
|
|
5492
|
+
toolItem: mp,
|
|
5493
|
+
toolItemActive: hp,
|
|
5494
|
+
toolIcon: pp,
|
|
5495
|
+
toolLabel: _p,
|
|
5496
|
+
toolInfo: gp,
|
|
5497
|
+
toolDesc: fp,
|
|
5498
|
+
toolPanel: yp,
|
|
5499
|
+
websiteCard: vp,
|
|
5500
|
+
websiteLink: bp,
|
|
5501
|
+
outputArea: Np,
|
|
5502
|
+
panelLabel: kp,
|
|
5503
|
+
diffBox: Cp,
|
|
5504
|
+
jwtPre: wp,
|
|
5505
|
+
jwtPayload: Sp,
|
|
5506
|
+
jwtRow: Tp,
|
|
5507
|
+
jwtKey: Ip,
|
|
5508
|
+
jwtVal: xp,
|
|
5509
|
+
hashResult: Ap,
|
|
5510
|
+
hashCode: Bp,
|
|
5511
|
+
caseRow: Lp,
|
|
5512
|
+
parsedBox: Mp,
|
|
5513
|
+
cronDesc: $p,
|
|
5514
|
+
cronNext: Rp,
|
|
5515
|
+
cronExample: Dp,
|
|
5516
|
+
colorPicker: Ep,
|
|
5517
|
+
colorPreview: Pp,
|
|
5518
|
+
colorRow: Op,
|
|
5519
|
+
httpHeaderRow: Hp,
|
|
5520
|
+
httpResp: jp,
|
|
5521
|
+
httpRespMeta: Fp,
|
|
5522
|
+
scriptConsole: Gp,
|
|
5523
|
+
scriptConsoleHeader: zp,
|
|
5524
|
+
scriptConsoleBody: Up,
|
|
5525
|
+
scriptEmpty: Wp,
|
|
5526
|
+
scriptLine: qp,
|
|
5527
|
+
scriptTime: Kp,
|
|
5528
|
+
scriptLevelBadge: Vp,
|
|
5529
|
+
scriptContent: Jp,
|
|
5530
|
+
scriptLog: Yp,
|
|
5531
|
+
scriptInfo: Qp,
|
|
5532
|
+
scriptDebug: Xp,
|
|
5533
|
+
scriptWarn: Zp,
|
|
5534
|
+
scriptError: e_,
|
|
5535
|
+
scriptReturn: t_
|
|
5536
|
+
}, { TextArea: Fe } = He, { Text: Et, Title: n_ } = Eo, js = [
|
|
5522
5537
|
{
|
|
5523
5538
|
key: "formatter",
|
|
5524
5539
|
label: "格式化",
|
|
@@ -5700,7 +5715,7 @@ function bt({ text: t }) {
|
|
|
5700
5715
|
}
|
|
5701
5716
|
) });
|
|
5702
5717
|
}
|
|
5703
|
-
function
|
|
5718
|
+
function Mn({
|
|
5704
5719
|
label: t,
|
|
5705
5720
|
input: s,
|
|
5706
5721
|
output: a,
|
|
@@ -5827,7 +5842,7 @@ function Gs() {
|
|
|
5827
5842
|
)
|
|
5828
5843
|
] });
|
|
5829
5844
|
}
|
|
5830
|
-
function
|
|
5845
|
+
function a_() {
|
|
5831
5846
|
const [t, s] = o(""), [a, l] = o(""), [i, c] = o(""), h = F(() => {
|
|
5832
5847
|
try {
|
|
5833
5848
|
const m = new DOMParser().parseFromString(t, "application/xml"), d = m.querySelector("parsererror");
|
|
@@ -5855,7 +5870,7 @@ function t_() {
|
|
|
5855
5870
|
}
|
|
5856
5871
|
}, [t]);
|
|
5857
5872
|
return /* @__PURE__ */ e(
|
|
5858
|
-
|
|
5873
|
+
Mn,
|
|
5859
5874
|
{
|
|
5860
5875
|
buttons: /* @__PURE__ */ n(Ie, { children: [
|
|
5861
5876
|
/* @__PURE__ */ e(se, { type: "primary", onClick: h, children: "格式化" }),
|
|
@@ -5884,7 +5899,7 @@ function t_() {
|
|
|
5884
5899
|
}
|
|
5885
5900
|
);
|
|
5886
5901
|
}
|
|
5887
|
-
function
|
|
5902
|
+
function s_(t) {
|
|
5888
5903
|
return Yo(t, {
|
|
5889
5904
|
language: "mysql",
|
|
5890
5905
|
// @ts-ignore
|
|
@@ -5894,10 +5909,10 @@ function n_(t) {
|
|
|
5894
5909
|
linesBetweenQueries: 2
|
|
5895
5910
|
});
|
|
5896
5911
|
}
|
|
5897
|
-
function
|
|
5912
|
+
function l_() {
|
|
5898
5913
|
const [t, s] = o(""), [a, l] = o(""), [i, c] = o(""), h = F(() => {
|
|
5899
5914
|
try {
|
|
5900
|
-
l(
|
|
5915
|
+
l(s_(t)), c("");
|
|
5901
5916
|
} catch (u) {
|
|
5902
5917
|
l(""), c(u instanceof Error ? u.message : "SQL 格式化失败");
|
|
5903
5918
|
}
|
|
@@ -5905,7 +5920,7 @@ function a_() {
|
|
|
5905
5920
|
l(t.replace(/\s+/g, " ").trim()), c("");
|
|
5906
5921
|
}, [t]);
|
|
5907
5922
|
return /* @__PURE__ */ e(
|
|
5908
|
-
|
|
5923
|
+
Mn,
|
|
5909
5924
|
{
|
|
5910
5925
|
buttons: /* @__PURE__ */ n(Ie, { children: [
|
|
5911
5926
|
/* @__PURE__ */ e(se, { type: "primary", onClick: h, children: "格式化" }),
|
|
@@ -5922,7 +5937,7 @@ function a_() {
|
|
|
5922
5937
|
}
|
|
5923
5938
|
),
|
|
5924
5939
|
output: /* @__PURE__ */ e(
|
|
5925
|
-
|
|
5940
|
+
op,
|
|
5926
5941
|
{
|
|
5927
5942
|
value: a,
|
|
5928
5943
|
language: "sql",
|
|
@@ -5933,7 +5948,7 @@ function a_() {
|
|
|
5933
5948
|
}
|
|
5934
5949
|
);
|
|
5935
5950
|
}
|
|
5936
|
-
function
|
|
5951
|
+
function o_() {
|
|
5937
5952
|
const [t, s] = o(""), [a, l] = o(""), i = F(() => {
|
|
5938
5953
|
let h = 0;
|
|
5939
5954
|
const r = t.replace(/>\s*</g, `>
|
|
@@ -5953,7 +5968,7 @@ function s_() {
|
|
|
5953
5968
|
l(t.replace(/\s+/g, " ").replace(/> </g, "><").trim());
|
|
5954
5969
|
}, [t]);
|
|
5955
5970
|
return /* @__PURE__ */ e(
|
|
5956
|
-
|
|
5971
|
+
Mn,
|
|
5957
5972
|
{
|
|
5958
5973
|
buttons: /* @__PURE__ */ n(Ie, { children: [
|
|
5959
5974
|
/* @__PURE__ */ e(se, { type: "primary", onClick: i, children: "格式化" }),
|
|
@@ -5981,7 +5996,7 @@ function s_() {
|
|
|
5981
5996
|
}
|
|
5982
5997
|
);
|
|
5983
5998
|
}
|
|
5984
|
-
function
|
|
5999
|
+
function i_() {
|
|
5985
6000
|
const [t, s] = o(""), [a, l] = o(""), [i, c] = o(""), h = Ae(null), r = F(() => {
|
|
5986
6001
|
try {
|
|
5987
6002
|
l(btoa(unescape(encodeURIComponent(t)))), c("");
|
|
@@ -6066,7 +6081,7 @@ function l_() {
|
|
|
6066
6081
|
) })
|
|
6067
6082
|
] });
|
|
6068
6083
|
}
|
|
6069
|
-
function
|
|
6084
|
+
function r_() {
|
|
6070
6085
|
const [t, s] = o(""), [a, l] = o(""), [i, c] = o(null), h = F(() => {
|
|
6071
6086
|
l(encodeURIComponent(t)), c(null);
|
|
6072
6087
|
}, [t]), r = F(() => {
|
|
@@ -6132,13 +6147,13 @@ function o_() {
|
|
|
6132
6147
|
] }, m)) })
|
|
6133
6148
|
] });
|
|
6134
6149
|
}
|
|
6135
|
-
function
|
|
6150
|
+
function c_() {
|
|
6136
6151
|
const [t, s] = o(""), [a, l] = o(""), i = (h) => h.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), c = (h) => {
|
|
6137
6152
|
const r = document.createElement("textarea");
|
|
6138
6153
|
return r.innerHTML = h, r.value;
|
|
6139
6154
|
};
|
|
6140
6155
|
return /* @__PURE__ */ e(
|
|
6141
|
-
|
|
6156
|
+
Mn,
|
|
6142
6157
|
{
|
|
6143
6158
|
buttons: /* @__PURE__ */ n(Ie, { children: [
|
|
6144
6159
|
/* @__PURE__ */ e(se, { type: "primary", onClick: () => l(i(t)), children: "转义" }),
|
|
@@ -6166,7 +6181,7 @@ function i_() {
|
|
|
6166
6181
|
}
|
|
6167
6182
|
);
|
|
6168
6183
|
}
|
|
6169
|
-
function
|
|
6184
|
+
function d_() {
|
|
6170
6185
|
const [t, s] = o(""), a = Le(() => {
|
|
6171
6186
|
if (!t.trim()) return null;
|
|
6172
6187
|
const c = t.split(".");
|
|
@@ -6246,18 +6261,18 @@ function r_() {
|
|
|
6246
6261
|
] })
|
|
6247
6262
|
] });
|
|
6248
6263
|
}
|
|
6249
|
-
async function
|
|
6264
|
+
async function u_(t, s) {
|
|
6250
6265
|
if (t === "MD5")
|
|
6251
6266
|
return (await import("./spark-md5-Dld54a-T.js").then((c) => c.s)).default.hash(s);
|
|
6252
6267
|
const a = new TextEncoder(), l = await crypto.subtle.digest(t, a.encode(s));
|
|
6253
6268
|
return Array.from(new Uint8Array(l)).map((i) => i.toString(16).padStart(2, "0")).join("");
|
|
6254
6269
|
}
|
|
6255
|
-
function
|
|
6270
|
+
function m_() {
|
|
6256
6271
|
const [t, s] = o(""), [a, l] = o("SHA-256"), [i, c] = o(""), [h, r] = o(!1), u = F(async () => {
|
|
6257
6272
|
if (t) {
|
|
6258
6273
|
r(!0);
|
|
6259
6274
|
try {
|
|
6260
|
-
c(await
|
|
6275
|
+
c(await u_(a, t));
|
|
6261
6276
|
} catch {
|
|
6262
6277
|
we.error("计算失败");
|
|
6263
6278
|
} finally {
|
|
@@ -6296,7 +6311,7 @@ function d_() {
|
|
|
6296
6311
|
] })
|
|
6297
6312
|
] });
|
|
6298
6313
|
}
|
|
6299
|
-
async function
|
|
6314
|
+
async function h_(t, s, a) {
|
|
6300
6315
|
const l = new TextEncoder(), i = await crypto.subtle.importKey(
|
|
6301
6316
|
"raw",
|
|
6302
6317
|
l.encode(s),
|
|
@@ -6306,7 +6321,7 @@ async function u_(t, s, a) {
|
|
|
6306
6321
|
), c = await crypto.subtle.sign("HMAC", i, l.encode(a));
|
|
6307
6322
|
return Array.from(new Uint8Array(c)).map((h) => h.toString(16).padStart(2, "0")).join("");
|
|
6308
6323
|
}
|
|
6309
|
-
function
|
|
6324
|
+
function p_() {
|
|
6310
6325
|
const [t, s] = o(""), [a, l] = o(""), [i, c] = o("SHA-256"), [h, r] = o(""), [u, m] = o(!1), d = F(async () => {
|
|
6311
6326
|
if (!t || !a) {
|
|
6312
6327
|
we.warning("消息和密钥不能为空");
|
|
@@ -6314,7 +6329,7 @@ function m_() {
|
|
|
6314
6329
|
}
|
|
6315
6330
|
m(!0);
|
|
6316
6331
|
try {
|
|
6317
|
-
r(await
|
|
6332
|
+
r(await h_(i, a, t));
|
|
6318
6333
|
} catch {
|
|
6319
6334
|
we.error("计算失败");
|
|
6320
6335
|
} finally {
|
|
@@ -6373,7 +6388,7 @@ function m_() {
|
|
|
6373
6388
|
] })
|
|
6374
6389
|
] });
|
|
6375
6390
|
}
|
|
6376
|
-
function
|
|
6391
|
+
function __(t, s) {
|
|
6377
6392
|
if (!t && !s) return { add: 0, remove: 0 };
|
|
6378
6393
|
const a = Ko(t, s);
|
|
6379
6394
|
let l = 0, i = 0;
|
|
@@ -6384,7 +6399,7 @@ function h_(t, s) {
|
|
|
6384
6399
|
}
|
|
6385
6400
|
return { add: l, remove: i };
|
|
6386
6401
|
}
|
|
6387
|
-
function
|
|
6402
|
+
function g_() {
|
|
6388
6403
|
const [t, s] = o(""), [a, l] = o(""), [i, c] = o(!0), [h, r] = o({ add: 0, remove: 0 }), u = Ae(null);
|
|
6389
6404
|
return oe(() => {
|
|
6390
6405
|
if (!t && !a) {
|
|
@@ -6392,7 +6407,7 @@ function p_() {
|
|
|
6392
6407
|
return;
|
|
6393
6408
|
}
|
|
6394
6409
|
return u.current && clearTimeout(u.current), u.current = setTimeout(() => {
|
|
6395
|
-
r(
|
|
6410
|
+
r(__(t, a));
|
|
6396
6411
|
}, 300), () => {
|
|
6397
6412
|
u.current && clearTimeout(u.current);
|
|
6398
6413
|
};
|
|
@@ -6483,27 +6498,27 @@ function p_() {
|
|
|
6483
6498
|
function zs(t) {
|
|
6484
6499
|
return t.replace(/[-_\s]+(.)/g, (s, a) => a.toUpperCase()).replace(/^./, (s) => s.toLowerCase());
|
|
6485
6500
|
}
|
|
6486
|
-
function
|
|
6501
|
+
function f_(t) {
|
|
6487
6502
|
const s = zs(t);
|
|
6488
6503
|
return s.charAt(0).toUpperCase() + s.slice(1);
|
|
6489
6504
|
}
|
|
6490
6505
|
function Xn(t) {
|
|
6491
6506
|
return t.replace(/([A-Z])/g, "_$1").replace(/[-\s]+/g, "_").replace(/^_/, "").toLowerCase();
|
|
6492
6507
|
}
|
|
6493
|
-
function
|
|
6508
|
+
function y_(t) {
|
|
6494
6509
|
return Xn(t).replace(/_/g, "-");
|
|
6495
6510
|
}
|
|
6496
|
-
function
|
|
6511
|
+
function v_(t) {
|
|
6497
6512
|
return t.replace(/[-_]/g, " ").replace(/\b\w/g, (s) => s.toUpperCase());
|
|
6498
6513
|
}
|
|
6499
|
-
function
|
|
6514
|
+
function b_() {
|
|
6500
6515
|
const [t, s] = o(""), a = Le(
|
|
6501
6516
|
() => [
|
|
6502
6517
|
{ label: "camelCase", value: zs(t) },
|
|
6503
|
-
{ label: "PascalCase", value:
|
|
6518
|
+
{ label: "PascalCase", value: f_(t) },
|
|
6504
6519
|
{ label: "snake_case", value: Xn(t) },
|
|
6505
|
-
{ label: "kebab-case", value:
|
|
6506
|
-
{ label: "Title Case", value:
|
|
6520
|
+
{ label: "kebab-case", value: y_(t) },
|
|
6521
|
+
{ label: "Title Case", value: v_(t) },
|
|
6507
6522
|
{ label: "UPPER_CASE", value: Xn(t).toUpperCase() },
|
|
6508
6523
|
{ label: "lower case", value: t.toLowerCase() },
|
|
6509
6524
|
{ label: "UPPER CASE", value: t.toUpperCase() }
|
|
@@ -6539,7 +6554,7 @@ function y_() {
|
|
|
6539
6554
|
)
|
|
6540
6555
|
] });
|
|
6541
6556
|
}
|
|
6542
|
-
function
|
|
6557
|
+
function N_() {
|
|
6543
6558
|
const [t, s] = o(""), a = Le(() => {
|
|
6544
6559
|
const l = t.length, i = t ? t.split(`
|
|
6545
6560
|
`).length : 0, c = t.trim() ? t.trim().split(/\s+/).length : 0, h = (t.match(/[\u4e00-\u9fa5]/g) || []).length, r = (t.match(/[a-zA-Z]/g) || []).length, u = (t.match(/[0-9]/g) || []).length, m = t.replace(/\s/g, "").length;
|
|
@@ -6575,7 +6590,7 @@ function v_() {
|
|
|
6575
6590
|
) }, l.title)) })
|
|
6576
6591
|
] });
|
|
6577
6592
|
}
|
|
6578
|
-
function
|
|
6593
|
+
function k_() {
|
|
6579
6594
|
const [t, s] = o(""), [a, l] = o("g"), [i, c] = o(""), [h, r] = o([]), [u, m] = o(""), d = F(() => {
|
|
6580
6595
|
try {
|
|
6581
6596
|
const g = [], b = new RegExp(t, a);
|
|
@@ -6653,7 +6668,7 @@ function b_() {
|
|
|
6653
6668
|
] }) : i && t ? /* @__PURE__ */ e(Et, { type: "secondary", children: "无匹配" }) : null
|
|
6654
6669
|
] });
|
|
6655
6670
|
}
|
|
6656
|
-
function
|
|
6671
|
+
function C_() {
|
|
6657
6672
|
const [t, s] = o([]), [a, l] = o(1), [i, c] = o(16), [h, r] = o([]), u = F(() => {
|
|
6658
6673
|
const d = [];
|
|
6659
6674
|
for (let g = 0; g < Math.max(1, Math.min(a, 50)); g++)
|
|
@@ -6752,7 +6767,7 @@ function N_() {
|
|
|
6752
6767
|
] })
|
|
6753
6768
|
] });
|
|
6754
6769
|
}
|
|
6755
|
-
function
|
|
6770
|
+
function w_() {
|
|
6756
6771
|
const [t, s] = o(String(Math.floor(Date.now() / 1e3))), [a, l] = o((/* @__PURE__ */ new Date()).toISOString().slice(0, 19)), [i, c] = o("local"), h = F(() => {
|
|
6757
6772
|
const m = Number(t);
|
|
6758
6773
|
if (!Number.isFinite(m)) {
|
|
@@ -6839,7 +6854,7 @@ function k_() {
|
|
|
6839
6854
|
})() })
|
|
6840
6855
|
] });
|
|
6841
6856
|
}
|
|
6842
|
-
function
|
|
6857
|
+
function S_() {
|
|
6843
6858
|
const [t, s] = o("0 9 * * 1-5"), [a, l] = o(
|
|
6844
6859
|
null
|
|
6845
6860
|
), [i, c] = o(""), h = F(async () => {
|
|
@@ -6908,11 +6923,11 @@ function C_() {
|
|
|
6908
6923
|
] })
|
|
6909
6924
|
] });
|
|
6910
6925
|
}
|
|
6911
|
-
function
|
|
6926
|
+
function T_(t) {
|
|
6912
6927
|
const s = t.replace("#", "").match(/^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i);
|
|
6913
6928
|
return s ? [parseInt(s[1], 16), parseInt(s[2], 16), parseInt(s[3], 16)] : null;
|
|
6914
6929
|
}
|
|
6915
|
-
function
|
|
6930
|
+
function I_(t, s, a) {
|
|
6916
6931
|
t /= 255, s /= 255, a /= 255;
|
|
6917
6932
|
const l = Math.max(t, s, a), i = Math.min(t, s, a);
|
|
6918
6933
|
let c = 0, h = 0;
|
|
@@ -6933,8 +6948,8 @@ function S_(t, s, a) {
|
|
|
6933
6948
|
}
|
|
6934
6949
|
return [Math.round(c * 360), Math.round(h * 100), Math.round(r * 100)];
|
|
6935
6950
|
}
|
|
6936
|
-
function
|
|
6937
|
-
const [t, s] = o("#4285f4"), [a, l] = o("#4285f4"), i =
|
|
6951
|
+
function x_() {
|
|
6952
|
+
const [t, s] = o("#4285f4"), [a, l] = o("#4285f4"), i = T_(t), c = i ? I_(...i) : null, h = (r) => {
|
|
6938
6953
|
s(r), /^#[0-9a-fA-F]{6}$/.test(r) && l(r);
|
|
6939
6954
|
};
|
|
6940
6955
|
return /* @__PURE__ */ n("div", { children: [
|
|
@@ -7001,7 +7016,7 @@ function T_() {
|
|
|
7001
7016
|
] })
|
|
7002
7017
|
] });
|
|
7003
7018
|
}
|
|
7004
|
-
function
|
|
7019
|
+
function A_() {
|
|
7005
7020
|
const [t, s] = o(""), [a, l] = o(""), i = Ae(null), c = F(async () => {
|
|
7006
7021
|
if (!t.trim()) {
|
|
7007
7022
|
we.warning("请输入内容");
|
|
@@ -7067,7 +7082,7 @@ function I_() {
|
|
|
7067
7082
|
] })
|
|
7068
7083
|
] });
|
|
7069
7084
|
}
|
|
7070
|
-
function
|
|
7085
|
+
function B_(t) {
|
|
7071
7086
|
var h, r, u;
|
|
7072
7087
|
const s = t.replace(/\\\n/g, " ").replace(/\s+/g, " ").trim().match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g) ?? [];
|
|
7073
7088
|
let a = "GET", l = "";
|
|
@@ -7089,12 +7104,12 @@ function x_(t) {
|
|
|
7089
7104
|
}
|
|
7090
7105
|
return { method: a, url: l, headers: i, body: c };
|
|
7091
7106
|
}
|
|
7092
|
-
function
|
|
7107
|
+
function L_(t, s, a, l) {
|
|
7093
7108
|
const i = [`curl -X ${t}`];
|
|
7094
7109
|
return a.filter((c) => c.enabled && c.key).forEach((c) => i.push(` -H '${c.key}: ${c.value}'`)), l && i.push(` -d '${l.replace(/'/g, "'\\''")}'`), i.push(` '${s}'`), i.join(` \\
|
|
7095
7110
|
`);
|
|
7096
7111
|
}
|
|
7097
|
-
const
|
|
7112
|
+
const M_ = [
|
|
7098
7113
|
"GET",
|
|
7099
7114
|
"POST",
|
|
7100
7115
|
"PUT",
|
|
@@ -7103,11 +7118,11 @@ const B_ = [
|
|
|
7103
7118
|
"HEAD",
|
|
7104
7119
|
"OPTIONS"
|
|
7105
7120
|
];
|
|
7106
|
-
function
|
|
7121
|
+
function $_() {
|
|
7107
7122
|
const [t, s] = o("GET"), [a, l] = o(""), [i, c] = o([
|
|
7108
7123
|
{ key: "Content-Type", value: "application/json", enabled: !0 }
|
|
7109
7124
|
]), [h, r] = o(""), [u, m] = o(""), [d, g] = o(!1), [b, M] = o(null), [x, I] = o(""), [D, O] = o(""), [ne, ae] = o(null), [W, A] = o("body"), [H, Y] = o(!1), k = F(() => {
|
|
7110
|
-
const V =
|
|
7125
|
+
const V = B_(u);
|
|
7111
7126
|
s(V.method), l(V.url), c(
|
|
7112
7127
|
V.headers.length ? V.headers : [{ key: "Content-Type", value: "application/json", enabled: !0 }]
|
|
7113
7128
|
), r(V.body), Y(!1), m(""), we.success("导入成功");
|
|
@@ -7116,7 +7131,7 @@ function L_() {
|
|
|
7116
7131
|
we.warning("请先填写 URL");
|
|
7117
7132
|
return;
|
|
7118
7133
|
}
|
|
7119
|
-
Fs(
|
|
7134
|
+
Fs(L_(t, a, i, h));
|
|
7120
7135
|
}, [t, a, i, h]), $ = F(async () => {
|
|
7121
7136
|
if (!a.trim()) {
|
|
7122
7137
|
we.warning("请先填写 URL");
|
|
@@ -7156,7 +7171,7 @@ function L_() {
|
|
|
7156
7171
|
value: t,
|
|
7157
7172
|
onChange: s,
|
|
7158
7173
|
style: { width: 120 },
|
|
7159
|
-
options:
|
|
7174
|
+
options: M_.map((V) => ({ value: V, label: V }))
|
|
7160
7175
|
}
|
|
7161
7176
|
),
|
|
7162
7177
|
/* @__PURE__ */ e(
|
|
@@ -7322,7 +7337,7 @@ function $a(t) {
|
|
|
7322
7337
|
}
|
|
7323
7338
|
return String(t);
|
|
7324
7339
|
}
|
|
7325
|
-
const
|
|
7340
|
+
const R_ = [
|
|
7326
7341
|
{
|
|
7327
7342
|
label: "整数排列",
|
|
7328
7343
|
code: `// 生成并打印小于 30 的质数
|
|
@@ -7362,7 +7377,7 @@ const batch = Array.from({length: 5}, uuid);
|
|
|
7362
7377
|
batch.forEach((id, i) => console.log(i + 1, id));`
|
|
7363
7378
|
}
|
|
7364
7379
|
];
|
|
7365
|
-
function
|
|
7380
|
+
function D_() {
|
|
7366
7381
|
const [t, s] = o(
|
|
7367
7382
|
`// 在浏览器内执行 JavaScript,支持 async/await
|
|
7368
7383
|
console.log("Hello, World!");
|
|
@@ -7430,7 +7445,7 @@ ${t}
|
|
|
7430
7445
|
return /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
|
|
7431
7446
|
/* @__PURE__ */ n("div", { children: [
|
|
7432
7447
|
/* @__PURE__ */ e("div", { className: ee.panelLabel, children: "快速预设" }),
|
|
7433
|
-
/* @__PURE__ */ e(et, { wrap: !0, children:
|
|
7448
|
+
/* @__PURE__ */ e(et, { wrap: !0, children: R_.map((d) => /* @__PURE__ */ e(se, { size: "small", onClick: () => s(d.code), children: d.label }, d.label)) })
|
|
7434
7449
|
] }),
|
|
7435
7450
|
/* @__PURE__ */ n("div", { children: [
|
|
7436
7451
|
/* @__PURE__ */ n(
|
|
@@ -7516,29 +7531,29 @@ ${t}
|
|
|
7516
7531
|
] })
|
|
7517
7532
|
] });
|
|
7518
7533
|
}
|
|
7519
|
-
const
|
|
7534
|
+
const E_ = {
|
|
7520
7535
|
json: Gs,
|
|
7521
|
-
xml:
|
|
7522
|
-
sql:
|
|
7523
|
-
"html-fmt":
|
|
7524
|
-
base64:
|
|
7525
|
-
url:
|
|
7526
|
-
"html-entity":
|
|
7527
|
-
jwt:
|
|
7528
|
-
hash:
|
|
7529
|
-
hmac:
|
|
7530
|
-
diff:
|
|
7531
|
-
case:
|
|
7532
|
-
count:
|
|
7533
|
-
regex:
|
|
7534
|
-
uuid:
|
|
7535
|
-
timestamp:
|
|
7536
|
-
cron:
|
|
7537
|
-
color:
|
|
7538
|
-
qrcode:
|
|
7539
|
-
http:
|
|
7540
|
-
script:
|
|
7541
|
-
}, Ra = typeof window < "u" && window.ZTEAM_FONE_BASE || "",
|
|
7536
|
+
xml: a_,
|
|
7537
|
+
sql: l_,
|
|
7538
|
+
"html-fmt": o_,
|
|
7539
|
+
base64: i_,
|
|
7540
|
+
url: r_,
|
|
7541
|
+
"html-entity": c_,
|
|
7542
|
+
jwt: d_,
|
|
7543
|
+
hash: m_,
|
|
7544
|
+
hmac: p_,
|
|
7545
|
+
diff: g_,
|
|
7546
|
+
case: b_,
|
|
7547
|
+
count: N_,
|
|
7548
|
+
regex: k_,
|
|
7549
|
+
uuid: C_,
|
|
7550
|
+
timestamp: w_,
|
|
7551
|
+
cron: S_,
|
|
7552
|
+
color: x_,
|
|
7553
|
+
qrcode: A_,
|
|
7554
|
+
http: $_,
|
|
7555
|
+
script: D_
|
|
7556
|
+
}, Ra = typeof window < "u" && window.ZTEAM_FONE_BASE || "", Hn = [
|
|
7542
7557
|
{ id: "default-admin", name: "Admin 后台", url: "/admin", category: "平台" },
|
|
7543
7558
|
{
|
|
7544
7559
|
id: "default-agenthub-proxy",
|
|
@@ -7555,28 +7570,28 @@ const R_ = {
|
|
|
7555
7570
|
}
|
|
7556
7571
|
] : []
|
|
7557
7572
|
], Us = "ft_personal_workspace_websites", Da = "ft_personal_workspace_last_tool";
|
|
7558
|
-
function
|
|
7573
|
+
function P_() {
|
|
7559
7574
|
try {
|
|
7560
7575
|
const t = localStorage.getItem(Us);
|
|
7561
|
-
if (!t) return
|
|
7576
|
+
if (!t) return Hn;
|
|
7562
7577
|
const s = JSON.parse(t);
|
|
7563
7578
|
return Array.isArray(s) ? s.filter(
|
|
7564
7579
|
(a) => typeof a == "object" && a !== null && typeof a.id == "string" && typeof a.name == "string" && typeof a.url == "string"
|
|
7565
|
-
) :
|
|
7580
|
+
) : Hn;
|
|
7566
7581
|
} catch {
|
|
7567
|
-
return
|
|
7582
|
+
return Hn;
|
|
7568
7583
|
}
|
|
7569
7584
|
}
|
|
7570
|
-
function
|
|
7585
|
+
function O_(t) {
|
|
7571
7586
|
try {
|
|
7572
7587
|
localStorage.setItem(Us, JSON.stringify(t));
|
|
7573
7588
|
} catch {
|
|
7574
7589
|
}
|
|
7575
7590
|
}
|
|
7576
|
-
function
|
|
7591
|
+
function H_() {
|
|
7577
7592
|
return `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
|
|
7578
7593
|
}
|
|
7579
|
-
function
|
|
7594
|
+
function j_({
|
|
7580
7595
|
item: t,
|
|
7581
7596
|
onClose: s,
|
|
7582
7597
|
onSave: a
|
|
@@ -7593,7 +7608,7 @@ function O_({
|
|
|
7593
7608
|
l.validateFields().then((c) => {
|
|
7594
7609
|
var h;
|
|
7595
7610
|
a({
|
|
7596
|
-
id: (t == null ? void 0 : t.id) ||
|
|
7611
|
+
id: (t == null ? void 0 : t.id) || H_(),
|
|
7597
7612
|
name: c.name.trim(),
|
|
7598
7613
|
url: c.url.trim(),
|
|
7599
7614
|
category: ((h = c.category) == null ? void 0 : h.trim()) || void 0
|
|
@@ -7642,7 +7657,7 @@ function O_({
|
|
|
7642
7657
|
}
|
|
7643
7658
|
);
|
|
7644
7659
|
}
|
|
7645
|
-
function
|
|
7660
|
+
function F_({
|
|
7646
7661
|
websites: t,
|
|
7647
7662
|
onChange: s
|
|
7648
7663
|
}) {
|
|
@@ -7675,7 +7690,7 @@ function H_({
|
|
|
7675
7690
|
marginBottom: 16
|
|
7676
7691
|
},
|
|
7677
7692
|
children: [
|
|
7678
|
-
/* @__PURE__ */ n(
|
|
7693
|
+
/* @__PURE__ */ n(n_, { level: 5, style: { margin: 0 }, children: [
|
|
7679
7694
|
/* @__PURE__ */ e(Sn, { style: { marginRight: 8 } }),
|
|
7680
7695
|
"常用网站"
|
|
7681
7696
|
] }),
|
|
@@ -7751,7 +7766,7 @@ function H_({
|
|
|
7751
7766
|
}
|
|
7752
7767
|
) }, m.id)) }),
|
|
7753
7768
|
(i || a) && /* @__PURE__ */ e(
|
|
7754
|
-
|
|
7769
|
+
j_,
|
|
7755
7770
|
{
|
|
7756
7771
|
item: a,
|
|
7757
7772
|
onClose: () => {
|
|
@@ -7762,7 +7777,7 @@ function H_({
|
|
|
7762
7777
|
)
|
|
7763
7778
|
] });
|
|
7764
7779
|
}
|
|
7765
|
-
function
|
|
7780
|
+
function xn({
|
|
7766
7781
|
showTools: t = !0,
|
|
7767
7782
|
showWebsites: s = !0
|
|
7768
7783
|
}) {
|
|
@@ -7773,16 +7788,16 @@ function In({
|
|
|
7773
7788
|
} catch {
|
|
7774
7789
|
}
|
|
7775
7790
|
return Ma[0].key;
|
|
7776
|
-
}), [i, c] = o(
|
|
7791
|
+
}), [i, c] = o(P_);
|
|
7777
7792
|
oe(() => {
|
|
7778
7793
|
try {
|
|
7779
7794
|
localStorage.setItem(Da, a);
|
|
7780
7795
|
} catch {
|
|
7781
7796
|
}
|
|
7782
7797
|
}, [a]), oe(() => {
|
|
7783
|
-
|
|
7798
|
+
O_(i);
|
|
7784
7799
|
}, [i]);
|
|
7785
|
-
const h =
|
|
7800
|
+
const h = E_[a] || Gs;
|
|
7786
7801
|
return /* @__PURE__ */ n("div", { className: ee.root, children: [
|
|
7787
7802
|
t && /* @__PURE__ */ e(
|
|
7788
7803
|
"div",
|
|
@@ -7821,51 +7836,51 @@ function In({
|
|
|
7821
7836
|
] })
|
|
7822
7837
|
}
|
|
7823
7838
|
),
|
|
7824
|
-
s && /* @__PURE__ */ e(
|
|
7839
|
+
s && /* @__PURE__ */ e(F_, { websites: i, onChange: c })
|
|
7825
7840
|
] });
|
|
7826
7841
|
}
|
|
7827
|
-
const
|
|
7828
|
-
sidebarInner:
|
|
7829
|
-
header:
|
|
7830
|
-
headerActions:
|
|
7831
|
-
tabBar:
|
|
7832
|
-
tab:
|
|
7833
|
-
tabActive:
|
|
7834
|
-
btnSm:
|
|
7835
|
-
agentSection:
|
|
7836
|
-
agentItem:
|
|
7837
|
-
agentItemActive:
|
|
7838
|
-
agentAvatar:
|
|
7839
|
-
agentName:
|
|
7840
|
-
emptyState:
|
|
7841
|
-
createInputRow:
|
|
7842
|
-
createInput:
|
|
7843
|
-
createConfirmBtn:
|
|
7844
|
-
contextMenu:
|
|
7845
|
-
contextMenuItem:
|
|
7846
|
-
contextMenuItemDanger:
|
|
7847
|
-
contextMenuDivider:
|
|
7848
|
-
renameOverlay:
|
|
7849
|
-
renameDialog:
|
|
7850
|
-
renameTitle:
|
|
7851
|
-
renameInput:
|
|
7852
|
-
renameActions:
|
|
7853
|
-
renameBtn:
|
|
7854
|
-
renameBtnPrimary:
|
|
7855
|
-
agentDetailBtn:
|
|
7856
|
-
agentItemShared:
|
|
7857
|
-
agentInfo:
|
|
7858
|
-
agentOwner:
|
|
7859
|
-
sharedBadge:
|
|
7860
|
-
createLocalDialog:
|
|
7861
|
-
createLocalLabel:
|
|
7862
|
-
agentTypeCards:
|
|
7863
|
-
agentTypeCard:
|
|
7864
|
-
agentTypeIcon:
|
|
7865
|
-
agentTypeBody:
|
|
7866
|
-
agentTypeTitle:
|
|
7867
|
-
agentTypeDesc:
|
|
7868
|
-
agentTypeBadge:
|
|
7842
|
+
const G_ = "_sidebarInner_1vu3c_1", z_ = "_header_1vu3c_8", U_ = "_headerActions_1vu3c_19", W_ = "_tabBar_1vu3c_26", q_ = "_tab_1vu3c_26", K_ = "_tabActive_1vu3c_50", V_ = "_btnSm_1vu3c_66", J_ = "_agentSection_1vu3c_84", Y_ = "_agentItem_1vu3c_90", Q_ = "_agentItemActive_1vu3c_112", X_ = "_agentAvatar_1vu3c_117", Z_ = "_agentName_1vu3c_130", eg = "_emptyState_1vu3c_156", tg = "_createInputRow_1vu3c_168", ng = "_createInput_1vu3c_168", ag = "_createConfirmBtn_1vu3c_188", sg = "_contextMenu_1vu3c_205", lg = "_contextMenuItem_1vu3c_216", og = "_contextMenuItemDanger_1vu3c_231", ig = "_contextMenuDivider_1vu3c_239", rg = "_renameOverlay_1vu3c_246", cg = "_renameDialog_1vu3c_259", dg = "_renameTitle_1vu3c_267", ug = "_renameInput_1vu3c_274", mg = "_renameActions_1vu3c_289", hg = "_renameBtn_1vu3c_295", pg = "_renameBtnPrimary_1vu3c_309", _g = "_agentDetailBtn_1vu3c_326", gg = "_agentItemShared_1vu3c_358", fg = "_agentInfo_1vu3c_362", yg = "_agentOwner_1vu3c_374", vg = "_sharedBadge_1vu3c_382", bg = "_createLocalDialog_1vu3c_430", Ng = "_createLocalLabel_1vu3c_438", kg = "_agentTypeCards_1vu3c_446", Cg = "_agentTypeCard_1vu3c_446", wg = "_agentTypeIcon_1vu3c_474", Sg = "_agentTypeBody_1vu3c_487", Tg = "_agentTypeTitle_1vu3c_494", Ig = "_agentTypeDesc_1vu3c_500", xg = "_agentTypeBadge_1vu3c_506", le = {
|
|
7843
|
+
sidebarInner: G_,
|
|
7844
|
+
header: z_,
|
|
7845
|
+
headerActions: U_,
|
|
7846
|
+
tabBar: W_,
|
|
7847
|
+
tab: q_,
|
|
7848
|
+
tabActive: K_,
|
|
7849
|
+
btnSm: V_,
|
|
7850
|
+
agentSection: J_,
|
|
7851
|
+
agentItem: Y_,
|
|
7852
|
+
agentItemActive: Q_,
|
|
7853
|
+
agentAvatar: X_,
|
|
7854
|
+
agentName: Z_,
|
|
7855
|
+
emptyState: eg,
|
|
7856
|
+
createInputRow: tg,
|
|
7857
|
+
createInput: ng,
|
|
7858
|
+
createConfirmBtn: ag,
|
|
7859
|
+
contextMenu: sg,
|
|
7860
|
+
contextMenuItem: lg,
|
|
7861
|
+
contextMenuItemDanger: og,
|
|
7862
|
+
contextMenuDivider: ig,
|
|
7863
|
+
renameOverlay: rg,
|
|
7864
|
+
renameDialog: cg,
|
|
7865
|
+
renameTitle: dg,
|
|
7866
|
+
renameInput: ug,
|
|
7867
|
+
renameActions: mg,
|
|
7868
|
+
renameBtn: hg,
|
|
7869
|
+
renameBtnPrimary: pg,
|
|
7870
|
+
agentDetailBtn: _g,
|
|
7871
|
+
agentItemShared: gg,
|
|
7872
|
+
agentInfo: fg,
|
|
7873
|
+
agentOwner: yg,
|
|
7874
|
+
sharedBadge: vg,
|
|
7875
|
+
createLocalDialog: bg,
|
|
7876
|
+
createLocalLabel: Ng,
|
|
7877
|
+
agentTypeCards: kg,
|
|
7878
|
+
agentTypeCard: Cg,
|
|
7879
|
+
agentTypeIcon: wg,
|
|
7880
|
+
agentTypeBody: Sg,
|
|
7881
|
+
agentTypeTitle: Tg,
|
|
7882
|
+
agentTypeDesc: Ig,
|
|
7883
|
+
agentTypeBadge: xg
|
|
7869
7884
|
}, Ea = [
|
|
7870
7885
|
"#2F70F1",
|
|
7871
7886
|
"#52c41a",
|
|
@@ -7885,7 +7900,7 @@ function Oa(t) {
|
|
|
7885
7900
|
return t ? t.charAt(0).toUpperCase() : "?";
|
|
7886
7901
|
}
|
|
7887
7902
|
const bn = "-1";
|
|
7888
|
-
function
|
|
7903
|
+
function Ag({
|
|
7889
7904
|
selectedAgentId: t,
|
|
7890
7905
|
selectedLocalAgentId: s,
|
|
7891
7906
|
onSelectAgent: a,
|
|
@@ -7927,7 +7942,7 @@ function Ig({
|
|
|
7927
7942
|
}
|
|
7928
7943
|
}, []);
|
|
7929
7944
|
oe(() => {
|
|
7930
|
-
r === "local" &&
|
|
7945
|
+
r === "local" && Kn().then((B) => {
|
|
7931
7946
|
me(B), B && Re();
|
|
7932
7947
|
});
|
|
7933
7948
|
}, [r, Re]), oe(() => {
|
|
@@ -7963,7 +7978,7 @@ function Ig({
|
|
|
7963
7978
|
return;
|
|
7964
7979
|
}
|
|
7965
7980
|
if (!q) {
|
|
7966
|
-
if (!await
|
|
7981
|
+
if (!await Kn()) {
|
|
7967
7982
|
we.error(
|
|
7968
7983
|
"本地 Agent 未启动,请通过菜单栏「重启 Agent」启动后再试"
|
|
7969
7984
|
);
|
|
@@ -8484,61 +8499,61 @@ function Ig({
|
|
|
8484
8499
|
)
|
|
8485
8500
|
] });
|
|
8486
8501
|
}
|
|
8487
|
-
const
|
|
8488
|
-
tabWrap:
|
|
8489
|
-
viewHeader:
|
|
8490
|
-
viewTitle:
|
|
8491
|
-
viewSub:
|
|
8492
|
-
cardGrid:
|
|
8493
|
-
learnCard:
|
|
8494
|
-
cardTitleRow:
|
|
8495
|
-
cardTitle:
|
|
8496
|
-
cardDesc:
|
|
8497
|
-
cardFooter:
|
|
8498
|
-
learnLayout:
|
|
8499
|
-
materialList:
|
|
8500
|
-
materialItem:
|
|
8501
|
-
materialItemActive:
|
|
8502
|
-
materialTitleRow:
|
|
8503
|
-
materialTitle:
|
|
8504
|
-
materialMeta:
|
|
8505
|
-
docPanel:
|
|
8506
|
-
docContent:
|
|
8507
|
-
finishBar:
|
|
8508
|
-
pathBoard:
|
|
8509
|
-
stageHeader:
|
|
8510
|
-
nodeColumn:
|
|
8511
|
-
nodeCard:
|
|
8512
|
-
nodeCardDone:
|
|
8513
|
-
nodeCardDoing:
|
|
8514
|
-
nodeCardLocked:
|
|
8515
|
-
nodeLink:
|
|
8516
|
-
nodeIndex:
|
|
8517
|
-
nodeIndexDone:
|
|
8518
|
-
nodeIndexDoing:
|
|
8519
|
-
nodeBody:
|
|
8520
|
-
nodeTitle:
|
|
8521
|
-
nodeMeta:
|
|
8522
|
-
mapGrid:
|
|
8523
|
-
examWrap:
|
|
8524
|
-
examMetaRow:
|
|
8525
|
-
questionCard:
|
|
8526
|
-
questionTitle:
|
|
8527
|
-
optionRow:
|
|
8528
|
-
optionRowSelected:
|
|
8529
|
-
answerBlock:
|
|
8530
|
-
examResultCard:
|
|
8531
|
-
examScore:
|
|
8532
|
-
gloryGrid:
|
|
8502
|
+
const Bg = "_tabWrap_1hjjv_3", Lg = "_viewHeader_1hjjv_10", Mg = "_viewTitle_1hjjv_17", $g = "_viewSub_1hjjv_22", Rg = "_cardGrid_1hjjv_27", Dg = "_learnCard_1hjjv_33", Eg = "_cardTitleRow_1hjjv_48", Pg = "_cardTitle_1hjjv_48", Og = "_cardDesc_1hjjv_62", Hg = "_cardFooter_1hjjv_73", jg = "_learnLayout_1hjjv_91", Fg = "_materialList_1hjjv_97", Gg = "_materialItem_1hjjv_111", zg = "_materialItemActive_1hjjv_125", Ug = "_materialTitleRow_1hjjv_130", Wg = "_materialTitle_1hjjv_130", qg = "_materialMeta_1hjjv_144", Kg = "_docPanel_1hjjv_152", Vg = "_docContent_1hjjv_163", Jg = "_finishBar_1hjjv_176", Yg = "_pathBoard_1hjjv_187", Qg = "_stageHeader_1hjjv_194", Xg = "_nodeColumn_1hjjv_201", Zg = "_nodeCard_1hjjv_208", ef = "_nodeCardDone_1hjjv_227", tf = "_nodeCardDoing_1hjjv_232", nf = "_nodeCardLocked_1hjjv_237", af = "_nodeLink_1hjjv_243", sf = "_nodeIndex_1hjjv_249", lf = "_nodeIndexDone_1hjjv_262", of = "_nodeIndexDoing_1hjjv_267", rf = "_nodeBody_1hjjv_272", cf = "_nodeTitle_1hjjv_277", df = "_nodeMeta_1hjjv_282", uf = "_mapGrid_1hjjv_288", mf = "_examWrap_1hjjv_295", hf = "_examMetaRow_1hjjv_304", pf = "_questionCard_1hjjv_314", _f = "_questionTitle_1hjjv_322", gf = "_optionRow_1hjjv_329", ff = "_optionRowSelected_1hjjv_344", yf = "_answerBlock_1hjjv_348", vf = "_examResultCard_1hjjv_358", bf = "_examScore_1hjjv_363", Nf = "_gloryGrid_1hjjv_369", j = {
|
|
8503
|
+
tabWrap: Bg,
|
|
8504
|
+
viewHeader: Lg,
|
|
8505
|
+
viewTitle: Mg,
|
|
8506
|
+
viewSub: $g,
|
|
8507
|
+
cardGrid: Rg,
|
|
8508
|
+
learnCard: Dg,
|
|
8509
|
+
cardTitleRow: Eg,
|
|
8510
|
+
cardTitle: Pg,
|
|
8511
|
+
cardDesc: Og,
|
|
8512
|
+
cardFooter: Hg,
|
|
8513
|
+
learnLayout: jg,
|
|
8514
|
+
materialList: Fg,
|
|
8515
|
+
materialItem: Gg,
|
|
8516
|
+
materialItemActive: zg,
|
|
8517
|
+
materialTitleRow: Ug,
|
|
8518
|
+
materialTitle: Wg,
|
|
8519
|
+
materialMeta: qg,
|
|
8520
|
+
docPanel: Kg,
|
|
8521
|
+
docContent: Vg,
|
|
8522
|
+
finishBar: Jg,
|
|
8523
|
+
pathBoard: Yg,
|
|
8524
|
+
stageHeader: Qg,
|
|
8525
|
+
nodeColumn: Xg,
|
|
8526
|
+
nodeCard: Zg,
|
|
8527
|
+
nodeCardDone: ef,
|
|
8528
|
+
nodeCardDoing: tf,
|
|
8529
|
+
nodeCardLocked: nf,
|
|
8530
|
+
nodeLink: af,
|
|
8531
|
+
nodeIndex: sf,
|
|
8532
|
+
nodeIndexDone: lf,
|
|
8533
|
+
nodeIndexDoing: of,
|
|
8534
|
+
nodeBody: rf,
|
|
8535
|
+
nodeTitle: cf,
|
|
8536
|
+
nodeMeta: df,
|
|
8537
|
+
mapGrid: uf,
|
|
8538
|
+
examWrap: mf,
|
|
8539
|
+
examMetaRow: hf,
|
|
8540
|
+
questionCard: pf,
|
|
8541
|
+
questionTitle: _f,
|
|
8542
|
+
optionRow: gf,
|
|
8543
|
+
optionRowSelected: ff,
|
|
8544
|
+
answerBlock: yf,
|
|
8545
|
+
examResultCard: vf,
|
|
8546
|
+
examScore: bf,
|
|
8547
|
+
gloryGrid: Nf
|
|
8533
8548
|
};
|
|
8534
|
-
function
|
|
8549
|
+
function kf(t) {
|
|
8535
8550
|
var l;
|
|
8536
8551
|
const s = t.match(/videoId:\s*(\d+)/i);
|
|
8537
8552
|
if (!s) return null;
|
|
8538
8553
|
const a = t.match(/title:\s*(.+)/i);
|
|
8539
8554
|
return { videoId: Number(s[1]), title: (l = a == null ? void 0 : a[1]) == null ? void 0 : l.trim() };
|
|
8540
8555
|
}
|
|
8541
|
-
function
|
|
8556
|
+
function Cf({
|
|
8542
8557
|
courseId: t,
|
|
8543
8558
|
onBack: s,
|
|
8544
8559
|
onOpenExam: a
|
|
@@ -8547,7 +8562,7 @@ function Nf({
|
|
|
8547
8562
|
{}
|
|
8548
8563
|
);
|
|
8549
8564
|
oe(() => {
|
|
8550
|
-
|
|
8565
|
+
Ss(t, l).then((q) => {
|
|
8551
8566
|
const me = {}, w = [...q].sort(
|
|
8552
8567
|
(N, de) => String(de.submitTime ?? "").localeCompare(String(N.submitTime ?? ""))
|
|
8553
8568
|
);
|
|
@@ -8584,7 +8599,7 @@ function Nf({
|
|
|
8584
8599
|
), $ = async () => {
|
|
8585
8600
|
O(!0);
|
|
8586
8601
|
try {
|
|
8587
|
-
await
|
|
8602
|
+
await Ts(t, null, l), we.success("报名成功"), H();
|
|
8588
8603
|
} catch {
|
|
8589
8604
|
} finally {
|
|
8590
8605
|
O(!1);
|
|
@@ -8650,7 +8665,7 @@ function Nf({
|
|
|
8650
8665
|
/* @__PURE__ */ n("div", { className: j.learnLayout, children: [
|
|
8651
8666
|
/* @__PURE__ */ n("div", { className: j.materialList, children: [
|
|
8652
8667
|
Y.map((q, me) => /* @__PURE__ */ e(
|
|
8653
|
-
|
|
8668
|
+
wf,
|
|
8654
8669
|
{
|
|
8655
8670
|
item: q,
|
|
8656
8671
|
index: me,
|
|
@@ -8716,15 +8731,15 @@ function Nf({
|
|
|
8716
8731
|
/* @__PURE__ */ e("div", { className: j.docPanel, children: b ? /* @__PURE__ */ e("div", { style: { textAlign: "center", padding: "60px 0" }, children: /* @__PURE__ */ e(Dt, {}) }) : d ? /* @__PURE__ */ n(Ie, { children: [
|
|
8717
8732
|
/* @__PURE__ */ e("h2", { style: { marginTop: 0 }, children: d.title }),
|
|
8718
8733
|
/* @__PURE__ */ e("div", { className: j.docContent, children: /* @__PURE__ */ e(
|
|
8719
|
-
|
|
8734
|
+
Bn,
|
|
8720
8735
|
{
|
|
8721
|
-
remarkPlugins: [
|
|
8736
|
+
remarkPlugins: [Ln],
|
|
8722
8737
|
components: {
|
|
8723
8738
|
code({ className: q, children: me, ...w }) {
|
|
8724
8739
|
return q === "language-video" ? /* @__PURE__ */ e(
|
|
8725
|
-
|
|
8740
|
+
Sf,
|
|
8726
8741
|
{
|
|
8727
|
-
block:
|
|
8742
|
+
block: kf(String(me)),
|
|
8728
8743
|
videoMap: x
|
|
8729
8744
|
}
|
|
8730
8745
|
) : /* @__PURE__ */ e("code", { className: q, ...w, children: me });
|
|
@@ -8734,7 +8749,7 @@ function Nf({
|
|
|
8734
8749
|
}
|
|
8735
8750
|
) }),
|
|
8736
8751
|
/* @__PURE__ */ n("div", { className: j.finishBar, children: [
|
|
8737
|
-
/* @__PURE__ */ e("div", { children: v != null && v.finished ? /* @__PURE__ */ e(ge, { color: "success", icon: /* @__PURE__ */ e(
|
|
8752
|
+
/* @__PURE__ */ e("div", { children: v != null && v.finished ? /* @__PURE__ */ e(ge, { color: "success", icon: /* @__PURE__ */ e(Wn, {}), children: "本节已完成" }) : /* @__PURE__ */ n("span", { className: j.viewSub, children: [
|
|
8738
8753
|
"读完资料后点击右侧按钮记录进度",
|
|
8739
8754
|
v != null && v.paperId ? "(本节还需通过考试)" : ""
|
|
8740
8755
|
] }) }),
|
|
@@ -8756,7 +8771,7 @@ function Nf({
|
|
|
8756
8771
|
se,
|
|
8757
8772
|
{
|
|
8758
8773
|
type: "primary",
|
|
8759
|
-
icon: /* @__PURE__ */ e(
|
|
8774
|
+
icon: /* @__PURE__ */ e(Wn, {}),
|
|
8760
8775
|
loading: ne,
|
|
8761
8776
|
disabled: !i.enrolled || (v == null ? void 0 : v.read),
|
|
8762
8777
|
onClick: () => void ue(),
|
|
@@ -8775,7 +8790,7 @@ function Nf({
|
|
|
8775
8790
|
] })
|
|
8776
8791
|
] });
|
|
8777
8792
|
}
|
|
8778
|
-
function
|
|
8793
|
+
function wf({
|
|
8779
8794
|
item: t,
|
|
8780
8795
|
index: s,
|
|
8781
8796
|
active: a,
|
|
@@ -8826,7 +8841,7 @@ function kf({
|
|
|
8826
8841
|
}
|
|
8827
8842
|
);
|
|
8828
8843
|
}
|
|
8829
|
-
function
|
|
8844
|
+
function Sf({
|
|
8830
8845
|
block: t,
|
|
8831
8846
|
videoMap: s
|
|
8832
8847
|
}) {
|
|
@@ -8873,7 +8888,7 @@ const Ws = {
|
|
|
8873
8888
|
MULTI: "多选题",
|
|
8874
8889
|
FREE: "自由题"
|
|
8875
8890
|
};
|
|
8876
|
-
function
|
|
8891
|
+
function Tf(t) {
|
|
8877
8892
|
if (!t) return [];
|
|
8878
8893
|
try {
|
|
8879
8894
|
return JSON.parse(t).filter((a) => a.key != null).map((a) => ({ key: String(a.key), label: a.label ?? "" }));
|
|
@@ -8881,11 +8896,11 @@ function wf(t) {
|
|
|
8881
8896
|
return [];
|
|
8882
8897
|
}
|
|
8883
8898
|
}
|
|
8884
|
-
function
|
|
8899
|
+
function If(t) {
|
|
8885
8900
|
const s = Math.floor(t / 60), a = t % 60;
|
|
8886
8901
|
return `${s}:${String(a).padStart(2, "0")}`;
|
|
8887
8902
|
}
|
|
8888
|
-
function
|
|
8903
|
+
function xf({
|
|
8889
8904
|
paperId: t,
|
|
8890
8905
|
courseId: s,
|
|
8891
8906
|
materialId: a,
|
|
@@ -8998,7 +9013,7 @@ function Tf({
|
|
|
8998
9013
|
if (r === "result" && I) {
|
|
8999
9014
|
const y = !l && !i && (!m || m.retryLimit == null || (m.retryCount ?? 0) + 1 < m.retryLimit);
|
|
9000
9015
|
return /* @__PURE__ */ e(
|
|
9001
|
-
|
|
9016
|
+
Bf,
|
|
9002
9017
|
{
|
|
9003
9018
|
record: I,
|
|
9004
9019
|
onBack: c,
|
|
@@ -9034,7 +9049,7 @@ function Tf({
|
|
|
9034
9049
|
" 分"
|
|
9035
9050
|
] }),
|
|
9036
9051
|
m.durationLimitMin ? /* @__PURE__ */ n("span", { children: [
|
|
9037
|
-
/* @__PURE__ */ e(
|
|
9052
|
+
/* @__PURE__ */ e(Un, {}),
|
|
9038
9053
|
" 限时 ",
|
|
9039
9054
|
m.durationLimitMin,
|
|
9040
9055
|
" 分钟"
|
|
@@ -9064,15 +9079,15 @@ function Tf({
|
|
|
9064
9079
|
color: O < 300 ? "#f5222d" : "#333"
|
|
9065
9080
|
},
|
|
9066
9081
|
children: [
|
|
9067
|
-
/* @__PURE__ */ e(
|
|
9082
|
+
/* @__PURE__ */ e(Un, {}),
|
|
9068
9083
|
" 剩余 ",
|
|
9069
|
-
|
|
9084
|
+
If(O)
|
|
9070
9085
|
]
|
|
9071
9086
|
}
|
|
9072
9087
|
)
|
|
9073
9088
|
] }),
|
|
9074
9089
|
ue.map((y, V) => /* @__PURE__ */ e(
|
|
9075
|
-
|
|
9090
|
+
Af,
|
|
9076
9091
|
{
|
|
9077
9092
|
q: y,
|
|
9078
9093
|
index: V,
|
|
@@ -9100,7 +9115,7 @@ function Tf({
|
|
|
9100
9115
|
)
|
|
9101
9116
|
] });
|
|
9102
9117
|
}
|
|
9103
|
-
function
|
|
9118
|
+
function Af({
|
|
9104
9119
|
q: t,
|
|
9105
9120
|
index: s,
|
|
9106
9121
|
value: a,
|
|
@@ -9108,7 +9123,7 @@ function If({
|
|
|
9108
9123
|
onToggle: i,
|
|
9109
9124
|
onWrite: c
|
|
9110
9125
|
}) {
|
|
9111
|
-
const h = t.type === "FREE" ? [] :
|
|
9126
|
+
const h = t.type === "FREE" ? [] : Tf(t.options);
|
|
9112
9127
|
return /* @__PURE__ */ n("div", { className: j.questionCard, children: [
|
|
9113
9128
|
/* @__PURE__ */ n("div", { className: j.questionTitle, children: [
|
|
9114
9129
|
s + 1,
|
|
@@ -9156,7 +9171,7 @@ function If({
|
|
|
9156
9171
|
)
|
|
9157
9172
|
] });
|
|
9158
9173
|
}
|
|
9159
|
-
function
|
|
9174
|
+
function Bf({
|
|
9160
9175
|
record: t,
|
|
9161
9176
|
onBack: s,
|
|
9162
9177
|
onRetry: a
|
|
@@ -9199,7 +9214,7 @@ function xf({
|
|
|
9199
9214
|
l ? t.passed ? "成绩已最终确认" : "未达到及格线,可返回重考" : "客观题已判分;自由题由 AI 初评并进入人工复核,最终成绩请稍后查看"
|
|
9200
9215
|
] })
|
|
9201
9216
|
] }),
|
|
9202
|
-
(t.answers ?? []).map((c, h) => /* @__PURE__ */ e(
|
|
9217
|
+
(t.answers ?? []).map((c, h) => /* @__PURE__ */ e(Lf, { item: c, index: h }, c.answerId)),
|
|
9203
9218
|
/* @__PURE__ */ n(
|
|
9204
9219
|
"div",
|
|
9205
9220
|
{
|
|
@@ -9226,7 +9241,7 @@ function xf({
|
|
|
9226
9241
|
)
|
|
9227
9242
|
] });
|
|
9228
9243
|
}
|
|
9229
|
-
function
|
|
9244
|
+
function Lf({
|
|
9230
9245
|
item: t,
|
|
9231
9246
|
index: s
|
|
9232
9247
|
}) {
|
|
@@ -9268,18 +9283,18 @@ function Af({
|
|
|
9268
9283
|
] })
|
|
9269
9284
|
] });
|
|
9270
9285
|
}
|
|
9271
|
-
const
|
|
9286
|
+
const Mf = {
|
|
9272
9287
|
SEQUENTIAL: "按顺序解锁:完成前一课程后解锁下一门",
|
|
9273
9288
|
STAGE: "按阶段解锁:完成本阶段全部课程后解锁下一阶段",
|
|
9274
9289
|
FREE: "全部开放:可自由选择任意课程学习"
|
|
9275
9290
|
};
|
|
9276
|
-
function
|
|
9291
|
+
function $f(t) {
|
|
9277
9292
|
return t === "done" ? j.nodeCardDone : t === "doing" ? j.nodeCardDoing : t === "locked" ? j.nodeCardLocked : "";
|
|
9278
9293
|
}
|
|
9279
|
-
function
|
|
9294
|
+
function Rf(t) {
|
|
9280
9295
|
return t === "done" ? j.nodeIndexDone : t === "doing" ? j.nodeIndexDoing : "";
|
|
9281
9296
|
}
|
|
9282
|
-
function
|
|
9297
|
+
function Df(t) {
|
|
9283
9298
|
switch (t.nodeStatus) {
|
|
9284
9299
|
case "done":
|
|
9285
9300
|
return "已完成";
|
|
@@ -9291,7 +9306,7 @@ function $f(t) {
|
|
|
9291
9306
|
return "可开始学习";
|
|
9292
9307
|
}
|
|
9293
9308
|
}
|
|
9294
|
-
function
|
|
9309
|
+
function Ef({
|
|
9295
9310
|
pathId: t,
|
|
9296
9311
|
onBack: s,
|
|
9297
9312
|
onOpenCourse: a
|
|
@@ -9312,7 +9327,7 @@ function Rf({
|
|
|
9312
9327
|
const g = async () => {
|
|
9313
9328
|
m(!0);
|
|
9314
9329
|
try {
|
|
9315
|
-
await
|
|
9330
|
+
await Is(t, l), we.success("已加入路径,开始学习吧"), d();
|
|
9316
9331
|
} catch {
|
|
9317
9332
|
} finally {
|
|
9318
9333
|
m(!1);
|
|
@@ -9365,7 +9380,7 @@ function Rf({
|
|
|
9365
9380
|
i.description ? /* @__PURE__ */ e("div", { children: i.description }) : null,
|
|
9366
9381
|
/* @__PURE__ */ n("div", { children: [
|
|
9367
9382
|
"解锁规则:",
|
|
9368
|
-
|
|
9383
|
+
Mf[i.unlockRule ?? "SEQUENTIAL"] ?? i.unlockRule,
|
|
9369
9384
|
(W = i.rewardNames) != null && W.length ? /* @__PURE__ */ n("span", { style: { marginLeft: 12, color: "#d48806" }, children: [
|
|
9370
9385
|
/* @__PURE__ */ e(rs, {}),
|
|
9371
9386
|
" 完成可得:",
|
|
@@ -9449,14 +9464,14 @@ function Ha({
|
|
|
9449
9464
|
return /* @__PURE__ */ n(
|
|
9450
9465
|
"div",
|
|
9451
9466
|
{
|
|
9452
|
-
className: `${j.nodeCard} ${
|
|
9467
|
+
className: `${j.nodeCard} ${$f(l)}`,
|
|
9453
9468
|
onClick: a,
|
|
9454
9469
|
role: "button",
|
|
9455
9470
|
children: [
|
|
9456
|
-
/* @__PURE__ */ e("div", { className: `${j.nodeIndex} ${
|
|
9471
|
+
/* @__PURE__ */ e("div", { className: `${j.nodeIndex} ${Rf(l)}`, children: l === "done" ? /* @__PURE__ */ e(Bl, {}) : l === "locked" ? /* @__PURE__ */ e(wn, {}) : s }),
|
|
9457
9472
|
/* @__PURE__ */ n("div", { className: j.nodeBody, children: [
|
|
9458
9473
|
/* @__PURE__ */ e("div", { className: j.nodeTitle, children: t.courseTitle }),
|
|
9459
|
-
/* @__PURE__ */ e("div", { className: j.nodeMeta, children:
|
|
9474
|
+
/* @__PURE__ */ e("div", { className: j.nodeMeta, children: Df(t) })
|
|
9460
9475
|
] }),
|
|
9461
9476
|
l === "doing" ? /* @__PURE__ */ e(Gt, { style: { color: "#2f70f1", fontSize: 18 } }) : l === "done" ? /* @__PURE__ */ e(ge, { color: "success", children: "完成" }) : l === "locked" ? /* @__PURE__ */ e(wn, { style: { color: "#bbb" } }) : null
|
|
9462
9477
|
]
|
|
@@ -9478,21 +9493,21 @@ function Ks() {
|
|
|
9478
9493
|
s((u) => u[u.length - 1].type === "tabs" ? [...u.slice(0, -1), { type: "tabs", sub: h }, r] : [...u, r]), requestAnimationFrame(() => window.scrollTo(0, 0));
|
|
9479
9494
|
}, []);
|
|
9480
9495
|
return a.type === "course-learn" ? /* @__PURE__ */ e("div", { className: j.tabWrap, children: /* @__PURE__ */ e(
|
|
9481
|
-
|
|
9496
|
+
Cf,
|
|
9482
9497
|
{
|
|
9483
9498
|
courseId: a.courseId,
|
|
9484
9499
|
onBack: i,
|
|
9485
9500
|
onOpenExam: (h, r, u, m) => l({ type: "exam", paperId: h, courseId: r, materialId: u, recordExamId: m })
|
|
9486
9501
|
}
|
|
9487
9502
|
) }) : a.type === "path-learn" ? /* @__PURE__ */ e("div", { className: j.tabWrap, children: /* @__PURE__ */ e(
|
|
9488
|
-
|
|
9503
|
+
Ef,
|
|
9489
9504
|
{
|
|
9490
9505
|
pathId: a.pathId,
|
|
9491
9506
|
onBack: i,
|
|
9492
9507
|
onOpenCourse: (h) => l({ type: "course-learn", courseId: h })
|
|
9493
9508
|
}
|
|
9494
9509
|
) }) : a.type === "exam" ? /* @__PURE__ */ e("div", { className: j.tabWrap, children: /* @__PURE__ */ e(
|
|
9495
|
-
|
|
9510
|
+
xf,
|
|
9496
9511
|
{
|
|
9497
9512
|
paperId: a.paperId,
|
|
9498
9513
|
courseId: a.courseId ?? null,
|
|
@@ -9502,7 +9517,7 @@ function Ks() {
|
|
|
9502
9517
|
onBack: i
|
|
9503
9518
|
}
|
|
9504
9519
|
) }) : /* @__PURE__ */ e(
|
|
9505
|
-
|
|
9520
|
+
Of,
|
|
9506
9521
|
{
|
|
9507
9522
|
sub: a.sub,
|
|
9508
9523
|
onPush: l,
|
|
@@ -9510,7 +9525,7 @@ function Ks() {
|
|
|
9510
9525
|
}
|
|
9511
9526
|
);
|
|
9512
9527
|
}
|
|
9513
|
-
const
|
|
9528
|
+
const Pf = [
|
|
9514
9529
|
{ key: "my-paths", label: "我的路径" },
|
|
9515
9530
|
{ key: "my-courses", label: "我的课程" },
|
|
9516
9531
|
{ key: "my-exams", label: "我的考试" },
|
|
@@ -9518,7 +9533,7 @@ const Df = [
|
|
|
9518
9533
|
{ key: "path-overview", label: "路径总览" },
|
|
9519
9534
|
{ key: "course-overview", label: "课程总览" }
|
|
9520
9535
|
];
|
|
9521
|
-
function
|
|
9536
|
+
function Of({
|
|
9522
9537
|
sub: t,
|
|
9523
9538
|
onPush: s,
|
|
9524
9539
|
onPushExam: a
|
|
@@ -9538,7 +9553,7 @@ function Ef({
|
|
|
9538
9553
|
borderBottom: "1px solid #e5e7eb",
|
|
9539
9554
|
marginBottom: 16
|
|
9540
9555
|
},
|
|
9541
|
-
children:
|
|
9556
|
+
children: Pf.map((c) => /* @__PURE__ */ e(
|
|
9542
9557
|
"button",
|
|
9543
9558
|
{
|
|
9544
9559
|
type: "button",
|
|
@@ -9561,21 +9576,21 @@ function Ef({
|
|
|
9561
9576
|
}
|
|
9562
9577
|
),
|
|
9563
9578
|
l === "my-paths" && /* @__PURE__ */ e(
|
|
9564
|
-
|
|
9579
|
+
Hf,
|
|
9565
9580
|
{
|
|
9566
9581
|
onOpenPath: (c) => s({ type: "path-learn", pathId: c }),
|
|
9567
9582
|
onGotoOverview: () => i("path-overview")
|
|
9568
9583
|
}
|
|
9569
9584
|
),
|
|
9570
9585
|
l === "my-courses" && /* @__PURE__ */ e(
|
|
9571
|
-
|
|
9586
|
+
jf,
|
|
9572
9587
|
{
|
|
9573
9588
|
onOpenCourse: (c) => s({ type: "course-learn", courseId: c }),
|
|
9574
9589
|
onGotoOverview: () => i("course-overview")
|
|
9575
9590
|
}
|
|
9576
9591
|
),
|
|
9577
9592
|
l === "my-exams" && /* @__PURE__ */ e(
|
|
9578
|
-
|
|
9593
|
+
zf,
|
|
9579
9594
|
{
|
|
9580
9595
|
onOpenExam: (c) => a("my-exams", {
|
|
9581
9596
|
type: "exam",
|
|
@@ -9587,22 +9602,22 @@ function Ef({
|
|
|
9587
9602
|
})
|
|
9588
9603
|
}
|
|
9589
9604
|
),
|
|
9590
|
-
l === "my-glory" && /* @__PURE__ */ e(
|
|
9605
|
+
l === "my-glory" && /* @__PURE__ */ e(Ff, {}),
|
|
9591
9606
|
l === "path-overview" && /* @__PURE__ */ e(
|
|
9592
|
-
|
|
9607
|
+
Uf,
|
|
9593
9608
|
{
|
|
9594
9609
|
onOpenPath: (c) => s({ type: "path-learn", pathId: c })
|
|
9595
9610
|
}
|
|
9596
9611
|
),
|
|
9597
9612
|
l === "course-overview" && /* @__PURE__ */ e(
|
|
9598
|
-
|
|
9613
|
+
Wf,
|
|
9599
9614
|
{
|
|
9600
9615
|
onOpenCourse: (c) => s({ type: "course-learn", courseId: c })
|
|
9601
9616
|
}
|
|
9602
9617
|
)
|
|
9603
9618
|
] });
|
|
9604
9619
|
}
|
|
9605
|
-
function
|
|
9620
|
+
function Hf({
|
|
9606
9621
|
onOpenPath: t,
|
|
9607
9622
|
onGotoOverview: s
|
|
9608
9623
|
}) {
|
|
@@ -9649,7 +9664,7 @@ function Pf({
|
|
|
9649
9664
|
] }, u.pathId);
|
|
9650
9665
|
}) });
|
|
9651
9666
|
}
|
|
9652
|
-
function
|
|
9667
|
+
function jf({
|
|
9653
9668
|
onOpenCourse: t,
|
|
9654
9669
|
onGotoOverview: s
|
|
9655
9670
|
}) {
|
|
@@ -9695,7 +9710,7 @@ function Of({
|
|
|
9695
9710
|
] }, u.courseId);
|
|
9696
9711
|
}) });
|
|
9697
9712
|
}
|
|
9698
|
-
function
|
|
9713
|
+
function Ff() {
|
|
9699
9714
|
const t = Ye((r) => r.token), [s, a] = o([]), [l, i] = o(!0), c = F(async () => {
|
|
9700
9715
|
i(!0);
|
|
9701
9716
|
try {
|
|
@@ -9755,18 +9770,18 @@ function Hf() {
|
|
|
9755
9770
|
] })
|
|
9756
9771
|
] }, r.id)) });
|
|
9757
9772
|
}
|
|
9758
|
-
const
|
|
9773
|
+
const Gf = {
|
|
9759
9774
|
ASSIGNED: { label: "待考", color: "warning" },
|
|
9760
9775
|
SUBMITTED: { label: "批改中", color: "processing" },
|
|
9761
9776
|
GRADED: { label: "已出分", color: "success" }
|
|
9762
9777
|
};
|
|
9763
|
-
function
|
|
9778
|
+
function zf({
|
|
9764
9779
|
onOpenExam: t
|
|
9765
9780
|
}) {
|
|
9766
9781
|
const s = Ye((u) => u.token), [a, l] = o([]), [i, c] = o(!0), h = F(async () => {
|
|
9767
9782
|
c(!0);
|
|
9768
9783
|
try {
|
|
9769
|
-
l(await
|
|
9784
|
+
l(await Ss(null, s));
|
|
9770
9785
|
} catch {
|
|
9771
9786
|
} finally {
|
|
9772
9787
|
c(!1);
|
|
@@ -9810,13 +9825,13 @@ function Ff({
|
|
|
9810
9825
|
}
|
|
9811
9826
|
),
|
|
9812
9827
|
/* @__PURE__ */ e("div", { className: j.cardGrid, children: a.map((u) => {
|
|
9813
|
-
const m = u.status === "GRADED", d =
|
|
9828
|
+
const m = u.status === "GRADED", d = Gf[u.status ?? ""] ?? {
|
|
9814
9829
|
label: u.status ?? "-",
|
|
9815
9830
|
color: "default"
|
|
9816
9831
|
}, g = u.status === "ASSIGNED" ? "等待作答" : m ? `${(u.gradeTime ?? u.submitTime ?? "").replace("T", " ").slice(0, 16)} 出分` : `${(u.submitTime ?? "").replace("T", " ").slice(0, 16)} 交卷`;
|
|
9817
9832
|
return /* @__PURE__ */ n("div", { className: j.learnCard, children: [
|
|
9818
9833
|
/* @__PURE__ */ n("div", { className: j.cardTitleRow, children: [
|
|
9819
|
-
/* @__PURE__ */ e(
|
|
9834
|
+
/* @__PURE__ */ e(Wn, { style: { color: "#2F70F1" } }),
|
|
9820
9835
|
/* @__PURE__ */ e("span", { className: j.cardTitle, children: u.paperTitle ?? `试卷 #${u.paperId ?? "-"}` }),
|
|
9821
9836
|
m ? u.passed == null ? /* @__PURE__ */ e(ge, { color: "success", children: "已出分" }) : u.passed ? /* @__PURE__ */ e(ge, { color: "success", icon: /* @__PURE__ */ e(Jt, {}), children: "已通过" }) : /* @__PURE__ */ e(ge, { color: "error", children: "未通过" }) : /* @__PURE__ */ e(ge, { color: d.color, children: d.label })
|
|
9822
9837
|
] }),
|
|
@@ -9852,7 +9867,7 @@ function Ff({
|
|
|
9852
9867
|
}) })
|
|
9853
9868
|
] });
|
|
9854
9869
|
}
|
|
9855
|
-
function
|
|
9870
|
+
function Uf({
|
|
9856
9871
|
onOpenPath: t
|
|
9857
9872
|
}) {
|
|
9858
9873
|
const s = Ye((d) => d.token), [a, l] = o([]), [i, c] = o(!0), [h, r] = o(null), u = F(async () => {
|
|
@@ -9872,7 +9887,7 @@ function Gf({
|
|
|
9872
9887
|
const m = async (d) => {
|
|
9873
9888
|
r(d);
|
|
9874
9889
|
try {
|
|
9875
|
-
await
|
|
9890
|
+
await Is(d, s), we.success("已加入路径,开始学习吧"), t(d);
|
|
9876
9891
|
} catch {
|
|
9877
9892
|
} finally {
|
|
9878
9893
|
r(null);
|
|
@@ -9941,7 +9956,7 @@ function Gf({
|
|
|
9941
9956
|
}) })
|
|
9942
9957
|
] });
|
|
9943
9958
|
}
|
|
9944
|
-
function
|
|
9959
|
+
function Wf({
|
|
9945
9960
|
onOpenCourse: t
|
|
9946
9961
|
}) {
|
|
9947
9962
|
const s = Ye((d) => d.token), [a, l] = o([]), [i, c] = o(!0), [h, r] = o(null), u = F(async () => {
|
|
@@ -9961,7 +9976,7 @@ function zf({
|
|
|
9961
9976
|
const m = async (d) => {
|
|
9962
9977
|
r(d);
|
|
9963
9978
|
try {
|
|
9964
|
-
await
|
|
9979
|
+
await Ts(d, null, s), we.success("报名成功,开始学习"), t(d);
|
|
9965
9980
|
} catch {
|
|
9966
9981
|
} finally {
|
|
9967
9982
|
r(null);
|
|
@@ -10042,31 +10057,31 @@ function Vs({ text: t, onGo: s }) {
|
|
|
10042
10057
|
}
|
|
10043
10058
|
);
|
|
10044
10059
|
}
|
|
10045
|
-
const
|
|
10046
|
-
root:
|
|
10047
|
-
section:
|
|
10048
|
-
sectionHeader:
|
|
10049
|
-
sectionIcon:
|
|
10050
|
-
sectionTitle:
|
|
10051
|
-
sectionDesc:
|
|
10052
|
-
cardGrid:
|
|
10053
|
-
card:
|
|
10054
|
-
cardHead:
|
|
10055
|
-
cardName:
|
|
10056
|
-
cardMeta:
|
|
10057
|
-
cardFoot:
|
|
10058
|
-
instanceList:
|
|
10059
|
-
instanceRow:
|
|
10060
|
-
instanceInfo:
|
|
10061
|
-
instanceName:
|
|
10062
|
-
instancePath:
|
|
10063
|
-
instanceOps:
|
|
10064
|
-
empty:
|
|
10065
|
-
loadingWrap:
|
|
10066
|
-
formRow:
|
|
10067
|
-
formLabel:
|
|
10060
|
+
const qf = "_root_s8ypb_1", Kf = "_section_s8ypb_13", Vf = "_sectionHeader_s8ypb_23", Jf = "_sectionIcon_s8ypb_31", Yf = "_sectionTitle_s8ypb_36", Qf = "_sectionDesc_s8ypb_42", Xf = "_cardGrid_s8ypb_49", Zf = "_card_s8ypb_49", ey = "_cardHead_s8ypb_71", ty = "_cardName_s8ypb_78", ny = "_cardMeta_s8ypb_88", ay = "_cardFoot_s8ypb_96", sy = "_instanceList_s8ypb_107", ly = "_instanceRow_s8ypb_113", oy = "_instanceInfo_s8ypb_124", iy = "_instanceName_s8ypb_132", ry = "_instancePath_s8ypb_143", cy = "_instanceOps_s8ypb_153", dy = "_empty_s8ypb_161", uy = "_loadingWrap_s8ypb_165", my = "_formRow_s8ypb_172", hy = "_formLabel_s8ypb_179", Me = {
|
|
10061
|
+
root: qf,
|
|
10062
|
+
section: Kf,
|
|
10063
|
+
sectionHeader: Vf,
|
|
10064
|
+
sectionIcon: Jf,
|
|
10065
|
+
sectionTitle: Yf,
|
|
10066
|
+
sectionDesc: Qf,
|
|
10067
|
+
cardGrid: Xf,
|
|
10068
|
+
card: Zf,
|
|
10069
|
+
cardHead: ey,
|
|
10070
|
+
cardName: ty,
|
|
10071
|
+
cardMeta: ny,
|
|
10072
|
+
cardFoot: ay,
|
|
10073
|
+
instanceList: sy,
|
|
10074
|
+
instanceRow: ly,
|
|
10075
|
+
instanceInfo: oy,
|
|
10076
|
+
instanceName: iy,
|
|
10077
|
+
instancePath: ry,
|
|
10078
|
+
instanceOps: cy,
|
|
10079
|
+
empty: dy,
|
|
10080
|
+
loadingWrap: uy,
|
|
10081
|
+
formRow: my,
|
|
10082
|
+
formLabel: hy
|
|
10068
10083
|
}, Js = (t) => `ft_webide_spaces_${t ?? "guest"}`;
|
|
10069
|
-
function
|
|
10084
|
+
function py(t) {
|
|
10070
10085
|
try {
|
|
10071
10086
|
const s = localStorage.getItem(Js(t));
|
|
10072
10087
|
if (!s) return [];
|
|
@@ -10082,7 +10097,7 @@ function ja(t, s) {
|
|
|
10082
10097
|
} catch {
|
|
10083
10098
|
}
|
|
10084
10099
|
}
|
|
10085
|
-
const
|
|
10100
|
+
const jn = {
|
|
10086
10101
|
name: "",
|
|
10087
10102
|
type: "git",
|
|
10088
10103
|
giturl: "",
|
|
@@ -10091,9 +10106,9 @@ const Hn = {
|
|
|
10091
10106
|
path: ""
|
|
10092
10107
|
};
|
|
10093
10108
|
function Ys() {
|
|
10094
|
-
const t = Ye((k) => k.currentUser), s = t == null ? void 0 : t.id, [a, l] = o([]), [i, c] = o([]), [h, r] = o(!1), [u, m] = o(!1), [d, g] = o(
|
|
10109
|
+
const t = Ye((k) => k.currentUser), s = t == null ? void 0 : t.id, [a, l] = o([]), [i, c] = o([]), [h, r] = o(!1), [u, m] = o(!1), [d, g] = o(jn), [b, M] = o(!1), [x, I] = o(null);
|
|
10095
10110
|
oe(() => {
|
|
10096
|
-
l(
|
|
10111
|
+
l(py(s));
|
|
10097
10112
|
}, [s]);
|
|
10098
10113
|
const D = F(async () => {
|
|
10099
10114
|
r(!0);
|
|
@@ -10143,7 +10158,7 @@ function Ys() {
|
|
|
10143
10158
|
path: d.type === "shared" ? d.path.trim() : void 0,
|
|
10144
10159
|
createdAt: Date.now()
|
|
10145
10160
|
}, v = [k, ...a];
|
|
10146
|
-
l(v), ja(s, v), g(
|
|
10161
|
+
l(v), ja(s, v), g(jn), M(!1), m(!1), O(k), setTimeout(D, 1500);
|
|
10147
10162
|
}, [d, a, s, O, D]), W = F(
|
|
10148
10163
|
(k) => {
|
|
10149
10164
|
jt.confirm({
|
|
@@ -10284,7 +10299,7 @@ function Ys() {
|
|
|
10284
10299
|
{
|
|
10285
10300
|
className: Me.instanceName,
|
|
10286
10301
|
title: k.name || k.workspaceDir,
|
|
10287
|
-
children: k.name ||
|
|
10302
|
+
children: k.name || _y(k.workspaceDir) || `实例 #${k.id}`
|
|
10288
10303
|
}
|
|
10289
10304
|
),
|
|
10290
10305
|
/* @__PURE__ */ e(ge, { color: k.status === 1 ? "green" : "default", children: k.status === 1 ? "运行中" : "已停止" }),
|
|
@@ -10342,7 +10357,7 @@ function Ys() {
|
|
|
10342
10357
|
open: u,
|
|
10343
10358
|
onOk: ae,
|
|
10344
10359
|
onCancel: () => {
|
|
10345
|
-
g(
|
|
10360
|
+
g(jn), m(!1);
|
|
10346
10361
|
},
|
|
10347
10362
|
confirmLoading: b,
|
|
10348
10363
|
okText: "创建并打开",
|
|
@@ -10431,37 +10446,37 @@ function Fa(t) {
|
|
|
10431
10446
|
}
|
|
10432
10447
|
return t.path || "—";
|
|
10433
10448
|
}
|
|
10434
|
-
function
|
|
10449
|
+
function _y(t) {
|
|
10435
10450
|
if (!t) return "";
|
|
10436
10451
|
const s = t.replace(/\/+$/, ""), a = s.lastIndexOf("/");
|
|
10437
10452
|
return a >= 0 ? s.substring(a + 1) : s;
|
|
10438
10453
|
}
|
|
10439
|
-
const
|
|
10440
|
-
shell:
|
|
10441
|
-
inset:
|
|
10442
|
-
main:
|
|
10443
|
-
pane:
|
|
10444
|
-
skipLink:
|
|
10445
|
-
personalMainArea:
|
|
10446
|
-
personalSidebar:
|
|
10447
|
-
personalChatArea:
|
|
10448
|
-
},
|
|
10449
|
-
sidebar:
|
|
10450
|
-
collapsed:
|
|
10451
|
-
sideHeader:
|
|
10452
|
-
sideHeaderIcon:
|
|
10453
|
-
sideHeaderTitle:
|
|
10454
|
-
sideContent:
|
|
10455
|
-
groupLabel:
|
|
10456
|
-
navList:
|
|
10457
|
-
navItem:
|
|
10458
|
-
navItemActive:
|
|
10459
|
-
navIcon:
|
|
10460
|
-
navLabel:
|
|
10461
|
-
sideFooter:
|
|
10462
|
-
footHint:
|
|
10454
|
+
const gy = "_shell_1w53k_2", fy = "_inset_1w53k_33", yy = "_main_1w53k_40", vy = "_pane_1w53k_52", by = "_skipLink_1w53k_62", Ny = "_personalMainArea_1w53k_82", ky = "_personalSidebar_1w53k_90", Cy = "_personalChatArea_1w53k_103", Ut = {
|
|
10455
|
+
shell: gy,
|
|
10456
|
+
inset: fy,
|
|
10457
|
+
main: yy,
|
|
10458
|
+
pane: vy,
|
|
10459
|
+
skipLink: by,
|
|
10460
|
+
personalMainArea: Ny,
|
|
10461
|
+
personalSidebar: ky,
|
|
10462
|
+
personalChatArea: Cy
|
|
10463
|
+
}, wy = "_sidebar_y5tuo_1", Sy = "_collapsed_y5tuo_12", Ty = "_sideHeader_y5tuo_17", Iy = "_sideHeaderIcon_y5tuo_32", xy = "_sideHeaderTitle_y5tuo_45", Ay = "_sideContent_y5tuo_54", By = "_groupLabel_y5tuo_61", Ly = "_navList_y5tuo_71", My = "_navItem_y5tuo_77", $y = "_navItemActive_y5tuo_109", Ry = "_navIcon_y5tuo_114", Dy = "_navLabel_y5tuo_120", Ey = "_sideFooter_y5tuo_131", Py = "_footHint_y5tuo_138", ut = {
|
|
10464
|
+
sidebar: wy,
|
|
10465
|
+
collapsed: Sy,
|
|
10466
|
+
sideHeader: Ty,
|
|
10467
|
+
sideHeaderIcon: Iy,
|
|
10468
|
+
sideHeaderTitle: xy,
|
|
10469
|
+
sideContent: Ay,
|
|
10470
|
+
groupLabel: By,
|
|
10471
|
+
navList: Ly,
|
|
10472
|
+
navItem: My,
|
|
10473
|
+
navItemActive: $y,
|
|
10474
|
+
navIcon: Ry,
|
|
10475
|
+
navLabel: Dy,
|
|
10476
|
+
sideFooter: Ey,
|
|
10477
|
+
footHint: Py
|
|
10463
10478
|
};
|
|
10464
|
-
function
|
|
10479
|
+
function Oy({
|
|
10465
10480
|
items: t,
|
|
10466
10481
|
activeTab: s,
|
|
10467
10482
|
collapsed: a,
|
|
@@ -10522,17 +10537,17 @@ function Ey({
|
|
|
10522
10537
|
}
|
|
10523
10538
|
);
|
|
10524
10539
|
}
|
|
10525
|
-
const
|
|
10526
|
-
topbar:
|
|
10527
|
-
topbarLeft:
|
|
10528
|
-
collapseBtn:
|
|
10529
|
-
crumbs:
|
|
10530
|
-
crumbsRoot:
|
|
10531
|
-
crumbsSep:
|
|
10532
|
-
crumbsCurrent:
|
|
10533
|
-
topbarRight:
|
|
10540
|
+
const Hy = "_topbar_ms4b7_1", jy = "_topbarLeft_ms4b7_14", Fy = "_collapseBtn_ms4b7_22", Gy = "_crumbs_ms4b7_49", zy = "_crumbsRoot_ms4b7_57", Uy = "_crumbsSep_ms4b7_62", Wy = "_crumbsCurrent_ms4b7_68", qy = "_topbarRight_ms4b7_76", Wt = {
|
|
10541
|
+
topbar: Hy,
|
|
10542
|
+
topbarLeft: jy,
|
|
10543
|
+
collapseBtn: Fy,
|
|
10544
|
+
crumbs: Gy,
|
|
10545
|
+
crumbsRoot: zy,
|
|
10546
|
+
crumbsSep: Uy,
|
|
10547
|
+
crumbsCurrent: Wy,
|
|
10548
|
+
topbarRight: qy
|
|
10534
10549
|
};
|
|
10535
|
-
function
|
|
10550
|
+
function Ky({
|
|
10536
10551
|
label: t,
|
|
10537
10552
|
collapsed: s,
|
|
10538
10553
|
onToggleCollapse: a
|
|
@@ -10575,7 +10590,7 @@ const Qs = [
|
|
|
10575
10590
|
{ key: "websites", label: "常用网站", icon: /* @__PURE__ */ e(Sn, {}) },
|
|
10576
10591
|
{ key: "smart-partner", label: "智能伙伴", icon: /* @__PURE__ */ e(ta, {}) },
|
|
10577
10592
|
{ key: "todo", label: "工作待办", icon: /* @__PURE__ */ e(ms, {}) },
|
|
10578
|
-
{ key: "notes", label: "个人笔记", icon: /* @__PURE__ */ e(
|
|
10593
|
+
{ key: "notes", label: "个人笔记", icon: /* @__PURE__ */ e(An, {}) },
|
|
10579
10594
|
{
|
|
10580
10595
|
key: "training",
|
|
10581
10596
|
label: "培训中心",
|
|
@@ -10585,18 +10600,18 @@ const Qs = [
|
|
|
10585
10600
|
},
|
|
10586
10601
|
{ key: "webide", label: "WebIDE", icon: /* @__PURE__ */ e(ps, {}) }
|
|
10587
10602
|
], Xs = "ft_pw_sidebar_collapsed";
|
|
10588
|
-
function
|
|
10603
|
+
function Vy() {
|
|
10589
10604
|
try {
|
|
10590
10605
|
return localStorage.getItem(Xs) === "1";
|
|
10591
10606
|
} catch {
|
|
10592
10607
|
return !1;
|
|
10593
10608
|
}
|
|
10594
10609
|
}
|
|
10595
|
-
function
|
|
10610
|
+
function Jy(t) {
|
|
10596
10611
|
const s = t;
|
|
10597
10612
|
return s ? s.tagName === "INPUT" || s.tagName === "TEXTAREA" || s.isContentEditable === !0 : !1;
|
|
10598
10613
|
}
|
|
10599
|
-
function
|
|
10614
|
+
function Yy() {
|
|
10600
10615
|
try {
|
|
10601
10616
|
const t = new URLSearchParams(window.location.search).get("tab");
|
|
10602
10617
|
return t && Qs.some((s) => s.key === t) ? t : null;
|
|
@@ -10604,7 +10619,7 @@ function Vy() {
|
|
|
10604
10619
|
return null;
|
|
10605
10620
|
}
|
|
10606
10621
|
}
|
|
10607
|
-
function
|
|
10622
|
+
function Qy({
|
|
10608
10623
|
onOpenProject: t,
|
|
10609
10624
|
openTodoId: s,
|
|
10610
10625
|
selectedPersonalAgent: a,
|
|
@@ -10618,7 +10633,7 @@ function Jy({
|
|
|
10618
10633
|
var v;
|
|
10619
10634
|
const [m, d] = o(
|
|
10620
10635
|
// 惰性初始化:命中深链时直接以目标 Tab 首屏渲染,不先渲染场景工作台再切
|
|
10621
|
-
() =>
|
|
10636
|
+
() => Yy() ?? "workbench"
|
|
10622
10637
|
);
|
|
10623
10638
|
oe(() => {
|
|
10624
10639
|
try {
|
|
@@ -10628,7 +10643,7 @@ function Jy({
|
|
|
10628
10643
|
} catch {
|
|
10629
10644
|
}
|
|
10630
10645
|
}, []);
|
|
10631
|
-
const [g, b] = o(
|
|
10646
|
+
const [g, b] = o(Vy);
|
|
10632
10647
|
oe(() => {
|
|
10633
10648
|
try {
|
|
10634
10649
|
localStorage.setItem(Xs, g ? "1" : "0");
|
|
@@ -10640,17 +10655,17 @@ function Jy({
|
|
|
10640
10655
|
}, []);
|
|
10641
10656
|
oe(() => {
|
|
10642
10657
|
function $(ue) {
|
|
10643
|
-
!(ue.metaKey || ue.ctrlKey) || ue.altKey || ue.key.toLowerCase() === "b" && (
|
|
10658
|
+
!(ue.metaKey || ue.ctrlKey) || ue.altKey || ue.key.toLowerCase() === "b" && (Jy(ue.target) || (ue.preventDefault(), M()));
|
|
10644
10659
|
}
|
|
10645
10660
|
return window.addEventListener("keydown", $), () => window.removeEventListener("keydown", $);
|
|
10646
10661
|
}, [M]);
|
|
10647
10662
|
const x = Ye(($) => $.currentUser), I = Qs.filter(
|
|
10648
|
-
($) => !$.permission ||
|
|
10663
|
+
($) => !$.permission || Tn(x, $.permission)
|
|
10649
10664
|
), D = Le(() => u ? [
|
|
10650
10665
|
{ mode: "admin", label: "运营工作台", icon: /* @__PURE__ */ e(ss, {}) },
|
|
10651
10666
|
{ mode: "collaboration", label: "协作工作台", icon: /* @__PURE__ */ e(El, {}) }
|
|
10652
10667
|
].filter(
|
|
10653
|
-
(ue) =>
|
|
10668
|
+
(ue) => xs(x, ue.mode)
|
|
10654
10669
|
) : [], [x, u]), O = ((v = I.find(($) => $.key === m)) == null ? void 0 : v.label) ?? "个人工作台", [ne, ae] = o(null), [W, A] = o(null), H = F(($) => {
|
|
10655
10670
|
d($);
|
|
10656
10671
|
}, []), Y = F(($) => {
|
|
@@ -10663,7 +10678,7 @@ function Jy({
|
|
|
10663
10678
|
}, [s == null ? void 0 : s.id, s == null ? void 0 : s.ts]), /* @__PURE__ */ n("div", { className: Ut.shell, children: [
|
|
10664
10679
|
/* @__PURE__ */ e("a", { className: Ut.skipLink, href: "#pw-content", children: "跳到个人工作台内容" }),
|
|
10665
10680
|
/* @__PURE__ */ e(
|
|
10666
|
-
|
|
10681
|
+
Oy,
|
|
10667
10682
|
{
|
|
10668
10683
|
items: I,
|
|
10669
10684
|
activeTab: m,
|
|
@@ -10675,7 +10690,7 @@ function Jy({
|
|
|
10675
10690
|
),
|
|
10676
10691
|
/* @__PURE__ */ n("div", { className: Ut.inset, children: [
|
|
10677
10692
|
/* @__PURE__ */ e(
|
|
10678
|
-
|
|
10693
|
+
Ky,
|
|
10679
10694
|
{
|
|
10680
10695
|
label: O,
|
|
10681
10696
|
collapsed: g,
|
|
@@ -10700,8 +10715,8 @@ function Jy({
|
|
|
10700
10715
|
}
|
|
10701
10716
|
),
|
|
10702
10717
|
m === "business-stats" && /* @__PURE__ */ e(Qa, { source: "scenario" }),
|
|
10703
|
-
m === "tools" && /* @__PURE__ */ e(
|
|
10704
|
-
m === "websites" && /* @__PURE__ */ e(
|
|
10718
|
+
m === "tools" && /* @__PURE__ */ e(xn, { showTools: !0, showWebsites: !1 }),
|
|
10719
|
+
m === "websites" && /* @__PURE__ */ e(xn, { showTools: !1, showWebsites: !0 }),
|
|
10705
10720
|
m === "todo" && /* @__PURE__ */ e(
|
|
10706
10721
|
Xa,
|
|
10707
10722
|
{
|
|
@@ -10722,7 +10737,7 @@ function Jy({
|
|
|
10722
10737
|
m === "webide" && /* @__PURE__ */ e(Ys, {}),
|
|
10723
10738
|
m === "smart-partner" && /* @__PURE__ */ n("div", { className: Ut.personalMainArea, children: [
|
|
10724
10739
|
/* @__PURE__ */ e("div", { className: Ut.personalSidebar, children: /* @__PURE__ */ e(
|
|
10725
|
-
|
|
10740
|
+
Ag,
|
|
10726
10741
|
{
|
|
10727
10742
|
selectedAgentId: (a == null ? void 0 : a.id) ?? null,
|
|
10728
10743
|
selectedLocalAgentId: (a == null ? void 0 : a.localAgentId) ?? null,
|
|
@@ -10757,122 +10772,122 @@ function Jy({
|
|
|
10757
10772
|
] })
|
|
10758
10773
|
] });
|
|
10759
10774
|
}
|
|
10760
|
-
const
|
|
10761
|
-
host:
|
|
10762
|
-
header:
|
|
10763
|
-
title:
|
|
10764
|
-
subtitle:
|
|
10765
|
-
searchWrap:
|
|
10766
|
-
searchIcon:
|
|
10767
|
-
searchInput:
|
|
10768
|
-
dimBar:
|
|
10769
|
-
dimBarLabel:
|
|
10770
|
-
dimChip:
|
|
10771
|
-
dimChipActive:
|
|
10772
|
-
dimOrder:
|
|
10773
|
-
dimReset:
|
|
10774
|
-
dimSummary:
|
|
10775
|
-
listHost:
|
|
10776
|
-
groupHeader:
|
|
10777
|
-
groupCaret:
|
|
10778
|
-
groupCaretOpen:
|
|
10779
|
-
groupLabel:
|
|
10780
|
-
groupCount:
|
|
10781
|
-
rowWrap:
|
|
10782
|
-
row:
|
|
10783
|
-
agentDot:
|
|
10784
|
-
rowTitle:
|
|
10785
|
-
spacePill:
|
|
10786
|
-
rowAgent:
|
|
10787
|
-
rowTime:
|
|
10788
|
-
rowActions:
|
|
10789
|
-
rowActionBtn:
|
|
10790
|
-
rowActionBtnActive:
|
|
10791
|
-
rowUpdating:
|
|
10792
|
-
menuMask:
|
|
10793
|
-
empty:
|
|
10794
|
-
emptySpinner:
|
|
10795
|
-
emptyTitle:
|
|
10796
|
-
},
|
|
10797
|
-
shell:
|
|
10798
|
-
sidebar:
|
|
10799
|
-
sideContent:
|
|
10800
|
-
newTaskBtn:
|
|
10801
|
-
sideNav:
|
|
10802
|
-
moreGear:
|
|
10803
|
-
moreFlyout:
|
|
10804
|
-
moreFlyoutItem:
|
|
10805
|
-
moreFlyoutIcon:
|
|
10806
|
-
moreFlyoutDivider:
|
|
10807
|
-
sideTasks:
|
|
10808
|
-
segToggle:
|
|
10809
|
-
segBtn:
|
|
10810
|
-
segBtnActive:
|
|
10811
|
-
tasksLabel:
|
|
10812
|
-
projFolder:
|
|
10813
|
-
projCaret:
|
|
10814
|
-
projCaretOpen:
|
|
10815
|
-
projIcon:
|
|
10816
|
-
projName:
|
|
10817
|
-
projMeta:
|
|
10818
|
-
projRows:
|
|
10819
|
-
tasksEmpty:
|
|
10820
|
-
recentItem:
|
|
10821
|
-
recentItemActive:
|
|
10822
|
-
recentItemText:
|
|
10823
|
-
agentDot:
|
|
10824
|
-
navItem:
|
|
10825
|
-
navItemActive:
|
|
10826
|
-
navIcon:
|
|
10827
|
-
sideFooter:
|
|
10828
|
-
agentMenu:
|
|
10829
|
-
settingsMenu:
|
|
10830
|
-
accountHeader:
|
|
10831
|
-
accountAvatar:
|
|
10832
|
-
accountName:
|
|
10833
|
-
accountItemDisabled:
|
|
10834
|
-
menuDivider:
|
|
10835
|
-
footerCard:
|
|
10836
|
-
footerAvatar:
|
|
10837
|
-
footerMeta:
|
|
10838
|
-
footerName:
|
|
10839
|
-
footerSub:
|
|
10840
|
-
footerGear:
|
|
10841
|
-
main:
|
|
10842
|
-
chatHost:
|
|
10843
|
-
detailHost:
|
|
10844
|
-
personalTabHost:
|
|
10845
|
-
landing:
|
|
10846
|
-
landingInner:
|
|
10847
|
-
landingTitle:
|
|
10848
|
-
landingSub:
|
|
10849
|
-
landingBox:
|
|
10850
|
-
landingInput:
|
|
10851
|
-
landingBoxBar:
|
|
10852
|
-
agentChipWrap:
|
|
10853
|
-
agentChip:
|
|
10854
|
-
chipCaret:
|
|
10855
|
-
agentChipEmpty:
|
|
10856
|
-
agentMenuMask:
|
|
10857
|
-
agentMenuItem:
|
|
10858
|
-
agentMenuItemActive:
|
|
10859
|
-
landingSend:
|
|
10860
|
-
chipRow:
|
|
10861
|
-
suggestChip:
|
|
10862
|
-
emptyState:
|
|
10863
|
-
emptyTitle:
|
|
10864
|
-
newTaskWrap:
|
|
10865
|
-
dropDownMenu:
|
|
10866
|
-
spaceMenu:
|
|
10867
|
-
spaceIcon:
|
|
10868
|
-
spaceName:
|
|
10869
|
-
spaceEmpty:
|
|
10870
|
-
spaceMenuRight:
|
|
10871
|
-
mascot:
|
|
10872
|
-
contextRow:
|
|
10873
|
-
contextChip:
|
|
10874
|
-
capChip:
|
|
10875
|
-
capChipIcon:
|
|
10775
|
+
const Xy = "_host_11m4k_1", Zy = "_header_11m4k_11", e1 = "_title_11m4k_18", t1 = "_subtitle_11m4k_25", n1 = "_searchWrap_11m4k_31", a1 = "_searchIcon_11m4k_47", s1 = "_searchInput_11m4k_52", l1 = "_dimBar_11m4k_66", o1 = "_dimBarLabel_11m4k_73", i1 = "_dimChip_11m4k_78", r1 = "_dimChipActive_11m4k_96", c1 = "_dimOrder_11m4k_102", d1 = "_dimReset_11m4k_115", u1 = "_dimSummary_11m4k_128", m1 = "_listHost_11m4k_135", h1 = "_groupHeader_11m4k_141", p1 = "_groupCaret_11m4k_158", _1 = "_groupCaretOpen_11m4k_165", g1 = "_groupLabel_11m4k_169", f1 = "_groupCount_11m4k_175", y1 = "_rowWrap_11m4k_183", v1 = "_row_11m4k_183", b1 = "_agentDot_11m4k_212", N1 = "_rowTitle_11m4k_225", k1 = "_spacePill_11m4k_235", C1 = "_rowAgent_11m4k_251", w1 = "_rowTime_11m4k_265", S1 = "_rowActions_11m4k_273", T1 = "_rowActionBtn_11m4k_281", I1 = "_rowActionBtnActive_11m4k_297", x1 = "_rowUpdating_11m4k_310", A1 = "_menuMask_11m4k_315", B1 = "_empty_11m4k_322", L1 = "_emptySpinner_11m4k_332", M1 = "_emptyTitle_11m4k_336", De = {
|
|
10776
|
+
host: Xy,
|
|
10777
|
+
header: Zy,
|
|
10778
|
+
title: e1,
|
|
10779
|
+
subtitle: t1,
|
|
10780
|
+
searchWrap: n1,
|
|
10781
|
+
searchIcon: a1,
|
|
10782
|
+
searchInput: s1,
|
|
10783
|
+
dimBar: l1,
|
|
10784
|
+
dimBarLabel: o1,
|
|
10785
|
+
dimChip: i1,
|
|
10786
|
+
dimChipActive: r1,
|
|
10787
|
+
dimOrder: c1,
|
|
10788
|
+
dimReset: d1,
|
|
10789
|
+
dimSummary: u1,
|
|
10790
|
+
listHost: m1,
|
|
10791
|
+
groupHeader: h1,
|
|
10792
|
+
groupCaret: p1,
|
|
10793
|
+
groupCaretOpen: _1,
|
|
10794
|
+
groupLabel: g1,
|
|
10795
|
+
groupCount: f1,
|
|
10796
|
+
rowWrap: y1,
|
|
10797
|
+
row: v1,
|
|
10798
|
+
agentDot: b1,
|
|
10799
|
+
rowTitle: N1,
|
|
10800
|
+
spacePill: k1,
|
|
10801
|
+
rowAgent: C1,
|
|
10802
|
+
rowTime: w1,
|
|
10803
|
+
rowActions: S1,
|
|
10804
|
+
rowActionBtn: T1,
|
|
10805
|
+
rowActionBtnActive: I1,
|
|
10806
|
+
rowUpdating: x1,
|
|
10807
|
+
menuMask: A1,
|
|
10808
|
+
empty: B1,
|
|
10809
|
+
emptySpinner: L1,
|
|
10810
|
+
emptyTitle: M1
|
|
10811
|
+
}, $1 = "_shell_rj83b_3", R1 = "_sidebar_rj83b_28", D1 = "_sideContent_rj83b_38", E1 = "_newTaskBtn_rj83b_49", P1 = "_sideNav_rj83b_80", O1 = "_moreGear_rj83b_87", H1 = "_moreFlyout_rj83b_113", j1 = "_moreFlyoutItem_rj83b_127", F1 = "_moreFlyoutIcon_rj83b_152", G1 = "_moreFlyoutDivider_rj83b_159", z1 = "_sideTasks_rj83b_166", U1 = "_segToggle_rj83b_175", W1 = "_segBtn_rj83b_185", q1 = "_segBtnActive_rj83b_208", K1 = "_tasksLabel_rj83b_215", V1 = "_projFolder_rj83b_223", J1 = "_projCaret_rj83b_249", Y1 = "_projCaretOpen_rj83b_257", Q1 = "_projIcon_rj83b_261", X1 = "_projName_rj83b_267", Z1 = "_projMeta_rj83b_276", ev = "_projRows_rj83b_282", tv = "_tasksEmpty_rj83b_291", nv = "_recentItem_rj83b_297", av = "_recentItemActive_rj83b_328", sv = "_recentItemText_rj83b_334", lv = "_agentDot_rj83b_341", ov = "_navItem_rj83b_354", iv = "_navItemActive_rj83b_385", rv = "_navIcon_rj83b_390", cv = "_sideFooter_rj83b_396", dv = "_agentMenu_rj83b_406", uv = "_settingsMenu_rj83b_407", mv = "_accountHeader_rj83b_415", hv = "_accountAvatar_rj83b_424", pv = "_accountName_rj83b_437", _v = "_accountItemDisabled_rj83b_447", gv = "_menuDivider_rj83b_457", fv = "_footerCard_rj83b_464", yv = "_footerAvatar_rj83b_471", vv = "_footerMeta_rj83b_484", bv = "_footerName_rj83b_492", Nv = "_footerSub_rj83b_501", kv = "_footerGear_rj83b_509", Cv = "_main_rj83b_530", wv = "_chatHost_rj83b_539", Sv = "_detailHost_rj83b_544", Tv = "_personalTabHost_rj83b_550", Iv = "_landing_rj83b_560", xv = "_landingInner_rj83b_570", Av = "_landingTitle_rj83b_578", Bv = "_landingSub_rj83b_586", Lv = "_landingBox_rj83b_592", Mv = "_landingInput_rj83b_608", $v = "_landingBoxBar_rj83b_624", Rv = "_agentChipWrap_rj83b_631", Dv = "_agentChip_rj83b_631", Ev = "_chipCaret_rj83b_656", Pv = "_agentChipEmpty_rj83b_661", Ov = "_agentMenuMask_rj83b_666", Hv = "_agentMenuItem_rj83b_690", jv = "_agentMenuItemActive_rj83b_711", Fv = "_landingSend_rj83b_716", Gv = "_chipRow_rj83b_741", zv = "_suggestChip_rj83b_748", Uv = "_emptyState_rj83b_768", Wv = "_emptyTitle_rj83b_780", qv = "_newTaskWrap_rj83b_799", Kv = "_dropDownMenu_rj83b_803", Vv = "_spaceMenu_rj83b_808", Jv = "_spaceIcon_rj83b_813", Yv = "_spaceName_rj83b_823", Qv = "_spaceEmpty_rj83b_829", Xv = "_spaceMenuRight_rj83b_835", Zv = "_mascot_rj83b_841", eb = "_contextRow_rj83b_860", tb = "_contextChip_rj83b_867", nb = "_capChip_rj83b_886", ab = "_capChipIcon_rj83b_909", C = {
|
|
10812
|
+
shell: $1,
|
|
10813
|
+
sidebar: R1,
|
|
10814
|
+
sideContent: D1,
|
|
10815
|
+
newTaskBtn: E1,
|
|
10816
|
+
sideNav: P1,
|
|
10817
|
+
moreGear: O1,
|
|
10818
|
+
moreFlyout: H1,
|
|
10819
|
+
moreFlyoutItem: j1,
|
|
10820
|
+
moreFlyoutIcon: F1,
|
|
10821
|
+
moreFlyoutDivider: G1,
|
|
10822
|
+
sideTasks: z1,
|
|
10823
|
+
segToggle: U1,
|
|
10824
|
+
segBtn: W1,
|
|
10825
|
+
segBtnActive: q1,
|
|
10826
|
+
tasksLabel: K1,
|
|
10827
|
+
projFolder: V1,
|
|
10828
|
+
projCaret: J1,
|
|
10829
|
+
projCaretOpen: Y1,
|
|
10830
|
+
projIcon: Q1,
|
|
10831
|
+
projName: X1,
|
|
10832
|
+
projMeta: Z1,
|
|
10833
|
+
projRows: ev,
|
|
10834
|
+
tasksEmpty: tv,
|
|
10835
|
+
recentItem: nv,
|
|
10836
|
+
recentItemActive: av,
|
|
10837
|
+
recentItemText: sv,
|
|
10838
|
+
agentDot: lv,
|
|
10839
|
+
navItem: ov,
|
|
10840
|
+
navItemActive: iv,
|
|
10841
|
+
navIcon: rv,
|
|
10842
|
+
sideFooter: cv,
|
|
10843
|
+
agentMenu: dv,
|
|
10844
|
+
settingsMenu: uv,
|
|
10845
|
+
accountHeader: mv,
|
|
10846
|
+
accountAvatar: hv,
|
|
10847
|
+
accountName: pv,
|
|
10848
|
+
accountItemDisabled: _v,
|
|
10849
|
+
menuDivider: gv,
|
|
10850
|
+
footerCard: fv,
|
|
10851
|
+
footerAvatar: yv,
|
|
10852
|
+
footerMeta: vv,
|
|
10853
|
+
footerName: bv,
|
|
10854
|
+
footerSub: Nv,
|
|
10855
|
+
footerGear: kv,
|
|
10856
|
+
main: Cv,
|
|
10857
|
+
chatHost: wv,
|
|
10858
|
+
detailHost: Sv,
|
|
10859
|
+
personalTabHost: Tv,
|
|
10860
|
+
landing: Iv,
|
|
10861
|
+
landingInner: xv,
|
|
10862
|
+
landingTitle: Av,
|
|
10863
|
+
landingSub: Bv,
|
|
10864
|
+
landingBox: Lv,
|
|
10865
|
+
landingInput: Mv,
|
|
10866
|
+
landingBoxBar: $v,
|
|
10867
|
+
agentChipWrap: Rv,
|
|
10868
|
+
agentChip: Dv,
|
|
10869
|
+
chipCaret: Ev,
|
|
10870
|
+
agentChipEmpty: Pv,
|
|
10871
|
+
agentMenuMask: Ov,
|
|
10872
|
+
agentMenuItem: Hv,
|
|
10873
|
+
agentMenuItemActive: jv,
|
|
10874
|
+
landingSend: Fv,
|
|
10875
|
+
chipRow: Gv,
|
|
10876
|
+
suggestChip: zv,
|
|
10877
|
+
emptyState: Uv,
|
|
10878
|
+
emptyTitle: Wv,
|
|
10879
|
+
newTaskWrap: qv,
|
|
10880
|
+
dropDownMenu: Kv,
|
|
10881
|
+
spaceMenu: Vv,
|
|
10882
|
+
spaceIcon: Jv,
|
|
10883
|
+
spaceName: Yv,
|
|
10884
|
+
spaceEmpty: Qv,
|
|
10885
|
+
spaceMenuRight: Xv,
|
|
10886
|
+
mascot: Zv,
|
|
10887
|
+
contextRow: eb,
|
|
10888
|
+
contextChip: tb,
|
|
10889
|
+
capChip: nb,
|
|
10890
|
+
capChipIcon: ab
|
|
10876
10891
|
};
|
|
10877
10892
|
function Zn({
|
|
10878
10893
|
token: t,
|
|
@@ -10940,16 +10955,16 @@ const Ga = [
|
|
|
10940
10955
|
{ key: "space", label: "项目空间" },
|
|
10941
10956
|
{ key: "agent", label: "伙伴" }
|
|
10942
10957
|
], za = "ft_exclusive_history_groupDims", Ua = ["#2F70F1", "#52c41a", "#fa8c16", "#722ed1", "#13c2c2"];
|
|
10943
|
-
function
|
|
10958
|
+
function sb(t) {
|
|
10944
10959
|
let s = 0;
|
|
10945
10960
|
for (let a = 0; a < t.length; a++) s = s * 31 + t.charCodeAt(a) | 0;
|
|
10946
10961
|
return Ua[Math.abs(s) % Ua.length];
|
|
10947
10962
|
}
|
|
10948
|
-
function
|
|
10963
|
+
function lb(t) {
|
|
10949
10964
|
const s = t.updateTime || t.createTime || "";
|
|
10950
10965
|
return s.length >= 16 ? s.slice(5, 16) : s || "--";
|
|
10951
10966
|
}
|
|
10952
|
-
function
|
|
10967
|
+
function ob(t) {
|
|
10953
10968
|
const s = t.updateTime || t.createTime || "";
|
|
10954
10969
|
if (!s) return ["5", "未知时间"];
|
|
10955
10970
|
const a = new Date(s.replace(" ", "T"));
|
|
@@ -10961,7 +10976,7 @@ function sb(t) {
|
|
|
10961
10976
|
).getTime(), c = a.getTime();
|
|
10962
10977
|
return c >= i ? ["1", "今天"] : c >= i - 864e5 ? ["2", "昨天"] : c >= i - 7 * 864e5 ? ["3", "近7天"] : ["4", "更早"];
|
|
10963
10978
|
}
|
|
10964
|
-
function
|
|
10979
|
+
function ib({
|
|
10965
10980
|
agents: t,
|
|
10966
10981
|
token: s,
|
|
10967
10982
|
onOpenSession: a
|
|
@@ -11013,7 +11028,7 @@ function lb({
|
|
|
11013
11028
|
var q;
|
|
11014
11029
|
switch (V) {
|
|
11015
11030
|
case "time":
|
|
11016
|
-
return
|
|
11031
|
+
return ob(y);
|
|
11017
11032
|
case "space":
|
|
11018
11033
|
return y.projectSpaceId != null ? [
|
|
11019
11034
|
String(y.projectSpaceId),
|
|
@@ -11089,7 +11104,7 @@ function lb({
|
|
|
11089
11104
|
{
|
|
11090
11105
|
className: De.agentDot,
|
|
11091
11106
|
style: {
|
|
11092
|
-
background:
|
|
11107
|
+
background: sb(
|
|
11093
11108
|
($ == null ? void 0 : $.displayName) || String(v.personalAgentId)
|
|
11094
11109
|
)
|
|
11095
11110
|
},
|
|
@@ -11105,7 +11120,7 @@ function lb({
|
|
|
11105
11120
|
/* @__PURE__ */ e(Kt, {}),
|
|
11106
11121
|
($ == null ? void 0 : $.displayName) || "未知伙伴"
|
|
11107
11122
|
] }),
|
|
11108
|
-
/* @__PURE__ */ e("span", { className: De.rowTime, children:
|
|
11123
|
+
/* @__PURE__ */ e("span", { className: De.rowTime, children: lb(v) })
|
|
11109
11124
|
]
|
|
11110
11125
|
}
|
|
11111
11126
|
),
|
|
@@ -11227,86 +11242,86 @@ function lb({
|
|
|
11227
11242
|
] }) : A === 0 ? /* @__PURE__ */ e("div", { className: De.empty, children: /* @__PURE__ */ e("span", { className: De.emptyTitle, children: l.length === 0 ? "还没有会话,去新建任务开始第一段对话吧" : "没有匹配的会话" }) }) : W.map((v) => k(v, 0)) })
|
|
11228
11243
|
] });
|
|
11229
11244
|
}
|
|
11230
|
-
const
|
|
11231
|
-
host:
|
|
11232
|
-
header:
|
|
11233
|
-
title:
|
|
11234
|
-
subtitle:
|
|
11235
|
-
section:
|
|
11236
|
-
sectionHead:
|
|
11237
|
-
sectionIcon:
|
|
11238
|
-
sectionTitle:
|
|
11239
|
-
sectionDesc:
|
|
11240
|
-
empty:
|
|
11241
|
-
agentList:
|
|
11242
|
-
agentRow:
|
|
11243
|
-
agentDot:
|
|
11244
|
-
agentMain:
|
|
11245
|
-
agentName:
|
|
11246
|
-
sharedBadge:
|
|
11247
|
-
agentCode:
|
|
11248
|
-
rowBtn:
|
|
11249
|
-
rowBtnGhost:
|
|
11250
|
-
createRow:
|
|
11251
|
-
createInput:
|
|
11252
|
-
createBtn:
|
|
11253
|
-
skillGrid:
|
|
11254
|
-
skillCard:
|
|
11255
|
-
skillHead:
|
|
11256
|
-
skillName:
|
|
11257
|
-
skillToggle:
|
|
11258
|
-
skillToggleOn:
|
|
11259
|
-
skillToggling:
|
|
11260
|
-
skillCategory:
|
|
11261
|
-
skillDesc:
|
|
11262
|
-
marketToolbar:
|
|
11263
|
-
marketSearch:
|
|
11264
|
-
marketSearchIcon:
|
|
11265
|
-
chipRow:
|
|
11266
|
-
chipRowLabel:
|
|
11267
|
-
tagChip:
|
|
11268
|
-
chip:
|
|
11269
|
-
chipActive:
|
|
11270
|
-
marketGroups:
|
|
11271
|
-
marketGroup:
|
|
11272
|
-
marketGroupHead:
|
|
11273
|
-
marketGroupName:
|
|
11274
|
-
marketGroupCount:
|
|
11275
|
-
marketGrid:
|
|
11276
|
-
marketCard:
|
|
11277
|
-
cardHead:
|
|
11278
|
-
cardIcon:
|
|
11279
|
-
cardTitle:
|
|
11280
|
-
cardName:
|
|
11281
|
-
cardCode:
|
|
11282
|
-
cardDesc:
|
|
11283
|
-
tagRow:
|
|
11284
|
-
tagPill:
|
|
11285
|
-
cardSymptom:
|
|
11286
|
-
cardFoot:
|
|
11287
|
-
footTag:
|
|
11288
|
-
footMeta:
|
|
11289
|
-
detailMask:
|
|
11290
|
-
detailPanel:
|
|
11291
|
-
detailHead:
|
|
11292
|
-
detailTitleWrap:
|
|
11293
|
-
detailTitle:
|
|
11294
|
-
detailCode:
|
|
11295
|
-
detailClose:
|
|
11296
|
-
detailMeta:
|
|
11297
|
-
metaItem:
|
|
11298
|
-
detailSymptoms:
|
|
11299
|
-
detailSymptomLabel:
|
|
11300
|
-
detailBody:
|
|
11301
|
-
detailRefs:
|
|
11302
|
-
detailRefsBody:
|
|
11303
|
-
detailNote:
|
|
11304
|
-
placeholderGrid:
|
|
11305
|
-
placeholderCard:
|
|
11306
|
-
placeholderName:
|
|
11307
|
-
placeholderDesc:
|
|
11245
|
+
const rb = "_host_11by3_1", cb = "_header_11by3_11", db = "_title_11by3_17", ub = "_subtitle_11by3_24", mb = "_section_11by3_30", hb = "_sectionHead_11by3_36", pb = "_sectionIcon_11by3_42", _b = "_sectionTitle_11by3_48", gb = "_sectionDesc_11by3_54", fb = "_empty_11by3_59", yb = "_agentList_11by3_69", vb = "_agentRow_11by3_78", bb = "_agentDot_11by3_90", Nb = "_agentMain_11by3_103", kb = "_agentName_11by3_111", Cb = "_sharedBadge_11by3_120", wb = "_agentCode_11by3_129", Sb = "_rowBtn_11by3_137", Tb = "_rowBtnGhost_11by3_156", Ib = "_createRow_11by3_160", xb = "_createInput_11by3_167", Ab = "_createBtn_11by3_182", Bb = "_skillGrid_11by3_202", Lb = "_skillCard_11by3_208", Mb = "_skillHead_11by3_218", $b = "_skillName_11by3_225", Rb = "_skillToggle_11by3_231", Db = "_skillToggleOn_11by3_254", Eb = "_skillToggling_11by3_262", Pb = "_skillCategory_11by3_267", Ob = "_skillDesc_11by3_276", Hb = "_marketToolbar_11by3_286", jb = "_marketSearch_11by3_292", Fb = "_marketSearchIcon_11by3_307", Gb = "_chipRow_11by3_324", zb = "_chipRowLabel_11by3_331", Ub = "_tagChip_11by3_339", Wb = "_chip_11by3_324", qb = "_chipActive_11by3_361", Kb = "_marketGroups_11by3_368", Vb = "_marketGroup_11by3_368", Jb = "_marketGroupHead_11by3_380", Yb = "_marketGroupName_11by3_388", Qb = "_marketGroupCount_11by3_394", Xb = "_marketGrid_11by3_399", Zb = "_marketCard_11by3_405", eN = "_cardHead_11by3_427", tN = "_cardIcon_11by3_433", nN = "_cardTitle_11by3_445", aN = "_cardName_11by3_452", sN = "_cardCode_11by3_461", lN = "_cardDesc_11by3_470", oN = "_tagRow_11by3_479", iN = "_tagPill_11by3_485", rN = "_cardSymptom_11by3_495", cN = "_cardFoot_11by3_515", dN = "_footTag_11by3_523", uN = "_footMeta_11by3_532", mN = "_detailMask_11by3_542", hN = "_detailPanel_11by3_549", pN = "_detailHead_11by3_567", _N = "_detailTitleWrap_11by3_574", gN = "_detailTitle_11by3_574", fN = "_detailCode_11by3_587", yN = "_detailClose_11by3_593", vN = "_detailMeta_11by3_610", bN = "_metaItem_11by3_616", NN = "_detailSymptoms_11by3_624", kN = "_detailSymptomLabel_11by3_635", CN = "_detailBody_11by3_642", wN = "_detailRefs_11by3_657", SN = "_detailRefsBody_11by3_663", TN = "_detailNote_11by3_678", IN = "_placeholderGrid_11by3_686", xN = "_placeholderCard_11by3_692", AN = "_placeholderName_11by3_701", BN = "_placeholderDesc_11by3_707", E = {
|
|
11246
|
+
host: rb,
|
|
11247
|
+
header: cb,
|
|
11248
|
+
title: db,
|
|
11249
|
+
subtitle: ub,
|
|
11250
|
+
section: mb,
|
|
11251
|
+
sectionHead: hb,
|
|
11252
|
+
sectionIcon: pb,
|
|
11253
|
+
sectionTitle: _b,
|
|
11254
|
+
sectionDesc: gb,
|
|
11255
|
+
empty: fb,
|
|
11256
|
+
agentList: yb,
|
|
11257
|
+
agentRow: vb,
|
|
11258
|
+
agentDot: bb,
|
|
11259
|
+
agentMain: Nb,
|
|
11260
|
+
agentName: kb,
|
|
11261
|
+
sharedBadge: Cb,
|
|
11262
|
+
agentCode: wb,
|
|
11263
|
+
rowBtn: Sb,
|
|
11264
|
+
rowBtnGhost: Tb,
|
|
11265
|
+
createRow: Ib,
|
|
11266
|
+
createInput: xb,
|
|
11267
|
+
createBtn: Ab,
|
|
11268
|
+
skillGrid: Bb,
|
|
11269
|
+
skillCard: Lb,
|
|
11270
|
+
skillHead: Mb,
|
|
11271
|
+
skillName: $b,
|
|
11272
|
+
skillToggle: Rb,
|
|
11273
|
+
skillToggleOn: Db,
|
|
11274
|
+
skillToggling: Eb,
|
|
11275
|
+
skillCategory: Pb,
|
|
11276
|
+
skillDesc: Ob,
|
|
11277
|
+
marketToolbar: Hb,
|
|
11278
|
+
marketSearch: jb,
|
|
11279
|
+
marketSearchIcon: Fb,
|
|
11280
|
+
chipRow: Gb,
|
|
11281
|
+
chipRowLabel: zb,
|
|
11282
|
+
tagChip: Ub,
|
|
11283
|
+
chip: Wb,
|
|
11284
|
+
chipActive: qb,
|
|
11285
|
+
marketGroups: Kb,
|
|
11286
|
+
marketGroup: Vb,
|
|
11287
|
+
marketGroupHead: Jb,
|
|
11288
|
+
marketGroupName: Yb,
|
|
11289
|
+
marketGroupCount: Qb,
|
|
11290
|
+
marketGrid: Xb,
|
|
11291
|
+
marketCard: Zb,
|
|
11292
|
+
cardHead: eN,
|
|
11293
|
+
cardIcon: tN,
|
|
11294
|
+
cardTitle: nN,
|
|
11295
|
+
cardName: aN,
|
|
11296
|
+
cardCode: sN,
|
|
11297
|
+
cardDesc: lN,
|
|
11298
|
+
tagRow: oN,
|
|
11299
|
+
tagPill: iN,
|
|
11300
|
+
cardSymptom: rN,
|
|
11301
|
+
cardFoot: cN,
|
|
11302
|
+
footTag: dN,
|
|
11303
|
+
footMeta: uN,
|
|
11304
|
+
detailMask: mN,
|
|
11305
|
+
detailPanel: hN,
|
|
11306
|
+
detailHead: pN,
|
|
11307
|
+
detailTitleWrap: _N,
|
|
11308
|
+
detailTitle: gN,
|
|
11309
|
+
detailCode: fN,
|
|
11310
|
+
detailClose: yN,
|
|
11311
|
+
detailMeta: vN,
|
|
11312
|
+
metaItem: bN,
|
|
11313
|
+
detailSymptoms: NN,
|
|
11314
|
+
detailSymptomLabel: kN,
|
|
11315
|
+
detailBody: CN,
|
|
11316
|
+
detailRefs: wN,
|
|
11317
|
+
detailRefsBody: SN,
|
|
11318
|
+
detailNote: TN,
|
|
11319
|
+
placeholderGrid: IN,
|
|
11320
|
+
placeholderCard: xN,
|
|
11321
|
+
placeholderName: AN,
|
|
11322
|
+
placeholderDesc: BN
|
|
11308
11323
|
};
|
|
11309
|
-
function
|
|
11324
|
+
function LN({
|
|
11310
11325
|
agents: t,
|
|
11311
11326
|
loading: s,
|
|
11312
11327
|
skillsAgent: a,
|
|
@@ -11700,44 +11715,44 @@ function qa(t) {
|
|
|
11700
11715
|
for (let a = 0; a < t.length; a++) s = s * 31 + t.charCodeAt(a) | 0;
|
|
11701
11716
|
return Wa[Math.abs(s) % Wa.length];
|
|
11702
11717
|
}
|
|
11703
|
-
const
|
|
11704
|
-
host:
|
|
11705
|
-
header:
|
|
11706
|
-
title:
|
|
11707
|
-
subtitle:
|
|
11708
|
-
newBtn:
|
|
11709
|
-
schedulerBanner:
|
|
11710
|
-
statusDot:
|
|
11711
|
-
statusDotOn:
|
|
11712
|
-
schedulerText:
|
|
11713
|
-
schedulerTitle:
|
|
11714
|
-
schedulerDesc:
|
|
11715
|
-
demoBadge:
|
|
11716
|
-
taskList:
|
|
11717
|
-
sectionHead:
|
|
11718
|
-
sectionTitle:
|
|
11719
|
-
sectionCount:
|
|
11720
|
-
recordList:
|
|
11721
|
-
recordRow:
|
|
11722
|
-
runStatus:
|
|
11723
|
-
run_success:
|
|
11724
|
-
run_failed:
|
|
11725
|
-
run_running:
|
|
11726
|
-
recordMain:
|
|
11727
|
-
recordTask:
|
|
11728
|
-
recordSummary:
|
|
11729
|
-
recordMeta:
|
|
11730
|
-
taskRow:
|
|
11731
|
-
toggle:
|
|
11732
|
-
taskMain:
|
|
11733
|
-
taskName:
|
|
11734
|
-
taskDesc:
|
|
11735
|
-
taskMeta:
|
|
11736
|
-
metaLine:
|
|
11737
|
-
metaNext:
|
|
11738
|
-
footerHint:
|
|
11718
|
+
const MN = "_host_yz5cm_1", $N = "_header_yz5cm_11", RN = "_title_yz5cm_18", DN = "_subtitle_yz5cm_25", EN = "_newBtn_yz5cm_31", PN = "_schedulerBanner_yz5cm_47", ON = "_statusDot_yz5cm_57", HN = "_statusDotOn_yz5cm_65", jN = "_schedulerText_yz5cm_70", FN = "_schedulerTitle_yz5cm_77", GN = "_schedulerDesc_yz5cm_83", zN = "_demoBadge_yz5cm_88", UN = "_taskList_yz5cm_97", WN = "_sectionHead_yz5cm_104", qN = "_sectionTitle_yz5cm_111", KN = "_sectionCount_yz5cm_117", VN = "_recordList_yz5cm_123", JN = "_recordRow_yz5cm_129", YN = "_runStatus_yz5cm_139", QN = "_run_success_yz5cm_149", XN = "_run_failed_yz5cm_154", ZN = "_run_running_yz5cm_159", ek = "_recordMain_yz5cm_164", tk = "_recordTask_yz5cm_172", nk = "_recordSummary_yz5cm_178", ak = "_recordMeta_yz5cm_186", sk = "_taskRow_yz5cm_196", lk = "_toggle_yz5cm_206", ok = "_taskMain_yz5cm_227", ik = "_taskName_yz5cm_235", rk = "_taskDesc_yz5cm_241", ck = "_taskMeta_yz5cm_249", dk = "_metaLine_yz5cm_256", uk = "_metaNext_yz5cm_264", mk = "_footerHint_yz5cm_272", $e = {
|
|
11719
|
+
host: MN,
|
|
11720
|
+
header: $N,
|
|
11721
|
+
title: RN,
|
|
11722
|
+
subtitle: DN,
|
|
11723
|
+
newBtn: EN,
|
|
11724
|
+
schedulerBanner: PN,
|
|
11725
|
+
statusDot: ON,
|
|
11726
|
+
statusDotOn: HN,
|
|
11727
|
+
schedulerText: jN,
|
|
11728
|
+
schedulerTitle: FN,
|
|
11729
|
+
schedulerDesc: GN,
|
|
11730
|
+
demoBadge: zN,
|
|
11731
|
+
taskList: UN,
|
|
11732
|
+
sectionHead: WN,
|
|
11733
|
+
sectionTitle: qN,
|
|
11734
|
+
sectionCount: KN,
|
|
11735
|
+
recordList: VN,
|
|
11736
|
+
recordRow: JN,
|
|
11737
|
+
runStatus: YN,
|
|
11738
|
+
run_success: QN,
|
|
11739
|
+
run_failed: XN,
|
|
11740
|
+
run_running: ZN,
|
|
11741
|
+
recordMain: ek,
|
|
11742
|
+
recordTask: tk,
|
|
11743
|
+
recordSummary: nk,
|
|
11744
|
+
recordMeta: ak,
|
|
11745
|
+
taskRow: sk,
|
|
11746
|
+
toggle: lk,
|
|
11747
|
+
taskMain: ok,
|
|
11748
|
+
taskName: ik,
|
|
11749
|
+
taskDesc: rk,
|
|
11750
|
+
taskMeta: ck,
|
|
11751
|
+
metaLine: dk,
|
|
11752
|
+
metaNext: uk,
|
|
11753
|
+
footerHint: mk
|
|
11739
11754
|
};
|
|
11740
|
-
function
|
|
11755
|
+
function hk(t) {
|
|
11741
11756
|
const s = t.trim().split(/\s+/);
|
|
11742
11757
|
if (s.length !== 5) return t;
|
|
11743
11758
|
const [a, l, i, c, h] = s;
|
|
@@ -11803,12 +11818,12 @@ const Ka = [
|
|
|
11803
11818
|
duration: "1 分 03 秒",
|
|
11804
11819
|
summary: "晨报已生成并发送到聊天:昨日 8 条群聊进展、2 个代码变更"
|
|
11805
11820
|
}
|
|
11806
|
-
],
|
|
11821
|
+
], pk = {
|
|
11807
11822
|
success: "成功",
|
|
11808
11823
|
failed: "失败",
|
|
11809
11824
|
running: "进行中"
|
|
11810
11825
|
};
|
|
11811
|
-
function
|
|
11826
|
+
function _k({
|
|
11812
11827
|
localOnline: t
|
|
11813
11828
|
}) {
|
|
11814
11829
|
return /* @__PURE__ */ n("div", { className: $e.host, children: [
|
|
@@ -11860,7 +11875,7 @@ function hk({
|
|
|
11860
11875
|
/* @__PURE__ */ n("div", { className: $e.taskMeta, children: [
|
|
11861
11876
|
/* @__PURE__ */ n("span", { className: $e.metaLine, children: [
|
|
11862
11877
|
/* @__PURE__ */ e(Ls, {}),
|
|
11863
|
-
|
|
11878
|
+
hk(s.cron)
|
|
11864
11879
|
] }),
|
|
11865
11880
|
/* @__PURE__ */ n("span", { className: $e.metaLine, children: [
|
|
11866
11881
|
/* @__PURE__ */ e(Kt, {}),
|
|
@@ -11885,7 +11900,7 @@ function hk({
|
|
|
11885
11900
|
"span",
|
|
11886
11901
|
{
|
|
11887
11902
|
className: `${$e.runStatus} ${$e[`run_${s.status}`]}`,
|
|
11888
|
-
children:
|
|
11903
|
+
children: pk[s.status]
|
|
11889
11904
|
}
|
|
11890
11905
|
),
|
|
11891
11906
|
/* @__PURE__ */ n("div", { className: $e.recordMain, children: [
|
|
@@ -11900,14 +11915,14 @@ function hk({
|
|
|
11900
11915
|
/* @__PURE__ */ e("p", { className: $e.footerHint, children: "失败重试与通知策略讨论中——先看形态,细节后续对齐" })
|
|
11901
11916
|
] });
|
|
11902
11917
|
}
|
|
11903
|
-
async function
|
|
11918
|
+
async function gk(t) {
|
|
11904
11919
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", a = await Yt(
|
|
11905
11920
|
`${Xt}/personal-agents/custom-models${s}`,
|
|
11906
11921
|
Qt
|
|
11907
11922
|
);
|
|
11908
11923
|
return Zt(a, "获取自定义模型失败");
|
|
11909
11924
|
}
|
|
11910
|
-
async function
|
|
11925
|
+
async function fk(t, s) {
|
|
11911
11926
|
const a = t ? `?token=${encodeURIComponent(t)}` : "", l = await Yt(`${Xt}/personal-agents/custom-models${a}`, {
|
|
11912
11927
|
...Qt,
|
|
11913
11928
|
method: "POST",
|
|
@@ -11916,7 +11931,7 @@ async function _k(t, s) {
|
|
|
11916
11931
|
});
|
|
11917
11932
|
return Zt(l, "创建自定义模型失败");
|
|
11918
11933
|
}
|
|
11919
|
-
async function
|
|
11934
|
+
async function yk(t, s, a) {
|
|
11920
11935
|
const l = t ? `?token=${encodeURIComponent(t)}` : "", i = await Yt(
|
|
11921
11936
|
`${Xt}/personal-agents/custom-models/${s}/toggle${l}`,
|
|
11922
11937
|
{
|
|
@@ -11928,14 +11943,14 @@ async function gk(t, s, a) {
|
|
|
11928
11943
|
);
|
|
11929
11944
|
return Zt(i, "切换自定义模型失败");
|
|
11930
11945
|
}
|
|
11931
|
-
async function
|
|
11946
|
+
async function vk(t, s) {
|
|
11932
11947
|
const a = t ? `?token=${encodeURIComponent(t)}` : "", l = await Yt(
|
|
11933
11948
|
`${Xt}/personal-agents/custom-models/${s}${a}`,
|
|
11934
11949
|
{ ...Qt, method: "DELETE" }
|
|
11935
11950
|
);
|
|
11936
11951
|
await Zt(l, "删除自定义模型失败");
|
|
11937
11952
|
}
|
|
11938
|
-
async function
|
|
11953
|
+
async function bk(t) {
|
|
11939
11954
|
const s = t ? `?token=${encodeURIComponent(t)}` : "", a = await Yt(
|
|
11940
11955
|
`${Xt}/personal-agents/user-settings${s}`,
|
|
11941
11956
|
Qt
|
|
@@ -11946,7 +11961,7 @@ async function yk(t) {
|
|
|
11946
11961
|
return {};
|
|
11947
11962
|
}
|
|
11948
11963
|
}
|
|
11949
|
-
async function
|
|
11964
|
+
async function Nk(t, s) {
|
|
11950
11965
|
const a = t ? `?token=${encodeURIComponent(t)}` : "", l = await Yt(`${Xt}/personal-agents/user-settings${a}`, {
|
|
11951
11966
|
...Qt,
|
|
11952
11967
|
method: "POST",
|
|
@@ -11955,56 +11970,56 @@ async function vk(t, s) {
|
|
|
11955
11970
|
});
|
|
11956
11971
|
await Zt(l, "保存设置失败");
|
|
11957
11972
|
}
|
|
11958
|
-
const
|
|
11959
|
-
overlay:
|
|
11960
|
-
modal:
|
|
11961
|
-
closeBtn:
|
|
11962
|
-
menuCol:
|
|
11963
|
-
searchBox:
|
|
11964
|
-
menuGroup:
|
|
11965
|
-
menuGroupTitle:
|
|
11966
|
-
menuItem:
|
|
11967
|
-
menuItemActive:
|
|
11968
|
-
menuItemDisabled:
|
|
11969
|
-
menuIcon:
|
|
11970
|
-
menuEmpty:
|
|
11971
|
-
contentCol:
|
|
11972
|
-
contentHeader:
|
|
11973
|
-
contentHeaderRow:
|
|
11974
|
-
saveStatus:
|
|
11975
|
-
saveStatusError:
|
|
11976
|
-
contentBody:
|
|
11977
|
-
section:
|
|
11978
|
-
sectionTitle:
|
|
11979
|
-
card:
|
|
11980
|
-
row:
|
|
11981
|
-
rowMain:
|
|
11982
|
-
rowTitle:
|
|
11983
|
-
rowDesc:
|
|
11984
|
-
selectBox:
|
|
11985
|
-
disabled:
|
|
11986
|
-
placeholderHost:
|
|
11987
|
-
placeholderIcon:
|
|
11988
|
-
placeholderTitle:
|
|
11989
|
-
placeholderDesc:
|
|
11990
|
-
fieldInput:
|
|
11991
|
-
formGrid:
|
|
11992
|
-
formActions:
|
|
11993
|
-
primaryBtn:
|
|
11994
|
-
ghostBtn:
|
|
11995
|
-
switchBtn:
|
|
11996
|
-
switchOn:
|
|
11997
|
-
mono:
|
|
11998
|
-
hint:
|
|
11999
|
-
errorTip:
|
|
12000
|
-
emptyTip:
|
|
12001
|
-
selectWrap:
|
|
12002
|
-
inputCell:
|
|
12003
|
-
sectionHeadRow:
|
|
12004
|
-
formHint:
|
|
12005
|
-
successTip:
|
|
12006
|
-
enablePill:
|
|
12007
|
-
enableOn:
|
|
11973
|
+
const kk = "_overlay_5bnt0_1", Ck = "_modal_5bnt0_11", wk = "_closeBtn_5bnt0_24", Sk = "_menuCol_5bnt0_45", Tk = "_searchBox_5bnt0_56", Ik = "_menuGroup_5bnt0_78", xk = "_menuGroupTitle_5bnt0_84", Ak = "_menuItem_5bnt0_91", Bk = "_menuItemActive_5bnt0_112", Lk = "_menuItemDisabled_5bnt0_118", Mk = "_menuIcon_5bnt0_123", $k = "_menuEmpty_5bnt0_128", Rk = "_contentCol_5bnt0_136", Dk = "_contentHeader_5bnt0_144", Ek = "_contentHeaderRow_5bnt0_151", Pk = "_saveStatus_5bnt0_162", Ok = "_saveStatusError_5bnt0_168", Hk = "_contentBody_5bnt0_172", jk = "_section_5bnt0_178", Fk = "_sectionTitle_5bnt0_182", Gk = "_card_5bnt0_189", zk = "_row_5bnt0_196", Uk = "_rowMain_5bnt0_208", Wk = "_rowTitle_5bnt0_212", qk = "_rowDesc_5bnt0_218", Kk = "_selectBox_5bnt0_225", Vk = "_disabled_5bnt0_258", Jk = "_placeholderHost_5bnt0_264", Yk = "_placeholderIcon_5bnt0_274", Qk = "_placeholderTitle_5bnt0_279", Xk = "_placeholderDesc_5bnt0_284", Zk = "_fieldInput_5bnt0_289", eC = "_formGrid_5bnt0_304", tC = "_formActions_5bnt0_310", nC = "_primaryBtn_5bnt0_314", aC = "_ghostBtn_5bnt0_328", sC = "_switchBtn_5bnt0_343", lC = "_switchOn_5bnt0_367", oC = "_mono_5bnt0_373", iC = "_hint_5bnt0_378", rC = "_errorTip_5bnt0_384", cC = "_emptyTip_5bnt0_389", dC = "_selectWrap_5bnt0_396", uC = "_inputCell_5bnt0_431", mC = "_sectionHeadRow_5bnt0_436", hC = "_formHint_5bnt0_452", pC = "_successTip_5bnt0_458", _C = "_enablePill_5bnt0_464", gC = "_enableOn_5bnt0_476", R = {
|
|
11974
|
+
overlay: kk,
|
|
11975
|
+
modal: Ck,
|
|
11976
|
+
closeBtn: wk,
|
|
11977
|
+
menuCol: Sk,
|
|
11978
|
+
searchBox: Tk,
|
|
11979
|
+
menuGroup: Ik,
|
|
11980
|
+
menuGroupTitle: xk,
|
|
11981
|
+
menuItem: Ak,
|
|
11982
|
+
menuItemActive: Bk,
|
|
11983
|
+
menuItemDisabled: Lk,
|
|
11984
|
+
menuIcon: Mk,
|
|
11985
|
+
menuEmpty: $k,
|
|
11986
|
+
contentCol: Rk,
|
|
11987
|
+
contentHeader: Dk,
|
|
11988
|
+
contentHeaderRow: Ek,
|
|
11989
|
+
saveStatus: Pk,
|
|
11990
|
+
saveStatusError: Ok,
|
|
11991
|
+
contentBody: Hk,
|
|
11992
|
+
section: jk,
|
|
11993
|
+
sectionTitle: Fk,
|
|
11994
|
+
card: Gk,
|
|
11995
|
+
row: zk,
|
|
11996
|
+
rowMain: Uk,
|
|
11997
|
+
rowTitle: Wk,
|
|
11998
|
+
rowDesc: qk,
|
|
11999
|
+
selectBox: Kk,
|
|
12000
|
+
disabled: Vk,
|
|
12001
|
+
placeholderHost: Jk,
|
|
12002
|
+
placeholderIcon: Yk,
|
|
12003
|
+
placeholderTitle: Qk,
|
|
12004
|
+
placeholderDesc: Xk,
|
|
12005
|
+
fieldInput: Zk,
|
|
12006
|
+
formGrid: eC,
|
|
12007
|
+
formActions: tC,
|
|
12008
|
+
primaryBtn: nC,
|
|
12009
|
+
ghostBtn: aC,
|
|
12010
|
+
switchBtn: sC,
|
|
12011
|
+
switchOn: lC,
|
|
12012
|
+
mono: oC,
|
|
12013
|
+
hint: iC,
|
|
12014
|
+
errorTip: rC,
|
|
12015
|
+
emptyTip: cC,
|
|
12016
|
+
selectWrap: dC,
|
|
12017
|
+
inputCell: uC,
|
|
12018
|
+
sectionHeadRow: mC,
|
|
12019
|
+
formHint: hC,
|
|
12020
|
+
successTip: pC,
|
|
12021
|
+
enablePill: _C,
|
|
12022
|
+
enableOn: gC
|
|
12008
12023
|
}, Nn = [
|
|
12009
12024
|
{
|
|
12010
12025
|
title: "设置",
|
|
@@ -12024,11 +12039,11 @@ const bk = "_overlay_5bnt0_1", Nk = "_modal_5bnt0_11", kk = "_closeBtn_5bnt0_24"
|
|
|
12024
12039
|
{
|
|
12025
12040
|
title: "功能",
|
|
12026
12041
|
items: [
|
|
12027
|
-
{ key: "personalize", label: "个性化", icon: /* @__PURE__ */ e(
|
|
12028
|
-
{ key: "memory", label: "记忆与进化", icon: /* @__PURE__ */ e(
|
|
12042
|
+
{ key: "personalize", label: "个性化", icon: /* @__PURE__ */ e(_i, {}) },
|
|
12043
|
+
{ key: "memory", label: "记忆与进化", icon: /* @__PURE__ */ e(pi, {}) },
|
|
12029
12044
|
{ key: "agents", label: "智能体", icon: /* @__PURE__ */ e(Kt, {}) },
|
|
12030
|
-
{ key: "models", label: "模型", icon: /* @__PURE__ */ e(
|
|
12031
|
-
{ key: "assistant", label: "助理", icon: /* @__PURE__ */ e(
|
|
12045
|
+
{ key: "models", label: "模型", icon: /* @__PURE__ */ e(Ti, {}) },
|
|
12046
|
+
{ key: "assistant", label: "助理", icon: /* @__PURE__ */ e(Si, {}) },
|
|
12032
12047
|
{ key: "devices", label: "设备连接", icon: /* @__PURE__ */ e($s, {}) }
|
|
12033
12048
|
]
|
|
12034
12049
|
},
|
|
@@ -12042,13 +12057,13 @@ const bk = "_overlay_5bnt0_1", Nk = "_modal_5bnt0_11", kk = "_closeBtn_5bnt0_24"
|
|
|
12042
12057
|
icon: /* @__PURE__ */ e(ia, {}),
|
|
12043
12058
|
disabled: !0
|
|
12044
12059
|
},
|
|
12045
|
-
{ key: "security", label: "安全中心", icon: /* @__PURE__ */ e(
|
|
12060
|
+
{ key: "security", label: "安全中心", icon: /* @__PURE__ */ e(Bi, {}) }
|
|
12046
12061
|
]
|
|
12047
12062
|
},
|
|
12048
12063
|
{
|
|
12049
12064
|
title: "",
|
|
12050
12065
|
items: [
|
|
12051
|
-
{ key: "about", label: "关于", icon: /* @__PURE__ */ e(
|
|
12066
|
+
{ key: "about", label: "关于", icon: /* @__PURE__ */ e(Li, {}), disabled: !0 },
|
|
12052
12067
|
{
|
|
12053
12068
|
key: "feedback",
|
|
12054
12069
|
label: "获取帮助",
|
|
@@ -12104,7 +12119,7 @@ function Ze({
|
|
|
12104
12119
|
a
|
|
12105
12120
|
] });
|
|
12106
12121
|
}
|
|
12107
|
-
function
|
|
12122
|
+
function fC({
|
|
12108
12123
|
config: t,
|
|
12109
12124
|
update: s
|
|
12110
12125
|
}) {
|
|
@@ -12149,7 +12164,7 @@ function _C({
|
|
|
12149
12164
|
] })
|
|
12150
12165
|
] });
|
|
12151
12166
|
}
|
|
12152
|
-
function
|
|
12167
|
+
function yC({
|
|
12153
12168
|
config: t,
|
|
12154
12169
|
update: s
|
|
12155
12170
|
}) {
|
|
@@ -12178,7 +12193,7 @@ function gC({
|
|
|
12178
12193
|
] })
|
|
12179
12194
|
] });
|
|
12180
12195
|
}
|
|
12181
|
-
function
|
|
12196
|
+
function vC({
|
|
12182
12197
|
config: t,
|
|
12183
12198
|
update: s
|
|
12184
12199
|
}) {
|
|
@@ -12207,7 +12222,7 @@ function fC({
|
|
|
12207
12222
|
] })
|
|
12208
12223
|
] });
|
|
12209
12224
|
}
|
|
12210
|
-
function
|
|
12225
|
+
function bC({
|
|
12211
12226
|
config: t,
|
|
12212
12227
|
update: s
|
|
12213
12228
|
}) {
|
|
@@ -12229,7 +12244,7 @@ function yC({
|
|
|
12229
12244
|
] })
|
|
12230
12245
|
] });
|
|
12231
12246
|
}
|
|
12232
|
-
function
|
|
12247
|
+
function NC({
|
|
12233
12248
|
config: t,
|
|
12234
12249
|
update: s
|
|
12235
12250
|
}) {
|
|
@@ -12258,7 +12273,7 @@ function vC({
|
|
|
12258
12273
|
] })
|
|
12259
12274
|
] });
|
|
12260
12275
|
}
|
|
12261
|
-
function
|
|
12276
|
+
function kC({
|
|
12262
12277
|
config: t,
|
|
12263
12278
|
update: s
|
|
12264
12279
|
}) {
|
|
@@ -12286,7 +12301,7 @@ function bC({
|
|
|
12286
12301
|
] })
|
|
12287
12302
|
] });
|
|
12288
12303
|
}
|
|
12289
|
-
function
|
|
12304
|
+
function CC({
|
|
12290
12305
|
config: t,
|
|
12291
12306
|
update: s
|
|
12292
12307
|
}) {
|
|
@@ -12310,7 +12325,7 @@ function NC({
|
|
|
12310
12325
|
] })
|
|
12311
12326
|
] });
|
|
12312
12327
|
}
|
|
12313
|
-
function
|
|
12328
|
+
function wC({
|
|
12314
12329
|
config: t,
|
|
12315
12330
|
update: s
|
|
12316
12331
|
}) {
|
|
@@ -12334,7 +12349,7 @@ function kC({
|
|
|
12334
12349
|
] })
|
|
12335
12350
|
] });
|
|
12336
12351
|
}
|
|
12337
|
-
function
|
|
12352
|
+
function SC({
|
|
12338
12353
|
config: t,
|
|
12339
12354
|
update: s
|
|
12340
12355
|
}) {
|
|
@@ -12352,7 +12367,7 @@ function CC({
|
|
|
12352
12367
|
] })
|
|
12353
12368
|
] });
|
|
12354
12369
|
}
|
|
12355
|
-
function
|
|
12370
|
+
function TC({
|
|
12356
12371
|
config: t,
|
|
12357
12372
|
update: s
|
|
12358
12373
|
}) {
|
|
@@ -12376,7 +12391,7 @@ function wC({
|
|
|
12376
12391
|
] })
|
|
12377
12392
|
] });
|
|
12378
12393
|
}
|
|
12379
|
-
function
|
|
12394
|
+
function IC({
|
|
12380
12395
|
config: t,
|
|
12381
12396
|
update: s
|
|
12382
12397
|
}) {
|
|
@@ -12399,17 +12414,17 @@ function SC({
|
|
|
12399
12414
|
] })
|
|
12400
12415
|
] });
|
|
12401
12416
|
}
|
|
12402
|
-
const
|
|
12417
|
+
const Fn = {
|
|
12403
12418
|
name: "",
|
|
12404
12419
|
endpoint: "",
|
|
12405
12420
|
apiKey: "",
|
|
12406
12421
|
modelName: ""
|
|
12407
12422
|
};
|
|
12408
|
-
function
|
|
12409
|
-
const [s, a] = o([]), [l, i] = o(!0), [c, h] = o(
|
|
12423
|
+
function xC({ token: t }) {
|
|
12424
|
+
const [s, a] = o([]), [l, i] = o(!0), [c, h] = o(Fn), [r, u] = o(!1), [m, d] = o(!1), [g, b] = o(""), [M, x] = o(""), I = F(async () => {
|
|
12410
12425
|
i(!0);
|
|
12411
12426
|
try {
|
|
12412
|
-
const A = await
|
|
12427
|
+
const A = await gk(t);
|
|
12413
12428
|
a(A || []), b("");
|
|
12414
12429
|
} catch (A) {
|
|
12415
12430
|
b(A instanceof Error ? A.message : String(A));
|
|
@@ -12424,12 +12439,12 @@ function TC({ token: t }) {
|
|
|
12424
12439
|
if (O) {
|
|
12425
12440
|
d(!0);
|
|
12426
12441
|
try {
|
|
12427
|
-
await
|
|
12442
|
+
await fk(t, {
|
|
12428
12443
|
name: c.name.trim(),
|
|
12429
12444
|
endpoint: c.endpoint.trim(),
|
|
12430
12445
|
apiKey: c.apiKey.trim(),
|
|
12431
12446
|
modelName: c.modelName.trim()
|
|
12432
|
-
}), h(
|
|
12447
|
+
}), h(Fn), u(!1), x("模型已添加,输入区模型菜单即可选用"), window.setTimeout(() => x(""), 3e3), await I();
|
|
12433
12448
|
} catch (A) {
|
|
12434
12449
|
b(A instanceof Error ? A.message : String(A));
|
|
12435
12450
|
} finally {
|
|
@@ -12438,14 +12453,14 @@ function TC({ token: t }) {
|
|
|
12438
12453
|
}
|
|
12439
12454
|
}, ae = async (A) => {
|
|
12440
12455
|
try {
|
|
12441
|
-
await
|
|
12456
|
+
await yk(t, A.id, !A.enable), await I();
|
|
12442
12457
|
} catch (H) {
|
|
12443
12458
|
b(H instanceof Error ? H.message : String(H));
|
|
12444
12459
|
}
|
|
12445
12460
|
}, W = async (A) => {
|
|
12446
12461
|
if (window.confirm(`确定删除自定义模型「${A.name}」吗?`))
|
|
12447
12462
|
try {
|
|
12448
|
-
await
|
|
12463
|
+
await vk(t, A.id), await I();
|
|
12449
12464
|
} catch (H) {
|
|
12450
12465
|
b(H instanceof Error ? H.message : String(H));
|
|
12451
12466
|
}
|
|
@@ -12563,7 +12578,7 @@ function TC({ token: t }) {
|
|
|
12563
12578
|
type: "button",
|
|
12564
12579
|
className: R.ghostBtn,
|
|
12565
12580
|
onClick: () => {
|
|
12566
|
-
u(!1), h(
|
|
12581
|
+
u(!1), h(Fn);
|
|
12567
12582
|
},
|
|
12568
12583
|
children: "取消"
|
|
12569
12584
|
}
|
|
@@ -12583,14 +12598,14 @@ function TC({ token: t }) {
|
|
|
12583
12598
|
] })
|
|
12584
12599
|
] });
|
|
12585
12600
|
}
|
|
12586
|
-
function
|
|
12601
|
+
function AC({ label: t }) {
|
|
12587
12602
|
return /* @__PURE__ */ n("div", { className: R.placeholderHost, children: [
|
|
12588
12603
|
/* @__PURE__ */ e("span", { className: R.placeholderIcon, children: /* @__PURE__ */ e(gn, {}) }),
|
|
12589
12604
|
/* @__PURE__ */ e("span", { className: R.placeholderTitle, children: t }),
|
|
12590
12605
|
/* @__PURE__ */ e("span", { className: R.placeholderDesc, children: "该设置项即将上线" })
|
|
12591
12606
|
] });
|
|
12592
12607
|
}
|
|
12593
|
-
function
|
|
12608
|
+
function BC({
|
|
12594
12609
|
open: t,
|
|
12595
12610
|
onClose: s,
|
|
12596
12611
|
token: a
|
|
@@ -12613,7 +12628,7 @@ function xC({
|
|
|
12613
12628
|
oe(() => {
|
|
12614
12629
|
if (!t) return;
|
|
12615
12630
|
let Y = !0;
|
|
12616
|
-
return d(!1), b(!1),
|
|
12631
|
+
return d(!1), b(!1), bk(a).then((k) => {
|
|
12617
12632
|
Y && (u(k || {}), d(!0));
|
|
12618
12633
|
}).catch(() => {
|
|
12619
12634
|
Y && b(!0);
|
|
@@ -12624,7 +12639,7 @@ function xC({
|
|
|
12624
12639
|
const ae = F(async () => {
|
|
12625
12640
|
D.current != null && (window.clearTimeout(D.current), D.current = null), x("saving");
|
|
12626
12641
|
try {
|
|
12627
|
-
await
|
|
12642
|
+
await Nk(a, I.current), x("saved");
|
|
12628
12643
|
} catch {
|
|
12629
12644
|
x("error");
|
|
12630
12645
|
}
|
|
@@ -12650,31 +12665,31 @@ function xC({
|
|
|
12650
12665
|
return g ? /* @__PURE__ */ e("div", { className: R.emptyTip, children: "设置加载失败,请关闭后重试。" }) : /* @__PURE__ */ e("div", { className: R.emptyTip, children: "加载中…" });
|
|
12651
12666
|
switch (ne.key) {
|
|
12652
12667
|
case "general":
|
|
12653
|
-
return /* @__PURE__ */ e(
|
|
12668
|
+
return /* @__PURE__ */ e(fC, { config: r, update: W });
|
|
12654
12669
|
case "profile":
|
|
12655
|
-
return /* @__PURE__ */ e(
|
|
12670
|
+
return /* @__PURE__ */ e(yC, { config: r, update: W });
|
|
12656
12671
|
case "appearance":
|
|
12657
|
-
return /* @__PURE__ */ e(
|
|
12672
|
+
return /* @__PURE__ */ e(vC, { config: r, update: W });
|
|
12658
12673
|
case "shortcuts":
|
|
12659
|
-
return /* @__PURE__ */ e(
|
|
12674
|
+
return /* @__PURE__ */ e(bC, { config: r, update: W });
|
|
12660
12675
|
case "personalize":
|
|
12661
|
-
return /* @__PURE__ */ e(
|
|
12676
|
+
return /* @__PURE__ */ e(NC, { config: r, update: W });
|
|
12662
12677
|
case "memory":
|
|
12663
|
-
return /* @__PURE__ */ e(
|
|
12678
|
+
return /* @__PURE__ */ e(kC, { config: r, update: W });
|
|
12664
12679
|
case "agents":
|
|
12665
|
-
return /* @__PURE__ */ e(
|
|
12680
|
+
return /* @__PURE__ */ e(CC, { config: r, update: W });
|
|
12666
12681
|
case "assistant":
|
|
12667
|
-
return /* @__PURE__ */ e(
|
|
12682
|
+
return /* @__PURE__ */ e(wC, { config: r, update: W });
|
|
12668
12683
|
case "devices":
|
|
12669
|
-
return /* @__PURE__ */ e(
|
|
12684
|
+
return /* @__PURE__ */ e(SC, { config: r, update: W });
|
|
12670
12685
|
case "security":
|
|
12671
|
-
return /* @__PURE__ */ e(
|
|
12686
|
+
return /* @__PURE__ */ e(TC, { config: r, update: W });
|
|
12672
12687
|
case "data":
|
|
12673
|
-
return /* @__PURE__ */ e(
|
|
12688
|
+
return /* @__PURE__ */ e(IC, { config: r, update: W });
|
|
12674
12689
|
case "models":
|
|
12675
|
-
return /* @__PURE__ */ e(
|
|
12690
|
+
return /* @__PURE__ */ e(xC, { token: a });
|
|
12676
12691
|
default:
|
|
12677
|
-
return /* @__PURE__ */ e(
|
|
12692
|
+
return /* @__PURE__ */ e(AC, { label: ne.label });
|
|
12678
12693
|
}
|
|
12679
12694
|
};
|
|
12680
12695
|
return /* @__PURE__ */ e("div", { className: R.overlay, onClick: A, children: /* @__PURE__ */ n(
|
|
@@ -12746,11 +12761,11 @@ function xC({
|
|
|
12746
12761
|
}
|
|
12747
12762
|
) });
|
|
12748
12763
|
}
|
|
12749
|
-
const _t = ho() || typeof localStorage < "u" && localStorage.getItem("ft_exclusive_force_desktop") === "1",
|
|
12764
|
+
const _t = ho() || typeof localStorage < "u" && localStorage.getItem("ft_exclusive_force_desktop") === "1", LC = `${window.publicPath ?? "/"}logo.svg`, MC = [
|
|
12750
12765
|
"帮我排查一个线上问题",
|
|
12751
12766
|
"总结一下今天的群聊进展",
|
|
12752
12767
|
"把这周的变更整理成周报"
|
|
12753
|
-
],
|
|
12768
|
+
], $C = [
|
|
12754
12769
|
{
|
|
12755
12770
|
key: "video",
|
|
12756
12771
|
label: "视频生成",
|
|
@@ -12761,7 +12776,7 @@ const _t = ho() || typeof localStorage < "u" && localStorage.getItem("ft_exclusi
|
|
|
12761
12776
|
{
|
|
12762
12777
|
key: "docs",
|
|
12763
12778
|
label: "文档办公",
|
|
12764
|
-
icon: /* @__PURE__ */ e(
|
|
12779
|
+
icon: /* @__PURE__ */ e(An, {}),
|
|
12765
12780
|
action: "tools"
|
|
12766
12781
|
},
|
|
12767
12782
|
{
|
|
@@ -12783,13 +12798,13 @@ const _t = ho() || typeof localStorage < "u" && localStorage.getItem("ft_exclusi
|
|
|
12783
12798
|
icon: /* @__PURE__ */ e(Kt, {}),
|
|
12784
12799
|
action: "ask"
|
|
12785
12800
|
}
|
|
12786
|
-
],
|
|
12787
|
-
{ label: "插件", icon: /* @__PURE__ */ e(
|
|
12788
|
-
{ label: "技能", icon: /* @__PURE__ */ e(
|
|
12789
|
-
{ label: "连接器", icon: /* @__PURE__ */ e(
|
|
12790
|
-
],
|
|
12791
|
-
{ label: "页面", icon: /* @__PURE__ */ e(
|
|
12792
|
-
{ label: "云盘", icon: /* @__PURE__ */ e(
|
|
12801
|
+
], RC = [
|
|
12802
|
+
{ label: "插件", icon: /* @__PURE__ */ e(wi, {}) },
|
|
12803
|
+
{ label: "技能", icon: /* @__PURE__ */ e(Ni, {}) },
|
|
12804
|
+
{ label: "连接器", icon: /* @__PURE__ */ e(bi, {}) }
|
|
12805
|
+
], DC = [
|
|
12806
|
+
{ label: "页面", icon: /* @__PURE__ */ e(xi, {}), title: "实验位:页面发布后续接入" },
|
|
12807
|
+
{ label: "云盘", icon: /* @__PURE__ */ e(Ai, {}), title: "实验位:云盘后续接入" },
|
|
12793
12808
|
{
|
|
12794
12809
|
label: "IM 频道",
|
|
12795
12810
|
icon: /* @__PURE__ */ e($s, {}),
|
|
@@ -12800,29 +12815,29 @@ const _t = ho() || typeof localStorage < "u" && localStorage.getItem("ft_exclusi
|
|
|
12800
12815
|
{ tab: "personal", label: "个人统计", icon: /* @__PURE__ */ e(ds, {}) },
|
|
12801
12816
|
{ tab: "business-stats", label: "业务指标", icon: /* @__PURE__ */ e(us, {}) },
|
|
12802
12817
|
{ tab: "tools", label: "常用工具", icon: /* @__PURE__ */ e(As, {}) },
|
|
12803
|
-
{ tab: "websites", label: "常用网站", icon: /* @__PURE__ */ e(
|
|
12818
|
+
{ tab: "websites", label: "常用网站", icon: /* @__PURE__ */ e(Ci, {}) },
|
|
12804
12819
|
{ tab: "todo", label: "工作待办", icon: /* @__PURE__ */ e(ms, {}) },
|
|
12805
|
-
{ tab: "notes", label: "个人笔记", icon: /* @__PURE__ */ e(
|
|
12820
|
+
{ tab: "notes", label: "个人笔记", icon: /* @__PURE__ */ e(An, {}) },
|
|
12806
12821
|
// 学员侧学习入口与培训管理(TRAINING)解耦:按需单独分配,不随培训入口发放。
|
|
12807
12822
|
// ⚠ 必须与二级壳(PersonalWorkspaceShell 的 NAV_ITEMS)用**同一套**权限点过滤,
|
|
12808
12823
|
// 否则浮层这道门形同虚设 —— 无 TRAINING_CENTER 权限的用户照样能点进培训中心页。
|
|
12809
12824
|
{ tab: "training", label: "培训中心", icon: /* @__PURE__ */ e(hs, {}), permission: "TRAINING_CENTER" },
|
|
12810
12825
|
{ tab: "webide", label: "WebIDE", icon: /* @__PURE__ */ e(ps, {}) }
|
|
12811
12826
|
];
|
|
12812
|
-
function
|
|
12827
|
+
function EC() {
|
|
12813
12828
|
const t = (/* @__PURE__ */ new Date()).getHours();
|
|
12814
12829
|
return t < 5 ? "夜深了" : t < 12 ? "早上好" : t < 14 ? "中午好" : t < 18 ? "下午好" : "晚上好";
|
|
12815
12830
|
}
|
|
12816
|
-
function
|
|
12831
|
+
function Gn(t) {
|
|
12817
12832
|
return t ? t.charAt(0).toUpperCase() : "?";
|
|
12818
12833
|
}
|
|
12819
12834
|
const Ya = ["#2F70F1", "#52c41a", "#fa8c16", "#722ed1", "#13c2c2"];
|
|
12820
|
-
function
|
|
12835
|
+
function zn(t) {
|
|
12821
12836
|
let s = 0;
|
|
12822
12837
|
for (let a = 0; a < t.length; a++) s = s * 31 + t.charCodeAt(a) | 0;
|
|
12823
12838
|
return Ya[Math.abs(s) % Ya.length];
|
|
12824
12839
|
}
|
|
12825
|
-
function
|
|
12840
|
+
function PC(t) {
|
|
12826
12841
|
return t.type === "jar" ? {
|
|
12827
12842
|
id: "-1",
|
|
12828
12843
|
userId: "local",
|
|
@@ -12843,13 +12858,13 @@ function DC(t) {
|
|
|
12843
12858
|
localAgentType: t.type
|
|
12844
12859
|
};
|
|
12845
12860
|
}
|
|
12846
|
-
function
|
|
12861
|
+
function r0({
|
|
12847
12862
|
onSwitchMode: t,
|
|
12848
12863
|
onOpenProject: s,
|
|
12849
12864
|
openAgentRequest: a
|
|
12850
12865
|
}) {
|
|
12851
12866
|
const l = Ye((_) => _.token), i = Ye((_) => _.currentUser), c = Ja.filter(
|
|
12852
|
-
(_) => !_.permission ||
|
|
12867
|
+
(_) => !_.permission || Tn(i, _.permission)
|
|
12853
12868
|
), [h, r] = o([]), [u, m] = o(!0), [d, g] = o(null), [b, M] = o("landing"), [x, I] = o(null), [D, O] = o(
|
|
12854
12869
|
_t ? "local" : "cloud"
|
|
12855
12870
|
), [ne, ae] = o(
|
|
@@ -12874,7 +12889,7 @@ function o0({
|
|
|
12874
12889
|
(_) => {
|
|
12875
12890
|
var re;
|
|
12876
12891
|
const P = (re = Ja.find((p) => p.tab === _)) == null ? void 0 : re.permission;
|
|
12877
|
-
P && !
|
|
12892
|
+
P && !Tn(i, P) || (xt(_), M("personalTab"));
|
|
12878
12893
|
},
|
|
12879
12894
|
[i]
|
|
12880
12895
|
), [ct, Oe] = o(!1), [Ct, gt] = o(!1), [wt, ft] = o(
|
|
@@ -12916,7 +12931,7 @@ function o0({
|
|
|
12916
12931
|
if (!_t) return;
|
|
12917
12932
|
let _ = !0;
|
|
12918
12933
|
const P = async () => {
|
|
12919
|
-
const p = await
|
|
12934
|
+
const p = await Kn();
|
|
12920
12935
|
if (_) {
|
|
12921
12936
|
if (de(p), !p) {
|
|
12922
12937
|
pe([]);
|
|
@@ -13097,10 +13112,10 @@ function o0({
|
|
|
13097
13112
|
{
|
|
13098
13113
|
mode: "collaboration",
|
|
13099
13114
|
label: "协作工作台",
|
|
13100
|
-
icon: /* @__PURE__ */ e(
|
|
13115
|
+
icon: /* @__PURE__ */ e(yi, {})
|
|
13101
13116
|
}
|
|
13102
13117
|
].filter(
|
|
13103
|
-
(P) =>
|
|
13118
|
+
(P) => xs(i, P.mode)
|
|
13104
13119
|
) : [], [i, t]), ce = x ? `${x.agent.id}-${x.sessionId ?? 0}-${x.ts}` : "none";
|
|
13105
13120
|
let be;
|
|
13106
13121
|
return b === "agentDetail" && wt ? be = /* @__PURE__ */ e("div", { className: C.detailHost, children: /* @__PURE__ */ e(
|
|
@@ -13109,8 +13124,8 @@ function o0({
|
|
|
13109
13124
|
agent: wt,
|
|
13110
13125
|
onBack: () => M("extensions")
|
|
13111
13126
|
}
|
|
13112
|
-
) }) : b === "schedule" ? be = /* @__PURE__ */ e(
|
|
13113
|
-
|
|
13127
|
+
) }) : b === "schedule" ? be = /* @__PURE__ */ e(_k, { localOnline: N }) : b === "extensions" ? be = /* @__PURE__ */ e(
|
|
13128
|
+
LN,
|
|
13114
13129
|
{
|
|
13115
13130
|
agents: h,
|
|
13116
13131
|
loading: u,
|
|
@@ -13123,14 +13138,14 @@ function o0({
|
|
|
13123
13138
|
onCreated: (_) => r((P) => [...P, _])
|
|
13124
13139
|
}
|
|
13125
13140
|
) : b === "history" ? be = /* @__PURE__ */ e(
|
|
13126
|
-
|
|
13141
|
+
ib,
|
|
13127
13142
|
{
|
|
13128
13143
|
agents: h,
|
|
13129
13144
|
token: l,
|
|
13130
13145
|
onOpenSession: (_, P) => Ve(_, P)
|
|
13131
13146
|
}
|
|
13132
13147
|
) : b === "workbenchShell" ? be = /* @__PURE__ */ e(
|
|
13133
|
-
|
|
13148
|
+
Qy,
|
|
13134
13149
|
{
|
|
13135
13150
|
onOpenProject: Nt,
|
|
13136
13151
|
selectedPersonalAgent: Ee,
|
|
@@ -13165,8 +13180,8 @@ function o0({
|
|
|
13165
13180
|
}
|
|
13166
13181
|
),
|
|
13167
13182
|
ht === "business-stats" && /* @__PURE__ */ e(Qa, { source: "scenario" }),
|
|
13168
|
-
ht === "tools" && /* @__PURE__ */ e(
|
|
13169
|
-
ht === "websites" && /* @__PURE__ */ e(
|
|
13183
|
+
ht === "tools" && /* @__PURE__ */ e(xn, { showTools: !0, showWebsites: !1 }),
|
|
13184
|
+
ht === "websites" && /* @__PURE__ */ e(xn, { showTools: !1, showWebsites: !0 }),
|
|
13170
13185
|
ht === "todo" && /* @__PURE__ */ e(
|
|
13171
13186
|
Xa,
|
|
13172
13187
|
{
|
|
@@ -13201,7 +13216,7 @@ function o0({
|
|
|
13201
13216
|
) }) : _t && qe && b !== "landing" ? be = /* @__PURE__ */ e("div", { className: C.chatHost, children: /* @__PURE__ */ e(
|
|
13202
13217
|
Ds,
|
|
13203
13218
|
{
|
|
13204
|
-
agent:
|
|
13219
|
+
agent: PC(qe),
|
|
13205
13220
|
newSessionTrigger: V,
|
|
13206
13221
|
autoSendDraft: me,
|
|
13207
13222
|
onAutoSendConsumed: () => w(null),
|
|
@@ -13210,9 +13225,9 @@ function o0({
|
|
|
13210
13225
|
},
|
|
13211
13226
|
qe.id
|
|
13212
13227
|
) }) : be = /* @__PURE__ */ e("div", { className: C.landing, children: /* @__PURE__ */ n("div", { className: C.landingInner, children: [
|
|
13213
|
-
/* @__PURE__ */ e("div", { className: C.mascot, "aria-hidden": "true", children: /* @__PURE__ */ e("img", { src:
|
|
13228
|
+
/* @__PURE__ */ e("div", { className: C.mascot, "aria-hidden": "true", children: /* @__PURE__ */ e("img", { src: LC, alt: "" }) }),
|
|
13214
13229
|
/* @__PURE__ */ n("h1", { className: C.landingTitle, children: [
|
|
13215
|
-
|
|
13230
|
+
EC(),
|
|
13216
13231
|
U ? `,${U}` : ""
|
|
13217
13232
|
] }),
|
|
13218
13233
|
/* @__PURE__ */ e("p", { className: C.landingSub, children: "我是你的智能伙伴,有什么可以帮你?" }),
|
|
@@ -13275,8 +13290,8 @@ function o0({
|
|
|
13275
13290
|
"span",
|
|
13276
13291
|
{
|
|
13277
13292
|
className: C.agentDot,
|
|
13278
|
-
style: { background:
|
|
13279
|
-
children:
|
|
13293
|
+
style: { background: zn(_.displayName) },
|
|
13294
|
+
children: Gn(_.displayName)
|
|
13280
13295
|
}
|
|
13281
13296
|
),
|
|
13282
13297
|
_.displayName
|
|
@@ -13329,7 +13344,7 @@ function o0({
|
|
|
13329
13344
|
disabled: !Be.trim() || Ge || !Ee && !(_t && qe),
|
|
13330
13345
|
onClick: () => void te(),
|
|
13331
13346
|
"aria-label": "发送",
|
|
13332
|
-
children: Ge ? /* @__PURE__ */ e(Vn, {}) : /* @__PURE__ */ e(
|
|
13347
|
+
children: Ge ? /* @__PURE__ */ e(Vn, {}) : /* @__PURE__ */ e(ki, {})
|
|
13333
13348
|
}
|
|
13334
13349
|
)
|
|
13335
13350
|
] })
|
|
@@ -13350,7 +13365,7 @@ function o0({
|
|
|
13350
13365
|
/* @__PURE__ */ e("span", { children: "云端" })
|
|
13351
13366
|
] }) })
|
|
13352
13367
|
] }),
|
|
13353
|
-
/* @__PURE__ */ e("div", { className: C.chipRow, children:
|
|
13368
|
+
/* @__PURE__ */ e("div", { className: C.chipRow, children: $C.map((_) => /* @__PURE__ */ n(
|
|
13354
13369
|
"button",
|
|
13355
13370
|
{
|
|
13356
13371
|
type: "button",
|
|
@@ -13378,7 +13393,7 @@ function o0({
|
|
|
13378
13393
|
},
|
|
13379
13394
|
_.key
|
|
13380
13395
|
)) }),
|
|
13381
|
-
/* @__PURE__ */ e("div", { className: C.chipRow, children:
|
|
13396
|
+
/* @__PURE__ */ e("div", { className: C.chipRow, children: MC.map((_) => /* @__PURE__ */ e(
|
|
13382
13397
|
"button",
|
|
13383
13398
|
{
|
|
13384
13399
|
type: "button",
|
|
@@ -13500,7 +13515,7 @@ function o0({
|
|
|
13500
13515
|
className: C.moreFlyout,
|
|
13501
13516
|
style: { top: L.top, left: L.left },
|
|
13502
13517
|
children: [
|
|
13503
|
-
|
|
13518
|
+
RC.map((_) => /* @__PURE__ */ n(
|
|
13504
13519
|
"button",
|
|
13505
13520
|
{
|
|
13506
13521
|
type: "button",
|
|
@@ -13515,7 +13530,7 @@ function o0({
|
|
|
13515
13530
|
},
|
|
13516
13531
|
_.label
|
|
13517
13532
|
)),
|
|
13518
|
-
|
|
13533
|
+
DC.map((_) => /* @__PURE__ */ n(
|
|
13519
13534
|
"button",
|
|
13520
13535
|
{
|
|
13521
13536
|
type: "button",
|
|
@@ -13573,7 +13588,7 @@ function o0({
|
|
|
13573
13588
|
"aria-current": b === "history" ? "page" : void 0,
|
|
13574
13589
|
onClick: () => M("history"),
|
|
13575
13590
|
children: [
|
|
13576
|
-
/* @__PURE__ */ e("span", { className: C.navIcon, children: /* @__PURE__ */ e(
|
|
13591
|
+
/* @__PURE__ */ e("span", { className: C.navIcon, children: /* @__PURE__ */ e(gi, {}) }),
|
|
13577
13592
|
/* @__PURE__ */ e("span", { children: "聊天记录" })
|
|
13578
13593
|
]
|
|
13579
13594
|
}
|
|
@@ -13696,8 +13711,8 @@ function o0({
|
|
|
13696
13711
|
"span",
|
|
13697
13712
|
{
|
|
13698
13713
|
className: C.accountAvatar,
|
|
13699
|
-
style: { background:
|
|
13700
|
-
children:
|
|
13714
|
+
style: { background: zn(U || "用户") },
|
|
13715
|
+
children: Gn(U || "用户")
|
|
13701
13716
|
}
|
|
13702
13717
|
),
|
|
13703
13718
|
/* @__PURE__ */ e("span", { className: C.accountName, children: U || "用户" })
|
|
@@ -13785,7 +13800,7 @@ function o0({
|
|
|
13785
13800
|
disabled: !0,
|
|
13786
13801
|
title: "即将上线",
|
|
13787
13802
|
children: [
|
|
13788
|
-
/* @__PURE__ */ e("span", { className: C.navIcon, children: /* @__PURE__ */ e(
|
|
13803
|
+
/* @__PURE__ */ e("span", { className: C.navIcon, children: /* @__PURE__ */ e(vi, {}) }),
|
|
13789
13804
|
/* @__PURE__ */ e("span", { children: "检查更新" })
|
|
13790
13805
|
]
|
|
13791
13806
|
}
|
|
@@ -13799,7 +13814,7 @@ function o0({
|
|
|
13799
13814
|
className: C.agentMenuItem,
|
|
13800
13815
|
onClick: () => void po(),
|
|
13801
13816
|
children: [
|
|
13802
|
-
/* @__PURE__ */ e("span", { className: C.navIcon, children: /* @__PURE__ */ e(
|
|
13817
|
+
/* @__PURE__ */ e("span", { className: C.navIcon, children: /* @__PURE__ */ e(fi, {}) }),
|
|
13803
13818
|
/* @__PURE__ */ e("span", { children: "退出登录" })
|
|
13804
13819
|
]
|
|
13805
13820
|
}
|
|
@@ -13820,8 +13835,8 @@ function o0({
|
|
|
13820
13835
|
"span",
|
|
13821
13836
|
{
|
|
13822
13837
|
className: C.footerAvatar,
|
|
13823
|
-
style: { background:
|
|
13824
|
-
children:
|
|
13838
|
+
style: { background: zn(U || "用户") },
|
|
13839
|
+
children: Gn(U || "用户")
|
|
13825
13840
|
}
|
|
13826
13841
|
),
|
|
13827
13842
|
/* @__PURE__ */ n("span", { className: C.footerMeta, children: [
|
|
@@ -13848,7 +13863,7 @@ function o0({
|
|
|
13848
13863
|
] }),
|
|
13849
13864
|
/* @__PURE__ */ e("main", { className: C.main, "aria-label": "个人专享工作台内容", children: u && !x && !qe ? /* @__PURE__ */ e("div", { className: C.emptyState, children: /* @__PURE__ */ e("span", { className: C.emptyTitle, children: "正在加载智能伙伴…" }) }) : be }),
|
|
13850
13865
|
/* @__PURE__ */ e(
|
|
13851
|
-
|
|
13866
|
+
BC,
|
|
13852
13867
|
{
|
|
13853
13868
|
open: Ct,
|
|
13854
13869
|
onClose: () => gt(!1),
|
|
@@ -13858,5 +13873,5 @@ function o0({
|
|
|
13858
13873
|
] });
|
|
13859
13874
|
}
|
|
13860
13875
|
export {
|
|
13861
|
-
|
|
13876
|
+
r0 as default
|
|
13862
13877
|
};
|