@yuku123/z-cognition-component 2.0.2 → 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 (243) 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-CvgRLQw2.js → agents-eZDKzePP.js} +41 -41
  31. package/dist-lib/{ai-DYDhijtn.js → ai-CNSn3-sd.js} +32 -32
  32. package/dist-lib/{ai-chat-share-DJnybJtS.js → ai-chat-share-Yrqt_J6a.js} +13 -14
  33. package/dist-lib/ak-manage-DklVFT5I.js +805 -0
  34. package/dist-lib/{approval-3IbhY8Lp.js → approval-B-bCSmfi.js} +25 -26
  35. package/dist-lib/{approvals-Cd6CVzz4.js → approvals-B0ggYiyD.js} +42 -43
  36. package/dist-lib/{assistant-cIXgilaE.js → assistant-Of0mgMsM.js} +33 -34
  37. package/dist-lib/{assistant-history-BQzH4ChB.js → assistant-history-DcyDhUzJ.js} +5 -5
  38. package/dist-lib/{assistant-summary-LKTj_HKM.js → assistant-summary-CjLaTyFz.js} +1 -1
  39. package/dist-lib/{audit-CxuJ5unU.js → audit-wDNCfmOy.js} +1 -1
  40. package/dist-lib/{bios-BplnCOF4.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-BoGqt_81.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-BaX7WiWV.js → detail-DioaWKWj.js} +5847 -7224
  60. package/dist-lib/{detail-Cx5c4KJH.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-C3Oz04OW.js → downloads-DtV5hOQv.js} +3 -4
  64. package/dist-lib/{edit-Cbn2eJaJ.js → edit-NtXUNj5N.js} +262 -266
  65. package/dist-lib/{editor-mtaJBQXz.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-BoHiY8yT.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-Bm1sK-VN.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-B22_2Dzh.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-BSlCGnzo.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-Cj4DDWyj.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-CHBNrCMy.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-CLTfICbf.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-B0rM1ZvV.js → kb-form-modal-D9gnvXbE.js} +67 -67
  128. package/dist-lib/{kbTeam-Bh_FQH28.js → kbTeam-CorrPJFr.js} +3 -3
  129. package/dist-lib/{knowledge-base-Cl1Ka1e6.js → knowledge-base-DJkjMFHW.js} +103 -104
  130. package/dist-lib/{knowledge-hub-CPuzdRiq.js → knowledge-hub-DKiDlaZz.js} +54 -55
  131. package/dist-lib/login-56zv4aLO.js +36 -0
  132. package/dist-lib/{markdown-lite-Cu62Fl7J.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-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
  138. package/dist-lib/material-workspace-model-QLsU5qUO.js +328 -0
  139. package/dist-lib/{member-DKDx77PD.js → member-Cz-OIdj9.js} +1 -1
  140. package/dist-lib/memory-reorganization-DgJnWIrW.js +8 -0
  141. package/dist-lib/memory-spaces-D-orVNR7.js +2340 -0
  142. package/dist-lib/{message-Dievi8Jw.js → message-C9gfvpGg.js} +1 -1
  143. package/dist-lib/{message-BrooQ3Q7.js → message-D6FhzB7J.js} +24 -25
  144. package/dist-lib/{messages-xTNmTS9g.js → messages-cctmEVcG.js} +15 -16
  145. package/dist-lib/meta-DT_O4zM9.js +708 -0
  146. package/dist-lib/{metrics-DiHYqBKB.js → metrics-BNeVcI8-.js} +2 -2
  147. package/dist-lib/mobile-D8kZjfQU.js +2413 -0
  148. package/dist-lib/{monitor-BXsdMJSV.js → monitor-DTUyqumg.js} +4 -4
  149. package/dist-lib/{monitor-BBCu3zRe.js → monitor-DexMYjzF.js} +8 -8
  150. package/dist-lib/{my-access-CEGErUgv.js → my-access-DWBV6ohp.js} +120 -132
  151. package/dist-lib/{my-permissions-wSr5zv7g.js → my-permissions-B-gJZQYM.js} +22 -23
  152. package/dist-lib/navigation-DVlyWnpD.js +102 -0
  153. package/dist-lib/{new-BevAuTe5.js → new-JmARyD88.js} +14 -15
  154. package/dist-lib/{ontology-DXGSJC-y.js → ontology-B4rkO33J.js} +50 -52
  155. package/dist-lib/ontology-dataprep-BwD5TKs2.js +322 -0
  156. package/dist-lib/{ontology-domains-jTG7CZm8.js → ontology-domains-zxFrjn0v.js} +89 -92
  157. package/dist-lib/ontology-extract-BHOxruRO.js +3199 -0
  158. package/dist-lib/ontology-extract-iR_rXxFe.js +295 -0
  159. package/dist-lib/ontology-flow-CW0SzeK7.js +456 -0
  160. package/dist-lib/ontology-flow-Dv5iQ20f.js +154 -0
  161. package/dist-lib/ontology-modeling-B9wswveh.js +510 -0
  162. package/dist-lib/ontology-modeling-hakCluBi.js +15136 -0
  163. package/dist-lib/{ontology-scenarios-J5kw6xgi.js → ontology-scenarios-C2kp7Rs-.js} +1466 -1482
  164. package/dist-lib/ontology-scenarios-DKnfydG6.js +675 -0
  165. package/dist-lib/ontology-task-config-DmnWyCCB.js +122 -0
  166. package/dist-lib/ontology-terms-BoNB-5ar.js +66 -0
  167. package/dist-lib/ontology-terms-C-NhpcIZ.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-Dq1-AOQw.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-DCNSE--Y.js} +8 -8
  175. package/dist-lib/progress-CZxOOnIs.js +778 -0
  176. package/dist-lib/{quota-D31cXjul.js → quota-oICQRHFU.js} +4 -4
  177. package/dist-lib/row-By17TCiW.js +154 -0
  178. package/dist-lib/runs-DQTDpPaN.js +565 -0
  179. package/dist-lib/{save-blob-CiWNK-cX.js → save-blob-CwCZE1Dn.js} +2 -2
  180. package/dist-lib/{scenario-mapping-preview-DQ_OBV4Z.js → scenario-mapping-preview-sJtjgmry.js} +46 -48
  181. package/dist-lib/scenario-simple-form-BvKSPFzw.js +989 -0
  182. package/dist-lib/{schedule-BktxwX3S.js → schedule-CwkPPSuT.js} +8 -8
  183. package/dist-lib/script-gYJAFobb.js +2709 -0
  184. package/dist-lib/{settings-dsB3H65I.js → settings-CJd5Jj4y.js} +133 -134
  185. package/dist-lib/{shared-CTCzvhyE.js → shared-DG5-VCDM.js} +1 -1
  186. package/dist-lib/{shared-utils-BstybhBG.js → shared-utils-CFHws1DA.js} +2 -2
  187. package/dist-lib/{skills-CHPlMsgO.js → skills-lxpJ5Lzx.js} +39 -40
  188. package/dist-lib/{source-selection-tXqc855k.js → source-selection-DJnQQckl.js} +16 -16
  189. package/dist-lib/sources-C83LpCcV.js +279 -0
  190. package/dist-lib/style-B5THvtDY.js +191 -0
  191. package/dist-lib/{task-config-BiTOiZj0.js → task-config-BNYoOb79.js} +4 -4
  192. package/dist-lib/{tech-BKlGPkV0.js → tech-LuZvKDo6.js} +3 -4
  193. package/dist-lib/templates-a-kbCamr.js +58 -0
  194. package/dist-lib/tenant-login-COB-5h_2.js +338 -0
  195. package/dist-lib/{tools-CouQ4FWk.js → tools-CrA6GrY6.js} +14 -14
  196. package/dist-lib/{use-domain-access-BPlNfoiP.js → use-domain-access-ehGJBGvU.js} +15 -15
  197. package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-DfRnsBS6.js} +1 -1
  198. package/dist-lib/{use-graph-layers-ja-ZIC_R.js → use-graph-layers-CrhEeHfD.js} +48 -50
  199. package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
  200. package/dist-lib/useBreakpoint-Cul9y9Cu.js +87 -0
  201. package/dist-lib/{useForm-Byp1LopG.js → useForm-B-dwOwJ8.js} +11 -11
  202. package/dist-lib/{version-control-panel-CkBm36Yk.js → version-control-panel-mWXkC-uB.js} +26 -27
  203. package/dist-lib/{version-management-B4kIbdVc.js → version-management-nPlG7wQO.js} +6 -7
  204. package/dist-lib/{welcome-F5iZoFB1.js → welcome-Cqv1-rXT.js} +3 -4
  205. package/package.json +1 -1
  206. package/dist-lib/ApartmentOutlined-M6qSurnE.js +0 -12
  207. package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +0 -12
  208. package/dist-lib/EvidenceFormList-DXqqSpPV.js +0 -91
  209. package/dist-lib/ImpactPage-DyhUR6fT.js +0 -71
  210. package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +0 -136
  211. package/dist-lib/OntologyNodesPage-D4MWlm6q.js +0 -1268
  212. package/dist-lib/Pagination-Dxslodkq.js +0 -1344
  213. package/dist-lib/PlusOutlined-B_dXo_97.js +0 -12
  214. package/dist-lib/SearchOutlined-puH6bCY6.js +0 -979
  215. package/dist-lib/Skeleton-DXcERb5r.js +0 -557
  216. package/dist-lib/TagsOutlined-B4_qkn6-.js +0 -20
  217. package/dist-lib/TermDetailPage-CP0D6OvA.js +0 -242
  218. package/dist-lib/TextArea-DTpTS5HL.js +0 -1897
  219. package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +0 -20
  220. package/dist-lib/callSuper-DZEfdkXG.js +0 -7
  221. package/dist-lib/changelog-Cn81Dvgk.js +0 -69
  222. package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +0 -2004
  223. package/dist-lib/context-Buz0ggsK.js +0 -710
  224. package/dist-lib/context-DpmyNOn3.js +0 -21
  225. package/dist-lib/embed-CR8XVkMy.js +0 -31148
  226. package/dist-lib/focus-set-h0YtOUB2.js +0 -427
  227. package/dist-lib/index-CaXylbQR.js +0 -3419
  228. package/dist-lib/index-Cfu1W1H6.js +0 -535
  229. package/dist-lib/index-CrMcNEAZ.js +0 -9656
  230. package/dist-lib/index-CyKWCYMK.js +0 -218
  231. package/dist-lib/index-DBtGE89a.js +0 -168
  232. package/dist-lib/index-DjFPRXl5.js +0 -1484
  233. package/dist-lib/index-DvWHYX81.js +0 -450
  234. package/dist-lib/index-PBT9GksC.js +0 -340
  235. package/dist-lib/index-bOY1cBol.js +0 -4890
  236. package/dist-lib/meta-BD_qYTZu.js +0 -540
  237. package/dist-lib/ontology-modeling-CjRsa-DR.js +0 -1039
  238. package/dist-lib/ontology-modeling-DOj68TuI.js +0 -38946
  239. package/dist-lib/ontology-scenarios-CcAagMiP.js +0 -660
  240. package/dist-lib/pages-CsexFuEz.js +0 -73
  241. package/dist-lib/row-B5MnGm9M.js +0 -156
  242. package/dist-lib/scenario-simple-form-DESMvU7A.js +0 -2396
  243. package/dist-lib/useClosable-BY7FgWKy.js +0 -59
@@ -1,3419 +0,0 @@
1
- import * as i from "react";
2
- import ae, { forwardRef as Vt, useMemo as Go, useRef as ze, useCallback as Re, useImperativeHandle as An, useContext as vn, useState as bn, useEffect as Bt, createContext as Xo } from "react";
3
- import { R as zt, a as Dt } from "./LeftOutlined-Cgo6Izj-.js";
4
- import { q as me, i as ie, c as K, _ as oe, h as Z, b as ne, f as _e, a as qo, I as Hn, F as hn } from "./SearchOutlined-puH6bCY6.js";
5
- import { T as kn, F as Ze, d as dt, a as jn, s as Uo, e as Yo, f as Zo, g as Qo, h as Cn, j as Jo } from "./index-bOY1cBol.js";
6
- import { Q as De, i as ge, x as Ln, W as Wt, U as Kn, a1 as er, aE as Vn, _ as Ee, Y as tr, N as Qe, q as Wn, a2 as $e, ai as nr, aQ as or, a0 as rr, $ as ir, a3 as Ft, s as ar, g as Ae, u as D, c as He, ay as vt, aS as lr, z as sr, aB as cr, a5 as ur, m as mt, G as $n, r as Fn, a6 as dr, y as Gn, d as Xn, k as _t, f as qn, ak as mr, a as yn, e as pr, A as fr, a7 as gr, a9 as Un, a8 as vr, aT as br, B as Sn } from "./index-CrMcNEAZ.js";
7
- import { T as hr, a as Cr, g as $r, b as yr, c as Sr } from "./index-BwVZgt5s.js";
8
- import { flushSync as Ir } from "react-dom";
9
- import { a as xr, r as wr } from "./mediaQueryUtil-8vWuS10Z.js";
10
- import { g as Er } from "./collapse-Dtpt-6W_.js";
11
- var Or = ge.ESC, Mr = ge.TAB;
12
- function Pr(e) {
13
- var n = e.visible, t = e.triggerRef, o = e.onVisibleChange, r = e.autoFocus, l = e.overlayRef, a = i.useRef(!1), s = function() {
14
- if (n) {
15
- var d, m;
16
- (d = t.current) === null || d === void 0 || (m = d.focus) === null || m === void 0 || m.call(d), o == null || o(!1);
17
- }
18
- }, c = function() {
19
- var d;
20
- return (d = l.current) !== null && d !== void 0 && d.focus ? (l.current.focus(), a.current = !0, !0) : !1;
21
- }, u = function(d) {
22
- switch (d.keyCode) {
23
- case Or:
24
- s();
25
- break;
26
- case Mr: {
27
- var m = !1;
28
- a.current || (m = c()), m ? d.preventDefault() : s();
29
- break;
30
- }
31
- }
32
- };
33
- i.useEffect(function() {
34
- return n ? (window.addEventListener("keydown", u), r && De(c, 3), function() {
35
- window.removeEventListener("keydown", u), a.current = !1;
36
- }) : function() {
37
- a.current = !1;
38
- };
39
- }, [n]);
40
- }
41
- var Nr = /* @__PURE__ */ Vt(function(e, n) {
42
- var t = e.overlay, o = e.arrow, r = e.prefixCls, l = Go(function() {
43
- var s;
44
- return typeof t == "function" ? s = t() : s = t, s;
45
- }, [t]), a = Ln(n, Wt(l));
46
- return /* @__PURE__ */ ae.createElement(ae.Fragment, null, o && /* @__PURE__ */ ae.createElement("div", {
47
- className: "".concat(r, "-arrow")
48
- }), /* @__PURE__ */ ae.cloneElement(l, {
49
- ref: Kn(l) ? a : void 0
50
- }));
51
- }), Be = {
52
- adjustX: 1,
53
- adjustY: 1
54
- }, Te = [0, 0], Rr = {
55
- topLeft: {
56
- points: ["bl", "tl"],
57
- overflow: Be,
58
- offset: [0, -4],
59
- targetOffset: Te
60
- },
61
- top: {
62
- points: ["bc", "tc"],
63
- overflow: Be,
64
- offset: [0, -4],
65
- targetOffset: Te
66
- },
67
- topRight: {
68
- points: ["br", "tr"],
69
- overflow: Be,
70
- offset: [0, -4],
71
- targetOffset: Te
72
- },
73
- bottomLeft: {
74
- points: ["tl", "bl"],
75
- overflow: Be,
76
- offset: [0, 4],
77
- targetOffset: Te
78
- },
79
- bottom: {
80
- points: ["tc", "bc"],
81
- overflow: Be,
82
- offset: [0, 4],
83
- targetOffset: Te
84
- },
85
- bottomRight: {
86
- points: ["tr", "br"],
87
- overflow: Be,
88
- offset: [0, 4],
89
- targetOffset: Te
90
- }
91
- }, Br = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
92
- function Tr(e, n) {
93
- var t, o = e.arrow, r = o === void 0 ? !1 : o, l = e.prefixCls, a = l === void 0 ? "rc-dropdown" : l, s = e.transitionName, c = e.animation, u = e.align, f = e.placement, d = f === void 0 ? "bottomLeft" : f, m = e.placements, v = m === void 0 ? Rr : m, p = e.getPopupContainer, g = e.showAction, h = e.hideAction, $ = e.overlayClassName, w = e.overlayStyle, C = e.visible, y = e.trigger, b = y === void 0 ? ["hover"] : y, I = e.autoFocus, x = e.overlay, M = e.children, S = e.onVisibleChange, E = me(e, Br), z = ae.useState(), P = ie(z, 2), B = P[0], O = P[1], N = "visible" in e ? C : B, V = ae.useRef(null), A = ae.useRef(null), R = ae.useRef(null);
94
- ae.useImperativeHandle(n, function() {
95
- return V.current;
96
- });
97
- var H = function(T) {
98
- O(T), S == null || S(T);
99
- };
100
- Pr({
101
- visible: N,
102
- triggerRef: R,
103
- onVisibleChange: H,
104
- autoFocus: I,
105
- overlayRef: A
106
- });
107
- var G = function(T) {
108
- var X = e.onOverlayClick;
109
- O(!1), X && X(T);
110
- }, ee = function() {
111
- return /* @__PURE__ */ ae.createElement(Nr, {
112
- ref: A,
113
- overlay: x,
114
- prefixCls: a,
115
- arrow: r
116
- });
117
- }, W = function() {
118
- return typeof x == "function" ? ee : ee();
119
- }, _ = function() {
120
- var T = e.minOverlayWidthMatchTrigger, X = e.alignPoint;
121
- return "minOverlayWidthMatchTrigger" in e ? T : !X;
122
- }, F = function() {
123
- var T = e.openClassName;
124
- return T !== void 0 ? T : "".concat(a, "-open");
125
- }, j = /* @__PURE__ */ ae.cloneElement(M, {
126
- className: K((t = M.props) === null || t === void 0 ? void 0 : t.className, N && F()),
127
- ref: Kn(M) ? Ln(R, Wt(M)) : void 0
128
- }), k = h;
129
- return !k && b.indexOf("contextMenu") !== -1 && (k = ["click"]), /* @__PURE__ */ ae.createElement(kn, oe({
130
- builtinPlacements: v
131
- }, E, {
132
- prefixCls: a,
133
- ref: V,
134
- popupClassName: K($, Z({}, "".concat(a, "-show-arrow"), r)),
135
- popupStyle: w,
136
- action: b,
137
- showAction: g,
138
- hideAction: k,
139
- popupPlacement: d,
140
- popupAlign: u,
141
- popupTransitionName: s,
142
- popupAnimation: c,
143
- popupVisible: N,
144
- stretch: _() ? "minWidth" : "",
145
- popup: W(),
146
- onPopupVisibleChange: H,
147
- onPopupClick: G,
148
- getPopupContainer: p
149
- }), j);
150
- }
151
- const zr = /* @__PURE__ */ ae.forwardRef(Tr), Dr = (e) => typeof e != "object" && typeof e != "function" || e === null;
152
- var Yn = /* @__PURE__ */ i.createContext(null);
153
- function Zn(e, n) {
154
- return e === void 0 ? null : "".concat(e, "-").concat(n);
155
- }
156
- function Qn(e) {
157
- var n = i.useContext(Yn);
158
- return Zn(n, e);
159
- }
160
- var _r = ["children", "locked"], fe = /* @__PURE__ */ i.createContext(null);
161
- function Ar(e, n) {
162
- var t = ne({}, e);
163
- return Object.keys(n).forEach(function(o) {
164
- var r = n[o];
165
- r !== void 0 && (t[o] = r);
166
- }), t;
167
- }
168
- function Je(e) {
169
- var n = e.children, t = e.locked, o = me(e, _r), r = i.useContext(fe), l = er(function() {
170
- return Ar(r, o);
171
- }, [r, o], function(a, s) {
172
- return !t && (a[0] !== s[0] || !Vn(a[1], s[1], !0));
173
- });
174
- return /* @__PURE__ */ i.createElement(fe.Provider, {
175
- value: l
176
- }, n);
177
- }
178
- var Hr = [], Jn = /* @__PURE__ */ i.createContext(null);
179
- function bt() {
180
- return i.useContext(Jn);
181
- }
182
- var eo = /* @__PURE__ */ i.createContext(Hr);
183
- function ke(e) {
184
- var n = i.useContext(eo);
185
- return i.useMemo(function() {
186
- return e !== void 0 ? [].concat(Ee(n), [e]) : n;
187
- }, [n, e]);
188
- }
189
- var to = /* @__PURE__ */ i.createContext(null), Gt = /* @__PURE__ */ i.createContext({});
190
- function In(e) {
191
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
192
- if (tr(e)) {
193
- var t = e.nodeName.toLowerCase(), o = (
194
- // Focusable element
195
- ["input", "select", "textarea", "button"].includes(t) || // Editable element
196
- e.isContentEditable || // Anchor with href element
197
- t === "a" && !!e.getAttribute("href")
198
- ), r = e.getAttribute("tabindex"), l = Number(r), a = null;
199
- return r && !Number.isNaN(l) ? a = l : o && a === null && (a = 0), o && e.disabled && (a = null), a !== null && (a >= 0 || n && a < 0);
200
- }
201
- return !1;
202
- }
203
- function kr(e) {
204
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = Ee(e.querySelectorAll("*")).filter(function(o) {
205
- return In(o, n);
206
- });
207
- return In(e, n) && t.unshift(e), t;
208
- }
209
- var At = ge.LEFT, Ht = ge.RIGHT, kt = ge.UP, ct = ge.DOWN, ut = ge.ENTER, no = ge.ESC, qe = ge.HOME, Ue = ge.END, xn = [kt, ct, At, Ht];
210
- function jr(e, n, t, o) {
211
- var r, l = "prev", a = "next", s = "children", c = "parent";
212
- if (e === "inline" && o === ut)
213
- return {
214
- inlineTrigger: !0
215
- };
216
- var u = Z(Z({}, kt, l), ct, a), f = Z(Z(Z(Z({}, At, t ? a : l), Ht, t ? l : a), ct, s), ut, s), d = Z(Z(Z(Z(Z(Z({}, kt, l), ct, a), ut, s), no, c), At, t ? s : c), Ht, t ? c : s), m = {
217
- inline: u,
218
- horizontal: f,
219
- vertical: d,
220
- inlineSub: u,
221
- horizontalSub: d,
222
- verticalSub: d
223
- }, v = (r = m["".concat(e).concat(n ? "" : "Sub")]) === null || r === void 0 ? void 0 : r[o];
224
- switch (v) {
225
- case l:
226
- return {
227
- offset: -1,
228
- sibling: !0
229
- };
230
- case a:
231
- return {
232
- offset: 1,
233
- sibling: !0
234
- };
235
- case c:
236
- return {
237
- offset: -1,
238
- sibling: !1
239
- };
240
- case s:
241
- return {
242
- offset: 1,
243
- sibling: !1
244
- };
245
- default:
246
- return null;
247
- }
248
- }
249
- function Lr(e) {
250
- for (var n = e; n; ) {
251
- if (n.getAttribute("data-menu-list"))
252
- return n;
253
- n = n.parentElement;
254
- }
255
- return null;
256
- }
257
- function Kr(e, n) {
258
- for (var t = e || document.activeElement; t; ) {
259
- if (n.has(t))
260
- return t;
261
- t = t.parentElement;
262
- }
263
- return null;
264
- }
265
- function Xt(e, n) {
266
- var t = kr(e, !0);
267
- return t.filter(function(o) {
268
- return n.has(o);
269
- });
270
- }
271
- function wn(e, n, t) {
272
- var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1;
273
- if (!e)
274
- return null;
275
- var r = Xt(e, n), l = r.length, a = r.findIndex(function(s) {
276
- return t === s;
277
- });
278
- return o < 0 ? a === -1 ? a = l - 1 : a -= 1 : o > 0 && (a += 1), a = (a + l) % l, r[a];
279
- }
280
- var jt = function(n, t) {
281
- var o = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
282
- return n.forEach(function(a) {
283
- var s = document.querySelector("[data-menu-id='".concat(Zn(t, a), "']"));
284
- s && (o.add(s), l.set(s, a), r.set(a, s));
285
- }), {
286
- elements: o,
287
- key2element: r,
288
- element2key: l
289
- };
290
- };
291
- function Vr(e, n, t, o, r, l, a, s, c, u) {
292
- var f = i.useRef(), d = i.useRef();
293
- d.current = n;
294
- var m = function() {
295
- De.cancel(f.current);
296
- };
297
- return i.useEffect(function() {
298
- return function() {
299
- m();
300
- };
301
- }, []), function(v) {
302
- var p = v.which;
303
- if ([].concat(xn, [ut, no, qe, Ue]).includes(p)) {
304
- var g = l(), h = jt(g, o), $ = h, w = $.elements, C = $.key2element, y = $.element2key, b = C.get(n), I = Kr(b, w), x = y.get(I), M = jr(e, a(x, !0).length === 1, t, p);
305
- if (!M && p !== qe && p !== Ue)
306
- return;
307
- (xn.includes(p) || [qe, Ue].includes(p)) && v.preventDefault();
308
- var S = function(A) {
309
- if (A) {
310
- var R = A, H = A.querySelector("a");
311
- H != null && H.getAttribute("href") && (R = H);
312
- var G = y.get(A);
313
- s(G), m(), f.current = De(function() {
314
- d.current === G && R.focus();
315
- });
316
- }
317
- };
318
- if ([qe, Ue].includes(p) || M.sibling || !I) {
319
- var E;
320
- !I || e === "inline" ? E = r.current : E = Lr(I);
321
- var z, P = Xt(E, w);
322
- p === qe ? z = P[0] : p === Ue ? z = P[P.length - 1] : z = wn(E, w, I, M.offset), S(z);
323
- } else if (M.inlineTrigger)
324
- c(x);
325
- else if (M.offset > 0)
326
- c(x, !0), m(), f.current = De(function() {
327
- h = jt(g, o);
328
- var V = I.getAttribute("aria-controls"), A = document.getElementById(V), R = wn(A, h.elements);
329
- S(R);
330
- }, 5);
331
- else if (M.offset < 0) {
332
- var B = a(x, !0), O = B[B.length - 2], N = C.get(O);
333
- c(O, !1), S(N);
334
- }
335
- }
336
- u == null || u(v);
337
- };
338
- }
339
- function Wr(e) {
340
- Promise.resolve().then(e);
341
- }
342
- var qt = "__RC_UTIL_PATH_SPLIT__", En = function(n) {
343
- return n.join(qt);
344
- }, Fr = function(n) {
345
- return n.split(qt);
346
- }, Lt = "rc-menu-more";
347
- function Gr() {
348
- var e = i.useState({}), n = ie(e, 2), t = n[1], o = ze(/* @__PURE__ */ new Map()), r = ze(/* @__PURE__ */ new Map()), l = i.useState([]), a = ie(l, 2), s = a[0], c = a[1], u = ze(0), f = ze(!1), d = function() {
349
- f.current || t({});
350
- }, m = Re(function(C, y) {
351
- process.env.NODE_ENV !== "production" && _e(!o.current.has(C), "Duplicated key '".concat(C, "' used in Menu by path [").concat(y.join(" > "), "]"));
352
- var b = En(y);
353
- r.current.set(b, C), o.current.set(C, b), u.current += 1;
354
- var I = u.current;
355
- Wr(function() {
356
- I === u.current && d();
357
- });
358
- }, []), v = Re(function(C, y) {
359
- var b = En(y);
360
- r.current.delete(b), o.current.delete(C);
361
- }, []), p = Re(function(C) {
362
- c(C);
363
- }, []), g = Re(function(C, y) {
364
- var b = o.current.get(C) || "", I = Fr(b);
365
- return y && s.includes(I[0]) && I.unshift(Lt), I;
366
- }, [s]), h = Re(function(C, y) {
367
- return C.filter(function(b) {
368
- return b !== void 0;
369
- }).some(function(b) {
370
- var I = g(b, !0);
371
- return I.includes(y);
372
- });
373
- }, [g]), $ = function() {
374
- var y = Ee(o.current.keys());
375
- return s.length && y.push(Lt), y;
376
- }, w = Re(function(C) {
377
- var y = "".concat(o.current.get(C)).concat(qt), b = /* @__PURE__ */ new Set();
378
- return Ee(r.current.keys()).forEach(function(I) {
379
- I.startsWith(y) && b.add(r.current.get(I));
380
- }), b;
381
- }, []);
382
- return i.useEffect(function() {
383
- return function() {
384
- f.current = !0;
385
- };
386
- }, []), {
387
- // Register
388
- registerPath: m,
389
- unregisterPath: v,
390
- refreshOverflowKeys: p,
391
- // Util
392
- isSubPathKey: h,
393
- getKeyPath: g,
394
- getKeys: $,
395
- getSubPathKeys: w
396
- };
397
- }
398
- function Ye(e) {
399
- var n = i.useRef(e);
400
- n.current = e;
401
- var t = i.useCallback(function() {
402
- for (var o, r = arguments.length, l = new Array(r), a = 0; a < r; a++)
403
- l[a] = arguments[a];
404
- return (o = n.current) === null || o === void 0 ? void 0 : o.call.apply(o, [n].concat(l));
405
- }, []);
406
- return e ? t : void 0;
407
- }
408
- var Xr = Math.random().toFixed(5).toString().slice(2), On = 0;
409
- function qr(e) {
410
- var n = Qe(e, {
411
- value: e
412
- }), t = ie(n, 2), o = t[0], r = t[1];
413
- return i.useEffect(function() {
414
- On += 1;
415
- var l = process.env.NODE_ENV === "test" ? "test" : "".concat(Xr, "-").concat(On);
416
- r("rc-menu-uuid-".concat(l));
417
- }, []), o;
418
- }
419
- function oo(e, n, t, o) {
420
- var r = i.useContext(fe), l = r.activeKey, a = r.onActive, s = r.onInactive, c = {
421
- active: l === e
422
- };
423
- return n || (c.onMouseEnter = function(u) {
424
- t == null || t({
425
- key: e,
426
- domEvent: u
427
- }), a(e);
428
- }, c.onMouseLeave = function(u) {
429
- o == null || o({
430
- key: e,
431
- domEvent: u
432
- }), s(e);
433
- }), c;
434
- }
435
- function ro(e) {
436
- var n = i.useContext(fe), t = n.mode, o = n.rtl, r = n.inlineIndent;
437
- if (t !== "inline")
438
- return null;
439
- var l = e;
440
- return o ? {
441
- paddingRight: l * r
442
- } : {
443
- paddingLeft: l * r
444
- };
445
- }
446
- function io(e) {
447
- var n = e.icon, t = e.props, o = e.children, r;
448
- return n === null || n === !1 ? null : (typeof n == "function" ? r = /* @__PURE__ */ i.createElement(n, ne({}, t)) : typeof n != "boolean" && (r = n), r || o || null);
449
- }
450
- var Ur = ["item"];
451
- function pt(e) {
452
- var n = e.item, t = me(e, Ur);
453
- return Object.defineProperty(t, "item", {
454
- get: function() {
455
- return _e(!1, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future."), n;
456
- }
457
- }), t;
458
- }
459
- var Yr = ["title", "attribute", "elementRef"], Zr = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], Qr = ["active"], Jr = /* @__PURE__ */ (function(e) {
460
- nr(t, e);
461
- var n = or(t);
462
- function t() {
463
- return rr(this, t), n.apply(this, arguments);
464
- }
465
- return ir(t, [{
466
- key: "render",
467
- value: function() {
468
- var r = this.props, l = r.title, a = r.attribute, s = r.elementRef, c = me(r, Yr), u = $e(c, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
469
- return _e(!a, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ i.createElement(Ze.Item, oe({}, a, {
470
- title: typeof l == "string" ? l : void 0
471
- }, u, {
472
- ref: s
473
- }));
474
- }
475
- }]), t;
476
- })(i.Component), ei = /* @__PURE__ */ i.forwardRef(function(e, n) {
477
- var t = e.style, o = e.className, r = e.eventKey, l = e.warnKey, a = e.disabled, s = e.itemIcon, c = e.children, u = e.role, f = e.onMouseEnter, d = e.onMouseLeave, m = e.onClick, v = e.onKeyDown, p = e.onFocus, g = me(e, Zr), h = Qn(r), $ = i.useContext(fe), w = $.prefixCls, C = $.onItemClick, y = $.disabled, b = $.overflowDisabled, I = $.itemIcon, x = $.selectedKeys, M = $.onActive, S = i.useContext(Gt), E = S._internalRenderMenuItem, z = "".concat(w, "-item"), P = i.useRef(), B = i.useRef(), O = y || a, N = Wn(n, B), V = ke(r);
478
- process.env.NODE_ENV !== "production" && l && _e(!1, "MenuItem should not leave undefined `key`.");
479
- var A = function(Q) {
480
- return {
481
- key: r,
482
- // Note: For legacy code is reversed which not like other antd component
483
- keyPath: Ee(V).reverse(),
484
- item: P.current,
485
- domEvent: Q
486
- };
487
- }, R = s || I, H = oo(r, O, f, d), G = H.active, ee = me(H, Qr), W = x.includes(r), _ = ro(V.length), F = function(Q) {
488
- if (!O) {
489
- var te = A(Q);
490
- m == null || m(pt(te)), C(te);
491
- }
492
- }, j = function(Q) {
493
- if (v == null || v(Q), Q.which === ge.ENTER) {
494
- var te = A(Q);
495
- m == null || m(pt(te)), C(te);
496
- }
497
- }, k = function(Q) {
498
- M(r), p == null || p(Q);
499
- }, U = {};
500
- e.role === "option" && (U["aria-selected"] = W);
501
- var T = /* @__PURE__ */ i.createElement(Jr, oe({
502
- ref: P,
503
- elementRef: N,
504
- role: u === null ? "none" : u || "menuitem",
505
- tabIndex: a ? null : -1,
506
- "data-menu-id": b && h ? null : h
507
- }, $e(g, ["extra"]), ee, U, {
508
- component: "li",
509
- "aria-disabled": a,
510
- style: ne(ne({}, _), t),
511
- className: K(z, Z(Z(Z({}, "".concat(z, "-active"), G), "".concat(z, "-selected"), W), "".concat(z, "-disabled"), O), o),
512
- onClick: F,
513
- onKeyDown: j,
514
- onFocus: k
515
- }), c, /* @__PURE__ */ i.createElement(io, {
516
- props: ne(ne({}, e), {}, {
517
- isSelected: W
518
- }),
519
- icon: R
520
- }));
521
- return E && (T = E(T, e, {
522
- selected: W
523
- })), T;
524
- });
525
- function ti(e, n) {
526
- var t = e.eventKey, o = bt(), r = ke(t);
527
- return i.useEffect(function() {
528
- if (o)
529
- return o.registerPath(t, r), function() {
530
- o.unregisterPath(t, r);
531
- };
532
- }, [r]), o ? null : /* @__PURE__ */ i.createElement(ei, oe({}, e, {
533
- ref: n
534
- }));
535
- }
536
- const ht = /* @__PURE__ */ i.forwardRef(ti);
537
- var ni = ["className", "children"], oi = function(n, t) {
538
- var o = n.className, r = n.children, l = me(n, ni), a = i.useContext(fe), s = a.prefixCls, c = a.mode, u = a.rtl;
539
- return /* @__PURE__ */ i.createElement("ul", oe({
540
- className: K(s, u && "".concat(s, "-rtl"), "".concat(s, "-sub"), "".concat(s, "-").concat(c === "inline" ? "inline" : "vertical"), o),
541
- role: "menu"
542
- }, l, {
543
- "data-menu-list": !0,
544
- ref: t
545
- }), r);
546
- }, Ut = /* @__PURE__ */ i.forwardRef(oi);
547
- Ut.displayName = "SubMenuList";
548
- function Yt(e, n) {
549
- return Ft(e).map(function(t, o) {
550
- if (/* @__PURE__ */ i.isValidElement(t)) {
551
- var r, l, a = t.key, s = (r = (l = t.props) === null || l === void 0 ? void 0 : l.eventKey) !== null && r !== void 0 ? r : a, c = s == null;
552
- c && (s = "tmp_key-".concat([].concat(Ee(n), [o]).join("-")));
553
- var u = {
554
- key: s,
555
- eventKey: s
556
- };
557
- return process.env.NODE_ENV !== "production" && c && (u.warnKey = !0), /* @__PURE__ */ i.cloneElement(t, u);
558
- }
559
- return t;
560
- });
561
- }
562
- var le = {
563
- adjustX: 1,
564
- adjustY: 1
565
- }, ri = {
566
- topLeft: {
567
- points: ["bl", "tl"],
568
- overflow: le
569
- },
570
- topRight: {
571
- points: ["br", "tr"],
572
- overflow: le
573
- },
574
- bottomLeft: {
575
- points: ["tl", "bl"],
576
- overflow: le
577
- },
578
- bottomRight: {
579
- points: ["tr", "br"],
580
- overflow: le
581
- },
582
- leftTop: {
583
- points: ["tr", "tl"],
584
- overflow: le
585
- },
586
- leftBottom: {
587
- points: ["br", "bl"],
588
- overflow: le
589
- },
590
- rightTop: {
591
- points: ["tl", "tr"],
592
- overflow: le
593
- },
594
- rightBottom: {
595
- points: ["bl", "br"],
596
- overflow: le
597
- }
598
- }, ii = {
599
- topLeft: {
600
- points: ["bl", "tl"],
601
- overflow: le
602
- },
603
- topRight: {
604
- points: ["br", "tr"],
605
- overflow: le
606
- },
607
- bottomLeft: {
608
- points: ["tl", "bl"],
609
- overflow: le
610
- },
611
- bottomRight: {
612
- points: ["tr", "br"],
613
- overflow: le
614
- },
615
- rightTop: {
616
- points: ["tr", "tl"],
617
- overflow: le
618
- },
619
- rightBottom: {
620
- points: ["br", "bl"],
621
- overflow: le
622
- },
623
- leftTop: {
624
- points: ["tl", "tr"],
625
- overflow: le
626
- },
627
- leftBottom: {
628
- points: ["bl", "br"],
629
- overflow: le
630
- }
631
- };
632
- function ao(e, n, t) {
633
- if (n)
634
- return n;
635
- if (t)
636
- return t[e] || t.other;
637
- }
638
- var ai = {
639
- horizontal: "bottomLeft",
640
- vertical: "rightTop",
641
- "vertical-left": "rightTop",
642
- "vertical-right": "leftTop"
643
- };
644
- function li(e) {
645
- var n = e.prefixCls, t = e.visible, o = e.children, r = e.popup, l = e.popupStyle, a = e.popupClassName, s = e.popupOffset, c = e.disabled, u = e.mode, f = e.onVisibleChange, d = i.useContext(fe), m = d.getPopupContainer, v = d.rtl, p = d.subMenuOpenDelay, g = d.subMenuCloseDelay, h = d.builtinPlacements, $ = d.triggerSubMenuAction, w = d.forceSubMenuRender, C = d.rootClassName, y = d.motion, b = d.defaultMotions, I = i.useState(!1), x = ie(I, 2), M = x[0], S = x[1], E = v ? ne(ne({}, ii), h) : ne(ne({}, ri), h), z = ai[u], P = ao(u, y, b), B = i.useRef(P);
646
- u !== "inline" && (B.current = P);
647
- var O = ne(ne({}, B.current), {}, {
648
- leavedClassName: "".concat(n, "-hidden"),
649
- removeOnLeave: !1,
650
- motionAppear: !0
651
- }), N = i.useRef();
652
- return i.useEffect(function() {
653
- return N.current = De(function() {
654
- S(t);
655
- }), function() {
656
- De.cancel(N.current);
657
- };
658
- }, [t]), /* @__PURE__ */ i.createElement(kn, {
659
- prefixCls: n,
660
- popupClassName: K("".concat(n, "-popup"), Z({}, "".concat(n, "-rtl"), v), a, C),
661
- stretch: u === "horizontal" ? "minWidth" : null,
662
- getPopupContainer: m,
663
- builtinPlacements: E,
664
- popupPlacement: z,
665
- popupVisible: M,
666
- popup: r,
667
- popupStyle: l,
668
- popupAlign: s && {
669
- offset: s
670
- },
671
- action: c ? [] : [$],
672
- mouseEnterDelay: p,
673
- mouseLeaveDelay: g,
674
- onPopupVisibleChange: f,
675
- forceRender: w,
676
- popupMotion: O,
677
- fresh: !0
678
- }, o);
679
- }
680
- function si(e) {
681
- var n = e.id, t = e.open, o = e.keyPath, r = e.children, l = "inline", a = i.useContext(fe), s = a.prefixCls, c = a.forceSubMenuRender, u = a.motion, f = a.defaultMotions, d = a.mode, m = i.useRef(!1);
682
- m.current = d === l;
683
- var v = i.useState(!m.current), p = ie(v, 2), g = p[0], h = p[1], $ = m.current ? t : !1;
684
- i.useEffect(function() {
685
- m.current && h(!1);
686
- }, [d]);
687
- var w = ne({}, ao(l, u, f));
688
- o.length > 1 && (w.motionAppear = !1);
689
- var C = w.onVisibleChanged;
690
- return w.onVisibleChanged = function(y) {
691
- return !m.current && !y && h(!0), C == null ? void 0 : C(y);
692
- }, g ? null : /* @__PURE__ */ i.createElement(Je, {
693
- mode: l,
694
- locked: !m.current
695
- }, /* @__PURE__ */ i.createElement(ar, oe({
696
- visible: $
697
- }, w, {
698
- forceRender: c,
699
- removeOnLeave: !1,
700
- leavedClassName: "".concat(s, "-hidden")
701
- }), function(y) {
702
- var b = y.className, I = y.style;
703
- return /* @__PURE__ */ i.createElement(Ut, {
704
- id: n,
705
- className: b,
706
- style: I
707
- }, r);
708
- }));
709
- }
710
- var ci = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], ui = ["active"], di = /* @__PURE__ */ i.forwardRef(function(e, n) {
711
- var t = e.style, o = e.className, r = e.title, l = e.eventKey, a = e.warnKey, s = e.disabled, c = e.internalPopupClose, u = e.children, f = e.itemIcon, d = e.expandIcon, m = e.popupClassName, v = e.popupOffset, p = e.popupStyle, g = e.onClick, h = e.onMouseEnter, $ = e.onMouseLeave, w = e.onTitleClick, C = e.onTitleMouseEnter, y = e.onTitleMouseLeave, b = me(e, ci), I = Qn(l), x = i.useContext(fe), M = x.prefixCls, S = x.mode, E = x.openKeys, z = x.disabled, P = x.overflowDisabled, B = x.activeKey, O = x.selectedKeys, N = x.itemIcon, V = x.expandIcon, A = x.onItemClick, R = x.onOpenChange, H = x.onActive, G = i.useContext(Gt), ee = G._internalRenderSubMenuItem, W = i.useContext(to), _ = W.isSubPathKey, F = ke(), j = "".concat(M, "-submenu"), k = z || s, U = i.useRef(), T = i.useRef();
712
- process.env.NODE_ENV !== "production" && a && _e(!1, "SubMenu should not leave undefined `key`.");
713
- var X = f ?? N, Q = d ?? V, te = E.includes(l), pe = !P && te, Oe = _(O, l), he = oo(l, k, C, y), ve = he.active, Le = me(he, ui), ye = i.useState(!1), Y = ie(ye, 2), ue = Y[0], Me = Y[1], Ke = function(de) {
714
- k || Me(de);
715
- }, yt = function(de) {
716
- Ke(!0), h == null || h({
717
- key: l,
718
- domEvent: de
719
- });
720
- }, St = function(de) {
721
- Ke(!1), $ == null || $({
722
- key: l,
723
- domEvent: de
724
- });
725
- }, Ve = i.useMemo(function() {
726
- return ve || (S !== "inline" ? ue || _([B], l) : !1);
727
- }, [S, ve, B, ue, l, _]), be = ro(F.length), It = function(de) {
728
- k || (w == null || w({
729
- key: l,
730
- domEvent: de
731
- }), S === "inline" && R(l, !te));
732
- }, xt = Ye(function(re) {
733
- g == null || g(pt(re)), A(re);
734
- }), ot = function(de) {
735
- S !== "inline" && R(l, de);
736
- }, rt = function() {
737
- H(l);
738
- }, We = I && "".concat(I, "-popup"), Pe = i.useMemo(function() {
739
- return /* @__PURE__ */ i.createElement(io, {
740
- icon: S !== "horizontal" ? Q : void 0,
741
- props: ne(ne({}, e), {}, {
742
- isOpen: pe,
743
- // [Legacy] Not sure why need this mark
744
- isSubMenu: !0
745
- })
746
- }, /* @__PURE__ */ i.createElement("i", {
747
- className: "".concat(j, "-arrow")
748
- }));
749
- }, [S, Q, e, pe, j]), Se = /* @__PURE__ */ i.createElement("div", oe({
750
- role: "menuitem",
751
- style: be,
752
- className: "".concat(j, "-title"),
753
- tabIndex: k ? null : -1,
754
- ref: U,
755
- title: typeof r == "string" ? r : null,
756
- "data-menu-id": P && I ? null : I,
757
- "aria-expanded": pe,
758
- "aria-haspopup": !0,
759
- "aria-controls": We,
760
- "aria-disabled": k,
761
- onClick: It,
762
- onFocus: rt
763
- }, Le), r, Pe), Ie = i.useRef(S);
764
- if (S !== "inline" && F.length > 1 ? Ie.current = "vertical" : Ie.current = S, !P) {
765
- var Fe = Ie.current;
766
- Se = /* @__PURE__ */ i.createElement(li, {
767
- mode: Fe,
768
- prefixCls: j,
769
- visible: !c && pe && S !== "inline",
770
- popupClassName: m,
771
- popupOffset: v,
772
- popupStyle: p,
773
- popup: /* @__PURE__ */ i.createElement(
774
- Je,
775
- {
776
- mode: Fe === "horizontal" ? "vertical" : Fe
777
- },
778
- /* @__PURE__ */ i.createElement(Ut, {
779
- id: We,
780
- ref: T
781
- }, u)
782
- ),
783
- disabled: k,
784
- onVisibleChange: ot
785
- }, Se);
786
- }
787
- var Ne = /* @__PURE__ */ i.createElement(Ze.Item, oe({
788
- ref: n,
789
- role: "none"
790
- }, b, {
791
- component: "li",
792
- style: t,
793
- className: K(j, "".concat(j, "-").concat(S), o, Z(Z(Z(Z({}, "".concat(j, "-open"), pe), "".concat(j, "-active"), Ve), "".concat(j, "-selected"), Oe), "".concat(j, "-disabled"), k)),
794
- onMouseEnter: yt,
795
- onMouseLeave: St
796
- }), Se, !P && /* @__PURE__ */ i.createElement(si, {
797
- id: We,
798
- open: pe,
799
- keyPath: F
800
- }, u));
801
- return ee && (Ne = ee(Ne, e, {
802
- selected: Oe,
803
- active: Ve,
804
- open: pe,
805
- disabled: k
806
- })), /* @__PURE__ */ i.createElement(Je, {
807
- onItemClick: xt,
808
- mode: S === "horizontal" ? "vertical" : S,
809
- itemIcon: X,
810
- expandIcon: Q
811
- }, Ne);
812
- }), et = /* @__PURE__ */ i.forwardRef(function(e, n) {
813
- var t = e.eventKey, o = e.children, r = ke(t), l = Yt(o, r), a = bt();
814
- i.useEffect(function() {
815
- if (a)
816
- return a.registerPath(t, r), function() {
817
- a.unregisterPath(t, r);
818
- };
819
- }, [r]);
820
- var s;
821
- return a ? s = l : s = /* @__PURE__ */ i.createElement(di, oe({
822
- ref: n
823
- }, e), l), /* @__PURE__ */ i.createElement(eo.Provider, {
824
- value: r
825
- }, s);
826
- });
827
- process.env.NODE_ENV !== "production" && (et.displayName = "SubMenu");
828
- function Zt(e) {
829
- var n = e.className, t = e.style, o = i.useContext(fe), r = o.prefixCls, l = bt();
830
- return l ? null : /* @__PURE__ */ i.createElement("li", {
831
- role: "separator",
832
- className: K("".concat(r, "-item-divider"), n),
833
- style: t
834
- });
835
- }
836
- var mi = ["className", "title", "eventKey", "children"], pi = /* @__PURE__ */ i.forwardRef(function(e, n) {
837
- var t = e.className, o = e.title;
838
- e.eventKey;
839
- var r = e.children, l = me(e, mi), a = i.useContext(fe), s = a.prefixCls, c = "".concat(s, "-item-group");
840
- return /* @__PURE__ */ i.createElement("li", oe({
841
- ref: n,
842
- role: "presentation"
843
- }, l, {
844
- onClick: function(f) {
845
- return f.stopPropagation();
846
- },
847
- className: K(c, t)
848
- }), /* @__PURE__ */ i.createElement("div", {
849
- role: "presentation",
850
- className: "".concat(c, "-title"),
851
- title: typeof o == "string" ? o : void 0
852
- }, o), /* @__PURE__ */ i.createElement("ul", {
853
- role: "group",
854
- className: "".concat(c, "-list")
855
- }, r));
856
- }), Ct = /* @__PURE__ */ i.forwardRef(function(e, n) {
857
- var t = e.eventKey, o = e.children, r = ke(t), l = Yt(o, r), a = bt();
858
- return a ? l : /* @__PURE__ */ i.createElement(pi, oe({
859
- ref: n
860
- }, $e(e, ["warnKey"])), l);
861
- });
862
- process.env.NODE_ENV !== "production" && (Ct.displayName = "MenuItemGroup");
863
- var fi = ["label", "children", "key", "type", "extra"];
864
- function Kt(e, n, t) {
865
- var o = n.item, r = n.group, l = n.submenu, a = n.divider;
866
- return (e || []).map(function(s, c) {
867
- if (s && qo(s) === "object") {
868
- var u = s, f = u.label, d = u.children, m = u.key, v = u.type, p = u.extra, g = me(u, fi), h = m ?? "tmp-".concat(c);
869
- return d || v === "group" ? v === "group" ? /* @__PURE__ */ i.createElement(r, oe({
870
- key: h
871
- }, g, {
872
- title: f
873
- }), Kt(d, n, t)) : /* @__PURE__ */ i.createElement(l, oe({
874
- key: h
875
- }, g, {
876
- title: f
877
- }), Kt(d, n, t)) : v === "divider" ? /* @__PURE__ */ i.createElement(a, oe({
878
- key: h
879
- }, g)) : /* @__PURE__ */ i.createElement(o, oe({
880
- key: h
881
- }, g, {
882
- extra: p
883
- }), f, (!!p || p === 0) && /* @__PURE__ */ i.createElement("span", {
884
- className: "".concat(t, "-item-extra")
885
- }, p));
886
- }
887
- return null;
888
- }).filter(function(s) {
889
- return s;
890
- });
891
- }
892
- function Mn(e, n, t, o, r) {
893
- var l = e, a = ne({
894
- divider: Zt,
895
- item: ht,
896
- group: Ct,
897
- submenu: et
898
- }, o);
899
- return n && (l = Kt(n, a, r)), Yt(l, t);
900
- }
901
- var gi = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], we = [], vi = /* @__PURE__ */ i.forwardRef(function(e, n) {
902
- var t, o = e, r = o.prefixCls, l = r === void 0 ? "rc-menu" : r, a = o.rootClassName, s = o.style, c = o.className, u = o.tabIndex, f = u === void 0 ? 0 : u, d = o.items, m = o.children, v = o.direction, p = o.id, g = o.mode, h = g === void 0 ? "vertical" : g, $ = o.inlineCollapsed, w = o.disabled, C = o.disabledOverflow, y = o.subMenuOpenDelay, b = y === void 0 ? 0.1 : y, I = o.subMenuCloseDelay, x = I === void 0 ? 0.1 : I, M = o.forceSubMenuRender, S = o.defaultOpenKeys, E = o.openKeys, z = o.activeKey, P = o.defaultActiveFirst, B = o.selectable, O = B === void 0 ? !0 : B, N = o.multiple, V = N === void 0 ? !1 : N, A = o.defaultSelectedKeys, R = o.selectedKeys, H = o.onSelect, G = o.onDeselect, ee = o.inlineIndent, W = ee === void 0 ? 24 : ee, _ = o.motion, F = o.defaultMotions, j = o.triggerSubMenuAction, k = j === void 0 ? "hover" : j, U = o.builtinPlacements, T = o.itemIcon, X = o.expandIcon, Q = o.overflowedIndicator, te = Q === void 0 ? "..." : Q, pe = o.overflowedIndicatorPopupClassName, Oe = o.getPopupContainer, he = o.onClick, ve = o.onOpenChange, Le = o.onKeyDown, ye = o.openAnimation, Y = o.openTransitionName, ue = o._internalRenderMenuItem, Me = o._internalRenderSubMenuItem, Ke = o._internalComponents, yt = me(o, gi), St = i.useMemo(function() {
903
- return [Mn(m, d, we, Ke, l), Mn(m, d, we, {}, l)];
904
- }, [m, d, Ke]), Ve = ie(St, 2), be = Ve[0], It = Ve[1], xt = i.useState(!1), ot = ie(xt, 2), rt = ot[0], We = ot[1], Pe = i.useRef(), Se = qr(p), Ie = v === "rtl";
905
- process.env.NODE_ENV !== "production" && _e(!ye && !Y, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
906
- var Fe = Qe(S, {
907
- value: E,
908
- postState: function(L) {
909
- return L || we;
910
- }
911
- }), Ne = ie(Fe, 2), re = Ne[0], de = Ne[1], wt = function(L) {
912
- var q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
913
- function se() {
914
- de(L), ve == null || ve(L);
915
- }
916
- q ? Ir(se) : se();
917
- }, vo = i.useState(re), en = ie(vo, 2), bo = en[0], ho = en[1], Et = i.useRef(!1), Co = i.useMemo(function() {
918
- return (h === "inline" || h === "vertical") && $ ? ["vertical", $] : [h, !1];
919
- }, [h, $]), tn = ie(Co, 2), it = tn[0], Ot = tn[1], nn = it === "inline", $o = i.useState(it), on = ie($o, 2), Ce = on[0], yo = on[1], So = i.useState(Ot), rn = ie(So, 2), Io = rn[0], xo = rn[1];
920
- i.useEffect(function() {
921
- yo(it), xo(Ot), Et.current && (nn ? de(bo) : wt(we));
922
- }, [it, Ot]);
923
- var wo = i.useState(0), an = ie(wo, 2), at = an[0], Eo = an[1], Mt = at >= be.length - 1 || Ce !== "horizontal" || C;
924
- i.useEffect(function() {
925
- nn && ho(re);
926
- }, [re]), i.useEffect(function() {
927
- return Et.current = !0, function() {
928
- Et.current = !1;
929
- };
930
- }, []);
931
- var xe = Gr(), ln = xe.registerPath, sn = xe.unregisterPath, Oo = xe.refreshOverflowKeys, cn = xe.isSubPathKey, Mo = xe.getKeyPath, un = xe.getKeys, Po = xe.getSubPathKeys, No = i.useMemo(function() {
932
- return {
933
- registerPath: ln,
934
- unregisterPath: sn
935
- };
936
- }, [ln, sn]), Ro = i.useMemo(function() {
937
- return {
938
- isSubPathKey: cn
939
- };
940
- }, [cn]);
941
- i.useEffect(function() {
942
- Oo(Mt ? we : be.slice(at + 1).map(function(J) {
943
- return J.key;
944
- }));
945
- }, [at, Mt]);
946
- var Bo = Qe(z || P && ((t = be[0]) === null || t === void 0 ? void 0 : t.key), {
947
- value: z
948
- }), dn = ie(Bo, 2), Ge = dn[0], Pt = dn[1], To = Ye(function(J) {
949
- Pt(J);
950
- }), zo = Ye(function() {
951
- Pt(void 0);
952
- });
953
- An(n, function() {
954
- return {
955
- list: Pe.current,
956
- focus: function(L) {
957
- var q, se = un(), ce = jt(se, Se), st = ce.elements, Nt = ce.key2element, Wo = ce.element2key, fn = Xt(Pe.current, st), gn = Ge ?? (fn[0] ? Wo.get(fn[0]) : (q = be.find(function(Fo) {
958
- return !Fo.props.disabled;
959
- })) === null || q === void 0 ? void 0 : q.key), Xe = Nt.get(gn);
960
- if (gn && Xe) {
961
- var Rt;
962
- Xe == null || (Rt = Xe.focus) === null || Rt === void 0 || Rt.call(Xe, L);
963
- }
964
- }
965
- };
966
- });
967
- var Do = Qe(A || [], {
968
- value: R,
969
- // Legacy convert key to array
970
- postState: function(L) {
971
- return Array.isArray(L) ? L : L == null ? we : [L];
972
- }
973
- }), mn = ie(Do, 2), lt = mn[0], _o = mn[1], Ao = function(L) {
974
- if (O) {
975
- var q = L.key, se = lt.includes(q), ce;
976
- V ? se ? ce = lt.filter(function(Nt) {
977
- return Nt !== q;
978
- }) : ce = [].concat(Ee(lt), [q]) : ce = [q], _o(ce);
979
- var st = ne(ne({}, L), {}, {
980
- selectedKeys: ce
981
- });
982
- se ? G == null || G(st) : H == null || H(st);
983
- }
984
- !V && re.length && Ce !== "inline" && wt(we);
985
- }, Ho = Ye(function(J) {
986
- he == null || he(pt(J)), Ao(J);
987
- }), pn = Ye(function(J, L) {
988
- var q = re.filter(function(ce) {
989
- return ce !== J;
990
- });
991
- if (L)
992
- q.push(J);
993
- else if (Ce !== "inline") {
994
- var se = Po(J);
995
- q = q.filter(function(ce) {
996
- return !se.has(ce);
997
- });
998
- }
999
- Vn(re, q, !0) || wt(q, !0);
1000
- }), ko = function(L, q) {
1001
- var se = q ?? !re.includes(L);
1002
- pn(L, se);
1003
- }, jo = Vr(Ce, Ge, Ie, Se, Pe, un, Mo, Pt, ko, Le);
1004
- i.useEffect(function() {
1005
- We(!0);
1006
- }, []);
1007
- var Lo = i.useMemo(function() {
1008
- return {
1009
- _internalRenderMenuItem: ue,
1010
- _internalRenderSubMenuItem: Me
1011
- };
1012
- }, [ue, Me]), Ko = Ce !== "horizontal" || C ? be : (
1013
- // Need wrap for overflow dropdown that do not response for open
1014
- be.map(function(J, L) {
1015
- return (
1016
- // Always wrap provider to avoid sub node re-mount
1017
- /* @__PURE__ */ i.createElement(Je, {
1018
- key: J.key,
1019
- overflowDisabled: L > at
1020
- }, J)
1021
- );
1022
- })
1023
- ), Vo = /* @__PURE__ */ i.createElement(Ze, oe({
1024
- id: p,
1025
- ref: Pe,
1026
- prefixCls: "".concat(l, "-overflow"),
1027
- component: "ul",
1028
- itemComponent: ht,
1029
- className: K(l, "".concat(l, "-root"), "".concat(l, "-").concat(Ce), c, Z(Z({}, "".concat(l, "-inline-collapsed"), Io), "".concat(l, "-rtl"), Ie), a),
1030
- dir: v,
1031
- style: s,
1032
- role: "menu",
1033
- tabIndex: f,
1034
- data: Ko,
1035
- renderRawItem: function(L) {
1036
- return L;
1037
- },
1038
- renderRawRest: function(L) {
1039
- var q = L.length, se = q ? be.slice(-q) : null;
1040
- return /* @__PURE__ */ i.createElement(et, {
1041
- eventKey: Lt,
1042
- title: te,
1043
- disabled: Mt,
1044
- internalPopupClose: q === 0,
1045
- popupClassName: pe
1046
- }, se);
1047
- },
1048
- maxCount: Ce !== "horizontal" || C ? Ze.INVALIDATE : Ze.RESPONSIVE,
1049
- ssr: "full",
1050
- "data-menu-list": !0,
1051
- onVisibleChange: function(L) {
1052
- Eo(L);
1053
- },
1054
- onKeyDown: jo
1055
- }, yt));
1056
- return /* @__PURE__ */ i.createElement(Gt.Provider, {
1057
- value: Lo
1058
- }, /* @__PURE__ */ i.createElement(Yn.Provider, {
1059
- value: Se
1060
- }, /* @__PURE__ */ i.createElement(Je, {
1061
- prefixCls: l,
1062
- rootClassName: a,
1063
- mode: Ce,
1064
- openKeys: re,
1065
- rtl: Ie,
1066
- disabled: w,
1067
- motion: rt ? _ : null,
1068
- defaultMotions: rt ? F : null,
1069
- activeKey: Ge,
1070
- onActive: To,
1071
- onInactive: zo,
1072
- selectedKeys: lt,
1073
- inlineIndent: W,
1074
- subMenuOpenDelay: b,
1075
- subMenuCloseDelay: x,
1076
- forceSubMenuRender: M,
1077
- builtinPlacements: U,
1078
- triggerSubMenuAction: k,
1079
- getPopupContainer: Oe,
1080
- itemIcon: T,
1081
- expandIcon: X,
1082
- onItemClick: Ho,
1083
- onOpenChange: pn
1084
- }, /* @__PURE__ */ i.createElement(to.Provider, {
1085
- value: Ro
1086
- }, Vo), /* @__PURE__ */ i.createElement("div", {
1087
- style: {
1088
- display: "none"
1089
- },
1090
- "aria-hidden": !0
1091
- }, /* @__PURE__ */ i.createElement(Jn.Provider, {
1092
- value: No
1093
- }, It)))));
1094
- }), tt = vi;
1095
- tt.Item = ht;
1096
- tt.SubMenu = et;
1097
- tt.ItemGroup = Ct;
1098
- tt.Divider = Zt;
1099
- var bi = { 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" }, hi = function(n, t) {
1100
- return /* @__PURE__ */ i.createElement(Hn, oe({}, n, {
1101
- ref: t,
1102
- icon: bi
1103
- }));
1104
- }, lo = /* @__PURE__ */ i.forwardRef(hi);
1105
- process.env.NODE_ENV !== "production" && (lo.displayName = "BarsOutlined");
1106
- const Ci = /* @__PURE__ */ i.createContext({
1107
- siderHook: {
1108
- addSider: () => null,
1109
- removeSider: () => null
1110
- }
1111
- }), $i = (e) => {
1112
- const {
1113
- antCls: n,
1114
- // .ant
1115
- componentCls: t,
1116
- // .ant-layout
1117
- colorText: o,
1118
- footerBg: r,
1119
- headerHeight: l,
1120
- headerPadding: a,
1121
- headerColor: s,
1122
- footerPadding: c,
1123
- fontSize: u,
1124
- bodyBg: f,
1125
- headerBg: d
1126
- } = e;
1127
- return {
1128
- [t]: {
1129
- display: "flex",
1130
- flex: "auto",
1131
- flexDirection: "column",
1132
- /* fix firefox can't set height smaller than content on flex item */
1133
- minHeight: 0,
1134
- background: f,
1135
- "&, *": {
1136
- boxSizing: "border-box"
1137
- },
1138
- [`&${t}-has-sider`]: {
1139
- flexDirection: "row",
1140
- [`> ${t}, > ${t}-content`]: {
1141
- // https://segmentfault.com/a/1190000019498300
1142
- width: 0
1143
- }
1144
- },
1145
- [`${t}-header, &${t}-footer`]: {
1146
- flex: "0 0 auto"
1147
- },
1148
- // RTL
1149
- "&-rtl": {
1150
- direction: "rtl"
1151
- }
1152
- },
1153
- // ==================== Header ====================
1154
- [`${t}-header`]: {
1155
- height: l,
1156
- padding: a,
1157
- color: s,
1158
- lineHeight: D(l),
1159
- background: d,
1160
- // Other components/menu/style/index.less line:686
1161
- // Integration with header element so menu items have the same height
1162
- [`${n}-menu`]: {
1163
- lineHeight: "inherit"
1164
- }
1165
- },
1166
- // ==================== Footer ====================
1167
- [`${t}-footer`]: {
1168
- padding: c,
1169
- color: o,
1170
- fontSize: u,
1171
- background: r
1172
- },
1173
- // =================== Content ====================
1174
- [`${t}-content`]: {
1175
- flex: "auto",
1176
- color: o,
1177
- // fix firefox can't set height smaller than content on flex item
1178
- minHeight: 0
1179
- }
1180
- };
1181
- }, so = (e) => {
1182
- const {
1183
- colorBgLayout: n,
1184
- controlHeight: t,
1185
- controlHeightLG: o,
1186
- colorText: r,
1187
- controlHeightSM: l,
1188
- marginXXS: a,
1189
- colorTextLightSolid: s,
1190
- colorBgContainer: c
1191
- } = e, u = o * 1.25;
1192
- return {
1193
- // Deprecated
1194
- colorBgHeader: "#001529",
1195
- colorBgBody: n,
1196
- colorBgTrigger: "#002140",
1197
- bodyBg: n,
1198
- headerBg: "#001529",
1199
- headerHeight: t * 2,
1200
- headerPadding: `0 ${u}px`,
1201
- headerColor: r,
1202
- footerPadding: `${l}px ${u}px`,
1203
- footerBg: n,
1204
- siderBg: "#001529",
1205
- triggerHeight: o + a * 2,
1206
- triggerBg: "#002140",
1207
- triggerColor: s,
1208
- zeroTriggerWidth: o,
1209
- zeroTriggerHeight: o,
1210
- lightSiderBg: c,
1211
- lightTriggerBg: c,
1212
- lightTriggerColor: r
1213
- };
1214
- }, co = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
1215
- Ae("Layout", $i, so, {
1216
- deprecatedTokens: co
1217
- });
1218
- const yi = (e) => {
1219
- const {
1220
- componentCls: n,
1221
- siderBg: t,
1222
- motionDurationMid: o,
1223
- motionDurationSlow: r,
1224
- antCls: l,
1225
- triggerHeight: a,
1226
- triggerColor: s,
1227
- triggerBg: c,
1228
- headerHeight: u,
1229
- zeroTriggerWidth: f,
1230
- zeroTriggerHeight: d,
1231
- borderRadiusLG: m,
1232
- lightSiderBg: v,
1233
- lightTriggerColor: p,
1234
- lightTriggerBg: g,
1235
- bodyBg: h
1236
- } = e;
1237
- return {
1238
- [n]: {
1239
- position: "relative",
1240
- // fix firefox can't set width smaller than content on flex item
1241
- minWidth: 0,
1242
- background: t,
1243
- transition: `all ${o}, background 0s`,
1244
- "&-has-trigger": {
1245
- paddingBottom: a
1246
- },
1247
- "&-right": {
1248
- order: 1
1249
- },
1250
- [`${n}-children`]: {
1251
- height: "100%",
1252
- // Hack for fixing margin collapse bug
1253
- // https://github.com/ant-design/ant-design/issues/7967
1254
- // solution from https://stackoverflow.com/a/33132624/3040605
1255
- marginTop: -0.1,
1256
- paddingTop: 0.1,
1257
- [`${l}-menu${l}-menu-inline-collapsed`]: {
1258
- width: "auto"
1259
- }
1260
- },
1261
- [`&-zero-width ${n}-children`]: {
1262
- overflow: "hidden"
1263
- },
1264
- [`${n}-trigger`]: {
1265
- position: "fixed",
1266
- bottom: 0,
1267
- zIndex: 1,
1268
- height: a,
1269
- color: s,
1270
- lineHeight: D(a),
1271
- textAlign: "center",
1272
- background: c,
1273
- cursor: "pointer",
1274
- transition: `all ${o}`
1275
- },
1276
- [`${n}-zero-width-trigger`]: {
1277
- position: "absolute",
1278
- top: u,
1279
- insetInlineEnd: e.calc(f).mul(-1).equal(),
1280
- zIndex: 1,
1281
- width: f,
1282
- height: d,
1283
- color: s,
1284
- fontSize: e.fontSizeXL,
1285
- display: "flex",
1286
- alignItems: "center",
1287
- justifyContent: "center",
1288
- background: t,
1289
- borderRadius: `0 ${D(m)} ${D(m)} 0`,
1290
- cursor: "pointer",
1291
- transition: `background ${r} ease`,
1292
- "&::after": {
1293
- position: "absolute",
1294
- inset: 0,
1295
- background: "transparent",
1296
- transition: `all ${r}`,
1297
- content: '""'
1298
- },
1299
- "&:hover::after": {
1300
- background: "rgba(255, 255, 255, 0.2)"
1301
- },
1302
- "&-right": {
1303
- insetInlineStart: e.calc(f).mul(-1).equal(),
1304
- borderRadius: `${D(m)} 0 0 ${D(m)}`
1305
- }
1306
- },
1307
- // Light
1308
- "&-light": {
1309
- background: v,
1310
- [`${n}-trigger`]: {
1311
- color: p,
1312
- background: g
1313
- },
1314
- [`${n}-zero-width-trigger`]: {
1315
- color: p,
1316
- background: g,
1317
- border: `1px solid ${h}`,
1318
- // Safe to modify to any other color
1319
- borderInlineStart: 0
1320
- }
1321
- }
1322
- }
1323
- };
1324
- }, Si = Ae(["Layout", "Sider"], yi, so, {
1325
- deprecatedTokens: co
1326
- });
1327
- var Ii = function(e, n) {
1328
- var t = {};
1329
- for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
1330
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
1331
- n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
1332
- return t;
1333
- };
1334
- const Pn = {
1335
- xs: "479.98px",
1336
- sm: "575.98px",
1337
- md: "767.98px",
1338
- lg: "991.98px",
1339
- xl: "1199.98px",
1340
- xxl: "1599.98px"
1341
- }, xi = (e) => !Number.isNaN(Number.parseFloat(e)) && Number.isFinite(Number(e)), Qt = /* @__PURE__ */ i.createContext({}), wi = /* @__PURE__ */ (() => {
1342
- let e = 0;
1343
- return (n = "") => (e += 1, `${n}${e}`);
1344
- })(), Ei = /* @__PURE__ */ i.forwardRef((e, n) => {
1345
- const {
1346
- prefixCls: t,
1347
- className: o,
1348
- trigger: r,
1349
- children: l,
1350
- defaultCollapsed: a = !1,
1351
- theme: s = "dark",
1352
- style: c = {},
1353
- collapsible: u = !1,
1354
- reverseArrow: f = !1,
1355
- width: d = 200,
1356
- collapsedWidth: m = 80,
1357
- zeroWidthTriggerStyle: v,
1358
- breakpoint: p,
1359
- onCollapse: g,
1360
- onBreakpoint: h
1361
- } = e, $ = Ii(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
1362
- siderHook: w
1363
- } = vn(Ci), [C, y] = bn("collapsed" in e ? e.collapsed : a), [b, I] = bn(!1);
1364
- Bt(() => {
1365
- "collapsed" in e && y(e.collapsed);
1366
- }, [e.collapsed]);
1367
- const x = (T, X) => {
1368
- "collapsed" in e || y(T), g == null || g(T, X);
1369
- }, {
1370
- getPrefixCls: M,
1371
- direction: S
1372
- } = vn(He), E = M("layout-sider", t), [z, P, B] = Si(E), O = ze(null);
1373
- O.current = (T) => {
1374
- I(T.matches), h == null || h(T.matches), C !== T.matches && x(T.matches, "responsive");
1375
- }, Bt(() => {
1376
- function T(Q) {
1377
- var te;
1378
- return (te = O.current) === null || te === void 0 ? void 0 : te.call(O, Q);
1379
- }
1380
- let X;
1381
- return typeof (window == null ? void 0 : window.matchMedia) < "u" && p && p in Pn && (X = window.matchMedia(`screen and (max-width: ${Pn[p]})`), xr(X, T), T(X)), () => {
1382
- wr(X, T);
1383
- };
1384
- }, [p]), Bt(() => {
1385
- const T = wi("ant-sider-");
1386
- return w.addSider(T), () => w.removeSider(T);
1387
- }, []);
1388
- const N = () => {
1389
- x(!C, "clickTrigger");
1390
- }, V = $e($, ["collapsed"]), A = C ? m : d, R = xi(A) ? `${A}px` : String(A), H = Number.parseFloat(String(m || 0)) === 0 ? /* @__PURE__ */ i.createElement("span", {
1391
- onClick: N,
1392
- className: K(`${E}-zero-width-trigger`, `${E}-zero-width-trigger-${f ? "right" : "left"}`),
1393
- style: v
1394
- }, r || /* @__PURE__ */ i.createElement(lo, null)) : null, G = S === "rtl" == !f, _ = {
1395
- expanded: G ? /* @__PURE__ */ i.createElement(Dt, null) : /* @__PURE__ */ i.createElement(zt, null),
1396
- collapsed: G ? /* @__PURE__ */ i.createElement(zt, null) : /* @__PURE__ */ i.createElement(Dt, null)
1397
- }[C ? "collapsed" : "expanded"], F = r !== null ? H || /* @__PURE__ */ i.createElement("div", {
1398
- className: `${E}-trigger`,
1399
- onClick: N,
1400
- style: {
1401
- width: R
1402
- }
1403
- }, r || _) : null, j = Object.assign(Object.assign({}, c), {
1404
- flex: `0 0 ${R}`,
1405
- maxWidth: R,
1406
- minWidth: R,
1407
- width: R
1408
- }), k = K(E, `${E}-${s}`, {
1409
- [`${E}-collapsed`]: !!C,
1410
- [`${E}-has-trigger`]: u && r !== null && !H,
1411
- [`${E}-below`]: !!b,
1412
- [`${E}-zero-width`]: Number.parseFloat(R) === 0
1413
- }, o, P, B), U = i.useMemo(() => ({
1414
- siderCollapsed: C
1415
- }), [C]);
1416
- return z(/* @__PURE__ */ i.createElement(Qt.Provider, {
1417
- value: U
1418
- }, /* @__PURE__ */ i.createElement("aside", Object.assign({
1419
- className: k
1420
- }, V, {
1421
- style: j,
1422
- ref: n
1423
- }), /* @__PURE__ */ i.createElement("div", {
1424
- className: `${E}-children`
1425
- }, l), u || b && H ? F : null)));
1426
- });
1427
- process.env.NODE_ENV !== "production" && (Ei.displayName = "Sider");
1428
- var Oi = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, Mi = function(n, t) {
1429
- return /* @__PURE__ */ i.createElement(Hn, oe({}, n, {
1430
- ref: t,
1431
- icon: Oi
1432
- }));
1433
- }, Jt = /* @__PURE__ */ i.forwardRef(Mi);
1434
- process.env.NODE_ENV !== "production" && (Jt.displayName = "EllipsisOutlined");
1435
- const ft = /* @__PURE__ */ Xo({
1436
- prefixCls: "",
1437
- firstLevel: !0,
1438
- inlineCollapsed: !1
1439
- });
1440
- var Pi = function(e, n) {
1441
- var t = {};
1442
- for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
1443
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
1444
- n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
1445
- return t;
1446
- };
1447
- const uo = (e) => {
1448
- const {
1449
- prefixCls: n,
1450
- className: t,
1451
- dashed: o
1452
- } = e, r = Pi(e, ["prefixCls", "className", "dashed"]), {
1453
- getPrefixCls: l
1454
- } = i.useContext(He), a = l("menu", n), s = K({
1455
- [`${a}-item-divider-dashed`]: !!o
1456
- }, t);
1457
- return /* @__PURE__ */ i.createElement(Zt, Object.assign({
1458
- className: s
1459
- }, r));
1460
- }, mo = (e) => {
1461
- var n;
1462
- const {
1463
- className: t,
1464
- children: o,
1465
- icon: r,
1466
- title: l,
1467
- danger: a,
1468
- extra: s
1469
- } = e, {
1470
- prefixCls: c,
1471
- firstLevel: u,
1472
- direction: f,
1473
- disableMenuItemTitleTooltip: d,
1474
- inlineCollapsed: m
1475
- } = i.useContext(ft), v = (C) => {
1476
- const y = o == null ? void 0 : o[0], b = /* @__PURE__ */ i.createElement("span", {
1477
- className: K(`${c}-title-content`, {
1478
- [`${c}-title-content-with-extra`]: !!s || s === 0
1479
- })
1480
- }, o);
1481
- return (!r || /* @__PURE__ */ i.isValidElement(o) && o.type === "span") && o && C && u && typeof y == "string" ? /* @__PURE__ */ i.createElement("div", {
1482
- className: `${c}-inline-collapsed-noicon`
1483
- }, y.charAt(0)) : b;
1484
- }, {
1485
- siderCollapsed: p
1486
- } = i.useContext(Qt);
1487
- let g = l;
1488
- typeof l > "u" ? g = u ? o : "" : l === !1 && (g = "");
1489
- const h = {
1490
- title: g
1491
- };
1492
- !p && !m && (h.title = null, h.open = !1);
1493
- const $ = Ft(o).length;
1494
- let w = /* @__PURE__ */ i.createElement(ht, Object.assign({}, $e(e, ["title", "icon", "danger"]), {
1495
- className: K({
1496
- [`${c}-item-danger`]: a,
1497
- [`${c}-item-only-child`]: (r ? $ + 1 : $) === 1
1498
- }, t),
1499
- title: typeof l == "string" ? l : void 0
1500
- }), vt(r, {
1501
- className: K(/* @__PURE__ */ i.isValidElement(r) ? (n = r.props) === null || n === void 0 ? void 0 : n.className : void 0, `${c}-item-icon`)
1502
- }), v(m));
1503
- return d || (w = /* @__PURE__ */ i.createElement(hr, Object.assign({}, h, {
1504
- placement: f === "rtl" ? "left" : "right",
1505
- classNames: {
1506
- root: `${c}-inline-collapsed-tooltip`
1507
- }
1508
- }), w)), w;
1509
- };
1510
- var Ni = function(e, n) {
1511
- var t = {};
1512
- for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
1513
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
1514
- n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
1515
- return t;
1516
- };
1517
- const gt = /* @__PURE__ */ i.createContext(null), Ri = /* @__PURE__ */ i.forwardRef((e, n) => {
1518
- const {
1519
- children: t
1520
- } = e, o = Ni(e, ["children"]), r = i.useContext(gt), l = i.useMemo(() => Object.assign(Object.assign({}, r), o), [
1521
- r,
1522
- o.prefixCls,
1523
- // restProps.expandIcon, Not mark as deps since this is a ReactNode
1524
- o.mode,
1525
- o.selectable,
1526
- o.rootClassName
1527
- // restProps.validator, Not mark as deps since this is a function
1528
- ]), a = lr(t), s = Wn(n, a ? Wt(t) : null);
1529
- return /* @__PURE__ */ i.createElement(gt.Provider, {
1530
- value: l
1531
- }, /* @__PURE__ */ i.createElement(sr, {
1532
- space: !0
1533
- }, a ? /* @__PURE__ */ i.cloneElement(t, {
1534
- ref: s
1535
- }) : t));
1536
- }), Bi = (e) => {
1537
- const {
1538
- componentCls: n,
1539
- motionDurationSlow: t,
1540
- horizontalLineHeight: o,
1541
- colorSplit: r,
1542
- lineWidth: l,
1543
- lineType: a,
1544
- itemPaddingInline: s
1545
- } = e;
1546
- return {
1547
- [`${n}-horizontal`]: {
1548
- lineHeight: o,
1549
- border: 0,
1550
- borderBottom: `${D(l)} ${a} ${r}`,
1551
- boxShadow: "none",
1552
- "&::after": {
1553
- display: "block",
1554
- clear: "both",
1555
- height: 0,
1556
- content: '"\\20"'
1557
- },
1558
- // ======================= Item =======================
1559
- [`${n}-item, ${n}-submenu`]: {
1560
- position: "relative",
1561
- display: "inline-block",
1562
- verticalAlign: "bottom",
1563
- paddingInline: s
1564
- },
1565
- [`> ${n}-item:hover,
1566
- > ${n}-item-active,
1567
- > ${n}-submenu ${n}-submenu-title:hover`]: {
1568
- backgroundColor: "transparent"
1569
- },
1570
- [`${n}-item, ${n}-submenu-title`]: {
1571
- transition: [`border-color ${t}`, `background ${t}`].join(",")
1572
- },
1573
- // ===================== Sub Menu =====================
1574
- [`${n}-submenu-arrow`]: {
1575
- display: "none"
1576
- }
1577
- }
1578
- };
1579
- }, Ti = ({
1580
- componentCls: e,
1581
- menuArrowOffset: n,
1582
- calc: t
1583
- }) => ({
1584
- [`${e}-rtl`]: {
1585
- direction: "rtl"
1586
- },
1587
- [`${e}-submenu-rtl`]: {
1588
- transformOrigin: "100% 0"
1589
- },
1590
- // Vertical Arrow
1591
- [`${e}-rtl${e}-vertical,
1592
- ${e}-submenu-rtl ${e}-vertical`]: {
1593
- [`${e}-submenu-arrow`]: {
1594
- "&::before": {
1595
- transform: `rotate(-45deg) translateY(${D(t(n).mul(-1).equal())})`
1596
- },
1597
- "&::after": {
1598
- transform: `rotate(45deg) translateY(${D(n)})`
1599
- }
1600
- }
1601
- }
1602
- }), Nn = (e) => cr(e), Rn = (e, n) => {
1603
- const {
1604
- componentCls: t,
1605
- itemColor: o,
1606
- itemSelectedColor: r,
1607
- subMenuItemSelectedColor: l,
1608
- groupTitleColor: a,
1609
- itemBg: s,
1610
- subMenuItemBg: c,
1611
- itemSelectedBg: u,
1612
- activeBarHeight: f,
1613
- activeBarWidth: d,
1614
- activeBarBorderWidth: m,
1615
- motionDurationSlow: v,
1616
- motionEaseInOut: p,
1617
- motionEaseOut: g,
1618
- itemPaddingInline: h,
1619
- motionDurationMid: $,
1620
- itemHoverColor: w,
1621
- lineType: C,
1622
- colorSplit: y,
1623
- // Disabled
1624
- itemDisabledColor: b,
1625
- // Danger
1626
- dangerItemColor: I,
1627
- dangerItemHoverColor: x,
1628
- dangerItemSelectedColor: M,
1629
- dangerItemActiveBg: S,
1630
- dangerItemSelectedBg: E,
1631
- // Bg
1632
- popupBg: z,
1633
- itemHoverBg: P,
1634
- itemActiveBg: B,
1635
- menuSubMenuBg: O,
1636
- // Horizontal
1637
- horizontalItemSelectedColor: N,
1638
- horizontalItemSelectedBg: V,
1639
- horizontalItemBorderRadius: A,
1640
- horizontalItemHoverBg: R
1641
- } = e;
1642
- return {
1643
- [`${t}-${n}, ${t}-${n} > ${t}`]: {
1644
- color: o,
1645
- background: s,
1646
- [`&${t}-root:focus-visible`]: Object.assign({}, Nn(e)),
1647
- // ======================== Item ========================
1648
- [`${t}-item`]: {
1649
- "&-group-title, &-extra": {
1650
- color: a
1651
- }
1652
- },
1653
- [`${t}-submenu-selected > ${t}-submenu-title`]: {
1654
- color: l
1655
- },
1656
- [`${t}-item, ${t}-submenu-title`]: {
1657
- color: o,
1658
- [`&:not(${t}-item-disabled):focus-visible`]: Object.assign({}, Nn(e))
1659
- },
1660
- // Disabled
1661
- [`${t}-item-disabled, ${t}-submenu-disabled`]: {
1662
- color: `${b} !important`
1663
- },
1664
- // Hover
1665
- [`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]: {
1666
- [`&:hover, > ${t}-submenu-title:hover`]: {
1667
- color: w
1668
- }
1669
- },
1670
- [`&:not(${t}-horizontal)`]: {
1671
- [`${t}-item:not(${t}-item-selected)`]: {
1672
- "&:hover": {
1673
- backgroundColor: P
1674
- },
1675
- "&:active": {
1676
- backgroundColor: B
1677
- }
1678
- },
1679
- [`${t}-submenu-title`]: {
1680
- "&:hover": {
1681
- backgroundColor: P
1682
- },
1683
- "&:active": {
1684
- backgroundColor: B
1685
- }
1686
- }
1687
- },
1688
- // Danger - only Item has
1689
- [`${t}-item-danger`]: {
1690
- color: I,
1691
- [`&${t}-item:hover`]: {
1692
- [`&:not(${t}-item-selected):not(${t}-submenu-selected)`]: {
1693
- color: x
1694
- }
1695
- },
1696
- [`&${t}-item:active`]: {
1697
- background: S
1698
- }
1699
- },
1700
- [`${t}-item a`]: {
1701
- "&, &:hover": {
1702
- color: "inherit"
1703
- }
1704
- },
1705
- [`${t}-item-selected`]: {
1706
- color: r,
1707
- // Danger
1708
- [`&${t}-item-danger`]: {
1709
- color: M
1710
- },
1711
- "a, a:hover": {
1712
- color: "inherit"
1713
- }
1714
- },
1715
- [`& ${t}-item-selected`]: {
1716
- backgroundColor: u,
1717
- // Danger
1718
- [`&${t}-item-danger`]: {
1719
- backgroundColor: E
1720
- }
1721
- },
1722
- [`&${t}-submenu > ${t}`]: {
1723
- backgroundColor: O
1724
- },
1725
- // ===== 设置浮层的颜色 =======
1726
- // !dark 模式会被popupBg 会被rest 为 darkPopupBg
1727
- [`&${t}-popup > ${t}`]: {
1728
- backgroundColor: z
1729
- },
1730
- [`&${t}-submenu-popup > ${t}`]: {
1731
- backgroundColor: z
1732
- },
1733
- // ===== 设置浮层的颜色 end =======
1734
- // ====================== Horizontal ======================
1735
- [`&${t}-horizontal`]: Object.assign(Object.assign({}, n === "dark" ? {
1736
- borderBottom: 0
1737
- } : {}), {
1738
- [`> ${t}-item, > ${t}-submenu`]: {
1739
- top: m,
1740
- marginTop: e.calc(m).mul(-1).equal(),
1741
- marginBottom: 0,
1742
- borderRadius: A,
1743
- "&::after": {
1744
- position: "absolute",
1745
- insetInline: h,
1746
- bottom: 0,
1747
- borderBottom: `${D(f)} solid transparent`,
1748
- transition: `border-color ${v} ${p}`,
1749
- content: '""'
1750
- },
1751
- "&:hover, &-active, &-open": {
1752
- background: R,
1753
- "&::after": {
1754
- borderBottomWidth: f,
1755
- borderBottomColor: N
1756
- }
1757
- },
1758
- "&-selected": {
1759
- color: N,
1760
- backgroundColor: V,
1761
- "&:hover": {
1762
- backgroundColor: V
1763
- },
1764
- "&::after": {
1765
- borderBottomWidth: f,
1766
- borderBottomColor: N
1767
- }
1768
- }
1769
- }
1770
- }),
1771
- // ================== Inline & Vertical ===================
1772
- //
1773
- [`&${t}-root`]: {
1774
- [`&${t}-inline, &${t}-vertical`]: {
1775
- borderInlineEnd: `${D(m)} ${C} ${y}`
1776
- }
1777
- },
1778
- // ======================== Inline ========================
1779
- [`&${t}-inline`]: {
1780
- // Sub
1781
- [`${t}-sub${t}-inline`]: {
1782
- background: c
1783
- },
1784
- [`${t}-item`]: {
1785
- position: "relative",
1786
- "&::after": {
1787
- position: "absolute",
1788
- insetBlock: 0,
1789
- insetInlineEnd: 0,
1790
- borderInlineEnd: `${D(d)} solid ${r}`,
1791
- transform: "scaleY(0.0001)",
1792
- opacity: 0,
1793
- transition: [`transform ${$} ${g}`, `opacity ${$} ${g}`].join(","),
1794
- content: '""'
1795
- },
1796
- // Danger
1797
- [`&${t}-item-danger`]: {
1798
- "&::after": {
1799
- borderInlineEndColor: M
1800
- }
1801
- }
1802
- },
1803
- [`${t}-selected, ${t}-item-selected`]: {
1804
- "&::after": {
1805
- transform: "scaleY(1)",
1806
- opacity: 1,
1807
- transition: [`transform ${$} ${p}`, `opacity ${$} ${p}`].join(",")
1808
- }
1809
- }
1810
- }
1811
- }
1812
- };
1813
- }, Bn = (e) => {
1814
- const {
1815
- componentCls: n,
1816
- itemHeight: t,
1817
- itemMarginInline: o,
1818
- padding: r,
1819
- menuArrowSize: l,
1820
- marginXS: a,
1821
- itemMarginBlock: s,
1822
- itemWidth: c,
1823
- itemPaddingInline: u
1824
- } = e, f = e.calc(l).add(r).add(a).equal();
1825
- return {
1826
- [`${n}-item`]: {
1827
- position: "relative",
1828
- overflow: "hidden"
1829
- },
1830
- [`${n}-item, ${n}-submenu-title`]: {
1831
- height: t,
1832
- lineHeight: D(t),
1833
- paddingInline: u,
1834
- overflow: "hidden",
1835
- textOverflow: "ellipsis",
1836
- marginInline: o,
1837
- marginBlock: s,
1838
- width: c
1839
- },
1840
- [`> ${n}-item,
1841
- > ${n}-submenu > ${n}-submenu-title`]: {
1842
- height: t,
1843
- lineHeight: D(t)
1844
- },
1845
- [`${n}-item-group-list ${n}-submenu-title,
1846
- ${n}-submenu-title`]: {
1847
- paddingInlineEnd: f
1848
- }
1849
- };
1850
- }, zi = (e) => {
1851
- const {
1852
- componentCls: n,
1853
- iconCls: t,
1854
- itemHeight: o,
1855
- colorTextLightSolid: r,
1856
- dropdownWidth: l,
1857
- controlHeightLG: a,
1858
- motionEaseOut: s,
1859
- paddingXL: c,
1860
- itemMarginInline: u,
1861
- fontSizeLG: f,
1862
- motionDurationFast: d,
1863
- motionDurationSlow: m,
1864
- paddingXS: v,
1865
- boxShadowSecondary: p,
1866
- collapsedWidth: g,
1867
- collapsedIconSize: h
1868
- } = e, $ = {
1869
- height: o,
1870
- lineHeight: D(o),
1871
- listStylePosition: "inside",
1872
- listStyleType: "disc"
1873
- };
1874
- return [
1875
- {
1876
- [n]: {
1877
- "&-inline, &-vertical": Object.assign({
1878
- [`&${n}-root`]: {
1879
- boxShadow: "none"
1880
- }
1881
- }, Bn(e))
1882
- },
1883
- [`${n}-submenu-popup`]: {
1884
- [`${n}-vertical`]: Object.assign(Object.assign({}, Bn(e)), {
1885
- boxShadow: p
1886
- })
1887
- }
1888
- },
1889
- // Vertical only
1890
- {
1891
- [`${n}-submenu-popup ${n}-vertical${n}-sub`]: {
1892
- minWidth: l,
1893
- maxHeight: `calc(100vh - ${D(e.calc(a).mul(2.5).equal())})`,
1894
- padding: "0",
1895
- overflow: "hidden",
1896
- borderInlineEnd: 0,
1897
- // https://github.com/ant-design/ant-design/issues/22244
1898
- // https://github.com/ant-design/ant-design/issues/26812
1899
- "&:not([class*='-active'])": {
1900
- overflowX: "hidden",
1901
- overflowY: "auto"
1902
- }
1903
- }
1904
- },
1905
- // Inline Only
1906
- {
1907
- [`${n}-inline`]: {
1908
- width: "100%",
1909
- // Motion enhance for first level
1910
- [`&${n}-root`]: {
1911
- [`${n}-item, ${n}-submenu-title`]: {
1912
- display: "flex",
1913
- alignItems: "center",
1914
- transition: [`border-color ${m}`, `background ${m}`, `padding ${d} ${s}`].join(","),
1915
- [`> ${n}-title-content`]: {
1916
- flex: "auto",
1917
- minWidth: 0,
1918
- overflow: "hidden",
1919
- textOverflow: "ellipsis"
1920
- },
1921
- "> *": {
1922
- flex: "none"
1923
- }
1924
- }
1925
- },
1926
- // >>>>> Sub
1927
- [`${n}-sub${n}-inline`]: {
1928
- padding: 0,
1929
- border: 0,
1930
- borderRadius: 0,
1931
- boxShadow: "none",
1932
- [`& > ${n}-submenu > ${n}-submenu-title`]: $,
1933
- [`& ${n}-item-group-title`]: {
1934
- paddingInlineStart: c
1935
- }
1936
- },
1937
- // >>>>> Item
1938
- [`${n}-item`]: $
1939
- }
1940
- },
1941
- // Inline Collapse Only
1942
- {
1943
- [`${n}-inline-collapsed`]: {
1944
- width: g,
1945
- [`&${n}-root`]: {
1946
- [`${n}-item, ${n}-submenu ${n}-submenu-title`]: {
1947
- [`> ${n}-inline-collapsed-noicon`]: {
1948
- fontSize: f,
1949
- textAlign: "center"
1950
- }
1951
- }
1952
- },
1953
- [`> ${n}-item,
1954
- > ${n}-item-group > ${n}-item-group-list > ${n}-item,
1955
- > ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title,
1956
- > ${n}-submenu > ${n}-submenu-title`]: {
1957
- insetInlineStart: 0,
1958
- paddingInline: `calc(50% - ${D(e.calc(h).div(2).equal())} - ${D(u)})`,
1959
- textOverflow: "clip",
1960
- [`
1961
- ${n}-submenu-arrow,
1962
- ${n}-submenu-expand-icon
1963
- `]: {
1964
- opacity: 0
1965
- },
1966
- [`${n}-item-icon, ${t}`]: {
1967
- margin: 0,
1968
- fontSize: h,
1969
- lineHeight: D(o),
1970
- "+ span": {
1971
- display: "inline-block",
1972
- opacity: 0
1973
- }
1974
- }
1975
- },
1976
- [`${n}-item-icon, ${t}`]: {
1977
- display: "inline-block"
1978
- },
1979
- "&-tooltip": {
1980
- pointerEvents: "none",
1981
- [`${n}-item-icon, ${t}`]: {
1982
- display: "none"
1983
- },
1984
- "a, a:hover": {
1985
- color: r
1986
- }
1987
- },
1988
- [`${n}-item-group-title`]: Object.assign(Object.assign({}, ur), {
1989
- paddingInline: v
1990
- })
1991
- }
1992
- }
1993
- ];
1994
- }, Tn = (e) => {
1995
- const {
1996
- componentCls: n,
1997
- motionDurationSlow: t,
1998
- motionDurationMid: o,
1999
- motionEaseInOut: r,
2000
- motionEaseOut: l,
2001
- iconCls: a,
2002
- iconSize: s,
2003
- iconMarginInlineEnd: c
2004
- } = e;
2005
- return {
2006
- // >>>>> Item
2007
- [`${n}-item, ${n}-submenu-title`]: {
2008
- position: "relative",
2009
- display: "block",
2010
- margin: 0,
2011
- whiteSpace: "nowrap",
2012
- cursor: "pointer",
2013
- transition: [`border-color ${t}`, `background ${t}`, `padding calc(${t} + 0.1s) ${r}`].join(","),
2014
- [`${n}-item-icon, ${a}`]: {
2015
- minWidth: s,
2016
- fontSize: s,
2017
- transition: [`font-size ${o} ${l}`, `margin ${t} ${r}`, `color ${t}`].join(","),
2018
- "+ span": {
2019
- marginInlineStart: c,
2020
- opacity: 1,
2021
- transition: [`opacity ${t} ${r}`, `margin ${t}`, `color ${t}`].join(",")
2022
- }
2023
- },
2024
- [`${n}-item-icon`]: Object.assign({}, dr()),
2025
- [`&${n}-item-only-child`]: {
2026
- [`> ${a}, > ${n}-item-icon`]: {
2027
- marginInlineEnd: 0
2028
- }
2029
- }
2030
- },
2031
- // Disabled state sets text to gray and nukes hover/tab effects
2032
- [`${n}-item-disabled, ${n}-submenu-disabled`]: {
2033
- background: "none !important",
2034
- cursor: "not-allowed",
2035
- "&::after": {
2036
- borderColor: "transparent !important"
2037
- },
2038
- a: {
2039
- color: "inherit !important",
2040
- cursor: "not-allowed",
2041
- pointerEvents: "none"
2042
- },
2043
- [`> ${n}-submenu-title`]: {
2044
- color: "inherit !important",
2045
- cursor: "not-allowed"
2046
- }
2047
- }
2048
- };
2049
- }, zn = (e) => {
2050
- const {
2051
- componentCls: n,
2052
- motionDurationSlow: t,
2053
- motionEaseInOut: o,
2054
- borderRadius: r,
2055
- menuArrowSize: l,
2056
- menuArrowOffset: a
2057
- } = e;
2058
- return {
2059
- [`${n}-submenu`]: {
2060
- "&-expand-icon, &-arrow": {
2061
- position: "absolute",
2062
- top: "50%",
2063
- insetInlineEnd: e.margin,
2064
- width: l,
2065
- color: "currentcolor",
2066
- transform: "translateY(-50%)",
2067
- transition: `transform ${t} ${o}, opacity ${t}`
2068
- },
2069
- "&-arrow": {
2070
- // →
2071
- "&::before, &::after": {
2072
- position: "absolute",
2073
- width: e.calc(l).mul(0.6).equal(),
2074
- height: e.calc(l).mul(0.15).equal(),
2075
- backgroundColor: "currentcolor",
2076
- borderRadius: r,
2077
- transition: [`background ${t} ${o}`, `transform ${t} ${o}`, `top ${t} ${o}`, `color ${t} ${o}`].join(","),
2078
- content: '""'
2079
- },
2080
- "&::before": {
2081
- transform: `rotate(45deg) translateY(${D(e.calc(a).mul(-1).equal())})`
2082
- },
2083
- "&::after": {
2084
- transform: `rotate(-45deg) translateY(${D(a)})`
2085
- }
2086
- }
2087
- }
2088
- };
2089
- }, Di = (e) => {
2090
- const {
2091
- antCls: n,
2092
- componentCls: t,
2093
- fontSize: o,
2094
- motionDurationSlow: r,
2095
- motionDurationMid: l,
2096
- motionEaseInOut: a,
2097
- paddingXS: s,
2098
- padding: c,
2099
- colorSplit: u,
2100
- lineWidth: f,
2101
- zIndexPopup: d,
2102
- borderRadiusLG: m,
2103
- subMenuItemBorderRadius: v,
2104
- menuArrowSize: p,
2105
- menuArrowOffset: g,
2106
- lineType: h,
2107
- groupTitleLineHeight: $,
2108
- groupTitleFontSize: w
2109
- } = e;
2110
- return [
2111
- // Misc
2112
- {
2113
- "": {
2114
- [t]: Object.assign(Object.assign({}, $n()), {
2115
- // Hidden
2116
- "&-hidden": {
2117
- display: "none"
2118
- }
2119
- })
2120
- },
2121
- [`${t}-submenu-hidden`]: {
2122
- display: "none"
2123
- }
2124
- },
2125
- {
2126
- [t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Fn(e)), $n()), {
2127
- marginBottom: 0,
2128
- paddingInlineStart: 0,
2129
- // Override default ul/ol
2130
- fontSize: o,
2131
- lineHeight: 0,
2132
- listStyle: "none",
2133
- outline: "none",
2134
- // Magic cubic here but smooth transition
2135
- transition: `width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,
2136
- "ul, ol": {
2137
- margin: 0,
2138
- padding: 0,
2139
- listStyle: "none"
2140
- },
2141
- // Overflow ellipsis
2142
- "&-overflow": {
2143
- display: "flex",
2144
- [`${t}-item`]: {
2145
- flex: "none"
2146
- }
2147
- },
2148
- [`${t}-item, ${t}-submenu, ${t}-submenu-title`]: {
2149
- borderRadius: e.itemBorderRadius
2150
- },
2151
- [`${t}-item-group-title`]: {
2152
- padding: `${D(s)} ${D(c)}`,
2153
- fontSize: w,
2154
- lineHeight: $,
2155
- transition: `all ${r}`
2156
- },
2157
- [`&-horizontal ${t}-submenu`]: {
2158
- transition: [`border-color ${r} ${a}`, `background ${r} ${a}`].join(",")
2159
- },
2160
- [`${t}-submenu, ${t}-submenu-inline`]: {
2161
- transition: [`border-color ${r} ${a}`, `background ${r} ${a}`, `padding ${l} ${a}`].join(",")
2162
- },
2163
- [`${t}-submenu ${t}-sub`]: {
2164
- cursor: "initial",
2165
- transition: [`background ${r} ${a}`, `padding ${r} ${a}`].join(",")
2166
- },
2167
- [`${t}-title-content`]: {
2168
- transition: `color ${r}`,
2169
- "&-with-extra": {
2170
- display: "inline-flex",
2171
- alignItems: "center",
2172
- width: "100%"
2173
- },
2174
- // https://github.com/ant-design/ant-design/issues/41143
2175
- [`> ${n}-typography-ellipsis-single-line`]: {
2176
- display: "inline",
2177
- verticalAlign: "unset"
2178
- },
2179
- [`${t}-item-extra`]: {
2180
- marginInlineStart: "auto",
2181
- paddingInlineStart: e.padding
2182
- }
2183
- },
2184
- [`${t}-item a`]: {
2185
- "&::before": {
2186
- position: "absolute",
2187
- inset: 0,
2188
- backgroundColor: "transparent",
2189
- content: '""'
2190
- }
2191
- },
2192
- // Removed a Badge related style seems it's safe
2193
- // https://github.com/ant-design/ant-design/issues/19809
2194
- // >>>>> Divider
2195
- [`${t}-item-divider`]: {
2196
- overflow: "hidden",
2197
- lineHeight: 0,
2198
- borderColor: u,
2199
- borderStyle: h,
2200
- borderWidth: 0,
2201
- borderTopWidth: f,
2202
- marginBlock: f,
2203
- padding: 0,
2204
- "&-dashed": {
2205
- borderStyle: "dashed"
2206
- }
2207
- }
2208
- }), Tn(e)), {
2209
- [`${t}-item-group`]: {
2210
- [`${t}-item-group-list`]: {
2211
- margin: 0,
2212
- padding: 0,
2213
- [`${t}-item, ${t}-submenu-title`]: {
2214
- paddingInline: `${D(e.calc(o).mul(2).equal())} ${D(c)}`
2215
- }
2216
- }
2217
- },
2218
- // ======================= Sub Menu =======================
2219
- "&-submenu": {
2220
- "&-popup": {
2221
- position: "absolute",
2222
- zIndex: d,
2223
- borderRadius: m,
2224
- boxShadow: "none",
2225
- transformOrigin: "0 0",
2226
- [`&${t}-submenu`]: {
2227
- background: "transparent"
2228
- },
2229
- // https://github.com/ant-design/ant-design/issues/13955
2230
- "&::before": {
2231
- position: "absolute",
2232
- inset: 0,
2233
- zIndex: -1,
2234
- width: "100%",
2235
- height: "100%",
2236
- opacity: 0,
2237
- content: '""'
2238
- },
2239
- [`> ${t}`]: Object.assign(Object.assign(Object.assign({
2240
- borderRadius: m
2241
- }, Tn(e)), zn(e)), {
2242
- [`${t}-item, ${t}-submenu > ${t}-submenu-title`]: {
2243
- borderRadius: v
2244
- },
2245
- [`${t}-submenu-title::after`]: {
2246
- transition: `transform ${r} ${a}`
2247
- }
2248
- })
2249
- },
2250
- "\n &-placement-leftTop,\n &-placement-bottomRight,\n ": {
2251
- transformOrigin: "100% 0"
2252
- },
2253
- "\n &-placement-leftBottom,\n &-placement-topRight,\n ": {
2254
- transformOrigin: "100% 100%"
2255
- },
2256
- "\n &-placement-rightBottom,\n &-placement-topLeft,\n ": {
2257
- transformOrigin: "0 100%"
2258
- },
2259
- "\n &-placement-bottomLeft,\n &-placement-rightTop,\n ": {
2260
- transformOrigin: "0 0"
2261
- },
2262
- "\n &-placement-leftTop,\n &-placement-leftBottom\n ": {
2263
- paddingInlineEnd: e.paddingXS
2264
- },
2265
- "\n &-placement-rightTop,\n &-placement-rightBottom\n ": {
2266
- paddingInlineStart: e.paddingXS
2267
- },
2268
- "\n &-placement-topRight,\n &-placement-topLeft\n ": {
2269
- paddingBottom: e.paddingXS
2270
- },
2271
- "\n &-placement-bottomRight,\n &-placement-bottomLeft\n ": {
2272
- paddingTop: e.paddingXS
2273
- }
2274
- }
2275
- }), zn(e)), {
2276
- [`&-inline-collapsed ${t}-submenu-arrow,
2277
- &-inline ${t}-submenu-arrow`]: {
2278
- // ↓
2279
- "&::before": {
2280
- transform: `rotate(-45deg) translateX(${D(g)})`
2281
- },
2282
- "&::after": {
2283
- transform: `rotate(45deg) translateX(${D(e.calc(g).mul(-1).equal())})`
2284
- }
2285
- },
2286
- [`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]: {
2287
- // ↑
2288
- transform: `translateY(${D(e.calc(p).mul(0.2).mul(-1).equal())})`,
2289
- "&::after": {
2290
- transform: `rotate(-45deg) translateX(${D(e.calc(g).mul(-1).equal())})`
2291
- },
2292
- "&::before": {
2293
- transform: `rotate(45deg) translateX(${D(g)})`
2294
- }
2295
- }
2296
- })
2297
- },
2298
- // Integration with header element so menu items have the same height
2299
- {
2300
- [`${n}-layout-header`]: {
2301
- [t]: {
2302
- lineHeight: "inherit"
2303
- }
2304
- }
2305
- }
2306
- ];
2307
- }, _i = (e) => {
2308
- var n, t, o;
2309
- const {
2310
- colorPrimary: r,
2311
- colorError: l,
2312
- colorTextDisabled: a,
2313
- colorErrorBg: s,
2314
- colorText: c,
2315
- colorTextDescription: u,
2316
- colorBgContainer: f,
2317
- colorFillAlter: d,
2318
- colorFillContent: m,
2319
- lineWidth: v,
2320
- lineWidthBold: p,
2321
- controlItemBgActive: g,
2322
- colorBgTextHover: h,
2323
- controlHeightLG: $,
2324
- lineHeight: w,
2325
- colorBgElevated: C,
2326
- marginXXS: y,
2327
- padding: b,
2328
- fontSize: I,
2329
- controlHeightSM: x,
2330
- fontSizeLG: M,
2331
- colorTextLightSolid: S,
2332
- colorErrorHover: E
2333
- } = e, z = (n = e.activeBarWidth) !== null && n !== void 0 ? n : 0, P = (t = e.activeBarBorderWidth) !== null && t !== void 0 ? t : v, B = (o = e.itemMarginInline) !== null && o !== void 0 ? o : e.marginXXS, O = new hn(S).setA(0.65).toRgbString();
2334
- return {
2335
- dropdownWidth: 160,
2336
- zIndexPopup: e.zIndexPopupBase + 50,
2337
- radiusItem: e.borderRadiusLG,
2338
- itemBorderRadius: e.borderRadiusLG,
2339
- radiusSubMenuItem: e.borderRadiusSM,
2340
- subMenuItemBorderRadius: e.borderRadiusSM,
2341
- colorItemText: c,
2342
- itemColor: c,
2343
- colorItemTextHover: c,
2344
- itemHoverColor: c,
2345
- colorItemTextHoverHorizontal: r,
2346
- horizontalItemHoverColor: r,
2347
- colorGroupTitle: u,
2348
- groupTitleColor: u,
2349
- colorItemTextSelected: r,
2350
- itemSelectedColor: r,
2351
- subMenuItemSelectedColor: r,
2352
- colorItemTextSelectedHorizontal: r,
2353
- horizontalItemSelectedColor: r,
2354
- colorItemBg: f,
2355
- itemBg: f,
2356
- colorItemBgHover: h,
2357
- itemHoverBg: h,
2358
- colorItemBgActive: m,
2359
- itemActiveBg: g,
2360
- colorSubItemBg: d,
2361
- subMenuItemBg: d,
2362
- colorItemBgSelected: g,
2363
- itemSelectedBg: g,
2364
- colorItemBgSelectedHorizontal: "transparent",
2365
- horizontalItemSelectedBg: "transparent",
2366
- colorActiveBarWidth: 0,
2367
- activeBarWidth: z,
2368
- colorActiveBarHeight: p,
2369
- activeBarHeight: p,
2370
- colorActiveBarBorderSize: v,
2371
- activeBarBorderWidth: P,
2372
- // Disabled
2373
- colorItemTextDisabled: a,
2374
- itemDisabledColor: a,
2375
- // Danger
2376
- colorDangerItemText: l,
2377
- dangerItemColor: l,
2378
- colorDangerItemTextHover: l,
2379
- dangerItemHoverColor: l,
2380
- colorDangerItemTextSelected: l,
2381
- dangerItemSelectedColor: l,
2382
- colorDangerItemBgActive: s,
2383
- dangerItemActiveBg: s,
2384
- colorDangerItemBgSelected: s,
2385
- dangerItemSelectedBg: s,
2386
- itemMarginInline: B,
2387
- horizontalItemBorderRadius: 0,
2388
- horizontalItemHoverBg: "transparent",
2389
- itemHeight: $,
2390
- groupTitleLineHeight: w,
2391
- collapsedWidth: $ * 2,
2392
- popupBg: C,
2393
- itemMarginBlock: y,
2394
- itemPaddingInline: b,
2395
- horizontalLineHeight: `${$ * 1.15}px`,
2396
- iconSize: I,
2397
- iconMarginInlineEnd: x - I,
2398
- collapsedIconSize: M,
2399
- groupTitleFontSize: I,
2400
- // Disabled
2401
- darkItemDisabledColor: new hn(S).setA(0.25).toRgbString(),
2402
- // Dark
2403
- darkItemColor: O,
2404
- darkDangerItemColor: l,
2405
- darkItemBg: "#001529",
2406
- darkPopupBg: "#001529",
2407
- darkSubMenuItemBg: "#000c17",
2408
- darkItemSelectedColor: S,
2409
- darkItemSelectedBg: r,
2410
- darkDangerItemSelectedBg: l,
2411
- darkItemHoverBg: "transparent",
2412
- darkGroupTitleColor: O,
2413
- darkItemHoverColor: S,
2414
- darkDangerItemHoverColor: E,
2415
- darkDangerItemSelectedColor: S,
2416
- darkDangerItemActiveBg: l,
2417
- // internal
2418
- itemWidth: z ? `calc(100% + ${P}px)` : `calc(100% - ${B * 2}px)`
2419
- };
2420
- }, Ai = (e, n = e, t = !0) => Ae("Menu", (r) => {
2421
- const {
2422
- colorBgElevated: l,
2423
- controlHeightLG: a,
2424
- fontSize: s,
2425
- darkItemColor: c,
2426
- darkDangerItemColor: u,
2427
- darkItemBg: f,
2428
- darkSubMenuItemBg: d,
2429
- darkItemSelectedColor: m,
2430
- darkItemSelectedBg: v,
2431
- darkDangerItemSelectedBg: p,
2432
- darkItemHoverBg: g,
2433
- darkGroupTitleColor: h,
2434
- darkItemHoverColor: $,
2435
- darkItemDisabledColor: w,
2436
- darkDangerItemHoverColor: C,
2437
- darkDangerItemSelectedColor: y,
2438
- darkDangerItemActiveBg: b,
2439
- popupBg: I,
2440
- darkPopupBg: x
2441
- } = r, M = r.calc(s).div(7).mul(5).equal(), S = mt(r, {
2442
- menuArrowSize: M,
2443
- menuHorizontalHeight: r.calc(a).mul(1.15).equal(),
2444
- menuArrowOffset: r.calc(M).mul(0.25).equal(),
2445
- menuSubMenuBg: l,
2446
- calc: r.calc,
2447
- popupBg: I
2448
- }), E = mt(S, {
2449
- itemColor: c,
2450
- itemHoverColor: $,
2451
- groupTitleColor: h,
2452
- itemSelectedColor: m,
2453
- subMenuItemSelectedColor: m,
2454
- itemBg: f,
2455
- popupBg: x,
2456
- subMenuItemBg: d,
2457
- itemActiveBg: "transparent",
2458
- itemSelectedBg: v,
2459
- activeBarHeight: 0,
2460
- activeBarBorderWidth: 0,
2461
- itemHoverBg: g,
2462
- // Disabled
2463
- itemDisabledColor: w,
2464
- // Danger
2465
- dangerItemColor: u,
2466
- dangerItemHoverColor: C,
2467
- dangerItemSelectedColor: y,
2468
- dangerItemActiveBg: b,
2469
- dangerItemSelectedBg: p,
2470
- menuSubMenuBg: d,
2471
- // Horizontal
2472
- horizontalItemSelectedColor: m,
2473
- horizontalItemSelectedBg: v
2474
- });
2475
- return [
2476
- // Basic
2477
- Di(S),
2478
- // Horizontal
2479
- Bi(S),
2480
- // Hard code for some light style
2481
- // Vertical
2482
- zi(S),
2483
- // Hard code for some light style
2484
- // Theme
2485
- Rn(S, "light"),
2486
- Rn(E, "dark"),
2487
- // RTL
2488
- Ti(S),
2489
- // Motion
2490
- Er(S),
2491
- dt(S, "slide-up"),
2492
- dt(S, "slide-down"),
2493
- jn(S, "zoom-big")
2494
- ];
2495
- }, _i, {
2496
- 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"]],
2497
- // Dropdown will handle menu style self. We do not need to handle this.
2498
- injectStyle: t,
2499
- unitless: {
2500
- groupTitleLineHeight: !0
2501
- }
2502
- })(e, n), po = (e) => {
2503
- var n;
2504
- const {
2505
- popupClassName: t,
2506
- icon: o,
2507
- title: r,
2508
- theme: l
2509
- } = e, a = i.useContext(ft), {
2510
- prefixCls: s,
2511
- inlineCollapsed: c,
2512
- theme: u
2513
- } = a, f = ke();
2514
- let d;
2515
- if (!o)
2516
- d = c && !f.length && r && typeof r == "string" ? /* @__PURE__ */ i.createElement("div", {
2517
- className: `${s}-inline-collapsed-noicon`
2518
- }, r.charAt(0)) : /* @__PURE__ */ i.createElement("span", {
2519
- className: `${s}-title-content`
2520
- }, r);
2521
- else {
2522
- const p = /* @__PURE__ */ i.isValidElement(r) && r.type === "span";
2523
- d = /* @__PURE__ */ i.createElement(i.Fragment, null, vt(o, {
2524
- className: K(/* @__PURE__ */ i.isValidElement(o) ? (n = o.props) === null || n === void 0 ? void 0 : n.className : void 0, `${s}-item-icon`)
2525
- }), p ? r : /* @__PURE__ */ i.createElement("span", {
2526
- className: `${s}-title-content`
2527
- }, r));
2528
- }
2529
- const m = i.useMemo(() => Object.assign(Object.assign({}, a), {
2530
- firstLevel: !1
2531
- }), [a]), [v] = Gn("Menu");
2532
- return /* @__PURE__ */ i.createElement(ft.Provider, {
2533
- value: m
2534
- }, /* @__PURE__ */ i.createElement(et, Object.assign({}, $e(e, ["icon"]), {
2535
- title: d,
2536
- popupClassName: K(s, t, `${s}-${l || u}`),
2537
- popupStyle: Object.assign({
2538
- zIndex: v
2539
- }, e.popupStyle)
2540
- })));
2541
- };
2542
- var Hi = function(e, n) {
2543
- var t = {};
2544
- for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
2545
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
2546
- n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
2547
- return t;
2548
- };
2549
- function Tt(e) {
2550
- return e === null || e === !1;
2551
- }
2552
- const ki = {
2553
- item: mo,
2554
- submenu: po,
2555
- divider: uo
2556
- }, ji = /* @__PURE__ */ Vt((e, n) => {
2557
- var t;
2558
- const o = i.useContext(gt), r = o || {}, {
2559
- getPrefixCls: l,
2560
- getPopupContainer: a,
2561
- direction: s,
2562
- menu: c
2563
- } = i.useContext(He), u = l(), {
2564
- prefixCls: f,
2565
- className: d,
2566
- style: m,
2567
- theme: v = "light",
2568
- expandIcon: p,
2569
- _internalDisableMenuItemTitleTooltip: g,
2570
- inlineCollapsed: h,
2571
- siderCollapsed: $,
2572
- rootClassName: w,
2573
- mode: C,
2574
- selectable: y,
2575
- onClick: b,
2576
- overflowedIndicatorPopupClassName: I
2577
- } = e, x = Hi(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), M = $e(x, ["collapsedWidth"]);
2578
- if (process.env.NODE_ENV !== "production") {
2579
- const W = Xn("Menu");
2580
- process.env.NODE_ENV !== "production" && W(!("inlineCollapsed" in e && C !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), W.deprecated("items" in e && !e.children, "children", "items");
2581
- }
2582
- (t = r.validator) === null || t === void 0 || t.call(r, {
2583
- mode: C
2584
- });
2585
- const S = _t((...W) => {
2586
- var _;
2587
- b == null || b.apply(void 0, W), (_ = r.onClick) === null || _ === void 0 || _.call(r);
2588
- }), E = r.mode || C, z = y ?? r.selectable, P = h ?? $, B = {
2589
- horizontal: {
2590
- motionName: `${u}-slide-up`
2591
- },
2592
- inline: mr(u),
2593
- other: {
2594
- motionName: `${u}-zoom-big`
2595
- }
2596
- }, O = l("menu", f || r.prefixCls), N = qn(O), [V, A, R] = Ai(O, N, !o), H = K(`${O}-${v}`, c == null ? void 0 : c.className, d), G = i.useMemo(() => {
2597
- var W, _;
2598
- if (typeof p == "function" || Tt(p))
2599
- return p || null;
2600
- if (typeof r.expandIcon == "function" || Tt(r.expandIcon))
2601
- return r.expandIcon || null;
2602
- if (typeof (c == null ? void 0 : c.expandIcon) == "function" || Tt(c == null ? void 0 : c.expandIcon))
2603
- return (c == null ? void 0 : c.expandIcon) || null;
2604
- const F = (W = p ?? (r == null ? void 0 : r.expandIcon)) !== null && W !== void 0 ? W : c == null ? void 0 : c.expandIcon;
2605
- return vt(F, {
2606
- className: K(`${O}-submenu-expand-icon`, /* @__PURE__ */ i.isValidElement(F) ? (_ = F.props) === null || _ === void 0 ? void 0 : _.className : void 0)
2607
- });
2608
- }, [p, r == null ? void 0 : r.expandIcon, c == null ? void 0 : c.expandIcon, O]), ee = i.useMemo(() => ({
2609
- prefixCls: O,
2610
- inlineCollapsed: P || !1,
2611
- direction: s,
2612
- firstLevel: !0,
2613
- theme: v,
2614
- mode: E,
2615
- disableMenuItemTitleTooltip: g
2616
- }), [O, P, s, g, v]);
2617
- return V(/* @__PURE__ */ i.createElement(gt.Provider, {
2618
- value: null
2619
- }, /* @__PURE__ */ i.createElement(ft.Provider, {
2620
- value: ee
2621
- }, /* @__PURE__ */ i.createElement(tt, Object.assign({
2622
- getPopupContainer: a,
2623
- overflowedIndicator: /* @__PURE__ */ i.createElement(Jt, null),
2624
- overflowedIndicatorPopupClassName: K(O, `${O}-${v}`, I),
2625
- mode: E,
2626
- selectable: z,
2627
- onClick: S
2628
- }, M, {
2629
- inlineCollapsed: P,
2630
- style: Object.assign(Object.assign({}, c == null ? void 0 : c.style), m),
2631
- className: H,
2632
- prefixCls: O,
2633
- direction: s,
2634
- defaultMotions: B,
2635
- expandIcon: G,
2636
- ref: n,
2637
- rootClassName: K(w, A, r.rootClassName, R, N),
2638
- _internalComponents: ki
2639
- })))));
2640
- }), je = /* @__PURE__ */ Vt((e, n) => {
2641
- const t = ze(null), o = i.useContext(Qt);
2642
- return An(n, () => ({
2643
- menu: t.current,
2644
- focus: (r) => {
2645
- var l;
2646
- (l = t.current) === null || l === void 0 || l.focus(r);
2647
- }
2648
- })), /* @__PURE__ */ i.createElement(ji, Object.assign({
2649
- ref: t
2650
- }, e, o));
2651
- });
2652
- je.Item = mo;
2653
- je.SubMenu = po;
2654
- je.Divider = uo;
2655
- je.ItemGroup = Ct;
2656
- process.env.NODE_ENV !== "production" && (je.displayName = "Menu");
2657
- const Li = (e) => {
2658
- const {
2659
- componentCls: n,
2660
- menuCls: t,
2661
- colorError: o,
2662
- colorTextLightSolid: r
2663
- } = e, l = `${t}-item`;
2664
- return {
2665
- [`${n}, ${n}-menu-submenu`]: {
2666
- [`${t} ${l}`]: {
2667
- [`&${l}-danger:not(${l}-disabled)`]: {
2668
- color: o,
2669
- "&:hover": {
2670
- color: r,
2671
- backgroundColor: o
2672
- }
2673
- }
2674
- }
2675
- }
2676
- };
2677
- }, Ki = (e) => {
2678
- const {
2679
- componentCls: n,
2680
- menuCls: t,
2681
- zIndexPopup: o,
2682
- dropdownArrowDistance: r,
2683
- sizePopupArrow: l,
2684
- antCls: a,
2685
- iconCls: s,
2686
- motionDurationMid: c,
2687
- paddingBlock: u,
2688
- fontSize: f,
2689
- dropdownEdgeChildPadding: d,
2690
- colorTextDisabled: m,
2691
- fontSizeIcon: v,
2692
- controlPaddingHorizontal: p,
2693
- colorBgElevated: g
2694
- } = e;
2695
- return [
2696
- {
2697
- [n]: {
2698
- position: "absolute",
2699
- top: -9999,
2700
- left: {
2701
- _skip_check_: !0,
2702
- value: -9999
2703
- },
2704
- zIndex: o,
2705
- display: "block",
2706
- // A placeholder out of dropdown visible range to avoid close when user moving
2707
- "&::before": {
2708
- position: "absolute",
2709
- insetBlock: e.calc(l).div(2).sub(r).equal(),
2710
- // insetInlineStart: -7, // FIXME: Seems not work for hidden element
2711
- zIndex: -9999,
2712
- opacity: 1e-4,
2713
- content: '""'
2714
- },
2715
- // Makes vertical dropdowns have a scrollbar once they become taller than the viewport.
2716
- "&-menu-vertical": {
2717
- maxHeight: "100vh",
2718
- overflowY: "auto"
2719
- },
2720
- [`&-trigger${a}-btn`]: {
2721
- [`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]: {
2722
- fontSize: v
2723
- }
2724
- },
2725
- [`${n}-wrap`]: {
2726
- position: "relative",
2727
- [`${a}-btn > ${s}-down`]: {
2728
- fontSize: v
2729
- },
2730
- [`${s}-down::before`]: {
2731
- transition: `transform ${c}`
2732
- }
2733
- },
2734
- [`${n}-wrap-open`]: {
2735
- [`${s}-down::before`]: {
2736
- transform: "rotate(180deg)"
2737
- }
2738
- },
2739
- "\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ": {
2740
- display: "none"
2741
- },
2742
- // =============================================================
2743
- // == Motion ==
2744
- // =============================================================
2745
- // When position is not enough for dropdown, the placement will revert.
2746
- // We will handle this with revert motion name.
2747
- [`&${a}-slide-down-enter${a}-slide-down-enter-active${n}-placement-bottomLeft,
2748
- &${a}-slide-down-appear${a}-slide-down-appear-active${n}-placement-bottomLeft,
2749
- &${a}-slide-down-enter${a}-slide-down-enter-active${n}-placement-bottom,
2750
- &${a}-slide-down-appear${a}-slide-down-appear-active${n}-placement-bottom,
2751
- &${a}-slide-down-enter${a}-slide-down-enter-active${n}-placement-bottomRight,
2752
- &${a}-slide-down-appear${a}-slide-down-appear-active${n}-placement-bottomRight`]: {
2753
- animationName: Qo
2754
- },
2755
- [`&${a}-slide-up-enter${a}-slide-up-enter-active${n}-placement-topLeft,
2756
- &${a}-slide-up-appear${a}-slide-up-appear-active${n}-placement-topLeft,
2757
- &${a}-slide-up-enter${a}-slide-up-enter-active${n}-placement-top,
2758
- &${a}-slide-up-appear${a}-slide-up-appear-active${n}-placement-top,
2759
- &${a}-slide-up-enter${a}-slide-up-enter-active${n}-placement-topRight,
2760
- &${a}-slide-up-appear${a}-slide-up-appear-active${n}-placement-topRight`]: {
2761
- animationName: Zo
2762
- },
2763
- [`&${a}-slide-down-leave${a}-slide-down-leave-active${n}-placement-bottomLeft,
2764
- &${a}-slide-down-leave${a}-slide-down-leave-active${n}-placement-bottom,
2765
- &${a}-slide-down-leave${a}-slide-down-leave-active${n}-placement-bottomRight`]: {
2766
- animationName: Yo
2767
- },
2768
- [`&${a}-slide-up-leave${a}-slide-up-leave-active${n}-placement-topLeft,
2769
- &${a}-slide-up-leave${a}-slide-up-leave-active${n}-placement-top,
2770
- &${a}-slide-up-leave${a}-slide-up-leave-active${n}-placement-topRight`]: {
2771
- animationName: Uo
2772
- }
2773
- }
2774
- },
2775
- // =============================================================
2776
- // == Arrow style ==
2777
- // =============================================================
2778
- yr(e, g, {
2779
- arrowPlacement: {
2780
- top: !0,
2781
- bottom: !0
2782
- }
2783
- }),
2784
- {
2785
- // =============================================================
2786
- // == Menu ==
2787
- // =============================================================
2788
- [`${n} ${t}`]: {
2789
- position: "relative",
2790
- margin: 0
2791
- },
2792
- [`${t}-submenu-popup`]: {
2793
- position: "absolute",
2794
- zIndex: o,
2795
- background: "transparent",
2796
- boxShadow: "none",
2797
- transformOrigin: "0 0",
2798
- "ul, li": {
2799
- listStyle: "none",
2800
- margin: 0
2801
- }
2802
- },
2803
- [`${n}, ${n}-menu-submenu`]: Object.assign(Object.assign({}, Fn(e)), {
2804
- [t]: Object.assign(Object.assign({
2805
- padding: d,
2806
- listStyleType: "none",
2807
- backgroundColor: g,
2808
- backgroundClip: "padding-box",
2809
- borderRadius: e.borderRadiusLG,
2810
- outline: "none",
2811
- boxShadow: e.boxShadowSecondary
2812
- }, yn(e)), {
2813
- "&:empty": {
2814
- padding: 0,
2815
- boxShadow: "none"
2816
- },
2817
- [`${t}-item-group-title`]: {
2818
- padding: `${D(u)} ${D(p)}`,
2819
- color: e.colorTextDescription,
2820
- transition: `all ${c}`
2821
- },
2822
- // ======================= Item Content =======================
2823
- [`${t}-item`]: {
2824
- position: "relative",
2825
- display: "flex",
2826
- alignItems: "center"
2827
- },
2828
- [`${t}-item-icon`]: {
2829
- minWidth: f,
2830
- marginInlineEnd: e.marginXS,
2831
- fontSize: e.fontSizeSM
2832
- },
2833
- [`${t}-title-content`]: {
2834
- flex: "auto",
2835
- "&-with-extra": {
2836
- display: "inline-flex",
2837
- alignItems: "center",
2838
- width: "100%"
2839
- },
2840
- "> a": {
2841
- color: "inherit",
2842
- transition: `all ${c}`,
2843
- "&:hover": {
2844
- color: "inherit"
2845
- },
2846
- "&::after": {
2847
- position: "absolute",
2848
- inset: 0,
2849
- content: '""'
2850
- }
2851
- },
2852
- [`${t}-item-extra`]: {
2853
- paddingInlineStart: e.padding,
2854
- marginInlineStart: "auto",
2855
- fontSize: e.fontSizeSM,
2856
- color: e.colorTextDescription
2857
- }
2858
- },
2859
- // =========================== Item ===========================
2860
- [`${t}-item, ${t}-submenu-title`]: Object.assign(Object.assign({
2861
- display: "flex",
2862
- margin: 0,
2863
- padding: `${D(u)} ${D(p)}`,
2864
- color: e.colorText,
2865
- fontWeight: "normal",
2866
- fontSize: f,
2867
- lineHeight: e.lineHeight,
2868
- cursor: "pointer",
2869
- transition: `all ${c}`,
2870
- borderRadius: e.borderRadiusSM,
2871
- "&:hover, &-active": {
2872
- backgroundColor: e.controlItemBgHover
2873
- }
2874
- }, yn(e)), {
2875
- "&-selected": {
2876
- color: e.colorPrimary,
2877
- backgroundColor: e.controlItemBgActive,
2878
- "&:hover, &-active": {
2879
- backgroundColor: e.controlItemBgActiveHover
2880
- }
2881
- },
2882
- "&-disabled": {
2883
- color: m,
2884
- cursor: "not-allowed",
2885
- "&:hover": {
2886
- color: m,
2887
- backgroundColor: g,
2888
- cursor: "not-allowed"
2889
- },
2890
- a: {
2891
- pointerEvents: "none"
2892
- }
2893
- },
2894
- "&-divider": {
2895
- height: 1,
2896
- // By design
2897
- margin: `${D(e.marginXXS)} 0`,
2898
- overflow: "hidden",
2899
- lineHeight: 0,
2900
- backgroundColor: e.colorSplit
2901
- },
2902
- [`${n}-menu-submenu-expand-icon`]: {
2903
- position: "absolute",
2904
- insetInlineEnd: e.paddingXS,
2905
- [`${n}-menu-submenu-arrow-icon`]: {
2906
- marginInlineEnd: "0 !important",
2907
- color: e.colorIcon,
2908
- fontSize: v,
2909
- fontStyle: "normal"
2910
- }
2911
- }
2912
- }),
2913
- [`${t}-item-group-list`]: {
2914
- margin: `0 ${D(e.marginXS)}`,
2915
- padding: 0,
2916
- listStyle: "none"
2917
- },
2918
- [`${t}-submenu-title`]: {
2919
- paddingInlineEnd: e.calc(p).add(e.fontSizeSM).equal()
2920
- },
2921
- [`${t}-submenu-vertical`]: {
2922
- position: "relative"
2923
- },
2924
- [`${t}-submenu${t}-submenu-disabled ${n}-menu-submenu-title`]: {
2925
- [`&, ${n}-menu-submenu-arrow-icon`]: {
2926
- color: m,
2927
- backgroundColor: g,
2928
- cursor: "not-allowed"
2929
- }
2930
- },
2931
- // https://github.com/ant-design/ant-design/issues/19264
2932
- [`${t}-submenu-selected ${n}-menu-submenu-title`]: {
2933
- color: e.colorPrimary
2934
- }
2935
- })
2936
- })
2937
- },
2938
- // Follow code may reuse in other components
2939
- [dt(e, "slide-up"), dt(e, "slide-down"), Cn(e, "move-up"), Cn(e, "move-down"), jn(e, "zoom-big")]
2940
- ];
2941
- }, Vi = (e) => Object.assign(Object.assign({
2942
- zIndexPopup: e.zIndexPopupBase + 50,
2943
- paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2
2944
- }, Cr({
2945
- contentRadius: e.borderRadiusLG,
2946
- limitVerticalRadius: !0
2947
- })), $r(e)), Wi = Ae("Dropdown", (e) => {
2948
- const {
2949
- marginXXS: n,
2950
- sizePopupArrow: t,
2951
- paddingXXS: o,
2952
- componentCls: r
2953
- } = e, l = mt(e, {
2954
- menuCls: `${r}-menu`,
2955
- dropdownArrowDistance: e.calc(t).div(2).add(n).equal(),
2956
- dropdownEdgeChildPadding: o
2957
- });
2958
- return [Ki(l), Li(l)];
2959
- }, Vi, {
2960
- resetStyle: !1
2961
- }), nt = (e) => {
2962
- var n;
2963
- const {
2964
- menu: t,
2965
- arrow: o,
2966
- prefixCls: r,
2967
- children: l,
2968
- trigger: a,
2969
- disabled: s,
2970
- dropdownRender: c,
2971
- popupRender: u,
2972
- getPopupContainer: f,
2973
- overlayClassName: d,
2974
- rootClassName: m,
2975
- overlayStyle: v,
2976
- open: p,
2977
- onOpenChange: g,
2978
- // Deprecated
2979
- visible: h,
2980
- onVisibleChange: $,
2981
- mouseEnterDelay: w = 0.15,
2982
- mouseLeaveDelay: C = 0.1,
2983
- autoAdjustOverflow: y = !0,
2984
- placement: b = "",
2985
- overlay: I,
2986
- transitionName: x,
2987
- destroyOnHidden: M,
2988
- destroyPopupOnHide: S
2989
- } = e, {
2990
- getPopupContainer: E,
2991
- getPrefixCls: z,
2992
- direction: P,
2993
- dropdown: B
2994
- } = i.useContext(He), O = u || c, N = Xn("Dropdown");
2995
- process.env.NODE_ENV !== "production" && (Object.entries({
2996
- visible: "open",
2997
- onVisibleChange: "onOpenChange",
2998
- overlay: "menu",
2999
- dropdownRender: "popupRender",
3000
- destroyPopupOnHide: "destroyOnHidden"
3001
- }).forEach(([ue, Me]) => {
3002
- N.deprecated(!(ue in e), ue, Me);
3003
- }), b.includes("Center") && N.deprecated(!b.includes("Center"), `placement: ${b}`, `placement: ${b.slice(0, b.indexOf("Center"))}`));
3004
- const V = i.useMemo(() => {
3005
- const Y = z();
3006
- return x !== void 0 ? x : b.includes("top") ? `${Y}-slide-down` : `${Y}-slide-up`;
3007
- }, [z, b, x]), A = i.useMemo(() => b ? b.includes("Center") ? b.slice(0, b.indexOf("Center")) : b : P === "rtl" ? "bottomRight" : "bottomLeft", [b, P]), R = z("dropdown", r), H = qn(R), [G, ee, W] = Wi(R, H), [, _] = pr(), F = i.Children.only(Dr(l) ? /* @__PURE__ */ i.createElement("span", null, l) : l), j = vt(F, {
3008
- className: K(`${R}-trigger`, {
3009
- [`${R}-rtl`]: P === "rtl"
3010
- }, F.props.className),
3011
- disabled: (n = F.props.disabled) !== null && n !== void 0 ? n : s
3012
- }), k = s ? [] : a, U = !!(k != null && k.includes("contextMenu")), [T, X] = Qe(!1, {
3013
- value: p ?? h
3014
- }), Q = _t((Y) => {
3015
- g == null || g(Y, {
3016
- source: "trigger"
3017
- }), $ == null || $(Y), X(Y);
3018
- }), te = K(d, m, ee, W, H, B == null ? void 0 : B.className, {
3019
- [`${R}-rtl`]: P === "rtl"
3020
- }), pe = Sr({
3021
- arrowPointAtCenter: typeof o == "object" && o.pointAtCenter,
3022
- autoAdjustOverflow: y,
3023
- offset: _.marginXXS,
3024
- arrowWidth: o ? _.sizePopupArrow : 0,
3025
- borderRadius: _.borderRadius
3026
- }), Oe = _t(() => {
3027
- t != null && t.selectable && (t != null && t.multiple) || (g == null || g(!1, {
3028
- source: "menu"
3029
- }), X(!1));
3030
- }), he = () => {
3031
- let Y;
3032
- return t != null && t.items ? Y = /* @__PURE__ */ i.createElement(je, Object.assign({}, t)) : typeof I == "function" ? Y = I() : Y = I, O && (Y = O(Y)), Y = i.Children.only(typeof Y == "string" ? /* @__PURE__ */ i.createElement("span", null, Y) : Y), /* @__PURE__ */ i.createElement(Ri, {
3033
- prefixCls: `${R}-menu`,
3034
- rootClassName: K(W, H),
3035
- expandIcon: /* @__PURE__ */ i.createElement("span", {
3036
- className: `${R}-menu-submenu-arrow`
3037
- }, P === "rtl" ? /* @__PURE__ */ i.createElement(zt, {
3038
- className: `${R}-menu-submenu-arrow-icon`
3039
- }) : /* @__PURE__ */ i.createElement(Dt, {
3040
- className: `${R}-menu-submenu-arrow-icon`
3041
- })),
3042
- mode: "vertical",
3043
- selectable: !1,
3044
- onClick: Oe,
3045
- validator: ({
3046
- mode: ue
3047
- }) => {
3048
- process.env.NODE_ENV !== "production" && N(!ue || ue === "vertical", "usage", `mode="${ue}" is not supported for Dropdown's Menu.`);
3049
- }
3050
- }, Y);
3051
- }, [ve, Le] = Gn("Dropdown", v == null ? void 0 : v.zIndex);
3052
- let ye = /* @__PURE__ */ i.createElement(zr, Object.assign({
3053
- alignPoint: U
3054
- }, $e(e, ["rootClassName"]), {
3055
- mouseEnterDelay: w,
3056
- mouseLeaveDelay: C,
3057
- visible: T,
3058
- builtinPlacements: pe,
3059
- arrow: !!o,
3060
- overlayClassName: te,
3061
- prefixCls: R,
3062
- getPopupContainer: f || E,
3063
- transitionName: V,
3064
- trigger: k,
3065
- overlay: he,
3066
- placement: A,
3067
- onVisibleChange: Q,
3068
- overlayStyle: Object.assign(Object.assign(Object.assign({}, B == null ? void 0 : B.style), v), {
3069
- zIndex: ve
3070
- }),
3071
- autoDestroy: M ?? S
3072
- }), j);
3073
- return ve && (ye = /* @__PURE__ */ i.createElement(fr.Provider, {
3074
- value: Le
3075
- }, ye)), G(ye);
3076
- }, Fi = Jo(nt, "align", void 0, "dropdown", (e) => e), Gi = (e) => /* @__PURE__ */ i.createElement(Fi, Object.assign({}, e), /* @__PURE__ */ i.createElement("span", null));
3077
- nt._InternalPanelDoNotUseOrYouWillBeFired = Gi;
3078
- process.env.NODE_ENV !== "production" && (nt.displayName = "Dropdown");
3079
- function Dn(e) {
3080
- return ["small", "middle", "large"].includes(e);
3081
- }
3082
- function _n(e) {
3083
- return e ? typeof e == "number" && !Number.isNaN(e) : !1;
3084
- }
3085
- const Xi = (e) => {
3086
- const {
3087
- componentCls: n,
3088
- borderRadius: t,
3089
- paddingSM: o,
3090
- colorBorder: r,
3091
- paddingXS: l,
3092
- fontSizeLG: a,
3093
- fontSizeSM: s,
3094
- borderRadiusLG: c,
3095
- borderRadiusSM: u,
3096
- colorBgContainerDisabled: f,
3097
- lineWidth: d
3098
- } = e;
3099
- return {
3100
- [n]: [{
3101
- display: "inline-flex",
3102
- alignItems: "center",
3103
- gap: 0,
3104
- paddingInline: o,
3105
- margin: 0,
3106
- background: f,
3107
- borderWidth: d,
3108
- borderStyle: "solid",
3109
- borderColor: r,
3110
- borderRadius: t,
3111
- "&-large": {
3112
- fontSize: a,
3113
- borderRadius: c
3114
- },
3115
- "&-small": {
3116
- paddingInline: l,
3117
- borderRadius: u,
3118
- fontSize: s
3119
- },
3120
- "&-compact-last-item": {
3121
- borderEndStartRadius: 0,
3122
- borderStartStartRadius: 0
3123
- },
3124
- "&-compact-first-item": {
3125
- borderEndEndRadius: 0,
3126
- borderStartEndRadius: 0
3127
- },
3128
- "&-compact-item:not(:first-child):not(:last-child)": {
3129
- borderRadius: 0
3130
- },
3131
- "&-compact-item:not(:last-child)": {
3132
- borderInlineEndWidth: 0
3133
- }
3134
- }, gr(e, {
3135
- focus: !1
3136
- })]
3137
- };
3138
- }, qi = Ae(["Space", "Addon"], (e) => [Xi(e)]);
3139
- var Ui = function(e, n) {
3140
- var t = {};
3141
- for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
3142
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
3143
- n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
3144
- return t;
3145
- };
3146
- const Yi = /* @__PURE__ */ ae.forwardRef((e, n) => {
3147
- const {
3148
- className: t,
3149
- children: o,
3150
- style: r,
3151
- prefixCls: l
3152
- } = e, a = Ui(e, ["className", "children", "style", "prefixCls"]), {
3153
- getPrefixCls: s,
3154
- direction: c
3155
- } = ae.useContext(He), u = s("space-addon", l), [f, d, m] = qi(u), {
3156
- compactItemClassnames: v,
3157
- compactSize: p
3158
- } = Un(u, c), g = K(u, d, v, m, {
3159
- [`${u}-${p}`]: p
3160
- }, t);
3161
- return f(/* @__PURE__ */ ae.createElement("div", Object.assign({
3162
- ref: n,
3163
- className: g,
3164
- style: r
3165
- }, a), o));
3166
- }), fo = /* @__PURE__ */ ae.createContext({
3167
- latestIndex: 0
3168
- }), Zi = fo.Provider, Qi = ({
3169
- className: e,
3170
- index: n,
3171
- children: t,
3172
- split: o,
3173
- style: r
3174
- }) => {
3175
- const {
3176
- latestIndex: l
3177
- } = i.useContext(fo);
3178
- return t == null ? null : /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("div", {
3179
- className: e,
3180
- style: r
3181
- }, t), n < l && o && /* @__PURE__ */ i.createElement("span", {
3182
- className: `${e}-split`
3183
- }, o));
3184
- }, Ji = (e) => {
3185
- const {
3186
- componentCls: n,
3187
- antCls: t
3188
- } = e;
3189
- return {
3190
- [n]: {
3191
- display: "inline-flex",
3192
- "&-rtl": {
3193
- direction: "rtl"
3194
- },
3195
- "&-vertical": {
3196
- flexDirection: "column"
3197
- },
3198
- "&-align": {
3199
- flexDirection: "column",
3200
- "&-center": {
3201
- alignItems: "center"
3202
- },
3203
- "&-start": {
3204
- alignItems: "flex-start"
3205
- },
3206
- "&-end": {
3207
- alignItems: "flex-end"
3208
- },
3209
- "&-baseline": {
3210
- alignItems: "baseline"
3211
- }
3212
- },
3213
- [`${n}-item:empty`]: {
3214
- display: "none"
3215
- },
3216
- // https://github.com/ant-design/ant-design/issues/47875
3217
- [`${n}-item > ${t}-badge-not-a-wrapper:only-child`]: {
3218
- display: "block"
3219
- }
3220
- }
3221
- };
3222
- }, ea = (e) => {
3223
- const {
3224
- componentCls: n
3225
- } = e;
3226
- return {
3227
- [n]: {
3228
- "&-gap-row-small": {
3229
- rowGap: e.spaceGapSmallSize
3230
- },
3231
- "&-gap-row-middle": {
3232
- rowGap: e.spaceGapMiddleSize
3233
- },
3234
- "&-gap-row-large": {
3235
- rowGap: e.spaceGapLargeSize
3236
- },
3237
- "&-gap-col-small": {
3238
- columnGap: e.spaceGapSmallSize
3239
- },
3240
- "&-gap-col-middle": {
3241
- columnGap: e.spaceGapMiddleSize
3242
- },
3243
- "&-gap-col-large": {
3244
- columnGap: e.spaceGapLargeSize
3245
- }
3246
- }
3247
- };
3248
- }, ta = Ae("Space", (e) => {
3249
- const n = mt(e, {
3250
- spaceGapSmallSize: e.paddingXS,
3251
- spaceGapMiddleSize: e.padding,
3252
- spaceGapLargeSize: e.paddingLG
3253
- });
3254
- return [Ji(n), ea(n)];
3255
- }, () => ({}), {
3256
- // Space component don't apply extra font style
3257
- // https://github.com/ant-design/ant-design/issues/40315
3258
- resetStyle: !1
3259
- });
3260
- var na = function(e, n) {
3261
- var t = {};
3262
- for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
3263
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
3264
- n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
3265
- return t;
3266
- };
3267
- const oa = /* @__PURE__ */ i.forwardRef((e, n) => {
3268
- var t;
3269
- const {
3270
- getPrefixCls: o,
3271
- direction: r,
3272
- size: l,
3273
- className: a,
3274
- style: s,
3275
- classNames: c,
3276
- styles: u
3277
- } = vr("space"), {
3278
- size: f = l ?? "small",
3279
- align: d,
3280
- className: m,
3281
- rootClassName: v,
3282
- children: p,
3283
- direction: g = "horizontal",
3284
- prefixCls: h,
3285
- split: $,
3286
- style: w,
3287
- wrap: C = !1,
3288
- classNames: y,
3289
- styles: b
3290
- } = e, I = na(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [x, M] = Array.isArray(f) ? f : [f, f], S = Dn(M), E = Dn(x), z = _n(M), P = _n(x), B = Ft(p, {
3291
- keepEmpty: !0
3292
- }), O = d === void 0 && g === "horizontal" ? "center" : d, N = o("space", h), [V, A, R] = ta(N), H = K(N, a, A, `${N}-${g}`, {
3293
- [`${N}-rtl`]: r === "rtl",
3294
- [`${N}-align-${O}`]: O,
3295
- [`${N}-gap-row-${M}`]: S,
3296
- [`${N}-gap-col-${x}`]: E
3297
- }, m, v, R), G = K(`${N}-item`, (t = y == null ? void 0 : y.item) !== null && t !== void 0 ? t : c.item), ee = Object.assign(Object.assign({}, u.item), b == null ? void 0 : b.item), W = B.map((j, k) => {
3298
- const U = (j == null ? void 0 : j.key) || `${G}-${k}`;
3299
- return /* @__PURE__ */ i.createElement(Qi, {
3300
- className: G,
3301
- key: U,
3302
- index: k,
3303
- split: $,
3304
- style: ee
3305
- }, j);
3306
- }), _ = i.useMemo(() => ({
3307
- latestIndex: B.reduce((k, U, T) => U != null ? T : k, 0)
3308
- }), [B]);
3309
- if (B.length === 0)
3310
- return null;
3311
- const F = {};
3312
- return C && (F.flexWrap = "wrap"), !E && P && (F.columnGap = x), !S && z && (F.rowGap = M), V(/* @__PURE__ */ i.createElement("div", Object.assign({
3313
- ref: n,
3314
- className: H,
3315
- style: Object.assign(Object.assign(Object.assign({}, F), s), w)
3316
- }, I), /* @__PURE__ */ i.createElement(Zi, {
3317
- value: _
3318
- }, W)));
3319
- }), $t = oa;
3320
- $t.Compact = br;
3321
- $t.Addon = Yi;
3322
- process.env.NODE_ENV !== "production" && ($t.displayName = "Space");
3323
- var ra = function(e, n) {
3324
- var t = {};
3325
- for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
3326
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
3327
- n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
3328
- return t;
3329
- };
3330
- const go = (e) => {
3331
- const {
3332
- getPopupContainer: n,
3333
- getPrefixCls: t,
3334
- direction: o
3335
- } = i.useContext(He), {
3336
- prefixCls: r,
3337
- type: l = "default",
3338
- danger: a,
3339
- disabled: s,
3340
- loading: c,
3341
- onClick: u,
3342
- htmlType: f,
3343
- children: d,
3344
- className: m,
3345
- menu: v,
3346
- arrow: p,
3347
- autoFocus: g,
3348
- overlay: h,
3349
- trigger: $,
3350
- align: w,
3351
- open: C,
3352
- onOpenChange: y,
3353
- placement: b,
3354
- getPopupContainer: I,
3355
- href: x,
3356
- icon: M = /* @__PURE__ */ i.createElement(Jt, null),
3357
- title: S,
3358
- buttonsRender: E = (te) => te,
3359
- mouseEnterDelay: z,
3360
- mouseLeaveDelay: P,
3361
- overlayClassName: B,
3362
- overlayStyle: O,
3363
- destroyOnHidden: N,
3364
- destroyPopupOnHide: V,
3365
- dropdownRender: A,
3366
- popupRender: R
3367
- } = e, H = ra(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"]), G = t("dropdown", r), ee = `${G}-button`, _ = {
3368
- menu: v,
3369
- arrow: p,
3370
- autoFocus: g,
3371
- align: w,
3372
- disabled: s,
3373
- trigger: s ? [] : $,
3374
- onOpenChange: y,
3375
- getPopupContainer: I || n,
3376
- mouseEnterDelay: z,
3377
- mouseLeaveDelay: P,
3378
- overlayClassName: B,
3379
- overlayStyle: O,
3380
- destroyOnHidden: N,
3381
- popupRender: R || A
3382
- }, {
3383
- compactSize: F,
3384
- compactItemClassnames: j
3385
- } = Un(G, o), k = K(ee, j, m);
3386
- "destroyPopupOnHide" in e && (_.destroyPopupOnHide = V), "overlay" in e && (_.overlay = h), "open" in e && (_.open = C), "placement" in e ? _.placement = b : _.placement = o === "rtl" ? "bottomLeft" : "bottomRight";
3387
- const U = /* @__PURE__ */ i.createElement(Sn, {
3388
- type: l,
3389
- danger: a,
3390
- disabled: s,
3391
- loading: c,
3392
- onClick: u,
3393
- htmlType: f,
3394
- href: x,
3395
- title: S
3396
- }, d), T = /* @__PURE__ */ i.createElement(Sn, {
3397
- type: l,
3398
- danger: a,
3399
- icon: M
3400
- }), [X, Q] = E([U, T]);
3401
- return /* @__PURE__ */ i.createElement($t.Compact, Object.assign({
3402
- className: k,
3403
- size: F,
3404
- block: !0
3405
- }, H), X, /* @__PURE__ */ i.createElement(nt, Object.assign({}, _), Q));
3406
- };
3407
- go.__ANT_BUTTON = !0;
3408
- const ia = nt;
3409
- ia.Button = go;
3410
- export {
3411
- ia as D,
3412
- tt as E,
3413
- je as M,
3414
- Ri as O,
3415
- Jt as R,
3416
- $t as S,
3417
- ht as a,
3418
- zr as b
3419
- };