@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,1897 @@
1
+ import * as K from "react";
2
+ import f, { useRef as ge, cloneElement as Er, forwardRef as _e, useState as Ue, useImperativeHandle as er, useEffect as Ee, useContext as Rr } from "react";
3
+ import { e as zr, T as Me, m as ze, u as D, g as He, a7 as Ir, r as rr, G as Or, N as De, _ as tr, a2 as Br, b as Ar, d as Fe, a8 as ar, f as nr, a9 as or, ac as ir, ad as lr, ab as sr, aa as dr, x as jr, ae as We, z as Ke, af as cr, O as Nr, Q as qe } from "./index-CrMcNEAZ.js";
4
+ import { c as y, a as Le, h as ce, _ as Re, b as ae, q as Be, i as me } from "./SearchOutlined-puH6bCY6.js";
5
+ import { r as Tr, a as Mr } from "./mediaQueryUtil-8vWuS10Z.js";
6
+ const Fr = () => f.useReducer((e) => e + 1, 0), ur = ["xxl", "xl", "lg", "md", "sm", "xs"], Wr = (e) => ({
7
+ xs: `(max-width: ${e.screenXSMax}px)`,
8
+ sm: `(min-width: ${e.screenSM}px)`,
9
+ md: `(min-width: ${e.screenMD}px)`,
10
+ lg: `(min-width: ${e.screenLG}px)`,
11
+ xl: `(min-width: ${e.screenXL}px)`,
12
+ xxl: `(min-width: ${e.screenXXL}px)`
13
+ }), _r = (e) => {
14
+ const r = e, t = [].concat(ur).reverse();
15
+ return t.forEach((a, n) => {
16
+ const i = a.toUpperCase(), o = `screen${i}Min`, l = `screen${i}`;
17
+ if (!(r[o] <= r[l]))
18
+ throw new Error(`${o}<=${l} fails : !(${r[o]}<=${r[l]})`);
19
+ if (n < t.length - 1) {
20
+ const d = `screen${i}Max`;
21
+ if (!(r[l] <= r[d]))
22
+ throw new Error(`${l}<=${d} fails : !(${r[l]}<=${r[d]})`);
23
+ const u = `screen${t[n + 1].toUpperCase()}Min`;
24
+ if (!(r[d] <= r[u]))
25
+ throw new Error(`${d}<=${u} fails : !(${r[d]}<=${r[u]})`);
26
+ }
27
+ }), e;
28
+ }, Rt = (e, r) => {
29
+ if (r) {
30
+ for (const t of ur)
31
+ if (e[t] && (r == null ? void 0 : r[t]) !== void 0)
32
+ return r[t];
33
+ }
34
+ }, Hr = () => {
35
+ const [, e] = zr(), r = Wr(_r(e));
36
+ return f.useMemo(() => {
37
+ const t = /* @__PURE__ */ new Map();
38
+ let a = -1, n = {};
39
+ return {
40
+ responsiveMap: r,
41
+ matchHandlers: {},
42
+ dispatch(i) {
43
+ return n = i, t.forEach((o) => o(n)), t.size >= 1;
44
+ },
45
+ subscribe(i) {
46
+ return t.size || this.register(), a += 1, t.set(a, i), i(n), a;
47
+ },
48
+ unsubscribe(i) {
49
+ t.delete(i), t.size || this.unregister();
50
+ },
51
+ register() {
52
+ Object.entries(r).forEach(([i, o]) => {
53
+ const l = ({
54
+ matches: c
55
+ }) => {
56
+ this.dispatch(Object.assign(Object.assign({}, n), {
57
+ [i]: c
58
+ }));
59
+ }, d = window.matchMedia(o);
60
+ Mr(d, l), this.matchHandlers[o] = {
61
+ mql: d,
62
+ listener: l
63
+ }, l(d);
64
+ });
65
+ },
66
+ unregister() {
67
+ Object.values(r).forEach((i) => {
68
+ const o = this.matchHandlers[i];
69
+ Tr(o == null ? void 0 : o.mql, o == null ? void 0 : o.listener);
70
+ }), t.clear();
71
+ }
72
+ };
73
+ }, [r]);
74
+ };
75
+ function zt(e = !0, r = {}) {
76
+ const t = ge(r), [, a] = Fr(), n = Hr();
77
+ return Me(() => {
78
+ const i = n.subscribe((o) => {
79
+ t.current = o, e && a();
80
+ });
81
+ return () => n.unsubscribe(i);
82
+ }, []), t.current;
83
+ }
84
+ function Pe(e) {
85
+ return ze(e, {
86
+ inputAffixPadding: e.paddingXXS
87
+ });
88
+ }
89
+ const Ve = (e) => {
90
+ const {
91
+ controlHeight: r,
92
+ fontSize: t,
93
+ lineHeight: a,
94
+ lineWidth: n,
95
+ controlHeightSM: i,
96
+ controlHeightLG: o,
97
+ fontSizeLG: l,
98
+ lineHeightLG: d,
99
+ paddingSM: c,
100
+ controlPaddingHorizontalSM: u,
101
+ controlPaddingHorizontal: E,
102
+ colorFillAlter: R,
103
+ colorPrimaryHover: Y,
104
+ colorPrimary: z,
105
+ controlOutlineWidth: j,
106
+ controlOutline: Z,
107
+ colorErrorOutline: L,
108
+ colorWarningOutline: $,
109
+ colorBgContainer: T,
110
+ inputFontSize: J,
111
+ inputFontSizeLG: h,
112
+ inputFontSizeSM: g
113
+ } = e, s = J || t, F = g || s, O = h || l, C = Math.round((r - s * a) / 2 * 10) / 10 - n, N = Math.round((i - F * a) / 2 * 10) / 10 - n, P = Math.ceil((o - O * d) / 2 * 10) / 10 - n;
114
+ return {
115
+ paddingBlock: Math.max(C, 0),
116
+ paddingBlockSM: Math.max(N, 0),
117
+ paddingBlockLG: Math.max(P, 0),
118
+ paddingInline: c - n,
119
+ paddingInlineSM: u - n,
120
+ paddingInlineLG: E - n,
121
+ addonBg: R,
122
+ activeBorderColor: z,
123
+ hoverBorderColor: Y,
124
+ activeShadow: `0 0 0 ${j}px ${Z}`,
125
+ errorActiveShadow: `0 0 0 ${j}px ${L}`,
126
+ warningActiveShadow: `0 0 0 ${j}px ${$}`,
127
+ hoverBg: T,
128
+ activeBg: T,
129
+ inputFontSize: s,
130
+ inputFontSizeLG: O,
131
+ inputFontSizeSM: F
132
+ };
133
+ }, Dr = (e) => ({
134
+ borderColor: e.hoverBorderColor,
135
+ backgroundColor: e.hoverBg
136
+ }), Ge = (e) => ({
137
+ color: e.colorTextDisabled,
138
+ backgroundColor: e.colorBgContainerDisabled,
139
+ borderColor: e.colorBorder,
140
+ boxShadow: "none",
141
+ cursor: "not-allowed",
142
+ opacity: 1,
143
+ "input[disabled], textarea[disabled]": {
144
+ cursor: "not-allowed"
145
+ },
146
+ "&:hover:not([disabled])": Object.assign({}, Dr(ze(e, {
147
+ hoverBorderColor: e.colorBorder,
148
+ hoverBg: e.colorBgContainerDisabled
149
+ })))
150
+ }), fr = (e, r) => ({
151
+ background: e.colorBgContainer,
152
+ borderWidth: e.lineWidth,
153
+ borderStyle: e.lineType,
154
+ borderColor: r.borderColor,
155
+ "&:hover": {
156
+ borderColor: r.hoverBorderColor,
157
+ backgroundColor: e.hoverBg
158
+ },
159
+ "&:focus, &:focus-within": {
160
+ borderColor: r.activeBorderColor,
161
+ boxShadow: r.activeShadow,
162
+ outline: 0,
163
+ backgroundColor: e.activeBg
164
+ }
165
+ }), Xe = (e, r) => ({
166
+ [`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]: Object.assign(Object.assign({}, fr(e, r)), {
167
+ [`${e.componentCls}-prefix, ${e.componentCls}-suffix`]: {
168
+ color: r.affixColor
169
+ }
170
+ }),
171
+ [`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]: {
172
+ borderColor: r.borderColor
173
+ }
174
+ }), Lr = (e, r) => ({
175
+ "&-outlined": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, fr(e, {
176
+ borderColor: e.colorBorder,
177
+ hoverBorderColor: e.hoverBorderColor,
178
+ activeBorderColor: e.activeBorderColor,
179
+ activeShadow: e.activeShadow
180
+ })), {
181
+ [`&${e.componentCls}-disabled, &[disabled]`]: Object.assign({}, Ge(e))
182
+ }), Xe(e, {
183
+ status: "error",
184
+ borderColor: e.colorError,
185
+ hoverBorderColor: e.colorErrorBorderHover,
186
+ activeBorderColor: e.colorError,
187
+ activeShadow: e.errorActiveShadow,
188
+ affixColor: e.colorError
189
+ })), Xe(e, {
190
+ status: "warning",
191
+ borderColor: e.colorWarning,
192
+ hoverBorderColor: e.colorWarningBorderHover,
193
+ activeBorderColor: e.colorWarning,
194
+ activeShadow: e.warningActiveShadow,
195
+ affixColor: e.colorWarning
196
+ })), r)
197
+ }), Ye = (e, r) => ({
198
+ [`&${e.componentCls}-group-wrapper-status-${r.status}`]: {
199
+ [`${e.componentCls}-group-addon`]: {
200
+ borderColor: r.addonBorderColor,
201
+ color: r.addonColor
202
+ }
203
+ }
204
+ }), Pr = (e) => ({
205
+ "&-outlined": Object.assign(Object.assign(Object.assign({
206
+ [`${e.componentCls}-group`]: {
207
+ "&-addon": {
208
+ background: e.addonBg,
209
+ border: `${D(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
210
+ },
211
+ "&-addon:first-child": {
212
+ borderInlineEnd: 0
213
+ },
214
+ "&-addon:last-child": {
215
+ borderInlineStart: 0
216
+ }
217
+ }
218
+ }, Ye(e, {
219
+ status: "error",
220
+ addonBorderColor: e.colorError,
221
+ addonColor: e.colorErrorText
222
+ })), Ye(e, {
223
+ status: "warning",
224
+ addonBorderColor: e.colorWarning,
225
+ addonColor: e.colorWarningText
226
+ })), {
227
+ [`&${e.componentCls}-group-wrapper-disabled`]: {
228
+ [`${e.componentCls}-group-addon`]: Object.assign({}, Ge(e))
229
+ }
230
+ })
231
+ }), Vr = (e, r) => {
232
+ const {
233
+ componentCls: t
234
+ } = e;
235
+ return {
236
+ "&-borderless": Object.assign({
237
+ background: "transparent",
238
+ border: "none",
239
+ "&:focus, &:focus-within": {
240
+ outline: "none"
241
+ },
242
+ // >>>>> Disabled
243
+ [`&${t}-disabled, &[disabled]`]: {
244
+ color: e.colorTextDisabled,
245
+ cursor: "not-allowed"
246
+ },
247
+ // >>>>> Status
248
+ [`&${t}-status-error`]: {
249
+ "&, & input, & textarea": {
250
+ color: e.colorError
251
+ }
252
+ },
253
+ [`&${t}-status-warning`]: {
254
+ "&, & input, & textarea": {
255
+ color: e.colorWarning
256
+ }
257
+ }
258
+ }, r)
259
+ };
260
+ }, pr = (e, r) => {
261
+ var t;
262
+ return {
263
+ background: r.bg,
264
+ borderWidth: e.lineWidth,
265
+ borderStyle: e.lineType,
266
+ borderColor: "transparent",
267
+ "input&, & input, textarea&, & textarea": {
268
+ color: (t = r == null ? void 0 : r.inputColor) !== null && t !== void 0 ? t : "unset"
269
+ },
270
+ "&:hover": {
271
+ background: r.hoverBg
272
+ },
273
+ "&:focus, &:focus-within": {
274
+ outline: 0,
275
+ borderColor: r.activeBorderColor,
276
+ backgroundColor: e.activeBg
277
+ }
278
+ };
279
+ }, Qe = (e, r) => ({
280
+ [`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]: Object.assign(Object.assign({}, pr(e, r)), {
281
+ [`${e.componentCls}-prefix, ${e.componentCls}-suffix`]: {
282
+ color: r.affixColor
283
+ }
284
+ })
285
+ }), Gr = (e, r) => ({
286
+ "&-filled": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, pr(e, {
287
+ bg: e.colorFillTertiary,
288
+ hoverBg: e.colorFillSecondary,
289
+ activeBorderColor: e.activeBorderColor
290
+ })), {
291
+ [`&${e.componentCls}-disabled, &[disabled]`]: Object.assign({}, Ge(e))
292
+ }), Qe(e, {
293
+ status: "error",
294
+ bg: e.colorErrorBg,
295
+ hoverBg: e.colorErrorBgHover,
296
+ activeBorderColor: e.colorError,
297
+ inputColor: e.colorErrorText,
298
+ affixColor: e.colorError
299
+ })), Qe(e, {
300
+ status: "warning",
301
+ bg: e.colorWarningBg,
302
+ hoverBg: e.colorWarningBgHover,
303
+ activeBorderColor: e.colorWarning,
304
+ inputColor: e.colorWarningText,
305
+ affixColor: e.colorWarning
306
+ })), r)
307
+ }), Ze = (e, r) => ({
308
+ [`&${e.componentCls}-group-wrapper-status-${r.status}`]: {
309
+ [`${e.componentCls}-group-addon`]: {
310
+ background: r.addonBg,
311
+ color: r.addonColor
312
+ }
313
+ }
314
+ }), Ur = (e) => ({
315
+ "&-filled": Object.assign(Object.assign(Object.assign({
316
+ [`${e.componentCls}-group-addon`]: {
317
+ background: e.colorFillTertiary,
318
+ "&:last-child": {
319
+ position: "static"
320
+ }
321
+ }
322
+ }, Ze(e, {
323
+ status: "error",
324
+ addonBg: e.colorErrorBg,
325
+ addonColor: e.colorErrorText
326
+ })), Ze(e, {
327
+ status: "warning",
328
+ addonBg: e.colorWarningBg,
329
+ addonColor: e.colorWarningText
330
+ })), {
331
+ [`&${e.componentCls}-group-wrapper-disabled`]: {
332
+ [`${e.componentCls}-group`]: {
333
+ "&-addon": {
334
+ background: e.colorFillTertiary,
335
+ color: e.colorTextDisabled
336
+ },
337
+ "&-addon:first-child": {
338
+ borderInlineStart: `${D(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
339
+ borderTop: `${D(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
340
+ borderBottom: `${D(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
341
+ },
342
+ "&-addon:last-child": {
343
+ borderInlineEnd: `${D(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
344
+ borderTop: `${D(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
345
+ borderBottom: `${D(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
346
+ }
347
+ }
348
+ }
349
+ })
350
+ }), gr = (e, r) => ({
351
+ background: e.colorBgContainer,
352
+ borderWidth: `${D(e.lineWidth)} 0`,
353
+ borderStyle: `${e.lineType} none`,
354
+ borderColor: `transparent transparent ${r.borderColor} transparent`,
355
+ borderRadius: 0,
356
+ "&:hover": {
357
+ borderColor: `transparent transparent ${r.hoverBorderColor} transparent`,
358
+ backgroundColor: e.hoverBg
359
+ },
360
+ "&:focus, &:focus-within": {
361
+ borderColor: `transparent transparent ${r.activeBorderColor} transparent`,
362
+ outline: 0,
363
+ backgroundColor: e.activeBg
364
+ }
365
+ }), Je = (e, r) => ({
366
+ [`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]: Object.assign(Object.assign({}, gr(e, r)), {
367
+ [`${e.componentCls}-prefix, ${e.componentCls}-suffix`]: {
368
+ color: r.affixColor
369
+ }
370
+ }),
371
+ [`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]: {
372
+ borderColor: `transparent transparent ${r.borderColor} transparent`
373
+ }
374
+ }), Kr = (e, r) => ({
375
+ "&-underlined": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, gr(e, {
376
+ borderColor: e.colorBorder,
377
+ hoverBorderColor: e.hoverBorderColor,
378
+ activeBorderColor: e.activeBorderColor,
379
+ activeShadow: e.activeShadow
380
+ })), {
381
+ // >>>>> Disabled
382
+ [`&${e.componentCls}-disabled, &[disabled]`]: {
383
+ color: e.colorTextDisabled,
384
+ boxShadow: "none",
385
+ cursor: "not-allowed",
386
+ "&:hover": {
387
+ borderColor: `transparent transparent ${e.colorBorder} transparent`
388
+ }
389
+ },
390
+ "input[disabled], textarea[disabled]": {
391
+ cursor: "not-allowed"
392
+ }
393
+ }), Je(e, {
394
+ status: "error",
395
+ borderColor: e.colorError,
396
+ hoverBorderColor: e.colorErrorBorderHover,
397
+ activeBorderColor: e.colorError,
398
+ activeShadow: e.errorActiveShadow,
399
+ affixColor: e.colorError
400
+ })), Je(e, {
401
+ status: "warning",
402
+ borderColor: e.colorWarning,
403
+ hoverBorderColor: e.colorWarningBorderHover,
404
+ activeBorderColor: e.colorWarning,
405
+ activeShadow: e.warningActiveShadow,
406
+ affixColor: e.colorWarning
407
+ })), r)
408
+ }), qr = (e) => ({
409
+ // Firefox
410
+ "&::-moz-placeholder": {
411
+ opacity: 1
412
+ },
413
+ "&::placeholder": {
414
+ color: e,
415
+ userSelect: "none"
416
+ // https://github.com/ant-design/ant-design/pull/32639
417
+ },
418
+ "&:placeholder-shown": {
419
+ textOverflow: "ellipsis"
420
+ }
421
+ }), vr = (e) => {
422
+ const {
423
+ paddingBlockLG: r,
424
+ lineHeightLG: t,
425
+ borderRadiusLG: a,
426
+ paddingInlineLG: n
427
+ } = e;
428
+ return {
429
+ padding: `${D(r)} ${D(n)}`,
430
+ fontSize: e.inputFontSizeLG,
431
+ lineHeight: t,
432
+ borderRadius: a
433
+ };
434
+ }, mr = (e) => ({
435
+ padding: `${D(e.paddingBlockSM)} ${D(e.paddingInlineSM)}`,
436
+ fontSize: e.inputFontSizeSM,
437
+ borderRadius: e.borderRadiusSM
438
+ }), br = (e) => Object.assign(Object.assign({
439
+ position: "relative",
440
+ display: "inline-block",
441
+ width: "100%",
442
+ minWidth: 0,
443
+ padding: `${D(e.paddingBlock)} ${D(e.paddingInline)}`,
444
+ color: e.colorText,
445
+ fontSize: e.inputFontSize,
446
+ lineHeight: e.lineHeight,
447
+ borderRadius: e.borderRadius,
448
+ transition: `all ${e.motionDurationMid}`
449
+ }, qr(e.colorTextPlaceholder)), {
450
+ // Size
451
+ "&-lg": Object.assign({}, vr(e)),
452
+ "&-sm": Object.assign({}, mr(e)),
453
+ // RTL
454
+ "&-rtl, &-textarea-rtl": {
455
+ direction: "rtl"
456
+ }
457
+ }), Xr = (e) => {
458
+ const {
459
+ componentCls: r,
460
+ antCls: t
461
+ } = e;
462
+ return {
463
+ position: "relative",
464
+ display: "table",
465
+ width: "100%",
466
+ borderCollapse: "separate",
467
+ borderSpacing: 0,
468
+ // Undo padding and float of grid classes
469
+ "&[class*='col-']": {
470
+ paddingInlineEnd: e.paddingXS,
471
+ "&:last-child": {
472
+ paddingInlineEnd: 0
473
+ }
474
+ },
475
+ // Sizing options
476
+ [`&-lg ${r}, &-lg > ${r}-group-addon`]: Object.assign({}, vr(e)),
477
+ [`&-sm ${r}, &-sm > ${r}-group-addon`]: Object.assign({}, mr(e)),
478
+ // Fix https://github.com/ant-design/ant-design/issues/5754
479
+ [`&-lg ${t}-select-single ${t}-select-selector`]: {
480
+ height: e.controlHeightLG
481
+ },
482
+ [`&-sm ${t}-select-single ${t}-select-selector`]: {
483
+ height: e.controlHeightSM
484
+ },
485
+ [`> ${r}`]: {
486
+ display: "table-cell",
487
+ "&:not(:first-child):not(:last-child)": {
488
+ borderRadius: 0
489
+ }
490
+ },
491
+ [`${r}-group`]: {
492
+ "&-addon, &-wrap": {
493
+ display: "table-cell",
494
+ width: 1,
495
+ whiteSpace: "nowrap",
496
+ verticalAlign: "middle",
497
+ "&:not(:first-child):not(:last-child)": {
498
+ borderRadius: 0
499
+ }
500
+ },
501
+ "&-wrap > *": {
502
+ display: "block !important"
503
+ },
504
+ "&-addon": {
505
+ position: "relative",
506
+ padding: `0 ${D(e.paddingInline)}`,
507
+ color: e.colorText,
508
+ fontWeight: "normal",
509
+ fontSize: e.inputFontSize,
510
+ textAlign: "center",
511
+ borderRadius: e.borderRadius,
512
+ transition: `all ${e.motionDurationSlow}`,
513
+ lineHeight: 1,
514
+ // Reset Select's style in addon
515
+ [`${t}-select`]: {
516
+ margin: `${D(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${D(e.calc(e.paddingInline).mul(-1).equal())}`,
517
+ [`&${t}-select-single:not(${t}-select-customize-input):not(${t}-pagination-size-changer)`]: {
518
+ [`${t}-select-selector`]: {
519
+ backgroundColor: "inherit",
520
+ border: `${D(e.lineWidth)} ${e.lineType} transparent`,
521
+ boxShadow: "none"
522
+ }
523
+ }
524
+ },
525
+ // https://github.com/ant-design/ant-design/issues/31333
526
+ [`${t}-cascader-picker`]: {
527
+ margin: `-9px ${D(e.calc(e.paddingInline).mul(-1).equal())}`,
528
+ backgroundColor: "transparent",
529
+ [`${t}-cascader-input`]: {
530
+ textAlign: "start",
531
+ border: 0,
532
+ boxShadow: "none"
533
+ }
534
+ }
535
+ }
536
+ },
537
+ [r]: {
538
+ width: "100%",
539
+ marginBottom: 0,
540
+ textAlign: "inherit",
541
+ "&:focus": {
542
+ zIndex: 1,
543
+ // Fix https://gw.alipayobjects.com/zos/rmsportal/DHNpoqfMXSfrSnlZvhsJ.png
544
+ borderInlineEndWidth: 1
545
+ },
546
+ "&:hover": {
547
+ zIndex: 1,
548
+ borderInlineEndWidth: 1,
549
+ [`${r}-search-with-button &`]: {
550
+ zIndex: 0
551
+ }
552
+ }
553
+ },
554
+ // Reset rounded corners
555
+ [`> ${r}:first-child, ${r}-group-addon:first-child`]: {
556
+ borderStartEndRadius: 0,
557
+ borderEndEndRadius: 0,
558
+ // Reset Select's style in addon
559
+ [`${t}-select ${t}-select-selector`]: {
560
+ borderStartEndRadius: 0,
561
+ borderEndEndRadius: 0
562
+ }
563
+ },
564
+ [`> ${r}-affix-wrapper`]: {
565
+ [`&:not(:first-child) ${r}`]: {
566
+ borderStartStartRadius: 0,
567
+ borderEndStartRadius: 0
568
+ },
569
+ [`&:not(:last-child) ${r}`]: {
570
+ borderStartEndRadius: 0,
571
+ borderEndEndRadius: 0
572
+ }
573
+ },
574
+ [`> ${r}:last-child, ${r}-group-addon:last-child`]: {
575
+ borderStartStartRadius: 0,
576
+ borderEndStartRadius: 0,
577
+ // Reset Select's style in addon
578
+ [`${t}-select ${t}-select-selector`]: {
579
+ borderStartStartRadius: 0,
580
+ borderEndStartRadius: 0
581
+ }
582
+ },
583
+ [`${r}-affix-wrapper`]: {
584
+ "&:not(:last-child)": {
585
+ borderStartEndRadius: 0,
586
+ borderEndEndRadius: 0,
587
+ [`${r}-search &`]: {
588
+ borderStartStartRadius: e.borderRadius,
589
+ borderEndStartRadius: e.borderRadius
590
+ }
591
+ },
592
+ [`&:not(:first-child), ${r}-search &:not(:first-child)`]: {
593
+ borderStartStartRadius: 0,
594
+ borderEndStartRadius: 0
595
+ }
596
+ },
597
+ [`&${r}-group-compact`]: Object.assign(Object.assign({
598
+ display: "block"
599
+ }, Or()), {
600
+ [`${r}-group-addon, ${r}-group-wrap, > ${r}`]: {
601
+ "&:not(:first-child):not(:last-child)": {
602
+ borderInlineEndWidth: e.lineWidth,
603
+ "&:hover, &:focus": {
604
+ zIndex: 1
605
+ }
606
+ }
607
+ },
608
+ "& > *": {
609
+ display: "inline-flex",
610
+ float: "none",
611
+ verticalAlign: "top",
612
+ // https://github.com/ant-design/ant-design-pro/issues/139
613
+ borderRadius: 0
614
+ },
615
+ [`
616
+ & > ${r}-affix-wrapper,
617
+ & > ${r}-number-affix-wrapper,
618
+ & > ${t}-picker-range
619
+ `]: {
620
+ display: "inline-flex"
621
+ },
622
+ "& > *:not(:last-child)": {
623
+ marginInlineEnd: e.calc(e.lineWidth).mul(-1).equal(),
624
+ borderInlineEndWidth: e.lineWidth
625
+ },
626
+ // Undo float for .ant-input-group .ant-input
627
+ [r]: {
628
+ float: "none"
629
+ },
630
+ // reset border for Select, DatePicker, AutoComplete, Cascader, Mention, TimePicker, Input
631
+ [`& > ${t}-select > ${t}-select-selector,
632
+ & > ${t}-select-auto-complete ${r},
633
+ & > ${t}-cascader-picker ${r},
634
+ & > ${r}-group-wrapper ${r}`]: {
635
+ borderInlineEndWidth: e.lineWidth,
636
+ borderRadius: 0,
637
+ "&:hover, &:focus": {
638
+ zIndex: 1
639
+ }
640
+ },
641
+ [`& > ${t}-select-focused`]: {
642
+ zIndex: 1
643
+ },
644
+ // update z-index for arrow icon
645
+ [`& > ${t}-select > ${t}-select-arrow`]: {
646
+ zIndex: 1
647
+ // https://github.com/ant-design/ant-design/issues/20371
648
+ },
649
+ [`& > *:first-child,
650
+ & > ${t}-select:first-child > ${t}-select-selector,
651
+ & > ${t}-select-auto-complete:first-child ${r},
652
+ & > ${t}-cascader-picker:first-child ${r}`]: {
653
+ borderStartStartRadius: e.borderRadius,
654
+ borderEndStartRadius: e.borderRadius
655
+ },
656
+ [`& > *:last-child,
657
+ & > ${t}-select:last-child > ${t}-select-selector,
658
+ & > ${t}-cascader-picker:last-child ${r},
659
+ & > ${t}-cascader-picker-focused:last-child ${r}`]: {
660
+ borderInlineEndWidth: e.lineWidth,
661
+ borderStartEndRadius: e.borderRadius,
662
+ borderEndEndRadius: e.borderRadius
663
+ },
664
+ // https://github.com/ant-design/ant-design/issues/12493
665
+ [`& > ${t}-select-auto-complete ${r}`]: {
666
+ verticalAlign: "top"
667
+ },
668
+ [`${r}-group-wrapper + ${r}-group-wrapper`]: {
669
+ marginInlineStart: e.calc(e.lineWidth).mul(-1).equal(),
670
+ [`${r}-affix-wrapper`]: {
671
+ borderRadius: 0
672
+ }
673
+ },
674
+ [`${r}-group-wrapper:not(:last-child)`]: {
675
+ [`&${r}-search > ${r}-group`]: {
676
+ [`& > ${r}-group-addon > ${r}-search-button`]: {
677
+ borderRadius: 0
678
+ },
679
+ [`& > ${r}`]: {
680
+ borderStartStartRadius: e.borderRadius,
681
+ borderStartEndRadius: 0,
682
+ borderEndEndRadius: 0,
683
+ borderEndStartRadius: e.borderRadius
684
+ }
685
+ }
686
+ }
687
+ })
688
+ };
689
+ }, Yr = (e) => {
690
+ const {
691
+ componentCls: r,
692
+ controlHeightSM: t,
693
+ lineWidth: a,
694
+ calc: n
695
+ } = e, o = n(t).sub(n(a).mul(2)).sub(16).div(2).equal();
696
+ return {
697
+ [r]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, rr(e)), br(e)), Lr(e)), Gr(e)), Vr(e)), Kr(e)), {
698
+ '&[type="color"]': {
699
+ height: e.controlHeight,
700
+ [`&${r}-lg`]: {
701
+ height: e.controlHeightLG
702
+ },
703
+ [`&${r}-sm`]: {
704
+ height: t,
705
+ paddingTop: o,
706
+ paddingBottom: o
707
+ }
708
+ },
709
+ '&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration': {
710
+ appearance: "none"
711
+ }
712
+ })
713
+ };
714
+ }, Qr = (e) => {
715
+ const {
716
+ componentCls: r
717
+ } = e;
718
+ return {
719
+ // ========================= Input =========================
720
+ [`${r}-clear-icon`]: {
721
+ margin: 0,
722
+ padding: 0,
723
+ lineHeight: 0,
724
+ color: e.colorTextQuaternary,
725
+ fontSize: e.fontSizeIcon,
726
+ verticalAlign: -1,
727
+ // https://github.com/ant-design/ant-design/pull/18151
728
+ // https://codesandbox.io/s/wizardly-sun-u10br
729
+ cursor: "pointer",
730
+ transition: `color ${e.motionDurationSlow}`,
731
+ border: "none",
732
+ outline: "none",
733
+ backgroundColor: "transparent",
734
+ "&:hover": {
735
+ color: e.colorIcon
736
+ },
737
+ "&:active": {
738
+ color: e.colorText
739
+ },
740
+ "&-hidden": {
741
+ visibility: "hidden"
742
+ },
743
+ "&-has-suffix": {
744
+ margin: `0 ${D(e.inputAffixPadding)}`
745
+ }
746
+ }
747
+ };
748
+ }, Zr = (e) => {
749
+ const {
750
+ componentCls: r,
751
+ inputAffixPadding: t,
752
+ colorTextDescription: a,
753
+ motionDurationSlow: n,
754
+ colorIcon: i,
755
+ colorIconHover: o,
756
+ iconCls: l
757
+ } = e, d = `${r}-affix-wrapper`, c = `${r}-affix-wrapper-disabled`;
758
+ return {
759
+ [d]: Object.assign(Object.assign(Object.assign(Object.assign({}, br(e)), {
760
+ display: "inline-flex",
761
+ [`&:not(${r}-disabled):hover`]: {
762
+ zIndex: 1,
763
+ [`${r}-search-with-button &`]: {
764
+ zIndex: 0
765
+ }
766
+ },
767
+ "&-focused, &:focus": {
768
+ zIndex: 1
769
+ },
770
+ [`> input${r}`]: {
771
+ padding: 0
772
+ },
773
+ [`> input${r}, > textarea${r}`]: {
774
+ fontSize: "inherit",
775
+ border: "none",
776
+ borderRadius: 0,
777
+ outline: "none",
778
+ background: "transparent",
779
+ color: "inherit",
780
+ "&::-ms-reveal": {
781
+ display: "none"
782
+ },
783
+ "&:focus": {
784
+ boxShadow: "none !important"
785
+ }
786
+ },
787
+ "&::before": {
788
+ display: "inline-block",
789
+ width: 0,
790
+ visibility: "hidden",
791
+ content: '"\\a0"'
792
+ },
793
+ [r]: {
794
+ "&-prefix, &-suffix": {
795
+ display: "flex",
796
+ flex: "none",
797
+ alignItems: "center",
798
+ "> *:not(:last-child)": {
799
+ marginInlineEnd: e.paddingXS
800
+ }
801
+ },
802
+ "&-show-count-suffix": {
803
+ color: a,
804
+ direction: "ltr"
805
+ },
806
+ "&-show-count-has-suffix": {
807
+ marginInlineEnd: e.paddingXXS
808
+ },
809
+ "&-prefix": {
810
+ marginInlineEnd: t
811
+ },
812
+ "&-suffix": {
813
+ marginInlineStart: t
814
+ }
815
+ }
816
+ }), Qr(e)), {
817
+ // password
818
+ [`${l}${r}-password-icon`]: {
819
+ color: i,
820
+ cursor: "pointer",
821
+ transition: `all ${n}`,
822
+ "&:hover": {
823
+ color: o
824
+ }
825
+ }
826
+ }),
827
+ // 覆盖 affix-wrapper borderRadius!
828
+ [`${r}-underlined`]: {
829
+ borderRadius: 0
830
+ },
831
+ [c]: {
832
+ // password disabled
833
+ [`${l}${r}-password-icon`]: {
834
+ color: i,
835
+ cursor: "not-allowed",
836
+ "&:hover": {
837
+ color: i
838
+ }
839
+ }
840
+ }
841
+ };
842
+ }, Jr = (e) => {
843
+ const {
844
+ componentCls: r,
845
+ borderRadiusLG: t,
846
+ borderRadiusSM: a
847
+ } = e;
848
+ return {
849
+ [`${r}-group`]: Object.assign(Object.assign(Object.assign({}, rr(e)), Xr(e)), {
850
+ "&-rtl": {
851
+ direction: "rtl"
852
+ },
853
+ "&-wrapper": Object.assign(Object.assign(Object.assign({
854
+ display: "inline-block",
855
+ width: "100%",
856
+ textAlign: "start",
857
+ verticalAlign: "top",
858
+ "&-rtl": {
859
+ direction: "rtl"
860
+ },
861
+ // Size
862
+ "&-lg": {
863
+ [`${r}-group-addon`]: {
864
+ borderRadius: t,
865
+ fontSize: e.inputFontSizeLG
866
+ }
867
+ },
868
+ "&-sm": {
869
+ [`${r}-group-addon`]: {
870
+ borderRadius: a
871
+ }
872
+ }
873
+ }, Pr(e)), Ur(e)), {
874
+ // '&-disabled': {
875
+ // [`${componentCls}-group-addon`]: {
876
+ // ...genDisabledStyle(token),
877
+ // },
878
+ // },
879
+ // Fix the issue of using icons in Space Compact mode
880
+ // https://github.com/ant-design/ant-design/issues/42122
881
+ [`&:not(${r}-compact-first-item):not(${r}-compact-last-item)${r}-compact-item`]: {
882
+ [`${r}, ${r}-group-addon`]: {
883
+ borderRadius: 0
884
+ }
885
+ },
886
+ [`&:not(${r}-compact-last-item)${r}-compact-first-item`]: {
887
+ [`${r}, ${r}-group-addon`]: {
888
+ borderStartEndRadius: 0,
889
+ borderEndEndRadius: 0
890
+ }
891
+ },
892
+ [`&:not(${r}-compact-first-item)${r}-compact-last-item`]: {
893
+ [`${r}, ${r}-group-addon`]: {
894
+ borderStartStartRadius: 0,
895
+ borderEndStartRadius: 0
896
+ }
897
+ },
898
+ // Fix the issue of input use show-count param in space compact mode
899
+ // https://github.com/ant-design/ant-design/issues/46872
900
+ [`&:not(${r}-compact-last-item)${r}-compact-item`]: {
901
+ [`${r}-affix-wrapper`]: {
902
+ borderStartEndRadius: 0,
903
+ borderEndEndRadius: 0
904
+ }
905
+ },
906
+ // Fix the issue of input use `addonAfter` param in space compact mode
907
+ // https://github.com/ant-design/ant-design/issues/52483
908
+ [`&:not(${r}-compact-first-item)${r}-compact-item`]: {
909
+ [`${r}-affix-wrapper`]: {
910
+ borderStartStartRadius: 0,
911
+ borderEndStartRadius: 0
912
+ }
913
+ }
914
+ })
915
+ })
916
+ };
917
+ }, kr = (e) => {
918
+ const {
919
+ componentCls: r,
920
+ antCls: t
921
+ } = e, a = `${r}-search`;
922
+ return {
923
+ [a]: {
924
+ [r]: {
925
+ "&:not([disabled]):hover, &:not([disabled]):focus": {
926
+ [`+ ${r}-group-addon ${a}-button:not(${t}-btn-color-primary):not(${t}-btn-variant-text)`]: {
927
+ borderInlineStartColor: e.colorPrimaryHover
928
+ }
929
+ }
930
+ },
931
+ [`${r}-affix-wrapper`]: {
932
+ height: e.controlHeight,
933
+ borderRadius: 0
934
+ },
935
+ // fix slight height diff in Firefox:
936
+ // https://ant.design/components/auto-complete-cn/#auto-complete-demo-certain-category
937
+ [`${r}-lg`]: {
938
+ lineHeight: e.calc(e.lineHeightLG).sub(2e-4).equal()
939
+ },
940
+ [`> ${r}-group`]: {
941
+ [`> ${r}-group-addon:last-child`]: {
942
+ insetInlineStart: -1,
943
+ padding: 0,
944
+ border: 0,
945
+ [`${a}-button`]: {
946
+ // Fix https://github.com/ant-design/ant-design/issues/47150
947
+ marginInlineEnd: -1,
948
+ borderStartStartRadius: 0,
949
+ borderEndStartRadius: 0,
950
+ boxShadow: "none"
951
+ },
952
+ [`${a}-button:not(${t}-btn-color-primary)`]: {
953
+ color: e.colorTextDescription,
954
+ "&:not([disabled]):hover": {
955
+ color: e.colorPrimaryHover
956
+ },
957
+ "&:active": {
958
+ color: e.colorPrimaryActive
959
+ },
960
+ [`&${t}-btn-loading::before`]: {
961
+ inset: 0
962
+ }
963
+ }
964
+ }
965
+ },
966
+ [`${a}-button`]: {
967
+ height: e.controlHeight,
968
+ "&:hover, &:focus": {
969
+ zIndex: 1
970
+ }
971
+ },
972
+ "&-large": {
973
+ [`${r}-affix-wrapper, ${a}-button`]: {
974
+ height: e.controlHeightLG
975
+ }
976
+ },
977
+ "&-small": {
978
+ [`${r}-affix-wrapper, ${a}-button`]: {
979
+ height: e.controlHeightSM
980
+ }
981
+ },
982
+ "&-rtl": {
983
+ direction: "rtl"
984
+ },
985
+ // ===================== Compact Item Customized Styles =====================
986
+ [`&${r}-compact-item`]: {
987
+ [`&:not(${r}-compact-last-item)`]: {
988
+ [`${r}-group-addon`]: {
989
+ [`${r}-search-button`]: {
990
+ marginInlineEnd: e.calc(e.lineWidth).mul(-1).equal(),
991
+ borderRadius: 0
992
+ }
993
+ }
994
+ },
995
+ [`&:not(${r}-compact-first-item)`]: {
996
+ [`${r},${r}-affix-wrapper`]: {
997
+ borderRadius: 0
998
+ }
999
+ },
1000
+ [`> ${r}-group-addon ${r}-search-button,
1001
+ > ${r},
1002
+ ${r}-affix-wrapper`]: {
1003
+ "&:hover, &:focus, &:active": {
1004
+ zIndex: 2
1005
+ }
1006
+ },
1007
+ [`> ${r}-affix-wrapper-focused`]: {
1008
+ zIndex: 2
1009
+ }
1010
+ }
1011
+ }
1012
+ };
1013
+ }, et = (e) => {
1014
+ const {
1015
+ componentCls: r
1016
+ } = e;
1017
+ return {
1018
+ [`${r}-out-of-range`]: {
1019
+ [`&, & input, & textarea, ${r}-show-count-suffix, ${r}-data-count`]: {
1020
+ color: e.colorError
1021
+ }
1022
+ }
1023
+ };
1024
+ }, hr = He(["Input", "Shared"], (e) => {
1025
+ const r = ze(e, Pe(e));
1026
+ return [Yr(r), Zr(r)];
1027
+ }, Ve, {
1028
+ resetFont: !1
1029
+ }), rt = He(["Input", "Component"], (e) => {
1030
+ const r = ze(e, Pe(e));
1031
+ return [
1032
+ Jr(r),
1033
+ kr(r),
1034
+ et(r),
1035
+ // =====================================================
1036
+ // == Space Compact ==
1037
+ // =====================================================
1038
+ Ir(r)
1039
+ ];
1040
+ }, Ve, {
1041
+ resetFont: !1
1042
+ });
1043
+ function tt(e) {
1044
+ return !!(e.addonBefore || e.addonAfter);
1045
+ }
1046
+ function at(e) {
1047
+ return !!(e.prefix || e.suffix || e.allowClear);
1048
+ }
1049
+ function ke(e, r, t) {
1050
+ var a = r.cloneNode(!0), n = Object.create(e, {
1051
+ target: {
1052
+ value: a
1053
+ },
1054
+ currentTarget: {
1055
+ value: a
1056
+ }
1057
+ });
1058
+ return a.value = t, typeof r.selectionStart == "number" && typeof r.selectionEnd == "number" && (a.selectionStart = r.selectionStart, a.selectionEnd = r.selectionEnd), a.setSelectionRange = function() {
1059
+ r.setSelectionRange.apply(r, arguments);
1060
+ }, n;
1061
+ }
1062
+ function Oe(e, r, t, a) {
1063
+ if (t) {
1064
+ var n = r;
1065
+ if (r.type === "click") {
1066
+ n = ke(r, e, ""), t(n);
1067
+ return;
1068
+ }
1069
+ if (e.type !== "file" && a !== void 0) {
1070
+ n = ke(r, e, a), t(n);
1071
+ return;
1072
+ }
1073
+ t(n);
1074
+ }
1075
+ }
1076
+ function xr(e, r) {
1077
+ if (e) {
1078
+ e.focus(r);
1079
+ var t = r || {}, a = t.cursor;
1080
+ if (a) {
1081
+ var n = e.value.length;
1082
+ switch (a) {
1083
+ case "start":
1084
+ e.setSelectionRange(0, 0);
1085
+ break;
1086
+ case "end":
1087
+ e.setSelectionRange(n, n);
1088
+ break;
1089
+ default:
1090
+ e.setSelectionRange(0, n);
1091
+ }
1092
+ }
1093
+ }
1094
+ }
1095
+ var Sr = /* @__PURE__ */ f.forwardRef(function(e, r) {
1096
+ var t, a, n, i = e.inputElement, o = e.children, l = e.prefixCls, d = e.prefix, c = e.suffix, u = e.addonBefore, E = e.addonAfter, R = e.className, Y = e.style, z = e.disabled, j = e.readOnly, Z = e.focused, L = e.triggerFocus, $ = e.allowClear, T = e.value, J = e.handleReset, h = e.hidden, g = e.classes, s = e.classNames, F = e.dataAttrs, O = e.styles, C = e.components, N = e.onClear, P = o ?? i, ie = (C == null ? void 0 : C.affixWrapper) || "span", v = (C == null ? void 0 : C.groupWrapper) || "span", W = (C == null ? void 0 : C.wrapper) || "span", x = (C == null ? void 0 : C.groupAddon) || "span", _ = ge(null), p = function(se) {
1097
+ var b;
1098
+ (b = _.current) !== null && b !== void 0 && b.contains(se.target) && (L == null || L());
1099
+ }, ne = at(e), V = /* @__PURE__ */ Er(P, {
1100
+ value: T,
1101
+ className: y((t = P.props) === null || t === void 0 ? void 0 : t.className, !ne && (s == null ? void 0 : s.variant)) || null
1102
+ }), ee = ge(null);
1103
+ if (f.useImperativeHandle(r, function() {
1104
+ return {
1105
+ nativeElement: ee.current || _.current
1106
+ };
1107
+ }), ne) {
1108
+ var Q = null;
1109
+ if ($) {
1110
+ var I = !z && !j && T, H = "".concat(l, "-clear-icon"), ve = Le($) === "object" && $ !== null && $ !== void 0 && $.clearIcon ? $.clearIcon : "✖";
1111
+ Q = /* @__PURE__ */ f.createElement("button", {
1112
+ type: "button",
1113
+ tabIndex: -1,
1114
+ onClick: function(se) {
1115
+ J == null || J(se), N == null || N();
1116
+ },
1117
+ onMouseDown: function(se) {
1118
+ return se.preventDefault();
1119
+ },
1120
+ className: y(H, ce(ce({}, "".concat(H, "-hidden"), !I), "".concat(H, "-has-suffix"), !!c))
1121
+ }, ve);
1122
+ }
1123
+ var q = "".concat(l, "-affix-wrapper"), ue = y(q, ce(ce(ce(ce(ce({}, "".concat(l, "-disabled"), z), "".concat(q, "-disabled"), z), "".concat(q, "-focused"), Z), "".concat(q, "-readonly"), j), "".concat(q, "-input-with-clear-btn"), c && $ && T), g == null ? void 0 : g.affixWrapper, s == null ? void 0 : s.affixWrapper, s == null ? void 0 : s.variant), M = (c || $) && /* @__PURE__ */ f.createElement("span", {
1124
+ className: y("".concat(l, "-suffix"), s == null ? void 0 : s.suffix),
1125
+ style: O == null ? void 0 : O.suffix
1126
+ }, Q, c);
1127
+ V = /* @__PURE__ */ f.createElement(ie, Re({
1128
+ className: ue,
1129
+ style: O == null ? void 0 : O.affixWrapper,
1130
+ onClick: p
1131
+ }, F == null ? void 0 : F.affixWrapper, {
1132
+ ref: _
1133
+ }), d && /* @__PURE__ */ f.createElement("span", {
1134
+ className: y("".concat(l, "-prefix"), s == null ? void 0 : s.prefix),
1135
+ style: O == null ? void 0 : O.prefix
1136
+ }, d), V, M);
1137
+ }
1138
+ if (tt(e)) {
1139
+ var X = "".concat(l, "-group"), A = "".concat(X, "-addon"), le = "".concat(X, "-wrapper"), fe = y("".concat(l, "-wrapper"), X, g == null ? void 0 : g.wrapper, s == null ? void 0 : s.wrapper), be = y(le, ce({}, "".concat(le, "-disabled"), z), g == null ? void 0 : g.group, s == null ? void 0 : s.groupWrapper);
1140
+ V = /* @__PURE__ */ f.createElement(v, {
1141
+ className: be,
1142
+ ref: ee
1143
+ }, /* @__PURE__ */ f.createElement(W, {
1144
+ className: fe
1145
+ }, u && /* @__PURE__ */ f.createElement(x, {
1146
+ className: A
1147
+ }, u), V, E && /* @__PURE__ */ f.createElement(x, {
1148
+ className: A
1149
+ }, E)));
1150
+ }
1151
+ return /* @__PURE__ */ f.cloneElement(V, {
1152
+ className: y((a = V.props) === null || a === void 0 ? void 0 : a.className, R) || null,
1153
+ style: ae(ae({}, (n = V.props) === null || n === void 0 ? void 0 : n.style), Y),
1154
+ hidden: h
1155
+ });
1156
+ }), nt = ["show"];
1157
+ function $r(e, r) {
1158
+ return K.useMemo(function() {
1159
+ var t = {};
1160
+ r && (t.show = Le(r) === "object" && r.formatter ? r.formatter : !!r), t = ae(ae({}, t), e);
1161
+ var a = t, n = a.show, i = Be(a, nt);
1162
+ return ae(ae({}, i), {}, {
1163
+ show: !!n,
1164
+ showFormatter: typeof n == "function" ? n : void 0,
1165
+ strategy: i.strategy || function(o) {
1166
+ return o.length;
1167
+ }
1168
+ });
1169
+ }, [e, r]);
1170
+ }
1171
+ var ot = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"], it = /* @__PURE__ */ _e(function(e, r) {
1172
+ var t = e.autoComplete, a = e.onChange, n = e.onFocus, i = e.onBlur, o = e.onPressEnter, l = e.onKeyDown, d = e.onKeyUp, c = e.prefixCls, u = c === void 0 ? "rc-input" : c, E = e.disabled, R = e.htmlSize, Y = e.className, z = e.maxLength, j = e.suffix, Z = e.showCount, L = e.count, $ = e.type, T = $ === void 0 ? "text" : $, J = e.classes, h = e.classNames, g = e.styles, s = e.onCompositionStart, F = e.onCompositionEnd, O = Be(e, ot), C = Ue(!1), N = me(C, 2), P = N[0], ie = N[1], v = ge(!1), W = ge(!1), x = ge(null), _ = ge(null), p = function(m) {
1173
+ x.current && xr(x.current, m);
1174
+ }, ne = De(e.defaultValue, {
1175
+ value: e.value
1176
+ }), V = me(ne, 2), ee = V[0], Q = V[1], I = ee == null ? "" : String(ee), H = Ue(null), ve = me(H, 2), q = ve[0], ue = ve[1], M = $r(L, Z), X = M.max || z, A = M.strategy(I), le = !!X && A > X;
1177
+ er(r, function() {
1178
+ var B;
1179
+ return {
1180
+ focus: p,
1181
+ blur: function() {
1182
+ var G;
1183
+ (G = x.current) === null || G === void 0 || G.blur();
1184
+ },
1185
+ setSelectionRange: function(G, $e, xe) {
1186
+ var he;
1187
+ (he = x.current) === null || he === void 0 || he.setSelectionRange(G, $e, xe);
1188
+ },
1189
+ select: function() {
1190
+ var G;
1191
+ (G = x.current) === null || G === void 0 || G.select();
1192
+ },
1193
+ input: x.current,
1194
+ nativeElement: ((B = _.current) === null || B === void 0 ? void 0 : B.nativeElement) || x.current
1195
+ };
1196
+ }), Ee(function() {
1197
+ W.current && (W.current = !1), ie(function(B) {
1198
+ return B && E ? !1 : B;
1199
+ });
1200
+ }, [E]);
1201
+ var fe = function(m, G, $e) {
1202
+ var xe = G;
1203
+ if (!v.current && M.exceedFormatter && M.max && M.strategy(G) > M.max) {
1204
+ if (xe = M.exceedFormatter(G, {
1205
+ max: M.max
1206
+ }), G !== xe) {
1207
+ var he, Ce;
1208
+ ue([((he = x.current) === null || he === void 0 ? void 0 : he.selectionStart) || 0, ((Ce = x.current) === null || Ce === void 0 ? void 0 : Ce.selectionEnd) || 0]);
1209
+ }
1210
+ } else if ($e.source === "compositionEnd")
1211
+ return;
1212
+ Q(xe), x.current && Oe(x.current, m, a, xe);
1213
+ };
1214
+ Ee(function() {
1215
+ if (q) {
1216
+ var B;
1217
+ (B = x.current) === null || B === void 0 || B.setSelectionRange.apply(B, tr(q));
1218
+ }
1219
+ }, [q]);
1220
+ var be = function(m) {
1221
+ fe(m, m.target.value, {
1222
+ source: "change"
1223
+ });
1224
+ }, pe = function(m) {
1225
+ v.current = !1, fe(m, m.currentTarget.value, {
1226
+ source: "compositionEnd"
1227
+ }), F == null || F(m);
1228
+ }, se = function(m) {
1229
+ o && m.key === "Enter" && !W.current && (W.current = !0, o(m)), l == null || l(m);
1230
+ }, b = function(m) {
1231
+ m.key === "Enter" && (W.current = !1), d == null || d(m);
1232
+ }, w = function(m) {
1233
+ ie(!0), n == null || n(m);
1234
+ }, oe = function(m) {
1235
+ W.current && (W.current = !1), ie(!1), i == null || i(m);
1236
+ }, re = function(m) {
1237
+ Q(""), p(), x.current && Oe(x.current, m, a);
1238
+ }, k = le && "".concat(u, "-out-of-range"), te = function() {
1239
+ var m = Br(e, [
1240
+ "prefixCls",
1241
+ "onPressEnter",
1242
+ "addonBefore",
1243
+ "addonAfter",
1244
+ "prefix",
1245
+ "suffix",
1246
+ "allowClear",
1247
+ // Input elements must be either controlled or uncontrolled,
1248
+ // specify either the value prop, or the defaultValue prop, but not both.
1249
+ "defaultValue",
1250
+ "showCount",
1251
+ "count",
1252
+ "classes",
1253
+ "htmlSize",
1254
+ "styles",
1255
+ "classNames",
1256
+ "onClear"
1257
+ ]);
1258
+ return /* @__PURE__ */ f.createElement("input", Re({
1259
+ autoComplete: t
1260
+ }, m, {
1261
+ onChange: be,
1262
+ onFocus: w,
1263
+ onBlur: oe,
1264
+ onKeyDown: se,
1265
+ onKeyUp: b,
1266
+ className: y(u, ce({}, "".concat(u, "-disabled"), E), h == null ? void 0 : h.input),
1267
+ style: g == null ? void 0 : g.input,
1268
+ ref: x,
1269
+ size: R,
1270
+ type: T,
1271
+ onCompositionStart: function($e) {
1272
+ v.current = !0, s == null || s($e);
1273
+ },
1274
+ onCompositionEnd: pe
1275
+ }));
1276
+ }, we = function() {
1277
+ var m = Number(X) > 0;
1278
+ if (j || M.show) {
1279
+ var G = M.showFormatter ? M.showFormatter({
1280
+ value: I,
1281
+ count: A,
1282
+ maxLength: X
1283
+ }) : "".concat(A).concat(m ? " / ".concat(X) : "");
1284
+ return /* @__PURE__ */ f.createElement(f.Fragment, null, M.show && /* @__PURE__ */ f.createElement("span", {
1285
+ className: y("".concat(u, "-show-count-suffix"), ce({}, "".concat(u, "-show-count-has-suffix"), !!j), h == null ? void 0 : h.count),
1286
+ style: ae({}, g == null ? void 0 : g.count)
1287
+ }, G), j);
1288
+ }
1289
+ return null;
1290
+ };
1291
+ return /* @__PURE__ */ f.createElement(Sr, Re({}, O, {
1292
+ prefixCls: u,
1293
+ className: y(Y, k),
1294
+ handleReset: re,
1295
+ value: I,
1296
+ focused: P,
1297
+ triggerFocus: p,
1298
+ suffix: we(),
1299
+ disabled: E,
1300
+ classes: J,
1301
+ classNames: h,
1302
+ styles: g,
1303
+ ref: _
1304
+ }), te());
1305
+ });
1306
+ const Cr = (e) => {
1307
+ let r;
1308
+ return typeof e == "object" && (e != null && e.clearIcon) ? r = e : e && (r = {
1309
+ clearIcon: /* @__PURE__ */ f.createElement(Ar, null)
1310
+ }), r;
1311
+ };
1312
+ function lt(e, r) {
1313
+ const t = ge([]), a = () => {
1314
+ t.current.push(setTimeout(() => {
1315
+ var n, i, o, l;
1316
+ !((n = e.current) === null || n === void 0) && n.input && ((i = e.current) === null || i === void 0 ? void 0 : i.input.getAttribute("type")) === "password" && (!((o = e.current) === null || o === void 0) && o.input.hasAttribute("value")) && ((l = e.current) === null || l === void 0 || l.input.removeAttribute("value"));
1317
+ }));
1318
+ };
1319
+ return Ee(() => (r && a(), () => t.current.forEach((n) => {
1320
+ n && clearTimeout(n);
1321
+ })), []), a;
1322
+ }
1323
+ function st(e) {
1324
+ return !!(e.prefix || e.suffix || e.allowClear || e.showCount);
1325
+ }
1326
+ var dt = function(e, r) {
1327
+ var t = {};
1328
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && r.indexOf(a) < 0 && (t[a] = e[a]);
1329
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, a = Object.getOwnPropertySymbols(e); n < a.length; n++)
1330
+ r.indexOf(a[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[n]) && (t[a[n]] = e[a[n]]);
1331
+ return t;
1332
+ };
1333
+ const ct = /* @__PURE__ */ _e((e, r) => {
1334
+ const {
1335
+ prefixCls: t,
1336
+ bordered: a = !0,
1337
+ status: n,
1338
+ size: i,
1339
+ disabled: o,
1340
+ onBlur: l,
1341
+ onFocus: d,
1342
+ suffix: c,
1343
+ allowClear: u,
1344
+ addonAfter: E,
1345
+ addonBefore: R,
1346
+ className: Y,
1347
+ style: z,
1348
+ styles: j,
1349
+ rootClassName: Z,
1350
+ onChange: L,
1351
+ classNames: $,
1352
+ variant: T,
1353
+ _skipAddonWarning: J
1354
+ } = e, h = dt(e, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant", "_skipAddonWarning"]);
1355
+ if (process.env.NODE_ENV !== "production") {
1356
+ const {
1357
+ deprecated: k
1358
+ } = Fe("Input");
1359
+ k(!("bordered" in e), "bordered", "variant"), J || [["addonAfter", "Space.Compact"], ["addonBefore", "Space.Compact"]].forEach(([te, we]) => {
1360
+ k(!(te in e), te, we);
1361
+ });
1362
+ }
1363
+ const {
1364
+ getPrefixCls: g,
1365
+ direction: s,
1366
+ allowClear: F,
1367
+ autoComplete: O,
1368
+ className: C,
1369
+ style: N,
1370
+ classNames: P,
1371
+ styles: ie
1372
+ } = ar("input"), v = g("input", t), W = ge(null), x = nr(v), [_, p, ne] = hr(v, Z), [V] = rt(v, x), {
1373
+ compactSize: ee,
1374
+ compactItemClassnames: Q
1375
+ } = or(v, s), I = ir((k) => {
1376
+ var te;
1377
+ return (te = i ?? ee) !== null && te !== void 0 ? te : k;
1378
+ }), H = f.useContext(lr), ve = o ?? H, {
1379
+ status: q,
1380
+ hasFeedback: ue,
1381
+ feedbackIcon: M
1382
+ } = Rr(sr), X = cr(q, n), A = st(e) || !!ue, le = ge(A);
1383
+ if (process.env.NODE_ENV !== "production") {
1384
+ const k = Fe("Input");
1385
+ Ee(() => {
1386
+ var te;
1387
+ A && !le.current && process.env.NODE_ENV !== "production" && k(document.activeElement === ((te = W.current) === null || te === void 0 ? void 0 : te.input), "usage", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), le.current = A;
1388
+ }, [A]);
1389
+ }
1390
+ const fe = lt(W, !0), be = (k) => {
1391
+ fe(), l == null || l(k);
1392
+ }, pe = (k) => {
1393
+ fe(), d == null || d(k);
1394
+ }, se = (k) => {
1395
+ fe(), L == null || L(k);
1396
+ }, b = (ue || c) && /* @__PURE__ */ f.createElement(f.Fragment, null, c, ue && M), w = Cr(u ?? F), [oe, re] = dr("input", T, a);
1397
+ return _(V(/* @__PURE__ */ f.createElement(it, Object.assign({
1398
+ ref: jr(r, W),
1399
+ prefixCls: v,
1400
+ autoComplete: O
1401
+ }, h, {
1402
+ disabled: ve,
1403
+ onBlur: be,
1404
+ onFocus: pe,
1405
+ style: Object.assign(Object.assign({}, N), z),
1406
+ styles: Object.assign(Object.assign({}, ie), j),
1407
+ suffix: b,
1408
+ allowClear: w,
1409
+ className: y(Y, Z, ne, x, Q, C),
1410
+ onChange: se,
1411
+ addonBefore: R && /* @__PURE__ */ f.createElement(Ke, {
1412
+ form: !0,
1413
+ space: !0
1414
+ }, R),
1415
+ addonAfter: E && /* @__PURE__ */ f.createElement(Ke, {
1416
+ form: !0,
1417
+ space: !0
1418
+ }, E),
1419
+ classNames: Object.assign(Object.assign(Object.assign({}, $), P), {
1420
+ input: y({
1421
+ [`${v}-sm`]: I === "small",
1422
+ [`${v}-lg`]: I === "large",
1423
+ [`${v}-rtl`]: s === "rtl"
1424
+ }, $ == null ? void 0 : $.input, P.input, p),
1425
+ variant: y({
1426
+ [`${v}-${oe}`]: re
1427
+ }, We(v, X)),
1428
+ affixWrapper: y({
1429
+ [`${v}-affix-wrapper-sm`]: I === "small",
1430
+ [`${v}-affix-wrapper-lg`]: I === "large",
1431
+ [`${v}-affix-wrapper-rtl`]: s === "rtl"
1432
+ }, p),
1433
+ wrapper: y({
1434
+ [`${v}-group-rtl`]: s === "rtl"
1435
+ }, p),
1436
+ groupWrapper: y({
1437
+ [`${v}-group-wrapper-sm`]: I === "small",
1438
+ [`${v}-group-wrapper-lg`]: I === "large",
1439
+ [`${v}-group-wrapper-rtl`]: s === "rtl",
1440
+ [`${v}-group-wrapper-${oe}`]: re
1441
+ }, We(`${v}-group-wrapper`, X, ue), p)
1442
+ })
1443
+ }))));
1444
+ });
1445
+ process.env.NODE_ENV !== "production" && (ct.displayName = "Input");
1446
+ var ut = `
1447
+ min-height:0 !important;
1448
+ max-height:none !important;
1449
+ height:0 !important;
1450
+ visibility:hidden !important;
1451
+ overflow:hidden !important;
1452
+ position:absolute !important;
1453
+ z-index:-1000 !important;
1454
+ top:0 !important;
1455
+ right:0 !important;
1456
+ pointer-events: none !important;
1457
+ `, ft = ["letter-spacing", "line-height", "padding-top", "padding-bottom", "font-family", "font-weight", "font-size", "font-variant", "text-rendering", "text-transform", "width", "text-indent", "padding-left", "padding-right", "border-width", "box-sizing", "word-break", "white-space"], Ae = {}, de;
1458
+ function pt(e) {
1459
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = e.getAttribute("id") || e.getAttribute("data-reactid") || e.getAttribute("name");
1460
+ if (r && Ae[t])
1461
+ return Ae[t];
1462
+ var a = window.getComputedStyle(e), n = a.getPropertyValue("box-sizing") || a.getPropertyValue("-moz-box-sizing") || a.getPropertyValue("-webkit-box-sizing"), i = parseFloat(a.getPropertyValue("padding-bottom")) + parseFloat(a.getPropertyValue("padding-top")), o = parseFloat(a.getPropertyValue("border-bottom-width")) + parseFloat(a.getPropertyValue("border-top-width")), l = ft.map(function(c) {
1463
+ return "".concat(c, ":").concat(a.getPropertyValue(c));
1464
+ }).join(";"), d = {
1465
+ sizingStyle: l,
1466
+ paddingSize: i,
1467
+ borderSize: o,
1468
+ boxSizing: n
1469
+ };
1470
+ return r && t && (Ae[t] = d), d;
1471
+ }
1472
+ function gt(e) {
1473
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
1474
+ de || (de = document.createElement("textarea"), de.setAttribute("tab-index", "-1"), de.setAttribute("aria-hidden", "true"), de.setAttribute("name", "hiddenTextarea"), document.body.appendChild(de)), e.getAttribute("wrap") ? de.setAttribute("wrap", e.getAttribute("wrap")) : de.removeAttribute("wrap");
1475
+ var n = pt(e, r), i = n.paddingSize, o = n.borderSize, l = n.boxSizing, d = n.sizingStyle;
1476
+ de.setAttribute("style", "".concat(d, ";").concat(ut)), de.value = e.value || e.placeholder || "";
1477
+ var c = void 0, u = void 0, E, R = de.scrollHeight;
1478
+ if (l === "border-box" ? R += o : l === "content-box" && (R -= i), t !== null || a !== null) {
1479
+ de.value = " ";
1480
+ var Y = de.scrollHeight - i;
1481
+ t !== null && (c = Y * t, l === "border-box" && (c = c + i + o), R = Math.max(c, R)), a !== null && (u = Y * a, l === "border-box" && (u = u + i + o), E = R > u ? "" : "hidden", R = Math.min(u, R));
1482
+ }
1483
+ var z = {
1484
+ height: R,
1485
+ overflowY: E,
1486
+ resize: "none"
1487
+ };
1488
+ return c && (z.minHeight = c), u && (z.maxHeight = u), z;
1489
+ }
1490
+ var vt = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "className", "style", "disabled", "onChange", "onInternalAutoSize"], je = 0, Ne = 1, Te = 2, mt = /* @__PURE__ */ K.forwardRef(function(e, r) {
1491
+ var t = e, a = t.prefixCls, n = t.defaultValue, i = t.value, o = t.autoSize, l = t.onResize, d = t.className, c = t.style, u = t.disabled, E = t.onChange, R = t.onInternalAutoSize, Y = Be(t, vt), z = De(n, {
1492
+ value: i,
1493
+ postState: function(H) {
1494
+ return H ?? "";
1495
+ }
1496
+ }), j = me(z, 2), Z = j[0], L = j[1], $ = function(H) {
1497
+ L(H.target.value), E == null || E(H);
1498
+ }, T = K.useRef();
1499
+ K.useImperativeHandle(r, function() {
1500
+ return {
1501
+ textArea: T.current
1502
+ };
1503
+ });
1504
+ var J = K.useMemo(function() {
1505
+ return o && Le(o) === "object" ? [o.minRows, o.maxRows] : [];
1506
+ }, [o]), h = me(J, 2), g = h[0], s = h[1], F = !!o, O = K.useState(Te), C = me(O, 2), N = C[0], P = C[1], ie = K.useState(), v = me(ie, 2), W = v[0], x = v[1], _ = function() {
1507
+ P(je), process.env.NODE_ENV === "test" && (R == null || R());
1508
+ };
1509
+ Me(function() {
1510
+ F && _();
1511
+ }, [i, g, s, F]), Me(function() {
1512
+ if (N === je)
1513
+ P(Ne);
1514
+ else if (N === Ne) {
1515
+ var I = gt(T.current, !1, g, s);
1516
+ P(Te), x(I);
1517
+ }
1518
+ }, [N]);
1519
+ var p = K.useRef(), ne = function() {
1520
+ qe.cancel(p.current);
1521
+ }, V = function(H) {
1522
+ N === Te && (l == null || l(H), o && (ne(), p.current = qe(function() {
1523
+ _();
1524
+ })));
1525
+ };
1526
+ K.useEffect(function() {
1527
+ return ne;
1528
+ }, []);
1529
+ var ee = F ? W : null, Q = ae(ae({}, c), ee);
1530
+ return (N === je || N === Ne) && (Q.overflowY = "hidden", Q.overflowX = "hidden"), /* @__PURE__ */ K.createElement(Nr, {
1531
+ onResize: V,
1532
+ disabled: !(o || l)
1533
+ }, /* @__PURE__ */ K.createElement("textarea", Re({}, Y, {
1534
+ ref: T,
1535
+ style: Q,
1536
+ className: y(a, d, ce({}, "".concat(a, "-disabled"), u)),
1537
+ disabled: u,
1538
+ value: Z,
1539
+ onChange: $
1540
+ })));
1541
+ }), bt = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "showCount", "count", "className", "style", "disabled", "hidden", "classNames", "styles", "onResize", "onClear", "onPressEnter", "readOnly", "autoSize", "onKeyDown"], ht = /* @__PURE__ */ f.forwardRef(function(e, r) {
1542
+ var t, a = e.defaultValue, n = e.value, i = e.onFocus, o = e.onBlur, l = e.onChange, d = e.allowClear, c = e.maxLength, u = e.onCompositionStart, E = e.onCompositionEnd, R = e.suffix, Y = e.prefixCls, z = Y === void 0 ? "rc-textarea" : Y, j = e.showCount, Z = e.count, L = e.className, $ = e.style, T = e.disabled, J = e.hidden, h = e.classNames, g = e.styles, s = e.onResize, F = e.onClear, O = e.onPressEnter, C = e.readOnly, N = e.autoSize, P = e.onKeyDown, ie = Be(e, bt), v = De(a, {
1543
+ value: n,
1544
+ defaultValue: a
1545
+ }), W = me(v, 2), x = W[0], _ = W[1], p = x == null ? "" : String(x), ne = f.useState(!1), V = me(ne, 2), ee = V[0], Q = V[1], I = f.useRef(!1), H = f.useState(null), ve = me(H, 2), q = ve[0], ue = ve[1], M = ge(null), X = ge(null), A = function() {
1546
+ var S;
1547
+ return (S = X.current) === null || S === void 0 ? void 0 : S.textArea;
1548
+ }, le = function() {
1549
+ A().focus();
1550
+ };
1551
+ er(r, function() {
1552
+ var U;
1553
+ return {
1554
+ resizableTextArea: X.current,
1555
+ focus: le,
1556
+ blur: function() {
1557
+ A().blur();
1558
+ },
1559
+ nativeElement: ((U = M.current) === null || U === void 0 ? void 0 : U.nativeElement) || A()
1560
+ };
1561
+ }), Ee(function() {
1562
+ Q(function(U) {
1563
+ return !T && U;
1564
+ });
1565
+ }, [T]);
1566
+ var fe = f.useState(null), be = me(fe, 2), pe = be[0], se = be[1];
1567
+ f.useEffect(function() {
1568
+ if (pe) {
1569
+ var U;
1570
+ (U = A()).setSelectionRange.apply(U, tr(pe));
1571
+ }
1572
+ }, [pe]);
1573
+ var b = $r(Z, j), w = (t = b.max) !== null && t !== void 0 ? t : c, oe = Number(w) > 0, re = b.strategy(p), k = !!w && re > w, te = function(S, Se) {
1574
+ var Ie = Se;
1575
+ !I.current && b.exceedFormatter && b.max && b.strategy(Se) > b.max && (Ie = b.exceedFormatter(Se, {
1576
+ max: b.max
1577
+ }), Se !== Ie && se([A().selectionStart || 0, A().selectionEnd || 0])), _(Ie), Oe(S.currentTarget, S, l, Ie);
1578
+ }, we = function(S) {
1579
+ I.current = !0, u == null || u(S);
1580
+ }, B = function(S) {
1581
+ I.current = !1, te(S, S.currentTarget.value), E == null || E(S);
1582
+ }, m = function(S) {
1583
+ te(S, S.target.value);
1584
+ }, G = function(S) {
1585
+ S.key === "Enter" && O && O(S), P == null || P(S);
1586
+ }, $e = function(S) {
1587
+ Q(!0), i == null || i(S);
1588
+ }, xe = function(S) {
1589
+ Q(!1), o == null || o(S);
1590
+ }, he = function(S) {
1591
+ _(""), le(), Oe(A(), S, l);
1592
+ }, Ce = R, ye;
1593
+ b.show && (b.showFormatter ? ye = b.showFormatter({
1594
+ value: p,
1595
+ count: re,
1596
+ maxLength: w
1597
+ }) : ye = "".concat(re).concat(oe ? " / ".concat(w) : ""), Ce = /* @__PURE__ */ f.createElement(f.Fragment, null, Ce, /* @__PURE__ */ f.createElement("span", {
1598
+ className: y("".concat(z, "-data-count"), h == null ? void 0 : h.count),
1599
+ style: g == null ? void 0 : g.count
1600
+ }, ye)));
1601
+ var wr = function(S) {
1602
+ var Se;
1603
+ s == null || s(S), (Se = A()) !== null && Se !== void 0 && Se.style.height && ue(!0);
1604
+ }, yr = !N && !j && !d;
1605
+ return /* @__PURE__ */ f.createElement(Sr, {
1606
+ ref: M,
1607
+ value: p,
1608
+ allowClear: d,
1609
+ handleReset: he,
1610
+ suffix: Ce,
1611
+ prefixCls: z,
1612
+ classNames: ae(ae({}, h), {}, {
1613
+ affixWrapper: y(h == null ? void 0 : h.affixWrapper, ce(ce({}, "".concat(z, "-show-count"), j), "".concat(z, "-textarea-allow-clear"), d))
1614
+ }),
1615
+ disabled: T,
1616
+ focused: ee,
1617
+ className: y(L, k && "".concat(z, "-out-of-range")),
1618
+ style: ae(ae({}, $), q && !yr ? {
1619
+ height: "auto"
1620
+ } : {}),
1621
+ dataAttrs: {
1622
+ affixWrapper: {
1623
+ "data-count": typeof ye == "string" ? ye : void 0
1624
+ }
1625
+ },
1626
+ hidden: J,
1627
+ readOnly: C,
1628
+ onClear: F
1629
+ }, /* @__PURE__ */ f.createElement(mt, Re({}, ie, {
1630
+ autoSize: N,
1631
+ maxLength: c,
1632
+ onKeyDown: G,
1633
+ onChange: m,
1634
+ onFocus: $e,
1635
+ onBlur: xe,
1636
+ onCompositionStart: we,
1637
+ onCompositionEnd: B,
1638
+ className: y(h == null ? void 0 : h.textarea),
1639
+ style: ae(ae({}, g == null ? void 0 : g.textarea), {}, {
1640
+ resize: $ == null ? void 0 : $.resize
1641
+ }),
1642
+ disabled: T,
1643
+ prefixCls: z,
1644
+ onResize: wr,
1645
+ ref: X,
1646
+ readOnly: C
1647
+ })));
1648
+ });
1649
+ const xt = (e) => {
1650
+ const {
1651
+ componentCls: r,
1652
+ paddingLG: t
1653
+ } = e, a = `${r}-textarea`;
1654
+ return {
1655
+ // Raw Textarea
1656
+ [`textarea${r}`]: {
1657
+ maxWidth: "100%",
1658
+ // prevent textarea resize from coming out of its container
1659
+ height: "auto",
1660
+ minHeight: e.controlHeight,
1661
+ lineHeight: e.lineHeight,
1662
+ verticalAlign: "bottom",
1663
+ transition: `all ${e.motionDurationSlow}`,
1664
+ resize: "vertical",
1665
+ [`&${r}-mouse-active`]: {
1666
+ transition: `all ${e.motionDurationSlow}, height 0s, width 0s`
1667
+ }
1668
+ },
1669
+ // Wrapper for resize
1670
+ [`${r}-textarea-affix-wrapper-resize-dirty`]: {
1671
+ width: "auto"
1672
+ },
1673
+ [a]: {
1674
+ position: "relative",
1675
+ "&-show-count": {
1676
+ [`${r}-data-count`]: {
1677
+ position: "absolute",
1678
+ bottom: e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),
1679
+ insetInlineEnd: 0,
1680
+ color: e.colorTextDescription,
1681
+ whiteSpace: "nowrap",
1682
+ pointerEvents: "none"
1683
+ }
1684
+ },
1685
+ [`
1686
+ &-allow-clear > ${r},
1687
+ &-affix-wrapper${a}-has-feedback ${r}
1688
+ `]: {
1689
+ paddingInlineEnd: t
1690
+ },
1691
+ [`&-affix-wrapper${r}-affix-wrapper`]: {
1692
+ padding: 0,
1693
+ [`> textarea${r}`]: {
1694
+ fontSize: "inherit",
1695
+ border: "none",
1696
+ outline: "none",
1697
+ background: "transparent",
1698
+ minHeight: e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),
1699
+ "&:focus": {
1700
+ boxShadow: "none !important"
1701
+ }
1702
+ },
1703
+ [`${r}-suffix`]: {
1704
+ margin: 0,
1705
+ "> *:not(:last-child)": {
1706
+ marginInline: 0
1707
+ },
1708
+ // Clear Icon
1709
+ [`${r}-clear-icon`]: {
1710
+ position: "absolute",
1711
+ insetInlineEnd: e.paddingInline,
1712
+ insetBlockStart: e.paddingXS
1713
+ },
1714
+ // Feedback Icon
1715
+ [`${a}-suffix`]: {
1716
+ position: "absolute",
1717
+ top: 0,
1718
+ insetInlineEnd: e.paddingInline,
1719
+ bottom: 0,
1720
+ zIndex: 1,
1721
+ display: "inline-flex",
1722
+ alignItems: "center",
1723
+ margin: "auto",
1724
+ pointerEvents: "none"
1725
+ }
1726
+ }
1727
+ },
1728
+ [`&-affix-wrapper${r}-affix-wrapper-rtl`]: {
1729
+ [`${r}-suffix`]: {
1730
+ [`${r}-data-count`]: {
1731
+ direction: "ltr",
1732
+ insetInlineStart: 0
1733
+ }
1734
+ }
1735
+ },
1736
+ [`&-affix-wrapper${r}-affix-wrapper-sm`]: {
1737
+ [`${r}-suffix`]: {
1738
+ [`${r}-clear-icon`]: {
1739
+ insetInlineEnd: e.paddingInlineSM
1740
+ }
1741
+ }
1742
+ }
1743
+ }
1744
+ };
1745
+ }, St = He(["Input", "TextArea"], (e) => {
1746
+ const r = ze(e, Pe(e));
1747
+ return xt(r);
1748
+ }, Ve, {
1749
+ resetFont: !1
1750
+ });
1751
+ var $t = function(e, r) {
1752
+ var t = {};
1753
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && r.indexOf(a) < 0 && (t[a] = e[a]);
1754
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, a = Object.getOwnPropertySymbols(e); n < a.length; n++)
1755
+ r.indexOf(a[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[n]) && (t[a[n]] = e[a[n]]);
1756
+ return t;
1757
+ };
1758
+ const It = /* @__PURE__ */ _e((e, r) => {
1759
+ var t;
1760
+ const {
1761
+ prefixCls: a,
1762
+ bordered: n = !0,
1763
+ size: i,
1764
+ disabled: o,
1765
+ status: l,
1766
+ allowClear: d,
1767
+ classNames: c,
1768
+ rootClassName: u,
1769
+ className: E,
1770
+ style: R,
1771
+ styles: Y,
1772
+ variant: z,
1773
+ showCount: j,
1774
+ onMouseDown: Z,
1775
+ onResize: L
1776
+ } = e, $ = $t(e, ["prefixCls", "bordered", "size", "disabled", "status", "allowClear", "classNames", "rootClassName", "className", "style", "styles", "variant", "showCount", "onMouseDown", "onResize"]);
1777
+ if (process.env.NODE_ENV !== "production") {
1778
+ const {
1779
+ deprecated: b
1780
+ } = Fe("TextArea");
1781
+ b(!("bordered" in e), "bordered", "variant");
1782
+ }
1783
+ const {
1784
+ getPrefixCls: T,
1785
+ direction: J,
1786
+ allowClear: h,
1787
+ autoComplete: g,
1788
+ className: s,
1789
+ style: F,
1790
+ classNames: O,
1791
+ styles: C
1792
+ } = ar("textArea"), N = K.useContext(lr), P = o ?? N, {
1793
+ status: ie,
1794
+ hasFeedback: v,
1795
+ feedbackIcon: W
1796
+ } = K.useContext(sr), x = cr(ie, l), _ = K.useRef(null);
1797
+ K.useImperativeHandle(r, () => {
1798
+ var b;
1799
+ return {
1800
+ resizableTextArea: (b = _.current) === null || b === void 0 ? void 0 : b.resizableTextArea,
1801
+ focus: (w) => {
1802
+ var oe, re;
1803
+ xr((re = (oe = _.current) === null || oe === void 0 ? void 0 : oe.resizableTextArea) === null || re === void 0 ? void 0 : re.textArea, w);
1804
+ },
1805
+ blur: () => {
1806
+ var w;
1807
+ return (w = _.current) === null || w === void 0 ? void 0 : w.blur();
1808
+ }
1809
+ };
1810
+ });
1811
+ const p = T("input", a), ne = nr(p), [V, ee, Q] = hr(p, u), [I] = St(p, ne), {
1812
+ compactSize: H,
1813
+ compactItemClassnames: ve
1814
+ } = or(p, J), q = ir((b) => {
1815
+ var w;
1816
+ return (w = i ?? H) !== null && w !== void 0 ? w : b;
1817
+ }), [ue, M] = dr("textArea", z, n), X = Cr(d ?? h), [A, le] = K.useState(!1), [fe, be] = K.useState(!1), pe = (b) => {
1818
+ le(!0), Z == null || Z(b);
1819
+ const w = () => {
1820
+ le(!1), document.removeEventListener("mouseup", w);
1821
+ };
1822
+ document.addEventListener("mouseup", w);
1823
+ }, se = (b) => {
1824
+ var w, oe;
1825
+ if (L == null || L(b), A && typeof getComputedStyle == "function") {
1826
+ const re = (oe = (w = _.current) === null || w === void 0 ? void 0 : w.nativeElement) === null || oe === void 0 ? void 0 : oe.querySelector("textarea");
1827
+ re && getComputedStyle(re).resize === "both" && be(!0);
1828
+ }
1829
+ };
1830
+ return V(I(/* @__PURE__ */ K.createElement(ht, Object.assign({
1831
+ autoComplete: g
1832
+ }, $, {
1833
+ style: Object.assign(Object.assign({}, F), R),
1834
+ styles: Object.assign(Object.assign({}, C), Y),
1835
+ disabled: P,
1836
+ allowClear: X,
1837
+ className: y(
1838
+ Q,
1839
+ ne,
1840
+ E,
1841
+ u,
1842
+ ve,
1843
+ s,
1844
+ // Only for wrapper
1845
+ fe && `${p}-textarea-affix-wrapper-resize-dirty`
1846
+ ),
1847
+ classNames: Object.assign(Object.assign(Object.assign({}, c), O), {
1848
+ textarea: y({
1849
+ [`${p}-sm`]: q === "small",
1850
+ [`${p}-lg`]: q === "large"
1851
+ }, ee, c == null ? void 0 : c.textarea, O.textarea, A && `${p}-mouse-active`),
1852
+ variant: y({
1853
+ [`${p}-${ue}`]: M
1854
+ }, We(p, x)),
1855
+ affixWrapper: y(`${p}-textarea-affix-wrapper`, {
1856
+ [`${p}-affix-wrapper-rtl`]: J === "rtl",
1857
+ [`${p}-affix-wrapper-sm`]: q === "small",
1858
+ [`${p}-affix-wrapper-lg`]: q === "large",
1859
+ [`${p}-textarea-show-count`]: j || ((t = e.count) === null || t === void 0 ? void 0 : t.show)
1860
+ }, ee)
1861
+ }),
1862
+ prefixCls: p,
1863
+ suffix: v && /* @__PURE__ */ K.createElement("span", {
1864
+ className: `${p}-textarea-suffix`
1865
+ }, W),
1866
+ showCount: j,
1867
+ ref: _,
1868
+ onResize: se,
1869
+ onMouseDown: pe
1870
+ }))));
1871
+ });
1872
+ export {
1873
+ Sr as B,
1874
+ ct as I,
1875
+ It as T,
1876
+ Pe as a,
1877
+ lt as b,
1878
+ Fr as c,
1879
+ zt as d,
1880
+ Lr as e,
1881
+ Gr as f,
1882
+ br as g,
1883
+ Kr as h,
1884
+ Ve as i,
1885
+ Vr as j,
1886
+ qr as k,
1887
+ Xr as l,
1888
+ Rt as m,
1889
+ Pr as n,
1890
+ Ur as o,
1891
+ fr as p,
1892
+ Ge as q,
1893
+ mr as r,
1894
+ ur as s,
1895
+ xr as t,
1896
+ rt as u
1897
+ };