@yuku123/z-cognition-component 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/dist-lib/ApartmentOutlined-M6qSurnE.js +12 -0
  2. package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +12 -0
  3. package/dist-lib/{ConceptsPage-DOf_CJlz.js → ConceptsPage-BOeKdDKI.js} +16 -13
  4. package/dist-lib/{DocsPage-CiC7TU96.js → DocsPage-BZOBFp3c.js} +4 -4
  5. package/dist-lib/EvidenceFormList-DXqqSpPV.js +91 -0
  6. package/dist-lib/{EyeOutlined-CH-5UdnC.js → EyeOutlined-DGSrX-0M.js} +1 -1
  7. package/dist-lib/ImpactPage-DyhUR6fT.js +71 -0
  8. package/dist-lib/{LeftOutlined-DQTflZ6D.js → LeftOutlined-Cgo6Izj-.js} +1 -1
  9. package/dist-lib/{OntologyDetailPage-mgK_NQxP.js → OntologyDetailPage-B8DyU8WW.js} +93 -99
  10. package/dist-lib/{OntologyInferPage-NUaoaQpN.js → OntologyInferPage-CvcjxpBB.js} +40 -38
  11. package/dist-lib/{OntologyListPage-C9wH01y0.js → OntologyListPage-Cb0XfpWE.js} +49 -47
  12. package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +136 -0
  13. package/dist-lib/OntologyNodesPage-D4MWlm6q.js +1268 -0
  14. package/dist-lib/{OntologyValidatePage-DtkYK_l4.js → OntologyValidatePage-abQVJwzV.js} +52 -49
  15. package/dist-lib/{Pagination-Ds8VKQIT.js → Pagination-Dxslodkq.js} +258 -260
  16. package/dist-lib/PlusOutlined-B_dXo_97.js +12 -0
  17. package/dist-lib/{ReloadOutlined-B26pDoyV.js → ReloadOutlined-CS-e-TmN.js} +10 -19
  18. package/dist-lib/{ResolvePage-Cz9HORZ3.js → ResolvePage-rbQ-8nNZ.js} +33 -31
  19. package/dist-lib/{RotateRightOutlined-B575hEBK.js → RotateRightOutlined-q7zp2e47.js} +1 -1
  20. package/dist-lib/SearchOutlined-puH6bCY6.js +979 -0
  21. package/dist-lib/Skeleton-DXcERb5r.js +557 -0
  22. package/dist-lib/{Table-D8pPXolZ.js → Table-CDagah-g.js} +452 -450
  23. package/dist-lib/TagsOutlined-B4_qkn6-.js +20 -0
  24. package/dist-lib/TermDetailPage-CP0D6OvA.js +242 -0
  25. package/dist-lib/{TermsPage-BuzCMYov.js → TermsPage-CuufAyuL.js} +31 -28
  26. package/dist-lib/TextArea-DTpTS5HL.js +1897 -0
  27. package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +20 -0
  28. package/dist-lib/{agents-DS0rPJGV.js → agents-CvgRLQw2.js} +46 -46
  29. package/dist-lib/{ai-CQ67aRC4.js → ai-DYDhijtn.js} +30 -30
  30. package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DJnybJtS.js} +14 -13
  31. package/dist-lib/{approval-LLVR3fMa.js → approval-3IbhY8Lp.js} +26 -25
  32. package/dist-lib/{approvals-D1DSA-Mw.js → approvals-Cd6CVzz4.js} +43 -42
  33. package/dist-lib/{assistant-DpabpWKV.js → assistant-cIXgilaE.js} +50 -49
  34. package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-BQzH4ChB.js} +5 -5
  35. package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-LKTj_HKM.js} +1 -1
  36. package/dist-lib/{audit-DeU1XEgQ.js → audit-CxuJ5unU.js} +1 -1
  37. package/dist-lib/{bios-Bk36bVhw.js → bios-BplnCOF4.js} +130 -125
  38. package/dist-lib/callSuper-DZEfdkXG.js +7 -0
  39. package/dist-lib/{changelog-xEt2qnho.js → changelog-BoGqt_81.js} +2 -2
  40. package/dist-lib/{changelog-CCMDMI4R.js → changelog-Cn81Dvgk.js} +1 -1
  41. package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +2004 -0
  42. package/dist-lib/colors-sdAcAcU3.js +24 -0
  43. package/dist-lib/context-Buz0ggsK.js +710 -0
  44. package/dist-lib/context-DpmyNOn3.js +21 -0
  45. package/dist-lib/createForOfIteratorHelper-DEx_aTey.js +51 -0
  46. package/dist-lib/d3-force-CZK-Rgd6.js +598 -0
  47. package/dist-lib/{dayjs.min-DoEf5yCX.js → dayjs.min-BauDENhn.js} +1 -1
  48. package/dist-lib/{detail-Xtof0GoK.js → detail-BaX7WiWV.js} +51 -50
  49. package/dist-lib/{detail-BW6dD_YP.js → detail-Cx5c4KJH.js} +89 -88
  50. package/dist-lib/{docx-preview-D4v2g8Yg.js → docx-preview-B5nQuTwk.js} +1 -1
  51. package/dist-lib/{downloads-Dj4DgBSS.js → downloads-C3Oz04OW.js} +4 -3
  52. package/dist-lib/{edit-nZ7siGuW.js → edit-Cbn2eJaJ.js} +265 -259
  53. package/dist-lib/{editor-BuhZwEsv.js → editor-mtaJBQXz.js} +21 -20
  54. package/dist-lib/embed-CR8XVkMy.js +31148 -0
  55. package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-BoHiY8yT.js} +15 -14
  56. package/dist-lib/{focus-set-DfRWcq91.js → focus-set-h0YtOUB2.js} +34 -33
  57. package/dist-lib/{format-CWI99NCN.js → format-UGmYKemG.js} +1 -1
  58. package/dist-lib/index-9aQ4BzIK.js +500 -0
  59. package/dist-lib/{index-BJ2Gpcbi.js → index-B22_2Dzh.js} +2 -2
  60. package/dist-lib/index-B57Fj7Y0.js +1169 -0
  61. package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
  62. package/dist-lib/{index-rtSfQuYs.js → index-BSlCGnzo.js} +12 -12
  63. package/dist-lib/index-Bc-Vin3j.js +256 -0
  64. package/dist-lib/{index-SAPKyv8e.js → index-Bm1sK-VN.js} +10 -10
  65. package/dist-lib/{index-g9uC_rON.js → index-BwVZgt5s.js} +129 -146
  66. package/dist-lib/{index-CZipVp1G.js → index-C3AMwzIi.js} +1 -1
  67. package/dist-lib/{index-B5jr3A7f.js → index-CHBNrCMy.js} +19 -19
  68. package/dist-lib/{index-BFRg0cn3.js → index-CLTfICbf.js} +6 -6
  69. package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
  70. package/dist-lib/index-Cfu1W1H6.js +535 -0
  71. package/dist-lib/{index-DzrH4RQ7.js → index-Cj4DDWyj.js} +11 -10
  72. package/dist-lib/index-CrMcNEAZ.js +9656 -0
  73. package/dist-lib/index-Cy9i4Kx7.js +699 -0
  74. package/dist-lib/index-CyKWCYMK.js +218 -0
  75. package/dist-lib/{index-CjwzwBTy.js → index-D3GHtSlM.js} +94 -93
  76. package/dist-lib/{index-B8l4PAGJ.js → index-DBlG9uXV.js} +112 -108
  77. package/dist-lib/index-DBtGE89a.js +168 -0
  78. package/dist-lib/{index-CS5YTpdI.js → index-DMTPsTna.js} +4 -3
  79. package/dist-lib/index-DjFPRXl5.js +1484 -0
  80. package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
  81. package/dist-lib/index-DvWHYX81.js +450 -0
  82. package/dist-lib/{index-D5V4bZ4e.js → index-PBT9GksC.js} +8 -8
  83. package/dist-lib/index-Vu6sPBci.js +1884 -0
  84. package/dist-lib/index-bOY1cBol.js +4890 -0
  85. package/dist-lib/index-nQSVLWfW.js +356 -0
  86. package/dist-lib/{index-pcUZcUIA.js → index-o65vKUwa.js} +48 -47
  87. package/dist-lib/{index-K7z38Ybg.js → index-ounfql2z.js} +33 -31
  88. package/dist-lib/{index-B1rpIXU7.js → index-y7jVGGI0.js} +23 -21
  89. package/dist-lib/index.js +3 -1
  90. package/dist-lib/{jszip.min-dcaDnWUw.js → jszip.min-DcEHhn-b.js} +1 -1
  91. package/dist-lib/{kb-form-modal-9L0AUHVG.js → kb-form-modal-B0rM1ZvV.js} +71 -71
  92. package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-Bh_FQH28.js} +3 -3
  93. package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-Cl1Ka1e6.js} +104 -103
  94. package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-CPuzdRiq.js} +52 -51
  95. package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-Cu62Fl7J.js} +181 -177
  96. package/dist-lib/{material-preview-docx-lp_xPipj.js → material-preview-docx-CH-09KeC.js} +1 -1
  97. package/dist-lib/{material-preview-pdf-CKAovvpc.js → material-preview-pdf-CTSo215V.js} +7 -7
  98. package/dist-lib/{material-preview-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
  99. package/dist-lib/{member-B5WF3FCj.js → member-DKDx77PD.js} +1 -1
  100. package/dist-lib/{message-kHyjuooj.js → message-BrooQ3Q7.js} +25 -24
  101. package/dist-lib/{message-D2MSaOMq.js → message-Dievi8Jw.js} +1 -1
  102. package/dist-lib/{messages-D_VDuKK7.js → messages-xTNmTS9g.js} +16 -15
  103. package/dist-lib/{meta-CEf_DYcU.js → meta-BD_qYTZu.js} +1 -1
  104. package/dist-lib/{metrics-hONGW0KG.js → metrics-DiHYqBKB.js} +2 -2
  105. package/dist-lib/{monitor-DF3WVsVV.js → monitor-BBCu3zRe.js} +8 -8
  106. package/dist-lib/{monitor-DFmEu6rH.js → monitor-BXsdMJSV.js} +4 -4
  107. package/dist-lib/{my-access-j53lA6T6.js → my-access-CEGErUgv.js} +4 -4
  108. package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-wSr5zv7g.js} +23 -22
  109. package/dist-lib/{new-DfZ61nMQ.js → new-BevAuTe5.js} +14 -12
  110. package/dist-lib/{ontology-CUH5qslO.js → ontology-DXGSJC-y.js} +145 -142
  111. package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-jTG7CZm8.js} +88 -84
  112. package/dist-lib/ontology-modeling-CjRsa-DR.js +1039 -0
  113. package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-DOj68TuI.js} +2125 -2117
  114. package/dist-lib/ontology-scenarios-CcAagMiP.js +660 -0
  115. package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-J5kw6xgi.js} +703 -712
  116. package/dist-lib/pages-CsexFuEz.js +73 -0
  117. package/dist-lib/pages.js +3 -3
  118. package/dist-lib/{permission-CklDU2kO.js → permission-BUXo69Ne.js} +31 -31
  119. package/dist-lib/{pptx-preview.es-D4ODiBv2.js → pptx-preview.es-AUrdYKu3.js} +2 -2
  120. package/dist-lib/{preset-Bp_mvsJm.js → preset-gh5SGoYT.js} +9810 -10199
  121. package/dist-lib/{quota-DLe9so2b.js → quota-D31cXjul.js} +4 -4
  122. package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
  123. package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-CiWNK-cX.js} +2 -2
  124. package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DQ_OBV4Z.js} +48 -46
  125. package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-DESMvU7A.js} +425 -423
  126. package/dist-lib/{schedule-B_ujtL3h.js → schedule-BktxwX3S.js} +8 -8
  127. package/dist-lib/{settings-BIkKTQjc.js → settings-dsB3H65I.js} +147 -146
  128. package/dist-lib/{shared-Dfz1X4Mq.js → shared-CTCzvhyE.js} +1 -1
  129. package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-BstybhBG.js} +2 -2
  130. package/dist-lib/{skills-BzpcX5fN.js → skills-CHPlMsgO.js} +40 -39
  131. package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-tXqc855k.js} +16 -16
  132. package/dist-lib/{task-config-D0a7TOYt.js → task-config-BiTOiZj0.js} +4 -4
  133. package/dist-lib/{tech-CH01ekZ5.js → tech-BKlGPkV0.js} +4 -3
  134. package/dist-lib/{tools-YnTN61uE.js → tools-CouQ4FWk.js} +14 -14
  135. package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-BPlNfoiP.js} +13 -13
  136. package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
  137. package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-ja-ZIC_R.js} +50 -48
  138. package/dist-lib/useClosable-BY7FgWKy.js +59 -0
  139. package/dist-lib/useForm-Byp1LopG.js +145 -0
  140. package/dist-lib/{version-control-panel-CLy2ZXI_.js → version-control-panel-CkBm36Yk.js} +27 -26
  141. package/dist-lib/{version-management-C_v8w1E4.js → version-management-B4kIbdVc.js} +7 -6
  142. package/dist-lib/{welcome-ChEcA4Ej.js → welcome-F5iZoFB1.js} +4 -3
  143. package/package.json +2 -3
  144. package/dist-lib/EvidenceFormList-CrE2FzHk.js +0 -90
  145. package/dist-lib/ImpactPage-CYiuqy0S.js +0 -68
  146. package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +0 -134
  147. package/dist-lib/OntologyNodesPage-5kH7RHwE.js +0 -2844
  148. package/dist-lib/PlusOutlined-BSTPGLOH.js +0 -21
  149. package/dist-lib/Skeleton-CxFsInYI.js +0 -671
  150. package/dist-lib/Table-Civ838nE.js +0 -20514
  151. package/dist-lib/TermDetailPage-BtkOpbPT.js +0 -263
  152. package/dist-lib/_commonjsHelpers-DaMA6jEr.js +0 -8
  153. package/dist-lib/callSuper-CwIeyYoc.js +0 -7
  154. package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +0 -1627
  155. package/dist-lib/context-T27uno74.js +0 -54
  156. package/dist-lib/d3-force-Cr_oBTiR.js +0 -647
  157. package/dist-lib/embed-Bs3Hmsyy.js +0 -51377
  158. package/dist-lib/index-0TvzCTD7.js +0 -2336
  159. package/dist-lib/index-4tbtbcAt.js +0 -550
  160. package/dist-lib/index-B1wh6i1C.js +0 -1308
  161. package/dist-lib/index-BVgdmf6r.js +0 -2487
  162. package/dist-lib/index-CSnvcFg-.js +0 -543
  163. package/dist-lib/index-D35Ry0PG.js +0 -1162
  164. package/dist-lib/index-DC57_dnh.js +0 -604
  165. package/dist-lib/index-DQ16Zb7x.js +0 -546
  166. package/dist-lib/index-DRcTwC17.js +0 -418
  167. package/dist-lib/index-Dd9pPAT3.js +0 -2192
  168. package/dist-lib/index-DxzorPvG.js +0 -13960
  169. package/dist-lib/index-If4xc1-H.js +0 -559
  170. package/dist-lib/index-R71k3nB_.js +0 -710
  171. package/dist-lib/index-mUlorJxp.js +0 -3279
  172. package/dist-lib/ontology-modeling-CvJIImxt.js +0 -3612
  173. package/dist-lib/ontology-scenarios-BRDkk3uA.js +0 -675
  174. package/dist-lib/pages-CticGC6S.js +0 -512
  175. package/dist-lib/use-g6-graph-SwJtPLce.js +0 -57552
@@ -0,0 +1,450 @@
1
+ import * as s from "react";
2
+ import { useContext as Z, useMemo as le, useState as ce, useRef as ue } from "react";
3
+ import { c as L, I as pe, _ as fe, R as de } from "./SearchOutlined-puH6bCY6.js";
4
+ import { c as X, ab as K, d as ne, g as me, m as ve, Q as ge, p as be, ac as oe, af as Ce, k as ee, _ as ye, ad as Oe, a2 as xe, x as se, a9 as he, ay as te, B as Ee } from "./index-CrMcNEAZ.js";
5
+ import { u as Ie, i as Pe, a as we, I as Q, b as Se, T as _e } from "./TextArea-DTpTS5HL.js";
6
+ import { R as Ne } from "./EyeOutlined-DGSrX-0M.js";
7
+ const $e = (e) => {
8
+ const {
9
+ getPrefixCls: r,
10
+ direction: i
11
+ } = Z(X), {
12
+ prefixCls: t,
13
+ className: n
14
+ } = e, f = r("input-group", t), v = r("input"), [u, P, x] = Ie(v), g = L(f, x, {
15
+ [`${f}-lg`]: e.size === "large",
16
+ [`${f}-sm`]: e.size === "small",
17
+ [`${f}-compact`]: e.compact,
18
+ [`${f}-rtl`]: i === "rtl"
19
+ }, P, n), b = Z(K), C = le(() => Object.assign(Object.assign({}, b), {
20
+ isFormItemInput: !1
21
+ }), [b]);
22
+ return process.env.NODE_ENV !== "production" && ne("Input.Group").deprecated(!1, "Input.Group", "Space.Compact"), u(/* @__PURE__ */ s.createElement("span", {
23
+ className: g,
24
+ style: e.style,
25
+ onMouseEnter: e.onMouseEnter,
26
+ onMouseLeave: e.onMouseLeave,
27
+ onFocus: e.onFocus,
28
+ onBlur: e.onBlur
29
+ }, /* @__PURE__ */ s.createElement(K.Provider, {
30
+ value: C
31
+ }, e.children)));
32
+ }, je = (e) => {
33
+ const {
34
+ componentCls: r,
35
+ paddingXS: i
36
+ } = e;
37
+ return {
38
+ [r]: {
39
+ display: "inline-flex",
40
+ alignItems: "center",
41
+ flexWrap: "nowrap",
42
+ columnGap: i,
43
+ [`${r}-input-wrapper`]: {
44
+ position: "relative",
45
+ [`${r}-mask-icon`]: {
46
+ position: "absolute",
47
+ zIndex: "1",
48
+ top: "50%",
49
+ right: "50%",
50
+ transform: "translate(50%, -50%)",
51
+ pointerEvents: "none"
52
+ },
53
+ [`${r}-mask-input`]: {
54
+ color: "transparent",
55
+ caretColor: e.colorText
56
+ },
57
+ [`${r}-mask-input[type=number]::-webkit-inner-spin-button`]: {
58
+ "-webkit-appearance": "none",
59
+ margin: 0
60
+ },
61
+ [`${r}-mask-input[type=number]`]: {
62
+ "-moz-appearance": "textfield"
63
+ }
64
+ },
65
+ "&-rtl": {
66
+ direction: "rtl"
67
+ },
68
+ [`${r}-input`]: {
69
+ textAlign: "center",
70
+ paddingInline: e.paddingXXS
71
+ },
72
+ // ================= Size =================
73
+ [`&${r}-sm ${r}-input`]: {
74
+ paddingInline: e.calc(e.paddingXXS).div(2).equal()
75
+ },
76
+ [`&${r}-lg ${r}-input`]: {
77
+ paddingInline: e.paddingXS
78
+ }
79
+ }
80
+ };
81
+ }, ke = me(["Input", "OTP"], (e) => {
82
+ const r = ve(e, we(e));
83
+ return je(r);
84
+ }, Pe);
85
+ var ze = function(e, r) {
86
+ var i = {};
87
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && r.indexOf(t) < 0 && (i[t] = e[t]);
88
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, t = Object.getOwnPropertySymbols(e); n < t.length; n++)
89
+ r.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (i[t[n]] = e[t[n]]);
90
+ return i;
91
+ };
92
+ const Re = /* @__PURE__ */ s.forwardRef((e, r) => {
93
+ const {
94
+ className: i,
95
+ value: t,
96
+ onChange: n,
97
+ onActiveChange: f,
98
+ index: v,
99
+ mask: u
100
+ } = e, P = ze(e, ["className", "value", "onChange", "onActiveChange", "index", "mask"]), {
101
+ getPrefixCls: x
102
+ } = s.useContext(X), g = x("otp"), b = typeof u == "string" ? u : t, C = s.useRef(null);
103
+ s.useImperativeHandle(r, () => C.current);
104
+ const _ = (d) => {
105
+ n(v, d.target.value);
106
+ }, y = () => {
107
+ ge(() => {
108
+ var d;
109
+ const O = (d = C.current) === null || d === void 0 ? void 0 : d.input;
110
+ document.activeElement === O && O && O.select();
111
+ });
112
+ }, N = (d) => {
113
+ const {
114
+ key: O,
115
+ ctrlKey: j,
116
+ metaKey: w
117
+ } = d;
118
+ O === "ArrowLeft" ? f(v - 1) : O === "ArrowRight" ? f(v + 1) : O === "z" && (j || w) ? d.preventDefault() : O === "Backspace" && !t && f(v - 1), y();
119
+ };
120
+ return /* @__PURE__ */ s.createElement("span", {
121
+ className: `${g}-input-wrapper`,
122
+ role: "presentation"
123
+ }, u && t !== "" && t !== void 0 && /* @__PURE__ */ s.createElement("span", {
124
+ className: `${g}-mask-icon`,
125
+ "aria-hidden": "true"
126
+ }, b), /* @__PURE__ */ s.createElement(Q, Object.assign({
127
+ "aria-label": `OTP Input ${v + 1}`,
128
+ type: u === !0 ? "password" : "text"
129
+ }, P, {
130
+ ref: C,
131
+ value: t,
132
+ onInput: _,
133
+ onFocus: y,
134
+ onKeyDown: N,
135
+ onMouseDown: y,
136
+ onMouseUp: y,
137
+ className: L(i, {
138
+ [`${g}-mask-input`]: u
139
+ })
140
+ })));
141
+ });
142
+ var Ae = function(e, r) {
143
+ var i = {};
144
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && r.indexOf(t) < 0 && (i[t] = e[t]);
145
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, t = Object.getOwnPropertySymbols(e); n < t.length; n++)
146
+ r.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (i[t[n]] = e[t[n]]);
147
+ return i;
148
+ };
149
+ function G(e) {
150
+ return (e || "").split("");
151
+ }
152
+ const Te = (e) => {
153
+ const {
154
+ index: r,
155
+ prefixCls: i,
156
+ separator: t
157
+ } = e, n = typeof t == "function" ? t(r) : t;
158
+ return n ? /* @__PURE__ */ s.createElement("span", {
159
+ className: `${i}-separator`
160
+ }, n) : null;
161
+ }, Me = /* @__PURE__ */ s.forwardRef((e, r) => {
162
+ const {
163
+ prefixCls: i,
164
+ length: t = 6,
165
+ size: n,
166
+ defaultValue: f,
167
+ value: v,
168
+ onChange: u,
169
+ formatter: P,
170
+ separator: x,
171
+ variant: g,
172
+ disabled: b,
173
+ status: C,
174
+ autoFocus: _,
175
+ mask: y,
176
+ type: N,
177
+ onInput: d,
178
+ inputMode: O
179
+ } = e, j = Ae(e, ["prefixCls", "length", "size", "defaultValue", "value", "onChange", "formatter", "separator", "variant", "disabled", "status", "autoFocus", "mask", "type", "onInput", "inputMode"]);
180
+ if (process.env.NODE_ENV !== "production") {
181
+ const o = ne("Input.OTP");
182
+ process.env.NODE_ENV !== "production" && o(!(typeof y == "string" && y.length > 1), "usage", "`mask` prop should be a single character.");
183
+ }
184
+ const {
185
+ getPrefixCls: w,
186
+ direction: R
187
+ } = s.useContext(X), m = w("otp", i), F = be(j, {
188
+ aria: !0,
189
+ data: !0,
190
+ attr: !0
191
+ }), [A, $, T] = ke(m), k = oe((o) => n ?? o), h = s.useContext(K), E = Ce(h.status, C), M = s.useMemo(() => Object.assign(Object.assign({}, h), {
192
+ status: E,
193
+ hasFeedback: !1,
194
+ feedbackIcon: null
195
+ }), [h, E]), D = s.useRef(null), I = s.useRef({});
196
+ s.useImperativeHandle(r, () => ({
197
+ focus: () => {
198
+ var o;
199
+ (o = I.current[0]) === null || o === void 0 || o.focus();
200
+ },
201
+ blur: () => {
202
+ var o;
203
+ for (let a = 0; a < t; a += 1)
204
+ (o = I.current[a]) === null || o === void 0 || o.blur();
205
+ },
206
+ nativeElement: D.current
207
+ }));
208
+ const z = (o) => P ? P(o) : o, [S, B] = s.useState(() => G(z(f || "")));
209
+ s.useEffect(() => {
210
+ v !== void 0 && B(G(v));
211
+ }, [v]);
212
+ const U = ee((o) => {
213
+ B(o), d && d(o), u && o.length === t && o.every((a) => a) && o.some((a, c) => S[c] !== a) && u(o.join(""));
214
+ }), H = ee((o, a) => {
215
+ let c = ye(S);
216
+ for (let p = 0; p < o; p += 1)
217
+ c[p] || (c[p] = "");
218
+ a.length <= 1 ? c[o] = a : c = c.slice(0, o).concat(G(a)), c = c.slice(0, t);
219
+ for (let p = c.length - 1; p >= 0 && !c[p]; p -= 1)
220
+ c.pop();
221
+ const V = z(c.map((p) => p || " ").join(""));
222
+ return c = G(V).map((p, Y) => p === " " && !c[Y] ? c[Y] : p), c;
223
+ }), W = (o, a) => {
224
+ var c;
225
+ const V = H(o, a), p = Math.min(o + a.length, t - 1);
226
+ p !== o && V[o] !== void 0 && ((c = I.current[p]) === null || c === void 0 || c.focus()), U(V);
227
+ }, J = (o) => {
228
+ var a;
229
+ (a = I.current[o]) === null || a === void 0 || a.focus();
230
+ }, l = {
231
+ variant: g,
232
+ disabled: b,
233
+ status: E,
234
+ mask: y,
235
+ type: N,
236
+ inputMode: O
237
+ };
238
+ return A(/* @__PURE__ */ s.createElement("div", Object.assign({}, F, {
239
+ ref: D,
240
+ className: L(m, {
241
+ [`${m}-sm`]: k === "small",
242
+ [`${m}-lg`]: k === "large",
243
+ [`${m}-rtl`]: R === "rtl"
244
+ }, T, $),
245
+ role: "group"
246
+ }), /* @__PURE__ */ s.createElement(K.Provider, {
247
+ value: M
248
+ }, Array.from({
249
+ length: t
250
+ }).map((o, a) => {
251
+ const c = `otp-${a}`, V = S[a] || "";
252
+ return /* @__PURE__ */ s.createElement(s.Fragment, {
253
+ key: c
254
+ }, /* @__PURE__ */ s.createElement(Re, Object.assign({
255
+ ref: (p) => {
256
+ I.current[a] = p;
257
+ },
258
+ index: a,
259
+ size: k,
260
+ htmlSize: 1,
261
+ className: `${m}-input`,
262
+ onChange: W,
263
+ value: V,
264
+ onActiveChange: J,
265
+ autoFocus: a === 0 && _
266
+ }, l)), a < t - 1 && /* @__PURE__ */ s.createElement(Te, {
267
+ separator: x,
268
+ index: a,
269
+ prefixCls: m
270
+ }));
271
+ }))));
272
+ });
273
+ var De = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { tag: "path", attrs: { d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, name: "eye-invisible", theme: "outlined" }, Ve = function(r, i) {
274
+ return /* @__PURE__ */ s.createElement(pe, fe({}, r, {
275
+ ref: i,
276
+ icon: De
277
+ }));
278
+ }, re = /* @__PURE__ */ s.forwardRef(Ve);
279
+ process.env.NODE_ENV !== "production" && (re.displayName = "EyeInvisibleOutlined");
280
+ var Fe = function(e, r) {
281
+ var i = {};
282
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && r.indexOf(t) < 0 && (i[t] = e[t]);
283
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, t = Object.getOwnPropertySymbols(e); n < t.length; n++)
284
+ r.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (i[t[n]] = e[t[n]]);
285
+ return i;
286
+ };
287
+ const Be = (e) => e ? /* @__PURE__ */ s.createElement(Ne, null) : /* @__PURE__ */ s.createElement(re, null), Le = {
288
+ click: "onClick",
289
+ hover: "onMouseOver"
290
+ }, ae = /* @__PURE__ */ s.forwardRef((e, r) => {
291
+ const {
292
+ disabled: i,
293
+ action: t = "click",
294
+ visibilityToggle: n = !0,
295
+ iconRender: f = Be,
296
+ suffix: v
297
+ } = e, u = s.useContext(Oe), P = i ?? u, x = typeof n == "object" && n.visible !== void 0, [g, b] = ce(() => x ? n.visible : !1), C = ue(null);
298
+ s.useEffect(() => {
299
+ x && b(n.visible);
300
+ }, [x, n]);
301
+ const _ = Se(C), y = () => {
302
+ var h;
303
+ if (P)
304
+ return;
305
+ g && _();
306
+ const E = !g;
307
+ b(E), typeof n == "object" && ((h = n.onVisibleChange) === null || h === void 0 || h.call(n, E));
308
+ }, N = (h) => {
309
+ const E = Le[t] || "", M = f(g), D = {
310
+ [E]: y,
311
+ className: `${h}-icon`,
312
+ key: "passwordIcon",
313
+ onMouseDown: (I) => {
314
+ I.preventDefault();
315
+ },
316
+ onMouseUp: (I) => {
317
+ I.preventDefault();
318
+ }
319
+ };
320
+ return /* @__PURE__ */ s.cloneElement(/* @__PURE__ */ s.isValidElement(M) ? M : /* @__PURE__ */ s.createElement("span", null, M), D);
321
+ }, {
322
+ className: d,
323
+ prefixCls: O,
324
+ inputPrefixCls: j,
325
+ size: w
326
+ } = e, R = Fe(e, ["className", "prefixCls", "inputPrefixCls", "size"]), {
327
+ getPrefixCls: m
328
+ } = s.useContext(X), F = m("input", j), A = m("input-password", O), $ = n && N(A), T = L(A, d, {
329
+ [`${A}-${w}`]: !!w
330
+ }), k = Object.assign(Object.assign({}, xe(R, ["suffix", "iconRender", "visibilityToggle"])), {
331
+ type: g ? "text" : "password",
332
+ className: T,
333
+ prefixCls: F,
334
+ suffix: /* @__PURE__ */ s.createElement(s.Fragment, null, $, v)
335
+ });
336
+ return w && (k.size = w), /* @__PURE__ */ s.createElement(Q, Object.assign({
337
+ ref: se(r, C)
338
+ }, k));
339
+ });
340
+ process.env.NODE_ENV !== "production" && (ae.displayName = "Input.Password");
341
+ var Xe = function(e, r) {
342
+ var i = {};
343
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && r.indexOf(t) < 0 && (i[t] = e[t]);
344
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, t = Object.getOwnPropertySymbols(e); n < t.length; n++)
345
+ r.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (i[t[n]] = e[t[n]]);
346
+ return i;
347
+ };
348
+ const ie = /* @__PURE__ */ s.forwardRef((e, r) => {
349
+ const {
350
+ prefixCls: i,
351
+ inputPrefixCls: t,
352
+ className: n,
353
+ size: f,
354
+ suffix: v,
355
+ enterButton: u = !1,
356
+ addonAfter: P,
357
+ loading: x,
358
+ disabled: g,
359
+ onSearch: b,
360
+ onChange: C,
361
+ onCompositionStart: _,
362
+ onCompositionEnd: y,
363
+ variant: N,
364
+ onPressEnter: d
365
+ } = e, O = Xe(e, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd", "variant", "onPressEnter"]), {
366
+ getPrefixCls: j,
367
+ direction: w
368
+ } = s.useContext(X), R = s.useRef(!1), m = j("input-search", i), F = j("input", t), {
369
+ compactSize: A
370
+ } = he(m, w), $ = oe((l) => {
371
+ var o;
372
+ return (o = f ?? A) !== null && o !== void 0 ? o : l;
373
+ }), T = s.useRef(null), k = (l) => {
374
+ l != null && l.target && l.type === "click" && b && b(l.target.value, l, {
375
+ source: "clear"
376
+ }), C == null || C(l);
377
+ }, h = (l) => {
378
+ var o;
379
+ document.activeElement === ((o = T.current) === null || o === void 0 ? void 0 : o.input) && l.preventDefault();
380
+ }, E = (l) => {
381
+ var o, a;
382
+ b && b((a = (o = T.current) === null || o === void 0 ? void 0 : o.input) === null || a === void 0 ? void 0 : a.value, l, {
383
+ source: "input"
384
+ });
385
+ }, M = (l) => {
386
+ R.current || x || (d == null || d(l), E(l));
387
+ }, D = typeof u == "boolean" ? /* @__PURE__ */ s.createElement(de, null) : null, I = `${m}-button`;
388
+ let z;
389
+ const S = u || {}, B = S.type && S.type.__ANT_BUTTON === !0;
390
+ B || S.type === "button" ? z = te(S, Object.assign({
391
+ onMouseDown: h,
392
+ onClick: (l) => {
393
+ var o, a;
394
+ (a = (o = S == null ? void 0 : S.props) === null || o === void 0 ? void 0 : o.onClick) === null || a === void 0 || a.call(o, l), E(l);
395
+ },
396
+ key: "enterButton"
397
+ }, B ? {
398
+ className: I,
399
+ size: $
400
+ } : {})) : z = /* @__PURE__ */ s.createElement(Ee, {
401
+ className: I,
402
+ color: u ? "primary" : "default",
403
+ size: $,
404
+ disabled: g,
405
+ key: "enterButton",
406
+ onMouseDown: h,
407
+ onClick: E,
408
+ loading: x,
409
+ icon: D,
410
+ variant: N === "borderless" || N === "filled" || N === "underlined" ? "text" : u ? "solid" : void 0
411
+ }, u), P && (z = [z, te(P, {
412
+ key: "addonAfter"
413
+ })]);
414
+ const U = L(m, {
415
+ [`${m}-rtl`]: w === "rtl",
416
+ [`${m}-${$}`]: !!$,
417
+ [`${m}-with-button`]: !!u
418
+ }, n), H = (l) => {
419
+ R.current = !0, _ == null || _(l);
420
+ }, W = (l) => {
421
+ R.current = !1, y == null || y(l);
422
+ }, J = Object.assign(Object.assign({}, O), {
423
+ className: U,
424
+ prefixCls: F,
425
+ type: "search",
426
+ size: $,
427
+ variant: N,
428
+ onPressEnter: M,
429
+ onCompositionStart: H,
430
+ onCompositionEnd: W,
431
+ addonAfter: z,
432
+ suffix: v,
433
+ onChange: k,
434
+ disabled: g,
435
+ _skipAddonWarning: !0
436
+ });
437
+ return /* @__PURE__ */ s.createElement(Q, Object.assign({
438
+ ref: se(T, r)
439
+ }, J));
440
+ });
441
+ process.env.NODE_ENV !== "production" && (ie.displayName = "Search");
442
+ const q = Q;
443
+ q.Group = $e;
444
+ q.Search = ie;
445
+ q.TextArea = _e;
446
+ q.Password = ae;
447
+ q.OTP = Me;
448
+ export {
449
+ q as I
450
+ };
@@ -1,9 +1,9 @@
1
1
  import { jsxs as a, Fragment as A, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as h, useCallback as U, useEffect as V, useMemo as B } from "react";
3
3
  import { createPortal as D } from "react-dom";
4
- import { t as K, r, K as _, I as m, j } from "./embed-Bs3Hmsyy.js";
5
- import { u as q } from "./use-escape-key-4SZ4l7av.js";
6
- import { f as H } from "./format-CWI99NCN.js";
4
+ import { t as K, r, C as _, I as m, e as q } from "./embed-CR8XVkMy.js";
5
+ import { u as H } from "./use-escape-key-4SZ4l7av.js";
6
+ import { f as O } from "./format-UGmYKemG.js";
7
7
  const l = "/kb/v1/taskConfig", o = () => ({ "X-Tenant-Code": _() });
8
8
  async function c(t) {
9
9
  try {
@@ -47,7 +47,7 @@ function de(t, s) {
47
47
  })
48
48
  );
49
49
  }
50
- function O() {
50
+ function j() {
51
51
  return c(
52
52
  () => r(`${l}/versions`, {
53
53
  method: "get",
@@ -124,10 +124,10 @@ function he({
124
124
  onRolledBack: I
125
125
  }) {
126
126
  const [g, M] = h([]), [p, v] = h(!0), [f, w] = h(""), [i, k] = h(null), [T, $] = h(""), [d, N] = h(""), [L, E] = h(!1);
127
- q(u, !d);
127
+ H(u, !d);
128
128
  const y = U(async () => {
129
129
  v(!0), w("");
130
- const n = t === "kb" && s ? await X(s) : t === "tenant" ? await O() : void 0;
130
+ const n = t === "kb" && s ? await X(s) : t === "tenant" ? await j() : void 0;
131
131
  if (v(!1), !n) {
132
132
  w("版本历史加载失败");
133
133
  return;
@@ -207,7 +207,7 @@ function he({
207
207
  /* @__PURE__ */ e("b", { className: "mono-sm", children: n.version }),
208
208
  n.current ? /* @__PURE__ */ e("span", { className: "tag green sm", style: { marginLeft: 6 }, children: "当前" }) : null
209
209
  ] }),
210
- /* @__PURE__ */ e("td", { className: "note", children: H(n.publishedAt) }),
210
+ /* @__PURE__ */ e("td", { className: "note", children: O(n.publishedAt) }),
211
211
  /* @__PURE__ */ e("td", { className: "note", children: Z(n.publishedBy) }),
212
212
  /* @__PURE__ */ e("td", { className: "mono-sm", children: n.itemCount }),
213
213
  /* @__PURE__ */ e("td", { children: /* @__PURE__ */ a("div", { className: "row gap-6", children: [
@@ -295,7 +295,7 @@ function he({
295
295
  }
296
296
  ) }),
297
297
  d ? /* @__PURE__ */ e(
298
- j,
298
+ q,
299
299
  {
300
300
  icon: "clock",
301
301
  title: `回滚到 ${d}`,