@yuku123/z-cognition-component 2.0.2 → 2.0.4

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 (243) hide show
  1. package/dist-lib/BaseInput-rxw05EpT.js +1096 -0
  2. package/dist-lib/ClockCircleOutlined-DqK04lTb.js +12 -0
  3. package/dist-lib/Collapse-D9XOithE.js +523 -0
  4. package/dist-lib/{ConceptsPage-BOeKdDKI.js → ConceptsPage-DOf_CJlz.js} +13 -16
  5. package/dist-lib/DeleteOutlined-DnGmqa7C.js +12 -0
  6. package/dist-lib/{DocsPage-BZOBFp3c.js → DocsPage-CiC7TU96.js} +4 -4
  7. package/dist-lib/EllipsisOutlined-VzQrhleP.js +1109 -0
  8. package/dist-lib/EvidenceFormList-CrE2FzHk.js +90 -0
  9. package/dist-lib/{EyeOutlined-DGSrX-0M.js → EyeOutlined-CIFgRd6d.js} +4 -4
  10. package/dist-lib/ImpactPage-CYiuqy0S.js +68 -0
  11. package/dist-lib/{LeftOutlined-Cgo6Izj-.js → LeftOutlined-Be44-JWT.js} +1 -1
  12. package/dist-lib/{OntologyDetailPage-B8DyU8WW.js → OntologyDetailPage-mgK_NQxP.js} +99 -93
  13. package/dist-lib/{OntologyInferPage-CvcjxpBB.js → OntologyInferPage-NUaoaQpN.js} +38 -40
  14. package/dist-lib/{OntologyListPage-Cb0XfpWE.js → OntologyListPage-C9wH01y0.js} +47 -49
  15. package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +134 -0
  16. package/dist-lib/OntologyNodesPage-5kH7RHwE.js +2844 -0
  17. package/dist-lib/{OntologyValidatePage-abQVJwzV.js → OntologyValidatePage-DtkYK_l4.js} +49 -52
  18. package/dist-lib/Pagination-BuFXTevS.js +1112 -0
  19. package/dist-lib/PlusOutlined-BSTPGLOH.js +21 -0
  20. package/dist-lib/{ReloadOutlined-CS-e-TmN.js → ReloadOutlined-B26pDoyV.js} +19 -10
  21. package/dist-lib/{ResolvePage-rbQ-8nNZ.js → ResolvePage-Cz9HORZ3.js} +31 -33
  22. package/dist-lib/{RotateRightOutlined-q7zp2e47.js → RotateRightOutlined-CYlCNRvD.js} +1 -1
  23. package/dist-lib/Skeleton-CxFsInYI.js +671 -0
  24. package/dist-lib/Table-Civ838nE.js +20514 -0
  25. package/dist-lib/{Table-CDagah-g.js → Table-D1RvQXGM.js} +414 -414
  26. package/dist-lib/TermDetailPage-BtkOpbPT.js +263 -0
  27. package/dist-lib/{TermsPage-CuufAyuL.js → TermsPage-BuzCMYov.js} +28 -31
  28. package/dist-lib/_commonjsHelpers-DaMA6jEr.js +8 -0
  29. package/dist-lib/accessAk-DlxcvD0O.js +64 -0
  30. package/dist-lib/{agents-CvgRLQw2.js → agents-CabJdV6W.js} +46 -46
  31. package/dist-lib/{ai-DYDhijtn.js → ai-DZ6fqUyK.js} +32 -32
  32. package/dist-lib/{ai-chat-share-DJnybJtS.js → ai-chat-share-CYSU7UlK.js} +13 -14
  33. package/dist-lib/ak-manage-MTp2UyyK.js +805 -0
  34. package/dist-lib/{approval-3IbhY8Lp.js → approval-F9OYS1Ov.js} +25 -26
  35. package/dist-lib/{approvals-Cd6CVzz4.js → approvals-DDEl02-L.js} +42 -43
  36. package/dist-lib/{assistant-cIXgilaE.js → assistant-CcC1rvys.js} +48 -49
  37. package/dist-lib/{assistant-history-BQzH4ChB.js → assistant-history-fmy8IsJL.js} +5 -5
  38. package/dist-lib/{assistant-summary-LKTj_HKM.js → assistant-summary-kuK5-mku.js} +1 -1
  39. package/dist-lib/{audit-CxuJ5unU.js → audit-C0GYByqU.js} +1 -1
  40. package/dist-lib/{bios-BplnCOF4.js → bios-_axkM_DR.js} +128 -130
  41. package/dist-lib/callSuper-CuPJalb0.js +7 -0
  42. package/dist-lib/callSuper-CwIeyYoc.js +7 -0
  43. package/dist-lib/category-BPLw60Ia.js +76 -0
  44. package/dist-lib/causal-CcWolsb5.js +789 -0
  45. package/dist-lib/{changelog-BoGqt_81.js → changelog-BQdmpq5H.js} +2 -2
  46. package/dist-lib/changelog-DC6nlUDh.js +103 -0
  47. package/dist-lib/chat-panel-CgpP4Xf5.js +1543 -0
  48. package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +1627 -0
  49. package/dist-lib/code-space-CZ3CzVcA.js +1070 -0
  50. package/dist-lib/{colors-sdAcAcU3.js → colors-BsFEfaVs.js} +1 -1
  51. package/dist-lib/community-D9mD_Tq1.js +217 -0
  52. package/dist-lib/community-ESJc4qtl.js +70 -0
  53. package/dist-lib/community-material-page-Ct5uMwhv.js +747 -0
  54. package/dist-lib/connections-DrxmCfe3.js +1065 -0
  55. package/dist-lib/context-T27uno74.js +54 -0
  56. package/dist-lib/{createForOfIteratorHelper-DEx_aTey.js → createForOfIteratorHelper-3K1vcDqi.js} +1 -1
  57. package/dist-lib/{dayjs.min-BauDENhn.js → dayjs.min-DoEf5yCX.js} +1 -1
  58. package/dist-lib/{detail-Cx5c4KJH.js → detail-DXOJf57e.js} +39 -40
  59. package/dist-lib/detail-kPAVlzm3.js +84 -0
  60. package/dist-lib/{detail-BaX7WiWV.js → detail-lGslEB8s.js} +5847 -7224
  61. package/dist-lib/development-aLXXcLcF.js +167 -0
  62. package/dist-lib/{docx-preview-B5nQuTwk.js → docx-preview-D4v2g8Yg.js} +1 -1
  63. package/dist-lib/{downloads-C3Oz04OW.js → downloads-DFOEFvX6.js} +3 -4
  64. package/dist-lib/{edit-Cbn2eJaJ.js → edit-BbtVK23D.js} +200 -204
  65. package/dist-lib/{editor-mtaJBQXz.js → editor-DbLQFOUf.js} +25 -26
  66. package/dist-lib/editor-page-B_H0fRAI.js +1169 -0
  67. package/dist-lib/embed-BUaR8PAn.js +51816 -0
  68. package/dist-lib/embed.css +2 -2
  69. package/dist-lib/{evaluation-BoHiY8yT.js → evaluation-8Tx-3UQh.js} +14 -15
  70. package/dist-lib/execution-Dz5dBEFl.js +159 -0
  71. package/dist-lib/focus-set-lt52maBX.js +38 -0
  72. package/dist-lib/{format-UGmYKemG.js → format-CWI99NCN.js} +1 -1
  73. package/dist-lib/graph-BllA9bmL.js +44 -0
  74. package/dist-lib/graph-DacHEbKr.js +640 -0
  75. package/dist-lib/index-4tbtbcAt.js +550 -0
  76. package/dist-lib/index-B6G8CZ1v.js +915 -0
  77. package/dist-lib/index-BDWjubAD.js +390 -0
  78. package/dist-lib/{index-BEjXaDfk.js → index-BI-rknta.js} +53 -54
  79. package/dist-lib/index-BLGPH51v.js +251 -0
  80. package/dist-lib/index-BMv3kGDG.js +236 -0
  81. package/dist-lib/{index-CHBNrCMy.js → index-BOB3j3H_.js} +29 -29
  82. package/dist-lib/index-BU2GXuww.js +413 -0
  83. package/dist-lib/index-BVgdmf6r.js +2487 -0
  84. package/dist-lib/index-BWmgE7bB.js +2075 -0
  85. package/dist-lib/{index-B57Fj7Y0.js → index-Be_iqVpx.js} +50 -52
  86. package/dist-lib/{index-y7jVGGI0.js → index-Bf8IQq4A.js} +21 -23
  87. package/dist-lib/{index-DsuUGhTA.js → index-Bi7O9pQv.js} +177 -179
  88. package/dist-lib/index-Bs4MevzC.js +16075 -0
  89. package/dist-lib/{index-DBlG9uXV.js → index-Bt9F-2Fl.js} +520 -597
  90. package/dist-lib/{index-Cj4DDWyj.js → index-BtW_nQBU.js} +10 -11
  91. package/dist-lib/{index-CyKWCYMK.js → index-BuGHtvxH.js} +81 -84
  92. package/dist-lib/{index-Bc-Vin3j.js → index-CDxeB8C4.js} +47 -49
  93. package/dist-lib/index-CNBwau86.js +1166 -0
  94. package/dist-lib/{index-9aQ4BzIK.js → index-CS6H40rM.js} +24 -25
  95. package/dist-lib/index-CSnvcFg-.js +543 -0
  96. package/dist-lib/{index-o65vKUwa.js → index-CSoMwNHq.js} +82 -83
  97. package/dist-lib/{index-C3AMwzIi.js → index-CZipVp1G.js} +1 -1
  98. package/dist-lib/index-CdNxm2We.js +1987 -0
  99. package/dist-lib/{index-DMTPsTna.js → index-CjFA5T3K.js} +3 -4
  100. package/dist-lib/{index-Bm1sK-VN.js → index-D23tZfhi.js} +10 -10
  101. package/dist-lib/index-D35Ry0PG.js +1162 -0
  102. package/dist-lib/index-D7nLwQye.js +5012 -0
  103. package/dist-lib/index-DQ16Zb7x.js +546 -0
  104. package/dist-lib/{index-BwVZgt5s.js → index-DR9LGJpi.js} +46 -48
  105. package/dist-lib/index-DRcTwC17.js +418 -0
  106. package/dist-lib/index-DTgboCiF.js +566 -0
  107. package/dist-lib/index-Dd9pPAT3.js +2192 -0
  108. package/dist-lib/{index-Vu6sPBci.js → index-Ddx6XQu5.js} +285 -280
  109. package/dist-lib/index-Di2bQwQn.js +242 -0
  110. package/dist-lib/{index-Cy9i4Kx7.js → index-DlqhOJnd.js} +101 -105
  111. package/dist-lib/index-DxzorPvG.js +13960 -0
  112. package/dist-lib/{index-CLTfICbf.js → index-GQGXGr9M.js} +6 -6
  113. package/dist-lib/{index-nQSVLWfW.js → index-IB3GOib9.js} +81 -83
  114. package/dist-lib/index-If4xc1-H.js +559 -0
  115. package/dist-lib/index-Pcxp_AYe.js +1719 -0
  116. package/dist-lib/{index-ounfql2z.js → index-QkktEus5.js} +25 -27
  117. package/dist-lib/{index-B22_2Dzh.js → index-fVCVIu8I.js} +2 -2
  118. package/dist-lib/{index-D3GHtSlM.js → index-jHh-ITBK.js} +28 -29
  119. package/dist-lib/index-keRQ37lH.js +853 -0
  120. package/dist-lib/index-mUlorJxp.js +3279 -0
  121. package/dist-lib/{index-BSlCGnzo.js → index-n6hK1r_G.js} +12 -12
  122. package/dist-lib/index-qYfXuLnZ.js +34 -0
  123. package/dist-lib/index-yPMzsLHL.js +77 -0
  124. package/dist-lib/index.js +3 -4
  125. package/dist-lib/json-field-Bu-gFb6c.js +196 -0
  126. package/dist-lib/{jszip.min-DcEHhn-b.js → jszip.min-dcaDnWUw.js} +1 -1
  127. package/dist-lib/{kb-form-modal-B0rM1ZvV.js → kb-form-modal-DsXpXfNT.js} +64 -63
  128. package/dist-lib/{kbTeam-Bh_FQH28.js → kbTeam-D8hsAHI5.js} +3 -3
  129. package/dist-lib/{knowledge-base-Cl1Ka1e6.js → knowledge-base-D2XMD7iI.js} +111 -111
  130. package/dist-lib/{knowledge-hub-CPuzdRiq.js → knowledge-hub-BoBR8-j-.js} +52 -53
  131. package/dist-lib/login-B4C374Y_.js +36 -0
  132. package/dist-lib/{markdown-lite-Cu62Fl7J.js → markdown-lite-ROKlyMXg.js} +156 -160
  133. package/dist-lib/material-CqtPqoZj.js +204 -0
  134. package/dist-lib/material-draft-markdown-BKlKt3pc.js +443 -0
  135. package/dist-lib/material-original-preview-pzANkVK5.js +214 -0
  136. package/dist-lib/{material-preview-docx-CH-09KeC.js → material-preview-docx-lp_xPipj.js} +1 -1
  137. package/dist-lib/{material-preview-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
  138. package/dist-lib/material-workspace-model-BUpogooV.js +328 -0
  139. package/dist-lib/{member-DKDx77PD.js → member-CCTFfLDC.js} +1 -1
  140. package/dist-lib/memory-reorganization-CBTDCRhV.js +8 -0
  141. package/dist-lib/memory-spaces-CZGIBlz2.js +2340 -0
  142. package/dist-lib/{message-BrooQ3Q7.js → message-Chq3cAdy.js} +24 -25
  143. package/dist-lib/{message-Dievi8Jw.js → message-Rz7LvGMk.js} +1 -1
  144. package/dist-lib/{messages-xTNmTS9g.js → messages-DciGawgR.js} +15 -16
  145. package/dist-lib/meta-BWgVxZgd.js +708 -0
  146. package/dist-lib/{metrics-DiHYqBKB.js → metrics-iWreq4IL.js} +2 -2
  147. package/dist-lib/mobile-CNrK04Ak.js +2413 -0
  148. package/dist-lib/{monitor-BBCu3zRe.js → monitor-BpUJZCht.js} +8 -8
  149. package/dist-lib/{monitor-BXsdMJSV.js → monitor-CaTKbDI1.js} +4 -4
  150. package/dist-lib/{my-access-CEGErUgv.js → my-access-ZH5CWVGF.js} +120 -132
  151. package/dist-lib/{my-permissions-wSr5zv7g.js → my-permissions-edhi0lav.js} +22 -23
  152. package/dist-lib/navigation-2WdPUP2T.js +102 -0
  153. package/dist-lib/{new-BevAuTe5.js → new-Dq6mvU2w.js} +14 -15
  154. package/dist-lib/{ontology-DXGSJC-y.js → ontology-BX6X1X2J.js} +50 -52
  155. package/dist-lib/ontology-dataprep-BjMnFRBG.js +322 -0
  156. package/dist-lib/{ontology-domains-jTG7CZm8.js → ontology-domains-B7AuwW8S.js} +100 -103
  157. package/dist-lib/ontology-extract-FpJ6K8z6.js +295 -0
  158. package/dist-lib/ontology-extract-wbvBwGZO.js +3199 -0
  159. package/dist-lib/ontology-flow-CJsIvS35.js +456 -0
  160. package/dist-lib/ontology-flow-Cgi8Fk-i.js +154 -0
  161. package/dist-lib/ontology-modeling-C_6GvHBT.js +15136 -0
  162. package/dist-lib/ontology-modeling-CeDS1-FE.js +510 -0
  163. package/dist-lib/ontology-scenarios-4Ar7Y8Kt.js +675 -0
  164. package/dist-lib/{ontology-scenarios-J5kw6xgi.js → ontology-scenarios-BaYN82pv.js} +1289 -1305
  165. package/dist-lib/ontology-task-config-CDt7NdIq.js +122 -0
  166. package/dist-lib/ontology-terms-CnFarWZX.js +66 -0
  167. package/dist-lib/ontology-terms-CxTp2Dcq.js +1195 -0
  168. package/dist-lib/pages-CticGC6S.js +512 -0
  169. package/dist-lib/pages.js +3 -3
  170. package/dist-lib/{permission-BUXo69Ne.js → permission-CNqwhyF3.js} +41 -41
  171. package/dist-lib/pipeline-layout-CJlOMXJF.js +70 -0
  172. package/dist-lib/{pptx-preview.es-AUrdYKu3.js → pptx-preview.es-D4ODiBv2.js} +2 -2
  173. package/dist-lib/preset-Bp_mvsJm.js +56827 -0
  174. package/dist-lib/{preset-gh5SGoYT.js → preset-CfByvcqu.js} +8 -8
  175. package/dist-lib/progress-ImhDvynO.js +778 -0
  176. package/dist-lib/{quota-D31cXjul.js → quota-B38BWyPo.js} +4 -3
  177. package/dist-lib/row-DeVE0t_N.js +154 -0
  178. package/dist-lib/runs-ILSUwEOv.js +565 -0
  179. package/dist-lib/{save-blob-CiWNK-cX.js → save-blob-C5BbV45B.js} +2 -2
  180. package/dist-lib/{scenario-mapping-preview-DQ_OBV4Z.js → scenario-mapping-preview-7v1SRE7V.js} +43 -45
  181. package/dist-lib/scenario-simple-form-mFm6f2ho.js +989 -0
  182. package/dist-lib/{schedule-BktxwX3S.js → schedule-DzB9rZrm.js} +8 -8
  183. package/dist-lib/script-CKdVDsYh.js +2709 -0
  184. package/dist-lib/{settings-dsB3H65I.js → settings-CaihqQtz.js} +121 -121
  185. package/dist-lib/{shared-CTCzvhyE.js → shared-B51Q5536.js} +1 -1
  186. package/dist-lib/{shared-utils-BstybhBG.js → shared-utils-Ck5sql2m.js} +2 -2
  187. package/dist-lib/{skills-CHPlMsgO.js → skills-By3A0Dc1.js} +39 -40
  188. package/dist-lib/{source-selection-tXqc855k.js → source-selection-sIKyG7xR.js} +16 -16
  189. package/dist-lib/sources-DvIMColY.js +279 -0
  190. package/dist-lib/style-BHQZmWlH.js +191 -0
  191. package/dist-lib/{task-config-BiTOiZj0.js → task-config-CoPFj_FN.js} +4 -4
  192. package/dist-lib/{tech-BKlGPkV0.js → tech-BJgEEFrT.js} +3 -4
  193. package/dist-lib/templates-CODaf2QI.js +58 -0
  194. package/dist-lib/tenant-login-DmN4qfah.js +338 -0
  195. package/dist-lib/{tools-CouQ4FWk.js → tools-CyRz1Ofg.js} +14 -14
  196. package/dist-lib/use-current-tenant-otPCQ3X8.js +22 -0
  197. package/dist-lib/{use-domain-access-BPlNfoiP.js → use-domain-access-BuD99GTw.js} +15 -15
  198. package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-C5h9frJM.js} +1 -1
  199. package/dist-lib/{use-graph-layers-ja-ZIC_R.js → use-graph-layers-Cbd3Jggb.js} +48 -50
  200. package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
  201. package/dist-lib/useBreakpoint-B8dF3ifo.js +87 -0
  202. package/dist-lib/{useForm-Byp1LopG.js → useForm-BZkiMeaN.js} +9 -9
  203. package/dist-lib/{version-control-panel-CkBm36Yk.js → version-control-panel-HdMlbpbO.js} +26 -27
  204. package/dist-lib/{version-management-B4kIbdVc.js → version-management-BYoxw4GV.js} +6 -7
  205. package/dist-lib/{welcome-F5iZoFB1.js → welcome-CMNXQf8J.js} +3 -4
  206. package/package.json +1 -1
  207. package/dist-lib/ApartmentOutlined-M6qSurnE.js +0 -12
  208. package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +0 -12
  209. package/dist-lib/EvidenceFormList-DXqqSpPV.js +0 -91
  210. package/dist-lib/ImpactPage-DyhUR6fT.js +0 -71
  211. package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +0 -136
  212. package/dist-lib/OntologyNodesPage-D4MWlm6q.js +0 -1268
  213. package/dist-lib/Pagination-Dxslodkq.js +0 -1344
  214. package/dist-lib/PlusOutlined-B_dXo_97.js +0 -12
  215. package/dist-lib/SearchOutlined-puH6bCY6.js +0 -979
  216. package/dist-lib/Skeleton-DXcERb5r.js +0 -557
  217. package/dist-lib/TagsOutlined-B4_qkn6-.js +0 -20
  218. package/dist-lib/TermDetailPage-CP0D6OvA.js +0 -242
  219. package/dist-lib/TextArea-DTpTS5HL.js +0 -1897
  220. package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +0 -20
  221. package/dist-lib/callSuper-DZEfdkXG.js +0 -7
  222. package/dist-lib/changelog-Cn81Dvgk.js +0 -69
  223. package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +0 -2004
  224. package/dist-lib/context-Buz0ggsK.js +0 -710
  225. package/dist-lib/context-DpmyNOn3.js +0 -21
  226. package/dist-lib/embed-CR8XVkMy.js +0 -31148
  227. package/dist-lib/focus-set-h0YtOUB2.js +0 -427
  228. package/dist-lib/index-CaXylbQR.js +0 -3419
  229. package/dist-lib/index-Cfu1W1H6.js +0 -535
  230. package/dist-lib/index-CrMcNEAZ.js +0 -9656
  231. package/dist-lib/index-DBtGE89a.js +0 -168
  232. package/dist-lib/index-DjFPRXl5.js +0 -1484
  233. package/dist-lib/index-DvWHYX81.js +0 -450
  234. package/dist-lib/index-PBT9GksC.js +0 -340
  235. package/dist-lib/index-bOY1cBol.js +0 -4890
  236. package/dist-lib/meta-BD_qYTZu.js +0 -540
  237. package/dist-lib/ontology-modeling-CjRsa-DR.js +0 -1039
  238. package/dist-lib/ontology-modeling-DOj68TuI.js +0 -38946
  239. package/dist-lib/ontology-scenarios-CcAagMiP.js +0 -660
  240. package/dist-lib/pages-CsexFuEz.js +0 -73
  241. package/dist-lib/row-B5MnGm9M.js +0 -156
  242. package/dist-lib/scenario-simple-form-DESMvU7A.js +0 -2396
  243. package/dist-lib/useClosable-BY7FgWKy.js +0 -59
@@ -1,1897 +0,0 @@
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
- };