@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.
- package/dist-lib/{BaseInput-DHrGPDB9.js → BaseInput-BYGhTvYI.js} +1 -1
- package/dist-lib/{ClockCircleOutlined-DP6fSLgk.js → ClockCircleOutlined-DACEazDR.js} +1 -1
- package/dist-lib/{Collapse-B77SsmFh.js → Collapse-CZbXdmBX.js} +85 -85
- package/dist-lib/{DeleteOutlined-BAZSAooQ.js → DeleteOutlined-CtmAIIV3.js} +4 -4
- package/dist-lib/{EllipsisOutlined-Dr4orLLw.js → EllipsisOutlined-pgnttbec.js} +94 -94
- package/dist-lib/{EyeOutlined-CudyDdjH.js → EyeOutlined-WKo_SfEi.js} +1 -1
- package/dist-lib/{LeftOutlined-CJasZIyX.js → LeftOutlined-B79bB1ZG.js} +1 -1
- package/dist-lib/{Pagination-BJ8wnqAa.js → Pagination-CFhUxTf8.js} +4 -4
- package/dist-lib/{RotateRightOutlined-DqyspFCO.js → RotateRightOutlined-TrlUrEUZ.js} +1 -1
- package/dist-lib/{Table-J_7eBbi7.js → Table-BF9fhMoT.js} +120 -120
- package/dist-lib/{accessAk-CA30m5eX.js → accessAk-BKnWRdnG.js} +1 -1
- package/dist-lib/{agents-eZDKzePP.js → agents-B5wsLzS-.js} +17 -17
- package/dist-lib/{ai-CNSn3-sd.js → ai-CccmxFWN.js} +1 -1
- package/dist-lib/{ai-chat-share-Yrqt_J6a.js → ai-chat-share-BjZFvUph.js} +4 -4
- package/dist-lib/{ak-manage-DklVFT5I.js → ak-manage-DD_F6560.js} +12 -12
- package/dist-lib/{approval-B-bCSmfi.js → approval-a4d4zlUd.js} +3 -3
- package/dist-lib/{approvals-B0ggYiyD.js → approvals-DnwdMEU5.js} +2 -2
- package/dist-lib/{assistant-Of0mgMsM.js → assistant-BA6oeNSC.js} +39 -39
- package/dist-lib/{assistant-history-DcyDhUzJ.js → assistant-history-Dfykk2a4.js} +5 -5
- package/dist-lib/{assistant-summary-CjLaTyFz.js → assistant-summary-BkmSqskU.js} +1 -1
- package/dist-lib/{audit-wDNCfmOy.js → audit-ZZhtw95x.js} +1 -1
- package/dist-lib/{bios-CIwO1AUK.js → bios-CSjjJ5Bc.js} +11 -11
- package/dist-lib/{callSuper-CpMOVGin.js → callSuper-Bk-mj4By.js} +1 -1
- package/dist-lib/{category-9gqNseEa.js → category-9CorlqP4.js} +1 -1
- package/dist-lib/{causal-CzAYukj9.js → causal-CYR-CTQK.js} +5 -5
- package/dist-lib/{changelog-CQfIMS51.js → changelog-BcZ6KQ3C.js} +2 -2
- package/dist-lib/{changelog-sKJMQrlV.js → changelog-Bqm52V9T.js} +1 -1
- package/dist-lib/{chat-panel-BPbqKckR.js → chat-panel-Ctr_CdZu.js} +28 -28
- package/dist-lib/{code-space-D_ZE966E.js → code-space-DG83npvh.js} +9 -9
- package/dist-lib/{colors-DpKdb8L-.js → colors-DJzrNkCt.js} +3 -3
- package/dist-lib/{community-9_7ExHcm.js → community-CXEbdg7X.js} +1 -1
- package/dist-lib/{community-CfWXxujB.js → community-Cmx4qRHG.js} +3 -3
- package/dist-lib/{community-material-page-Z_EZuBPl.js → community-material-page-jguoD9kV.js} +19 -19
- package/dist-lib/{connections-Bcqsp11M.js → connections-DJAsz2Hb.js} +6 -6
- package/dist-lib/{createForOfIteratorHelper-CasBzL_Q.js → createForOfIteratorHelper-BArIG0W5.js} +1 -1
- package/dist-lib/{detail-CV6xp_Jp.js → detail-BWBtDkWH.js} +4 -4
- package/dist-lib/{detail-EyLdjGpX.js → detail-CLqCbf3i.js} +37 -37
- package/dist-lib/{detail-DioaWKWj.js → detail-DKLwIzyI.js} +14 -14
- package/dist-lib/{development-CFcOIUKc.js → development-DG37KZEV.js} +17 -17
- package/dist-lib/{downloads-DtV5hOQv.js → downloads-Cg8PCqDp.js} +1 -1
- package/dist-lib/{edit-NtXUNj5N.js → edit-Cfv83zho.js} +24 -24
- package/dist-lib/{editor-KZhj-rwT.js → editor-BriqrlTB.js} +16 -16
- package/dist-lib/{editor-page-BaxK_OYm.js → editor-page-p2TQlJtq.js} +13 -13
- package/dist-lib/{embed-mf8t3QXh.js → embed-CoEyJMJx.js} +3236 -3245
- package/dist-lib/embed.css +2 -2
- package/dist-lib/{evaluation-CZTpC9v3.js → evaluation-C6CAwoWp.js} +2 -2
- package/dist-lib/{execution-B6HmOA2_.js → execution-BMkglxKG.js} +13 -13
- package/dist-lib/{graph-DHV-rdiK.js → graph-DkaHV2AX.js} +5 -5
- package/dist-lib/{index-BvJ35WL3.js → index-B21fkm-c.js} +9 -9
- package/dist-lib/{index-B5Roo82U.js → index-B2Hx9Q2V.js} +20 -20
- package/dist-lib/{index-CSJA8wvL.js → index-BMVRmc79.js} +36 -36
- package/dist-lib/{index-CdJ5ggvp.js → index-BQnPPCKW.js} +15 -15
- package/dist-lib/{index-BqTsLClH.js → index-BRyPjc2E.js} +1 -1
- package/dist-lib/{index-BkTegt8T.js → index-BeejupFS.js} +150 -150
- package/dist-lib/{index-BEO8itgt.js → index-BelOhXK9.js} +11 -11
- package/dist-lib/{index-DU6bO95v.js → index-Bqkx1OMz.js} +70 -70
- package/dist-lib/{index--AI-htgA.js → index-Bqpk0cSp.js} +11 -11
- package/dist-lib/{index-BoCtPJD4.js → index-BqvwZwaa.js} +181 -181
- package/dist-lib/{index-DaMLYomP.js → index-BwkQzFNo.js} +9 -9
- package/dist-lib/{index-BPbOPT2j.js → index-By7lJ7OM.js} +2 -2
- package/dist-lib/{index-B7SfTpox.js → index-C0bjp6yU.js} +19 -19
- package/dist-lib/{index-B12ZggsE.js → index-C8VIE0cr.js} +6 -6
- package/dist-lib/{index-C2CV4bte.js → index-CAk-RbBL.js} +2 -2
- package/dist-lib/{index-3J47mTL1.js → index-CFMm6EBU.js} +1 -1
- package/dist-lib/{index-zXwXfn-X.js → index-CkrD_v5E.js} +12 -12
- package/dist-lib/{index-DhSCFLtV.js → index-Ct0MiSE7.js} +81 -81
- package/dist-lib/{index-DKAGVWMX.js → index-D1vltZIy.js} +56 -56
- package/dist-lib/{index-BsoHetYT.js → index-DQ1YCU_6.js} +38 -38
- package/dist-lib/{index-xQmDaKK3.js → index-DQL0rlRD.js} +1 -1
- package/dist-lib/{index-DgfIEgir.js → index-Dfpj76EP.js} +1 -1
- package/dist-lib/{index-Bw4M9KLv.js → index-DljgNXFS.js} +73 -73
- package/dist-lib/{index-CgwK2maq.js → index-DrC19OH2.js} +38 -38
- package/dist-lib/{index-CLhLA2ig.js → index-DvdRKgvN.js} +64 -64
- package/dist-lib/{index-DGbjbjBY.js → index-EoyTsMVR.js} +2 -2
- package/dist-lib/{index-Bln3mJfp.js → index-MN71_qSy.js} +2 -2
- package/dist-lib/{index-CwyFMPcr.js → index-MrasjwT1.js} +10 -10
- package/dist-lib/{index-VeAMz0iC.js → index-TVyOVj_f.js} +39 -39
- package/dist-lib/{index-D6ns_Xmf.js → index-cWJDD_7e.js} +2 -2
- package/dist-lib/{index-QZ9JPfVR.js → index-fSzyAUm4.js} +10 -10
- package/dist-lib/{index-CF0ucN_K.js → index-gSQpnDVD.js} +3 -3
- package/dist-lib/{index-BkJjYgKD.js → index-jfZsBNfr.js} +262 -262
- package/dist-lib/{index-Bd7AGv4a.js → index-lpiHPbbx.js} +2 -2
- package/dist-lib/{index-CvxfA0ZK.js → index-ly9q05gX.js} +14 -14
- package/dist-lib/{index-CtqUgNxs.js → index-mANVYpNc.js} +14 -14
- package/dist-lib/{index-2SysmGHo.js → index-o4EXX17N.js} +73 -73
- package/dist-lib/index.js +1 -1
- package/dist-lib/{json-field-COcz5F2R.js → json-field-BqyYVncd.js} +2 -2
- package/dist-lib/{kb-form-modal-D9gnvXbE.js → kb-form-modal-B9_s7HKJ.js} +20 -19
- package/dist-lib/{kbTeam-CorrPJFr.js → kbTeam-D_xeQOnk.js} +1 -1
- package/dist-lib/{knowledge-base-DJkjMFHW.js → knowledge-base-BIlYHNX_.js} +21 -20
- package/dist-lib/{knowledge-hub-DKiDlaZz.js → knowledge-hub-DS9jz2ml.js} +12 -12
- package/dist-lib/{login-56zv4aLO.js → login-81vYOi7C.js} +6 -6
- package/dist-lib/{markdown-lite-p1tiuSZM.js → markdown-lite-C0TxiY46.js} +30 -30
- package/dist-lib/{material-DtPASeqq.js → material-0d6ENLyU.js} +1 -1
- package/dist-lib/{material-draft-markdown-281d5_GN.js → material-draft-markdown-BqqPZtbw.js} +2 -2
- package/dist-lib/{material-original-preview-CPGjdmbe.js → material-original-preview-BDeVDdfb.js} +5 -5
- package/dist-lib/{material-workspace-model-QLsU5qUO.js → material-workspace-model-DPaWrRpo.js} +1 -1
- package/dist-lib/{member-Cz-OIdj9.js → member-Dc8Fi9Yt.js} +1 -1
- package/dist-lib/memory-reorganization-DN4oUE9r.js +1007 -0
- package/dist-lib/{memory-spaces-D-orVNR7.js → memory-spaces-BJp4AIUb.js} +19 -19
- package/dist-lib/{message-C9gfvpGg.js → message-C6yBkCNm.js} +1 -1
- package/dist-lib/{message-D6FhzB7J.js → message-DPeo_cTR.js} +3 -3
- package/dist-lib/{messages-cctmEVcG.js → messages-DdfLmuQI.js} +2 -2
- package/dist-lib/{meta-DT_O4zM9.js → meta-CBLO5qXw.js} +2 -2
- package/dist-lib/{metrics-BNeVcI8-.js → metrics-7ptCjiKn.js} +2 -2
- package/dist-lib/{mobile-D8kZjfQU.js → mobile-DC0hcQji.js} +2 -2
- package/dist-lib/{monitor-DexMYjzF.js → monitor-DX1u-yHi.js} +3 -3
- package/dist-lib/{monitor-DTUyqumg.js → monitor-DoWMKmYn.js} +3 -3
- package/dist-lib/{my-access-DWBV6ohp.js → my-access-64Rn1HXY.js} +3 -3
- package/dist-lib/{my-permissions-B-gJZQYM.js → my-permissions-DKjDBIjY.js} +4 -4
- package/dist-lib/{navigation-DVlyWnpD.js → navigation-B_vBrx_f.js} +1 -1
- package/dist-lib/{new-JmARyD88.js → new-D3Q8_hzT.js} +5 -5
- package/dist-lib/{ontology-B4rkO33J.js → ontology-Ct7a7W50.js} +5 -5
- package/dist-lib/{ontology-dataprep-BwD5TKs2.js → ontology-dataprep-DhZWKCnw.js} +1 -1
- package/dist-lib/{ontology-domains-zxFrjn0v.js → ontology-domains-BG6ZPWXm.js} +35 -35
- package/dist-lib/{ontology-extract-BHOxruRO.js → ontology-extract-53pAcKaP.js} +22 -22
- package/dist-lib/{ontology-extract-iR_rXxFe.js → ontology-extract-D9RViy3r.js} +1 -1
- package/dist-lib/{ontology-flow-Dv5iQ20f.js → ontology-flow-Dx_5Dv1S.js} +3 -3
- package/dist-lib/{ontology-flow-CW0SzeK7.js → ontology-flow-cbGY8kOV.js} +6 -6
- package/dist-lib/{ontology-modeling-B9wswveh.js → ontology-modeling-9beSFK8t.js} +2 -2
- package/dist-lib/{ontology-modeling-hakCluBi.js → ontology-modeling-BkFq7sU1.js} +33 -33
- package/dist-lib/{ontology-scenarios-DKnfydG6.js → ontology-scenarios-ANZMjyMB.js} +1 -1
- package/dist-lib/{ontology-scenarios-C2kp7Rs-.js → ontology-scenarios-BC1UBvtT.js} +350 -350
- package/dist-lib/{ontology-task-config-DmnWyCCB.js → ontology-task-config-dDFRrWtJ.js} +1 -1
- package/dist-lib/{ontology-terms-C-NhpcIZ.js → ontology-terms-B9H9VcuR.js} +18 -18
- package/dist-lib/{ontology-terms-BoNB-5ar.js → ontology-terms-BcXCuUsy.js} +1 -1
- package/dist-lib/{permission-Dq1-AOQw.js → permission-pETAJZl6.js} +2 -2
- package/dist-lib/{preset-DCNSE--Y.js → preset-5F2VcdUE.js} +3 -3
- package/dist-lib/{progress-CZxOOnIs.js → progress-COKT887h.js} +31 -31
- package/dist-lib/{quota-oICQRHFU.js → quota-BzWY9oeV.js} +7 -6
- package/dist-lib/{row-By17TCiW.js → row-BFBgIphS.js} +2 -2
- package/dist-lib/{runs-DQTDpPaN.js → runs-7LWS6iAN.js} +6 -6
- package/dist-lib/{save-blob-CwCZE1Dn.js → save-blob-D_q2LunT.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-sJtjgmry.js → scenario-mapping-preview-CDg3_f0U.js} +5 -5
- package/dist-lib/{scenario-simple-form-BvKSPFzw.js → scenario-simple-form--KSAzRS6.js} +9 -9
- package/dist-lib/{schedule-CwkPPSuT.js → schedule-BDrhhUsA.js} +2 -2
- package/dist-lib/{script-gYJAFobb.js → script-CtLQ-RSy.js} +14 -14
- package/dist-lib/{settings-CJd5Jj4y.js → settings--NTE0Hux.js} +71 -70
- package/dist-lib/{shared-DG5-VCDM.js → shared-BJA7rkgy.js} +1 -1
- package/dist-lib/{shared-utils-CFHws1DA.js → shared-utils-E5RBBDWx.js} +2 -2
- package/dist-lib/{skills-lxpJ5Lzx.js → skills-IziqBZOm.js} +5 -5
- package/dist-lib/{source-selection-DJnQQckl.js → source-selection-WsUOEBKN.js} +1 -1
- package/dist-lib/{sources-C83LpCcV.js → sources-D7ViKZtA.js} +12 -12
- package/dist-lib/{style-B5THvtDY.js → style-B7phAB4-.js} +8 -8
- package/dist-lib/{task-config-BNYoOb79.js → task-config-BhVD-uNg.js} +3 -3
- package/dist-lib/{tech-LuZvKDo6.js → tech-C2bOwBWk.js} +1 -1
- package/dist-lib/{templates-a-kbCamr.js → templates-Bh3ryZxt.js} +6 -6
- package/dist-lib/{tenant-login-COB-5h_2.js → tenant-login-D3193dIQ.js} +30 -30
- package/dist-lib/{tools-CrA6GrY6.js → tools-DCLdtvbE.js} +56 -56
- package/dist-lib/use-current-tenant-KGbU5HpT.js +22 -0
- package/dist-lib/{use-domain-access-ehGJBGvU.js → use-domain-access-CcPd_gzX.js} +1 -1
- package/dist-lib/{use-g6-graph-DfRnsBS6.js → use-g6-graph-CPKL_pXo.js} +1 -1
- package/dist-lib/{use-graph-layers-CrhEeHfD.js → use-graph-layers-Bi90s60B.js} +9 -9
- package/dist-lib/{useBreakpoint-Cul9y9Cu.js → useBreakpoint-SG_cMfLJ.js} +8 -8
- package/dist-lib/{useForm-B-dwOwJ8.js → useForm-Cp45oXOc.js} +14 -14
- package/dist-lib/{version-control-panel-mWXkC-uB.js → version-control-panel-Db_RP6gX.js} +1 -1
- package/dist-lib/{version-management-nPlG7wQO.js → version-management-DuCdU_fJ.js} +2 -2
- package/dist-lib/{welcome-Cqv1-rXT.js → welcome-DLcdZGtl.js} +1 -1
- package/package.json +1 -1
- package/dist-lib/memory-reorganization-DgJnWIrW.js +0 -8
|
@@ -0,0 +1,1007 @@
|
|
|
1
|
+
import { jsx as l, jsxs as R } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { useState as _, useCallback as V, useEffect as Me, useMemo as Re } from "react";
|
|
4
|
+
import { a8 as Q, a5 as z, a6 as se, a7 as le, ac as u, ad as ce, ae as Z, af as de, ag as _e, ah as me, ai as He, a9 as Le, i as ue, aj as De, ak as Be, al as Ge, am as ae, an as We, r as q, ab as Ae, A as Fe, I as Ke, B as Y, S as Ve, aa as ne } from "./embed-CoEyJMJx.js";
|
|
5
|
+
import { S as re } from "./index-fSzyAUm4.js";
|
|
6
|
+
import { A as oe } from "./index-C0bjp6yU.js";
|
|
7
|
+
import { T as qe } from "./index-BMVRmc79.js";
|
|
8
|
+
import { I as Ue } from "./index-o4EXX17N.js";
|
|
9
|
+
import { F as Xe } from "./Table-BF9fhMoT.js";
|
|
10
|
+
import { T as Ye } from "./index-mANVYpNc.js";
|
|
11
|
+
import { T as Je } from "./index-CkrD_v5E.js";
|
|
12
|
+
import { P as Qe } from "./index-ly9q05gX.js";
|
|
13
|
+
var Ze = function(e, t) {
|
|
14
|
+
var r = {};
|
|
15
|
+
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
16
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, a = Object.getOwnPropertySymbols(e); n < a.length; n++)
|
|
17
|
+
t.indexOf(a[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[n]) && (r[a[n]] = e[a[n]]);
|
|
18
|
+
return r;
|
|
19
|
+
};
|
|
20
|
+
const pe = (e) => {
|
|
21
|
+
var {
|
|
22
|
+
prefixCls: t,
|
|
23
|
+
className: r,
|
|
24
|
+
hoverable: a = !0
|
|
25
|
+
} = e, n = Ze(e, ["prefixCls", "className", "hoverable"]);
|
|
26
|
+
const {
|
|
27
|
+
getPrefixCls: s
|
|
28
|
+
} = i.useContext(Q), d = s("card", t), m = z(`${d}-grid`, r, {
|
|
29
|
+
[`${d}-grid-hoverable`]: a
|
|
30
|
+
});
|
|
31
|
+
return /* @__PURE__ */ i.createElement("div", Object.assign({}, n, {
|
|
32
|
+
className: m
|
|
33
|
+
}));
|
|
34
|
+
}, ke = (e) => {
|
|
35
|
+
const {
|
|
36
|
+
antCls: t,
|
|
37
|
+
componentCls: r,
|
|
38
|
+
headerHeight: a,
|
|
39
|
+
headerPadding: n,
|
|
40
|
+
tabsMarginBottom: s
|
|
41
|
+
} = e;
|
|
42
|
+
return Object.assign(Object.assign({
|
|
43
|
+
display: "flex",
|
|
44
|
+
justifyContent: "center",
|
|
45
|
+
flexDirection: "column",
|
|
46
|
+
minHeight: a,
|
|
47
|
+
marginBottom: -1,
|
|
48
|
+
padding: `0 ${u(n)}`,
|
|
49
|
+
color: e.colorTextHeading,
|
|
50
|
+
fontWeight: e.fontWeightStrong,
|
|
51
|
+
fontSize: e.headerFontSize,
|
|
52
|
+
background: e.headerBg,
|
|
53
|
+
borderBottom: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,
|
|
54
|
+
borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
|
|
55
|
+
}, Z()), {
|
|
56
|
+
"&-wrapper": {
|
|
57
|
+
width: "100%",
|
|
58
|
+
display: "flex",
|
|
59
|
+
alignItems: "center"
|
|
60
|
+
},
|
|
61
|
+
"&-title": Object.assign(Object.assign({
|
|
62
|
+
display: "inline-block",
|
|
63
|
+
flex: 1
|
|
64
|
+
}, de), {
|
|
65
|
+
[`
|
|
66
|
+
> ${r}-typography,
|
|
67
|
+
> ${r}-typography-edit-content
|
|
68
|
+
`]: {
|
|
69
|
+
insetInlineStart: 0,
|
|
70
|
+
marginTop: 0,
|
|
71
|
+
marginBottom: 0
|
|
72
|
+
}
|
|
73
|
+
}),
|
|
74
|
+
[`${t}-tabs-top`]: {
|
|
75
|
+
clear: "both",
|
|
76
|
+
marginBottom: s,
|
|
77
|
+
color: e.colorText,
|
|
78
|
+
fontWeight: "normal",
|
|
79
|
+
fontSize: e.fontSize,
|
|
80
|
+
"&-bar": {
|
|
81
|
+
borderBottom: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}, et = (e) => {
|
|
86
|
+
const {
|
|
87
|
+
cardPaddingBase: t,
|
|
88
|
+
colorBorderSecondary: r,
|
|
89
|
+
cardShadow: a,
|
|
90
|
+
lineWidth: n
|
|
91
|
+
} = e;
|
|
92
|
+
return {
|
|
93
|
+
width: "33.33%",
|
|
94
|
+
padding: t,
|
|
95
|
+
border: 0,
|
|
96
|
+
borderRadius: 0,
|
|
97
|
+
boxShadow: `
|
|
98
|
+
${u(n)} 0 0 0 ${r},
|
|
99
|
+
0 ${u(n)} 0 0 ${r},
|
|
100
|
+
${u(n)} ${u(n)} 0 0 ${r},
|
|
101
|
+
${u(n)} 0 0 0 ${r} inset,
|
|
102
|
+
0 ${u(n)} 0 0 ${r} inset;
|
|
103
|
+
`,
|
|
104
|
+
transition: `all ${e.motionDurationMid}`,
|
|
105
|
+
"&-hoverable:hover": {
|
|
106
|
+
position: "relative",
|
|
107
|
+
zIndex: 1,
|
|
108
|
+
boxShadow: a
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
}, tt = (e) => {
|
|
112
|
+
const {
|
|
113
|
+
componentCls: t,
|
|
114
|
+
iconCls: r,
|
|
115
|
+
actionsLiMargin: a,
|
|
116
|
+
cardActionsIconSize: n,
|
|
117
|
+
colorBorderSecondary: s,
|
|
118
|
+
actionsBg: d
|
|
119
|
+
} = e;
|
|
120
|
+
return Object.assign(Object.assign({
|
|
121
|
+
margin: 0,
|
|
122
|
+
padding: 0,
|
|
123
|
+
listStyle: "none",
|
|
124
|
+
background: d,
|
|
125
|
+
borderTop: `${u(e.lineWidth)} ${e.lineType} ${s}`,
|
|
126
|
+
display: "flex",
|
|
127
|
+
borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
|
|
128
|
+
}, Z()), {
|
|
129
|
+
"& > li": {
|
|
130
|
+
margin: a,
|
|
131
|
+
color: e.colorTextDescription,
|
|
132
|
+
textAlign: "center",
|
|
133
|
+
"> span": {
|
|
134
|
+
position: "relative",
|
|
135
|
+
display: "block",
|
|
136
|
+
minWidth: e.calc(e.cardActionsIconSize).mul(2).equal(),
|
|
137
|
+
fontSize: e.fontSize,
|
|
138
|
+
lineHeight: e.lineHeight,
|
|
139
|
+
cursor: "pointer",
|
|
140
|
+
"&:hover": {
|
|
141
|
+
color: e.colorPrimary,
|
|
142
|
+
transition: `color ${e.motionDurationMid}`
|
|
143
|
+
},
|
|
144
|
+
[`a:not(${t}-btn), > ${r}`]: {
|
|
145
|
+
display: "inline-block",
|
|
146
|
+
width: "100%",
|
|
147
|
+
color: e.colorIcon,
|
|
148
|
+
lineHeight: u(e.fontHeight),
|
|
149
|
+
transition: `color ${e.motionDurationMid}`,
|
|
150
|
+
"&:hover": {
|
|
151
|
+
color: e.colorPrimary
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
[`> ${r}`]: {
|
|
155
|
+
fontSize: n,
|
|
156
|
+
lineHeight: u(e.calc(n).mul(e.lineHeight).equal())
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"&:not(:last-child)": {
|
|
160
|
+
borderInlineEnd: `${u(e.lineWidth)} ${e.lineType} ${s}`
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}, at = (e) => Object.assign(Object.assign({
|
|
165
|
+
margin: `${u(e.calc(e.marginXXS).mul(-1).equal())} 0`,
|
|
166
|
+
display: "flex"
|
|
167
|
+
}, Z()), {
|
|
168
|
+
"&-avatar": {
|
|
169
|
+
paddingInlineEnd: e.padding
|
|
170
|
+
},
|
|
171
|
+
"&-detail": {
|
|
172
|
+
overflow: "hidden",
|
|
173
|
+
flex: 1,
|
|
174
|
+
"> div:not(:last-child)": {
|
|
175
|
+
marginBottom: e.marginXS
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"&-title": Object.assign({
|
|
179
|
+
color: e.colorTextHeading,
|
|
180
|
+
fontWeight: e.fontWeightStrong,
|
|
181
|
+
fontSize: e.fontSizeLG
|
|
182
|
+
}, de),
|
|
183
|
+
"&-description": {
|
|
184
|
+
color: e.colorTextDescription
|
|
185
|
+
}
|
|
186
|
+
}), nt = (e) => {
|
|
187
|
+
const {
|
|
188
|
+
componentCls: t,
|
|
189
|
+
colorFillAlter: r,
|
|
190
|
+
headerPadding: a,
|
|
191
|
+
bodyPadding: n
|
|
192
|
+
} = e;
|
|
193
|
+
return {
|
|
194
|
+
[`${t}-head`]: {
|
|
195
|
+
padding: `0 ${u(a)}`,
|
|
196
|
+
background: r,
|
|
197
|
+
"&-title": {
|
|
198
|
+
fontSize: e.fontSize
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
[`${t}-body`]: {
|
|
202
|
+
padding: `${u(e.padding)} ${u(n)}`
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
}, rt = (e) => {
|
|
206
|
+
const {
|
|
207
|
+
componentCls: t
|
|
208
|
+
} = e;
|
|
209
|
+
return {
|
|
210
|
+
overflow: "hidden",
|
|
211
|
+
[`${t}-body`]: {
|
|
212
|
+
userSelect: "none"
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
}, ot = (e) => {
|
|
216
|
+
const {
|
|
217
|
+
componentCls: t,
|
|
218
|
+
cardShadow: r,
|
|
219
|
+
cardHeadPadding: a,
|
|
220
|
+
colorBorderSecondary: n,
|
|
221
|
+
boxShadowTertiary: s,
|
|
222
|
+
bodyPadding: d,
|
|
223
|
+
extraColor: m
|
|
224
|
+
} = e;
|
|
225
|
+
return {
|
|
226
|
+
[t]: Object.assign(Object.assign({}, ce(e)), {
|
|
227
|
+
position: "relative",
|
|
228
|
+
background: e.colorBgContainer,
|
|
229
|
+
borderRadius: e.borderRadiusLG,
|
|
230
|
+
[`&:not(${t}-bordered)`]: {
|
|
231
|
+
boxShadow: s
|
|
232
|
+
},
|
|
233
|
+
[`${t}-head`]: ke(e),
|
|
234
|
+
[`${t}-extra`]: {
|
|
235
|
+
// https://stackoverflow.com/a/22429853/3040605
|
|
236
|
+
marginInlineStart: "auto",
|
|
237
|
+
color: m,
|
|
238
|
+
fontWeight: "normal",
|
|
239
|
+
fontSize: e.fontSize
|
|
240
|
+
},
|
|
241
|
+
[`${t}-body`]: {
|
|
242
|
+
padding: d,
|
|
243
|
+
borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
|
|
244
|
+
},
|
|
245
|
+
[`${t}-grid`]: et(e),
|
|
246
|
+
[`${t}-cover`]: {
|
|
247
|
+
"> *": {
|
|
248
|
+
display: "block",
|
|
249
|
+
width: "100%",
|
|
250
|
+
borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
[`${t}-actions`]: tt(e),
|
|
254
|
+
[`${t}-meta`]: at(e)
|
|
255
|
+
}),
|
|
256
|
+
[`${t}-bordered`]: {
|
|
257
|
+
border: `${u(e.lineWidth)} ${e.lineType} ${n}`,
|
|
258
|
+
[`${t}-cover`]: {
|
|
259
|
+
marginTop: -1,
|
|
260
|
+
marginInlineStart: -1,
|
|
261
|
+
marginInlineEnd: -1
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
[`${t}-hoverable`]: {
|
|
265
|
+
cursor: "pointer",
|
|
266
|
+
transition: `box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,
|
|
267
|
+
"&:hover": {
|
|
268
|
+
borderColor: "transparent",
|
|
269
|
+
boxShadow: r
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
[`${t}-contain-grid`]: {
|
|
273
|
+
borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0 `,
|
|
274
|
+
[`${t}-body`]: {
|
|
275
|
+
display: "flex",
|
|
276
|
+
flexWrap: "wrap"
|
|
277
|
+
},
|
|
278
|
+
[`&:not(${t}-loading) ${t}-body`]: {
|
|
279
|
+
marginBlockStart: e.calc(e.lineWidth).mul(-1).equal(),
|
|
280
|
+
marginInlineStart: e.calc(e.lineWidth).mul(-1).equal(),
|
|
281
|
+
padding: 0
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
[`${t}-contain-tabs`]: {
|
|
285
|
+
[`> div${t}-head`]: {
|
|
286
|
+
minHeight: 0,
|
|
287
|
+
[`${t}-head-title, ${t}-extra`]: {
|
|
288
|
+
paddingTop: a
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
[`${t}-type-inner`]: nt(e),
|
|
293
|
+
[`${t}-loading`]: rt(e),
|
|
294
|
+
[`${t}-rtl`]: {
|
|
295
|
+
direction: "rtl"
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
}, it = (e) => {
|
|
299
|
+
const {
|
|
300
|
+
componentCls: t,
|
|
301
|
+
bodyPaddingSM: r,
|
|
302
|
+
headerPaddingSM: a,
|
|
303
|
+
headerHeightSM: n,
|
|
304
|
+
headerFontSizeSM: s
|
|
305
|
+
} = e;
|
|
306
|
+
return {
|
|
307
|
+
[`${t}-small`]: {
|
|
308
|
+
[`> ${t}-head`]: {
|
|
309
|
+
minHeight: n,
|
|
310
|
+
padding: `0 ${u(a)}`,
|
|
311
|
+
fontSize: s,
|
|
312
|
+
[`> ${t}-head-wrapper`]: {
|
|
313
|
+
[`> ${t}-extra`]: {
|
|
314
|
+
fontSize: e.fontSize
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
[`> ${t}-body`]: {
|
|
319
|
+
padding: r
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
[`${t}-small${t}-contain-tabs`]: {
|
|
323
|
+
[`> ${t}-head`]: {
|
|
324
|
+
[`${t}-head-title, ${t}-extra`]: {
|
|
325
|
+
paddingTop: 0,
|
|
326
|
+
display: "flex",
|
|
327
|
+
alignItems: "center"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
}, st = (e) => {
|
|
333
|
+
var t, r;
|
|
334
|
+
return {
|
|
335
|
+
headerBg: "transparent",
|
|
336
|
+
headerFontSize: e.fontSizeLG,
|
|
337
|
+
headerFontSizeSM: e.fontSize,
|
|
338
|
+
headerHeight: e.fontSizeLG * e.lineHeightLG + e.padding * 2,
|
|
339
|
+
headerHeightSM: e.fontSize * e.lineHeight + e.paddingXS * 2,
|
|
340
|
+
actionsBg: e.colorBgContainer,
|
|
341
|
+
actionsLiMargin: `${e.paddingSM}px 0`,
|
|
342
|
+
tabsMarginBottom: -e.padding - e.lineWidth,
|
|
343
|
+
extraColor: e.colorText,
|
|
344
|
+
bodyPaddingSM: 12,
|
|
345
|
+
// Fixed padding.
|
|
346
|
+
headerPaddingSM: 12,
|
|
347
|
+
bodyPadding: (t = e.bodyPadding) !== null && t !== void 0 ? t : e.paddingLG,
|
|
348
|
+
headerPadding: (r = e.headerPadding) !== null && r !== void 0 ? r : e.paddingLG
|
|
349
|
+
};
|
|
350
|
+
}, lt = se("Card", (e) => {
|
|
351
|
+
const t = le(e, {
|
|
352
|
+
cardShadow: e.boxShadowCard,
|
|
353
|
+
cardHeadPadding: e.padding,
|
|
354
|
+
cardPaddingBase: e.paddingLG,
|
|
355
|
+
cardActionsIconSize: e.fontSize
|
|
356
|
+
});
|
|
357
|
+
return [
|
|
358
|
+
// Style
|
|
359
|
+
ot(t),
|
|
360
|
+
// Size
|
|
361
|
+
it(t)
|
|
362
|
+
];
|
|
363
|
+
}, st);
|
|
364
|
+
var ie = function(e, t) {
|
|
365
|
+
var r = {};
|
|
366
|
+
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
367
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, a = Object.getOwnPropertySymbols(e); n < a.length; n++)
|
|
368
|
+
t.indexOf(a[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[n]) && (r[a[n]] = e[a[n]]);
|
|
369
|
+
return r;
|
|
370
|
+
};
|
|
371
|
+
const ct = (e) => {
|
|
372
|
+
const {
|
|
373
|
+
actionClasses: t,
|
|
374
|
+
actions: r = [],
|
|
375
|
+
actionStyle: a
|
|
376
|
+
} = e;
|
|
377
|
+
return /* @__PURE__ */ i.createElement("ul", {
|
|
378
|
+
className: t,
|
|
379
|
+
style: a
|
|
380
|
+
}, r.map((n, s) => {
|
|
381
|
+
const d = `action-${s}`;
|
|
382
|
+
return /* @__PURE__ */ i.createElement("li", {
|
|
383
|
+
style: {
|
|
384
|
+
width: `${100 / r.length}%`
|
|
385
|
+
},
|
|
386
|
+
key: d
|
|
387
|
+
}, /* @__PURE__ */ i.createElement("span", null, n));
|
|
388
|
+
}));
|
|
389
|
+
}, dt = /* @__PURE__ */ i.forwardRef((e, t) => {
|
|
390
|
+
const {
|
|
391
|
+
prefixCls: r,
|
|
392
|
+
className: a,
|
|
393
|
+
rootClassName: n,
|
|
394
|
+
style: s,
|
|
395
|
+
extra: d,
|
|
396
|
+
headStyle: m = {},
|
|
397
|
+
bodyStyle: c = {},
|
|
398
|
+
title: g,
|
|
399
|
+
loading: v,
|
|
400
|
+
bordered: h,
|
|
401
|
+
variant: f,
|
|
402
|
+
size: y,
|
|
403
|
+
type: x,
|
|
404
|
+
cover: O,
|
|
405
|
+
actions: H,
|
|
406
|
+
tabList: P,
|
|
407
|
+
children: E,
|
|
408
|
+
activeTabKey: N,
|
|
409
|
+
defaultActiveTabKey: I,
|
|
410
|
+
tabBarExtraContent: D,
|
|
411
|
+
hoverable: W,
|
|
412
|
+
tabProps: A = {},
|
|
413
|
+
classNames: C,
|
|
414
|
+
styles: M
|
|
415
|
+
} = e, o = ie(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "variant", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), {
|
|
416
|
+
getPrefixCls: w,
|
|
417
|
+
direction: T,
|
|
418
|
+
card: $
|
|
419
|
+
} = i.useContext(Q), [X] = _e("card", f, h);
|
|
420
|
+
if (process.env.NODE_ENV !== "production") {
|
|
421
|
+
const S = me("Card");
|
|
422
|
+
[["headStyle", "styles.header"], ["bodyStyle", "styles.body"], ["bordered", "variant"]].forEach(([p, K]) => {
|
|
423
|
+
S.deprecated(!(p in e), p, K);
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
const J = (S) => {
|
|
427
|
+
var p;
|
|
428
|
+
(p = e.onTabChange) === null || p === void 0 || p.call(e, S);
|
|
429
|
+
}, B = (S) => {
|
|
430
|
+
var p;
|
|
431
|
+
return z((p = $ == null ? void 0 : $.classNames) === null || p === void 0 ? void 0 : p[S], C == null ? void 0 : C[S]);
|
|
432
|
+
}, G = (S) => {
|
|
433
|
+
var p;
|
|
434
|
+
return Object.assign(Object.assign({}, (p = $ == null ? void 0 : $.styles) === null || p === void 0 ? void 0 : p[S]), M == null ? void 0 : M[S]);
|
|
435
|
+
}, fe = i.useMemo(() => {
|
|
436
|
+
let S = !1;
|
|
437
|
+
return i.Children.forEach(E, (p) => {
|
|
438
|
+
(p == null ? void 0 : p.type) === pe && (S = !0);
|
|
439
|
+
}), S;
|
|
440
|
+
}, [E]), b = w("card", r), [ye, he, be] = lt(b), ve = /* @__PURE__ */ i.createElement(ue, {
|
|
441
|
+
loading: !0,
|
|
442
|
+
active: !0,
|
|
443
|
+
paragraph: {
|
|
444
|
+
rows: 4
|
|
445
|
+
},
|
|
446
|
+
title: !1
|
|
447
|
+
}, E), k = N !== void 0, Se = Object.assign(Object.assign({}, A), {
|
|
448
|
+
[k ? "activeKey" : "defaultActiveKey"]: k ? N : I,
|
|
449
|
+
tabBarExtraContent: D
|
|
450
|
+
});
|
|
451
|
+
let ee;
|
|
452
|
+
const F = He(y), $e = !F || F === "default" ? "large" : F, te = P ? /* @__PURE__ */ i.createElement(qe, Object.assign({
|
|
453
|
+
size: $e
|
|
454
|
+
}, Se, {
|
|
455
|
+
className: `${b}-head-tabs`,
|
|
456
|
+
onChange: J,
|
|
457
|
+
items: P.map((S) => {
|
|
458
|
+
var {
|
|
459
|
+
tab: p
|
|
460
|
+
} = S, K = ie(S, ["tab"]);
|
|
461
|
+
return Object.assign({
|
|
462
|
+
label: p
|
|
463
|
+
}, K);
|
|
464
|
+
})
|
|
465
|
+
})) : null;
|
|
466
|
+
if (g || d || te) {
|
|
467
|
+
const S = z(`${b}-head`, B("header")), p = z(`${b}-head-title`, B("title")), K = z(`${b}-extra`, B("extra")), Ie = Object.assign(Object.assign({}, m), G("header"));
|
|
468
|
+
ee = /* @__PURE__ */ i.createElement("div", {
|
|
469
|
+
className: S,
|
|
470
|
+
style: Ie
|
|
471
|
+
}, /* @__PURE__ */ i.createElement("div", {
|
|
472
|
+
className: `${b}-head-wrapper`
|
|
473
|
+
}, g && /* @__PURE__ */ i.createElement("div", {
|
|
474
|
+
className: p,
|
|
475
|
+
style: G("title")
|
|
476
|
+
}, g), d && /* @__PURE__ */ i.createElement("div", {
|
|
477
|
+
className: K,
|
|
478
|
+
style: G("extra")
|
|
479
|
+
}, d)), te);
|
|
480
|
+
}
|
|
481
|
+
const xe = z(`${b}-cover`, B("cover")), Ce = O ? /* @__PURE__ */ i.createElement("div", {
|
|
482
|
+
className: xe,
|
|
483
|
+
style: G("cover")
|
|
484
|
+
}, O) : null, Oe = z(`${b}-body`, B("body")), we = Object.assign(Object.assign({}, c), G("body")), Ee = /* @__PURE__ */ i.createElement("div", {
|
|
485
|
+
className: Oe,
|
|
486
|
+
style: we
|
|
487
|
+
}, v ? ve : E), Ne = z(`${b}-actions`, B("actions")), Te = H != null && H.length ? /* @__PURE__ */ i.createElement(ct, {
|
|
488
|
+
actionClasses: Ne,
|
|
489
|
+
actionStyle: G("actions"),
|
|
490
|
+
actions: H
|
|
491
|
+
}) : null, ze = Le(o, ["onTabChange"]), je = z(b, $ == null ? void 0 : $.className, {
|
|
492
|
+
[`${b}-loading`]: v,
|
|
493
|
+
[`${b}-bordered`]: X !== "borderless",
|
|
494
|
+
[`${b}-hoverable`]: W,
|
|
495
|
+
[`${b}-contain-grid`]: fe,
|
|
496
|
+
[`${b}-contain-tabs`]: P == null ? void 0 : P.length,
|
|
497
|
+
[`${b}-${F}`]: F,
|
|
498
|
+
[`${b}-type-${x}`]: !!x,
|
|
499
|
+
[`${b}-rtl`]: T === "rtl"
|
|
500
|
+
}, a, n, he, be), Pe = Object.assign(Object.assign({}, $ == null ? void 0 : $.style), s);
|
|
501
|
+
return ye(/* @__PURE__ */ i.createElement("div", Object.assign({
|
|
502
|
+
ref: t
|
|
503
|
+
}, ze, {
|
|
504
|
+
className: je,
|
|
505
|
+
style: Pe
|
|
506
|
+
}), ee, Ce, Ee, Te));
|
|
507
|
+
});
|
|
508
|
+
var mt = function(e, t) {
|
|
509
|
+
var r = {};
|
|
510
|
+
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
511
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, a = Object.getOwnPropertySymbols(e); n < a.length; n++)
|
|
512
|
+
t.indexOf(a[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[n]) && (r[a[n]] = e[a[n]]);
|
|
513
|
+
return r;
|
|
514
|
+
};
|
|
515
|
+
const ut = (e) => {
|
|
516
|
+
const {
|
|
517
|
+
prefixCls: t,
|
|
518
|
+
className: r,
|
|
519
|
+
avatar: a,
|
|
520
|
+
title: n,
|
|
521
|
+
description: s
|
|
522
|
+
} = e, d = mt(e, ["prefixCls", "className", "avatar", "title", "description"]), {
|
|
523
|
+
getPrefixCls: m
|
|
524
|
+
} = i.useContext(Q), c = m("card", t), g = z(`${c}-meta`, r), v = a ? /* @__PURE__ */ i.createElement("div", {
|
|
525
|
+
className: `${c}-meta-avatar`
|
|
526
|
+
}, a) : null, h = n ? /* @__PURE__ */ i.createElement("div", {
|
|
527
|
+
className: `${c}-meta-title`
|
|
528
|
+
}, n) : null, f = s ? /* @__PURE__ */ i.createElement("div", {
|
|
529
|
+
className: `${c}-meta-description`
|
|
530
|
+
}, s) : null, y = h || f ? /* @__PURE__ */ i.createElement("div", {
|
|
531
|
+
className: `${c}-meta-detail`
|
|
532
|
+
}, h, f) : null;
|
|
533
|
+
return /* @__PURE__ */ i.createElement("div", Object.assign({}, d, {
|
|
534
|
+
className: g
|
|
535
|
+
}), v, y);
|
|
536
|
+
}, L = dt;
|
|
537
|
+
L.Grid = pe;
|
|
538
|
+
L.Meta = ut;
|
|
539
|
+
process.env.NODE_ENV !== "production" && (L.displayName = "Card");
|
|
540
|
+
const pt = (e) => {
|
|
541
|
+
const {
|
|
542
|
+
value: t,
|
|
543
|
+
formatter: r,
|
|
544
|
+
precision: a,
|
|
545
|
+
decimalSeparator: n,
|
|
546
|
+
groupSeparator: s = "",
|
|
547
|
+
prefixCls: d
|
|
548
|
+
} = e;
|
|
549
|
+
let m;
|
|
550
|
+
if (typeof r == "function")
|
|
551
|
+
m = r(t);
|
|
552
|
+
else {
|
|
553
|
+
const c = String(t), g = c.match(/^(-?)(\d*)(\.(\d+))?$/);
|
|
554
|
+
if (!g || c === "-")
|
|
555
|
+
m = c;
|
|
556
|
+
else {
|
|
557
|
+
const v = g[1];
|
|
558
|
+
let h = g[2] || "0", f = g[4] || "";
|
|
559
|
+
h = h.replace(/\B(?=(\d{3})+(?!\d))/g, s), typeof a == "number" && (f = f.padEnd(a, "0").slice(0, a > 0 ? a : 0)), f && (f = `${n}${f}`), m = [/* @__PURE__ */ i.createElement("span", {
|
|
560
|
+
key: "int",
|
|
561
|
+
className: `${d}-content-value-int`
|
|
562
|
+
}, v, h), f && /* @__PURE__ */ i.createElement("span", {
|
|
563
|
+
key: "decimal",
|
|
564
|
+
className: `${d}-content-value-decimal`
|
|
565
|
+
}, f)];
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
return /* @__PURE__ */ i.createElement("span", {
|
|
569
|
+
className: `${d}-content-value`
|
|
570
|
+
}, m);
|
|
571
|
+
}, gt = (e) => {
|
|
572
|
+
const {
|
|
573
|
+
componentCls: t,
|
|
574
|
+
marginXXS: r,
|
|
575
|
+
padding: a,
|
|
576
|
+
colorTextDescription: n,
|
|
577
|
+
titleFontSize: s,
|
|
578
|
+
colorTextHeading: d,
|
|
579
|
+
contentFontSize: m,
|
|
580
|
+
fontFamily: c
|
|
581
|
+
} = e;
|
|
582
|
+
return {
|
|
583
|
+
[t]: Object.assign(Object.assign({}, ce(e)), {
|
|
584
|
+
[`${t}-title`]: {
|
|
585
|
+
marginBottom: r,
|
|
586
|
+
color: n,
|
|
587
|
+
fontSize: s
|
|
588
|
+
},
|
|
589
|
+
[`${t}-skeleton`]: {
|
|
590
|
+
paddingTop: a
|
|
591
|
+
},
|
|
592
|
+
[`${t}-content`]: {
|
|
593
|
+
color: d,
|
|
594
|
+
fontSize: m,
|
|
595
|
+
fontFamily: c,
|
|
596
|
+
[`${t}-content-value`]: {
|
|
597
|
+
display: "inline-block",
|
|
598
|
+
direction: "ltr"
|
|
599
|
+
},
|
|
600
|
+
[`${t}-content-prefix, ${t}-content-suffix`]: {
|
|
601
|
+
display: "inline-block"
|
|
602
|
+
},
|
|
603
|
+
[`${t}-content-prefix`]: {
|
|
604
|
+
marginInlineEnd: r
|
|
605
|
+
},
|
|
606
|
+
[`${t}-content-suffix`]: {
|
|
607
|
+
marginInlineStart: r
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
})
|
|
611
|
+
};
|
|
612
|
+
}, ft = (e) => {
|
|
613
|
+
const {
|
|
614
|
+
fontSizeHeading3: t,
|
|
615
|
+
fontSize: r
|
|
616
|
+
} = e;
|
|
617
|
+
return {
|
|
618
|
+
titleFontSize: r,
|
|
619
|
+
contentFontSize: t
|
|
620
|
+
};
|
|
621
|
+
}, yt = se("Statistic", (e) => {
|
|
622
|
+
const t = le(e, {});
|
|
623
|
+
return gt(t);
|
|
624
|
+
}, ft);
|
|
625
|
+
var ht = function(e, t) {
|
|
626
|
+
var r = {};
|
|
627
|
+
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
628
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, a = Object.getOwnPropertySymbols(e); n < a.length; n++)
|
|
629
|
+
t.indexOf(a[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[n]) && (r[a[n]] = e[a[n]]);
|
|
630
|
+
return r;
|
|
631
|
+
};
|
|
632
|
+
const j = /* @__PURE__ */ i.forwardRef((e, t) => {
|
|
633
|
+
const {
|
|
634
|
+
prefixCls: r,
|
|
635
|
+
className: a,
|
|
636
|
+
rootClassName: n,
|
|
637
|
+
style: s,
|
|
638
|
+
valueStyle: d,
|
|
639
|
+
value: m = 0,
|
|
640
|
+
title: c,
|
|
641
|
+
valueRender: g,
|
|
642
|
+
prefix: v,
|
|
643
|
+
suffix: h,
|
|
644
|
+
loading: f = !1,
|
|
645
|
+
/* --- FormatConfig starts --- */
|
|
646
|
+
formatter: y,
|
|
647
|
+
precision: x,
|
|
648
|
+
decimalSeparator: O = ".",
|
|
649
|
+
groupSeparator: H = ",",
|
|
650
|
+
/* --- FormatConfig starts --- */
|
|
651
|
+
onMouseEnter: P,
|
|
652
|
+
onMouseLeave: E
|
|
653
|
+
} = e, N = ht(e, ["prefixCls", "className", "rootClassName", "style", "valueStyle", "value", "title", "valueRender", "prefix", "suffix", "loading", "formatter", "precision", "decimalSeparator", "groupSeparator", "onMouseEnter", "onMouseLeave"]), {
|
|
654
|
+
getPrefixCls: I,
|
|
655
|
+
direction: D,
|
|
656
|
+
className: W,
|
|
657
|
+
style: A
|
|
658
|
+
} = De("statistic"), C = I("statistic", r), [M, o, w] = yt(C), T = /* @__PURE__ */ i.createElement(pt, {
|
|
659
|
+
decimalSeparator: O,
|
|
660
|
+
groupSeparator: H,
|
|
661
|
+
prefixCls: C,
|
|
662
|
+
formatter: y,
|
|
663
|
+
precision: x,
|
|
664
|
+
value: m
|
|
665
|
+
}), $ = z(C, {
|
|
666
|
+
[`${C}-rtl`]: D === "rtl"
|
|
667
|
+
}, W, a, n, o, w), X = i.useRef(null);
|
|
668
|
+
i.useImperativeHandle(t, () => ({
|
|
669
|
+
nativeElement: X.current
|
|
670
|
+
}));
|
|
671
|
+
const J = Be(N, {
|
|
672
|
+
aria: !0,
|
|
673
|
+
data: !0
|
|
674
|
+
});
|
|
675
|
+
return M(/* @__PURE__ */ i.createElement("div", Object.assign({}, J, {
|
|
676
|
+
ref: X,
|
|
677
|
+
className: $,
|
|
678
|
+
style: Object.assign(Object.assign({}, A), s),
|
|
679
|
+
onMouseEnter: P,
|
|
680
|
+
onMouseLeave: E
|
|
681
|
+
}), c && /* @__PURE__ */ i.createElement("div", {
|
|
682
|
+
className: `${C}-title`
|
|
683
|
+
}, c), /* @__PURE__ */ i.createElement(ue, {
|
|
684
|
+
paragraph: !1,
|
|
685
|
+
loading: f,
|
|
686
|
+
className: `${C}-skeleton`,
|
|
687
|
+
active: !0
|
|
688
|
+
}, /* @__PURE__ */ i.createElement("div", {
|
|
689
|
+
style: d,
|
|
690
|
+
className: `${C}-content`
|
|
691
|
+
}, v && /* @__PURE__ */ i.createElement("span", {
|
|
692
|
+
className: `${C}-content-prefix`
|
|
693
|
+
}, v), g ? g(T) : T, h && /* @__PURE__ */ i.createElement("span", {
|
|
694
|
+
className: `${C}-content-suffix`
|
|
695
|
+
}, h)))));
|
|
696
|
+
});
|
|
697
|
+
process.env.NODE_ENV !== "production" && (j.displayName = "Statistic");
|
|
698
|
+
const bt = [
|
|
699
|
+
["Y", 1e3 * 60 * 60 * 24 * 365],
|
|
700
|
+
// years
|
|
701
|
+
["M", 1e3 * 60 * 60 * 24 * 30],
|
|
702
|
+
// months
|
|
703
|
+
["D", 1e3 * 60 * 60 * 24],
|
|
704
|
+
// days
|
|
705
|
+
["H", 1e3 * 60 * 60],
|
|
706
|
+
// hours
|
|
707
|
+
["m", 1e3 * 60],
|
|
708
|
+
// minutes
|
|
709
|
+
["s", 1e3],
|
|
710
|
+
// seconds
|
|
711
|
+
["S", 1]
|
|
712
|
+
// million seconds
|
|
713
|
+
];
|
|
714
|
+
function vt(e, t) {
|
|
715
|
+
let r = e;
|
|
716
|
+
const a = /\[[^\]]*]/g, n = (t.match(a) || []).map((c) => c.slice(1, -1)), s = t.replace(a, "[]"), d = bt.reduce((c, [g, v]) => {
|
|
717
|
+
if (c.includes(g)) {
|
|
718
|
+
const h = Math.floor(r / v);
|
|
719
|
+
return r -= h * v, c.replace(new RegExp(`${g}+`, "g"), (f) => {
|
|
720
|
+
const y = f.length;
|
|
721
|
+
return h.toString().padStart(y, "0");
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
return c;
|
|
725
|
+
}, s);
|
|
726
|
+
let m = 0;
|
|
727
|
+
return d.replace(a, () => {
|
|
728
|
+
const c = n[m];
|
|
729
|
+
return m += 1, c;
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
function St(e, t, r) {
|
|
733
|
+
const {
|
|
734
|
+
format: a = ""
|
|
735
|
+
} = t, n = new Date(e).getTime(), s = Date.now(), d = Math.max(r ? n - s : s - n, 0);
|
|
736
|
+
return vt(d, a);
|
|
737
|
+
}
|
|
738
|
+
var $t = function(e, t) {
|
|
739
|
+
var r = {};
|
|
740
|
+
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
741
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, a = Object.getOwnPropertySymbols(e); n < a.length; n++)
|
|
742
|
+
t.indexOf(a[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[n]) && (r[a[n]] = e[a[n]]);
|
|
743
|
+
return r;
|
|
744
|
+
};
|
|
745
|
+
function xt(e) {
|
|
746
|
+
return new Date(e).getTime();
|
|
747
|
+
}
|
|
748
|
+
const ge = (e) => {
|
|
749
|
+
const {
|
|
750
|
+
value: t,
|
|
751
|
+
format: r = "HH:mm:ss",
|
|
752
|
+
onChange: a,
|
|
753
|
+
onFinish: n,
|
|
754
|
+
type: s
|
|
755
|
+
} = e, d = $t(e, ["value", "format", "onChange", "onFinish", "type"]), m = s === "countdown", [c, g] = i.useState(null), v = Ge(() => {
|
|
756
|
+
const y = Date.now(), x = xt(t);
|
|
757
|
+
g({});
|
|
758
|
+
const O = m ? x - y : y - x;
|
|
759
|
+
return a == null || a(O), m && x < y ? (n == null || n(), !1) : !0;
|
|
760
|
+
});
|
|
761
|
+
i.useEffect(() => {
|
|
762
|
+
let y;
|
|
763
|
+
const x = () => ae.cancel(y), O = () => {
|
|
764
|
+
y = ae(() => {
|
|
765
|
+
v() && O();
|
|
766
|
+
});
|
|
767
|
+
};
|
|
768
|
+
return O(), x;
|
|
769
|
+
}, [t, m]), i.useEffect(() => {
|
|
770
|
+
g({});
|
|
771
|
+
}, []);
|
|
772
|
+
const h = (y, x) => c ? St(y, Object.assign(Object.assign({}, x), {
|
|
773
|
+
format: r
|
|
774
|
+
}), m) : "-", f = (y) => We(y, {
|
|
775
|
+
title: void 0
|
|
776
|
+
});
|
|
777
|
+
return /* @__PURE__ */ i.createElement(j, Object.assign({}, d, {
|
|
778
|
+
value: t,
|
|
779
|
+
valueRender: f,
|
|
780
|
+
formatter: h
|
|
781
|
+
}));
|
|
782
|
+
}, Ct = (e) => (process.env.NODE_ENV !== "production" && me("Countdown").deprecated(!1, "<Statistic.Countdown />", '<Statistic.Timer type="countdown" />'), /* @__PURE__ */ i.createElement(ge, Object.assign({}, e, {
|
|
783
|
+
type: "countdown"
|
|
784
|
+
}))), Ot = /* @__PURE__ */ i.memo(Ct);
|
|
785
|
+
j.Timer = ge;
|
|
786
|
+
j.Countdown = Ot;
|
|
787
|
+
const U = "/cognition/api/memory";
|
|
788
|
+
function wt(e) {
|
|
789
|
+
return q(`${U}/health`, { signal: e });
|
|
790
|
+
}
|
|
791
|
+
function Et(e, t = 200, r) {
|
|
792
|
+
const a = new URLSearchParams({ userId: e, limit: String(t) });
|
|
793
|
+
return q(`${U}/list?${a}`, { signal: r });
|
|
794
|
+
}
|
|
795
|
+
function Nt(e) {
|
|
796
|
+
return q(`${U}/consolidate`, {
|
|
797
|
+
method: "POST",
|
|
798
|
+
signal: e
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
function Tt(e = 0.95, t) {
|
|
802
|
+
return q(`${U}/decay?factor=${e}`, {
|
|
803
|
+
method: "POST",
|
|
804
|
+
signal: t
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
function zt(e, t) {
|
|
808
|
+
return q(`${U}/forget?id=${e}`, {
|
|
809
|
+
method: "POST",
|
|
810
|
+
signal: t
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
const jt = {
|
|
814
|
+
WORKING: "orange",
|
|
815
|
+
SHORT_TERM: "blue",
|
|
816
|
+
LONG_TERM: "purple"
|
|
817
|
+
};
|
|
818
|
+
function Pt(e) {
|
|
819
|
+
if (!e) return null;
|
|
820
|
+
const t = /memory-count=(\d+)/.exec(e);
|
|
821
|
+
return t ? Number(t[1]) : null;
|
|
822
|
+
}
|
|
823
|
+
function It() {
|
|
824
|
+
const { message: e } = Fe.useApp(), [t, r] = _(), [a, n] = _(null), [s, d] = _(""), [m, c] = _(), [g, v] = _(!1), [h, f] = _(!1), [y, x] = _(!1), [O, H] = _(), [P, E] = _(), N = V(async () => {
|
|
825
|
+
try {
|
|
826
|
+
const o = await wt();
|
|
827
|
+
r(o), n(Pt(o));
|
|
828
|
+
} catch {
|
|
829
|
+
r(void 0), n(null);
|
|
830
|
+
}
|
|
831
|
+
}, []), I = V(async (o) => {
|
|
832
|
+
if (!o.trim()) {
|
|
833
|
+
c(void 0);
|
|
834
|
+
return;
|
|
835
|
+
}
|
|
836
|
+
v(!0);
|
|
837
|
+
try {
|
|
838
|
+
const w = await Et(o.trim(), 200);
|
|
839
|
+
c(w);
|
|
840
|
+
} catch {
|
|
841
|
+
c([]);
|
|
842
|
+
} finally {
|
|
843
|
+
v(!1);
|
|
844
|
+
}
|
|
845
|
+
}, []);
|
|
846
|
+
Me(() => {
|
|
847
|
+
N();
|
|
848
|
+
}, [N]);
|
|
849
|
+
const D = Re(() => {
|
|
850
|
+
const o = {};
|
|
851
|
+
for (const w of m ?? []) {
|
|
852
|
+
const T = w.tier || "UNKNOWN";
|
|
853
|
+
o[T] = (o[T] ?? 0) + 1;
|
|
854
|
+
}
|
|
855
|
+
return o;
|
|
856
|
+
}, [m]), W = V(async () => {
|
|
857
|
+
f(!0), E(void 0);
|
|
858
|
+
try {
|
|
859
|
+
const o = await Nt();
|
|
860
|
+
H(o), e.success(`巩固完成:提升 ${o.promoted} / 合并 ${o.merged} / 清理 ${o.purged}`), await N(), s.trim() && await I(s);
|
|
861
|
+
} catch (o) {
|
|
862
|
+
E(o instanceof Error ? o.message : "巩固失败");
|
|
863
|
+
} finally {
|
|
864
|
+
f(!1);
|
|
865
|
+
}
|
|
866
|
+
}, [e, N, s, I]), A = V(async () => {
|
|
867
|
+
x(!0), E(void 0);
|
|
868
|
+
try {
|
|
869
|
+
const o = await Tt(0.95);
|
|
870
|
+
e.success(`衰减巡检完成:${o} 条记忆已按半衰期衰减`), s.trim() && await I(s);
|
|
871
|
+
} catch (o) {
|
|
872
|
+
E(o instanceof Error ? o.message : "衰减巡检失败");
|
|
873
|
+
} finally {
|
|
874
|
+
x(!1);
|
|
875
|
+
}
|
|
876
|
+
}, [e, s, I]), C = V(
|
|
877
|
+
async (o) => {
|
|
878
|
+
try {
|
|
879
|
+
await zt(o) ? (e.success("已遗忘"), c((T) => T == null ? void 0 : T.filter(($) => $.id !== o)), await N()) : e.warning("条目不存在或已删除");
|
|
880
|
+
} catch (w) {
|
|
881
|
+
e.error(w instanceof Error ? w.message : "遗忘失败");
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
[e, N]
|
|
885
|
+
), M = a === null;
|
|
886
|
+
return /* @__PURE__ */ R("div", { className: "memory-ops", children: [
|
|
887
|
+
/* @__PURE__ */ R("header", { className: "memory-ops-header", children: [
|
|
888
|
+
/* @__PURE__ */ R("div", { className: "memory-ops-title", children: [
|
|
889
|
+
/* @__PURE__ */ l(Ke, { name: "sliders" }),
|
|
890
|
+
/* @__PURE__ */ R("div", { children: [
|
|
891
|
+
/* @__PURE__ */ l("h2", { children: "记忆整顿" }),
|
|
892
|
+
/* @__PURE__ */ l("p", { children: "记忆 2.0 分层存储的巩固与清理:提升 · 合并 · 清扫 · 半衰期巡检" })
|
|
893
|
+
] })
|
|
894
|
+
] }),
|
|
895
|
+
/* @__PURE__ */ R(re, { children: [
|
|
896
|
+
/* @__PURE__ */ l(Y, { onClick: A, loading: y, disabled: M, children: "衰减巡检" }),
|
|
897
|
+
/* @__PURE__ */ l(Y, { type: "primary", onClick: W, loading: h, disabled: M, children: "立即巩固" })
|
|
898
|
+
] })
|
|
899
|
+
] }),
|
|
900
|
+
P && /* @__PURE__ */ l(oe, { type: "error", showIcon: !0, message: P, closable: !0 }),
|
|
901
|
+
/* @__PURE__ */ R("div", { className: "memory-ops-stats", children: [
|
|
902
|
+
/* @__PURE__ */ l(L, { size: "small", className: "memory-ops-stat", children: /* @__PURE__ */ l(j, { title: "记忆总数", value: a ?? "—", suffix: M ? "" : "条" }) }),
|
|
903
|
+
/* @__PURE__ */ l(L, { size: "small", className: "memory-ops-stat", children: /* @__PURE__ */ l(j, { title: "工作记忆 (WORKING)", value: D.WORKING ?? 0 }) }),
|
|
904
|
+
/* @__PURE__ */ l(L, { size: "small", className: "memory-ops-stat", children: /* @__PURE__ */ l(j, { title: "短期 (SHORT_TERM)", value: D.SHORT_TERM ?? 0 }) }),
|
|
905
|
+
/* @__PURE__ */ l(L, { size: "small", className: "memory-ops-stat", children: /* @__PURE__ */ l(j, { title: "长期 (LONG_TERM)", value: D.LONG_TERM ?? 0 }) }),
|
|
906
|
+
O && /* @__PURE__ */ R(L, { size: "small", className: "memory-ops-stat memory-ops-report", children: [
|
|
907
|
+
/* @__PURE__ */ l(j, { title: "上次巩固 · 提升", value: O.promoted }),
|
|
908
|
+
/* @__PURE__ */ l(j, { title: "合并", value: O.merged }),
|
|
909
|
+
/* @__PURE__ */ l(j, { title: "清理", value: O.purged })
|
|
910
|
+
] })
|
|
911
|
+
] }),
|
|
912
|
+
M && /* @__PURE__ */ l(
|
|
913
|
+
oe,
|
|
914
|
+
{
|
|
915
|
+
type: "warning",
|
|
916
|
+
showIcon: !0,
|
|
917
|
+
message: "记忆服务未接通",
|
|
918
|
+
description: "无法连到 z-memory-server(/cognition/api/memory/health)。请确认生产集群 z-memory-server 存活且 ingress(deploy/k8s/17-memory-api-ingress.yaml)已生效。"
|
|
919
|
+
}
|
|
920
|
+
),
|
|
921
|
+
/* @__PURE__ */ R("div", { className: "memory-ops-browser", children: [
|
|
922
|
+
/* @__PURE__ */ R(re.Compact, { style: { width: 360 }, children: [
|
|
923
|
+
/* @__PURE__ */ l(
|
|
924
|
+
Ue,
|
|
925
|
+
{
|
|
926
|
+
placeholder: "按用户 ID 浏览记忆(如 u-prod-1)",
|
|
927
|
+
value: s,
|
|
928
|
+
allowClear: !0,
|
|
929
|
+
onChange: (o) => d(o.target.value),
|
|
930
|
+
onPressEnter: () => I(s)
|
|
931
|
+
}
|
|
932
|
+
),
|
|
933
|
+
/* @__PURE__ */ l(Y, { type: "primary", onClick: () => I(s), children: "查看" })
|
|
934
|
+
] }),
|
|
935
|
+
/* @__PURE__ */ l("p", { className: "memory-ops-hint", children: "记忆由 agent 侧写入(userId 形如 u-prod-1,appCode 多为 z-agent); 巩固 = 短期记忆满足条件提升为长期 + 合并近重复 + 清扫过期低分。" }),
|
|
936
|
+
g ? /* @__PURE__ */ l("div", { className: "memory-ops-loading", children: /* @__PURE__ */ l(Ve, {}) }) : m === void 0 ? /* @__PURE__ */ l(ne, { description: "输入用户 ID 后浏览该用户的记忆条目" }) : m.length === 0 ? /* @__PURE__ */ l(ne, { description: "该用户暂无未删除记忆" }) : /* @__PURE__ */ l(
|
|
937
|
+
Xe,
|
|
938
|
+
{
|
|
939
|
+
rowKey: "id",
|
|
940
|
+
size: "small",
|
|
941
|
+
dataSource: m,
|
|
942
|
+
pagination: { pageSize: 20, showSizeChanger: !1 },
|
|
943
|
+
columns: [
|
|
944
|
+
{
|
|
945
|
+
title: "层级",
|
|
946
|
+
dataIndex: "tier",
|
|
947
|
+
width: 100,
|
|
948
|
+
render: (o) => /* @__PURE__ */ l(Ye, { color: jt[o ?? ""] ?? "default", children: o || "—" })
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
title: "类型",
|
|
952
|
+
dataIndex: "memoryType",
|
|
953
|
+
width: 90,
|
|
954
|
+
render: (o) => o || "—"
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
title: "内容",
|
|
958
|
+
dataIndex: "content",
|
|
959
|
+
ellipsis: { showTitle: !0 },
|
|
960
|
+
render: (o) => /* @__PURE__ */ l(Je, { title: o, children: o })
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
title: "重要度",
|
|
964
|
+
dataIndex: "importance",
|
|
965
|
+
width: 80,
|
|
966
|
+
align: "right",
|
|
967
|
+
render: (o) => o == null ? "—" : o.toFixed(2)
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
title: "衰减分",
|
|
971
|
+
dataIndex: "decayScore",
|
|
972
|
+
width: 80,
|
|
973
|
+
align: "right",
|
|
974
|
+
render: (o) => o == null ? "—" : o.toFixed(2)
|
|
975
|
+
},
|
|
976
|
+
{ title: "访问", dataIndex: "accessCount", width: 60, align: "right" },
|
|
977
|
+
{
|
|
978
|
+
title: "更新时间",
|
|
979
|
+
dataIndex: "gmtModified",
|
|
980
|
+
width: 160,
|
|
981
|
+
render: (o) => o ? o.replace("T", " ").slice(0, 19) : "—"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
title: "",
|
|
985
|
+
width: 70,
|
|
986
|
+
render: (o, w) => /* @__PURE__ */ l(
|
|
987
|
+
Qe,
|
|
988
|
+
{
|
|
989
|
+
title: "遗忘这条记忆?",
|
|
990
|
+
description: "软删除:条目不再参与召回。",
|
|
991
|
+
onConfirm: () => C(w.id),
|
|
992
|
+
children: /* @__PURE__ */ l(Y, { size: "small", danger: !0, type: "text", children: "遗忘" })
|
|
993
|
+
}
|
|
994
|
+
)
|
|
995
|
+
}
|
|
996
|
+
]
|
|
997
|
+
}
|
|
998
|
+
)
|
|
999
|
+
] })
|
|
1000
|
+
] });
|
|
1001
|
+
}
|
|
1002
|
+
function Kt() {
|
|
1003
|
+
return /* @__PURE__ */ l(Ae, { menuCode: "menu.memory.reorganize", children: /* @__PURE__ */ l("div", { className: "view memory-reorganization-view", children: /* @__PURE__ */ l(It, {}) }) });
|
|
1004
|
+
}
|
|
1005
|
+
export {
|
|
1006
|
+
Kt as default
|
|
1007
|
+
};
|