@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,1344 +0,0 @@
1
- import { j as Xt, q as Ft, i as Ce, c as A, h as G, _ as Z, b as He, I as vt, f as Ut, a as Qt } from "./SearchOutlined-puH6bCY6.js";
2
- import * as i from "react";
3
- import s, { forwardRef as Yt, useRef as lt, useImperativeHandle as Zt, useEffect as kt, useMemo as en } from "react";
4
- import { N as Le, Q as ct, c as ft, ab as tn, ad as nn, x as an, d as ht, f as bt, aD as rn, aC as on, a2 as ln, _ as st, i as Y, p as cn, g as sn, m as un, r as dn, u as y, aB as ut, a as mn, F as gn, e as pn, a8 as vn, ac as fn, v as hn, aP as bn } from "./index-CrMcNEAZ.js";
5
- import { u as Ct } from "./index-DMTPsTna.js";
6
- import { R as dt, a as mt } from "./LeftOutlined-Cgo6Izj-.js";
7
- import { i as Cn, a as Sn, g as xn, p as yn, q as $n, r as Nn, d as En } from "./TextArea-DTpTS5HL.js";
8
- import { S as zn } from "./index-bOY1cBol.js";
9
- var St = function(t) {
10
- if (Xt() && window.document.documentElement) {
11
- var o = Array.isArray(t) ? t : [t], n = window.document.documentElement;
12
- return o.some(function(a) {
13
- return a in n.style;
14
- });
15
- }
16
- return !1;
17
- }, Pn = function(t, o) {
18
- if (!St(t))
19
- return !1;
20
- var n = document.createElement("div"), a = n.style[t];
21
- return n.style[t] = o, n.style[t] !== a;
22
- };
23
- function li(e, t) {
24
- return !Array.isArray(e) && t !== void 0 ? Pn(e, t) : St(e);
25
- }
26
- var On = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], In = /* @__PURE__ */ Yt(function(e, t) {
27
- var o = e.prefixCls, n = o === void 0 ? "rc-checkbox" : o, a = e.className, P = e.style, O = e.checked, $ = e.disabled, x = e.defaultChecked, I = x === void 0 ? !1 : x, h = e.type, p = h === void 0 ? "checkbox" : h, M = e.title, d = e.onChange, T = Ft(e, On), E = lt(null), v = lt(null), l = Le(I, {
28
- value: O
29
- }), R = Ce(l, 2), H = R[0], L = R[1];
30
- Zt(t, function() {
31
- return {
32
- focus: function(c) {
33
- var z;
34
- (z = E.current) === null || z === void 0 || z.focus(c);
35
- },
36
- blur: function() {
37
- var c;
38
- (c = E.current) === null || c === void 0 || c.blur();
39
- },
40
- input: E.current,
41
- nativeElement: v.current
42
- };
43
- });
44
- var u = A(n, a, G(G({}, "".concat(n, "-checked"), H), "".concat(n, "-disabled"), $)), S = function(c) {
45
- $ || ("checked" in e || L(c.target.checked), d == null || d({
46
- target: He(He({}, e), {}, {
47
- type: p,
48
- checked: c.target.checked
49
- }),
50
- stopPropagation: function() {
51
- c.stopPropagation();
52
- },
53
- preventDefault: function() {
54
- c.preventDefault();
55
- },
56
- nativeEvent: c.nativeEvent
57
- }));
58
- };
59
- return /* @__PURE__ */ i.createElement("span", {
60
- className: u,
61
- title: M,
62
- style: P,
63
- ref: v
64
- }, /* @__PURE__ */ i.createElement("input", Z({}, T, {
65
- className: "".concat(n, "-input"),
66
- ref: E,
67
- onChange: S,
68
- disabled: $,
69
- checked: !!H,
70
- type: p
71
- })), /* @__PURE__ */ i.createElement("span", {
72
- className: "".concat(n, "-inner")
73
- }));
74
- });
75
- function wn(e) {
76
- const t = s.useRef(null), o = () => {
77
- ct.cancel(t.current), t.current = null;
78
- };
79
- return [() => {
80
- o(), t.current = ct(() => {
81
- t.current = null;
82
- });
83
- }, (P) => {
84
- t.current && (P.stopPropagation(), o()), e == null || e(P);
85
- }];
86
- }
87
- const xt = /* @__PURE__ */ s.createContext(null);
88
- var _n = function(e, t) {
89
- var o = {};
90
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
91
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
92
- t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (o[n[a]] = e[n[a]]);
93
- return o;
94
- };
95
- const jn = (e, t) => {
96
- var o;
97
- const {
98
- prefixCls: n,
99
- className: a,
100
- rootClassName: P,
101
- children: O,
102
- indeterminate: $ = !1,
103
- style: x,
104
- onMouseEnter: I,
105
- onMouseLeave: h,
106
- skipGroup: p = !1,
107
- disabled: M
108
- } = e, d = _n(e, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]), {
109
- getPrefixCls: T,
110
- direction: E,
111
- checkbox: v
112
- } = i.useContext(ft), l = i.useContext(xt), {
113
- isFormItemInput: R
114
- } = i.useContext(tn), H = i.useContext(nn), L = (o = (l == null ? void 0 : l.disabled) || M) !== null && o !== void 0 ? o : H, u = i.useRef(d.value), S = i.useRef(null), W = an(t, S);
115
- if (process.env.NODE_ENV !== "production") {
116
- const B = ht("Checkbox");
117
- process.env.NODE_ENV !== "production" && B("checked" in d || !!l || !("value" in d), "usage", "`value` is not a valid prop, do you mean `checked`?");
118
- }
119
- i.useEffect(() => {
120
- l == null || l.registerValue(d.value);
121
- }, []), i.useEffect(() => {
122
- if (!p)
123
- return d.value !== u.current && (l == null || l.cancelValue(u.current), l == null || l.registerValue(d.value), u.current = d.value), () => l == null ? void 0 : l.cancelValue(d.value);
124
- }, [d.value]), i.useEffect(() => {
125
- var B;
126
- !((B = S.current) === null || B === void 0) && B.input && (S.current.input.indeterminate = $);
127
- }, [$]);
128
- const c = T("checkbox", n), z = bt(c), [q, J, C] = Ct(c, z), b = Object.assign({}, d);
129
- l && !p && (b.onChange = (...B) => {
130
- d.onChange && d.onChange.apply(d, B), l.toggleOption && l.toggleOption({
131
- label: O,
132
- value: d.value
133
- });
134
- }, b.name = l.name, b.checked = l.value.includes(d.value));
135
- const K = A(`${c}-wrapper`, {
136
- [`${c}-rtl`]: E === "rtl",
137
- [`${c}-wrapper-checked`]: b.checked,
138
- [`${c}-wrapper-disabled`]: L,
139
- [`${c}-wrapper-in-form-item`]: R
140
- }, v == null ? void 0 : v.className, a, P, C, z, J), g = A({
141
- [`${c}-indeterminate`]: $
142
- }, rn, J), [j, w] = wn(b.onClick);
143
- return q(/* @__PURE__ */ i.createElement(on, {
144
- component: "Checkbox",
145
- disabled: L
146
- }, /* @__PURE__ */ i.createElement("label", {
147
- className: K,
148
- style: Object.assign(Object.assign({}, v == null ? void 0 : v.style), x),
149
- onMouseEnter: I,
150
- onMouseLeave: h,
151
- onClick: j
152
- }, /* @__PURE__ */ i.createElement(In, Object.assign({}, b, {
153
- onClick: w,
154
- prefixCls: c,
155
- className: g,
156
- disabled: L,
157
- ref: W
158
- })), O != null && /* @__PURE__ */ i.createElement("span", {
159
- className: `${c}-label`
160
- }, O))));
161
- }, Ke = /* @__PURE__ */ i.forwardRef(jn);
162
- process.env.NODE_ENV !== "production" && (Ke.displayName = "Checkbox");
163
- var Bn = function(e, t) {
164
- var o = {};
165
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
166
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
167
- t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (o[n[a]] = e[n[a]]);
168
- return o;
169
- };
170
- const Mn = /* @__PURE__ */ i.forwardRef((e, t) => {
171
- const {
172
- defaultValue: o,
173
- children: n,
174
- options: a = [],
175
- prefixCls: P,
176
- className: O,
177
- rootClassName: $,
178
- style: x,
179
- onChange: I
180
- } = e, h = Bn(e, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]), {
181
- getPrefixCls: p,
182
- direction: M
183
- } = i.useContext(ft), [d, T] = i.useState(h.value || o || []), [E, v] = i.useState([]);
184
- i.useEffect(() => {
185
- "value" in h && T(h.value || []);
186
- }, [h.value]);
187
- const l = i.useMemo(() => a.map((g) => typeof g == "string" || typeof g == "number" ? {
188
- label: g,
189
- value: g
190
- } : g), [a]), R = (g) => {
191
- v((j) => j.filter((w) => w !== g));
192
- }, H = (g) => {
193
- v((j) => [].concat(st(j), [g]));
194
- }, L = (g) => {
195
- const j = d.indexOf(g.value), w = st(d);
196
- j === -1 ? w.push(g.value) : w.splice(j, 1), "value" in h || T(w), I == null || I(w.filter((B) => E.includes(B)).sort((B, re) => {
197
- const se = l.findIndex((ee) => ee.value === B), ue = l.findIndex((ee) => ee.value === re);
198
- return se - ue;
199
- }));
200
- }, u = p("checkbox", P), S = `${u}-group`, W = bt(u), [c, z, q] = Ct(u, W), J = ln(h, ["value", "disabled"]), C = a.length ? l.map((g) => /* @__PURE__ */ i.createElement(Ke, {
201
- prefixCls: u,
202
- key: g.value.toString(),
203
- disabled: "disabled" in g ? g.disabled : h.disabled,
204
- value: g.value,
205
- checked: d.includes(g.value),
206
- onChange: g.onChange,
207
- className: A(`${S}-item`, g.className),
208
- style: g.style,
209
- title: g.title,
210
- id: g.id,
211
- required: g.required
212
- }, g.label)) : n, b = i.useMemo(() => ({
213
- toggleOption: L,
214
- value: d,
215
- disabled: h.disabled,
216
- name: h.name,
217
- // https://github.com/ant-design/ant-design/issues/16376
218
- registerValue: H,
219
- cancelValue: R
220
- }), [L, d, h.disabled, h.name, H, R]), K = A(S, {
221
- [`${S}-rtl`]: M === "rtl"
222
- }, O, $, q, W, z);
223
- return c(/* @__PURE__ */ i.createElement("div", Object.assign({
224
- className: K,
225
- style: x
226
- }, J, {
227
- ref: t
228
- }), /* @__PURE__ */ i.createElement(xt.Provider, {
229
- value: b
230
- }, C)));
231
- }), Ge = Ke;
232
- Ge.Group = Mn;
233
- Ge.__ANT_CHECKBOX = !0;
234
- process.env.NODE_ENV !== "production" && (Ge.displayName = "Checkbox");
235
- var Rn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z" } }] }, name: "double-left", theme: "outlined" }, Dn = function(t, o) {
236
- return /* @__PURE__ */ i.createElement(vt, Z({}, t, {
237
- ref: o,
238
- icon: Rn
239
- }));
240
- }, We = /* @__PURE__ */ i.forwardRef(Dn);
241
- process.env.NODE_ENV !== "production" && (We.displayName = "DoubleLeftOutlined");
242
- var Tn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z" } }] }, name: "double-right", theme: "outlined" }, Vn = function(t, o) {
243
- return /* @__PURE__ */ i.createElement(vt, Z({}, t, {
244
- ref: o,
245
- icon: Tn
246
- }));
247
- }, qe = /* @__PURE__ */ i.forwardRef(Vn);
248
- process.env.NODE_ENV !== "production" && (qe.displayName = "DoubleRightOutlined");
249
- var An = {
250
- // Options
251
- items_per_page: "条/页",
252
- jump_to: "跳至",
253
- jump_to_confirm: "确定",
254
- page: "页",
255
- // Pagination
256
- prev_page: "上一页",
257
- next_page: "下一页",
258
- prev_5: "向前 5 页",
259
- next_5: "向后 5 页",
260
- prev_3: "向前 3 页",
261
- next_3: "向后 3 页",
262
- page_size: "页码"
263
- }, Hn = [10, 20, 50, 100], yt = function(t) {
264
- var o = t.pageSizeOptions, n = o === void 0 ? Hn : o, a = t.locale, P = t.changeSize, O = t.pageSize, $ = t.goButton, x = t.quickGo, I = t.rootPrefixCls, h = t.disabled, p = t.buildOptionText, M = t.showSizeChanger, d = t.sizeChangerRender, T = s.useState(""), E = Ce(T, 2), v = E[0], l = E[1], R = function() {
265
- return !v || Number.isNaN(v) ? void 0 : Number(v);
266
- }, H = typeof p == "function" ? p : function(C) {
267
- return "".concat(C, " ").concat(a.items_per_page);
268
- }, L = function(b) {
269
- l(b.target.value);
270
- }, u = function(b) {
271
- $ || v === "" || (l(""), !(b.relatedTarget && (b.relatedTarget.className.indexOf("".concat(I, "-item-link")) >= 0 || b.relatedTarget.className.indexOf("".concat(I, "-item")) >= 0)) && (x == null || x(R())));
272
- }, S = function(b) {
273
- v !== "" && (b.keyCode === Y.ENTER || b.type === "click") && (l(""), x == null || x(R()));
274
- }, W = function() {
275
- return n.some(function(b) {
276
- return b.toString() === O.toString();
277
- }) ? n : n.concat([O]).sort(function(b, K) {
278
- var g = Number.isNaN(Number(b)) ? 0 : Number(b), j = Number.isNaN(Number(K)) ? 0 : Number(K);
279
- return g - j;
280
- });
281
- }, c = "".concat(I, "-options");
282
- if (!M && !x)
283
- return null;
284
- var z = null, q = null, J = null;
285
- return M && d && (z = d({
286
- disabled: h,
287
- size: O,
288
- onSizeChange: function(b) {
289
- P == null || P(Number(b));
290
- },
291
- "aria-label": a.page_size,
292
- className: "".concat(c, "-size-changer"),
293
- options: W().map(function(C) {
294
- return {
295
- label: H(C),
296
- value: C
297
- };
298
- })
299
- })), x && ($ && (J = typeof $ == "boolean" ? /* @__PURE__ */ s.createElement("button", {
300
- type: "button",
301
- onClick: S,
302
- onKeyUp: S,
303
- disabled: h,
304
- className: "".concat(c, "-quick-jumper-button")
305
- }, a.jump_to_confirm) : /* @__PURE__ */ s.createElement("span", {
306
- onClick: S,
307
- onKeyUp: S
308
- }, $)), q = /* @__PURE__ */ s.createElement("div", {
309
- className: "".concat(c, "-quick-jumper")
310
- }, a.jump_to, /* @__PURE__ */ s.createElement("input", {
311
- disabled: h,
312
- type: "text",
313
- value: v,
314
- onChange: L,
315
- onKeyUp: S,
316
- onBlur: u,
317
- "aria-label": a.page
318
- }), a.page, J)), /* @__PURE__ */ s.createElement("li", {
319
- className: c
320
- }, z, q);
321
- };
322
- process.env.NODE_ENV !== "production" && (yt.displayName = "Options");
323
- var ce = function(t) {
324
- var o = t.rootPrefixCls, n = t.page, a = t.active, P = t.className, O = t.showTitle, $ = t.onClick, x = t.onKeyPress, I = t.itemRender, h = "".concat(o, "-item"), p = A(h, "".concat(h, "-").concat(n), G(G({}, "".concat(h, "-active"), a), "".concat(h, "-disabled"), !n), P), M = function() {
325
- $(n);
326
- }, d = function(v) {
327
- x(v, $, n);
328
- }, T = I(n, "page", /* @__PURE__ */ s.createElement("a", {
329
- rel: "nofollow"
330
- }, n));
331
- return T ? /* @__PURE__ */ s.createElement("li", {
332
- title: O ? String(n) : null,
333
- className: p,
334
- onClick: M,
335
- onKeyDown: d,
336
- tabIndex: 0
337
- }, T) : null;
338
- };
339
- process.env.NODE_ENV !== "production" && (ce.displayName = "Pager");
340
- var Ln = function(t, o, n) {
341
- return n;
342
- };
343
- function Ae() {
344
- }
345
- function gt(e) {
346
- var t = Number(e);
347
- return typeof t == "number" && !Number.isNaN(t) && isFinite(t) && Math.floor(t) === t;
348
- }
349
- function ae(e, t, o) {
350
- var n = typeof e > "u" ? t : e;
351
- return Math.floor((o - 1) / n) + 1;
352
- }
353
- var $t = function(t) {
354
- var o = t.prefixCls, n = o === void 0 ? "rc-pagination" : o, a = t.selectPrefixCls, P = a === void 0 ? "rc-select" : a, O = t.className, $ = t.current, x = t.defaultCurrent, I = x === void 0 ? 1 : x, h = t.total, p = h === void 0 ? 0 : h, M = t.pageSize, d = t.defaultPageSize, T = d === void 0 ? 10 : d, E = t.onChange, v = E === void 0 ? Ae : E, l = t.hideOnSinglePage, R = t.align, H = t.showPrevNextJumpers, L = H === void 0 ? !0 : H, u = t.showQuickJumper, S = t.showLessItems, W = t.showTitle, c = W === void 0 ? !0 : W, z = t.onShowSizeChange, q = z === void 0 ? Ae : z, J = t.locale, C = J === void 0 ? An : J, b = t.style, K = t.totalBoundaryShowSizeChanger, g = K === void 0 ? 50 : K, j = t.disabled, w = t.simple, B = t.showTotal, re = t.showSizeChanger, se = re === void 0 ? p > g : re, ue = t.sizeChangerRender, ee = t.pageSizeOptions, Se = t.itemRender, te = Se === void 0 ? Ln : Se, xe = t.jumpPrevIcon, X = t.jumpNextIcon, ne = t.prevIcon, de = t.nextIcon, me = s.useRef(null), ie = Le(10, {
355
- value: M,
356
- defaultValue: T
357
- }), ye = Ce(ie, 2), D = ye[0], $e = ye[1], Be = Le(1, {
358
- value: $,
359
- defaultValue: I,
360
- postState: function(f) {
361
- return Math.max(1, Math.min(f, ae(void 0, D, p)));
362
- }
363
- }), oe = Ce(Be, 2), m = oe[0], U = oe[1], Me = s.useState(m), Je = Ce(Me, 2), le = Je[0], Ne = Je[1];
364
- kt(function() {
365
- Ne(m);
366
- }, [m]);
367
- var zt = v !== Ae, Pt = "current" in t;
368
- process.env.NODE_ENV !== "production" && Ut(Pt ? zt : !0, "You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");
369
- var Xe = Math.max(1, m - (S ? 3 : 5)), Fe = Math.min(ae(void 0, D, p), m + (S ? 3 : 5));
370
- function Ee(r, f) {
371
- var N = r || /* @__PURE__ */ s.createElement("button", {
372
- type: "button",
373
- "aria-label": f,
374
- className: "".concat(n, "-item-link")
375
- });
376
- return typeof r == "function" && (N = /* @__PURE__ */ s.createElement(r, He({}, t))), N;
377
- }
378
- function Ue(r) {
379
- var f = r.target.value, N = ae(void 0, D, p), k;
380
- return f === "" ? k = f : Number.isNaN(Number(f)) ? k = le : f >= N ? k = N : k = Number(f), k;
381
- }
382
- function Ot(r) {
383
- return gt(r) && r !== m && gt(p) && p > 0;
384
- }
385
- var It = p > D ? u : !1;
386
- function wt(r) {
387
- (r.keyCode === Y.UP || r.keyCode === Y.DOWN) && r.preventDefault();
388
- }
389
- function Qe(r) {
390
- var f = Ue(r);
391
- switch (f !== le && Ne(f), r.keyCode) {
392
- case Y.ENTER:
393
- F(f);
394
- break;
395
- case Y.UP:
396
- F(f - 1);
397
- break;
398
- case Y.DOWN:
399
- F(f + 1);
400
- break;
401
- }
402
- }
403
- function _t(r) {
404
- F(Ue(r));
405
- }
406
- function jt(r) {
407
- var f = ae(r, D, p), N = m > f && f !== 0 ? f : m;
408
- $e(r), Ne(N), q == null || q(m, r), U(N), v == null || v(N, r);
409
- }
410
- function F(r) {
411
- if (Ot(r) && !j) {
412
- var f = ae(void 0, D, p), N = r;
413
- return r > f ? N = f : r < 1 && (N = 1), N !== le && Ne(N), U(N), v == null || v(N, D), N;
414
- }
415
- return m;
416
- }
417
- var ze = m > 1, Pe = m < ae(void 0, D, p);
418
- function Ye() {
419
- ze && F(m - 1);
420
- }
421
- function Ze() {
422
- Pe && F(m + 1);
423
- }
424
- function ke() {
425
- F(Xe);
426
- }
427
- function et() {
428
- F(Fe);
429
- }
430
- function ge(r, f) {
431
- if (r.key === "Enter" || r.charCode === Y.ENTER || r.keyCode === Y.ENTER) {
432
- for (var N = arguments.length, k = new Array(N > 2 ? N - 2 : 0), je = 2; je < N; je++)
433
- k[je - 2] = arguments[je];
434
- f.apply(void 0, k);
435
- }
436
- }
437
- function Bt(r) {
438
- ge(r, Ye);
439
- }
440
- function Mt(r) {
441
- ge(r, Ze);
442
- }
443
- function Rt(r) {
444
- ge(r, ke);
445
- }
446
- function Dt(r) {
447
- ge(r, et);
448
- }
449
- function Tt(r) {
450
- var f = te(r, "prev", Ee(ne, "prev page"));
451
- return /* @__PURE__ */ s.isValidElement(f) ? /* @__PURE__ */ s.cloneElement(f, {
452
- disabled: !ze
453
- }) : f;
454
- }
455
- function Vt(r) {
456
- var f = te(r, "next", Ee(de, "next page"));
457
- return /* @__PURE__ */ s.isValidElement(f) ? /* @__PURE__ */ s.cloneElement(f, {
458
- disabled: !Pe
459
- }) : f;
460
- }
461
- function Oe(r) {
462
- (r.type === "click" || r.keyCode === Y.ENTER) && F(le);
463
- }
464
- var tt = null, At = cn(t, {
465
- aria: !0,
466
- data: !0
467
- }), Ht = B && /* @__PURE__ */ s.createElement("li", {
468
- className: "".concat(n, "-total-text")
469
- }, B(p, [p === 0 ? 0 : (m - 1) * D + 1, m * D > p ? p : m * D])), nt = null, _ = ae(void 0, D, p);
470
- if (l && p <= D)
471
- return null;
472
- var V = [], pe = {
473
- rootPrefixCls: n,
474
- onClick: F,
475
- onKeyPress: ge,
476
- showTitle: c,
477
- itemRender: te,
478
- page: -1
479
- }, Lt = m - 1 > 0 ? m - 1 : 0, Wt = m + 1 < _ ? m + 1 : _, Ie = u && u.goButton, qt = Qt(w) === "object" ? w.readOnly : !w, ve = Ie, it = null;
480
- w && (Ie && (typeof Ie == "boolean" ? ve = /* @__PURE__ */ s.createElement("button", {
481
- type: "button",
482
- onClick: Oe,
483
- onKeyUp: Oe
484
- }, C.jump_to_confirm) : ve = /* @__PURE__ */ s.createElement("span", {
485
- onClick: Oe,
486
- onKeyUp: Oe
487
- }, Ie), ve = /* @__PURE__ */ s.createElement("li", {
488
- title: c ? "".concat(C.jump_to).concat(m, "/").concat(_) : null,
489
- className: "".concat(n, "-simple-pager")
490
- }, ve)), it = /* @__PURE__ */ s.createElement("li", {
491
- title: c ? "".concat(m, "/").concat(_) : null,
492
- className: "".concat(n, "-simple-pager")
493
- }, qt ? le : /* @__PURE__ */ s.createElement("input", {
494
- type: "text",
495
- "aria-label": C.jump_to,
496
- value: le,
497
- disabled: j,
498
- onKeyDown: wt,
499
- onKeyUp: Qe,
500
- onChange: Qe,
501
- onBlur: _t,
502
- size: 3
503
- }), /* @__PURE__ */ s.createElement("span", {
504
- className: "".concat(n, "-slash")
505
- }, "/"), _));
506
- var Q = S ? 1 : 2;
507
- if (_ <= 3 + Q * 2) {
508
- _ || V.push(/* @__PURE__ */ s.createElement(ce, Z({}, pe, {
509
- key: "noPager",
510
- page: 1,
511
- className: "".concat(n, "-item-disabled")
512
- })));
513
- for (var fe = 1; fe <= _; fe += 1)
514
- V.push(/* @__PURE__ */ s.createElement(ce, Z({}, pe, {
515
- key: fe,
516
- page: fe,
517
- active: m === fe
518
- })));
519
- } else {
520
- var Kt = S ? C.prev_3 : C.prev_5, Gt = S ? C.next_3 : C.next_5, at = te(Xe, "jump-prev", Ee(xe, "prev page")), rt = te(Fe, "jump-next", Ee(X, "next page"));
521
- L && (tt = at ? /* @__PURE__ */ s.createElement("li", {
522
- title: c ? Kt : null,
523
- key: "prev",
524
- onClick: ke,
525
- tabIndex: 0,
526
- onKeyDown: Rt,
527
- className: A("".concat(n, "-jump-prev"), G({}, "".concat(n, "-jump-prev-custom-icon"), !!xe))
528
- }, at) : null, nt = rt ? /* @__PURE__ */ s.createElement("li", {
529
- title: c ? Gt : null,
530
- key: "next",
531
- onClick: et,
532
- tabIndex: 0,
533
- onKeyDown: Dt,
534
- className: A("".concat(n, "-jump-next"), G({}, "".concat(n, "-jump-next-custom-icon"), !!X))
535
- }, rt) : null);
536
- var Re = Math.max(1, m - Q), De = Math.min(m + Q, _);
537
- m - 1 <= Q && (De = 1 + Q * 2), _ - m <= Q && (Re = _ - Q * 2);
538
- for (var he = Re; he <= De; he += 1)
539
- V.push(/* @__PURE__ */ s.createElement(ce, Z({}, pe, {
540
- key: he,
541
- page: he,
542
- active: m === he
543
- })));
544
- if (m - 1 >= Q * 2 && m !== 3 && (V[0] = /* @__PURE__ */ s.cloneElement(V[0], {
545
- className: A("".concat(n, "-item-after-jump-prev"), V[0].props.className)
546
- }), V.unshift(tt)), _ - m >= Q * 2 && m !== _ - 2) {
547
- var ot = V[V.length - 1];
548
- V[V.length - 1] = /* @__PURE__ */ s.cloneElement(ot, {
549
- className: A("".concat(n, "-item-before-jump-next"), ot.props.className)
550
- }), V.push(nt);
551
- }
552
- Re !== 1 && V.unshift(/* @__PURE__ */ s.createElement(ce, Z({}, pe, {
553
- key: 1,
554
- page: 1
555
- }))), De !== _ && V.push(/* @__PURE__ */ s.createElement(ce, Z({}, pe, {
556
- key: _,
557
- page: _
558
- })));
559
- }
560
- var we = Tt(Lt);
561
- if (we) {
562
- var Te = !ze || !_;
563
- we = /* @__PURE__ */ s.createElement("li", {
564
- title: c ? C.prev_page : null,
565
- onClick: Ye,
566
- tabIndex: Te ? null : 0,
567
- onKeyDown: Bt,
568
- className: A("".concat(n, "-prev"), G({}, "".concat(n, "-disabled"), Te)),
569
- "aria-disabled": Te
570
- }, we);
571
- }
572
- var _e = Vt(Wt);
573
- if (_e) {
574
- var be, Ve;
575
- w ? (be = !Pe, Ve = ze ? 0 : null) : (be = !Pe || !_, Ve = be ? null : 0), _e = /* @__PURE__ */ s.createElement("li", {
576
- title: c ? C.next_page : null,
577
- onClick: Ze,
578
- tabIndex: Ve,
579
- onKeyDown: Mt,
580
- className: A("".concat(n, "-next"), G({}, "".concat(n, "-disabled"), be)),
581
- "aria-disabled": be
582
- }, _e);
583
- }
584
- var Jt = A(n, O, G(G(G(G(G({}, "".concat(n, "-start"), R === "start"), "".concat(n, "-center"), R === "center"), "".concat(n, "-end"), R === "end"), "".concat(n, "-simple"), w), "".concat(n, "-disabled"), j));
585
- return /* @__PURE__ */ s.createElement("ul", Z({
586
- className: Jt,
587
- style: b,
588
- ref: me
589
- }, At), Ht, we, w ? it : V, _e, /* @__PURE__ */ s.createElement(yt, {
590
- locale: C,
591
- rootPrefixCls: n,
592
- disabled: j,
593
- selectPrefixCls: P,
594
- changeSize: jt,
595
- pageSize: D,
596
- pageSizeOptions: ee,
597
- quickGo: It ? F : null,
598
- goButton: ve,
599
- showSizeChanger: se,
600
- sizeChangerRender: ue
601
- }));
602
- };
603
- process.env.NODE_ENV !== "production" && ($t.displayName = "Pagination");
604
- const Wn = (e) => {
605
- const {
606
- componentCls: t
607
- } = e;
608
- return {
609
- [`${t}-disabled`]: {
610
- "&, &:hover": {
611
- cursor: "not-allowed",
612
- [`${t}-item-link`]: {
613
- color: e.colorTextDisabled,
614
- cursor: "not-allowed"
615
- }
616
- },
617
- "&:focus-visible": {
618
- cursor: "not-allowed",
619
- [`${t}-item-link`]: {
620
- color: e.colorTextDisabled,
621
- cursor: "not-allowed"
622
- }
623
- }
624
- },
625
- [`&${t}-disabled`]: {
626
- cursor: "not-allowed",
627
- [`${t}-item`]: {
628
- cursor: "not-allowed",
629
- backgroundColor: "transparent",
630
- "&:hover, &:active": {
631
- backgroundColor: "transparent"
632
- },
633
- a: {
634
- color: e.colorTextDisabled,
635
- backgroundColor: "transparent",
636
- border: "none",
637
- cursor: "not-allowed"
638
- },
639
- "&-active": {
640
- borderColor: e.colorBorder,
641
- backgroundColor: e.itemActiveBgDisabled,
642
- "&:hover, &:active": {
643
- backgroundColor: e.itemActiveBgDisabled
644
- },
645
- a: {
646
- color: e.itemActiveColorDisabled
647
- }
648
- }
649
- },
650
- [`${t}-item-link`]: {
651
- color: e.colorTextDisabled,
652
- cursor: "not-allowed",
653
- "&:hover, &:active": {
654
- backgroundColor: "transparent"
655
- },
656
- [`${t}-simple&`]: {
657
- backgroundColor: "transparent",
658
- "&:hover, &:active": {
659
- backgroundColor: "transparent"
660
- }
661
- }
662
- },
663
- [`${t}-simple-pager`]: {
664
- color: e.colorTextDisabled
665
- },
666
- [`${t}-jump-prev, ${t}-jump-next`]: {
667
- [`${t}-item-link-icon`]: {
668
- opacity: 0
669
- },
670
- [`${t}-item-ellipsis`]: {
671
- opacity: 1
672
- }
673
- }
674
- }
675
- };
676
- }, qn = (e) => {
677
- const {
678
- componentCls: t
679
- } = e;
680
- return {
681
- [`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]: {
682
- height: e.itemSizeSM,
683
- lineHeight: y(e.itemSizeSM)
684
- },
685
- [`&${t}-mini ${t}-item`]: {
686
- minWidth: e.itemSizeSM,
687
- height: e.itemSizeSM,
688
- margin: 0,
689
- lineHeight: y(e.calc(e.itemSizeSM).sub(2).equal())
690
- },
691
- [`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]: {
692
- minWidth: e.itemSizeSM,
693
- height: e.itemSizeSM,
694
- margin: 0,
695
- lineHeight: y(e.itemSizeSM)
696
- },
697
- [`&${t}-mini:not(${t}-disabled)`]: {
698
- [`${t}-prev, ${t}-next`]: {
699
- [`&:hover ${t}-item-link`]: {
700
- backgroundColor: e.colorBgTextHover
701
- },
702
- [`&:active ${t}-item-link`]: {
703
- backgroundColor: e.colorBgTextActive
704
- },
705
- [`&${t}-disabled:hover ${t}-item-link`]: {
706
- backgroundColor: "transparent"
707
- }
708
- }
709
- },
710
- [`
711
- &${t}-mini ${t}-prev ${t}-item-link,
712
- &${t}-mini ${t}-next ${t}-item-link
713
- `]: {
714
- backgroundColor: "transparent",
715
- borderColor: "transparent",
716
- "&::after": {
717
- height: e.itemSizeSM,
718
- lineHeight: y(e.itemSizeSM)
719
- }
720
- },
721
- [`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]: {
722
- height: e.itemSizeSM,
723
- marginInlineEnd: 0,
724
- lineHeight: y(e.itemSizeSM)
725
- },
726
- [`&${t}-mini ${t}-options`]: {
727
- marginInlineStart: e.paginationMiniOptionsMarginInlineStart,
728
- "&-size-changer": {
729
- top: e.miniOptionsSizeChangerTop
730
- },
731
- "&-quick-jumper": {
732
- height: e.itemSizeSM,
733
- lineHeight: y(e.itemSizeSM),
734
- input: Object.assign(Object.assign({}, Nn(e)), {
735
- width: e.paginationMiniQuickJumperInputWidth,
736
- height: e.controlHeightSM
737
- })
738
- }
739
- }
740
- };
741
- }, Kn = (e) => {
742
- const {
743
- componentCls: t
744
- } = e;
745
- return {
746
- [`&${t}-simple`]: {
747
- [`${t}-prev, ${t}-next`]: {
748
- height: e.itemSize,
749
- lineHeight: y(e.itemSize),
750
- verticalAlign: "top",
751
- [`${t}-item-link`]: {
752
- height: e.itemSize,
753
- backgroundColor: "transparent",
754
- border: 0,
755
- "&:hover": {
756
- backgroundColor: e.colorBgTextHover
757
- },
758
- "&:active": {
759
- backgroundColor: e.colorBgTextActive
760
- },
761
- "&::after": {
762
- height: e.itemSize,
763
- lineHeight: y(e.itemSize)
764
- }
765
- }
766
- },
767
- [`${t}-simple-pager`]: {
768
- display: "inline-flex",
769
- alignItems: "center",
770
- height: e.itemSize,
771
- marginInlineEnd: e.marginXS,
772
- input: {
773
- boxSizing: "border-box",
774
- height: "100%",
775
- width: e.quickJumperInputWidth,
776
- padding: `0 ${y(e.paginationItemPaddingInline)}`,
777
- textAlign: "center",
778
- backgroundColor: e.itemInputBg,
779
- border: `${y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
780
- borderRadius: e.borderRadius,
781
- outline: "none",
782
- transition: `border-color ${e.motionDurationMid}`,
783
- color: "inherit",
784
- "&:hover": {
785
- borderColor: e.colorPrimary
786
- },
787
- "&:focus": {
788
- borderColor: e.colorPrimaryHover,
789
- boxShadow: `${y(e.inputOutlineOffset)} 0 ${y(e.controlOutlineWidth)} ${e.controlOutline}`
790
- },
791
- "&[disabled]": {
792
- color: e.colorTextDisabled,
793
- backgroundColor: e.colorBgContainerDisabled,
794
- borderColor: e.colorBorder,
795
- cursor: "not-allowed"
796
- }
797
- }
798
- },
799
- [`&${t}-disabled`]: {
800
- [`${t}-prev, ${t}-next`]: {
801
- [`${t}-item-link`]: {
802
- "&:hover, &:active": {
803
- backgroundColor: "transparent"
804
- }
805
- }
806
- }
807
- },
808
- [`&${t}-mini`]: {
809
- [`${t}-prev, ${t}-next`]: {
810
- height: e.itemSizeSM,
811
- lineHeight: y(e.itemSizeSM),
812
- [`${t}-item-link`]: {
813
- height: e.itemSizeSM,
814
- "&::after": {
815
- height: e.itemSizeSM,
816
- lineHeight: y(e.itemSizeSM)
817
- }
818
- }
819
- },
820
- [`${t}-simple-pager`]: {
821
- height: e.itemSizeSM,
822
- input: {
823
- width: e.paginationMiniQuickJumperInputWidth
824
- }
825
- }
826
- }
827
- }
828
- };
829
- }, Gn = (e) => {
830
- const {
831
- componentCls: t
832
- } = e;
833
- return {
834
- [`${t}-jump-prev, ${t}-jump-next`]: {
835
- outline: 0,
836
- [`${t}-item-container`]: {
837
- position: "relative",
838
- [`${t}-item-link-icon`]: {
839
- color: e.colorPrimary,
840
- fontSize: e.fontSizeSM,
841
- opacity: 0,
842
- transition: `all ${e.motionDurationMid}`,
843
- "&-svg": {
844
- top: 0,
845
- insetInlineEnd: 0,
846
- bottom: 0,
847
- insetInlineStart: 0,
848
- margin: "auto"
849
- }
850
- },
851
- [`${t}-item-ellipsis`]: {
852
- position: "absolute",
853
- top: 0,
854
- insetInlineEnd: 0,
855
- bottom: 0,
856
- insetInlineStart: 0,
857
- display: "block",
858
- margin: "auto",
859
- color: e.colorTextDisabled,
860
- letterSpacing: e.paginationEllipsisLetterSpacing,
861
- textAlign: "center",
862
- textIndent: e.paginationEllipsisTextIndent,
863
- opacity: 1,
864
- transition: `all ${e.motionDurationMid}`
865
- }
866
- },
867
- "&:hover": {
868
- [`${t}-item-link-icon`]: {
869
- opacity: 1
870
- },
871
- [`${t}-item-ellipsis`]: {
872
- opacity: 0
873
- }
874
- }
875
- },
876
- [`
877
- ${t}-prev,
878
- ${t}-jump-prev,
879
- ${t}-jump-next
880
- `]: {
881
- marginInlineEnd: e.marginXS
882
- },
883
- [`
884
- ${t}-prev,
885
- ${t}-next,
886
- ${t}-jump-prev,
887
- ${t}-jump-next
888
- `]: {
889
- display: "inline-block",
890
- minWidth: e.itemSize,
891
- height: e.itemSize,
892
- color: e.colorText,
893
- fontFamily: e.fontFamily,
894
- lineHeight: y(e.itemSize),
895
- textAlign: "center",
896
- verticalAlign: "middle",
897
- listStyle: "none",
898
- borderRadius: e.borderRadius,
899
- cursor: "pointer",
900
- transition: `all ${e.motionDurationMid}`
901
- },
902
- [`${t}-prev, ${t}-next`]: {
903
- outline: 0,
904
- button: {
905
- color: e.colorText,
906
- cursor: "pointer",
907
- userSelect: "none"
908
- },
909
- [`${t}-item-link`]: {
910
- display: "block",
911
- width: "100%",
912
- height: "100%",
913
- padding: 0,
914
- fontSize: e.fontSizeSM,
915
- textAlign: "center",
916
- backgroundColor: "transparent",
917
- border: `${y(e.lineWidth)} ${e.lineType} transparent`,
918
- borderRadius: e.borderRadius,
919
- outline: "none",
920
- transition: `all ${e.motionDurationMid}`
921
- },
922
- [`&:hover ${t}-item-link`]: {
923
- backgroundColor: e.colorBgTextHover
924
- },
925
- [`&:active ${t}-item-link`]: {
926
- backgroundColor: e.colorBgTextActive
927
- },
928
- [`&${t}-disabled:hover`]: {
929
- [`${t}-item-link`]: {
930
- backgroundColor: "transparent"
931
- }
932
- }
933
- },
934
- [`${t}-slash`]: {
935
- marginInlineEnd: e.paginationSlashMarginInlineEnd,
936
- marginInlineStart: e.paginationSlashMarginInlineStart
937
- },
938
- [`${t}-options`]: {
939
- display: "inline-block",
940
- marginInlineStart: e.margin,
941
- verticalAlign: "middle",
942
- "&-size-changer": {
943
- display: "inline-block",
944
- width: "auto"
945
- },
946
- "&-quick-jumper": {
947
- display: "inline-block",
948
- height: e.controlHeight,
949
- marginInlineStart: e.marginXS,
950
- lineHeight: y(e.controlHeight),
951
- verticalAlign: "top",
952
- input: Object.assign(Object.assign(Object.assign({}, xn(e)), yn(e, {
953
- borderColor: e.colorBorder,
954
- hoverBorderColor: e.colorPrimaryHover,
955
- activeBorderColor: e.colorPrimary,
956
- activeShadow: e.activeShadow
957
- })), {
958
- "&[disabled]": Object.assign({}, $n(e)),
959
- width: e.quickJumperInputWidth,
960
- height: e.controlHeight,
961
- boxSizing: "border-box",
962
- margin: 0,
963
- marginInlineStart: e.marginXS,
964
- marginInlineEnd: e.marginXS
965
- })
966
- }
967
- }
968
- };
969
- }, Jn = (e) => {
970
- const {
971
- componentCls: t
972
- } = e;
973
- return {
974
- [`${t}-item`]: {
975
- display: "inline-block",
976
- minWidth: e.itemSize,
977
- height: e.itemSize,
978
- marginInlineEnd: e.marginXS,
979
- fontFamily: e.fontFamily,
980
- lineHeight: y(e.calc(e.itemSize).sub(2).equal()),
981
- textAlign: "center",
982
- verticalAlign: "middle",
983
- listStyle: "none",
984
- backgroundColor: e.itemBg,
985
- border: `${y(e.lineWidth)} ${e.lineType} transparent`,
986
- borderRadius: e.borderRadius,
987
- outline: 0,
988
- cursor: "pointer",
989
- userSelect: "none",
990
- a: {
991
- display: "block",
992
- padding: `0 ${y(e.paginationItemPaddingInline)}`,
993
- color: e.colorText,
994
- "&:hover": {
995
- textDecoration: "none"
996
- }
997
- },
998
- [`&:not(${t}-item-active)`]: {
999
- "&:hover": {
1000
- transition: `all ${e.motionDurationMid}`,
1001
- backgroundColor: e.colorBgTextHover
1002
- },
1003
- "&:active": {
1004
- backgroundColor: e.colorBgTextActive
1005
- }
1006
- },
1007
- "&-active": {
1008
- fontWeight: e.fontWeightStrong,
1009
- backgroundColor: e.itemActiveBg,
1010
- borderColor: e.colorPrimary,
1011
- a: {
1012
- color: e.itemActiveColor
1013
- },
1014
- "&:hover": {
1015
- borderColor: e.colorPrimaryHover
1016
- },
1017
- "&:hover a": {
1018
- color: e.itemActiveColorHover
1019
- }
1020
- }
1021
- }
1022
- };
1023
- }, Xn = (e) => {
1024
- const {
1025
- componentCls: t
1026
- } = e;
1027
- return {
1028
- [t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, dn(e)), {
1029
- display: "flex",
1030
- flexWrap: "wrap",
1031
- rowGap: e.paddingXS,
1032
- "&-start": {
1033
- justifyContent: "start"
1034
- },
1035
- "&-center": {
1036
- justifyContent: "center"
1037
- },
1038
- "&-end": {
1039
- justifyContent: "end"
1040
- },
1041
- "ul, ol": {
1042
- margin: 0,
1043
- padding: 0,
1044
- listStyle: "none"
1045
- },
1046
- "&::after": {
1047
- display: "block",
1048
- clear: "both",
1049
- height: 0,
1050
- overflow: "hidden",
1051
- visibility: "hidden",
1052
- content: '""'
1053
- },
1054
- [`${t}-total-text`]: {
1055
- display: "inline-block",
1056
- height: e.itemSize,
1057
- marginInlineEnd: e.marginXS,
1058
- lineHeight: y(e.calc(e.itemSize).sub(2).equal()),
1059
- verticalAlign: "middle"
1060
- }
1061
- }), Jn(e)), Gn(e)), Kn(e)), qn(e)), Wn(e)), {
1062
- // media query style
1063
- [`@media only screen and (max-width: ${e.screenLG}px)`]: {
1064
- [`${t}-item`]: {
1065
- "&-after-jump-prev, &-before-jump-next": {
1066
- display: "none"
1067
- }
1068
- }
1069
- },
1070
- [`@media only screen and (max-width: ${e.screenSM}px)`]: {
1071
- [`${t}-options`]: {
1072
- display: "none"
1073
- }
1074
- }
1075
- }),
1076
- // rtl style
1077
- [`&${e.componentCls}-rtl`]: {
1078
- direction: "rtl"
1079
- }
1080
- };
1081
- }, Fn = (e) => {
1082
- const {
1083
- componentCls: t
1084
- } = e;
1085
- return {
1086
- [`${t}:not(${t}-disabled)`]: {
1087
- [`${t}-item`]: Object.assign({}, mn(e)),
1088
- [`${t}-jump-prev, ${t}-jump-next`]: {
1089
- "&:focus-visible": Object.assign({
1090
- [`${t}-item-link-icon`]: {
1091
- opacity: 1
1092
- },
1093
- [`${t}-item-ellipsis`]: {
1094
- opacity: 0
1095
- }
1096
- }, ut(e))
1097
- },
1098
- [`${t}-prev, ${t}-next`]: {
1099
- [`&:focus-visible ${t}-item-link`]: ut(e)
1100
- }
1101
- }
1102
- };
1103
- }, Nt = (e) => Object.assign({
1104
- itemBg: e.colorBgContainer,
1105
- itemSize: e.controlHeight,
1106
- itemSizeSM: e.controlHeightSM,
1107
- itemActiveBg: e.colorBgContainer,
1108
- itemActiveColor: e.colorPrimary,
1109
- itemActiveColorHover: e.colorPrimaryHover,
1110
- itemLinkBg: e.colorBgContainer,
1111
- itemActiveColorDisabled: e.colorTextDisabled,
1112
- itemActiveBgDisabled: e.controlItemBgActiveDisabled,
1113
- itemInputBg: e.colorBgContainer,
1114
- miniOptionsSizeChangerTop: 0
1115
- }, Cn(e)), Et = (e) => un(e, {
1116
- inputOutlineOffset: 0,
1117
- quickJumperInputWidth: e.calc(e.controlHeightLG).mul(1.25).equal(),
1118
- paginationMiniOptionsMarginInlineStart: e.calc(e.marginXXS).div(2).equal(),
1119
- paginationMiniQuickJumperInputWidth: e.calc(e.controlHeightLG).mul(1.1).equal(),
1120
- paginationItemPaddingInline: e.calc(e.marginXXS).mul(1.5).equal(),
1121
- paginationEllipsisLetterSpacing: e.calc(e.marginXXS).div(2).equal(),
1122
- paginationSlashMarginInlineStart: e.marginSM,
1123
- paginationSlashMarginInlineEnd: e.marginSM,
1124
- paginationEllipsisTextIndent: "0.13em"
1125
- // magic for ui experience
1126
- }, Sn(e)), Un = sn("Pagination", (e) => {
1127
- const t = Et(e);
1128
- return [Xn(t), Fn(t)];
1129
- }, Nt), Qn = (e) => {
1130
- const {
1131
- componentCls: t
1132
- } = e;
1133
- return {
1134
- [`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]: {
1135
- "&, &:hover": {
1136
- [`${t}-item-link`]: {
1137
- borderColor: e.colorBorder
1138
- }
1139
- },
1140
- "&:focus-visible": {
1141
- [`${t}-item-link`]: {
1142
- borderColor: e.colorBorder
1143
- }
1144
- },
1145
- [`${t}-item, ${t}-item-link`]: {
1146
- backgroundColor: e.colorBgContainerDisabled,
1147
- borderColor: e.colorBorder,
1148
- [`&:hover:not(${t}-item-active)`]: {
1149
- backgroundColor: e.colorBgContainerDisabled,
1150
- borderColor: e.colorBorder,
1151
- a: {
1152
- color: e.colorTextDisabled
1153
- }
1154
- },
1155
- [`&${t}-item-active`]: {
1156
- backgroundColor: e.itemActiveBgDisabled
1157
- }
1158
- },
1159
- [`${t}-prev, ${t}-next`]: {
1160
- "&:hover button": {
1161
- backgroundColor: e.colorBgContainerDisabled,
1162
- borderColor: e.colorBorder,
1163
- color: e.colorTextDisabled
1164
- },
1165
- [`${t}-item-link`]: {
1166
- backgroundColor: e.colorBgContainerDisabled,
1167
- borderColor: e.colorBorder
1168
- }
1169
- }
1170
- },
1171
- [`${t}${t}-bordered:not(${t}-mini)`]: {
1172
- [`${t}-prev, ${t}-next`]: {
1173
- "&:hover button": {
1174
- borderColor: e.colorPrimaryHover,
1175
- backgroundColor: e.itemBg
1176
- },
1177
- [`${t}-item-link`]: {
1178
- backgroundColor: e.itemLinkBg,
1179
- borderColor: e.colorBorder
1180
- },
1181
- [`&:hover ${t}-item-link`]: {
1182
- borderColor: e.colorPrimary,
1183
- backgroundColor: e.itemBg,
1184
- color: e.colorPrimary
1185
- },
1186
- [`&${t}-disabled`]: {
1187
- [`${t}-item-link`]: {
1188
- borderColor: e.colorBorder,
1189
- color: e.colorTextDisabled
1190
- }
1191
- }
1192
- },
1193
- [`${t}-item`]: {
1194
- backgroundColor: e.itemBg,
1195
- border: `${y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
1196
- [`&:hover:not(${t}-item-active)`]: {
1197
- borderColor: e.colorPrimary,
1198
- backgroundColor: e.itemBg,
1199
- a: {
1200
- color: e.colorPrimary
1201
- }
1202
- },
1203
- "&-active": {
1204
- borderColor: e.colorPrimary
1205
- }
1206
- }
1207
- }
1208
- };
1209
- }, Yn = gn(["Pagination", "bordered"], (e) => {
1210
- const t = Et(e);
1211
- return Qn(t);
1212
- }, Nt);
1213
- function pt(e) {
1214
- return en(() => typeof e == "boolean" ? [e, {}] : e && typeof e == "object" ? [!0, e] : [void 0, void 0], [e]);
1215
- }
1216
- var Zn = function(e, t) {
1217
- var o = {};
1218
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
1219
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
1220
- t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (o[n[a]] = e[n[a]]);
1221
- return o;
1222
- };
1223
- const kn = (e) => {
1224
- const {
1225
- align: t,
1226
- prefixCls: o,
1227
- selectPrefixCls: n,
1228
- className: a,
1229
- rootClassName: P,
1230
- style: O,
1231
- size: $,
1232
- locale: x,
1233
- responsive: I,
1234
- showSizeChanger: h,
1235
- selectComponentClass: p,
1236
- pageSizeOptions: M
1237
- } = e, d = Zn(e, ["align", "prefixCls", "selectPrefixCls", "className", "rootClassName", "style", "size", "locale", "responsive", "showSizeChanger", "selectComponentClass", "pageSizeOptions"]), {
1238
- xs: T
1239
- } = En(I), [, E] = pn(), {
1240
- getPrefixCls: v,
1241
- direction: l,
1242
- showSizeChanger: R,
1243
- className: H,
1244
- style: L
1245
- } = vn("pagination"), u = v("pagination", o), [S, W, c] = Un(u), z = fn($), q = z === "small" || !!(T && !z && I), [J] = hn("Pagination", bn), C = Object.assign(Object.assign({}, J), x), [b, K] = pt(h), [g, j] = pt(R), w = b ?? g, B = K ?? j, re = p || zn, se = i.useMemo(() => M ? M.map((X) => Number(X)) : void 0, [M]), ue = (X) => {
1246
- var ne;
1247
- const {
1248
- disabled: de,
1249
- size: me,
1250
- onSizeChange: ie,
1251
- "aria-label": ye,
1252
- className: D,
1253
- options: $e
1254
- } = X, {
1255
- className: Be,
1256
- onChange: oe
1257
- } = B || {}, m = (ne = $e.find((U) => String(U.value) === String(me))) === null || ne === void 0 ? void 0 : ne.value;
1258
- return /* @__PURE__ */ i.createElement(re, Object.assign({
1259
- disabled: de,
1260
- showSearch: !0,
1261
- popupMatchSelectWidth: !1,
1262
- getPopupContainer: (U) => U.parentNode,
1263
- "aria-label": ye,
1264
- options: $e
1265
- }, B, {
1266
- value: m,
1267
- onChange: (U, Me) => {
1268
- ie == null || ie(U), oe == null || oe(U, Me);
1269
- },
1270
- size: q ? "small" : "middle",
1271
- className: A(D, Be)
1272
- }));
1273
- };
1274
- if (process.env.NODE_ENV !== "production") {
1275
- const X = ht("Pagination");
1276
- process.env.NODE_ENV !== "production" && X(!p, "usage", "`selectComponentClass` is not official api which will be removed.");
1277
- }
1278
- const ee = i.useMemo(() => {
1279
- const X = /* @__PURE__ */ i.createElement("span", {
1280
- className: `${u}-item-ellipsis`
1281
- }, "•••"), ne = /* @__PURE__ */ i.createElement("button", {
1282
- className: `${u}-item-link`,
1283
- type: "button",
1284
- tabIndex: -1
1285
- }, l === "rtl" ? /* @__PURE__ */ i.createElement(mt, null) : /* @__PURE__ */ i.createElement(dt, null)), de = /* @__PURE__ */ i.createElement("button", {
1286
- className: `${u}-item-link`,
1287
- type: "button",
1288
- tabIndex: -1
1289
- }, l === "rtl" ? /* @__PURE__ */ i.createElement(dt, null) : /* @__PURE__ */ i.createElement(mt, null)), me = (
1290
- // biome-ignore lint/a11y/useValidAnchor: it is hard to refactor
1291
- /* @__PURE__ */ i.createElement("a", {
1292
- className: `${u}-item-link`
1293
- }, /* @__PURE__ */ i.createElement("div", {
1294
- className: `${u}-item-container`
1295
- }, l === "rtl" ? /* @__PURE__ */ i.createElement(qe, {
1296
- className: `${u}-item-link-icon`
1297
- }) : /* @__PURE__ */ i.createElement(We, {
1298
- className: `${u}-item-link-icon`
1299
- }), X))
1300
- ), ie = (
1301
- // biome-ignore lint/a11y/useValidAnchor: it is hard to refactor
1302
- /* @__PURE__ */ i.createElement("a", {
1303
- className: `${u}-item-link`
1304
- }, /* @__PURE__ */ i.createElement("div", {
1305
- className: `${u}-item-container`
1306
- }, l === "rtl" ? /* @__PURE__ */ i.createElement(We, {
1307
- className: `${u}-item-link-icon`
1308
- }) : /* @__PURE__ */ i.createElement(qe, {
1309
- className: `${u}-item-link-icon`
1310
- }), X))
1311
- );
1312
- return {
1313
- prevIcon: ne,
1314
- nextIcon: de,
1315
- jumpPrevIcon: me,
1316
- jumpNextIcon: ie
1317
- };
1318
- }, [l, u]), Se = v("select", n), te = A({
1319
- [`${u}-${t}`]: !!t,
1320
- [`${u}-mini`]: q,
1321
- [`${u}-rtl`]: l === "rtl",
1322
- [`${u}-bordered`]: E.wireframe
1323
- }, H, a, P, W, c), xe = Object.assign(Object.assign({}, L), O);
1324
- return S(/* @__PURE__ */ i.createElement(i.Fragment, null, E.wireframe && /* @__PURE__ */ i.createElement(Yn, {
1325
- prefixCls: u
1326
- }), /* @__PURE__ */ i.createElement($t, Object.assign({}, ee, d, {
1327
- style: xe,
1328
- prefixCls: u,
1329
- selectPrefixCls: Se,
1330
- className: te,
1331
- locale: C,
1332
- pageSizeOptions: se,
1333
- showSizeChanger: w,
1334
- sizeChangerRender: ue
1335
- }))));
1336
- };
1337
- process.env.NODE_ENV !== "production" && (kn.displayName = "Pagination");
1338
- export {
1339
- In as C,
1340
- kn as P,
1341
- Ge as a,
1342
- li as i,
1343
- wn as u
1344
- };