@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.
Files changed (174) 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-mAJW3cEN.js} +46 -46
  29. package/dist-lib/{ai-CQ67aRC4.js → ai-BcYmZiRo.js} +30 -30
  30. package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DO7GXjG4.js} +14 -13
  31. package/dist-lib/{approval-LLVR3fMa.js → approval-RPDUKg9-.js} +26 -25
  32. package/dist-lib/{approvals-D1DSA-Mw.js → approvals-CNjxJUpR.js} +43 -42
  33. package/dist-lib/{assistant-DpabpWKV.js → assistant-FIQQziCn.js} +50 -49
  34. package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-DsEGBJnq.js} +5 -5
  35. package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-B-f3k55y.js} +1 -1
  36. package/dist-lib/{audit-DeU1XEgQ.js → audit-NwnH1hm5.js} +1 -1
  37. package/dist-lib/{bios-Bk36bVhw.js → bios-CRwKtcit.js} +130 -125
  38. package/dist-lib/callSuper-DZEfdkXG.js +7 -0
  39. package/dist-lib/{changelog-CCMDMI4R.js → changelog-Dj_Pv2nc.js} +1 -1
  40. package/dist-lib/{changelog-xEt2qnho.js → changelog-DlL5u9o4.js} +2 -2
  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-Cfb-zdr9.js} +50 -49
  49. package/dist-lib/{detail-BW6dD_YP.js → detail-Dcfg3W8B.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-MkyxiHxi.js} +4 -3
  52. package/dist-lib/{edit-nZ7siGuW.js → edit-DLGAM-Vo.js} +265 -259
  53. package/dist-lib/{editor-BuhZwEsv.js → editor-BtiheUpe.js} +21 -20
  54. package/dist-lib/embed-DwLg9RDW.js +31148 -0
  55. package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-Dz9bUuhS.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-B57Fj7Y0.js +1169 -0
  60. package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
  61. package/dist-lib/{index-BJ2Gpcbi.js → index-BGB6NawZ.js} +2 -2
  62. package/dist-lib/index-Bc-Vin3j.js +256 -0
  63. package/dist-lib/{index-g9uC_rON.js → index-BwVZgt5s.js} +129 -146
  64. package/dist-lib/{index-CZipVp1G.js → index-C3AMwzIi.js} +1 -1
  65. package/dist-lib/{index-SAPKyv8e.js → index-CJSTTgTM.js} +10 -10
  66. package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
  67. package/dist-lib/index-Cfu1W1H6.js +535 -0
  68. package/dist-lib/index-CrMcNEAZ.js +9656 -0
  69. package/dist-lib/index-Cy9i4Kx7.js +699 -0
  70. package/dist-lib/index-CyKWCYMK.js +218 -0
  71. package/dist-lib/{index-CjwzwBTy.js → index-D3GHtSlM.js} +94 -93
  72. package/dist-lib/{index-B8l4PAGJ.js → index-DBlG9uXV.js} +112 -108
  73. package/dist-lib/index-DBtGE89a.js +168 -0
  74. package/dist-lib/{index-CS5YTpdI.js → index-DMTPsTna.js} +4 -3
  75. package/dist-lib/{index-rtSfQuYs.js → index-D_Qey9G8.js} +12 -12
  76. package/dist-lib/index-DjFPRXl5.js +1484 -0
  77. package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
  78. package/dist-lib/{index-B5jr3A7f.js → index-DuI4K5e1.js} +19 -19
  79. package/dist-lib/index-DvWHYX81.js +450 -0
  80. package/dist-lib/{index-D5V4bZ4e.js → index-HieOUSwH.js} +8 -8
  81. package/dist-lib/index-Vu6sPBci.js +1884 -0
  82. package/dist-lib/index-bOY1cBol.js +4890 -0
  83. package/dist-lib/{index-DzrH4RQ7.js → index-c2HokEFp.js} +11 -10
  84. package/dist-lib/{index-BFRg0cn3.js → index-g16g7A4k.js} +6 -6
  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-BNoIhw6B.js} +71 -71
  92. package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-EgcbWseM.js} +3 -3
  93. package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-C023dnJ-.js} +104 -103
  94. package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-B4fGCn8m.js} +52 -51
  95. package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-EvJ9Fw7X.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-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
  98. package/dist-lib/{member-B5WF3FCj.js → member-BUg2QYlE.js} +1 -1
  99. package/dist-lib/{message-kHyjuooj.js → message-Cwj8dO78.js} +25 -24
  100. package/dist-lib/{message-D2MSaOMq.js → message-GF-w8HuR.js} +1 -1
  101. package/dist-lib/{messages-D_VDuKK7.js → messages-JID13L8-.js} +16 -15
  102. package/dist-lib/{meta-CEf_DYcU.js → meta-DPp5L3Uc.js} +1 -1
  103. package/dist-lib/{metrics-hONGW0KG.js → metrics-CT4eLzrq.js} +2 -2
  104. package/dist-lib/{monitor-DFmEu6rH.js → monitor-Bs9BfJOj.js} +4 -4
  105. package/dist-lib/{monitor-DF3WVsVV.js → monitor-CmS65YSu.js} +8 -8
  106. package/dist-lib/{my-access-j53lA6T6.js → my-access-1Yj7UloI.js} +3 -3
  107. package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-yQDHPLYI.js} +23 -22
  108. package/dist-lib/{new-DfZ61nMQ.js → new-BgkoBnZV.js} +14 -12
  109. package/dist-lib/{ontology-CUH5qslO.js → ontology-BPrbXPor.js} +145 -142
  110. package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-Cbqnm-po.js} +88 -84
  111. package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-6k-m8fzr.js} +2125 -2117
  112. package/dist-lib/ontology-modeling-BT-EuDCs.js +1039 -0
  113. package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-D3xy6IZL.js} +703 -712
  114. package/dist-lib/ontology-scenarios-DWYC2yxd.js +660 -0
  115. package/dist-lib/pages-CsexFuEz.js +73 -0
  116. package/dist-lib/pages.js +3 -3
  117. package/dist-lib/{permission-CklDU2kO.js → permission-fTfxpEhV.js} +31 -31
  118. package/dist-lib/{pptx-preview.es-D4ODiBv2.js → pptx-preview.es-AUrdYKu3.js} +2 -2
  119. package/dist-lib/{preset-Bp_mvsJm.js → preset-gh5SGoYT.js} +9810 -10199
  120. package/dist-lib/{quota-DLe9so2b.js → quota-BlHnhkAT.js} +4 -4
  121. package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
  122. package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-B-pzX8eT.js} +2 -2
  123. package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DByQXh0y.js} +48 -46
  124. package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-Bw-6n9Kh.js} +425 -423
  125. package/dist-lib/{schedule-B_ujtL3h.js → schedule-H4_9KnRj.js} +8 -8
  126. package/dist-lib/{settings-BIkKTQjc.js → settings-C3PI8KYa.js} +147 -146
  127. package/dist-lib/{shared-Dfz1X4Mq.js → shared-DqeN-Wbb.js} +1 -1
  128. package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-DN3zT9P-.js} +2 -2
  129. package/dist-lib/{skills-BzpcX5fN.js → skills-eGlCExr0.js} +40 -39
  130. package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-BCvClzc-.js} +16 -16
  131. package/dist-lib/{task-config-D0a7TOYt.js → task-config-DEJVJ7zK.js} +4 -4
  132. package/dist-lib/{tech-CH01ekZ5.js → tech-C-4uM9bS.js} +4 -3
  133. package/dist-lib/{tools-YnTN61uE.js → tools-le6miafZ.js} +14 -14
  134. package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-B3pDp3s5.js} +13 -13
  135. package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
  136. package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-Dmp7uMHO.js} +50 -48
  137. package/dist-lib/useClosable-BY7FgWKy.js +59 -0
  138. package/dist-lib/useForm-Byp1LopG.js +145 -0
  139. package/dist-lib/{version-control-panel-CLy2ZXI_.js → version-control-panel-WT1PobuV.js} +27 -26
  140. package/dist-lib/{version-management-C_v8w1E4.js → version-management-DC0k1DRg.js} +7 -6
  141. package/dist-lib/{welcome-ChEcA4Ej.js → welcome-VyWLrbth.js} +4 -3
  142. package/package.json +2 -3
  143. package/dist-lib/EvidenceFormList-CrE2FzHk.js +0 -90
  144. package/dist-lib/ImpactPage-CYiuqy0S.js +0 -68
  145. package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +0 -134
  146. package/dist-lib/OntologyNodesPage-5kH7RHwE.js +0 -2844
  147. package/dist-lib/PlusOutlined-BSTPGLOH.js +0 -21
  148. package/dist-lib/Skeleton-CxFsInYI.js +0 -671
  149. package/dist-lib/Table-Civ838nE.js +0 -20514
  150. package/dist-lib/TermDetailPage-BtkOpbPT.js +0 -263
  151. package/dist-lib/_commonjsHelpers-DaMA6jEr.js +0 -8
  152. package/dist-lib/callSuper-CwIeyYoc.js +0 -7
  153. package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +0 -1627
  154. package/dist-lib/context-T27uno74.js +0 -54
  155. package/dist-lib/d3-force-Cr_oBTiR.js +0 -647
  156. package/dist-lib/embed-Bs3Hmsyy.js +0 -51377
  157. package/dist-lib/index-0TvzCTD7.js +0 -2336
  158. package/dist-lib/index-4tbtbcAt.js +0 -550
  159. package/dist-lib/index-B1wh6i1C.js +0 -1308
  160. package/dist-lib/index-BVgdmf6r.js +0 -2487
  161. package/dist-lib/index-CSnvcFg-.js +0 -543
  162. package/dist-lib/index-D35Ry0PG.js +0 -1162
  163. package/dist-lib/index-DC57_dnh.js +0 -604
  164. package/dist-lib/index-DQ16Zb7x.js +0 -546
  165. package/dist-lib/index-DRcTwC17.js +0 -418
  166. package/dist-lib/index-Dd9pPAT3.js +0 -2192
  167. package/dist-lib/index-DxzorPvG.js +0 -13960
  168. package/dist-lib/index-If4xc1-H.js +0 -559
  169. package/dist-lib/index-R71k3nB_.js +0 -710
  170. package/dist-lib/index-mUlorJxp.js +0 -3279
  171. package/dist-lib/ontology-modeling-CvJIImxt.js +0 -3612
  172. package/dist-lib/ontology-scenarios-BRDkk3uA.js +0 -675
  173. package/dist-lib/pages-CticGC6S.js +0 -512
  174. package/dist-lib/use-g6-graph-SwJtPLce.js +0 -57552
@@ -0,0 +1,1169 @@
1
+ import * as i from "react";
2
+ import { useRef as Pe, useState as mn, useEffect as gn } from "react";
3
+ import { c as pn, b as vn } from "./index-bOY1cBol.js";
4
+ import { I as hn, _ as ae, i as q, h as I, f as bn, c as L, q as Ge, a as Sn, F as Nn } from "./SearchOutlined-puH6bCY6.js";
5
+ import { $ as He, a0 as ze, T as yn, Q as ce, aJ as $e, x as In, g as $n, m as En, a7 as wn, r as Ee, u as O, a6 as xn, d as Rn, c as Cn, f as On, a9 as Dn, ab as _n, ac as Mn, ad as Bn, aa as Vn, ae as Fe, z as ke, af as An, h as Fn } from "./index-CrMcNEAZ.js";
6
+ import { B as kn, t as jn, i as Wn, a as Tn, g as Ue, e as Ln, f as Pn, h as Gn, j as Hn, k as zn, l as Un, n as qn, o as Kn } from "./TextArea-DTpTS5HL.js";
7
+ var Xn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, name: "up", theme: "outlined" }, Yn = function(n, t) {
8
+ return /* @__PURE__ */ i.createElement(hn, ae({}, n, {
9
+ ref: t,
10
+ icon: Xn
11
+ }));
12
+ }, qe = /* @__PURE__ */ i.forwardRef(Yn);
13
+ process.env.NODE_ENV !== "production" && (qe.displayName = "UpOutlined");
14
+ function we() {
15
+ return typeof BigInt == "function";
16
+ }
17
+ function Ke(e) {
18
+ return !e && e !== 0 && !Number.isNaN(e) || !String(e).trim();
19
+ }
20
+ function K(e) {
21
+ var n = e.trim(), t = n.startsWith("-");
22
+ t && (n = n.slice(1)), n = n.replace(/(\.\d*[^0])0*$/, "$1").replace(/\.0*$/, "").replace(/^0+/, ""), n.startsWith(".") && (n = "0".concat(n));
23
+ var r = n || "0", a = r.split("."), o = a[0] || "0", p = a[1] || "0";
24
+ o === "0" && p === "0" && (t = !1);
25
+ var d = t ? "-" : "";
26
+ return {
27
+ negative: t,
28
+ negativeStr: d,
29
+ trimStr: r,
30
+ integerStr: o,
31
+ decimalStr: p,
32
+ fullStr: "".concat(d).concat(r)
33
+ };
34
+ }
35
+ function de(e) {
36
+ var n = String(e);
37
+ return !Number.isNaN(Number(n)) && n.includes("e");
38
+ }
39
+ function Xe(e) {
40
+ var n = e.toLowerCase().split("e"), t = q(n, 2), r = t[0], a = t[1], o = a === void 0 ? "0" : a, p = r.startsWith("-"), d = p ? r.slice(1) : r, g = d.split("."), u = q(g, 2), l = u[0], b = l === void 0 ? "0" : l, S = u[1], N = S === void 0 ? "" : S, R = "".concat(b).concat(N).replace(/^0+/, "") || "0";
41
+ return {
42
+ decimal: N,
43
+ digits: R,
44
+ exponent: Number(o),
45
+ integer: b,
46
+ negative: p
47
+ };
48
+ }
49
+ function Jn(e) {
50
+ var n = e.decimal, t = e.digits, r = e.exponent, a = e.integer, o = e.negative;
51
+ if (t === "0")
52
+ return "0";
53
+ var p = a.replace(/^0+/, "").length, d = (n.match(/^0*/) || [""])[0].length, g = p || -d, u = g + r, l = "";
54
+ return u <= 0 ? l = "0.".concat("0".repeat(-u)).concat(t) : u >= t.length ? l = "".concat(t).concat("0".repeat(u - t.length)) : l = "".concat(t.slice(0, u), ".").concat(t.slice(u)), "".concat(o ? "-" : "").concat(l);
55
+ }
56
+ function Ye(e) {
57
+ return e.exponent >= 0 ? Math.max(0, e.decimal.length - e.exponent) : Math.abs(e.exponent) + e.decimal.length;
58
+ }
59
+ function U(e) {
60
+ var n = String(e);
61
+ return de(e) ? Ye(Xe(n)) : n.includes(".") && xe(n) ? n.length - n.indexOf(".") - 1 : 0;
62
+ }
63
+ function fe(e) {
64
+ var n = String(e);
65
+ if (de(e)) {
66
+ if (e > Number.MAX_SAFE_INTEGER)
67
+ return String(we() ? BigInt(e).toString() : Number.MAX_SAFE_INTEGER);
68
+ if (e < Number.MIN_SAFE_INTEGER)
69
+ return String(we() ? BigInt(e).toString() : Number.MIN_SAFE_INTEGER);
70
+ var t = Xe(n), r = Ye(t);
71
+ n = r > 100 ? Jn(t) : e.toFixed(r);
72
+ }
73
+ return K(n).fullStr;
74
+ }
75
+ function xe(e) {
76
+ return typeof e == "number" ? !Number.isNaN(e) : e ? (
77
+ // Normal type: 11.28
78
+ /^\s*-?\d+(\.\d+)?\s*$/.test(e) || // Pre-number: 1.
79
+ /^\s*-?\d+\.\s*$/.test(e) || // Post-number: .1
80
+ /^\s*-?\.\d+\s*$/.test(e)
81
+ ) : !1;
82
+ }
83
+ var Qn = /* @__PURE__ */ (function() {
84
+ function e(n) {
85
+ if (ze(this, e), I(this, "origin", ""), I(this, "negative", void 0), I(this, "integer", void 0), I(this, "decimal", void 0), I(this, "decimalLen", void 0), I(this, "empty", void 0), I(this, "nan", void 0), Ke(n)) {
86
+ this.empty = !0;
87
+ return;
88
+ }
89
+ if (this.origin = String(n), n === "-" || Number.isNaN(n)) {
90
+ this.nan = !0;
91
+ return;
92
+ }
93
+ var t = n;
94
+ if (de(t) && (t = Number(t)), t = typeof t == "string" ? t : fe(t), xe(t)) {
95
+ var r = K(t);
96
+ this.negative = r.negative;
97
+ var a = r.trimStr.split(".");
98
+ this.integer = BigInt(a[0]);
99
+ var o = a[1] || "0";
100
+ this.decimal = BigInt(o), this.decimalLen = o.length;
101
+ } else
102
+ this.nan = !0;
103
+ }
104
+ return He(e, [{
105
+ key: "getMark",
106
+ value: function() {
107
+ return this.negative ? "-" : "";
108
+ }
109
+ }, {
110
+ key: "getIntegerStr",
111
+ value: function() {
112
+ return this.integer.toString();
113
+ }
114
+ /**
115
+ * @private get decimal string
116
+ */
117
+ }, {
118
+ key: "getDecimalStr",
119
+ value: function() {
120
+ return this.decimal.toString().padStart(this.decimalLen, "0");
121
+ }
122
+ /**
123
+ * @private Align BigIntDecimal with same decimal length. e.g. 12.3 + 5 = 1230000
124
+ * This is used for add function only.
125
+ */
126
+ }, {
127
+ key: "alignDecimal",
128
+ value: function(t) {
129
+ var r = "".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t, "0"));
130
+ return BigInt(r);
131
+ }
132
+ }, {
133
+ key: "negate",
134
+ value: function() {
135
+ var t = new e(this.toString());
136
+ return t.negative = !t.negative, t;
137
+ }
138
+ }, {
139
+ key: "cal",
140
+ value: function(t, r, a) {
141
+ var o = Math.max(this.getDecimalStr().length, t.getDecimalStr().length), p = this.alignDecimal(o), d = t.alignDecimal(o), g = r(p, d).toString(), u = a(o), l = K(g), b = l.negativeStr, S = l.trimStr, N = "".concat(b).concat(S.padStart(u + 1, "0"));
142
+ return new e("".concat(N.slice(0, -u), ".").concat(N.slice(-u)));
143
+ }
144
+ }, {
145
+ key: "add",
146
+ value: function(t) {
147
+ if (this.isInvalidate())
148
+ return new e(t);
149
+ var r = new e(t);
150
+ return r.isInvalidate() ? this : this.cal(r, function(a, o) {
151
+ return a + o;
152
+ }, function(a) {
153
+ return a;
154
+ });
155
+ }
156
+ }, {
157
+ key: "multi",
158
+ value: function(t) {
159
+ var r = new e(t);
160
+ return this.isInvalidate() || r.isInvalidate() ? new e(NaN) : this.cal(r, function(a, o) {
161
+ return a * o;
162
+ }, function(a) {
163
+ return a * 2;
164
+ });
165
+ }
166
+ }, {
167
+ key: "isEmpty",
168
+ value: function() {
169
+ return this.empty;
170
+ }
171
+ }, {
172
+ key: "isNaN",
173
+ value: function() {
174
+ return this.nan;
175
+ }
176
+ }, {
177
+ key: "isInvalidate",
178
+ value: function() {
179
+ return this.isEmpty() || this.isNaN();
180
+ }
181
+ }, {
182
+ key: "equals",
183
+ value: function(t) {
184
+ return this.toString() === (t == null ? void 0 : t.toString());
185
+ }
186
+ }, {
187
+ key: "lessEquals",
188
+ value: function(t) {
189
+ return this.add(t.negate().toString()).toNumber() <= 0;
190
+ }
191
+ }, {
192
+ key: "toNumber",
193
+ value: function() {
194
+ return this.isNaN() ? NaN : Number(this.toString());
195
+ }
196
+ }, {
197
+ key: "toString",
198
+ value: function() {
199
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
200
+ return t ? this.isInvalidate() ? "" : K("".concat(this.getMark()).concat(this.getIntegerStr(), ".").concat(this.getDecimalStr())).fullStr : this.origin;
201
+ }
202
+ }]), e;
203
+ })(), Zn = /* @__PURE__ */ (function() {
204
+ function e(n) {
205
+ if (ze(this, e), I(this, "origin", ""), I(this, "number", void 0), I(this, "empty", void 0), Ke(n)) {
206
+ this.empty = !0;
207
+ return;
208
+ }
209
+ this.origin = String(n), this.number = Number(n);
210
+ }
211
+ return He(e, [{
212
+ key: "negate",
213
+ value: function() {
214
+ return new e(-this.toNumber());
215
+ }
216
+ }, {
217
+ key: "add",
218
+ value: function(t) {
219
+ if (this.isInvalidate())
220
+ return new e(t);
221
+ var r = Number(t);
222
+ if (Number.isNaN(r))
223
+ return this;
224
+ var a = this.number + r;
225
+ if (a > Number.MAX_SAFE_INTEGER)
226
+ return new e(Number.MAX_SAFE_INTEGER);
227
+ if (a < Number.MIN_SAFE_INTEGER)
228
+ return new e(Number.MIN_SAFE_INTEGER);
229
+ var o = Math.max(U(this.number), U(r));
230
+ return new e(a.toFixed(o));
231
+ }
232
+ }, {
233
+ key: "multi",
234
+ value: function(t) {
235
+ var r = Number(t);
236
+ if (this.isInvalidate() || Number.isNaN(r))
237
+ return new e(NaN);
238
+ var a = this.number * r;
239
+ if (a > Number.MAX_SAFE_INTEGER)
240
+ return new e(Number.MAX_SAFE_INTEGER);
241
+ if (a < Number.MIN_SAFE_INTEGER)
242
+ return new e(Number.MIN_SAFE_INTEGER);
243
+ var o = Math.max(U(this.number), U(r));
244
+ return new e(a.toFixed(o));
245
+ }
246
+ }, {
247
+ key: "isEmpty",
248
+ value: function() {
249
+ return this.empty;
250
+ }
251
+ }, {
252
+ key: "isNaN",
253
+ value: function() {
254
+ return Number.isNaN(this.number);
255
+ }
256
+ }, {
257
+ key: "isInvalidate",
258
+ value: function() {
259
+ return this.isEmpty() || this.isNaN();
260
+ }
261
+ }, {
262
+ key: "equals",
263
+ value: function(t) {
264
+ return this.toNumber() === (t == null ? void 0 : t.toNumber());
265
+ }
266
+ }, {
267
+ key: "lessEquals",
268
+ value: function(t) {
269
+ return this.add(t.negate().toString()).toNumber() <= 0;
270
+ }
271
+ }, {
272
+ key: "toNumber",
273
+ value: function() {
274
+ return this.number;
275
+ }
276
+ }, {
277
+ key: "toString",
278
+ value: function() {
279
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
280
+ return t ? this.isInvalidate() ? "" : de(this.number) && U(this.number) > 100 ? String(this.number) : fe(this.number) : this.origin;
281
+ }
282
+ }]), e;
283
+ })();
284
+ function B(e) {
285
+ return we() ? new Qn(e) : new Zn(e);
286
+ }
287
+ function ue(e, n, t) {
288
+ var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
289
+ if (e === "")
290
+ return "";
291
+ var a = K(e), o = a.negativeStr, p = a.integerStr, d = a.decimalStr, g = "".concat(n).concat(d), u = "".concat(o).concat(p);
292
+ if (t >= 0) {
293
+ var l = Number(d[t]);
294
+ if (l >= 5 && !r) {
295
+ var b = B(e).add("".concat(o, "0.").concat("0".repeat(t)).concat(10 - l));
296
+ return ue(b.toString(), n, t, r);
297
+ }
298
+ return t === 0 ? u : "".concat(u).concat(n).concat(d.padEnd(t, "0").slice(0, t));
299
+ }
300
+ return g === ".0" ? u : "".concat(u).concat(g);
301
+ }
302
+ function et(e, n) {
303
+ return typeof Proxy < "u" && e ? new Proxy(e, {
304
+ get: function(r, a) {
305
+ if (n[a])
306
+ return n[a];
307
+ var o = r[a];
308
+ return typeof o == "function" ? o.bind(r) : o;
309
+ }
310
+ }) : e;
311
+ }
312
+ function nt(e, n) {
313
+ var t = Pe(null);
314
+ function r() {
315
+ try {
316
+ var o = e.selectionStart, p = e.selectionEnd, d = e.value, g = d.substring(0, o), u = d.substring(p);
317
+ t.current = {
318
+ start: o,
319
+ end: p,
320
+ value: d,
321
+ beforeTxt: g,
322
+ afterTxt: u
323
+ };
324
+ } catch {
325
+ }
326
+ }
327
+ function a() {
328
+ if (e && t.current && n)
329
+ try {
330
+ var o = e.value, p = t.current, d = p.beforeTxt, g = p.afterTxt, u = p.start, l = o.length;
331
+ if (o.startsWith(d))
332
+ l = d.length;
333
+ else if (o.endsWith(g))
334
+ l = o.length - t.current.afterTxt.length;
335
+ else {
336
+ var b = d[u - 1], S = o.indexOf(b, u - 1);
337
+ S !== -1 && (l = S + 1);
338
+ }
339
+ e.setSelectionRange(l, l);
340
+ } catch (N) {
341
+ bn(!1, "Something warning of cursor restore. Please fire issue about this: ".concat(N.message));
342
+ }
343
+ }
344
+ return [r, a];
345
+ }
346
+ var tt = function() {
347
+ var n = mn(!1), t = q(n, 2), r = t[0], a = t[1];
348
+ return yn(function() {
349
+ a(pn());
350
+ }, []), r;
351
+ }, rt = 200, at = 600;
352
+ function it(e) {
353
+ var n = e.prefixCls, t = e.upNode, r = e.downNode, a = e.upDisabled, o = e.downDisabled, p = e.onStep, d = i.useRef(), g = i.useRef([]), u = i.useRef();
354
+ u.current = p;
355
+ var l = function() {
356
+ clearTimeout(d.current);
357
+ }, b = function(C, m) {
358
+ C.preventDefault(), l(), u.current(m);
359
+ function D() {
360
+ u.current(m), d.current = setTimeout(D, rt);
361
+ }
362
+ d.current = setTimeout(D, at);
363
+ };
364
+ i.useEffect(function() {
365
+ return function() {
366
+ l(), g.current.forEach(function(w) {
367
+ return ce.cancel(w);
368
+ });
369
+ };
370
+ }, []);
371
+ var S = tt();
372
+ if (S)
373
+ return null;
374
+ var N = "".concat(n, "-handler"), R = L(N, "".concat(N, "-up"), I({}, "".concat(N, "-up-disabled"), a)), $ = L(N, "".concat(N, "-down"), I({}, "".concat(N, "-down-disabled"), o)), E = function() {
375
+ return g.current.push(ce(l));
376
+ }, y = {
377
+ unselectable: "on",
378
+ role: "button",
379
+ onMouseUp: E,
380
+ onMouseLeave: E
381
+ };
382
+ return /* @__PURE__ */ i.createElement("div", {
383
+ className: "".concat(N, "-wrap")
384
+ }, /* @__PURE__ */ i.createElement("span", ae({}, y, {
385
+ onMouseDown: function(C) {
386
+ b(C, !0);
387
+ },
388
+ "aria-label": "Increase Value",
389
+ "aria-disabled": a,
390
+ className: R
391
+ }), t || /* @__PURE__ */ i.createElement("span", {
392
+ unselectable: "on",
393
+ className: "".concat(n, "-handler-up-inner")
394
+ })), /* @__PURE__ */ i.createElement("span", ae({}, y, {
395
+ onMouseDown: function(C) {
396
+ b(C, !1);
397
+ },
398
+ "aria-label": "Decrease Value",
399
+ "aria-disabled": o,
400
+ className: $
401
+ }), r || /* @__PURE__ */ i.createElement("span", {
402
+ unselectable: "on",
403
+ className: "".concat(n, "-handler-down-inner")
404
+ })));
405
+ }
406
+ function je(e) {
407
+ var n = typeof e == "number" ? fe(e) : K(e).fullStr, t = n.includes(".");
408
+ return t ? K(n.replace(/(\d)\.(\d)/g, "$1$2.")).fullStr : e + "0";
409
+ }
410
+ const ot = (function() {
411
+ var e = Pe(0), n = function() {
412
+ ce.cancel(e.current);
413
+ };
414
+ return gn(function() {
415
+ return n;
416
+ }, []), function(t) {
417
+ n(), e.current = ce(function() {
418
+ t();
419
+ });
420
+ };
421
+ });
422
+ var st = ["prefixCls", "className", "style", "min", "max", "step", "defaultValue", "value", "disabled", "readOnly", "upHandler", "downHandler", "keyboard", "changeOnWheel", "controls", "classNames", "stringMode", "parser", "formatter", "precision", "decimalSeparator", "onChange", "onInput", "onPressEnter", "onStep", "changeOnBlur", "domRef"], lt = ["disabled", "style", "prefixCls", "value", "prefix", "suffix", "addonBefore", "addonAfter", "className", "classNames"], We = function(n, t) {
423
+ return n || t.isEmpty() ? t.toString() : t.toNumber();
424
+ }, Te = function(n) {
425
+ var t = B(n);
426
+ return t.isInvalidate() ? null : t;
427
+ }, ut = /* @__PURE__ */ i.forwardRef(function(e, n) {
428
+ var t = e.prefixCls, r = e.className, a = e.style, o = e.min, p = e.max, d = e.step, g = d === void 0 ? 1 : d, u = e.defaultValue, l = e.value, b = e.disabled, S = e.readOnly, N = e.upHandler, R = e.downHandler, $ = e.keyboard, E = e.changeOnWheel, y = E === void 0 ? !1 : E, w = e.controls, C = w === void 0 ? !0 : w;
429
+ e.classNames;
430
+ var m = e.stringMode, D = e.parser, V = e.formatter, x = e.precision, _ = e.decimalSeparator, H = e.onChange, A = e.onInput, k = e.onPressEnter, j = e.onStep, W = e.changeOnBlur, Z = W === void 0 ? !0 : W, me = e.domRef, ge = Ge(e, st), ie = "".concat(t, "-input"), P = i.useRef(null), G = i.useState(!1), oe = q(G, 2), X = oe[0], ee = oe[1], M = i.useRef(!1), z = i.useRef(!1), Y = i.useRef(!1), pe = i.useState(function() {
431
+ return B(l ?? u);
432
+ }), se = q(pe, 2), h = se[0], T = se[1];
433
+ function ve(c) {
434
+ l === void 0 && T(c);
435
+ }
436
+ var he = i.useCallback(function(c, s) {
437
+ if (!s)
438
+ return x >= 0 ? x : Math.max(U(c), U(g));
439
+ }, [x, g]), be = i.useCallback(function(c) {
440
+ var s = String(c);
441
+ if (D)
442
+ return D(s);
443
+ var v = s;
444
+ return _ && (v = v.replace(_, ".")), v.replace(/[^\w.-]+/g, "");
445
+ }, [D, _]), Se = i.useRef(""), Re = i.useCallback(function(c, s) {
446
+ if (V)
447
+ return V(c, {
448
+ userTyping: s,
449
+ input: String(Se.current)
450
+ });
451
+ var v = typeof c == "number" ? fe(c) : c;
452
+ if (!s) {
453
+ var f = he(v, s);
454
+ if (xe(v) && (_ || f >= 0)) {
455
+ var F = _ || ".";
456
+ v = ue(v, F, f);
457
+ }
458
+ }
459
+ return v;
460
+ }, [V, he, _]), en = i.useState(function() {
461
+ var c = u ?? l;
462
+ return h.isInvalidate() && ["string", "number"].includes(Sn(c)) ? Number.isNaN(c) ? "" : c : Re(h.toString(), !1);
463
+ }), Ce = q(en, 2), ne = Ce[0], Oe = Ce[1];
464
+ Se.current = ne;
465
+ function te(c, s) {
466
+ Oe(Re(
467
+ // Invalidate number is sometime passed by external control, we should let it go
468
+ // Otherwise is controlled by internal interactive logic which check by userTyping
469
+ // You can ref 'show limited value when input is not focused' test for more info.
470
+ c.isInvalidate() ? c.toString(!1) : c.toString(!s),
471
+ s
472
+ ));
473
+ }
474
+ var J = i.useMemo(function() {
475
+ return Te(p);
476
+ }, [p, x]), Q = i.useMemo(function() {
477
+ return Te(o);
478
+ }, [o, x]), De = i.useMemo(function() {
479
+ return !J || !h || h.isInvalidate() ? !1 : J.lessEquals(h);
480
+ }, [J, h]), _e = i.useMemo(function() {
481
+ return !Q || !h || h.isInvalidate() ? !1 : h.lessEquals(Q);
482
+ }, [Q, h]), nn = nt(P.current, X), Me = q(nn, 2), tn = Me[0], rn = Me[1], Be = function(s) {
483
+ return J && !s.lessEquals(J) ? J : Q && !Q.lessEquals(s) ? Q : null;
484
+ }, Ne = function(s) {
485
+ return !Be(s);
486
+ }, le = function(s, v) {
487
+ var f = s, F = Ne(f) || f.isEmpty();
488
+ if (!f.isEmpty() && !v && (f = Be(f) || f, F = !0), !S && !b && F) {
489
+ var re = f.toString(), Ie = he(re, v);
490
+ return Ie >= 0 && (f = B(ue(re, ".", Ie)), Ne(f) || (f = B(ue(re, ".", Ie, !0)))), f.equals(h) || (ve(f), H == null || H(f.isEmpty() ? null : We(m, f)), l === void 0 && te(f, v)), f;
491
+ }
492
+ return h;
493
+ }, an = ot(), Ve = function c(s) {
494
+ if (tn(), Se.current = s, Oe(s), !z.current) {
495
+ var v = be(s), f = B(v);
496
+ f.isNaN() || le(f, !0);
497
+ }
498
+ A == null || A(s), an(function() {
499
+ var F = s;
500
+ D || (F = s.replace(/。/g, ".")), F !== s && c(F);
501
+ });
502
+ }, on = function() {
503
+ z.current = !0;
504
+ }, sn = function() {
505
+ z.current = !1, Ve(P.current.value);
506
+ }, ln = function(s) {
507
+ Ve(s.target.value);
508
+ }, ye = function(s) {
509
+ var v;
510
+ if (!(s && De || !s && _e)) {
511
+ M.current = !1;
512
+ var f = B(Y.current ? je(g) : g);
513
+ s || (f = f.negate());
514
+ var F = (h || B(0)).add(f.toString()), re = le(F, !1);
515
+ j == null || j(We(m, re), {
516
+ offset: Y.current ? je(g) : g,
517
+ type: s ? "up" : "down"
518
+ }), (v = P.current) === null || v === void 0 || v.focus();
519
+ }
520
+ }, Ae = function(s) {
521
+ var v = B(be(ne)), f;
522
+ v.isNaN() ? f = le(h, s) : f = le(v, s), l !== void 0 ? te(h, !1) : f.isNaN() || te(f, !1);
523
+ }, un = function() {
524
+ M.current = !0;
525
+ }, cn = function(s) {
526
+ var v = s.key, f = s.shiftKey;
527
+ M.current = !0, Y.current = f, v === "Enter" && (z.current || (M.current = !1), Ae(!1), k == null || k(s)), $ !== !1 && !z.current && ["Up", "ArrowUp", "Down", "ArrowDown"].includes(v) && (ye(v === "Up" || v === "ArrowUp"), s.preventDefault());
528
+ }, dn = function() {
529
+ M.current = !1, Y.current = !1;
530
+ };
531
+ i.useEffect(function() {
532
+ if (y && X) {
533
+ var c = function(f) {
534
+ ye(f.deltaY < 0), f.preventDefault();
535
+ }, s = P.current;
536
+ if (s)
537
+ return s.addEventListener("wheel", c, {
538
+ passive: !1
539
+ }), function() {
540
+ return s.removeEventListener("wheel", c);
541
+ };
542
+ }
543
+ });
544
+ var fn = function() {
545
+ Z && Ae(!1), ee(!1), M.current = !1;
546
+ };
547
+ return $e(function() {
548
+ h.isInvalidate() || te(h, !1);
549
+ }, [x, V]), $e(function() {
550
+ var c = B(l);
551
+ T(c);
552
+ var s = B(be(ne));
553
+ (!c.equals(s) || !M.current || V) && te(c, M.current);
554
+ }, [l]), $e(function() {
555
+ V && rn();
556
+ }, [ne]), /* @__PURE__ */ i.createElement("div", {
557
+ ref: me,
558
+ className: L(t, r, I(I(I(I(I({}, "".concat(t, "-focused"), X), "".concat(t, "-disabled"), b), "".concat(t, "-readonly"), S), "".concat(t, "-not-a-number"), h.isNaN()), "".concat(t, "-out-of-range"), !h.isInvalidate() && !Ne(h))),
559
+ style: a,
560
+ onFocus: function() {
561
+ ee(!0);
562
+ },
563
+ onBlur: fn,
564
+ onKeyDown: cn,
565
+ onKeyUp: dn,
566
+ onCompositionStart: on,
567
+ onCompositionEnd: sn,
568
+ onBeforeInput: un
569
+ }, C && /* @__PURE__ */ i.createElement(it, {
570
+ prefixCls: t,
571
+ upNode: N,
572
+ downNode: R,
573
+ upDisabled: De,
574
+ downDisabled: _e,
575
+ onStep: ye
576
+ }), /* @__PURE__ */ i.createElement("div", {
577
+ className: "".concat(ie, "-wrap")
578
+ }, /* @__PURE__ */ i.createElement("input", ae({
579
+ autoComplete: "off",
580
+ role: "spinbutton",
581
+ "aria-valuemin": o,
582
+ "aria-valuemax": p,
583
+ "aria-valuenow": h.isInvalidate() ? null : h.toString(),
584
+ step: g
585
+ }, ge, {
586
+ ref: In(P, n),
587
+ className: ie,
588
+ value: ne,
589
+ onChange: ln,
590
+ disabled: b,
591
+ readOnly: S
592
+ }))));
593
+ }), Je = /* @__PURE__ */ i.forwardRef(function(e, n) {
594
+ var t = e.disabled, r = e.style, a = e.prefixCls, o = a === void 0 ? "rc-input-number" : a, p = e.value, d = e.prefix, g = e.suffix, u = e.addonBefore, l = e.addonAfter, b = e.className, S = e.classNames, N = Ge(e, lt), R = i.useRef(null), $ = i.useRef(null), E = i.useRef(null), y = function(C) {
595
+ E.current && jn(E.current, C);
596
+ };
597
+ return i.useImperativeHandle(n, function() {
598
+ return et(E.current, {
599
+ focus: y,
600
+ nativeElement: R.current.nativeElement || $.current
601
+ });
602
+ }), /* @__PURE__ */ i.createElement(kn, {
603
+ className: b,
604
+ triggerFocus: y,
605
+ prefixCls: o,
606
+ value: p,
607
+ disabled: t,
608
+ style: r,
609
+ prefix: d,
610
+ suffix: g,
611
+ addonAfter: l,
612
+ addonBefore: u,
613
+ classNames: S,
614
+ components: {
615
+ affixWrapper: "div",
616
+ groupWrapper: "div",
617
+ wrapper: "div",
618
+ groupAddon: "div"
619
+ },
620
+ ref: R
621
+ }, /* @__PURE__ */ i.createElement(ut, ae({
622
+ prefixCls: o,
623
+ disabled: t,
624
+ ref: E,
625
+ domRef: $,
626
+ className: S == null ? void 0 : S.input
627
+ }, N)));
628
+ });
629
+ process.env.NODE_ENV !== "production" && (Je.displayName = "InputNumber");
630
+ const ct = (e) => {
631
+ var n;
632
+ const t = (n = e.handleVisible) !== null && n !== void 0 ? n : "auto", r = e.controlHeightSM - e.lineWidth * 2;
633
+ return Object.assign(Object.assign({}, Wn(e)), {
634
+ controlWidth: 90,
635
+ handleWidth: r,
636
+ handleFontSize: e.fontSize / 2,
637
+ handleVisible: t,
638
+ handleActiveBg: e.colorFillAlter,
639
+ handleBg: e.colorBgContainer,
640
+ filledHandleBg: new Nn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),
641
+ handleHoverColor: e.colorPrimary,
642
+ handleBorderColor: e.colorBorder,
643
+ handleOpacity: t === !0 ? 1 : 0,
644
+ handleVisibleWidth: t === !0 ? r : 0
645
+ });
646
+ }, Le = ({
647
+ componentCls: e,
648
+ borderRadiusSM: n,
649
+ borderRadiusLG: t
650
+ }, r) => {
651
+ const a = r === "lg" ? t : n;
652
+ return {
653
+ [`&-${r}`]: {
654
+ [`${e}-handler-wrap`]: {
655
+ borderStartEndRadius: a,
656
+ borderEndEndRadius: a
657
+ },
658
+ [`${e}-handler-up`]: {
659
+ borderStartEndRadius: a
660
+ },
661
+ [`${e}-handler-down`]: {
662
+ borderEndEndRadius: a
663
+ }
664
+ }
665
+ };
666
+ }, dt = (e) => {
667
+ const {
668
+ componentCls: n,
669
+ lineWidth: t,
670
+ lineType: r,
671
+ borderRadius: a,
672
+ inputFontSizeSM: o,
673
+ inputFontSizeLG: p,
674
+ controlHeightLG: d,
675
+ controlHeightSM: g,
676
+ colorError: u,
677
+ paddingInlineSM: l,
678
+ paddingBlockSM: b,
679
+ paddingBlockLG: S,
680
+ paddingInlineLG: N,
681
+ colorIcon: R,
682
+ motionDurationMid: $,
683
+ handleHoverColor: E,
684
+ handleOpacity: y,
685
+ paddingInline: w,
686
+ paddingBlock: C,
687
+ handleBg: m,
688
+ handleActiveBg: D,
689
+ colorTextDisabled: V,
690
+ borderRadiusSM: x,
691
+ borderRadiusLG: _,
692
+ controlWidth: H,
693
+ handleBorderColor: A,
694
+ filledHandleBg: k,
695
+ lineHeightLG: j,
696
+ calc: W
697
+ } = e;
698
+ return [
699
+ {
700
+ [n]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Ee(e)), Ue(e)), {
701
+ display: "inline-block",
702
+ width: H,
703
+ margin: 0,
704
+ padding: 0,
705
+ borderRadius: a
706
+ }), Ln(e, {
707
+ [`${n}-handler-wrap`]: {
708
+ background: m,
709
+ [`${n}-handler-down`]: {
710
+ borderBlockStart: `${O(t)} ${r} ${A}`
711
+ }
712
+ }
713
+ })), Pn(e, {
714
+ [`${n}-handler-wrap`]: {
715
+ background: k,
716
+ [`${n}-handler-down`]: {
717
+ borderBlockStart: `${O(t)} ${r} ${A}`
718
+ }
719
+ },
720
+ "&:focus-within": {
721
+ [`${n}-handler-wrap`]: {
722
+ background: m
723
+ }
724
+ }
725
+ })), Gn(e, {
726
+ [`${n}-handler-wrap`]: {
727
+ background: m,
728
+ [`${n}-handler-down`]: {
729
+ borderBlockStart: `${O(t)} ${r} ${A}`
730
+ }
731
+ }
732
+ })), Hn(e)), {
733
+ "&-rtl": {
734
+ direction: "rtl",
735
+ [`${n}-input`]: {
736
+ direction: "rtl"
737
+ }
738
+ },
739
+ "&-lg": {
740
+ padding: 0,
741
+ fontSize: p,
742
+ lineHeight: j,
743
+ borderRadius: _,
744
+ [`input${n}-input`]: {
745
+ height: W(d).sub(W(t).mul(2)).equal(),
746
+ padding: `${O(S)} ${O(N)}`
747
+ }
748
+ },
749
+ "&-sm": {
750
+ padding: 0,
751
+ fontSize: o,
752
+ borderRadius: x,
753
+ [`input${n}-input`]: {
754
+ height: W(g).sub(W(t).mul(2)).equal(),
755
+ padding: `${O(b)} ${O(l)}`
756
+ }
757
+ },
758
+ // ===================== Out Of Range =====================
759
+ "&-out-of-range": {
760
+ [`${n}-input-wrap`]: {
761
+ input: {
762
+ color: u
763
+ }
764
+ }
765
+ },
766
+ // Style for input-group: input with label, with button or dropdown...
767
+ "&-group": Object.assign(Object.assign(Object.assign({}, Ee(e)), Un(e)), {
768
+ "&-wrapper": Object.assign(Object.assign(Object.assign({
769
+ display: "inline-block",
770
+ textAlign: "start",
771
+ verticalAlign: "top",
772
+ [`${n}-affix-wrapper`]: {
773
+ width: "100%"
774
+ },
775
+ // Size
776
+ "&-lg": {
777
+ [`${n}-group-addon`]: {
778
+ borderRadius: _,
779
+ fontSize: e.fontSizeLG
780
+ }
781
+ },
782
+ "&-sm": {
783
+ [`${n}-group-addon`]: {
784
+ borderRadius: x
785
+ }
786
+ }
787
+ }, qn(e)), Kn(e)), {
788
+ // Fix the issue of using icons in Space Compact mode
789
+ // https://github.com/ant-design/ant-design/issues/45764
790
+ [`&:not(${n}-compact-first-item):not(${n}-compact-last-item)${n}-compact-item`]: {
791
+ [`${n}, ${n}-group-addon`]: {
792
+ borderRadius: 0
793
+ }
794
+ },
795
+ [`&:not(${n}-compact-last-item)${n}-compact-first-item`]: {
796
+ [`${n}, ${n}-group-addon`]: {
797
+ borderStartEndRadius: 0,
798
+ borderEndEndRadius: 0
799
+ }
800
+ },
801
+ [`&:not(${n}-compact-first-item)${n}-compact-last-item`]: {
802
+ [`${n}, ${n}-group-addon`]: {
803
+ borderStartStartRadius: 0,
804
+ borderEndStartRadius: 0
805
+ }
806
+ }
807
+ })
808
+ }),
809
+ [`&-disabled ${n}-input`]: {
810
+ cursor: "not-allowed"
811
+ },
812
+ [n]: {
813
+ "&-input": Object.assign(Object.assign(Object.assign(Object.assign({}, Ee(e)), {
814
+ width: "100%",
815
+ padding: `${O(C)} ${O(w)}`,
816
+ textAlign: "start",
817
+ backgroundColor: "transparent",
818
+ border: 0,
819
+ borderRadius: a,
820
+ outline: 0,
821
+ transition: `all ${$} linear`,
822
+ appearance: "textfield",
823
+ fontSize: "inherit"
824
+ }), zn(e.colorTextPlaceholder)), {
825
+ '&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button': {
826
+ margin: 0,
827
+ appearance: "none"
828
+ }
829
+ })
830
+ },
831
+ [`&:hover ${n}-handler-wrap, &-focused ${n}-handler-wrap`]: {
832
+ width: e.handleWidth,
833
+ opacity: 1
834
+ }
835
+ })
836
+ },
837
+ // Handler
838
+ {
839
+ [n]: Object.assign(Object.assign(Object.assign({
840
+ [`${n}-handler-wrap`]: {
841
+ position: "absolute",
842
+ insetBlockStart: 0,
843
+ insetInlineEnd: 0,
844
+ width: e.handleVisibleWidth,
845
+ opacity: y,
846
+ height: "100%",
847
+ borderStartStartRadius: 0,
848
+ borderStartEndRadius: a,
849
+ borderEndEndRadius: a,
850
+ borderEndStartRadius: 0,
851
+ display: "flex",
852
+ flexDirection: "column",
853
+ alignItems: "stretch",
854
+ transition: `all ${$}`,
855
+ overflow: "hidden",
856
+ // Fix input number inside Menu makes icon too large
857
+ // We arise the selector priority by nest selector here
858
+ // https://github.com/ant-design/ant-design/issues/14367
859
+ [`${n}-handler`]: {
860
+ display: "flex",
861
+ alignItems: "center",
862
+ justifyContent: "center",
863
+ flex: "auto",
864
+ height: "40%",
865
+ [`
866
+ ${n}-handler-up-inner,
867
+ ${n}-handler-down-inner
868
+ `]: {
869
+ marginInlineEnd: 0,
870
+ fontSize: e.handleFontSize
871
+ }
872
+ }
873
+ },
874
+ [`${n}-handler`]: {
875
+ height: "50%",
876
+ overflow: "hidden",
877
+ color: R,
878
+ fontWeight: "bold",
879
+ lineHeight: 0,
880
+ textAlign: "center",
881
+ cursor: "pointer",
882
+ borderInlineStart: `${O(t)} ${r} ${A}`,
883
+ transition: `all ${$} linear`,
884
+ "&:active": {
885
+ background: D
886
+ },
887
+ // Hover
888
+ "&:hover": {
889
+ height: "60%",
890
+ [`
891
+ ${n}-handler-up-inner,
892
+ ${n}-handler-down-inner
893
+ `]: {
894
+ color: E
895
+ }
896
+ },
897
+ "&-up-inner, &-down-inner": Object.assign(Object.assign({}, xn()), {
898
+ color: R,
899
+ transition: `all ${$} linear`,
900
+ userSelect: "none"
901
+ })
902
+ },
903
+ [`${n}-handler-up`]: {
904
+ borderStartEndRadius: a
905
+ },
906
+ [`${n}-handler-down`]: {
907
+ borderEndEndRadius: a
908
+ }
909
+ }, Le(e, "lg")), Le(e, "sm")), {
910
+ // Disabled
911
+ "&-disabled, &-readonly": {
912
+ [`${n}-handler-wrap`]: {
913
+ display: "none"
914
+ },
915
+ [`${n}-input`]: {
916
+ color: "inherit"
917
+ }
918
+ },
919
+ [`
920
+ ${n}-handler-up-disabled,
921
+ ${n}-handler-down-disabled
922
+ `]: {
923
+ cursor: "not-allowed"
924
+ },
925
+ [`
926
+ ${n}-handler-up-disabled:hover &-handler-up-inner,
927
+ ${n}-handler-down-disabled:hover &-handler-down-inner
928
+ `]: {
929
+ color: V
930
+ }
931
+ })
932
+ }
933
+ ];
934
+ }, ft = (e) => {
935
+ const {
936
+ componentCls: n,
937
+ paddingBlock: t,
938
+ paddingInline: r,
939
+ inputAffixPadding: a,
940
+ controlWidth: o,
941
+ borderRadiusLG: p,
942
+ borderRadiusSM: d,
943
+ paddingInlineLG: g,
944
+ paddingInlineSM: u,
945
+ paddingBlockLG: l,
946
+ paddingBlockSM: b,
947
+ motionDurationMid: S
948
+ } = e;
949
+ return {
950
+ [`${n}-affix-wrapper`]: Object.assign(Object.assign({
951
+ [`input${n}-input`]: {
952
+ padding: `${O(t)} 0`
953
+ }
954
+ }, Ue(e)), {
955
+ // or number handler will cover form status
956
+ position: "relative",
957
+ display: "inline-flex",
958
+ alignItems: "center",
959
+ width: o,
960
+ padding: 0,
961
+ paddingInlineStart: r,
962
+ "&-lg": {
963
+ borderRadius: p,
964
+ paddingInlineStart: g,
965
+ [`input${n}-input`]: {
966
+ padding: `${O(l)} 0`
967
+ }
968
+ },
969
+ "&-sm": {
970
+ borderRadius: d,
971
+ paddingInlineStart: u,
972
+ [`input${n}-input`]: {
973
+ padding: `${O(b)} 0`
974
+ }
975
+ },
976
+ [`&:not(${n}-disabled):hover`]: {
977
+ zIndex: 1
978
+ },
979
+ "&-focused, &:focus": {
980
+ zIndex: 1
981
+ },
982
+ [`&-disabled > ${n}-disabled`]: {
983
+ background: "transparent"
984
+ },
985
+ [`> div${n}`]: {
986
+ width: "100%",
987
+ border: "none",
988
+ outline: "none",
989
+ [`&${n}-focused`]: {
990
+ boxShadow: "none !important"
991
+ }
992
+ },
993
+ "&::before": {
994
+ display: "inline-block",
995
+ width: 0,
996
+ visibility: "hidden",
997
+ content: '"\\a0"'
998
+ },
999
+ [`${n}-handler-wrap`]: {
1000
+ zIndex: 2
1001
+ },
1002
+ [n]: {
1003
+ position: "static",
1004
+ color: "inherit",
1005
+ "&-prefix, &-suffix": {
1006
+ display: "flex",
1007
+ flex: "none",
1008
+ alignItems: "center",
1009
+ pointerEvents: "none"
1010
+ },
1011
+ "&-prefix": {
1012
+ marginInlineEnd: a
1013
+ },
1014
+ "&-suffix": {
1015
+ insetBlockStart: 0,
1016
+ insetInlineEnd: 0,
1017
+ height: "100%",
1018
+ marginInlineEnd: r,
1019
+ marginInlineStart: a,
1020
+ transition: `margin ${S}`
1021
+ }
1022
+ },
1023
+ [`&:hover ${n}-handler-wrap, &-focused ${n}-handler-wrap`]: {
1024
+ width: e.handleWidth,
1025
+ opacity: 1
1026
+ },
1027
+ [`&:not(${n}-affix-wrapper-without-controls):hover ${n}-suffix`]: {
1028
+ marginInlineEnd: e.calc(e.handleWidth).add(r).equal()
1029
+ }
1030
+ }),
1031
+ // 覆盖 affix-wrapper borderRadius!
1032
+ [`${n}-underlined`]: {
1033
+ borderRadius: 0
1034
+ }
1035
+ };
1036
+ }, mt = $n("InputNumber", (e) => {
1037
+ const n = En(e, Tn(e));
1038
+ return [
1039
+ dt(n),
1040
+ ft(n),
1041
+ // =====================================================
1042
+ // == Space Compact ==
1043
+ // =====================================================
1044
+ wn(n)
1045
+ ];
1046
+ }, ct, {
1047
+ unitless: {
1048
+ handleOpacity: !0
1049
+ },
1050
+ resetFont: !1
1051
+ });
1052
+ var gt = function(e, n) {
1053
+ var t = {};
1054
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]);
1055
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
1056
+ n.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (t[r[a]] = e[r[a]]);
1057
+ return t;
1058
+ };
1059
+ const Qe = /* @__PURE__ */ i.forwardRef((e, n) => {
1060
+ if (process.env.NODE_ENV !== "production") {
1061
+ const h = Rn("InputNumber");
1062
+ [["bordered", "variant"], ["addonAfter", "Space.Compact"], ["addonBefore", "Space.Compact"]].forEach(([T, ve]) => {
1063
+ h.deprecated(!(T in e), T, ve);
1064
+ }), h(!(e.type === "number" && e.changeOnWheel), "usage", "When `type=number` is used together with `changeOnWheel`, changeOnWheel may not work properly. Please delete `type=number` if it is not necessary.");
1065
+ }
1066
+ const {
1067
+ getPrefixCls: t,
1068
+ direction: r
1069
+ } = i.useContext(Cn), a = i.useRef(null);
1070
+ i.useImperativeHandle(n, () => a.current);
1071
+ const {
1072
+ className: o,
1073
+ rootClassName: p,
1074
+ size: d,
1075
+ disabled: g,
1076
+ prefixCls: u,
1077
+ addonBefore: l,
1078
+ addonAfter: b,
1079
+ prefix: S,
1080
+ suffix: N,
1081
+ bordered: R,
1082
+ readOnly: $,
1083
+ status: E,
1084
+ controls: y,
1085
+ variant: w
1086
+ } = e, C = gt(e, ["className", "rootClassName", "size", "disabled", "prefixCls", "addonBefore", "addonAfter", "prefix", "suffix", "bordered", "readOnly", "status", "controls", "variant"]), m = t("input-number", u), D = On(m), [V, x, _] = mt(m, D), {
1087
+ compactSize: H,
1088
+ compactItemClassnames: A
1089
+ } = Dn(m, r);
1090
+ let k = /* @__PURE__ */ i.createElement(qe, {
1091
+ className: `${m}-handler-up-inner`
1092
+ }), j = /* @__PURE__ */ i.createElement(vn, {
1093
+ className: `${m}-handler-down-inner`
1094
+ });
1095
+ const W = typeof y == "boolean" ? y : void 0;
1096
+ typeof y == "object" && (k = typeof y.upIcon > "u" ? k : /* @__PURE__ */ i.createElement("span", {
1097
+ className: `${m}-handler-up-inner`
1098
+ }, y.upIcon), j = typeof y.downIcon > "u" ? j : /* @__PURE__ */ i.createElement("span", {
1099
+ className: `${m}-handler-down-inner`
1100
+ }, y.downIcon));
1101
+ const {
1102
+ hasFeedback: Z,
1103
+ status: me,
1104
+ isFormItemInput: ge,
1105
+ feedbackIcon: ie
1106
+ } = i.useContext(_n), P = An(me, E), G = Mn((h) => {
1107
+ var T;
1108
+ return (T = d ?? H) !== null && T !== void 0 ? T : h;
1109
+ }), oe = i.useContext(Bn), X = g ?? oe, [ee, M] = Vn("inputNumber", w, R), z = Z && /* @__PURE__ */ i.createElement(i.Fragment, null, ie), Y = L({
1110
+ [`${m}-lg`]: G === "large",
1111
+ [`${m}-sm`]: G === "small",
1112
+ [`${m}-rtl`]: r === "rtl",
1113
+ [`${m}-in-form-item`]: ge
1114
+ }, x), pe = `${m}-group`, se = /* @__PURE__ */ i.createElement(Je, Object.assign({
1115
+ ref: a,
1116
+ disabled: X,
1117
+ className: L(_, D, o, p, A),
1118
+ upHandler: k,
1119
+ downHandler: j,
1120
+ prefixCls: m,
1121
+ readOnly: $,
1122
+ controls: W,
1123
+ prefix: S,
1124
+ suffix: z || N,
1125
+ addonBefore: l && /* @__PURE__ */ i.createElement(ke, {
1126
+ form: !0,
1127
+ space: !0
1128
+ }, l),
1129
+ addonAfter: b && /* @__PURE__ */ i.createElement(ke, {
1130
+ form: !0,
1131
+ space: !0
1132
+ }, b),
1133
+ classNames: {
1134
+ input: Y,
1135
+ variant: L({
1136
+ [`${m}-${ee}`]: M
1137
+ }, Fe(m, P, Z)),
1138
+ affixWrapper: L({
1139
+ [`${m}-affix-wrapper-sm`]: G === "small",
1140
+ [`${m}-affix-wrapper-lg`]: G === "large",
1141
+ [`${m}-affix-wrapper-rtl`]: r === "rtl",
1142
+ [`${m}-affix-wrapper-without-controls`]: y === !1 || X || $
1143
+ }, x),
1144
+ wrapper: L({
1145
+ [`${pe}-rtl`]: r === "rtl"
1146
+ }, x),
1147
+ groupWrapper: L({
1148
+ [`${m}-group-wrapper-sm`]: G === "small",
1149
+ [`${m}-group-wrapper-lg`]: G === "large",
1150
+ [`${m}-group-wrapper-rtl`]: r === "rtl",
1151
+ [`${m}-group-wrapper-${ee}`]: M
1152
+ }, Fe(`${m}-group-wrapper`, P, Z), x)
1153
+ }
1154
+ }, C));
1155
+ return V(se);
1156
+ }), Ze = Qe, pt = (e) => /* @__PURE__ */ i.createElement(Fn, {
1157
+ theme: {
1158
+ components: {
1159
+ InputNumber: {
1160
+ handleVisible: !0
1161
+ }
1162
+ }
1163
+ }
1164
+ }, /* @__PURE__ */ i.createElement(Qe, Object.assign({}, e)));
1165
+ process.env.NODE_ENV !== "production" && (Ze.displayName = "InputNumber");
1166
+ Ze._InternalPanelDoNotUseOrYouWillBeFired = pt;
1167
+ export {
1168
+ Ze as T
1169
+ };