@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
@@ -0,0 +1,1096 @@
1
+ import { a7 as H, ao as t, a6 as ar, c9 as wr, an as ir, bL as Br, a5 as h, be as yr, bj as f, a$ as Er, bf as K } from "./embed-BUaR8PAn.js";
2
+ import u, { useRef as Y, cloneElement as Rr } from "react";
3
+ function nr(r) {
4
+ return H(r, {
5
+ inputAffixPadding: r.paddingXXS
6
+ });
7
+ }
8
+ const tr = (r) => {
9
+ const {
10
+ controlHeight: o,
11
+ fontSize: e,
12
+ lineHeight: a,
13
+ lineWidth: i,
14
+ controlHeightSM: b,
15
+ controlHeightLG: g,
16
+ fontSizeLG: d,
17
+ lineHeightLG: m,
18
+ paddingSM: $,
19
+ controlPaddingHorizontalSM: I,
20
+ controlPaddingHorizontal: j,
21
+ colorFillAlter: z,
22
+ colorPrimaryHover: T,
23
+ colorPrimary: S,
24
+ controlOutlineWidth: C,
25
+ controlOutline: A,
26
+ colorErrorOutline: B,
27
+ colorWarningOutline: p,
28
+ colorBgContainer: x,
29
+ inputFontSize: y,
30
+ inputFontSizeLG: F,
31
+ inputFontSizeSM: s
32
+ } = r, n = y || e, w = s || n, c = F || d, l = Math.round((o - n * a) / 2 * 10) / 10 - i, E = Math.round((b - w * a) / 2 * 10) / 10 - i, W = Math.ceil((g - c * m) / 2 * 10) / 10 - i;
33
+ return {
34
+ paddingBlock: Math.max(l, 0),
35
+ paddingBlockSM: Math.max(E, 0),
36
+ paddingBlockLG: Math.max(W, 0),
37
+ paddingInline: $ - i,
38
+ paddingInlineSM: I - i,
39
+ paddingInlineLG: j - i,
40
+ addonBg: z,
41
+ activeBorderColor: S,
42
+ hoverBorderColor: T,
43
+ activeShadow: `0 0 0 ${C}px ${A}`,
44
+ errorActiveShadow: `0 0 0 ${C}px ${B}`,
45
+ warningActiveShadow: `0 0 0 ${C}px ${p}`,
46
+ hoverBg: x,
47
+ activeBg: x,
48
+ inputFontSize: n,
49
+ inputFontSizeLG: c,
50
+ inputFontSizeSM: w
51
+ };
52
+ }, Or = (r) => ({
53
+ borderColor: r.hoverBorderColor,
54
+ backgroundColor: r.hoverBg
55
+ }), N = (r) => ({
56
+ color: r.colorTextDisabled,
57
+ backgroundColor: r.colorBgContainerDisabled,
58
+ borderColor: r.colorBorder,
59
+ boxShadow: "none",
60
+ cursor: "not-allowed",
61
+ opacity: 1,
62
+ "input[disabled], textarea[disabled]": {
63
+ cursor: "not-allowed"
64
+ },
65
+ "&:hover:not([disabled])": Object.assign({}, Or(H(r, {
66
+ hoverBorderColor: r.colorBorder,
67
+ hoverBg: r.colorBgContainerDisabled
68
+ })))
69
+ }), lr = (r, o) => ({
70
+ background: r.colorBgContainer,
71
+ borderWidth: r.lineWidth,
72
+ borderStyle: r.lineType,
73
+ borderColor: o.borderColor,
74
+ "&:hover": {
75
+ borderColor: o.hoverBorderColor,
76
+ backgroundColor: r.hoverBg
77
+ },
78
+ "&:focus, &:focus-within": {
79
+ borderColor: o.activeBorderColor,
80
+ boxShadow: o.activeShadow,
81
+ outline: 0,
82
+ backgroundColor: r.activeBg
83
+ }
84
+ }), Z = (r, o) => ({
85
+ [`&${r.componentCls}-status-${o.status}:not(${r.componentCls}-disabled)`]: Object.assign(Object.assign({}, lr(r, o)), {
86
+ [`${r.componentCls}-prefix, ${r.componentCls}-suffix`]: {
87
+ color: o.affixColor
88
+ }
89
+ }),
90
+ [`&${r.componentCls}-status-${o.status}${r.componentCls}-disabled`]: {
91
+ borderColor: o.borderColor
92
+ }
93
+ }), Ir = (r, o) => ({
94
+ "&-outlined": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, lr(r, {
95
+ borderColor: r.colorBorder,
96
+ hoverBorderColor: r.hoverBorderColor,
97
+ activeBorderColor: r.activeBorderColor,
98
+ activeShadow: r.activeShadow
99
+ })), {
100
+ [`&${r.componentCls}-disabled, &[disabled]`]: Object.assign({}, N(r))
101
+ }), Z(r, {
102
+ status: "error",
103
+ borderColor: r.colorError,
104
+ hoverBorderColor: r.colorErrorBorderHover,
105
+ activeBorderColor: r.colorError,
106
+ activeShadow: r.errorActiveShadow,
107
+ affixColor: r.colorError
108
+ })), Z(r, {
109
+ status: "warning",
110
+ borderColor: r.colorWarning,
111
+ hoverBorderColor: r.colorWarningBorderHover,
112
+ activeBorderColor: r.colorWarning,
113
+ activeShadow: r.warningActiveShadow,
114
+ affixColor: r.colorWarning
115
+ })), o)
116
+ }), V = (r, o) => ({
117
+ [`&${r.componentCls}-group-wrapper-status-${o.status}`]: {
118
+ [`${r.componentCls}-group-addon`]: {
119
+ borderColor: o.addonBorderColor,
120
+ color: o.addonColor
121
+ }
122
+ }
123
+ }), jr = (r) => ({
124
+ "&-outlined": Object.assign(Object.assign(Object.assign({
125
+ [`${r.componentCls}-group`]: {
126
+ "&-addon": {
127
+ background: r.addonBg,
128
+ border: `${t(r.lineWidth)} ${r.lineType} ${r.colorBorder}`
129
+ },
130
+ "&-addon:first-child": {
131
+ borderInlineEnd: 0
132
+ },
133
+ "&-addon:last-child": {
134
+ borderInlineStart: 0
135
+ }
136
+ }
137
+ }, V(r, {
138
+ status: "error",
139
+ addonBorderColor: r.colorError,
140
+ addonColor: r.colorErrorText
141
+ })), V(r, {
142
+ status: "warning",
143
+ addonBorderColor: r.colorWarning,
144
+ addonColor: r.colorWarningText
145
+ })), {
146
+ [`&${r.componentCls}-group-wrapper-disabled`]: {
147
+ [`${r.componentCls}-group-addon`]: Object.assign({}, N(r))
148
+ }
149
+ })
150
+ }), Wr = (r, o) => {
151
+ const {
152
+ componentCls: e
153
+ } = r;
154
+ return {
155
+ "&-borderless": Object.assign({
156
+ background: "transparent",
157
+ border: "none",
158
+ "&:focus, &:focus-within": {
159
+ outline: "none"
160
+ },
161
+ // >>>>> Disabled
162
+ [`&${e}-disabled, &[disabled]`]: {
163
+ color: r.colorTextDisabled,
164
+ cursor: "not-allowed"
165
+ },
166
+ // >>>>> Status
167
+ [`&${e}-status-error`]: {
168
+ "&, & input, & textarea": {
169
+ color: r.colorError
170
+ }
171
+ },
172
+ [`&${e}-status-warning`]: {
173
+ "&, & input, & textarea": {
174
+ color: r.colorWarning
175
+ }
176
+ }
177
+ }, o)
178
+ };
179
+ }, dr = (r, o) => {
180
+ var e;
181
+ return {
182
+ background: o.bg,
183
+ borderWidth: r.lineWidth,
184
+ borderStyle: r.lineType,
185
+ borderColor: "transparent",
186
+ "input&, & input, textarea&, & textarea": {
187
+ color: (e = o == null ? void 0 : o.inputColor) !== null && e !== void 0 ? e : "unset"
188
+ },
189
+ "&:hover": {
190
+ background: o.hoverBg
191
+ },
192
+ "&:focus, &:focus-within": {
193
+ outline: 0,
194
+ borderColor: o.activeBorderColor,
195
+ backgroundColor: r.activeBg
196
+ }
197
+ };
198
+ }, k = (r, o) => ({
199
+ [`&${r.componentCls}-status-${o.status}:not(${r.componentCls}-disabled)`]: Object.assign(Object.assign({}, dr(r, o)), {
200
+ [`${r.componentCls}-prefix, ${r.componentCls}-suffix`]: {
201
+ color: o.affixColor
202
+ }
203
+ })
204
+ }), Hr = (r, o) => ({
205
+ "&-filled": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, dr(r, {
206
+ bg: r.colorFillTertiary,
207
+ hoverBg: r.colorFillSecondary,
208
+ activeBorderColor: r.activeBorderColor
209
+ })), {
210
+ [`&${r.componentCls}-disabled, &[disabled]`]: Object.assign({}, N(r))
211
+ }), k(r, {
212
+ status: "error",
213
+ bg: r.colorErrorBg,
214
+ hoverBg: r.colorErrorBgHover,
215
+ activeBorderColor: r.colorError,
216
+ inputColor: r.colorErrorText,
217
+ affixColor: r.colorError
218
+ })), k(r, {
219
+ status: "warning",
220
+ bg: r.colorWarningBg,
221
+ hoverBg: r.colorWarningBgHover,
222
+ activeBorderColor: r.colorWarning,
223
+ inputColor: r.colorWarningText,
224
+ affixColor: r.colorWarning
225
+ })), o)
226
+ }), rr = (r, o) => ({
227
+ [`&${r.componentCls}-group-wrapper-status-${o.status}`]: {
228
+ [`${r.componentCls}-group-addon`]: {
229
+ background: o.addonBg,
230
+ color: o.addonColor
231
+ }
232
+ }
233
+ }), zr = (r) => ({
234
+ "&-filled": Object.assign(Object.assign(Object.assign({
235
+ [`${r.componentCls}-group-addon`]: {
236
+ background: r.colorFillTertiary,
237
+ "&:last-child": {
238
+ position: "static"
239
+ }
240
+ }
241
+ }, rr(r, {
242
+ status: "error",
243
+ addonBg: r.colorErrorBg,
244
+ addonColor: r.colorErrorText
245
+ })), rr(r, {
246
+ status: "warning",
247
+ addonBg: r.colorWarningBg,
248
+ addonColor: r.colorWarningText
249
+ })), {
250
+ [`&${r.componentCls}-group-wrapper-disabled`]: {
251
+ [`${r.componentCls}-group`]: {
252
+ "&-addon": {
253
+ background: r.colorFillTertiary,
254
+ color: r.colorTextDisabled
255
+ },
256
+ "&-addon:first-child": {
257
+ borderInlineStart: `${t(r.lineWidth)} ${r.lineType} ${r.colorBorder}`,
258
+ borderTop: `${t(r.lineWidth)} ${r.lineType} ${r.colorBorder}`,
259
+ borderBottom: `${t(r.lineWidth)} ${r.lineType} ${r.colorBorder}`
260
+ },
261
+ "&-addon:last-child": {
262
+ borderInlineEnd: `${t(r.lineWidth)} ${r.lineType} ${r.colorBorder}`,
263
+ borderTop: `${t(r.lineWidth)} ${r.lineType} ${r.colorBorder}`,
264
+ borderBottom: `${t(r.lineWidth)} ${r.lineType} ${r.colorBorder}`
265
+ }
266
+ }
267
+ }
268
+ })
269
+ }), cr = (r, o) => ({
270
+ background: r.colorBgContainer,
271
+ borderWidth: `${t(r.lineWidth)} 0`,
272
+ borderStyle: `${r.lineType} none`,
273
+ borderColor: `transparent transparent ${o.borderColor} transparent`,
274
+ borderRadius: 0,
275
+ "&:hover": {
276
+ borderColor: `transparent transparent ${o.hoverBorderColor} transparent`,
277
+ backgroundColor: r.hoverBg
278
+ },
279
+ "&:focus, &:focus-within": {
280
+ borderColor: `transparent transparent ${o.activeBorderColor} transparent`,
281
+ outline: 0,
282
+ backgroundColor: r.activeBg
283
+ }
284
+ }), or = (r, o) => ({
285
+ [`&${r.componentCls}-status-${o.status}:not(${r.componentCls}-disabled)`]: Object.assign(Object.assign({}, cr(r, o)), {
286
+ [`${r.componentCls}-prefix, ${r.componentCls}-suffix`]: {
287
+ color: o.affixColor
288
+ }
289
+ }),
290
+ [`&${r.componentCls}-status-${o.status}${r.componentCls}-disabled`]: {
291
+ borderColor: `transparent transparent ${o.borderColor} transparent`
292
+ }
293
+ }), Tr = (r, o) => ({
294
+ "&-underlined": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, cr(r, {
295
+ borderColor: r.colorBorder,
296
+ hoverBorderColor: r.hoverBorderColor,
297
+ activeBorderColor: r.activeBorderColor,
298
+ activeShadow: r.activeShadow
299
+ })), {
300
+ // >>>>> Disabled
301
+ [`&${r.componentCls}-disabled, &[disabled]`]: {
302
+ color: r.colorTextDisabled,
303
+ boxShadow: "none",
304
+ cursor: "not-allowed",
305
+ "&:hover": {
306
+ borderColor: `transparent transparent ${r.colorBorder} transparent`
307
+ }
308
+ },
309
+ "input[disabled], textarea[disabled]": {
310
+ cursor: "not-allowed"
311
+ }
312
+ }), or(r, {
313
+ status: "error",
314
+ borderColor: r.colorError,
315
+ hoverBorderColor: r.colorErrorBorderHover,
316
+ activeBorderColor: r.colorError,
317
+ activeShadow: r.errorActiveShadow,
318
+ affixColor: r.colorError
319
+ })), or(r, {
320
+ status: "warning",
321
+ borderColor: r.colorWarning,
322
+ hoverBorderColor: r.colorWarningBorderHover,
323
+ activeBorderColor: r.colorWarning,
324
+ activeShadow: r.warningActiveShadow,
325
+ affixColor: r.colorWarning
326
+ })), o)
327
+ }), Ar = (r) => ({
328
+ // Firefox
329
+ "&::-moz-placeholder": {
330
+ opacity: 1
331
+ },
332
+ "&::placeholder": {
333
+ color: r,
334
+ userSelect: "none"
335
+ // https://github.com/ant-design/ant-design/pull/32639
336
+ },
337
+ "&:placeholder-shown": {
338
+ textOverflow: "ellipsis"
339
+ }
340
+ }), sr = (r) => {
341
+ const {
342
+ paddingBlockLG: o,
343
+ lineHeightLG: e,
344
+ borderRadiusLG: a,
345
+ paddingInlineLG: i
346
+ } = r;
347
+ return {
348
+ padding: `${t(o)} ${t(i)}`,
349
+ fontSize: r.inputFontSizeLG,
350
+ lineHeight: e,
351
+ borderRadius: a
352
+ };
353
+ }, ur = (r) => ({
354
+ padding: `${t(r.paddingBlockSM)} ${t(r.paddingInlineSM)}`,
355
+ fontSize: r.inputFontSizeSM,
356
+ borderRadius: r.borderRadiusSM
357
+ }), gr = (r) => Object.assign(Object.assign({
358
+ position: "relative",
359
+ display: "inline-block",
360
+ width: "100%",
361
+ minWidth: 0,
362
+ padding: `${t(r.paddingBlock)} ${t(r.paddingInline)}`,
363
+ color: r.colorText,
364
+ fontSize: r.inputFontSize,
365
+ lineHeight: r.lineHeight,
366
+ borderRadius: r.borderRadius,
367
+ transition: `all ${r.motionDurationMid}`
368
+ }, Ar(r.colorTextPlaceholder)), {
369
+ // Size
370
+ "&-lg": Object.assign({}, sr(r)),
371
+ "&-sm": Object.assign({}, ur(r)),
372
+ // RTL
373
+ "&-rtl, &-textarea-rtl": {
374
+ direction: "rtl"
375
+ }
376
+ }), Fr = (r) => {
377
+ const {
378
+ componentCls: o,
379
+ antCls: e
380
+ } = r;
381
+ return {
382
+ position: "relative",
383
+ display: "table",
384
+ width: "100%",
385
+ borderCollapse: "separate",
386
+ borderSpacing: 0,
387
+ // Undo padding and float of grid classes
388
+ "&[class*='col-']": {
389
+ paddingInlineEnd: r.paddingXS,
390
+ "&:last-child": {
391
+ paddingInlineEnd: 0
392
+ }
393
+ },
394
+ // Sizing options
395
+ [`&-lg ${o}, &-lg > ${o}-group-addon`]: Object.assign({}, sr(r)),
396
+ [`&-sm ${o}, &-sm > ${o}-group-addon`]: Object.assign({}, ur(r)),
397
+ // Fix https://github.com/ant-design/ant-design/issues/5754
398
+ [`&-lg ${e}-select-single ${e}-select-selector`]: {
399
+ height: r.controlHeightLG
400
+ },
401
+ [`&-sm ${e}-select-single ${e}-select-selector`]: {
402
+ height: r.controlHeightSM
403
+ },
404
+ [`> ${o}`]: {
405
+ display: "table-cell",
406
+ "&:not(:first-child):not(:last-child)": {
407
+ borderRadius: 0
408
+ }
409
+ },
410
+ [`${o}-group`]: {
411
+ "&-addon, &-wrap": {
412
+ display: "table-cell",
413
+ width: 1,
414
+ whiteSpace: "nowrap",
415
+ verticalAlign: "middle",
416
+ "&:not(:first-child):not(:last-child)": {
417
+ borderRadius: 0
418
+ }
419
+ },
420
+ "&-wrap > *": {
421
+ display: "block !important"
422
+ },
423
+ "&-addon": {
424
+ position: "relative",
425
+ padding: `0 ${t(r.paddingInline)}`,
426
+ color: r.colorText,
427
+ fontWeight: "normal",
428
+ fontSize: r.inputFontSize,
429
+ textAlign: "center",
430
+ borderRadius: r.borderRadius,
431
+ transition: `all ${r.motionDurationSlow}`,
432
+ lineHeight: 1,
433
+ // Reset Select's style in addon
434
+ [`${e}-select`]: {
435
+ margin: `${t(r.calc(r.paddingBlock).add(1).mul(-1).equal())} ${t(r.calc(r.paddingInline).mul(-1).equal())}`,
436
+ [`&${e}-select-single:not(${e}-select-customize-input):not(${e}-pagination-size-changer)`]: {
437
+ [`${e}-select-selector`]: {
438
+ backgroundColor: "inherit",
439
+ border: `${t(r.lineWidth)} ${r.lineType} transparent`,
440
+ boxShadow: "none"
441
+ }
442
+ }
443
+ },
444
+ // https://github.com/ant-design/ant-design/issues/31333
445
+ [`${e}-cascader-picker`]: {
446
+ margin: `-9px ${t(r.calc(r.paddingInline).mul(-1).equal())}`,
447
+ backgroundColor: "transparent",
448
+ [`${e}-cascader-input`]: {
449
+ textAlign: "start",
450
+ border: 0,
451
+ boxShadow: "none"
452
+ }
453
+ }
454
+ }
455
+ },
456
+ [o]: {
457
+ width: "100%",
458
+ marginBottom: 0,
459
+ textAlign: "inherit",
460
+ "&:focus": {
461
+ zIndex: 1,
462
+ // Fix https://gw.alipayobjects.com/zos/rmsportal/DHNpoqfMXSfrSnlZvhsJ.png
463
+ borderInlineEndWidth: 1
464
+ },
465
+ "&:hover": {
466
+ zIndex: 1,
467
+ borderInlineEndWidth: 1,
468
+ [`${o}-search-with-button &`]: {
469
+ zIndex: 0
470
+ }
471
+ }
472
+ },
473
+ // Reset rounded corners
474
+ [`> ${o}:first-child, ${o}-group-addon:first-child`]: {
475
+ borderStartEndRadius: 0,
476
+ borderEndEndRadius: 0,
477
+ // Reset Select's style in addon
478
+ [`${e}-select ${e}-select-selector`]: {
479
+ borderStartEndRadius: 0,
480
+ borderEndEndRadius: 0
481
+ }
482
+ },
483
+ [`> ${o}-affix-wrapper`]: {
484
+ [`&:not(:first-child) ${o}`]: {
485
+ borderStartStartRadius: 0,
486
+ borderEndStartRadius: 0
487
+ },
488
+ [`&:not(:last-child) ${o}`]: {
489
+ borderStartEndRadius: 0,
490
+ borderEndEndRadius: 0
491
+ }
492
+ },
493
+ [`> ${o}:last-child, ${o}-group-addon:last-child`]: {
494
+ borderStartStartRadius: 0,
495
+ borderEndStartRadius: 0,
496
+ // Reset Select's style in addon
497
+ [`${e}-select ${e}-select-selector`]: {
498
+ borderStartStartRadius: 0,
499
+ borderEndStartRadius: 0
500
+ }
501
+ },
502
+ [`${o}-affix-wrapper`]: {
503
+ "&:not(:last-child)": {
504
+ borderStartEndRadius: 0,
505
+ borderEndEndRadius: 0,
506
+ [`${o}-search &`]: {
507
+ borderStartStartRadius: r.borderRadius,
508
+ borderEndStartRadius: r.borderRadius
509
+ }
510
+ },
511
+ [`&:not(:first-child), ${o}-search &:not(:first-child)`]: {
512
+ borderStartStartRadius: 0,
513
+ borderEndStartRadius: 0
514
+ }
515
+ },
516
+ [`&${o}-group-compact`]: Object.assign(Object.assign({
517
+ display: "block"
518
+ }, Br()), {
519
+ [`${o}-group-addon, ${o}-group-wrap, > ${o}`]: {
520
+ "&:not(:first-child):not(:last-child)": {
521
+ borderInlineEndWidth: r.lineWidth,
522
+ "&:hover, &:focus": {
523
+ zIndex: 1
524
+ }
525
+ }
526
+ },
527
+ "& > *": {
528
+ display: "inline-flex",
529
+ float: "none",
530
+ verticalAlign: "top",
531
+ // https://github.com/ant-design/ant-design-pro/issues/139
532
+ borderRadius: 0
533
+ },
534
+ [`
535
+ & > ${o}-affix-wrapper,
536
+ & > ${o}-number-affix-wrapper,
537
+ & > ${e}-picker-range
538
+ `]: {
539
+ display: "inline-flex"
540
+ },
541
+ "& > *:not(:last-child)": {
542
+ marginInlineEnd: r.calc(r.lineWidth).mul(-1).equal(),
543
+ borderInlineEndWidth: r.lineWidth
544
+ },
545
+ // Undo float for .ant-input-group .ant-input
546
+ [o]: {
547
+ float: "none"
548
+ },
549
+ // reset border for Select, DatePicker, AutoComplete, Cascader, Mention, TimePicker, Input
550
+ [`& > ${e}-select > ${e}-select-selector,
551
+ & > ${e}-select-auto-complete ${o},
552
+ & > ${e}-cascader-picker ${o},
553
+ & > ${o}-group-wrapper ${o}`]: {
554
+ borderInlineEndWidth: r.lineWidth,
555
+ borderRadius: 0,
556
+ "&:hover, &:focus": {
557
+ zIndex: 1
558
+ }
559
+ },
560
+ [`& > ${e}-select-focused`]: {
561
+ zIndex: 1
562
+ },
563
+ // update z-index for arrow icon
564
+ [`& > ${e}-select > ${e}-select-arrow`]: {
565
+ zIndex: 1
566
+ // https://github.com/ant-design/ant-design/issues/20371
567
+ },
568
+ [`& > *:first-child,
569
+ & > ${e}-select:first-child > ${e}-select-selector,
570
+ & > ${e}-select-auto-complete:first-child ${o},
571
+ & > ${e}-cascader-picker:first-child ${o}`]: {
572
+ borderStartStartRadius: r.borderRadius,
573
+ borderEndStartRadius: r.borderRadius
574
+ },
575
+ [`& > *:last-child,
576
+ & > ${e}-select:last-child > ${e}-select-selector,
577
+ & > ${e}-cascader-picker:last-child ${o},
578
+ & > ${e}-cascader-picker-focused:last-child ${o}`]: {
579
+ borderInlineEndWidth: r.lineWidth,
580
+ borderStartEndRadius: r.borderRadius,
581
+ borderEndEndRadius: r.borderRadius
582
+ },
583
+ // https://github.com/ant-design/ant-design/issues/12493
584
+ [`& > ${e}-select-auto-complete ${o}`]: {
585
+ verticalAlign: "top"
586
+ },
587
+ [`${o}-group-wrapper + ${o}-group-wrapper`]: {
588
+ marginInlineStart: r.calc(r.lineWidth).mul(-1).equal(),
589
+ [`${o}-affix-wrapper`]: {
590
+ borderRadius: 0
591
+ }
592
+ },
593
+ [`${o}-group-wrapper:not(:last-child)`]: {
594
+ [`&${o}-search > ${o}-group`]: {
595
+ [`& > ${o}-group-addon > ${o}-search-button`]: {
596
+ borderRadius: 0
597
+ },
598
+ [`& > ${o}`]: {
599
+ borderStartStartRadius: r.borderRadius,
600
+ borderStartEndRadius: 0,
601
+ borderEndEndRadius: 0,
602
+ borderEndStartRadius: r.borderRadius
603
+ }
604
+ }
605
+ }
606
+ })
607
+ };
608
+ }, Gr = (r) => {
609
+ const {
610
+ componentCls: o,
611
+ controlHeightSM: e,
612
+ lineWidth: a,
613
+ calc: i
614
+ } = r, g = i(e).sub(i(a).mul(2)).sub(16).div(2).equal();
615
+ return {
616
+ [o]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ir(r)), gr(r)), Ir(r)), Hr(r)), Wr(r)), Tr(r)), {
617
+ '&[type="color"]': {
618
+ height: r.controlHeight,
619
+ [`&${o}-lg`]: {
620
+ height: r.controlHeightLG
621
+ },
622
+ [`&${o}-sm`]: {
623
+ height: e,
624
+ paddingTop: g,
625
+ paddingBottom: g
626
+ }
627
+ },
628
+ '&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration': {
629
+ appearance: "none"
630
+ }
631
+ })
632
+ };
633
+ }, Mr = (r) => {
634
+ const {
635
+ componentCls: o
636
+ } = r;
637
+ return {
638
+ // ========================= Input =========================
639
+ [`${o}-clear-icon`]: {
640
+ margin: 0,
641
+ padding: 0,
642
+ lineHeight: 0,
643
+ color: r.colorTextQuaternary,
644
+ fontSize: r.fontSizeIcon,
645
+ verticalAlign: -1,
646
+ // https://github.com/ant-design/ant-design/pull/18151
647
+ // https://codesandbox.io/s/wizardly-sun-u10br
648
+ cursor: "pointer",
649
+ transition: `color ${r.motionDurationSlow}`,
650
+ border: "none",
651
+ outline: "none",
652
+ backgroundColor: "transparent",
653
+ "&:hover": {
654
+ color: r.colorIcon
655
+ },
656
+ "&:active": {
657
+ color: r.colorText
658
+ },
659
+ "&-hidden": {
660
+ visibility: "hidden"
661
+ },
662
+ "&-has-suffix": {
663
+ margin: `0 ${t(r.inputAffixPadding)}`
664
+ }
665
+ }
666
+ };
667
+ }, Lr = (r) => {
668
+ const {
669
+ componentCls: o,
670
+ inputAffixPadding: e,
671
+ colorTextDescription: a,
672
+ motionDurationSlow: i,
673
+ colorIcon: b,
674
+ colorIconHover: g,
675
+ iconCls: d
676
+ } = r, m = `${o}-affix-wrapper`, $ = `${o}-affix-wrapper-disabled`;
677
+ return {
678
+ [m]: Object.assign(Object.assign(Object.assign(Object.assign({}, gr(r)), {
679
+ display: "inline-flex",
680
+ [`&:not(${o}-disabled):hover`]: {
681
+ zIndex: 1,
682
+ [`${o}-search-with-button &`]: {
683
+ zIndex: 0
684
+ }
685
+ },
686
+ "&-focused, &:focus": {
687
+ zIndex: 1
688
+ },
689
+ [`> input${o}`]: {
690
+ padding: 0
691
+ },
692
+ [`> input${o}, > textarea${o}`]: {
693
+ fontSize: "inherit",
694
+ border: "none",
695
+ borderRadius: 0,
696
+ outline: "none",
697
+ background: "transparent",
698
+ color: "inherit",
699
+ "&::-ms-reveal": {
700
+ display: "none"
701
+ },
702
+ "&:focus": {
703
+ boxShadow: "none !important"
704
+ }
705
+ },
706
+ "&::before": {
707
+ display: "inline-block",
708
+ width: 0,
709
+ visibility: "hidden",
710
+ content: '"\\a0"'
711
+ },
712
+ [o]: {
713
+ "&-prefix, &-suffix": {
714
+ display: "flex",
715
+ flex: "none",
716
+ alignItems: "center",
717
+ "> *:not(:last-child)": {
718
+ marginInlineEnd: r.paddingXS
719
+ }
720
+ },
721
+ "&-show-count-suffix": {
722
+ color: a,
723
+ direction: "ltr"
724
+ },
725
+ "&-show-count-has-suffix": {
726
+ marginInlineEnd: r.paddingXXS
727
+ },
728
+ "&-prefix": {
729
+ marginInlineEnd: e
730
+ },
731
+ "&-suffix": {
732
+ marginInlineStart: e
733
+ }
734
+ }
735
+ }), Mr(r)), {
736
+ // password
737
+ [`${d}${o}-password-icon`]: {
738
+ color: b,
739
+ cursor: "pointer",
740
+ transition: `all ${i}`,
741
+ "&:hover": {
742
+ color: g
743
+ }
744
+ }
745
+ }),
746
+ // 覆盖 affix-wrapper borderRadius!
747
+ [`${o}-underlined`]: {
748
+ borderRadius: 0
749
+ },
750
+ [$]: {
751
+ // password disabled
752
+ [`${d}${o}-password-icon`]: {
753
+ color: b,
754
+ cursor: "not-allowed",
755
+ "&:hover": {
756
+ color: b
757
+ }
758
+ }
759
+ }
760
+ };
761
+ }, Dr = (r) => {
762
+ const {
763
+ componentCls: o,
764
+ borderRadiusLG: e,
765
+ borderRadiusSM: a
766
+ } = r;
767
+ return {
768
+ [`${o}-group`]: Object.assign(Object.assign(Object.assign({}, ir(r)), Fr(r)), {
769
+ "&-rtl": {
770
+ direction: "rtl"
771
+ },
772
+ "&-wrapper": Object.assign(Object.assign(Object.assign({
773
+ display: "inline-block",
774
+ width: "100%",
775
+ textAlign: "start",
776
+ verticalAlign: "top",
777
+ "&-rtl": {
778
+ direction: "rtl"
779
+ },
780
+ // Size
781
+ "&-lg": {
782
+ [`${o}-group-addon`]: {
783
+ borderRadius: e,
784
+ fontSize: r.inputFontSizeLG
785
+ }
786
+ },
787
+ "&-sm": {
788
+ [`${o}-group-addon`]: {
789
+ borderRadius: a
790
+ }
791
+ }
792
+ }, jr(r)), zr(r)), {
793
+ // '&-disabled': {
794
+ // [`${componentCls}-group-addon`]: {
795
+ // ...genDisabledStyle(token),
796
+ // },
797
+ // },
798
+ // Fix the issue of using icons in Space Compact mode
799
+ // https://github.com/ant-design/ant-design/issues/42122
800
+ [`&:not(${o}-compact-first-item):not(${o}-compact-last-item)${o}-compact-item`]: {
801
+ [`${o}, ${o}-group-addon`]: {
802
+ borderRadius: 0
803
+ }
804
+ },
805
+ [`&:not(${o}-compact-last-item)${o}-compact-first-item`]: {
806
+ [`${o}, ${o}-group-addon`]: {
807
+ borderStartEndRadius: 0,
808
+ borderEndEndRadius: 0
809
+ }
810
+ },
811
+ [`&:not(${o}-compact-first-item)${o}-compact-last-item`]: {
812
+ [`${o}, ${o}-group-addon`]: {
813
+ borderStartStartRadius: 0,
814
+ borderEndStartRadius: 0
815
+ }
816
+ },
817
+ // Fix the issue of input use show-count param in space compact mode
818
+ // https://github.com/ant-design/ant-design/issues/46872
819
+ [`&:not(${o}-compact-last-item)${o}-compact-item`]: {
820
+ [`${o}-affix-wrapper`]: {
821
+ borderStartEndRadius: 0,
822
+ borderEndEndRadius: 0
823
+ }
824
+ },
825
+ // Fix the issue of input use `addonAfter` param in space compact mode
826
+ // https://github.com/ant-design/ant-design/issues/52483
827
+ [`&:not(${o}-compact-first-item)${o}-compact-item`]: {
828
+ [`${o}-affix-wrapper`]: {
829
+ borderStartStartRadius: 0,
830
+ borderEndStartRadius: 0
831
+ }
832
+ }
833
+ })
834
+ })
835
+ };
836
+ }, Nr = (r) => {
837
+ const {
838
+ componentCls: o,
839
+ antCls: e
840
+ } = r, a = `${o}-search`;
841
+ return {
842
+ [a]: {
843
+ [o]: {
844
+ "&:not([disabled]):hover, &:not([disabled]):focus": {
845
+ [`+ ${o}-group-addon ${a}-button:not(${e}-btn-color-primary):not(${e}-btn-variant-text)`]: {
846
+ borderInlineStartColor: r.colorPrimaryHover
847
+ }
848
+ }
849
+ },
850
+ [`${o}-affix-wrapper`]: {
851
+ height: r.controlHeight,
852
+ borderRadius: 0
853
+ },
854
+ // fix slight height diff in Firefox:
855
+ // https://ant.design/components/auto-complete-cn/#auto-complete-demo-certain-category
856
+ [`${o}-lg`]: {
857
+ lineHeight: r.calc(r.lineHeightLG).sub(2e-4).equal()
858
+ },
859
+ [`> ${o}-group`]: {
860
+ [`> ${o}-group-addon:last-child`]: {
861
+ insetInlineStart: -1,
862
+ padding: 0,
863
+ border: 0,
864
+ [`${a}-button`]: {
865
+ // Fix https://github.com/ant-design/ant-design/issues/47150
866
+ marginInlineEnd: -1,
867
+ borderStartStartRadius: 0,
868
+ borderEndStartRadius: 0,
869
+ boxShadow: "none"
870
+ },
871
+ [`${a}-button:not(${e}-btn-color-primary)`]: {
872
+ color: r.colorTextDescription,
873
+ "&:not([disabled]):hover": {
874
+ color: r.colorPrimaryHover
875
+ },
876
+ "&:active": {
877
+ color: r.colorPrimaryActive
878
+ },
879
+ [`&${e}-btn-loading::before`]: {
880
+ inset: 0
881
+ }
882
+ }
883
+ }
884
+ },
885
+ [`${a}-button`]: {
886
+ height: r.controlHeight,
887
+ "&:hover, &:focus": {
888
+ zIndex: 1
889
+ }
890
+ },
891
+ "&-large": {
892
+ [`${o}-affix-wrapper, ${a}-button`]: {
893
+ height: r.controlHeightLG
894
+ }
895
+ },
896
+ "&-small": {
897
+ [`${o}-affix-wrapper, ${a}-button`]: {
898
+ height: r.controlHeightSM
899
+ }
900
+ },
901
+ "&-rtl": {
902
+ direction: "rtl"
903
+ },
904
+ // ===================== Compact Item Customized Styles =====================
905
+ [`&${o}-compact-item`]: {
906
+ [`&:not(${o}-compact-last-item)`]: {
907
+ [`${o}-group-addon`]: {
908
+ [`${o}-search-button`]: {
909
+ marginInlineEnd: r.calc(r.lineWidth).mul(-1).equal(),
910
+ borderRadius: 0
911
+ }
912
+ }
913
+ },
914
+ [`&:not(${o}-compact-first-item)`]: {
915
+ [`${o},${o}-affix-wrapper`]: {
916
+ borderRadius: 0
917
+ }
918
+ },
919
+ [`> ${o}-group-addon ${o}-search-button,
920
+ > ${o},
921
+ ${o}-affix-wrapper`]: {
922
+ "&:hover, &:focus, &:active": {
923
+ zIndex: 2
924
+ }
925
+ },
926
+ [`> ${o}-affix-wrapper-focused`]: {
927
+ zIndex: 2
928
+ }
929
+ }
930
+ }
931
+ };
932
+ }, _r = (r) => {
933
+ const {
934
+ componentCls: o
935
+ } = r;
936
+ return {
937
+ [`${o}-out-of-range`]: {
938
+ [`&, & input, & textarea, ${o}-show-count-suffix, ${o}-data-count`]: {
939
+ color: r.colorError
940
+ }
941
+ }
942
+ };
943
+ }, Qr = ar(["Input", "Shared"], (r) => {
944
+ const o = H(r, nr(r));
945
+ return [Gr(o), Lr(o)];
946
+ }, tr, {
947
+ resetFont: !1
948
+ }), Jr = ar(["Input", "Component"], (r) => {
949
+ const o = H(r, nr(r));
950
+ return [
951
+ Dr(o),
952
+ Nr(o),
953
+ _r(o),
954
+ // =====================================================
955
+ // == Space Compact ==
956
+ // =====================================================
957
+ wr(o)
958
+ ];
959
+ }, tr, {
960
+ resetFont: !1
961
+ });
962
+ function Pr(r) {
963
+ return !!(r.addonBefore || r.addonAfter);
964
+ }
965
+ function qr(r) {
966
+ return !!(r.prefix || r.suffix || r.allowClear);
967
+ }
968
+ function er(r, o, e) {
969
+ var a = o.cloneNode(!0), i = Object.create(r, {
970
+ target: {
971
+ value: a
972
+ },
973
+ currentTarget: {
974
+ value: a
975
+ }
976
+ });
977
+ return a.value = e, typeof o.selectionStart == "number" && typeof o.selectionEnd == "number" && (a.selectionStart = o.selectionStart, a.selectionEnd = o.selectionEnd), a.setSelectionRange = function() {
978
+ o.setSelectionRange.apply(o, arguments);
979
+ }, i;
980
+ }
981
+ function Kr(r, o, e, a) {
982
+ if (e) {
983
+ var i = o;
984
+ if (o.type === "click") {
985
+ i = er(o, r, ""), e(i);
986
+ return;
987
+ }
988
+ if (r.type !== "file" && a !== void 0) {
989
+ i = er(o, r, a), e(i);
990
+ return;
991
+ }
992
+ e(i);
993
+ }
994
+ }
995
+ function Yr(r, o) {
996
+ if (r) {
997
+ r.focus(o);
998
+ var e = o || {}, a = e.cursor;
999
+ if (a) {
1000
+ var i = r.value.length;
1001
+ switch (a) {
1002
+ case "start":
1003
+ r.setSelectionRange(0, 0);
1004
+ break;
1005
+ case "end":
1006
+ r.setSelectionRange(i, i);
1007
+ break;
1008
+ default:
1009
+ r.setSelectionRange(0, i);
1010
+ }
1011
+ }
1012
+ }
1013
+ }
1014
+ var Zr = /* @__PURE__ */ u.forwardRef(function(r, o) {
1015
+ var e, a, i, b = r.inputElement, g = r.children, d = r.prefixCls, m = r.prefix, $ = r.suffix, I = r.addonBefore, j = r.addonAfter, z = r.className, T = r.style, S = r.disabled, C = r.readOnly, A = r.focused, B = r.triggerFocus, p = r.allowClear, x = r.value, y = r.handleReset, F = r.hidden, s = r.classes, n = r.classNames, w = r.dataAttrs, c = r.styles, l = r.components, E = r.onClear, W = g ?? b, pr = (l == null ? void 0 : l.affixWrapper) || "span", br = (l == null ? void 0 : l.groupWrapper) || "span", $r = (l == null ? void 0 : l.wrapper) || "span", _ = (l == null ? void 0 : l.groupAddon) || "span", G = Y(null), hr = function(O) {
1016
+ var D;
1017
+ (D = G.current) !== null && D !== void 0 && D.contains(O.target) && (B == null || B());
1018
+ }, P = qr(r), v = /* @__PURE__ */ Rr(W, {
1019
+ value: x,
1020
+ className: h((e = W.props) === null || e === void 0 ? void 0 : e.className, !P && (n == null ? void 0 : n.variant)) || null
1021
+ }), q = Y(null);
1022
+ if (u.useImperativeHandle(o, function() {
1023
+ return {
1024
+ nativeElement: q.current || G.current
1025
+ };
1026
+ }), P) {
1027
+ var X = null;
1028
+ if (p) {
1029
+ var fr = !S && !C && x, M = "".concat(d, "-clear-icon"), vr = yr(p) === "object" && p !== null && p !== void 0 && p.clearIcon ? p.clearIcon : "✖";
1030
+ X = /* @__PURE__ */ u.createElement("button", {
1031
+ type: "button",
1032
+ tabIndex: -1,
1033
+ onClick: function(O) {
1034
+ y == null || y(O), E == null || E();
1035
+ },
1036
+ onMouseDown: function(O) {
1037
+ return O.preventDefault();
1038
+ },
1039
+ className: h(M, f(f({}, "".concat(M, "-hidden"), !fr), "".concat(M, "-has-suffix"), !!$))
1040
+ }, vr);
1041
+ }
1042
+ var R = "".concat(d, "-affix-wrapper"), mr = h(R, f(f(f(f(f({}, "".concat(d, "-disabled"), S), "".concat(R, "-disabled"), S), "".concat(R, "-focused"), A), "".concat(R, "-readonly"), C), "".concat(R, "-input-with-clear-btn"), $ && p && x), s == null ? void 0 : s.affixWrapper, n == null ? void 0 : n.affixWrapper, n == null ? void 0 : n.variant), Sr = ($ || p) && /* @__PURE__ */ u.createElement("span", {
1043
+ className: h("".concat(d, "-suffix"), n == null ? void 0 : n.suffix),
1044
+ style: c == null ? void 0 : c.suffix
1045
+ }, X, $);
1046
+ v = /* @__PURE__ */ u.createElement(pr, Er({
1047
+ className: mr,
1048
+ style: c == null ? void 0 : c.affixWrapper,
1049
+ onClick: hr
1050
+ }, w == null ? void 0 : w.affixWrapper, {
1051
+ ref: G
1052
+ }), m && /* @__PURE__ */ u.createElement("span", {
1053
+ className: h("".concat(d, "-prefix"), n == null ? void 0 : n.prefix),
1054
+ style: c == null ? void 0 : c.prefix
1055
+ }, m), v, Sr);
1056
+ }
1057
+ if (Pr(r)) {
1058
+ var L = "".concat(d, "-group"), U = "".concat(L, "-addon"), Q = "".concat(L, "-wrapper"), Cr = h("".concat(d, "-wrapper"), L, s == null ? void 0 : s.wrapper, n == null ? void 0 : n.wrapper), xr = h(Q, f({}, "".concat(Q, "-disabled"), S), s == null ? void 0 : s.group, n == null ? void 0 : n.groupWrapper);
1059
+ v = /* @__PURE__ */ u.createElement(br, {
1060
+ className: xr,
1061
+ ref: q
1062
+ }, /* @__PURE__ */ u.createElement($r, {
1063
+ className: Cr
1064
+ }, I && /* @__PURE__ */ u.createElement(_, {
1065
+ className: U
1066
+ }, I), v, j && /* @__PURE__ */ u.createElement(_, {
1067
+ className: U
1068
+ }, j)));
1069
+ }
1070
+ return /* @__PURE__ */ u.cloneElement(v, {
1071
+ className: h((a = v.props) === null || a === void 0 ? void 0 : a.className, z) || null,
1072
+ style: K(K({}, (i = v.props) === null || i === void 0 ? void 0 : i.style), T),
1073
+ hidden: F
1074
+ });
1075
+ });
1076
+ export {
1077
+ Zr as B,
1078
+ Jr as a,
1079
+ nr as b,
1080
+ Ir as c,
1081
+ Hr as d,
1082
+ Tr as e,
1083
+ Wr as f,
1084
+ gr as g,
1085
+ Ar as h,
1086
+ tr as i,
1087
+ Fr as j,
1088
+ jr as k,
1089
+ zr as l,
1090
+ lr as m,
1091
+ N as n,
1092
+ ur as o,
1093
+ Kr as r,
1094
+ Yr as t,
1095
+ Qr as u
1096
+ };