@yuku123/z-cognition-component 2.0.1 → 2.0.3

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 (244) hide show
  1. package/dist-lib/BaseInput-DHrGPDB9.js +1096 -0
  2. package/dist-lib/ClockCircleOutlined-DP6fSLgk.js +12 -0
  3. package/dist-lib/Collapse-B77SsmFh.js +523 -0
  4. package/dist-lib/{ConceptsPage-BOeKdDKI.js → ConceptsPage-DOf_CJlz.js} +13 -16
  5. package/dist-lib/DeleteOutlined-BAZSAooQ.js +12 -0
  6. package/dist-lib/{DocsPage-BZOBFp3c.js → DocsPage-CiC7TU96.js} +4 -4
  7. package/dist-lib/EllipsisOutlined-Dr4orLLw.js +1109 -0
  8. package/dist-lib/EvidenceFormList-CrE2FzHk.js +90 -0
  9. package/dist-lib/{EyeOutlined-DGSrX-0M.js → EyeOutlined-CudyDdjH.js} +1 -1
  10. package/dist-lib/ImpactPage-CYiuqy0S.js +68 -0
  11. package/dist-lib/{LeftOutlined-Cgo6Izj-.js → LeftOutlined-CJasZIyX.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-BJ8wnqAa.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-DqyspFCO.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-J_7eBbi7.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-CA30m5eX.js +64 -0
  30. package/dist-lib/{agents-mAJW3cEN.js → agents-eZDKzePP.js} +41 -41
  31. package/dist-lib/{ai-BcYmZiRo.js → ai-CNSn3-sd.js} +32 -32
  32. package/dist-lib/{ai-chat-share-DO7GXjG4.js → ai-chat-share-Yrqt_J6a.js} +13 -14
  33. package/dist-lib/ak-manage-DklVFT5I.js +805 -0
  34. package/dist-lib/{approval-RPDUKg9-.js → approval-B-bCSmfi.js} +25 -26
  35. package/dist-lib/{approvals-CNjxJUpR.js → approvals-B0ggYiyD.js} +42 -43
  36. package/dist-lib/{assistant-FIQQziCn.js → assistant-Of0mgMsM.js} +33 -34
  37. package/dist-lib/{assistant-history-DsEGBJnq.js → assistant-history-DcyDhUzJ.js} +5 -5
  38. package/dist-lib/{assistant-summary-B-f3k55y.js → assistant-summary-CjLaTyFz.js} +1 -1
  39. package/dist-lib/{audit-NwnH1hm5.js → audit-wDNCfmOy.js} +1 -1
  40. package/dist-lib/{bios-CRwKtcit.js → bios-CIwO1AUK.js} +128 -130
  41. package/dist-lib/callSuper-CpMOVGin.js +7 -0
  42. package/dist-lib/callSuper-CwIeyYoc.js +7 -0
  43. package/dist-lib/category-9gqNseEa.js +76 -0
  44. package/dist-lib/causal-CzAYukj9.js +789 -0
  45. package/dist-lib/{changelog-DlL5u9o4.js → changelog-CQfIMS51.js} +2 -2
  46. package/dist-lib/changelog-sKJMQrlV.js +103 -0
  47. package/dist-lib/chat-panel-BPbqKckR.js +1543 -0
  48. package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +1627 -0
  49. package/dist-lib/code-space-D_ZE966E.js +1070 -0
  50. package/dist-lib/{colors-sdAcAcU3.js → colors-DpKdb8L-.js} +3 -3
  51. package/dist-lib/community-9_7ExHcm.js +70 -0
  52. package/dist-lib/community-CfWXxujB.js +217 -0
  53. package/dist-lib/community-material-page-Z_EZuBPl.js +747 -0
  54. package/dist-lib/connections-Bcqsp11M.js +1065 -0
  55. package/dist-lib/context-T27uno74.js +54 -0
  56. package/dist-lib/{createForOfIteratorHelper-DEx_aTey.js → createForOfIteratorHelper-CasBzL_Q.js} +1 -1
  57. package/dist-lib/{dayjs.min-BauDENhn.js → dayjs.min-DoEf5yCX.js} +1 -1
  58. package/dist-lib/detail-CV6xp_Jp.js +84 -0
  59. package/dist-lib/{detail-Cfb-zdr9.js → detail-DioaWKWj.js} +5847 -7224
  60. package/dist-lib/{detail-Dcfg3W8B.js → detail-EyLdjGpX.js} +71 -72
  61. package/dist-lib/development-CFcOIUKc.js +167 -0
  62. package/dist-lib/{docx-preview-B5nQuTwk.js → docx-preview-D4v2g8Yg.js} +1 -1
  63. package/dist-lib/{downloads-MkyxiHxi.js → downloads-DtV5hOQv.js} +3 -4
  64. package/dist-lib/{edit-DLGAM-Vo.js → edit-NtXUNj5N.js} +262 -266
  65. package/dist-lib/{editor-BtiheUpe.js → editor-KZhj-rwT.js} +25 -26
  66. package/dist-lib/editor-page-BaxK_OYm.js +1169 -0
  67. package/dist-lib/embed-mf8t3QXh.js +51841 -0
  68. package/dist-lib/embed.css +2 -2
  69. package/dist-lib/{evaluation-Dz9bUuhS.js → evaluation-CZTpC9v3.js} +14 -15
  70. package/dist-lib/execution-B6HmOA2_.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-DHV-rdiK.js +640 -0
  75. package/dist-lib/{index-o65vKUwa.js → index--AI-htgA.js} +44 -45
  76. package/dist-lib/index-2SysmGHo.js +1166 -0
  77. package/dist-lib/{index-CJSTTgTM.js → index-3J47mTL1.js} +10 -10
  78. package/dist-lib/index-4tbtbcAt.js +550 -0
  79. package/dist-lib/index-B12ZggsE.js +77 -0
  80. package/dist-lib/{index-D3GHtSlM.js → index-B5Roo82U.js} +49 -50
  81. package/dist-lib/{index-nQSVLWfW.js → index-B7SfTpox.js} +79 -81
  82. package/dist-lib/index-BEO8itgt.js +566 -0
  83. package/dist-lib/index-BPbOPT2j.js +413 -0
  84. package/dist-lib/index-BVgdmf6r.js +2487 -0
  85. package/dist-lib/index-Bd7AGv4a.js +34 -0
  86. package/dist-lib/index-BkJjYgKD.js +5012 -0
  87. package/dist-lib/{index-DBlG9uXV.js → index-BkTegt8T.js} +513 -590
  88. package/dist-lib/{index-BGB6NawZ.js → index-Bln3mJfp.js} +2 -2
  89. package/dist-lib/index-BoCtPJD4.js +915 -0
  90. package/dist-lib/{index-DMTPsTna.js → index-BqTsLClH.js} +3 -4
  91. package/dist-lib/index-Bs4MevzC.js +16075 -0
  92. package/dist-lib/index-BsoHetYT.js +236 -0
  93. package/dist-lib/{index-9aQ4BzIK.js → index-BvJ35WL3.js} +13 -14
  94. package/dist-lib/{index-BEjXaDfk.js → index-Bw4M9KLv.js} +84 -85
  95. package/dist-lib/index-C2CV4bte.js +242 -0
  96. package/dist-lib/{index-D_Qey9G8.js → index-CF0ucN_K.js} +12 -12
  97. package/dist-lib/{index-B57Fj7Y0.js → index-CLhLA2ig.js} +92 -94
  98. package/dist-lib/{index-Vu6sPBci.js → index-CSJA8wvL.js} +301 -296
  99. package/dist-lib/index-CSnvcFg-.js +543 -0
  100. package/dist-lib/{index-C3AMwzIi.js → index-CZipVp1G.js} +1 -1
  101. package/dist-lib/{index-ounfql2z.js → index-CdJ5ggvp.js} +26 -28
  102. package/dist-lib/index-CgwK2maq.js +1987 -0
  103. package/dist-lib/{index-Bc-Vin3j.js → index-CtqUgNxs.js} +53 -55
  104. package/dist-lib/index-CvxfA0ZK.js +215 -0
  105. package/dist-lib/{index-y7jVGGI0.js → index-CwyFMPcr.js} +16 -18
  106. package/dist-lib/index-D35Ry0PG.js +1162 -0
  107. package/dist-lib/{index-c2HokEFp.js → index-D6ns_Xmf.js} +10 -11
  108. package/dist-lib/{index-DsuUGhTA.js → index-DGbjbjBY.js} +46 -48
  109. package/dist-lib/index-DKAGVWMX.js +390 -0
  110. package/dist-lib/index-DQ16Zb7x.js +546 -0
  111. package/dist-lib/index-DRcTwC17.js +418 -0
  112. package/dist-lib/index-DU6bO95v.js +2075 -0
  113. package/dist-lib/index-DaMLYomP.js +853 -0
  114. package/dist-lib/index-Dd9pPAT3.js +2192 -0
  115. package/dist-lib/{index-DuI4K5e1.js → index-DgfIEgir.js} +29 -29
  116. package/dist-lib/{index-Cy9i4Kx7.js → index-DhSCFLtV.js} +113 -117
  117. package/dist-lib/index-DxzorPvG.js +13960 -0
  118. package/dist-lib/index-If4xc1-H.js +559 -0
  119. package/dist-lib/index-QZ9JPfVR.js +251 -0
  120. package/dist-lib/index-VeAMz0iC.js +1719 -0
  121. package/dist-lib/index-mUlorJxp.js +3279 -0
  122. package/dist-lib/{index-g16g7A4k.js → index-xQmDaKK3.js} +6 -6
  123. package/dist-lib/{index-BwVZgt5s.js → index-zXwXfn-X.js} +48 -50
  124. package/dist-lib/index.js +3 -4
  125. package/dist-lib/json-field-COcz5F2R.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-BNoIhw6B.js → kb-form-modal-D9gnvXbE.js} +67 -67
  128. package/dist-lib/{kbTeam-EgcbWseM.js → kbTeam-CorrPJFr.js} +3 -3
  129. package/dist-lib/{knowledge-base-C023dnJ-.js → knowledge-base-DJkjMFHW.js} +103 -104
  130. package/dist-lib/{knowledge-hub-B4fGCn8m.js → knowledge-hub-DKiDlaZz.js} +54 -55
  131. package/dist-lib/login-56zv4aLO.js +36 -0
  132. package/dist-lib/{markdown-lite-EvJ9Fw7X.js → markdown-lite-p1tiuSZM.js} +198 -202
  133. package/dist-lib/material-DtPASeqq.js +204 -0
  134. package/dist-lib/material-draft-markdown-281d5_GN.js +443 -0
  135. package/dist-lib/material-original-preview-CPGjdmbe.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-pdf-CKAovvpc.js → material-preview-pdf-CTSo215V.js} +7 -7
  138. package/dist-lib/{material-preview-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
  139. package/dist-lib/material-workspace-model-QLsU5qUO.js +328 -0
  140. package/dist-lib/{member-BUg2QYlE.js → member-Cz-OIdj9.js} +1 -1
  141. package/dist-lib/memory-reorganization-DgJnWIrW.js +8 -0
  142. package/dist-lib/memory-spaces-D-orVNR7.js +2340 -0
  143. package/dist-lib/{message-GF-w8HuR.js → message-C9gfvpGg.js} +1 -1
  144. package/dist-lib/{message-Cwj8dO78.js → message-D6FhzB7J.js} +24 -25
  145. package/dist-lib/{messages-JID13L8-.js → messages-cctmEVcG.js} +15 -16
  146. package/dist-lib/meta-DT_O4zM9.js +708 -0
  147. package/dist-lib/{metrics-CT4eLzrq.js → metrics-BNeVcI8-.js} +2 -2
  148. package/dist-lib/mobile-D8kZjfQU.js +2413 -0
  149. package/dist-lib/{monitor-Bs9BfJOj.js → monitor-DTUyqumg.js} +4 -4
  150. package/dist-lib/{monitor-CmS65YSu.js → monitor-DexMYjzF.js} +8 -8
  151. package/dist-lib/{my-access-1Yj7UloI.js → my-access-DWBV6ohp.js} +120 -132
  152. package/dist-lib/{my-permissions-yQDHPLYI.js → my-permissions-B-gJZQYM.js} +22 -23
  153. package/dist-lib/navigation-DVlyWnpD.js +102 -0
  154. package/dist-lib/{new-BgkoBnZV.js → new-JmARyD88.js} +14 -15
  155. package/dist-lib/{ontology-BPrbXPor.js → ontology-B4rkO33J.js} +50 -52
  156. package/dist-lib/ontology-dataprep-BwD5TKs2.js +322 -0
  157. package/dist-lib/{ontology-domains-Cbqnm-po.js → ontology-domains-zxFrjn0v.js} +89 -92
  158. package/dist-lib/ontology-extract-BHOxruRO.js +3199 -0
  159. package/dist-lib/ontology-extract-iR_rXxFe.js +295 -0
  160. package/dist-lib/ontology-flow-CW0SzeK7.js +456 -0
  161. package/dist-lib/ontology-flow-Dv5iQ20f.js +154 -0
  162. package/dist-lib/ontology-modeling-B9wswveh.js +510 -0
  163. package/dist-lib/ontology-modeling-hakCluBi.js +15136 -0
  164. package/dist-lib/{ontology-scenarios-D3xy6IZL.js → ontology-scenarios-C2kp7Rs-.js} +1466 -1482
  165. package/dist-lib/ontology-scenarios-DKnfydG6.js +675 -0
  166. package/dist-lib/ontology-task-config-DmnWyCCB.js +122 -0
  167. package/dist-lib/ontology-terms-BoNB-5ar.js +66 -0
  168. package/dist-lib/ontology-terms-C-NhpcIZ.js +1195 -0
  169. package/dist-lib/pages-CticGC6S.js +512 -0
  170. package/dist-lib/pages.js +3 -3
  171. package/dist-lib/{permission-fTfxpEhV.js → permission-Dq1-AOQw.js} +41 -41
  172. package/dist-lib/pipeline-layout-CJlOMXJF.js +70 -0
  173. package/dist-lib/{pptx-preview.es-AUrdYKu3.js → pptx-preview.es-D4ODiBv2.js} +2 -2
  174. package/dist-lib/preset-Bp_mvsJm.js +56827 -0
  175. package/dist-lib/{preset-gh5SGoYT.js → preset-DCNSE--Y.js} +8 -8
  176. package/dist-lib/progress-CZxOOnIs.js +778 -0
  177. package/dist-lib/{quota-BlHnhkAT.js → quota-oICQRHFU.js} +4 -4
  178. package/dist-lib/row-By17TCiW.js +154 -0
  179. package/dist-lib/runs-DQTDpPaN.js +565 -0
  180. package/dist-lib/{save-blob-B-pzX8eT.js → save-blob-CwCZE1Dn.js} +2 -2
  181. package/dist-lib/{scenario-mapping-preview-DByQXh0y.js → scenario-mapping-preview-sJtjgmry.js} +46 -48
  182. package/dist-lib/scenario-simple-form-BvKSPFzw.js +989 -0
  183. package/dist-lib/{schedule-H4_9KnRj.js → schedule-CwkPPSuT.js} +8 -8
  184. package/dist-lib/script-gYJAFobb.js +2709 -0
  185. package/dist-lib/{settings-C3PI8KYa.js → settings-CJd5Jj4y.js} +133 -134
  186. package/dist-lib/{shared-DqeN-Wbb.js → shared-DG5-VCDM.js} +1 -1
  187. package/dist-lib/{shared-utils-DN3zT9P-.js → shared-utils-CFHws1DA.js} +2 -2
  188. package/dist-lib/{skills-eGlCExr0.js → skills-lxpJ5Lzx.js} +39 -40
  189. package/dist-lib/{source-selection-BCvClzc-.js → source-selection-DJnQQckl.js} +16 -16
  190. package/dist-lib/sources-C83LpCcV.js +279 -0
  191. package/dist-lib/style-B5THvtDY.js +191 -0
  192. package/dist-lib/{task-config-DEJVJ7zK.js → task-config-BNYoOb79.js} +4 -4
  193. package/dist-lib/{tech-C-4uM9bS.js → tech-LuZvKDo6.js} +3 -4
  194. package/dist-lib/templates-a-kbCamr.js +58 -0
  195. package/dist-lib/tenant-login-COB-5h_2.js +338 -0
  196. package/dist-lib/{tools-le6miafZ.js → tools-CrA6GrY6.js} +14 -14
  197. package/dist-lib/{use-domain-access-B3pDp3s5.js → use-domain-access-ehGJBGvU.js} +15 -15
  198. package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-DfRnsBS6.js} +1 -1
  199. package/dist-lib/{use-graph-layers-Dmp7uMHO.js → use-graph-layers-CrhEeHfD.js} +48 -50
  200. package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
  201. package/dist-lib/useBreakpoint-Cul9y9Cu.js +87 -0
  202. package/dist-lib/{useForm-Byp1LopG.js → useForm-B-dwOwJ8.js} +11 -11
  203. package/dist-lib/{version-control-panel-WT1PobuV.js → version-control-panel-mWXkC-uB.js} +26 -27
  204. package/dist-lib/{version-management-DC0k1DRg.js → version-management-nPlG7wQO.js} +6 -7
  205. package/dist-lib/{welcome-VyWLrbth.js → welcome-Cqv1-rXT.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-Dj_Pv2nc.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-DwLg9RDW.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-CyKWCYMK.js +0 -218
  232. package/dist-lib/index-DBtGE89a.js +0 -168
  233. package/dist-lib/index-DjFPRXl5.js +0 -1484
  234. package/dist-lib/index-DvWHYX81.js +0 -450
  235. package/dist-lib/index-HieOUSwH.js +0 -340
  236. package/dist-lib/index-bOY1cBol.js +0 -4890
  237. package/dist-lib/meta-DPp5L3Uc.js +0 -540
  238. package/dist-lib/ontology-modeling-6k-m8fzr.js +0 -38946
  239. package/dist-lib/ontology-modeling-BT-EuDCs.js +0 -1039
  240. package/dist-lib/ontology-scenarios-DWYC2yxd.js +0 -660
  241. package/dist-lib/pages-CsexFuEz.js +0 -73
  242. package/dist-lib/row-B5MnGm9M.js +0 -156
  243. package/dist-lib/scenario-simple-form-Bw-6n9Kh.js +0 -2396
  244. package/dist-lib/useClosable-BY7FgWKy.js +0 -59
@@ -0,0 +1,2075 @@
1
+ import * as l from "react";
2
+ import { useContext as fe, useState as ve, useEffect as de, useRef as He, createContext as Ze, forwardRef as Te, useImperativeHandle as Qe } from "react";
3
+ import { R as ue, a as me } from "./LeftOutlined-CJasZIyX.js";
4
+ import { a$ as Je, b0 as Ke, a7 as le, ap as b, a9 as ee, aa as te, a6 as D, aT as et, bb as ae, cl as tt, cm as ot, aW as nt, bo as rt, bt as it, bJ as lt, a8 as pe, cn as ne, ce as Pe, bL as he, bM as Ce, ao as Ne, cb as at, co as je, aq as Me, bq as ge, aG as De, aH as st, cp as dt, cq as ct, cr as ut, cs as mt, ct as Ie, cu as Se, bN as pt, bj as gt, cv as bt, cw as $t, bl as ft, B as ye } from "./embed-mf8t3QXh.js";
5
+ import { D as vt, M as ht, u as Ct, S as It, E as St, R as Re, a as yt, b as xt } from "./EllipsisOutlined-Dr4orLLw.js";
6
+ import { T as wt, a as Bt, g as Ot, b as Et, c as zt } from "./index-zXwXfn-X.js";
7
+ import { a as Ht, r as Tt } from "./mediaQueryUtil-8vWuS10Z.js";
8
+ import { g as Pt } from "./collapse-Dtpt-6W_.js";
9
+ import { S as Nt } from "./index-QZ9JPfVR.js";
10
+ const jt = (e) => typeof e != "object" && typeof e != "function" || e === null;
11
+ var Mt = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, Dt = function(o, t) {
12
+ return /* @__PURE__ */ l.createElement(Je, Ke({}, o, {
13
+ ref: t,
14
+ icon: Mt
15
+ }));
16
+ }, Ae = /* @__PURE__ */ l.forwardRef(Dt);
17
+ process.env.NODE_ENV !== "production" && (Ae.displayName = "BarsOutlined");
18
+ const Rt = /* @__PURE__ */ l.createContext({
19
+ siderHook: {
20
+ addSider: () => null,
21
+ removeSider: () => null
22
+ }
23
+ }), At = (e) => {
24
+ const {
25
+ antCls: o,
26
+ // .ant
27
+ componentCls: t,
28
+ // .ant-layout
29
+ colorText: r,
30
+ footerBg: n,
31
+ headerHeight: a,
32
+ headerPadding: i,
33
+ headerColor: d,
34
+ footerPadding: s,
35
+ fontSize: m,
36
+ bodyBg: g,
37
+ headerBg: f
38
+ } = e;
39
+ return {
40
+ [t]: {
41
+ display: "flex",
42
+ flex: "auto",
43
+ flexDirection: "column",
44
+ /* fix firefox can't set height smaller than content on flex item */
45
+ minHeight: 0,
46
+ background: g,
47
+ "&, *": {
48
+ boxSizing: "border-box"
49
+ },
50
+ [`&${t}-has-sider`]: {
51
+ flexDirection: "row",
52
+ [`> ${t}, > ${t}-content`]: {
53
+ // https://segmentfault.com/a/1190000019498300
54
+ width: 0
55
+ }
56
+ },
57
+ [`${t}-header, &${t}-footer`]: {
58
+ flex: "0 0 auto"
59
+ },
60
+ // RTL
61
+ "&-rtl": {
62
+ direction: "rtl"
63
+ }
64
+ },
65
+ // ==================== Header ====================
66
+ [`${t}-header`]: {
67
+ height: a,
68
+ padding: i,
69
+ color: d,
70
+ lineHeight: b(a),
71
+ background: f,
72
+ // Other components/menu/style/index.less line:686
73
+ // Integration with header element so menu items have the same height
74
+ [`${o}-menu`]: {
75
+ lineHeight: "inherit"
76
+ }
77
+ },
78
+ // ==================== Footer ====================
79
+ [`${t}-footer`]: {
80
+ padding: s,
81
+ color: r,
82
+ fontSize: m,
83
+ background: n
84
+ },
85
+ // =================== Content ====================
86
+ [`${t}-content`]: {
87
+ flex: "auto",
88
+ color: r,
89
+ // fix firefox can't set height smaller than content on flex item
90
+ minHeight: 0
91
+ }
92
+ };
93
+ }, Le = (e) => {
94
+ const {
95
+ colorBgLayout: o,
96
+ controlHeight: t,
97
+ controlHeightLG: r,
98
+ colorText: n,
99
+ controlHeightSM: a,
100
+ marginXXS: i,
101
+ colorTextLightSolid: d,
102
+ colorBgContainer: s
103
+ } = e, m = r * 1.25;
104
+ return {
105
+ // Deprecated
106
+ colorBgHeader: "#001529",
107
+ colorBgBody: o,
108
+ colorBgTrigger: "#002140",
109
+ bodyBg: o,
110
+ headerBg: "#001529",
111
+ headerHeight: t * 2,
112
+ headerPadding: `0 ${m}px`,
113
+ headerColor: n,
114
+ footerPadding: `${a}px ${m}px`,
115
+ footerBg: o,
116
+ siderBg: "#001529",
117
+ triggerHeight: r + i * 2,
118
+ triggerBg: "#002140",
119
+ triggerColor: d,
120
+ zeroTriggerWidth: r,
121
+ zeroTriggerHeight: r,
122
+ lightSiderBg: s,
123
+ lightTriggerBg: s,
124
+ lightTriggerColor: n
125
+ };
126
+ }, _e = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
127
+ le("Layout", At, Le, {
128
+ deprecatedTokens: _e
129
+ });
130
+ const Lt = (e) => {
131
+ const {
132
+ componentCls: o,
133
+ siderBg: t,
134
+ motionDurationMid: r,
135
+ motionDurationSlow: n,
136
+ antCls: a,
137
+ triggerHeight: i,
138
+ triggerColor: d,
139
+ triggerBg: s,
140
+ headerHeight: m,
141
+ zeroTriggerWidth: g,
142
+ zeroTriggerHeight: f,
143
+ borderRadiusLG: p,
144
+ lightSiderBg: $,
145
+ lightTriggerColor: u,
146
+ lightTriggerBg: c,
147
+ bodyBg: h
148
+ } = e;
149
+ return {
150
+ [o]: {
151
+ position: "relative",
152
+ // fix firefox can't set width smaller than content on flex item
153
+ minWidth: 0,
154
+ background: t,
155
+ transition: `all ${r}, background 0s`,
156
+ "&-has-trigger": {
157
+ paddingBottom: i
158
+ },
159
+ "&-right": {
160
+ order: 1
161
+ },
162
+ [`${o}-children`]: {
163
+ height: "100%",
164
+ // Hack for fixing margin collapse bug
165
+ // https://github.com/ant-design/ant-design/issues/7967
166
+ // solution from https://stackoverflow.com/a/33132624/3040605
167
+ marginTop: -0.1,
168
+ paddingTop: 0.1,
169
+ [`${a}-menu${a}-menu-inline-collapsed`]: {
170
+ width: "auto"
171
+ }
172
+ },
173
+ [`&-zero-width ${o}-children`]: {
174
+ overflow: "hidden"
175
+ },
176
+ [`${o}-trigger`]: {
177
+ position: "fixed",
178
+ bottom: 0,
179
+ zIndex: 1,
180
+ height: i,
181
+ color: d,
182
+ lineHeight: b(i),
183
+ textAlign: "center",
184
+ background: s,
185
+ cursor: "pointer",
186
+ transition: `all ${r}`
187
+ },
188
+ [`${o}-zero-width-trigger`]: {
189
+ position: "absolute",
190
+ top: m,
191
+ insetInlineEnd: e.calc(g).mul(-1).equal(),
192
+ zIndex: 1,
193
+ width: g,
194
+ height: f,
195
+ color: d,
196
+ fontSize: e.fontSizeXL,
197
+ display: "flex",
198
+ alignItems: "center",
199
+ justifyContent: "center",
200
+ background: t,
201
+ borderRadius: `0 ${b(p)} ${b(p)} 0`,
202
+ cursor: "pointer",
203
+ transition: `background ${n} ease`,
204
+ "&::after": {
205
+ position: "absolute",
206
+ inset: 0,
207
+ background: "transparent",
208
+ transition: `all ${n}`,
209
+ content: '""'
210
+ },
211
+ "&:hover::after": {
212
+ background: "rgba(255, 255, 255, 0.2)"
213
+ },
214
+ "&-right": {
215
+ insetInlineStart: e.calc(g).mul(-1).equal(),
216
+ borderRadius: `${b(p)} 0 0 ${b(p)}`
217
+ }
218
+ },
219
+ // Light
220
+ "&-light": {
221
+ background: $,
222
+ [`${o}-trigger`]: {
223
+ color: u,
224
+ background: c
225
+ },
226
+ [`${o}-zero-width-trigger`]: {
227
+ color: u,
228
+ background: c,
229
+ border: `1px solid ${h}`,
230
+ // Safe to modify to any other color
231
+ borderInlineStart: 0
232
+ }
233
+ }
234
+ }
235
+ };
236
+ }, _t = le(["Layout", "Sider"], Lt, Le, {
237
+ deprecatedTokens: _e
238
+ });
239
+ var kt = function(e, o) {
240
+ var t = {};
241
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && o.indexOf(r) < 0 && (t[r] = e[r]);
242
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
243
+ o.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (t[r[n]] = e[r[n]]);
244
+ return t;
245
+ };
246
+ const xe = {
247
+ xs: "479.98px",
248
+ sm: "575.98px",
249
+ md: "767.98px",
250
+ lg: "991.98px",
251
+ xl: "1199.98px",
252
+ xxl: "1599.98px"
253
+ }, Wt = (e) => !Number.isNaN(Number.parseFloat(e)) && Number.isFinite(Number(e)), be = /* @__PURE__ */ l.createContext({}), Xt = /* @__PURE__ */ (() => {
254
+ let e = 0;
255
+ return (o = "") => (e += 1, `${o}${e}`);
256
+ })(), Vt = /* @__PURE__ */ l.forwardRef((e, o) => {
257
+ const {
258
+ prefixCls: t,
259
+ className: r,
260
+ trigger: n,
261
+ children: a,
262
+ defaultCollapsed: i = !1,
263
+ theme: d = "dark",
264
+ style: s = {},
265
+ collapsible: m = !1,
266
+ reverseArrow: g = !1,
267
+ width: f = 200,
268
+ collapsedWidth: p = 80,
269
+ zeroWidthTriggerStyle: $,
270
+ breakpoint: u,
271
+ onCollapse: c,
272
+ onBreakpoint: h
273
+ } = e, C = kt(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
274
+ siderHook: B
275
+ } = fe(Rt), [x, E] = ve("collapsed" in e ? e.collapsed : i), [v, N] = ve(!1);
276
+ de(() => {
277
+ "collapsed" in e && E(e.collapsed);
278
+ }, [e.collapsed]);
279
+ const M = (T, X) => {
280
+ "collapsed" in e || E(T), c == null || c(T, X);
281
+ }, {
282
+ getPrefixCls: j,
283
+ direction: I
284
+ } = fe(ee), S = j("layout-sider", t), [R, z, H] = _t(S), y = He(null);
285
+ y.current = (T) => {
286
+ N(T.matches), h == null || h(T.matches), x !== T.matches && M(T.matches, "responsive");
287
+ }, de(() => {
288
+ function T(K) {
289
+ var G;
290
+ return (G = y.current) === null || G === void 0 ? void 0 : G.call(y, K);
291
+ }
292
+ let X;
293
+ return typeof (window == null ? void 0 : window.matchMedia) < "u" && u && u in xe && (X = window.matchMedia(`screen and (max-width: ${xe[u]})`), Ht(X, T), T(X)), () => {
294
+ Tt(X, T);
295
+ };
296
+ }, [u]), de(() => {
297
+ const T = Xt("ant-sider-");
298
+ return B.addSider(T), () => B.removeSider(T);
299
+ }, []);
300
+ const A = () => {
301
+ M(!x, "clickTrigger");
302
+ }, V = te(C, ["collapsed"]), _ = x ? p : f, w = Wt(_) ? `${_}px` : String(_), k = Number.parseFloat(String(p || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
303
+ onClick: A,
304
+ className: D(`${S}-zero-width-trigger`, `${S}-zero-width-trigger-${g ? "right" : "left"}`),
305
+ style: $
306
+ }, n || /* @__PURE__ */ l.createElement(Ae, null)) : null, q = I === "rtl" == !g, O = {
307
+ expanded: q ? /* @__PURE__ */ l.createElement(me, null) : /* @__PURE__ */ l.createElement(ue, null),
308
+ collapsed: q ? /* @__PURE__ */ l.createElement(ue, null) : /* @__PURE__ */ l.createElement(me, null)
309
+ }[x ? "collapsed" : "expanded"], W = n !== null ? k || /* @__PURE__ */ l.createElement("div", {
310
+ className: `${S}-trigger`,
311
+ onClick: A,
312
+ style: {
313
+ width: w
314
+ }
315
+ }, n || O) : null, Q = Object.assign(Object.assign({}, s), {
316
+ flex: `0 0 ${w}`,
317
+ maxWidth: w,
318
+ minWidth: w,
319
+ width: w
320
+ }), F = D(S, `${S}-${d}`, {
321
+ [`${S}-collapsed`]: !!x,
322
+ [`${S}-has-trigger`]: m && n !== null && !k,
323
+ [`${S}-below`]: !!v,
324
+ [`${S}-zero-width`]: Number.parseFloat(w) === 0
325
+ }, r, z, H), J = l.useMemo(() => ({
326
+ siderCollapsed: x
327
+ }), [x]);
328
+ return R(/* @__PURE__ */ l.createElement(be.Provider, {
329
+ value: J
330
+ }, /* @__PURE__ */ l.createElement("aside", Object.assign({
331
+ className: F
332
+ }, V, {
333
+ style: Q,
334
+ ref: o
335
+ }), /* @__PURE__ */ l.createElement("div", {
336
+ className: `${S}-children`
337
+ }, a), m || v && k ? W : null)));
338
+ });
339
+ process.env.NODE_ENV !== "production" && (Vt.displayName = "Sider");
340
+ const re = /* @__PURE__ */ Ze({
341
+ prefixCls: "",
342
+ firstLevel: !0,
343
+ inlineCollapsed: !1
344
+ });
345
+ var qt = function(e, o) {
346
+ var t = {};
347
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && o.indexOf(r) < 0 && (t[r] = e[r]);
348
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
349
+ o.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (t[r[n]] = e[r[n]]);
350
+ return t;
351
+ };
352
+ const ke = (e) => {
353
+ const {
354
+ prefixCls: o,
355
+ className: t,
356
+ dashed: r
357
+ } = e, n = qt(e, ["prefixCls", "className", "dashed"]), {
358
+ getPrefixCls: a
359
+ } = l.useContext(ee), i = a("menu", o), d = D({
360
+ [`${i}-item-divider-dashed`]: !!r
361
+ }, t);
362
+ return /* @__PURE__ */ l.createElement(vt, Object.assign({
363
+ className: d
364
+ }, n));
365
+ }, We = (e) => {
366
+ var o;
367
+ const {
368
+ className: t,
369
+ children: r,
370
+ icon: n,
371
+ title: a,
372
+ danger: i,
373
+ extra: d
374
+ } = e, {
375
+ prefixCls: s,
376
+ firstLevel: m,
377
+ direction: g,
378
+ disableMenuItemTitleTooltip: f,
379
+ inlineCollapsed: p
380
+ } = l.useContext(re), $ = (x) => {
381
+ const E = r == null ? void 0 : r[0], v = /* @__PURE__ */ l.createElement("span", {
382
+ className: D(`${s}-title-content`, {
383
+ [`${s}-title-content-with-extra`]: !!d || d === 0
384
+ })
385
+ }, r);
386
+ return (!n || /* @__PURE__ */ l.isValidElement(r) && r.type === "span") && r && x && m && typeof E == "string" ? /* @__PURE__ */ l.createElement("div", {
387
+ className: `${s}-inline-collapsed-noicon`
388
+ }, E.charAt(0)) : v;
389
+ }, {
390
+ siderCollapsed: u
391
+ } = l.useContext(be);
392
+ let c = a;
393
+ typeof a > "u" ? c = m ? r : "" : a === !1 && (c = "");
394
+ const h = {
395
+ title: c
396
+ };
397
+ !u && !p && (h.title = null, h.open = !1);
398
+ const C = et(r).length;
399
+ let B = /* @__PURE__ */ l.createElement(ht, Object.assign({}, te(e, ["title", "icon", "danger"]), {
400
+ className: D({
401
+ [`${s}-item-danger`]: i,
402
+ [`${s}-item-only-child`]: (n ? C + 1 : C) === 1
403
+ }, t),
404
+ title: typeof a == "string" ? a : void 0
405
+ }), ae(n, {
406
+ className: D(/* @__PURE__ */ l.isValidElement(n) ? (o = n.props) === null || o === void 0 ? void 0 : o.className : void 0, `${s}-item-icon`)
407
+ }), $(p));
408
+ return f || (B = /* @__PURE__ */ l.createElement(wt, Object.assign({}, h, {
409
+ placement: g === "rtl" ? "left" : "right",
410
+ classNames: {
411
+ root: `${s}-inline-collapsed-tooltip`
412
+ }
413
+ }), B)), B;
414
+ };
415
+ var Ft = function(e, o) {
416
+ var t = {};
417
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && o.indexOf(r) < 0 && (t[r] = e[r]);
418
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
419
+ o.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (t[r[n]] = e[r[n]]);
420
+ return t;
421
+ };
422
+ const ie = /* @__PURE__ */ l.createContext(null), Gt = /* @__PURE__ */ l.forwardRef((e, o) => {
423
+ const {
424
+ children: t
425
+ } = e, r = Ft(e, ["children"]), n = l.useContext(ie), a = l.useMemo(() => Object.assign(Object.assign({}, n), r), [
426
+ n,
427
+ r.prefixCls,
428
+ // restProps.expandIcon, Not mark as deps since this is a ReactNode
429
+ r.mode,
430
+ r.selectable,
431
+ r.rootClassName
432
+ // restProps.validator, Not mark as deps since this is a function
433
+ ]), i = tt(t), d = ot(o, i ? nt(t) : null);
434
+ return /* @__PURE__ */ l.createElement(ie.Provider, {
435
+ value: a
436
+ }, /* @__PURE__ */ l.createElement(rt, {
437
+ space: !0
438
+ }, i ? /* @__PURE__ */ l.cloneElement(t, {
439
+ ref: d
440
+ }) : t));
441
+ }), Yt = (e) => {
442
+ const {
443
+ componentCls: o,
444
+ motionDurationSlow: t,
445
+ horizontalLineHeight: r,
446
+ colorSplit: n,
447
+ lineWidth: a,
448
+ lineType: i,
449
+ itemPaddingInline: d
450
+ } = e;
451
+ return {
452
+ [`${o}-horizontal`]: {
453
+ lineHeight: r,
454
+ border: 0,
455
+ borderBottom: `${b(a)} ${i} ${n}`,
456
+ boxShadow: "none",
457
+ "&::after": {
458
+ display: "block",
459
+ clear: "both",
460
+ height: 0,
461
+ content: '"\\20"'
462
+ },
463
+ // ======================= Item =======================
464
+ [`${o}-item, ${o}-submenu`]: {
465
+ position: "relative",
466
+ display: "inline-block",
467
+ verticalAlign: "bottom",
468
+ paddingInline: d
469
+ },
470
+ [`> ${o}-item:hover,
471
+ > ${o}-item-active,
472
+ > ${o}-submenu ${o}-submenu-title:hover`]: {
473
+ backgroundColor: "transparent"
474
+ },
475
+ [`${o}-item, ${o}-submenu-title`]: {
476
+ transition: [`border-color ${t}`, `background ${t}`].join(",")
477
+ },
478
+ // ===================== Sub Menu =====================
479
+ [`${o}-submenu-arrow`]: {
480
+ display: "none"
481
+ }
482
+ }
483
+ };
484
+ }, Ut = ({
485
+ componentCls: e,
486
+ menuArrowOffset: o,
487
+ calc: t
488
+ }) => ({
489
+ [`${e}-rtl`]: {
490
+ direction: "rtl"
491
+ },
492
+ [`${e}-submenu-rtl`]: {
493
+ transformOrigin: "100% 0"
494
+ },
495
+ // Vertical Arrow
496
+ [`${e}-rtl${e}-vertical,
497
+ ${e}-submenu-rtl ${e}-vertical`]: {
498
+ [`${e}-submenu-arrow`]: {
499
+ "&::before": {
500
+ transform: `rotate(-45deg) translateY(${b(t(o).mul(-1).equal())})`
501
+ },
502
+ "&::after": {
503
+ transform: `rotate(45deg) translateY(${b(o)})`
504
+ }
505
+ }
506
+ }
507
+ }), we = (e) => it(e), Be = (e, o) => {
508
+ const {
509
+ componentCls: t,
510
+ itemColor: r,
511
+ itemSelectedColor: n,
512
+ subMenuItemSelectedColor: a,
513
+ groupTitleColor: i,
514
+ itemBg: d,
515
+ subMenuItemBg: s,
516
+ itemSelectedBg: m,
517
+ activeBarHeight: g,
518
+ activeBarWidth: f,
519
+ activeBarBorderWidth: p,
520
+ motionDurationSlow: $,
521
+ motionEaseInOut: u,
522
+ motionEaseOut: c,
523
+ itemPaddingInline: h,
524
+ motionDurationMid: C,
525
+ itemHoverColor: B,
526
+ lineType: x,
527
+ colorSplit: E,
528
+ // Disabled
529
+ itemDisabledColor: v,
530
+ // Danger
531
+ dangerItemColor: N,
532
+ dangerItemHoverColor: M,
533
+ dangerItemSelectedColor: j,
534
+ dangerItemActiveBg: I,
535
+ dangerItemSelectedBg: S,
536
+ // Bg
537
+ popupBg: R,
538
+ itemHoverBg: z,
539
+ itemActiveBg: H,
540
+ menuSubMenuBg: y,
541
+ // Horizontal
542
+ horizontalItemSelectedColor: A,
543
+ horizontalItemSelectedBg: V,
544
+ horizontalItemBorderRadius: _,
545
+ horizontalItemHoverBg: w
546
+ } = e;
547
+ return {
548
+ [`${t}-${o}, ${t}-${o} > ${t}`]: {
549
+ color: r,
550
+ background: d,
551
+ [`&${t}-root:focus-visible`]: Object.assign({}, we(e)),
552
+ // ======================== Item ========================
553
+ [`${t}-item`]: {
554
+ "&-group-title, &-extra": {
555
+ color: i
556
+ }
557
+ },
558
+ [`${t}-submenu-selected > ${t}-submenu-title`]: {
559
+ color: a
560
+ },
561
+ [`${t}-item, ${t}-submenu-title`]: {
562
+ color: r,
563
+ [`&:not(${t}-item-disabled):focus-visible`]: Object.assign({}, we(e))
564
+ },
565
+ // Disabled
566
+ [`${t}-item-disabled, ${t}-submenu-disabled`]: {
567
+ color: `${v} !important`
568
+ },
569
+ // Hover
570
+ [`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]: {
571
+ [`&:hover, > ${t}-submenu-title:hover`]: {
572
+ color: B
573
+ }
574
+ },
575
+ [`&:not(${t}-horizontal)`]: {
576
+ [`${t}-item:not(${t}-item-selected)`]: {
577
+ "&:hover": {
578
+ backgroundColor: z
579
+ },
580
+ "&:active": {
581
+ backgroundColor: H
582
+ }
583
+ },
584
+ [`${t}-submenu-title`]: {
585
+ "&:hover": {
586
+ backgroundColor: z
587
+ },
588
+ "&:active": {
589
+ backgroundColor: H
590
+ }
591
+ }
592
+ },
593
+ // Danger - only Item has
594
+ [`${t}-item-danger`]: {
595
+ color: N,
596
+ [`&${t}-item:hover`]: {
597
+ [`&:not(${t}-item-selected):not(${t}-submenu-selected)`]: {
598
+ color: M
599
+ }
600
+ },
601
+ [`&${t}-item:active`]: {
602
+ background: I
603
+ }
604
+ },
605
+ [`${t}-item a`]: {
606
+ "&, &:hover": {
607
+ color: "inherit"
608
+ }
609
+ },
610
+ [`${t}-item-selected`]: {
611
+ color: n,
612
+ // Danger
613
+ [`&${t}-item-danger`]: {
614
+ color: j
615
+ },
616
+ "a, a:hover": {
617
+ color: "inherit"
618
+ }
619
+ },
620
+ [`& ${t}-item-selected`]: {
621
+ backgroundColor: m,
622
+ // Danger
623
+ [`&${t}-item-danger`]: {
624
+ backgroundColor: S
625
+ }
626
+ },
627
+ [`&${t}-submenu > ${t}`]: {
628
+ backgroundColor: y
629
+ },
630
+ // ===== 设置浮层的颜色 =======
631
+ // !dark 模式会被popupBg 会被rest 为 darkPopupBg
632
+ [`&${t}-popup > ${t}`]: {
633
+ backgroundColor: R
634
+ },
635
+ [`&${t}-submenu-popup > ${t}`]: {
636
+ backgroundColor: R
637
+ },
638
+ // ===== 设置浮层的颜色 end =======
639
+ // ====================== Horizontal ======================
640
+ [`&${t}-horizontal`]: Object.assign(Object.assign({}, o === "dark" ? {
641
+ borderBottom: 0
642
+ } : {}), {
643
+ [`> ${t}-item, > ${t}-submenu`]: {
644
+ top: p,
645
+ marginTop: e.calc(p).mul(-1).equal(),
646
+ marginBottom: 0,
647
+ borderRadius: _,
648
+ "&::after": {
649
+ position: "absolute",
650
+ insetInline: h,
651
+ bottom: 0,
652
+ borderBottom: `${b(g)} solid transparent`,
653
+ transition: `border-color ${$} ${u}`,
654
+ content: '""'
655
+ },
656
+ "&:hover, &-active, &-open": {
657
+ background: w,
658
+ "&::after": {
659
+ borderBottomWidth: g,
660
+ borderBottomColor: A
661
+ }
662
+ },
663
+ "&-selected": {
664
+ color: A,
665
+ backgroundColor: V,
666
+ "&:hover": {
667
+ backgroundColor: V
668
+ },
669
+ "&::after": {
670
+ borderBottomWidth: g,
671
+ borderBottomColor: A
672
+ }
673
+ }
674
+ }
675
+ }),
676
+ // ================== Inline & Vertical ===================
677
+ //
678
+ [`&${t}-root`]: {
679
+ [`&${t}-inline, &${t}-vertical`]: {
680
+ borderInlineEnd: `${b(p)} ${x} ${E}`
681
+ }
682
+ },
683
+ // ======================== Inline ========================
684
+ [`&${t}-inline`]: {
685
+ // Sub
686
+ [`${t}-sub${t}-inline`]: {
687
+ background: s
688
+ },
689
+ [`${t}-item`]: {
690
+ position: "relative",
691
+ "&::after": {
692
+ position: "absolute",
693
+ insetBlock: 0,
694
+ insetInlineEnd: 0,
695
+ borderInlineEnd: `${b(f)} solid ${n}`,
696
+ transform: "scaleY(0.0001)",
697
+ opacity: 0,
698
+ transition: [`transform ${C} ${c}`, `opacity ${C} ${c}`].join(","),
699
+ content: '""'
700
+ },
701
+ // Danger
702
+ [`&${t}-item-danger`]: {
703
+ "&::after": {
704
+ borderInlineEndColor: j
705
+ }
706
+ }
707
+ },
708
+ [`${t}-selected, ${t}-item-selected`]: {
709
+ "&::after": {
710
+ transform: "scaleY(1)",
711
+ opacity: 1,
712
+ transition: [`transform ${C} ${u}`, `opacity ${C} ${u}`].join(",")
713
+ }
714
+ }
715
+ }
716
+ }
717
+ };
718
+ }, Oe = (e) => {
719
+ const {
720
+ componentCls: o,
721
+ itemHeight: t,
722
+ itemMarginInline: r,
723
+ padding: n,
724
+ menuArrowSize: a,
725
+ marginXS: i,
726
+ itemMarginBlock: d,
727
+ itemWidth: s,
728
+ itemPaddingInline: m
729
+ } = e, g = e.calc(a).add(n).add(i).equal();
730
+ return {
731
+ [`${o}-item`]: {
732
+ position: "relative",
733
+ overflow: "hidden"
734
+ },
735
+ [`${o}-item, ${o}-submenu-title`]: {
736
+ height: t,
737
+ lineHeight: b(t),
738
+ paddingInline: m,
739
+ overflow: "hidden",
740
+ textOverflow: "ellipsis",
741
+ marginInline: r,
742
+ marginBlock: d,
743
+ width: s
744
+ },
745
+ [`> ${o}-item,
746
+ > ${o}-submenu > ${o}-submenu-title`]: {
747
+ height: t,
748
+ lineHeight: b(t)
749
+ },
750
+ [`${o}-item-group-list ${o}-submenu-title,
751
+ ${o}-submenu-title`]: {
752
+ paddingInlineEnd: g
753
+ }
754
+ };
755
+ }, Zt = (e) => {
756
+ const {
757
+ componentCls: o,
758
+ iconCls: t,
759
+ itemHeight: r,
760
+ colorTextLightSolid: n,
761
+ dropdownWidth: a,
762
+ controlHeightLG: i,
763
+ motionEaseOut: d,
764
+ paddingXL: s,
765
+ itemMarginInline: m,
766
+ fontSizeLG: g,
767
+ motionDurationFast: f,
768
+ motionDurationSlow: p,
769
+ paddingXS: $,
770
+ boxShadowSecondary: u,
771
+ collapsedWidth: c,
772
+ collapsedIconSize: h
773
+ } = e, C = {
774
+ height: r,
775
+ lineHeight: b(r),
776
+ listStylePosition: "inside",
777
+ listStyleType: "disc"
778
+ };
779
+ return [
780
+ {
781
+ [o]: {
782
+ "&-inline, &-vertical": Object.assign({
783
+ [`&${o}-root`]: {
784
+ boxShadow: "none"
785
+ }
786
+ }, Oe(e))
787
+ },
788
+ [`${o}-submenu-popup`]: {
789
+ [`${o}-vertical`]: Object.assign(Object.assign({}, Oe(e)), {
790
+ boxShadow: u
791
+ })
792
+ }
793
+ },
794
+ // Vertical only
795
+ {
796
+ [`${o}-submenu-popup ${o}-vertical${o}-sub`]: {
797
+ minWidth: a,
798
+ maxHeight: `calc(100vh - ${b(e.calc(i).mul(2.5).equal())})`,
799
+ padding: "0",
800
+ overflow: "hidden",
801
+ borderInlineEnd: 0,
802
+ // https://github.com/ant-design/ant-design/issues/22244
803
+ // https://github.com/ant-design/ant-design/issues/26812
804
+ "&:not([class*='-active'])": {
805
+ overflowX: "hidden",
806
+ overflowY: "auto"
807
+ }
808
+ }
809
+ },
810
+ // Inline Only
811
+ {
812
+ [`${o}-inline`]: {
813
+ width: "100%",
814
+ // Motion enhance for first level
815
+ [`&${o}-root`]: {
816
+ [`${o}-item, ${o}-submenu-title`]: {
817
+ display: "flex",
818
+ alignItems: "center",
819
+ transition: [`border-color ${p}`, `background ${p}`, `padding ${f} ${d}`].join(","),
820
+ [`> ${o}-title-content`]: {
821
+ flex: "auto",
822
+ minWidth: 0,
823
+ overflow: "hidden",
824
+ textOverflow: "ellipsis"
825
+ },
826
+ "> *": {
827
+ flex: "none"
828
+ }
829
+ }
830
+ },
831
+ // >>>>> Sub
832
+ [`${o}-sub${o}-inline`]: {
833
+ padding: 0,
834
+ border: 0,
835
+ borderRadius: 0,
836
+ boxShadow: "none",
837
+ [`& > ${o}-submenu > ${o}-submenu-title`]: C,
838
+ [`& ${o}-item-group-title`]: {
839
+ paddingInlineStart: s
840
+ }
841
+ },
842
+ // >>>>> Item
843
+ [`${o}-item`]: C
844
+ }
845
+ },
846
+ // Inline Collapse Only
847
+ {
848
+ [`${o}-inline-collapsed`]: {
849
+ width: c,
850
+ [`&${o}-root`]: {
851
+ [`${o}-item, ${o}-submenu ${o}-submenu-title`]: {
852
+ [`> ${o}-inline-collapsed-noicon`]: {
853
+ fontSize: g,
854
+ textAlign: "center"
855
+ }
856
+ }
857
+ },
858
+ [`> ${o}-item,
859
+ > ${o}-item-group > ${o}-item-group-list > ${o}-item,
860
+ > ${o}-item-group > ${o}-item-group-list > ${o}-submenu > ${o}-submenu-title,
861
+ > ${o}-submenu > ${o}-submenu-title`]: {
862
+ insetInlineStart: 0,
863
+ paddingInline: `calc(50% - ${b(e.calc(h).div(2).equal())} - ${b(m)})`,
864
+ textOverflow: "clip",
865
+ [`
866
+ ${o}-submenu-arrow,
867
+ ${o}-submenu-expand-icon
868
+ `]: {
869
+ opacity: 0
870
+ },
871
+ [`${o}-item-icon, ${t}`]: {
872
+ margin: 0,
873
+ fontSize: h,
874
+ lineHeight: b(r),
875
+ "+ span": {
876
+ display: "inline-block",
877
+ opacity: 0
878
+ }
879
+ }
880
+ },
881
+ [`${o}-item-icon, ${t}`]: {
882
+ display: "inline-block"
883
+ },
884
+ "&-tooltip": {
885
+ pointerEvents: "none",
886
+ [`${o}-item-icon, ${t}`]: {
887
+ display: "none"
888
+ },
889
+ "a, a:hover": {
890
+ color: n
891
+ }
892
+ },
893
+ [`${o}-item-group-title`]: Object.assign(Object.assign({}, lt), {
894
+ paddingInline: $
895
+ })
896
+ }
897
+ }
898
+ ];
899
+ }, Ee = (e) => {
900
+ const {
901
+ componentCls: o,
902
+ motionDurationSlow: t,
903
+ motionDurationMid: r,
904
+ motionEaseInOut: n,
905
+ motionEaseOut: a,
906
+ iconCls: i,
907
+ iconSize: d,
908
+ iconMarginInlineEnd: s
909
+ } = e;
910
+ return {
911
+ // >>>>> Item
912
+ [`${o}-item, ${o}-submenu-title`]: {
913
+ position: "relative",
914
+ display: "block",
915
+ margin: 0,
916
+ whiteSpace: "nowrap",
917
+ cursor: "pointer",
918
+ transition: [`border-color ${t}`, `background ${t}`, `padding calc(${t} + 0.1s) ${n}`].join(","),
919
+ [`${o}-item-icon, ${i}`]: {
920
+ minWidth: d,
921
+ fontSize: d,
922
+ transition: [`font-size ${r} ${a}`, `margin ${t} ${n}`, `color ${t}`].join(","),
923
+ "+ span": {
924
+ marginInlineStart: s,
925
+ opacity: 1,
926
+ transition: [`opacity ${t} ${n}`, `margin ${t}`, `color ${t}`].join(",")
927
+ }
928
+ },
929
+ [`${o}-item-icon`]: Object.assign({}, at()),
930
+ [`&${o}-item-only-child`]: {
931
+ [`> ${i}, > ${o}-item-icon`]: {
932
+ marginInlineEnd: 0
933
+ }
934
+ }
935
+ },
936
+ // Disabled state sets text to gray and nukes hover/tab effects
937
+ [`${o}-item-disabled, ${o}-submenu-disabled`]: {
938
+ background: "none !important",
939
+ cursor: "not-allowed",
940
+ "&::after": {
941
+ borderColor: "transparent !important"
942
+ },
943
+ a: {
944
+ color: "inherit !important",
945
+ cursor: "not-allowed",
946
+ pointerEvents: "none"
947
+ },
948
+ [`> ${o}-submenu-title`]: {
949
+ color: "inherit !important",
950
+ cursor: "not-allowed"
951
+ }
952
+ }
953
+ };
954
+ }, ze = (e) => {
955
+ const {
956
+ componentCls: o,
957
+ motionDurationSlow: t,
958
+ motionEaseInOut: r,
959
+ borderRadius: n,
960
+ menuArrowSize: a,
961
+ menuArrowOffset: i
962
+ } = e;
963
+ return {
964
+ [`${o}-submenu`]: {
965
+ "&-expand-icon, &-arrow": {
966
+ position: "absolute",
967
+ top: "50%",
968
+ insetInlineEnd: e.margin,
969
+ width: a,
970
+ color: "currentcolor",
971
+ transform: "translateY(-50%)",
972
+ transition: `transform ${t} ${r}, opacity ${t}`
973
+ },
974
+ "&-arrow": {
975
+ // →
976
+ "&::before, &::after": {
977
+ position: "absolute",
978
+ width: e.calc(a).mul(0.6).equal(),
979
+ height: e.calc(a).mul(0.15).equal(),
980
+ backgroundColor: "currentcolor",
981
+ borderRadius: n,
982
+ transition: [`background ${t} ${r}`, `transform ${t} ${r}`, `top ${t} ${r}`, `color ${t} ${r}`].join(","),
983
+ content: '""'
984
+ },
985
+ "&::before": {
986
+ transform: `rotate(45deg) translateY(${b(e.calc(i).mul(-1).equal())})`
987
+ },
988
+ "&::after": {
989
+ transform: `rotate(-45deg) translateY(${b(i)})`
990
+ }
991
+ }
992
+ }
993
+ };
994
+ }, Qt = (e) => {
995
+ const {
996
+ antCls: o,
997
+ componentCls: t,
998
+ fontSize: r,
999
+ motionDurationSlow: n,
1000
+ motionDurationMid: a,
1001
+ motionEaseInOut: i,
1002
+ paddingXS: d,
1003
+ padding: s,
1004
+ colorSplit: m,
1005
+ lineWidth: g,
1006
+ zIndexPopup: f,
1007
+ borderRadiusLG: p,
1008
+ subMenuItemBorderRadius: $,
1009
+ menuArrowSize: u,
1010
+ menuArrowOffset: c,
1011
+ lineType: h,
1012
+ groupTitleLineHeight: C,
1013
+ groupTitleFontSize: B
1014
+ } = e;
1015
+ return [
1016
+ // Misc
1017
+ {
1018
+ "": {
1019
+ [t]: Object.assign(Object.assign({}, Ce()), {
1020
+ // Hidden
1021
+ "&-hidden": {
1022
+ display: "none"
1023
+ }
1024
+ })
1025
+ },
1026
+ [`${t}-submenu-hidden`]: {
1027
+ display: "none"
1028
+ }
1029
+ },
1030
+ {
1031
+ [t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Ne(e)), Ce()), {
1032
+ marginBottom: 0,
1033
+ paddingInlineStart: 0,
1034
+ // Override default ul/ol
1035
+ fontSize: r,
1036
+ lineHeight: 0,
1037
+ listStyle: "none",
1038
+ outline: "none",
1039
+ // Magic cubic here but smooth transition
1040
+ transition: `width ${n} cubic-bezier(0.2, 0, 0, 1) 0s`,
1041
+ "ul, ol": {
1042
+ margin: 0,
1043
+ padding: 0,
1044
+ listStyle: "none"
1045
+ },
1046
+ // Overflow ellipsis
1047
+ "&-overflow": {
1048
+ display: "flex",
1049
+ [`${t}-item`]: {
1050
+ flex: "none"
1051
+ }
1052
+ },
1053
+ [`${t}-item, ${t}-submenu, ${t}-submenu-title`]: {
1054
+ borderRadius: e.itemBorderRadius
1055
+ },
1056
+ [`${t}-item-group-title`]: {
1057
+ padding: `${b(d)} ${b(s)}`,
1058
+ fontSize: B,
1059
+ lineHeight: C,
1060
+ transition: `all ${n}`
1061
+ },
1062
+ [`&-horizontal ${t}-submenu`]: {
1063
+ transition: [`border-color ${n} ${i}`, `background ${n} ${i}`].join(",")
1064
+ },
1065
+ [`${t}-submenu, ${t}-submenu-inline`]: {
1066
+ transition: [`border-color ${n} ${i}`, `background ${n} ${i}`, `padding ${a} ${i}`].join(",")
1067
+ },
1068
+ [`${t}-submenu ${t}-sub`]: {
1069
+ cursor: "initial",
1070
+ transition: [`background ${n} ${i}`, `padding ${n} ${i}`].join(",")
1071
+ },
1072
+ [`${t}-title-content`]: {
1073
+ transition: `color ${n}`,
1074
+ "&-with-extra": {
1075
+ display: "inline-flex",
1076
+ alignItems: "center",
1077
+ width: "100%"
1078
+ },
1079
+ // https://github.com/ant-design/ant-design/issues/41143
1080
+ [`> ${o}-typography-ellipsis-single-line`]: {
1081
+ display: "inline",
1082
+ verticalAlign: "unset"
1083
+ },
1084
+ [`${t}-item-extra`]: {
1085
+ marginInlineStart: "auto",
1086
+ paddingInlineStart: e.padding
1087
+ }
1088
+ },
1089
+ [`${t}-item a`]: {
1090
+ "&::before": {
1091
+ position: "absolute",
1092
+ inset: 0,
1093
+ backgroundColor: "transparent",
1094
+ content: '""'
1095
+ }
1096
+ },
1097
+ // Removed a Badge related style seems it's safe
1098
+ // https://github.com/ant-design/ant-design/issues/19809
1099
+ // >>>>> Divider
1100
+ [`${t}-item-divider`]: {
1101
+ overflow: "hidden",
1102
+ lineHeight: 0,
1103
+ borderColor: m,
1104
+ borderStyle: h,
1105
+ borderWidth: 0,
1106
+ borderTopWidth: g,
1107
+ marginBlock: g,
1108
+ padding: 0,
1109
+ "&-dashed": {
1110
+ borderStyle: "dashed"
1111
+ }
1112
+ }
1113
+ }), Ee(e)), {
1114
+ [`${t}-item-group`]: {
1115
+ [`${t}-item-group-list`]: {
1116
+ margin: 0,
1117
+ padding: 0,
1118
+ [`${t}-item, ${t}-submenu-title`]: {
1119
+ paddingInline: `${b(e.calc(r).mul(2).equal())} ${b(s)}`
1120
+ }
1121
+ }
1122
+ },
1123
+ // ======================= Sub Menu =======================
1124
+ "&-submenu": {
1125
+ "&-popup": {
1126
+ position: "absolute",
1127
+ zIndex: f,
1128
+ borderRadius: p,
1129
+ boxShadow: "none",
1130
+ transformOrigin: "0 0",
1131
+ [`&${t}-submenu`]: {
1132
+ background: "transparent"
1133
+ },
1134
+ // https://github.com/ant-design/ant-design/issues/13955
1135
+ "&::before": {
1136
+ position: "absolute",
1137
+ inset: 0,
1138
+ zIndex: -1,
1139
+ width: "100%",
1140
+ height: "100%",
1141
+ opacity: 0,
1142
+ content: '""'
1143
+ },
1144
+ [`> ${t}`]: Object.assign(Object.assign(Object.assign({
1145
+ borderRadius: p
1146
+ }, Ee(e)), ze(e)), {
1147
+ [`${t}-item, ${t}-submenu > ${t}-submenu-title`]: {
1148
+ borderRadius: $
1149
+ },
1150
+ [`${t}-submenu-title::after`]: {
1151
+ transition: `transform ${n} ${i}`
1152
+ }
1153
+ })
1154
+ },
1155
+ "\n &-placement-leftTop,\n &-placement-bottomRight,\n ": {
1156
+ transformOrigin: "100% 0"
1157
+ },
1158
+ "\n &-placement-leftBottom,\n &-placement-topRight,\n ": {
1159
+ transformOrigin: "100% 100%"
1160
+ },
1161
+ "\n &-placement-rightBottom,\n &-placement-topLeft,\n ": {
1162
+ transformOrigin: "0 100%"
1163
+ },
1164
+ "\n &-placement-bottomLeft,\n &-placement-rightTop,\n ": {
1165
+ transformOrigin: "0 0"
1166
+ },
1167
+ "\n &-placement-leftTop,\n &-placement-leftBottom\n ": {
1168
+ paddingInlineEnd: e.paddingXS
1169
+ },
1170
+ "\n &-placement-rightTop,\n &-placement-rightBottom\n ": {
1171
+ paddingInlineStart: e.paddingXS
1172
+ },
1173
+ "\n &-placement-topRight,\n &-placement-topLeft\n ": {
1174
+ paddingBottom: e.paddingXS
1175
+ },
1176
+ "\n &-placement-bottomRight,\n &-placement-bottomLeft\n ": {
1177
+ paddingTop: e.paddingXS
1178
+ }
1179
+ }
1180
+ }), ze(e)), {
1181
+ [`&-inline-collapsed ${t}-submenu-arrow,
1182
+ &-inline ${t}-submenu-arrow`]: {
1183
+ // ↓
1184
+ "&::before": {
1185
+ transform: `rotate(-45deg) translateX(${b(c)})`
1186
+ },
1187
+ "&::after": {
1188
+ transform: `rotate(45deg) translateX(${b(e.calc(c).mul(-1).equal())})`
1189
+ }
1190
+ },
1191
+ [`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]: {
1192
+ // ↑
1193
+ transform: `translateY(${b(e.calc(u).mul(0.2).mul(-1).equal())})`,
1194
+ "&::after": {
1195
+ transform: `rotate(-45deg) translateX(${b(e.calc(c).mul(-1).equal())})`
1196
+ },
1197
+ "&::before": {
1198
+ transform: `rotate(45deg) translateX(${b(c)})`
1199
+ }
1200
+ }
1201
+ })
1202
+ },
1203
+ // Integration with header element so menu items have the same height
1204
+ {
1205
+ [`${o}-layout-header`]: {
1206
+ [t]: {
1207
+ lineHeight: "inherit"
1208
+ }
1209
+ }
1210
+ }
1211
+ ];
1212
+ }, Jt = (e) => {
1213
+ var o, t, r;
1214
+ const {
1215
+ colorPrimary: n,
1216
+ colorError: a,
1217
+ colorTextDisabled: i,
1218
+ colorErrorBg: d,
1219
+ colorText: s,
1220
+ colorTextDescription: m,
1221
+ colorBgContainer: g,
1222
+ colorFillAlter: f,
1223
+ colorFillContent: p,
1224
+ lineWidth: $,
1225
+ lineWidthBold: u,
1226
+ controlItemBgActive: c,
1227
+ colorBgTextHover: h,
1228
+ controlHeightLG: C,
1229
+ lineHeight: B,
1230
+ colorBgElevated: x,
1231
+ marginXXS: E,
1232
+ padding: v,
1233
+ fontSize: N,
1234
+ controlHeightSM: M,
1235
+ fontSizeLG: j,
1236
+ colorTextLightSolid: I,
1237
+ colorErrorHover: S
1238
+ } = e, R = (o = e.activeBarWidth) !== null && o !== void 0 ? o : 0, z = (t = e.activeBarBorderWidth) !== null && t !== void 0 ? t : $, H = (r = e.itemMarginInline) !== null && r !== void 0 ? r : e.marginXXS, y = new he(I).setA(0.65).toRgbString();
1239
+ return {
1240
+ dropdownWidth: 160,
1241
+ zIndexPopup: e.zIndexPopupBase + 50,
1242
+ radiusItem: e.borderRadiusLG,
1243
+ itemBorderRadius: e.borderRadiusLG,
1244
+ radiusSubMenuItem: e.borderRadiusSM,
1245
+ subMenuItemBorderRadius: e.borderRadiusSM,
1246
+ colorItemText: s,
1247
+ itemColor: s,
1248
+ colorItemTextHover: s,
1249
+ itemHoverColor: s,
1250
+ colorItemTextHoverHorizontal: n,
1251
+ horizontalItemHoverColor: n,
1252
+ colorGroupTitle: m,
1253
+ groupTitleColor: m,
1254
+ colorItemTextSelected: n,
1255
+ itemSelectedColor: n,
1256
+ subMenuItemSelectedColor: n,
1257
+ colorItemTextSelectedHorizontal: n,
1258
+ horizontalItemSelectedColor: n,
1259
+ colorItemBg: g,
1260
+ itemBg: g,
1261
+ colorItemBgHover: h,
1262
+ itemHoverBg: h,
1263
+ colorItemBgActive: p,
1264
+ itemActiveBg: c,
1265
+ colorSubItemBg: f,
1266
+ subMenuItemBg: f,
1267
+ colorItemBgSelected: c,
1268
+ itemSelectedBg: c,
1269
+ colorItemBgSelectedHorizontal: "transparent",
1270
+ horizontalItemSelectedBg: "transparent",
1271
+ colorActiveBarWidth: 0,
1272
+ activeBarWidth: R,
1273
+ colorActiveBarHeight: u,
1274
+ activeBarHeight: u,
1275
+ colorActiveBarBorderSize: $,
1276
+ activeBarBorderWidth: z,
1277
+ // Disabled
1278
+ colorItemTextDisabled: i,
1279
+ itemDisabledColor: i,
1280
+ // Danger
1281
+ colorDangerItemText: a,
1282
+ dangerItemColor: a,
1283
+ colorDangerItemTextHover: a,
1284
+ dangerItemHoverColor: a,
1285
+ colorDangerItemTextSelected: a,
1286
+ dangerItemSelectedColor: a,
1287
+ colorDangerItemBgActive: d,
1288
+ dangerItemActiveBg: d,
1289
+ colorDangerItemBgSelected: d,
1290
+ dangerItemSelectedBg: d,
1291
+ itemMarginInline: H,
1292
+ horizontalItemBorderRadius: 0,
1293
+ horizontalItemHoverBg: "transparent",
1294
+ itemHeight: C,
1295
+ groupTitleLineHeight: B,
1296
+ collapsedWidth: C * 2,
1297
+ popupBg: x,
1298
+ itemMarginBlock: E,
1299
+ itemPaddingInline: v,
1300
+ horizontalLineHeight: `${C * 1.15}px`,
1301
+ iconSize: N,
1302
+ iconMarginInlineEnd: M - N,
1303
+ collapsedIconSize: j,
1304
+ groupTitleFontSize: N,
1305
+ // Disabled
1306
+ darkItemDisabledColor: new he(I).setA(0.25).toRgbString(),
1307
+ // Dark
1308
+ darkItemColor: y,
1309
+ darkDangerItemColor: a,
1310
+ darkItemBg: "#001529",
1311
+ darkPopupBg: "#001529",
1312
+ darkSubMenuItemBg: "#000c17",
1313
+ darkItemSelectedColor: I,
1314
+ darkItemSelectedBg: n,
1315
+ darkDangerItemSelectedBg: a,
1316
+ darkItemHoverBg: "transparent",
1317
+ darkGroupTitleColor: y,
1318
+ darkItemHoverColor: I,
1319
+ darkDangerItemHoverColor: S,
1320
+ darkDangerItemSelectedColor: I,
1321
+ darkDangerItemActiveBg: a,
1322
+ // internal
1323
+ itemWidth: R ? `calc(100% + ${z}px)` : `calc(100% - ${H * 2}px)`
1324
+ };
1325
+ }, Kt = (e, o = e, t = !0) => le("Menu", (n) => {
1326
+ const {
1327
+ colorBgElevated: a,
1328
+ controlHeightLG: i,
1329
+ fontSize: d,
1330
+ darkItemColor: s,
1331
+ darkDangerItemColor: m,
1332
+ darkItemBg: g,
1333
+ darkSubMenuItemBg: f,
1334
+ darkItemSelectedColor: p,
1335
+ darkItemSelectedBg: $,
1336
+ darkDangerItemSelectedBg: u,
1337
+ darkItemHoverBg: c,
1338
+ darkGroupTitleColor: h,
1339
+ darkItemHoverColor: C,
1340
+ darkItemDisabledColor: B,
1341
+ darkDangerItemHoverColor: x,
1342
+ darkDangerItemSelectedColor: E,
1343
+ darkDangerItemActiveBg: v,
1344
+ popupBg: N,
1345
+ darkPopupBg: M
1346
+ } = n, j = n.calc(d).div(7).mul(5).equal(), I = pe(n, {
1347
+ menuArrowSize: j,
1348
+ menuHorizontalHeight: n.calc(i).mul(1.15).equal(),
1349
+ menuArrowOffset: n.calc(j).mul(0.25).equal(),
1350
+ menuSubMenuBg: a,
1351
+ calc: n.calc,
1352
+ popupBg: N
1353
+ }), S = pe(I, {
1354
+ itemColor: s,
1355
+ itemHoverColor: C,
1356
+ groupTitleColor: h,
1357
+ itemSelectedColor: p,
1358
+ subMenuItemSelectedColor: p,
1359
+ itemBg: g,
1360
+ popupBg: M,
1361
+ subMenuItemBg: f,
1362
+ itemActiveBg: "transparent",
1363
+ itemSelectedBg: $,
1364
+ activeBarHeight: 0,
1365
+ activeBarBorderWidth: 0,
1366
+ itemHoverBg: c,
1367
+ // Disabled
1368
+ itemDisabledColor: B,
1369
+ // Danger
1370
+ dangerItemColor: m,
1371
+ dangerItemHoverColor: x,
1372
+ dangerItemSelectedColor: E,
1373
+ dangerItemActiveBg: v,
1374
+ dangerItemSelectedBg: u,
1375
+ menuSubMenuBg: f,
1376
+ // Horizontal
1377
+ horizontalItemSelectedColor: p,
1378
+ horizontalItemSelectedBg: $
1379
+ });
1380
+ return [
1381
+ // Basic
1382
+ Qt(I),
1383
+ // Horizontal
1384
+ Yt(I),
1385
+ // Hard code for some light style
1386
+ // Vertical
1387
+ Zt(I),
1388
+ // Hard code for some light style
1389
+ // Theme
1390
+ Be(I, "light"),
1391
+ Be(S, "dark"),
1392
+ // RTL
1393
+ Ut(I),
1394
+ // Motion
1395
+ Pt(I),
1396
+ ne(I, "slide-up"),
1397
+ ne(I, "slide-down"),
1398
+ Pe(I, "zoom-big")
1399
+ ];
1400
+ }, Jt, {
1401
+ deprecatedTokens: [["colorGroupTitle", "groupTitleColor"], ["radiusItem", "itemBorderRadius"], ["radiusSubMenuItem", "subMenuItemBorderRadius"], ["colorItemText", "itemColor"], ["colorItemTextHover", "itemHoverColor"], ["colorItemTextHoverHorizontal", "horizontalItemHoverColor"], ["colorItemTextSelected", "itemSelectedColor"], ["colorItemTextSelectedHorizontal", "horizontalItemSelectedColor"], ["colorItemTextDisabled", "itemDisabledColor"], ["colorDangerItemText", "dangerItemColor"], ["colorDangerItemTextHover", "dangerItemHoverColor"], ["colorDangerItemTextSelected", "dangerItemSelectedColor"], ["colorDangerItemBgActive", "dangerItemActiveBg"], ["colorDangerItemBgSelected", "dangerItemSelectedBg"], ["colorItemBg", "itemBg"], ["colorItemBgHover", "itemHoverBg"], ["colorSubItemBg", "subMenuItemBg"], ["colorItemBgActive", "itemActiveBg"], ["colorItemBgSelectedHorizontal", "horizontalItemSelectedBg"], ["colorActiveBarWidth", "activeBarWidth"], ["colorActiveBarHeight", "activeBarHeight"], ["colorActiveBarBorderSize", "activeBarBorderWidth"], ["colorItemBgSelected", "itemSelectedBg"]],
1402
+ // Dropdown will handle menu style self. We do not need to handle this.
1403
+ injectStyle: t,
1404
+ unitless: {
1405
+ groupTitleLineHeight: !0
1406
+ }
1407
+ })(e, o), Xe = (e) => {
1408
+ var o;
1409
+ const {
1410
+ popupClassName: t,
1411
+ icon: r,
1412
+ title: n,
1413
+ theme: a
1414
+ } = e, i = l.useContext(re), {
1415
+ prefixCls: d,
1416
+ inlineCollapsed: s,
1417
+ theme: m
1418
+ } = i, g = Ct();
1419
+ let f;
1420
+ if (!r)
1421
+ f = s && !g.length && n && typeof n == "string" ? /* @__PURE__ */ l.createElement("div", {
1422
+ className: `${d}-inline-collapsed-noicon`
1423
+ }, n.charAt(0)) : /* @__PURE__ */ l.createElement("span", {
1424
+ className: `${d}-title-content`
1425
+ }, n);
1426
+ else {
1427
+ const u = /* @__PURE__ */ l.isValidElement(n) && n.type === "span";
1428
+ f = /* @__PURE__ */ l.createElement(l.Fragment, null, ae(r, {
1429
+ className: D(/* @__PURE__ */ l.isValidElement(r) ? (o = r.props) === null || o === void 0 ? void 0 : o.className : void 0, `${d}-item-icon`)
1430
+ }), u ? n : /* @__PURE__ */ l.createElement("span", {
1431
+ className: `${d}-title-content`
1432
+ }, n));
1433
+ }
1434
+ const p = l.useMemo(() => Object.assign(Object.assign({}, i), {
1435
+ firstLevel: !1
1436
+ }), [i]), [$] = je("Menu");
1437
+ return /* @__PURE__ */ l.createElement(re.Provider, {
1438
+ value: p
1439
+ }, /* @__PURE__ */ l.createElement(It, Object.assign({}, te(e, ["icon"]), {
1440
+ title: f,
1441
+ popupClassName: D(d, t, `${d}-${a || m}`),
1442
+ popupStyle: Object.assign({
1443
+ zIndex: $
1444
+ }, e.popupStyle)
1445
+ })));
1446
+ };
1447
+ var eo = function(e, o) {
1448
+ var t = {};
1449
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && o.indexOf(r) < 0 && (t[r] = e[r]);
1450
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
1451
+ o.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (t[r[n]] = e[r[n]]);
1452
+ return t;
1453
+ };
1454
+ function ce(e) {
1455
+ return e === null || e === !1;
1456
+ }
1457
+ const to = {
1458
+ item: We,
1459
+ submenu: Xe,
1460
+ divider: ke
1461
+ }, oo = /* @__PURE__ */ Te((e, o) => {
1462
+ var t;
1463
+ const r = l.useContext(ie), n = r || {}, {
1464
+ getPrefixCls: a,
1465
+ getPopupContainer: i,
1466
+ direction: d,
1467
+ menu: s
1468
+ } = l.useContext(ee), m = a(), {
1469
+ prefixCls: g,
1470
+ className: f,
1471
+ style: p,
1472
+ theme: $ = "light",
1473
+ expandIcon: u,
1474
+ _internalDisableMenuItemTitleTooltip: c,
1475
+ inlineCollapsed: h,
1476
+ siderCollapsed: C,
1477
+ rootClassName: B,
1478
+ mode: x,
1479
+ selectable: E,
1480
+ onClick: v,
1481
+ overflowedIndicatorPopupClassName: N
1482
+ } = e, M = eo(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), j = te(M, ["collapsedWidth"]);
1483
+ if (process.env.NODE_ENV !== "production") {
1484
+ const L = Me("Menu");
1485
+ process.env.NODE_ENV !== "production" && L(!("inlineCollapsed" in e && x !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), L.deprecated("items" in e && !e.children, "children", "items");
1486
+ }
1487
+ (t = n.validator) === null || t === void 0 || t.call(n, {
1488
+ mode: x
1489
+ });
1490
+ const I = ge((...L) => {
1491
+ var O;
1492
+ v == null || v.apply(void 0, L), (O = n.onClick) === null || O === void 0 || O.call(n);
1493
+ }), S = n.mode || x, R = E ?? n.selectable, z = h ?? C, H = {
1494
+ horizontal: {
1495
+ motionName: `${m}-slide-up`
1496
+ },
1497
+ inline: st(m),
1498
+ other: {
1499
+ motionName: `${m}-zoom-big`
1500
+ }
1501
+ }, y = a("menu", g || n.prefixCls), A = De(y), [V, _, w] = Kt(y, A, !r), k = D(`${y}-${$}`, s == null ? void 0 : s.className, f), q = l.useMemo(() => {
1502
+ var L, O;
1503
+ if (typeof u == "function" || ce(u))
1504
+ return u || null;
1505
+ if (typeof n.expandIcon == "function" || ce(n.expandIcon))
1506
+ return n.expandIcon || null;
1507
+ if (typeof (s == null ? void 0 : s.expandIcon) == "function" || ce(s == null ? void 0 : s.expandIcon))
1508
+ return (s == null ? void 0 : s.expandIcon) || null;
1509
+ const W = (L = u ?? (n == null ? void 0 : n.expandIcon)) !== null && L !== void 0 ? L : s == null ? void 0 : s.expandIcon;
1510
+ return ae(W, {
1511
+ className: D(`${y}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(W) ? (O = W.props) === null || O === void 0 ? void 0 : O.className : void 0)
1512
+ });
1513
+ }, [u, n == null ? void 0 : n.expandIcon, s == null ? void 0 : s.expandIcon, y]), Y = l.useMemo(() => ({
1514
+ prefixCls: y,
1515
+ inlineCollapsed: z || !1,
1516
+ direction: d,
1517
+ firstLevel: !0,
1518
+ theme: $,
1519
+ mode: S,
1520
+ disableMenuItemTitleTooltip: c
1521
+ }), [y, z, d, c, $]);
1522
+ return V(/* @__PURE__ */ l.createElement(ie.Provider, {
1523
+ value: null
1524
+ }, /* @__PURE__ */ l.createElement(re.Provider, {
1525
+ value: Y
1526
+ }, /* @__PURE__ */ l.createElement(St, Object.assign({
1527
+ getPopupContainer: i,
1528
+ overflowedIndicator: /* @__PURE__ */ l.createElement(Re, null),
1529
+ overflowedIndicatorPopupClassName: D(y, `${y}-${$}`, N),
1530
+ mode: S,
1531
+ selectable: R,
1532
+ onClick: I
1533
+ }, j, {
1534
+ inlineCollapsed: z,
1535
+ style: Object.assign(Object.assign({}, s == null ? void 0 : s.style), p),
1536
+ className: k,
1537
+ prefixCls: y,
1538
+ direction: d,
1539
+ defaultMotions: H,
1540
+ expandIcon: q,
1541
+ ref: o,
1542
+ rootClassName: D(B, _, n.rootClassName, w, A),
1543
+ _internalComponents: to
1544
+ })))));
1545
+ }), Z = /* @__PURE__ */ Te((e, o) => {
1546
+ const t = He(null), r = l.useContext(be);
1547
+ return Qe(o, () => ({
1548
+ menu: t.current,
1549
+ focus: (n) => {
1550
+ var a;
1551
+ (a = t.current) === null || a === void 0 || a.focus(n);
1552
+ }
1553
+ })), /* @__PURE__ */ l.createElement(oo, Object.assign({
1554
+ ref: t
1555
+ }, e, r));
1556
+ });
1557
+ Z.Item = We;
1558
+ Z.SubMenu = Xe;
1559
+ Z.Divider = ke;
1560
+ Z.ItemGroup = yt;
1561
+ process.env.NODE_ENV !== "production" && (Z.displayName = "Menu");
1562
+ const no = (e) => {
1563
+ const {
1564
+ componentCls: o,
1565
+ menuCls: t,
1566
+ colorError: r,
1567
+ colorTextLightSolid: n
1568
+ } = e, a = `${t}-item`;
1569
+ return {
1570
+ [`${o}, ${o}-menu-submenu`]: {
1571
+ [`${t} ${a}`]: {
1572
+ [`&${a}-danger:not(${a}-disabled)`]: {
1573
+ color: r,
1574
+ "&:hover": {
1575
+ color: n,
1576
+ backgroundColor: r
1577
+ }
1578
+ }
1579
+ }
1580
+ }
1581
+ };
1582
+ }, ro = (e) => {
1583
+ const {
1584
+ componentCls: o,
1585
+ menuCls: t,
1586
+ zIndexPopup: r,
1587
+ dropdownArrowDistance: n,
1588
+ sizePopupArrow: a,
1589
+ antCls: i,
1590
+ iconCls: d,
1591
+ motionDurationMid: s,
1592
+ paddingBlock: m,
1593
+ fontSize: g,
1594
+ dropdownEdgeChildPadding: f,
1595
+ colorTextDisabled: p,
1596
+ fontSizeIcon: $,
1597
+ controlPaddingHorizontal: u,
1598
+ colorBgElevated: c
1599
+ } = e;
1600
+ return [
1601
+ {
1602
+ [o]: {
1603
+ position: "absolute",
1604
+ top: -9999,
1605
+ left: {
1606
+ _skip_check_: !0,
1607
+ value: -9999
1608
+ },
1609
+ zIndex: r,
1610
+ display: "block",
1611
+ // A placeholder out of dropdown visible range to avoid close when user moving
1612
+ "&::before": {
1613
+ position: "absolute",
1614
+ insetBlock: e.calc(a).div(2).sub(n).equal(),
1615
+ // insetInlineStart: -7, // FIXME: Seems not work for hidden element
1616
+ zIndex: -9999,
1617
+ opacity: 1e-4,
1618
+ content: '""'
1619
+ },
1620
+ // Makes vertical dropdowns have a scrollbar once they become taller than the viewport.
1621
+ "&-menu-vertical": {
1622
+ maxHeight: "100vh",
1623
+ overflowY: "auto"
1624
+ },
1625
+ [`&-trigger${i}-btn`]: {
1626
+ [`& > ${d}-down, & > ${i}-btn-icon > ${d}-down`]: {
1627
+ fontSize: $
1628
+ }
1629
+ },
1630
+ [`${o}-wrap`]: {
1631
+ position: "relative",
1632
+ [`${i}-btn > ${d}-down`]: {
1633
+ fontSize: $
1634
+ },
1635
+ [`${d}-down::before`]: {
1636
+ transition: `transform ${s}`
1637
+ }
1638
+ },
1639
+ [`${o}-wrap-open`]: {
1640
+ [`${d}-down::before`]: {
1641
+ transform: "rotate(180deg)"
1642
+ }
1643
+ },
1644
+ "\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ": {
1645
+ display: "none"
1646
+ },
1647
+ // =============================================================
1648
+ // == Motion ==
1649
+ // =============================================================
1650
+ // When position is not enough for dropdown, the placement will revert.
1651
+ // We will handle this with revert motion name.
1652
+ [`&${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottomLeft,
1653
+ &${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottomLeft,
1654
+ &${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottom,
1655
+ &${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottom,
1656
+ &${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottomRight,
1657
+ &${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottomRight`]: {
1658
+ animationName: mt
1659
+ },
1660
+ [`&${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-topLeft,
1661
+ &${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-topLeft,
1662
+ &${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-top,
1663
+ &${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-top,
1664
+ &${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-topRight,
1665
+ &${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-topRight`]: {
1666
+ animationName: ut
1667
+ },
1668
+ [`&${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottomLeft,
1669
+ &${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottom,
1670
+ &${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottomRight`]: {
1671
+ animationName: ct
1672
+ },
1673
+ [`&${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-topLeft,
1674
+ &${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-top,
1675
+ &${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-topRight`]: {
1676
+ animationName: dt
1677
+ }
1678
+ }
1679
+ },
1680
+ // =============================================================
1681
+ // == Arrow style ==
1682
+ // =============================================================
1683
+ Et(e, c, {
1684
+ arrowPlacement: {
1685
+ top: !0,
1686
+ bottom: !0
1687
+ }
1688
+ }),
1689
+ {
1690
+ // =============================================================
1691
+ // == Menu ==
1692
+ // =============================================================
1693
+ [`${o} ${t}`]: {
1694
+ position: "relative",
1695
+ margin: 0
1696
+ },
1697
+ [`${t}-submenu-popup`]: {
1698
+ position: "absolute",
1699
+ zIndex: r,
1700
+ background: "transparent",
1701
+ boxShadow: "none",
1702
+ transformOrigin: "0 0",
1703
+ "ul, li": {
1704
+ listStyle: "none",
1705
+ margin: 0
1706
+ }
1707
+ },
1708
+ [`${o}, ${o}-menu-submenu`]: Object.assign(Object.assign({}, Ne(e)), {
1709
+ [t]: Object.assign(Object.assign({
1710
+ padding: f,
1711
+ listStyleType: "none",
1712
+ backgroundColor: c,
1713
+ backgroundClip: "padding-box",
1714
+ borderRadius: e.borderRadiusLG,
1715
+ outline: "none",
1716
+ boxShadow: e.boxShadowSecondary
1717
+ }, Ie(e)), {
1718
+ "&:empty": {
1719
+ padding: 0,
1720
+ boxShadow: "none"
1721
+ },
1722
+ [`${t}-item-group-title`]: {
1723
+ padding: `${b(m)} ${b(u)}`,
1724
+ color: e.colorTextDescription,
1725
+ transition: `all ${s}`
1726
+ },
1727
+ // ======================= Item Content =======================
1728
+ [`${t}-item`]: {
1729
+ position: "relative",
1730
+ display: "flex",
1731
+ alignItems: "center"
1732
+ },
1733
+ [`${t}-item-icon`]: {
1734
+ minWidth: g,
1735
+ marginInlineEnd: e.marginXS,
1736
+ fontSize: e.fontSizeSM
1737
+ },
1738
+ [`${t}-title-content`]: {
1739
+ flex: "auto",
1740
+ "&-with-extra": {
1741
+ display: "inline-flex",
1742
+ alignItems: "center",
1743
+ width: "100%"
1744
+ },
1745
+ "> a": {
1746
+ color: "inherit",
1747
+ transition: `all ${s}`,
1748
+ "&:hover": {
1749
+ color: "inherit"
1750
+ },
1751
+ "&::after": {
1752
+ position: "absolute",
1753
+ inset: 0,
1754
+ content: '""'
1755
+ }
1756
+ },
1757
+ [`${t}-item-extra`]: {
1758
+ paddingInlineStart: e.padding,
1759
+ marginInlineStart: "auto",
1760
+ fontSize: e.fontSizeSM,
1761
+ color: e.colorTextDescription
1762
+ }
1763
+ },
1764
+ // =========================== Item ===========================
1765
+ [`${t}-item, ${t}-submenu-title`]: Object.assign(Object.assign({
1766
+ display: "flex",
1767
+ margin: 0,
1768
+ padding: `${b(m)} ${b(u)}`,
1769
+ color: e.colorText,
1770
+ fontWeight: "normal",
1771
+ fontSize: g,
1772
+ lineHeight: e.lineHeight,
1773
+ cursor: "pointer",
1774
+ transition: `all ${s}`,
1775
+ borderRadius: e.borderRadiusSM,
1776
+ "&:hover, &-active": {
1777
+ backgroundColor: e.controlItemBgHover
1778
+ }
1779
+ }, Ie(e)), {
1780
+ "&-selected": {
1781
+ color: e.colorPrimary,
1782
+ backgroundColor: e.controlItemBgActive,
1783
+ "&:hover, &-active": {
1784
+ backgroundColor: e.controlItemBgActiveHover
1785
+ }
1786
+ },
1787
+ "&-disabled": {
1788
+ color: p,
1789
+ cursor: "not-allowed",
1790
+ "&:hover": {
1791
+ color: p,
1792
+ backgroundColor: c,
1793
+ cursor: "not-allowed"
1794
+ },
1795
+ a: {
1796
+ pointerEvents: "none"
1797
+ }
1798
+ },
1799
+ "&-divider": {
1800
+ height: 1,
1801
+ // By design
1802
+ margin: `${b(e.marginXXS)} 0`,
1803
+ overflow: "hidden",
1804
+ lineHeight: 0,
1805
+ backgroundColor: e.colorSplit
1806
+ },
1807
+ [`${o}-menu-submenu-expand-icon`]: {
1808
+ position: "absolute",
1809
+ insetInlineEnd: e.paddingXS,
1810
+ [`${o}-menu-submenu-arrow-icon`]: {
1811
+ marginInlineEnd: "0 !important",
1812
+ color: e.colorIcon,
1813
+ fontSize: $,
1814
+ fontStyle: "normal"
1815
+ }
1816
+ }
1817
+ }),
1818
+ [`${t}-item-group-list`]: {
1819
+ margin: `0 ${b(e.marginXS)}`,
1820
+ padding: 0,
1821
+ listStyle: "none"
1822
+ },
1823
+ [`${t}-submenu-title`]: {
1824
+ paddingInlineEnd: e.calc(u).add(e.fontSizeSM).equal()
1825
+ },
1826
+ [`${t}-submenu-vertical`]: {
1827
+ position: "relative"
1828
+ },
1829
+ [`${t}-submenu${t}-submenu-disabled ${o}-menu-submenu-title`]: {
1830
+ [`&, ${o}-menu-submenu-arrow-icon`]: {
1831
+ color: p,
1832
+ backgroundColor: c,
1833
+ cursor: "not-allowed"
1834
+ }
1835
+ },
1836
+ // https://github.com/ant-design/ant-design/issues/19264
1837
+ [`${t}-submenu-selected ${o}-menu-submenu-title`]: {
1838
+ color: e.colorPrimary
1839
+ }
1840
+ })
1841
+ })
1842
+ },
1843
+ // Follow code may reuse in other components
1844
+ [ne(e, "slide-up"), ne(e, "slide-down"), Se(e, "move-up"), Se(e, "move-down"), Pe(e, "zoom-big")]
1845
+ ];
1846
+ }, io = (e) => Object.assign(Object.assign({
1847
+ zIndexPopup: e.zIndexPopupBase + 50,
1848
+ paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2
1849
+ }, Bt({
1850
+ contentRadius: e.borderRadiusLG,
1851
+ limitVerticalRadius: !0
1852
+ })), Ot(e)), lo = le("Dropdown", (e) => {
1853
+ const {
1854
+ marginXXS: o,
1855
+ sizePopupArrow: t,
1856
+ paddingXXS: r,
1857
+ componentCls: n
1858
+ } = e, a = pe(e, {
1859
+ menuCls: `${n}-menu`,
1860
+ dropdownArrowDistance: e.calc(t).div(2).add(o).equal(),
1861
+ dropdownEdgeChildPadding: r
1862
+ });
1863
+ return [ro(a), no(a)];
1864
+ }, io, {
1865
+ resetStyle: !1
1866
+ }), oe = (e) => {
1867
+ var o;
1868
+ const {
1869
+ menu: t,
1870
+ arrow: r,
1871
+ prefixCls: n,
1872
+ children: a,
1873
+ trigger: i,
1874
+ disabled: d,
1875
+ dropdownRender: s,
1876
+ popupRender: m,
1877
+ getPopupContainer: g,
1878
+ overlayClassName: f,
1879
+ rootClassName: p,
1880
+ overlayStyle: $,
1881
+ open: u,
1882
+ onOpenChange: c,
1883
+ // Deprecated
1884
+ visible: h,
1885
+ onVisibleChange: C,
1886
+ mouseEnterDelay: B = 0.15,
1887
+ mouseLeaveDelay: x = 0.1,
1888
+ autoAdjustOverflow: E = !0,
1889
+ placement: v = "",
1890
+ overlay: N,
1891
+ transitionName: M,
1892
+ destroyOnHidden: j,
1893
+ destroyPopupOnHide: I
1894
+ } = e, {
1895
+ getPopupContainer: S,
1896
+ getPrefixCls: R,
1897
+ direction: z,
1898
+ dropdown: H
1899
+ } = l.useContext(ee), y = m || s, A = Me("Dropdown");
1900
+ process.env.NODE_ENV !== "production" && (Object.entries({
1901
+ visible: "open",
1902
+ onVisibleChange: "onOpenChange",
1903
+ overlay: "menu",
1904
+ dropdownRender: "popupRender",
1905
+ destroyPopupOnHide: "destroyOnHidden"
1906
+ }).forEach(([U, Ue]) => {
1907
+ A.deprecated(!(U in e), U, Ue);
1908
+ }), v.includes("Center") && A.deprecated(!v.includes("Center"), `placement: ${v}`, `placement: ${v.slice(0, v.indexOf("Center"))}`));
1909
+ const V = l.useMemo(() => {
1910
+ const P = R();
1911
+ return M !== void 0 ? M : v.includes("top") ? `${P}-slide-down` : `${P}-slide-up`;
1912
+ }, [R, v, M]), _ = l.useMemo(() => v ? v.includes("Center") ? v.slice(0, v.indexOf("Center")) : v : z === "rtl" ? "bottomRight" : "bottomLeft", [v, z]), w = R("dropdown", n), k = De(w), [q, Y, L] = lo(w, k), [, O] = pt(), W = l.Children.only(jt(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), Q = ae(W, {
1913
+ className: D(`${w}-trigger`, {
1914
+ [`${w}-rtl`]: z === "rtl"
1915
+ }, W.props.className),
1916
+ disabled: (o = W.props.disabled) !== null && o !== void 0 ? o : d
1917
+ }), F = d ? [] : i, J = !!(F != null && F.includes("contextMenu")), [T, X] = gt(!1, {
1918
+ value: u ?? h
1919
+ }), K = ge((P) => {
1920
+ c == null || c(P, {
1921
+ source: "trigger"
1922
+ }), C == null || C(P), X(P);
1923
+ }), G = D(f, p, Y, L, k, H == null ? void 0 : H.className, {
1924
+ [`${w}-rtl`]: z === "rtl"
1925
+ }), qe = zt({
1926
+ arrowPointAtCenter: typeof r == "object" && r.pointAtCenter,
1927
+ autoAdjustOverflow: E,
1928
+ offset: O.marginXXS,
1929
+ arrowWidth: r ? O.sizePopupArrow : 0,
1930
+ borderRadius: O.borderRadius
1931
+ }), Fe = ge(() => {
1932
+ t != null && t.selectable && (t != null && t.multiple) || (c == null || c(!1, {
1933
+ source: "menu"
1934
+ }), X(!1));
1935
+ }), Ge = () => {
1936
+ let P;
1937
+ return t != null && t.items ? P = /* @__PURE__ */ l.createElement(Z, Object.assign({}, t)) : typeof N == "function" ? P = N() : P = N, y && (P = y(P)), P = l.Children.only(typeof P == "string" ? /* @__PURE__ */ l.createElement("span", null, P) : P), /* @__PURE__ */ l.createElement(Gt, {
1938
+ prefixCls: `${w}-menu`,
1939
+ rootClassName: D(L, k),
1940
+ expandIcon: /* @__PURE__ */ l.createElement("span", {
1941
+ className: `${w}-menu-submenu-arrow`
1942
+ }, z === "rtl" ? /* @__PURE__ */ l.createElement(ue, {
1943
+ className: `${w}-menu-submenu-arrow-icon`
1944
+ }) : /* @__PURE__ */ l.createElement(me, {
1945
+ className: `${w}-menu-submenu-arrow-icon`
1946
+ })),
1947
+ mode: "vertical",
1948
+ selectable: !1,
1949
+ onClick: Fe,
1950
+ validator: ({
1951
+ mode: U
1952
+ }) => {
1953
+ process.env.NODE_ENV !== "production" && A(!U || U === "vertical", "usage", `mode="${U}" is not supported for Dropdown's Menu.`);
1954
+ }
1955
+ }, P);
1956
+ }, [$e, Ye] = je("Dropdown", $ == null ? void 0 : $.zIndex);
1957
+ let se = /* @__PURE__ */ l.createElement(xt, Object.assign({
1958
+ alignPoint: J
1959
+ }, te(e, ["rootClassName"]), {
1960
+ mouseEnterDelay: B,
1961
+ mouseLeaveDelay: x,
1962
+ visible: T,
1963
+ builtinPlacements: qe,
1964
+ arrow: !!r,
1965
+ overlayClassName: G,
1966
+ prefixCls: w,
1967
+ getPopupContainer: g || S,
1968
+ transitionName: V,
1969
+ trigger: F,
1970
+ overlay: Ge,
1971
+ placement: _,
1972
+ onVisibleChange: K,
1973
+ overlayStyle: Object.assign(Object.assign(Object.assign({}, H == null ? void 0 : H.style), $), {
1974
+ zIndex: $e
1975
+ }),
1976
+ autoDestroy: j ?? I
1977
+ }), Q);
1978
+ return $e && (se = /* @__PURE__ */ l.createElement(bt.Provider, {
1979
+ value: Ye
1980
+ }, se)), q(se);
1981
+ }, ao = $t(oe, "align", void 0, "dropdown", (e) => e), so = (e) => /* @__PURE__ */ l.createElement(ao, Object.assign({}, e), /* @__PURE__ */ l.createElement("span", null));
1982
+ oe._InternalPanelDoNotUseOrYouWillBeFired = so;
1983
+ process.env.NODE_ENV !== "production" && (oe.displayName = "Dropdown");
1984
+ var co = function(e, o) {
1985
+ var t = {};
1986
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && o.indexOf(r) < 0 && (t[r] = e[r]);
1987
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
1988
+ o.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (t[r[n]] = e[r[n]]);
1989
+ return t;
1990
+ };
1991
+ const Ve = (e) => {
1992
+ const {
1993
+ getPopupContainer: o,
1994
+ getPrefixCls: t,
1995
+ direction: r
1996
+ } = l.useContext(ee), {
1997
+ prefixCls: n,
1998
+ type: a = "default",
1999
+ danger: i,
2000
+ disabled: d,
2001
+ loading: s,
2002
+ onClick: m,
2003
+ htmlType: g,
2004
+ children: f,
2005
+ className: p,
2006
+ menu: $,
2007
+ arrow: u,
2008
+ autoFocus: c,
2009
+ overlay: h,
2010
+ trigger: C,
2011
+ align: B,
2012
+ open: x,
2013
+ onOpenChange: E,
2014
+ placement: v,
2015
+ getPopupContainer: N,
2016
+ href: M,
2017
+ icon: j = /* @__PURE__ */ l.createElement(Re, null),
2018
+ title: I,
2019
+ buttonsRender: S = (G) => G,
2020
+ mouseEnterDelay: R,
2021
+ mouseLeaveDelay: z,
2022
+ overlayClassName: H,
2023
+ overlayStyle: y,
2024
+ destroyOnHidden: A,
2025
+ destroyPopupOnHide: V,
2026
+ dropdownRender: _,
2027
+ popupRender: w
2028
+ } = e, k = co(e, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyOnHidden", "destroyPopupOnHide", "dropdownRender", "popupRender"]), q = t("dropdown", n), Y = `${q}-button`, O = {
2029
+ menu: $,
2030
+ arrow: u,
2031
+ autoFocus: c,
2032
+ align: B,
2033
+ disabled: d,
2034
+ trigger: d ? [] : C,
2035
+ onOpenChange: E,
2036
+ getPopupContainer: N || o,
2037
+ mouseEnterDelay: R,
2038
+ mouseLeaveDelay: z,
2039
+ overlayClassName: H,
2040
+ overlayStyle: y,
2041
+ destroyOnHidden: A,
2042
+ popupRender: w || _
2043
+ }, {
2044
+ compactSize: W,
2045
+ compactItemClassnames: Q
2046
+ } = ft(q, r), F = D(Y, Q, p);
2047
+ "destroyPopupOnHide" in e && (O.destroyPopupOnHide = V), "overlay" in e && (O.overlay = h), "open" in e && (O.open = x), "placement" in e ? O.placement = v : O.placement = r === "rtl" ? "bottomLeft" : "bottomRight";
2048
+ const J = /* @__PURE__ */ l.createElement(ye, {
2049
+ type: a,
2050
+ danger: i,
2051
+ disabled: d,
2052
+ loading: s,
2053
+ onClick: m,
2054
+ htmlType: g,
2055
+ href: M,
2056
+ title: I
2057
+ }, f), T = /* @__PURE__ */ l.createElement(ye, {
2058
+ type: a,
2059
+ danger: i,
2060
+ icon: j
2061
+ }), [X, K] = S([J, T]);
2062
+ return /* @__PURE__ */ l.createElement(Nt.Compact, Object.assign({
2063
+ className: F,
2064
+ size: W,
2065
+ block: !0
2066
+ }, k), X, /* @__PURE__ */ l.createElement(oe, Object.assign({}, O), K));
2067
+ };
2068
+ Ve.__ANT_BUTTON = !0;
2069
+ const uo = oe;
2070
+ uo.Button = Ve;
2071
+ export {
2072
+ uo as D,
2073
+ Z as M,
2074
+ Gt as O
2075
+ };