@yuku123/z-team-component 0.2.139 → 0.2.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/{AdminModuleContent-B1IJbLVN.js → AdminModuleContent-FFU5MUjw.js} +10526 -10697
  2. package/dist/{ChangeLogView-BVKf3AZn.js → ChangeLogView-C5v5uT8L.js} +1 -1
  3. package/dist/{ComponentDoc-BIX-e69A.js → ComponentDoc-DnZq0_Rk.js} +1318 -1313
  4. package/dist/{InvitationManagementPage-DRC_8AiO.js → InvitationManagementPage-dEBNe9_s.js} +1 -1
  5. package/dist/{OnboardingPage-B4GQTFCS.js → OnboardingPage-BW8WhBg5.js} +2 -2
  6. package/dist/ScheduledTasks-BaZ0_klE.js +12024 -0
  7. package/dist/SystemShell-I7vWo1XG.js +858 -0
  8. package/dist/{admin-logs-DK00NEUv.js → admin-logs-BDPC3Q_Y.js} +5 -5
  9. package/dist/{api-C_9xZbZr.js → api-BJ5jPWNm.js} +1 -1
  10. package/dist/{api-DBemNteG.js → api-U9U4zzq_.js} +1 -1
  11. package/dist/createWorkspaceWsHandler-B6TdD0Oz.js +11757 -0
  12. package/dist/{index-BGAG77Nt.js → index-BGZV4U3S.js} +1325 -1187
  13. package/dist/{CollabPersonalHost-BY6RqeQJ.js → index-BPEfgkzE.js} +3 -3
  14. package/dist/{index-BgCxUeRF.js → index-BXaJSMd0.js} +9 -9
  15. package/dist/{from-scenario-D8CIJLDn.js → index-Bfw6OE5L.js} +19 -20
  16. package/dist/index-BlDMnzJF.js +18 -0
  17. package/dist/{welcome-BBLRGBWu.js → index-BmlFIrWx.js} +1 -1
  18. package/dist/{build-by-form-CXxXrXvw.js → index-BwhK44Dc.js} +26 -27
  19. package/dist/{TrainingAdminShell-CgnQM4Nb.js → index-CP5raaOW.js} +780 -792
  20. package/dist/{docs-A-g6sqaE.js → index-CPpqideA.js} +1 -1
  21. package/dist/{index-BM6KEb8k.js → index-CToJEufJ.js} +1 -1
  22. package/dist/{common-Bcnlb4nY.js → index-CVgvlDAT.js} +17 -17
  23. package/dist/{admin-ryysUJ9z.js → index-CmzTSdmD.js} +30 -31
  24. package/dist/{Market-C2vkBzDr.js → index-CsNtBWH-.js} +2 -2
  25. package/dist/index-DIv1OJ_2.js +1840 -0
  26. package/dist/{chat-DKwMolQV.js → index-DKUg7Evq.js} +28 -29
  27. package/dist/{index-BlfOXOZM.js → index-DSXVCDf7.js} +9 -9
  28. package/dist/{OpsWorkbench-D8RF2p4X.js → index-Dd5RE_0a.js} +342 -389
  29. package/dist/index-DuZrrpXt.js +1298 -0
  30. package/dist/{from-ticket-D0oQPEf1.js → index-Gn0zdd5m.js} +2 -2
  31. package/dist/index-WWGxF0UX.js +136 -0
  32. package/dist/{change-log-CcmXtywx.js → index-XTNGZnrF.js} +1 -1
  33. package/dist/{KnowledgeGraphTab-BfhDEyvW.js → index-XgaiU13i.js} +1 -1
  34. package/dist/{scenario-DOpFkfNV.js → index-d6RIzlsj.js} +2 -2
  35. package/dist/{index-Bs_WMKyt.js → index-kjli87DO.js} +3895 -3964
  36. package/dist/{phone-BU4g7eHI.js → index-mDjl3m2W.js} +198 -192
  37. package/dist/{index-Dlf6mERD.js → index-nj-cjKsf.js} +1910 -1950
  38. package/dist/{WorkBuddyShell-DCrPpMd5.js → index-skl-gjj4.js} +6 -6
  39. package/dist/index.js +1 -1
  40. package/dist/instance-D_EP8AQm.js +116 -0
  41. package/dist/{menuPermission-C4EVCwjs.js → menuPermission-Bhnols4v.js} +3 -3
  42. package/dist/pages.js +1 -1
  43. package/dist/{send-default-agent-team-message-1L9Jv1eJ.js → send-default-agent-team-message-0RB1pYex.js} +1 -1
  44. package/dist/{training-BqYfINRR.js → training-B1eRX8g1.js} +1 -1
  45. package/dist/{webide-AknolY0B.js → webide-C4ThGZzY.js} +1161 -1317
  46. package/dist/z-team-component.css +1 -1
  47. package/package.json +5 -4
  48. package/dist/CognitionWorkbench-DrDFy5jN.js +0 -139
  49. package/dist/DevWorkbench-BtiPE_V4.js +0 -228
  50. package/dist/ProductWorkspace-PSO7Q9m-.js +0 -1323
  51. package/dist/ScheduledTasks-CoaHVU6e.js +0 -12006
  52. package/dist/SmartWorkbench-BkdfSgqx.js +0 -1867
  53. package/dist/SystemShell-CANwRSyW.js +0 -886
  54. package/dist/SystemWorkbench.module-DpLM0zgA.js +0 -36
  55. package/dist/createWorkspaceWsHandler-6xyLJ14H.js +0 -12902
  56. package/dist/instance-B9ZKD5cL.js +0 -186
  57. package/dist/sso-user-Co71Xi9I.js +0 -43
  58. /package/dist/{download-B_LJRFsK.js → index-B_LJRFsK.js} +0 -0
  59. /package/dist/{chatdemo-C815hPWS.js → index-C815hPWS.js} +0 -0
  60. /package/dist/{portal-QNpTaU--.js → index-QNpTaU--.js} +0 -0
@@ -1,27 +1,27 @@
1
1
  import { jsxs as t, jsx as e, Fragment as we } from "react/jsx-runtime";
2
- import { SearchOutlined as Ie, ReloadOutlined as Te, PlusOutlined as xe, ArrowUpOutlined as _t, ArrowDownOutlined as At, DeleteOutlined as Ke, PlayCircleOutlined as Kt, FolderOutlined as We, CaretRightOutlined as it, VideoCameraOutlined as Et, EditOutlined as ot, CopyOutlined as qt, CheckCircleOutlined as Dt, ClockCircleOutlined as Rt, SendOutlined as Vt, UserAddOutlined as Qt, TeamOutlined as Jt, AuditOutlined as Lt, EyeOutlined as Yt, AppstoreOutlined as Zt, CloudUploadOutlined as Xt, LinkOutlined as el, InfoCircleOutlined as tl, FileProtectOutlined as ll, BookOutlined as nl, GiftOutlined as al, AppstoreAddOutlined as il, NodeIndexOutlined as rl, FileDoneOutlined as ol, SolutionOutlined as sl, BarChartOutlined as dl } from "@ant-design/icons";
3
- import { Input as K, Select as ae, Button as M, Modal as ve, Space as qe, Tooltip as oe, message as P, Tag as H, Popconfirm as Ne, Spin as Ze, Empty as He, AutoComplete as rt, Segmented as $t, TreeSelect as Xe, Descriptions as ne, InputNumber as ze, Drawer as cl, Tabs as Pt, Switch as Ot, Radio as pt, Tree as ul, Table as Pe } from "antd";
4
- import { ListTable as _e, DEFAULT_PAGINATION as hl } from "@yuku123/z-frontend-common/ui";
5
- import { useState as o, useCallback as de, useEffect as ce, useMemo as pe, useRef as Bt } from "react";
6
- import { f as Mt, a as zt, b as st, c as dt, s as gt, d as ml, e as pl, g as et, h as gl, i as yl, j as vl, k as Ft, l as yt, m as fl, n as wl, o as Cl, r as Gt, p as Ut, q as bl, t as vt, u as Il, v as ct, w as ut, x as xl, y as Tl, z as Nl, A as kl, B as ft, C as Sl, D as _l, E as Al, F as El, G as Dl, H as wt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as Ct, Q as zl, R as Fl, S as Gl, T as Ul, U as jl } from "./training-BqYfINRR.js";
7
- import { u as Ce, a4 as Wl } from "./ComponentDoc-BIX-e69A.js";
2
+ import { SearchOutlined as Ie, ReloadOutlined as Te, PlusOutlined as xe, ArrowUpOutlined as _t, ArrowDownOutlined as At, DeleteOutlined as He, PlayCircleOutlined as Kt, FolderOutlined as je, CaretRightOutlined as it, VideoCameraOutlined as Et, EditOutlined as ot, CopyOutlined as qt, CheckCircleOutlined as Dt, ClockCircleOutlined as Rt, SendOutlined as Vt, UserAddOutlined as Qt, TeamOutlined as Jt, AuditOutlined as Lt, EyeOutlined as Yt, AppstoreOutlined as Zt, CloudUploadOutlined as Xt, LinkOutlined as el, InfoCircleOutlined as tl, FileProtectOutlined as ll, BookOutlined as nl, GiftOutlined as al, AppstoreAddOutlined as il, NodeIndexOutlined as rl, FileDoneOutlined as ol, SolutionOutlined as sl, BarChartOutlined as dl } from "@ant-design/icons";
3
+ import { Input as K, Select as ae, Button as M, Modal as ve, Space as Ke, Tooltip as oe, message as P, Tag as H, Popconfirm as Ne, Spin as Ze, Empty as We, AutoComplete as rt, Segmented as $t, TreeSelect as Xe, Descriptions as ne, InputNumber as Me, Drawer as cl, Tabs as Pt, Switch as Ot, Radio as pt, Tree as ul, Table as $e } from "antd";
4
+ import { ListTable as Se, DEFAULT_PAGINATION as hl, SidebarShell as ml, MenuTree as pl } from "@yuku123/z-frontend-common/ui";
5
+ import { useState as o, useCallback as de, useEffect as ce, useMemo as ue, useRef as Bt } from "react";
6
+ import { f as Mt, a as zt, b as st, c as dt, s as gt, d as gl, e as yl, g as et, h as vl, i as fl, j as wl, k as Ft, l as yt, m as Cl, n as bl, o as Il, r as Gt, p as Ut, q as xl, t as vt, u as Tl, v as ct, w as ut, x as Nl, y as kl, z as Sl, A as _l, B as ft, C as Al, D as El, E as Dl, F as Rl, G as Ll, H as wt, I as $l, J as Pl, K as Ol, L as Bl, M as Ml, N as zl, O as Fl, P as Ct, Q as Gl, R as Ul, S as jl, T as Wl, U as Hl } from "./training-B1eRX8g1.js";
7
+ import { u as Ce, a7 as Kl } from "./ComponentDoc-DnZq0_Rk.js";
8
8
  import { s as r } from "./index.module-UI0iz8K0.js";
9
- import Hl from "dayjs";
9
+ import ql from "dayjs";
10
10
  import bt from "react-markdown";
11
11
  import It from "remark-gfm";
12
12
  import { h as be } from "./index.module-CAa-2T7m.js";
13
- import { MarkdownLiveEditor as Kl } from "@yuku123/z-markdown-component";
14
- import { h as ql } from "./index-BlfOXOZM.js";
15
- function Vl() {
16
- const l = Ce((i) => i.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, z] = o(null), [c, A] = o(!1), [C, T] = o(!1), [I, G] = o(null), [u, v] = o([]), [_, y] = o([]), [j, J] = o([]), [Z, O] = o([]), [w, F] = o([]), h = de(async () => {
13
+ import { MarkdownLiveEditor as Vl } from "@yuku123/z-frontend-markdown";
14
+ import { h as Ql } from "./index-DSXVCDf7.js";
15
+ function Jl() {
16
+ const l = Ce((i) => i.token), [n, E] = o([]), [A, L] = o(!1), [I, B] = o(""), [D, z] = o(null), [c, _] = o(!1), [C, T] = o(!1), [x, G] = o(null), [u, v] = o([]), [S, y] = o([]), [j, J] = o([]), [Z, O] = o([]), [w, F] = o([]), h = de(async () => {
17
17
  L(!0);
18
18
  try {
19
- D(await Mt(x, E, l));
19
+ E(await Mt(I, D, l));
20
20
  } catch {
21
21
  } finally {
22
22
  L(!1);
23
23
  }
24
- }, [x, E, l]);
24
+ }, [I, D, l]);
25
25
  ce(() => {
26
26
  h();
27
27
  }, [h]);
@@ -29,7 +29,7 @@ function Vl() {
29
29
  let a = i ? { ...i } : { title: "", description: "", status: 0 }, p = [], R = [];
30
30
  if (i != null && i.id)
31
31
  try {
32
- const U = await pl(i.id, l);
32
+ const U = await yl(i.id, l);
33
33
  a = U, p = (U.materials ?? []).map((Y) => ({
34
34
  ...Y,
35
35
  _key: `m-${Y.materialId}`
@@ -42,7 +42,7 @@ function Vl() {
42
42
  } catch {
43
43
  R = [];
44
44
  }
45
- G(a), v(p), y(R), A(!0), Promise.all([
45
+ G(a), v(p), y(R), _(!0), Promise.all([
46
46
  zt("", l),
47
47
  st("", 1, l),
48
48
  dt("", l)
@@ -67,8 +67,8 @@ function Vl() {
67
67
  }
68
68
  ]);
69
69
  }, N = async () => {
70
- if (I) {
71
- if (!I.title.trim()) {
70
+ if (x) {
71
+ if (!x.title.trim()) {
72
72
  P.warning("请填写课程标题");
73
73
  return;
74
74
  }
@@ -80,9 +80,9 @@ function Vl() {
80
80
  try {
81
81
  await gt(
82
82
  {
83
- ...I,
84
- title: I.title.trim(),
85
- rewardIds: JSON.stringify(_),
83
+ ...x,
84
+ title: x.title.trim(),
85
+ rewardIds: JSON.stringify(S),
86
86
  materials: u.map((i, a) => ({
87
87
  materialId: i.materialId,
88
88
  sortOrder: a,
@@ -91,13 +91,13 @@ function Vl() {
91
91
  }))
92
92
  },
93
93
  l
94
- ), P.success("保存成功"), A(!1), G(null), h();
94
+ ), P.success("保存成功"), _(!1), G(null), h();
95
95
  } catch {
96
96
  } finally {
97
97
  T(!1);
98
98
  }
99
99
  }
100
- }, S = [
100
+ }, k = [
101
101
  { title: "ID", dataIndex: "id", width: 84, ellipsis: !0 },
102
102
  {
103
103
  title: "课程标题",
@@ -175,7 +175,7 @@ function Vl() {
175
175
  disabled: (a.enrollCount ?? 0) > 0,
176
176
  onConfirm: async () => {
177
177
  try {
178
- await ml(a.id, l), P.success("已删除"), h();
178
+ await gl(a.id, l), P.success("已删除"), h();
179
179
  } catch {
180
180
  }
181
181
  },
@@ -212,7 +212,7 @@ function Vl() {
212
212
  prefix: /* @__PURE__ */ e(Ie, {}),
213
213
  placeholder: "搜索课程",
214
214
  style: { width: 180 },
215
- value: x,
215
+ value: I,
216
216
  onChange: (i) => B(i.target.value)
217
217
  }
218
218
  ),
@@ -222,7 +222,7 @@ function Vl() {
222
222
  allowClear: !0,
223
223
  placeholder: "状态",
224
224
  style: { width: 110 },
225
- value: E ?? void 0,
225
+ value: D ?? void 0,
226
226
  onChange: (i) => z(i ?? null),
227
227
  options: [
228
228
  { value: 0, label: "草稿" },
@@ -244,13 +244,13 @@ function Vl() {
244
244
  ] })
245
245
  ] }),
246
246
  /* @__PURE__ */ e("div", { className: r.tableCard, children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
247
- _e,
247
+ Se,
248
248
  {
249
249
  rows: n,
250
250
  rowKey: "id",
251
251
  tableLayout: "fixed",
252
- loading: k,
253
- columns: S,
252
+ loading: A,
253
+ columns: k,
254
254
  emptyTitle: "暂无课程",
255
255
  emptyDescription: "先在「培训资料」备好一节课,再来组装课程。",
256
256
  cardProps: { variant: "borderless", styles: { body: { padding: 0 } } }
@@ -259,7 +259,7 @@ function Vl() {
259
259
  /* @__PURE__ */ e(
260
260
  ve,
261
261
  {
262
- title: I != null && I.id ? `编辑课程 #${I.id}` : "新建课程",
262
+ title: x != null && x.id ? `编辑课程 #${x.id}` : "新建课程",
263
263
  open: c,
264
264
  width: 820,
265
265
  confirmLoading: C,
@@ -267,16 +267,16 @@ function Vl() {
267
267
  cancelText: "取消",
268
268
  onOk: () => void N(),
269
269
  onCancel: () => {
270
- A(!1), G(null);
270
+ _(!1), G(null);
271
271
  },
272
- children: I ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
272
+ children: x ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
273
273
  /* @__PURE__ */ t("div", { style: { display: "flex", gap: 12 }, children: [
274
274
  /* @__PURE__ */ t("div", { style: { flex: 1 }, children: [
275
275
  /* @__PURE__ */ e("div", { style: { marginBottom: 4 }, children: "课程标题 *" }),
276
276
  /* @__PURE__ */ e(
277
277
  K,
278
278
  {
279
- value: I.title,
279
+ value: x.title,
280
280
  placeholder: "如:新人研发安全培训",
281
281
  onChange: (i) => G((a) => a && { ...a, title: i.target.value })
282
282
  }
@@ -288,7 +288,7 @@ function Vl() {
288
288
  ae,
289
289
  {
290
290
  style: { width: "100%" },
291
- value: I.status ?? 0,
291
+ value: x.status ?? 0,
292
292
  onChange: (i) => G((a) => a && { ...a, status: i }),
293
293
  options: [
294
294
  { value: 0, label: "草稿" },
@@ -305,7 +305,7 @@ function Vl() {
305
305
  K.TextArea,
306
306
  {
307
307
  rows: 2,
308
- value: I.description ?? "",
308
+ value: x.description ?? "",
309
309
  onChange: (i) => G(
310
310
  (a) => a && { ...a, description: i.target.value }
311
311
  )
@@ -321,7 +321,7 @@ function Vl() {
321
321
  allowClear: !0,
322
322
  style: { width: "100%" },
323
323
  placeholder: "选择已发布试卷",
324
- value: I.finalPaperId ?? void 0,
324
+ value: x.finalPaperId ?? void 0,
325
325
  onChange: (i) => G(
326
326
  (a) => a && { ...a, finalPaperId: i ?? null }
327
327
  ),
@@ -341,7 +341,7 @@ function Vl() {
341
341
  allowClear: !0,
342
342
  style: { width: "100%" },
343
343
  placeholder: "完成课程自动发放",
344
- value: _,
344
+ value: S,
345
345
  onChange: y,
346
346
  options: w.filter((i) => i.status === 1).map((i) => ({ value: i.id, label: i.name }))
347
347
  }
@@ -366,7 +366,7 @@ function Vl() {
366
366
  /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
367
367
  u.length === 0 ? /* @__PURE__ */ e("div", { style: { color: "#999", padding: "8px 0" }, children: "尚未编排课节:点击「加课节」选择培训资料,可为课节绑定考核试卷。" }) : null,
368
368
  u.map((i, a) => /* @__PURE__ */ t(
369
- qe,
369
+ Ke,
370
370
  {
371
371
  align: "center",
372
372
  style: { width: "100%" },
@@ -451,7 +451,7 @@ function Vl() {
451
451
  {
452
452
  size: "small",
453
453
  danger: !0,
454
- icon: /* @__PURE__ */ e(Ke, {}),
454
+ icon: /* @__PURE__ */ e(He, {}),
455
455
  onClick: () => v(
456
456
  (p) => p.filter((R, U) => U !== a).map((R, U) => ({ ...R, sortOrder: U }))
457
457
  )
@@ -469,62 +469,62 @@ function Vl() {
469
469
  )
470
470
  ] });
471
471
  }
472
- const Ql = "_docPage_1fh2v_3", Jl = "_docBody_1fh2v_10", Yl = "_docTree_1fh2v_19", Zl = "_treeHeader_1fh2v_31", Xl = "_treeScroll_1fh2v_39", en = "_groupHead_1fh2v_45", tn = "_groupHeadActive_1fh2v_65", ln = "_groupArrowWrap_1fh2v_72", nn = "_folderDel_1fh2v_80", an = "_groupCount_1fh2v_92", rn = "_groupArrow_1fh2v_72", on = "_groupArrowOpen_1fh2v_103", sn = "_groupIcon_1fh2v_107", dn = "_treeItem_1fh2v_112", cn = "_treeItemActive_1fh2v_130", un = "_treeItemTitle_1fh2v_137", hn = "_treeItemBadges_1fh2v_144", mn = "_treeEmpty_1fh2v_153", pn = "_readerWrap_1fh2v_160", gn = "_readerEmpty_1fh2v_167", yn = "_videoCard_1fh2v_178", vn = "_videoCardTitle_1fh2v_186", fn = "_videoCopyBtn_1fh2v_194", wn = "_videoPlayer_1fh2v_204", Cn = "_videoMissing_1fh2v_212", bn = "_docOpsRow_1fh2v_220", In = "_tocTitleGap_1fh2v_224", xn = "_editPane_1fh2v_229", Tn = "_editMeta_1fh2v_242", Nn = "_editToolbar_1fh2v_248", kn = "_editEditor_1fh2v_256", q = {
473
- docPage: Ql,
474
- docBody: Jl,
475
- docTree: Yl,
476
- treeHeader: Zl,
477
- treeScroll: Xl,
478
- groupHead: en,
479
- groupHeadActive: tn,
480
- groupArrowWrap: ln,
481
- folderDel: nn,
482
- groupCount: an,
483
- groupArrow: rn,
484
- groupArrowOpen: on,
485
- groupIcon: sn,
486
- treeItem: dn,
487
- treeItemActive: cn,
488
- treeItemTitle: un,
489
- treeItemBadges: hn,
490
- treeEmpty: mn,
491
- readerWrap: pn,
492
- readerEmpty: gn,
493
- videoCard: yn,
494
- videoCardTitle: vn,
495
- videoCopyBtn: fn,
496
- videoPlayer: wn,
497
- videoMissing: Cn,
498
- docOpsRow: bn,
499
- tocTitleGap: In,
500
- editPane: xn,
501
- editMeta: Tn,
502
- editToolbar: Nn,
503
- editEditor: kn
472
+ const Yl = "_docPage_1fh2v_3", Zl = "_docBody_1fh2v_10", Xl = "_docTree_1fh2v_19", en = "_treeHeader_1fh2v_31", tn = "_treeScroll_1fh2v_39", ln = "_groupHead_1fh2v_45", nn = "_groupHeadActive_1fh2v_65", an = "_groupArrowWrap_1fh2v_72", rn = "_folderDel_1fh2v_80", on = "_groupCount_1fh2v_92", sn = "_groupArrow_1fh2v_72", dn = "_groupArrowOpen_1fh2v_103", cn = "_groupIcon_1fh2v_107", un = "_treeItem_1fh2v_112", hn = "_treeItemActive_1fh2v_130", mn = "_treeItemTitle_1fh2v_137", pn = "_treeItemBadges_1fh2v_144", gn = "_treeEmpty_1fh2v_153", yn = "_readerWrap_1fh2v_160", vn = "_readerEmpty_1fh2v_167", fn = "_videoCard_1fh2v_178", wn = "_videoCardTitle_1fh2v_186", Cn = "_videoCopyBtn_1fh2v_194", bn = "_videoPlayer_1fh2v_204", In = "_videoMissing_1fh2v_212", xn = "_docOpsRow_1fh2v_220", Tn = "_tocTitleGap_1fh2v_224", Nn = "_editPane_1fh2v_229", kn = "_editMeta_1fh2v_242", Sn = "_editToolbar_1fh2v_248", _n = "_editEditor_1fh2v_256", q = {
473
+ docPage: Yl,
474
+ docBody: Zl,
475
+ docTree: Xl,
476
+ treeHeader: en,
477
+ treeScroll: tn,
478
+ groupHead: ln,
479
+ groupHeadActive: nn,
480
+ groupArrowWrap: an,
481
+ folderDel: rn,
482
+ groupCount: on,
483
+ groupArrow: sn,
484
+ groupArrowOpen: dn,
485
+ groupIcon: cn,
486
+ treeItem: un,
487
+ treeItemActive: hn,
488
+ treeItemTitle: mn,
489
+ treeItemBadges: pn,
490
+ treeEmpty: gn,
491
+ readerWrap: yn,
492
+ readerEmpty: vn,
493
+ videoCard: fn,
494
+ videoCardTitle: wn,
495
+ videoCopyBtn: Cn,
496
+ videoPlayer: bn,
497
+ videoMissing: In,
498
+ docOpsRow: xn,
499
+ tocTitleGap: Tn,
500
+ editPane: Nn,
501
+ editMeta: kn,
502
+ editToolbar: Sn,
503
+ editEditor: _n
504
504
  };
505
- function Sn(l, n) {
506
- const D = l.toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu, "").trim().replace(/\s+/g, "-") || "h", k = n.get(D) ?? 0;
507
- return n.set(D, k + 1), k === 0 ? D : `${D}-${k}`;
505
+ function An(l, n) {
506
+ const E = l.toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu, "").trim().replace(/\s+/g, "-") || "h", A = n.get(E) ?? 0;
507
+ return n.set(E, A + 1), A === 0 ? E : `${E}-${A}`;
508
508
  }
509
- function _n(l) {
510
- const n = [], D = /* @__PURE__ */ new Map();
511
- let k = !1;
509
+ function En(l) {
510
+ const n = [], E = /* @__PURE__ */ new Map();
511
+ let A = !1;
512
512
  for (const L of l.split(`
513
513
  `)) {
514
- const x = L.trim();
515
- if (x.startsWith("```")) {
516
- k = !k;
514
+ const I = L.trim();
515
+ if (I.startsWith("```")) {
516
+ A = !A;
517
517
  continue;
518
518
  }
519
- if (k) continue;
520
- const B = /^(#{2,3})\s+(.+)$/.exec(x);
519
+ if (A) continue;
520
+ const B = /^(#{2,3})\s+(.+)$/.exec(I);
521
521
  if (!B) continue;
522
- const E = B[1].length, z = B[2].replace(/[`*_[]]/g, "").trim();
523
- z && n.push({ id: Sn(z, D), text: z, level: E });
522
+ const D = B[1].length, z = B[2].replace(/[`*_[]]/g, "").trim();
523
+ z && n.push({ id: An(z, E), text: z, level: D });
524
524
  }
525
525
  return n;
526
526
  }
527
- function An(l) {
527
+ function Dn(l) {
528
528
  return [
529
529
  "```video",
530
530
  `videoId: ${l.id}`,
@@ -533,13 +533,13 @@ function An(l) {
533
533
  ].join(`
534
534
  `);
535
535
  }
536
- function En(l) {
536
+ function Rn(l) {
537
537
  if (!l || l <= 0) return "";
538
- const n = Math.floor(l / 3600), D = Math.floor(l % 3600 / 60), k = Math.floor(l % 60), L = String(D).padStart(2, "0"), x = String(k).padStart(2, "0");
539
- return n > 0 ? `${n}:${L}:${x}` : `${L}:${x}`;
538
+ const n = Math.floor(l / 3600), E = Math.floor(l % 3600 / 60), A = Math.floor(l % 60), L = String(E).padStart(2, "0"), I = String(A).padStart(2, "0");
539
+ return n > 0 ? `${n}:${L}:${I}` : `${L}:${I}`;
540
540
  }
541
- const jt = /videoId:\s*(\d+)/, Dn = /title:\s*(.+)/;
542
- async function Rn(l) {
541
+ const jt = /videoId:\s*(\d+)/, Ln = /title:\s*(.+)/;
542
+ async function $n(l) {
543
543
  if (!l) return;
544
544
  if (navigator.clipboard && navigator.clipboard.writeText)
545
545
  try {
@@ -550,100 +550,100 @@ async function Rn(l) {
550
550
  const n = document.createElement("textarea");
551
551
  n.value = l, n.style.cssText = "position:fixed;opacity:0;", document.body.appendChild(n), n.select(), document.execCommand("copy"), document.body.removeChild(n), P.success("视频链接已复制,可贴入技术社区正文");
552
552
  }
553
- function Ln({
553
+ function Pn({
554
554
  block: l,
555
555
  videos: n
556
556
  }) {
557
- const D = jt.exec(l), k = D ? Number(D[1]) : null, L = Dn.exec(l), x = k != null ? n.get(String(k)) : void 0;
557
+ const E = jt.exec(l), A = E ? Number(E[1]) : null, L = Ln.exec(l), I = A != null ? n.get(String(A)) : void 0;
558
558
  return /* @__PURE__ */ t("div", { className: q.videoCard, children: [
559
559
  /* @__PURE__ */ t("div", { className: q.videoCardTitle, children: [
560
560
  "🎬 ",
561
- L ? L[1].trim() : `培训视频 #${k}`,
562
- x != null && x.ossUrl ? /* @__PURE__ */ e(oe, { title: "复制链接(可贴入技术社区正文内嵌播放)", children: /* @__PURE__ */ e(
561
+ L ? L[1].trim() : `培训视频 #${A}`,
562
+ I != null && I.ossUrl ? /* @__PURE__ */ e(oe, { title: "复制链接(可贴入技术社区正文内嵌播放)", children: /* @__PURE__ */ e(
563
563
  qt,
564
564
  {
565
565
  className: q.videoCopyBtn,
566
566
  onClick: (B) => {
567
- B.stopPropagation(), Rn(x.ossUrl);
567
+ B.stopPropagation(), $n(I.ossUrl);
568
568
  }
569
569
  }
570
570
  ) }) : null
571
571
  ] }),
572
- x != null && x.ossUrl ? /* @__PURE__ */ e(
572
+ I != null && I.ossUrl ? /* @__PURE__ */ e(
573
573
  "video",
574
574
  {
575
575
  controls: !0,
576
576
  preload: "metadata",
577
577
  className: q.videoPlayer,
578
- src: x.ossUrl
578
+ src: I.ossUrl
579
579
  }
580
580
  ) : /* @__PURE__ */ t("div", { className: q.videoMissing, children: [
581
581
  "(视频加载中或已删除,ID: ",
582
- k,
582
+ A,
583
583
  ")"
584
584
  ] })
585
585
  ] });
586
586
  }
587
- function $n({
587
+ function On({
588
588
  doc: l,
589
589
  videos: n,
590
- onEdit: D
590
+ onEdit: E
591
591
  }) {
592
- const k = Bt(null), [L, x] = o(""), B = pe(
593
- () => l.content ? _n(l.content) : [],
592
+ const A = Bt(null), [L, I] = o(""), B = ue(
593
+ () => l.content ? En(l.content) : [],
594
594
  [l.content]
595
- ), E = pe(
595
+ ), D = ue(
596
596
  () => new Map(n.map((C) => [String(C.id), C])),
597
597
  [n]
598
- ), z = pe(() => (l.content ?? "").split(/```/), [l.content]);
598
+ ), z = ue(() => (l.content ?? "").split(/```/), [l.content]);
599
599
  ce(() => {
600
- const C = k.current;
600
+ const C = A.current;
601
601
  if (!C || B.length === 0) return;
602
- C.querySelectorAll("h2, h3").forEach((I, G) => {
603
- G < B.length && (I.id = B[G].id);
602
+ C.querySelectorAll("h2, h3").forEach((x, G) => {
603
+ G < B.length && (x.id = B[G].id);
604
604
  });
605
605
  }, [B, l]), ce(() => {
606
- const C = k.current;
607
- C && (C.scrollTop = 0), x("");
606
+ const C = A.current;
607
+ C && (C.scrollTop = 0), I("");
608
608
  }, [l.id]);
609
609
  const c = de(() => {
610
- const C = k.current;
610
+ const C = A.current;
611
611
  if (!C || B.length === 0) return;
612
612
  const T = C.getBoundingClientRect().top;
613
- let I = "";
613
+ let x = "";
614
614
  for (const G of B) {
615
615
  const u = C.querySelector(`[id="${G.id}"]`);
616
- if (u && u.getBoundingClientRect().top - T < 120) I = G.id;
616
+ if (u && u.getBoundingClientRect().top - T < 120) x = G.id;
617
617
  else break;
618
618
  }
619
- x((G) => G === I ? G : I);
619
+ I((G) => G === x ? G : x);
620
620
  }, [B]);
621
621
  ce(() => {
622
- const C = k.current;
622
+ const C = A.current;
623
623
  if (!C || B.length === 0) return;
624
624
  let T = 0;
625
- const I = () => {
625
+ const x = () => {
626
626
  window.clearTimeout(T), T = window.setTimeout(c, 32);
627
627
  };
628
- return C.addEventListener("scroll", I, { passive: !0 }), c(), () => {
629
- C.removeEventListener("scroll", I), window.clearTimeout(T);
628
+ return C.addEventListener("scroll", x, { passive: !0 }), c(), () => {
629
+ C.removeEventListener("scroll", x), window.clearTimeout(T);
630
630
  };
631
631
  }, [B, c]);
632
- const A = (C) => {
633
- const T = k.current, I = T == null ? void 0 : T.querySelector(`[id="${C}"]`);
634
- if (!T || !I) return;
635
- const G = I.getBoundingClientRect().top - T.getBoundingClientRect().top, u = Math.max(0, T.scrollTop + G - 16), v = T.scrollTop;
632
+ const _ = (C) => {
633
+ const T = A.current, x = T == null ? void 0 : T.querySelector(`[id="${C}"]`);
634
+ if (!T || !x) return;
635
+ const G = x.getBoundingClientRect().top - T.getBoundingClientRect().top, u = Math.max(0, T.scrollTop + G - 16), v = T.scrollTop;
636
636
  T.scrollTo({ top: u, behavior: "smooth" }), window.setTimeout(() => {
637
637
  T.scrollTop === v && (T.scrollTop = u, c());
638
638
  }, 400);
639
639
  };
640
- return /* @__PURE__ */ t("div", { ref: k, className: be.readerPane, children: [
640
+ return /* @__PURE__ */ t("div", { ref: A, className: be.readerPane, children: [
641
641
  /* @__PURE__ */ t("article", { className: be.readerContent, children: [
642
642
  /* @__PURE__ */ e("h1", { className: be.readerTitle, children: l.title }),
643
643
  /* @__PURE__ */ t("div", { className: be.readerMeta, children: [
644
644
  l.category ? /* @__PURE__ */ e(H, { color: "blue", children: l.category }) : null,
645
645
  /* @__PURE__ */ e("span", { children: l.createByName ?? "-" }),
646
- /* @__PURE__ */ e("span", { children: l.createTime ? Hl(l.createTime).format("YYYY-MM-DD HH:mm") : "" }),
646
+ /* @__PURE__ */ e("span", { children: l.createTime ? ql(l.createTime).format("YYYY-MM-DD HH:mm") : "" }),
647
647
  /* @__PURE__ */ e("span", { children: (l.videoIds ?? []).length > 0 ? `内嵌视频 ${(l.videoIds ?? []).length} 个` : "纯文档" }),
648
648
  (l.refCount ?? 0) > 0 ? /* @__PURE__ */ t("span", { children: [
649
649
  "已被 ",
@@ -662,16 +662,16 @@ function $n({
662
662
  children: l.summary
663
663
  }
664
664
  ) : null,
665
- /* @__PURE__ */ e("div", { className: be.markdown, children: z.map((C, T) => T % 2 === 1 ? jt.test(C) ? /* @__PURE__ */ e(Ln, { block: C, videos: E }, T) : /* @__PURE__ */ e(bt, { remarkPlugins: [It], children: "```" + C + "```" }, T) : /* @__PURE__ */ e(bt, { remarkPlugins: [It], children: C }, T)) })
665
+ /* @__PURE__ */ e("div", { className: be.markdown, children: z.map((C, T) => T % 2 === 1 ? jt.test(C) ? /* @__PURE__ */ e(Pn, { block: C, videos: D }, T) : /* @__PURE__ */ e(bt, { remarkPlugins: [It], children: "```" + C + "```" }, T) : /* @__PURE__ */ e(bt, { remarkPlugins: [It], children: C }, T)) })
666
666
  ] }),
667
667
  /* @__PURE__ */ t("aside", { className: be.tocAside, children: [
668
668
  /* @__PURE__ */ e("div", { className: be.tocTitle, children: "资料操作" }),
669
- D ? /* @__PURE__ */ e("div", { className: q.docOpsRow, children: /* @__PURE__ */ e(oe, { title: "编辑正文(源码/渲染切换)", children: /* @__PURE__ */ e(
669
+ E ? /* @__PURE__ */ e("div", { className: q.docOpsRow, children: /* @__PURE__ */ e(oe, { title: "编辑正文(源码/渲染切换)", children: /* @__PURE__ */ e(
670
670
  M,
671
671
  {
672
672
  size: "small",
673
673
  icon: /* @__PURE__ */ e(ot, {}),
674
- onClick: D,
674
+ onClick: E,
675
675
  block: !0,
676
676
  children: "编辑正文"
677
677
  }
@@ -686,7 +686,7 @@ function $n({
686
686
  C.level === 3 ? be.tocSub : "",
687
687
  L === C.id ? be.tocItemActive : ""
688
688
  ].join(" "),
689
- onClick: () => A(C.id),
689
+ onClick: () => _(C.id),
690
690
  title: C.text,
691
691
  children: C.text
692
692
  },
@@ -696,28 +696,28 @@ function $n({
696
696
  ] })
697
697
  ] });
698
698
  }
699
- function Pn() {
700
- const l = Ce((s) => s.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, z] = o(!1), [c, A] = o(null), [C, T] = o(!1), [I, G] = o([]), [u, v] = o([]), [_, y] = o(!1), [j, J] = o(""), [Z, O] = o(!1), [w, F] = o(
699
+ function Bn() {
700
+ const l = Ce((s) => s.token), [n, E] = o([]), [A, L] = o(!1), [I, B] = o(""), [D, z] = o(!1), [c, _] = o(null), [C, T] = o(!1), [x, G] = o([]), [u, v] = o([]), [S, y] = o(!1), [j, J] = o(""), [Z, O] = o(!1), [w, F] = o(
701
701
  null
702
- ), [h, m] = o(null), [ee, Q] = o(null), [N, S] = o(null), [i, a] = o([]), [p, R] = o(!1), [U, Y] = o(/* @__PURE__ */ new Set()), [te, se] = o(
702
+ ), [h, m] = o(null), [ee, Q] = o(null), [N, k] = o(null), [i, a] = o([]), [p, R] = o(!1), [U, Y] = o(/* @__PURE__ */ new Set()), [te, se] = o(
703
703
  null
704
- ), [Oe, Ee] = o("live"), ye = de(async () => {
704
+ ), [Pe, Ae] = o("live"), ye = de(async () => {
705
705
  L(!0);
706
706
  try {
707
707
  const [s, g] = await Promise.all([
708
- zt(x, l),
708
+ zt(I, l),
709
709
  et(l)
710
710
  ]);
711
- D(s), v(g);
711
+ E(s), v(g);
712
712
  } catch {
713
713
  } finally {
714
714
  L(!1);
715
715
  }
716
- }, [x, l]);
716
+ }, [I, l]);
717
717
  ce(() => {
718
718
  ye();
719
719
  }, [ye]);
720
- const De = pe(() => {
720
+ const Ee = ue(() => {
721
721
  var g;
722
722
  const s = /* @__PURE__ */ new Map();
723
723
  for (const ie of n) {
@@ -727,10 +727,10 @@ function Pn() {
727
727
  W ? W.push(ie) : s.set(re, [ie]);
728
728
  }
729
729
  return s;
730
- }, [n]), Fe = pe(() => {
730
+ }, [n]), ze = ue(() => {
731
731
  const s = (W) => ({
732
732
  name: W.name,
733
- items: De.get(W.name) ?? [],
733
+ items: Ee.get(W.name) ?? [],
734
734
  cat: W,
735
735
  children: []
736
736
  }), g = /* @__PURE__ */ new Map(), ie = [];
@@ -738,8 +738,8 @@ function Pn() {
738
738
  W.id != null && g.set(W.id, s(W));
739
739
  for (const W of u) {
740
740
  if (W.id == null) continue;
741
- const ge = g.get(W.id), Ae = W.parentId != null ? g.get(W.parentId) : void 0;
742
- Ae && Ae !== ge ? Ae.children.push(ge) : ie.push(ge);
741
+ const ge = g.get(W.id), _e = W.parentId != null ? g.get(W.parentId) : void 0;
742
+ _e && _e !== ge ? _e.children.push(ge) : ie.push(ge);
743
743
  }
744
744
  const re = new Set(
745
745
  u.filter((W) => W.id != null).map((W) => W.name)
@@ -747,19 +747,19 @@ function Pn() {
747
747
  for (const W of u)
748
748
  W.id == null && !re.has(W.name) && (re.add(W.name), ie.push({
749
749
  name: W.name,
750
- items: De.get(W.name) ?? [],
750
+ items: Ee.get(W.name) ?? [],
751
751
  children: []
752
752
  }));
753
- for (const [W, ge] of De)
753
+ for (const [W, ge] of Ee)
754
754
  re.has(W) || (ie.push({ name: W, items: ge, children: [] }), re.add(W));
755
755
  return ie;
756
- }, [u, De]), Re = pe(
756
+ }, [u, Ee]), De = ue(
757
757
  () => n.filter((s) => {
758
758
  var g;
759
759
  return !((g = s.category) != null && g.trim());
760
760
  }),
761
761
  [n]
762
- ), Be = pe(
762
+ ), Oe = ue(
763
763
  () => [
764
764
  .../* @__PURE__ */ new Set([
765
765
  ...u.map((s) => s.name),
@@ -775,10 +775,10 @@ function Pn() {
775
775
  const ie = new Set(g);
776
776
  return ie.has(s) ? ie.delete(s) : ie.add(s), ie;
777
777
  });
778
- }, Ge = () => {
778
+ }, Fe = () => {
779
779
  const s = h && h !== "未分类" ? u.find((g) => g.name === h && g.id != null) ?? null : null;
780
780
  F(s), J(""), y(!0);
781
- }, Ue = async () => {
781
+ }, Ge = async () => {
782
782
  const s = j.trim();
783
783
  if (!s) {
784
784
  P.warning("请填写文件夹名称");
@@ -786,7 +786,7 @@ function Pn() {
786
786
  }
787
787
  O(!0);
788
788
  try {
789
- await vl(s, (w == null ? void 0 : w.id) ?? null, l), P.success(
789
+ await wl(s, (w == null ? void 0 : w.id) ?? null, l), P.success(
790
790
  w ? `已在「${w.name}」下创建子文件夹「${s}」` : `文件夹「${s}」已创建`
791
791
  ), y(!1), J(""), F(null);
792
792
  const g = await et(l);
@@ -795,25 +795,25 @@ function Pn() {
795
795
  } finally {
796
796
  O(!1);
797
797
  }
798
- }, je = async (s) => {
798
+ }, Ue = async (s) => {
799
799
  try {
800
- await wl(s.id, l), P.success("已删除文件夹"), h === s.name && m(null);
800
+ await bl(s.id, l), P.success("已删除文件夹"), h === s.name && m(null);
801
801
  const g = await et(l);
802
802
  v(g);
803
803
  } catch {
804
804
  }
805
- }, Le = de(
805
+ }, Re = de(
806
806
  async (s) => {
807
807
  Q(s), R(!0), a([]);
808
808
  try {
809
- const g = await gl(Number(s), l);
810
- S(g);
809
+ const g = await vl(Number(s), l);
810
+ k(g);
811
811
  const ie = g.videoIds ?? [], re = await Promise.all(
812
- ie.map((W) => yl(W, l).catch(() => null))
812
+ ie.map((W) => fl(W, l).catch(() => null))
813
813
  );
814
814
  return a(re.filter((W) => !!W)), g;
815
815
  } catch {
816
- return S(null), null;
816
+ return k(null), null;
817
817
  } finally {
818
818
  R(!1);
819
819
  }
@@ -824,41 +824,41 @@ function Pn() {
824
824
  se(null);
825
825
  }, [ee]);
826
826
  const d = () => {
827
- A({
827
+ _({
828
828
  title: "",
829
829
  category: h && h !== "未分类" ? h : "",
830
830
  summary: "",
831
831
  status: 0
832
832
  }), z(!0);
833
833
  }, b = async (s) => {
834
- se({ ...s }), Ee("live");
834
+ se({ ...s }), Ae("live");
835
835
  try {
836
836
  G(await Ft("", "", l));
837
837
  } catch {
838
838
  }
839
839
  }, f = async (s) => {
840
- const g = await Le(s);
840
+ const g = await Re(s);
841
841
  g && b(g);
842
842
  }, $ = (s) => {
843
843
  se(
844
844
  (g) => g && {
845
845
  ...g,
846
846
  content: `${g.content ?? ""}
847
- ${An(s)}
847
+ ${Dn(s)}
848
848
  `
849
849
  }
850
850
  ), P.success(`已插入视频块:${s.title}`);
851
- }, V = pe(() => {
851
+ }, V = ue(() => {
852
852
  const s = /* @__PURE__ */ new Map(), g = [];
853
- for (const re of I) {
853
+ for (const re of x) {
854
854
  const W = re.tags ?? [];
855
855
  if (W.length === 0) {
856
856
  g.push(re);
857
857
  continue;
858
858
  }
859
859
  for (const ge of W) {
860
- const Ae = s.get(ge);
861
- Ae ? Ae.push(re) : s.set(ge, [re]);
860
+ const _e = s.get(ge);
861
+ _e ? _e.push(re) : s.set(ge, [re]);
862
862
  }
863
863
  }
864
864
  const ie = [...s.entries()].sort(
@@ -868,7 +868,7 @@ ${An(s)}
868
868
  value: `tag:${re}`,
869
869
  selectable: !1,
870
870
  title: /* @__PURE__ */ t("span", { children: [
871
- /* @__PURE__ */ e(We, { style: { marginRight: 6, color: "#4d7cfe" } }),
871
+ /* @__PURE__ */ e(je, { style: { marginRight: 6, color: "#4d7cfe" } }),
872
872
  re,
873
873
  /* @__PURE__ */ t("span", { style: { color: "#8c8c8c", marginLeft: 6 }, children: [
874
874
  "(",
@@ -882,11 +882,11 @@ ${An(s)}
882
882
  title: /* @__PURE__ */ t("span", { children: [
883
883
  /* @__PURE__ */ e(Kt, { style: { marginRight: 6 } }),
884
884
  ge.title,
885
- ge.durationSec ? /* @__PURE__ */ e("span", { style: { color: "#8c8c8c", marginLeft: 8 }, children: En(ge.durationSec) }) : null
885
+ ge.durationSec ? /* @__PURE__ */ e("span", { style: { color: "#8c8c8c", marginLeft: 8 }, children: Rn(ge.durationSec) }) : null
886
886
  ] })
887
887
  }))
888
888
  }));
889
- }, [I]), X = async () => {
889
+ }, [x]), X = async () => {
890
890
  if (c) {
891
891
  if (!c.title.trim()) {
892
892
  P.warning("请填写资料标题");
@@ -905,13 +905,13 @@ ${An(s)}
905
905
  },
906
906
  l
907
907
  );
908
- P.success("已创建,点击右侧「编辑正文」补充正文"), z(!1), A(null), await ye(), s && Le(s);
908
+ P.success("已创建,点击右侧「编辑正文」补充正文"), z(!1), _(null), await ye(), s && Re(s);
909
909
  } catch {
910
910
  } finally {
911
911
  T(!1);
912
912
  }
913
913
  }
914
- }, ue = async () => {
914
+ }, he = async () => {
915
915
  if (te) {
916
916
  if (!te.title.trim()) {
917
917
  P.warning("请填写资料标题");
@@ -925,7 +925,7 @@ ${An(s)}
925
925
  );
926
926
  P.success("保存成功"), se(null), await ye();
927
927
  const g = s ?? te.id;
928
- g && Le(g);
928
+ g && Re(g);
929
929
  } catch {
930
930
  } finally {
931
931
  T(!1);
@@ -933,17 +933,17 @@ ${An(s)}
933
933
  }
934
934
  }, fe = async (s) => {
935
935
  try {
936
- await fl(s.id, l), P.success("已删除"), ee === s.id && (Q(null), S(null)), ye();
936
+ await Cl(s.id, l), P.success("已删除"), ee === s.id && (Q(null), k(null)), ye();
937
937
  } catch {
938
938
  }
939
- }, $e = (s) => /* @__PURE__ */ t(
939
+ }, Le = (s) => /* @__PURE__ */ t(
940
940
  "div",
941
941
  {
942
942
  className: [
943
943
  q.treeItem,
944
944
  String(ee) === String(s.id) ? q.treeItemActive : ""
945
945
  ].join(" "),
946
- onClick: () => void Le(s.id),
946
+ onClick: () => void Re(s.id),
947
947
  title: s.title,
948
948
  children: [
949
949
  /* @__PURE__ */ e("span", { className: q.treeItemTitle, children: s.title }),
@@ -973,7 +973,7 @@ ${An(s)}
973
973
  cancelText: "取消",
974
974
  onConfirm: () => void fe(s),
975
975
  children: /* @__PURE__ */ e(oe, { title: "删除", children: /* @__PURE__ */ e(
976
- Ke,
976
+ He,
977
977
  {
978
978
  style: { color: "#ff4d4f" },
979
979
  onClick: (g) => g.stopPropagation()
@@ -986,7 +986,7 @@ ${An(s)}
986
986
  },
987
987
  s.id
988
988
  ), mt = (s, g) => {
989
- var Ae;
989
+ var _e;
990
990
  const ie = U.has(s.name), re = h === s.name, W = s.children.length > 0, ge = s.items.length > 0 || W;
991
991
  return /* @__PURE__ */ t("div", { children: [
992
992
  /* @__PURE__ */ t(
@@ -1005,8 +1005,8 @@ ${An(s)}
1005
1005
  "span",
1006
1006
  {
1007
1007
  className: q.groupArrowWrap,
1008
- onClick: (Ve) => {
1009
- Ve.stopPropagation(), ke(s.name);
1008
+ onClick: (qe) => {
1009
+ qe.stopPropagation(), ke(s.name);
1010
1010
  },
1011
1011
  children: /* @__PURE__ */ e(
1012
1012
  it,
@@ -1019,10 +1019,10 @@ ${An(s)}
1019
1019
  )
1020
1020
  }
1021
1021
  ),
1022
- /* @__PURE__ */ e(We, { className: q.groupIcon }),
1022
+ /* @__PURE__ */ e(je, { className: q.groupIcon }),
1023
1023
  /* @__PURE__ */ e("span", { className: q.treeItemTitle, children: s.name }),
1024
1024
  /* @__PURE__ */ e("span", { className: q.groupCount, children: s.items.length }),
1025
- ((Ae = s.cat) == null ? void 0 : Ae.id) != null ? /* @__PURE__ */ e(
1025
+ ((_e = s.cat) == null ? void 0 : _e.id) != null ? /* @__PURE__ */ e(
1026
1026
  Ne,
1027
1027
  {
1028
1028
  title: s.items.length > 0 ? `文件夹内有 ${s.items.length} 篇资料,无法删除` : W ? `文件夹下有 ${s.children.length} 个子文件夹,无法删除` : "确认删除该文件夹?",
@@ -1030,16 +1030,16 @@ ${An(s)}
1030
1030
  okButtonProps: { danger: !0 },
1031
1031
  cancelText: "取消",
1032
1032
  disabled: ge,
1033
- onConfirm: () => void je(s.cat),
1033
+ onConfirm: () => void Ue(s.cat),
1034
1034
  children: /* @__PURE__ */ e(
1035
1035
  M,
1036
1036
  {
1037
1037
  type: "text",
1038
1038
  size: "small",
1039
1039
  className: q.folderDel,
1040
- icon: /* @__PURE__ */ e(Ke, {}),
1040
+ icon: /* @__PURE__ */ e(He, {}),
1041
1041
  disabled: ge,
1042
- onClick: (Ve) => Ve.stopPropagation()
1042
+ onClick: (qe) => qe.stopPropagation()
1043
1043
  }
1044
1044
  )
1045
1045
  }
@@ -1048,8 +1048,8 @@ ${An(s)}
1048
1048
  }
1049
1049
  ),
1050
1050
  ie ? null : /* @__PURE__ */ t(we, { children: [
1051
- s.items.map($e),
1052
- s.children.map((Ve) => mt(Ve, g + 1))
1051
+ s.items.map(Le),
1052
+ s.children.map((qe) => mt(qe, g + 1))
1053
1053
  ] })
1054
1054
  ] }, s.name);
1055
1055
  };
@@ -1062,7 +1062,7 @@ ${An(s)}
1062
1062
  /* @__PURE__ */ e("strong", { children: n.length }),
1063
1063
  " 篇 ·",
1064
1064
  " ",
1065
- Fe.length + (Re.length ? 1 : 0),
1065
+ ze.length + (De.length ? 1 : 0),
1066
1066
  " 个分类",
1067
1067
  h ? ` · 选中「${h}」` : ""
1068
1068
  ] })
@@ -1075,7 +1075,7 @@ ${An(s)}
1075
1075
  prefix: /* @__PURE__ */ e(Ie, {}),
1076
1076
  placeholder: "搜索标题",
1077
1077
  style: { width: 180 },
1078
- value: x,
1078
+ value: I,
1079
1079
  onChange: (s) => B(s.target.value)
1080
1080
  }
1081
1081
  ),
@@ -1099,7 +1099,7 @@ ${An(s)}
1099
1099
  prefix: /* @__PURE__ */ e(Ie, {}),
1100
1100
  placeholder: "搜索标题",
1101
1101
  style: { flex: 1, minWidth: 0 },
1102
- value: x,
1102
+ value: I,
1103
1103
  onChange: (s) => B(s.target.value)
1104
1104
  }
1105
1105
  ),
@@ -1113,22 +1113,22 @@ ${An(s)}
1113
1113
  type: "text",
1114
1114
  size: "small",
1115
1115
  icon: /* @__PURE__ */ e(xe, {}),
1116
- onClick: Ge
1116
+ onClick: Fe
1117
1117
  }
1118
1118
  )
1119
1119
  }
1120
1120
  )
1121
1121
  ] }),
1122
- /* @__PURE__ */ e("div", { className: q.treeScroll, children: k ? /* @__PURE__ */ e("div", { style: { padding: 24, textAlign: "center" }, children: /* @__PURE__ */ e(Ze, {}) }) : n.length === 0 ? /* @__PURE__ */ e(
1123
- He,
1122
+ /* @__PURE__ */ e("div", { className: q.treeScroll, children: A ? /* @__PURE__ */ e("div", { style: { padding: 24, textAlign: "center" }, children: /* @__PURE__ */ e(Ze, {}) }) : n.length === 0 ? /* @__PURE__ */ e(
1123
+ We,
1124
1124
  {
1125
1125
  className: q.treeEmpty,
1126
- image: He.PRESENTED_IMAGE_SIMPLE,
1126
+ image: We.PRESENTED_IMAGE_SIMPLE,
1127
1127
  description: "暂无资料"
1128
1128
  }
1129
1129
  ) : /* @__PURE__ */ t(we, { children: [
1130
- Fe.map((s) => mt(s, 0)),
1131
- Re.length > 0 ? /* @__PURE__ */ t("div", { children: [
1130
+ ze.map((s) => mt(s, 0)),
1131
+ De.length > 0 ? /* @__PURE__ */ t("div", { children: [
1132
1132
  /* @__PURE__ */ t(
1133
1133
  "button",
1134
1134
  {
@@ -1157,13 +1157,13 @@ ${An(s)}
1157
1157
  )
1158
1158
  }
1159
1159
  ),
1160
- /* @__PURE__ */ e(We, { className: q.groupIcon }),
1160
+ /* @__PURE__ */ e(je, { className: q.groupIcon }),
1161
1161
  /* @__PURE__ */ e("span", { className: q.treeItemTitle, children: "未分类" }),
1162
- /* @__PURE__ */ e("span", { className: q.groupCount, children: Re.length })
1162
+ /* @__PURE__ */ e("span", { className: q.groupCount, children: De.length })
1163
1163
  ]
1164
1164
  }
1165
1165
  ),
1166
- U.has("未分类") ? null : Re.map($e)
1166
+ U.has("未分类") ? null : De.map(Le)
1167
1167
  ] }) : null
1168
1168
  ] }) })
1169
1169
  ]
@@ -1186,7 +1186,7 @@ ${An(s)}
1186
1186
  rt,
1187
1187
  {
1188
1188
  value: te.category ?? "",
1189
- options: Be.map((s) => ({ value: s })),
1189
+ options: Oe.map((s) => ({ value: s })),
1190
1190
  placeholder: "分类",
1191
1191
  filterOption: (s, g) => ((g == null ? void 0 : g.value) ?? "").toLowerCase().includes(s.toLowerCase()),
1192
1192
  onChange: (s) => se((g) => g && { ...g, category: s }),
@@ -1221,8 +1221,8 @@ ${An(s)}
1221
1221
  $t,
1222
1222
  {
1223
1223
  size: "small",
1224
- value: Oe,
1225
- onChange: (s) => Ee(s),
1224
+ value: Pe,
1225
+ onChange: (s) => Ae(s),
1226
1226
  options: [
1227
1227
  { label: "渲染", value: "live" },
1228
1228
  { label: "源码", value: "source" }
@@ -1240,7 +1240,7 @@ ${An(s)}
1240
1240
  treeExpandAction: "click",
1241
1241
  onChange: (s) => {
1242
1242
  if (typeof s == "string" && s.startsWith("video:")) {
1243
- const g = I.find(
1243
+ const g = x.find(
1244
1244
  (ie) => `video:${ie.id}` === s
1245
1245
  );
1246
1246
  g && $(g);
@@ -1257,22 +1257,22 @@ ${An(s)}
1257
1257
  size: "small",
1258
1258
  type: "primary",
1259
1259
  loading: C,
1260
- onClick: () => void ue(),
1260
+ onClick: () => void he(),
1261
1261
  children: "保存"
1262
1262
  }
1263
1263
  )
1264
1264
  ] }),
1265
1265
  /* @__PURE__ */ e("div", { className: q.editEditor, children: /* @__PURE__ */ e(
1266
- Kl,
1266
+ Vl,
1267
1267
  {
1268
- mode: Oe,
1268
+ mode: Pe,
1269
1269
  value: te.content ?? "",
1270
1270
  onChange: (s) => se((g) => g && { ...g, content: s }),
1271
1271
  placeholder: "正文支持 Markdown;插入视频用 ```video 块(videoId + title)"
1272
1272
  }
1273
1273
  ) })
1274
1274
  ] }) : N ? /* @__PURE__ */ e(
1275
- $n,
1275
+ On,
1276
1276
  {
1277
1277
  doc: N,
1278
1278
  videos: i,
@@ -1284,14 +1284,14 @@ ${An(s)}
1284
1284
  ve,
1285
1285
  {
1286
1286
  title: "新建培训资料",
1287
- open: E,
1287
+ open: D,
1288
1288
  width: 560,
1289
1289
  confirmLoading: C,
1290
1290
  okText: "创建",
1291
1291
  cancelText: "取消",
1292
1292
  onOk: () => void X(),
1293
1293
  onCancel: () => {
1294
- z(!1), A(null);
1294
+ z(!1), _(null);
1295
1295
  },
1296
1296
  children: c ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
1297
1297
  /* @__PURE__ */ t("div", { style: { display: "flex", gap: 12 }, children: [
@@ -1302,7 +1302,7 @@ ${An(s)}
1302
1302
  {
1303
1303
  value: c.title,
1304
1304
  placeholder: "如:研发安全规范第一课",
1305
- onChange: (s) => A((g) => g && { ...g, title: s.target.value })
1305
+ onChange: (s) => _((g) => g && { ...g, title: s.target.value })
1306
1306
  }
1307
1307
  )
1308
1308
  ] }),
@@ -1312,10 +1312,10 @@ ${An(s)}
1312
1312
  rt,
1313
1313
  {
1314
1314
  value: c.category ?? "",
1315
- options: Be.map((s) => ({ value: s })),
1315
+ options: Oe.map((s) => ({ value: s })),
1316
1316
  placeholder: "如:信息安全(可选已有/输入新分类)",
1317
1317
  filterOption: (s, g) => ((g == null ? void 0 : g.value) ?? "").toLowerCase().includes(s.toLowerCase()),
1318
- onChange: (s) => A((g) => g && { ...g, category: s }),
1318
+ onChange: (s) => _((g) => g && { ...g, category: s }),
1319
1319
  style: { width: "100%" }
1320
1320
  }
1321
1321
  )
@@ -1327,7 +1327,7 @@ ${An(s)}
1327
1327
  {
1328
1328
  style: { width: "100%" },
1329
1329
  value: c.status ?? 0,
1330
- onChange: (s) => A((g) => g && { ...g, status: s }),
1330
+ onChange: (s) => _((g) => g && { ...g, status: s }),
1331
1331
  options: [
1332
1332
  { value: 0, label: "草稿" },
1333
1333
  { value: 1, label: "启用" }
@@ -1343,7 +1343,7 @@ ${An(s)}
1343
1343
  {
1344
1344
  value: c.summary ?? "",
1345
1345
  placeholder: "一句话简介(列表展示)",
1346
- onChange: (s) => A((g) => g && { ...g, summary: s.target.value })
1346
+ onChange: (s) => _((g) => g && { ...g, summary: s.target.value })
1347
1347
  }
1348
1348
  )
1349
1349
  ] }),
@@ -1355,12 +1355,12 @@ ${An(s)}
1355
1355
  ve,
1356
1356
  {
1357
1357
  title: w ? `在「${w.name}」下新建子文件夹` : "新建文件夹",
1358
- open: _,
1358
+ open: S,
1359
1359
  width: 480,
1360
1360
  confirmLoading: Z,
1361
1361
  okText: "创 建",
1362
1362
  cancelText: "取 消",
1363
- onOk: () => void Ue(),
1363
+ onOk: () => void Ge(),
1364
1364
  onCancel: () => {
1365
1365
  y(!1), J(""), F(null);
1366
1366
  },
@@ -1374,7 +1374,7 @@ ${An(s)}
1374
1374
  maxLength: 64,
1375
1375
  placeholder: "如:信息安全、新员工入职",
1376
1376
  onChange: (s) => J(s.target.value),
1377
- onPressEnter: () => void Ue()
1377
+ onPressEnter: () => void Ge()
1378
1378
  }
1379
1379
  )
1380
1380
  ] }),
@@ -1388,44 +1388,44 @@ const xt = {
1388
1388
  SINGLE: { label: "单选", color: "blue" },
1389
1389
  MULTI: { label: "多选", color: "geekblue" },
1390
1390
  FREE: { label: "自由题", color: "purple" }
1391
- }, On = {
1391
+ }, Mn = {
1392
1392
  AUTO: "自动判分",
1393
1393
  MANUAL: "人工",
1394
1394
  AI: "AI初评",
1395
1395
  AI_REVIEW: "AI+复核"
1396
1396
  };
1397
- function Bn(l) {
1397
+ function zn(l) {
1398
1398
  if (!l) return [];
1399
1399
  try {
1400
- return JSON.parse(l).map((D) => ({
1401
- key: String(D.key),
1402
- text: D.text ?? D.label ?? ""
1400
+ return JSON.parse(l).map((E) => ({
1401
+ key: String(E.key),
1402
+ text: E.text ?? E.label ?? ""
1403
1403
  }));
1404
1404
  } catch {
1405
1405
  return [];
1406
1406
  }
1407
1407
  }
1408
- function Mn() {
1409
- const l = Ce((w) => w.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o("SUBMITTED"), [E, z] = o(""), [c, A] = o(null), [C, T] = o(!1), [I, G] = o(!1), [u, v] = o({}), [_, y] = o(
1408
+ function Fn() {
1409
+ const l = Ce((w) => w.token), [n, E] = o([]), [A, L] = o(!1), [I, B] = o("SUBMITTED"), [D, z] = o(""), [c, _] = o(null), [C, T] = o(!1), [x, G] = o(!1), [u, v] = o({}), [S, y] = o(
1410
1410
  {}
1411
1411
  ), j = de(async () => {
1412
1412
  L(!0);
1413
1413
  try {
1414
- D(
1415
- await Cl(x, E, l)
1414
+ E(
1415
+ await Il(I, D, l)
1416
1416
  );
1417
1417
  } catch {
1418
1418
  } finally {
1419
1419
  L(!1);
1420
1420
  }
1421
- }, [x, E, l]);
1421
+ }, [I, D, l]);
1422
1422
  ce(() => {
1423
1423
  j();
1424
1424
  }, [j]);
1425
1425
  const J = async (w) => {
1426
1426
  try {
1427
1427
  const F = await Ut(w.examId, l);
1428
- A(F), v({}), y({}), T(!0);
1428
+ _(F), v({}), y({}), T(!0);
1429
1429
  } catch {
1430
1430
  }
1431
1431
  }, Z = async () => {
@@ -1445,7 +1445,7 @@ function Mn() {
1445
1445
  );
1446
1446
  return;
1447
1447
  }
1448
- const Q = _[m.answerId] ?? m.manualComment ?? void 0;
1448
+ const Q = S[m.answerId] ?? m.manualComment ?? void 0;
1449
1449
  F.push({ answerId: m.answerId, score: ee, comment: Q });
1450
1450
  }
1451
1451
  G(!0);
@@ -1457,7 +1457,7 @@ function Mn() {
1457
1457
  );
1458
1458
  P.success(
1459
1459
  `复核完成,总分 ${m.totalScore ?? "-"}/${m.totalScoreFull ?? "-"}${m.passed ? "(及格)" : "(未及格)"}`
1460
- ), T(!1), A(null), j();
1460
+ ), T(!1), _(null), j();
1461
1461
  } catch {
1462
1462
  } finally {
1463
1463
  G(!1);
@@ -1548,7 +1548,7 @@ function Mn() {
1548
1548
  prefix: /* @__PURE__ */ e(Ie, {}),
1549
1549
  placeholder: "搜学员 / 试卷",
1550
1550
  style: { width: 180 },
1551
- value: E,
1551
+ value: D,
1552
1552
  onChange: (w) => z(w.target.value)
1553
1553
  }
1554
1554
  ),
@@ -1556,7 +1556,7 @@ function Mn() {
1556
1556
  ae,
1557
1557
  {
1558
1558
  style: { width: 130 },
1559
- value: x,
1559
+ value: I,
1560
1560
  onChange: B,
1561
1561
  options: [
1562
1562
  { value: "SUBMITTED", label: "待批改" },
@@ -1569,13 +1569,13 @@ function Mn() {
1569
1569
  ] })
1570
1570
  ] }),
1571
1571
  /* @__PURE__ */ e("div", { className: r.tableCard, children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
1572
- _e,
1572
+ Se,
1573
1573
  {
1574
1574
  rows: n,
1575
1575
  columns: O,
1576
1576
  rowKey: "examId",
1577
1577
  tableLayout: "fixed",
1578
- loading: k,
1578
+ loading: A,
1579
1579
  emptyTitle: "暂无答卷",
1580
1580
  emptyDescription: "AI_REVIEW 模式的自由题交卷后会进入这里。",
1581
1581
  cardProps: { variant: "borderless", styles: { body: { padding: 0 } } }
@@ -1587,13 +1587,13 @@ function Mn() {
1587
1587
  title: c ? `批改详情 #${c.examId} · ${c.userName ?? c.userId ?? ""}` : "批改详情",
1588
1588
  open: C,
1589
1589
  width: 880,
1590
- confirmLoading: I,
1590
+ confirmLoading: x,
1591
1591
  okText: "完成复核并出分",
1592
1592
  cancelText: "关闭",
1593
1593
  okButtonProps: { disabled: (c == null ? void 0 : c.status) === "GRADED" },
1594
1594
  onOk: () => void Z(),
1595
1595
  onCancel: () => {
1596
- T(!1), A(null);
1596
+ T(!1), _(null);
1597
1597
  },
1598
1598
  children: c ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
1599
1599
  /* @__PURE__ */ t(ne, { size: "small", column: 3, bordered: !0, children: [
@@ -1615,7 +1615,7 @@ function Mn() {
1615
1615
  index: F,
1616
1616
  readonly: c.status === "GRADED",
1617
1617
  scoreInput: u[w.answerId] ?? w.score ?? null,
1618
- commentInput: _[w.answerId] ?? w.manualComment ?? "",
1618
+ commentInput: S[w.answerId] ?? w.manualComment ?? "",
1619
1619
  onScoreChange: (h) => v((m) => ({ ...m, [w.answerId]: h })),
1620
1620
  onCommentChange: (h) => y((m) => ({ ...m, [w.answerId]: h }))
1621
1621
  },
@@ -1630,13 +1630,13 @@ function Mn() {
1630
1630
  function Wt({
1631
1631
  item: l,
1632
1632
  index: n,
1633
- readonly: D,
1634
- scoreInput: k,
1633
+ readonly: E,
1634
+ scoreInput: A,
1635
1635
  commentInput: L,
1636
- onScoreChange: x,
1636
+ onScoreChange: I,
1637
1637
  onCommentChange: B
1638
1638
  }) {
1639
- const E = xt[l.type ?? ""] ?? xt.FREE, z = Bn(l.options), c = l.type === "FREE";
1639
+ const D = xt[l.type ?? ""] ?? xt.FREE, z = zn(l.options), c = l.type === "FREE";
1640
1640
  return /* @__PURE__ */ t(
1641
1641
  "div",
1642
1642
  {
@@ -1662,14 +1662,14 @@ function Wt({
1662
1662
  n + 1,
1663
1663
  " 题"
1664
1664
  ] }),
1665
- /* @__PURE__ */ e(H, { color: E.color, children: E.label }),
1666
- l.judgeType ? /* @__PURE__ */ e(H, { children: On[l.judgeType] ?? l.judgeType }) : null,
1665
+ /* @__PURE__ */ e(H, { color: D.color, children: D.label }),
1666
+ l.judgeType ? /* @__PURE__ */ e(H, { children: Mn[l.judgeType] ?? l.judgeType }) : null,
1667
1667
  l.isCorrect != null && !c ? l.isCorrect ? /* @__PURE__ */ e(H, { color: "success", children: "答对" }) : /* @__PURE__ */ e(H, { color: "error", children: "答错" }) : null,
1668
1668
  /* @__PURE__ */ t("span", { className: r.mutedCell, children: [
1669
1669
  "满分 ",
1670
1670
  l.scoreFull ?? "-"
1671
1671
  ] }),
1672
- !c || D ? /* @__PURE__ */ t("span", { style: { marginLeft: "auto" }, children: [
1672
+ !c || E ? /* @__PURE__ */ t("span", { style: { marginLeft: "auto" }, children: [
1673
1673
  "得分 ",
1674
1674
  /* @__PURE__ */ e("strong", { children: l.score ?? "-" })
1675
1675
  ] }) : null
@@ -1677,11 +1677,11 @@ function Wt({
1677
1677
  }
1678
1678
  ),
1679
1679
  /* @__PURE__ */ e("div", { style: { marginBottom: 6 }, children: l.title }),
1680
- z.length > 0 ? /* @__PURE__ */ e("div", { style: { marginBottom: 6, fontSize: 12, color: "#555" }, children: z.map((A) => /* @__PURE__ */ t("div", { children: [
1681
- A.key,
1680
+ z.length > 0 ? /* @__PURE__ */ e("div", { style: { marginBottom: 6, fontSize: 12, color: "#555" }, children: z.map((_) => /* @__PURE__ */ t("div", { children: [
1681
+ _.key,
1682
1682
  ". ",
1683
- A.text
1684
- ] }, A.key)) }) : null,
1683
+ _.text
1684
+ ] }, _.key)) }) : null,
1685
1685
  /* @__PURE__ */ t("div", { style: { fontSize: 13, marginBottom: 6 }, children: [
1686
1686
  /* @__PURE__ */ e("span", { className: r.mutedCell, children: "学员作答:" }),
1687
1687
  l.myAnswer || /* @__PURE__ */ e("span", { className: r.mutedCell, children: "(空)" })
@@ -1708,11 +1708,11 @@ function Wt({
1708
1708
  ]
1709
1709
  }
1710
1710
  ) : null,
1711
- l.manualComment && D ? /* @__PURE__ */ t("div", { style: { fontSize: 12, color: "#389e0d", marginBottom: 6 }, children: [
1711
+ l.manualComment && E ? /* @__PURE__ */ t("div", { style: { fontSize: 12, color: "#389e0d", marginBottom: 6 }, children: [
1712
1712
  "人工评语:",
1713
1713
  l.manualComment
1714
1714
  ] }) : null,
1715
- c && !D ? /* @__PURE__ */ t(
1715
+ c && !E ? /* @__PURE__ */ t(
1716
1716
  "div",
1717
1717
  {
1718
1718
  style: {
@@ -1723,13 +1723,13 @@ function Wt({
1723
1723
  },
1724
1724
  children: [
1725
1725
  /* @__PURE__ */ e(oe, { title: `终分 0 - ${l.scoreFull ?? 0}`, children: /* @__PURE__ */ e(
1726
- ze,
1726
+ Me,
1727
1727
  {
1728
1728
  min: 0,
1729
1729
  max: l.scoreFull ?? 100,
1730
- value: k,
1730
+ value: A,
1731
1731
  placeholder: "终分",
1732
- onChange: (A) => x(A),
1732
+ onChange: (_) => I(_),
1733
1733
  style: { width: 90 }
1734
1734
  }
1735
1735
  ) }),
@@ -1738,7 +1738,7 @@ function Wt({
1738
1738
  {
1739
1739
  placeholder: "人工评语(可选)",
1740
1740
  value: L,
1741
- onChange: (A) => B(A.target.value)
1741
+ onChange: (_) => B(_.target.value)
1742
1742
  }
1743
1743
  )
1744
1744
  ]
@@ -1752,36 +1752,36 @@ const Tt = {
1752
1752
  ASSIGNED: { label: "待考", color: "warning", icon: /* @__PURE__ */ e(Rt, {}) },
1753
1753
  SUBMITTED: { label: "待批改", color: "processing", icon: /* @__PURE__ */ e(Lt, {}) },
1754
1754
  GRADED: { label: "已出分", color: "success", icon: /* @__PURE__ */ e(Dt, {}) }
1755
- }, Je = (l) => l ? l.replace("T", " ").slice(0, 19) : "-";
1756
- function zn() {
1755
+ }, Qe = (l) => l ? l.replace("T", " ").slice(0, 19) : "-";
1756
+ function Gn() {
1757
1757
  var b;
1758
- const l = Ce((f) => f.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, z] = o(""), [c, A] = o(!1), [C, T] = o([]), [I, G] = o(null), [u, v] = o([]), [_, y] = o(!1), [j, J] = o([]), [Z, O] = o(!1), [w, F] = o(!1), [h, m] = o(
1758
+ const l = Ce((f) => f.token), [n, E] = o([]), [A, L] = o(!1), [I, B] = o(""), [D, z] = o(""), [c, _] = o(!1), [C, T] = o([]), [x, G] = o(null), [u, v] = o([]), [S, y] = o(!1), [j, J] = o([]), [Z, O] = o(!1), [w, F] = o(!1), [h, m] = o(
1759
1759
  null
1760
- ), [ee, Q] = o([]), [N, S] = o(!1), [i, a] = o(null), [p, R] = o(!1), [U, Y] = o(!1), [te, se] = o({}), [Oe, Ee] = o(
1760
+ ), [ee, Q] = o([]), [N, k] = o(!1), [i, a] = o(null), [p, R] = o(!1), [U, Y] = o(!1), [te, se] = o({}), [Pe, Ae] = o(
1761
1761
  {}
1762
1762
  ), ye = de(async () => {
1763
1763
  L(!0);
1764
1764
  try {
1765
- D(await bl(x, E, l));
1765
+ E(await xl(I, D, l));
1766
1766
  } catch {
1767
1767
  } finally {
1768
1768
  L(!1);
1769
1769
  }
1770
- }, [x, E, l]);
1770
+ }, [I, D, l]);
1771
1771
  ce(() => {
1772
1772
  ye();
1773
1773
  }, [ye]);
1774
- const De = async (f) => {
1775
- m(f), F(!0), S(!0);
1774
+ const Ee = async (f) => {
1775
+ m(f), F(!0), k(!0);
1776
1776
  try {
1777
1777
  Q(
1778
1778
  await vt(f.batchKey, l)
1779
1779
  );
1780
1780
  } catch {
1781
1781
  } finally {
1782
- S(!1);
1782
+ k(!1);
1783
1783
  }
1784
- }, Fe = de(async () => {
1784
+ }, ze = de(async () => {
1785
1785
  if (h)
1786
1786
  try {
1787
1787
  Q(
@@ -1789,29 +1789,29 @@ function zn() {
1789
1789
  );
1790
1790
  } catch {
1791
1791
  }
1792
- }, [h, l]), Re = async () => {
1793
- A(!0), G(null), J([]);
1792
+ }, [h, l]), De = async () => {
1793
+ _(!0), G(null), J([]);
1794
1794
  try {
1795
1795
  T(await st("", 1, l));
1796
1796
  } catch {
1797
1797
  }
1798
- Be("");
1799
- }, Be = de(
1798
+ Oe("");
1799
+ }, Oe = de(
1800
1800
  async (f) => {
1801
1801
  y(!0);
1802
1802
  try {
1803
- v(await Wl(f, l));
1803
+ v(await Kl(f, l));
1804
1804
  } catch {
1805
1805
  } finally {
1806
1806
  y(!1);
1807
1807
  }
1808
1808
  },
1809
1809
  [l]
1810
- ), ke = pe(
1811
- () => C.find((f) => f.id === I) ?? null,
1812
- [C, I]
1813
- ), Ge = async () => {
1814
- if (!I) {
1810
+ ), ke = ue(
1811
+ () => C.find((f) => f.id === x) ?? null,
1812
+ [C, x]
1813
+ ), Fe = async () => {
1814
+ if (!x) {
1815
1815
  P.warning("请选择试卷");
1816
1816
  return;
1817
1817
  }
@@ -1821,9 +1821,9 @@ function zn() {
1821
1821
  }
1822
1822
  O(!0);
1823
1823
  try {
1824
- const f = await Il(
1824
+ const f = await Tl(
1825
1825
  {
1826
- paperId: I,
1826
+ paperId: x,
1827
1827
  targets: j.map(($) => ({
1828
1828
  userId: String($.accountNo ?? $.staffId ?? ""),
1829
1829
  userName: $.name ?? ""
@@ -1831,18 +1831,18 @@ function zn() {
1831
1831
  },
1832
1832
  l
1833
1833
  );
1834
- P.success(`已发放考试:${f} 人进入待考`), A(!1), ye();
1834
+ P.success(`已发放考试:${f} 人进入待考`), _(!1), ye();
1835
1835
  } catch {
1836
1836
  } finally {
1837
1837
  O(!1);
1838
1838
  }
1839
- }, Ue = async (f) => {
1839
+ }, Ge = async (f) => {
1840
1840
  try {
1841
1841
  const $ = await Ut(f.examId, l);
1842
- a($), se({}), Ee({}), R(!0);
1842
+ a($), se({}), Ae({}), R(!0);
1843
1843
  } catch {
1844
1844
  }
1845
- }, je = async () => {
1845
+ }, Ue = async () => {
1846
1846
  var V;
1847
1847
  if (!(i != null && i.answers)) return;
1848
1848
  const f = i.answers.filter((X) => X.type === "FREE");
@@ -1852,15 +1852,15 @@ function zn() {
1852
1852
  }
1853
1853
  const $ = [];
1854
1854
  for (const X of f) {
1855
- const ue = te[X.answerId] ?? X.score ?? null;
1856
- if (ue == null) {
1855
+ const he = te[X.answerId] ?? X.score ?? null;
1856
+ if (he == null) {
1857
1857
  P.warning(
1858
1858
  `自由题「${((V = X.title) == null ? void 0 : V.slice(0, 20)) ?? X.questionId}」尚未给出终分`
1859
1859
  );
1860
1860
  return;
1861
1861
  }
1862
- const fe = Oe[X.answerId] ?? X.manualComment ?? void 0;
1863
- $.push({ answerId: X.answerId, score: ue, comment: fe });
1862
+ const fe = Pe[X.answerId] ?? X.manualComment ?? void 0;
1863
+ $.push({ answerId: X.answerId, score: he, comment: fe });
1864
1864
  }
1865
1865
  Y(!0);
1866
1866
  try {
@@ -1871,12 +1871,12 @@ function zn() {
1871
1871
  );
1872
1872
  P.success(
1873
1873
  `复核完成,总分 ${X.totalScore ?? "-"}/${X.totalScoreFull ?? "-"}${X.passed ? "(及格)" : "(未及格)"}`
1874
- ), R(!1), a(null), ye(), Fe();
1874
+ ), R(!1), a(null), ye(), ze();
1875
1875
  } catch {
1876
1876
  } finally {
1877
1877
  Y(!1);
1878
1878
  }
1879
- }, Le = [
1879
+ }, Re = [
1880
1880
  {
1881
1881
  title: "试卷",
1882
1882
  dataIndex: "paperTitle",
@@ -1896,7 +1896,7 @@ function zn() {
1896
1896
  title: "发起时间",
1897
1897
  dataIndex: "assignTime",
1898
1898
  width: 150,
1899
- render: Je
1899
+ render: Qe
1900
1900
  },
1901
1901
  {
1902
1902
  title: "参与",
@@ -1913,7 +1913,7 @@ function zn() {
1913
1913
  title: "进度",
1914
1914
  key: "progress",
1915
1915
  width: 250,
1916
- render: (f, $) => /* @__PURE__ */ t(qe, { size: 4, wrap: !0, children: [
1916
+ render: (f, $) => /* @__PURE__ */ t(Ke, { size: 4, wrap: !0, children: [
1917
1917
  $.assignedCount ? /* @__PURE__ */ t(H, { color: "warning", children: [
1918
1918
  "待考 ",
1919
1919
  $.assignedCount
@@ -1953,7 +1953,7 @@ function zn() {
1953
1953
  {
1954
1954
  type: "link",
1955
1955
  size: "small",
1956
- onClick: () => void De($),
1956
+ onClick: () => void Ee($),
1957
1957
  children: "详情"
1958
1958
  }
1959
1959
  )
@@ -2005,7 +2005,7 @@ function zn() {
2005
2005
  title: "交卷时间",
2006
2006
  dataIndex: "submitTime",
2007
2007
  width: 150,
2008
- render: Je
2008
+ render: Qe
2009
2009
  },
2010
2010
  {
2011
2011
  title: "答卷",
@@ -2017,7 +2017,7 @@ function zn() {
2017
2017
  type: "link",
2018
2018
  size: "small",
2019
2019
  icon: $.status === "SUBMITTED" ? /* @__PURE__ */ e(Lt, {}) : /* @__PURE__ */ e(Yt, {}),
2020
- onClick: () => void Ue($),
2020
+ onClick: () => void Ge($),
2021
2021
  children: $.status === "SUBMITTED" ? "批改" : "查看"
2022
2022
  }
2023
2023
  )
@@ -2044,7 +2044,7 @@ function zn() {
2044
2044
  prefix: /* @__PURE__ */ e(Ie, {}),
2045
2045
  placeholder: "搜学员 / 试卷",
2046
2046
  style: { width: 180 },
2047
- value: E,
2047
+ value: D,
2048
2048
  onChange: (f) => z(f.target.value)
2049
2049
  }
2050
2050
  ),
@@ -2052,7 +2052,7 @@ function zn() {
2052
2052
  ae,
2053
2053
  {
2054
2054
  style: { width: 130 },
2055
- value: x,
2055
+ value: I,
2056
2056
  onChange: B,
2057
2057
  options: [
2058
2058
  { value: "", label: "全部批次" },
@@ -2068,20 +2068,20 @@ function zn() {
2068
2068
  {
2069
2069
  type: "primary",
2070
2070
  icon: /* @__PURE__ */ e(Vt, {}),
2071
- onClick: () => void Re(),
2071
+ onClick: () => void De(),
2072
2072
  children: "发起考试"
2073
2073
  }
2074
2074
  )
2075
2075
  ] })
2076
2076
  ] }),
2077
2077
  /* @__PURE__ */ e("div", { className: r.tableCard, children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
2078
- _e,
2078
+ Se,
2079
2079
  {
2080
2080
  rows: n,
2081
2081
  rowKey: "batchKey",
2082
2082
  tableLayout: "fixed",
2083
- loading: k,
2084
- columns: Le,
2083
+ loading: A,
2084
+ columns: Re,
2085
2085
  emptyTitle: "暂无考试",
2086
2086
  emptyDescription: "点右上「发起考试」选择试卷圈选人员发放。",
2087
2087
  cardProps: { variant: "borderless", styles: { body: { padding: 0 } } }
@@ -2095,10 +2095,10 @@ function zn() {
2095
2095
  width: 640,
2096
2096
  confirmLoading: Z,
2097
2097
  okText: `发放给 ${j.length} 人`,
2098
- okButtonProps: { disabled: !I || j.length === 0 },
2098
+ okButtonProps: { disabled: !x || j.length === 0 },
2099
2099
  cancelText: "取消",
2100
- onOk: () => void Ge(),
2101
- onCancel: () => A(!1),
2100
+ onOk: () => void Fe(),
2101
+ onCancel: () => _(!1),
2102
2102
  children: /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 14 }, children: [
2103
2103
  /* @__PURE__ */ t("div", { children: [
2104
2104
  /* @__PURE__ */ e("div", { style: { marginBottom: 6, fontWeight: 600 }, children: "选择试卷 *" }),
@@ -2109,7 +2109,7 @@ function zn() {
2109
2109
  placeholder: "选择已发布的试卷",
2110
2110
  showSearch: !0,
2111
2111
  optionFilterProp: "label",
2112
- value: I,
2112
+ value: x,
2113
2113
  onChange: G,
2114
2114
  options: C.map((f) => ({
2115
2115
  value: f.id,
@@ -2127,7 +2127,7 @@ function zn() {
2127
2127
  style: { width: "100%" },
2128
2128
  placeholder: "输入姓名/账号搜索并勾选(支持多选)",
2129
2129
  filterOption: !1,
2130
- onSearch: (f) => void Be(f),
2130
+ onSearch: (f) => void Oe(f),
2131
2131
  value: j.map(
2132
2132
  (f) => String(f.accountNo ?? f.staffId ?? "")
2133
2133
  ),
@@ -2137,16 +2137,16 @@ function zn() {
2137
2137
  (fe) => !f.includes(String(fe.accountNo ?? fe.staffId ?? ""))
2138
2138
  ), X = f.map(
2139
2139
  (fe) => u.find(
2140
- ($e) => String($e.accountNo ?? $e.staffId ?? "") === fe
2140
+ (Le) => String(Le.accountNo ?? Le.staffId ?? "") === fe
2141
2141
  )
2142
- ).filter((fe) => !!fe), ue = /* @__PURE__ */ new Set();
2142
+ ).filter((fe) => !!fe), he = /* @__PURE__ */ new Set();
2143
2143
  return [...V, ...X].filter((fe) => {
2144
- const $e = String(fe.accountNo ?? fe.staffId ?? "");
2145
- return ue.has($e) ? !1 : (ue.add($e), !0);
2144
+ const Le = String(fe.accountNo ?? fe.staffId ?? "");
2145
+ return he.has(Le) ? !1 : (he.add(Le), !0);
2146
2146
  });
2147
2147
  });
2148
2148
  },
2149
- loading: _,
2149
+ loading: S,
2150
2150
  options: u.map((f) => ({
2151
2151
  value: String(f.accountNo ?? f.staffId ?? ""),
2152
2152
  label: `${f.name ?? "未命名"}(${f.accountNo ?? f.staffId ?? ""})`
@@ -2184,7 +2184,7 @@ function zn() {
2184
2184
  children: h ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 14 }, children: [
2185
2185
  /* @__PURE__ */ t(ne, { size: "small", column: 2, bordered: !0, children: [
2186
2186
  /* @__PURE__ */ e(ne.Item, { label: "来源", children: h.courseId ? /* @__PURE__ */ e(oe, { title: `课程 #${h.courseId}`, children: /* @__PURE__ */ e(H, { children: "课程" }) }) : /* @__PURE__ */ e(H, { color: "blue", children: "独立发放" }) }),
2187
- /* @__PURE__ */ e(ne.Item, { label: "发起时间", children: Je(h.assignTime) }),
2187
+ /* @__PURE__ */ e(ne.Item, { label: "发起时间", children: Qe(h.assignTime) }),
2188
2188
  /* @__PURE__ */ t(ne.Item, { label: "参与人数", children: [
2189
2189
  h.totalCount ?? 0,
2190
2190
  " 人"
@@ -2208,7 +2208,7 @@ function zn() {
2208
2208
  " 人 · 点「批改/查看」看逐题答卷)"
2209
2209
  ] }),
2210
2210
  /* @__PURE__ */ e(
2211
- _e,
2211
+ Se,
2212
2212
  {
2213
2213
  rows: ee,
2214
2214
  rowKey: "examId",
@@ -2232,14 +2232,14 @@ function zn() {
2232
2232
  okText: "完成复核并出分",
2233
2233
  cancelText: "关闭",
2234
2234
  okButtonProps: { disabled: (i == null ? void 0 : i.status) === "GRADED" },
2235
- onOk: () => void je(),
2235
+ onOk: () => void Ue(),
2236
2236
  onCancel: () => {
2237
2237
  R(!1), a(null);
2238
2238
  },
2239
2239
  children: i ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
2240
2240
  /* @__PURE__ */ t(ne, { size: "small", column: 3, bordered: !0, children: [
2241
2241
  /* @__PURE__ */ e(ne.Item, { label: "试卷", children: i.paperTitle ?? "-" }),
2242
- /* @__PURE__ */ e(ne.Item, { label: "提交时间", children: Je(i.submitTime) }),
2242
+ /* @__PURE__ */ e(ne.Item, { label: "提交时间", children: Qe(i.submitTime) }),
2243
2243
  /* @__PURE__ */ e(ne.Item, { label: "批改模式", children: i.judgeMode ?? "-" }),
2244
2244
  /* @__PURE__ */ e(ne.Item, { label: "客观题得分", children: i.objectiveScore ?? "-" }),
2245
2245
  /* @__PURE__ */ t(ne.Item, { label: "总分", children: [
@@ -2256,9 +2256,9 @@ function zn() {
2256
2256
  index: $,
2257
2257
  readonly: i.status === "GRADED",
2258
2258
  scoreInput: te[f.answerId] ?? f.score ?? null,
2259
- commentInput: Oe[f.answerId] ?? f.manualComment ?? "",
2259
+ commentInput: Pe[f.answerId] ?? f.manualComment ?? "",
2260
2260
  onScoreChange: (V) => se((X) => ({ ...X, [f.answerId]: V })),
2261
- onCommentChange: (V) => Ee((X) => ({ ...X, [f.answerId]: V }))
2261
+ onCommentChange: (V) => Ae((X) => ({ ...X, [f.answerId]: V }))
2262
2262
  },
2263
2263
  f.answerId
2264
2264
  )),
@@ -2268,59 +2268,59 @@ function zn() {
2268
2268
  )
2269
2269
  ] });
2270
2270
  }
2271
- const Fn = "_gBody_96jeg_4", Gn = "_gTree_96jeg_14", Un = "_gTreeHead_96jeg_26", jn = "_gTreeTip_96jeg_34", Wn = "_gTreeScroll_96jeg_42", Hn = "_gListSide_96jeg_50", Kn = "_gListHead_96jeg_56", qn = "_gListTitle_96jeg_64", Vn = "_gListMeta_96jeg_69", Qn = "_groupRow_96jeg_75", Jn = "_groupRowName_96jeg_75", Yn = "_groupRowMeta_96jeg_106", Zn = "_groupRowActions_96jeg_115", Xn = "_actIcon_96jeg_127", ea = "_actIconDisabled_96jeg_135", ta = "_groupEmpty_96jeg_140", he = {
2272
- gBody: Fn,
2273
- gTree: Gn,
2274
- gTreeHead: Un,
2275
- gTreeTip: jn,
2276
- gTreeScroll: Wn,
2277
- gListSide: Hn,
2278
- gListHead: Kn,
2279
- gListTitle: qn,
2280
- gListMeta: Vn,
2281
- groupRow: Qn,
2282
- groupRowName: Jn,
2283
- groupRowMeta: Yn,
2284
- groupRowActions: Zn,
2285
- actIcon: Xn,
2286
- actIconDisabled: ea,
2287
- groupEmpty: ta
2288
- }, Me = {
2271
+ const Un = "_gBody_96jeg_4", jn = "_gTree_96jeg_14", Wn = "_gTreeHead_96jeg_26", Hn = "_gTreeTip_96jeg_34", Kn = "_gTreeScroll_96jeg_42", qn = "_gListSide_96jeg_50", Vn = "_gListHead_96jeg_56", Qn = "_gListTitle_96jeg_64", Jn = "_gListMeta_96jeg_69", Yn = "_groupRow_96jeg_75", Zn = "_groupRowName_96jeg_75", Xn = "_groupRowMeta_96jeg_106", ea = "_groupRowActions_96jeg_115", ta = "_actIcon_96jeg_127", la = "_actIconDisabled_96jeg_135", na = "_groupEmpty_96jeg_140", me = {
2272
+ gBody: Un,
2273
+ gTree: jn,
2274
+ gTreeHead: Wn,
2275
+ gTreeTip: Hn,
2276
+ gTreeScroll: Kn,
2277
+ gListSide: qn,
2278
+ gListHead: Vn,
2279
+ gListTitle: Qn,
2280
+ gListMeta: Jn,
2281
+ groupRow: Yn,
2282
+ groupRowName: Zn,
2283
+ groupRowMeta: Xn,
2284
+ groupRowActions: ea,
2285
+ actIcon: ta,
2286
+ actIconDisabled: la,
2287
+ groupEmpty: na
2288
+ }, Be = {
2289
2289
  SINGLE: { label: "单选", color: "blue" },
2290
2290
  MULTI: { label: "多选", color: "purple" },
2291
2291
  FREE: { label: "自由", color: "orange" }
2292
2292
  };
2293
2293
  function ht(l) {
2294
2294
  return l.map((n) => {
2295
- var D;
2295
+ var E;
2296
2296
  return {
2297
2297
  value: n.id,
2298
2298
  title: n.name,
2299
- children: (D = n.children) != null && D.length ? ht(n.children) : void 0
2299
+ children: (E = n.children) != null && E.length ? ht(n.children) : void 0
2300
2300
  };
2301
2301
  });
2302
2302
  }
2303
2303
  function Ht(l) {
2304
2304
  const n = /* @__PURE__ */ new Map();
2305
2305
  l.forEach((L) => n.set(L.id, { ...L }));
2306
- const D = [];
2306
+ const E = [];
2307
2307
  l.forEach((L) => {
2308
- const x = n.get(L.id), B = L.parentId != null ? n.get(L.parentId) : void 0;
2309
- B && B.id !== x.id ? (B.children = B.children ?? [], B.children.push(x)) : D.push(x);
2308
+ const I = n.get(L.id), B = L.parentId != null ? n.get(L.parentId) : void 0;
2309
+ B && B.id !== I.id ? (B.children = B.children ?? [], B.children.push(I)) : E.push(I);
2310
2310
  });
2311
- const k = (L) => {
2311
+ const A = (L) => {
2312
2312
  L.sort(
2313
- (x, B) => (x.sortOrder ?? 0) - (B.sortOrder ?? 0) || (x.id ?? 0) - (B.id ?? 0)
2314
- ), L.forEach((x) => x.children && k(x.children));
2313
+ (I, B) => (I.sortOrder ?? 0) - (B.sortOrder ?? 0) || (I.id ?? 0) - (B.id ?? 0)
2314
+ ), L.forEach((I) => I.children && A(I.children));
2315
2315
  };
2316
- return k(D), D;
2316
+ return A(E), E;
2317
2317
  }
2318
2318
  const Nt = [
2319
2319
  { value: "AI_REVIEW", label: "AI初评+人工复核" },
2320
2320
  { value: "AUTO_AI", label: "AI全自动出分" },
2321
2321
  { value: "MANUAL", label: "全人工批改" }
2322
2322
  ];
2323
- function la() {
2323
+ function aa() {
2324
2324
  const [l, n] = o("papers");
2325
2325
  return /* @__PURE__ */ t("div", { className: r.scenarioPage, children: [
2326
2326
  /* @__PURE__ */ e(
@@ -2336,26 +2336,26 @@ function la() {
2336
2336
  ]
2337
2337
  }
2338
2338
  ),
2339
- l === "papers" && /* @__PURE__ */ e(na, {}),
2340
- l === "questions" && /* @__PURE__ */ e(ia, {}),
2341
- l === "groups" && /* @__PURE__ */ e(oa, {})
2339
+ l === "papers" && /* @__PURE__ */ e(ia, {}),
2340
+ l === "questions" && /* @__PURE__ */ e(oa, {}),
2341
+ l === "groups" && /* @__PURE__ */ e(da, {})
2342
2342
  ] });
2343
2343
  }
2344
- function na() {
2345
- const l = Ce((h) => h.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, z] = o(!1), [c, A] = o(null), [C, T] = o(!1), [I, G] = o(null), [u, v] = o(!1), [_, y] = o(!1), j = de(async () => {
2344
+ function ia() {
2345
+ const l = Ce((h) => h.token), [n, E] = o([]), [A, L] = o(!1), [I, B] = o(""), [D, z] = o(!1), [c, _] = o(null), [C, T] = o(!1), [x, G] = o(null), [u, v] = o(!1), [S, y] = o(!1), j = de(async () => {
2346
2346
  L(!0);
2347
2347
  try {
2348
- D(await st(x, null, l));
2348
+ E(await st(I, null, l));
2349
2349
  } catch {
2350
2350
  } finally {
2351
2351
  L(!1);
2352
2352
  }
2353
- }, [x, l]);
2353
+ }, [I, l]);
2354
2354
  ce(() => {
2355
2355
  j();
2356
2356
  }, [j]);
2357
2357
  const J = () => {
2358
- A({
2358
+ _({
2359
2359
  title: "",
2360
2360
  description: "",
2361
2361
  passScore: 60,
@@ -2373,7 +2373,7 @@ function na() {
2373
2373
  }
2374
2374
  T(!0);
2375
2375
  try {
2376
- await Tl(c, l), P.success("保存成功"), z(!1), A(null), j();
2376
+ await kl(c, l), P.success("保存成功"), z(!1), _(null), j();
2377
2377
  } catch {
2378
2378
  } finally {
2379
2379
  T(!1);
@@ -2381,7 +2381,7 @@ function na() {
2381
2381
  }
2382
2382
  }, O = async (h) => {
2383
2383
  try {
2384
- await _l(
2384
+ await El(
2385
2385
  h.id,
2386
2386
  h.status === 1 ? 0 : 1,
2387
2387
  l
@@ -2390,7 +2390,7 @@ function na() {
2390
2390
  }
2391
2391
  }, w = async (h) => {
2392
2392
  try {
2393
- const m = await Sl(h.id, l);
2393
+ const m = await Al(h.id, l);
2394
2394
  G(m), v(!0);
2395
2395
  } catch {
2396
2396
  }
@@ -2466,7 +2466,7 @@ function na() {
2466
2466
  type: "link",
2467
2467
  size: "small",
2468
2468
  onClick: () => {
2469
- A({ ...m }), z(!0);
2469
+ _({ ...m }), z(!0);
2470
2470
  },
2471
2471
  children: "编辑"
2472
2472
  }
@@ -2490,7 +2490,7 @@ function na() {
2490
2490
  disabled: (m.refCount ?? 0) > 0,
2491
2491
  onConfirm: async () => {
2492
2492
  try {
2493
- await xl(m.id, l), P.success("已删除"), j();
2493
+ await Nl(m.id, l), P.success("已删除"), j();
2494
2494
  } catch {
2495
2495
  }
2496
2496
  },
@@ -2527,7 +2527,7 @@ function na() {
2527
2527
  prefix: /* @__PURE__ */ e(Ie, {}),
2528
2528
  placeholder: "搜索试卷",
2529
2529
  style: { width: 180 },
2530
- value: x,
2530
+ value: I,
2531
2531
  onChange: (h) => B(h.target.value)
2532
2532
  }
2533
2533
  ),
@@ -2536,12 +2536,12 @@ function na() {
2536
2536
  ] })
2537
2537
  ] }),
2538
2538
  /* @__PURE__ */ e("div", { className: r.tableCard, children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
2539
- _e,
2539
+ Se,
2540
2540
  {
2541
2541
  rows: n,
2542
2542
  rowKey: "id",
2543
2543
  tableLayout: "fixed",
2544
- loading: k,
2544
+ loading: A,
2545
2545
  columns: F,
2546
2546
  emptyTitle: "暂无试卷",
2547
2547
  emptyDescription: "点右上「新建试卷」创建第一份。",
@@ -2552,14 +2552,14 @@ function na() {
2552
2552
  ve,
2553
2553
  {
2554
2554
  title: c != null && c.id ? `编辑试卷 #${c.id}` : "新建试卷",
2555
- open: E,
2555
+ open: D,
2556
2556
  width: 560,
2557
2557
  confirmLoading: C,
2558
2558
  okText: "保存",
2559
2559
  cancelText: "取消",
2560
2560
  onOk: () => void Z(),
2561
2561
  onCancel: () => {
2562
- z(!1), A(null);
2562
+ z(!1), _(null);
2563
2563
  },
2564
2564
  children: c ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
2565
2565
  /* @__PURE__ */ t("div", { children: [
@@ -2568,7 +2568,7 @@ function na() {
2568
2568
  K,
2569
2569
  {
2570
2570
  value: c.title,
2571
- onChange: (h) => A((m) => m && { ...m, title: h.target.value })
2571
+ onChange: (h) => _((m) => m && { ...m, title: h.target.value })
2572
2572
  }
2573
2573
  )
2574
2574
  ] }),
@@ -2579,7 +2579,7 @@ function na() {
2579
2579
  {
2580
2580
  rows: 2,
2581
2581
  value: c.description ?? "",
2582
- onChange: (h) => A(
2582
+ onChange: (h) => _(
2583
2583
  (m) => m && { ...m, description: h.target.value }
2584
2584
  )
2585
2585
  }
@@ -2589,24 +2589,24 @@ function na() {
2589
2589
  /* @__PURE__ */ t("div", { style: { flex: 1 }, children: [
2590
2590
  /* @__PURE__ */ e("div", { style: { marginBottom: 4 }, children: "及格分" }),
2591
2591
  /* @__PURE__ */ e(
2592
- ze,
2592
+ Me,
2593
2593
  {
2594
2594
  min: 1,
2595
2595
  style: { width: "100%" },
2596
2596
  value: c.passScore ?? 60,
2597
- onChange: (h) => A((m) => m && { ...m, passScore: h ?? 60 })
2597
+ onChange: (h) => _((m) => m && { ...m, passScore: h ?? 60 })
2598
2598
  }
2599
2599
  )
2600
2600
  ] }),
2601
2601
  /* @__PURE__ */ t("div", { style: { flex: 1 }, children: [
2602
2602
  /* @__PURE__ */ e("div", { style: { marginBottom: 4 }, children: "时长(分钟)" }),
2603
2603
  /* @__PURE__ */ e(
2604
- ze,
2604
+ Me,
2605
2605
  {
2606
2606
  min: 1,
2607
2607
  style: { width: "100%" },
2608
2608
  value: c.durationLimitMin ?? 30,
2609
- onChange: (h) => A(
2609
+ onChange: (h) => _(
2610
2610
  (m) => m && { ...m, durationLimitMin: h ?? 30 }
2611
2611
  )
2612
2612
  }
@@ -2615,12 +2615,12 @@ function na() {
2615
2615
  /* @__PURE__ */ t("div", { style: { flex: 1 }, children: [
2616
2616
  /* @__PURE__ */ e("div", { style: { marginBottom: 4 }, children: "可重考次数" }),
2617
2617
  /* @__PURE__ */ e(
2618
- ze,
2618
+ Me,
2619
2619
  {
2620
2620
  min: 0,
2621
2621
  style: { width: "100%" },
2622
2622
  value: c.retryLimit ?? 1,
2623
- onChange: (h) => A((m) => m && { ...m, retryLimit: h ?? 0 })
2623
+ onChange: (h) => _((m) => m && { ...m, retryLimit: h ?? 0 })
2624
2624
  }
2625
2625
  )
2626
2626
  ] })
@@ -2633,7 +2633,7 @@ function na() {
2633
2633
  {
2634
2634
  style: { width: "100%" },
2635
2635
  value: c.scorePolicy ?? "BEST",
2636
- onChange: (h) => A((m) => m && { ...m, scorePolicy: h }),
2636
+ onChange: (h) => _((m) => m && { ...m, scorePolicy: h }),
2637
2637
  options: [
2638
2638
  { value: "BEST", label: "最佳成绩" },
2639
2639
  { value: "LATEST", label: "最新成绩" }
@@ -2648,7 +2648,7 @@ function na() {
2648
2648
  {
2649
2649
  style: { width: "100%" },
2650
2650
  value: c.judgeMode ?? "AI_REVIEW",
2651
- onChange: (h) => A((m) => m && { ...m, judgeMode: h }),
2651
+ onChange: (h) => _((m) => m && { ...m, judgeMode: h }),
2652
2652
  options: Nt
2653
2653
  }
2654
2654
  )
@@ -2658,7 +2658,7 @@ function na() {
2658
2658
  Ot,
2659
2659
  {
2660
2660
  checked: c.shuffle === 1,
2661
- onChange: (h) => A((m) => m && { ...m, shuffle: h ? 1 : 0 })
2661
+ onChange: (h) => _((m) => m && { ...m, shuffle: h ? 1 : 0 })
2662
2662
  }
2663
2663
  ),
2664
2664
  /* @__PURE__ */ e("span", { children: "题目乱序" })
@@ -2668,12 +2668,12 @@ function na() {
2668
2668
  ] }) : null
2669
2669
  }
2670
2670
  ),
2671
- I ? /* @__PURE__ */ e(
2672
- aa,
2671
+ x ? /* @__PURE__ */ e(
2672
+ ra,
2673
2673
  {
2674
- paper: I,
2674
+ paper: x,
2675
2675
  open: u,
2676
- loading: _,
2676
+ loading: S,
2677
2677
  token: l,
2678
2678
  onClose: () => v(!1),
2679
2679
  setLoading: y,
@@ -2684,37 +2684,37 @@ function na() {
2684
2684
  ) : null
2685
2685
  ] });
2686
2686
  }
2687
- function aa({
2687
+ function ra({
2688
2688
  paper: l,
2689
2689
  open: n,
2690
- loading: D,
2691
- token: k,
2690
+ loading: E,
2691
+ token: A,
2692
2692
  onClose: L,
2693
- setLoading: x,
2693
+ setLoading: I,
2694
2694
  onSaved: B
2695
2695
  }) {
2696
- const [E, z] = o([]), [c, A] = o([]), [C, T] = o(/* @__PURE__ */ new Map()), [I, G] = o(""), [u, v] = o(null);
2696
+ const [D, z] = o([]), [c, _] = o([]), [C, T] = o(/* @__PURE__ */ new Map()), [x, G] = o(""), [u, v] = o(null);
2697
2697
  ce(() => {
2698
2698
  n && (T(
2699
2699
  new Map((l.questions ?? []).map((O) => [O.questionId, O.score ?? 0]))
2700
2700
  ), Promise.all([
2701
- ct("", null, "", k),
2702
- ut(k)
2701
+ ct("", null, "", A),
2702
+ ut(A)
2703
2703
  ]).then(([O, w]) => {
2704
- z(O), A(w);
2704
+ z(O), _(w);
2705
2705
  }).catch(() => {
2706
2706
  }));
2707
- }, [n, l, k]);
2708
- const _ = pe(() => {
2709
- let O = E;
2710
- if (u != null && (O = O.filter((w) => w.groupId === u)), I.trim()) {
2711
- const w = I.trim();
2707
+ }, [n, l, A]);
2708
+ const S = ue(() => {
2709
+ let O = D;
2710
+ if (u != null && (O = O.filter((w) => w.groupId === u)), x.trim()) {
2711
+ const w = x.trim();
2712
2712
  O = O.filter(
2713
2713
  (F) => F.title.includes(w) || (F.groupName ?? "").includes(w)
2714
2714
  );
2715
2715
  }
2716
2716
  return O;
2717
- }, [E, I, u]), y = Array.from(C.values()).reduce((O, w) => O + w, 0), j = (O) => {
2717
+ }, [D, x, u]), y = Array.from(C.values()).reduce((O, w) => O + w, 0), j = (O) => {
2718
2718
  T((w) => {
2719
2719
  const F = new Map(w);
2720
2720
  return F.has(O.id) ? F.delete(O.id) : F.set(O.id, 10), F;
@@ -2724,9 +2724,9 @@ function aa({
2724
2724
  P.warning("请至少选择一道题目");
2725
2725
  return;
2726
2726
  }
2727
- x(!0);
2727
+ I(!0);
2728
2728
  try {
2729
- await Al(
2729
+ await Dl(
2730
2730
  {
2731
2731
  paperId: l.id,
2732
2732
  items: Array.from(C.entries()).map(
@@ -2737,11 +2737,11 @@ function aa({
2737
2737
  })
2738
2738
  )
2739
2739
  },
2740
- k
2740
+ A
2741
2741
  ), P.success(`组卷成功(${C.size} 题,共 ${y} 分)`), B();
2742
2742
  } catch {
2743
2743
  } finally {
2744
- x(!1);
2744
+ I(!1);
2745
2745
  }
2746
2746
  }, Z = [
2747
2747
  { title: "ID", dataIndex: "id", width: 84, ellipsis: !0 },
@@ -2756,7 +2756,7 @@ function aa({
2756
2756
  dataIndex: "type",
2757
2757
  width: 76,
2758
2758
  render: (O) => {
2759
- const w = Me[O] ?? Me.SINGLE;
2759
+ const w = Be[O] ?? Be.SINGLE;
2760
2760
  return /* @__PURE__ */ e(H, { color: w.color, children: w.label });
2761
2761
  }
2762
2762
  },
@@ -2771,7 +2771,7 @@ function aa({
2771
2771
  key: "score",
2772
2772
  width: 100,
2773
2773
  render: (O, w) => C.has(w.id) ? /* @__PURE__ */ e(
2774
- ze,
2774
+ Me,
2775
2775
  {
2776
2776
  min: 1,
2777
2777
  max: 100,
@@ -2791,7 +2791,7 @@ function aa({
2791
2791
  title: `组卷:${l.title}(已选 ${C.size} 题 · 共 ${y} 分)`,
2792
2792
  open: n,
2793
2793
  width: 860,
2794
- confirmLoading: D,
2794
+ confirmLoading: E,
2795
2795
  okText: l.status === 1 ? "保存(发布后不可改)" : "保存组卷",
2796
2796
  cancelText: "取消",
2797
2797
  onOk: () => void J(),
@@ -2805,7 +2805,7 @@ function aa({
2805
2805
  prefix: /* @__PURE__ */ e(Ie, {}),
2806
2806
  placeholder: "搜索题干/组别",
2807
2807
  style: { width: 240 },
2808
- value: I,
2808
+ value: x,
2809
2809
  onChange: (O) => G(O.target.value)
2810
2810
  }
2811
2811
  ),
@@ -2822,9 +2822,9 @@ function aa({
2822
2822
  )
2823
2823
  ] }),
2824
2824
  /* @__PURE__ */ e(
2825
- _e,
2825
+ Se,
2826
2826
  {
2827
- rows: _,
2827
+ rows: S,
2828
2828
  rowKey: "id",
2829
2829
  tableLayout: "fixed",
2830
2830
  columns: Z,
@@ -2854,26 +2854,26 @@ function aa({
2854
2854
  }
2855
2855
  );
2856
2856
  }
2857
- function ia() {
2858
- const l = Ce((i) => i.token), [n, D] = o([]), [k, L] = o([]), [x, B] = o(!1), [E, z] = o(""), [c, A] = o(""), [C, T] = o(null), [I, G] = o(!1), [u, v] = o(null), [_, y] = o([]), [j, J] = o([]), [Z, O] = o(!1), w = de(async () => {
2857
+ function oa() {
2858
+ const l = Ce((i) => i.token), [n, E] = o([]), [A, L] = o([]), [I, B] = o(!1), [D, z] = o(""), [c, _] = o(""), [C, T] = o(null), [x, G] = o(!1), [u, v] = o(null), [S, y] = o([]), [j, J] = o([]), [Z, O] = o(!1), w = de(async () => {
2859
2859
  B(!0);
2860
2860
  try {
2861
2861
  const [i, a] = await Promise.all([
2862
- ct(E, C, c, l),
2862
+ ct(D, C, c, l),
2863
2863
  ut(l)
2864
2864
  ]);
2865
- D(i), L(a);
2865
+ E(i), L(a);
2866
2866
  } catch {
2867
2867
  } finally {
2868
2868
  B(!1);
2869
2869
  }
2870
- }, [E, C, c, l]);
2870
+ }, [D, C, c, l]);
2871
2871
  ce(() => {
2872
2872
  w();
2873
2873
  }, [w]);
2874
- const F = pe(
2875
- () => ht(Ht(k)),
2876
- [k]
2874
+ const F = ue(
2875
+ () => ht(Ht(A)),
2876
+ [A]
2877
2877
  ), h = (i) => {
2878
2878
  if (!i) return [];
2879
2879
  try {
@@ -2902,14 +2902,14 @@ function ia() {
2902
2902
  a === "SINGLE" ? i.answer ? [i.answer] : [] : a === "MULTI" ? (i.answer ?? "").split(",").filter(Boolean) : []
2903
2903
  ), G(!0);
2904
2904
  }, Q = () => (u == null ? void 0 : u.type) === "FREE" ? null : JSON.stringify(
2905
- _.filter((i) => i.label.trim()).map((i) => ({ key: i.key, label: i.label.trim() }))
2905
+ S.filter((i) => i.label.trim()).map((i) => ({ key: i.key, label: i.label.trim() }))
2906
2906
  ), N = async () => {
2907
2907
  if (!u) return;
2908
2908
  if (!u.title.trim()) {
2909
2909
  P.warning("请填写题干");
2910
2910
  return;
2911
2911
  }
2912
- const i = _.filter((a) => a.label.trim());
2912
+ const i = S.filter((a) => a.label.trim());
2913
2913
  if (u.type !== "FREE") {
2914
2914
  if (i.length < 2) {
2915
2915
  P.warning("客观题至少需要两个非空选项");
@@ -2926,7 +2926,7 @@ function ia() {
2926
2926
  }
2927
2927
  O(!0);
2928
2928
  try {
2929
- await kl(
2929
+ await _l(
2930
2930
  {
2931
2931
  ...u,
2932
2932
  title: u.title.trim(),
@@ -2940,7 +2940,7 @@ function ia() {
2940
2940
  } finally {
2941
2941
  O(!1);
2942
2942
  }
2943
- }, S = [
2943
+ }, k = [
2944
2944
  { title: "ID", dataIndex: "id", width: 84, ellipsis: !0 },
2945
2945
  {
2946
2946
  title: "题干",
@@ -2959,7 +2959,7 @@ function ia() {
2959
2959
  dataIndex: "type",
2960
2960
  width: 76,
2961
2961
  render: (i) => {
2962
- const a = Me[i] ?? Me.SINGLE;
2962
+ const a = Be[i] ?? Be.SINGLE;
2963
2963
  return /* @__PURE__ */ e(H, { color: a.color, children: a.label });
2964
2964
  }
2965
2965
  },
@@ -2995,7 +2995,7 @@ function ia() {
2995
2995
  disabled: !!((R = a.paperRefs) != null && R.length),
2996
2996
  onConfirm: async () => {
2997
2997
  try {
2998
- await Nl(a.id, l), P.success("已删除"), w();
2998
+ await Sl(a.id, l), P.success("已删除"), w();
2999
2999
  } catch {
3000
3000
  }
3001
3001
  },
@@ -3033,7 +3033,7 @@ function ia() {
3033
3033
  prefix: /* @__PURE__ */ e(Ie, {}),
3034
3034
  placeholder: "搜索题干",
3035
3035
  style: { width: 180 },
3036
- value: E,
3036
+ value: D,
3037
3037
  onChange: (i) => z(i.target.value)
3038
3038
  }
3039
3039
  ),
@@ -3044,8 +3044,8 @@ function ia() {
3044
3044
  placeholder: "题型",
3045
3045
  style: { width: 110 },
3046
3046
  value: c || void 0,
3047
- onChange: (i) => A(i ?? ""),
3048
- options: Object.entries(Me).map(([i, a]) => ({
3047
+ onChange: (i) => _(i ?? ""),
3048
+ options: Object.entries(Be).map(([i, a]) => ({
3049
3049
  value: i,
3050
3050
  label: a.label
3051
3051
  }))
@@ -3068,13 +3068,13 @@ function ia() {
3068
3068
  ] })
3069
3069
  ] }),
3070
3070
  /* @__PURE__ */ e("div", { className: r.tableCard, children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
3071
- _e,
3071
+ Se,
3072
3072
  {
3073
3073
  rows: n,
3074
3074
  rowKey: "id",
3075
3075
  tableLayout: "fixed",
3076
- loading: x,
3077
- columns: S,
3076
+ loading: I,
3077
+ columns: k,
3078
3078
  emptyTitle: "暂无题目",
3079
3079
  emptyDescription: "点右上「新建题目」维护题库。",
3080
3080
  cardProps: { variant: "borderless", styles: { body: { padding: 0 } } }
@@ -3084,7 +3084,7 @@ function ia() {
3084
3084
  ve,
3085
3085
  {
3086
3086
  title: u != null && u.id ? `编辑题目 #${u.id}` : "新建题目",
3087
- open: I,
3087
+ open: x,
3088
3088
  width: 640,
3089
3089
  confirmLoading: Z,
3090
3090
  okText: "保存",
@@ -3102,7 +3102,7 @@ function ia() {
3102
3102
  {
3103
3103
  value: u.type,
3104
3104
  onChange: (i) => v((a) => a && { ...a, type: i.target.value }),
3105
- options: Object.entries(Me).map(([i, a]) => ({
3105
+ options: Object.entries(Be).map(([i, a]) => ({
3106
3106
  value: i,
3107
3107
  label: a.label
3108
3108
  }))
@@ -3144,7 +3144,7 @@ function ia() {
3144
3144
  {
3145
3145
  style: { display: "flex", flexDirection: "column", gap: 6 },
3146
3146
  children: [
3147
- _.map((i, a) => /* @__PURE__ */ t(qe, { align: "center", children: [
3147
+ S.map((i, a) => /* @__PURE__ */ t(Ke, { align: "center", children: [
3148
3148
  u.type === "SINGLE" ? /* @__PURE__ */ e(
3149
3149
  pt,
3150
3150
  {
@@ -3153,7 +3153,7 @@ function ia() {
3153
3153
  children: i.key
3154
3154
  }
3155
3155
  ) : /* @__PURE__ */ e(
3156
- ra,
3156
+ sa,
3157
3157
  {
3158
3158
  checked: j.includes(i.key),
3159
3159
  onChange: (p) => J(
@@ -3176,7 +3176,7 @@ function ia() {
3176
3176
  }
3177
3177
  )
3178
3178
  ] }, i.key + a)),
3179
- /* @__PURE__ */ t(qe, { children: [
3179
+ /* @__PURE__ */ t(Ke, { children: [
3180
3180
  /* @__PURE__ */ e(
3181
3181
  M,
3182
3182
  {
@@ -3191,7 +3191,7 @@ function ia() {
3191
3191
  children: "+ 加选项"
3192
3192
  }
3193
3193
  ),
3194
- _.length > 4 ? /* @__PURE__ */ e(
3194
+ S.length > 4 ? /* @__PURE__ */ e(
3195
3195
  M,
3196
3196
  {
3197
3197
  size: "small",
@@ -3235,10 +3235,10 @@ function ia() {
3235
3235
  )
3236
3236
  ] });
3237
3237
  }
3238
- function ra({
3238
+ function sa({
3239
3239
  checked: l,
3240
3240
  onChange: n,
3241
- label: D
3241
+ label: E
3242
3242
  }) {
3243
3243
  return /* @__PURE__ */ t(
3244
3244
  "label",
@@ -3255,20 +3255,20 @@ function ra({
3255
3255
  {
3256
3256
  type: "checkbox",
3257
3257
  checked: l,
3258
- onChange: (k) => n(k.target.checked)
3258
+ onChange: (A) => n(A.target.checked)
3259
3259
  }
3260
3260
  ),
3261
- /* @__PURE__ */ e("span", { children: D })
3261
+ /* @__PURE__ */ e("span", { children: E })
3262
3262
  ]
3263
3263
  }
3264
3264
  );
3265
3265
  }
3266
- function oa() {
3267
- const l = Ce((a) => a.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(!1), [E, z] = o(null), [c, A] = o(!1), [C, T] = o([]), [I, G] = o(null), [u, v] = o([]), [_, y] = o(!1), j = de(async () => {
3266
+ function da() {
3267
+ const l = Ce((a) => a.token), [n, E] = o([]), [A, L] = o(!1), [I, B] = o(!1), [D, z] = o(null), [c, _] = o(!1), [C, T] = o([]), [x, G] = o(null), [u, v] = o([]), [S, y] = o(!1), j = de(async () => {
3268
3268
  L(!0);
3269
3269
  try {
3270
3270
  const a = await ut(l);
3271
- D(a), T(a.map((p) => p.id));
3271
+ E(a), T(a.map((p) => p.id));
3272
3272
  } catch {
3273
3273
  } finally {
3274
3274
  L(!1);
@@ -3277,12 +3277,12 @@ function oa() {
3277
3277
  ce(() => {
3278
3278
  j();
3279
3279
  }, [j]), ce(() => {
3280
- if (I == null) {
3280
+ if (x == null) {
3281
3281
  v([]);
3282
3282
  return;
3283
3283
  }
3284
3284
  let a = !1;
3285
- return y(!0), ct("", Number(I), "", l).then((p) => {
3285
+ return y(!0), ct("", Number(x), "", l).then((p) => {
3286
3286
  a || v(p);
3287
3287
  }).catch(() => {
3288
3288
  }).finally(() => {
@@ -3290,8 +3290,8 @@ function oa() {
3290
3290
  }), () => {
3291
3291
  a = !0;
3292
3292
  };
3293
- }, [I, l]);
3294
- const J = pe(() => Ht(n), [n]), Z = n.find((a) => String(a.id) === String(I)) ?? null, O = de(
3293
+ }, [x, l]);
3294
+ const J = ue(() => Ht(n), [n]), Z = n.find((a) => String(a.id) === String(x)) ?? null, O = de(
3295
3295
  (a) => {
3296
3296
  const p = /* @__PURE__ */ new Set([a]);
3297
3297
  let R = !0;
@@ -3324,9 +3324,9 @@ function oa() {
3324
3324
  z({ name: "", parentId: a, description: "" }), B(!0);
3325
3325
  }, h = (a) => {
3326
3326
  z({ ...a }), B(!0);
3327
- }, m = pe(() => {
3328
- if (!(E != null && E.id)) return ht(J);
3329
- const a = O(E.id), p = (R) => R.filter((U) => !a.has(U.id)).map((U) => {
3327
+ }, m = ue(() => {
3328
+ if (!(D != null && D.id)) return ht(J);
3329
+ const a = O(D.id), p = (R) => R.filter((U) => !a.has(U.id)).map((U) => {
3330
3330
  var Y;
3331
3331
  return {
3332
3332
  value: U.id,
@@ -3335,32 +3335,32 @@ function oa() {
3335
3335
  };
3336
3336
  });
3337
3337
  return p(J);
3338
- }, [J, E, O]), ee = (a) => {
3338
+ }, [J, D, O]), ee = (a) => {
3339
3339
  var U;
3340
3340
  const p = ((U = a.children) == null ? void 0 : U.length) ?? 0, R = (a.questionCount ?? 0) > 0 || p > 0;
3341
- return /* @__PURE__ */ t("div", { className: he.groupRow, children: [
3341
+ return /* @__PURE__ */ t("div", { className: me.groupRow, children: [
3342
3342
  /* @__PURE__ */ e(
3343
3343
  "span",
3344
3344
  {
3345
- className: he.groupRowName,
3345
+ className: me.groupRowName,
3346
3346
  title: a.description || a.name,
3347
3347
  children: a.name
3348
3348
  }
3349
3349
  ),
3350
- /* @__PURE__ */ t("span", { className: he.groupRowMeta, children: [
3350
+ /* @__PURE__ */ t("span", { className: me.groupRowMeta, children: [
3351
3351
  a.questionCount ? `${a.questionCount} 题` : "",
3352
3352
  p > 0 ? `${p} 子节点` : ""
3353
3353
  ] }),
3354
3354
  /* @__PURE__ */ t(
3355
3355
  "span",
3356
3356
  {
3357
- className: he.groupRowActions,
3357
+ className: me.groupRowActions,
3358
3358
  onClick: (Y) => Y.stopPropagation(),
3359
3359
  children: [
3360
3360
  /* @__PURE__ */ e(oe, { title: "编辑", children: /* @__PURE__ */ e(
3361
3361
  ot,
3362
3362
  {
3363
- className: he.actIcon,
3363
+ className: me.actIcon,
3364
3364
  onClick: () => h(a)
3365
3365
  }
3366
3366
  ) }),
@@ -3374,14 +3374,14 @@ function oa() {
3374
3374
  disabled: R,
3375
3375
  onConfirm: async () => {
3376
3376
  try {
3377
- await El(a.id, l), P.success("已删除"), j();
3377
+ await Rl(a.id, l), P.success("已删除"), j();
3378
3378
  } catch {
3379
3379
  }
3380
3380
  },
3381
3381
  children: /* @__PURE__ */ e(
3382
- Ke,
3382
+ He,
3383
3383
  {
3384
- className: R ? he.actIconDisabled : he.actIcon
3384
+ className: R ? me.actIconDisabled : me.actIcon
3385
3385
  }
3386
3386
  )
3387
3387
  }
@@ -3397,21 +3397,21 @@ function oa() {
3397
3397
  title: ee(a),
3398
3398
  children: (p = a.children) != null && p.length ? a.children.map(Q) : void 0
3399
3399
  };
3400
- }, N = J.map(Q), S = async () => {
3401
- if (E) {
3402
- if (!E.name.trim()) {
3400
+ }, N = J.map(Q), k = async () => {
3401
+ if (D) {
3402
+ if (!D.name.trim()) {
3403
3403
  P.warning("请填写节点名称");
3404
3404
  return;
3405
3405
  }
3406
- A(!0);
3406
+ _(!0);
3407
3407
  try {
3408
3408
  await ft(
3409
- { ...E, name: E.name.trim() },
3409
+ { ...D, name: D.name.trim() },
3410
3410
  l
3411
3411
  ), P.success("保存成功"), B(!1), z(null), j();
3412
3412
  } catch {
3413
3413
  } finally {
3414
- A(!1);
3414
+ _(!1);
3415
3415
  }
3416
3416
  }
3417
3417
  }, i = [
@@ -3426,7 +3426,7 @@ function oa() {
3426
3426
  dataIndex: "type",
3427
3427
  width: 72,
3428
3428
  render: (a) => {
3429
- const p = Me[a] ?? { label: a, color: "default" };
3429
+ const p = Be[a] ?? { label: a, color: "default" };
3430
3430
  return /* @__PURE__ */ e(H, { color: p.color, children: p.label });
3431
3431
  }
3432
3432
  },
@@ -3465,10 +3465,10 @@ function oa() {
3465
3465
  ] }),
3466
3466
  /* @__PURE__ */ e("div", { className: r.pageActions, children: /* @__PURE__ */ e(M, { icon: /* @__PURE__ */ e(Te, {}), onClick: () => void j(), children: "刷新" }) })
3467
3467
  ] }),
3468
- /* @__PURE__ */ t("div", { className: he.gBody, children: [
3469
- /* @__PURE__ */ t("div", { className: he.gTree, children: [
3470
- /* @__PURE__ */ t("div", { className: he.gTreeHead, children: [
3471
- /* @__PURE__ */ e("span", { className: he.gTreeTip, children: "点击节点查看题目;选中后点右上角「+」在其下新建子节点;拖动调整层级;hover 可编辑 / 删除。" }),
3468
+ /* @__PURE__ */ t("div", { className: me.gBody, children: [
3469
+ /* @__PURE__ */ t("div", { className: me.gTree, children: [
3470
+ /* @__PURE__ */ t("div", { className: me.gTreeHead, children: [
3471
+ /* @__PURE__ */ e("span", { className: me.gTreeTip, children: "点击节点查看题目;选中后点右上角「+」在其下新建子节点;拖动调整层级;hover 可编辑 / 删除。" }),
3472
3472
  /* @__PURE__ */ e(
3473
3473
  oe,
3474
3474
  {
@@ -3485,10 +3485,10 @@ function oa() {
3485
3485
  }
3486
3486
  )
3487
3487
  ] }),
3488
- /* @__PURE__ */ e("div", { className: he.gTreeScroll, children: k ? /* @__PURE__ */ e("div", { style: { padding: 48, textAlign: "center" }, children: /* @__PURE__ */ e(Ze, {}) }) : J.length === 0 ? /* @__PURE__ */ e(
3489
- He,
3488
+ /* @__PURE__ */ e("div", { className: me.gTreeScroll, children: A ? /* @__PURE__ */ e("div", { style: { padding: 48, textAlign: "center" }, children: /* @__PURE__ */ e(Ze, {}) }) : J.length === 0 ? /* @__PURE__ */ e(
3489
+ We,
3490
3490
  {
3491
- className: he.groupEmpty,
3491
+ className: me.groupEmpty,
3492
3492
  description: "暂无组别,点击上方「+」创建"
3493
3493
  }
3494
3494
  ) : /* @__PURE__ */ e(
@@ -3498,31 +3498,31 @@ function oa() {
3498
3498
  draggable: !0,
3499
3499
  showLine: { showLeafIcon: !1 },
3500
3500
  showIcon: !0,
3501
- icon: /* @__PURE__ */ e(We, {}),
3501
+ icon: /* @__PURE__ */ e(je, {}),
3502
3502
  expandedKeys: C,
3503
3503
  onExpand: (a) => T(a),
3504
- selectedKeys: I != null ? [I] : [],
3504
+ selectedKeys: x != null ? [x] : [],
3505
3505
  onSelect: (a) => G(a.length ? a[0] : null),
3506
3506
  treeData: N,
3507
3507
  onDrop: w
3508
3508
  }
3509
3509
  ) })
3510
3510
  ] }),
3511
- /* @__PURE__ */ e("div", { className: [r.tableCard, he.gListSide].join(" "), children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: Z ? /* @__PURE__ */ t(we, { children: [
3512
- /* @__PURE__ */ t("div", { className: he.gListHead, children: [
3513
- /* @__PURE__ */ e("span", { className: he.gListTitle, children: Z.name }),
3514
- /* @__PURE__ */ t("span", { className: he.gListMeta, children: [
3515
- _ ? "加载中…" : `${u.length} 道题`,
3511
+ /* @__PURE__ */ e("div", { className: [r.tableCard, me.gListSide].join(" "), children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: Z ? /* @__PURE__ */ t(we, { children: [
3512
+ /* @__PURE__ */ t("div", { className: me.gListHead, children: [
3513
+ /* @__PURE__ */ e("span", { className: me.gListTitle, children: Z.name }),
3514
+ /* @__PURE__ */ t("span", { className: me.gListMeta, children: [
3515
+ S ? "加载中…" : `${u.length} 道题`,
3516
3516
  " · 建题/编辑请到「题目」tab",
3517
3517
  Z.description ? ` · ${Z.description}` : ""
3518
3518
  ] })
3519
3519
  ] }),
3520
3520
  /* @__PURE__ */ e(
3521
- _e,
3521
+ Se,
3522
3522
  {
3523
3523
  rows: u,
3524
3524
  rowKey: "id",
3525
- loading: _,
3525
+ loading: S,
3526
3526
  columns: i,
3527
3527
  emptyTitle: "该组别暂无题目",
3528
3528
  emptyDescription: "到「题目」tab 新建题目时选择此组别。",
@@ -3530,10 +3530,10 @@ function oa() {
3530
3530
  }
3531
3531
  )
3532
3532
  ] }) : /* @__PURE__ */ e(
3533
- He,
3533
+ We,
3534
3534
  {
3535
3535
  style: { marginTop: 96 },
3536
- image: He.PRESENTED_IMAGE_SIMPLE,
3536
+ image: We.PRESENTED_IMAGE_SIMPLE,
3537
3537
  description: "点击左侧组别节点,查看该组别下的题目"
3538
3538
  }
3539
3539
  ) }) })
@@ -3541,23 +3541,23 @@ function oa() {
3541
3541
  /* @__PURE__ */ e(
3542
3542
  ve,
3543
3543
  {
3544
- title: E != null && E.id ? `编辑组别 #${E.id}` : "新建题目组别",
3545
- open: x,
3544
+ title: D != null && D.id ? `编辑组别 #${D.id}` : "新建题目组别",
3545
+ open: I,
3546
3546
  width: 480,
3547
3547
  confirmLoading: c,
3548
3548
  okText: "保存",
3549
3549
  cancelText: "取消",
3550
- onOk: () => void S(),
3550
+ onOk: () => void k(),
3551
3551
  onCancel: () => {
3552
3552
  B(!1), z(null);
3553
3553
  },
3554
- children: E ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
3554
+ children: D ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
3555
3555
  /* @__PURE__ */ t("div", { children: [
3556
3556
  /* @__PURE__ */ e("div", { style: { marginBottom: 4 }, children: "节点名称 *" }),
3557
3557
  /* @__PURE__ */ e(
3558
3558
  K,
3559
3559
  {
3560
- value: E.name,
3560
+ value: D.name,
3561
3561
  placeholder: "如:安全合规 / 研发规范 / 新人培训",
3562
3562
  onChange: (a) => z((p) => p && { ...p, name: a.target.value })
3563
3563
  }
@@ -3570,7 +3570,7 @@ function oa() {
3570
3570
  {
3571
3571
  allowClear: !0,
3572
3572
  style: { width: "100%" },
3573
- value: E.parentId ?? void 0,
3573
+ value: D.parentId ?? void 0,
3574
3574
  onChange: (a) => z((p) => p && { ...p, parentId: a ?? null }),
3575
3575
  treeData: m,
3576
3576
  treeDefaultExpandAll: !0,
@@ -3584,7 +3584,7 @@ function oa() {
3584
3584
  K.TextArea,
3585
3585
  {
3586
3586
  rows: 2,
3587
- value: E.description ?? "",
3587
+ value: D.description ?? "",
3588
3588
  onChange: (a) => z(
3589
3589
  (p) => p && { ...p, description: a.target.value }
3590
3590
  )
@@ -3613,21 +3613,21 @@ function kt(l) {
3613
3613
  return 0;
3614
3614
  }
3615
3615
  }
3616
- function sa() {
3617
- const l = Ce((N) => N.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, z] = o(null), [c, A] = o(!1), [C, T] = o(!1), [I, G] = o(null), [u, v] = o([]), [_, y] = o([]), [j, J] = o([]), [Z, O] = o([]), w = de(async () => {
3616
+ function ca() {
3617
+ const l = Ce((N) => N.token), [n, E] = o([]), [A, L] = o(!1), [I, B] = o(""), [D, z] = o(null), [c, _] = o(!1), [C, T] = o(!1), [x, G] = o(null), [u, v] = o([]), [S, y] = o([]), [j, J] = o([]), [Z, O] = o([]), w = de(async () => {
3618
3618
  L(!0);
3619
3619
  try {
3620
- D(await Dl(x, E, l));
3620
+ E(await Ll(I, D, l));
3621
3621
  } catch {
3622
3622
  } finally {
3623
3623
  L(!1);
3624
3624
  }
3625
- }, [x, E, l]);
3625
+ }, [I, D, l]);
3626
3626
  ce(() => {
3627
3627
  w();
3628
3628
  }, [w]);
3629
3629
  const F = async (N) => {
3630
- let S = N ? { ...N } : {
3630
+ let k = N ? { ...N } : {
3631
3631
  title: "",
3632
3632
  renderTemplate: "STAIRS",
3633
3633
  unlockRule: "SEQUENTIAL",
@@ -3635,29 +3635,29 @@ function sa() {
3635
3635
  }, i = [], a = [];
3636
3636
  if (N != null && N.id)
3637
3637
  try {
3638
- const p = await Ll(N.id, l);
3639
- S = p, i = (p.courses ?? []).map((R) => ({
3638
+ const p = await Pl(N.id, l);
3639
+ k = p, i = (p.courses ?? []).map((R) => ({
3640
3640
  ...R,
3641
3641
  _key: `c-${R.courseId}`
3642
3642
  }));
3643
3643
  } catch {
3644
3644
  }
3645
- if (S.rewardIds)
3645
+ if (k.rewardIds)
3646
3646
  try {
3647
- a = JSON.parse(S.rewardIds);
3647
+ a = JSON.parse(k.rewardIds);
3648
3648
  } catch {
3649
3649
  a = [];
3650
3650
  }
3651
- G(S), v(i), y(a), A(!0), Promise.all([
3651
+ G(k), v(i), y(a), _(!0), Promise.all([
3652
3652
  Mt("", 1, l),
3653
3653
  dt("", l)
3654
3654
  ]).then(([p, R]) => {
3655
3655
  J(p), O(R);
3656
3656
  }).catch(() => {
3657
3657
  });
3658
- }, h = (N, S) => {
3658
+ }, h = (N, k) => {
3659
3659
  v((i) => {
3660
- const a = [...i], p = N + S;
3660
+ const a = [...i], p = N + k;
3661
3661
  return p < 0 || p >= a.length ? i : ([a[N], a[p]] = [a[p], a[N]], a.map((R, U) => ({ ...R, sortOrder: U })));
3662
3662
  });
3663
3663
  }, m = () => {
@@ -3671,8 +3671,8 @@ function sa() {
3671
3671
  }
3672
3672
  ]);
3673
3673
  }, ee = async () => {
3674
- if (I) {
3675
- if (!I.title.trim()) {
3674
+ if (x) {
3675
+ if (!x.title.trim()) {
3676
3676
  P.warning("请填写路径标题");
3677
3677
  return;
3678
3678
  }
@@ -3680,7 +3680,7 @@ function sa() {
3680
3680
  P.warning("存在未选择课程的编排行");
3681
3681
  return;
3682
3682
  }
3683
- if (I.status === 1 && u.length === 0) {
3683
+ if (x.status === 1 && u.length === 0) {
3684
3684
  P.warning("上线路径至少需要编排一门课程");
3685
3685
  return;
3686
3686
  }
@@ -3688,17 +3688,17 @@ function sa() {
3688
3688
  try {
3689
3689
  await wt(
3690
3690
  {
3691
- ...I,
3692
- title: I.title.trim(),
3693
- rewardIds: JSON.stringify(_),
3694
- courses: u.map((N, S) => ({
3691
+ ...x,
3692
+ title: x.title.trim(),
3693
+ rewardIds: JSON.stringify(S),
3694
+ courses: u.map((N, k) => ({
3695
3695
  courseId: N.courseId,
3696
- sortOrder: S,
3696
+ sortOrder: k,
3697
3697
  stage: N.stage ?? 1
3698
3698
  }))
3699
3699
  },
3700
3700
  l
3701
- ), P.success("保存成功"), A(!1), G(null), w();
3701
+ ), P.success("保存成功"), _(!1), G(null), w();
3702
3702
  } catch {
3703
3703
  } finally {
3704
3704
  T(!1);
@@ -3710,20 +3710,20 @@ function sa() {
3710
3710
  title: "路径标题",
3711
3711
  dataIndex: "title",
3712
3712
  width: 260,
3713
- render: (N, S) => {
3714
- const i = tt[S.renderTemplate] ?? tt.STAIRS, a = lt[S.unlockRule ?? ""] ?? lt.SEQUENTIAL;
3713
+ render: (N, k) => {
3714
+ const i = tt[k.renderTemplate] ?? tt.STAIRS, a = lt[k.unlockRule ?? ""] ?? lt.SEQUENTIAL;
3715
3715
  return /* @__PURE__ */ t("div", { className: r.nameCell, children: [
3716
3716
  /* @__PURE__ */ t("div", { children: [
3717
3717
  N,
3718
3718
  " ",
3719
3719
  /* @__PURE__ */ e(H, { color: i.color, children: i.label }),
3720
3720
  /* @__PURE__ */ e(H, { color: a.color, children: a.label }),
3721
- S.status === 1 ? /* @__PURE__ */ e(H, { color: "green", children: "上线" }) : S.status === 2 ? /* @__PURE__ */ e(H, { children: "下线" }) : /* @__PURE__ */ e(H, { color: "orange", children: "草稿" })
3721
+ k.status === 1 ? /* @__PURE__ */ e(H, { color: "green", children: "上线" }) : k.status === 2 ? /* @__PURE__ */ e(H, { children: "下线" }) : /* @__PURE__ */ e(H, { color: "orange", children: "草稿" })
3722
3722
  ] }),
3723
3723
  /* @__PURE__ */ t("div", { className: r.descCell, children: [
3724
- S.courseCount ?? 0,
3724
+ k.courseCount ?? 0,
3725
3725
  " 门课程",
3726
- kt(S.rewardIds) > 0 ? ` · 完成发奖 ${kt(S.rewardIds)} 项` : ""
3726
+ kt(k.rewardIds) > 0 ? ` · 完成发奖 ${kt(k.rewardIds)} 项` : ""
3727
3727
  ] })
3728
3728
  ] });
3729
3729
  }
@@ -3744,13 +3744,13 @@ function sa() {
3744
3744
  title: "操作",
3745
3745
  key: "actions",
3746
3746
  width: 140,
3747
- render: (N, S) => /* @__PURE__ */ t("div", { className: r.actionGroup, children: [
3747
+ render: (N, k) => /* @__PURE__ */ t("div", { className: r.actionGroup, children: [
3748
3748
  /* @__PURE__ */ e(
3749
3749
  M,
3750
3750
  {
3751
3751
  type: "link",
3752
3752
  size: "small",
3753
- onClick: () => void F(S),
3753
+ onClick: () => void F(k),
3754
3754
  children: "编辑"
3755
3755
  }
3756
3756
  ),
@@ -3763,26 +3763,26 @@ function sa() {
3763
3763
  try {
3764
3764
  await wt(
3765
3765
  // 后端 savePath 要求 title/renderTemplate 非空,状态切换需携全量字段
3766
- { ...S, status: S.status === 1 ? 2 : 1 },
3766
+ { ...k, status: k.status === 1 ? 2 : 1 },
3767
3767
  l
3768
- ), P.success(S.status === 1 ? "已下线" : "已上线"), w();
3768
+ ), P.success(k.status === 1 ? "已下线" : "已上线"), w();
3769
3769
  } catch {
3770
3770
  }
3771
3771
  },
3772
- children: S.status === 1 ? "下线" : "上线"
3772
+ children: k.status === 1 ? "下线" : "上线"
3773
3773
  }
3774
3774
  ),
3775
3775
  /* @__PURE__ */ e(
3776
3776
  Ne,
3777
3777
  {
3778
- title: (S.joinCount ?? 0) > 0 ? `已有 ${S.joinCount} 名学员加入该路径,无法删除(可下线)` : "确认删除该路径?",
3778
+ title: (k.joinCount ?? 0) > 0 ? `已有 ${k.joinCount} 名学员加入该路径,无法删除(可下线)` : "确认删除该路径?",
3779
3779
  okText: "删除",
3780
3780
  okButtonProps: { danger: !0 },
3781
3781
  cancelText: "取消",
3782
- disabled: (S.joinCount ?? 0) > 0,
3782
+ disabled: (k.joinCount ?? 0) > 0,
3783
3783
  onConfirm: async () => {
3784
3784
  try {
3785
- await Rl(S.id, l), P.success("已删除"), w();
3785
+ await $l(k.id, l), P.success("已删除"), w();
3786
3786
  } catch {
3787
3787
  }
3788
3788
  },
@@ -3792,7 +3792,7 @@ function sa() {
3792
3792
  type: "link",
3793
3793
  size: "small",
3794
3794
  danger: !0,
3795
- disabled: (S.joinCount ?? 0) > 0,
3795
+ disabled: (k.joinCount ?? 0) > 0,
3796
3796
  children: "删除"
3797
3797
  }
3798
3798
  )
@@ -3819,7 +3819,7 @@ function sa() {
3819
3819
  prefix: /* @__PURE__ */ e(Ie, {}),
3820
3820
  placeholder: "搜索路径",
3821
3821
  style: { width: 180 },
3822
- value: x,
3822
+ value: I,
3823
3823
  onChange: (N) => B(N.target.value)
3824
3824
  }
3825
3825
  ),
@@ -3829,7 +3829,7 @@ function sa() {
3829
3829
  allowClear: !0,
3830
3830
  placeholder: "状态",
3831
3831
  style: { width: 110 },
3832
- value: E ?? void 0,
3832
+ value: D ?? void 0,
3833
3833
  onChange: (N) => z(N ?? null),
3834
3834
  options: [
3835
3835
  { value: 0, label: "草稿" },
@@ -3851,12 +3851,12 @@ function sa() {
3851
3851
  ] })
3852
3852
  ] }),
3853
3853
  /* @__PURE__ */ e("div", { className: r.tableCard, children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
3854
- _e,
3854
+ Se,
3855
3855
  {
3856
3856
  rows: n,
3857
3857
  rowKey: "id",
3858
3858
  tableLayout: "fixed",
3859
- loading: k,
3859
+ loading: A,
3860
3860
  columns: Q,
3861
3861
  emptyTitle: "暂无路径",
3862
3862
  emptyDescription: "先编排好课程,再来组装成长路径。",
@@ -3866,7 +3866,7 @@ function sa() {
3866
3866
  /* @__PURE__ */ e(
3867
3867
  ve,
3868
3868
  {
3869
- title: I != null && I.id ? `编辑路径 #${I.id}` : "新建课程路径",
3869
+ title: x != null && x.id ? `编辑路径 #${x.id}` : "新建课程路径",
3870
3870
  open: c,
3871
3871
  width: 860,
3872
3872
  confirmLoading: C,
@@ -3874,18 +3874,18 @@ function sa() {
3874
3874
  cancelText: "取消",
3875
3875
  onOk: () => void ee(),
3876
3876
  onCancel: () => {
3877
- A(!1), G(null);
3877
+ _(!1), G(null);
3878
3878
  },
3879
- children: I ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
3879
+ children: x ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
3880
3880
  /* @__PURE__ */ t("div", { style: { display: "flex", gap: 12 }, children: [
3881
3881
  /* @__PURE__ */ t("div", { style: { flex: 1 }, children: [
3882
3882
  /* @__PURE__ */ e("div", { style: { marginBottom: 4 }, children: "路径标题 *" }),
3883
3883
  /* @__PURE__ */ e(
3884
3884
  K,
3885
3885
  {
3886
- value: I.title,
3886
+ value: x.title,
3887
3887
  placeholder: "如:新员工 90 天成长计划",
3888
- onChange: (N) => G((S) => S && { ...S, title: N.target.value })
3888
+ onChange: (N) => G((k) => k && { ...k, title: N.target.value })
3889
3889
  }
3890
3890
  )
3891
3891
  ] }),
@@ -3895,8 +3895,8 @@ function sa() {
3895
3895
  ae,
3896
3896
  {
3897
3897
  style: { width: "100%" },
3898
- value: I.status ?? 0,
3899
- onChange: (N) => G((S) => S && { ...S, status: N }),
3898
+ value: x.status ?? 0,
3899
+ onChange: (N) => G((k) => k && { ...k, status: N }),
3900
3900
  options: [
3901
3901
  { value: 0, label: "草稿" },
3902
3902
  { value: 1, label: "上线" },
@@ -3913,11 +3913,11 @@ function sa() {
3913
3913
  ae,
3914
3914
  {
3915
3915
  style: { width: "100%" },
3916
- value: I.renderTemplate,
3917
- onChange: (N) => G((S) => S && { ...S, renderTemplate: N }),
3918
- options: Object.entries(tt).map(([N, S]) => ({
3916
+ value: x.renderTemplate,
3917
+ onChange: (N) => G((k) => k && { ...k, renderTemplate: N }),
3918
+ options: Object.entries(tt).map(([N, k]) => ({
3919
3919
  value: N,
3920
- label: S.label
3920
+ label: k.label
3921
3921
  }))
3922
3922
  }
3923
3923
  )
@@ -3928,11 +3928,11 @@ function sa() {
3928
3928
  ae,
3929
3929
  {
3930
3930
  style: { width: "100%" },
3931
- value: I.unlockRule ?? "SEQUENTIAL",
3932
- onChange: (N) => G((S) => S && { ...S, unlockRule: N }),
3933
- options: Object.entries(lt).map(([N, S]) => ({
3931
+ value: x.unlockRule ?? "SEQUENTIAL",
3932
+ onChange: (N) => G((k) => k && { ...k, unlockRule: N }),
3933
+ options: Object.entries(lt).map(([N, k]) => ({
3934
3934
  value: N,
3935
- label: S.label
3935
+ label: k.label
3936
3936
  }))
3937
3937
  }
3938
3938
  )
@@ -3942,25 +3942,25 @@ function sa() {
3942
3942
  /* @__PURE__ */ e(
3943
3943
  K,
3944
3944
  {
3945
- value: I.coverUrl ?? "",
3945
+ value: x.coverUrl ?? "",
3946
3946
  onChange: (N) => G(
3947
- (S) => S && { ...S, coverUrl: N.target.value }
3947
+ (k) => k && { ...k, coverUrl: N.target.value }
3948
3948
  )
3949
3949
  }
3950
3950
  )
3951
3951
  ] })
3952
3952
  ] }),
3953
- I.unlockRule === "STAGE" ? /* @__PURE__ */ e("div", { style: { color: "#888", fontSize: 12 }, children: "阶段解锁:同阶段课程全部完成才解锁下一阶段,请合理设置每门课程的阶段号" }) : null,
3953
+ x.unlockRule === "STAGE" ? /* @__PURE__ */ e("div", { style: { color: "#888", fontSize: 12 }, children: "阶段解锁:同阶段课程全部完成才解锁下一阶段,请合理设置每门课程的阶段号" }) : null,
3954
3954
  /* @__PURE__ */ t("div", { children: [
3955
3955
  /* @__PURE__ */ e("div", { style: { marginBottom: 4 }, children: "路径简介" }),
3956
3956
  /* @__PURE__ */ e(
3957
3957
  K.TextArea,
3958
3958
  {
3959
3959
  rows: 2,
3960
- value: I.description ?? "",
3960
+ value: x.description ?? "",
3961
3961
  placeholder: "学员在路径总览看到的介绍",
3962
3962
  onChange: (N) => G(
3963
- (S) => S && { ...S, description: N.target.value }
3963
+ (k) => k && { ...k, description: N.target.value }
3964
3964
  )
3965
3965
  }
3966
3966
  )
@@ -3973,7 +3973,7 @@ function sa() {
3973
3973
  mode: "multiple",
3974
3974
  style: { width: "100%" },
3975
3975
  placeholder: "选择奖励物料(可多选)",
3976
- value: _,
3976
+ value: S,
3977
3977
  onChange: y,
3978
3978
  options: Z.filter((N) => N.status === 1).map((N) => ({ value: N.id, label: N.name }))
3979
3979
  }
@@ -3982,13 +3982,13 @@ function sa() {
3982
3982
  /* @__PURE__ */ t("div", { children: [
3983
3983
  /* @__PURE__ */ e("div", { style: { marginBottom: 4 }, children: "课程编排(顺序即 sortOrder,加入路径后按解锁规则逐门推进)" }),
3984
3984
  /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
3985
- u.map((N, S) => /* @__PURE__ */ t(
3985
+ u.map((N, k) => /* @__PURE__ */ t(
3986
3986
  "div",
3987
3987
  {
3988
3988
  style: { display: "flex", gap: 8, alignItems: "center" },
3989
3989
  children: [
3990
3990
  /* @__PURE__ */ t("span", { style: { width: 24, color: "#999" }, children: [
3991
- S + 1,
3991
+ k + 1,
3992
3992
  "."
3993
3993
  ] }),
3994
3994
  /* @__PURE__ */ e(
@@ -4011,7 +4011,7 @@ function sa() {
4011
4011
  }
4012
4012
  ),
4013
4013
  /* @__PURE__ */ e(oe, { title: "阶段号(阶段解锁模式用,从 1 开始)", children: /* @__PURE__ */ e(
4014
- ze,
4014
+ Me,
4015
4015
  {
4016
4016
  min: 1,
4017
4017
  max: 9,
@@ -4029,8 +4029,8 @@ function sa() {
4029
4029
  {
4030
4030
  size: "small",
4031
4031
  icon: /* @__PURE__ */ e(_t, {}),
4032
- disabled: S === 0,
4033
- onClick: () => h(S, -1)
4032
+ disabled: k === 0,
4033
+ onClick: () => h(k, -1)
4034
4034
  }
4035
4035
  ),
4036
4036
  /* @__PURE__ */ e(
@@ -4038,8 +4038,8 @@ function sa() {
4038
4038
  {
4039
4039
  size: "small",
4040
4040
  icon: /* @__PURE__ */ e(At, {}),
4041
- disabled: S === u.length - 1,
4042
- onClick: () => h(S, 1)
4041
+ disabled: k === u.length - 1,
4042
+ onClick: () => h(k, 1)
4043
4043
  }
4044
4044
  ),
4045
4045
  /* @__PURE__ */ e(
@@ -4047,7 +4047,7 @@ function sa() {
4047
4047
  {
4048
4048
  size: "small",
4049
4049
  danger: !0,
4050
- icon: /* @__PURE__ */ e(Ke, {}),
4050
+ icon: /* @__PURE__ */ e(He, {}),
4051
4051
  onClick: () => v(
4052
4052
  (i) => i.filter((a) => a._key !== N._key)
4053
4053
  )
@@ -4075,18 +4075,18 @@ function sa() {
4075
4075
  )
4076
4076
  ] });
4077
4077
  }
4078
- const Qe = {
4078
+ const Ve = {
4079
4079
  BADGE: { label: "徽章", color: "gold" },
4080
4080
  RESOURCE_PACK: { label: "资源包", color: "cyan" }
4081
4081
  }, nt = {
4082
4082
  0: { label: "未兑换", color: "default" },
4083
4083
  1: { label: "申请中", color: "processing" },
4084
4084
  2: { label: "已兑换", color: "success" }
4085
- }, da = {
4085
+ }, ua = {
4086
4086
  COURSE: "完成课程",
4087
4087
  PATH: "完成路径"
4088
4088
  };
4089
- function ca() {
4089
+ function ha() {
4090
4090
  const [l, n] = o("rewards");
4091
4091
  return /* @__PURE__ */ t("div", { className: r.scenarioPage, children: [
4092
4092
  /* @__PURE__ */ e(
@@ -4101,23 +4101,23 @@ function ca() {
4101
4101
  ]
4102
4102
  }
4103
4103
  ),
4104
- l === "rewards" && /* @__PURE__ */ e(ua, {}),
4105
- l === "grants" && /* @__PURE__ */ e(ha, {})
4104
+ l === "rewards" && /* @__PURE__ */ e(ma, {}),
4105
+ l === "grants" && /* @__PURE__ */ e(pa, {})
4106
4106
  ] });
4107
4107
  }
4108
- function ua() {
4109
- const l = Ce((v) => v.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, z] = o(!1), [c, A] = o(null), [C, T] = o(!1), I = de(async () => {
4108
+ function ma() {
4109
+ const l = Ce((v) => v.token), [n, E] = o([]), [A, L] = o(!1), [I, B] = o(""), [D, z] = o(!1), [c, _] = o(null), [C, T] = o(!1), x = de(async () => {
4110
4110
  L(!0);
4111
4111
  try {
4112
- D(await dt(x, l));
4112
+ E(await dt(I, l));
4113
4113
  } catch {
4114
4114
  } finally {
4115
4115
  L(!1);
4116
4116
  }
4117
- }, [x, l]);
4117
+ }, [I, l]);
4118
4118
  ce(() => {
4119
- I();
4120
- }, [I]);
4119
+ x();
4120
+ }, [x]);
4121
4121
  const G = async () => {
4122
4122
  if (c) {
4123
4123
  if (!c.name.trim()) {
@@ -4126,7 +4126,7 @@ function ua() {
4126
4126
  }
4127
4127
  T(!0);
4128
4128
  try {
4129
- await Ol(c, l), P.success("保存成功"), z(!1), A(null), I();
4129
+ await Ml(c, l), P.success("保存成功"), z(!1), _(null), x();
4130
4130
  } catch {
4131
4131
  } finally {
4132
4132
  T(!1);
@@ -4138,12 +4138,12 @@ function ua() {
4138
4138
  title: "奖励名称",
4139
4139
  dataIndex: "name",
4140
4140
  width: 260,
4141
- render: (v, _) => /* @__PURE__ */ t("div", { className: r.nameCell, children: [
4141
+ render: (v, S) => /* @__PURE__ */ t("div", { className: r.nameCell, children: [
4142
4142
  /* @__PURE__ */ t("div", { children: [
4143
- _.iconUrl ? /* @__PURE__ */ e(
4143
+ S.iconUrl ? /* @__PURE__ */ e(
4144
4144
  "img",
4145
4145
  {
4146
- src: _.iconUrl,
4146
+ src: S.iconUrl,
4147
4147
  alt: "",
4148
4148
  style: {
4149
4149
  width: 18,
@@ -4155,7 +4155,7 @@ function ua() {
4155
4155
  ) : null,
4156
4156
  v
4157
4157
  ] }),
4158
- _.description ? /* @__PURE__ */ e("div", { className: r.descCell, children: _.description }) : null
4158
+ S.description ? /* @__PURE__ */ e("div", { className: r.descCell, children: S.description }) : null
4159
4159
  ] })
4160
4160
  },
4161
4161
  {
@@ -4163,8 +4163,8 @@ function ua() {
4163
4163
  dataIndex: "type",
4164
4164
  width: 76,
4165
4165
  render: (v) => {
4166
- const _ = Qe[v] ?? Qe.BADGE;
4167
- return /* @__PURE__ */ e(H, { color: _.color, children: _.label });
4166
+ const S = Ve[v] ?? Ve.BADGE;
4167
+ return /* @__PURE__ */ e(H, { color: S.color, children: S.label });
4168
4168
  }
4169
4169
  },
4170
4170
  {
@@ -4189,14 +4189,14 @@ function ua() {
4189
4189
  title: "操作",
4190
4190
  key: "actions",
4191
4191
  width: 96,
4192
- render: (v, _) => /* @__PURE__ */ t("div", { className: r.actionGroup, children: [
4192
+ render: (v, S) => /* @__PURE__ */ t("div", { className: r.actionGroup, children: [
4193
4193
  /* @__PURE__ */ e(oe, { title: "编辑", children: /* @__PURE__ */ e(
4194
4194
  M,
4195
4195
  {
4196
4196
  type: "link",
4197
4197
  size: "small",
4198
4198
  onClick: () => {
4199
- A({ ..._ }), z(!0);
4199
+ _({ ...S }), z(!0);
4200
4200
  },
4201
4201
  children: "编辑"
4202
4202
  }
@@ -4204,14 +4204,14 @@ function ua() {
4204
4204
  /* @__PURE__ */ e(
4205
4205
  Ne,
4206
4206
  {
4207
- title: (_.grantedCount ?? 0) > 0 ? `该奖励已发放 ${_.grantedCount} 次,无法删除(可停用)` : "确认删除该奖励?",
4207
+ title: (S.grantedCount ?? 0) > 0 ? `该奖励已发放 ${S.grantedCount} 次,无法删除(可停用)` : "确认删除该奖励?",
4208
4208
  okText: "删除",
4209
4209
  okButtonProps: { danger: !0 },
4210
4210
  cancelText: "取消",
4211
- disabled: (_.grantedCount ?? 0) > 0,
4211
+ disabled: (S.grantedCount ?? 0) > 0,
4212
4212
  onConfirm: async () => {
4213
4213
  try {
4214
- await Pl(_.id, l), P.success("已删除"), I();
4214
+ await Bl(S.id, l), P.success("已删除"), x();
4215
4215
  } catch {
4216
4216
  }
4217
4217
  },
@@ -4221,7 +4221,7 @@ function ua() {
4221
4221
  type: "link",
4222
4222
  size: "small",
4223
4223
  danger: !0,
4224
- disabled: (_.grantedCount ?? 0) > 0,
4224
+ disabled: (S.grantedCount ?? 0) > 0,
4225
4225
  children: "删除"
4226
4226
  }
4227
4227
  )
@@ -4248,18 +4248,18 @@ function ua() {
4248
4248
  prefix: /* @__PURE__ */ e(Ie, {}),
4249
4249
  placeholder: "搜索名称",
4250
4250
  style: { width: 180 },
4251
- value: x,
4251
+ value: I,
4252
4252
  onChange: (v) => B(v.target.value)
4253
4253
  }
4254
4254
  ),
4255
- /* @__PURE__ */ e(M, { icon: /* @__PURE__ */ e(Te, {}), onClick: () => void I(), children: "刷新" }),
4255
+ /* @__PURE__ */ e(M, { icon: /* @__PURE__ */ e(Te, {}), onClick: () => void x(), children: "刷新" }),
4256
4256
  /* @__PURE__ */ e(
4257
4257
  M,
4258
4258
  {
4259
4259
  type: "primary",
4260
4260
  icon: /* @__PURE__ */ e(xe, {}),
4261
4261
  onClick: () => {
4262
- A({ name: "", type: "BADGE", status: 1, stock: null }), z(!0);
4262
+ _({ name: "", type: "BADGE", status: 1, stock: null }), z(!0);
4263
4263
  },
4264
4264
  children: "新建奖励"
4265
4265
  }
@@ -4267,12 +4267,12 @@ function ua() {
4267
4267
  ] })
4268
4268
  ] }),
4269
4269
  /* @__PURE__ */ e("div", { className: r.tableCard, children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
4270
- Pe,
4270
+ $e,
4271
4271
  {
4272
4272
  rowKey: "id",
4273
4273
  tableLayout: "fixed",
4274
4274
  size: "small",
4275
- loading: k,
4275
+ loading: A,
4276
4276
  columns: u,
4277
4277
  dataSource: n,
4278
4278
  pagination: { pageSize: 20, showSizeChanger: !1 },
@@ -4283,14 +4283,14 @@ function ua() {
4283
4283
  ve,
4284
4284
  {
4285
4285
  title: c != null && c.id ? `编辑奖励 #${c.id}` : "新建奖励物料",
4286
- open: E,
4286
+ open: D,
4287
4287
  width: 520,
4288
4288
  confirmLoading: C,
4289
4289
  okText: "保存",
4290
4290
  cancelText: "取消",
4291
4291
  onOk: () => void G(),
4292
4292
  onCancel: () => {
4293
- z(!1), A(null);
4293
+ z(!1), _(null);
4294
4294
  },
4295
4295
  children: c ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
4296
4296
  /* @__PURE__ */ t("div", { style: { display: "flex", gap: 12 }, children: [
@@ -4301,7 +4301,7 @@ function ua() {
4301
4301
  {
4302
4302
  value: c.name,
4303
4303
  placeholder: "如:安全培训达人徽章",
4304
- onChange: (v) => A((_) => _ && { ..._, name: v.target.value })
4304
+ onChange: (v) => _((S) => S && { ...S, name: v.target.value })
4305
4305
  }
4306
4306
  )
4307
4307
  ] }),
@@ -4312,11 +4312,11 @@ function ua() {
4312
4312
  {
4313
4313
  style: { width: "100%" },
4314
4314
  value: c.type,
4315
- onChange: (v) => A((_) => _ && { ..._, type: v }),
4316
- options: Object.entries(Qe).map(
4317
- ([v, _]) => ({
4315
+ onChange: (v) => _((S) => S && { ...S, type: v }),
4316
+ options: Object.entries(Ve).map(
4317
+ ([v, S]) => ({
4318
4318
  value: v,
4319
- label: _.label
4319
+ label: S.label
4320
4320
  })
4321
4321
  )
4322
4322
  }
@@ -4329,7 +4329,7 @@ function ua() {
4329
4329
  K,
4330
4330
  {
4331
4331
  value: c.iconUrl ?? "",
4332
- onChange: (v) => A((_) => _ && { ..._, iconUrl: v.target.value })
4332
+ onChange: (v) => _((S) => S && { ...S, iconUrl: v.target.value })
4333
4333
  }
4334
4334
  )
4335
4335
  ] }),
@@ -4340,8 +4340,8 @@ function ua() {
4340
4340
  {
4341
4341
  rows: 2,
4342
4342
  value: c.description ?? "",
4343
- onChange: (v) => A(
4344
- (_) => _ && { ..._, description: v.target.value }
4343
+ onChange: (v) => _(
4344
+ (S) => S && { ...S, description: v.target.value }
4345
4345
  )
4346
4346
  }
4347
4347
  )
@@ -4354,8 +4354,8 @@ function ua() {
4354
4354
  rows: 2,
4355
4355
  value: c.redeemRule ?? "",
4356
4356
  placeholder: "如:凭兑换码联系管理员领取周边礼包",
4357
- onChange: (v) => A(
4358
- (_) => _ && { ..._, redeemRule: v.target.value }
4357
+ onChange: (v) => _(
4358
+ (S) => S && { ...S, redeemRule: v.target.value }
4359
4359
  )
4360
4360
  }
4361
4361
  )
@@ -4364,11 +4364,11 @@ function ua() {
4364
4364
  /* @__PURE__ */ t("div", { children: [
4365
4365
  /* @__PURE__ */ e("div", { style: { marginBottom: 4 }, children: "库存(空=不限)" }),
4366
4366
  /* @__PURE__ */ e(
4367
- ze,
4367
+ Me,
4368
4368
  {
4369
4369
  min: 0,
4370
4370
  value: c.stock ?? void 0,
4371
- onChange: (v) => A((_) => _ && { ..._, stock: v ?? null })
4371
+ onChange: (v) => _((S) => S && { ...S, stock: v ?? null })
4372
4372
  }
4373
4373
  )
4374
4374
  ] }),
@@ -4386,7 +4386,7 @@ function ua() {
4386
4386
  Ot,
4387
4387
  {
4388
4388
  checked: c.status === 1,
4389
- onChange: (v) => A((_) => _ && { ..._, status: v ? 1 : 0 })
4389
+ onChange: (v) => _((S) => S && { ...S, status: v ? 1 : 0 })
4390
4390
  }
4391
4391
  ),
4392
4392
  /* @__PURE__ */ e("span", { children: c.status === 1 ? "启用" : "停用" })
@@ -4399,20 +4399,20 @@ function ua() {
4399
4399
  )
4400
4400
  ] });
4401
4401
  }
4402
- function ha() {
4403
- const l = Ce((C) => C.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, z] = o(null), c = de(async () => {
4402
+ function pa() {
4403
+ const l = Ce((C) => C.token), [n, E] = o([]), [A, L] = o(!1), [I, B] = o(""), [D, z] = o(null), c = de(async () => {
4404
4404
  L(!0);
4405
4405
  try {
4406
- D(await $l(E, x, l));
4406
+ E(await Ol(D, I, l));
4407
4407
  } catch {
4408
4408
  } finally {
4409
4409
  L(!1);
4410
4410
  }
4411
- }, [E, x, l]);
4411
+ }, [D, I, l]);
4412
4412
  ce(() => {
4413
4413
  c();
4414
4414
  }, [c]);
4415
- const A = [
4415
+ const _ = [
4416
4416
  { title: "ID", dataIndex: "id", width: 84, ellipsis: !0 },
4417
4417
  {
4418
4418
  title: "学员",
@@ -4428,7 +4428,7 @@ function ha() {
4428
4428
  dataIndex: "rewardName",
4429
4429
  width: 220,
4430
4430
  render: (C, T) => {
4431
- var I, G;
4431
+ var x, G;
4432
4432
  return /* @__PURE__ */ e("div", { className: r.nameCell, children: /* @__PURE__ */ t("div", { children: [
4433
4433
  T.rewardIcon ? /* @__PURE__ */ e(
4434
4434
  "img",
@@ -4445,7 +4445,7 @@ function ha() {
4445
4445
  ) : null,
4446
4446
  C ?? "-",
4447
4447
  " ",
4448
- /* @__PURE__ */ e(H, { color: (I = Qe[T.rewardType ?? "BADGE"]) == null ? void 0 : I.color, children: (G = Qe[T.rewardType ?? "BADGE"]) == null ? void 0 : G.label })
4448
+ /* @__PURE__ */ e(H, { color: (x = Ve[T.rewardType ?? "BADGE"]) == null ? void 0 : x.color, children: (G = Ve[T.rewardType ?? "BADGE"]) == null ? void 0 : G.label })
4449
4449
  ] }) });
4450
4450
  }
4451
4451
  },
@@ -4455,7 +4455,7 @@ function ha() {
4455
4455
  width: 150,
4456
4456
  ellipsis: !0,
4457
4457
  render: (C, T) => /* @__PURE__ */ t("span", { children: [
4458
- da[C] ?? C,
4458
+ ua[C] ?? C,
4459
4459
  T.sourceTitle ? ` · ${T.sourceTitle}` : ""
4460
4460
  ] })
4461
4461
  },
@@ -4493,7 +4493,7 @@ function ha() {
4493
4493
  disabled: T.redeemStatus !== 1,
4494
4494
  onConfirm: async () => {
4495
4495
  try {
4496
- await Bl(T.id, l), P.success("已确认兑换"), c();
4496
+ await zl(T.id, l), P.success("已确认兑换"), c();
4497
4497
  } catch {
4498
4498
  }
4499
4499
  },
@@ -4520,7 +4520,7 @@ function ha() {
4520
4520
  prefix: /* @__PURE__ */ e(Ie, {}),
4521
4521
  placeholder: "搜索学员",
4522
4522
  style: { width: 180 },
4523
- value: x,
4523
+ value: I,
4524
4524
  onChange: (C) => B(C.target.value)
4525
4525
  }
4526
4526
  ),
@@ -4530,7 +4530,7 @@ function ha() {
4530
4530
  allowClear: !0,
4531
4531
  placeholder: "兑换状态",
4532
4532
  style: { width: 130 },
4533
- value: E ?? void 0,
4533
+ value: D ?? void 0,
4534
4534
  onChange: (C) => z(C ?? null),
4535
4535
  options: Object.entries(nt).map(([C, T]) => ({
4536
4536
  value: Number(C),
@@ -4542,13 +4542,13 @@ function ha() {
4542
4542
  ] })
4543
4543
  ] }),
4544
4544
  /* @__PURE__ */ e("div", { className: r.tableCard, children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
4545
- Pe,
4545
+ $e,
4546
4546
  {
4547
4547
  rowKey: "id",
4548
4548
  tableLayout: "fixed",
4549
4549
  size: "small",
4550
- loading: k,
4551
- columns: A,
4550
+ loading: A,
4551
+ columns: _,
4552
4552
  dataSource: n,
4553
4553
  pagination: { pageSize: 20, showSizeChanger: !1 },
4554
4554
  locale: { emptyText: "暂无发放记录:学员完成课程/路径后自动发放" }
@@ -4556,30 +4556,30 @@ function ha() {
4556
4556
  ) }) })
4557
4557
  ] });
4558
4558
  }
4559
- const ma = {
4559
+ const ga = {
4560
4560
  STAIRS: "爬楼梯",
4561
4561
  MAP: "地图"
4562
- }, pa = {
4562
+ }, ya = {
4563
4563
  SINGLE: "单选",
4564
4564
  MULTI: "多选",
4565
4565
  FREE: "自由题"
4566
- }, ga = {
4566
+ }, va = {
4567
4567
  BADGE: "徽章",
4568
4568
  RESOURCE_PACK: "资源包"
4569
- }, ya = [
4569
+ }, fa = [
4570
4570
  { label: "近 7 天", value: 7 },
4571
4571
  { label: "近 30 天", value: 30 },
4572
4572
  { label: "近 90 天", value: 90 }
4573
4573
  ];
4574
- function va(l) {
4574
+ function wa(l) {
4575
4575
  if (!l || l <= 0) return "0秒";
4576
- const n = Math.floor(l / 60), D = l % 60;
4577
- return n === 0 ? `${D}秒` : D === 0 ? `${n}分` : `${n}分${D}秒`;
4576
+ const n = Math.floor(l / 60), E = l % 60;
4577
+ return n === 0 ? `${E}秒` : E === 0 ? `${n}分` : `${n}分${E}秒`;
4578
4578
  }
4579
- function me({
4579
+ function pe({
4580
4580
  label: l,
4581
4581
  value: n,
4582
- hint: D
4582
+ hint: E
4583
4583
  }) {
4584
4584
  return /* @__PURE__ */ t(
4585
4585
  "div",
@@ -4595,7 +4595,7 @@ function me({
4595
4595
  children: [
4596
4596
  /* @__PURE__ */ e("div", { style: { color: "#888", fontSize: 12 }, children: l }),
4597
4597
  /* @__PURE__ */ e("div", { style: { fontSize: 24, fontWeight: 700, lineHeight: 1.4 }, children: n }),
4598
- D ? /* @__PURE__ */ e("div", { style: { color: "#aaa", fontSize: 12 }, children: D }) : null
4598
+ E ? /* @__PURE__ */ e("div", { style: { color: "#aaa", fontSize: 12 }, children: E }) : null
4599
4599
  ]
4600
4600
  }
4601
4601
  );
@@ -4629,12 +4629,12 @@ function at({ text: l, hint: n }) {
4629
4629
  }
4630
4630
  );
4631
4631
  }
4632
- function fa() {
4633
- const l = Ce((y) => y.token), [n, D] = o(null), [k, L] = o(30), [x, B] = o(!1), E = de(
4632
+ function Ca() {
4633
+ const l = Ce((y) => y.token), [n, E] = o(null), [A, L] = o(30), [I, B] = o(!1), D = de(
4634
4634
  async (y) => {
4635
4635
  B(!0);
4636
4636
  try {
4637
- D(await Ml(l, y));
4637
+ E(await Fl(l, y));
4638
4638
  } catch {
4639
4639
  } finally {
4640
4640
  B(!1);
@@ -4643,9 +4643,9 @@ function fa() {
4643
4643
  [l]
4644
4644
  );
4645
4645
  ce(() => {
4646
- E(k);
4647
- }, [E, k]);
4648
- const z = `近 ${(n == null ? void 0 : n.days) ?? k} 天`, c = (y) => y && y > 0 ? `+${y} ${z}新增` : `无新增(${z})`, A = [
4646
+ D(A);
4647
+ }, [D, A]);
4648
+ const z = `近 ${(n == null ? void 0 : n.days) ?? A} 天`, c = (y) => y && y > 0 ? `+${y} ${z}新增` : `无新增(${z})`, _ = [
4649
4649
  { title: "课程", dataIndex: "courseTitle", width: 240, ellipsis: !0 },
4650
4650
  { title: "报名", dataIndex: "enrollCount", width: 64 },
4651
4651
  { title: "进行中", dataIndex: "doingCount", width: 64 },
@@ -4686,7 +4686,7 @@ function fa() {
4686
4686
  title: "模板",
4687
4687
  dataIndex: "renderTemplate",
4688
4688
  width: 84,
4689
- render: (y) => y ? /* @__PURE__ */ e(H, { children: ma[y] ?? y }) : /* @__PURE__ */ e("span", { className: r.mutedCell, children: "-" })
4689
+ render: (y) => y ? /* @__PURE__ */ e(H, { children: ga[y] ?? y }) : /* @__PURE__ */ e("span", { className: r.mutedCell, children: "-" })
4690
4690
  },
4691
4691
  { title: "加入", dataIndex: "joinCount", width: 64 },
4692
4692
  { title: "完成", dataIndex: "completeCount", width: 64 }
@@ -4702,7 +4702,7 @@ function fa() {
4702
4702
  title: "题型",
4703
4703
  dataIndex: "type",
4704
4704
  width: 72,
4705
- render: (y) => y ? pa[y] ?? y : /* @__PURE__ */ e("span", { className: r.mutedCell, children: "-" })
4705
+ render: (y) => y ? ya[y] ?? y : /* @__PURE__ */ e("span", { className: r.mutedCell, children: "-" })
4706
4706
  },
4707
4707
  { title: "作答次数", dataIndex: "answerTotal", width: 80 },
4708
4708
  { title: "错误数", dataIndex: "wrongCount", width: 72 },
@@ -4715,14 +4715,14 @@ function fa() {
4715
4715
  "%"
4716
4716
  ] })
4717
4717
  }
4718
- ], I = [
4718
+ ], x = [
4719
4719
  { title: "标签", dataIndex: "tag", width: 160, ellipsis: !0 },
4720
4720
  { title: "视频数", dataIndex: "videoCount", width: 80 },
4721
4721
  {
4722
4722
  title: "总时长",
4723
4723
  dataIndex: "totalDurationSec",
4724
4724
  width: 100,
4725
- render: (y) => va(y ?? void 0)
4725
+ render: (y) => wa(y ?? void 0)
4726
4726
  }
4727
4727
  ], G = [
4728
4728
  { title: "分类", dataIndex: "category", width: 160, ellipsis: !0 },
@@ -4733,7 +4733,7 @@ function fa() {
4733
4733
  title: "类型",
4734
4734
  dataIndex: "rewardType",
4735
4735
  width: 84,
4736
- render: (y) => y ? /* @__PURE__ */ e(H, { children: ga[y] ?? y }) : "-"
4736
+ render: (y) => y ? /* @__PURE__ */ e(H, { children: va[y] ?? y }) : "-"
4737
4737
  },
4738
4738
  { title: "发放次数", dataIndex: "grantCount", width: 88 },
4739
4739
  {
@@ -4750,7 +4750,7 @@ function fa() {
4750
4750
  ] }) : null
4751
4751
  ] })
4752
4752
  }
4753
- ], v = (n == null ? void 0 : n.trend) ?? [], _ = Math.max(
4753
+ ], v = (n == null ? void 0 : n.trend) ?? [], S = Math.max(
4754
4754
  1,
4755
4755
  ...v.map(
4756
4756
  (y) => Math.max(y.examCount, y.courseCompleteCount, y.enrollCount ?? 0)
@@ -4766,18 +4766,18 @@ function fa() {
4766
4766
  /* @__PURE__ */ e(
4767
4767
  $t,
4768
4768
  {
4769
- options: ya,
4770
- value: k,
4769
+ options: fa,
4770
+ value: A,
4771
4771
  onChange: (y) => L(y)
4772
4772
  }
4773
4773
  ),
4774
- /* @__PURE__ */ e(M, { icon: /* @__PURE__ */ e(Te, {}), onClick: () => void E(k), children: "刷新" })
4774
+ /* @__PURE__ */ e(M, { icon: /* @__PURE__ */ e(Te, {}), onClick: () => void D(A), children: "刷新" })
4775
4775
  ] })
4776
4776
  ] }),
4777
4777
  /* @__PURE__ */ e(at, { text: "素材阶段", hint: "内容生产存量与新增" }),
4778
4778
  /* @__PURE__ */ t("div", { style: { display: "flex", flexWrap: "wrap", gap: 12 }, children: [
4779
4779
  /* @__PURE__ */ e(
4780
- me,
4780
+ pe,
4781
4781
  {
4782
4782
  label: "培训视频",
4783
4783
  value: (n == null ? void 0 : n.videoCount) ?? 0,
@@ -4785,7 +4785,7 @@ function fa() {
4785
4785
  }
4786
4786
  ),
4787
4787
  /* @__PURE__ */ e(
4788
- me,
4788
+ pe,
4789
4789
  {
4790
4790
  label: "培训资料",
4791
4791
  value: (n == null ? void 0 : n.materialCount) ?? 0,
@@ -4793,7 +4793,7 @@ function fa() {
4793
4793
  }
4794
4794
  ),
4795
4795
  /* @__PURE__ */ e(
4796
- me,
4796
+ pe,
4797
4797
  {
4798
4798
  label: "题目",
4799
4799
  value: (n == null ? void 0 : n.questionCount) ?? 0,
@@ -4801,7 +4801,7 @@ function fa() {
4801
4801
  }
4802
4802
  ),
4803
4803
  /* @__PURE__ */ e(
4804
- me,
4804
+ pe,
4805
4805
  {
4806
4806
  label: "试卷",
4807
4807
  value: (n == null ? void 0 : n.paperCount) ?? 0,
@@ -4812,16 +4812,16 @@ function fa() {
4812
4812
  /* @__PURE__ */ e(at, { text: "学习阶段", hint: "课程上线与学员参与" }),
4813
4813
  /* @__PURE__ */ t("div", { style: { display: "flex", flexWrap: "wrap", gap: 12 }, children: [
4814
4814
  /* @__PURE__ */ e(
4815
- me,
4815
+ pe,
4816
4816
  {
4817
4817
  label: "上线课程",
4818
4818
  value: (n == null ? void 0 : n.courseCount) ?? 0,
4819
4819
  hint: c(n == null ? void 0 : n.newCourseCount)
4820
4820
  }
4821
4821
  ),
4822
- /* @__PURE__ */ e(me, { label: "上线路径", value: (n == null ? void 0 : n.pathCount) ?? 0 }),
4822
+ /* @__PURE__ */ e(pe, { label: "上线路径", value: (n == null ? void 0 : n.pathCount) ?? 0 }),
4823
4823
  /* @__PURE__ */ e(
4824
- me,
4824
+ pe,
4825
4825
  {
4826
4826
  label: "参与学员",
4827
4827
  value: (n == null ? void 0 : n.learnerCount) ?? 0,
@@ -4829,7 +4829,7 @@ function fa() {
4829
4829
  }
4830
4830
  ),
4831
4831
  /* @__PURE__ */ e(
4832
- me,
4832
+ pe,
4833
4833
  {
4834
4834
  label: "课程报名",
4835
4835
  value: (n == null ? void 0 : n.enrollInRange) ?? 0,
@@ -4837,7 +4837,7 @@ function fa() {
4837
4837
  }
4838
4838
  ),
4839
4839
  /* @__PURE__ */ e(
4840
- me,
4840
+ pe,
4841
4841
  {
4842
4842
  label: "课程完成",
4843
4843
  value: (n == null ? void 0 : n.completeInRange) ?? 0,
@@ -4845,7 +4845,7 @@ function fa() {
4845
4845
  }
4846
4846
  ),
4847
4847
  /* @__PURE__ */ e(
4848
- me,
4848
+ pe,
4849
4849
  {
4850
4850
  label: "活跃学员",
4851
4851
  value: (n == null ? void 0 : n.activeLearnerCount) ?? 0,
@@ -4855,9 +4855,9 @@ function fa() {
4855
4855
  ] }),
4856
4856
  /* @__PURE__ */ e(at, { text: "考试与激励阶段", hint: "检验效果与正向反馈" }),
4857
4857
  /* @__PURE__ */ t("div", { style: { display: "flex", flexWrap: "wrap", gap: 12 }, children: [
4858
- /* @__PURE__ */ e(me, { label: "累计考试人次", value: (n == null ? void 0 : n.examCount) ?? 0 }),
4858
+ /* @__PURE__ */ e(pe, { label: "累计考试人次", value: (n == null ? void 0 : n.examCount) ?? 0 }),
4859
4859
  /* @__PURE__ */ e(
4860
- me,
4860
+ pe,
4861
4861
  {
4862
4862
  label: "考试人次",
4863
4863
  value: (n == null ? void 0 : n.examInRange) ?? 0,
@@ -4865,7 +4865,7 @@ function fa() {
4865
4865
  }
4866
4866
  ),
4867
4867
  /* @__PURE__ */ e(
4868
- me,
4868
+ pe,
4869
4869
  {
4870
4870
  label: "考试通过",
4871
4871
  value: (n == null ? void 0 : n.passInRange) ?? 0,
@@ -4873,7 +4873,7 @@ function fa() {
4873
4873
  }
4874
4874
  ),
4875
4875
  /* @__PURE__ */ e(
4876
- me,
4876
+ pe,
4877
4877
  {
4878
4878
  label: "考试及格率",
4879
4879
  value: (n == null ? void 0 : n.examPassRate) == null ? "-" : `${n.examPassRate}%`,
@@ -4881,16 +4881,16 @@ function fa() {
4881
4881
  }
4882
4882
  ),
4883
4883
  /* @__PURE__ */ e(
4884
- me,
4884
+ pe,
4885
4885
  {
4886
4886
  label: "待批改",
4887
4887
  value: (n == null ? void 0 : n.pendingGradeCount) ?? 0,
4888
4888
  hint: "SUBMITTED 状态"
4889
4889
  }
4890
4890
  ),
4891
- /* @__PURE__ */ e(me, { label: "奖励物料", value: (n == null ? void 0 : n.rewardCount) ?? 0 }),
4891
+ /* @__PURE__ */ e(pe, { label: "奖励物料", value: (n == null ? void 0 : n.rewardCount) ?? 0 }),
4892
4892
  /* @__PURE__ */ e(
4893
- me,
4893
+ pe,
4894
4894
  {
4895
4895
  label: "奖励发放",
4896
4896
  value: (n == null ? void 0 : n.rewardGrantInRange) ?? 0,
@@ -4930,7 +4930,7 @@ function fa() {
4930
4930
  "div",
4931
4931
  {
4932
4932
  style: {
4933
- height: `${(y.enrollCount ?? 0) / _ * 100}%`,
4933
+ height: `${(y.enrollCount ?? 0) / S * 100}%`,
4934
4934
  background: "#ffc53d",
4935
4935
  borderRadius: "2px 2px 0 0",
4936
4936
  minHeight: (y.enrollCount ?? 0) > 0 ? 2 : 0
@@ -4941,7 +4941,7 @@ function fa() {
4941
4941
  "div",
4942
4942
  {
4943
4943
  style: {
4944
- height: `${y.courseCompleteCount / _ * 100}%`,
4944
+ height: `${y.courseCompleteCount / S * 100}%`,
4945
4945
  background: "#95de64",
4946
4946
  borderRadius: "2px 2px 0 0",
4947
4947
  minHeight: y.courseCompleteCount > 0 ? 2 : 0
@@ -4952,7 +4952,7 @@ function fa() {
4952
4952
  "div",
4953
4953
  {
4954
4954
  style: {
4955
- height: `${y.examCount / _ * 100}%`,
4955
+ height: `${y.examCount / S * 100}%`,
4956
4956
  background: "#2F70F1",
4957
4957
  borderRadius: "2px 2px 0 0",
4958
4958
  minHeight: y.examCount > 0 ? 2 : 0
@@ -5017,13 +5017,13 @@ function fa() {
5017
5017
  "口径)"
5018
5018
  ] }),
5019
5019
  /* @__PURE__ */ e(
5020
- Pe,
5020
+ $e,
5021
5021
  {
5022
5022
  rowKey: "courseId",
5023
5023
  tableLayout: "fixed",
5024
5024
  size: "small",
5025
- loading: x,
5026
- columns: A,
5025
+ loading: I,
5026
+ columns: _,
5027
5027
  dataSource: (n == null ? void 0 : n.courseRows) ?? [],
5028
5028
  pagination: !1,
5029
5029
  locale: { emptyText: "暂无课程数据" }
@@ -5043,12 +5043,12 @@ function fa() {
5043
5043
  /* @__PURE__ */ e("div", { className: r.tableCard, style: { flex: 1 }, children: /* @__PURE__ */ t("div", { className: r.tableWrap, children: [
5044
5044
  /* @__PURE__ */ e("div", { style: { fontWeight: 600, padding: "10px 0 4px" }, children: "路径维度" }),
5045
5045
  /* @__PURE__ */ e(
5046
- Pe,
5046
+ $e,
5047
5047
  {
5048
5048
  rowKey: "pathId",
5049
5049
  tableLayout: "fixed",
5050
5050
  size: "small",
5051
- loading: x,
5051
+ loading: I,
5052
5052
  columns: C,
5053
5053
  dataSource: (n == null ? void 0 : n.pathRows) ?? [],
5054
5054
  pagination: !1,
@@ -5059,12 +5059,12 @@ function fa() {
5059
5059
  /* @__PURE__ */ e("div", { className: r.tableCard, style: { flex: 1.4 }, children: /* @__PURE__ */ t("div", { className: r.tableWrap, children: [
5060
5060
  /* @__PURE__ */ e("div", { style: { fontWeight: 600, padding: "10px 0 4px" }, children: "题目错误率 Top(指导题库优化)" }),
5061
5061
  /* @__PURE__ */ e(
5062
- Pe,
5062
+ $e,
5063
5063
  {
5064
5064
  rowKey: "questionId",
5065
5065
  tableLayout: "fixed",
5066
5066
  size: "small",
5067
- loading: x,
5067
+ loading: I,
5068
5068
  columns: T,
5069
5069
  dataSource: (n == null ? void 0 : n.wrongTop) ?? [],
5070
5070
  pagination: !1,
@@ -5088,13 +5088,13 @@ function fa() {
5088
5088
  /* @__PURE__ */ e("div", { className: r.tableCard, style: { flex: 1, minWidth: 320 }, children: /* @__PURE__ */ t("div", { className: r.tableWrap, children: [
5089
5089
  /* @__PURE__ */ e("div", { style: { fontWeight: 600, padding: "10px 0 4px" }, children: "素材分布:视频标签" }),
5090
5090
  /* @__PURE__ */ e(
5091
- Pe,
5091
+ $e,
5092
5092
  {
5093
5093
  rowKey: "tag",
5094
5094
  tableLayout: "fixed",
5095
5095
  size: "small",
5096
- loading: x,
5097
- columns: I,
5096
+ loading: I,
5097
+ columns: x,
5098
5098
  dataSource: (n == null ? void 0 : n.videoTagRows) ?? [],
5099
5099
  pagination: !1,
5100
5100
  locale: { emptyText: "暂无视频数据" }
@@ -5104,12 +5104,12 @@ function fa() {
5104
5104
  /* @__PURE__ */ e("div", { className: r.tableCard, style: { flex: 1, minWidth: 260 }, children: /* @__PURE__ */ t("div", { className: r.tableWrap, children: [
5105
5105
  /* @__PURE__ */ e("div", { style: { fontWeight: 600, padding: "10px 0 4px" }, children: "素材分布:资料分类" }),
5106
5106
  /* @__PURE__ */ e(
5107
- Pe,
5107
+ $e,
5108
5108
  {
5109
5109
  rowKey: "category",
5110
5110
  tableLayout: "fixed",
5111
5111
  size: "small",
5112
- loading: x,
5112
+ loading: I,
5113
5113
  columns: G,
5114
5114
  dataSource: (n == null ? void 0 : n.materialCategoryRows) ?? [],
5115
5115
  pagination: !1,
@@ -5120,12 +5120,12 @@ function fa() {
5120
5120
  /* @__PURE__ */ e("div", { className: r.tableCard, style: { flex: 1.2, minWidth: 360 }, children: /* @__PURE__ */ t("div", { className: r.tableWrap, children: [
5121
5121
  /* @__PURE__ */ e("div", { style: { fontWeight: 600, padding: "10px 0 4px" }, children: "激励维度:奖励发放统计" }),
5122
5122
  /* @__PURE__ */ e(
5123
- Pe,
5123
+ $e,
5124
5124
  {
5125
5125
  rowKey: "rewardId",
5126
5126
  tableLayout: "fixed",
5127
5127
  size: "small",
5128
- loading: x,
5128
+ loading: I,
5129
5129
  columns: u,
5130
5130
  dataSource: (n == null ? void 0 : n.rewardRows) ?? [],
5131
5131
  pagination: !1,
@@ -5138,34 +5138,34 @@ function fa() {
5138
5138
  )
5139
5139
  ] });
5140
5140
  }
5141
- const wa = "_vBody_p7fqp_3", Ca = "_vTree_p7fqp_12", ba = "_treeScroll_p7fqp_23", Ia = "_treeHeader_p7fqp_30", xa = "_treeHeaderTitle_p7fqp_38", Ta = "_groupArrowWrap_p7fqp_45", Na = "_groupArrow_p7fqp_45", ka = "_groupArrowOpen_p7fqp_58", Sa = "_allNode_p7fqp_63", _a = "_allNodeActive_p7fqp_83", Aa = "_groupHead_p7fqp_90", Ea = "_groupHeadActive_p7fqp_111", Da = "_folderDel_p7fqp_118", Ra = "_groupCount_p7fqp_132", La = "_groupIcon_p7fqp_137", $a = "_treeItemTitle_p7fqp_142", Pa = "_tableSide_p7fqp_154", le = {
5142
- vBody: wa,
5143
- vTree: Ca,
5144
- treeScroll: ba,
5145
- treeHeader: Ia,
5146
- treeHeaderTitle: xa,
5147
- groupArrowWrap: Ta,
5148
- groupArrow: Na,
5149
- groupArrowOpen: ka,
5150
- allNode: Sa,
5151
- allNodeActive: _a,
5152
- groupHead: Aa,
5153
- groupHeadActive: Ea,
5154
- folderDel: Da,
5155
- groupCount: Ra,
5156
- groupIcon: La,
5157
- treeItemTitle: $a,
5158
- tableSide: Pa
5141
+ const ba = "_vBody_p7fqp_3", Ia = "_vTree_p7fqp_12", xa = "_treeScroll_p7fqp_23", Ta = "_treeHeader_p7fqp_30", Na = "_treeHeaderTitle_p7fqp_38", ka = "_groupArrowWrap_p7fqp_45", Sa = "_groupArrow_p7fqp_45", _a = "_groupArrowOpen_p7fqp_58", Aa = "_allNode_p7fqp_63", Ea = "_allNodeActive_p7fqp_83", Da = "_groupHead_p7fqp_90", Ra = "_groupHeadActive_p7fqp_111", La = "_folderDel_p7fqp_118", $a = "_groupCount_p7fqp_132", Pa = "_groupIcon_p7fqp_137", Oa = "_treeItemTitle_p7fqp_142", Ba = "_tableSide_p7fqp_154", le = {
5142
+ vBody: ba,
5143
+ vTree: Ia,
5144
+ treeScroll: xa,
5145
+ treeHeader: Ta,
5146
+ treeHeaderTitle: Na,
5147
+ groupArrowWrap: ka,
5148
+ groupArrow: Sa,
5149
+ groupArrowOpen: _a,
5150
+ allNode: Aa,
5151
+ allNodeActive: Ea,
5152
+ groupHead: Da,
5153
+ groupHeadActive: Ra,
5154
+ folderDel: La,
5155
+ groupCount: $a,
5156
+ groupIcon: Pa,
5157
+ treeItemTitle: Oa,
5158
+ tableSide: Ba
5159
5159
  }, St = {
5160
5160
  UPLOAD: { label: "OSS直传", color: "blue" },
5161
5161
  LINK: { label: "外链登记", color: "geekblue" }
5162
- }, Ye = "uncategorized";
5163
- function Oa(l) {
5162
+ }, Je = "uncategorized";
5163
+ function Ma(l) {
5164
5164
  if (!l || l <= 0) return "-";
5165
- const n = Math.floor(l / 3600), D = Math.floor(l % 3600 / 60), k = Math.floor(l % 60), L = String(D).padStart(2, "0"), x = String(k).padStart(2, "0");
5166
- return n > 0 ? `${n}:${L}:${x}` : `${L}:${x}`;
5165
+ const n = Math.floor(l / 3600), E = Math.floor(l % 3600 / 60), A = Math.floor(l % 60), L = String(E).padStart(2, "0"), I = String(A).padStart(2, "0");
5166
+ return n > 0 ? `${n}:${L}:${I}` : `${L}:${I}`;
5167
5167
  }
5168
- async function Ba(l) {
5168
+ async function za(l) {
5169
5169
  if (!l) {
5170
5170
  P.warning("该视频暂无链接");
5171
5171
  return;
@@ -5179,15 +5179,15 @@ async function Ba(l) {
5179
5179
  const n = document.createElement("textarea");
5180
5180
  n.value = l, n.style.cssText = "position:fixed;opacity:0;", document.body.appendChild(n), n.select(), document.execCommand("copy"), document.body.removeChild(n), P.success("视频链接已复制,可贴入技术社区正文");
5181
5181
  }
5182
- function Ma() {
5183
- const l = Ce((d) => d.token), [n, D] = o([]), [k, L] = o([]), [x, B] = o(!1), [E, z] = o(""), [c, A] = o(!1), [C, T] = o(!1), [I, G] = o(!1), [u, v] = o(null), [_, y] = o(!1), [j, J] = o(""), [Z, O] = o(!1), [w, F] = o(null), [h, m] = o(/* @__PURE__ */ new Set()), ee = Bt(null), [Q, N] = o("all"), [S, i] = o(1), a = de(async () => {
5182
+ function Fa() {
5183
+ const l = Ce((d) => d.token), [n, E] = o([]), [A, L] = o([]), [I, B] = o(!1), [D, z] = o(""), [c, _] = o(!1), [C, T] = o(!1), [x, G] = o(!1), [u, v] = o(null), [S, y] = o(!1), [j, J] = o(""), [Z, O] = o(!1), [w, F] = o(null), [h, m] = o(/* @__PURE__ */ new Set()), ee = Bt(null), [Q, N] = o("all"), [k, i] = o(1), a = de(async () => {
5184
5184
  B(!0);
5185
5185
  try {
5186
5186
  const [d, b] = await Promise.all([
5187
5187
  Ft("", "", l),
5188
5188
  Ct(l)
5189
5189
  ]);
5190
- D(d), L(b);
5190
+ E(d), L(b);
5191
5191
  } catch {
5192
5192
  } finally {
5193
5193
  B(!1);
@@ -5201,11 +5201,11 @@ function Ma() {
5201
5201
  ce(() => {
5202
5202
  a();
5203
5203
  }, [a]);
5204
- const R = pe(() => {
5205
- const d = E.trim().toLowerCase();
5204
+ const R = ue(() => {
5205
+ const d = D.trim().toLowerCase();
5206
5206
  return d ? n.filter((b) => b.title.toLowerCase().includes(d)) : n;
5207
- }, [n, E]), U = pe(() => {
5208
- if (Q === Ye)
5207
+ }, [n, D]), U = ue(() => {
5208
+ if (Q === Je)
5209
5209
  return R.filter((d) => !(d.category ?? "").trim());
5210
5210
  if (Q.startsWith("cat:")) {
5211
5211
  const d = Q.slice(4);
@@ -5215,38 +5215,38 @@ function Ma() {
5215
5215
  }, [R, Q]), Y = de(
5216
5216
  (d) => R.filter((b) => (b.category ?? "").trim() === d).length,
5217
5217
  [R]
5218
- ), te = pe(
5218
+ ), te = ue(
5219
5219
  () => R.filter((d) => !(d.category ?? "").trim()).length,
5220
5220
  [R]
5221
- ), se = pe(() => {
5221
+ ), se = ue(() => {
5222
5222
  const d = (V) => ({
5223
5223
  name: V.name,
5224
5224
  cat: V,
5225
5225
  count: Y(V.name),
5226
5226
  children: []
5227
5227
  }), b = /* @__PURE__ */ new Map(), f = [];
5228
- for (const V of k)
5228
+ for (const V of A)
5229
5229
  V.id != null && b.set(V.id, d(V));
5230
- for (const V of k) {
5230
+ for (const V of A) {
5231
5231
  if (V.id == null) continue;
5232
- const X = b.get(V.id), ue = V.parentId != null ? b.get(V.parentId) : void 0;
5233
- ue && ue !== X ? ue.children.push(X) : f.push(X);
5232
+ const X = b.get(V.id), he = V.parentId != null ? b.get(V.parentId) : void 0;
5233
+ he && he !== X ? he.children.push(X) : f.push(X);
5234
5234
  }
5235
5235
  const $ = new Set(
5236
- k.filter((V) => V.id != null).map((V) => V.name)
5236
+ A.filter((V) => V.id != null).map((V) => V.name)
5237
5237
  );
5238
- for (const V of k)
5238
+ for (const V of A)
5239
5239
  V.id == null && !$.has(V.name) && ($.add(V.name), f.push({ name: V.name, count: Y(V.name), children: [] }));
5240
5240
  return f;
5241
- }, [k, Y]), Oe = (d) => {
5241
+ }, [A, Y]), Pe = (d) => {
5242
5242
  m((b) => {
5243
5243
  const f = new Set(b);
5244
5244
  return f.has(d) ? f.delete(d) : f.add(d), f;
5245
5245
  });
5246
- }, Ee = Q === "all" ? "" : Q === Ye ? "未分类" : `文件夹「${Q.slice(4)}」`;
5246
+ }, Ae = Q === "all" ? "" : Q === Je ? "未分类" : `文件夹「${Q.slice(4)}」`;
5247
5247
  ce(() => {
5248
5248
  i(1);
5249
- }, [Q, E]);
5249
+ }, [Q, D]);
5250
5250
  const ye = () => {
5251
5251
  v({
5252
5252
  title: "",
@@ -5254,13 +5254,13 @@ function Ma() {
5254
5254
  sourceType: "UPLOAD",
5255
5255
  tags: [],
5256
5256
  category: null
5257
- }), A(!0);
5258
- }, De = (d) => {
5259
- v({ ...d, tags: d.tags ?? [] }), A(!0);
5260
- }, Fe = async (d) => {
5257
+ }), _(!0);
5258
+ }, Ee = (d) => {
5259
+ v({ ...d, tags: d.tags ?? [] }), _(!0);
5260
+ }, ze = async (d) => {
5261
5261
  G(!0);
5262
5262
  try {
5263
- const b = await zl(d, l);
5263
+ const b = await Gl(d, l);
5264
5264
  v(
5265
5265
  (f) => f && {
5266
5266
  ...f,
@@ -5273,7 +5273,7 @@ function Ma() {
5273
5273
  } finally {
5274
5274
  G(!1);
5275
5275
  }
5276
- }, Re = async () => {
5276
+ }, De = async () => {
5277
5277
  if (u) {
5278
5278
  if (!u.title.trim()) {
5279
5279
  P.warning("请填写视频标题");
@@ -5285,7 +5285,7 @@ function Ma() {
5285
5285
  }
5286
5286
  T(!0);
5287
5287
  try {
5288
- await Fl(
5288
+ await Ul(
5289
5289
  {
5290
5290
  id: u.id,
5291
5291
  title: u.title.trim(),
@@ -5298,21 +5298,21 @@ function Ma() {
5298
5298
  description: u.description ?? null
5299
5299
  },
5300
5300
  l
5301
- ), P.success("保存成功"), A(!1), v(null), a();
5301
+ ), P.success("保存成功"), _(!1), v(null), a();
5302
5302
  } catch {
5303
5303
  } finally {
5304
5304
  T(!1);
5305
5305
  }
5306
5306
  }
5307
- }, Be = async (d) => {
5307
+ }, Oe = async (d) => {
5308
5308
  try {
5309
- await jl(d, l), P.success("已删除"), a();
5309
+ await Hl(d, l), P.success("已删除"), a();
5310
5310
  } catch {
5311
5311
  }
5312
5312
  }, ke = () => {
5313
- const d = Q.startsWith("cat:") ? k.find((b) => b.name === Q.slice(4) && b.id != null) ?? null : null;
5313
+ const d = Q.startsWith("cat:") ? A.find((b) => b.name === Q.slice(4) && b.id != null) ?? null : null;
5314
5314
  F(d), J(""), y(!0);
5315
- }, Ge = async () => {
5315
+ }, Fe = async () => {
5316
5316
  const d = j.trim();
5317
5317
  if (!d) {
5318
5318
  P.warning("请填写文件夹名称");
@@ -5320,20 +5320,20 @@ function Ma() {
5320
5320
  }
5321
5321
  O(!0);
5322
5322
  try {
5323
- await Gl(d, (w == null ? void 0 : w.id) ?? null, l), P.success(
5323
+ await jl(d, (w == null ? void 0 : w.id) ?? null, l), P.success(
5324
5324
  w ? `已在「${w.name}」下创建子文件夹「${d}」` : `文件夹「${d}」已创建`
5325
5325
  ), y(!1), J(""), F(null), await p(), N(`cat:${d}`);
5326
5326
  } catch {
5327
5327
  } finally {
5328
5328
  O(!1);
5329
5329
  }
5330
- }, Ue = async (d) => {
5330
+ }, Ge = async (d) => {
5331
5331
  if (d.id)
5332
5332
  try {
5333
- await Ul(d.id, l), P.success(`文件夹「${d.name}」已删除`), Q === `cat:${d.name}` && N("all"), await p();
5333
+ await Wl(d.id, l), P.success(`文件夹「${d.name}」已删除`), Q === `cat:${d.name}` && N("all"), await p();
5334
5334
  } catch {
5335
5335
  }
5336
- }, je = (d, b) => {
5336
+ }, Ue = (d, b) => {
5337
5337
  var X;
5338
5338
  const f = h.has(d.name), $ = d.children.length > 0, V = d.count > 0 || $;
5339
5339
  return /* @__PURE__ */ t("div", { children: [
@@ -5354,8 +5354,8 @@ function Ma() {
5354
5354
  "span",
5355
5355
  {
5356
5356
  className: le.groupArrowWrap,
5357
- onClick: (ue) => {
5358
- ue.stopPropagation(), Oe(d.name);
5357
+ onClick: (he) => {
5358
+ he.stopPropagation(), Pe(d.name);
5359
5359
  },
5360
5360
  children: /* @__PURE__ */ e(
5361
5361
  it,
@@ -5368,7 +5368,7 @@ function Ma() {
5368
5368
  )
5369
5369
  }
5370
5370
  ),
5371
- /* @__PURE__ */ e(We, { className: le.groupIcon }),
5371
+ /* @__PURE__ */ e(je, { className: le.groupIcon }),
5372
5372
  /* @__PURE__ */ e("span", { className: le.treeItemTitle, children: d.name }),
5373
5373
  /* @__PURE__ */ e("span", { className: le.groupCount, children: d.count }),
5374
5374
  ((X = d.cat) == null ? void 0 : X.id) != null ? /* @__PURE__ */ e(
@@ -5379,7 +5379,7 @@ function Ma() {
5379
5379
  okButtonProps: { danger: !0 },
5380
5380
  cancelText: "取消",
5381
5381
  disabled: V,
5382
- onConfirm: () => void Ue(d.cat),
5382
+ onConfirm: () => void Ge(d.cat),
5383
5383
  children: /* @__PURE__ */ e(
5384
5384
  oe,
5385
5385
  {
@@ -5391,9 +5391,9 @@ function Ma() {
5391
5391
  size: "small",
5392
5392
  danger: !0,
5393
5393
  className: le.folderDel,
5394
- icon: /* @__PURE__ */ e(Ke, {}),
5394
+ icon: /* @__PURE__ */ e(He, {}),
5395
5395
  disabled: V,
5396
- onClick: (ue) => ue.stopPropagation()
5396
+ onClick: (he) => he.stopPropagation()
5397
5397
  }
5398
5398
  )
5399
5399
  }
@@ -5403,9 +5403,9 @@ function Ma() {
5403
5403
  ]
5404
5404
  }
5405
5405
  ),
5406
- f ? null : d.children.map((ue) => je(ue, b + 1))
5406
+ f ? null : d.children.map((he) => Ue(he, b + 1))
5407
5407
  ] }, d.name);
5408
- }, Le = [
5408
+ }, Re = [
5409
5409
  {
5410
5410
  title: "ID",
5411
5411
  dataIndex: "id",
@@ -5434,13 +5434,13 @@ function Ma() {
5434
5434
  title: "时长",
5435
5435
  dataIndex: "durationSec",
5436
5436
  width: 72,
5437
- render: (d) => Oa(d)
5437
+ render: (d) => Ma(d)
5438
5438
  },
5439
5439
  {
5440
5440
  title: "标签",
5441
5441
  dataIndex: "tags",
5442
5442
  width: 130,
5443
- render: (d) => d != null && d.length ? /* @__PURE__ */ e(qe, { size: 4, wrap: !0, children: d.map((b) => /* @__PURE__ */ e(H, { children: b }, b)) }) : /* @__PURE__ */ e("span", { className: r.mutedCell, children: "-" })
5443
+ render: (d) => d != null && d.length ? /* @__PURE__ */ e(Ke, { size: 4, wrap: !0, children: d.map((b) => /* @__PURE__ */ e(H, { children: b }, b)) }) : /* @__PURE__ */ e("span", { className: r.mutedCell, children: "-" })
5444
5444
  },
5445
5445
  {
5446
5446
  title: "被引用",
@@ -5467,7 +5467,7 @@ function Ma() {
5467
5467
  {
5468
5468
  type: "link",
5469
5469
  size: "small",
5470
- onClick: () => void Ba(b.ossUrl),
5470
+ onClick: () => void za(b.ossUrl),
5471
5471
  children: "复制"
5472
5472
  }
5473
5473
  ) }),
@@ -5485,7 +5485,7 @@ function Ma() {
5485
5485
  {
5486
5486
  type: "link",
5487
5487
  size: "small",
5488
- onClick: () => De(b),
5488
+ onClick: () => Ee(b),
5489
5489
  children: "编辑"
5490
5490
  }
5491
5491
  ) }),
@@ -5497,7 +5497,7 @@ function Ma() {
5497
5497
  okButtonProps: { danger: !0 },
5498
5498
  cancelText: "取消",
5499
5499
  disabled: (b.refCount ?? 0) > 0,
5500
- onConfirm: () => b.id && void Be(b.id),
5500
+ onConfirm: () => b.id && void Oe(b.id),
5501
5501
  children: /* @__PURE__ */ e(
5502
5502
  M,
5503
5503
  {
@@ -5521,10 +5521,10 @@ function Ma() {
5521
5521
  "共 ",
5522
5522
  /* @__PURE__ */ e("strong", { children: R.length }),
5523
5523
  " 个视频 · ",
5524
- k.length,
5524
+ A.length,
5525
5525
  " ",
5526
5526
  "个文件夹",
5527
- Ee ? ` · ${Ee} ${U.length} 条` : ""
5527
+ Ae ? ` · ${Ae} ${U.length} 条` : ""
5528
5528
  ] })
5529
5529
  ] }),
5530
5530
  /* @__PURE__ */ t("div", { className: r.pageActions, children: [
@@ -5535,7 +5535,7 @@ function Ma() {
5535
5535
  prefix: /* @__PURE__ */ e(Ie, {}),
5536
5536
  placeholder: "搜索标题",
5537
5537
  style: { width: 180 },
5538
- value: E,
5538
+ value: D,
5539
5539
  onChange: (d) => z(d.target.value)
5540
5540
  }
5541
5541
  ),
@@ -5563,7 +5563,7 @@ function Ma() {
5563
5563
  }
5564
5564
  )
5565
5565
  ] }),
5566
- /* @__PURE__ */ e("div", { className: le.treeScroll, children: x ? /* @__PURE__ */ e("div", { style: { padding: 24, textAlign: "center" }, children: /* @__PURE__ */ e(Ze, {}) }) : /* @__PURE__ */ t(we, { children: [
5566
+ /* @__PURE__ */ e("div", { className: le.treeScroll, children: I ? /* @__PURE__ */ e("div", { style: { padding: 24, textAlign: "center" }, children: /* @__PURE__ */ e(Ze, {}) }) : /* @__PURE__ */ t(we, { children: [
5567
5567
  /* @__PURE__ */ t(
5568
5568
  "div",
5569
5569
  {
@@ -5579,7 +5579,7 @@ function Ma() {
5579
5579
  ]
5580
5580
  }
5581
5581
  ),
5582
- se.map((d) => je(d, 0)),
5582
+ se.map((d) => Ue(d, 0)),
5583
5583
  te > 0 ? /* @__PURE__ */ t(
5584
5584
  "div",
5585
5585
  {
@@ -5587,12 +5587,12 @@ function Ma() {
5587
5587
  tabIndex: 0,
5588
5588
  className: [
5589
5589
  le.groupHead,
5590
- Q === Ye ? le.groupHeadActive : ""
5590
+ Q === Je ? le.groupHeadActive : ""
5591
5591
  ].join(" "),
5592
- onClick: () => N(Ye),
5592
+ onClick: () => N(Je),
5593
5593
  title: "查看未归类视频",
5594
5594
  children: [
5595
- /* @__PURE__ */ e(We, { className: le.groupIcon }),
5595
+ /* @__PURE__ */ e(je, { className: le.groupIcon }),
5596
5596
  /* @__PURE__ */ e("span", { className: le.treeItemTitle, children: "未分类" }),
5597
5597
  /* @__PURE__ */ e("span", { className: le.groupCount, children: te })
5598
5598
  ]
@@ -5601,21 +5601,21 @@ function Ma() {
5601
5601
  ] }) })
5602
5602
  ] }),
5603
5603
  /* @__PURE__ */ e("div", { className: [r.tableCard, le.tableSide].join(" "), children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
5604
- _e,
5604
+ Se,
5605
5605
  {
5606
5606
  rows: U,
5607
5607
  rowKey: "id",
5608
5608
  tableLayout: "fixed",
5609
- loading: x,
5610
- columns: Le,
5609
+ loading: I,
5610
+ columns: Re,
5611
5611
  pagination: {
5612
5612
  ...hl,
5613
5613
  pageSize: 20,
5614
- current: S,
5614
+ current: k,
5615
5615
  onChange: i
5616
5616
  },
5617
- emptyTitle: E ? "没有匹配的视频" : "暂无培训视频",
5618
- emptyDescription: E ? "换个关键词再试。" : "点击右上角「新建视频」登记。",
5617
+ emptyTitle: D ? "没有匹配的视频" : "暂无培训视频",
5618
+ emptyDescription: D ? "换个关键词再试。" : "点击右上角「新建视频」登记。",
5619
5619
  cardProps: { variant: "borderless", styles: { body: { padding: 0 } } }
5620
5620
  }
5621
5621
  ) }) })
@@ -5629,9 +5629,9 @@ function Ma() {
5629
5629
  confirmLoading: C,
5630
5630
  okText: "保存",
5631
5631
  cancelText: "取消",
5632
- onOk: () => void Re(),
5632
+ onOk: () => void De(),
5633
5633
  onCancel: () => {
5634
- A(!1), v(null);
5634
+ _(!1), v(null);
5635
5635
  },
5636
5636
  children: u ? /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
5637
5637
  /* @__PURE__ */ t("div", { children: [
@@ -5651,7 +5651,7 @@ function Ma() {
5651
5651
  rt,
5652
5652
  {
5653
5653
  value: u.category ?? "",
5654
- options: k.map((d) => ({ value: d.name })),
5654
+ options: A.map((d) => ({ value: d.name })),
5655
5655
  placeholder: "可选已有文件夹或输入新名称(留空=未分类)",
5656
5656
  filterOption: (d, b) => String((b == null ? void 0 : b.value) ?? "").toLowerCase().includes(d.toLowerCase()),
5657
5657
  onChange: (d) => v((b) => b && { ...b, category: d ?? "" }),
@@ -5661,7 +5661,7 @@ function Ma() {
5661
5661
  ] }),
5662
5662
  /* @__PURE__ */ t("div", { children: [
5663
5663
  /* @__PURE__ */ e("div", { style: { marginBottom: 4 }, children: "视频来源" }),
5664
- /* @__PURE__ */ t(qe, { children: [
5664
+ /* @__PURE__ */ t(Ke, { children: [
5665
5665
  /* @__PURE__ */ e(
5666
5666
  ae,
5667
5667
  {
@@ -5678,7 +5678,7 @@ function Ma() {
5678
5678
  M,
5679
5679
  {
5680
5680
  icon: /* @__PURE__ */ e(Xt, {}),
5681
- loading: I,
5681
+ loading: x,
5682
5682
  disabled: u.sourceType !== "UPLOAD",
5683
5683
  onClick: () => {
5684
5684
  var d;
@@ -5697,7 +5697,7 @@ function Ma() {
5697
5697
  onChange: (d) => {
5698
5698
  var f;
5699
5699
  const b = (f = d.target.files) == null ? void 0 : f[0];
5700
- d.target.value = "", b && Fe(b);
5700
+ d.target.value = "", b && ze(b);
5701
5701
  }
5702
5702
  }
5703
5703
  )
@@ -5790,12 +5790,12 @@ function Ma() {
5790
5790
  ve,
5791
5791
  {
5792
5792
  title: w ? `在「${w.name}」下新建子文件夹` : "新建文件夹",
5793
- open: _,
5793
+ open: S,
5794
5794
  width: 420,
5795
5795
  confirmLoading: Z,
5796
5796
  okText: "创建",
5797
5797
  cancelText: "取消",
5798
- onOk: () => void Ge(),
5798
+ onOk: () => void Fe(),
5799
5799
  onCancel: () => {
5800
5800
  y(!1), J(""), F(null);
5801
5801
  },
@@ -5808,7 +5808,7 @@ function Ma() {
5808
5808
  placeholder: "如:信息安全、新员工入职",
5809
5809
  value: j,
5810
5810
  onChange: (d) => J(d.target.value),
5811
- onPressEnter: () => void Ge()
5811
+ onPressEnter: () => void Fe()
5812
5812
  }
5813
5813
  ),
5814
5814
  /* @__PURE__ */ e("div", { style: { color: "#888", fontSize: 12, marginTop: 8 }, children: w ? `将在「${w.name}」之下创建子文件夹;同名文件夹不可重复。` : "创建后左侧树出现顶层文件夹;选中文件夹后点右上角「+」可在其下创建子文件夹。同名文件夹不可重复。" })
@@ -5817,16 +5817,10 @@ function Ma() {
5817
5817
  )
5818
5818
  ] });
5819
5819
  }
5820
- const za = "_container_nfu8c_5", Fa = "_sidebar_nfu8c_14", Ga = "_menuList_nfu8c_24", Ua = "_menuItem_nfu8c_29", ja = "_menuItemActive_nfu8c_47", Wa = "_menuIcon_nfu8c_54", Ha = "_panelArea_nfu8c_61", Ka = "_groupLabel_nfu8c_70", Se = {
5821
- container: za,
5822
- sidebar: Fa,
5823
- menuList: Ga,
5824
- menuItem: Ua,
5825
- menuItemActive: ja,
5826
- menuIcon: Wa,
5827
- panelArea: Ha,
5828
- groupLabel: Ka
5829
- }, qa = [
5820
+ const Ga = "_container_1kbx0_2", Ua = "_panelArea_1kbx0_11", Ye = {
5821
+ container: Ga,
5822
+ panelArea: Ua
5823
+ }, ja = [
5830
5824
  {
5831
5825
  label: "素材管理",
5832
5826
  items: [
@@ -5847,44 +5841,38 @@ const za = "_container_nfu8c_5", Fa = "_sidebar_nfu8c_14", Ga = "_menuList_nfu8c
5847
5841
  ]
5848
5842
  }
5849
5843
  ];
5850
- function si() {
5851
- const [l, n] = o("video");
5852
- return Ce((k) => ql(k.currentUser, "TRAINING")) ? /* @__PURE__ */ t("div", { className: Se.container, children: [
5853
- /* @__PURE__ */ e("aside", { className: Se.sidebar, children: /* @__PURE__ */ e("nav", { className: Se.menuList, children: qa.map((k) => /* @__PURE__ */ t("div", { children: [
5854
- /* @__PURE__ */ e("div", { className: Se.groupLabel, children: k.label }),
5855
- k.items.map((L) => /* @__PURE__ */ t(
5856
- "div",
5857
- {
5858
- className: `${Se.menuItem} ${l === L.key ? Se.menuItemActive : ""}`,
5859
- onClick: () => n(L.key),
5860
- children: [
5861
- /* @__PURE__ */ e("span", { className: Se.menuIcon, children: L.icon }),
5862
- /* @__PURE__ */ e("span", { children: L.label })
5863
- ]
5864
- },
5865
- L.key
5866
- ))
5867
- ] }, k.label)) }) }),
5868
- /* @__PURE__ */ t("main", { className: Se.panelArea, children: [
5869
- l === "video" && /* @__PURE__ */ e(Ma, {}),
5870
- l === "paper" && /* @__PURE__ */ e(la, {}),
5871
- l === "doc" && /* @__PURE__ */ e(Pn, {}),
5872
- l === "reward" && /* @__PURE__ */ e(ca, {}),
5873
- l === "course" && /* @__PURE__ */ e(Vl, {}),
5874
- l === "path" && /* @__PURE__ */ e(sa, {}),
5875
- l === "exam" && /* @__PURE__ */ e(zn, {}),
5876
- l === "ops" && /* @__PURE__ */ e(Mn, {}),
5877
- l === "stats" && /* @__PURE__ */ e(fa, {})
5844
+ function ai() {
5845
+ const [l, n] = o("video"), E = Ce((L) => Ql(L.currentUser, "TRAINING")), A = ue(() => ja.map((L) => ({
5846
+ key: L.label,
5847
+ title: L.label,
5848
+ items: L.items.map((I) => ({
5849
+ ...I,
5850
+ active: l === I.key,
5851
+ onClick: () => n(I.key)
5852
+ }))
5853
+ })), [l]);
5854
+ return E ? /* @__PURE__ */ t("div", { className: Ye.container, children: [
5855
+ /* @__PURE__ */ e(ml, { width: 220, storageKey: "ft_training_sidebar_collapsed", children: /* @__PURE__ */ e(pl, { groups: A, defaultCollapsed: !0 }) }),
5856
+ /* @__PURE__ */ t("main", { className: Ye.panelArea, children: [
5857
+ l === "video" && /* @__PURE__ */ e(Fa, {}),
5858
+ l === "paper" && /* @__PURE__ */ e(aa, {}),
5859
+ l === "doc" && /* @__PURE__ */ e(Bn, {}),
5860
+ l === "reward" && /* @__PURE__ */ e(ha, {}),
5861
+ l === "course" && /* @__PURE__ */ e(Jl, {}),
5862
+ l === "path" && /* @__PURE__ */ e(ca, {}),
5863
+ l === "exam" && /* @__PURE__ */ e(Gn, {}),
5864
+ l === "ops" && /* @__PURE__ */ e(Fn, {}),
5865
+ l === "stats" && /* @__PURE__ */ e(Ca, {})
5878
5866
  ] })
5879
- ] }) : /* @__PURE__ */ e("div", { className: Se.container, children: /* @__PURE__ */ e(
5867
+ ] }) : /* @__PURE__ */ e("div", { className: Ye.container, children: /* @__PURE__ */ e(
5880
5868
  "div",
5881
5869
  {
5882
- className: Se.panelArea,
5870
+ className: Ye.panelArea,
5883
5871
  style: { alignItems: "center", justifyContent: "center" },
5884
- children: /* @__PURE__ */ e(He, { description: "无培训管理权限(需要权限点:TRAINING)" })
5872
+ children: /* @__PURE__ */ e(We, { description: "无培训管理权限(需要权限点:TRAINING)" })
5885
5873
  }
5886
5874
  ) });
5887
5875
  }
5888
5876
  export {
5889
- si as default
5877
+ ai as default
5890
5878
  };