@yuku123/z-cognition-component 2.0.3 → 2.0.5

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 (160) hide show
  1. package/dist-lib/{BaseInput-DHrGPDB9.js → BaseInput-BYGhTvYI.js} +1 -1
  2. package/dist-lib/{ClockCircleOutlined-DP6fSLgk.js → ClockCircleOutlined-DACEazDR.js} +1 -1
  3. package/dist-lib/{Collapse-B77SsmFh.js → Collapse-CZbXdmBX.js} +85 -85
  4. package/dist-lib/{DeleteOutlined-BAZSAooQ.js → DeleteOutlined-CtmAIIV3.js} +4 -4
  5. package/dist-lib/{EllipsisOutlined-Dr4orLLw.js → EllipsisOutlined-pgnttbec.js} +94 -94
  6. package/dist-lib/{EyeOutlined-CudyDdjH.js → EyeOutlined-WKo_SfEi.js} +1 -1
  7. package/dist-lib/{LeftOutlined-CJasZIyX.js → LeftOutlined-B79bB1ZG.js} +1 -1
  8. package/dist-lib/{Pagination-BJ8wnqAa.js → Pagination-CFhUxTf8.js} +4 -4
  9. package/dist-lib/{RotateRightOutlined-DqyspFCO.js → RotateRightOutlined-TrlUrEUZ.js} +1 -1
  10. package/dist-lib/{Table-J_7eBbi7.js → Table-BF9fhMoT.js} +120 -120
  11. package/dist-lib/{accessAk-CA30m5eX.js → accessAk-BKnWRdnG.js} +1 -1
  12. package/dist-lib/{agents-eZDKzePP.js → agents-B5wsLzS-.js} +17 -17
  13. package/dist-lib/{ai-CNSn3-sd.js → ai-CccmxFWN.js} +1 -1
  14. package/dist-lib/{ai-chat-share-Yrqt_J6a.js → ai-chat-share-BjZFvUph.js} +4 -4
  15. package/dist-lib/{ak-manage-DklVFT5I.js → ak-manage-DD_F6560.js} +12 -12
  16. package/dist-lib/{approval-B-bCSmfi.js → approval-a4d4zlUd.js} +3 -3
  17. package/dist-lib/{approvals-B0ggYiyD.js → approvals-DnwdMEU5.js} +2 -2
  18. package/dist-lib/{assistant-Of0mgMsM.js → assistant-BA6oeNSC.js} +39 -39
  19. package/dist-lib/{assistant-history-DcyDhUzJ.js → assistant-history-Dfykk2a4.js} +5 -5
  20. package/dist-lib/{assistant-summary-CjLaTyFz.js → assistant-summary-BkmSqskU.js} +1 -1
  21. package/dist-lib/{audit-wDNCfmOy.js → audit-ZZhtw95x.js} +1 -1
  22. package/dist-lib/{bios-CIwO1AUK.js → bios-CSjjJ5Bc.js} +11 -11
  23. package/dist-lib/{callSuper-CpMOVGin.js → callSuper-Bk-mj4By.js} +1 -1
  24. package/dist-lib/{category-9gqNseEa.js → category-9CorlqP4.js} +1 -1
  25. package/dist-lib/{causal-CzAYukj9.js → causal-CYR-CTQK.js} +5 -5
  26. package/dist-lib/{changelog-CQfIMS51.js → changelog-BcZ6KQ3C.js} +2 -2
  27. package/dist-lib/{changelog-sKJMQrlV.js → changelog-Bqm52V9T.js} +1 -1
  28. package/dist-lib/{chat-panel-BPbqKckR.js → chat-panel-Ctr_CdZu.js} +28 -28
  29. package/dist-lib/{code-space-D_ZE966E.js → code-space-DG83npvh.js} +9 -9
  30. package/dist-lib/{colors-DpKdb8L-.js → colors-DJzrNkCt.js} +3 -3
  31. package/dist-lib/{community-9_7ExHcm.js → community-CXEbdg7X.js} +1 -1
  32. package/dist-lib/{community-CfWXxujB.js → community-Cmx4qRHG.js} +3 -3
  33. package/dist-lib/{community-material-page-Z_EZuBPl.js → community-material-page-jguoD9kV.js} +19 -19
  34. package/dist-lib/{connections-Bcqsp11M.js → connections-DJAsz2Hb.js} +6 -6
  35. package/dist-lib/{createForOfIteratorHelper-CasBzL_Q.js → createForOfIteratorHelper-BArIG0W5.js} +1 -1
  36. package/dist-lib/{detail-CV6xp_Jp.js → detail-BWBtDkWH.js} +4 -4
  37. package/dist-lib/{detail-EyLdjGpX.js → detail-CLqCbf3i.js} +37 -37
  38. package/dist-lib/{detail-DioaWKWj.js → detail-DKLwIzyI.js} +14 -14
  39. package/dist-lib/{development-CFcOIUKc.js → development-DG37KZEV.js} +17 -17
  40. package/dist-lib/{downloads-DtV5hOQv.js → downloads-Cg8PCqDp.js} +1 -1
  41. package/dist-lib/{edit-NtXUNj5N.js → edit-Cfv83zho.js} +24 -24
  42. package/dist-lib/{editor-KZhj-rwT.js → editor-BriqrlTB.js} +16 -16
  43. package/dist-lib/{editor-page-BaxK_OYm.js → editor-page-p2TQlJtq.js} +13 -13
  44. package/dist-lib/{embed-mf8t3QXh.js → embed-CoEyJMJx.js} +3236 -3245
  45. package/dist-lib/embed.css +2 -2
  46. package/dist-lib/{evaluation-CZTpC9v3.js → evaluation-C6CAwoWp.js} +2 -2
  47. package/dist-lib/{execution-B6HmOA2_.js → execution-BMkglxKG.js} +13 -13
  48. package/dist-lib/{graph-DHV-rdiK.js → graph-DkaHV2AX.js} +5 -5
  49. package/dist-lib/{index-BvJ35WL3.js → index-B21fkm-c.js} +9 -9
  50. package/dist-lib/{index-B5Roo82U.js → index-B2Hx9Q2V.js} +20 -20
  51. package/dist-lib/{index-CSJA8wvL.js → index-BMVRmc79.js} +36 -36
  52. package/dist-lib/{index-CdJ5ggvp.js → index-BQnPPCKW.js} +15 -15
  53. package/dist-lib/{index-BqTsLClH.js → index-BRyPjc2E.js} +1 -1
  54. package/dist-lib/{index-BkTegt8T.js → index-BeejupFS.js} +150 -150
  55. package/dist-lib/{index-BEO8itgt.js → index-BelOhXK9.js} +11 -11
  56. package/dist-lib/{index-DU6bO95v.js → index-Bqkx1OMz.js} +70 -70
  57. package/dist-lib/{index--AI-htgA.js → index-Bqpk0cSp.js} +11 -11
  58. package/dist-lib/{index-BoCtPJD4.js → index-BqvwZwaa.js} +181 -181
  59. package/dist-lib/{index-DaMLYomP.js → index-BwkQzFNo.js} +9 -9
  60. package/dist-lib/{index-BPbOPT2j.js → index-By7lJ7OM.js} +2 -2
  61. package/dist-lib/{index-B7SfTpox.js → index-C0bjp6yU.js} +19 -19
  62. package/dist-lib/{index-B12ZggsE.js → index-C8VIE0cr.js} +6 -6
  63. package/dist-lib/{index-C2CV4bte.js → index-CAk-RbBL.js} +2 -2
  64. package/dist-lib/{index-3J47mTL1.js → index-CFMm6EBU.js} +1 -1
  65. package/dist-lib/{index-zXwXfn-X.js → index-CkrD_v5E.js} +12 -12
  66. package/dist-lib/{index-DhSCFLtV.js → index-Ct0MiSE7.js} +81 -81
  67. package/dist-lib/{index-DKAGVWMX.js → index-D1vltZIy.js} +56 -56
  68. package/dist-lib/{index-BsoHetYT.js → index-DQ1YCU_6.js} +38 -38
  69. package/dist-lib/{index-xQmDaKK3.js → index-DQL0rlRD.js} +1 -1
  70. package/dist-lib/{index-DgfIEgir.js → index-Dfpj76EP.js} +1 -1
  71. package/dist-lib/{index-Bw4M9KLv.js → index-DljgNXFS.js} +73 -73
  72. package/dist-lib/{index-CgwK2maq.js → index-DrC19OH2.js} +38 -38
  73. package/dist-lib/{index-CLhLA2ig.js → index-DvdRKgvN.js} +64 -64
  74. package/dist-lib/{index-DGbjbjBY.js → index-EoyTsMVR.js} +2 -2
  75. package/dist-lib/{index-Bln3mJfp.js → index-MN71_qSy.js} +2 -2
  76. package/dist-lib/{index-CwyFMPcr.js → index-MrasjwT1.js} +10 -10
  77. package/dist-lib/{index-VeAMz0iC.js → index-TVyOVj_f.js} +39 -39
  78. package/dist-lib/{index-D6ns_Xmf.js → index-cWJDD_7e.js} +2 -2
  79. package/dist-lib/{index-QZ9JPfVR.js → index-fSzyAUm4.js} +10 -10
  80. package/dist-lib/{index-CF0ucN_K.js → index-gSQpnDVD.js} +3 -3
  81. package/dist-lib/{index-BkJjYgKD.js → index-jfZsBNfr.js} +262 -262
  82. package/dist-lib/{index-Bd7AGv4a.js → index-lpiHPbbx.js} +2 -2
  83. package/dist-lib/{index-CvxfA0ZK.js → index-ly9q05gX.js} +14 -14
  84. package/dist-lib/{index-CtqUgNxs.js → index-mANVYpNc.js} +14 -14
  85. package/dist-lib/{index-2SysmGHo.js → index-o4EXX17N.js} +73 -73
  86. package/dist-lib/index.js +1 -1
  87. package/dist-lib/{json-field-COcz5F2R.js → json-field-BqyYVncd.js} +2 -2
  88. package/dist-lib/{kb-form-modal-D9gnvXbE.js → kb-form-modal-B9_s7HKJ.js} +20 -19
  89. package/dist-lib/{kbTeam-CorrPJFr.js → kbTeam-D_xeQOnk.js} +1 -1
  90. package/dist-lib/{knowledge-base-DJkjMFHW.js → knowledge-base-BIlYHNX_.js} +21 -20
  91. package/dist-lib/{knowledge-hub-DKiDlaZz.js → knowledge-hub-DS9jz2ml.js} +12 -12
  92. package/dist-lib/{login-56zv4aLO.js → login-81vYOi7C.js} +6 -6
  93. package/dist-lib/{markdown-lite-p1tiuSZM.js → markdown-lite-C0TxiY46.js} +30 -30
  94. package/dist-lib/{material-DtPASeqq.js → material-0d6ENLyU.js} +1 -1
  95. package/dist-lib/{material-draft-markdown-281d5_GN.js → material-draft-markdown-BqqPZtbw.js} +2 -2
  96. package/dist-lib/{material-original-preview-CPGjdmbe.js → material-original-preview-BDeVDdfb.js} +5 -5
  97. package/dist-lib/{material-workspace-model-QLsU5qUO.js → material-workspace-model-DPaWrRpo.js} +1 -1
  98. package/dist-lib/{member-Cz-OIdj9.js → member-Dc8Fi9Yt.js} +1 -1
  99. package/dist-lib/memory-reorganization-DN4oUE9r.js +1007 -0
  100. package/dist-lib/{memory-spaces-D-orVNR7.js → memory-spaces-BJp4AIUb.js} +19 -19
  101. package/dist-lib/{message-C9gfvpGg.js → message-C6yBkCNm.js} +1 -1
  102. package/dist-lib/{message-D6FhzB7J.js → message-DPeo_cTR.js} +3 -3
  103. package/dist-lib/{messages-cctmEVcG.js → messages-DdfLmuQI.js} +2 -2
  104. package/dist-lib/{meta-DT_O4zM9.js → meta-CBLO5qXw.js} +2 -2
  105. package/dist-lib/{metrics-BNeVcI8-.js → metrics-7ptCjiKn.js} +2 -2
  106. package/dist-lib/{mobile-D8kZjfQU.js → mobile-DC0hcQji.js} +2 -2
  107. package/dist-lib/{monitor-DexMYjzF.js → monitor-DX1u-yHi.js} +3 -3
  108. package/dist-lib/{monitor-DTUyqumg.js → monitor-DoWMKmYn.js} +3 -3
  109. package/dist-lib/{my-access-DWBV6ohp.js → my-access-64Rn1HXY.js} +3 -3
  110. package/dist-lib/{my-permissions-B-gJZQYM.js → my-permissions-DKjDBIjY.js} +4 -4
  111. package/dist-lib/{navigation-DVlyWnpD.js → navigation-B_vBrx_f.js} +1 -1
  112. package/dist-lib/{new-JmARyD88.js → new-D3Q8_hzT.js} +5 -5
  113. package/dist-lib/{ontology-B4rkO33J.js → ontology-Ct7a7W50.js} +5 -5
  114. package/dist-lib/{ontology-dataprep-BwD5TKs2.js → ontology-dataprep-DhZWKCnw.js} +1 -1
  115. package/dist-lib/{ontology-domains-zxFrjn0v.js → ontology-domains-BG6ZPWXm.js} +35 -35
  116. package/dist-lib/{ontology-extract-BHOxruRO.js → ontology-extract-53pAcKaP.js} +22 -22
  117. package/dist-lib/{ontology-extract-iR_rXxFe.js → ontology-extract-D9RViy3r.js} +1 -1
  118. package/dist-lib/{ontology-flow-Dv5iQ20f.js → ontology-flow-Dx_5Dv1S.js} +3 -3
  119. package/dist-lib/{ontology-flow-CW0SzeK7.js → ontology-flow-cbGY8kOV.js} +6 -6
  120. package/dist-lib/{ontology-modeling-B9wswveh.js → ontology-modeling-9beSFK8t.js} +2 -2
  121. package/dist-lib/{ontology-modeling-hakCluBi.js → ontology-modeling-BkFq7sU1.js} +33 -33
  122. package/dist-lib/{ontology-scenarios-DKnfydG6.js → ontology-scenarios-ANZMjyMB.js} +1 -1
  123. package/dist-lib/{ontology-scenarios-C2kp7Rs-.js → ontology-scenarios-BC1UBvtT.js} +350 -350
  124. package/dist-lib/{ontology-task-config-DmnWyCCB.js → ontology-task-config-dDFRrWtJ.js} +1 -1
  125. package/dist-lib/{ontology-terms-C-NhpcIZ.js → ontology-terms-B9H9VcuR.js} +18 -18
  126. package/dist-lib/{ontology-terms-BoNB-5ar.js → ontology-terms-BcXCuUsy.js} +1 -1
  127. package/dist-lib/{permission-Dq1-AOQw.js → permission-pETAJZl6.js} +2 -2
  128. package/dist-lib/{preset-DCNSE--Y.js → preset-5F2VcdUE.js} +3 -3
  129. package/dist-lib/{progress-CZxOOnIs.js → progress-COKT887h.js} +31 -31
  130. package/dist-lib/{quota-oICQRHFU.js → quota-BzWY9oeV.js} +7 -6
  131. package/dist-lib/{row-By17TCiW.js → row-BFBgIphS.js} +2 -2
  132. package/dist-lib/{runs-DQTDpPaN.js → runs-7LWS6iAN.js} +6 -6
  133. package/dist-lib/{save-blob-CwCZE1Dn.js → save-blob-D_q2LunT.js} +2 -2
  134. package/dist-lib/{scenario-mapping-preview-sJtjgmry.js → scenario-mapping-preview-CDg3_f0U.js} +5 -5
  135. package/dist-lib/{scenario-simple-form-BvKSPFzw.js → scenario-simple-form--KSAzRS6.js} +9 -9
  136. package/dist-lib/{schedule-CwkPPSuT.js → schedule-BDrhhUsA.js} +2 -2
  137. package/dist-lib/{script-gYJAFobb.js → script-CtLQ-RSy.js} +14 -14
  138. package/dist-lib/{settings-CJd5Jj4y.js → settings--NTE0Hux.js} +71 -70
  139. package/dist-lib/{shared-DG5-VCDM.js → shared-BJA7rkgy.js} +1 -1
  140. package/dist-lib/{shared-utils-CFHws1DA.js → shared-utils-E5RBBDWx.js} +2 -2
  141. package/dist-lib/{skills-lxpJ5Lzx.js → skills-IziqBZOm.js} +5 -5
  142. package/dist-lib/{source-selection-DJnQQckl.js → source-selection-WsUOEBKN.js} +1 -1
  143. package/dist-lib/{sources-C83LpCcV.js → sources-D7ViKZtA.js} +12 -12
  144. package/dist-lib/{style-B5THvtDY.js → style-B7phAB4-.js} +8 -8
  145. package/dist-lib/{task-config-BNYoOb79.js → task-config-BhVD-uNg.js} +3 -3
  146. package/dist-lib/{tech-LuZvKDo6.js → tech-C2bOwBWk.js} +1 -1
  147. package/dist-lib/{templates-a-kbCamr.js → templates-Bh3ryZxt.js} +6 -6
  148. package/dist-lib/{tenant-login-COB-5h_2.js → tenant-login-D3193dIQ.js} +30 -30
  149. package/dist-lib/{tools-CrA6GrY6.js → tools-DCLdtvbE.js} +56 -56
  150. package/dist-lib/use-current-tenant-KGbU5HpT.js +22 -0
  151. package/dist-lib/{use-domain-access-ehGJBGvU.js → use-domain-access-CcPd_gzX.js} +1 -1
  152. package/dist-lib/{use-g6-graph-DfRnsBS6.js → use-g6-graph-CPKL_pXo.js} +1 -1
  153. package/dist-lib/{use-graph-layers-CrhEeHfD.js → use-graph-layers-Bi90s60B.js} +9 -9
  154. package/dist-lib/{useBreakpoint-Cul9y9Cu.js → useBreakpoint-SG_cMfLJ.js} +8 -8
  155. package/dist-lib/{useForm-B-dwOwJ8.js → useForm-Cp45oXOc.js} +14 -14
  156. package/dist-lib/{version-control-panel-mWXkC-uB.js → version-control-panel-Db_RP6gX.js} +1 -1
  157. package/dist-lib/{version-management-nPlG7wQO.js → version-management-DuCdU_fJ.js} +2 -2
  158. package/dist-lib/{welcome-Cqv1-rXT.js → welcome-DLcdZGtl.js} +1 -1
  159. package/package.json +1 -1
  160. package/dist-lib/memory-reorganization-DgJnWIrW.js +0 -8
@@ -1,16 +1,17 @@
1
1
  import { jsx as a, jsxs as i, Fragment as L } from "react/jsx-runtime";
2
- import { T as B, _ as O, j as K, I as m, $ as H, U, a0 as j, a1 as q, a2 as F, t as G } from "./embed-mf8t3QXh.js";
2
+ import { Z as B, j as O, I as m, _ as K, T as H, $ as U, a0 as j, a1 as q, t as F } from "./embed-CoEyJMJx.js";
3
3
  import { H as u } from "./index-mmwKYfDC.js";
4
- import { useState as s, useMemo as X, useEffect as Y } from "react";
5
- const Z = "z-cognition:kb-changed";
6
- function ae() {
7
- typeof window < "u" && window.dispatchEvent(new Event(Z));
4
+ import { u as G } from "./use-current-tenant-KGbU5HpT.js";
5
+ import { useState as s, useMemo as Z, useEffect as X } from "react";
6
+ const Y = "z-cognition:kb-changed";
7
+ function te() {
8
+ typeof window < "u" && window.dispatchEvent(new Event(Y));
8
9
  }
9
10
  function J() {
10
11
  const n = /* @__PURE__ */ new Date(), e = (h) => String(h).padStart(2, "0"), r = `${n.getFullYear()}${e(n.getMonth() + 1)}${e(n.getDate())}_${e(n.getHours())}${e(n.getMinutes())}`, d = Math.random().toString(36).slice(2, 6).replace(/[^a-z0-9]/g, "x");
11
12
  return `kb_${r}_${d}`;
12
13
  }
13
- function te({
14
+ function ne({
14
15
  mode: n,
15
16
  kb: e,
16
17
  teams: r = [],
@@ -18,21 +19,21 @@ function te({
18
19
  onClose: h,
19
20
  onSaved: C
20
21
  }) {
21
- const g = B(), [E, $] = s(e ? e.name : ""), [y] = s(() => e ? e.code : J()), [w, P] = s(""), [I, S] = s(
22
+ const g = G(), [E, $] = s(e ? e.name : ""), [y] = s(() => e ? e.code : J()), [w, P] = s(""), [I, S] = s(
22
23
  e && e.embeddingModel || ""
23
24
  ), [p, R] = s(
24
25
  e && e.description || ""
25
26
  ), [o, M] = s(
26
27
  (e == null ? void 0 : e.visibility) || "PUBLIC"
27
- ), [v, V] = s(() => (e == null ? void 0 : e.scopeType) === "TEAM" && e.teamId ? `TEAM:${e.teamId}` : d && r.some((t) => t.teamId === d) ? `TEAM:${d}` : "PERSONAL"), [T, f] = s(""), [_, A] = s(!1), N = X(() => {
28
+ ), [v, V] = s(() => (e == null ? void 0 : e.scopeType) === "TEAM" && e.teamId ? `TEAM:${e.teamId}` : d && r.some((t) => t.teamId === d) ? `TEAM:${d}` : "PERSONAL"), [T, f] = s(""), [_, A] = s(!1), N = Z(() => {
28
29
  const t = /^TEAM:(.+)$/.exec(v);
29
30
  return t ? r.find((c) => c.teamId === t[1]) : void 0;
30
31
  }, [v, r]), l = !!N, x = l ? "TEAM" : "PERSONAL";
31
- Y(() => {
32
+ X(() => {
32
33
  if (n !== "create")
33
34
  return;
34
35
  let t = !0;
35
- return O().then((c) => {
36
+ return B().then((c) => {
36
37
  t && (c != null && c.name) && P(c.name);
37
38
  }).catch(() => {
38
39
  }), () => {
@@ -50,7 +51,7 @@ function te({
50
51
  return;
51
52
  }
52
53
  f(""), A(!0);
53
- const D = n === "create" ? await q({
54
+ const D = n === "create" ? await j({
54
55
  name: t,
55
56
  code: c,
56
57
  type: "MIX",
@@ -59,19 +60,19 @@ function te({
59
60
  scopeType: x,
60
61
  teamId: l ? N.teamId : void 0,
61
62
  ...l ? {} : { visibility: o }
62
- }) : await F({
63
+ }) : await q({
63
64
  kbId: e.kbId,
64
65
  name: t,
65
66
  description: p.trim()
66
67
  });
67
- A(!1), D !== void 0 && (G(
68
+ A(!1), D !== void 0 && (F(
68
69
  n === "create" ? l ? "团队知识库已创建" : "知识库已创建" : "基本信息已保存",
69
70
  t,
70
71
  "success"
71
72
  ), C());
72
73
  };
73
74
  return /* @__PURE__ */ a(
74
- K,
75
+ O,
75
76
  {
76
77
  icon: n === "create" ? "plus" : "edit",
77
78
  title: n === "create" ? l ? "新建团队知识库" : "新建知识库" : `编辑知识库 · ${(e == null ? void 0 : e.name) || ""}`,
@@ -171,17 +172,17 @@ function te({
171
172
  className: "select mono",
172
173
  value: I,
173
174
  onChange: (t) => S(t.target.value),
174
- children: H.map((t) => /* @__PURE__ */ a("option", { value: t.value, children: t.label }, t.value || "default"))
175
+ children: K.map((t) => /* @__PURE__ */ a("option", { value: t.value, children: t.label }, t.value || "default"))
175
176
  }
176
177
  ) : /* @__PURE__ */ a("div", { className: "readonly-value", children: (e == null ? void 0 : e.embeddingModel) || "—" })
177
178
  ] }),
178
179
  /* @__PURE__ */ i("div", { className: "field", children: [
179
180
  /* @__PURE__ */ a("label", { children: "所属租户" }),
180
- /* @__PURE__ */ a("div", { className: "readonly-value", children: g ? U(g) : "—" })
181
+ /* @__PURE__ */ a("div", { className: "readonly-value", children: g ? H(g) : "—" })
181
182
  ] }),
182
183
  /* @__PURE__ */ i("div", { className: "field", children: [
183
184
  /* @__PURE__ */ a("label", { children: "负责人" }),
184
- /* @__PURE__ */ a("div", { className: "readonly-value", children: n === "create" ? w || `本地账号 actorId ${j()}` : `actorId ${e == null ? void 0 : e.ownerId}` })
185
+ /* @__PURE__ */ a("div", { className: "readonly-value", children: n === "create" ? w || `本地账号 actorId ${U()}` : `actorId ${e == null ? void 0 : e.ownerId}` })
185
186
  ] }),
186
187
  /* @__PURE__ */ i("div", { className: "field span-2", children: [
187
188
  /* @__PURE__ */ i("label", { children: [
@@ -242,6 +243,6 @@ function te({
242
243
  );
243
244
  }
244
245
  export {
245
- te as K,
246
- ae as e
246
+ ne as K,
247
+ te as e
247
248
  };
@@ -1,4 +1,4 @@
1
- import { t as d, r as t, K as m } from "./embed-mf8t3QXh.js";
1
+ import { t as d, r as t, K as m } from "./embed-CoEyJMJx.js";
2
2
  const a = "/kb/v1/knowledgeBase/team", r = () => ({ "X-Tenant-Code": m() });
3
3
  async function s(e, o = {}) {
4
4
  try {
@@ -1,12 +1,13 @@
1
1
  import { jsx as e, jsxs as n, Fragment as G } from "react/jsx-runtime";
2
- import { j as ye, I as g, a as ft, g as Ke, t as Y, k as vt, z as Nt, y as yt, N as Ct, u as Se, O as $e, P as Ze, Q as Te, r as It, K as kt, T as wt, q as Mt, p as At, U as Be } from "./embed-mf8t3QXh.js";
3
- import { q as Fe, s as Ve, c as $t, u as Tt, a as Oe, r as Et, d as Rt, l as xt } from "./kbTeam-CorrPJFr.js";
4
- import { c as He, a as zt, b as Kt, l as Pt, r as St, m as Dt } from "./changelog-sKJMQrlV.js";
5
- import { e as Lt, K as qe } from "./kb-form-modal-D9gnvXbE.js";
2
+ import { j as ye, I as g, a as ft, g as Ke, t as Y, k as vt, z as Nt, y as yt, N as Ct, u as Se, O as $e, P as Ze, Q as Te, r as It, K as kt, q as wt, p as Mt, T as Be } from "./embed-CoEyJMJx.js";
3
+ import { q as Fe, s as Ve, c as At, u as $t, a as Oe, r as Tt, d as Et, l as Rt } from "./kbTeam-D_xeQOnk.js";
4
+ import { c as He, a as xt, b as zt, l as Kt, r as Pt, m as St } from "./changelog-Bqm52V9T.js";
5
+ import { e as Dt, K as qe } from "./kb-form-modal-B9_s7HKJ.js";
6
+ import { u as Lt } from "./use-current-tenant-KGbU5HpT.js";
6
7
  import { useState as p, useCallback as Ee, useEffect as H, useRef as De, useMemo as Z, useId as _t } from "react";
7
8
  import { u as Bt } from "./use-split-width-SsLqbGjr.js";
8
9
  import { H as We } from "./index-mmwKYfDC.js";
9
- import { a as Je, R as je } from "./member-Cz-OIdj9.js";
10
+ import { a as Je, R as je } from "./member-Dc8Fi9Yt.js";
10
11
  import { f as Le } from "./format-CWI99NCN.js";
11
12
  function Ft({
12
13
  version: t,
@@ -41,7 +42,7 @@ function Ft({
41
42
  " 个变更要点"
42
43
  ] }),
43
44
  /* @__PURE__ */ n("span", { children: [
44
- zt(t),
45
+ xt(t),
45
46
  " 个提交"
46
47
  ] })
47
48
  ] })
@@ -56,7 +57,7 @@ function Ft({
56
57
  /* @__PURE__ */ n("b", { children: [
57
58
  o.title,
58
59
  " ",
59
- /* @__PURE__ */ e("span", { className: `tag ${Kt(o.category)} sm`, children: o.category })
60
+ /* @__PURE__ */ e("span", { className: `tag ${zt(o.category)} sm`, children: o.category })
60
61
  ] }),
61
62
  /* @__PURE__ */ e("small", { children: o.detail || "" })
62
63
  ] })
@@ -140,12 +141,12 @@ function Ye({
140
141
  return;
141
142
  }
142
143
  K(""), de(!0);
143
- const E = t === "create" ? await $t({
144
+ const E = t === "create" ? await At({
144
145
  name: s,
145
146
  code: N,
146
147
  description: u.trim(),
147
148
  visibility: A
148
- }) : await Tt({
149
+ }) : await $t({
149
150
  teamId: i,
150
151
  name: s,
151
152
  description: u.trim(),
@@ -166,7 +167,7 @@ function Ye({
166
167
  B(!1), E !== void 0 && (Y("团队角色已更新", `${s.name || s.memberId} · ${Ue[N]}`), await Q());
167
168
  }, be = async (s) => {
168
169
  B(!0);
169
- const N = await Et(i, s.memberId);
170
+ const N = await Tt(i, s.memberId);
170
171
  B(!1), N !== void 0 && (Y("已移除成员", s.name || String(s.memberId)), await Q(), await O(z));
171
172
  }, ae = () => {
172
173
  D(""), $(!0), O(z);
@@ -193,7 +194,7 @@ function Ye({
193
194
  }))) {
194
195
  K(""), de(!0);
195
196
  try {
196
- if (await Rt(i, { rethrow: !0 }) === void 0)
197
+ if (await Et(i, { rethrow: !0 }) === void 0)
197
198
  return;
198
199
  Y("团队已删除", a == null ? void 0 : a.name, "success"), d();
199
200
  } catch (N) {
@@ -1601,8 +1602,8 @@ function hn(t, a) {
1601
1602
  };
1602
1603
  }, [a]), { activity: r, activityLoadedKey: o, activityFailedKey: y };
1603
1604
  }
1604
- function kn() {
1605
- const t = Se(), a = wt(), [r] = p(cn), [d, o] = p(
1605
+ function wn() {
1606
+ const t = Se(), a = Lt(), [r] = p(cn), [d, o] = p(
1606
1607
  (r == null ? void 0 : r.records) ?? []
1607
1608
  ), [i, y] = p((r == null ? void 0 : r.teams) ?? []), [h, c] = p(!r), [v, A] = p(""), [b, u] = p("personal"), [k, x] = p(""), [f, T] = p("mine"), [w, z] = p(""), [S, V] = p("cards"), [D, j] = p(1), [$, X] = p(nn), [M, I] = p(null), [ee, U] = p(
1608
1609
  null
@@ -1610,14 +1611,14 @@ function kn() {
1610
1611
  l.silent || c(!0), A("");
1611
1612
  try {
1612
1613
  const [m, C] = await Promise.all([
1613
- Mt(
1614
+ wt(
1614
1615
  { current: 1, size: 500, includeInaccessible: !0 },
1615
1616
  { rethrow: !0 }
1616
1617
  ),
1617
- xt({ rethrow: !0 }).catch(() => {
1618
+ Rt({ rethrow: !0 }).catch(() => {
1618
1619
  })
1619
1620
  ]), R = (m == null ? void 0 : m.records) || [], P = C || [];
1620
- o(R), y(P), rn({ records: R, teams: P }), Lt();
1621
+ o(R), y(P), rn({ records: R, teams: P }), Dt();
1621
1622
  } catch (m) {
1622
1623
  A(m.message || "服务器错误");
1623
1624
  } finally {
@@ -1630,15 +1631,15 @@ function kn() {
1630
1631
  an($);
1631
1632
  }, [$]), H(() => {
1632
1633
  let l = !1;
1633
- return Pt().then((m) => {
1634
- l || !m || !m.versionCode || m.versionCode !== St() && (U(m), Dt(m.versionCode));
1634
+ return Kt().then((m) => {
1635
+ l || !m || !m.versionCode || m.versionCode !== Pt() && (U(m), St(m.versionCode));
1635
1636
  }).catch(() => {
1636
1637
  }), () => {
1637
1638
  l = !0;
1638
1639
  };
1639
1640
  }, []), H(() => {
1640
1641
  let l = !1;
1641
- return At({ view: "mine", status: "PENDING", size: 100 }).then((m) => {
1642
+ return Mt({ view: "mine", status: "PENDING", size: 100 }).then((m) => {
1642
1643
  if (l || !m)
1643
1644
  return;
1644
1645
  const C = {};
@@ -2136,5 +2137,5 @@ function kn() {
2136
2137
  );
2137
2138
  }
2138
2139
  export {
2139
- kn as default
2140
+ wn as default
2140
2141
  };
@@ -1,10 +1,10 @@
1
1
  import { jsxs as t, jsx as a, Fragment as N } from "react/jsx-runtime";
2
- import { u as Ie, a as ze, q as Se, I as n, V as Ae, j as Le } from "./embed-mf8t3QXh.js";
3
- import { M as He } from "./markdown-lite-p1tiuSZM.js";
2
+ import { u as Ie, a as ze, q as Se, I as n, U as Ae, j as Le } from "./embed-CoEyJMJx.js";
3
+ import { M as He } from "./markdown-lite-C0TxiY46.js";
4
4
  /* empty css */
5
5
  import { useRef as w, useState as i, useEffect as C, useCallback as ee } from "react";
6
- import { u as Ke, a as xe, d as I, t as ae, s as Te, b as te, c as Re, C as Oe } from "./assistant-history-DcyDhUzJ.js";
7
- import { l as se, a as ne, d as De, r as Me } from "./ai-CNSn3-sd.js";
6
+ import { u as Ke, a as xe, d as I, t as ae, s as Te, b as te, c as Re, C as Oe } from "./assistant-history-Dfykk2a4.js";
7
+ import { l as se, a as ne, d as De, r as Me } from "./ai-CccmxFWN.js";
8
8
  import { u as qe } from "./use-split-width-SsLqbGjr.js";
9
9
  const M = "kb_hub_assistant", Ee = [
10
10
  {
@@ -41,7 +41,7 @@ function q({
41
41
  /* @__PURE__ */ a("div", { className: "kba-rail-body", children: k })
42
42
  ] });
43
43
  }
44
- function Ue() {
44
+ function Be() {
45
45
  const o = Ie(), { context: c, loading: k } = ze(), {
46
46
  turns: d,
47
47
  streaming: r,
@@ -50,7 +50,7 @@ function Ue() {
50
50
  stop: ie,
51
51
  reset: le,
52
52
  openConversation: S
53
- } = Ke("", { view: "hub" }, M), W = w(null), h = w(null), A = w(null), [L, H] = i(""), [m, b] = i(!1), [_, re] = i([]), [oe, $] = i(!1), [j, F] = i(""), [u, ce] = i([]), [K, de] = i(!1), [G, x] = i(null), [he, y] = i(!1), [P, B] = i(""), [U, V] = i(""), [me, J] = i(!1), {
53
+ } = Ke("", { view: "hub" }, M), W = w(null), h = w(null), A = w(null), [L, H] = i(""), [m, b] = i(!1), [_, re] = i([]), [oe, $] = i(!1), [j, F] = i(""), [u, ce] = i([]), [K, de] = i(!1), [G, x] = i(null), [he, y] = i(!1), [P, U] = i(""), [B, J] = i(""), [me, Q] = i(!1), {
54
54
  width: be,
55
55
  containerRef: ue,
56
56
  startResize: pe,
@@ -87,7 +87,7 @@ function Ue() {
87
87
  return;
88
88
  }
89
89
  b(!0), ye();
90
- }, Q = c != null && c.authenticated ? c.principalId : void 0, p = I(Q) ?? void 0, g = p !== void 0 && G !== null && G !== p, X = async (e) => {
90
+ }, V = c != null && c.authenticated ? c.principalId : void 0, p = I(V) ?? void 0, g = p !== void 0 && G !== null && G !== p, X = async (e) => {
91
91
  var l;
92
92
  F(e.conversationId);
93
93
  const s = await ne(void 0, e.conversationId);
@@ -110,7 +110,7 @@ function Ue() {
110
110
  })();
111
111
  }
112
112
  }, [k, p, d.length, r, S]);
113
- const v = Te(_, Q);
113
+ const v = Te(_, V);
114
114
  C(() => {
115
115
  const e = W.current;
116
116
  e && (e.scrollTop = e.scrollHeight);
@@ -125,9 +125,9 @@ function Ue() {
125
125
  }, O = d.length > 0, Z = !!z && !g && !r, ve = async () => {
126
126
  if (!z || me)
127
127
  return;
128
- J(!0);
128
+ Q(!0);
129
129
  const e = await De(z);
130
- J(!1), e && (V(e.shareToken), B(
130
+ Q(!1), e && (J(e.shareToken), U(
131
131
  `${window.location.origin}${window.location.pathname}#/s/${e.shareToken}`
132
132
  ), y(!0));
133
133
  }, fe = async () => {
@@ -138,7 +138,7 @@ function Ue() {
138
138
  (e = window.getSelection) == null || e.call(window);
139
139
  }
140
140
  }, Ne = async () => {
141
- U && (await Me(U), y(!1), V(""), B(""));
141
+ B && (await Me(B), y(!1), J(""), U(""));
142
142
  }, we = () => {
143
143
  const e = h.current;
144
144
  e && (e.style.height = "auto");
@@ -503,5 +503,5 @@ function Ue() {
503
503
  }
504
504
  export {
505
505
  M as AI_HUB_AGENT_CODE,
506
- Ue as default
506
+ Be as default
507
507
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as a, jsxs as u, Fragment as m } from "react/jsx-runtime";
2
2
  import { useState as c, useEffect as g } from "react";
3
- import { r as h, s as b, a as w, L } from "./navigation-DVlyWnpD.js";
4
- import { an as v, _ as x, di as S, B as C, S as U } from "./embed-mf8t3QXh.js";
5
- import { A as y } from "./index-B7SfTpox.js";
3
+ import { r as h, s as b, a as w, L } from "./navigation-B_vBrx_f.js";
4
+ import { ay as v, Z as x, di as S, B as y, S as C } from "./embed-CoEyJMJx.js";
5
+ import { A as U } from "./index-C0bjp6yU.js";
6
6
  function P() {
7
7
  const r = v(), [t, o] = c("probing"), [d, l] = c(), [p, f] = c(0), s = h(r.search, r.state), i = new URLSearchParams(r.search).get("apex") === "1";
8
8
  return g(() => {
@@ -22,12 +22,12 @@ function P() {
22
22
  window.location.assign(`${w().loginUrl}?redirect=${encodeURIComponent(e)}`);
23
23
  }
24
24
  }, [t, i, s]), t === "unauthenticated" && !i ? /* @__PURE__ */ a(S, { to: `/login/tenant${r.search}`, state: r.state, replace: !0 }) : /* @__PURE__ */ a(L, { children: t === "error" ? /* @__PURE__ */ u(m, { children: [
25
- /* @__PURE__ */ a(y, { className: "future-brain-tenant-login-alert", type: "error", showIcon: !0, message: d || "登录状态校验失败" }),
26
- /* @__PURE__ */ a(C, { size: "large", block: !0, onClick: () => {
25
+ /* @__PURE__ */ a(U, { className: "future-brain-tenant-login-alert", type: "error", showIcon: !0, message: d || "登录状态校验失败" }),
26
+ /* @__PURE__ */ a(y, { size: "large", block: !0, onClick: () => {
27
27
  o("probing"), l(void 0), f((e) => e + 1);
28
28
  }, children: "重试" })
29
29
  ] }) : /* @__PURE__ */ u("div", { className: "future-brain-login-pending", role: "status", children: [
30
- /* @__PURE__ */ a(U, { size: "large" }),
30
+ /* @__PURE__ */ a(C, { size: "large" }),
31
31
  /* @__PURE__ */ a("span", { children: t === "probing" ? "正在校验登录状态…" : "正在跳转…" })
32
32
  ] }) });
33
33
  }
@@ -1,11 +1,11 @@
1
1
  import { jsx as I, jsxs as st } from "react/jsx-runtime";
2
2
  import * as d from "react";
3
3
  import Ce, { useContext as qe, useRef as ye, useState as pe, useEffect as Ne, useMemo as tt, Fragment as Nt } from "react";
4
- import { a6 as oe, bk as ce, at as Rt, cH as Et, bg as P, bH as He, bi as W, bx as Ot, aV as Mt, cI as $t, bh as Re, b0 as ie, cJ as Pt, ah as Tt, bf as lt, bj as Ve, a$ as ze, a7 as _t, a8 as nt, bL as be, cK as kt, cL as Lt, ce as zt, bJ as At, ap as ct, aA as jt, a9 as Dt, aG as ut, co as dt, cf as ke, aq as Yt, ar as Xt, b1 as Wt, I as Zt } from "./embed-mf8t3QXh.js";
5
- import { R as Ht } from "./EyeOutlined-CudyDdjH.js";
4
+ import { a5 as oe, bn as ce, az as Rt, cH as Et, bj as P, bI as He, bl as W, by as Ot, am as Mt, cI as $t, bk as Re, b4 as ie, cJ as Pt, as as Tt, bi as lt, bm as Ve, b3 as ze, a6 as _t, a7 as nt, bL as be, cK as kt, cL as Lt, cd as zt, af as At, ac as ct, aG as jt, a8 as Dt, aM as ut, cn as dt, ce as ke, ah as Yt, aj as Xt, b5 as Wt, I as Zt } from "./embed-CoEyJMJx.js";
5
+ import { R as Ht } from "./EyeOutlined-WKo_SfEi.js";
6
6
  import { a as Se } from "./addEventListener-Dkqq5HCC.js";
7
- import { a as Fe, R as Be } from "./LeftOutlined-CJasZIyX.js";
8
- import { R as Vt } from "./RotateRightOutlined-DqyspFCO.js";
7
+ import { a as Fe, R as Be } from "./LeftOutlined-B79bB1ZG.js";
8
+ import { R as Vt } from "./RotateRightOutlined-TrlUrEUZ.js";
9
9
  function ft() {
10
10
  var t = document.documentElement.clientWidth, e = window.innerHeight || document.documentElement.clientHeight;
11
11
  return {
@@ -21,7 +21,7 @@ function Ft(t) {
21
21
  };
22
22
  }
23
23
  var Ee = /* @__PURE__ */ d.createContext(null), Bt = function(e) {
24
- var n = e.visible, o = e.maskTransitionName, r = e.getContainer, a = e.prefixCls, s = e.rootClassName, l = e.icons, i = e.countRender, f = e.showSwitch, u = e.showProgress, c = e.current, g = e.transform, h = e.count, w = e.scale, m = e.minScale, p = e.maxScale, b = e.closeIcon, N = e.onActive, O = e.onClose, M = e.onZoomIn, v = e.onZoomOut, y = e.onRotateRight, x = e.onRotateLeft, C = e.onFlipX, R = e.onFlipY, E = e.onReset, S = e.toolbarRender, $ = e.zIndex, _ = e.image, T = qe(Ee), j = l.rotateLeft, Y = l.rotateRight, H = l.zoomIn, B = l.zoomOut, J = l.close, F = l.left, U = l.right, Q = l.flipX, G = l.flipY, se = "".concat(a, "-operations-operation");
24
+ var n = e.visible, o = e.maskTransitionName, r = e.getContainer, a = e.prefixCls, s = e.rootClassName, l = e.icons, i = e.countRender, f = e.showSwitch, u = e.showProgress, c = e.current, g = e.transform, h = e.count, w = e.scale, m = e.minScale, p = e.maxScale, b = e.closeIcon, N = e.onActive, O = e.onClose, M = e.onZoomIn, v = e.onZoomOut, y = e.onRotateRight, x = e.onRotateLeft, C = e.onFlipX, R = e.onFlipY, E = e.onReset, S = e.toolbarRender, $ = e.zIndex, _ = e.image, T = qe(Ee), j = l.rotateLeft, Y = l.rotateRight, H = l.zoomIn, B = l.zoomOut, Q = l.close, F = l.left, U = l.right, J = l.flipX, G = l.flipY, se = "".concat(a, "-operations-operation");
25
25
  d.useEffect(function() {
26
26
  var L = function(A) {
27
27
  A.keyCode === He.ESC && O();
@@ -58,7 +58,7 @@ var Ee = /* @__PURE__ */ d.createContext(null), Bt = function(e) {
58
58
  onClick: R,
59
59
  type: "flipY"
60
60
  }), k = D({
61
- icon: Q,
61
+ icon: J,
62
62
  onClick: C,
63
63
  type: "flipX"
64
64
  }), re = D({
@@ -98,7 +98,7 @@ var Ee = /* @__PURE__ */ d.createContext(null), Bt = function(e) {
98
98
  }, b === null ? null : /* @__PURE__ */ d.createElement("button", {
99
99
  className: "".concat(a, "-close"),
100
100
  onClick: O
101
- }, b || J), f && /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement("div", {
101
+ }, b || Q), f && /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement("div", {
102
102
  className: oe("".concat(a, "-switch-left"), ce({}, "".concat(a, "-switch-left-disabled"), c === 0)),
103
103
  onClick: function(X) {
104
104
  return ee(X, -1);
@@ -171,13 +171,13 @@ function Ut(t, e, n, o) {
171
171
  }, g = function(w, m, p, b, N) {
172
172
  var O = t.current, M = O.width, v = O.height, y = O.offsetWidth, x = O.offsetHeight, C = O.offsetLeft, R = O.offsetTop, E = w, S = i.scale * w;
173
173
  S > n ? (S = n, E = n / i.scale) : S < e && (S = N ? S : e, E = S / i.scale);
174
- var $ = p ?? innerWidth / 2, _ = b ?? innerHeight / 2, T = E - 1, j = T * M * 0.5, Y = T * v * 0.5, H = T * ($ - i.x - C), B = T * (_ - i.y - R), J = i.x - (H - j), F = i.y - (B - Y);
174
+ var $ = p ?? innerWidth / 2, _ = b ?? innerHeight / 2, T = E - 1, j = T * M * 0.5, Y = T * v * 0.5, H = T * ($ - i.x - C), B = T * (_ - i.y - R), Q = i.x - (H - j), F = i.y - (B - Y);
175
175
  if (w < 1 && S === 1) {
176
- var U = y * S, Q = x * S, G = ft(), se = G.width, ee = G.height;
177
- U <= se && Q <= ee && (J = 0, F = 0);
176
+ var U = y * S, J = x * S, G = ft(), se = G.width, ee = G.height;
177
+ U <= se && J <= ee && (Q = 0, F = 0);
178
178
  }
179
179
  c({
180
- x: J,
180
+ x: Q,
181
181
  y: F,
182
182
  scale: S
183
183
  }, m);
@@ -304,14 +304,14 @@ function Le(t, e) {
304
304
  var n = t.x - e.x, o = t.y - e.y;
305
305
  return Math.hypot(n, o);
306
306
  }
307
- function Jt(t, e, n, o) {
307
+ function Qt(t, e, n, o) {
308
308
  var r = Le(t, n), a = Le(e, o);
309
309
  if (r === 0 && a === 0)
310
310
  return [t.x, t.y];
311
311
  var s = r / (r + a), l = t.x + s * (e.x - t.x), i = t.y + s * (e.y - t.y);
312
312
  return [l, i];
313
313
  }
314
- function Qt(t, e, n, o, r, a, s) {
314
+ function Jt(t, e, n, o, r, a, s) {
315
315
  var l = r.rotate, i = r.scale, f = r.x, u = r.y, c = pe(!1), g = W(c, 2), h = g[0], w = g[1], m = ye({
316
316
  point1: {
317
317
  x: 0,
@@ -355,7 +355,7 @@ function Qt(t, e, n, o, r, a, s) {
355
355
  }, _ = {
356
356
  x: x[1].clientX,
357
357
  y: x[1].clientY
358
- }, T = Jt(R, E, $, _), j = W(T, 2), Y = j[0], H = j[1], B = Le($, _) / Le(R, E);
358
+ }, T = Qt(R, E, $, _), j = W(T, 2), Y = j[0], H = j[1], B = Le($, _) / Le(R, E);
359
359
  s(B, "touchZoom", Y, H, !0), p({
360
360
  point1: $,
361
361
  point2: _,
@@ -409,7 +409,7 @@ var en = ["fallback", "src", "imgRef"], tn = ["prefixCls", "src", "alt", "imageI
409
409
  }
410
410
  }, a, f));
411
411
  }, gt = function(e) {
412
- var n = e.prefixCls, o = e.src, r = e.alt, a = e.imageInfo, s = e.fallback, l = e.movable, i = l === void 0 ? !0 : l, f = e.onClose, u = e.visible, c = e.icons, g = c === void 0 ? {} : c, h = e.rootClassName, w = e.closeIcon, m = e.getContainer, p = e.current, b = p === void 0 ? 0 : p, N = e.count, O = N === void 0 ? 1 : N, M = e.countRender, v = e.scaleStep, y = v === void 0 ? 0.5 : v, x = e.minScale, C = x === void 0 ? 1 : x, R = e.maxScale, E = R === void 0 ? 50 : R, S = e.transitionName, $ = S === void 0 ? "zoom" : S, _ = e.maskTransitionName, T = _ === void 0 ? "fade" : _, j = e.imageRender, Y = e.imgCommonProps, H = e.toolbarRender, B = e.onTransform, J = e.onChange, F = Re(e, tn), U = ye(), Q = qe(Ee), G = Q && O > 1, se = Q && O >= 1, ee = pe(!0), D = W(ee, 2), le = D[0], te = D[1], K = Ut(U, C, E, B), k = K.transform, re = K.resetTransform, Z = K.updateTransform, q = K.dispatchZoomChange, ae = Kt(U, i, u, y, k, Z, q), ue = ae.isMoving, L = ae.onMouseDown, z = ae.onWheel, A = Qt(U, i, u, C, k, Z, q), V = A.isTouching, X = A.onTouchStart, me = A.onTouchMove, we = A.onTouchEnd, de = k.rotate, fe = k.scale, De = oe(ce({}, "".concat(n, "-moving"), ue));
412
+ var n = e.prefixCls, o = e.src, r = e.alt, a = e.imageInfo, s = e.fallback, l = e.movable, i = l === void 0 ? !0 : l, f = e.onClose, u = e.visible, c = e.icons, g = c === void 0 ? {} : c, h = e.rootClassName, w = e.closeIcon, m = e.getContainer, p = e.current, b = p === void 0 ? 0 : p, N = e.count, O = N === void 0 ? 1 : N, M = e.countRender, v = e.scaleStep, y = v === void 0 ? 0.5 : v, x = e.minScale, C = x === void 0 ? 1 : x, R = e.maxScale, E = R === void 0 ? 50 : R, S = e.transitionName, $ = S === void 0 ? "zoom" : S, _ = e.maskTransitionName, T = _ === void 0 ? "fade" : _, j = e.imageRender, Y = e.imgCommonProps, H = e.toolbarRender, B = e.onTransform, Q = e.onChange, F = Re(e, tn), U = ye(), J = qe(Ee), G = J && O > 1, se = J && O >= 1, ee = pe(!0), D = W(ee, 2), le = D[0], te = D[1], K = Ut(U, C, E, B), k = K.transform, re = K.resetTransform, Z = K.updateTransform, q = K.dispatchZoomChange, ae = Kt(U, i, u, y, k, Z, q), ue = ae.isMoving, L = ae.onMouseDown, z = ae.onWheel, A = Jt(U, i, u, C, k, Z, q), V = A.isTouching, X = A.onTouchStart, me = A.onTouchMove, we = A.onTouchEnd, de = k.rotate, fe = k.scale, De = oe(ce({}, "".concat(n, "-moving"), ue));
413
413
  Ne(function() {
414
414
  le || te(!0);
415
415
  }, [le]);
@@ -439,7 +439,7 @@ var en = ["fallback", "src", "imgRef"], tn = ["prefixCls", "src", "alt", "imageI
439
439
  re("reset");
440
440
  }, We = function(he) {
441
441
  var Pe = b + he;
442
- !Number.isInteger(Pe) || Pe < 0 || Pe > O - 1 || (te(!1), re(he < 0 ? "prev" : "next"), J == null || J(Pe, b));
442
+ !Number.isInteger(Pe) || Pe < 0 || Pe > O - 1 || (te(!1), re(he < 0 ? "prev" : "next"), Q == null || Q(Pe, b));
443
443
  }, It = function(he) {
444
444
  !u || !G || (he.keyCode === He.LEFT ? We(-1) : he.keyCode === He.RIGHT && We(1));
445
445
  }, yt = function(he) {
@@ -455,7 +455,7 @@ var en = ["fallback", "src", "imgRef"], tn = ["prefixCls", "src", "alt", "imageI
455
455
  ne.remove();
456
456
  };
457
457
  }, [u, G, b]);
458
- var Qe = /* @__PURE__ */ Ce.createElement(nn, ie({}, Y, {
458
+ var Je = /* @__PURE__ */ Ce.createElement(nn, ie({}, Y, {
459
459
  width: e.width,
460
460
  height: e.height,
461
461
  imgRef: U,
@@ -495,12 +495,12 @@ var en = ["fallback", "src", "imgRef"], tn = ["prefixCls", "src", "alt", "imageI
495
495
  afterClose: Ye
496
496
  }), /* @__PURE__ */ Ce.createElement("div", {
497
497
  className: "".concat(n, "-img-wrapper")
498
- }, j ? j(Qe, P({
498
+ }, j ? j(Je, P({
499
499
  transform: k,
500
500
  image: et
501
- }, Q ? {
501
+ }, J ? {
502
502
  current: b
503
- } : {})) : Qe)), /* @__PURE__ */ Ce.createElement(Bt, {
503
+ } : {})) : Je)), /* @__PURE__ */ Ce.createElement(Bt, {
504
504
  visible: u,
505
505
  transform: k,
506
506
  maskTransitionName: T,
@@ -568,7 +568,7 @@ function on(t) {
568
568
  var rn = ["visible", "onVisibleChange", "getContainer", "current", "movable", "minScale", "maxScale", "countRender", "closeIcon", "onChange", "onTransform", "toolbarRender", "imageRender"], an = ["src"], sn = function(e) {
569
569
  var n, o = e.previewPrefixCls, r = o === void 0 ? "rc-image-preview" : o, a = e.children, s = e.icons, l = s === void 0 ? {} : s, i = e.items, f = e.preview, u = e.fallback, c = lt(f) === "object" ? f : {}, g = c.visible, h = c.onVisibleChange, w = c.getContainer, m = c.current, p = c.movable, b = c.minScale, N = c.maxScale, O = c.countRender, M = c.closeIcon, v = c.onChange, y = c.onTransform, x = c.toolbarRender, C = c.imageRender, R = Re(c, rn), E = on(i), S = W(E, 3), $ = S[0], _ = S[1], T = S[2], j = Ve(0, {
570
570
  value: m
571
- }), Y = W(j, 2), H = Y[0], B = Y[1], J = pe(!1), F = W(J, 2), U = F[0], Q = F[1], G = ((n = $[H]) === null || n === void 0 ? void 0 : n.data) || {}, se = G.src, ee = Re(G, an), D = Ve(!!g, {
571
+ }), Y = W(j, 2), H = Y[0], B = Y[1], Q = pe(!1), F = W(Q, 2), U = F[0], J = F[1], G = ((n = $[H]) === null || n === void 0 ? void 0 : n.data) || {}, se = G.src, ee = Re(G, an), D = Ve(!!g, {
572
572
  value: g,
573
573
  onChange: function(V, X) {
574
574
  h == null || h(V, X, H);
@@ -582,10 +582,10 @@ var rn = ["visible", "onVisibleChange", "getContainer", "current", "movable", "m
582
582
  B(we < 0 ? 0 : we), K(!0), q({
583
583
  x: X,
584
584
  y: me
585
- }), Q(!0);
585
+ }), J(!0);
586
586
  }, [$, T]);
587
587
  d.useEffect(function() {
588
- te ? U || B(0) : Q(!1);
588
+ te ? U || B(0) : J(!1);
589
589
  }, [te]);
590
590
  var ue = function(V, X) {
591
591
  B(V), v == null || v(V, X);
@@ -638,7 +638,7 @@ function ln(t, e) {
638
638
  }, [t, e]), r;
639
639
  }
640
640
  var cn = ["src", "alt", "onPreviewClose", "prefixCls", "previewPrefixCls", "placeholder", "fallback", "width", "height", "style", "preview", "className", "onClick", "onError", "wrapperClassName", "wrapperStyle", "rootClassName"], un = ["src", "visible", "onVisibleChange", "getContainer", "mask", "maskClassName", "movable", "icons", "scaleStep", "minScale", "maxScale", "imageRender", "toolbarRender"], Ae = function(e) {
641
- var n = e.src, o = e.alt, r = e.onPreviewClose, a = e.prefixCls, s = a === void 0 ? "rc-image" : a, l = e.previewPrefixCls, i = l === void 0 ? "".concat(s, "-preview") : l, f = e.placeholder, u = e.fallback, c = e.width, g = e.height, h = e.style, w = e.preview, m = w === void 0 ? !0 : w, p = e.className, b = e.onClick, N = e.onError, O = e.wrapperClassName, M = e.wrapperStyle, v = e.rootClassName, y = Re(e, cn), x = f && f !== !0, C = lt(m) === "object" ? m : {}, R = C.src, E = C.visible, S = E === void 0 ? void 0 : E, $ = C.onVisibleChange, _ = $ === void 0 ? r : $, T = C.getContainer, j = T === void 0 ? void 0 : T, Y = C.mask, H = C.maskClassName, B = C.movable, J = C.icons, F = C.scaleStep, U = C.minScale, Q = C.maxScale, G = C.imageRender, se = C.toolbarRender, ee = Re(C, un), D = R ?? n, le = Ve(!!S, {
641
+ var n = e.src, o = e.alt, r = e.onPreviewClose, a = e.prefixCls, s = a === void 0 ? "rc-image" : a, l = e.previewPrefixCls, i = l === void 0 ? "".concat(s, "-preview") : l, f = e.placeholder, u = e.fallback, c = e.width, g = e.height, h = e.style, w = e.preview, m = w === void 0 ? !0 : w, p = e.className, b = e.onClick, N = e.onError, O = e.wrapperClassName, M = e.wrapperStyle, v = e.rootClassName, y = Re(e, cn), x = f && f !== !0, C = lt(m) === "object" ? m : {}, R = C.src, E = C.visible, S = E === void 0 ? void 0 : E, $ = C.onVisibleChange, _ = $ === void 0 ? r : $, T = C.getContainer, j = T === void 0 ? void 0 : T, Y = C.mask, H = C.maskClassName, B = C.movable, Q = C.icons, F = C.scaleStep, U = C.minScale, J = C.maxScale, G = C.imageRender, se = C.toolbarRender, ee = Re(C, un), D = R ?? n, le = Ve(!!S, {
642
642
  value: S,
643
643
  onChange: _
644
644
  }), te = W(le, 2), K = te[0], k = te[1], re = vt({
@@ -704,11 +704,11 @@ var cn = ["src", "alt", "onPreviewClose", "prefixCls", "previewPrefixCls", "plac
704
704
  },
705
705
  fallback: u,
706
706
  getContainer: j,
707
- icons: J,
707
+ icons: Q,
708
708
  movable: B,
709
709
  scaleStep: F,
710
710
  minScale: U,
711
- maxScale: Q,
711
+ maxScale: J,
712
712
  rootClassName: v,
713
713
  imageRender: G,
714
714
  imgCommonProps: fe,
@@ -1093,7 +1093,7 @@ var at = function(t, e) {
1093
1093
  e.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, o[r]) && (n[o[r]] = t[o[r]]);
1094
1094
  return n;
1095
1095
  };
1096
- const Je = (t) => {
1096
+ const Qe = (t) => {
1097
1097
  const {
1098
1098
  prefixCls: e,
1099
1099
  preview: n,
@@ -1145,8 +1145,8 @@ const Je = (t) => {
1145
1145
  fallback: E
1146
1146
  }, l)));
1147
1147
  };
1148
- Je.PreviewGroup = En;
1149
- process.env.NODE_ENV !== "production" && (Je.displayName = "Image");
1148
+ Qe.PreviewGroup = En;
1149
+ process.env.NODE_ENV !== "production" && (Qe.displayName = "Image");
1150
1150
  const je = "\\d{1,5}[::]\\d{1,5}(?:[–\\-~](?:\\d{1,5}[::])?\\d{1,5})?", On = new RegExp(`^(${je})$`);
1151
1151
  function Ze(t) {
1152
1152
  const e = On.exec(t.trim());
@@ -1320,7 +1320,7 @@ function Ie(t, e) {
1320
1320
  const m = Wn(g[2]);
1321
1321
  m ? (s = !0, a.push(
1322
1322
  /* @__PURE__ */ I(
1323
- Je,
1323
+ Qe,
1324
1324
  {
1325
1325
  className: "md-img",
1326
1326
  src: m,
@@ -1,4 +1,4 @@
1
- import { cG as f, t as g, r as o, K as $ } from "./embed-mf8t3QXh.js";
1
+ import { cG as f, t as g, r as o, K as $ } from "./embed-CoEyJMJx.js";
2
2
  const r = "/kb/v1/material", m = 100, y = 30, s = () => ({ "X-Tenant-Code": $() });
3
3
  async function n(e) {
4
4
  try {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as h, jsx as s } from "react/jsx-runtime";
2
2
  import { useState as b, useCallback as A, useMemo as ee, useEffect as W, createContext as O, useContext as H, useRef as $ } from "react";
3
- import { m as ne } from "./material-DtPASeqq.js";
4
- import { I as m } from "./embed-mf8t3QXh.js";
3
+ import { m as ne } from "./material-0d6ENLyU.js";
4
+ import { I as m } from "./embed-CoEyJMJx.js";
5
5
  import { createPortal as te } from "react-dom";
6
6
  import { b as D } from "./format-CWI99NCN.js";
7
7
  const B = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map();
@@ -1,11 +1,11 @@
1
1
  import { jsxs as c, Fragment as z, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as o, useEffect as F, Suspense as w, lazy as h } from "react";
3
- import { I as x } from "./embed-mf8t3QXh.js";
4
- import { j as V } from "./material-DtPASeqq.js";
5
- import { r as H } from "./material-workspace-model-QLsU5qUO.js";
6
- import { M as L } from "./material-draft-markdown-281d5_GN.js";
3
+ import { I as x } from "./embed-CoEyJMJx.js";
4
+ import { j as V } from "./material-0d6ENLyU.js";
5
+ import { r as H } from "./material-workspace-model-DPaWrRpo.js";
6
+ import { M as L } from "./material-draft-markdown-BqqPZtbw.js";
7
7
  import { createPortal as W } from "react-dom";
8
- import { S as X } from "./index-B5Roo82U.js";
8
+ import { S as X } from "./index-B2Hx9Q2V.js";
9
9
  const y = [
10
10
  { key: "original", label: "原件" },
11
11
  { key: "draft", label: "解析稿" },
@@ -1,4 +1,4 @@
1
- import { e as w } from "./material-DtPASeqq.js";
1
+ import { e as w } from "./material-0d6ENLyU.js";
2
2
  const R = [
3
3
  "document",
4
4
  "table",
@@ -1,4 +1,4 @@
1
- import { t as d, r as a, K as c } from "./embed-mf8t3QXh.js";
1
+ import { t as d, r as a, K as c } from "./embed-CoEyJMJx.js";
2
2
  const r = "/kb/v1/knowledgeBase/member", n = () => ({ "X-Tenant-Code": c() });
3
3
  async function s(e) {
4
4
  try {