@yuku123/z-cognition-component 2.0.0 → 2.0.1
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/ApartmentOutlined-M6qSurnE.js +12 -0
- package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +12 -0
- package/dist-lib/{ConceptsPage-DOf_CJlz.js → ConceptsPage-BOeKdDKI.js} +16 -13
- package/dist-lib/{DocsPage-CiC7TU96.js → DocsPage-BZOBFp3c.js} +4 -4
- package/dist-lib/EvidenceFormList-DXqqSpPV.js +91 -0
- package/dist-lib/{EyeOutlined-CH-5UdnC.js → EyeOutlined-DGSrX-0M.js} +1 -1
- package/dist-lib/ImpactPage-DyhUR6fT.js +71 -0
- package/dist-lib/{LeftOutlined-DQTflZ6D.js → LeftOutlined-Cgo6Izj-.js} +1 -1
- package/dist-lib/{OntologyDetailPage-mgK_NQxP.js → OntologyDetailPage-B8DyU8WW.js} +93 -99
- package/dist-lib/{OntologyInferPage-NUaoaQpN.js → OntologyInferPage-CvcjxpBB.js} +40 -38
- package/dist-lib/{OntologyListPage-C9wH01y0.js → OntologyListPage-Cb0XfpWE.js} +49 -47
- package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +136 -0
- package/dist-lib/OntologyNodesPage-D4MWlm6q.js +1268 -0
- package/dist-lib/{OntologyValidatePage-DtkYK_l4.js → OntologyValidatePage-abQVJwzV.js} +52 -49
- package/dist-lib/{Pagination-Ds8VKQIT.js → Pagination-Dxslodkq.js} +258 -260
- package/dist-lib/PlusOutlined-B_dXo_97.js +12 -0
- package/dist-lib/{ReloadOutlined-B26pDoyV.js → ReloadOutlined-CS-e-TmN.js} +10 -19
- package/dist-lib/{ResolvePage-Cz9HORZ3.js → ResolvePage-rbQ-8nNZ.js} +33 -31
- package/dist-lib/{RotateRightOutlined-B575hEBK.js → RotateRightOutlined-q7zp2e47.js} +1 -1
- package/dist-lib/SearchOutlined-puH6bCY6.js +979 -0
- package/dist-lib/Skeleton-DXcERb5r.js +557 -0
- package/dist-lib/{Table-D8pPXolZ.js → Table-CDagah-g.js} +452 -450
- package/dist-lib/TagsOutlined-B4_qkn6-.js +20 -0
- package/dist-lib/TermDetailPage-CP0D6OvA.js +242 -0
- package/dist-lib/{TermsPage-BuzCMYov.js → TermsPage-CuufAyuL.js} +31 -28
- package/dist-lib/TextArea-DTpTS5HL.js +1897 -0
- package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +20 -0
- package/dist-lib/{agents-DS0rPJGV.js → agents-mAJW3cEN.js} +46 -46
- package/dist-lib/{ai-CQ67aRC4.js → ai-BcYmZiRo.js} +30 -30
- package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DO7GXjG4.js} +14 -13
- package/dist-lib/{approval-LLVR3fMa.js → approval-RPDUKg9-.js} +26 -25
- package/dist-lib/{approvals-D1DSA-Mw.js → approvals-CNjxJUpR.js} +43 -42
- package/dist-lib/{assistant-DpabpWKV.js → assistant-FIQQziCn.js} +50 -49
- package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-DsEGBJnq.js} +5 -5
- package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-B-f3k55y.js} +1 -1
- package/dist-lib/{audit-DeU1XEgQ.js → audit-NwnH1hm5.js} +1 -1
- package/dist-lib/{bios-Bk36bVhw.js → bios-CRwKtcit.js} +130 -125
- package/dist-lib/callSuper-DZEfdkXG.js +7 -0
- package/dist-lib/{changelog-CCMDMI4R.js → changelog-Dj_Pv2nc.js} +1 -1
- package/dist-lib/{changelog-xEt2qnho.js → changelog-DlL5u9o4.js} +2 -2
- package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +2004 -0
- package/dist-lib/colors-sdAcAcU3.js +24 -0
- package/dist-lib/context-Buz0ggsK.js +710 -0
- package/dist-lib/context-DpmyNOn3.js +21 -0
- package/dist-lib/createForOfIteratorHelper-DEx_aTey.js +51 -0
- package/dist-lib/d3-force-CZK-Rgd6.js +598 -0
- package/dist-lib/{dayjs.min-DoEf5yCX.js → dayjs.min-BauDENhn.js} +1 -1
- package/dist-lib/{detail-Xtof0GoK.js → detail-Cfb-zdr9.js} +50 -49
- package/dist-lib/{detail-BW6dD_YP.js → detail-Dcfg3W8B.js} +89 -88
- package/dist-lib/{docx-preview-D4v2g8Yg.js → docx-preview-B5nQuTwk.js} +1 -1
- package/dist-lib/{downloads-Dj4DgBSS.js → downloads-MkyxiHxi.js} +4 -3
- package/dist-lib/{edit-nZ7siGuW.js → edit-DLGAM-Vo.js} +265 -259
- package/dist-lib/{editor-BuhZwEsv.js → editor-BtiheUpe.js} +21 -20
- package/dist-lib/embed-DwLg9RDW.js +31148 -0
- package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-Dz9bUuhS.js} +15 -14
- package/dist-lib/{focus-set-DfRWcq91.js → focus-set-h0YtOUB2.js} +34 -33
- package/dist-lib/{format-CWI99NCN.js → format-UGmYKemG.js} +1 -1
- package/dist-lib/index-9aQ4BzIK.js +500 -0
- package/dist-lib/index-B57Fj7Y0.js +1169 -0
- package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
- package/dist-lib/{index-BJ2Gpcbi.js → index-BGB6NawZ.js} +2 -2
- package/dist-lib/index-Bc-Vin3j.js +256 -0
- package/dist-lib/{index-g9uC_rON.js → index-BwVZgt5s.js} +129 -146
- package/dist-lib/{index-CZipVp1G.js → index-C3AMwzIi.js} +1 -1
- package/dist-lib/{index-SAPKyv8e.js → index-CJSTTgTM.js} +10 -10
- package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
- package/dist-lib/index-Cfu1W1H6.js +535 -0
- package/dist-lib/index-CrMcNEAZ.js +9656 -0
- package/dist-lib/index-Cy9i4Kx7.js +699 -0
- package/dist-lib/index-CyKWCYMK.js +218 -0
- package/dist-lib/{index-CjwzwBTy.js → index-D3GHtSlM.js} +94 -93
- package/dist-lib/{index-B8l4PAGJ.js → index-DBlG9uXV.js} +112 -108
- package/dist-lib/index-DBtGE89a.js +168 -0
- package/dist-lib/{index-CS5YTpdI.js → index-DMTPsTna.js} +4 -3
- package/dist-lib/{index-rtSfQuYs.js → index-D_Qey9G8.js} +12 -12
- package/dist-lib/index-DjFPRXl5.js +1484 -0
- package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
- package/dist-lib/{index-B5jr3A7f.js → index-DuI4K5e1.js} +19 -19
- package/dist-lib/index-DvWHYX81.js +450 -0
- package/dist-lib/{index-D5V4bZ4e.js → index-HieOUSwH.js} +8 -8
- package/dist-lib/index-Vu6sPBci.js +1884 -0
- package/dist-lib/index-bOY1cBol.js +4890 -0
- package/dist-lib/{index-DzrH4RQ7.js → index-c2HokEFp.js} +11 -10
- package/dist-lib/{index-BFRg0cn3.js → index-g16g7A4k.js} +6 -6
- package/dist-lib/index-nQSVLWfW.js +356 -0
- package/dist-lib/{index-pcUZcUIA.js → index-o65vKUwa.js} +48 -47
- package/dist-lib/{index-K7z38Ybg.js → index-ounfql2z.js} +33 -31
- package/dist-lib/{index-B1rpIXU7.js → index-y7jVGGI0.js} +23 -21
- package/dist-lib/index.js +3 -1
- package/dist-lib/{jszip.min-dcaDnWUw.js → jszip.min-DcEHhn-b.js} +1 -1
- package/dist-lib/{kb-form-modal-9L0AUHVG.js → kb-form-modal-BNoIhw6B.js} +71 -71
- package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-EgcbWseM.js} +3 -3
- package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-C023dnJ-.js} +104 -103
- package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-B4fGCn8m.js} +52 -51
- package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-EvJ9Fw7X.js} +181 -177
- package/dist-lib/{material-preview-docx-lp_xPipj.js → material-preview-docx-CH-09KeC.js} +1 -1
- package/dist-lib/{material-preview-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
- package/dist-lib/{member-B5WF3FCj.js → member-BUg2QYlE.js} +1 -1
- package/dist-lib/{message-kHyjuooj.js → message-Cwj8dO78.js} +25 -24
- package/dist-lib/{message-D2MSaOMq.js → message-GF-w8HuR.js} +1 -1
- package/dist-lib/{messages-D_VDuKK7.js → messages-JID13L8-.js} +16 -15
- package/dist-lib/{meta-CEf_DYcU.js → meta-DPp5L3Uc.js} +1 -1
- package/dist-lib/{metrics-hONGW0KG.js → metrics-CT4eLzrq.js} +2 -2
- package/dist-lib/{monitor-DFmEu6rH.js → monitor-Bs9BfJOj.js} +4 -4
- package/dist-lib/{monitor-DF3WVsVV.js → monitor-CmS65YSu.js} +8 -8
- package/dist-lib/{my-access-j53lA6T6.js → my-access-1Yj7UloI.js} +3 -3
- package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-yQDHPLYI.js} +23 -22
- package/dist-lib/{new-DfZ61nMQ.js → new-BgkoBnZV.js} +14 -12
- package/dist-lib/{ontology-CUH5qslO.js → ontology-BPrbXPor.js} +145 -142
- package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-Cbqnm-po.js} +88 -84
- package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-6k-m8fzr.js} +2125 -2117
- package/dist-lib/ontology-modeling-BT-EuDCs.js +1039 -0
- package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-D3xy6IZL.js} +703 -712
- package/dist-lib/ontology-scenarios-DWYC2yxd.js +660 -0
- package/dist-lib/pages-CsexFuEz.js +73 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-CklDU2kO.js → permission-fTfxpEhV.js} +31 -31
- package/dist-lib/{pptx-preview.es-D4ODiBv2.js → pptx-preview.es-AUrdYKu3.js} +2 -2
- package/dist-lib/{preset-Bp_mvsJm.js → preset-gh5SGoYT.js} +9810 -10199
- package/dist-lib/{quota-DLe9so2b.js → quota-BlHnhkAT.js} +4 -4
- package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
- package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-B-pzX8eT.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DByQXh0y.js} +48 -46
- package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-Bw-6n9Kh.js} +425 -423
- package/dist-lib/{schedule-B_ujtL3h.js → schedule-H4_9KnRj.js} +8 -8
- package/dist-lib/{settings-BIkKTQjc.js → settings-C3PI8KYa.js} +147 -146
- package/dist-lib/{shared-Dfz1X4Mq.js → shared-DqeN-Wbb.js} +1 -1
- package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-DN3zT9P-.js} +2 -2
- package/dist-lib/{skills-BzpcX5fN.js → skills-eGlCExr0.js} +40 -39
- package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-BCvClzc-.js} +16 -16
- package/dist-lib/{task-config-D0a7TOYt.js → task-config-DEJVJ7zK.js} +4 -4
- package/dist-lib/{tech-CH01ekZ5.js → tech-C-4uM9bS.js} +4 -3
- package/dist-lib/{tools-YnTN61uE.js → tools-le6miafZ.js} +14 -14
- package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-B3pDp3s5.js} +13 -13
- package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
- package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-Dmp7uMHO.js} +50 -48
- package/dist-lib/useClosable-BY7FgWKy.js +59 -0
- package/dist-lib/useForm-Byp1LopG.js +145 -0
- package/dist-lib/{version-control-panel-CLy2ZXI_.js → version-control-panel-WT1PobuV.js} +27 -26
- package/dist-lib/{version-management-C_v8w1E4.js → version-management-DC0k1DRg.js} +7 -6
- package/dist-lib/{welcome-ChEcA4Ej.js → welcome-VyWLrbth.js} +4 -3
- package/package.json +2 -3
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +0 -90
- package/dist-lib/ImpactPage-CYiuqy0S.js +0 -68
- package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +0 -134
- package/dist-lib/OntologyNodesPage-5kH7RHwE.js +0 -2844
- package/dist-lib/PlusOutlined-BSTPGLOH.js +0 -21
- package/dist-lib/Skeleton-CxFsInYI.js +0 -671
- package/dist-lib/Table-Civ838nE.js +0 -20514
- package/dist-lib/TermDetailPage-BtkOpbPT.js +0 -263
- package/dist-lib/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist-lib/callSuper-CwIeyYoc.js +0 -7
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +0 -1627
- package/dist-lib/context-T27uno74.js +0 -54
- package/dist-lib/d3-force-Cr_oBTiR.js +0 -647
- package/dist-lib/embed-Bs3Hmsyy.js +0 -51377
- package/dist-lib/index-0TvzCTD7.js +0 -2336
- package/dist-lib/index-4tbtbcAt.js +0 -550
- package/dist-lib/index-B1wh6i1C.js +0 -1308
- package/dist-lib/index-BVgdmf6r.js +0 -2487
- package/dist-lib/index-CSnvcFg-.js +0 -543
- package/dist-lib/index-D35Ry0PG.js +0 -1162
- package/dist-lib/index-DC57_dnh.js +0 -604
- package/dist-lib/index-DQ16Zb7x.js +0 -546
- package/dist-lib/index-DRcTwC17.js +0 -418
- package/dist-lib/index-Dd9pPAT3.js +0 -2192
- package/dist-lib/index-DxzorPvG.js +0 -13960
- package/dist-lib/index-If4xc1-H.js +0 -559
- package/dist-lib/index-R71k3nB_.js +0 -710
- package/dist-lib/index-mUlorJxp.js +0 -3279
- package/dist-lib/ontology-modeling-CvJIImxt.js +0 -3612
- package/dist-lib/ontology-scenarios-BRDkk3uA.js +0 -675
- package/dist-lib/pages-CticGC6S.js +0 -512
- package/dist-lib/use-g6-graph-SwJtPLce.js +0 -57552
|
@@ -0,0 +1,1039 @@
|
|
|
1
|
+
import * as M from "react";
|
|
2
|
+
import I from "react";
|
|
3
|
+
import { a as ie } from "./LeftOutlined-Cgo6Izj-.js";
|
|
4
|
+
import { i as W, c as j, h as L, q as Y, _ as K, b as le, f as ce, a as de, I as ue } from "./SearchOutlined-puH6bCY6.js";
|
|
5
|
+
import { i as U, s as me, a3 as Q, N as pe, p as fe, _ as ge, d as Z, c as he, g as ve, m as Ce, u as B, r as be, a as ye, a6 as $e, a8 as xe, ac as Ie, ay as q, ak as Pe, a2 as J } from "./index-CrMcNEAZ.js";
|
|
6
|
+
import { g as Se } from "./collapse-Dtpt-6W_.js";
|
|
7
|
+
import { P as Ee, Q as we } from "./ai-BcYmZiRo.js";
|
|
8
|
+
import { r as l, t as Ne, aK as ee, C as Oe, aL as Ae, aB as Te } from "./embed-DwLg9RDW.js";
|
|
9
|
+
var te = /* @__PURE__ */ I.forwardRef(function(e, t) {
|
|
10
|
+
var a = e.prefixCls, n = e.forceRender, m = e.className, r = e.style, c = e.children, h = e.isActive, i = e.role, b = e.classNames, C = e.styles, p = I.useState(h || n), f = W(p, 2), d = f[0], g = f[1];
|
|
11
|
+
return I.useEffect(function() {
|
|
12
|
+
(n || h) && g(!0);
|
|
13
|
+
}, [n, h]), d ? /* @__PURE__ */ I.createElement("div", {
|
|
14
|
+
ref: t,
|
|
15
|
+
className: j("".concat(a, "-content"), L(L({}, "".concat(a, "-content-active"), h), "".concat(a, "-content-inactive"), !h), m),
|
|
16
|
+
style: r,
|
|
17
|
+
role: i
|
|
18
|
+
}, /* @__PURE__ */ I.createElement("div", {
|
|
19
|
+
className: j("".concat(a, "-content-box"), b == null ? void 0 : b.body),
|
|
20
|
+
style: C == null ? void 0 : C.body
|
|
21
|
+
}, c)) : null;
|
|
22
|
+
});
|
|
23
|
+
te.displayName = "PanelContent";
|
|
24
|
+
var Re = ["showArrow", "headerClass", "isActive", "onItemClick", "forceRender", "className", "classNames", "styles", "prefixCls", "collapsible", "accordion", "panelKey", "extra", "header", "expandIcon", "openMotion", "destroyInactivePanel", "children"], ae = /* @__PURE__ */ I.forwardRef(function(e, t) {
|
|
25
|
+
var a = e.showArrow, n = a === void 0 ? !0 : a, m = e.headerClass, r = e.isActive, c = e.onItemClick, h = e.forceRender, i = e.className, b = e.classNames, C = b === void 0 ? {} : b, p = e.styles, f = p === void 0 ? {} : p, d = e.prefixCls, g = e.collapsible, $ = e.accordion, S = e.panelKey, y = e.extra, x = e.header, P = e.expandIcon, u = e.openMotion, O = e.destroyInactivePanel, E = e.children, R = Y(e, Re), w = g === "disabled", A = y != null && typeof y != "boolean", T = L(L(L({
|
|
26
|
+
onClick: function() {
|
|
27
|
+
c == null || c(S);
|
|
28
|
+
},
|
|
29
|
+
onKeyDown: function(k) {
|
|
30
|
+
(k.key === "Enter" || k.keyCode === U.ENTER || k.which === U.ENTER) && (c == null || c(S));
|
|
31
|
+
},
|
|
32
|
+
role: $ ? "tab" : "button"
|
|
33
|
+
}, "aria-expanded", r), "aria-disabled", w), "tabIndex", w ? -1 : 0), D = typeof P == "function" ? P(e) : /* @__PURE__ */ I.createElement("i", {
|
|
34
|
+
className: "arrow"
|
|
35
|
+
}), G = D && /* @__PURE__ */ I.createElement("div", K({
|
|
36
|
+
className: "".concat(d, "-expand-icon")
|
|
37
|
+
}, ["header", "icon"].includes(g) ? T : {}), D), V = j("".concat(d, "-item"), L(L({}, "".concat(d, "-item-active"), r), "".concat(d, "-item-disabled"), w), i), X = j(m, "".concat(d, "-header"), L({}, "".concat(d, "-collapsible-").concat(g), !!g), C.header), N = le({
|
|
38
|
+
className: X,
|
|
39
|
+
style: f.header
|
|
40
|
+
}, ["header", "icon"].includes(g) ? {} : T);
|
|
41
|
+
return /* @__PURE__ */ I.createElement("div", K({}, R, {
|
|
42
|
+
ref: t,
|
|
43
|
+
className: V
|
|
44
|
+
}), /* @__PURE__ */ I.createElement("div", N, n && G, /* @__PURE__ */ I.createElement("span", K({
|
|
45
|
+
className: "".concat(d, "-header-text")
|
|
46
|
+
}, g === "header" ? T : {}), x), A && /* @__PURE__ */ I.createElement("div", {
|
|
47
|
+
className: "".concat(d, "-extra")
|
|
48
|
+
}, y)), /* @__PURE__ */ I.createElement(me, K({
|
|
49
|
+
visible: r,
|
|
50
|
+
leavedClassName: "".concat(d, "-content-hidden")
|
|
51
|
+
}, u, {
|
|
52
|
+
forceRender: h,
|
|
53
|
+
removeOnLeave: O
|
|
54
|
+
}), function(_, k) {
|
|
55
|
+
var z = _.className, H = _.style;
|
|
56
|
+
return /* @__PURE__ */ I.createElement(te, {
|
|
57
|
+
ref: k,
|
|
58
|
+
prefixCls: d,
|
|
59
|
+
className: z,
|
|
60
|
+
classNames: C,
|
|
61
|
+
style: H,
|
|
62
|
+
styles: f,
|
|
63
|
+
isActive: r,
|
|
64
|
+
forceRender: h,
|
|
65
|
+
role: $ ? "tabpanel" : void 0
|
|
66
|
+
}, E);
|
|
67
|
+
}));
|
|
68
|
+
}), _e = ["children", "label", "key", "collapsible", "onItemClick", "destroyInactivePanel"], ke = function(t, a) {
|
|
69
|
+
var n = a.prefixCls, m = a.accordion, r = a.collapsible, c = a.destroyInactivePanel, h = a.onItemClick, i = a.activeKey, b = a.openMotion, C = a.expandIcon;
|
|
70
|
+
return t.map(function(p, f) {
|
|
71
|
+
var d = p.children, g = p.label, $ = p.key, S = p.collapsible, y = p.onItemClick, x = p.destroyInactivePanel, P = Y(p, _e), u = String($ ?? f), O = S ?? r, E = x ?? c, R = function(T) {
|
|
72
|
+
O !== "disabled" && (h(T), y == null || y(T));
|
|
73
|
+
}, w = !1;
|
|
74
|
+
return m ? w = i[0] === u : w = i.indexOf(u) > -1, /* @__PURE__ */ I.createElement(ae, K({}, P, {
|
|
75
|
+
prefixCls: n,
|
|
76
|
+
key: u,
|
|
77
|
+
panelKey: u,
|
|
78
|
+
isActive: w,
|
|
79
|
+
accordion: m,
|
|
80
|
+
openMotion: b,
|
|
81
|
+
expandIcon: C,
|
|
82
|
+
header: g,
|
|
83
|
+
collapsible: O,
|
|
84
|
+
onItemClick: R,
|
|
85
|
+
destroyInactivePanel: E
|
|
86
|
+
}), d);
|
|
87
|
+
});
|
|
88
|
+
}, Me = function(t, a, n) {
|
|
89
|
+
if (!t) return null;
|
|
90
|
+
var m = n.prefixCls, r = n.accordion, c = n.collapsible, h = n.destroyInactivePanel, i = n.onItemClick, b = n.activeKey, C = n.openMotion, p = n.expandIcon, f = t.key || String(a), d = t.props, g = d.header, $ = d.headerClass, S = d.destroyInactivePanel, y = d.collapsible, x = d.onItemClick, P = !1;
|
|
91
|
+
r ? P = b[0] === f : P = b.indexOf(f) > -1;
|
|
92
|
+
var u = y ?? c, O = function(w) {
|
|
93
|
+
u !== "disabled" && (i(w), x == null || x(w));
|
|
94
|
+
}, E = {
|
|
95
|
+
key: f,
|
|
96
|
+
panelKey: f,
|
|
97
|
+
header: g,
|
|
98
|
+
headerClass: $,
|
|
99
|
+
isActive: P,
|
|
100
|
+
prefixCls: m,
|
|
101
|
+
destroyInactivePanel: S ?? h,
|
|
102
|
+
openMotion: C,
|
|
103
|
+
accordion: r,
|
|
104
|
+
children: t.props.children,
|
|
105
|
+
onItemClick: O,
|
|
106
|
+
expandIcon: p,
|
|
107
|
+
collapsible: u
|
|
108
|
+
};
|
|
109
|
+
return typeof t.type == "string" ? t : (Object.keys(E).forEach(function(R) {
|
|
110
|
+
typeof E[R] > "u" && delete E[R];
|
|
111
|
+
}), /* @__PURE__ */ I.cloneElement(t, E));
|
|
112
|
+
};
|
|
113
|
+
function Be(e, t, a) {
|
|
114
|
+
return Array.isArray(e) ? ke(e, a) : Q(t).map(function(n, m) {
|
|
115
|
+
return Me(n, m, a);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function De(e) {
|
|
119
|
+
var t = e;
|
|
120
|
+
if (!Array.isArray(t)) {
|
|
121
|
+
var a = de(t);
|
|
122
|
+
t = a === "number" || a === "string" ? [t] : [];
|
|
123
|
+
}
|
|
124
|
+
return t.map(function(n) {
|
|
125
|
+
return String(n);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
var Le = /* @__PURE__ */ I.forwardRef(function(e, t) {
|
|
129
|
+
var a = e.prefixCls, n = a === void 0 ? "rc-collapse" : a, m = e.destroyInactivePanel, r = m === void 0 ? !1 : m, c = e.style, h = e.accordion, i = e.className, b = e.children, C = e.collapsible, p = e.openMotion, f = e.expandIcon, d = e.activeKey, g = e.defaultActiveKey, $ = e.onChange, S = e.items, y = j(n, i), x = pe([], {
|
|
130
|
+
value: d,
|
|
131
|
+
onChange: function(A) {
|
|
132
|
+
return $ == null ? void 0 : $(A);
|
|
133
|
+
},
|
|
134
|
+
defaultValue: g,
|
|
135
|
+
postState: De
|
|
136
|
+
}), P = W(x, 2), u = P[0], O = P[1], E = function(A) {
|
|
137
|
+
return O(function() {
|
|
138
|
+
if (h)
|
|
139
|
+
return u[0] === A ? [] : [A];
|
|
140
|
+
var T = u.indexOf(A), D = T > -1;
|
|
141
|
+
return D ? u.filter(function(G) {
|
|
142
|
+
return G !== A;
|
|
143
|
+
}) : [].concat(ge(u), [A]);
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
ce(!b, "[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");
|
|
147
|
+
var R = Be(S, b, {
|
|
148
|
+
prefixCls: n,
|
|
149
|
+
accordion: h,
|
|
150
|
+
openMotion: p,
|
|
151
|
+
expandIcon: f,
|
|
152
|
+
collapsible: C,
|
|
153
|
+
destroyInactivePanel: r,
|
|
154
|
+
onItemClick: E,
|
|
155
|
+
activeKey: u
|
|
156
|
+
});
|
|
157
|
+
return /* @__PURE__ */ I.createElement("div", K({
|
|
158
|
+
ref: t,
|
|
159
|
+
className: y,
|
|
160
|
+
style: c,
|
|
161
|
+
role: h ? "tablist" : void 0
|
|
162
|
+
}, fe(e, {
|
|
163
|
+
aria: !0,
|
|
164
|
+
data: !0
|
|
165
|
+
})), R);
|
|
166
|
+
});
|
|
167
|
+
const F = Object.assign(Le, {
|
|
168
|
+
/**
|
|
169
|
+
* @deprecated use `items` instead, will be removed in `v4.0.0`
|
|
170
|
+
*/
|
|
171
|
+
Panel: ae
|
|
172
|
+
});
|
|
173
|
+
F.Panel;
|
|
174
|
+
const je = /* @__PURE__ */ M.forwardRef((e, t) => {
|
|
175
|
+
process.env.NODE_ENV !== "production" && Z("Collapse.Panel").deprecated(!("disabled" in e), "disabled", 'collapsible="disabled"');
|
|
176
|
+
const {
|
|
177
|
+
getPrefixCls: a
|
|
178
|
+
} = M.useContext(he), {
|
|
179
|
+
prefixCls: n,
|
|
180
|
+
className: m,
|
|
181
|
+
showArrow: r = !0
|
|
182
|
+
} = e, c = a("collapse", n), h = j({
|
|
183
|
+
[`${c}-no-arrow`]: !r
|
|
184
|
+
}, m);
|
|
185
|
+
return /* @__PURE__ */ M.createElement(F.Panel, Object.assign({
|
|
186
|
+
ref: t
|
|
187
|
+
}, e, {
|
|
188
|
+
prefixCls: c,
|
|
189
|
+
className: h
|
|
190
|
+
}));
|
|
191
|
+
}), Ke = (e) => {
|
|
192
|
+
const {
|
|
193
|
+
componentCls: t,
|
|
194
|
+
contentBg: a,
|
|
195
|
+
padding: n,
|
|
196
|
+
headerBg: m,
|
|
197
|
+
headerPadding: r,
|
|
198
|
+
collapseHeaderPaddingSM: c,
|
|
199
|
+
collapseHeaderPaddingLG: h,
|
|
200
|
+
collapsePanelBorderRadius: i,
|
|
201
|
+
lineWidth: b,
|
|
202
|
+
lineType: C,
|
|
203
|
+
colorBorder: p,
|
|
204
|
+
colorText: f,
|
|
205
|
+
colorTextHeading: d,
|
|
206
|
+
colorTextDisabled: g,
|
|
207
|
+
fontSizeLG: $,
|
|
208
|
+
lineHeight: S,
|
|
209
|
+
lineHeightLG: y,
|
|
210
|
+
marginSM: x,
|
|
211
|
+
paddingSM: P,
|
|
212
|
+
paddingLG: u,
|
|
213
|
+
paddingXS: O,
|
|
214
|
+
motionDurationSlow: E,
|
|
215
|
+
fontSizeIcon: R,
|
|
216
|
+
contentPadding: w,
|
|
217
|
+
fontHeight: A,
|
|
218
|
+
fontHeightLG: T
|
|
219
|
+
} = e, D = `${B(b)} ${C} ${p}`;
|
|
220
|
+
return {
|
|
221
|
+
[t]: Object.assign(Object.assign({}, be(e)), {
|
|
222
|
+
backgroundColor: m,
|
|
223
|
+
border: D,
|
|
224
|
+
borderRadius: i,
|
|
225
|
+
"&-rtl": {
|
|
226
|
+
direction: "rtl"
|
|
227
|
+
},
|
|
228
|
+
[`& > ${t}-item`]: {
|
|
229
|
+
borderBottom: D,
|
|
230
|
+
"&:first-child": {
|
|
231
|
+
[`
|
|
232
|
+
&,
|
|
233
|
+
& > ${t}-header`]: {
|
|
234
|
+
borderRadius: `${B(i)} ${B(i)} 0 0`
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"&:last-child": {
|
|
238
|
+
[`
|
|
239
|
+
&,
|
|
240
|
+
& > ${t}-header`]: {
|
|
241
|
+
borderRadius: `0 0 ${B(i)} ${B(i)}`
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
[`> ${t}-header`]: Object.assign(Object.assign({
|
|
245
|
+
position: "relative",
|
|
246
|
+
display: "flex",
|
|
247
|
+
flexWrap: "nowrap",
|
|
248
|
+
alignItems: "flex-start",
|
|
249
|
+
padding: r,
|
|
250
|
+
color: d,
|
|
251
|
+
lineHeight: S,
|
|
252
|
+
cursor: "pointer",
|
|
253
|
+
transition: `all ${E}, visibility 0s`
|
|
254
|
+
}, ye(e)), {
|
|
255
|
+
[`> ${t}-header-text`]: {
|
|
256
|
+
flex: "auto"
|
|
257
|
+
},
|
|
258
|
+
// >>>>> Arrow
|
|
259
|
+
[`${t}-expand-icon`]: {
|
|
260
|
+
height: A,
|
|
261
|
+
display: "flex",
|
|
262
|
+
alignItems: "center",
|
|
263
|
+
paddingInlineEnd: x
|
|
264
|
+
},
|
|
265
|
+
[`${t}-arrow`]: Object.assign(Object.assign({}, $e()), {
|
|
266
|
+
fontSize: R,
|
|
267
|
+
// when `transform: rotate()` is applied to icon's root element
|
|
268
|
+
transition: `transform ${E}`,
|
|
269
|
+
// when `transform: rotate()` is applied to icon's child element
|
|
270
|
+
svg: {
|
|
271
|
+
transition: `transform ${E}`
|
|
272
|
+
}
|
|
273
|
+
}),
|
|
274
|
+
// >>>>> Text
|
|
275
|
+
[`${t}-header-text`]: {
|
|
276
|
+
marginInlineEnd: "auto"
|
|
277
|
+
}
|
|
278
|
+
}),
|
|
279
|
+
[`${t}-collapsible-header`]: {
|
|
280
|
+
cursor: "default",
|
|
281
|
+
[`${t}-header-text`]: {
|
|
282
|
+
flex: "none",
|
|
283
|
+
cursor: "pointer"
|
|
284
|
+
},
|
|
285
|
+
[`${t}-expand-icon`]: {
|
|
286
|
+
cursor: "pointer"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
[`${t}-collapsible-icon`]: {
|
|
290
|
+
cursor: "unset",
|
|
291
|
+
[`${t}-expand-icon`]: {
|
|
292
|
+
cursor: "pointer"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
[`${t}-content`]: {
|
|
297
|
+
color: f,
|
|
298
|
+
backgroundColor: a,
|
|
299
|
+
borderTop: D,
|
|
300
|
+
[`& > ${t}-content-box`]: {
|
|
301
|
+
padding: w
|
|
302
|
+
},
|
|
303
|
+
"&-hidden": {
|
|
304
|
+
display: "none"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"&-small": {
|
|
308
|
+
[`> ${t}-item`]: {
|
|
309
|
+
[`> ${t}-header`]: {
|
|
310
|
+
padding: c,
|
|
311
|
+
paddingInlineStart: O,
|
|
312
|
+
[`> ${t}-expand-icon`]: {
|
|
313
|
+
// Arrow offset
|
|
314
|
+
marginInlineStart: e.calc(P).sub(O).equal()
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
[`> ${t}-content > ${t}-content-box`]: {
|
|
318
|
+
padding: P
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"&-large": {
|
|
323
|
+
[`> ${t}-item`]: {
|
|
324
|
+
fontSize: $,
|
|
325
|
+
lineHeight: y,
|
|
326
|
+
[`> ${t}-header`]: {
|
|
327
|
+
padding: h,
|
|
328
|
+
paddingInlineStart: n,
|
|
329
|
+
[`> ${t}-expand-icon`]: {
|
|
330
|
+
height: T,
|
|
331
|
+
// Arrow offset
|
|
332
|
+
marginInlineStart: e.calc(u).sub(n).equal()
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
[`> ${t}-content > ${t}-content-box`]: {
|
|
336
|
+
padding: u
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
[`${t}-item:last-child`]: {
|
|
341
|
+
borderBottom: 0,
|
|
342
|
+
[`> ${t}-content`]: {
|
|
343
|
+
borderRadius: `0 0 ${B(i)} ${B(i)}`
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
[`& ${t}-item-disabled > ${t}-header`]: {
|
|
347
|
+
"\n &,\n & > .arrow\n ": {
|
|
348
|
+
color: g,
|
|
349
|
+
cursor: "not-allowed"
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
// ========================== Icon Position ==========================
|
|
353
|
+
[`&${t}-icon-position-end`]: {
|
|
354
|
+
[`& > ${t}-item`]: {
|
|
355
|
+
[`> ${t}-header`]: {
|
|
356
|
+
[`${t}-expand-icon`]: {
|
|
357
|
+
order: 1,
|
|
358
|
+
paddingInlineEnd: 0,
|
|
359
|
+
paddingInlineStart: x
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
})
|
|
365
|
+
};
|
|
366
|
+
}, He = (e) => {
|
|
367
|
+
const {
|
|
368
|
+
componentCls: t
|
|
369
|
+
} = e, a = `> ${t}-item > ${t}-header ${t}-arrow`;
|
|
370
|
+
return {
|
|
371
|
+
[`${t}-rtl`]: {
|
|
372
|
+
[a]: {
|
|
373
|
+
transform: "rotate(180deg)"
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
};
|
|
377
|
+
}, Ge = (e) => {
|
|
378
|
+
const {
|
|
379
|
+
componentCls: t,
|
|
380
|
+
headerBg: a,
|
|
381
|
+
borderlessContentPadding: n,
|
|
382
|
+
borderlessContentBg: m,
|
|
383
|
+
colorBorder: r
|
|
384
|
+
} = e;
|
|
385
|
+
return {
|
|
386
|
+
[`${t}-borderless`]: {
|
|
387
|
+
backgroundColor: a,
|
|
388
|
+
border: 0,
|
|
389
|
+
[`> ${t}-item`]: {
|
|
390
|
+
borderBottom: `1px solid ${r}`
|
|
391
|
+
},
|
|
392
|
+
[`
|
|
393
|
+
> ${t}-item:last-child,
|
|
394
|
+
> ${t}-item:last-child ${t}-header
|
|
395
|
+
`]: {
|
|
396
|
+
borderRadius: 0
|
|
397
|
+
},
|
|
398
|
+
[`> ${t}-item:last-child`]: {
|
|
399
|
+
borderBottom: 0
|
|
400
|
+
},
|
|
401
|
+
[`> ${t}-item > ${t}-content`]: {
|
|
402
|
+
backgroundColor: m,
|
|
403
|
+
borderTop: 0
|
|
404
|
+
},
|
|
405
|
+
[`> ${t}-item > ${t}-content > ${t}-content-box`]: {
|
|
406
|
+
padding: n
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
}, ze = (e) => {
|
|
411
|
+
const {
|
|
412
|
+
componentCls: t,
|
|
413
|
+
paddingSM: a
|
|
414
|
+
} = e;
|
|
415
|
+
return {
|
|
416
|
+
[`${t}-ghost`]: {
|
|
417
|
+
backgroundColor: "transparent",
|
|
418
|
+
border: 0,
|
|
419
|
+
[`> ${t}-item`]: {
|
|
420
|
+
borderBottom: 0,
|
|
421
|
+
[`> ${t}-content`]: {
|
|
422
|
+
backgroundColor: "transparent",
|
|
423
|
+
border: 0,
|
|
424
|
+
[`> ${t}-content-box`]: {
|
|
425
|
+
paddingBlock: a
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
}, Ve = (e) => ({
|
|
432
|
+
headerPadding: `${e.paddingSM}px ${e.padding}px`,
|
|
433
|
+
headerBg: e.colorFillAlter,
|
|
434
|
+
contentPadding: `${e.padding}px 16px`,
|
|
435
|
+
// Fixed Value
|
|
436
|
+
contentBg: e.colorBgContainer,
|
|
437
|
+
borderlessContentPadding: `${e.paddingXXS}px 16px ${e.padding}px`,
|
|
438
|
+
borderlessContentBg: "transparent"
|
|
439
|
+
}), Xe = ve("Collapse", (e) => {
|
|
440
|
+
const t = Ce(e, {
|
|
441
|
+
collapseHeaderPaddingSM: `${B(e.paddingXS)} ${B(e.paddingSM)}`,
|
|
442
|
+
collapseHeaderPaddingLG: `${B(e.padding)} ${B(e.paddingLG)}`,
|
|
443
|
+
collapsePanelBorderRadius: e.borderRadiusLG
|
|
444
|
+
});
|
|
445
|
+
return [Ke(t), Ge(t), ze(t), He(t), Se(t)];
|
|
446
|
+
}, Ve), ne = /* @__PURE__ */ M.forwardRef((e, t) => {
|
|
447
|
+
const {
|
|
448
|
+
getPrefixCls: a,
|
|
449
|
+
direction: n,
|
|
450
|
+
expandIcon: m,
|
|
451
|
+
className: r,
|
|
452
|
+
style: c
|
|
453
|
+
} = xe("collapse"), {
|
|
454
|
+
prefixCls: h,
|
|
455
|
+
className: i,
|
|
456
|
+
rootClassName: b,
|
|
457
|
+
style: C,
|
|
458
|
+
bordered: p = !0,
|
|
459
|
+
ghost: f,
|
|
460
|
+
size: d,
|
|
461
|
+
expandIconPosition: g = "start",
|
|
462
|
+
children: $,
|
|
463
|
+
destroyInactivePanel: S,
|
|
464
|
+
destroyOnHidden: y,
|
|
465
|
+
expandIcon: x
|
|
466
|
+
} = e, P = Ie((N) => {
|
|
467
|
+
var _;
|
|
468
|
+
return (_ = d ?? N) !== null && _ !== void 0 ? _ : "middle";
|
|
469
|
+
}), u = a("collapse", h), O = a(), [E, R, w] = Xe(u);
|
|
470
|
+
if (process.env.NODE_ENV !== "production") {
|
|
471
|
+
const N = Z("Collapse");
|
|
472
|
+
process.env.NODE_ENV !== "production" && N(g !== "left" && g !== "right", "deprecated", "`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead."), N.deprecated(!("destroyInactivePanel" in e), "destroyInactivePanel", "destroyOnHidden");
|
|
473
|
+
}
|
|
474
|
+
const A = M.useMemo(() => g === "left" ? "start" : g === "right" ? "end" : g, [g]), T = x ?? m, D = M.useCallback((N = {}) => {
|
|
475
|
+
const _ = typeof T == "function" ? T(N) : /* @__PURE__ */ M.createElement(ie, {
|
|
476
|
+
rotate: N.isActive ? n === "rtl" ? -90 : 90 : void 0,
|
|
477
|
+
"aria-label": N.isActive ? "expanded" : "collapsed"
|
|
478
|
+
});
|
|
479
|
+
return q(_, () => {
|
|
480
|
+
var k;
|
|
481
|
+
return {
|
|
482
|
+
className: j((k = _.props) === null || k === void 0 ? void 0 : k.className, `${u}-arrow`)
|
|
483
|
+
};
|
|
484
|
+
});
|
|
485
|
+
}, [T, u, n]), G = j(`${u}-icon-position-${A}`, {
|
|
486
|
+
[`${u}-borderless`]: !p,
|
|
487
|
+
[`${u}-rtl`]: n === "rtl",
|
|
488
|
+
[`${u}-ghost`]: !!f,
|
|
489
|
+
[`${u}-${P}`]: P !== "middle"
|
|
490
|
+
}, r, i, b, R, w), V = M.useMemo(() => Object.assign(Object.assign({}, Pe(O)), {
|
|
491
|
+
motionAppear: !1,
|
|
492
|
+
leavedClassName: `${u}-content-hidden`
|
|
493
|
+
}), [O, u]), X = M.useMemo(() => $ ? Q($).map((N, _) => {
|
|
494
|
+
var k, z;
|
|
495
|
+
const H = N.props;
|
|
496
|
+
if (H != null && H.disabled) {
|
|
497
|
+
const oe = (k = N.key) !== null && k !== void 0 ? k : String(_), se = Object.assign(Object.assign({}, J(N.props, ["disabled"])), {
|
|
498
|
+
key: oe,
|
|
499
|
+
collapsible: (z = H.collapsible) !== null && z !== void 0 ? z : "disabled"
|
|
500
|
+
});
|
|
501
|
+
return q(N, se);
|
|
502
|
+
}
|
|
503
|
+
return N;
|
|
504
|
+
}) : null, [$]);
|
|
505
|
+
return E(
|
|
506
|
+
// @ts-ignore
|
|
507
|
+
/* @__PURE__ */ M.createElement(F, Object.assign({
|
|
508
|
+
ref: t,
|
|
509
|
+
openMotion: V
|
|
510
|
+
}, J(e, ["rootClassName"]), {
|
|
511
|
+
expandIcon: D,
|
|
512
|
+
prefixCls: u,
|
|
513
|
+
className: G,
|
|
514
|
+
style: Object.assign(Object.assign({}, c), C),
|
|
515
|
+
// TODO: In the future, destroyInactivePanel in rc-collapse needs to be upgrade to destroyOnHidden
|
|
516
|
+
destroyInactivePanel: y ?? S
|
|
517
|
+
}), X)
|
|
518
|
+
);
|
|
519
|
+
});
|
|
520
|
+
process.env.NODE_ENV !== "production" && (ne.displayName = "Collapse");
|
|
521
|
+
const nt = Object.assign(ne, {
|
|
522
|
+
Panel: je
|
|
523
|
+
});
|
|
524
|
+
var Fe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" } }] }, name: "clock-circle", theme: "outlined" }, Ue = function(t, a) {
|
|
525
|
+
return /* @__PURE__ */ M.createElement(ue, K({}, t, {
|
|
526
|
+
ref: a,
|
|
527
|
+
icon: Fe
|
|
528
|
+
}));
|
|
529
|
+
}, qe = /* @__PURE__ */ M.forwardRef(Ue);
|
|
530
|
+
process.env.NODE_ENV !== "production" && (qe.displayName = "ClockCircleOutlined");
|
|
531
|
+
const rt = 1, ot = "ontology_modeler", st = 51093, it = 51050;
|
|
532
|
+
function lt(e) {
|
|
533
|
+
return v(
|
|
534
|
+
() => l(`${o}/agent/session/page`, {
|
|
535
|
+
method: "post",
|
|
536
|
+
data: e,
|
|
537
|
+
headers: s()
|
|
538
|
+
})
|
|
539
|
+
);
|
|
540
|
+
}
|
|
541
|
+
function ct(e) {
|
|
542
|
+
return v(
|
|
543
|
+
() => l(`${o}/agent/session/create`, {
|
|
544
|
+
method: "post",
|
|
545
|
+
data: e,
|
|
546
|
+
headers: s()
|
|
547
|
+
}),
|
|
548
|
+
// 失败由调用方按会话状态提示(工作台页头红点 + 保存提示),避免与全局 toast 重复
|
|
549
|
+
{ silent: !0 }
|
|
550
|
+
);
|
|
551
|
+
}
|
|
552
|
+
function dt(e, t) {
|
|
553
|
+
const a = new AbortController(), n = (async () => {
|
|
554
|
+
var m;
|
|
555
|
+
try {
|
|
556
|
+
const r = await fetch(ee(`${o}/agent/chat/streaming`), {
|
|
557
|
+
method: "POST",
|
|
558
|
+
credentials: "include",
|
|
559
|
+
headers: {
|
|
560
|
+
"Content-Type": "application/json; charset=utf-8",
|
|
561
|
+
Accept: "text/event-stream",
|
|
562
|
+
...s(),
|
|
563
|
+
...re()
|
|
564
|
+
},
|
|
565
|
+
body: JSON.stringify(e),
|
|
566
|
+
signal: a.signal
|
|
567
|
+
});
|
|
568
|
+
if (!r.ok) {
|
|
569
|
+
let C = `对话请求失败(HTTP ${r.status})`;
|
|
570
|
+
try {
|
|
571
|
+
const p = await r.text();
|
|
572
|
+
if (p) {
|
|
573
|
+
const f = JSON.parse(p);
|
|
574
|
+
f.message && (C = f.message);
|
|
575
|
+
}
|
|
576
|
+
} catch {
|
|
577
|
+
}
|
|
578
|
+
throw new Error(C);
|
|
579
|
+
}
|
|
580
|
+
if (!r.body)
|
|
581
|
+
throw new Error("当前浏览器不支持流式响应");
|
|
582
|
+
const c = r.body.getReader(), h = new TextDecoder("utf-8");
|
|
583
|
+
let i = "";
|
|
584
|
+
const b = (C) => {
|
|
585
|
+
const p = Ee(C);
|
|
586
|
+
if (p)
|
|
587
|
+
try {
|
|
588
|
+
t.onEvent(JSON.parse(p));
|
|
589
|
+
} catch {
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
for (; ; ) {
|
|
593
|
+
const { done: C, value: p } = await c.read();
|
|
594
|
+
if (C)
|
|
595
|
+
break;
|
|
596
|
+
i += h.decode(p, { stream: !0 });
|
|
597
|
+
let f = i.search(/\r?\n\r?\n/);
|
|
598
|
+
for (; f >= 0; ) {
|
|
599
|
+
const d = i.slice(0, f), g = i.slice(f).match(/^\r?\n\r?\n/);
|
|
600
|
+
i = i.slice(f + (g ? g[0].length : 2)), b(d), f = i.search(/\r?\n\r?\n/);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
i += h.decode(), i.trim() && b(i);
|
|
604
|
+
} catch (r) {
|
|
605
|
+
if (a.signal.aborted)
|
|
606
|
+
return;
|
|
607
|
+
(m = t.onError) == null || m.call(
|
|
608
|
+
t,
|
|
609
|
+
r instanceof Error && r.message ? r.message : "对话执行失败"
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
})();
|
|
613
|
+
return { abort: () => a.abort(), done: n };
|
|
614
|
+
}
|
|
615
|
+
function ut(e, t) {
|
|
616
|
+
return v(
|
|
617
|
+
() => l(`${o}/agent/chat/interrupt`, {
|
|
618
|
+
method: "post",
|
|
619
|
+
data: { agentCode: e, conversationId: t },
|
|
620
|
+
headers: s()
|
|
621
|
+
})
|
|
622
|
+
);
|
|
623
|
+
}
|
|
624
|
+
function mt(e) {
|
|
625
|
+
const t = new URLSearchParams({ conversationId: e });
|
|
626
|
+
return l(`${o}/agent/history?${t.toString()}`, {
|
|
627
|
+
method: "get",
|
|
628
|
+
headers: s()
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
function pt(e) {
|
|
632
|
+
return v(
|
|
633
|
+
() => {
|
|
634
|
+
var t;
|
|
635
|
+
return l(`${o}/proposal/page`, {
|
|
636
|
+
method: "get",
|
|
637
|
+
params: {
|
|
638
|
+
...e,
|
|
639
|
+
orderStatus: (t = e.orderStatus) != null && t.length ? e.orderStatus.join(",") : void 0
|
|
640
|
+
},
|
|
641
|
+
headers: s()
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
);
|
|
645
|
+
}
|
|
646
|
+
function ft(e, t) {
|
|
647
|
+
return v(
|
|
648
|
+
() => l(`${o}/proposal/detail`, {
|
|
649
|
+
method: "get",
|
|
650
|
+
params: { code: e },
|
|
651
|
+
headers: s(),
|
|
652
|
+
silent: t == null ? void 0 : t.silent
|
|
653
|
+
}),
|
|
654
|
+
t
|
|
655
|
+
);
|
|
656
|
+
}
|
|
657
|
+
function gt(e, t, a, n, m) {
|
|
658
|
+
return v(
|
|
659
|
+
() => l(`${o}/proposal/submit`, {
|
|
660
|
+
method: "post",
|
|
661
|
+
// 归属域按显式字段上送:后端要求与请求头 X-Domain-Code 一致,避免展示域与落库域分叉
|
|
662
|
+
data: { code: e, itemSeqNos: t, title: a, note: n, domainCode: m },
|
|
663
|
+
headers: s()
|
|
664
|
+
})
|
|
665
|
+
);
|
|
666
|
+
}
|
|
667
|
+
function ht(e) {
|
|
668
|
+
return v(
|
|
669
|
+
() => l(`${o}/proposal/workspace`, {
|
|
670
|
+
method: "get",
|
|
671
|
+
params: { conversationId: e },
|
|
672
|
+
headers: s()
|
|
673
|
+
})
|
|
674
|
+
);
|
|
675
|
+
}
|
|
676
|
+
const vt = [
|
|
677
|
+
"STRING",
|
|
678
|
+
"INT",
|
|
679
|
+
"DOUBLE",
|
|
680
|
+
"BOOL",
|
|
681
|
+
"DATE",
|
|
682
|
+
"DATETIME",
|
|
683
|
+
"TEXT"
|
|
684
|
+
];
|
|
685
|
+
function Ct(e) {
|
|
686
|
+
return l(`${o}/proposal/manual/create`, {
|
|
687
|
+
method: "post",
|
|
688
|
+
data: e,
|
|
689
|
+
headers: s()
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
function bt(e, t) {
|
|
693
|
+
return l(`${o}/proposal/bindConversation`, {
|
|
694
|
+
method: "post",
|
|
695
|
+
data: { code: e, conversationId: t },
|
|
696
|
+
headers: s()
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
function yt(e, t) {
|
|
700
|
+
return l(`${o}/proposal/item/list`, {
|
|
701
|
+
method: "get",
|
|
702
|
+
params: { proposalCode: e },
|
|
703
|
+
headers: s(),
|
|
704
|
+
silent: t == null ? void 0 : t.silent
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
function $t(e) {
|
|
708
|
+
return l(`${o}/proposal/item/add`, {
|
|
709
|
+
method: "post",
|
|
710
|
+
data: e,
|
|
711
|
+
headers: s()
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
function xt(e) {
|
|
715
|
+
return l(`${o}/proposal/item/update`, {
|
|
716
|
+
method: "post",
|
|
717
|
+
data: e,
|
|
718
|
+
headers: s()
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
function It(e, t, a) {
|
|
722
|
+
return l(`${o}/proposal/item/delete`, {
|
|
723
|
+
method: "post",
|
|
724
|
+
data: { proposalCode: e, itemId: t },
|
|
725
|
+
headers: { ...s(), ...a ? { "X-Domain-Code": a } : {} }
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
function Pt(e, t) {
|
|
729
|
+
return l(`${o}/proposal/item/batchSave`, {
|
|
730
|
+
method: "post",
|
|
731
|
+
data: { proposalCode: e, items: t },
|
|
732
|
+
headers: s()
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
function St(e, t) {
|
|
736
|
+
return v(
|
|
737
|
+
() => l(`${o}/proposal/patch`, {
|
|
738
|
+
method: "post",
|
|
739
|
+
data: e,
|
|
740
|
+
headers: s()
|
|
741
|
+
}),
|
|
742
|
+
t
|
|
743
|
+
);
|
|
744
|
+
}
|
|
745
|
+
function Et(e) {
|
|
746
|
+
return {
|
|
747
|
+
1: "新增对象类型",
|
|
748
|
+
2: "修改对象类型",
|
|
749
|
+
3: "退役对象类型",
|
|
750
|
+
4: "新增关系类型",
|
|
751
|
+
5: "修改关系类型",
|
|
752
|
+
6: "退役关系类型",
|
|
753
|
+
7: "新增端点约束",
|
|
754
|
+
8: "退役端点约束",
|
|
755
|
+
9: "实例同步",
|
|
756
|
+
10: "创建场景",
|
|
757
|
+
11: "更新场景",
|
|
758
|
+
12: "下线场景"
|
|
759
|
+
}[e] || `类型${e}`;
|
|
760
|
+
}
|
|
761
|
+
function wt(e) {
|
|
762
|
+
return { 1: { label: "安全", color: "green" }, 2: { label: "增量", color: "blue" }, 3: { label: "受限", color: "red" } }[e] || { label: `档${e}`, color: "default" };
|
|
763
|
+
}
|
|
764
|
+
function Nt(e) {
|
|
765
|
+
return v(
|
|
766
|
+
() => l(`${o}/order/page`, {
|
|
767
|
+
method: "get",
|
|
768
|
+
params: e,
|
|
769
|
+
headers: s()
|
|
770
|
+
})
|
|
771
|
+
);
|
|
772
|
+
}
|
|
773
|
+
function Ot(e) {
|
|
774
|
+
return v(
|
|
775
|
+
() => l(`${o}/order/detail`, {
|
|
776
|
+
method: "get",
|
|
777
|
+
params: { code: e },
|
|
778
|
+
headers: s()
|
|
779
|
+
})
|
|
780
|
+
);
|
|
781
|
+
}
|
|
782
|
+
function At(e) {
|
|
783
|
+
return v(
|
|
784
|
+
() => l(`${o}/order/approve`, {
|
|
785
|
+
method: "post",
|
|
786
|
+
data: { code: e },
|
|
787
|
+
headers: s()
|
|
788
|
+
})
|
|
789
|
+
);
|
|
790
|
+
}
|
|
791
|
+
function Tt(e) {
|
|
792
|
+
return v(
|
|
793
|
+
() => l(`${o}/order/batchApprove`, {
|
|
794
|
+
method: "post",
|
|
795
|
+
data: { codes: e },
|
|
796
|
+
headers: s()
|
|
797
|
+
})
|
|
798
|
+
);
|
|
799
|
+
}
|
|
800
|
+
function Rt(e, t) {
|
|
801
|
+
return v(
|
|
802
|
+
() => l(`${o}/order/reject`, {
|
|
803
|
+
method: "post",
|
|
804
|
+
data: { code: e, reason: t },
|
|
805
|
+
headers: s()
|
|
806
|
+
})
|
|
807
|
+
);
|
|
808
|
+
}
|
|
809
|
+
function _t(e) {
|
|
810
|
+
return v(
|
|
811
|
+
() => l(`${o}/order/review`, {
|
|
812
|
+
method: "get",
|
|
813
|
+
params: { orderCode: e },
|
|
814
|
+
headers: s()
|
|
815
|
+
}),
|
|
816
|
+
{ silent: !0 }
|
|
817
|
+
);
|
|
818
|
+
}
|
|
819
|
+
function kt(e, t = !1) {
|
|
820
|
+
return v(
|
|
821
|
+
() => l(`${o}/order/review/start`, {
|
|
822
|
+
method: "post",
|
|
823
|
+
data: { orderCode: e, auto: t },
|
|
824
|
+
headers: s()
|
|
825
|
+
}),
|
|
826
|
+
{ silent: !0, rethrow: !0 }
|
|
827
|
+
);
|
|
828
|
+
}
|
|
829
|
+
function Mt(e) {
|
|
830
|
+
return v(
|
|
831
|
+
() => l(`${o}/order/review/confirm`, {
|
|
832
|
+
method: "post",
|
|
833
|
+
data: { orderCode: e },
|
|
834
|
+
headers: s()
|
|
835
|
+
}),
|
|
836
|
+
{ silent: !0, rethrow: !0 }
|
|
837
|
+
);
|
|
838
|
+
}
|
|
839
|
+
function Bt(e) {
|
|
840
|
+
return v(
|
|
841
|
+
() => l(`${o}/order/review/cancel`, {
|
|
842
|
+
method: "post",
|
|
843
|
+
data: { orderCode: e },
|
|
844
|
+
headers: s()
|
|
845
|
+
}),
|
|
846
|
+
{ silent: !0, rethrow: !0 }
|
|
847
|
+
);
|
|
848
|
+
}
|
|
849
|
+
function Dt(e, t) {
|
|
850
|
+
const a = new AbortController(), n = new URLSearchParams({ orderCode: e }).toString(), m = (async () => {
|
|
851
|
+
var r;
|
|
852
|
+
try {
|
|
853
|
+
const c = await fetch(ee(`${o}/order/review/stream?${n}`), {
|
|
854
|
+
method: "GET",
|
|
855
|
+
credentials: "include",
|
|
856
|
+
headers: { Accept: "text/event-stream", ...s(), ...re() },
|
|
857
|
+
signal: a.signal
|
|
858
|
+
});
|
|
859
|
+
if (!c.ok)
|
|
860
|
+
throw new Error(await Je(c));
|
|
861
|
+
await we(c, t.onEvent);
|
|
862
|
+
} catch (c) {
|
|
863
|
+
if (a.signal.aborted)
|
|
864
|
+
return;
|
|
865
|
+
(r = t.onError) == null || r.call(
|
|
866
|
+
t,
|
|
867
|
+
c instanceof Error && c.message ? c.message : "审核过程流读取失败"
|
|
868
|
+
);
|
|
869
|
+
}
|
|
870
|
+
})();
|
|
871
|
+
return { abort: () => a.abort(), done: m };
|
|
872
|
+
}
|
|
873
|
+
async function Je(e) {
|
|
874
|
+
let t = `审核过程流连接失败(HTTP ${e.status})`;
|
|
875
|
+
try {
|
|
876
|
+
const a = await e.text();
|
|
877
|
+
if (a) {
|
|
878
|
+
const n = JSON.parse(a);
|
|
879
|
+
n.message && (t = n.message);
|
|
880
|
+
}
|
|
881
|
+
} catch {
|
|
882
|
+
}
|
|
883
|
+
return t;
|
|
884
|
+
}
|
|
885
|
+
function Lt(e) {
|
|
886
|
+
return v(
|
|
887
|
+
() => l(`${o}/order/retryItem`, {
|
|
888
|
+
method: "post",
|
|
889
|
+
data: { itemCode: e },
|
|
890
|
+
headers: s()
|
|
891
|
+
})
|
|
892
|
+
);
|
|
893
|
+
}
|
|
894
|
+
function jt(e) {
|
|
895
|
+
return v(
|
|
896
|
+
() => l(`${o}/order/task/progress`, {
|
|
897
|
+
method: "get",
|
|
898
|
+
params: { code: e },
|
|
899
|
+
headers: s()
|
|
900
|
+
}),
|
|
901
|
+
{ silent: !0 }
|
|
902
|
+
);
|
|
903
|
+
}
|
|
904
|
+
function Kt(e) {
|
|
905
|
+
return v(
|
|
906
|
+
() => l(`${o}/task/page`, {
|
|
907
|
+
method: "get",
|
|
908
|
+
params: e,
|
|
909
|
+
headers: s()
|
|
910
|
+
}),
|
|
911
|
+
{ silent: !0 }
|
|
912
|
+
);
|
|
913
|
+
}
|
|
914
|
+
function Ht(e) {
|
|
915
|
+
return v(
|
|
916
|
+
() => l(`${o}/task/log/page`, {
|
|
917
|
+
method: "get",
|
|
918
|
+
params: e,
|
|
919
|
+
headers: s()
|
|
920
|
+
})
|
|
921
|
+
);
|
|
922
|
+
}
|
|
923
|
+
function Gt(e) {
|
|
924
|
+
return v(
|
|
925
|
+
() => l(`${o}/task/progress`, {
|
|
926
|
+
method: "get",
|
|
927
|
+
params: { scopeId: e },
|
|
928
|
+
headers: s()
|
|
929
|
+
}),
|
|
930
|
+
{ silent: !0 }
|
|
931
|
+
);
|
|
932
|
+
}
|
|
933
|
+
function zt(e) {
|
|
934
|
+
return v(
|
|
935
|
+
() => l(`${o}/version/batch/page`, {
|
|
936
|
+
method: "get",
|
|
937
|
+
params: e,
|
|
938
|
+
headers: s()
|
|
939
|
+
})
|
|
940
|
+
);
|
|
941
|
+
}
|
|
942
|
+
function Vt(e) {
|
|
943
|
+
return v(
|
|
944
|
+
() => l(`${o}/version/batch/detail`, {
|
|
945
|
+
method: "get",
|
|
946
|
+
params: { batchCode: e },
|
|
947
|
+
headers: s()
|
|
948
|
+
})
|
|
949
|
+
);
|
|
950
|
+
}
|
|
951
|
+
function Xt(e) {
|
|
952
|
+
return { EFFECTIVE: "已生效", EXECUTING: "执行中", PARTIAL_FAILED: "生效有失败" }[e || "EFFECTIVE"];
|
|
953
|
+
}
|
|
954
|
+
function Ft(e) {
|
|
955
|
+
return { 1: "待提交", 2: "已提交", 3: "已驳回" }[e] || `状态${e}`;
|
|
956
|
+
}
|
|
957
|
+
function Ut(e) {
|
|
958
|
+
return {
|
|
959
|
+
1: "待审批",
|
|
960
|
+
2: "已驳回",
|
|
961
|
+
3: "已审批",
|
|
962
|
+
4: "执行中",
|
|
963
|
+
5: "已生效",
|
|
964
|
+
6: "生效有失败",
|
|
965
|
+
7: "执行失败"
|
|
966
|
+
}[e] || `状态${e}`;
|
|
967
|
+
}
|
|
968
|
+
function qt(e) {
|
|
969
|
+
return { 1: "结构", 2: "数据", 3: "混合" }[e] || `类型${e}`;
|
|
970
|
+
}
|
|
971
|
+
function Jt(e) {
|
|
972
|
+
return { 1: "对话产出", 2: "文件导入", 3: "未对齐上报", 4: "人工提交", 5: "外部指导" }[e] || `来源${e}`;
|
|
973
|
+
}
|
|
974
|
+
const o = "/kb/v1/ontology", s = () => ({ "X-Tenant-Code": Oe() }), re = () => {
|
|
975
|
+
const e = Te();
|
|
976
|
+
if (!e)
|
|
977
|
+
return {};
|
|
978
|
+
const t = { "X-Domain-Code": e };
|
|
979
|
+
return Ae() === "ANCESTORS" && (t["X-Domain-Scope"] = "ANCESTORS"), t;
|
|
980
|
+
};
|
|
981
|
+
async function v(e, t) {
|
|
982
|
+
try {
|
|
983
|
+
return await e();
|
|
984
|
+
} catch (a) {
|
|
985
|
+
if (t != null && t.silent || Ne("请求失败", a.message || "服务器错误", "error"), t != null && t.rethrow)
|
|
986
|
+
throw a;
|
|
987
|
+
return;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
export {
|
|
991
|
+
st as A,
|
|
992
|
+
rt as B,
|
|
993
|
+
nt as C,
|
|
994
|
+
Rt as D,
|
|
995
|
+
ft as E,
|
|
996
|
+
it as F,
|
|
997
|
+
qt as G,
|
|
998
|
+
Jt as H,
|
|
999
|
+
pt as I,
|
|
1000
|
+
ht as J,
|
|
1001
|
+
bt as K,
|
|
1002
|
+
Ct as L,
|
|
1003
|
+
xt as M,
|
|
1004
|
+
$t as N,
|
|
1005
|
+
ot as O,
|
|
1006
|
+
vt as P,
|
|
1007
|
+
Pt as Q,
|
|
1008
|
+
qe as R,
|
|
1009
|
+
It as S,
|
|
1010
|
+
gt as T,
|
|
1011
|
+
lt as U,
|
|
1012
|
+
At as V,
|
|
1013
|
+
Ht as a,
|
|
1014
|
+
Gt as b,
|
|
1015
|
+
Et as c,
|
|
1016
|
+
jt as d,
|
|
1017
|
+
zt as e,
|
|
1018
|
+
Vt as f,
|
|
1019
|
+
Ot as g,
|
|
1020
|
+
wt as h,
|
|
1021
|
+
Nt as i,
|
|
1022
|
+
Tt as j,
|
|
1023
|
+
ut as k,
|
|
1024
|
+
yt as l,
|
|
1025
|
+
St as m,
|
|
1026
|
+
ct as n,
|
|
1027
|
+
Ut as o,
|
|
1028
|
+
Kt as p,
|
|
1029
|
+
mt as q,
|
|
1030
|
+
Lt as r,
|
|
1031
|
+
dt as s,
|
|
1032
|
+
Ft as t,
|
|
1033
|
+
_t as u,
|
|
1034
|
+
Xt as v,
|
|
1035
|
+
kt as w,
|
|
1036
|
+
Mt as x,
|
|
1037
|
+
Bt as y,
|
|
1038
|
+
Dt as z
|
|
1039
|
+
};
|