@yuku123/z-cognition-component 2.0.4 → 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-rxw05EpT.js → BaseInput-BYGhTvYI.js} +16 -16
- package/dist-lib/{ClockCircleOutlined-DqK04lTb.js → ClockCircleOutlined-DACEazDR.js} +2 -2
- package/dist-lib/{Collapse-D9XOithE.js → Collapse-CZbXdmBX.js} +98 -98
- package/dist-lib/{DeleteOutlined-DnGmqa7C.js → DeleteOutlined-CtmAIIV3.js} +4 -4
- package/dist-lib/{EllipsisOutlined-VzQrhleP.js → EllipsisOutlined-pgnttbec.js} +73 -73
- package/dist-lib/{EyeOutlined-CIFgRd6d.js → EyeOutlined-WKo_SfEi.js} +4 -4
- package/dist-lib/{LeftOutlined-Be44-JWT.js → LeftOutlined-B79bB1ZG.js} +1 -1
- package/dist-lib/{Pagination-BuFXTevS.js → Pagination-CFhUxTf8.js} +32 -32
- package/dist-lib/{RotateRightOutlined-CYlCNRvD.js → RotateRightOutlined-TrlUrEUZ.js} +1 -1
- package/dist-lib/{Table-D1RvQXGM.js → Table-BF9fhMoT.js} +120 -120
- package/dist-lib/{accessAk-DlxcvD0O.js → accessAk-BKnWRdnG.js} +1 -1
- package/dist-lib/{agents-CabJdV6W.js → agents-B5wsLzS-.js} +6 -6
- package/dist-lib/{ai-DZ6fqUyK.js → ai-CccmxFWN.js} +1 -1
- package/dist-lib/{ai-chat-share-CYSU7UlK.js → ai-chat-share-BjZFvUph.js} +4 -4
- package/dist-lib/{ak-manage-MTp2UyyK.js → ak-manage-DD_F6560.js} +12 -12
- package/dist-lib/{approval-F9OYS1Ov.js → approval-a4d4zlUd.js} +3 -3
- package/dist-lib/{approvals-DDEl02-L.js → approvals-DnwdMEU5.js} +2 -2
- package/dist-lib/{assistant-CcC1rvys.js → assistant-BA6oeNSC.js} +5 -5
- package/dist-lib/{assistant-history-fmy8IsJL.js → assistant-history-Dfykk2a4.js} +5 -5
- package/dist-lib/{assistant-summary-kuK5-mku.js → assistant-summary-BkmSqskU.js} +1 -1
- package/dist-lib/{audit-C0GYByqU.js → audit-ZZhtw95x.js} +1 -1
- package/dist-lib/{bios-_axkM_DR.js → bios-CSjjJ5Bc.js} +11 -11
- package/dist-lib/{callSuper-CuPJalb0.js → callSuper-Bk-mj4By.js} +1 -1
- package/dist-lib/{category-BPLw60Ia.js → category-9CorlqP4.js} +1 -1
- package/dist-lib/{causal-CcWolsb5.js → causal-CYR-CTQK.js} +5 -5
- package/dist-lib/{changelog-BQdmpq5H.js → changelog-BcZ6KQ3C.js} +2 -2
- package/dist-lib/{changelog-DC6nlUDh.js → changelog-Bqm52V9T.js} +1 -1
- package/dist-lib/{chat-panel-CgpP4Xf5.js → chat-panel-Ctr_CdZu.js} +3 -3
- package/dist-lib/{code-space-CZ3CzVcA.js → code-space-DG83npvh.js} +9 -9
- package/dist-lib/{colors-BsFEfaVs.js → colors-DJzrNkCt.js} +1 -1
- package/dist-lib/{community-ESJc4qtl.js → community-CXEbdg7X.js} +1 -1
- package/dist-lib/{community-D9mD_Tq1.js → community-Cmx4qRHG.js} +3 -3
- package/dist-lib/{community-material-page-Ct5uMwhv.js → community-material-page-jguoD9kV.js} +7 -7
- package/dist-lib/{connections-DrxmCfe3.js → connections-DJAsz2Hb.js} +6 -6
- package/dist-lib/{createForOfIteratorHelper-3K1vcDqi.js → createForOfIteratorHelper-BArIG0W5.js} +1 -1
- package/dist-lib/{detail-kPAVlzm3.js → detail-BWBtDkWH.js} +4 -4
- package/dist-lib/{detail-DXOJf57e.js → detail-CLqCbf3i.js} +2 -2
- package/dist-lib/{detail-lGslEB8s.js → detail-DKLwIzyI.js} +14 -14
- package/dist-lib/{development-aLXXcLcF.js → development-DG37KZEV.js} +9 -9
- package/dist-lib/{downloads-DFOEFvX6.js → downloads-Cg8PCqDp.js} +1 -1
- package/dist-lib/{edit-BbtVK23D.js → edit-Cfv83zho.js} +77 -77
- package/dist-lib/{editor-DbLQFOUf.js → editor-BriqrlTB.js} +5 -5
- package/dist-lib/{editor-page-B_H0fRAI.js → editor-page-p2TQlJtq.js} +13 -13
- package/dist-lib/{embed-BUaR8PAn.js → embed-CoEyJMJx.js} +2235 -2219
- package/dist-lib/embed.css +1 -1
- package/dist-lib/{evaluation-8Tx-3UQh.js → evaluation-C6CAwoWp.js} +2 -2
- package/dist-lib/{execution-Dz5dBEFl.js → execution-BMkglxKG.js} +9 -9
- package/dist-lib/{graph-DacHEbKr.js → graph-DkaHV2AX.js} +5 -5
- package/dist-lib/{index-CS6H40rM.js → index-B21fkm-c.js} +21 -21
- package/dist-lib/{index-jHh-ITBK.js → index-B2Hx9Q2V.js} +40 -40
- package/dist-lib/{index-Ddx6XQu5.js → index-BMVRmc79.js} +2 -2
- package/dist-lib/{index-QkktEus5.js → index-BQnPPCKW.js} +9 -9
- package/dist-lib/{index-CjFA5T3K.js → index-BRyPjc2E.js} +1 -1
- package/dist-lib/{index-Bt9F-2Fl.js → index-BeejupFS.js} +64 -64
- package/dist-lib/{index-DTgboCiF.js → index-BelOhXK9.js} +10 -10
- package/dist-lib/{index-BWmgE7bB.js → index-Bqkx1OMz.js} +50 -50
- package/dist-lib/{index-CSoMwNHq.js → index-Bqpk0cSp.js} +54 -54
- package/dist-lib/{index-B6G8CZ1v.js → index-BqvwZwaa.js} +109 -109
- package/dist-lib/{index-keRQ37lH.js → index-BwkQzFNo.js} +4 -4
- package/dist-lib/{index-BU2GXuww.js → index-By7lJ7OM.js} +2 -2
- package/dist-lib/{index-IB3GOib9.js → index-C0bjp6yU.js} +23 -23
- package/dist-lib/{index-yPMzsLHL.js → index-C8VIE0cr.js} +4 -4
- package/dist-lib/{index-Di2bQwQn.js → index-CAk-RbBL.js} +2 -2
- package/dist-lib/{index-D23tZfhi.js → index-CFMm6EBU.js} +1 -1
- package/dist-lib/{index-DR9LGJpi.js → index-CkrD_v5E.js} +14 -14
- package/dist-lib/{index-DlqhOJnd.js → index-Ct0MiSE7.js} +79 -79
- package/dist-lib/{index-BDWjubAD.js → index-D1vltZIy.js} +58 -58
- package/dist-lib/{index-BMv3kGDG.js → index-DQ1YCU_6.js} +31 -31
- package/dist-lib/{index-GQGXGr9M.js → index-DQL0rlRD.js} +1 -1
- package/dist-lib/{index-BOB3j3H_.js → index-Dfpj76EP.js} +1 -1
- package/dist-lib/{index-BI-rknta.js → index-DljgNXFS.js} +29 -29
- package/dist-lib/{index-CdNxm2We.js → index-DrC19OH2.js} +14 -14
- package/dist-lib/{index-Be_iqVpx.js → index-DvdRKgvN.js} +68 -68
- package/dist-lib/{index-Bi7O9pQv.js → index-EoyTsMVR.js} +182 -182
- package/dist-lib/{index-fVCVIu8I.js → index-MN71_qSy.js} +2 -2
- package/dist-lib/{index-Bf8IQq4A.js → index-MrasjwT1.js} +18 -18
- package/dist-lib/{index-Pcxp_AYe.js → index-TVyOVj_f.js} +75 -75
- package/dist-lib/{index-BtW_nQBU.js → index-cWJDD_7e.js} +2 -2
- package/dist-lib/{index-BLGPH51v.js → index-fSzyAUm4.js} +10 -10
- package/dist-lib/{index-n6hK1r_G.js → index-gSQpnDVD.js} +3 -3
- package/dist-lib/{index-D7nLwQye.js → index-jfZsBNfr.js} +274 -274
- package/dist-lib/{index-qYfXuLnZ.js → index-lpiHPbbx.js} +2 -2
- package/dist-lib/{index-BuGHtvxH.js → index-ly9q05gX.js} +8 -8
- package/dist-lib/{index-CDxeB8C4.js → index-mANVYpNc.js} +16 -16
- package/dist-lib/{index-CNBwau86.js → index-o4EXX17N.js} +73 -73
- package/dist-lib/index.js +1 -1
- package/dist-lib/{json-field-Bu-gFb6c.js → json-field-BqyYVncd.js} +2 -2
- package/dist-lib/{kb-form-modal-DsXpXfNT.js → kb-form-modal-B9_s7HKJ.js} +2 -2
- package/dist-lib/{kbTeam-D8hsAHI5.js → kbTeam-D_xeQOnk.js} +1 -1
- package/dist-lib/{knowledge-base-D2XMD7iI.js → knowledge-base-BIlYHNX_.js} +6 -6
- package/dist-lib/{knowledge-hub-BoBR8-j-.js → knowledge-hub-DS9jz2ml.js} +4 -4
- package/dist-lib/{login-B4C374Y_.js → login-81vYOi7C.js} +6 -6
- package/dist-lib/{markdown-lite-ROKlyMXg.js → markdown-lite-C0TxiY46.js} +35 -35
- package/dist-lib/{material-CqtPqoZj.js → material-0d6ENLyU.js} +1 -1
- package/dist-lib/{material-draft-markdown-BKlKt3pc.js → material-draft-markdown-BqqPZtbw.js} +2 -2
- package/dist-lib/{material-original-preview-pzANkVK5.js → material-original-preview-BDeVDdfb.js} +5 -5
- package/dist-lib/{material-workspace-model-BUpogooV.js → material-workspace-model-DPaWrRpo.js} +1 -1
- package/dist-lib/{member-CCTFfLDC.js → member-Dc8Fi9Yt.js} +1 -1
- package/dist-lib/memory-reorganization-DN4oUE9r.js +1007 -0
- package/dist-lib/{memory-spaces-CZGIBlz2.js → memory-spaces-BJp4AIUb.js} +19 -19
- package/dist-lib/{message-Rz7LvGMk.js → message-C6yBkCNm.js} +1 -1
- package/dist-lib/{message-Chq3cAdy.js → message-DPeo_cTR.js} +3 -3
- package/dist-lib/{messages-DciGawgR.js → messages-DdfLmuQI.js} +2 -2
- package/dist-lib/{meta-BWgVxZgd.js → meta-CBLO5qXw.js} +2 -2
- package/dist-lib/{metrics-iWreq4IL.js → metrics-7ptCjiKn.js} +2 -2
- package/dist-lib/{mobile-CNrK04Ak.js → mobile-DC0hcQji.js} +2 -2
- package/dist-lib/{monitor-BpUJZCht.js → monitor-DX1u-yHi.js} +3 -3
- package/dist-lib/{monitor-CaTKbDI1.js → monitor-DoWMKmYn.js} +3 -3
- package/dist-lib/{my-access-ZH5CWVGF.js → my-access-64Rn1HXY.js} +3 -3
- package/dist-lib/{my-permissions-edhi0lav.js → my-permissions-DKjDBIjY.js} +4 -4
- package/dist-lib/{navigation-2WdPUP2T.js → navigation-B_vBrx_f.js} +1 -1
- package/dist-lib/{new-Dq6mvU2w.js → new-D3Q8_hzT.js} +5 -5
- package/dist-lib/{ontology-BX6X1X2J.js → ontology-Ct7a7W50.js} +5 -5
- package/dist-lib/{ontology-dataprep-BjMnFRBG.js → ontology-dataprep-DhZWKCnw.js} +1 -1
- package/dist-lib/{ontology-domains-B7AuwW8S.js → ontology-domains-BG6ZPWXm.js} +57 -57
- package/dist-lib/{ontology-extract-wbvBwGZO.js → ontology-extract-53pAcKaP.js} +22 -22
- package/dist-lib/{ontology-extract-FpJ6K8z6.js → ontology-extract-D9RViy3r.js} +1 -1
- package/dist-lib/{ontology-flow-Cgi8Fk-i.js → ontology-flow-Dx_5Dv1S.js} +3 -3
- package/dist-lib/{ontology-flow-CJsIvS35.js → ontology-flow-cbGY8kOV.js} +6 -6
- package/dist-lib/{ontology-modeling-CeDS1-FE.js → ontology-modeling-9beSFK8t.js} +2 -2
- package/dist-lib/{ontology-modeling-C_6GvHBT.js → ontology-modeling-BkFq7sU1.js} +33 -33
- package/dist-lib/{ontology-scenarios-4Ar7Y8Kt.js → ontology-scenarios-ANZMjyMB.js} +11 -11
- package/dist-lib/{ontology-scenarios-BaYN82pv.js → ontology-scenarios-BC1UBvtT.js} +85 -85
- package/dist-lib/{ontology-task-config-CDt7NdIq.js → ontology-task-config-dDFRrWtJ.js} +1 -1
- package/dist-lib/{ontology-terms-CxTp2Dcq.js → ontology-terms-B9H9VcuR.js} +18 -18
- package/dist-lib/{ontology-terms-CnFarWZX.js → ontology-terms-BcXCuUsy.js} +1 -1
- package/dist-lib/{permission-CNqwhyF3.js → permission-pETAJZl6.js} +2 -2
- package/dist-lib/{preset-CfByvcqu.js → preset-5F2VcdUE.js} +3 -3
- package/dist-lib/{progress-ImhDvynO.js → progress-COKT887h.js} +31 -31
- package/dist-lib/{quota-B38BWyPo.js → quota-BzWY9oeV.js} +2 -2
- package/dist-lib/{row-DeVE0t_N.js → row-BFBgIphS.js} +2 -2
- package/dist-lib/{runs-ILSUwEOv.js → runs-7LWS6iAN.js} +6 -6
- package/dist-lib/{save-blob-C5BbV45B.js → save-blob-D_q2LunT.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-7v1SRE7V.js → scenario-mapping-preview-CDg3_f0U.js} +17 -17
- package/dist-lib/{scenario-simple-form-mFm6f2ho.js → scenario-simple-form--KSAzRS6.js} +9 -9
- package/dist-lib/{schedule-DzB9rZrm.js → schedule-BDrhhUsA.js} +2 -2
- package/dist-lib/{script-CKdVDsYh.js → script-CtLQ-RSy.js} +14 -14
- package/dist-lib/{settings-CaihqQtz.js → settings--NTE0Hux.js} +8 -8
- package/dist-lib/{shared-B51Q5536.js → shared-BJA7rkgy.js} +1 -1
- package/dist-lib/{shared-utils-Ck5sql2m.js → shared-utils-E5RBBDWx.js} +2 -2
- package/dist-lib/{skills-By3A0Dc1.js → skills-IziqBZOm.js} +5 -5
- package/dist-lib/{source-selection-sIKyG7xR.js → source-selection-WsUOEBKN.js} +1 -1
- package/dist-lib/{sources-DvIMColY.js → sources-D7ViKZtA.js} +12 -12
- package/dist-lib/{style-BHQZmWlH.js → style-B7phAB4-.js} +4 -4
- package/dist-lib/{task-config-CoPFj_FN.js → task-config-BhVD-uNg.js} +3 -3
- package/dist-lib/{tech-BJgEEFrT.js → tech-C2bOwBWk.js} +1 -1
- package/dist-lib/{templates-CODaf2QI.js → templates-Bh3ryZxt.js} +6 -6
- package/dist-lib/{tenant-login-DmN4qfah.js → tenant-login-D3193dIQ.js} +24 -24
- package/dist-lib/{tools-CyRz1Ofg.js → tools-DCLdtvbE.js} +56 -56
- package/dist-lib/{use-current-tenant-otPCQ3X8.js → use-current-tenant-KGbU5HpT.js} +1 -1
- package/dist-lib/{use-domain-access-BuD99GTw.js → use-domain-access-CcPd_gzX.js} +1 -1
- package/dist-lib/{use-g6-graph-C5h9frJM.js → use-g6-graph-CPKL_pXo.js} +1 -1
- package/dist-lib/{use-graph-layers-Cbd3Jggb.js → use-graph-layers-Bi90s60B.js} +9 -9
- package/dist-lib/{useBreakpoint-B8dF3ifo.js → useBreakpoint-SG_cMfLJ.js} +6 -6
- package/dist-lib/{useForm-BZkiMeaN.js → useForm-Cp45oXOc.js} +13 -13
- package/dist-lib/{version-control-panel-HdMlbpbO.js → version-control-panel-Db_RP6gX.js} +1 -1
- package/dist-lib/{version-management-BYoxw4GV.js → version-management-DuCdU_fJ.js} +2 -2
- package/dist-lib/{welcome-CMNXQf8J.js → welcome-DLcdZGtl.js} +1 -1
- package/package.json +1 -1
- package/dist-lib/memory-reorganization-CBTDCRhV.js +0 -8
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as a, jsxs as p, Fragment as V } from "react/jsx-runtime";
|
|
2
|
-
import { a as Y, g as ge, s as W, n as he, r as pe, L as we, b as
|
|
3
|
-
import { S as
|
|
4
|
-
import { F as
|
|
5
|
-
import { I as R } from "./index-
|
|
6
|
-
import { B as m, aa as j, r as Ce, R as ke, Z as Se, dh as ve,
|
|
2
|
+
import { a as Y, g as ge, s as W, n as he, r as pe, L as we, b as ye } from "./navigation-B_vBrx_f.js";
|
|
3
|
+
import { S as be } from "./index-B2Hx9Q2V.js";
|
|
4
|
+
import { F as b } from "./index-BeejupFS.js";
|
|
5
|
+
import { I as R } from "./index-o4EXX17N.js";
|
|
6
|
+
import { B as m, aa as j, r as Ce, R as ke, Z as Se, dh as ve, ay as Me } from "./embed-CoEyJMJx.js";
|
|
7
7
|
import { useState as d, useRef as G, useEffect as H } from "react";
|
|
8
|
-
import { A } from "./index-
|
|
8
|
+
import { A } from "./index-C0bjp6yU.js";
|
|
9
9
|
function Ne({ value: e, disabled: n, onChange: t }) {
|
|
10
10
|
return /* @__PURE__ */ a(
|
|
11
|
-
|
|
11
|
+
be,
|
|
12
12
|
{
|
|
13
13
|
className: "future-brain-tenant-login-mode",
|
|
14
14
|
block: !0,
|
|
@@ -20,8 +20,8 @@ function Ne({ value: e, disabled: n, onChange: t }) {
|
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
22
|
function Te({ loading: e, initialValue: n, cooldown: t = 0, onSubmit: i }) {
|
|
23
|
-
return /* @__PURE__ */ p(
|
|
24
|
-
/* @__PURE__ */ a(
|
|
23
|
+
return /* @__PURE__ */ p(b, { layout: "vertical", requiredMark: !1, initialValues: { identifier: n }, onFinish: i, children: [
|
|
24
|
+
/* @__PURE__ */ a(b.Item, { label: "手机号", name: "identifier", validateFirst: !0, rules: [
|
|
25
25
|
{ required: !0, whitespace: !0, message: "请输入手机号" },
|
|
26
26
|
{ validator: (o, u) => /^1[3-9]\d{9}$/.test((u ?? "").trim()) ? Promise.resolve() : Promise.reject(new Error("请输入正确的手机号")) }
|
|
27
27
|
], children: /* @__PURE__ */ a(R, { autoFocus: !0, size: "large", placeholder: "请输入手机号", autoComplete: "username", inputMode: "numeric", maxLength: 11 }) }),
|
|
@@ -34,9 +34,9 @@ function Te({ loading: e, initialValue: n, cooldown: t = 0, onSubmit: i }) {
|
|
|
34
34
|
] });
|
|
35
35
|
}
|
|
36
36
|
function Le({ loading: e, resending: n, mobileMask: t, cooldown: i, onResend: o, onSubmit: u }) {
|
|
37
|
-
return /* @__PURE__ */ p(
|
|
37
|
+
return /* @__PURE__ */ p(b, { layout: "vertical", requiredMark: !1, onFinish: u, children: [
|
|
38
38
|
/* @__PURE__ */ a("p", { className: "future-brain-tenant-login-hint", children: t ? `验证码已发送至 ${t}` : "验证码已发送至该手机号" }),
|
|
39
|
-
/* @__PURE__ */ a(
|
|
39
|
+
/* @__PURE__ */ a(b.Item, { label: "短信验证码", name: "code", rules: [
|
|
40
40
|
{ required: !0, whitespace: !0, message: "请输入验证码" },
|
|
41
41
|
{ pattern: /^\d{4,8}$/, message: "验证码为 4-8 位数字" }
|
|
42
42
|
], children: /* @__PURE__ */ a(R, { autoFocus: !0, size: "large", placeholder: "请输入短信验证码", autoComplete: "one-time-code", inputMode: "numeric", maxLength: 8 }) }),
|
|
@@ -45,20 +45,20 @@ function Le({ loading: e, resending: n, mobileMask: t, cooldown: i, onResend: o,
|
|
|
45
45
|
] });
|
|
46
46
|
}
|
|
47
47
|
function Ee({ loading: e, accountNo: n, tenantLabel: t, onSubmit: i }) {
|
|
48
|
-
return /* @__PURE__ */ p(
|
|
48
|
+
return /* @__PURE__ */ p(b, { layout: "vertical", requiredMark: !1, onFinish: i, children: [
|
|
49
49
|
/* @__PURE__ */ p("p", { className: "future-brain-tenant-login-hint", children: [
|
|
50
50
|
"登录账号:",
|
|
51
51
|
n,
|
|
52
52
|
t ? ` · 组织:${t}` : ""
|
|
53
53
|
] }),
|
|
54
|
-
/* @__PURE__ */ a(
|
|
54
|
+
/* @__PURE__ */ a(b.Item, { label: "密码", name: "password", rules: [{ required: !0, message: "请输入密码" }], children: /* @__PURE__ */ a(R.Password, { autoFocus: !0, size: "large", placeholder: "请输入密码", autoComplete: "current-password" }) }),
|
|
55
55
|
/* @__PURE__ */ a(m, { type: "primary", size: "large", block: !0, htmlType: "submit", loading: e, children: "登录" })
|
|
56
56
|
] });
|
|
57
57
|
}
|
|
58
58
|
function Ie({ loading: e, sending: n, mobile: t, onSend: i, onSubmit: o }) {
|
|
59
|
-
return /* @__PURE__ */ p(
|
|
59
|
+
return /* @__PURE__ */ p(b, { layout: "vertical", requiredMark: !1, onFinish: o, children: [
|
|
60
60
|
/* @__PURE__ */ a("p", { className: "future-brain-tenant-login-hint", children: t ? `为保障账号安全,请输入发送至 ${t} 的验证码` : "为保障账号安全,请输入短信验证码" }),
|
|
61
|
-
/* @__PURE__ */ a(
|
|
61
|
+
/* @__PURE__ */ a(b.Item, { label: "短信验证码", name: "smsCode", rules: [
|
|
62
62
|
{ required: !0, whitespace: !0, message: "请输入验证码" },
|
|
63
63
|
{ pattern: /^\d{4,8}$/, message: "验证码为 4-8 位数字" }
|
|
64
64
|
], children: /* @__PURE__ */ a(R, { autoFocus: !0, size: "large", placeholder: "请输入短信验证码", autoComplete: "one-time-code", inputMode: "numeric", maxLength: 8 }) }),
|
|
@@ -160,7 +160,7 @@ function je(e) {
|
|
|
160
160
|
H(() => (f.current = !0, () => {
|
|
161
161
|
f.current = !1;
|
|
162
162
|
}), []);
|
|
163
|
-
async function
|
|
163
|
+
async function y(r, s) {
|
|
164
164
|
if (!v.current) {
|
|
165
165
|
v.current = !0, D(r), S(void 0);
|
|
166
166
|
try {
|
|
@@ -214,7 +214,7 @@ function je(e) {
|
|
|
214
214
|
const c = await ze({ identifier: u, selectTicket: s, tenantCode: r.tenantCode });
|
|
215
215
|
await x(c, r.tenantCode);
|
|
216
216
|
}
|
|
217
|
-
const ie = (r) =>
|
|
217
|
+
const ie = (r) => y("hint", async () => {
|
|
218
218
|
var g;
|
|
219
219
|
const s = r.identifier.trim();
|
|
220
220
|
if (I(void 0), C(void 0), E([]), n === "sms") {
|
|
@@ -230,9 +230,9 @@ function je(e) {
|
|
|
230
230
|
}
|
|
231
231
|
const c = await Pe(s);
|
|
232
232
|
f.current && (T(s), E(c.tenants ?? []), I(c.selectTicket), c.state === "DIRECT" ? (c.tenantCode && c.selectTicket && C({ tenantCode: c.tenantCode }), o("password")) : (((g = c.tenants) == null ? void 0 : g.length) ?? 0) > 1 ? o("tenant") : o("fallback"));
|
|
233
|
-
}), oe = () =>
|
|
233
|
+
}), oe = () => y("resend", async () => {
|
|
234
234
|
!k || N.left > 0 || (await Ae(k), f.current && N.start());
|
|
235
|
-
}), se = (r) =>
|
|
235
|
+
}), se = (r) => y("code", async () => {
|
|
236
236
|
if (!k)
|
|
237
237
|
throw o("identify"), new Error("验证信息已失效,请重新输入手机号");
|
|
238
238
|
const s = await qe(k, r.code.trim());
|
|
@@ -242,19 +242,19 @@ function je(e) {
|
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
244
|
function ce(r) {
|
|
245
|
-
v.current || (C(r), S(void 0), P ? n === "sms" ?
|
|
245
|
+
v.current || (C(r), S(void 0), P ? n === "sms" ? y("login", () => B(r, P)) : o("password") : (S("选择租户的验证已失效,请重新输入手机号"), o("identify")));
|
|
246
246
|
}
|
|
247
|
-
const le = (r) =>
|
|
247
|
+
const le = (r) => y("password", async () => {
|
|
248
248
|
const s = await De({ accountNo: u, password: r.password, tenantCode: l == null ? void 0 : l.tenantCode, selectTicket: P });
|
|
249
249
|
await x(s, l == null ? void 0 : l.tenantCode);
|
|
250
|
-
}), ue = (r) =>
|
|
250
|
+
}), ue = (r) => y("org", () => $(r, l == null ? void 0 : l.tenantCode)), de = () => y("send", async () => {
|
|
251
251
|
const r = h == null ? void 0 : h.mobile;
|
|
252
252
|
if (!r) {
|
|
253
253
|
O("未获取到接收短信的手机号,请前往统一登录页完成验证。");
|
|
254
254
|
return;
|
|
255
255
|
}
|
|
256
256
|
await _e({ accountNo: (h == null ? void 0 : h.accountNo) || u, telephone: r, tenantCode: l == null ? void 0 : l.tenantCode });
|
|
257
|
-
}), fe = (r) =>
|
|
257
|
+
}), fe = (r) => y("mfa", async () => {
|
|
258
258
|
const s = await $e({ accountNo: (h == null ? void 0 : h.accountNo) || u, smsCode: r.smsCode.trim(), tenantCode: l == null ? void 0 : l.tenantCode });
|
|
259
259
|
await x(s, l == null ? void 0 : l.tenantCode);
|
|
260
260
|
});
|
|
@@ -288,7 +288,7 @@ function je(e) {
|
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
function en() {
|
|
291
|
-
const e = Me(), n = je(pe(e.search, e.state)), { step: t, mode: i, busy: o } = n, u = () =>
|
|
291
|
+
const e = Me(), n = je(pe(e.search, e.state)), { step: t, mode: i, busy: o } = n, u = () => ye(e.search, e.state), T = t === "password" ? "" : t === "org" ? "该账号关联了多个机构,请选择登录机构" : t === "tenant" ? "该手机号在多个组织下有账号,请选择登录组织" : t === "mfa" ? "请完成短信二次验证" : t === "code" ? "验证码验证通过后选择组织即可进入" : i === "sms" ? "使用手机号接收验证码,验证后选择组织进入" : "使用手机号登录,选择组织后输入密码";
|
|
292
292
|
function k() {
|
|
293
293
|
var M, L;
|
|
294
294
|
switch (t) {
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as D } from "react/jsx-runtime";
|
|
2
|
-
import { g as ue, I as b, t as R, k as he, j as te } from "./embed-
|
|
3
|
-
import { D as oe, E as pe, F as be, G as Ne, H as ve, I as ge, J as fe } from "./ai-
|
|
4
|
-
import { A as re, a as ye, b as ke, c as Ce, d as ce, K as Te } from "./shared-
|
|
5
|
-
import { u as we, i as xe, A as Se, f as Ae, c as ne, d as
|
|
2
|
+
import { g as ue, I as b, t as R, k as he, j as te } from "./embed-CoEyJMJx.js";
|
|
3
|
+
import { D as oe, E as pe, F as be, G as Ne, H as ve, I as ge, J as fe } from "./ai-CccmxFWN.js";
|
|
4
|
+
import { A as re, a as ye, b as ke, c as Ce, d as ce, K as Te } from "./shared-BJA7rkgy.js";
|
|
5
|
+
import { u as we, i as xe, A as Se, f as Ae, c as ne, d as Me, a as se, t as J, e as ze } from "./shared-utils-E5RBBDWx.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { u as Ee } from "./use-escape-key-4SZ4l7av.js";
|
|
8
8
|
import { useState as r, useEffect as de, useMemo as le } from "react";
|
|
9
|
-
const
|
|
9
|
+
const Pe = ["string", "integer", "number", "boolean", "object"], qe = ["GET", "POST", "PUT", "PATCH", "DELETE"], ie = {
|
|
10
10
|
name: "",
|
|
11
11
|
type: "string",
|
|
12
12
|
description: "",
|
|
13
13
|
required: !1
|
|
14
14
|
};
|
|
15
|
-
function
|
|
15
|
+
function Fe({
|
|
16
16
|
mode: t,
|
|
17
17
|
tool: n,
|
|
18
18
|
remote: d,
|
|
19
19
|
onClose: T,
|
|
20
20
|
onSaved: w
|
|
21
21
|
}) {
|
|
22
|
-
const o = d || (n == null ? void 0 : n.kind) === "http", [N, f] = r((n == null ? void 0 : n.code) || ""), [u,
|
|
22
|
+
const o = d || (n == null ? void 0 : n.kind) === "http", [N, f] = r((n == null ? void 0 : n.code) || ""), [u, F] = r((n == null ? void 0 : n.name) || ""), [v, U] = r((n == null ? void 0 : n.description) || ""), [z, x] = r((n == null ? void 0 : n.method) || "POST"), [E, y] = r((n == null ? void 0 : n.url) || ""), [A, $] = r((n == null ? void 0 : n.baseUrl) || ""), [l, h] = r(
|
|
23
23
|
(n == null ? void 0 : n.timeoutMs) != null ? String(n.timeoutMs) : ""
|
|
24
|
-
), [c,
|
|
24
|
+
), [c, M] = r(
|
|
25
25
|
(n == null ? void 0 : n.retryCount) != null ? String(n.retryCount) : ""
|
|
26
26
|
), [k, K] = r((n == null ? void 0 : n.bizSource) || ""), [j, s] = r(
|
|
27
27
|
((n == null ? void 0 : n.headerNames) || []).map((i) => ({
|
|
28
28
|
name: i,
|
|
29
29
|
value: ""
|
|
30
30
|
}))
|
|
31
|
-
), [p,
|
|
31
|
+
), [p, P] = r(
|
|
32
32
|
n != null && n.parameters.length ? n.parameters.map((i) => ({ ...i })) : [{ ...ie }]
|
|
33
33
|
), [B, L] = r(!1), [V, O] = r(""), _ = (i, g) => {
|
|
34
|
-
|
|
34
|
+
P(
|
|
35
35
|
(m) => m.map((C, S) => S === i ? { ...C, ...g } : C)
|
|
36
36
|
);
|
|
37
37
|
}, G = (i, g) => {
|
|
@@ -44,24 +44,24 @@ function Pe({
|
|
|
44
44
|
O("编码与名称必填");
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
const m =
|
|
47
|
+
const m = ze(i);
|
|
48
48
|
if (m) {
|
|
49
49
|
O(m);
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
|
-
const C = p.map((
|
|
53
|
-
...
|
|
54
|
-
name:
|
|
55
|
-
description: (
|
|
56
|
-
})).filter((
|
|
57
|
-
if (new Set(C.map((
|
|
52
|
+
const C = p.map((q) => ({
|
|
53
|
+
...q,
|
|
54
|
+
name: q.name.trim(),
|
|
55
|
+
description: (q.description || "").trim()
|
|
56
|
+
})).filter((q) => q.name);
|
|
57
|
+
if (new Set(C.map((q) => q.name)).size !== C.length) {
|
|
58
58
|
O("参数名不能重复");
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
let H;
|
|
62
62
|
if (o) {
|
|
63
|
-
const
|
|
64
|
-
if (Q ? !W.test(Q) : !W.test(
|
|
63
|
+
const q = E.trim(), Q = A.trim(), W = /^https?:\/\//i;
|
|
64
|
+
if (Q ? !W.test(Q) : !W.test(q)) {
|
|
65
65
|
O("请求地址需要以 http:// 或 https:// 开头");
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
@@ -87,7 +87,7 @@ function Pe({
|
|
|
87
87
|
name: g,
|
|
88
88
|
description: v.trim() || void 0,
|
|
89
89
|
kind: o ? "http" : "builtin",
|
|
90
|
-
method: o ?
|
|
90
|
+
method: o ? z : void 0,
|
|
91
91
|
url: o ? E.trim() : void 0,
|
|
92
92
|
baseUrl: o && A.trim() ? A.trim() : void 0,
|
|
93
93
|
headers: H,
|
|
@@ -134,7 +134,7 @@ function Pe({
|
|
|
134
134
|
className: "input",
|
|
135
135
|
value: u,
|
|
136
136
|
placeholder: "如 订单查询",
|
|
137
|
-
onChange: (i) =>
|
|
137
|
+
onChange: (i) => F(i.target.value)
|
|
138
138
|
}
|
|
139
139
|
)
|
|
140
140
|
] }),
|
|
@@ -157,9 +157,9 @@ function Pe({
|
|
|
157
157
|
"select",
|
|
158
158
|
{
|
|
159
159
|
className: "select",
|
|
160
|
-
value:
|
|
160
|
+
value: z,
|
|
161
161
|
onChange: (i) => x(i.target.value),
|
|
162
|
-
children:
|
|
162
|
+
children: qe.map((i) => /* @__PURE__ */ e("option", { value: i, children: i }, i))
|
|
163
163
|
}
|
|
164
164
|
)
|
|
165
165
|
] }),
|
|
@@ -215,7 +215,7 @@ function Pe({
|
|
|
215
215
|
min: 0,
|
|
216
216
|
value: c,
|
|
217
217
|
placeholder: "留空默认 1",
|
|
218
|
-
onChange: (i) =>
|
|
218
|
+
onChange: (i) => M(i.target.value)
|
|
219
219
|
}
|
|
220
220
|
)
|
|
221
221
|
] }),
|
|
@@ -307,7 +307,7 @@ function Pe({
|
|
|
307
307
|
className: "select",
|
|
308
308
|
value: i.type,
|
|
309
309
|
onChange: (m) => _(g, { type: m.target.value }),
|
|
310
|
-
children:
|
|
310
|
+
children: Pe.map((m) => /* @__PURE__ */ e("option", { value: m, children: m }, m))
|
|
311
311
|
}
|
|
312
312
|
),
|
|
313
313
|
/* @__PURE__ */ e(
|
|
@@ -336,7 +336,7 @@ function Pe({
|
|
|
336
336
|
className: "icon-btn",
|
|
337
337
|
type: "button",
|
|
338
338
|
title: "移除参数",
|
|
339
|
-
onClick: () =>
|
|
339
|
+
onClick: () => P(
|
|
340
340
|
(m) => m.length <= 1 ? m : m.filter((C, S) => S !== g)
|
|
341
341
|
),
|
|
342
342
|
children: /* @__PURE__ */ e(b, { name: "x", size: 12 })
|
|
@@ -349,7 +349,7 @@ function Pe({
|
|
|
349
349
|
className: "btn xs",
|
|
350
350
|
type: "button",
|
|
351
351
|
style: { alignSelf: "flex-start" },
|
|
352
|
-
onClick: () =>
|
|
352
|
+
onClick: () => P((i) => [...i, { ...ie }]),
|
|
353
353
|
children: [
|
|
354
354
|
/* @__PURE__ */ e(b, { name: "plus", size: 11 }),
|
|
355
355
|
"添加参数"
|
|
@@ -414,7 +414,7 @@ function $e({
|
|
|
414
414
|
tool: t,
|
|
415
415
|
onClose: n
|
|
416
416
|
}) {
|
|
417
|
-
const { kbs: d, loading: T } =
|
|
417
|
+
const { kbs: d, loading: T } = Me(), [w, o] = r(""), [N, f] = r({}), [u, F] = r(!1), [v, U] = r(null), [z, x] = r(""), E = t.code === "knowledge_search", y = v ? Oe(v.content) : null;
|
|
418
418
|
Ee(n);
|
|
419
419
|
const A = (l, h) => {
|
|
420
420
|
f((c) => ({ ...c, [l]: h }));
|
|
@@ -425,8 +425,8 @@ function $e({
|
|
|
425
425
|
}
|
|
426
426
|
const l = {};
|
|
427
427
|
for (const c of t.parameters) {
|
|
428
|
-
const
|
|
429
|
-
if (!
|
|
428
|
+
const M = (N[c.name] || "").trim();
|
|
429
|
+
if (!M) {
|
|
430
430
|
if (c.required) {
|
|
431
431
|
x(`参数 ${c.name} 必填`);
|
|
432
432
|
return;
|
|
@@ -434,31 +434,31 @@ function $e({
|
|
|
434
434
|
continue;
|
|
435
435
|
}
|
|
436
436
|
if (c.type === "integer" || c.type === "number") {
|
|
437
|
-
const k = Number(
|
|
437
|
+
const k = Number(M);
|
|
438
438
|
if (!Number.isFinite(k)) {
|
|
439
439
|
x(`参数 ${c.name} 需要是数字`);
|
|
440
440
|
return;
|
|
441
441
|
}
|
|
442
442
|
l[c.name] = c.type === "integer" ? Math.trunc(k) : k;
|
|
443
443
|
} else if (c.type === "boolean")
|
|
444
|
-
l[c.name] =
|
|
444
|
+
l[c.name] = M === "true";
|
|
445
445
|
else if (c.type === "object")
|
|
446
446
|
try {
|
|
447
|
-
l[c.name] = JSON.parse(
|
|
447
|
+
l[c.name] = JSON.parse(M);
|
|
448
448
|
} catch {
|
|
449
449
|
x(`参数 ${c.name} 不是合法 JSON`);
|
|
450
450
|
return;
|
|
451
451
|
}
|
|
452
452
|
else
|
|
453
|
-
l[c.name] =
|
|
453
|
+
l[c.name] = M;
|
|
454
454
|
}
|
|
455
|
-
x(""),
|
|
455
|
+
x(""), F(!0);
|
|
456
456
|
const h = await ge({
|
|
457
457
|
code: t.code,
|
|
458
458
|
kbId: E ? w : void 0,
|
|
459
459
|
arguments: l
|
|
460
460
|
});
|
|
461
|
-
|
|
461
|
+
F(!1), h && U(h);
|
|
462
462
|
};
|
|
463
463
|
return /* @__PURE__ */ e(
|
|
464
464
|
"div",
|
|
@@ -484,7 +484,7 @@ function $e({
|
|
|
484
484
|
/* @__PURE__ */ a("div", { className: "d-sub", children: [
|
|
485
485
|
/* @__PURE__ */ e("span", { className: "mono", children: t.code }),
|
|
486
486
|
/* @__PURE__ */ e("span", { children: "·" }),
|
|
487
|
-
/* @__PURE__ */ e("span", { children: t.executable ? t.kind === "http" ? "HTTP 实现" : "builtin 实现" : "未接入实现" })
|
|
487
|
+
/* @__PURE__ */ e("span", { children: t.executable ? t.kind === "http" ? "HTTP 实现" : t.kind === "mcp" ? "MCP 实现" : "builtin 实现" : "未接入实现" })
|
|
488
488
|
] })
|
|
489
489
|
] }),
|
|
490
490
|
/* @__PURE__ */ e("div", { className: "d-actions", children: /* @__PURE__ */ e(
|
|
@@ -558,7 +558,7 @@ function $e({
|
|
|
558
558
|
),
|
|
559
559
|
l.description ? /* @__PURE__ */ e("span", { className: "help", children: l.description }) : null
|
|
560
560
|
] }, l.name)) }) : /* @__PURE__ */ e("p", { className: "note", children: "该工具没有参数。" }),
|
|
561
|
-
|
|
561
|
+
z ? /* @__PURE__ */ e("p", { className: "field error", style: { marginTop: 8 }, children: z }) : null,
|
|
562
562
|
v ? /* @__PURE__ */ a("div", { className: "ai-invoke-result", children: [
|
|
563
563
|
/* @__PURE__ */ a("div", { className: "row between mb-12", children: [
|
|
564
564
|
/* @__PURE__ */ e("b", { children: "调用结果" }),
|
|
@@ -670,18 +670,18 @@ function Re({
|
|
|
670
670
|
);
|
|
671
671
|
}
|
|
672
672
|
function Be() {
|
|
673
|
-
const [t, n] = r([]), [d, T] = r(!0), [w, o] = r(!1), [N, f] = r(""), [u,
|
|
673
|
+
const [t, n] = r([]), [d, T] = r(!0), [w, o] = r(!1), [N, f] = r(""), [u, F] = r("all"), [v, U] = r(0), [z, x] = r(null), [E, y] = r(null), [A, $] = r(null), l = we(), h = xe(l);
|
|
674
674
|
de(() => {
|
|
675
675
|
let s = !0;
|
|
676
676
|
return (async () => {
|
|
677
677
|
T(!0), o(!1);
|
|
678
|
-
const
|
|
678
|
+
const P = await oe();
|
|
679
679
|
if (s) {
|
|
680
|
-
if (T(!1),
|
|
680
|
+
if (T(!1), P === void 0) {
|
|
681
681
|
o(!0), n([]);
|
|
682
682
|
return;
|
|
683
683
|
}
|
|
684
|
-
n(
|
|
684
|
+
n(P);
|
|
685
685
|
}
|
|
686
686
|
})(), () => {
|
|
687
687
|
s = !1;
|
|
@@ -694,7 +694,7 @@ function Be() {
|
|
|
694
694
|
disabled: t.filter((s) => !s.enabled).length
|
|
695
695
|
}),
|
|
696
696
|
[t]
|
|
697
|
-
),
|
|
697
|
+
), M = le(() => {
|
|
698
698
|
const s = N.trim();
|
|
699
699
|
return t.filter((p) => u === "enabled" && !p.enabled || u === "disabled" && p.enabled ? !1 : ue(s, p.code, p.name, p.description));
|
|
700
700
|
}, [N, t, u]), k = () => U((s) => s + 1), K = async (s) => {
|
|
@@ -715,8 +715,8 @@ function Be() {
|
|
|
715
715
|
);
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
|
-
const
|
|
719
|
-
|
|
718
|
+
const P = await pe(s.code, p);
|
|
719
|
+
P && (R(p ? "已启用工具" : "已停用工具", P.name, "success"), k());
|
|
720
720
|
}, j = async (s) => {
|
|
721
721
|
if (h) {
|
|
722
722
|
R(
|
|
@@ -747,7 +747,7 @@ function Be() {
|
|
|
747
747
|
/* @__PURE__ */ e(b, { name: "workflow", size: 14 }),
|
|
748
748
|
"工具",
|
|
749
749
|
/* @__PURE__ */ a("span", { className: "hint", children: [
|
|
750
|
-
|
|
750
|
+
M.length,
|
|
751
751
|
" / ",
|
|
752
752
|
t.length
|
|
753
753
|
] })
|
|
@@ -792,7 +792,7 @@ function Be() {
|
|
|
792
792
|
{
|
|
793
793
|
type: "button",
|
|
794
794
|
className: u === s.value ? "active" : "",
|
|
795
|
-
onClick: () =>
|
|
795
|
+
onClick: () => F(s.value),
|
|
796
796
|
children: [
|
|
797
797
|
s.label,
|
|
798
798
|
/* @__PURE__ */ e("span", { className: "tnum", children: s.value === "all" ? c.all : c[s.value] })
|
|
@@ -808,7 +808,7 @@ function Be() {
|
|
|
808
808
|
c.disabled
|
|
809
809
|
] }) })
|
|
810
810
|
] }),
|
|
811
|
-
|
|
811
|
+
M.length ? /* @__PURE__ */ e("div", { className: "table-wrap", children: /* @__PURE__ */ a("table", { className: "list-table", children: [
|
|
812
812
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ a("tr", { children: [
|
|
813
813
|
/* @__PURE__ */ e("th", { children: "工具" }),
|
|
814
814
|
/* @__PURE__ */ e("th", { children: "状态" }),
|
|
@@ -817,7 +817,7 @@ function Be() {
|
|
|
817
817
|
/* @__PURE__ */ e("th", { children: "更新时间" }),
|
|
818
818
|
/* @__PURE__ */ e("th", { style: { textAlign: "right" }, children: "操作" })
|
|
819
819
|
] }) }),
|
|
820
|
-
/* @__PURE__ */ e("tbody", { children:
|
|
820
|
+
/* @__PURE__ */ e("tbody", { children: M.map((s) => /* @__PURE__ */ a("tr", { children: [
|
|
821
821
|
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ a("div", { className: "ai-name-cell", children: [
|
|
822
822
|
/* @__PURE__ */ e("b", { children: s.name }),
|
|
823
823
|
/* @__PURE__ */ e("small", { children: s.code }),
|
|
@@ -827,7 +827,7 @@ function Be() {
|
|
|
827
827
|
/* @__PURE__ */ e("td", { children: s.kind === "http" ? /* @__PURE__ */ a("div", { className: "ai-name-cell", children: [
|
|
828
828
|
/* @__PURE__ */ e("span", { className: "tag blue sm", children: s.method || "HTTP" }),
|
|
829
829
|
/* @__PURE__ */ e("small", { title: s.url, children: s.url || "未配置地址" })
|
|
830
|
-
] }) : s.executable ? /* @__PURE__ */ e("span", { className: "tag blue sm", children: "builtin" }) : /* @__PURE__ */ e("span", { className: "tag amber sm", children: "未接入实现" }) }),
|
|
830
|
+
] }) : s.kind === "mcp" ? /* @__PURE__ */ e("span", { className: "tag blue sm", children: "MCP" }) : s.executable ? /* @__PURE__ */ e("span", { className: "tag blue sm", children: "builtin" }) : /* @__PURE__ */ e("span", { className: "tag amber sm", children: "未接入实现" }) }),
|
|
831
831
|
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("div", { className: "ai-binding", children: s.parameters.length ? s.parameters.map((p) => /* @__PURE__ */ a("span", { className: "tag gray sm", children: [
|
|
832
832
|
p.name,
|
|
833
833
|
p.required ? "*" : ""
|
|
@@ -905,7 +905,7 @@ function Be() {
|
|
|
905
905
|
className: "btn",
|
|
906
906
|
type: "button",
|
|
907
907
|
onClick: () => {
|
|
908
|
-
f(""),
|
|
908
|
+
f(""), F("all");
|
|
909
909
|
},
|
|
910
910
|
children: "清空筛选"
|
|
911
911
|
}
|
|
@@ -913,16 +913,16 @@ function Be() {
|
|
|
913
913
|
}
|
|
914
914
|
)
|
|
915
915
|
] }),
|
|
916
|
-
|
|
917
|
-
|
|
916
|
+
z ? /* @__PURE__ */ e(
|
|
917
|
+
Fe,
|
|
918
918
|
{
|
|
919
|
-
mode:
|
|
920
|
-
tool:
|
|
919
|
+
mode: z.mode,
|
|
920
|
+
tool: z.tool,
|
|
921
921
|
remote: h,
|
|
922
922
|
onClose: () => x(null),
|
|
923
923
|
onSaved: (s) => {
|
|
924
924
|
x(null), R(
|
|
925
|
-
|
|
925
|
+
z.mode === "create" ? "已登记工具" : "已保存工具",
|
|
926
926
|
s.name,
|
|
927
927
|
"success"
|
|
928
928
|
), k();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as l, useEffect as s } from "react";
|
|
2
|
-
import { a as f, Z as u, cE as C } from "./embed-
|
|
2
|
+
import { a as f, Z as u, cE as C } from "./embed-CoEyJMJx.js";
|
|
3
3
|
function m() {
|
|
4
4
|
var o;
|
|
5
5
|
const e = (o = f().context) == null ? void 0 : o.tenantCode, [n, c] = l(null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as n, useEffect as a, useCallback as c } from "react";
|
|
2
|
-
import { d9 as d, da as b, db as C, dc as D } from "./embed-
|
|
2
|
+
import { d9 as d, da as b, db as C, dc as D } from "./embed-CoEyJMJx.js";
|
|
3
3
|
function p() {
|
|
4
4
|
const [t, l] = n(d()), [e, o] = n(null), [u, i] = n(0);
|
|
5
5
|
a(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as ot } from "./preset-
|
|
1
|
+
import { G as ot } from "./preset-5F2VcdUE.js";
|
|
2
2
|
import { useRef as w, useState as ke, useEffect as J, useCallback as C } from "react";
|
|
3
3
|
import { s as Ce, l as Ae, m as Pe, x as He, y as Fe, c as We } from "./d3-force-CZK-Rgd6.js";
|
|
4
4
|
const xe = "#3d7dd4", st = "#89b4e8", Oe = "#1e4f8f", ct = "#94a3b8", at = "#64748b", it = "#94a3b8", Ie = "#64748b", ze = "#0052d9", Ge = "#003cab", lt = "rgba(0, 82, 217, 0.25)", he = 52, dt = "#fff", ut = 11, ce = "__uncategorized__", we = [
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as D, jsx as b, Fragment as Hi } from "react/jsx-runtime";
|
|
2
|
-
import { I as Fe, B as si, dI as yv, dJ as hn,
|
|
2
|
+
import { I as Fe, B as si, dI as yv, dJ as hn, bs as Sv, j as Rv, d4 as kp, d5 as Fv, g as Ev, dK as Pv, dx as Ud } from "./embed-CoEyJMJx.js";
|
|
3
3
|
import H, { useState as A, useMemo as le, useCallback as ne, Component as xv, useContext as Ye, useRef as L, useEffect as De, memo as dt, forwardRef as ac, useImperativeHandle as lc, useLayoutEffect as at, createElement as Tv, createContext as Dv, Suspense as Iv } from "react";
|
|
4
4
|
import Av, { createPortal as Lp } from "react-dom";
|
|
5
|
-
import { T as Ds } from "./index-
|
|
6
|
-
import { a as nl } from "./index-
|
|
7
|
-
import { I as cc } from "./index-
|
|
8
|
-
import { P as yr } from "./index-
|
|
9
|
-
import { T as Mv } from "./index-
|
|
5
|
+
import { T as Ds } from "./index-CkrD_v5E.js";
|
|
6
|
+
import { a as nl } from "./index-DQ1YCU_6.js";
|
|
7
|
+
import { I as cc } from "./index-o4EXX17N.js";
|
|
8
|
+
import { P as yr } from "./index-MrasjwT1.js";
|
|
9
|
+
import { T as Mv } from "./index-DvdRKgvN.js";
|
|
10
10
|
import { c as Xe } from "./format-CWI99NCN.js";
|
|
11
|
-
import { U as Si, b as $d, t as kv, a as Lv, u as Nv } from "./use-g6-graph-
|
|
11
|
+
import { U as Si, b as $d, t as kv, a as Lv, u as Nv } from "./use-g6-graph-CPKL_pXo.js";
|
|
12
12
|
import { e as Vv } from "./focus-set-lt52maBX.js";
|
|
13
|
-
import { D as Kd } from "./index-
|
|
14
|
-
import { F as Hv } from "./Table-
|
|
13
|
+
import { D as Kd } from "./index-Bqkx1OMz.js";
|
|
14
|
+
import { F as Hv } from "./Table-BF9fhMoT.js";
|
|
15
15
|
const Ov = 8, eo = (e) => (e ?? "").trim().toUpperCase();
|
|
16
16
|
function Gv(e, t) {
|
|
17
17
|
const s = new Map(e.map((r) => [eo(r.domainCode), r])), i = [], n = /* @__PURE__ */ new Set([eo(t)]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import d, { useRef as f } from "react";
|
|
2
|
-
import { bM as h,
|
|
3
|
-
import { r as x, a as
|
|
4
|
-
const
|
|
2
|
+
import { bM as h, b2 as m } from "./embed-CoEyJMJx.js";
|
|
3
|
+
import { r as x, a as b } from "./mediaQueryUtil-8vWuS10Z.js";
|
|
4
|
+
const $ = () => d.useReducer((s) => s + 1, 0), l = ["xxl", "xl", "lg", "md", "sm", "xs"], M = (s) => ({
|
|
5
5
|
xs: `(max-width: ${s.screenXSMax}px)`,
|
|
6
6
|
sm: `(min-width: ${s.screenSM}px)`,
|
|
7
7
|
md: `(min-width: ${s.screenMD}px)`,
|
|
@@ -55,7 +55,7 @@ const b = () => d.useReducer((s) => s + 1, 0), l = ["xxl", "xl", "lg", "md", "sm
|
|
|
55
55
|
[t]: p
|
|
56
56
|
}));
|
|
57
57
|
}, c = window.matchMedia(n);
|
|
58
|
-
|
|
58
|
+
b(c, o), this.matchHandlers[n] = {
|
|
59
59
|
mql: c,
|
|
60
60
|
listener: o
|
|
61
61
|
}, o(c);
|
|
@@ -71,7 +71,7 @@ const b = () => d.useReducer((s) => s + 1, 0), l = ["xxl", "xl", "lg", "md", "sm
|
|
|
71
71
|
}, [e]);
|
|
72
72
|
};
|
|
73
73
|
function O(s = !0, e = {}) {
|
|
74
|
-
const r = f(e), [, a] =
|
|
74
|
+
const r = f(e), [, a] = $(), i = w();
|
|
75
75
|
return m(() => {
|
|
76
76
|
const t = i.subscribe((n) => {
|
|
77
77
|
r.current = n, s && a();
|
|
@@ -83,5 +83,5 @@ export {
|
|
|
83
83
|
O as a,
|
|
84
84
|
L as m,
|
|
85
85
|
l as r,
|
|
86
|
-
|
|
86
|
+
$ as u
|
|
87
87
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Z from "react";
|
|
2
|
-
import { cb as ce,
|
|
3
|
-
const ee = (e) => typeof e == "object" && e != null && e.nodeType === 1, te = (e, o) => (!o || e !== "hidden") && e !== "visible" && e !== "clip",
|
|
2
|
+
import { cb as ce, bD as fe } from "./embed-CoEyJMJx.js";
|
|
3
|
+
const ee = (e) => typeof e == "object" && e != null && e.nodeType === 1, te = (e, o) => (!o || e !== "hidden") && e !== "visible" && e !== "clip", B = (e, o) => {
|
|
4
4
|
if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
|
|
5
5
|
const r = getComputedStyle(e, null);
|
|
6
6
|
return te(r.overflowY, o) || te(r.overflowX, o) || ((l) => {
|
|
@@ -22,34 +22,34 @@ const ee = (e) => typeof e == "object" && e != null && e.nodeType === 1, te = (e
|
|
|
22
22
|
}, oe = (e, o) => {
|
|
23
23
|
var r, l, n, t;
|
|
24
24
|
if (typeof document > "u") return [];
|
|
25
|
-
const { scrollMode: i, block: c, inline: f, boundary:
|
|
25
|
+
const { scrollMode: i, block: c, inline: f, boundary: D, skipOverflowHiddenElements: ie } = o, se = typeof D == "function" ? D : (p) => p !== D;
|
|
26
26
|
if (!ee(e)) throw new TypeError("Invalid target");
|
|
27
|
-
const
|
|
27
|
+
const L = document.scrollingElement || document.documentElement, I = [];
|
|
28
28
|
let a = e;
|
|
29
29
|
for (; ee(a) && se(a); ) {
|
|
30
|
-
if (a = ae(a), a ===
|
|
30
|
+
if (a = ae(a), a === L) {
|
|
31
31
|
I.push(a);
|
|
32
32
|
break;
|
|
33
33
|
}
|
|
34
|
-
a != null && a === document.body &&
|
|
34
|
+
a != null && a === document.body && B(a) && !B(document.documentElement) || a != null && B(a, ie) && I.push(a);
|
|
35
35
|
}
|
|
36
|
-
const m = (l = (r = window.visualViewport) == null ? void 0 : r.width) != null ? l : innerWidth, b = (t = (n = window.visualViewport) == null ? void 0 : n.height) != null ? t : innerHeight, { scrollX: w, scrollY: y } = window, { height: v, width: F, top: M, right:
|
|
36
|
+
const m = (l = (r = window.visualViewport) == null ? void 0 : r.width) != null ? l : innerWidth, b = (t = (n = window.visualViewport) == null ? void 0 : n.height) != null ? t : innerHeight, { scrollX: w, scrollY: y } = window, { height: v, width: F, top: M, right: P, bottom: V, left: _ } = e.getBoundingClientRect(), { top: z, right: G, bottom: J, left: K } = ((p) => {
|
|
37
37
|
const s = window.getComputedStyle(p);
|
|
38
38
|
return { top: parseFloat(s.scrollMarginTop) || 0, right: parseFloat(s.scrollMarginRight) || 0, bottom: parseFloat(s.scrollMarginBottom) || 0, left: parseFloat(s.scrollMarginLeft) || 0 };
|
|
39
39
|
})(e);
|
|
40
|
-
let d = c === "start" || c === "nearest" ? M - z : c === "end" ? V + J : M + v / 2 - z + J, u = f === "center" ? _ + F / 2 - K + G : f === "end" ?
|
|
40
|
+
let d = c === "start" || c === "nearest" ? M - z : c === "end" ? V + J : M + v / 2 - z + J, u = f === "center" ? _ + F / 2 - K + G : f === "end" ? P + G : _ - K;
|
|
41
41
|
const A = [];
|
|
42
42
|
for (let p = 0; p < I.length; p++) {
|
|
43
43
|
const s = I[p], { height: O, width: W, top: N, right: X, bottom: Y, left: R } = s.getBoundingClientRect();
|
|
44
|
-
if (i === "if-needed" && M >= 0 && _ >= 0 && V <= b &&
|
|
44
|
+
if (i === "if-needed" && M >= 0 && _ >= 0 && V <= b && P <= m && (s === L && !B(s) || M >= N && V <= Y && _ >= R && P <= X)) return A;
|
|
45
45
|
const H = getComputedStyle(s), j = parseInt(H.borderLeftWidth, 10), E = parseInt(H.borderTopWidth, 10), S = parseInt(H.borderRightWidth, 10), T = parseInt(H.borderBottomWidth, 10);
|
|
46
46
|
let h = 0, g = 0;
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
47
|
+
const k = "offsetWidth" in s ? s.offsetWidth - s.clientWidth - j - S : 0, x = "offsetHeight" in s ? s.offsetHeight - s.clientHeight - E - T : 0, $ = "offsetWidth" in s ? s.offsetWidth === 0 ? 0 : W / s.offsetWidth : 0, q = "offsetHeight" in s ? s.offsetHeight === 0 ? 0 : O / s.offsetHeight : 0;
|
|
48
|
+
if (L === s) h = c === "start" ? d : c === "end" ? d - b : c === "nearest" ? C(y, y + b, b, E, T, y + d, y + d + v, v) : d - b / 2, g = f === "start" ? u : f === "center" ? u - m / 2 : f === "end" ? u - m : C(w, w + m, m, j, S, w + u, w + u + F, F), h = Math.max(0, h + y), g = Math.max(0, g + w);
|
|
49
49
|
else {
|
|
50
|
-
h = c === "start" ? d - N - E : c === "end" ? d - Y + T +
|
|
50
|
+
h = c === "start" ? d - N - E : c === "end" ? d - Y + T + x : c === "nearest" ? C(N, Y, O, E, T + x, d, d + v, v) : d - (N + O / 2) + x / 2, g = f === "start" ? u - R - j : f === "center" ? u - (R + W / 2) + k / 2 : f === "end" ? u - X + S + k : C(R, X, W, j, S + k, u, u + F, F);
|
|
51
51
|
const { scrollLeft: Q, scrollTop: U } = s;
|
|
52
|
-
h = q === 0 ? 0 : Math.max(0, Math.min(U + h / q, s.scrollHeight - O / q +
|
|
52
|
+
h = q === 0 ? 0 : Math.max(0, Math.min(U + h / q, s.scrollHeight - O / q + x)), g = $ === 0 ? 0 : Math.max(0, Math.min(Q + g / $, s.scrollWidth - W / $ + k)), d += U - h, u += Q - g;
|
|
53
53
|
}
|
|
54
54
|
A.push({ el: s, top: h, left: g });
|
|
55
55
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as A } from "react/jsx-runtime";
|
|
2
|
-
import { t as E, r as L, K as ue, u as be, I as c, j as G } from "./embed-
|
|
2
|
+
import { t as E, r as L, K as ue, u as be, I as c, j as G } from "./embed-CoEyJMJx.js";
|
|
3
3
|
import { useState as o, useCallback as Ne, useEffect as pe, useMemo as V } from "react";
|
|
4
4
|
import { f as H } from "./format-CWI99NCN.js";
|
|
5
5
|
const P = "/kb/v1/knowledgeBase", $ = () => ({ "X-Tenant-Code": ue() });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as e, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { W as i, u as r, I as t } from "./embed-
|
|
3
|
-
import { V as c } from "./version-control-panel-
|
|
2
|
+
import { W as i, u as r, I as t } from "./embed-CoEyJMJx.js";
|
|
3
|
+
import { V as c } from "./version-control-panel-Db_RP6gX.js";
|
|
4
4
|
function d() {
|
|
5
5
|
const o = i(), n = r(), a = o.kbId || "";
|
|
6
6
|
return /* @__PURE__ */ e("div", { className: "view", children: [
|